!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e="undefined"!=typeof globalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.typescript=t())}(this,(function(){"use strict";var e=function(e,t){const r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r};var t,r=function(...e){let t;for(const[r,n]of e.entries())try{return{result:n()}}catch(e){0===r&&(t=e)}return{error:t}},n=void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function i(){if(void 0===t){var e=new ArrayBuffer(2),r=new Uint8Array(e),n=new Uint16Array(e);if(r[0]=1,r[1]=2,258===n[0])t="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");t="LE"}}return t}function a(){return void 0!==n.location?n.location.hostname:""}function o(){return[]}function s(){return 0}function c(){return Number.MAX_VALUE}function u(){return Number.MAX_VALUE}function l(){return[]}function _(){return"Browser"}function d(){return void 0!==n.navigator?n.navigator.appVersion:""}function p(){}function f(){}function g(){return"javascript"}function m(){return"browser"}function y(){return"/tmp"}var v=y,h={EOL:"\n",arch:g,platform:m,tmpdir:v,tmpDir:y,networkInterfaces:p,getNetworkInterfaces:f,release:d,type:_,cpus:l,totalmem:u,freemem:c,uptime:s,loadavg:o,hostname:a,endianness:i},D=Object.freeze({__proto__:null,endianness:i,hostname:a,loadavg:o,uptime:s,freemem:c,totalmem:u,cpus:l,type:_,release:d,networkInterfaces:p,getNetworkInterfaces:f,arch:g,platform:m,tmpDir:y,tmpdir:v,EOL:"\n",default:h});const b=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const r=t.filter((e=>"\r\n"===e)).length;return r>t.length-r?"\r\n":"\n"};var x=b;x.graceful=e=>"string"==typeof e&&b(e)||"\n";var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function C(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function E(e){var t={exports:{}};return e(t,t.exports),t.exports}var T=C(D),k=function(e){const t=e.match(L);return t?t[0].trimLeft():""},A=function(e){const t=e.match(L);return t&&t[0]?e.substring(t[0].length):e},F=function(e){return U(e).pragmas},N=U,P=function({comments:e="",pragmas:t={}}){const r=(0,I().default)(e)||w().EOL,n=" *",i=Object.keys(t),a=i.map((e=>V(e,t[e]))).reduce(((e,t)=>e.concat(t)),[]).map((e=>" * "+e+r)).join("");if(!e){if(0===i.length)return"";if(1===i.length&&!Array.isArray(t[i[0]])){const e=t[i[0]];return`/** ${V(i[0],e)[0]} */`}}const o=e.split(r).map((e=>` * ${e}`)).join(r)+r;return"/**"+r+(e?o:"")+(e&&i.length?n+r:"")+a+" */"};function w(){const e=T;return w=function(){return e},e}function I(){const e=(t=x)&&t.__esModule?t:{default:t};var t;return I=function(){return e},e}const O=/\*\/$/,M=/^\/\*\*/,L=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,R=/(^|\s+)\/\/([^\r\n]*)/g,B=/^(\r?\n)+/,j=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,J=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,K=/(\r?\n|^) *\* ?/g,z=[];function U(e){const t=(0,I().default)(e)||w().EOL;e=e.replace(M,"").replace(O,"").replace(K,"$1");let r="";for(;r!==e;)r=e,e=e.replace(j,`${t}$1 $2${t}`);e=e.replace(B,"").trimRight();const n=Object.create(null),i=e.replace(J,"").replace(B,"").trimRight();let a;for(;a=J.exec(e);){const e=a[2].replace(R,"");"string"==typeof n[a[1]]||Array.isArray(n[a[1]])?n[a[1]]=z.concat(n[a[1]],e):n[a[1]]=e}return{comments:i,pragmas:n}}function V(e,t){return z.concat(t).map((t=>`@${e} ${t}`.trim()))}var q=Object.defineProperty({extract:k,strip:A,parse:F,parseWithComments:N,print:P},"__esModule",{value:!0}),W=e=>"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e;const H=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));var G=H,Y=H;G.default=Y;const X=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=W(e)).length)return 0;e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," ");let t=0;for(let r=0;r=127&&n<=159||(n>=768&&n<=879||(n>65535&&r++,t+=G(n)?2:1))}return t};var $=X,Q=X;$.default=Q;var Z=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};var ee=e=>e[e.length-1];function te(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var re,ne,ie=function(e){return e&&e.Math==Math&&e},ae=ie("object"==typeof globalThis&&globalThis)||ie("object"==typeof window&&window)||ie("object"==typeof self&&self)||ie("object"==typeof S&&S)||function(){return this}()||Function("return this")(),oe=function(e){try{return!!e()}catch(e){return!0}},se=!oe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),ce={}.propertyIsEnumerable,ue=Object.getOwnPropertyDescriptor,le={f:ue&&!ce.call({1:2},1)?function(e){var t=ue(this,e);return!!t&&t.enumerable}:ce},_e=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},de={}.toString,pe=function(e){return de.call(e).slice(8,-1)},fe="".split,ge=oe((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==pe(e)?fe.call(e,""):Object(e)}:Object,me=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},ye=function(e){return ge(me(e))},ve=function(e){return"object"==typeof e?null!==e:"function"==typeof e},he=function(e){return"function"==typeof e?e:void 0},De=function(e,t){return arguments.length<2?he(ae[e]):ae[e]&&ae[e][t]},be=De("navigator","userAgent")||"",xe=ae.process,Se=ae.Deno,Ce=xe&&xe.versions||Se&&Se.version,Ee=Ce&&Ce.v8;Ee?ne=(re=Ee.split("."))[0]<4?1:re[0]+re[1]:be&&(!(re=be.match(/Edge\/(\d+)/))||re[1]>=74)&&(re=be.match(/Chrome\/(\d+)/))&&(ne=re[1]);var Te=ne&&+ne,ke=!!Object.getOwnPropertySymbols&&!oe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Te&&Te<41})),Ae=ke&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Fe=Ae?function(e){return"symbol"==typeof e}:function(e){var t=De("Symbol");return"function"==typeof t&&Object(e)instanceof t},Ne=function(e,t){try{Object.defineProperty(ae,e,{value:t,configurable:!0,writable:!0})}catch(r){ae[e]=t}return t},Pe="__core-js_shared__",we=ae[Pe]||Ne(Pe,{}),Ie=E((function(e){(e.exports=function(e,t){return we[e]||(we[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),Oe=function(e){return Object(me(e))},Me={}.hasOwnProperty,Le=Object.hasOwn||function(e,t){return Me.call(Oe(e),t)},Re=0,Be=Math.random(),je=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Re+Be).toString(36)},Je=Ie("wks"),Ke=ae.Symbol,ze=Ae?Ke:Ke&&Ke.withoutSetter||je,Ue=function(e){return Le(Je,e)&&(ke||"string"==typeof Je[e])||(ke&&Le(Ke,e)?Je[e]=Ke[e]:Je[e]=ze("Symbol."+e)),Je[e]},Ve=Ue("toPrimitive"),qe=function(e,t){if(!ve(e)||Fe(e))return e;var r,n=e[Ve];if(void 0!==n){if(void 0===t&&(t="default"),r=n.call(e,t),!ve(r)||Fe(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,n;if("string"===t&&"function"==typeof(r=e.toString)&&!ve(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!ve(n=r.call(e)))return n;if("string"!==t&&"function"==typeof(r=e.toString)&&!ve(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")}(e,t)},We=function(e){var t=qe(e,"string");return Fe(t)?t:String(t)},He=ae.document,Ge=ve(He)&&ve(He.createElement),Ye=!se&&!oe((function(){return 7!=Object.defineProperty((e="div",Ge?He.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),Xe=Object.getOwnPropertyDescriptor,$e={f:se?Xe:function(e,t){if(e=ye(e),t=We(t),Ye)try{return Xe(e,t)}catch(e){}if(Le(e,t))return _e(!le.f.call(e,t),e[t])}},Qe=function(e){if(!ve(e))throw TypeError(String(e)+" is not an object");return e},Ze=Object.defineProperty,et={f:se?Ze:function(e,t,r){if(Qe(e),t=We(t),Qe(r),Ye)try{return Ze(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},tt=se?function(e,t,r){return et.f(e,t,_e(1,r))}:function(e,t,r){return e[t]=r,e},rt=Function.toString;"function"!=typeof we.inspectSource&&(we.inspectSource=function(e){return rt.call(e)});var nt,it,at,ot,st=we.inspectSource,ct=ae.WeakMap,ut="function"==typeof ct&&/native code/.test(st(ct)),lt=Ie("keys"),_t={},dt="Object already initialized",pt=ae.WeakMap;if(ut||we.state){var ft=we.state||(we.state=new pt),gt=ft.get,mt=ft.has,yt=ft.set;nt=function(e,t){if(mt.call(ft,e))throw new TypeError(dt);return t.facade=e,yt.call(ft,e,t),t},it=function(e){return gt.call(ft,e)||{}},at=function(e){return mt.call(ft,e)}}else{var vt=lt[ot="state"]||(lt[ot]=je(ot));_t[vt]=!0,nt=function(e,t){if(Le(e,vt))throw new TypeError(dt);return t.facade=e,tt(e,vt,t),t},it=function(e){return Le(e,vt)?e[vt]:{}},at=function(e){return Le(e,vt)}}var ht={set:nt,get:it,has:at,enforce:function(e){return at(e)?it(e):nt(e,{})},getterFor:function(e){return function(t){var r;if(!ve(t)||(r=it(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},Dt=E((function(e){var t=ht.get,r=ht.enforce,n=String(String).split("String");(e.exports=function(e,t,i,a){var o,s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof t||Le(i,"name")||tt(i,"name",t),(o=r(i)).source||(o.source=n.join("string"==typeof t?t:""))),e!==ae?(s?!u&&e[t]&&(c=!0):delete e[t],c?e[t]=i:tt(e,t,i)):c?e[t]=i:Ne(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||st(this)}))})),bt=Math.ceil,xt=Math.floor,St=function(e){return isNaN(e=+e)?0:(e>0?xt:bt)(e)},Ct=Math.min,Et=function(e){return e>0?Ct(St(e),9007199254740991):0},Tt=Math.max,kt=Math.min,At=function(e){return function(t,r,n){var i,a=ye(t),o=Et(a.length),s=function(e,t){var r=St(e);return r<0?Tt(r+t,0):kt(r,t)}(n,o);if(e&&r!=r){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},Ft={includes:At(!0),indexOf:At(!1)}.indexOf,Nt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),Pt={f:Object.getOwnPropertyNames||function(e){return function(e,t){var r,n=ye(e),i=0,a=[];for(r in n)!Le(_t,r)&&Le(n,r)&&a.push(r);for(;t.length>i;)Le(n,r=t[i++])&&(~Ft(a,r)||a.push(r));return a}(e,Nt)}},wt={f:Object.getOwnPropertySymbols},It=De("Reflect","ownKeys")||function(e){var t=Pt.f(Qe(e)),r=wt.f;return r?t.concat(r(e)):t},Ot=function(e,t){for(var r=It(t),n=et.f,i=$e.f,a=0;a0&&Vt(c))u=Ht(e,t,c,Et(c.length),u,a-1)-1;else{if(u>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[u]=c}u++}l++}return u},Gt=Ht,Yt=Ue("species"),Xt=function(e,t){return new(function(e){var t;return Vt(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!Vt(t.prototype)?ve(t)&&null===(t=t[Yt])&&(t=void 0):t=void 0),void 0===t?Array:t}(e))(0===t?0:t)};Ut({target:"Array",proto:!0},{flatMap:function(e){var t,r=Oe(this),n=Et(r.length);return qt(e),(t=Xt(r,0)).length=Gt(t,r,r,n,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var $t,Qt,Zt=function(e){if(Fe(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},er=Math.floor,tr=function(e,t){var r=e.length,n=er(r/2);return r<8?rr(e,t):nr(tr(e.slice(0,n),t),tr(e.slice(n),t),t)},rr=function(e,t){for(var r,n,i=e.length,a=1;a0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},nr=function(e,t,r){for(var n=e.length,i=t.length,a=0,o=0,s=[];a3)){if(sr)return!0;if(ur)return ur<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)lr.push({k:t+n,v:r})}for(lr.sort((function(e,t){return t.v-e.v})),n=0;nZt(r)?1:-1}}(e))).length,n=0;na;a++)if((s=y(e[a]))&&s instanceof kr)return s;return new kr(!1)}n=function(e,t){var r=arguments.length<2?Er(e):t;if("function"!=typeof r)throw TypeError(String(e)+" is not iterable");return Qe(r.call(e))}(e,i)}for(c=n.next;!(u=c.call(n)).done;){try{s=y(u.value)}catch(e){Tr(n,"throw",e)}if("object"==typeof s&&s&&s instanceof kr)return s}return new kr(!1)};function Fr(){throw new Error("setTimeout has not been defined")}function Nr(){throw new Error("clearTimeout has not been defined")}Ut({target:"Object",stat:!0},{fromEntries:function(e){var t={};return Ar(e,(function(e,r){!function(e,t,r){var n=We(t);n in e?et.f(e,n,_e(0,r)):e[n]=r}(t,e,r)}),{AS_ENTRIES:!0}),t}});var Pr=Fr,wr=Nr;function Ir(e){if(Pr===setTimeout)return setTimeout(e,0);if((Pr===Fr||!Pr)&&setTimeout)return Pr=setTimeout,setTimeout(e,0);try{return Pr(e,0)}catch(t){try{return Pr.call(null,e,0)}catch(t){return Pr.call(this,e,0)}}}"function"==typeof n.setTimeout&&(Pr=setTimeout),"function"==typeof n.clearTimeout&&(wr=clearTimeout);var Or,Mr=[],Lr=!1,Rr=-1;function Br(){Lr&&Or&&(Lr=!1,Or.length?Mr=Or.concat(Mr):Rr=-1,Mr.length&&jr())}function jr(){if(!Lr){var e=Ir(Br);Lr=!0;for(var t=Mr.length;t;){for(Or=Mr,Mr=[];++Rr1)for(var r=1;rconsole.error("SEMVER",...e):()=>{};var en={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},tn=E((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=en,n=(t=e.exports={}).re=[],i=t.src=[],a=t.t={};let o=0;const s=(e,t,r)=>{const s=o++;Zr(s,t),a[e]=s,i[s]=t,n[s]=new RegExp(t,r?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),s("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),s("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),s("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),s("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),s("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),s("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),s("FULL",`^${i[a.FULLPLAIN]}$`),s("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),s("LOOSE",`^${i[a.LOOSEPLAIN]}$`),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),s("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),s("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),s("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),s("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),s("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),s("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),s("COERCERTL",i[a.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",s("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),s("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),s("LONECARET","(?:\\^)"),s("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",s("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),s("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),s("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),s("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),s("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),s("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}));const rn=["includePrerelease","loose","rtl"];var nn=e=>e?"object"!=typeof e?{loose:!0}:rn.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{};const an=/^[0-9]+$/,on=(e,t)=>{const r=an.test(e),n=an.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eon(t,e)};const{MAX_LENGTH:cn,MAX_SAFE_INTEGER:un}=en,{re:ln,t:_n}=tn,{compareIdentifiers:dn}=sn;class pn{constructor(e,t){if(t=nn(t),e instanceof pn){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>cn)throw new TypeError(`version is longer than ${cn} characters`);Zr("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?ln[_n.LOOSE]:ln[_n.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>un||this.major<0)throw new TypeError("Invalid major version");if(this.minor>un||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>un||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}var fn=pn;var gn=(e,t,r)=>new fn(e,r).compare(new fn(t,r));var mn=(e,t,r)=>gn(e,t,r)<0;var yn=(e,t,r)=>gn(e,t,r)>=0,vn=E((function(e,t){function r(){for(var e=[],t=0;t"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:Sn,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:Dn},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:Sn,description:hn` Custom directory that contains prettier plugins in node_modules subdirectory. Overrides default behavior when plugins are searched relatively to the location of Prettier. Multiple values are accepted. `,exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:Dn},printWidth:{since:"0.0.0",category:Sn,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:Cn,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:hn` Format code ending at a given character offset (exclusive). The range will extend forwards to the end of the selected statement. This option cannot be used with --cursor-offset. `,cliCategory:bn},rangeStart:{since:"1.4.0",category:Cn,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:hn` Format code starting at a given character offset. The range will extend backwards to the start of the first line containing the selected statement. This option cannot be used with --cursor-offset. `,cliCategory:bn},requirePragma:{since:"1.7.0",category:Cn,type:"boolean",default:!1,description:hn` Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted. `,cliCategory:xn},tabWidth:{type:"int",category:Sn,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:Sn,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:Sn,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};const Tn=["cliName","cliCategory","cliDescription"],kn={compare:gn,lt:mn,gte:yn},An="2.4.1",Fn={CATEGORY_CONFIG:Dn,CATEGORY_EDITOR:bn,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:xn,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:Sn,CATEGORY_SPECIAL:Cn,options:En}.options;var Nn={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:r=!1,showInternal:n=!1}={}){const i=An.split("-",1)[0],a=e.flatMap((e=>e.languages||[])).filter(u),o=(s=Object.assign({},...e.map((({options:e})=>e)),Fn),c="name",Object.entries(s).map((([e,t])=>Object.assign({[c]:e},t)))).filter((e=>u(e)&&l(e))).sort(((e,t)=>e.name===t.name?0:e.name{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(u).sort(((e,t)=>kn.compare(t.since,e.since)))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter((e=>u(e)&&l(e))),"parser"===t.name&&function(e,t,r){const n=new Set(e.choices.map((e=>e.value)));for(const i of t)if(i.parsers)for(const t of i.parsers)if(!n.has(t)){n.add(t);const a=r.find((e=>e.parsers&&e.parsers[t]));let o=i.name;a&&a.name&&(o+=` (plugin: ${a.name})`),e.choices.push({value:t,description:o})}}(t,a,e));const r=Object.fromEntries(e.filter((e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name])).map((e=>[e.name,e.defaultOptions[t.name]])));return Object.assign(Object.assign({},t),{},{pluginDefaults:r})}));var s,c;return{languages:a,options:o};function u(e){return t||!("since"in e)||e.since&&kn.gte(i,e.since)}function l(e){return r||!("deprecated"in e)||e.deprecated&&kn.lt(i,e.deprecated)}}};const{getSupportInfo:Pn}=Nn,wn=/[^\x20-\x7F]/;function In(e){return(t,r,n)=>{const i=n&&n.backwards;if(!1===r)return!1;const{length:a}=t;let o=r;for(;o>=0&&o(r.match(o.regex)||[]).length?o.quote:a.quote}return s}function Hn(e,t,r){const n='"'===t?"'":'"',i=e.replace(/\\(.)|(["'])/gs,((e,i,a)=>i===n?i:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i)));return t+i+t}function Gn(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){const t=e.type||e.kind||"(unknown type)";let r=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");r.length>20&&(r=r.slice(0,19)+"\u2026");return t+(r?" "+r:"")}(e)}var Yn={inferParserByLanguage:function(e,t){const{languages:r}=Pn({plugins:t.plugins}),n=r.find((({name:t})=>t.toLowerCase()===e))||r.find((({aliases:t})=>Array.isArray(t)&&t.includes(e)))||r.find((({extensions:t})=>Array.isArray(t)&&t.includes(`.${e}`)));return n&&n.parsers[0]},getStringWidth:function(e){return e?wn.test(e)?$(e):e.length:0},getMaxContinuousCount:function(e,t){const r=e.match(new RegExp(`(${Z(t)})+`,"g"));return null===r?0:r.reduce(((e,r)=>Math.max(e,r.length/t.length)),0)},getMinNotPresentContinuousCount:function(e,t){const r=e.match(new RegExp(`(${Z(t)})+`,"g"));if(null===r)return 0;const n=new Map;let i=0;for(const e of r){const r=e.length/t.length;n.set(r,!0),r>i&&(i=r)}for(let e=1;ee[e.length-2],getLast:ee,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:Un,getNextNonSpaceNonCommentCharacterIndex:Vn,getNextNonSpaceNonCommentCharacter:function(e,t,r){return e.charAt(Vn(e,t,r))},skip:In,skipWhitespace:On,skipSpaces:Mn,skipToLineEnd:Ln,skipEverythingButNewLine:Rn,skipInlineComment:Bn,skipTrailingComment:jn,skipNewline:Jn,isNextLineEmptyAfterIndex:zn,isNextLineEmpty:function(e,t,r){return zn(e,r(t))},isPreviousLineEmpty:function(e,t,r){let n=r(t)-1;return n=Mn(e,n,{backwards:!0}),n=Jn(e,n,{backwards:!0}),n=Mn(e,n,{backwards:!0}),n!==Jn(e,n,{backwards:!0})},hasNewline:Kn,hasNewlineInRange:function(e,t,r){for(let n=t;n0},createGroupIdMapper:function(e){const t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}};var Xn={guessEndOfLine:function(e){const t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function(e,t){let r;if("\n"===t)r=/\n/g;else if("\r"===t)r=/\r/g;else{if("\r\n"!==t)throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`);r=/\r\n/g}const n=e.match(r);return n?n.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,"\n")}};const{parseWithComments:$n,strip:Qn,extract:Zn,print:ei}=q,{getShebang:ti}=Yn,{normalizeEndOfLine:ri}=Xn;function ni(e){const t=ti(e);t&&(e=e.slice(t.length+1));const r=Zn(e),{pragmas:n,comments:i}=$n(r);return{shebang:t,text:e,pragmas:n,comments:i}}var ii={hasPragma:function(e){const t=Object.keys(ni(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const{shebang:t,text:r,pragmas:n,comments:i}=ni(e),a=Qn(r),o=ei({pragmas:Object.assign({format:""},n),comments:i.trimStart()});return(t?`${t}\n`:"")+ri(o)+(a.startsWith("\n")?"\n":"\n\n")+a}};const{isNonEmptyArray:ai}=Yn;function oi(e,t){const{ignoreDecorators:r}=t||{};if(!r){const t=e.declaration&&e.declaration.decorators||e.decorators;if(ai(t))return oi(t[0])}return e.range?e.range[0]:e.start}function si(e){return e.range?e.range[1]:e.end}function ci(e,t){return oi(e)===oi(t)}var ui={locStart:oi,locEnd:si,hasSameLocStart:ci,hasSameLoc:function(e,t){return ci(e,t)&&function(e,t){return si(e)===si(t)}(e,t)}};const{hasPragma:li}=ii,{locStart:_i,locEnd:di}=ui;var pi=function(e){return e="function"==typeof e?{parse:e}:e,Object.assign({astFormat:"estree",hasPragma:li,locStart:_i,locEnd:di},e)};var fi=function(e){return"#"===e.charAt(0)&&"!"===e.charAt(1)?"//"+e.slice(2):e},gi=E((function(e){!function(){function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function r(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=r(t)}while(t);return!1},trailingStatement:r}}()})),mi=E((function(e){!function(){var t,r,n,i,a,o;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(r={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),o=0;o<128;++o)i[o]=o>=97&&o<=122||o>=65&&o<=90||36===o||95===o;for(a=new Array(128),o=0;o<128;++o)a[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||36===o||95===o;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:r.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function(e){return e<128?a[e]:r.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES6:function(e){return e<128?a[e]:t.NonAsciiIdentifierPart.test(s(e))}}}()})),yi=E((function(e){!function(){var t=mi;function r(e,t){return!(!t&&"yield"===e)&&n(e,t)}function n(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function o(e){var r,n,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(r=1,n=e.length;r=n)return!1;if(!(56320<=(a=e.charCodeAt(r))&&a<=57343))return!1;i=1024*(i-55296)+(a-56320)+65536}if(!o(i))return!1;o=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:n,isReservedWordES5:i,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:o,isIdentifierNameES6:s,isIdentifierES5:function(e,t){return o(e)&&!i(e,t)},isIdentifierES6:function(e,t){return s(e)&&!a(e,t)}}}()}));const vi=E((function(e,t){t.ast=gi,t.code=mi,t.keyword=yi})).keyword.isIdentifierNameES5,{getLast:hi,hasNewline:Di,skipWhitespace:bi,isNonEmptyArray:xi,isNextLineEmptyAfterIndex:Si,getStringWidth:Ci}=Yn,{locStart:Ei,locEnd:Ti,hasSameLocStart:ki}=ui,Ai=new RegExp("^(?:(?=.)\\s)*:"),Fi=new RegExp("^(?:(?=.)\\s)*::");function Ni(e){return"Block"===e.type||"CommentBlock"===e.type||"MultiLine"===e.type}function Pi(e){return"Line"===e.type||"CommentLine"===e.type||"SingleLine"===e.type||"HashbangComment"===e.type||"HTMLOpen"===e.type||"HTMLClose"===e.type}const wi=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function Ii(e){return e&&wi.has(e.type)}function Oi(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function Mi(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function Li(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function Ri(e){return Vi(e)&&"Identifier"===e.callee.type&&("async"===e.callee.name||"inject"===e.callee.name||"fakeAsync"===e.callee.name)}function Bi(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function ji(e){return"get"===e.kind||"set"===e.kind}function Ji(e){return ji(e)||ki(e,e.value)}const Ki=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]);const zi=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);const Ui=/^(?:skip|[fx]?(?:it|describe|test))$/;function Vi(e){return e&&("CallExpression"===e.type||"OptionalCallExpression"===e.type)}function qi(e){return e&&("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)}function Wi(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function Hi(e){return e.quasis.some((e=>e.value.raw.includes("\n")))}function Gi(e){return e.extra?e.extra.raw:e.raw}const Yi={"==":!0,"!=":!0,"===":!0,"!==":!0},Xi={"*":!0,"/":!0,"%":!0},$i={">>":!0,">>>":!0,"<<":!0};const Qi={};for(const[e,t]of[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries())for(const r of t)Qi[r]=e;function Zi(e){return Qi[e]}const ea=new WeakMap;function ta(e){if(ea.has(e))return ea.get(e);const t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),ea.set(e,t),t}const ra=new WeakMap;function na(e){if(ra.has(e))return ra.get(e);let t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes)),ra.set(e,t),t}function ia(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function aa(e){return e&&(e.prettierIgnore||ca(e,oa.PrettierIgnore))}const oa={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},sa=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(r,n,i)=>!(e&oa.Leading&&!r.leading||e&oa.Trailing&&!r.trailing||e&oa.Dangling&&(r.leading||r.trailing)||e&oa.Block&&!Ni(r)||e&oa.Line&&!Pi(r)||e&oa.First&&0!==n||e&oa.Last&&n!==i.length-1||e&oa.PrettierIgnore&&!ia(r)||t&&!t(r))};function ca(e,t,r){if(!e||!xi(e.comments))return!1;const n=sa(t,r);return!n||e.comments.some(n)}function ua(e,t,r){if(!e||!Array.isArray(e.comments))return[];const n=sa(t,r);return n?e.comments.filter(n):e.comments}function la(e){return Vi(e)||"NewExpression"===e.type||"ImportExpression"===e.type}var _a={getFunctionParameters:ta,iterateFunctionParametersPath:function(e,t){const r=e.getValue();let n=0;const i=e=>t(e,n++);r.this&&e.call(i,"this"),Array.isArray(r.parameters)?e.each(i,"parameters"):Array.isArray(r.params)&&e.each(i,"params"),r.rest&&e.call(i,"rest")},getCallArguments:na,iterateCallArgumentsPath:function(e,t){const r=e.getValue();"ImportExpression"===r.type?(e.call((e=>t(e,0)),"source"),r.attributes&&e.call((e=>t(e,1)),"attributes")):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;const t=ta(e);return t.length>0&&"RestElement"===hi(t).type},getLeftSide:function(e){return e.expressions?e.expressions[0]:e.left||e.test||e.callee||e.object||e.tag||e.argument||e.expression},getLeftSidePathName:function(e,t){if(t.expressions)return["expressions",0];if(t.left)return["left"];if(t.test)return["test"];if(t.object)return["object"];if(t.callee)return["callee"];if(t.tag)return["tag"];if(t.argument)return["argument"];if(t.expression)return["expression"];throw new Error("Unexpected node has no left side.")},getParentExportDeclaration:function(e){const t=e.getParentNode();return"declaration"===e.getName()&&Ii(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasFlowAnnotationComment:function(e){return xi(e)&&Ni(e[0])&&Fi.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&xi(e.trailingComments)&&Ni(e.trailingComments[0])&&Ai.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:function(e,t){return Bi(t)?aa(t):ca(t,oa.Leading,(t=>Di(e,Ti(t))))},hasNakedLeftSide:function(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||Vi(e)||qi(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type},hasNode:function e(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t))return t.some((t=>e(t,r)));const n=r(t);return"boolean"==typeof n?n:Object.values(t).some((t=>e(t,r)))},hasIgnoreComment:function(e){return aa(e.getValue())},hasNodeIgnoreComment:aa,identity:function(e){return e},isBinaryish:function(e){return Ki.has(e.type)},isBlockComment:Ni,isCallLikeExpression:la,isLineComment:Pi,isPrettierIgnoreComment:ia,isCallExpression:Vi,isMemberExpression:qi,isExportDeclaration:Ii,isFlowAnnotationComment:function(e,t){const r=Ei(t),n=bi(e,Ti(t));return!1!==n&&"/*"===e.slice(r,r+2)&&"*/"===e.slice(n,n+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(const r of e)if(Li(r)){if(t+=1,t>1)return!0}else if(Vi(r))for(const e of r.arguments)if(Li(e))return!0;return!1},isFunctionNotation:Ji,isFunctionOrArrowExpression:Li,isGetterOrSetter:ji,isJestEachTemplateLiteral:function(e,t){const r=/^[fx]?(?:describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&r.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&r.test(t.tag.object.object.name))},isJsxNode:Bi,isLiteral:function(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type},isLongCurriedCallExpression:function(e){const t=e.getValue(),r=e.getParentNode();return Vi(t)&&Vi(r)&&r.callee===t&&t.arguments.length>r.arguments.length&&r.arguments.length>0},isSimpleCallArgument:function e(t,r){if(r>=2)return!1;const n=t=>e(t,r+1),i="Literal"===t.type&&"regex"in t&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(i&&Ci(i)>5)&&("Literal"===t.type||"BigIntLiteral"===t.type||"DecimalLiteral"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"RegExpLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"PrivateName"===t.type||"PrivateIdentifier"===t.type||"ArgumentPlaceholder"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.quasis.every((e=>!e.value.raw.includes("\n")))&&t.expressions.every(n):"ObjectExpression"===t.type?t.properties.every((e=>!e.computed&&(e.shorthand||e.value&&n(e.value)))):"ArrayExpression"===t.type?t.elements.every((e=>null===e||n(e))):la(t)?("ImportExpression"===t.type||e(t.callee,r))&&na(t).every(n):qi(t)?e(t.object,r)&&e(t.property,r):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,r):e(t.argument,r)))},isMemberish:function(e){return qi(e)||"BindExpression"===e.type&&Boolean(e.object)},isNumericLiteral:Oi,isSignedNumericLiteral:function(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&Oi(e.argument)},isObjectProperty:function(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!e.method&&"init"===e.kind)},isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"TSMappedType"===e.type},isObjectTypePropertyAFunction:function(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||Ji(e))},isSimpleType:function(e){return!!e&&(!("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)||!!zi.has(e.type))},isSimpleNumber:Wi,isSimpleTemplateLiteral:function(e){let t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");const r=e[t];return 0!==r.length&&r.every((e=>{if(ca(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(qi(e)){let t=e;for(;qi(t);){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,ca(t))return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1}))},isStringLiteral:Mi,isStringPropSafeToUnquote:function(e,t){return"json"!==t.parser&&Mi(e.key)&&Gi(e.key).slice(1,-1)===e.key.value&&(vi(e.key.value)&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)||Wi(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))},isTemplateOnItsOwnLine:function(e,t){return("TemplateLiteral"===e.type&&Hi(e)||"TaggedTemplateExpression"===e.type&&Hi(e.quasi))&&!Di(t,Ei(e),{backwards:!0})},isTestCall:function e(t,r){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(Ri(t)&&r&&e(r))return Li(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(?:before|after)(?:Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return Ri(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&Ui.test(t.callee.name)||function(e){return qi(e.callee)&&"Identifier"===e.callee.object.type&&"Identifier"===e.callee.property.type&&Ui.test(e.callee.object.name)&&("only"===e.callee.property.name||"skip"===e.callee.property.name)}(t))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||Mi(t.arguments[0])))return!(t.arguments[2]&&!Oi(t.arguments[2]))&&((2===t.arguments.length?Li(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&ta(t.arguments[1]).length<=1)||Ri(t.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const r=t.getNode();if(!r.expression||!Bi(r.expression))return!1;const n=t.getParentNode();return"Program"===n.type&&1===n.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||ki(e,e.typeAnnotation))},isNextLineEmpty:(e,{originalText:t})=>Si(t,Ti(e)),needsHardlineAfterDanglingComment:function(e){if(!ca(e))return!1;const t=hi(ua(e,oa.Dangling));return t&&!Ni(t)},rawText:Gi,shouldPrintComma:function(e,t="es5"){return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)},isBitwiseOperator:function(e){return Boolean($i[e])||"|"===e||"^"===e||"&"===e},shouldFlatten:function(e,t){return Zi(t)===Zi(e)&&("**"!==e&&((!Yi[e]||!Yi[t])&&(!("%"===t&&Xi[e]||"%"===e&&Xi[t])&&((t===e||!Xi[t]||!Xi[e])&&(!$i[e]||!$i[t])))))},startsWithNoLookaheadToken:function e(t,r){switch((t=function(e){for(;e.left;)e=e.left;return e}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return r;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,r);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,r);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,r);case"ConditionalExpression":return e(t.test,r);case"UpdateExpression":return!t.prefix&&e(t.argument,r);case"BindExpression":return t.object&&e(t.object,r);case"SequenceExpression":return e(t.expressions[0],r);case"TSAsExpression":case"TSNonNullExpression":return e(t.expression,r);default:return!1}},getPrecedence:Zi,hasComment:ca,getComments:ua,CommentCheckFlags:oa};const{getLast:da,hasNewline:pa,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:fa,getNextNonSpaceNonCommentCharacter:ga,hasNewlineInRange:ma,addLeadingComment:ya,addTrailingComment:va,addDanglingComment:ha,getNextNonSpaceNonCommentCharacterIndex:Da,isNonEmptyArray:ba}=Yn,{isBlockComment:xa,getFunctionParameters:Sa,isPrettierIgnoreComment:Ca,isJsxNode:Ea,hasFlowShorthandAnnotationComment:Ta,hasFlowAnnotationComment:ka,hasIgnoreComment:Aa,isCallLikeExpression:Fa,getCallArguments:Na,isCallExpression:Pa,isMemberExpression:wa,isObjectProperty:Ia,getComments:Oa,CommentCheckFlags:Ma}=_a,{locStart:La,locEnd:Ra}=ui;function Ba(e,t){const r=(e.body||e.properties).find((({type:e})=>"EmptyStatement"!==e));r?ya(r,t):ha(e,t)}function ja(e,t){"BlockStatement"===e.type?Ba(e,t):ya(e,t)}function Ja({comment:e,followingNode:t}){return!(!t||!mo(e))&&(ya(t,e),!0)}function Ka({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){if(!r||"IfStatement"!==r.type||!n)return!1;return")"===ga(i,e,Ra)?(va(t,e),!0):t===r.consequent&&n===r.alternate?("BlockStatement"===t.type?va(t,e):ha(r,e),!0):"BlockStatement"===n.type?(Ba(n,e),!0):"IfStatement"===n.type?(ja(n.consequent,e),!0):r.consequent===n&&(ya(n,e),!0)}function za({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){if(!r||"WhileStatement"!==r.type||!n)return!1;return")"===ga(i,e,Ra)?(va(t,e),!0):"BlockStatement"===n.type?(Ba(n,e),!0):r.body===n&&(ya(n,e),!0)}function Ua({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return!(!r||"TryStatement"!==r.type&&"CatchClause"!==r.type||!n)&&("CatchClause"===r.type&&t?(va(t,e),!0):"BlockStatement"===n.type?(Ba(n,e),!0):"TryStatement"===n.type?(ja(n.finalizer,e),!0):"CatchClause"===n.type&&(ja(n.body,e),!0))}function Va({comment:e,enclosingNode:t,followingNode:r}){return!(!wa(t)||!r||"Identifier"!==r.type)&&(ya(t,e),!0)}function qa({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){const a=t&&!ma(i,Ra(t),La(e));return!(t&&a||!r||"ConditionalExpression"!==r.type&&"TSConditionalType"!==r.type||!n)&&(ya(n,e),!0)}function Wa({comment:e,precedingNode:t,enclosingNode:r}){return!(!Ia(r)||!r.shorthand||r.key!==t||"AssignmentPattern"!==r.value.type)&&(va(r.value.left,e),!0)}function Ha({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(r&&("ClassDeclaration"===r.type||"ClassExpression"===r.type||"DeclareClass"===r.type||"DeclareInterface"===r.type||"InterfaceDeclaration"===r.type||"TSInterfaceDeclaration"===r.type)){if(ba(r.decorators)&&(!n||"Decorator"!==n.type))return va(da(r.decorators),e),!0;if(r.body&&n===r.body)return Ba(r.body,e),!0;if(n)for(const i of["implements","extends","mixins"])if(r[i]&&n===r[i][0])return!t||t!==r.id&&t!==r.typeParameters&&t!==r.superClass?ha(r,e,i):va(t,e),!0}return!1}function Ga({comment:e,precedingNode:t,enclosingNode:r,text:n}){return(r&&t&&("Property"===r.type||"TSDeclareMethod"===r.type||"TSAbstractMethodDefinition"===r.type)&&"Identifier"===t.type&&r.key===t&&":"!==ga(n,t,Ra)||!(!t||!r||"Decorator"!==t.type||"ClassMethod"!==r.type&&"ClassProperty"!==r.type&&"PropertyDefinition"!==r.type&&"TSAbstractClassProperty"!==r.type&&"TSAbstractMethodDefinition"!==r.type&&"TSDeclareMethod"!==r.type&&"MethodDefinition"!==r.type))&&(va(t,e),!0)}function Ya({comment:e,precedingNode:t,enclosingNode:r,text:n}){return"("===ga(n,e,Ra)&&(!(!t||!r||"FunctionDeclaration"!==r.type&&"FunctionExpression"!==r.type&&"ClassMethod"!==r.type&&"MethodDefinition"!==r.type&&"ObjectMethod"!==r.type)&&(va(t,e),!0))}function Xa({comment:e,enclosingNode:t,text:r}){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const n=Da(r,e,Ra);return!1!==n&&"=>"===r.slice(n,n+2)&&(ha(t,e),!0)}function $a({comment:e,enclosingNode:t,text:r}){return")"===ga(r,e,Ra)&&(t&&(go(t)&&0===Sa(t).length||Fa(t)&&0===Na(t).length)?(ha(t,e),!0):!(!t||"MethodDefinition"!==t.type&&"TSAbstractMethodDefinition"!==t.type||0!==Sa(t.value).length)&&(ha(t.value,e),!0))}function Qa({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:i}){if(t&&"FunctionTypeParam"===t.type&&r&&"FunctionTypeAnnotation"===r.type&&n&&"FunctionTypeParam"!==n.type)return va(t,e),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&r&&go(r)&&")"===ga(i,e,Ra))return va(t,e),!0;if(r&&"FunctionDeclaration"===r.type&&n&&"BlockStatement"===n.type){const t=(()=>{const e=Sa(r);if(e.length>0)return fa(i,Ra(da(e)));const t=fa(i,Ra(r.id));return!1!==t&&fa(i,t+1)})();if(La(e)>t)return Ba(n,e),!0}return!1}function Za({comment:e,enclosingNode:t}){return!(!t||"ImportSpecifier"!==t.type)&&(ya(t,e),!0)}function eo({comment:e,enclosingNode:t}){return!(!t||"LabeledStatement"!==t.type)&&(ya(t,e),!0)}function to({comment:e,enclosingNode:t}){return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label)&&(va(t,e),!0)}function ro({comment:e,precedingNode:t,enclosingNode:r}){return!!(Pa(r)&&t&&r.callee===t&&r.arguments.length>0)&&(ya(r.arguments[0],e),!0)}function no({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return!r||"UnionTypeAnnotation"!==r.type&&"TSUnionType"!==r.type?(n&&("UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)&&Ca(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1):(Ca(e)&&(n.prettierIgnore=!0,e.unignore=!0),!!t&&(va(t,e),!0))}function io({comment:e,enclosingNode:t}){return!!Ia(t)&&(ya(t,e),!0)}function ao({comment:e,enclosingNode:t,followingNode:r,ast:n,isLastComment:i}){return n&&n.body&&0===n.body.length?(i?ha(n,e):ya(n,e),!0):t&&"Program"===t.type&&0===t.body.length&&!ba(t.directives)?(i?ha(t,e):ya(t,e),!0):!(!r||"Program"!==r.type||0!==r.body.length||!t||"ModuleExpression"!==t.type)&&(ha(r,e),!0)}function oo({comment:e,enclosingNode:t}){return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type)&&(ya(t,e),!0)}function so({comment:e,precedingNode:t,enclosingNode:r,text:n}){return!!(t&&"ImportSpecifier"===t.type&&r&&"ImportDeclaration"===r.type&&pa(n,Ra(e)))&&(va(t,e),!0)}function co({comment:e,enclosingNode:t}){return!(!t||"AssignmentPattern"!==t.type)&&(ya(t,e),!0)}function uo({comment:e,enclosingNode:t}){return!(!t||"TypeAlias"!==t.type)&&(ya(t,e),!0)}function lo({comment:e,enclosingNode:t,followingNode:r}){return!(!t||"VariableDeclarator"!==t.type&&"AssignmentExpression"!==t.type||!r||"ObjectExpression"!==r.type&&"ArrayExpression"!==r.type&&"TemplateLiteral"!==r.type&&"TaggedTemplateExpression"!==r.type&&!xa(e))&&(ya(r,e),!0)}function _o({comment:e,enclosingNode:t,followingNode:r,text:n}){return!(r||!t||"TSMethodSignature"!==t.type&&"TSDeclareFunction"!==t.type&&"TSAbstractMethodDefinition"!==t.type||";"!==ga(n,e,Ra))&&(va(t,e),!0)}function po({comment:e,enclosingNode:t,followingNode:r}){if(Ca(e)&&t&&"TSMappedType"===t.type&&r&&"TSTypeParameter"===r.type&&r.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function fo({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return!(!r||"TSMappedType"!==r.type)&&(n&&"TSTypeParameter"===n.type&&n.name?(ya(n.name,e),!0):!(!t||"TSTypeParameter"!==t.type||!t.constraint)&&(va(t.constraint,e),!0))}function go(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function mo(e){return xa(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var yo={handleOwnLineComment:function(e){return[po,Qa,Va,Ka,za,Ua,Ha,Za,oo,no,ao,so,co,Ga,eo].some((t=>t(e)))},handleEndOfLineComment:function(e){return[Ja,Qa,qa,Za,Ka,za,Ua,Ha,eo,ro,io,ao,uo,lo].some((t=>t(e)))},handleRemainingComment:function(e){return[po,Ka,za,Wa,$a,Ga,ao,Xa,Ya,fo,to,_o].some((t=>t(e)))},isTypeCastComment:mo,getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===Sa(e.value).length&&!e.value.returnType&&!ba(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){const t=e.getValue(),r=e.getParentNode();return(t&&(Ea(t)||Ta(t)||Pa(r)&&(e=>ka(Oa(e,Ma.Leading))||ka(Oa(e,Ma.Trailing)))(t))||r&&("JSXSpreadAttribute"===r.type||"JSXSpreadChild"===r.type||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type||("ClassDeclaration"===r.type||"ClassExpression"===r.type)&&r.superClass===t))&&(!Aa(e)||"UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)}};const{getLast:vo,getNextNonSpaceNonCommentCharacter:ho}=Yn,{locStart:Do,locEnd:bo}=ui,{isTypeCastComment:xo}=yo;function So(e){return"CallExpression"===e.type?(e.type="OptionalCallExpression",e.callee=So(e.callee)):"MemberExpression"===e.type?(e.type="OptionalMemberExpression",e.object=So(e.object)):"TSNonNullExpression"===e.type&&(e.expression=So(e.expression)),e}function Co(e,t){let r;if(Array.isArray(e))r=e.entries();else{if(!e||"object"!=typeof e||"string"!=typeof e.type)return e;r=Object.entries(e)}for(const[n,i]of r)e[n]=Co(i,t);return Array.isArray(e)?e:t(e)||e}function Eo(e){return"LogicalExpression"===e.type&&"LogicalExpression"===e.right.type&&e.operator===e.right.operator}function To(e){return Eo(e)?To({type:"LogicalExpression",operator:e.operator,left:To({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Do(e.left),bo(e.right.left)]}),right:e.right.right,range:[Do(e),bo(e)]}):e}var ko=function(t,r){if("typescript"===r.parser&&r.originalText.includes("@")){const{esTreeNodeToTSNodeMap:n,tsNodeToESTreeNodeMap:i}=r.tsParseResult;t=Co(t,(t=>{const r=n.get(t);if(!r)return;const a=r.decorators;if(!Array.isArray(a))return;const o=i.get(r);if(o!==t)return;const s=o.decorators;if(!Array.isArray(s)||s.length!==a.length||a.some((e=>{const t=i.get(e);return!t||!s.includes(t)}))){const{start:t,end:r}=o.loc;throw e("Leading decorators must be attached to a class declaration",{start:{line:t.line,column:t.column+1},end:{line:r.line,column:r.column+1}})}}))}if("typescript"!==r.parser&&"flow"!==r.parser&&"espree"!==r.parser&&"meriyah"!==r.parser){const e=new Set;t=Co(t,(t=>{t.leadingComments&&t.leadingComments.some(xo)&&e.add(Do(t))})),t=Co(t,(t=>{if("ParenthesizedExpression"===t.type){const{expression:r}=t;if("TypeCastExpression"===r.type)return r.range=t.range,r;const n=Do(t);if(!e.has(n))return r.extra=Object.assign(Object.assign({},r.extra),{},{parenthesized:!0}),r}}))}return t=Co(t,(e=>{switch(e.type){case"ChainExpression":return So(e.expression);case"LogicalExpression":if(Eo(e))return To(e);break;case"VariableDeclaration":{const t=vo(e.declarations);t&&t.init&&function(e,t){if(";"===r.originalText[bo(t)])return;e.range=[Do(e),bo(t)]}(e,t);break}case"TSParenthesizedType":return e.typeAnnotation.range=[Do(e),bo(e)],e.typeAnnotation;case"TSTypeParameter":if("string"==typeof e.name){const t=Do(e);e.name={type:"Identifier",name:e.name,range:[t,t+e.name.length]}}break;case"SequenceExpression":{const t=vo(e.expressions);e.range=[Do(e),Math.min(bo(t),bo(e))];break}case"ClassProperty":e.key&&"TSPrivateIdentifier"===e.key.type&&"?"===ho(r.originalText,e.key,bo)&&(e.optional=!0)}}))},Ao=1e3,Fo=60*Ao,No=60*Fo,Po=24*No,wo=7*Po,Io=365.25*Po,Oo=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*Io;case"weeks":case"week":case"w":return r*wo;case"days":case"day":case"d":return r*Po;case"hours":case"hour":case"hrs":case"hr":case"h":return r*No;case"minutes":case"minute":case"mins":case"min":case"m":return r*Fo;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ao;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=Po)return Mo(e,t,Po,"day");if(t>=No)return Mo(e,t,No,"hour");if(t>=Fo)return Mo(e,t,Fo,"minute");if(t>=Ao)return Mo(e,t,Ao,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=Po)return Math.round(e/Po)+"d";if(t>=No)return Math.round(e/No)+"h";if(t>=Fo)return Math.round(e/Fo)+"m";if(t>=Ao)return Math.round(e/Ao)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Mo(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}var Lo=function(e){function t(e){let n,i,a,o=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),a=i-(n||i);r.diff=a,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";o++;const a=t.formatters[i];if("function"==typeof a){const t=e[o];n=a.call(r,t),e.splice(o,1),o--}return n})),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,a=t.enabled(e)),a),set:e=>{o=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function n(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(n),...t.skips.map(n).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==Qr&&"env"in Qr&&(e=Qr.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=Lo(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}));function Bo(){return!1}function jo(){throw new Error("tty.ReadStream is not implemented")}function Jo(){throw new Error("tty.ReadStream is not implemented")}var Ko={isatty:Bo,ReadStream:jo,WriteStream:Jo},zo=Object.freeze({__proto__:null,isatty:Bo,ReadStream:jo,WriteStream:Jo,default:Ko}),Uo=[],Vo=[],qo="undefined"!=typeof Uint8Array?Uint8Array:Array,Wo=!1;function Ho(){Wo=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t>18&63]+Uo[i>>12&63]+Uo[i>>6&63]+Uo[63&i]);return a.join("")}function Yo(e){var t;Wo||Ho();for(var r=e.length,n=r%3,i="",a=[],o=16383,s=0,c=r-n;sc?c:s+o));return 1===n?(t=e[r-1],i+=Uo[t>>2],i+=Uo[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=Uo[t>>10],i+=Uo[t>>4&63],i+=Uo[t<<2&63],i+="="),a.push(i),a.join("")}function Xo(e,t,r,n,i){var a,o,s=8*i-n-1,c=(1<>1,l=-7,_=r?i-1:0,d=r?-1:1,p=e[t+_];for(_+=d,a=p&(1<<-l)-1,p>>=-l,l+=s;l>0;a=256*a+e[t+_],_+=d,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+_],_+=d,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=u}return(p?-1:1)*o*Math.pow(2,a-n)}function $o(e,t,r,n,i,a){var o,s,c,u=8*a-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,f=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+_>=1?d/c:d*Math.pow(2,1-_))*c>=2&&(o++,c/=2),o+_>=l?(s=0,o=l):o+_>=1?(s=(t*c-1)*Math.pow(2,i),o+=_):(s=t*Math.pow(2,_-1)*Math.pow(2,i),o=0));i>=8;e[r+p]=255&s,p+=f,s/=256,i-=8);for(o=o<0;e[r+p]=255&o,p+=f,o/=256,u-=8);e[r+p-f]|=128*g}var Qo={}.toString,Zo=Array.isArray||function(e){return"[object Array]"==Qo.call(e)};ns.TYPED_ARRAY_SUPPORT=void 0===n.TYPED_ARRAY_SUPPORT||n.TYPED_ARRAY_SUPPORT;var es=ts();function ts(){return ns.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function rs(e,t){if(ts()=ts())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ts().toString(16)+" bytes");return 0|e}function us(e){return!(null==e||!e._isBuffer)}function ls(e,t){if(us(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Rs(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Bs(e).length;default:if(n)return Rs(e).length;t=(""+t).toLowerCase(),n=!0}}function _s(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ts(this,t,r);case"utf8":case"utf-8":return xs(this,t,r);case"ascii":return Cs(this,t,r);case"latin1":case"binary":return Es(this,t,r);case"base64":return bs(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ks(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function ds(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function ps(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=ns.from(t,n)),us(t))return 0===t.length?-1:fs(e,t,r,n,i);if("number"==typeof t)return t&=255,ns.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):fs(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function fs(e,t,r,n,i){var a,o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=r;as&&(r=s-c),a=r;a>=0;a--){for(var _=!0,d=0;di&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function bs(e,t,r){return 0===t&&r===e.length?Yo(e):Yo(e.slice(t,r))}function xs(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+_<=r)switch(_){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,_=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=_}return function(e){var t=e.length;if(t<=Ss)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},ns.prototype.compare=function(e,t,r,n,i){if(!us(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(n,i),u=e.slice(t,r),l=0;li)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return gs(this,e,t,r);case"utf8":case"utf-8":return ms(this,e,t,r);case"ascii":return ys(this,e,t,r);case"latin1":case"binary":return vs(this,e,t,r);case"base64":return hs(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ds(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},ns.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ss=4096;function Cs(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function Fs(e,t,r,n,i,a){if(!us(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function Ns(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function Ps(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function ws(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Is(e,t,r,n,i){return i||ws(e,0,r,4),$o(e,t,r,n,23,4),r+4}function Os(e,t,r,n,i){return i||ws(e,0,r,8),$o(e,t,r,n,52,8),r+8}ns.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},ns.prototype.readUInt8=function(e,t){return t||As(e,1,this.length),this[e]},ns.prototype.readUInt16LE=function(e,t){return t||As(e,2,this.length),this[e]|this[e+1]<<8},ns.prototype.readUInt16BE=function(e,t){return t||As(e,2,this.length),this[e]<<8|this[e+1]},ns.prototype.readUInt32LE=function(e,t){return t||As(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ns.prototype.readUInt32BE=function(e,t){return t||As(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ns.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||As(e,t,this.length);for(var n=this[e],i=1,a=0;++a=(i*=128)&&(n-=Math.pow(2,8*t)),n},ns.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||As(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},ns.prototype.readInt8=function(e,t){return t||As(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ns.prototype.readInt16LE=function(e,t){t||As(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},ns.prototype.readInt16BE=function(e,t){t||As(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},ns.prototype.readInt32LE=function(e,t){return t||As(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ns.prototype.readInt32BE=function(e,t){return t||As(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ns.prototype.readFloatLE=function(e,t){return t||As(e,4,this.length),Xo(this,e,!0,23,4)},ns.prototype.readFloatBE=function(e,t){return t||As(e,4,this.length),Xo(this,e,!1,23,4)},ns.prototype.readDoubleLE=function(e,t){return t||As(e,8,this.length),Xo(this,e,!0,52,8)},ns.prototype.readDoubleBE=function(e,t){return t||As(e,8,this.length),Xo(this,e,!1,52,8)},ns.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||Fs(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+r},ns.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||Fs(this,e,t,1,255,0),ns.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ns.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||Fs(this,e,t,2,65535,0),ns.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ns(this,e,t,!0),t+2},ns.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||Fs(this,e,t,2,65535,0),ns.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ns(this,e,t,!1),t+2},ns.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||Fs(this,e,t,4,4294967295,0),ns.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Ps(this,e,t,!0),t+4},ns.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||Fs(this,e,t,4,4294967295,0),ns.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ps(this,e,t,!1),t+4},ns.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Fs(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},ns.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);Fs(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},ns.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||Fs(this,e,t,1,127,-128),ns.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ns.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||Fs(this,e,t,2,32767,-32768),ns.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Ns(this,e,t,!0),t+2},ns.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||Fs(this,e,t,2,32767,-32768),ns.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Ns(this,e,t,!1),t+2},ns.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||Fs(this,e,t,4,2147483647,-2147483648),ns.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Ps(this,e,t,!0),t+4},ns.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||Fs(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ns.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Ps(this,e,t,!1),t+4},ns.prototype.writeFloatLE=function(e,t,r){return Is(this,e,t,!0,r)},ns.prototype.writeFloatBE=function(e,t,r){return Is(this,e,t,!1,r)},ns.prototype.writeDoubleLE=function(e,t,r){return Os(this,e,t,!0,r)},ns.prototype.writeDoubleBE=function(e,t,r){return Os(this,e,t,!1,r)},ns.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!ns.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function Bs(e){return function(e){var t,r,n,i,a,o;Wo||Ho();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a="="===e[s-2]?2:"="===e[s-1]?1:0,o=new qo(3*s/4-a),n=a>0?s-4:s;var c=0;for(t=0,r=0;t>16&255,o[c++]=i>>8&255,o[c++]=255&i;return 2===a?(i=Vo[e.charCodeAt(t)]<<2|Vo[e.charCodeAt(t+1)]>>4,o[c++]=255&i):1===a&&(i=Vo[e.charCodeAt(t)]<<10|Vo[e.charCodeAt(t+1)]<<4|Vo[e.charCodeAt(t+2)]>>2,o[c++]=i>>8&255,o[c++]=255&i),o}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Ms,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function js(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Js(e){return null!=e&&(!!e._isBuffer||Ks(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&Ks(e.slice(0,0))}(e))}function Ks(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var zs=Object.freeze({__proto__:null,Buffer:ns,INSPECT_MAX_BYTES:50,SlowBuffer:function(e){return+e!=e&&(e=0),ns.alloc(+e)},isBuffer:Js,kMaxLength:es}),Us="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},Vs=/%[sdj%]/g;function qs(e){if(!sc(e)){for(var t=[],r=0;r=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),nc(t)?r.showHidden=t:t&&xc(r,t),uc(r.showHidden)&&(r.showHidden=!1),uc(r.depth)&&(r.depth=2),uc(r.colors)&&(r.colors=!1),uc(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=$s),Zs(r,e,r.depth)}function $s(e,t){var r=Xs.styles[t];return r?"\x1b["+Xs.colors[r][0]+"m"+e+"\x1b["+Xs.colors[r][1]+"m":e}function Qs(e,t){return e}function Zs(e,t,r){if(e.customInspect&&t&&fc(t.inspect)&&t.inspect!==Xs&&(!t.constructor||t.constructor.prototype!==t)){var n=t.inspect(r,e);return sc(n)||(n=Zs(e,n,r)),n}var i=function(e,t){if(uc(t))return e.stylize("undefined","undefined");if(sc(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(oc(t))return e.stylize(""+t,"number");if(nc(t))return e.stylize(""+t,"boolean");if(ic(t))return e.stylize("null","null")}(e,t);if(i)return i;var a=Object.keys(t),o=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),pc(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return ec(t);if(0===a.length){if(fc(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(lc(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(dc(t))return e.stylize(Date.prototype.toString.call(t),"date");if(pc(t))return ec(t)}var c,u="",l=!1,_=["{","}"];(rc(t)&&(l=!0,_=["[","]"]),fc(t))&&(u=" [Function"+(t.name?": "+t.name:"")+"]");return lc(t)&&(u=" "+RegExp.prototype.toString.call(t)),dc(t)&&(u=" "+Date.prototype.toUTCString.call(t)),pc(t)&&(u=" "+ec(t)),0!==a.length||l&&0!=t.length?r<0?lc(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=l?function(e,t,r,n,i){for(var a=[],o=0,s=t.length;o60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,u,_)):_[0]+u+_[1]}function ec(e){return"["+Error.prototype.toString.call(e)+"]"}function tc(e,t,r,n,i,a){var o,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),Sc(n,i)||(o="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=ic(r)?Zs(e,c.value,null):Zs(e,c.value,r-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),uc(o)){if(a&&i.match(/^\d+$/))return s;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function rc(e){return Array.isArray(e)}function nc(e){return"boolean"==typeof e}function ic(e){return null===e}function ac(e){return null==e}function oc(e){return"number"==typeof e}function sc(e){return"string"==typeof e}function cc(e){return"symbol"==typeof e}function uc(e){return void 0===e}function lc(e){return _c(e)&&"[object RegExp]"===yc(e)}function _c(e){return"object"==typeof e&&null!==e}function dc(e){return _c(e)&&"[object Date]"===yc(e)}function pc(e){return _c(e)&&("[object Error]"===yc(e)||e instanceof Error)}function fc(e){return"function"==typeof e}function gc(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function mc(e){return ns.isBuffer(e)}function yc(e){return Object.prototype.toString.call(e)}function vc(e){return e<10?"0"+e.toString(10):e.toString(10)}Xs.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Xs.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var hc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Dc(){var e=new Date,t=[vc(e.getHours()),vc(e.getMinutes()),vc(e.getSeconds())].join(":");return[e.getDate(),hc[e.getMonth()],t].join(" ")}function bc(){console.log("%s - %s",Dc(),qs.apply(null,arguments))}function xc(e,t){if(!t||!_c(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}function Sc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Cc={inherits:Us,_extend:xc,log:bc,isBuffer:mc,isPrimitive:gc,isFunction:fc,isError:pc,isDate:dc,isObject:_c,isRegExp:lc,isUndefined:uc,isSymbol:cc,isString:sc,isNumber:oc,isNullOrUndefined:ac,isNull:ic,isBoolean:nc,isArray:rc,inspect:Xs,deprecate:Ws,format:qs,debuglog:Ys},Ec=Object.freeze({__proto__:null,format:qs,deprecate:Ws,debuglog:Ys,inspect:Xs,isArray:rc,isBoolean:nc,isNull:ic,isNullOrUndefined:ac,isNumber:oc,isString:sc,isSymbol:cc,isUndefined:uc,isRegExp:lc,isObject:_c,isDate:dc,isError:pc,isFunction:fc,isPrimitive:gc,isBuffer:mc,log:bc,inherits:Us,_extend:xc,default:Cc}),Tc=(e,t=Qr.argv)=>{const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n=2,has16m:e>=3}}function Pc(e,t){if(0===Fc)return 0;if(Tc("color=16m")||Tc("color=full")||Tc("color=truecolor"))return 3;if(Tc("color=256"))return 2;if(e&&!t&&void 0===Fc)return 0;const r=Fc||0;if("dumb"===Ac.TERM)return r;if("win32"===Qr.platform){const e=T.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Ac)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in Ac))||"codeship"===Ac.CI_NAME?1:r;if("TEAMCITY_VERSION"in Ac)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ac.TEAMCITY_VERSION)?1:0;if("truecolor"===Ac.COLORTERM)return 3;if("TERM_PROGRAM"in Ac){const e=parseInt((Ac.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ac.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ac.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ac.TERM)||"COLORTERM"in Ac?1:r}Tc("no-color")||Tc("no-colors")||Tc("color=false")||Tc("color=never")?Fc=0:(Tc("color")||Tc("colors")||Tc("color=true")||Tc("color=always"))&&(Fc=1),"FORCE_COLOR"in Ac&&(Fc="true"===Ac.FORCE_COLOR?1:"false"===Ac.FORCE_COLOR?0:0===Ac.FORCE_COLOR.length?1:Math.min(parseInt(Ac.FORCE_COLOR,10),3));var wc={supportsColor:function(e){return Nc(Pc(e,e&&e.isTTY))},stdout:Nc(Pc(!0,kc.isatty(1))),stderr:Nc(Pc(!0,kc.isatty(2)))},Ic=C(Ec),Oc=E((function(e,t){t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let n=0;n{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=wc;e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(Qr.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let n=Qr.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{}),e.exports=Lo(t);const{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,Ic.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,Ic.inspect(e,this.inspectOpts)}})),Mc=E((function(e){void 0===Qr||"renderer"===Qr.type||!0===Qr.browser||Qr.__nwjs?e.exports=Ro:e.exports=Oc})),Lc={"{":"}","(":")","[":"]"},Rc=/\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/,Bc=/\\(.)|(^!|[*?{}()[\]]|\(\?)/,jc=function(e,t){if("string"!=typeof e||""===e)return!1;if(function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1}(e))return!0;var r,n=Rc;for(t&&!1===t.strict&&(n=Bc);r=n.exec(e);){if(r[2])return!0;var i=r.index+r[0].length,a=r[1],o=a?Lc[a]:null;if(a&&o){var s=e.indexOf(o,i);-1!==s&&(i=s+1)}e=e.slice(i)}return!1};const{MAX_LENGTH:Jc}=en,{re:Kc,t:zc}=tn;var Uc=(e,t)=>{if(t=nn(t),e instanceof fn)return e;if("string"!=typeof e)return null;if(e.length>Jc)return null;if(!(t.loose?Kc[zc.LOOSE]:Kc[zc.FULL]).test(e))return null;try{return new fn(e,t)}catch(e){return null}};var Vc=(e,t)=>{const r=Uc(e,t);return r?r.version:null};var qc=(e,t)=>{const r=Uc(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var Wc=(e,t,r,n)=>{"string"==typeof r&&(n=r,r=void 0);try{return new fn(e,r).inc(t,n).version}catch(e){return null}};var Hc=(e,t,r)=>0===gn(e,t,r);var Gc=(e,t)=>{if(Hc(e,t))return null;{const r=Uc(e),n=Uc(t),i=r.prerelease.length||n.prerelease.length,a=i?"pre":"",o=i?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==n[e])return a+e;return o}};var Yc=(e,t)=>new fn(e,t).major;var Xc=(e,t)=>new fn(e,t).minor;var $c=(e,t)=>new fn(e,t).patch;var Qc=(e,t)=>{const r=Uc(e,t);return r&&r.prerelease.length?r.prerelease:null};var Zc=(e,t,r)=>gn(t,e,r);var eu=(e,t)=>gn(e,t,!0);var tu=(e,t,r)=>{const n=new fn(e,r),i=new fn(t,r);return n.compare(i)||n.compareBuild(i)};var ru=(e,t)=>e.sort(((e,r)=>tu(e,r,t)));var nu=(e,t)=>e.sort(((e,r)=>tu(r,e,t)));var iu=(e,t,r)=>gn(e,t,r)>0;var au=(e,t,r)=>0!==gn(e,t,r);var ou=(e,t,r)=>gn(e,t,r)<=0;var su=(e,t,r,n)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return Hc(e,r,n);case"!=":return au(e,r,n);case">":return iu(e,r,n);case">=":return yn(e,r,n);case"<":return mn(e,r,n);case"<=":return ou(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};const{re:cu,t:uu}=tn;var lu=(e,t)=>{if(e instanceof fn)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=cu[uu.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),cu[uu.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;cu[uu.COERCERTL].lastIndex=-1}else r=e.match(cu[uu.COERCE]);return null===r?null:Uc(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)},_u=du;function du(e){var t=this;if(t instanceof du||(t=new du),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,n=arguments.length;r1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},du.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},du.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},du.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},du.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new du;if(tthis.length&&(t=this.length);for(var n=0,i=this.head;null!==i&&nthis.length&&(t=this.length);for(var n=this.length,i=this.tail;null!==i&&n>t;n--)i=i.prev;for(;null!==i&&n>e;n--,i=i.prev)r.push(i.value);return r},du.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;null!==i&&n1;const Au=(e,t,r)=>{const n=e[Eu].get(t);if(n){const t=n.value;if(Fu(e,t)){if(Pu(e,n),!e[Du])return}else r&&(e[Tu]&&(n.value.now=Date.now()),e[Cu].unshiftNode(n));return t.value}},Fu=(e,t)=>{if(!t||!t.maxAge&&!e[bu])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[bu]&&r>e[bu]},Nu=e=>{if(e[vu]>e[yu])for(let t=e[Cu].tail;e[vu]>e[yu]&&null!==t;){const r=t.prev;Pu(e,t),t=r}},Pu=(e,t)=>{if(t){const r=t.value;e[xu]&&e[xu](r.key,r.value),e[vu]-=r.length,e[Eu].delete(r.key),e[Cu].removeNode(t)}};class wu{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}const Iu=(e,t,r,n)=>{let i=r.value;Fu(e,i)&&(Pu(e,r),e[Du]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var Ou=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[yu]=e.max||1/0;const t=e.length||ku;if(this[hu]="function"!=typeof t?ku:t,this[Du]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[bu]=e.maxAge||0,this[xu]=e.dispose,this[Su]=e.noDisposeOnSet||!1,this[Tu]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[yu]=e||1/0,Nu(this)}get max(){return this[yu]}set allowStale(e){this[Du]=!!e}get allowStale(){return this[Du]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[bu]=e,Nu(this)}get maxAge(){return this[bu]}set lengthCalculator(e){"function"!=typeof e&&(e=ku),e!==this[hu]&&(this[hu]=e,this[vu]=0,this[Cu].forEach((e=>{e.length=this[hu](e.value,e.key),this[vu]+=e.length}))),Nu(this)}get lengthCalculator(){return this[hu]}get length(){return this[vu]}get itemCount(){return this[Cu].length}rforEach(e,t){t=t||this;for(let r=this[Cu].tail;null!==r;){const n=r.prev;Iu(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[Cu].head;null!==r;){const n=r.next;Iu(this,e,r,t),r=n}}keys(){return this[Cu].toArray().map((e=>e.key))}values(){return this[Cu].toArray().map((e=>e.value))}reset(){this[xu]&&this[Cu]&&this[Cu].length&&this[Cu].forEach((e=>this[xu](e.key,e.value))),this[Eu]=new Map,this[Cu]=new _u,this[vu]=0}dump(){return this[Cu].map((e=>!Fu(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[Cu]}set(e,t,r){if((r=r||this[bu])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,i=this[hu](t,e);if(this[Eu].has(e)){if(i>this[yu])return Pu(this,this[Eu].get(e)),!1;const a=this[Eu].get(e).value;return this[xu]&&(this[Su]||this[xu](e,a.value)),a.now=n,a.maxAge=r,a.value=t,this[vu]+=i-a.length,a.length=i,this.get(e),Nu(this),!0}const a=new wu(e,t,i,n,r);return a.length>this[yu]?(this[xu]&&this[xu](e,t),!1):(this[vu]+=a.length,this[Cu].unshift(a),this[Eu].set(e,this[Cu].head),Nu(this),!0)}has(e){if(!this[Eu].has(e))return!1;const t=this[Eu].get(e).value;return!Fu(this,t)}get(e){return Au(this,e,!0)}peek(e){return Au(this,e,!1)}pop(){const e=this[Cu].tail;return e?(Pu(this,e),e.value):null}del(e){Pu(this,this[Eu].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[Eu].forEach(((e,t)=>Au(this,t,!1)))}};class Mu{constructor(e,t){if(t=nn(t),e instanceof Mu)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Mu(e.raw,t);if(e instanceof ol)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!Uu(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&Vu(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=Ru.get(t);if(r)return r;const n=this.options.loose,i=n?Bu[ju.HYPHENRANGELOOSE]:Bu[ju.HYPHENRANGE];e=e.replace(i,rl(this.options.includePrerelease)),Zr("hyphen replace",e),e=e.replace(Bu[ju.COMPARATORTRIM],Ju),Zr("comparator trim",e,Bu[ju.COMPARATORTRIM]),e=(e=(e=e.replace(Bu[ju.TILDETRIM],Ku)).replace(Bu[ju.CARETTRIM],zu)).split(/\s+/).join(" ");const a=n?Bu[ju.COMPARATORLOOSE]:Bu[ju.COMPARATOR],o=e.split(" ").map((e=>Wu(e,this.options))).join(" ").split(/\s+/).map((e=>tl(e,this.options))).filter(this.options.loose?e=>!!e.match(a):()=>!0).map((e=>new ol(e,this.options)));o.length;const s=new Map;for(const e of o){if(Uu(e))return[e];s.set(e.value,e)}s.size>1&&s.has("")&&s.delete("");const c=[...s.values()];return Ru.set(t,c),c}intersects(e,t){if(!(e instanceof Mu))throw new TypeError("a Range is required");return this.set.some((r=>qu(r,t)&&e.set.some((e=>qu(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new fn(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,Vu=e=>""===e.value,qu=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},Wu=(e,t)=>(Zr("comp",e,t),e=Xu(e,t),Zr("caret",e),e=Gu(e,t),Zr("tildes",e),e=Qu(e,t),Zr("xrange",e),e=el(e,t),Zr("stars",e),e),Hu=e=>!e||"x"===e.toLowerCase()||"*"===e,Gu=(e,t)=>e.trim().split(/\s+/).map((e=>Yu(e,t))).join(" "),Yu=(e,t)=>{const r=t.loose?Bu[ju.TILDELOOSE]:Bu[ju.TILDE];return e.replace(r,((t,r,n,i,a)=>{let o;return Zr("tilde",e,t,r,n,i,a),Hu(r)?o="":Hu(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:Hu(i)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:a?(Zr("replaceTilde pr",a),o=`>=${r}.${n}.${i}-${a} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,Zr("tilde return",o),o}))},Xu=(e,t)=>e.trim().split(/\s+/).map((e=>$u(e,t))).join(" "),$u=(e,t)=>{Zr("caret",e,t);const r=t.loose?Bu[ju.CARETLOOSE]:Bu[ju.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,a,o)=>{let s;return Zr("caret",e,t,r,i,a,o),Hu(r)?s="":Hu(i)?s=`>=${r}.0.0${n} <${+r+1}.0.0-0`:Hu(a)?s="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:o?(Zr("replaceCaret pr",o),s="0"===r?"0"===i?`>=${r}.${i}.${a}-${o} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}-${o} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a}-${o} <${+r+1}.0.0-0`):(Zr("no pr"),s="0"===r?"0"===i?`>=${r}.${i}.${a}${n} <${r}.${i}.${+a+1}-0`:`>=${r}.${i}.${a}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${a} <${+r+1}.0.0-0`),Zr("caret return",s),s}))},Qu=(e,t)=>(Zr("replaceXRanges",e,t),e.split(/\s+/).map((e=>Zu(e,t))).join(" ")),Zu=(e,t)=>{e=e.trim();const r=t.loose?Bu[ju.XRANGELOOSE]:Bu[ju.XRANGE];return e.replace(r,((r,n,i,a,o,s)=>{Zr("xRange",e,r,n,i,a,o,s);const c=Hu(i),u=c||Hu(a),l=u||Hu(o),_=l;return"="===n&&_&&(n=""),s=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&_?(u&&(a=0),o=0,">"===n?(n=">=",u?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):"<="===n&&(n="<",u?i=+i+1:a=+a+1),"<"===n&&(s="-0"),r=`${n+i}.${a}.${o}${s}`):u?r=`>=${i}.0.0${s} <${+i+1}.0.0-0`:l&&(r=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`),Zr("xRange return",r),r}))},el=(e,t)=>(Zr("replaceStars",e,t),e.trim().replace(Bu[ju.STAR],"")),tl=(e,t)=>(Zr("replaceGTE0",e,t),e.trim().replace(Bu[t.includePrerelease?ju.GTE0PRE:ju.GTE0],"")),rl=e=>(t,r,n,i,a,o,s,c,u,l,_,d,p)=>`${r=Hu(n)?"":Hu(i)?`>=${n}.0.0${e?"-0":""}`:Hu(a)?`>=${n}.${i}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=Hu(u)?"":Hu(l)?`<${+u+1}.0.0-0`:Hu(_)?`<${u}.${+l+1}.0-0`:d?`<=${u}.${l}.${_}-${d}`:e?`<${u}.${l}.${+_+1}-0`:`<=${c}`}`.trim(),nl=(e,t,r)=>{for(let r=0;r0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0},il=Symbol("SemVer ANY");class al{static get ANY(){return il}constructor(e,t){if(t=nn(t),e instanceof al){if(e.loose===!!t.loose)return e;e=e.value}Zr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===il?this.value="":this.value=this.operator+this.semver.version,Zr("comp",this)}parse(e){const t=this.options.loose?sl[cl.COMPARATORLOOSE]:sl[cl.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new fn(r[2],this.options.loose):this.semver=il}toString(){return this.value}test(e){if(Zr("Comparator.test",e,this.options.loose),this.semver===il||e===il)return!0;if("string"==typeof e)try{e=new fn(e,this.options)}catch(e){return!1}return su(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof al))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new Lu(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new Lu(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=su(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=su(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||i&&a||o||s}}var ol=al;const{re:sl,t:cl}=tn;var ul=(e,t,r)=>{try{t=new Lu(t,r)}catch(e){return!1}return t.test(e)};var ll=(e,t)=>new Lu(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));var _l=(e,t,r)=>{let n=null,i=null,a=null;try{a=new Lu(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&-1!==i.compare(e)||(n=e,i=new fn(n,r)))})),n};var dl=(e,t,r)=>{let n=null,i=null,a=null;try{a=new Lu(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(n&&1!==i.compare(e)||(n=e,i=new fn(n,r)))})),n};var pl=(e,t)=>{e=new Lu(e,t);let r=new fn("0.0.0");if(e.test(r))return r;if(r=new fn("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t{const t=new fn(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!iu(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||r&&!iu(r,i)||(r=i)}return r&&e.test(r)?r:null};var fl=(e,t)=>{try{return new Lu(e,t).range||"*"}catch(e){return null}};const{ANY:gl}=ol;var ml=(e,t,r,n)=>{let i,a,o,s,c;switch(e=new fn(e,n),t=new Lu(t,n),r){case">":i=iu,a=ou,o=mn,s=">",c=">=";break;case"<":i=mn,a=yn,o=iu,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ul(e,t,n))return!1;for(let r=0;r{e.semver===gl&&(e=new ol(">=0.0.0")),l=l||e,_=_||e,i(e.semver,l.semver,n)?l=e:o(e.semver,_.semver,n)&&(_=e)})),l.operator===s||l.operator===c)return!1;if((!_.operator||_.operator===s)&&a(e,_.semver))return!1;if(_.operator===c&&o(e,_.semver))return!1}return!0};var yl=(e,t,r)=>ml(e,t,">",r);var vl=(e,t,r)=>ml(e,t,"<",r);var hl=(e,t,r)=>(e=new Lu(e,r),t=new Lu(t,r),e.intersects(t));const{ANY:Dl}=ol,bl=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===Dl){if(1===t.length&&t[0].semver===Dl)return!0;e=r.includePrerelease?[new ol(">=0.0.0-0")]:[new ol(">=0.0.0")]}if(1===t.length&&t[0].semver===Dl){if(r.includePrerelease)return!0;t=[new ol(">=0.0.0")]}const n=new Set;let i,a,o,s,c,u,l;for(const t of e)">"===t.operator||">="===t.operator?i=xl(i,t,r):"<"===t.operator||"<="===t.operator?a=Sl(a,t,r):n.add(t.semver);if(n.size>1)return null;if(i&&a){if(o=gn(i.semver,a.semver,r),o>0)return null;if(0===o&&(">="!==i.operator||"<="!==a.operator))return null}for(const e of n){if(i&&!ul(e,String(i),r))return null;if(a&&!ul(e,String(a),r))return null;for(const n of t)if(!ul(e,String(n),r))return!1;return!0}let _=!(!a||r.includePrerelease||!a.semver.prerelease.length)&&a.semver,d=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;_&&1===_.prerelease.length&&"<"===a.operator&&0===_.prerelease[0]&&(_=!1);for(const e of t){if(l=l||">"===e.operator||">="===e.operator,u=u||"<"===e.operator||"<="===e.operator,i)if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),">"===e.operator||">="===e.operator){if(s=xl(i,e,r),s===e&&s!==i)return!1}else if(">="===i.operator&&!ul(i.semver,String(e),r))return!1;if(a)if(_&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===_.major&&e.semver.minor===_.minor&&e.semver.patch===_.patch&&(_=!1),"<"===e.operator||"<="===e.operator){if(c=Sl(a,e,r),c===e&&c!==a)return!1}else if("<="===a.operator&&!ul(a.semver,String(e),r))return!1;if(!e.operator&&(a||i)&&0!==o)return!1}return!(i&&u&&!a&&0!==o)&&(!(a&&l&&!i&&0!==o)&&(!d&&!_))},xl=(e,t,r)=>{if(!e)return t;const n=gn(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},Sl=(e,t,r)=>{if(!e)return t;const n=gn(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};var Cl=(e,t,r={})=>{if(e===t)return!0;e=new Lu(e,r),t=new Lu(t,r);let n=!1;e:for(const i of e.set){for(const e of t.set){const t=bl(i,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0},El={re:tn.re,src:tn.src,tokens:tn.t,SEMVER_SPEC_VERSION:en.SEMVER_SPEC_VERSION,SemVer:fn,compareIdentifiers:sn.compareIdentifiers,rcompareIdentifiers:sn.rcompareIdentifiers,parse:Uc,valid:Vc,clean:qc,inc:Wc,diff:Gc,major:Yc,minor:Xc,patch:$c,prerelease:Qc,compare:gn,rcompare:Zc,compareLoose:eu,compareBuild:tu,sort:ru,rsort:nu,gt:iu,lt:mn,eq:Hc,neq:au,gte:yn,lte:ou,cmp:su,coerce:lu,Comparator:ol,Range:Lu,satisfies:ul,toComparators:ll,maxSatisfying:_l,minSatisfying:dl,minVersion:pl,validRange:fl,outside:ml,gtr:yl,ltr:vl,intersects:hl,simplifyRange:(e,t,r)=>{const n=[];let i=null,a=null;const o=e.sort(((e,t)=>gn(e,t,r)));for(const e of o){ul(e,t,r)?(a=e,i||(i=e)):(a&&n.push([i,a]),a=null,i=null)}i&&n.push([i,null]);const s=[];for(const[e,t]of n)e===t?s.push(e):t||e!==o[0]?t?e===o[0]?s.push(`<=${t}`):s.push(`${e} - ${t}`):s.push(`>=${e}`):s.push("*");const c=s.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return c.length=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var kl=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Al=function(e){return kl.exec(e).slice(1)};function Fl(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:"/";if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=Tl(Bl(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function Nl(e){var t=Pl(e),r="/"===jl(e,-1);return(e=Tl(Bl(e.split("/"),(function(e){return!!e})),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function Pl(e){return"/"===e.charAt(0)}function wl(){var e=Array.prototype.slice.call(arguments,0);return Nl(Bl(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function Il(e,t){function r(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=Fl(e).substr(1),t=Fl(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),a=Math.min(n.length,i.length),o=a,s=0;s0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]0;for(var r=0,n=e;r>1);switch(n(r(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function v(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.Map=r("Map","tryGetNativeMap","createMapShim"),e.Set=r("Set","tryGetNativeSet","createSetShim"),e.getIterator=n,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=function(){return new e.Map},e.createMapFromTemplate=function(t){var r=new e.Map;for(var n in t)h.call(t,n)&&r.set(n,t[n]);return r},e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var r=0;r=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(t,r){for(var n=0;n0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;as&&e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0),n(r[o],t[a])){case-1:i.push(r[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=function(e,t){for(var r=0,n=0,i=e;nt?1:0}function j(e,t){return L(e,t)}e.toFileNameLowerCase=O,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var r=new e.Map;return function(e){var n=typeof e+":"+e,i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return et?1:0}}}();function U(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>r?o-r:1),u=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var l=o,_=1;_r)return;var f=n;n=i,i=f}var g=n[t.length];return g>r?void 0:g}function V(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function q(e,t){for(var r=t;r=r.length+n.length&&G(t,r)&&V(t,n)}function X(e,t,r,n){for(var i=0,a=e[n];i0;r--){var n=e.charCodeAt(r);if(n>=48&&n<=57)do{--r,n=e.charCodeAt(r)}while(r>0&&n>=48&&n<=57);else{if(!(r>4)||110!==n&&78!==n)break;if(--r,105!==(n=e.charCodeAt(r))&&73!==n)break;if(--r,109!==(n=e.charCodeAt(r))&&77!==n)break;--r,n=e.charCodeAt(r)}if(45!==n&&46!==n)break;t=r}return t===e.length?e:e.slice(0,t)},e.orderedRemoveItem=function(e,t){for(var r=0;ri&&(i=c.prefix.length,n=s)}return n},e.startsWith=G,e.removePrefix=function(e,t){return G(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=N),G(r(e),r(t))?e.substring(t.length):void 0},e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(){for(var e=[],t=0;t=0&&e.isWhiteSpaceLike(t.charCodeAt(r));)r--;return t.slice(0,r+1)},e.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(s||(s={})),function(e){var t;!function(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"}(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function u(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=u,(i=u=r.log||(r.log={})).error=function(e){c(t.Error,e)},i.warn=function(e){c(t.Warning,e)},i.log=function(e){c(t.Info,e)},i.trace=function(e){c(t.Verbose,e)};var l={};function _(e){return a>=e}function d(t,n){return!!_(t)||(l[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function p(e,t){var r=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||p),r}function f(e,t,r,n){e||(t=t?"False expression: "+t:"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),p(t,n||f))}function g(e,t,r){null==e&&p(t,r||g)}function m(e,t,r){return g(e,t,r||m),e}function y(e,t,r){for(var n=0,i=e;n0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=0,c=i;st)break;0!==l&&l&t&&(a=a+(a?"|":"")+_,o&=~l)}if(0===o)return a}else for(var d=0,p=i;dn)for(var i=0,o=e.getOwnKeys(l);i=c.level&&(r[s]=c,l[s]=void 0)}},r.shouldAssert=_,r.fail=p,r.failBadSyntaxKind=function e(t,r,n){return p((r||"Unexpected node.")+"\r\nNode "+b(t.kind)+" was unexpected.",n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){t!==r&&p("Expected "+t+" === "+r+". "+(n?i?n+" "+i:n:""),a||e)},r.assertLessThan=function e(t,r,n,i){t>=r&&p("Expected "+t+" < "+r+". "+(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&p("Expected "+t+" <= "+r,n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t= "+r,n||e)},r.assertIsDefined=g,r.checkDefined=m,r.assertDefined=m,r.assertEachIsDefined=y,r.checkEachDefined=v,r.assertEachDefined=v,r.assertNever=function t(r,n,i){return void 0===n&&(n="Illegal value:"),p(n+" "+("object"==typeof r&&e.hasProperty(r,"kind")&&e.hasProperty(r,"pos")&&b?"SyntaxKind: "+b(r.kind):JSON.stringify(r)),i||t)},r.assertEachNode=function t(r,n,i,a){d(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",(function(){return"Node array did not pass test '"+h(n)+"'."}),a||t)},r.assertNode=function e(t,r,n,i){d(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(function(){return"Node "+b(null==t?void 0:t.kind)+" did not pass test '"+h(r)+"'."}),i||e)},r.assertNotNode=function e(t,r,n,i){d(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(function(){return"Node "+b(t.kind)+" should not have passed test '"+h(r)+"'."}),i||e)},r.assertOptionalNode=function e(t,r,n,i){d(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",(function(){return"Node "+b(null==t?void 0:t.kind)+" did not pass test '"+h(r)+"'."}),i||e)},r.assertOptionalToken=function e(t,r,n,i){d(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(function(){return"Node "+b(null==t?void 0:t.kind)+" was not a '"+b(r)+"' token."}),i||e)},r.assertMissingNode=function e(t,r,n){d(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(function(){return"Node "+b(t.kind)+" was unexpected'."}),n||e)},r.type=function(e){},r.getFunctionName=h,r.formatSymbol=function(t){return"{ name: "+e.unescapeLeadingUnderscores(t.escapedName)+"; flags: "+T(t.flags)+"; declarations: "+e.map(t.declarations,(function(e){return b(e.kind)}))+" }"},r.formatEnum=D,r.formatSyntaxKind=b,r.formatNodeFlags=x,r.formatModifierFlags=S,r.formatTransformFlags=C,r.formatEmitFlags=E,r.formatSymbolFlags=T,r.formatTypeFlags=k,r.formatSignatureFlags=A,r.formatObjectFlags=F,r.formatFlowFlags=N;var P,w,I=!1;function O(e){return function(){throw R(),new Error("Debugging helpers could not be loaded.")}().formatControlFlowGraph(e)}function M(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return e+(t?" ("+N(t)+")":"")}},__debugFlowFlags:{get:function(){return D(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return O(this)}}})}function L(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return"NodeArray "+(e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"))}}})}function R(){if(!I){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return t+" '"+e.symbolName(this)+"'"+(r?" ("+T(r)+")":"")}},__debugFlags:{get:function(){return T(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType "+JSON.stringify(this.value):2048&this.flags?"LiteralType "+(this.value.negative?"-":"")+this.value.base10Value+"n":8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType "+this.intrinsicName:1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-1344&this.objectFlags:0;return t+(this.symbol?" '"+e.symbolName(this.symbol)+"'":"")+(r?" ("+F(r)+")":"")}},__debugFlags:{get:function(){return k(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?F(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return A(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n=0;return _?function(e,t,r,n){var i=B(e,!0,t,r,n);return function(){throw new TypeError(i)}}(t,s,l,r.message):d?function(e,t,r,n){var i=!1;return function(){i||(u.warn(B(e,!1,t,r,n)),i=!0)}}(t,s,l,r.message):e.noop}r.printControlFlowGraph=function(e){return console.log(O(e))},r.formatControlFlowGraph=O,r.attachFlowNodeDebugInfo=function(e){I&&("function"==typeof Object.setPrototypeOf?(P||M(P=Object.create(Object.prototype)),Object.setPrototypeOf(e,P)):M(e))},r.attachNodeArrayDebugInfo=function(e){I&&("function"==typeof Object.setPrototypeOf?(w||L(w=Object.create(Array.prototype)),Object.setPrototypeOf(e,w)):L(e))},r.enableDebugInfo=R,r.deprecate=function(e,t){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(j(h(e),t),e)}}(e.Debug||(e.Debug={}))}(s||(s={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function t(t,i,a,s,c){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof t){var u=e.Debug.checkDefined(o(t),"Invalid version");t=u.major,i=u.minor,a=u.patch,s=u.prerelease,c=u.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=function(e){var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a|>=|=)?\s*([a-z0-9-+.*]+)$/i;function p(t){for(var r=[],n=0,i=e.trimString(t).split(c);n=",n.version)),y(i.major)||r.push(y(i.minor)?v("<",i.version.increment("major")):y(i.patch)?v("<",i.version.increment("minor")):v("<=",i.version)),!0)}function m(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(y(o))"<"!==e&&">"!==e||r.push(v("<",a.zero));else switch(e){case"~":r.push(v(">=",i)),r.push(v("<",i.increment(y(s)?"major":"minor")));break;case"^":r.push(v(">=",i)),r.push(v("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":r.push(v(e,i));break;case"<=":case">":r.push(y(s)?v("<="===e?"<":">=",i.increment("major")):y(c)?v("<="===e?"<":">=",i.increment("minor")):v(e,i));break;case"=":case void 0:y(s)||y(c)?(r.push(v(">=",i)),r.push(v("<",i.increment(y(s)?"major":"minor")))):r.push(v("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function v(e,t){return{operator:e,operand:t}}function h(e,t){for(var r=0,n=t;r":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function b(t){return e.map(t,x).join(" ")}function x(e){return""+e.operator+e.operand}}(s||(s={})),function(e){function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof t}var r=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if(void 0!==Qr&&Qr.nextTick&&!Qr.browser&&"function"==typeof require)try{var r,n={},i=n.performance,a=n.PerformanceObserver;if(t(i,a)){r=i;var o=new e.Version("999.999.999");return new e.VersionRange("<12.16.3 || 13 <13.13").test(o)&&(r={get timeOrigin(){return i.timeOrigin},now:function(){return i.now()},mark:function(e){return i.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",i.mark(r)),i.measure(e,t,r),"__performance.measure-fix__"===r&&i.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:r,PerformanceObserver:a}}}catch(e){}}(),n=null==r?void 0:r.performance;e.tryGetNativePerformanceHooks=function(){return r},e.timestamp=n?function(){return n.now()}:Date.now?Date.now:function(){return+new Date}}(s||(s={})),function(e){!function(t){var r,n;function i(t,r,n){var i=0;return{enter:function(){1==++i&&l(r)},exit:function(){0==--i?(l(n),_(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=function(e,r,n,a){return e?i(r,n,a):t.nullTimer},t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,u=new e.Map;function l(t){var r;if(a){var i=null!==(r=c.get(t))&&void 0!==r?r:0;c.set(t,i+1),s.set(t,e.timestamp()),null==n||n.mark(t)}}function _(t,r,i){var c,l;if(a){var _=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),d=null!==(l=void 0!==r?s.get(r):void 0)&&void 0!==l?l:o,p=u.get(t)||0;u.set(t,p+(_-d)),null==n||n.measure(t,r,i)}}t.mark=l,t.measure=_,t.getCount=function(e){return c.get(e)||0},t.getDuration=function(e){return u.get(e)||0},t.forEachMeasure=function(e){u.forEach((function(t,r){return e(r,t)}))},t.isEnabled=function(){return a},t.enable=function(t){var i;return void 0===t&&(t=e.sys),a||(a=!0,r||(r=e.tryGetNativePerformanceHooks()),r&&(o=r.performance.timeOrigin,(r.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(n=r.performance))),!0},t.disable=function(){a&&(s.clear(),c.clear(),u.clear(),n=void 0,a=!1)}}(e.performance||(e.performance={}))}(s||(s={})),function(e){var t,r,n={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{t=Qr.env.TS_ETW_MODULE_PATH;r=void 0}catch(e){r=void 0}e.perfLogger=r&&r.logEvent?r:n}(s||(s={})),function(e){var t;!function(t){var n,i,a,o,s=0,c=0,u=[],l=[];t.startTracing=function(o,_,d){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===n)try{n=Ul}catch(e){throw new Error("tracing requires having fs\n(original error: "+(e.message||e)+")")}i=o,u.length=0,void 0===a&&(a=e.combinePaths(_,"legend.json")),n.existsSync(_)||n.mkdirSync(_,{recursive:!0});var p="build"===i?"."+Qr.pid+"-"+ ++s:"server"===i?"."+Qr.pid:"",f=e.combinePaths(_,"trace"+p+".json"),g=e.combinePaths(_,"types"+p+".json");l.push({configFilePath:d,tracePath:f,typesPath:g}),c=n.openSync(f,"w"),e.tracing=t;var m={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(c,"[\n"+[r({name:"process_name",args:{name:"tsc"}},m),r({name:"thread_name",args:{name:"Main"}},m),r(r({name:"TracingStartedInBrowser"},m),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))},t.stopTracing=function(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!u.length==("server"!==i)),n.writeSync(c,"\n]\n"),n.closeSync(c),e.tracing=void 0,u.length?function(t){var i,a,o,s,c,u,_,d,p,g,m,y,v,h,D,b,x,S,C,E,T,k;e.performance.mark("beginDumpTypes");var A=l[l.length-1].typesPath,F=n.openSync(A,"w"),N=new e.Map;n.writeSync(F,"[");for(var P=t.length,w=0;w0),d(_.length-1,1e3*e.timestamp()),_.length--},t.popAll=function(){for(var t=1e3*e.timestamp(),r=_.length-1;r>=0;r--)d(r,t);_.length=0};function d(e,t){var r=_[e],n=r.phase,i=r.name,a=r.args,o=r.time;r.separateBeginAndEnd?p("E",n,i,a,void 0,t):1e4-o%1e4<=t-o&&p("X",n,i,a,'"dur":'+(t-o),o)}function p(t,r,a,o,s,u){void 0===u&&(u=1e3*e.timestamp()),"server"===i&&"checkTypes"===r||(e.performance.mark("beginTracing"),n.writeSync(c,',\n{"pid":1,"tid":1,"ph":"'+t+'","cat":"'+r+'","ts":'+u+',"name":"'+a+'"'),s&&n.writeSync(c,","+s),o&&n.writeSync(c,',"args":'+JSON.stringify(o)),n.writeSync(c,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function f(t){var r=e.getSourceFileOfNode(t);return r?{path:r.path,start:n(e.getLineAndCharacterOfPosition(r,t.pos)),end:n(e.getLineAndCharacterOfPosition(r,t.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}t.dumpLegend=function(){a&&n.writeFileSync(a,JSON.stringify(l))}}(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend}(s||(s={})),function(e){var t,r,n,i,a,o,s,c,u;(t=e.SyntaxKind||(e.SyntaxKind={}))[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.NumericLiteral=8]="NumericLiteral",t[t.BigIntLiteral=9]="BigIntLiteral",t[t.StringLiteral=10]="StringLiteral",t[t.JsxText=11]="JsxText",t[t.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=13]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=15]="TemplateHead",t[t.TemplateMiddle=16]="TemplateMiddle",t[t.TemplateTail=17]="TemplateTail",t[t.OpenBraceToken=18]="OpenBraceToken",t[t.CloseBraceToken=19]="CloseBraceToken",t[t.OpenParenToken=20]="OpenParenToken",t[t.CloseParenToken=21]="CloseParenToken",t[t.OpenBracketToken=22]="OpenBracketToken",t[t.CloseBracketToken=23]="CloseBracketToken",t[t.DotToken=24]="DotToken",t[t.DotDotDotToken=25]="DotDotDotToken",t[t.SemicolonToken=26]="SemicolonToken",t[t.CommaToken=27]="CommaToken",t[t.QuestionDotToken=28]="QuestionDotToken",t[t.LessThanToken=29]="LessThanToken",t[t.LessThanSlashToken=30]="LessThanSlashToken",t[t.GreaterThanToken=31]="GreaterThanToken",t[t.LessThanEqualsToken=32]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=34]="EqualsEqualsToken",t[t.ExclamationEqualsToken=35]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",t[t.PlusToken=39]="PlusToken",t[t.MinusToken=40]="MinusToken",t[t.AsteriskToken=41]="AsteriskToken",t[t.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",t[t.SlashToken=43]="SlashToken",t[t.PercentToken=44]="PercentToken",t[t.PlusPlusToken=45]="PlusPlusToken",t[t.MinusMinusToken=46]="MinusMinusToken",t[t.LessThanLessThanToken=47]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=50]="AmpersandToken",t[t.BarToken=51]="BarToken",t[t.CaretToken=52]="CaretToken",t[t.ExclamationToken=53]="ExclamationToken",t[t.TildeToken=54]="TildeToken",t[t.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",t[t.BarBarToken=56]="BarBarToken",t[t.QuestionToken=57]="QuestionToken",t[t.ColonToken=58]="ColonToken",t[t.AtToken=59]="AtToken",t[t.QuestionQuestionToken=60]="QuestionQuestionToken",t[t.BacktickToken=61]="BacktickToken",t[t.HashToken=62]="HashToken",t[t.EqualsToken=63]="EqualsToken",t[t.PlusEqualsToken=64]="PlusEqualsToken",t[t.MinusEqualsToken=65]="MinusEqualsToken",t[t.AsteriskEqualsToken=66]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=68]="SlashEqualsToken",t[t.PercentEqualsToken=69]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=73]="AmpersandEqualsToken",t[t.BarEqualsToken=74]="BarEqualsToken",t[t.BarBarEqualsToken=75]="BarBarEqualsToken",t[t.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",t[t.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",t[t.CaretEqualsToken=78]="CaretEqualsToken",t[t.Identifier=79]="Identifier",t[t.PrivateIdentifier=80]="PrivateIdentifier",t[t.BreakKeyword=81]="BreakKeyword",t[t.CaseKeyword=82]="CaseKeyword",t[t.CatchKeyword=83]="CatchKeyword",t[t.ClassKeyword=84]="ClassKeyword",t[t.ConstKeyword=85]="ConstKeyword",t[t.ContinueKeyword=86]="ContinueKeyword",t[t.DebuggerKeyword=87]="DebuggerKeyword",t[t.DefaultKeyword=88]="DefaultKeyword",t[t.DeleteKeyword=89]="DeleteKeyword",t[t.DoKeyword=90]="DoKeyword",t[t.ElseKeyword=91]="ElseKeyword",t[t.EnumKeyword=92]="EnumKeyword",t[t.ExportKeyword=93]="ExportKeyword",t[t.ExtendsKeyword=94]="ExtendsKeyword",t[t.FalseKeyword=95]="FalseKeyword",t[t.FinallyKeyword=96]="FinallyKeyword",t[t.ForKeyword=97]="ForKeyword",t[t.FunctionKeyword=98]="FunctionKeyword",t[t.IfKeyword=99]="IfKeyword",t[t.ImportKeyword=100]="ImportKeyword",t[t.InKeyword=101]="InKeyword",t[t.InstanceOfKeyword=102]="InstanceOfKeyword",t[t.NewKeyword=103]="NewKeyword",t[t.NullKeyword=104]="NullKeyword",t[t.ReturnKeyword=105]="ReturnKeyword",t[t.SuperKeyword=106]="SuperKeyword",t[t.SwitchKeyword=107]="SwitchKeyword",t[t.ThisKeyword=108]="ThisKeyword",t[t.ThrowKeyword=109]="ThrowKeyword",t[t.TrueKeyword=110]="TrueKeyword",t[t.TryKeyword=111]="TryKeyword",t[t.TypeOfKeyword=112]="TypeOfKeyword",t[t.VarKeyword=113]="VarKeyword",t[t.VoidKeyword=114]="VoidKeyword",t[t.WhileKeyword=115]="WhileKeyword",t[t.WithKeyword=116]="WithKeyword",t[t.ImplementsKeyword=117]="ImplementsKeyword",t[t.InterfaceKeyword=118]="InterfaceKeyword",t[t.LetKeyword=119]="LetKeyword",t[t.PackageKeyword=120]="PackageKeyword",t[t.PrivateKeyword=121]="PrivateKeyword",t[t.ProtectedKeyword=122]="ProtectedKeyword",t[t.PublicKeyword=123]="PublicKeyword",t[t.StaticKeyword=124]="StaticKeyword",t[t.YieldKeyword=125]="YieldKeyword",t[t.AbstractKeyword=126]="AbstractKeyword",t[t.AsKeyword=127]="AsKeyword",t[t.AssertsKeyword=128]="AssertsKeyword",t[t.AnyKeyword=129]="AnyKeyword",t[t.AsyncKeyword=130]="AsyncKeyword",t[t.AwaitKeyword=131]="AwaitKeyword",t[t.BooleanKeyword=132]="BooleanKeyword",t[t.ConstructorKeyword=133]="ConstructorKeyword",t[t.DeclareKeyword=134]="DeclareKeyword",t[t.GetKeyword=135]="GetKeyword",t[t.InferKeyword=136]="InferKeyword",t[t.IntrinsicKeyword=137]="IntrinsicKeyword",t[t.IsKeyword=138]="IsKeyword",t[t.KeyOfKeyword=139]="KeyOfKeyword",t[t.ModuleKeyword=140]="ModuleKeyword",t[t.NamespaceKeyword=141]="NamespaceKeyword",t[t.NeverKeyword=142]="NeverKeyword",t[t.ReadonlyKeyword=143]="ReadonlyKeyword",t[t.RequireKeyword=144]="RequireKeyword",t[t.NumberKeyword=145]="NumberKeyword",t[t.ObjectKeyword=146]="ObjectKeyword",t[t.SetKeyword=147]="SetKeyword",t[t.StringKeyword=148]="StringKeyword",t[t.SymbolKeyword=149]="SymbolKeyword",t[t.TypeKeyword=150]="TypeKeyword",t[t.UndefinedKeyword=151]="UndefinedKeyword",t[t.UniqueKeyword=152]="UniqueKeyword",t[t.UnknownKeyword=153]="UnknownKeyword",t[t.FromKeyword=154]="FromKeyword",t[t.GlobalKeyword=155]="GlobalKeyword",t[t.BigIntKeyword=156]="BigIntKeyword",t[t.OverrideKeyword=157]="OverrideKeyword",t[t.OfKeyword=158]="OfKeyword",t[t.QualifiedName=159]="QualifiedName",t[t.ComputedPropertyName=160]="ComputedPropertyName",t[t.TypeParameter=161]="TypeParameter",t[t.Parameter=162]="Parameter",t[t.Decorator=163]="Decorator",t[t.PropertySignature=164]="PropertySignature",t[t.PropertyDeclaration=165]="PropertyDeclaration",t[t.MethodSignature=166]="MethodSignature",t[t.MethodDeclaration=167]="MethodDeclaration",t[t.ClassStaticBlockDeclaration=168]="ClassStaticBlockDeclaration",t[t.Constructor=169]="Constructor",t[t.GetAccessor=170]="GetAccessor",t[t.SetAccessor=171]="SetAccessor",t[t.CallSignature=172]="CallSignature",t[t.ConstructSignature=173]="ConstructSignature",t[t.IndexSignature=174]="IndexSignature",t[t.TypePredicate=175]="TypePredicate",t[t.TypeReference=176]="TypeReference",t[t.FunctionType=177]="FunctionType",t[t.ConstructorType=178]="ConstructorType",t[t.TypeQuery=179]="TypeQuery",t[t.TypeLiteral=180]="TypeLiteral",t[t.ArrayType=181]="ArrayType",t[t.TupleType=182]="TupleType",t[t.OptionalType=183]="OptionalType",t[t.RestType=184]="RestType",t[t.UnionType=185]="UnionType",t[t.IntersectionType=186]="IntersectionType",t[t.ConditionalType=187]="ConditionalType",t[t.InferType=188]="InferType",t[t.ParenthesizedType=189]="ParenthesizedType",t[t.ThisType=190]="ThisType",t[t.TypeOperator=191]="TypeOperator",t[t.IndexedAccessType=192]="IndexedAccessType",t[t.MappedType=193]="MappedType",t[t.LiteralType=194]="LiteralType",t[t.NamedTupleMember=195]="NamedTupleMember",t[t.TemplateLiteralType=196]="TemplateLiteralType",t[t.TemplateLiteralTypeSpan=197]="TemplateLiteralTypeSpan",t[t.ImportType=198]="ImportType",t[t.ObjectBindingPattern=199]="ObjectBindingPattern",t[t.ArrayBindingPattern=200]="ArrayBindingPattern",t[t.BindingElement=201]="BindingElement",t[t.ArrayLiteralExpression=202]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=203]="ObjectLiteralExpression",t[t.PropertyAccessExpression=204]="PropertyAccessExpression",t[t.ElementAccessExpression=205]="ElementAccessExpression",t[t.CallExpression=206]="CallExpression",t[t.NewExpression=207]="NewExpression",t[t.TaggedTemplateExpression=208]="TaggedTemplateExpression",t[t.TypeAssertionExpression=209]="TypeAssertionExpression",t[t.ParenthesizedExpression=210]="ParenthesizedExpression",t[t.FunctionExpression=211]="FunctionExpression",t[t.ArrowFunction=212]="ArrowFunction",t[t.DeleteExpression=213]="DeleteExpression",t[t.TypeOfExpression=214]="TypeOfExpression",t[t.VoidExpression=215]="VoidExpression",t[t.AwaitExpression=216]="AwaitExpression",t[t.PrefixUnaryExpression=217]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=218]="PostfixUnaryExpression",t[t.BinaryExpression=219]="BinaryExpression",t[t.ConditionalExpression=220]="ConditionalExpression",t[t.TemplateExpression=221]="TemplateExpression",t[t.YieldExpression=222]="YieldExpression",t[t.SpreadElement=223]="SpreadElement",t[t.ClassExpression=224]="ClassExpression",t[t.OmittedExpression=225]="OmittedExpression",t[t.ExpressionWithTypeArguments=226]="ExpressionWithTypeArguments",t[t.AsExpression=227]="AsExpression",t[t.NonNullExpression=228]="NonNullExpression",t[t.MetaProperty=229]="MetaProperty",t[t.SyntheticExpression=230]="SyntheticExpression",t[t.TemplateSpan=231]="TemplateSpan",t[t.SemicolonClassElement=232]="SemicolonClassElement",t[t.Block=233]="Block",t[t.EmptyStatement=234]="EmptyStatement",t[t.VariableStatement=235]="VariableStatement",t[t.ExpressionStatement=236]="ExpressionStatement",t[t.IfStatement=237]="IfStatement",t[t.DoStatement=238]="DoStatement",t[t.WhileStatement=239]="WhileStatement",t[t.ForStatement=240]="ForStatement",t[t.ForInStatement=241]="ForInStatement",t[t.ForOfStatement=242]="ForOfStatement",t[t.ContinueStatement=243]="ContinueStatement",t[t.BreakStatement=244]="BreakStatement",t[t.ReturnStatement=245]="ReturnStatement",t[t.WithStatement=246]="WithStatement",t[t.SwitchStatement=247]="SwitchStatement",t[t.LabeledStatement=248]="LabeledStatement",t[t.ThrowStatement=249]="ThrowStatement",t[t.TryStatement=250]="TryStatement",t[t.DebuggerStatement=251]="DebuggerStatement",t[t.VariableDeclaration=252]="VariableDeclaration",t[t.VariableDeclarationList=253]="VariableDeclarationList",t[t.FunctionDeclaration=254]="FunctionDeclaration",t[t.ClassDeclaration=255]="ClassDeclaration",t[t.InterfaceDeclaration=256]="InterfaceDeclaration",t[t.TypeAliasDeclaration=257]="TypeAliasDeclaration",t[t.EnumDeclaration=258]="EnumDeclaration",t[t.ModuleDeclaration=259]="ModuleDeclaration",t[t.ModuleBlock=260]="ModuleBlock",t[t.CaseBlock=261]="CaseBlock",t[t.NamespaceExportDeclaration=262]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=263]="ImportEqualsDeclaration",t[t.ImportDeclaration=264]="ImportDeclaration",t[t.ImportClause=265]="ImportClause",t[t.NamespaceImport=266]="NamespaceImport",t[t.NamedImports=267]="NamedImports",t[t.ImportSpecifier=268]="ImportSpecifier",t[t.ExportAssignment=269]="ExportAssignment",t[t.ExportDeclaration=270]="ExportDeclaration",t[t.NamedExports=271]="NamedExports",t[t.NamespaceExport=272]="NamespaceExport",t[t.ExportSpecifier=273]="ExportSpecifier",t[t.MissingDeclaration=274]="MissingDeclaration",t[t.ExternalModuleReference=275]="ExternalModuleReference",t[t.JsxElement=276]="JsxElement",t[t.JsxSelfClosingElement=277]="JsxSelfClosingElement",t[t.JsxOpeningElement=278]="JsxOpeningElement",t[t.JsxClosingElement=279]="JsxClosingElement",t[t.JsxFragment=280]="JsxFragment",t[t.JsxOpeningFragment=281]="JsxOpeningFragment",t[t.JsxClosingFragment=282]="JsxClosingFragment",t[t.JsxAttribute=283]="JsxAttribute",t[t.JsxAttributes=284]="JsxAttributes",t[t.JsxSpreadAttribute=285]="JsxSpreadAttribute",t[t.JsxExpression=286]="JsxExpression",t[t.CaseClause=287]="CaseClause",t[t.DefaultClause=288]="DefaultClause",t[t.HeritageClause=289]="HeritageClause",t[t.CatchClause=290]="CatchClause",t[t.PropertyAssignment=291]="PropertyAssignment",t[t.ShorthandPropertyAssignment=292]="ShorthandPropertyAssignment",t[t.SpreadAssignment=293]="SpreadAssignment",t[t.EnumMember=294]="EnumMember",t[t.UnparsedPrologue=295]="UnparsedPrologue",t[t.UnparsedPrepend=296]="UnparsedPrepend",t[t.UnparsedText=297]="UnparsedText",t[t.UnparsedInternalText=298]="UnparsedInternalText",t[t.UnparsedSyntheticReference=299]="UnparsedSyntheticReference",t[t.SourceFile=300]="SourceFile",t[t.Bundle=301]="Bundle",t[t.UnparsedSource=302]="UnparsedSource",t[t.InputFiles=303]="InputFiles",t[t.JSDocTypeExpression=304]="JSDocTypeExpression",t[t.JSDocNameReference=305]="JSDocNameReference",t[t.JSDocMemberName=306]="JSDocMemberName",t[t.JSDocAllType=307]="JSDocAllType",t[t.JSDocUnknownType=308]="JSDocUnknownType",t[t.JSDocNullableType=309]="JSDocNullableType",t[t.JSDocNonNullableType=310]="JSDocNonNullableType",t[t.JSDocOptionalType=311]="JSDocOptionalType",t[t.JSDocFunctionType=312]="JSDocFunctionType",t[t.JSDocVariadicType=313]="JSDocVariadicType",t[t.JSDocNamepathType=314]="JSDocNamepathType",t[t.JSDocComment=315]="JSDocComment",t[t.JSDocText=316]="JSDocText",t[t.JSDocTypeLiteral=317]="JSDocTypeLiteral",t[t.JSDocSignature=318]="JSDocSignature",t[t.JSDocLink=319]="JSDocLink",t[t.JSDocLinkCode=320]="JSDocLinkCode",t[t.JSDocLinkPlain=321]="JSDocLinkPlain",t[t.JSDocTag=322]="JSDocTag",t[t.JSDocAugmentsTag=323]="JSDocAugmentsTag",t[t.JSDocImplementsTag=324]="JSDocImplementsTag",t[t.JSDocAuthorTag=325]="JSDocAuthorTag",t[t.JSDocDeprecatedTag=326]="JSDocDeprecatedTag",t[t.JSDocClassTag=327]="JSDocClassTag",t[t.JSDocPublicTag=328]="JSDocPublicTag",t[t.JSDocPrivateTag=329]="JSDocPrivateTag",t[t.JSDocProtectedTag=330]="JSDocProtectedTag",t[t.JSDocReadonlyTag=331]="JSDocReadonlyTag",t[t.JSDocOverrideTag=332]="JSDocOverrideTag",t[t.JSDocCallbackTag=333]="JSDocCallbackTag",t[t.JSDocEnumTag=334]="JSDocEnumTag",t[t.JSDocParameterTag=335]="JSDocParameterTag",t[t.JSDocReturnTag=336]="JSDocReturnTag",t[t.JSDocThisTag=337]="JSDocThisTag",t[t.JSDocTypeTag=338]="JSDocTypeTag",t[t.JSDocTemplateTag=339]="JSDocTemplateTag",t[t.JSDocTypedefTag=340]="JSDocTypedefTag",t[t.JSDocSeeTag=341]="JSDocSeeTag",t[t.JSDocPropertyTag=342]="JSDocPropertyTag",t[t.SyntaxList=343]="SyntaxList",t[t.NotEmittedStatement=344]="NotEmittedStatement",t[t.PartiallyEmittedExpression=345]="PartiallyEmittedExpression",t[t.CommaListExpression=346]="CommaListExpression",t[t.MergeDeclarationMarker=347]="MergeDeclarationMarker",t[t.EndOfDeclarationMarker=348]="EndOfDeclarationMarker",t[t.SyntheticReferenceExpression=349]="SyntheticReferenceExpression",t[t.Count=350]="Count",t[t.FirstAssignment=63]="FirstAssignment",t[t.LastAssignment=78]="LastAssignment",t[t.FirstCompoundAssignment=64]="FirstCompoundAssignment",t[t.LastCompoundAssignment=78]="LastCompoundAssignment",t[t.FirstReservedWord=81]="FirstReservedWord",t[t.LastReservedWord=116]="LastReservedWord",t[t.FirstKeyword=81]="FirstKeyword",t[t.LastKeyword=158]="LastKeyword",t[t.FirstFutureReservedWord=117]="FirstFutureReservedWord",t[t.LastFutureReservedWord=125]="LastFutureReservedWord",t[t.FirstTypeNode=175]="FirstTypeNode",t[t.LastTypeNode=198]="LastTypeNode",t[t.FirstPunctuation=18]="FirstPunctuation",t[t.LastPunctuation=78]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=158]="LastToken",t[t.FirstTriviaToken=2]="FirstTriviaToken",t[t.LastTriviaToken=7]="LastTriviaToken",t[t.FirstLiteralToken=8]="FirstLiteralToken",t[t.LastLiteralToken=14]="LastLiteralToken",t[t.FirstTemplateToken=14]="FirstTemplateToken",t[t.LastTemplateToken=17]="LastTemplateToken",t[t.FirstBinaryOperator=29]="FirstBinaryOperator",t[t.LastBinaryOperator=78]="LastBinaryOperator",t[t.FirstStatement=235]="FirstStatement",t[t.LastStatement=251]="LastStatement",t[t.FirstNode=159]="FirstNode",t[t.FirstJSDocNode=304]="FirstJSDocNode",t[t.LastJSDocNode=342]="LastJSDocNode",t[t.FirstJSDocTagNode=322]="FirstJSDocTagNode",t[t.LastJSDocTagNode=342]="LastJSDocTagNode",t[t.FirstContextualKeyword=126]="FirstContextualKeyword",t[t.LastContextualKeyword=158]="LastContextualKeyword",(r=e.NodeFlags||(e.NodeFlags={}))[r.None=0]="None",r[r.Let=1]="Let",r[r.Const=2]="Const",r[r.NestedNamespace=4]="NestedNamespace",r[r.Synthesized=8]="Synthesized",r[r.Namespace=16]="Namespace",r[r.OptionalChain=32]="OptionalChain",r[r.ExportContext=64]="ExportContext",r[r.ContainsThis=128]="ContainsThis",r[r.HasImplicitReturn=256]="HasImplicitReturn",r[r.HasExplicitReturn=512]="HasExplicitReturn",r[r.GlobalAugmentation=1024]="GlobalAugmentation",r[r.HasAsyncFunctions=2048]="HasAsyncFunctions",r[r.DisallowInContext=4096]="DisallowInContext",r[r.YieldContext=8192]="YieldContext",r[r.DecoratorContext=16384]="DecoratorContext",r[r.AwaitContext=32768]="AwaitContext",r[r.ThisNodeHasError=65536]="ThisNodeHasError",r[r.JavaScriptFile=131072]="JavaScriptFile",r[r.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",r[r.HasAggregatedChildData=524288]="HasAggregatedChildData",r[r.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",r[r.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",r[r.JSDoc=4194304]="JSDoc",r[r.Ambient=8388608]="Ambient",r[r.InWithStatement=16777216]="InWithStatement",r[r.JsonFile=33554432]="JsonFile",r[r.TypeCached=67108864]="TypeCached",r[r.Deprecated=134217728]="Deprecated",r[r.BlockScoped=3]="BlockScoped",r[r.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",r[r.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",r[r.ContextFlags=25358336]="ContextFlags",r[r.TypeExcludesFlags=40960]="TypeExcludesFlags",r[r.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags",(n=e.ModifierFlags||(e.ModifierFlags={}))[n.None=0]="None",n[n.Export=1]="Export",n[n.Ambient=2]="Ambient",n[n.Public=4]="Public",n[n.Private=8]="Private",n[n.Protected=16]="Protected",n[n.Static=32]="Static",n[n.Readonly=64]="Readonly",n[n.Abstract=128]="Abstract",n[n.Async=256]="Async",n[n.Default=512]="Default",n[n.Const=2048]="Const",n[n.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",n[n.Deprecated=8192]="Deprecated",n[n.Override=16384]="Override",n[n.HasComputedFlags=536870912]="HasComputedFlags",n[n.AccessibilityModifier=28]="AccessibilityModifier",n[n.ParameterPropertyModifier=16476]="ParameterPropertyModifier",n[n.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",n[n.TypeScriptModifier=18654]="TypeScriptModifier",n[n.ExportDefault=513]="ExportDefault",n[n.All=27647]="All",(i=e.JsxFlags||(e.JsxFlags={}))[i.None=0]="None",i[i.IntrinsicNamedElement=1]="IntrinsicNamedElement",i[i.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",i[i.IntrinsicElement=3]="IntrinsicElement",(a=e.RelationComparisonResult||(e.RelationComparisonResult={}))[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.Reported=4]="Reported",a[a.ReportsUnmeasurable=8]="ReportsUnmeasurable",a[a.ReportsUnreliable=16]="ReportsUnreliable",a[a.ReportsMask=24]="ReportsMask",(o=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[o.None=0]="None",o[o.Auto=1]="Auto",o[o.Loop=2]="Loop",o[o.Unique=3]="Unique",o[o.Node=4]="Node",o[o.KindMask=7]="KindMask",o[o.ReservedInNestedScopes=8]="ReservedInNestedScopes",o[o.Optimistic=16]="Optimistic",o[o.FileLevel=32]="FileLevel",o[o.AllowNameSubstitution=64]="AllowNameSubstitution",(s=e.TokenFlags||(e.TokenFlags={}))[s.None=0]="None",s[s.PrecedingLineBreak=1]="PrecedingLineBreak",s[s.PrecedingJSDocComment=2]="PrecedingJSDocComment",s[s.Unterminated=4]="Unterminated",s[s.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",s[s.Scientific=16]="Scientific",s[s.Octal=32]="Octal",s[s.HexSpecifier=64]="HexSpecifier",s[s.BinarySpecifier=128]="BinarySpecifier",s[s.OctalSpecifier=256]="OctalSpecifier",s[s.ContainsSeparator=512]="ContainsSeparator",s[s.UnicodeEscape=1024]="UnicodeEscape",s[s.ContainsInvalidEscape=2048]="ContainsInvalidEscape",s[s.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",s[s.NumericLiteralFlags=1008]="NumericLiteralFlags",s[s.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(c=e.FlowFlags||(e.FlowFlags={}))[c.Unreachable=1]="Unreachable",c[c.Start=2]="Start",c[c.BranchLabel=4]="BranchLabel",c[c.LoopLabel=8]="LoopLabel",c[c.Assignment=16]="Assignment",c[c.TrueCondition=32]="TrueCondition",c[c.FalseCondition=64]="FalseCondition",c[c.SwitchClause=128]="SwitchClause",c[c.ArrayMutation=256]="ArrayMutation",c[c.Call=512]="Call",c[c.ReduceLabel=1024]="ReduceLabel",c[c.Referenced=2048]="Referenced",c[c.Shared=4096]="Shared",c[c.Label=12]="Label",c[c.Condition=96]="Condition",(u=e.CommentDirectiveType||(e.CommentDirectiveType={}))[u.ExpectError=0]="ExpectError",u[u.Ignore=1]="Ignore";var l,_,d,p,f,g,m,y,v,h,D,b,x,S,C,E,T,k,A,F,N,P,w,I,O,M,L,R,B,j,J,K,z,U,V,q,W,H,G,Y,X,$,Q,Z,ee,te,re,ne,ie,ae,oe,se,ce,ue,le,_e,de=function(){};e.OperationCanceledException=de,(l=e.FileIncludeKind||(e.FileIncludeKind={}))[l.RootFile=0]="RootFile",l[l.SourceFromProjectReference=1]="SourceFromProjectReference",l[l.OutputFromProjectReference=2]="OutputFromProjectReference",l[l.Import=3]="Import",l[l.ReferenceFile=4]="ReferenceFile",l[l.TypeReferenceDirective=5]="TypeReferenceDirective",l[l.LibFile=6]="LibFile",l[l.LibReferenceDirective=7]="LibReferenceDirective",l[l.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(_=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[_.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",_[_.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(d=e.StructureIsReused||(e.StructureIsReused={}))[d.Not=0]="Not",d[d.SafeModules=1]="SafeModules",d[d.Completely=2]="Completely",(p=e.ExitStatus||(e.ExitStatus={}))[p.Success=0]="Success",p[p.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",p[p.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",p[p.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",p[p.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",p[p.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(f=e.UnionReduction||(e.UnionReduction={}))[f.None=0]="None",f[f.Literal=1]="Literal",f[f.Subtype=2]="Subtype",(g=e.ContextFlags||(e.ContextFlags={}))[g.None=0]="None",g[g.Signature=1]="Signature",g[g.NoConstraints=2]="NoConstraints",g[g.Completions=4]="Completions",g[g.SkipBindingPatterns=8]="SkipBindingPatterns",(m=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[m.None=0]="None",m[m.NoTruncation=1]="NoTruncation",m[m.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",m[m.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",m[m.UseStructuralFallback=8]="UseStructuralFallback",m[m.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",m[m.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",m[m.UseFullyQualifiedType=64]="UseFullyQualifiedType",m[m.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",m[m.SuppressAnyReturnType=256]="SuppressAnyReturnType",m[m.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",m[m.MultilineObjectLiterals=1024]="MultilineObjectLiterals",m[m.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",m[m.UseTypeOfFunction=4096]="UseTypeOfFunction",m[m.OmitParameterModifiers=8192]="OmitParameterModifiers",m[m.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",m[m.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",m[m.NoTypeReduction=536870912]="NoTypeReduction",m[m.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",m[m.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",m[m.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",m[m.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",m[m.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",m[m.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",m[m.AllowEmptyTuple=524288]="AllowEmptyTuple",m[m.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",m[m.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",m[m.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",m[m.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",m[m.IgnoreErrors=70221824]="IgnoreErrors",m[m.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",m[m.InTypeAlias=8388608]="InTypeAlias",m[m.InInitialEntityName=16777216]="InInitialEntityName",(y=e.TypeFormatFlags||(e.TypeFormatFlags={}))[y.None=0]="None",y[y.NoTruncation=1]="NoTruncation",y[y.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",y[y.UseStructuralFallback=8]="UseStructuralFallback",y[y.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",y[y.UseFullyQualifiedType=64]="UseFullyQualifiedType",y[y.SuppressAnyReturnType=256]="SuppressAnyReturnType",y[y.MultilineObjectLiterals=1024]="MultilineObjectLiterals",y[y.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",y[y.UseTypeOfFunction=4096]="UseTypeOfFunction",y[y.OmitParameterModifiers=8192]="OmitParameterModifiers",y[y.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",y[y.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",y[y.NoTypeReduction=536870912]="NoTypeReduction",y[y.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",y[y.AddUndefined=131072]="AddUndefined",y[y.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",y[y.InArrayType=524288]="InArrayType",y[y.InElementType=2097152]="InElementType",y[y.InFirstTypeArgument=4194304]="InFirstTypeArgument",y[y.InTypeAlias=8388608]="InTypeAlias",y[y.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",y[y.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(v=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[v.None=0]="None",v[v.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",v[v.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",v[v.AllowAnyNodeKind=4]="AllowAnyNodeKind",v[v.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",v[v.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(h=e.SymbolAccessibility||(e.SymbolAccessibility={}))[h.Accessible=0]="Accessible",h[h.NotAccessible=1]="NotAccessible",h[h.CannotBeNamed=2]="CannotBeNamed",(D=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[D.UnionOrIntersection=0]="UnionOrIntersection",D[D.Spread=1]="Spread",(b=e.TypePredicateKind||(e.TypePredicateKind={}))[b.This=0]="This",b[b.Identifier=1]="Identifier",b[b.AssertsThis=2]="AssertsThis",b[b.AssertsIdentifier=3]="AssertsIdentifier",(x=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[x.Unknown=0]="Unknown",x[x.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",x[x.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",x[x.NumberLikeType=3]="NumberLikeType",x[x.BigIntLikeType=4]="BigIntLikeType",x[x.StringLikeType=5]="StringLikeType",x[x.BooleanType=6]="BooleanType",x[x.ArrayLikeType=7]="ArrayLikeType",x[x.ESSymbolType=8]="ESSymbolType",x[x.Promise=9]="Promise",x[x.TypeWithCallSignature=10]="TypeWithCallSignature",x[x.ObjectType=11]="ObjectType",(S=e.SymbolFlags||(e.SymbolFlags={}))[S.None=0]="None",S[S.FunctionScopedVariable=1]="FunctionScopedVariable",S[S.BlockScopedVariable=2]="BlockScopedVariable",S[S.Property=4]="Property",S[S.EnumMember=8]="EnumMember",S[S.Function=16]="Function",S[S.Class=32]="Class",S[S.Interface=64]="Interface",S[S.ConstEnum=128]="ConstEnum",S[S.RegularEnum=256]="RegularEnum",S[S.ValueModule=512]="ValueModule",S[S.NamespaceModule=1024]="NamespaceModule",S[S.TypeLiteral=2048]="TypeLiteral",S[S.ObjectLiteral=4096]="ObjectLiteral",S[S.Method=8192]="Method",S[S.Constructor=16384]="Constructor",S[S.GetAccessor=32768]="GetAccessor",S[S.SetAccessor=65536]="SetAccessor",S[S.Signature=131072]="Signature",S[S.TypeParameter=262144]="TypeParameter",S[S.TypeAlias=524288]="TypeAlias",S[S.ExportValue=1048576]="ExportValue",S[S.Alias=2097152]="Alias",S[S.Prototype=4194304]="Prototype",S[S.ExportStar=8388608]="ExportStar",S[S.Optional=16777216]="Optional",S[S.Transient=33554432]="Transient",S[S.Assignment=67108864]="Assignment",S[S.ModuleExports=134217728]="ModuleExports",S[S.All=67108863]="All",S[S.Enum=384]="Enum",S[S.Variable=3]="Variable",S[S.Value=111551]="Value",S[S.Type=788968]="Type",S[S.Namespace=1920]="Namespace",S[S.Module=1536]="Module",S[S.Accessor=98304]="Accessor",S[S.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",S[S.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",S[S.ParameterExcludes=111551]="ParameterExcludes",S[S.PropertyExcludes=0]="PropertyExcludes",S[S.EnumMemberExcludes=900095]="EnumMemberExcludes",S[S.FunctionExcludes=110991]="FunctionExcludes",S[S.ClassExcludes=899503]="ClassExcludes",S[S.InterfaceExcludes=788872]="InterfaceExcludes",S[S.RegularEnumExcludes=899327]="RegularEnumExcludes",S[S.ConstEnumExcludes=899967]="ConstEnumExcludes",S[S.ValueModuleExcludes=110735]="ValueModuleExcludes",S[S.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",S[S.MethodExcludes=103359]="MethodExcludes",S[S.GetAccessorExcludes=46015]="GetAccessorExcludes",S[S.SetAccessorExcludes=78783]="SetAccessorExcludes",S[S.TypeParameterExcludes=526824]="TypeParameterExcludes",S[S.TypeAliasExcludes=788968]="TypeAliasExcludes",S[S.AliasExcludes=2097152]="AliasExcludes",S[S.ModuleMember=2623475]="ModuleMember",S[S.ExportHasLocal=944]="ExportHasLocal",S[S.BlockScoped=418]="BlockScoped",S[S.PropertyOrAccessor=98308]="PropertyOrAccessor",S[S.ClassMember=106500]="ClassMember",S[S.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",S[S.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",S[S.Classifiable=2885600]="Classifiable",S[S.LateBindingContainer=6256]="LateBindingContainer",(C=e.EnumKind||(e.EnumKind={}))[C.Numeric=0]="Numeric",C[C.Literal=1]="Literal",(E=e.CheckFlags||(e.CheckFlags={}))[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.Synthetic=6]="Synthetic",E[E.Discriminant=192]="Discriminant",E[E.Partial=48]="Partial",(T=e.InternalSymbolName||(e.InternalSymbolName={})).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",(k=e.NodeCheckFlags||(e.NodeCheckFlags={}))[k.TypeChecked=1]="TypeChecked",k[k.LexicalThis=2]="LexicalThis",k[k.CaptureThis=4]="CaptureThis",k[k.CaptureNewTarget=8]="CaptureNewTarget",k[k.SuperInstance=256]="SuperInstance",k[k.SuperStatic=512]="SuperStatic",k[k.ContextChecked=1024]="ContextChecked",k[k.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",k[k.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",k[k.CaptureArguments=8192]="CaptureArguments",k[k.EnumValuesComputed=16384]="EnumValuesComputed",k[k.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",k[k.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",k[k.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",k[k.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",k[k.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",k[k.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",k[k.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",k[k.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",k[k.AssignmentsMarked=8388608]="AssignmentsMarked",k[k.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",k[k.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",k[k.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",k[k.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",(A=e.TypeFlags||(e.TypeFlags={}))[A.Any=1]="Any",A[A.Unknown=2]="Unknown",A[A.String=4]="String",A[A.Number=8]="Number",A[A.Boolean=16]="Boolean",A[A.Enum=32]="Enum",A[A.BigInt=64]="BigInt",A[A.StringLiteral=128]="StringLiteral",A[A.NumberLiteral=256]="NumberLiteral",A[A.BooleanLiteral=512]="BooleanLiteral",A[A.EnumLiteral=1024]="EnumLiteral",A[A.BigIntLiteral=2048]="BigIntLiteral",A[A.ESSymbol=4096]="ESSymbol",A[A.UniqueESSymbol=8192]="UniqueESSymbol",A[A.Void=16384]="Void",A[A.Undefined=32768]="Undefined",A[A.Null=65536]="Null",A[A.Never=131072]="Never",A[A.TypeParameter=262144]="TypeParameter",A[A.Object=524288]="Object",A[A.Union=1048576]="Union",A[A.Intersection=2097152]="Intersection",A[A.Index=4194304]="Index",A[A.IndexedAccess=8388608]="IndexedAccess",A[A.Conditional=16777216]="Conditional",A[A.Substitution=33554432]="Substitution",A[A.NonPrimitive=67108864]="NonPrimitive",A[A.TemplateLiteral=134217728]="TemplateLiteral",A[A.StringMapping=268435456]="StringMapping",A[A.AnyOrUnknown=3]="AnyOrUnknown",A[A.Nullable=98304]="Nullable",A[A.Literal=2944]="Literal",A[A.Unit=109440]="Unit",A[A.StringOrNumberLiteral=384]="StringOrNumberLiteral",A[A.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",A[A.DefinitelyFalsy=117632]="DefinitelyFalsy",A[A.PossiblyFalsy=117724]="PossiblyFalsy",A[A.Intrinsic=67359327]="Intrinsic",A[A.Primitive=131068]="Primitive",A[A.StringLike=402653316]="StringLike",A[A.NumberLike=296]="NumberLike",A[A.BigIntLike=2112]="BigIntLike",A[A.BooleanLike=528]="BooleanLike",A[A.EnumLike=1056]="EnumLike",A[A.ESSymbolLike=12288]="ESSymbolLike",A[A.VoidLike=49152]="VoidLike",A[A.DisjointDomains=469892092]="DisjointDomains",A[A.UnionOrIntersection=3145728]="UnionOrIntersection",A[A.StructuredType=3670016]="StructuredType",A[A.TypeVariable=8650752]="TypeVariable",A[A.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",A[A.InstantiablePrimitive=406847488]="InstantiablePrimitive",A[A.Instantiable=465829888]="Instantiable",A[A.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",A[A.ObjectFlagsType=3899393]="ObjectFlagsType",A[A.Simplifiable=25165824]="Simplifiable",A[A.Singleton=67358815]="Singleton",A[A.Narrowable=536624127]="Narrowable",A[A.NotPrimitiveUnion=468598819]="NotPrimitiveUnion",A[A.IncludesMask=205258751]="IncludesMask",A[A.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",A[A.IncludesNonWideningType=4194304]="IncludesNonWideningType",A[A.IncludesWildcard=8388608]="IncludesWildcard",A[A.IncludesEmptyObject=16777216]="IncludesEmptyObject",(F=e.ObjectFlags||(e.ObjectFlags={}))[F.Class=1]="Class",F[F.Interface=2]="Interface",F[F.Reference=4]="Reference",F[F.Tuple=8]="Tuple",F[F.Anonymous=16]="Anonymous",F[F.Mapped=32]="Mapped",F[F.Instantiated=64]="Instantiated",F[F.ObjectLiteral=128]="ObjectLiteral",F[F.EvolvingArray=256]="EvolvingArray",F[F.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",F[F.ReverseMapped=1024]="ReverseMapped",F[F.JsxAttributes=2048]="JsxAttributes",F[F.MarkerType=4096]="MarkerType",F[F.JSLiteral=8192]="JSLiteral",F[F.FreshLiteral=16384]="FreshLiteral",F[F.ArrayLiteral=32768]="ArrayLiteral",F[F.PrimitiveUnion=65536]="PrimitiveUnion",F[F.ContainsWideningType=131072]="ContainsWideningType",F[F.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",F[F.NonInferrableType=524288]="NonInferrableType",F[F.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",F[F.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",F[F.ClassOrInterface=3]="ClassOrInterface",F[F.RequiresWidening=393216]="RequiresWidening",F[F.PropagatingFlags=917504]="PropagatingFlags",F[F.ObjectTypeKindMask=1343]="ObjectTypeKindMask",F[F.ContainsSpread=4194304]="ContainsSpread",F[F.ObjectRestType=8388608]="ObjectRestType",F[F.IsClassInstanceClone=16777216]="IsClassInstanceClone",F[F.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",F[F.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",F[F.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",F[F.IsGenericObjectType=8388608]="IsGenericObjectType",F[F.IsGenericIndexType=16777216]="IsGenericIndexType",F[F.IsGenericType=25165824]="IsGenericType",F[F.ContainsIntersections=33554432]="ContainsIntersections",F[F.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",F[F.IsNeverIntersection=67108864]="IsNeverIntersection",(N=e.VarianceFlags||(e.VarianceFlags={}))[N.Invariant=0]="Invariant",N[N.Covariant=1]="Covariant",N[N.Contravariant=2]="Contravariant",N[N.Bivariant=3]="Bivariant",N[N.Independent=4]="Independent",N[N.VarianceMask=7]="VarianceMask",N[N.Unmeasurable=8]="Unmeasurable",N[N.Unreliable=16]="Unreliable",N[N.AllowsStructuralFallback=24]="AllowsStructuralFallback",(P=e.ElementFlags||(e.ElementFlags={}))[P.Required=1]="Required",P[P.Optional=2]="Optional",P[P.Rest=4]="Rest",P[P.Variadic=8]="Variadic",P[P.Fixed=3]="Fixed",P[P.Variable=12]="Variable",P[P.NonRequired=14]="NonRequired",P[P.NonRest=11]="NonRest",(w=e.AccessFlags||(e.AccessFlags={}))[w.None=0]="None",w[w.IncludeUndefined=1]="IncludeUndefined",w[w.NoIndexSignatures=2]="NoIndexSignatures",w[w.Writing=4]="Writing",w[w.CacheSymbol=8]="CacheSymbol",w[w.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",w[w.ExpressionPosition=32]="ExpressionPosition",w[w.ReportDeprecated=64]="ReportDeprecated",w[w.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",w[w.Contextual=256]="Contextual",w[w.Persistent=1]="Persistent",(I=e.JsxReferenceKind||(e.JsxReferenceKind={}))[I.Component=0]="Component",I[I.Function=1]="Function",I[I.Mixed=2]="Mixed",(O=e.SignatureKind||(e.SignatureKind={}))[O.Call=0]="Call",O[O.Construct=1]="Construct",(M=e.SignatureFlags||(e.SignatureFlags={}))[M.None=0]="None",M[M.HasRestParameter=1]="HasRestParameter",M[M.HasLiteralTypes=2]="HasLiteralTypes",M[M.Abstract=4]="Abstract",M[M.IsInnerCallChain=8]="IsInnerCallChain",M[M.IsOuterCallChain=16]="IsOuterCallChain",M[M.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",M[M.PropagatingFlags=39]="PropagatingFlags",M[M.CallChainFlags=24]="CallChainFlags",(L=e.IndexKind||(e.IndexKind={}))[L.String=0]="String",L[L.Number=1]="Number",(R=e.TypeMapKind||(e.TypeMapKind={}))[R.Simple=0]="Simple",R[R.Array=1]="Array",R[R.Function=2]="Function",R[R.Composite=3]="Composite",R[R.Merged=4]="Merged",(B=e.InferencePriority||(e.InferencePriority={}))[B.NakedTypeVariable=1]="NakedTypeVariable",B[B.SpeculativeTuple=2]="SpeculativeTuple",B[B.SubstituteSource=4]="SubstituteSource",B[B.HomomorphicMappedType=8]="HomomorphicMappedType",B[B.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",B[B.MappedTypeConstraint=32]="MappedTypeConstraint",B[B.ContravariantConditional=64]="ContravariantConditional",B[B.ReturnType=128]="ReturnType",B[B.LiteralKeyof=256]="LiteralKeyof",B[B.NoConstraints=512]="NoConstraints",B[B.AlwaysStrict=1024]="AlwaysStrict",B[B.MaxValue=2048]="MaxValue",B[B.PriorityImpliesCombination=416]="PriorityImpliesCombination",B[B.Circularity=-1]="Circularity",(j=e.InferenceFlags||(e.InferenceFlags={}))[j.None=0]="None",j[j.NoDefault=1]="NoDefault",j[j.AnyDefault=2]="AnyDefault",j[j.SkippedGenericFunction=4]="SkippedGenericFunction",(J=e.Ternary||(e.Ternary={}))[J.False=0]="False",J[J.Unknown=1]="Unknown",J[J.Maybe=3]="Maybe",J[J.True=-1]="True",(K=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[K.None=0]="None",K[K.ExportsProperty=1]="ExportsProperty",K[K.ModuleExports=2]="ModuleExports",K[K.PrototypeProperty=3]="PrototypeProperty",K[K.ThisProperty=4]="ThisProperty",K[K.Property=5]="Property",K[K.Prototype=6]="Prototype",K[K.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",K[K.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",K[K.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(z=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var r=z[e.category];return t?r.toLowerCase():r},(U=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[U.Classic=1]="Classic",U[U.NodeJs=2]="NodeJs",(V=e.WatchFileKind||(e.WatchFileKind={}))[V.FixedPollingInterval=0]="FixedPollingInterval",V[V.PriorityPollingInterval=1]="PriorityPollingInterval",V[V.DynamicPriorityPolling=2]="DynamicPriorityPolling",V[V.FixedChunkSizePolling=3]="FixedChunkSizePolling",V[V.UseFsEvents=4]="UseFsEvents",V[V.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(q=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[q.UseFsEvents=0]="UseFsEvents",q[q.FixedPollingInterval=1]="FixedPollingInterval",q[q.DynamicPriorityPolling=2]="DynamicPriorityPolling",q[q.FixedChunkSizePolling=3]="FixedChunkSizePolling",(W=e.PollingWatchKind||(e.PollingWatchKind={}))[W.FixedInterval=0]="FixedInterval",W[W.PriorityInterval=1]="PriorityInterval",W[W.DynamicPriority=2]="DynamicPriority",W[W.FixedChunkSize=3]="FixedChunkSize",(H=e.ModuleKind||(e.ModuleKind={}))[H.None=0]="None",H[H.CommonJS=1]="CommonJS",H[H.AMD=2]="AMD",H[H.UMD=3]="UMD",H[H.System=4]="System",H[H.ES2015=5]="ES2015",H[H.ES2020=6]="ES2020",H[H.ESNext=99]="ESNext",(G=e.JsxEmit||(e.JsxEmit={}))[G.None=0]="None",G[G.Preserve=1]="Preserve",G[G.React=2]="React",G[G.ReactNative=3]="ReactNative",G[G.ReactJSX=4]="ReactJSX",G[G.ReactJSXDev=5]="ReactJSXDev",(Y=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[Y.Remove=0]="Remove",Y[Y.Preserve=1]="Preserve",Y[Y.Error=2]="Error",(X=e.NewLineKind||(e.NewLineKind={}))[X.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",X[X.LineFeed=1]="LineFeed",($=e.ScriptKind||(e.ScriptKind={}))[$.Unknown=0]="Unknown",$[$.JS=1]="JS",$[$.JSX=2]="JSX",$[$.TS=3]="TS",$[$.TSX=4]="TSX",$[$.External=5]="External",$[$.JSON=6]="JSON",$[$.Deferred=7]="Deferred",(Q=e.ScriptTarget||(e.ScriptTarget={}))[Q.ES3=0]="ES3",Q[Q.ES5=1]="ES5",Q[Q.ES2015=2]="ES2015",Q[Q.ES2016=3]="ES2016",Q[Q.ES2017=4]="ES2017",Q[Q.ES2018=5]="ES2018",Q[Q.ES2019=6]="ES2019",Q[Q.ES2020=7]="ES2020",Q[Q.ES2021=8]="ES2021",Q[Q.ESNext=99]="ESNext",Q[Q.JSON=100]="JSON",Q[Q.Latest=99]="Latest",(Z=e.LanguageVariant||(e.LanguageVariant={}))[Z.Standard=0]="Standard",Z[Z.JSX=1]="JSX",(ee=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[ee.None=0]="None",ee[ee.Recursive=1]="Recursive",(te=e.CharacterCodes||(e.CharacterCodes={}))[te.nullCharacter=0]="nullCharacter",te[te.maxAsciiCharacter=127]="maxAsciiCharacter",te[te.lineFeed=10]="lineFeed",te[te.carriageReturn=13]="carriageReturn",te[te.lineSeparator=8232]="lineSeparator",te[te.paragraphSeparator=8233]="paragraphSeparator",te[te.nextLine=133]="nextLine",te[te.space=32]="space",te[te.nonBreakingSpace=160]="nonBreakingSpace",te[te.enQuad=8192]="enQuad",te[te.emQuad=8193]="emQuad",te[te.enSpace=8194]="enSpace",te[te.emSpace=8195]="emSpace",te[te.threePerEmSpace=8196]="threePerEmSpace",te[te.fourPerEmSpace=8197]="fourPerEmSpace",te[te.sixPerEmSpace=8198]="sixPerEmSpace",te[te.figureSpace=8199]="figureSpace",te[te.punctuationSpace=8200]="punctuationSpace",te[te.thinSpace=8201]="thinSpace",te[te.hairSpace=8202]="hairSpace",te[te.zeroWidthSpace=8203]="zeroWidthSpace",te[te.narrowNoBreakSpace=8239]="narrowNoBreakSpace",te[te.ideographicSpace=12288]="ideographicSpace",te[te.mathematicalSpace=8287]="mathematicalSpace",te[te.ogham=5760]="ogham",te[te._=95]="_",te[te.$=36]="$",te[te._0=48]="_0",te[te._1=49]="_1",te[te._2=50]="_2",te[te._3=51]="_3",te[te._4=52]="_4",te[te._5=53]="_5",te[te._6=54]="_6",te[te._7=55]="_7",te[te._8=56]="_8",te[te._9=57]="_9",te[te.a=97]="a",te[te.b=98]="b",te[te.c=99]="c",te[te.d=100]="d",te[te.e=101]="e",te[te.f=102]="f",te[te.g=103]="g",te[te.h=104]="h",te[te.i=105]="i",te[te.j=106]="j",te[te.k=107]="k",te[te.l=108]="l",te[te.m=109]="m",te[te.n=110]="n",te[te.o=111]="o",te[te.p=112]="p",te[te.q=113]="q",te[te.r=114]="r",te[te.s=115]="s",te[te.t=116]="t",te[te.u=117]="u",te[te.v=118]="v",te[te.w=119]="w",te[te.x=120]="x",te[te.y=121]="y",te[te.z=122]="z",te[te.A=65]="A",te[te.B=66]="B",te[te.C=67]="C",te[te.D=68]="D",te[te.E=69]="E",te[te.F=70]="F",te[te.G=71]="G",te[te.H=72]="H",te[te.I=73]="I",te[te.J=74]="J",te[te.K=75]="K",te[te.L=76]="L",te[te.M=77]="M",te[te.N=78]="N",te[te.O=79]="O",te[te.P=80]="P",te[te.Q=81]="Q",te[te.R=82]="R",te[te.S=83]="S",te[te.T=84]="T",te[te.U=85]="U",te[te.V=86]="V",te[te.W=87]="W",te[te.X=88]="X",te[te.Y=89]="Y",te[te.Z=90]="Z",te[te.ampersand=38]="ampersand",te[te.asterisk=42]="asterisk",te[te.at=64]="at",te[te.backslash=92]="backslash",te[te.backtick=96]="backtick",te[te.bar=124]="bar",te[te.caret=94]="caret",te[te.closeBrace=125]="closeBrace",te[te.closeBracket=93]="closeBracket",te[te.closeParen=41]="closeParen",te[te.colon=58]="colon",te[te.comma=44]="comma",te[te.dot=46]="dot",te[te.doubleQuote=34]="doubleQuote",te[te.equals=61]="equals",te[te.exclamation=33]="exclamation",te[te.greaterThan=62]="greaterThan",te[te.hash=35]="hash",te[te.lessThan=60]="lessThan",te[te.minus=45]="minus",te[te.openBrace=123]="openBrace",te[te.openBracket=91]="openBracket",te[te.openParen=40]="openParen",te[te.percent=37]="percent",te[te.plus=43]="plus",te[te.question=63]="question",te[te.semicolon=59]="semicolon",te[te.singleQuote=39]="singleQuote",te[te.slash=47]="slash",te[te.tilde=126]="tilde",te[te.backspace=8]="backspace",te[te.formFeed=12]="formFeed",te[te.byteOrderMark=65279]="byteOrderMark",te[te.tab=9]="tab",te[te.verticalTab=11]="verticalTab",(re=e.Extension||(e.Extension={})).Ts=".ts",re.Tsx=".tsx",re.Dts=".d.ts",re.Js=".js",re.Jsx=".jsx",re.Json=".json",re.TsBuildInfo=".tsbuildinfo",(ne=e.TransformFlags||(e.TransformFlags={}))[ne.None=0]="None",ne[ne.ContainsTypeScript=1]="ContainsTypeScript",ne[ne.ContainsJsx=2]="ContainsJsx",ne[ne.ContainsESNext=4]="ContainsESNext",ne[ne.ContainsES2021=8]="ContainsES2021",ne[ne.ContainsES2020=16]="ContainsES2020",ne[ne.ContainsES2019=32]="ContainsES2019",ne[ne.ContainsES2018=64]="ContainsES2018",ne[ne.ContainsES2017=128]="ContainsES2017",ne[ne.ContainsES2016=256]="ContainsES2016",ne[ne.ContainsES2015=512]="ContainsES2015",ne[ne.ContainsGenerator=1024]="ContainsGenerator",ne[ne.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",ne[ne.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",ne[ne.ContainsLexicalThis=8192]="ContainsLexicalThis",ne[ne.ContainsRestOrSpread=16384]="ContainsRestOrSpread",ne[ne.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",ne[ne.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",ne[ne.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",ne[ne.ContainsBindingPattern=262144]="ContainsBindingPattern",ne[ne.ContainsYield=524288]="ContainsYield",ne[ne.ContainsAwait=1048576]="ContainsAwait",ne[ne.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",ne[ne.ContainsDynamicImport=4194304]="ContainsDynamicImport",ne[ne.ContainsClassFields=8388608]="ContainsClassFields",ne[ne.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",ne[ne.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",ne[ne.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",ne[ne.HasComputedFlags=536870912]="HasComputedFlags",ne[ne.AssertTypeScript=1]="AssertTypeScript",ne[ne.AssertJsx=2]="AssertJsx",ne[ne.AssertESNext=4]="AssertESNext",ne[ne.AssertES2021=8]="AssertES2021",ne[ne.AssertES2020=16]="AssertES2020",ne[ne.AssertES2019=32]="AssertES2019",ne[ne.AssertES2018=64]="AssertES2018",ne[ne.AssertES2017=128]="AssertES2017",ne[ne.AssertES2016=256]="AssertES2016",ne[ne.AssertES2015=512]="AssertES2015",ne[ne.AssertGenerator=1024]="AssertGenerator",ne[ne.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",ne[ne.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",ne[ne.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",ne[ne.NodeExcludes=536870912]="NodeExcludes",ne[ne.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",ne[ne.FunctionExcludes=591310848]="FunctionExcludes",ne[ne.ConstructorExcludes=591306752]="ConstructorExcludes",ne[ne.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",ne[ne.PropertyExcludes=570433536]="PropertyExcludes",ne[ne.ClassExcludes=536940544]="ClassExcludes",ne[ne.ModuleExcludes=589443072]="ModuleExcludes",ne[ne.TypeExcludes=-2]="TypeExcludes",ne[ne.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",ne[ne.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",ne[ne.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",ne[ne.ParameterExcludes=536870912]="ParameterExcludes",ne[ne.CatchClauseExcludes=536903680]="CatchClauseExcludes",ne[ne.BindingPatternExcludes=536887296]="BindingPatternExcludes",ne[ne.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",ne[ne.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags",(ie=e.EmitFlags||(e.EmitFlags={}))[ie.None=0]="None",ie[ie.SingleLine=1]="SingleLine",ie[ie.AdviseOnEmitNode=2]="AdviseOnEmitNode",ie[ie.NoSubstitution=4]="NoSubstitution",ie[ie.CapturesThis=8]="CapturesThis",ie[ie.NoLeadingSourceMap=16]="NoLeadingSourceMap",ie[ie.NoTrailingSourceMap=32]="NoTrailingSourceMap",ie[ie.NoSourceMap=48]="NoSourceMap",ie[ie.NoNestedSourceMaps=64]="NoNestedSourceMaps",ie[ie.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",ie[ie.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",ie[ie.NoTokenSourceMaps=384]="NoTokenSourceMaps",ie[ie.NoLeadingComments=512]="NoLeadingComments",ie[ie.NoTrailingComments=1024]="NoTrailingComments",ie[ie.NoComments=1536]="NoComments",ie[ie.NoNestedComments=2048]="NoNestedComments",ie[ie.HelperName=4096]="HelperName",ie[ie.ExportName=8192]="ExportName",ie[ie.LocalName=16384]="LocalName",ie[ie.InternalName=32768]="InternalName",ie[ie.Indented=65536]="Indented",ie[ie.NoIndentation=131072]="NoIndentation",ie[ie.AsyncFunctionBody=262144]="AsyncFunctionBody",ie[ie.ReuseTempVariableScope=524288]="ReuseTempVariableScope",ie[ie.CustomPrologue=1048576]="CustomPrologue",ie[ie.NoHoisting=2097152]="NoHoisting",ie[ie.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",ie[ie.Iterator=8388608]="Iterator",ie[ie.NoAsciiEscaping=16777216]="NoAsciiEscaping",ie[ie.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",ie[ie.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",ie[ie.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",ie[ie.Immutable=268435456]="Immutable",ie[ie.IndirectCall=536870912]="IndirectCall",(ae=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[ae.Extends=1]="Extends",ae[ae.Assign=2]="Assign",ae[ae.Rest=4]="Rest",ae[ae.Decorate=8]="Decorate",ae[ae.Metadata=16]="Metadata",ae[ae.Param=32]="Param",ae[ae.Awaiter=64]="Awaiter",ae[ae.Generator=128]="Generator",ae[ae.Values=256]="Values",ae[ae.Read=512]="Read",ae[ae.SpreadArray=1024]="SpreadArray",ae[ae.Await=2048]="Await",ae[ae.AsyncGenerator=4096]="AsyncGenerator",ae[ae.AsyncDelegator=8192]="AsyncDelegator",ae[ae.AsyncValues=16384]="AsyncValues",ae[ae.ExportStar=32768]="ExportStar",ae[ae.ImportStar=65536]="ImportStar",ae[ae.ImportDefault=131072]="ImportDefault",ae[ae.MakeTemplateObject=262144]="MakeTemplateObject",ae[ae.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",ae[ae.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",ae[ae.CreateBinding=2097152]="CreateBinding",ae[ae.FirstEmitHelper=1]="FirstEmitHelper",ae[ae.LastEmitHelper=2097152]="LastEmitHelper",ae[ae.ForOfIncludes=256]="ForOfIncludes",ae[ae.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",ae[ae.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",ae[ae.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",ae[ae.SpreadIncludes=1536]="SpreadIncludes",(oe=e.EmitHint||(e.EmitHint={}))[oe.SourceFile=0]="SourceFile",oe[oe.Expression=1]="Expression",oe[oe.IdentifierName=2]="IdentifierName",oe[oe.MappedTypeParameter=3]="MappedTypeParameter",oe[oe.Unspecified=4]="Unspecified",oe[oe.EmbeddedStatement=5]="EmbeddedStatement",oe[oe.JsxAttributeValue=6]="JsxAttributeValue",(se=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[se.Parentheses=1]="Parentheses",se[se.TypeAssertions=2]="TypeAssertions",se[se.NonNullAssertions=4]="NonNullAssertions",se[se.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",se[se.Assertions=6]="Assertions",se[se.All=15]="All",(ce=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[ce.None=0]="None",ce[ce.InParameters=1]="InParameters",ce[ce.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(ue=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",ue.EmitHelpers="emitHelpers",ue.NoDefaultLib="no-default-lib",ue.Reference="reference",ue.Type="type",ue.Lib="lib",ue.Prepend="prepend",ue.Text="text",ue.Internal="internal",(le=e.ListFormat||(e.ListFormat={}))[le.None=0]="None",le[le.SingleLine=0]="SingleLine",le[le.MultiLine=1]="MultiLine",le[le.PreserveLines=2]="PreserveLines",le[le.LinesMask=3]="LinesMask",le[le.NotDelimited=0]="NotDelimited",le[le.BarDelimited=4]="BarDelimited",le[le.AmpersandDelimited=8]="AmpersandDelimited",le[le.CommaDelimited=16]="CommaDelimited",le[le.AsteriskDelimited=32]="AsteriskDelimited",le[le.DelimitersMask=60]="DelimitersMask",le[le.AllowTrailingComma=64]="AllowTrailingComma",le[le.Indented=128]="Indented",le[le.SpaceBetweenBraces=256]="SpaceBetweenBraces",le[le.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",le[le.Braces=1024]="Braces",le[le.Parenthesis=2048]="Parenthesis",le[le.AngleBrackets=4096]="AngleBrackets",le[le.SquareBrackets=8192]="SquareBrackets",le[le.BracketsMask=15360]="BracketsMask",le[le.OptionalIfUndefined=16384]="OptionalIfUndefined",le[le.OptionalIfEmpty=32768]="OptionalIfEmpty",le[le.Optional=49152]="Optional",le[le.PreferNewLine=65536]="PreferNewLine",le[le.NoTrailingNewLine=131072]="NoTrailingNewLine",le[le.NoInterveningComments=262144]="NoInterveningComments",le[le.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",le[le.SingleElement=1048576]="SingleElement",le[le.SpaceAfterList=2097152]="SpaceAfterList",le[le.Modifiers=262656]="Modifiers",le[le.HeritageClauses=512]="HeritageClauses",le[le.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",le[le.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",le[le.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",le[le.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",le[le.UnionTypeConstituents=516]="UnionTypeConstituents",le[le.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",le[le.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",le[le.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",le[le.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",le[le.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",le[le.CommaListElements=528]="CommaListElements",le[le.CallExpressionArguments=2576]="CallExpressionArguments",le[le.NewExpressionArguments=18960]="NewExpressionArguments",le[le.TemplateExpressionSpans=262144]="TemplateExpressionSpans",le[le.SingleLineBlockStatements=768]="SingleLineBlockStatements",le[le.MultiLineBlockStatements=129]="MultiLineBlockStatements",le[le.VariableDeclarationList=528]="VariableDeclarationList",le[le.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",le[le.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",le[le.ClassHeritageClauses=0]="ClassHeritageClauses",le[le.ClassMembers=129]="ClassMembers",le[le.InterfaceMembers=129]="InterfaceMembers",le[le.EnumMembers=145]="EnumMembers",le[le.CaseBlockClauses=129]="CaseBlockClauses",le[le.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",le[le.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",le[le.JsxElementAttributes=262656]="JsxElementAttributes",le[le.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",le[le.HeritageClauseTypes=528]="HeritageClauseTypes",le[le.SourceFileStatements=131073]="SourceFileStatements",le[le.Decorators=2146305]="Decorators",le[le.TypeArguments=53776]="TypeArguments",le[le.TypeParameters=53776]="TypeParameters",le[le.Parameters=2576]="Parameters",le[le.IndexSignatureParameters=8848]="IndexSignatureParameters",le[le.JSDocComment=33]="JSDocComment",(_e=e.PragmaKindFlags||(e.PragmaKindFlags={}))[_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.commentPragmas={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}],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}}}(s||(s={})),function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var r=/\\/g;function n(e){return 47===e||92===e}function i(e){return l(e)>0}function a(e){return 0!==l(e)}function o(e){return/^\.\.?($|[\\/])/.test(e)}function s(t,r){return t.length>r.length&&e.endsWith(t,r)}function c(e){return e.length>0&&n(e.charCodeAt(e.length-1))}function u(e){return e>=97&&e<=122||e>=65&&e<=90}function l(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:e.altDirectorySeparator,2);return n<0?t.length:n+1}if(u(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf("://");if(-1!==a){var o=a+"://".length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),l=t.slice(o,s);if("file"===c&&(""===l||"localhost"===l)&&u(t.charCodeAt(s+1))){var _=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(t,s+2);if(-1!==_){if(47===t.charCodeAt(_))return~(_+1);if(_===t.length)return~_}}return~(s+1)}return~t.length}return 0}function _(e){var t=l(e);return t<0?~t:t}function d(t){var r=_(t=v(t));return r===t.length?t:(t=E(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function p(t,r,n){if(_(t=v(t))===t.length)return"";var i=(t=E(t)).slice(Math.max(_(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?g(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function f(t,r,n){if(e.startsWith(r,".")||(r="."+r),t.length>=r.length&&46===t.charCodeAt(t.length-r.length)){var i=t.slice(t.length-r.length);if(n(i,r))return i}}function g(t,r,n){if(r)return function(e,t,r){if("string"==typeof t)return f(e,t,r)||"";for(var n=0,i=t;n=0?i.substring(a):""}function m(r,n){return void 0===n&&(n=""),function(r,n){var i=r.substring(0,n),a=r.substring(n).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),t([i],a,!0)}(r=D(n,r),_(r))}function y(t){return 0===t.length?"":(t[0]&&T(t[0]))+t.slice(1).join(e.directorySeparator)}function v(t){var n=t.indexOf("\\");return-1===n?t:(r.lastIndex=n,t.replace(r,e.directorySeparator))}function h(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function D(e){for(var t=[],r=1;r0&&t===e.length},e.pathIsAbsolute=a,e.pathIsRelative=o,e.pathIsBareSpecifier=function(e){return!a(e)&&!o(e)},e.hasExtension=function(t){return e.stringContains(p(t),".")},e.fileExtensionIs=s,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r0==_(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return y(N(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function w(t,r,n,a,o){var s=N(b(n,t),b(n,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&i(c)){var u=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=u+c}return y(s)}e.comparePathsCaseSensitive=function(t,r){return F(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return F(t,r,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,r,n,i){return"string"==typeof n?(t=D(n,t),r=D(n,r)):"boolean"==typeof n&&(i=n),F(t,r,e.getStringComparer(i))},e.containsPath=function(t,r,n,i){if("string"==typeof n?(t=D(n,t),r=D(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=h(m(t)),o=h(m(r));if(o.length=4,g="linux"===Qr.platform||"darwin"===Qr.platform,y=l.platform(),v="win32"!==y&&"win64"!==y&&!L("/prettier-security-filename-placeholder.js".replace(/\w/g,(function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t}))),h=v&&null!==(r=s.realpathSync.native)&&void 0!==r?r:s.realpathSync,b=f&&("win32"===Qr.platform||"darwin"===Qr.platform),x=e.memoize((function(){return Qr.cwd()})),E=C({pollingWatchFile:m((function(e,t,r){var i;return s.watchFile(e,{persistent:!0,interval:r},a),{close:function(){return s.unwatchFile(e,a)}};function a(r,a){var o=0==+a.mtime||i===n.Deleted;if(0==+r.mtime){if(o)return;i=n.Deleted}else if(o)i=n.Created;else{if(+r.mtime==+a.mtime)return;i=n.Changed}t(e,i)}}),v),getModifiedTime:j,setTimeout:setTimeout,clearTimeout:clearTimeout,fsWatch:function(t,r,i,a,o,c){var u,l,_;g&&(l=t.substr(t.lastIndexOf(e.directorySeparator)),_=l.slice(e.directorySeparator.length));var p=M(t,r)?m():h();return{close:function(){p.close(),p=void 0}};function f(r){e.sysLog("sysLog:: "+t+":: Changing watcher to "+(r===m?"Present":"Missing")+"FileSystemEntryWatcher"),i("rename",""),p&&(p.close(),p=r())}function m(){if(void 0===u&&(u=b?{persistent:!0,recursive:!!a}:{persistent:!0}),d)return e.sysLog("sysLog:: "+t+":: Defaulting to fsWatchFile"),v();try{var r=s.watch(t,u,g?y:i);return r.on("error",(function(){return f(h)})),r}catch(r){return d||(d="ENOSPC"===r.code),e.sysLog("sysLog:: "+t+":: Changing to fsWatchFile"),v()}}function y(e,n){return"rename"!==e||n&&n!==_&&(-1===n.lastIndexOf(l)||n.lastIndexOf(l)!==n.length-l.length)||M(t,r)?i(e,n):f(h)}function v(){return A(t,D(i),o,c)}function h(){return A(t,(function(e,i){i===n.Created&&M(t,r)&&f(m)}),o,c)}},useCaseSensitiveFileNames:v,getCurrentDirectory:x,fileExists:L,fsSupportsRecursiveFsWatch:b,directoryExists:R,getAccessibleSortedChildDirectories:function(e){return O(e).directories},realpath:B,tscWatchFile:Qr.env.TSC_WATCHFILE,useNonPollingWatchers:Qr.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:Qr.env.TSC_WATCHDIRECTORY,defaultWatchFileKind:function(){var e,t;return null===(t=(e=c).defaultWatchFileKind)||void 0===t?void 0:t.call(e)}}),A=E.watchFile,F=E.watchDirectory,N={args:Qr.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:v,write:function(e){Qr.stdout.write(e)},getWidthOfTerminal:function(){return Qr.stdout.columns},writeOutputIsTTY:function(){return Qr.stdout.isTTY},readFile:function(t,r){e.perfLogger.logStartReadFile(t);var n=function(e,t){var r;try{r=s.readFileSync(e)}catch(e){return}var n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}(t);return e.perfLogger.logStopReadFile(),n},writeFile:function(t,r,n){var i;e.perfLogger.logEvent("WriteFile: "+t),n&&(r="\ufeff"+r);try{i=s.openSync(t,"w"),s.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&s.closeSync(i)}},watchFile:A,watchDirectory:F,resolvePath:function(e){return u.resolve(e)},fileExists:L,directoryExists:R,createDirectory:function(e){if(!N.directoryExists(e))try{s.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return"/prettier-security-filename-placeholder.js"},getCurrentDirectory:x,getDirectories:function(e){return O(e).directories.slice()},getEnvironmentVariable:function(e){return Qr.env[e]||""},readDirectory:function(t,r,n,i,a){return e.matchFiles(t,r,n,i,v,Qr.cwd(),a,O,B,R)},getModifiedTime:j,setModifiedTime:function(e,t){try{s.utimesSync(e,t,t)}catch(e){return}},deleteFile:function(e){try{return s.unlinkSync(e)}catch(e){return}},createHash:i?J:t,createSHA256Hash:i?J:void 0,getMemoryUsage:function(){return S.gc&&S.gc(),Qr.memoryUsage().heapUsed},getFileSize:function(e){try{var t=P(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit:function(e){w((function(){return Qr.exit(e)}))},enableCPUProfiler:function(e,t){if(a)return t(),!1;var r={};if(!r||!r.Session)return t(),!1;var n=new r.Session;return n.connect(),n.post("Profiler.enable",(function(){n.post("Profiler.start",(function(){a=n,_=e,t()}))})),!0},disableCPUProfiler:w,cpuProfilingEnabled:function(){return!!a||e.contains(Qr.execArgv,"--cpu-prof")||e.contains(Qr.execArgv,"--prof")},realpath:B,debugMode:!!Qr.env.NODE_INSPECTOR_IPC||!!Qr.env.VSCODE_INSPECTOR_OPTIONS||e.some(Qr.execArgv,(function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)})),tryEnableSourceMapsForHost:function(){},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){Qr.stdout.write("\x1bc")},setBlocking:function(){Qr.stdout&&Qr.stdout._handle&&Qr.stdout._handle.setBlocking&&Qr.stdout._handle.setBlocking(!0)},bufferFrom:I,base64decode:function(e){return I(e,"base64").toString("utf8")},base64encode:function(e){return I(e).toString("base64")},require:function(t,r){try{return{module:void 0,modulePath:e.resolveJSModule(r,t,N),error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return N;function P(e){return s.statSync(e,{throwIfNoEntry:!1})}function w(t){if(a&&"stopping"!==a){var r=a;return a.post("Profiler.stop",(function(n,i){var c,l=i.profile;if(!n){try{(null===(c=P(_))||void 0===c?void 0:c.isDirectory())&&(_=u.join(_,(new Date).toISOString().replace(/:/g,"-")+"+P"+Qr.pid+".cpuprofile"))}catch(e){}try{s.mkdirSync(u.dirname(_),{recursive:!0})}catch(e){}s.writeFileSync(_,JSON.stringify(function(t){for(var r=0,n=new e.Map,i=e.normalizeSlashes("/prettier-security-dirname-placeholder"),a="file://"+(1===e.getRootLength(i)?"":"/")+i,s=0,c=t.nodes;s type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"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:t(1068,e.DiagnosticCategory.Error,"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:t(1069,e.DiagnosticCategory.Error,"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:t(1070,e.DiagnosticCategory.Error,"_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:t(1071,e.DiagnosticCategory.Error,"_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:t(1079,e.DiagnosticCategory.Error,"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:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_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:t(1091,e.DiagnosticCategory.Error,"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:t(1092,e.DiagnosticCategory.Error,"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:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"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:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"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:t(1102,e.DiagnosticCategory.Error,"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:t(1103,e.DiagnosticCategory.Error,"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:t(1104,e.DiagnosticCategory.Error,"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:t(1105,e.DiagnosticCategory.Error,"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:t(1106,e.DiagnosticCategory.Error,"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:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"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:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"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:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"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:t(1116,e.DiagnosticCategory.Error,"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_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"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:t(1119,e.DiagnosticCategory.Error,"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:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"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:t(1148,e.DiagnosticCategory.Error,"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:t(1149,e.DiagnosticCategory.Error,"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."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"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:t(1163,e.DiagnosticCategory.Error,"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:t(1164,e.DiagnosticCategory.Error,"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:t(1165,e.DiagnosticCategory.Error,"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:t(1166,e.DiagnosticCategory.Error,"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:t(1168,e.DiagnosticCategory.Error,"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:t(1169,e.DiagnosticCategory.Error,"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:t(1170,e.DiagnosticCategory.Error,"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:t(1171,e.DiagnosticCategory.Error,"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:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"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:t(1187,e.DiagnosticCategory.Error,"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:t(1188,e.DiagnosticCategory.Error,"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:t(1189,e.DiagnosticCategory.Error,"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:t(1190,e.DiagnosticCategory.Error,"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:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"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:t(1195,e.DiagnosticCategory.Error,"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:t(1196,e.DiagnosticCategory.Error,"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:t(1197,e.DiagnosticCategory.Error,"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:t(1198,e.DiagnosticCategory.Error,"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:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"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:t(1202,e.DiagnosticCategory.Error,"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:t(1203,e.DiagnosticCategory.Error,"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_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"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."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),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(1210,e.DiagnosticCategory.Error,"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:t(1211,e.DiagnosticCategory.Error,"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:t(1212,e.DiagnosticCategory.Error,"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:t(1213,e.DiagnosticCategory.Error,"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:t(1214,e.DiagnosticCategory.Error,"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:t(1215,e.DiagnosticCategory.Error,"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:t(1216,e.DiagnosticCategory.Error,"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:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"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:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"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:t(1227,e.DiagnosticCategory.Error,"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:t(1228,e.DiagnosticCategory.Error,"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:t(1229,e.DiagnosticCategory.Error,"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:t(1230,e.DiagnosticCategory.Error,"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:t(1231,e.DiagnosticCategory.Error,"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_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"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_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"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:t(1237,e.DiagnosticCategory.Error,"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:t(1238,e.DiagnosticCategory.Error,"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:t(1239,e.DiagnosticCategory.Error,"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:t(1240,e.DiagnosticCategory.Error,"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:t(1241,e.DiagnosticCategory.Error,"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:t(1242,e.DiagnosticCategory.Error,"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:t(1243,e.DiagnosticCategory.Error,"_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:t(1244,e.DiagnosticCategory.Error,"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:t(1245,e.DiagnosticCategory.Error,"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:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"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:t(1248,e.DiagnosticCategory.Error,"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:t(1249,e.DiagnosticCategory.Error,"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:t(1250,e.DiagnosticCategory.Error,"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:t(1251,e.DiagnosticCategory.Error,"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:t(1252,e.DiagnosticCategory.Error,"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."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"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:t(1255,e.DiagnosticCategory.Error,"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:t(1257,e.DiagnosticCategory.Error,"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:t(1258,e.DiagnosticCategory.Error,"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:t(1259,e.DiagnosticCategory.Error,"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:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"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:t(1262,e.DiagnosticCategory.Error,"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:t(1263,e.DiagnosticCategory.Error,"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:t(1264,e.DiagnosticCategory.Error,"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:t(1265,e.DiagnosticCategory.Error,"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:t(1266,e.DiagnosticCategory.Error,"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:t(1267,e.DiagnosticCategory.Error,"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:t(1268,e.DiagnosticCategory.Error,"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."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"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:t(1308,e.DiagnosticCategory.Error,"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."),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:t(1312,e.DiagnosticCategory.Error,"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:t(1313,e.DiagnosticCategory.Error,"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:t(1314,e.DiagnosticCategory.Error,"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:t(1315,e.DiagnosticCategory.Error,"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:t(1316,e.DiagnosticCategory.Error,"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:t(1317,e.DiagnosticCategory.Error,"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:t(1318,e.DiagnosticCategory.Error,"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:t(1319,e.DiagnosticCategory.Error,"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:t(1320,e.DiagnosticCategory.Error,"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:t(1321,e.DiagnosticCategory.Error,"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:t(1322,e.DiagnosticCategory.Error,"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_esnext_commonjs_amd_system_or_umd:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"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:t(1328,e.DiagnosticCategory.Error,"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:t(1329,e.DiagnosticCategory.Error,"_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:t(1330,e.DiagnosticCategory.Error,"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:t(1331,e.DiagnosticCategory.Error,"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:t(1332,e.DiagnosticCategory.Error,"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:t(1333,e.DiagnosticCategory.Error,"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:t(1334,e.DiagnosticCategory.Error,"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:t(1335,e.DiagnosticCategory.Error,"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:t(1337,e.DiagnosticCategory.Error,"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:t(1338,e.DiagnosticCategory.Error,"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:t(1339,e.DiagnosticCategory.Error,"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:t(1340,e.DiagnosticCategory.Error,"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}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"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:t(1346,e.DiagnosticCategory.Error,"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:t(1347,e.DiagnosticCategory.Error,"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:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"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:t(1351,e.DiagnosticCategory.Error,"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:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"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:t(1354,e.DiagnosticCategory.Error,"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:t(1355,e.DiagnosticCategory.Error,"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:t(1356,e.DiagnosticCategory.Error,"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:t(1357,e.DiagnosticCategory.Error,"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:t(1358,e.DiagnosticCategory.Error,"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:t(1359,e.DiagnosticCategory.Error,"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."),Did_you_mean_to_parenthesize_this_function_type:t(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_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:t(1362,e.DiagnosticCategory.Error,"_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:t(1363,e.DiagnosticCategory.Error,"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:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"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:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"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:t(1371,e.DiagnosticCategory.Error,"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'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),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:t(1375,e.DiagnosticCategory.Error,"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:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"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:t(1380,e.DiagnosticCategory.Error,"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:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:t(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"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:t(1386,e.DiagnosticCategory.Error,"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:t(1387,e.DiagnosticCategory.Error,"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:t(1388,e.DiagnosticCategory.Error,"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:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),Provides_a_root_package_name_when_using_outFile_with_declarations:t(1390,e.DiagnosticCategory.Message,"Provides_a_root_package_name_when_using_outFile_with_declarations_1390","Provides a root package name when using outFile with declarations."),The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_declaration_emit:t(1391,e.DiagnosticCategory.Error,"The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_de_1391","The 'bundledPackageName' option must be provided when using outFile and node module resolution with declaration emit."),An_import_alias_cannot_use_import_type:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"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:t(1395,e.DiagnosticCategory.Message,"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:t(1396,e.DiagnosticCategory.Message,"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:t(1397,e.DiagnosticCategory.Message,"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:t(1398,e.DiagnosticCategory.Message,"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:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"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:t(1403,e.DiagnosticCategory.Message,"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:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"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:t(1411,e.DiagnosticCategory.Message,"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:t(1412,e.DiagnosticCategory.Message,"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:t(1413,e.DiagnosticCategory.Message,"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:t(1414,e.DiagnosticCategory.Message,"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:t(1415,e.DiagnosticCategory.Message,"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:t(1416,e.DiagnosticCategory.Message,"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:t(1417,e.DiagnosticCategory.Message,"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:t(1418,e.DiagnosticCategory.Message,"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:t(1419,e.DiagnosticCategory.Message,"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:t(1420,e.DiagnosticCategory.Message,"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:t(1421,e.DiagnosticCategory.Message,"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:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"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:t(1431,e.DiagnosticCategory.Error,"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_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:t(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(1435,e.DiagnosticCategory.Error,"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:t(1436,e.DiagnosticCategory.Error,"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:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:t(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:t(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"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:t(2201,e.DiagnosticCategory.Error,"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:t(2202,e.DiagnosticCategory.Error,"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:t(2203,e.DiagnosticCategory.Error,"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:t(2204,e.DiagnosticCategory.Error,"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:t(2205,e.DiagnosticCategory.Error,"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),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"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:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"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:t(2308,e.DiagnosticCategory.Error,"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:t(2309,e.DiagnosticCategory.Error,"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:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"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:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"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:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"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:t(2320,e.DiagnosticCategory.Error,"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:t(2321,e.DiagnosticCategory.Error,"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:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"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:t(2325,e.DiagnosticCategory.Error,"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:t(2326,e.DiagnosticCategory.Error,"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:t(2327,e.DiagnosticCategory.Error,"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:t(2328,e.DiagnosticCategory.Error,"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:t(2329,e.DiagnosticCategory.Error,"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:t(2330,e.DiagnosticCategory.Error,"_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:t(2331,e.DiagnosticCategory.Error,"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:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"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:t(2335,e.DiagnosticCategory.Error,"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:t(2336,e.DiagnosticCategory.Error,"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:t(2337,e.DiagnosticCategory.Error,"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:t(2338,e.DiagnosticCategory.Error,"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:t(2339,e.DiagnosticCategory.Error,"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:t(2340,e.DiagnosticCategory.Error,"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:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"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:t(2344,e.DiagnosticCategory.Error,"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:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"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:t(2348,e.DiagnosticCategory.Error,"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:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"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:t(2351,e.DiagnosticCategory.Error,"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:t(2352,e.DiagnosticCategory.Error,"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:t(2353,e.DiagnosticCategory.Error,"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:t(2354,e.DiagnosticCategory.Error,"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_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"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:t(2357,e.DiagnosticCategory.Error,"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:t(2358,e.DiagnosticCategory.Error,"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:t(2359,e.DiagnosticCategory.Error,"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_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"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:t(2363,e.DiagnosticCategory.Error,"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:t(2364,e.DiagnosticCategory.Error,"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:t(2365,e.DiagnosticCategory.Error,"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:t(2366,e.DiagnosticCategory.Error,"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_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"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:t(2370,e.DiagnosticCategory.Error,"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:t(2371,e.DiagnosticCategory.Error,"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:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"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:t(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"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:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:t(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"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:t(2384,e.DiagnosticCategory.Error,"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:t(2385,e.DiagnosticCategory.Error,"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:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"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:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"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:t(2395,e.DiagnosticCategory.Error,"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:t(2396,e.DiagnosticCategory.Error,"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:t(2397,e.DiagnosticCategory.Error,"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:t(2398,e.DiagnosticCategory.Error,"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:t(2399,e.DiagnosticCategory.Error,"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:t(2400,e.DiagnosticCategory.Error,"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."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"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:t(2403,e.DiagnosticCategory.Error,"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:t(2404,e.DiagnosticCategory.Error,"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:t(2405,e.DiagnosticCategory.Error,"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:t(2406,e.DiagnosticCategory.Error,"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:t(2407,e.DiagnosticCategory.Error,"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:t(2408,e.DiagnosticCategory.Error,"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:t(2409,e.DiagnosticCategory.Error,"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:t(2410,e.DiagnosticCategory.Error,"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'."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:t(2411,e.DiagnosticCategory.Error,"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:t(2413,e.DiagnosticCategory.Error,"_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:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"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:t(2416,e.DiagnosticCategory.Error,"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:t(2417,e.DiagnosticCategory.Error,"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:t(2418,e.DiagnosticCategory.Error,"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:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"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:t(2422,e.DiagnosticCategory.Error,"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:t(2423,e.DiagnosticCategory.Error,"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:t(2425,e.DiagnosticCategory.Error,"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:t(2426,e.DiagnosticCategory.Error,"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:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"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:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"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:t(2432,e.DiagnosticCategory.Error,"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:t(2433,e.DiagnosticCategory.Error,"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:t(2434,e.DiagnosticCategory.Error,"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:t(2435,e.DiagnosticCategory.Error,"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:t(2436,e.DiagnosticCategory.Error,"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:t(2437,e.DiagnosticCategory.Error,"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:t(2438,e.DiagnosticCategory.Error,"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:t(2439,e.DiagnosticCategory.Error,"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:t(2440,e.DiagnosticCategory.Error,"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:t(2441,e.DiagnosticCategory.Error,"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:t(2442,e.DiagnosticCategory.Error,"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:t(2443,e.DiagnosticCategory.Error,"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:t(2444,e.DiagnosticCategory.Error,"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:t(2445,e.DiagnosticCategory.Error,"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:t(2446,e.DiagnosticCategory.Error,"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:t(2447,e.DiagnosticCategory.Error,"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:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"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:t(2459,e.DiagnosticCategory.Error,"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:t(2460,e.DiagnosticCategory.Error,"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:t(2461,e.DiagnosticCategory.Error,"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:t(2462,e.DiagnosticCategory.Error,"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:t(2463,e.DiagnosticCategory.Error,"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:t(2464,e.DiagnosticCategory.Error,"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:t(2465,e.DiagnosticCategory.Error,"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:t(2466,e.DiagnosticCategory.Error,"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:t(2467,e.DiagnosticCategory.Error,"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:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"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:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),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:t(2475,e.DiagnosticCategory.Error,"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:t(2476,e.DiagnosticCategory.Error,"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:t(2477,e.DiagnosticCategory.Error,"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:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"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:t(2481,e.DiagnosticCategory.Error,"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:t(2483,e.DiagnosticCategory.Error,"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:t(2484,e.DiagnosticCategory.Error,"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:t(2487,e.DiagnosticCategory.Error,"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:t(2488,e.DiagnosticCategory.Error,"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:t(2489,e.DiagnosticCategory.Error,"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:t(2490,e.DiagnosticCategory.Error,"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:t(2491,e.DiagnosticCategory.Error,"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:t(2492,e.DiagnosticCategory.Error,"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:t(2493,e.DiagnosticCategory.Error,"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:t(2494,e.DiagnosticCategory.Error,"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:t(2495,e.DiagnosticCategory.Error,"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:t(2496,e.DiagnosticCategory.Error,"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:t(2497,e.DiagnosticCategory.Error,"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:t(2498,e.DiagnosticCategory.Error,"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:t(2499,e.DiagnosticCategory.Error,"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:t(2500,e.DiagnosticCategory.Error,"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:t(2501,e.DiagnosticCategory.Error,"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:t(2502,e.DiagnosticCategory.Error,"_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:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"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:t(2505,e.DiagnosticCategory.Error,"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:t(2506,e.DiagnosticCategory.Error,"_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:t(2507,e.DiagnosticCategory.Error,"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:t(2508,e.DiagnosticCategory.Error,"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:t(2509,e.DiagnosticCategory.Error,"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:t(2510,e.DiagnosticCategory.Error,"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:t(2511,e.DiagnosticCategory.Error,"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:t(2512,e.DiagnosticCategory.Error,"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:t(2513,e.DiagnosticCategory.Error,"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."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"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:t(2516,e.DiagnosticCategory.Error,"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:t(2517,e.DiagnosticCategory.Error,"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:t(2518,e.DiagnosticCategory.Error,"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:t(2519,e.DiagnosticCategory.Error,"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:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses 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:t(2522,e.DiagnosticCategory.Error,"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:t(2523,e.DiagnosticCategory.Error,"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:t(2524,e.DiagnosticCategory.Error,"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:t(2525,e.DiagnosticCategory.Error,"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:t(2526,e.DiagnosticCategory.Error,"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:t(2527,e.DiagnosticCategory.Error,"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:t(2528,e.DiagnosticCategory.Error,"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:t(2529,e.DiagnosticCategory.Error,"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:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"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:t(2537,e.DiagnosticCategory.Error,"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:t(2538,e.DiagnosticCategory.Error,"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:t(2539,e.DiagnosticCategory.Error,"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:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"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:t(2543,e.DiagnosticCategory.Error,"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:t(2544,e.DiagnosticCategory.Error,"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:t(2545,e.DiagnosticCategory.Error,"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:t(2547,e.DiagnosticCategory.Error,"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:t(2548,e.DiagnosticCategory.Error,"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:t(2549,e.DiagnosticCategory.Error,"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:t(2550,e.DiagnosticCategory.Error,"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:t(2551,e.DiagnosticCategory.Error,"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:t(2552,e.DiagnosticCategory.Error,"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:t(2553,e.DiagnosticCategory.Error,"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:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"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:t(2556,e.DiagnosticCategory.Error,"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:t(2558,e.DiagnosticCategory.Error,"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:t(2559,e.DiagnosticCategory.Error,"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:t(2560,e.DiagnosticCategory.Error,"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:t(2561,e.DiagnosticCategory.Error,"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:t(2562,e.DiagnosticCategory.Error,"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:t(2563,e.DiagnosticCategory.Error,"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:t(2564,e.DiagnosticCategory.Error,"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:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"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:t(2567,e.DiagnosticCategory.Error,"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:t(2568,e.DiagnosticCategory.Error,"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}'?"),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Could_not_find_name_0_Did_you_mean_1:t(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:t(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:t(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"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:t(2575,e.DiagnosticCategory.Error,"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:t(2576,e.DiagnosticCategory.Error,"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:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"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:t(2580,e.DiagnosticCategory.Error,"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:t(2581,e.DiagnosticCategory.Error,"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:t(2582,e.DiagnosticCategory.Error,"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:t(2583,e.DiagnosticCategory.Error,"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:t(2584,e.DiagnosticCategory.Error,"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:t(2585,e.DiagnosticCategory.Error,"_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."),Enum_type_0_circularly_references_itself:t(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:t(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"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:t(2589,e.DiagnosticCategory.Error,"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:t(2590,e.DiagnosticCategory.Error,"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:t(2591,e.DiagnosticCategory.Error,"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:t(2592,e.DiagnosticCategory.Error,"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:t(2593,e.DiagnosticCategory.Error,"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_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using '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:t(2595,e.DiagnosticCategory.Error,"_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:t(2596,e.DiagnosticCategory.Error,"_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:t(2597,e.DiagnosticCategory.Error,"_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:t(2598,e.DiagnosticCategory.Error,"_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_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"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:t(2603,e.DiagnosticCategory.Error,"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:t(2604,e.DiagnosticCategory.Error,"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."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"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:t(2607,e.DiagnosticCategory.Error,"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:t(2608,e.DiagnosticCategory.Error,"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:t(2609,e.DiagnosticCategory.Error,"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:t(2610,e.DiagnosticCategory.Error,"_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:t(2611,e.DiagnosticCategory.Error,"_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:t(2612,e.DiagnosticCategory.Error,"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:t(2613,e.DiagnosticCategory.Error,"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:t(2614,e.DiagnosticCategory.Error,"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:t(2615,e.DiagnosticCategory.Error,"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:t(2616,e.DiagnosticCategory.Error,"_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:t(2617,e.DiagnosticCategory.Error,"_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:t(2618,e.DiagnosticCategory.Error,"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:t(2619,e.DiagnosticCategory.Error,"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:t(2620,e.DiagnosticCategory.Error,"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:t(2621,e.DiagnosticCategory.Error,"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:t(2623,e.DiagnosticCategory.Error,"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:t(2624,e.DiagnosticCategory.Error,"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:t(2625,e.DiagnosticCategory.Error,"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:t(2626,e.DiagnosticCategory.Error,"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:t(2627,e.DiagnosticCategory.Error,"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:t(2628,e.DiagnosticCategory.Error,"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:t(2629,e.DiagnosticCategory.Error,"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:t(2630,e.DiagnosticCategory.Error,"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:t(2631,e.DiagnosticCategory.Error,"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:t(2632,e.DiagnosticCategory.Error,"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:t(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:t(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"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:t(2651,e.DiagnosticCategory.Error,"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:t(2652,e.DiagnosticCategory.Error,"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:t(2653,e.DiagnosticCategory.Error,"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}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"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:t(2659,e.DiagnosticCategory.Error,"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:t(2660,e.DiagnosticCategory.Error,"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:t(2661,e.DiagnosticCategory.Error,"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:t(2662,e.DiagnosticCategory.Error,"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:t(2663,e.DiagnosticCategory.Error,"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:t(2664,e.DiagnosticCategory.Error,"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:t(2665,e.DiagnosticCategory.Error,"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:t(2666,e.DiagnosticCategory.Error,"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:t(2667,e.DiagnosticCategory.Error,"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:t(2668,e.DiagnosticCategory.Error,"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:t(2669,e.DiagnosticCategory.Error,"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:t(2670,e.DiagnosticCategory.Error,"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:t(2671,e.DiagnosticCategory.Error,"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:t(2672,e.DiagnosticCategory.Error,"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:t(2673,e.DiagnosticCategory.Error,"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:t(2674,e.DiagnosticCategory.Error,"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:t(2675,e.DiagnosticCategory.Error,"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:t(2676,e.DiagnosticCategory.Error,"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:t(2677,e.DiagnosticCategory.Error,"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:t(2678,e.DiagnosticCategory.Error,"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:t(2679,e.DiagnosticCategory.Error,"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:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"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:t(2684,e.DiagnosticCategory.Error,"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:t(2685,e.DiagnosticCategory.Error,"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:t(2686,e.DiagnosticCategory.Error,"_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:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"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:t(2690,e.DiagnosticCategory.Error,"_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}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_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:t(2693,e.DiagnosticCategory.Error,"_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:t(2694,e.DiagnosticCategory.Error,"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:t(2695,e.DiagnosticCategory.Error,"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:t(2696,e.DiagnosticCategory.Error,"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:t(2697,e.DiagnosticCategory.Error,"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:t(2698,e.DiagnosticCategory.Error,"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:t(2699,e.DiagnosticCategory.Error,"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:t(2700,e.DiagnosticCategory.Error,"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:t(2701,e.DiagnosticCategory.Error,"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:t(2702,e.DiagnosticCategory.Error,"_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:t(2703,e.DiagnosticCategory.Error,"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:t(2704,e.DiagnosticCategory.Error,"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:t(2705,e.DiagnosticCategory.Error,"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:t(2706,e.DiagnosticCategory.Error,"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:t(2707,e.DiagnosticCategory.Error,"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:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"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:t(2710,e.DiagnosticCategory.Error,"_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:t(2711,e.DiagnosticCategory.Error,"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:t(2712,e.DiagnosticCategory.Error,"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:t(2713,e.DiagnosticCategory.Error,"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:t(2714,e.DiagnosticCategory.Error,"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:t(2715,e.DiagnosticCategory.Error,"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:t(2716,e.DiagnosticCategory.Error,"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:t(2717,e.DiagnosticCategory.Error,"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:t(2718,e.DiagnosticCategory.Error,"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:t(2719,e.DiagnosticCategory.Error,"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:t(2720,e.DiagnosticCategory.Error,"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:t(2721,e.DiagnosticCategory.Error,"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:t(2722,e.DiagnosticCategory.Error,"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:t(2723,e.DiagnosticCategory.Error,"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:t(2724,e.DiagnosticCategory.Error,"_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:t(2725,e.DiagnosticCategory.Error,"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:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"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:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"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:t(2731,e.DiagnosticCategory.Error,"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:t(2732,e.DiagnosticCategory.Error,"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:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"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:t(2735,e.DiagnosticCategory.Error,"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:t(2736,e.DiagnosticCategory.Error,"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:t(2737,e.DiagnosticCategory.Error,"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:t(2738,e.DiagnosticCategory.Message,"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:t(2739,e.DiagnosticCategory.Error,"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:t(2740,e.DiagnosticCategory.Error,"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:t(2741,e.DiagnosticCategory.Error,"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:t(2742,e.DiagnosticCategory.Error,"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:t(2743,e.DiagnosticCategory.Error,"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:t(2744,e.DiagnosticCategory.Error,"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:t(2745,e.DiagnosticCategory.Error,"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:t(2746,e.DiagnosticCategory.Error,"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:t(2747,e.DiagnosticCategory.Error,"_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_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_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:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"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:t(2758,e.DiagnosticCategory.Error,"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:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"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:t(2762,e.DiagnosticCategory.Error,"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:t(2763,e.DiagnosticCategory.Error,"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:t(2764,e.DiagnosticCategory.Error,"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:t(2765,e.DiagnosticCategory.Error,"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:t(2766,e.DiagnosticCategory.Error,"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:t(2767,e.DiagnosticCategory.Error,"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:t(2768,e.DiagnosticCategory.Error,"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:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"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:t(2773,e.DiagnosticCategory.Error,"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:t(2774,e.DiagnosticCategory.Error,"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:t(2775,e.DiagnosticCategory.Error,"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:t(2776,e.DiagnosticCategory.Error,"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:t(2777,e.DiagnosticCategory.Error,"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:t(2778,e.DiagnosticCategory.Error,"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:t(2779,e.DiagnosticCategory.Error,"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:t(2780,e.DiagnosticCategory.Error,"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:t(2781,e.DiagnosticCategory.Error,"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:t(2782,e.DiagnosticCategory.Message,"_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:t(2783,e.DiagnosticCategory.Error,"_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:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_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:t(2787,e.DiagnosticCategory.Error,"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:t(2788,e.DiagnosticCategory.Error,"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:t(2789,e.DiagnosticCategory.Error,"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:t(2790,e.DiagnosticCategory.Error,"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:t(2791,e.DiagnosticCategory.Error,"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_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', 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:t(2793,e.DiagnosticCategory.Error,"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:t(2794,e.DiagnosticCategory.Error,"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:t(2795,e.DiagnosticCategory.Error,"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:t(2796,e.DiagnosticCategory.Error,"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:t(2797,e.DiagnosticCategory.Error,"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:t(2798,e.DiagnosticCategory.Error,"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:t(2799,e.DiagnosticCategory.Error,"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:t(2800,e.DiagnosticCategory.Error,"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:t(2801,e.DiagnosticCategory.Error,"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:t(2802,e.DiagnosticCategory.Error,"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:t(2803,e.DiagnosticCategory.Error,"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:t(2804,e.DiagnosticCategory.Error,"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."),Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag:t(2805,e.DiagnosticCategory.Error,"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805","Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag."),Private_accessor_was_defined_without_a_getter:t(2806,e.DiagnosticCategory.Error,"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:t(2807,e.DiagnosticCategory.Error,"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:t(2808,e.DiagnosticCategory.Error,"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_the_whole_assignment_in_parentheses:t(2809,e.DiagnosticCategory.Error,"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 the whole assignment in parentheses."),Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false:t(2810,e.DiagnosticCategory.Error,"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810","Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'."),Initializer_for_property_0:t(2811,e.DiagnosticCategory.Error,"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:t(2812,e.DiagnosticCategory.Error,"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:t(2813,e.DiagnosticCategory.Error,"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:t(2814,e.DiagnosticCategory.Error,"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:t(2815,e.DiagnosticCategory.Error,"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:t(2816,e.DiagnosticCategory.Error,"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:t(2817,e.DiagnosticCategory.Error,"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:t(2818,e.DiagnosticCategory.Error,"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:t(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"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:t(4002,e.DiagnosticCategory.Error,"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:t(4004,e.DiagnosticCategory.Error,"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:t(4006,e.DiagnosticCategory.Error,"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:t(4008,e.DiagnosticCategory.Error,"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:t(4010,e.DiagnosticCategory.Error,"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:t(4012,e.DiagnosticCategory.Error,"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:t(4014,e.DiagnosticCategory.Error,"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:t(4016,e.DiagnosticCategory.Error,"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:t(4019,e.DiagnosticCategory.Error,"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:t(4020,e.DiagnosticCategory.Error,"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:t(4021,e.DiagnosticCategory.Error,"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:t(4022,e.DiagnosticCategory.Error,"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:t(4023,e.DiagnosticCategory.Error,"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:t(4024,e.DiagnosticCategory.Error,"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:t(4025,e.DiagnosticCategory.Error,"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:t(4026,e.DiagnosticCategory.Error,"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:t(4027,e.DiagnosticCategory.Error,"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:t(4028,e.DiagnosticCategory.Error,"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:t(4029,e.DiagnosticCategory.Error,"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:t(4030,e.DiagnosticCategory.Error,"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:t(4031,e.DiagnosticCategory.Error,"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:t(4032,e.DiagnosticCategory.Error,"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:t(4033,e.DiagnosticCategory.Error,"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:t(4034,e.DiagnosticCategory.Error,"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:t(4035,e.DiagnosticCategory.Error,"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:t(4036,e.DiagnosticCategory.Error,"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:t(4037,e.DiagnosticCategory.Error,"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:t(4038,e.DiagnosticCategory.Error,"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:t(4039,e.DiagnosticCategory.Error,"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:t(4040,e.DiagnosticCategory.Error,"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:t(4041,e.DiagnosticCategory.Error,"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:t(4042,e.DiagnosticCategory.Error,"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:t(4043,e.DiagnosticCategory.Error,"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:t(4044,e.DiagnosticCategory.Error,"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:t(4045,e.DiagnosticCategory.Error,"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:t(4046,e.DiagnosticCategory.Error,"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:t(4047,e.DiagnosticCategory.Error,"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:t(4048,e.DiagnosticCategory.Error,"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:t(4049,e.DiagnosticCategory.Error,"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:t(4050,e.DiagnosticCategory.Error,"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:t(4051,e.DiagnosticCategory.Error,"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:t(4052,e.DiagnosticCategory.Error,"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:t(4053,e.DiagnosticCategory.Error,"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:t(4054,e.DiagnosticCategory.Error,"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:t(4055,e.DiagnosticCategory.Error,"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:t(4056,e.DiagnosticCategory.Error,"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:t(4057,e.DiagnosticCategory.Error,"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:t(4058,e.DiagnosticCategory.Error,"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:t(4059,e.DiagnosticCategory.Error,"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:t(4060,e.DiagnosticCategory.Error,"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:t(4061,e.DiagnosticCategory.Error,"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:t(4062,e.DiagnosticCategory.Error,"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:t(4063,e.DiagnosticCategory.Error,"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:t(4064,e.DiagnosticCategory.Error,"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:t(4065,e.DiagnosticCategory.Error,"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:t(4066,e.DiagnosticCategory.Error,"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:t(4067,e.DiagnosticCategory.Error,"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:t(4068,e.DiagnosticCategory.Error,"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:t(4069,e.DiagnosticCategory.Error,"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:t(4070,e.DiagnosticCategory.Error,"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:t(4071,e.DiagnosticCategory.Error,"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:t(4072,e.DiagnosticCategory.Error,"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:t(4073,e.DiagnosticCategory.Error,"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:t(4074,e.DiagnosticCategory.Error,"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:t(4075,e.DiagnosticCategory.Error,"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:t(4076,e.DiagnosticCategory.Error,"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:t(4077,e.DiagnosticCategory.Error,"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:t(4078,e.DiagnosticCategory.Error,"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:t(4081,e.DiagnosticCategory.Error,"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:t(4082,e.DiagnosticCategory.Error,"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:t(4083,e.DiagnosticCategory.Error,"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:t(4084,e.DiagnosticCategory.Error,"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}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"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:t(4091,e.DiagnosticCategory.Error,"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:t(4092,e.DiagnosticCategory.Error,"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:t(4094,e.DiagnosticCategory.Error,"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:t(4095,e.DiagnosticCategory.Error,"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:t(4096,e.DiagnosticCategory.Error,"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:t(4097,e.DiagnosticCategory.Error,"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:t(4098,e.DiagnosticCategory.Error,"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:t(4099,e.DiagnosticCategory.Error,"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:t(4100,e.DiagnosticCategory.Error,"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:t(4101,e.DiagnosticCategory.Error,"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:t(4102,e.DiagnosticCategory.Error,"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:t(4103,e.DiagnosticCategory.Error,"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:t(4104,e.DiagnosticCategory.Error,"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:t(4105,e.DiagnosticCategory.Error,"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:t(4106,e.DiagnosticCategory.Error,"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:t(4107,e.DiagnosticCategory.Error,"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:t(4108,e.DiagnosticCategory.Error,"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:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"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:t(4111,e.DiagnosticCategory.Error,"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:t(4112,e.DiagnosticCategory.Error,"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:t(4113,e.DiagnosticCategory.Error,"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:t(4114,e.DiagnosticCategory.Error,"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:t(4115,e.DiagnosticCategory.Error,"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:t(4116,e.DiagnosticCategory.Error,"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:t(4117,e.DiagnosticCategory.Error,"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:t(4118,e.DiagnosticCategory.Error,"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."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"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:t(5009,e.DiagnosticCategory.Error,"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:t(5010,e.DiagnosticCategory.Error,"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:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"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:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"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:t(5042,e.DiagnosticCategory.Error,"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:t(5047,e.DiagnosticCategory.Error,"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:t(5048,e.DiagnosticCategory.Error,"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:t(5051,e.DiagnosticCategory.Error,"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:t(5052,e.DiagnosticCategory.Error,"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:t(5053,e.DiagnosticCategory.Error,"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:t(5054,e.DiagnosticCategory.Error,"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:t(5055,e.DiagnosticCategory.Error,"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:t(5056,e.DiagnosticCategory.Error,"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:t(5057,e.DiagnosticCategory.Error,"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:t(5058,e.DiagnosticCategory.Error,"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:t(5059,e.DiagnosticCategory.Error,"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:t(5061,e.DiagnosticCategory.Error,"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:t(5062,e.DiagnosticCategory.Error,"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:t(5063,e.DiagnosticCategory.Error,"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:t(5064,e.DiagnosticCategory.Error,"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:t(5065,e.DiagnosticCategory.Error,"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:t(5066,e.DiagnosticCategory.Error,"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:t(5067,e.DiagnosticCategory.Error,"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:t(5068,e.DiagnosticCategory.Error,"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:t(5069,e.DiagnosticCategory.Error,"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_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"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:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"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:t(5074,e.DiagnosticCategory.Error,"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:t(5075,e.DiagnosticCategory.Error,"_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:t(5076,e.DiagnosticCategory.Error,"_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:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"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:t(5080,e.DiagnosticCategory.Error,"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:t(5081,e.DiagnosticCategory.Error,"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:t(5082,e.DiagnosticCategory.Error,"_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:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"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:t(5086,e.DiagnosticCategory.Error,"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:t(5087,e.DiagnosticCategory.Error,"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:t(5088,e.DiagnosticCategory.Error,"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:t(5089,e.DiagnosticCategory.Error,"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:t(5090,e.DiagnosticCategory.Error,"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_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(5092,e.DiagnosticCategory.Error,"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:t(5093,e.DiagnosticCategory.Error,"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:t(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"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:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6655,e.DiagnosticCategory.Message,"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_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"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:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"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:t(6008,e.DiagnosticCategory.Message,"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:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"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:t(6011,e.DiagnosticCategory.Message,"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:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"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:t(6020,e.DiagnosticCategory.Message,"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:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"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:t(6048,e.DiagnosticCategory.Error,"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}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"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:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"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:t(6055,e.DiagnosticCategory.Message,"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:t(6056,e.DiagnosticCategory.Message,"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:t(6058,e.DiagnosticCategory.Message,"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:t(6059,e.DiagnosticCategory.Error,"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:t(6060,e.DiagnosticCategory.Message,"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:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"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:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"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:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"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:t(6074,e.DiagnosticCategory.Message,"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:t(6075,e.DiagnosticCategory.Message,"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:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"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:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"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:t(6082,e.DiagnosticCategory.Error,"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:t(6083,e.DiagnosticCategory.Message,"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:t(6084,e.DiagnosticCategory.Message,"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:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"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:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"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:t(6091,e.DiagnosticCategory.Message,"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:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"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:t(6094,e.DiagnosticCategory.Message,"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_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"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:t(6101,e.DiagnosticCategory.Message,"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:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"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:t(6105,e.DiagnosticCategory.Message,"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:t(6106,e.DiagnosticCategory.Message,"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:t(6107,e.DiagnosticCategory.Message,"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:t(6108,e.DiagnosticCategory.Message,"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:t(6109,e.DiagnosticCategory.Message,"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:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"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:t(6115,e.DiagnosticCategory.Message,"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:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"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:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"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:t(6123,e.DiagnosticCategory.Message,"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:t(6124,e.DiagnosticCategory.Message,"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:t(6125,e.DiagnosticCategory.Message,"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:t(6126,e.DiagnosticCategory.Message,"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:t(6127,e.DiagnosticCategory.Message,"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:t(6128,e.DiagnosticCategory.Message,"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:t(6130,e.DiagnosticCategory.Message,"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:t(6131,e.DiagnosticCategory.Error,"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:t(6132,e.DiagnosticCategory.Message,"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:t(6133,e.DiagnosticCategory.Error,"_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:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"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:t(6137,e.DiagnosticCategory.Error,"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:t(6138,e.DiagnosticCategory.Error,"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:t(6139,e.DiagnosticCategory.Message,"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:t(6140,e.DiagnosticCategory.Error,"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:t(6141,e.DiagnosticCategory.Message,"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:t(6142,e.DiagnosticCategory.Error,"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:t(6144,e.DiagnosticCategory.Message,"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:t(6145,e.DiagnosticCategory.Message,"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:t(6146,e.DiagnosticCategory.Message,"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:t(6147,e.DiagnosticCategory.Message,"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:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"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:t(6152,e.DiagnosticCategory.Message,"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:t(6153,e.DiagnosticCategory.Message,"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:t(6154,e.DiagnosticCategory.Message,"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:t(6155,e.DiagnosticCategory.Message,"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:t(6156,e.DiagnosticCategory.Message,"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:t(6157,e.DiagnosticCategory.Message,"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:t(6158,e.DiagnosticCategory.Message,"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:t(6159,e.DiagnosticCategory.Message,"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:t(6160,e.DiagnosticCategory.Message,"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:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6622,e.DiagnosticCategory.Message,"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."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"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:t(6167,e.DiagnosticCategory.Message,"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:t(6168,e.DiagnosticCategory.Message,"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:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"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:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"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:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"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:t(6183,e.DiagnosticCategory.Message,"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:t(6184,e.DiagnosticCategory.Message,"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:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"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:t(6191,e.DiagnosticCategory.Message,"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:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"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:t(6195,e.DiagnosticCategory.Message,"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:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"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:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"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:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"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:t(6207,e.DiagnosticCategory.Message,"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:t(6208,e.DiagnosticCategory.Message,"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:t(6209,e.DiagnosticCategory.Message,"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:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"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:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"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:t(6214,e.DiagnosticCategory.Message,"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:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"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:t(6219,e.DiagnosticCategory.Message,"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:t(6220,e.DiagnosticCategory.Message,"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:t(6221,e.DiagnosticCategory.Message,"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:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"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:t(6225,e.DiagnosticCategory.Message,"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:t(6226,e.DiagnosticCategory.Message,"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:t(6227,e.DiagnosticCategory.Message,"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:t(6229,e.DiagnosticCategory.Error,"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:t(6230,e.DiagnosticCategory.Error,"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:t(6231,e.DiagnosticCategory.Error,"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:t(6232,e.DiagnosticCategory.Error,"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:t(6233,e.DiagnosticCategory.Error,"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:t(6234,e.DiagnosticCategory.Error,"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:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"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:t(6237,e.DiagnosticCategory.Message,"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:t(6238,e.DiagnosticCategory.Error,"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:t(6239,e.DiagnosticCategory.Message,"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:t(6240,e.DiagnosticCategory.Message,"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:t(6241,e.DiagnosticCategory.Message,"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:t(6242,e.DiagnosticCategory.Message,"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:t(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),Projects_to_reference:t(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"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:t(6305,e.DiagnosticCategory.Error,"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:t(6306,e.DiagnosticCategory.Error,"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:t(6307,e.DiagnosticCategory.Error,"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:t(6308,e.DiagnosticCategory.Error,"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:t(6309,e.DiagnosticCategory.Error,"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:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"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:t(6353,e.DiagnosticCategory.Message,"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:t(6354,e.DiagnosticCategory.Message,"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:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"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:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:t(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"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:t(6363,e.DiagnosticCategory.Message,"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:t(6364,e.DiagnosticCategory.Message,"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:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"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:t(6369,e.DiagnosticCategory.Error,"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:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"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:t(6372,e.DiagnosticCategory.Message,"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:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"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:t(6375,e.DiagnosticCategory.Message,"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:t(6376,e.DiagnosticCategory.Message,"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:t(6377,e.DiagnosticCategory.Error,"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}'"),Enable_incremental_compilation:t(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"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:t(6381,e.DiagnosticCategory.Message,"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:t(6382,e.DiagnosticCategory.Message,"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:t(6383,e.DiagnosticCategory.Message,"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:t(6384,e.DiagnosticCategory.Message,"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:t(6385,e.DiagnosticCategory.Suggestion,"_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:t(6386,e.DiagnosticCategory.Message,"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:t(6387,e.DiagnosticCategory.Suggestion,"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:t(6388,e.DiagnosticCategory.Message,"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:t(6389,e.DiagnosticCategory.Message,"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:t(6390,e.DiagnosticCategory.Message,"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:t(6391,e.DiagnosticCategory.Message,"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:t(6392,e.DiagnosticCategory.Message,"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:t(6393,e.DiagnosticCategory.Message,"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:t(6394,e.DiagnosticCategory.Message,"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:t(6395,e.DiagnosticCategory.Message,"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:t(6396,e.DiagnosticCategory.Message,"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:t(6397,e.DiagnosticCategory.Message,"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:t(6398,e.DiagnosticCategory.Message,"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."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"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:t(6501,e.DiagnosticCategory.Message,"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:t(6502,e.DiagnosticCategory.Message,"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:t(6503,e.DiagnosticCategory.Message,"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:t(6504,e.DiagnosticCategory.Error,"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:t(6505,e.DiagnosticCategory.Message,"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:t(6506,e.DiagnosticCategory.Message,"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:t(6600,e.DiagnosticCategory.Message,"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:t(6601,e.DiagnosticCategory.Message,"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:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(6605,e.DiagnosticCategory.Message,"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:t(6606,e.DiagnosticCategory.Message,"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:t(6607,e.DiagnosticCategory.Message,"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:t(6608,e.DiagnosticCategory.Message,"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:t(6609,e.DiagnosticCategory.Message,"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:t(6611,e.DiagnosticCategory.Message,"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:t(6612,e.DiagnosticCategory.Message,"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:t(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(6615,e.DiagnosticCategory.Message,"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:t(6616,e.DiagnosticCategory.Message,"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:t(6617,e.DiagnosticCategory.Message,"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:t(6618,e.DiagnosticCategory.Message,"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:t(6619,e.DiagnosticCategory.Message,"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:t(6620,e.DiagnosticCategory.Message,"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:t(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Only_output_d_ts_files_and_not_JavaScript_files:t(6623,e.DiagnosticCategory.Message,"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:t(6624,e.DiagnosticCategory.Message,"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:t(6625,e.DiagnosticCategory.Message,"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:t(6626,e.DiagnosticCategory.Message,"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:t(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:t(6628,e.DiagnosticCategory.Message,"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:t(6629,e.DiagnosticCategory.Message,"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_TC39_stage_2_draft_decorators:t(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:t(6631,e.DiagnosticCategory.Message,"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:t(6632,e.DiagnosticCategory.Message,"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:t(6633,e.DiagnosticCategory.Message,"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:t(6634,e.DiagnosticCategory.Message,"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:t(6635,e.DiagnosticCategory.Message,"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:t(6636,e.DiagnosticCategory.Message,"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:t(6637,e.DiagnosticCategory.Message,"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:t(6638,e.DiagnosticCategory.Message,"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:t(6639,e.DiagnosticCategory.Message,"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:t(6641,e.DiagnosticCategory.Message,"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:t(6642,e.DiagnosticCategory.Message,"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:t(6643,e.DiagnosticCategory.Message,"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:t(6644,e.DiagnosticCategory.Message,"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:t(6645,e.DiagnosticCategory.Message,"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:t(6646,e.DiagnosticCategory.Message,"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:t(6647,e.DiagnosticCategory.Message,"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:t(6648,e.DiagnosticCategory.Message,"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:t(6649,e.DiagnosticCategory.Message,"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:t(6650,e.DiagnosticCategory.Message,"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:t(6651,e.DiagnosticCategory.Message,"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:t(6652,e.DiagnosticCategory.Message,"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:t(6653,e.DiagnosticCategory.Message,"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:t(6654,e.DiagnosticCategory.Message,"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_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:t(6656,e.DiagnosticCategory.Message,"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:t(6657,e.DiagnosticCategory.Message,"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:t(6658,e.DiagnosticCategory.Message,"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:t(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:t(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:t(6661,e.DiagnosticCategory.Message,"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:t(6662,e.DiagnosticCategory.Message,"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:t(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:t(6664,e.DiagnosticCategory.Message,"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:t(6665,e.DiagnosticCategory.Message,"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:t(6666,e.DiagnosticCategory.Message,"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:t(6667,e.DiagnosticCategory.Message,"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:t(6668,e.DiagnosticCategory.Message,"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:t(6669,e.DiagnosticCategory.Message,"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:t(6670,e.DiagnosticCategory.Message,"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:t(6671,e.DiagnosticCategory.Message,"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:t(6672,e.DiagnosticCategory.Message,"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:t(6673,e.DiagnosticCategory.Message,"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:t(6674,e.DiagnosticCategory.Message,"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_a_local_variables_aren_t_read:t(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:t(6676,e.DiagnosticCategory.Message,"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:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:t(6678,e.DiagnosticCategory.Message,"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:t(6679,e.DiagnosticCategory.Message,"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:t(6680,e.DiagnosticCategory.Message,"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:t(6681,e.DiagnosticCategory.Message,"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:t(6682,e.DiagnosticCategory.Message,"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:t(6683,e.DiagnosticCategory.Message,"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:t(6684,e.DiagnosticCategory.Message,"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:t(6685,e.DiagnosticCategory.Message,"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:t(6686,e.DiagnosticCategory.Message,"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:t(6687,e.DiagnosticCategory.Message,"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:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:t(6690,e.DiagnosticCategory.Message,"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:t(6691,e.DiagnosticCategory.Message,"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:t(6692,e.DiagnosticCategory.Message,"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:t(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:t(6694,e.DiagnosticCategory.Message,"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:t(6695,e.DiagnosticCategory.Message,"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:t(6697,e.DiagnosticCategory.Message,"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:t(6698,e.DiagnosticCategory.Message,"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:t(6699,e.DiagnosticCategory.Message,"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:t(6700,e.DiagnosticCategory.Message,"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:t(6701,e.DiagnosticCategory.Message,"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:t(6702,e.DiagnosticCategory.Message,"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:t(6703,e.DiagnosticCategory.Message,"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:t(6704,e.DiagnosticCategory.Message,"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:t(6705,e.DiagnosticCategory.Message,"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:t(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:t(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:t(6709,e.DiagnosticCategory.Message,"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:t(6710,e.DiagnosticCategory.Message,"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:t(6711,e.DiagnosticCategory.Message,"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:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(6714,e.DiagnosticCategory.Message,"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:t(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:t(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6717,e.DiagnosticCategory.Message,"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:t(6718,e.DiagnosticCategory.Message,"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"),Type_catch_clause_variables_as_unknown_instead_of_any:t(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(6906,e.DiagnosticCategory.Message,"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:t(6907,e.DiagnosticCategory.Message,"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:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:t(69010,e.DiagnosticCategory.Message,"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:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(6913,e.DiagnosticCategory.Message,"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:t(6914,e.DiagnosticCategory.Message,"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:t(6915,e.DiagnosticCategory.Message,"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:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(6923,e.DiagnosticCategory.Message,"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:t(6924,e.DiagnosticCategory.Message,"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:t(6925,e.DiagnosticCategory.Message,"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:t(6926,e.DiagnosticCategory.Message,"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:t(6927,e.DiagnosticCategory.Message,"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:t(6928,e.DiagnosticCategory.Message,"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:t(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"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:t(7009,e.DiagnosticCategory.Error,"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:t(7010,e.DiagnosticCategory.Error,"_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:t(7011,e.DiagnosticCategory.Error,"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."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"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:t(7014,e.DiagnosticCategory.Error,"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:t(7015,e.DiagnosticCategory.Error,"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:t(7016,e.DiagnosticCategory.Error,"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:t(7017,e.DiagnosticCategory.Error,"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:t(7018,e.DiagnosticCategory.Error,"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:t(7019,e.DiagnosticCategory.Error,"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:t(7020,e.DiagnosticCategory.Error,"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:t(7022,e.DiagnosticCategory.Error,"_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:t(7023,e.DiagnosticCategory.Error,"_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:t(7024,e.DiagnosticCategory.Error,"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:t(7025,e.DiagnosticCategory.Error,"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:t(7026,e.DiagnosticCategory.Error,"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:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"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:t(7032,e.DiagnosticCategory.Error,"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:t(7033,e.DiagnosticCategory.Error,"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:t(7034,e.DiagnosticCategory.Error,"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:t(7035,e.DiagnosticCategory.Error,"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:t(7036,e.DiagnosticCategory.Error,"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:t(7037,e.DiagnosticCategory.Message,"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:t(7038,e.DiagnosticCategory.Message,"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:t(7039,e.DiagnosticCategory.Error,"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:t(7040,e.DiagnosticCategory.Error,"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:t(7041,e.DiagnosticCategory.Error,"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:t(7042,e.DiagnosticCategory.Error,"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:t(7043,e.DiagnosticCategory.Suggestion,"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:t(7044,e.DiagnosticCategory.Suggestion,"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:t(7045,e.DiagnosticCategory.Suggestion,"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:t(7046,e.DiagnosticCategory.Suggestion,"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:t(7047,e.DiagnosticCategory.Suggestion,"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:t(7048,e.DiagnosticCategory.Suggestion,"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:t(7049,e.DiagnosticCategory.Suggestion,"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:t(7050,e.DiagnosticCategory.Suggestion,"_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:t(7051,e.DiagnosticCategory.Error,"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:t(7052,e.DiagnosticCategory.Error,"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:t(7053,e.DiagnosticCategory.Error,"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:t(7054,e.DiagnosticCategory.Error,"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:t(7055,e.DiagnosticCategory.Error,"_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:t(7056,e.DiagnosticCategory.Error,"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:t(7057,e.DiagnosticCategory.Error,"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."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"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:t(8002,e.DiagnosticCategory.Error,"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:t(8003,e.DiagnosticCategory.Error,"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:t(8004,e.DiagnosticCategory.Error,"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:t(8005,e.DiagnosticCategory.Error,"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:t(8006,e.DiagnosticCategory.Error,"_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:t(8008,e.DiagnosticCategory.Error,"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:t(8009,e.DiagnosticCategory.Error,"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:t(8010,e.DiagnosticCategory.Error,"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:t(8011,e.DiagnosticCategory.Error,"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:t(8012,e.DiagnosticCategory.Error,"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:t(8013,e.DiagnosticCategory.Error,"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:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"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:t(8021,e.DiagnosticCategory.Error,"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:t(8022,e.DiagnosticCategory.Error,"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:t(8023,e.DiagnosticCategory.Error,"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:t(8024,e.DiagnosticCategory.Error,"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:t(8025,e.DiagnosticCategory.Error,"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:t(8026,e.DiagnosticCategory.Error,"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:t(8027,e.DiagnosticCategory.Error,"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:t(8028,e.DiagnosticCategory.Error,"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:t(8029,e.DiagnosticCategory.Error,"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:t(8030,e.DiagnosticCategory.Error,"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:t(8031,e.DiagnosticCategory.Error,"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:t(8032,e.DiagnosticCategory.Error,"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:t(8033,e.DiagnosticCategory.Error,"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:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"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:t(9006,e.DiagnosticCategory.Error,"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:t(17e3,e.DiagnosticCategory.Error,"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:t(17001,e.DiagnosticCategory.Error,"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:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"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:t(17005,e.DiagnosticCategory.Error,"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:t(17006,e.DiagnosticCategory.Error,"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:t(17007,e.DiagnosticCategory.Error,"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:t(17008,e.DiagnosticCategory.Error,"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:t(17009,e.DiagnosticCategory.Error,"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:t(17010,e.DiagnosticCategory.Error,"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:t(17011,e.DiagnosticCategory.Error,"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:t(17012,e.DiagnosticCategory.Error,"_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:t(17013,e.DiagnosticCategory.Error,"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:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"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:t(17016,e.DiagnosticCategory.Error,"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:t(17017,e.DiagnosticCategory.Error,"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:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"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:t(18003,e.DiagnosticCategory.Error,"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_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"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:t(80003,e.DiagnosticCategory.Suggestion,"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:t(80004,e.DiagnosticCategory.Suggestion,"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:t(80005,e.DiagnosticCategory.Suggestion,"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:t(80006,e.DiagnosticCategory.Suggestion,"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:t(80007,e.DiagnosticCategory.Suggestion,"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:t(80008,e.DiagnosticCategory.Suggestion,"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."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:t(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"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:t(95031,e.DiagnosticCategory.Message,"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:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"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:t(95037,e.DiagnosticCategory.Message,"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:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"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:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"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:t(95098,e.DiagnosticCategory.Message,"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:t(95099,e.DiagnosticCategory.Message,"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:t(95100,e.DiagnosticCategory.Message,"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:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:t(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:t(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:t(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"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:t(95113,e.DiagnosticCategory.Message,"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:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"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:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"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:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"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:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"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:t(18006,e.DiagnosticCategory.Error,"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:t(18007,e.DiagnosticCategory.Error,"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:t(18009,e.DiagnosticCategory.Error,"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:t(18010,e.DiagnosticCategory.Error,"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:t(18011,e.DiagnosticCategory.Error,"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:t(18012,e.DiagnosticCategory.Error,"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:t(18013,e.DiagnosticCategory.Error,"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:t(18014,e.DiagnosticCategory.Error,"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:t(18015,e.DiagnosticCategory.Error,"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:t(18016,e.DiagnosticCategory.Error,"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:t(18017,e.DiagnosticCategory.Error,"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:t(18018,e.DiagnosticCategory.Error,"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:t(18019,e.DiagnosticCategory.Error,"_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:t(18024,e.DiagnosticCategory.Error,"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:t(18026,e.DiagnosticCategory.Error,"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:t(18027,e.DiagnosticCategory.Error,"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:t(18028,e.DiagnosticCategory.Error,"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:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"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:t(18031,e.DiagnosticCategory.Error,"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:t(18032,e.DiagnosticCategory.Error,"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."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"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:t(18035,e.DiagnosticCategory.Error,"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:t(18036,e.DiagnosticCategory.Error,"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:t(18037,e.DiagnosticCategory.Error,"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:t(18038,e.DiagnosticCategory.Error,"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:t(18039,e.DiagnosticCategory.Error,"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:t(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}}(s||(s={})),function(e){var t;function n(e){return e>=79}e.tokenIsIdentifierOrKeyword=n,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||n(e)},e.textToKeywordObj=((t={abstract:126,any:129,as:127,asserts:128,bigint:156,boolean:132,break:81,case:82,catch:83,class:84,continue:86,const:85}).constructor=133,t.debugger=87,t.declare=134,t.default=88,t.delete=89,t.do=90,t.else=91,t.enum=92,t.export=93,t.extends=94,t.false=95,t.finally=96,t.for=97,t.from=154,t.function=98,t.get=135,t.if=99,t.implements=117,t.import=100,t.in=101,t.infer=136,t.instanceof=102,t.interface=118,t.intrinsic=137,t.is=138,t.keyof=139,t.let=119,t.module=140,t.namespace=141,t.never=142,t.new=103,t.null=104,t.number=145,t.object=146,t.package=120,t.private=121,t.protected=122,t.public=123,t.override=157,t.readonly=143,t.require=144,t.global=155,t.return=105,t.set=147,t.static=124,t.string=148,t.super=106,t.switch=107,t.symbol=149,t.this=108,t.throw=109,t.true=110,t.try=111,t.type=150,t.typeof=112,t.undefined=151,t.unique=152,t.unknown=153,t.var=113,t.void=114,t.while=115,t.with=116,t.yield=125,t.async=130,t.await=131,t.of=158,t);var i=new e.Map(e.getEntries(e.textToKeywordObj)),a=new e.Map(e.getEntries(r(r({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),o=[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],s=[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],c=[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],u=[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],l=[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],_=[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],d=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,p=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function f(e,t){if(e=2?l:1===t?c:o)}e.isUnicodeIdentifierStart=g;var m,y=(m=[],a.forEach((function(e,t){m[e]=t})),m);function v(e){for(var t=new Array,r=0,n=0;r127&&E(i)&&(t.push(n),n=r)}}return t.push(n),t}function h(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,v(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function E(e){return 10===e||13===e||8232===e||8233===e}function T(e){return e>=48&&e<=57}function k(e){return T(e)||e>=65&&e<=70||e>=97&&e<=102}function A(e){return e>=48&&e<=55}e.tokenToString=function(e){return y[e]},e.stringToToken=function(e){return a.get(e)},e.computeLineStarts=v,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):h(D(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=h,e.getLineStarts=D,e.computeLineAndCharacterOfPosition=b,e.computeLineOfPosition=x,e.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=D(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=x(n,i),c=x(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return b(D(e),t)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=C,e.isLineBreak=E,e.isOctalDigit=A,e.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return r>127}},e.skipTrivia=function(t,r,n,i,a){if(e.positionIsSynthesized(r))return r;for(var o=!1;;){var s=t.charCodeAt(r);switch(s){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;o=!!a;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r127&&S(s)){r++;continue}}return r}};var F="<<<<<<<".length;function N(t,r){if(e.Debug.assert(r>=0),0===r||E(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+F=0&&r127&&S(g)){_&&E(g)&&(l=!0),r++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function L(e,t,r,n,i){return M(!0,e,t,!1,r,n,i)}function R(e,t,r,n,i){return M(!0,e,t,!0,r,n,i)}function B(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function j(e){var t=w.exec(e);if(t)return t[0]}function J(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&g(e,t)}function K(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||e>127&&function(e,t){return f(e,t>=2?_:1===t?u:s)}(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=O,e.forEachLeadingCommentRange=function(e,t,r,n){return M(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return M(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=L,e.reduceEachTrailingCommentRange=R,e.getLeadingCommentRanges=function(e,t){return L(e,t,B,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return R(e,t,B,void 0,void 0)},e.getShebang=j,e.isIdentifierStart=J,e.isIdentifierPart=K,e.isIdentifierText=function(e,t,r){var n=z(e,0);if(!J(n,t))return!1;for(var i=U(n);i116},isReservedWord:function(){return m>=81&&m<=116},isUnterminated:function(){return 0!=(4&v)},getCommentDirectives:function(){return h},getNumericLiteralFlags:function(){return 1008&v},getTokenFlags:function(){return v},reScanGreaterToken:function(){if(31===m){if(62===D.charCodeAt(l))return 62===D.charCodeAt(l+1)?61===D.charCodeAt(l+2)?(l+=3,m=72):(l+=2,m=49):61===D.charCodeAt(l+1)?(l+=2,m=71):(l++,m=48);if(61===D.charCodeAt(l))return l++,m=33}return m},reScanAsteriskEqualsToken:function(){return e.Debug.assert(66===m,"'reScanAsteriskEqualsToken' should only be called on a '*='"),l=g+1,m=63},reScanSlashToken:function(){if(43===m||68===m){for(var r=g+1,n=!1,i=!1;;){if(r>=_){v|=4,F(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=D.charCodeAt(r);if(E(a)){v|=4,F(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r<_&&K(D.charCodeAt(r),t);)r++;l=r,y=D.substring(g,l),m=13}return m},reScanTemplateToken:function(t){return e.Debug.assert(19===m,"'reScanTemplateToken' should only be called on a '}'"),l=g,m=H(t)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return l=g,m=H(!0)},scanJsxIdentifier:function(){if(n(m)){for(var e=!1;l<_;){var t=D.charCodeAt(l);if(45!==t)if(58!==t||e){var r=l;if(y+=Z(),l===r)break}else y+=":",l++,e=!0,m=79;else y+="-",l++}":"===y.slice(-1)&&(y=y.slice(0,-1),l--)}return m},scanJsxAttributeValue:se,reScanJsxAttributeValue:function(){return l=g=f,se()},reScanJsxToken:function(e){void 0===e&&(e=!0);return l=g=f,m=oe(e)},reScanLessThanToken:function(){if(47===m)return l=g+1,m=29;return m},reScanHashToken:function(){if(80===m)return l=g+1,m=62;return m},reScanQuestionToken:function(){return e.Debug.assert(60===m,"'reScanQuestionToken' should only be called on a '??'"),l=g+1,m=57},reScanInvalidIdentifier:function(){e.Debug.assert(0===m,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),l=g=f,v=0;var t=z(D,l),r=ie(t,99);if(r)return m=r;return l+=U(t),m},scanJsxToken:oe,scanJsDocToken:function(){if(f=g=l,v=0,l>=_)return m=1;var e=z(D,l);switch(l+=U(e),e){case 9:case 11:case 12:case 32:for(;l<_&&C(D.charCodeAt(l));)l++;return m=5;case 64:return m=59;case 13:10===D.charCodeAt(l)&&l++;case 10:return v|=1,m=4;case 42:return m=41;case 123:return m=18;case 125:return m=19;case 91:return m=22;case 93:return m=23;case 60:return m=29;case 62:return m=31;case 61:return m=63;case 44:return m=27;case 46:return m=24;case 96:return m=61;case 35:return m=62;case 92:l--;var r=Q();if(r>=0&&J(r,t))return l+=3,v|=8,y=X()+Z(),m=ee();var n=$();return n>=0&&J(n,t)?(l+=6,v|=1024,y=String.fromCharCode(n)+Z(),m=ee()):(l++,m=0)}if(J(e,t)){for(var i=e;l<_&&K(i=z(D,l),t)||45===D.charCodeAt(l);)l+=U(i);return y=D.substring(g,l),92===i&&(y+=Z()),m=ee()}return m=0},scan:ne,getText:function(){return D},clearCommentDirectives:function(){h=void 0},setText:ue,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:le,setInJSDocType:function(e){b+=e?1:-1},tryScan:function(e){return ce(e,!1)},lookAhead:function(e){return ce(e,!0)},scanRange:function(e,t,r){var n=_,i=l,a=f,o=g,s=m,c=y,u=v,d=h;ue(D,e,t);var p=r();return _=n,l=i,f=a,g=o,m=s,y=c,v=u,h=d,p}};return e.Debug.isDebugging&&Object.defineProperty(x,"__debugShowCurrentPositionInText",{get:function(){var e=x.getText();return e.slice(0,x.getStartPos())+"\u2551"+e.slice(x.getStartPos())}}),x;function F(e,t,r){if(void 0===t&&(t=l),s){var n=l;l=t,s(e,r||0),l=n}}function w(){for(var t=l,r=!1,n=!1,i="";;){var a=D.charCodeAt(l);if(95!==a){if(!T(a))break;r=!0,n=!1,l++}else v|=512,r?(r=!1,n=!0,i+=D.substring(t,l)):F(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===D.charCodeAt(l-1)&&F(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+D.substring(t,l)}function M(){var t,r,n=l,i=w();46===D.charCodeAt(l)&&(l++,t=w());var a,o=l;if(69===D.charCodeAt(l)||101===D.charCodeAt(l)){l++,v|=16,43!==D.charCodeAt(l)&&45!==D.charCodeAt(l)||l++;var s=l,c=w();c?(r=D.substring(o,s)+c,o=l):F(e.Diagnostics.Digit_expected)}if(512&v?(a=i,t&&(a+="."+t),r&&(a+=r)):a=D.substring(n,o),void 0!==t||16&v)return L(n,void 0===t&&!!(16&v)),{type:8,value:""+ +a};y=a;var u=re();return L(n),{type:u,value:y}}function L(r,n){if(J(z(D,l),t)){var i=l,a=Z().length;1===a&&"n"===D[i]?F(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(F(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),l=i)}}function R(){for(var e=l;A(D.charCodeAt(l));)l++;return+D.substring(e,l)}function B(e,t){var r=V(e,!1,t);return r?parseInt(r,16):-1}function j(e,t){return V(e,!0,t)}function V(t,r,n){for(var i=[],a=!1,o=!1;i.length=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),l++,o=!1}}return i.length=_){n+=D.substring(i,l),v|=4,F(e.Diagnostics.Unterminated_string_literal);break}var a=D.charCodeAt(l);if(a===r){n+=D.substring(i,l),l++;break}if(92!==a||t){if(E(a)&&!t){n+=D.substring(i,l),v|=4,F(e.Diagnostics.Unterminated_string_literal);break}l++}else n+=D.substring(i,l),n+=G(),i=l}return n}function H(t){for(var r,n=96===D.charCodeAt(l),i=++l,a="";;){if(l>=_){a+=D.substring(i,l),v|=4,F(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=D.charCodeAt(l);if(96===o){a+=D.substring(i,l),l++,r=n?14:17;break}if(36===o&&l+1<_&&123===D.charCodeAt(l+1)){a+=D.substring(i,l),l+=2,r=n?15:16;break}92!==o?13!==o?l++:(a+=D.substring(i,l),++l<_&&10===D.charCodeAt(l)&&l++,a+="\n",i=l):(a+=D.substring(i,l),a+=G(t),i=l)}return e.Debug.assert(void 0!==r),y=a,r}function G(t){var r=l;if(++l>=_)return F(e.Diagnostics.Unexpected_end_of_text),"";var n=D.charCodeAt(l);switch(l++,n){case 48:return t&&l<_&&T(D.charCodeAt(l))?(l++,v|=2048,D.substring(r,l)):"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(t)for(var i=l;i=0?String.fromCharCode(r):(F(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=j(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(F(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(F(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),l>=_?(F(e.Diagnostics.Unexpected_end_of_text),n=!0):125===D.charCodeAt(l)?l++:(F(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":q(r)}function $(){if(l+5<_&&117===D.charCodeAt(l+1)){var e=l;l+=2;var t=B(4,!1);return l=e,t}return-1}function Q(){if(t>=2&&117===z(D,l+1)&&123===z(D,l+2)){var e=l;l+=3;var r=j(1,!1),n=r?parseInt(r,16):-1;return l=e,n}return-1}function Z(){for(var e="",r=l;l<_;){var n=z(D,l);if(K(n,t))l+=U(n);else{if(92!==n)break;if((n=Q())>=0&&K(n,t)){l+=3,v|=8,e+=X(),r=l;continue}if(!((n=$())>=0&&K(n,t)))break;v|=1024,e+=D.substring(r,l),e+=q(n),r=l+=6}}return e+=D.substring(r,l)}function ee(){var e=y.length;if(e>=2&&e<=12){var t=y.charCodeAt(0);if(t>=97&&t<=122){var r=i.get(y);if(void 0!==r)return m=r}}return m=79}function te(t){for(var r="",n=!1,i=!1;;){var a=D.charCodeAt(l);if(95!==a){if(n=!0,!T(a)||a-48>=t)break;r+=D[l],l++,i=!1}else v|=512,n?(n=!1,i=!0):F(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 95===D.charCodeAt(l-1)&&F(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),r}function re(){if(110===D.charCodeAt(l))return y+="n",384&v&&(y=e.parsePseudoBigInt(y)+"n"),l++,9;var t=128&v?parseInt(y.slice(2),2):256&v?parseInt(y.slice(2),8):+y;return y=""+t,8}function ne(){var n;f=l,v=0;for(var i=!1;;){if(g=l,l>=_)return m=1;var o=z(D,l);if(35===o&&0===l&&I(D,l)){if(l=O(D,l),r)continue;return m=6}switch(o){case 10:case 13:if(v|=1,r){l++;continue}return 13===o&&l+1<_&&10===D.charCodeAt(l+1)?l+=2:l++,m=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(r){l++;continue}for(;l<_&&C(D.charCodeAt(l));)l++;return m=5;case 33:return 61===D.charCodeAt(l+1)?61===D.charCodeAt(l+2)?(l+=3,m=37):(l+=2,m=35):(l++,m=53);case 34:case 39:return y=W(),m=10;case 96:return m=H(!1);case 37:return 61===D.charCodeAt(l+1)?(l+=2,m=69):(l++,m=44);case 38:return 38===D.charCodeAt(l+1)?61===D.charCodeAt(l+2)?(l+=3,m=76):(l+=2,m=55):61===D.charCodeAt(l+1)?(l+=2,m=73):(l++,m=50);case 40:return l++,m=20;case 41:return l++,m=21;case 42:if(61===D.charCodeAt(l+1))return l+=2,m=66;if(42===D.charCodeAt(l+1))return 61===D.charCodeAt(l+2)?(l+=3,m=67):(l+=2,m=42);if(l++,b&&!i&&1&v){i=!0;continue}return m=41;case 43:return 43===D.charCodeAt(l+1)?(l+=2,m=45):61===D.charCodeAt(l+1)?(l+=2,m=64):(l++,m=39);case 44:return l++,m=27;case 45:return 45===D.charCodeAt(l+1)?(l+=2,m=46):61===D.charCodeAt(l+1)?(l+=2,m=65):(l++,m=40);case 46:return T(D.charCodeAt(l+1))?(y=M().value,m=8):46===D.charCodeAt(l+1)&&46===D.charCodeAt(l+2)?(l+=3,m=25):(l++,m=24);case 47:if(47===D.charCodeAt(l+1)){for(l+=2;l<_&&!E(D.charCodeAt(l));)l++;if(h=ae(h,D.slice(g,l),d,g),r)continue;return m=2}if(42===D.charCodeAt(l+1)){l+=2,42===D.charCodeAt(l)&&47!==D.charCodeAt(l+1)&&(v|=2);for(var s=!1,c=g;l<_;){var u=D.charCodeAt(l);if(42===u&&47===D.charCodeAt(l+1)){l+=2,s=!0;break}l++,E(u)&&(c=l,v|=1)}if(h=ae(h,D.slice(c,l),p,c),s||F(e.Diagnostics.Asterisk_Slash_expected),r)continue;return s||(v|=4),m=3}return 61===D.charCodeAt(l+1)?(l+=2,m=68):(l++,m=43);case 48:if(l+2<_&&(88===D.charCodeAt(l+1)||120===D.charCodeAt(l+1)))return l+=2,(y=j(1,!0))||(F(e.Diagnostics.Hexadecimal_digit_expected),y="0"),y="0x"+y,v|=64,m=re();if(l+2<_&&(66===D.charCodeAt(l+1)||98===D.charCodeAt(l+1)))return l+=2,(y=te(2))||(F(e.Diagnostics.Binary_digit_expected),y="0"),y="0b"+y,v|=128,m=re();if(l+2<_&&(79===D.charCodeAt(l+1)||111===D.charCodeAt(l+1)))return l+=2,(y=te(8))||(F(e.Diagnostics.Octal_digit_expected),y="0"),y="0o"+y,v|=256,m=re();if(l+1<_&&A(D.charCodeAt(l+1)))return y=""+R(),v|=32,m=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return n=M(),m=n.type,y=n.value,m;case 58:return l++,m=58;case 59:return l++,m=26;case 60:if(N(D,l)){if(l=P(D,l,F),r)continue;return m=7}return 60===D.charCodeAt(l+1)?61===D.charCodeAt(l+2)?(l+=3,m=70):(l+=2,m=47):61===D.charCodeAt(l+1)?(l+=2,m=32):1===a&&47===D.charCodeAt(l+1)&&42!==D.charCodeAt(l+2)?(l+=2,m=30):(l++,m=29);case 61:if(N(D,l)){if(l=P(D,l,F),r)continue;return m=7}return 61===D.charCodeAt(l+1)?61===D.charCodeAt(l+2)?(l+=3,m=36):(l+=2,m=34):62===D.charCodeAt(l+1)?(l+=2,m=38):(l++,m=63);case 62:if(N(D,l)){if(l=P(D,l,F),r)continue;return m=7}return l++,m=31;case 63:return 46!==D.charCodeAt(l+1)||T(D.charCodeAt(l+2))?63===D.charCodeAt(l+1)?61===D.charCodeAt(l+2)?(l+=3,m=77):(l+=2,m=60):(l++,m=57):(l+=2,m=28);case 91:return l++,m=22;case 93:return l++,m=23;case 94:return 61===D.charCodeAt(l+1)?(l+=2,m=78):(l++,m=52);case 123:return l++,m=18;case 124:if(N(D,l)){if(l=P(D,l,F),r)continue;return m=7}return 124===D.charCodeAt(l+1)?61===D.charCodeAt(l+2)?(l+=3,m=75):(l+=2,m=56):61===D.charCodeAt(l+1)?(l+=2,m=74):(l++,m=51);case 125:return l++,m=19;case 126:return l++,m=54;case 64:return l++,m=59;case 92:var x=Q();if(x>=0&&J(x,t))return l+=3,v|=8,y=X()+Z(),m=ee();var S=$();return S>=0&&J(S,t)?(l+=6,v|=1024,y=String.fromCharCode(S)+Z(),m=ee()):(F(e.Diagnostics.Invalid_character),l++,m=0);case 35:return 0!==l&&"!"===D[l+1]?(F(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),l++,m=0):(J(z(D,l+1),t)?(l++,ie(z(D,l),t)):(y=String.fromCharCode(z(D,l)),F(e.Diagnostics.Invalid_character,l++,U(o))),m=80);default:var k=ie(o,t);if(k)return m=k;if(C(o)){l+=U(o);continue}if(E(o)){v|=1,l+=U(o);continue}var w=U(o);return F(e.Diagnostics.Invalid_character,l,w),l+=w,m=0}}}function ie(e,t){var r=e;if(J(r,t)){for(l+=U(r);l<_&&K(r=z(D,l),t);)l+=U(r);return y=D.substring(g,l),92===r&&(y+=Z()),ee()}}function ae(t,r,n,i){var a=function(e,t){var r=t.exec(e);if(!r)return;switch(r[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(e.trimStringStart(r),n);return void 0===a?t:e.append(t,{range:{pos:i,end:l},type:a})}function oe(t){if(void 0===t&&(t=!0),f=g=l,l>=_)return m=1;var r=D.charCodeAt(l);if(60===r)return 47===D.charCodeAt(l+1)?(l+=2,m=30):(l++,m=29);if(123===r)return l++,m=18;for(var n=0;l<_&&123!==(r=D.charCodeAt(l));){if(60===r){if(N(D,l))return l=P(D,l,F),m=7;break}if(62===r&&F(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,l,1),125===r&&F(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,l,1),E(r)&&0===n)n=-1;else{if(!t&&E(r)&&n>0)break;S(r)||(n=l)}l++}return y=D.substring(f,l),-1===n?12:11}function se(){switch(f=l,D.charCodeAt(l)){case 34:case 39:return y=W(!0),m=10;default:return ne()}}function ce(e,t){var r=l,n=f,i=g,a=m,o=y,s=v,c=e();return c&&!t||(l=r,f=n,g=i,m=a,y=o,v=s),c}function ue(e,t,r){D=e||"",_=void 0===r?D.length:t+r,le(t||0)}function le(t){e.Debug.assert(t>=0),l=t,f=t,g=t,m=0,y=void 0,v=0}};var z=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t);if(n>=55296&&n<=56319&&r>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(n-55296)+i-56320+65536}return n}};function U(e){return e>=65536?2:1}var V=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)};function q(e){return V(e)}e.utf16EncodeAsString=q}(s||(s={})),function(e){function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function u(t){return!!Q(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function _(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function d(t,r){e.isBindingElement(t)&&(t=_(t));var n=r(t);return 252===t.kind&&(t=t.parent),t&&253===t.kind&&(n|=r(t),t=t.parent),t&&235===t.kind&&(n|=r(t)),n}function p(e){return 0==(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(e){return f(e.escapedText)}function m(t){var r=t.parent.parent;if(r){if(se(r))return y(r);switch(r.kind){case 235:if(r.declarationList&&r.declarationList.declarations[0])return y(r.declarationList.declarations[0]);break;case 236:var n=r.expression;switch(219===n.kind&&63===n.operatorToken.kind&&(n=n.left),n.kind){case 204:return n.name;case 205:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 210:return y(r.expression);case 248:if(se(r.statement)||ne(r.statement))return y(r.statement)}}}function y(t){var r=b(t);return r&&e.isIdentifier(r)?r:void 0}function v(e){return e.name||m(e)}function h(e){return!!e.name}function D(t){switch(t.kind){case 79:return t;case 342:case 335:var r=t.name;if(159===r.kind)return r.right;break;case 206:case 219:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}case 340:return v(t);case 334:return m(t);case 269:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 205:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function b(t){if(void 0!==t)return D(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?x(t):void 0)}function x(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return F(t.parent,r).filter((function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n}))}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=F(t.parent,r).filter(e.isJSDocParameterTag);if(i=159}function B(e){return e>=0&&e<=158}function j(e){return 8<=e&&e<=14}function J(e){return 14<=e&&e<=17}function K(t){return(e.isPropertyDeclaration(t)||Y(t))&&e.isPrivateIdentifier(t.name)}function z(e){switch(e){case 126:case 130:case 85:case 134:case 88:case 93:case 123:case 121:case 122:case 143:case 124:case 157:return!0}return!1}function U(t){return!!(16476&e.modifierToFlag(t))}function V(e){return!!e&&W(e.kind)}function q(e){switch(e){case 254:case 167:case 169:case 170:case 171:case 211:case 212:return!0;default:return!1}}function W(e){switch(e){case 166:case 172:case 318:case 173:case 174:case 177:case 312:case 178:return!0;default:return q(e)}}function H(e){var t=e.kind;return 169===t||165===t||167===t||170===t||171===t||174===t||168===t||232===t}function G(e){return e&&(255===e.kind||224===e.kind)}function Y(e){switch(e.kind){case 167:case 170:case 171:return!0;default:return!1}}function X(e){var t=e.kind;return 173===t||172===t||164===t||166===t||174===t}function $(e){var t=e.kind;return 291===t||292===t||293===t||167===t||170===t||171===t}function Q(e){if(e){var t=e.kind;return 200===t||199===t}return!1}function Z(e){switch(e.kind){case 199:case 203:return!0}return!1}function ee(e){switch(e.kind){case 200:case 202:return!0}return!1}function te(e){switch(e){case 204:case 205:case 207:case 206:case 276:case 277:case 280:case 208:case 202:case 210:case 203:case 224:case 211:case 79:case 13:case 8:case 9:case 10:case 14:case 221:case 95:case 104:case 108:case 110:case 106:case 228:case 229:case 100:return!0;default:return!1}}function re(e){switch(e){case 217:case 218:case 213:case 214:case 215:case 216:case 209:return!0;default:return te(e)}}function ne(e){return function(e){switch(e){case 220:case 222:case 212:case 219:case 223:case 227:case 225:case 346:case 345:return!0;default:return re(e)}}(M(e).kind)}function ie(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ae(e){return 254===e||274===e||255===e||256===e||257===e||258===e||259===e||264===e||263===e||270===e||269===e||262===e}function oe(e){return 244===e||243===e||251===e||238===e||236===e||234===e||241===e||242===e||240===e||237===e||248===e||245===e||247===e||249===e||250===e||235===e||239===e||246===e||344===e||348===e||347===e}function se(t){return 161===t.kind?t.parent&&339!==t.parent.kind||e.isInJSFile(t):212===(r=t.kind)||201===r||255===r||224===r||168===r||169===r||258===r||294===r||273===r||254===r||211===r||170===r||265===r||263===r||268===r||256===r||283===r||167===r||166===r||259===r||262===r||266===r||272===r||162===r||291===r||165===r||164===r||171===r||292===r||257===r||161===r||252===r||340===r||333===r||342===r;var r}function ce(e){return e.kind>=322&&e.kind<=342}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(e){switch(e.target){case 99:return"lib.esnext.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"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=function(e,r){return r>=e.start&&r=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,u=1;u=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=f,e.idText=g,e.symbolName=function(e){return e.valueDeclaration&&K(e.valueDeclaration)?g(e.valueDeclaration.name):f(e.escapedName)},e.nodeHasName=function t(r,n){return!(!h(r)||!e.isIdentifier(r.name)||g(r.name)!==g(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(function(e){return t(e,n)})))},e.getNameOfJSDocTypedef=v,e.isNamedDeclaration=h,e.getNonAssignedNameOfDeclaration=D,e.getNameOfDeclaration=b,e.getAssignedName=x,e.getJSDocParameterTags=C,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return E(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return E(e,!0)},e.hasJSDocParameterTags=function(t){return!!P(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return P(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return w(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return P(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return P(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return P(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return P(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return P(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return P(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return P(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return P(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return P(t,e.isJSDocReadonlyTag,!0)},e.getJSDocOverrideTagNoCache=function(t){return P(t,e.isJSDocOverrideTag,!0)},e.getJSDocDeprecatedTag=function(t){return P(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return P(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return P(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return P(t,e.isJSDocThisTag)},e.getJSDocReturnTag=T,e.getJSDocTemplateTag=function(t){return P(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=k,e.getJSDocType=A,e.getJSDocReturnType=function(t){var r=T(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=k(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=N,e.getJSDocTagsNoCache=function(e){return F(e,!0)},e.getAllJSDocTags=w,e.getAllJSDocTagsOfKind=function(e,t){return N(e).filter((function(e){return e.kind===t}))},e.getTextOfJSDocComment=function(t){return"string"==typeof t?t:null==t?void 0:t.map((function(t){return 316===t.kind?t.text:"{@link "+(t.name?e.entityNameToString(t.name)+" ":"")+t.text+"}"})).join("")},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(315===t.parent.kind),e.flatMap(t.parent.tags,(function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0}));if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=A(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isMemberName=function(e){return 79===e.kind||80===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 171===e.kind||170===e.kind},e.isPropertyAccessChain=function(t){return e.isPropertyAccessExpression(t)&&!!(32&t.flags)},e.isElementAccessChain=function(t){return e.isElementAccessExpression(t)&&!!(32&t.flags)},e.isCallChain=function(t){return e.isCallExpression(t)&&!!(32&t.flags)},e.isOptionalChain=I,e.isOptionalChainRoot=O,e.isExpressionOfOptionalChainRoot=function(e){return O(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!I(e.parent)||O(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 219===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments},e.skipPartiallyEmittedExpressions=M,e.isNonNullChain=function(t){return e.isNonNullExpression(t)&&!!(32&t.flags)},e.isBreakOrContinueStatement=function(e){return 244===e.kind||243===e.kind},e.isNamedExportBindings=function(e){return 272===e.kind||271===e.kind},e.isUnparsedTextLike=L,e.isUnparsedNode=function(e){return L(e)||295===e.kind||299===e.kind},e.isJSDocPropertyLikeTag=function(e){return 342===e.kind||335===e.kind},e.isNode=function(e){return R(e.kind)},e.isNodeKind=R,e.isTokenKind=B,e.isToken=function(e){return B(e.kind)},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=j,e.isLiteralExpression=function(e){return j(e.kind)},e.isTemplateLiteralKind=J,e.isTemplateLiteralToken=function(e){return J(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 268:case 273:return e.parent.parent.isTypeOnly;case 266:return e.parent.isTypeOnly;case 265:case 263:return e.isTypeOnly;default:return!1}},e.isStringTextContainingNode=function(e){return 10===e.kind||J(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isPrivateIdentifierClassElementDeclaration=K,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=z,e.isParameterPropertyModifier=U,e.isClassMemberModifier=function(e){return U(e)||124===e||157===e},e.isModifier=function(e){return z(e.kind)},e.isEntityName=function(e){var t=e.kind;return 159===t||79===t},e.isPropertyName=function(e){var t=e.kind;return 79===t||80===t||10===t||8===t||160===t},e.isBindingName=function(e){var t=e.kind;return 79===t||199===t||200===t},e.isFunctionLike=V,e.isFunctionLikeOrClassStaticBlockDeclaration=function(t){return!!t&&(W(t.kind)||e.isClassStaticBlockDeclaration(t))},e.isFunctionLikeDeclaration=function(e){return e&&q(e.kind)},e.isBooleanLiteral=function(e){return 110===e.kind||95===e.kind},e.isFunctionLikeKind=W,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&V(t.parent)},e.isClassElement=H,e.isClassLike=G,e.isAccessor=function(e){return e&&(170===e.kind||171===e.kind)},e.isMethodOrAccessor=Y,e.isTypeElement=X,e.isClassOrTypeElement=function(e){return X(e)||H(e)},e.isObjectLiteralElementLike=$,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 177:case 178:return!0}return!1},e.isBindingPattern=Q,e.isAssignmentPattern=function(e){var t=e.kind;return 202===t||203===t},e.isArrayBindingElement=function(e){var t=e.kind;return 201===t||225===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 252:case 162:case 201:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return Z(e)||ee(e)},e.isObjectBindingOrAssignmentPattern=Z,e.isObjectBindingOrAssignmentElement=function(e){switch(e.kind){case 201:case 291:case 292:case 293:return!0}return!1},e.isArrayBindingOrAssignmentPattern=ee,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 204===t||159===t||198===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 204===t||159===t},e.isCallLikeExpression=function(e){switch(e.kind){case 278:case 277:case 206:case 207:case 208:case 163:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 206===e.kind||207===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 221===t||14===t},e.isLeftHandSideExpression=function(e){return te(M(e).kind)},e.isUnaryExpression=function(e){return re(M(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 218:return!0;case 217:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=ne,e.isAssertionExpression=function(e){var t=e.kind;return 209===t||227===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,r){switch(t.kind){case 240:case 241:case 242:case 238:case 239:return!0;case 248:return r&&e(t.statement,r)}return!1},e.isScopeMarker=ie,e.hasScopeMarker=function(t){return e.some(t,ie)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)},e.isForInOrOfStatement=function(e){return 241===e.kind||242===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||ne(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||ne(t)},e.isModuleBody=function(e){var t=e.kind;return 260===t||259===t||79===t},e.isNamespaceBody=function(e){var t=e.kind;return 260===t||259===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 79===t||259===t},e.isNamedImportBindings=function(e){var t=e.kind;return 267===t||266===t},e.isModuleOrEnumDeclaration=function(e){return 259===e.kind||258===e.kind},e.isDeclaration=se,e.isDeclarationStatement=function(e){return ae(e.kind)},e.isStatementButNotDeclaration=function(e){return oe(e.kind)},e.isStatement=function(t){var r=t.kind;return oe(r)||ae(r)||function(t){if(233!==t.kind)return!1;if(void 0!==t.parent&&(250===t.parent.kind||290===t.parent.kind))return!1;return!e.isFunctionBlock(t)}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return oe(t)||ae(t)||233===t},e.isModuleReference=function(e){var t=e.kind;return 275===t||159===t||79===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 108===t||79===t||204===t},e.isJsxChild=function(e){var t=e.kind;return 276===t||286===t||277===t||11===t||280===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 283===t||285===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||286===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 278===t||277===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 287===t||288===t},e.isJSDocNode=function(e){return e.kind>=304&&e.kind<=342},e.isJSDocCommentContainingNode=function(t){return 315===t.kind||314===t.kind||316===t.kind||le(t)||ce(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=ce,e.isSetAccessor=function(e){return 171===e.kind},e.isGetAccessor=function(e){return 170===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 252:case 162:case 201:case 164:case 165:case 291:case 294:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 283===e.kind||285===e.kind||$(e)},e.isTypeReferenceType=function(e){return 176===e.kind||226===e.kind};var ue=1073741823;function le(e){return 319===e.kind||320===e.kind||321===e.kind}e.guessIndentation=function(t){for(var r=ue,n=0,i=t;n=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function p(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function f(e){return!p(e)}function g(e,r,n){if(void 0===r||0===r.length)return e;for(var i=0;i0?h(t._children[0],r,n):e.skipTrivia((r||_(t)).text,t.pos,!1,!1,Se(t))}function D(e,t,r){return void 0===r&&(r=!1),b(e.text,t,r)}function b(t,r,n){if(void 0===n&&(n=!1),p(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function(t){return!!e.findAncestor(t,e.isJSDocTypeExpression)}(r)&&(i=i.split(/\r\n|\n|\r/).map((function(t){return e.trimStringStart(t.replace(/^\s*\*/,""))})).join("\n")),i}function x(e,t){return void 0===t&&(t=!1),D(_(e),e,t)}function S(e){return e.pos}function C(e){var t=e.emitNode;return t&&t.flags||0}function E(e){var t=kt(e);return 252===t.kind&&290===t.parent.kind}function T(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||A(t))}function k(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function A(e){return!!(1024&e.flags)}function F(e){return T(e)&&N(e)}function N(t){switch(t.parent.kind){case 300:return e.isExternalModule(t.parent);case 260:return T(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function P(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find((function(t){return!(F(t)||e.isModuleDeclaration(t)&&A(t))}))}function w(t,r){switch(t.kind){case 300:case 261:case 290:case 259:case 240:case 241:case 242:case 169:case 167:case 170:case 171:case 254:case 211:case 212:case 165:case 168:return!0;case 233:return!e.isFunctionLikeOrClassStaticBlockDeclaration(r)}return!1}function I(t){switch(t.kind){case 172:case 173:case 166:case 174:case 177:case 178:case 312:case 255:case 224:case 256:case 257:case 339:case 254:case 167:case 169:case 170:case 171:case 211:case 212:return!0;default:return e.assertType(t),!1}}function O(e){switch(e.kind){case 264:case 263:return!0;default:return!1}}function M(t){return O(t)||e.isExportDeclaration(t)}function L(t){return e.findAncestor(t.parent,(function(e){return w(e,e.parent)}))}function R(e){return e&&0!==u(e)?x(e):"(Missing)"}function B(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 160:return Dt(t.expression)?e.escapeLeadingUnderscores(t.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(t)}}function j(t){switch(t.kind){case 108:return"this";case 80:case 79:return 0===u(t)?e.idText(t):x(t);case 159:return j(t.left)+"."+j(t.right);case 204:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?j(t.expression)+"."+j(t.name):e.Debug.assertNever(t.name);case 306:return j(t.left)+j(t.right);default:return e.Debug.assertNever(t)}}function J(e,t,r,n,i,a,o){var s=V(e,t);return mn(e,s.start,s.length,r,n,i,a,o)}function K(t,r,n){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length))}function z(e,t,r,n,i){return K(e,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function U(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function V(t,r){var n=r;switch(r.kind){case 300:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):U(t,i);case 252:case 201:case 255:case 224:case 256:case 259:case 258:case 294:case 254:case 211:case 167:case 170:case 171:case 257:case 165:case 164:case 266:n=r.name;break;case 212:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&233===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return U(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=p(n),c=s||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,n.end)}function q(e){return 6===e.scriptKind}function W(t){return!!(2&e.getCombinedNodeFlags(t))}function H(e){return 206===e.kind&&100===e.expression.kind}function G(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function Y(e){return 236===e.kind&&10===e.expression.kind}function X(e){return!!(1048576&C(e))}function $(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||s(e,t)},e.optionsHaveModuleResolutionChanges=s,e.changesAffectingProgramStructure=function(t,r){return c(t,r,e.optionsAffectingProgramStructure)},e.optionsHaveChanges=c,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=function(e,t){e.forEach((function(e,r){t.set(r,e)}))},e.usingSingleLineStringWriter=function(e){var t=o.getText();try{return e(o),o.getText()}finally{o.clear(),o.writeKeyword(t)}},e.getFullWidth=u,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,r,n){t.resolvedModules||(t.resolvedModules=new e.Map),t.resolvedModules.set(r,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=new e.Map),t.resolvedTypeReferenceDirectiveNames.set(r,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(r=e.packageId,n=t.packageId,r===n||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToString=function(e){var t=e.name,r=e.subModuleName;return(r?t+"/"+r:t)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath},e.hasChangesInResolutions=function(t,r,n,i){e.Debug.assert(t.length===r.length);for(var a=0;a=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=_(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=d,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=p,e.nodeIsPresent=f,e.insertStatementsAfterStandardPrologue=function(e,t){return g(e,t,Y)},e.insertStatementsAfterCustomPrologue=function(e,t){return g(e,t,y)},e.insertStatementAfterStandardPrologue=function(e,t){return m(e,t,Y)},e.insertStatementAfterCustomPrologue=function(e,t){return m(e,t,y)},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2=e.ModuleKind.ES2015||!r.noImplicitUseStrict)))},e.isBlockScope=w,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 333:case 340:case 318:return!0;default:return e.assertType(t),I(t)}},e.isDeclarationWithTypeParameterChildren=I,e.isAnyImportSyntax=O,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 264:case 263:case 235:case 255:case 254:case 259:case 257:case 256:case 258:return!0;default:return!1}},e.hasPossibleExternalModuleReference=function(t){return M(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||H(t)},e.isAnyImportOrReExport=M,e.getEnclosingBlockScopeContainer=L,e.forEachEnclosingBlockScopeContainer=function(e,t){for(var r=L(e);r;)t(r),r=L(r)},e.declarationNameToString=R,e.getNameFromIndexInfo=function(e){return e.declaration?R(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 160===e.kind&&!Dt(e.expression)},e.getTextOfPropertyName=B,e.entityNameToString=j,e.createDiagnosticForNode=function(e,t,r,n,i,a){return J(_(e),e,t,r,n,i,a)},e.createDiagnosticForNodeArray=function(t,r,n,i,a,o,s){var c=e.skipTrivia(t.text,r.pos);return mn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=J,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=_(e),i=V(n,e);return z(n,i.start,i.length,t,r)},e.createFileDiagnosticFromMessageChain=z,e.createDiagnosticForFileFromMessageChain=function(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},e.getSpanOfTokenAtPosition=U,e.getErrorSpanForNode=V,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=q,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=W,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 206===e.kind&&106===e.expression.kind},e.isImportCall=H,e.isImportMeta=function(t){return e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=G,e.isPrologueDirective=Y,e.isCustomPrologue=X,e.isHoistedFunction=function(t){return X(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return X(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,$)},e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,r){var n=162===t.kind||161===t.kind||211===t.kind||212===t.kind||210===t.kind||252===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,(function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)}))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var Q=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var Z,ee,te,re,ne=/^(\/\/\/\s*/;function ie(t){if(175<=t.kind&&t.kind<=198)return!0;switch(t.kind){case 129:case 153:case 145:case 156:case 148:case 132:case 149:case 146:case 151:case 142:return!0;case 114:return 215!==t.parent.kind;case 226:return!Br(t);case 161:return 193===t.parent.kind||188===t.parent.kind;case 79:(159===t.parent.kind&&t.parent.right===t||204===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(79===t.kind||159===t.kind||204===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 159:case 204:case 108:var r=t.parent;if(179===r.kind)return!1;if(198===r.kind)return!r.isTypeOf;if(175<=r.kind&&r.kind<=198)return!0;switch(r.kind){case 226:return!Br(r);case 161:case 339:return t===r.constraint;case 165:case 164:case 162:case 252:return t===r.type;case 254:case 211:case 212:case 169:case 167:case 166:case 170:case 171:return t===r.type;case 172:case 173:case 174:case 209:return t===r.type;case 206:case 207:return e.contains(r.typeArguments,t);case 208:return!1}}return!1}function ae(e){if(e)switch(e.kind){case 201:case 294:case 162:case 291:case 165:case 164:case 292:case 252:return!0}return!1}function oe(e){return 253===e.parent.kind&&235===e.parent.parent.kind}function se(e,t,r){return e.properties.filter((function(e){if(291===e.kind){var n=B(e.name);return t===n||!!r&&r===n}return!1}))}function ce(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function ue(t,r){var n=ce(t);return n?se(n,r):e.emptyArray}function le(t,r){for(e.Debug.assert(300!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 160:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 163:162===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 212:if(!r)continue;case 254:case 211:case 259:case 168:case 165:case 164:case 167:case 166:case 169:case 170:case 171:case 172:case 173:case 174:case 258:case 300:return t}}}function _e(e){var t=e.kind;return(204===t||205===t)&&106===e.expression.kind}function de(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 255:return!0;case 165:return 255===r.kind;case 170:case 171:case 167:return void 0!==t.body&&255===r.kind;case 162:return void 0!==r.body&&(169===r.kind||167===r.kind||171===r.kind)&&255===n.kind}return!1}function pe(e,t,r){return void 0!==e.decorators&&de(e,t,r)}function fe(e,t,r){return pe(e,t,r)||ge(e,t)}function ge(t,r){switch(t.kind){case 255:return e.some(t.members,(function(e){return fe(e,t,r)}));case 167:case 171:case 169:return e.some(t.parameters,(function(e){return pe(e,t,r)}));default:return!1}}function me(e){var t=e.parent;return(278===t.kind||277===t.kind||279===t.kind)&&t.tagName===e}function ye(t){switch(t.kind){case 106:case 104:case 110:case 95:case 13:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 227:case 209:case 228:case 210:case 211:case 224:case 212:case 215:case 213:case 214:case 217:case 218:case 219:case 220:case 223:case 221:case 225:case 276:case 277:case 280:case 222:case 216:case 229:return!0;case 159:for(;159===t.parent.kind;)t=t.parent;return 179===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||me(t);case 306:for(;e.isJSDocMemberName(t.parent);)t=t.parent;return 179===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||me(t);case 79:if(179===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||me(t))return!0;case 8:case 9:case 10:case 14:case 108:return ve(t);default:return!1}}function ve(e){var t=e.parent;switch(t.kind){case 252:case 162:case 165:case 164:case 294:case 291:case 201:return t.initializer===e;case 236:case 237:case 238:case 239:case 245:case 246:case 247:case 287:case 249:return t.expression===e;case 240:var r=t;return r.initializer===e&&253!==r.initializer.kind||r.condition===e||r.incrementor===e;case 241:case 242:var n=t;return n.initializer===e&&253!==n.initializer.kind||n.expression===e;case 209:case 227:case 231:case 160:return e===t.expression;case 163:case 286:case 285:case 293:return!0;case 226:return t.expression===e&&Br(t);case 292:return t.objectAssignmentInitializer===e;default:return ye(t)}}function he(e){for(;159===e.kind||79===e.kind;)e=e.parent;return 179===e.kind}function De(e){return 263===e.kind&&275===e.moduleReference.kind}function be(e){return xe(e)}function xe(e){return!!e&&!!(131072&e.flags)}function Se(e){return!!e&&!!(4194304&e.flags)}function Ce(t,r){if(206!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function Ee(t){return 201===t.kind&&(t=t.parent.parent),e.isVariableDeclaration(t)&&!!t.initializer&&Ce(nn(t.initializer),!0)}function Te(t){return e.isBinaryExpression(t)||rn(t)||e.isIdentifier(t)||e.isCallExpression(t)}function ke(t){return xe(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&jr(t.name)&&Fe(t.name,t.initializer.left)?t.initializer.right:t.initializer}function Ae(t,r){if(e.isCallExpression(t)){var n=ct(t.expression);return 211===n.kind||212===n.kind?t:void 0}return 211===t.kind||224===t.kind||212===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function Fe(t,r){if(Et(t)&&Et(r))return Tt(t)===Tt(r);if(e.isIdentifier(t)&&Le(r)&&(108===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))){var n=Ke(r);return e.isPrivateIdentifier(n)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Fe(t,n)}return!(!Le(t)||!Le(r))&&(Ue(t)===Ue(r)&&Fe(t.expression,r.expression))}function Ne(e){for(;Rr(e,!0);)e=e.right;return e}function Pe(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function we(t){return e.isIdentifier(t)&&"module"===t.escapedText}function Ie(t){return(e.isPropertyAccessExpression(t)||Re(t))&&we(t.expression)&&"exports"===Ue(t)}function Oe(t){var r=function(t){if(e.isCallExpression(t)){if(!Me(t))return 0;var r=t.arguments[0];return Pe(r)||Ie(r)?8:Be(r)&&"prototype"===Ue(r)?9:7}if(63!==t.operatorToken.kind||!rn(t.left)||function(t){return e.isVoidExpression(t)&&e.isNumericLiteral(t.expression)&&"0"===t.expression.text}(Ne(t)))return 0;if(Je(t.left.expression,!0)&&"prototype"===Ue(t.left)&&e.isObjectLiteralExpression(qe(t)))return 6;return Ve(t.left)}(t);return 5===r||xe(t)?r:0}function Me(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&Dt(t.arguments[1])&&Je(t.arguments[0],!0)}function Le(t){return e.isPropertyAccessExpression(t)||Re(t)}function Re(t){return e.isElementAccessExpression(t)&&Dt(t.argumentExpression)}function Be(t,r){return e.isPropertyAccessExpression(t)&&(!r&&108===t.expression.kind||e.isIdentifier(t.name)&&Je(t.expression,!0))||je(t,r)}function je(e,t){return Re(e)&&(!t&&108===e.expression.kind||jr(e.expression)||Be(e.expression,!0))}function Je(e,t){return jr(e)||Be(e,t)}function Ke(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function ze(t){if(e.isPropertyAccessExpression(t))return t.name;var r=ct(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function Ue(t){var r=ze(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}}function Ve(t){if(108===t.expression.kind)return 4;if(Ie(t))return 2;if(Je(t.expression,!0)){if(Kr(t.expression))return 3;for(var r=t;!e.isIdentifier(r.expression);)r=r.expression;var n=r.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===Ue(r))&&Be(t))return 1;if(Je(t,!0)||e.isElementAccessExpression(t)&&St(t))return 5}return 0}function qe(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function We(t){switch(t.parent.kind){case 264:case 270:return t.parent;case 275:return t.parent.parent;case 206:return H(t.parent)||Ce(t.parent,!1)?t.parent:void 0;case 194:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function He(t){switch(t.kind){case 264:case 270:return t.moduleSpecifier;case 263:return 275===t.moduleReference.kind?t.moduleReference.expression:void 0;case 198:return G(t)?t.argument.literal:void 0;case 206:return t.arguments[0];case 259:return 10===t.name.kind?t.name:void 0;default:return e.Debug.assertNever(t)}}function Ge(e){return 340===e.kind||333===e.kind||334===e.kind}function Ye(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Oe(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function Xe(e){switch(e.kind){case 235:var t=$e(e);return t&&t.initializer;case 165:case 291:return e.initializer}}function $e(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function Qe(t){return e.isModuleDeclaration(t)&&t.body&&259===t.body.kind?t.body:void 0}function Ze(t){var r=t.parent;return 291===r.kind||269===r.kind||165===r.kind||236===r.kind&&204===t.kind||245===r.kind||Qe(r)||e.isBinaryExpression(t)&&63===t.operatorToken.kind?r:r.parent&&($e(r.parent)===t||e.isBinaryExpression(r)&&63===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&($e(r.parent.parent)||Xe(r.parent.parent)===t||Ye(r.parent.parent))?r.parent.parent:void 0}function et(t){var r=tt(t);return r&&e.isFunctionLike(r)?r:void 0}function tt(t){var r=rt(t);if(r)return Ye(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?Ne(t.expression):void 0}(r)||Xe(r)||$e(r)||Qe(r)||r}function rt(t){var r=nt(t);if(r){var n=r.parent;return n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)?n:void 0}}function nt(t){return e.findAncestor(t.parent,e.isJSDoc)}function it(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&313===r.kind}function at(e){for(var t=e.parent;;){switch(t.kind){case 219:var r=t.operatorToken.kind;return Or(r)&&t.left===e?63===r||Ir(r)?1:2:0;case 217:case 218:var n=t.operator;return 45===n||46===n?2:0;case 241:case 242:return t.initializer===e?1:0;case 210:case 202:case 223:case 228:e=t;break;case 293:e=t.parent;break;case 292:if(t.name!==e)return 0;e=t.parent;break;case 291:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ot(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function st(e){return ot(e,210)}function ct(t){return e.skipOuterExpressions(t,1)}function ut(t){return jr(t)||e.isClassExpression(t)}function lt(e){return ut(_t(e))}function _t(t){return e.isExportAssignment(t)?t.expression:t.right}function dt(t){var r=pt(t);if(r&&xe(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function pt(e){var t=mt(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function ft(t){if(xe(t))return e.getJSDocImplementsTags(t).map((function(e){return e.class}));var r=mt(t.heritageClauses,117);return null==r?void 0:r.types}function gt(e){var t=mt(e.heritageClauses,94);return t?t.types:void 0}function mt(e,t){if(e)for(var r=0,n=e;r0&&e.every(t.declarationList.declarations,(function(e){return Ee(e)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===D(t,e).charCodeAt(0)},e.isAssignmentDeclaration=Te,e.getEffectiveInitializer=ke,e.getDeclaredExpandoInitializer=function(e){var t=ke(e);return t&&Ae(t,Kr(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var r=Kr(t.parent.left);return Ae(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&Ae(r.right,n);if(i&&Fe(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Me(t)){var n=function(t,r){return e.forEach(t.properties,(function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&Ae(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=Ae,e.isDefaultedExpandoInitializer=function(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&Ae(t.right,Kr(r))&&jr(r)&&Fe(r,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var r=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(63===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=Fe,e.getRightMostAssignedExpression=Ne,e.isExportsIdentifier=Pe,e.isModuleIdentifier=we,e.isModuleExportsAccessExpression=Ie,e.getAssignmentDeclarationKind=Oe,e.isBindableObjectDefinePropertyCall=Me,e.isLiteralLikeAccess=Le,e.isLiteralLikeElementAccess=Re,e.isBindableStaticAccessExpression=Be,e.isBindableStaticElementAccessExpression=je,e.isBindableStaticNameExpression=Je,e.getNameOrArgument=Ke,e.getElementOrPropertyAccessArgumentExpressionOrName=ze,e.getElementOrPropertyAccessName=Ue,e.getAssignmentDeclarationPropertyAccessKind=Ve,e.getInitializerOfBinaryExpression=qe,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Oe(t)},e.isSpecialPropertyDeclaration=function(t){return xe(t)&&t.parent&&236===t.parent.kind&&(!e.isElementAccessExpression(t)||Re(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(8388608&t.flags)||8388608&r.flags)&&Te(r)&&!Te(t)||r.kind!==t.kind&&k(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 254===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.tryGetModuleSpecifierFromDeclaration=function(t){var r,n,i;switch(t.kind){case 252:return t.initializer.arguments[0].text;case 264:return null===(r=e.tryCast(t.moduleSpecifier,e.isStringLiteralLike))||void 0===r?void 0:r.text;case 263:return null===(i=e.tryCast(null===(n=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===n?void 0:n.expression,e.isStringLiteralLike))||void 0===i?void 0:i.text;default:e.Debug.assertNever(t)}},e.importFromModuleSpecifier=function(t){return We(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=We,e.getExternalModuleName=He,e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 264:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 263:return t;case 270:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 264===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(t,r){var n;if(t.name&&(n=r(t)))return n;if(t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r)))return n},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 162:case 167:case 166:case 292:case 291:case 165:case 164:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(t){var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&"new"===n.escapedText},e.isJSDocTypeAlias=Ge,e.isTypeAlias=function(t){return Ge(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Xe,e.getSingleVariableOfVariableStatement=$e,e.getJSDocCommentsAndTags=function(t,r){var n;ae(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.append(n,e.last(t.initializer.jsDoc)));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.append(n,e.last(i.jsDoc))),162===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(161===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=Ze(i)}return n||e.emptyArray},e.getNextJSDocCommentLocation=Ze,e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=et(t);if(n){var i=e.find(n.parameters,(function(e){return 79===e.name.kind&&e.name.escapedText===r}));return i&&i.symbol}}},e.getHostSignatureFromJSDoc=et,e.getEffectiveJSDocHost=tt,e.getJSDocHost=rt,e.getJSDocRoot=nt,e.getTypeParameterFromJsDoc=function(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return n&&e.find(n,(function(e){return e.name.escapedText===r}))},e.hasRestParameter=function(t){var r=e.lastOrUndefined(t.parameters);return!!r&&it(r)},e.isRestParameter=it,e.hasTypeArguments=function(e){return!!e.typeArguments},(Z=e.AssignmentKind||(e.AssignmentKind={}))[Z.None=0]="None",Z[Z.Definite=1]="Definite",Z[Z.Compound=2]="Compound",e.getAssignmentTargetKind=at,e.isAssignmentTarget=function(e){return 0!==at(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 233:case 235:case 246:case 237:case 247:case 261:case 287:case 288:case 248:case 240:case 241:case 242:case 238:case 239:case 250:case 290:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return ot(e,189)},e.walkUpParenthesizedExpressions=st,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&189===e.kind;)t=e,e=e.parent;return[t,e]},e.skipParentheses=ct,e.isDeleteTarget=function(e){return(204===e.kind||205===e.kind)&&((e=st(e.parent))&&213===e.kind)},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.getDeclarationFromName=function(t){var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 79:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==Oe(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 80:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return Dt(t)&&160===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 165:case 164:case 167:case 166:case 170:case 171:case 294:case 291:case 204:return t.name===e;case 159:return t.right===e;case 201:case 268:return t.propertyName===e;case 273:case 283:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return 263===t.kind||262===t.kind||265===t.kind&&!!t.name||266===t.kind||272===t.kind||268===t.kind||273===t.kind||269===t.kind&<(t)||e.isBinaryExpression(t)&&2===Oe(t)&<(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&ut(t.parent.right)||292===t.kind||291===t.kind&&ut(t.initializer)},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 265:case 268:case 266:case 273:case 269:case 263:return t.parent;case 159:do{t=t.parent}while(159===t.parent.kind);return e(t)}},e.isAliasableExpression=ut,e.exportAssignmentIsAlias=lt,e.getExportAssignmentExpression=_t,e.getPropertyAssignmentAliasLikeExpression=function(e){return 292===e.kind?e.name:291===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=dt,e.getClassExtendsHeritageElement=pt,e.getEffectiveImplementsTypeNodes=ft,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?gt(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(dt(t)),ft(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=gt,e.getHeritageClause=mt,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=yt,e.isContextualKeyword=vt,e.isNonContextualKeyword=ht,e.isFutureReservedKeyword=function(e){return 117<=e&&e<=125},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&ht(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&yt(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!vt(t)},e.isTrivia=function(e){return 2<=e&&e<=7},(ee=e.FunctionFlags||(e.FunctionFlags={}))[ee.Normal=0]="Normal",ee[ee.Generator=1]="Generator",ee[ee.Async=2]="Async",ee[ee.Invalid=4]="Invalid",ee[ee.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 254:case 211:case 167:e.asteriskToken&&(t|=1);case 212:Dr(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 254:case 211:case 212:case 167:return void 0!==e.body&&void 0===e.asteriskToken&&Dr(e,256)}return!1},e.isStringOrNumericLiteralLike=Dt,e.isSignedNumericLiteral=bt,e.hasDynamicName=xt,e.isDynamicName=St,e.getPropertyNameForPropertyNameNode=Ct,e.isPropertyNameLiteral=Et,e.getTextOfIdentifierOrLiteral=Tt,e.getEscapedTextOfIdentifierOrLiteral=function(t){return e.isMemberName(t)?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForUniqueESSymbol=function(t){return"__@"+e.getSymbolId(t)+"@"+t.escapedName},e.getSymbolNameForPrivateIdentifier=function(t,r){return"__#"+e.getSymbolId(t)+"@"+r},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isPrivateIdentifierSymbol=function(t){return e.startsWith(t.escapedName,"__#")},e.isESSymbolIdentifier=function(e){return 79===e.kind&&"Symbol"===e.escapedText},e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 162===kt(e).kind},e.getRootDeclaration=kt,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 169===t||211===t||254===t||212===t||167===t||170===t||171===t||259===t||300===t},e.nodeIsSynthesized=At,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},(te=e.Associativity||(e.Associativity={}))[te.Left=0]="Left",te[te.Right=1]="Right",e.getExpressionAssociativity=function(e){var t=Nt(e),r=207===e.kind&&void 0!==e.arguments;return Ft(e.kind,t,r)},e.getOperatorAssociativity=Ft,e.getExpressionPrecedence=function(e){var t=Nt(e),r=207===e.kind&&void 0!==e.arguments;return Pt(e.kind,t,r)},e.getOperator=Nt,(re=e.OperatorPrecedence||(e.OperatorPrecedence={}))[re.Comma=0]="Comma",re[re.Spread=1]="Spread",re[re.Yield=2]="Yield",re[re.Assignment=3]="Assignment",re[re.Conditional=4]="Conditional",re[re.Coalesce=4]="Coalesce",re[re.LogicalOR=5]="LogicalOR",re[re.LogicalAND=6]="LogicalAND",re[re.BitwiseOR=7]="BitwiseOR",re[re.BitwiseXOR=8]="BitwiseXOR",re[re.BitwiseAND=9]="BitwiseAND",re[re.Equality=10]="Equality",re[re.Relational=11]="Relational",re[re.Shift=12]="Shift",re[re.Additive=13]="Additive",re[re.Multiplicative=14]="Multiplicative",re[re.Exponentiation=15]="Exponentiation",re[re.Unary=16]="Unary",re[re.Update=17]="Update",re[re.LeftHandSide=18]="LeftHandSide",re[re.Member=19]="Member",re[re.Primary=20]="Primary",re[re.Highest=20]="Highest",re[re.Lowest=0]="Lowest",re[re.Invalid=-1]="Invalid",e.getOperatorPrecedence=Pt,e.getBinaryOperatorPrecedence=wt,e.getSemanticJsxChildren=function(t){return e.filter(t,(function(e){switch(e.kind){case 286:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))},e.createDiagnosticCollection=function(){var t=[],r=[],n=new e.Map,i=!1;return{add:function(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t);e.insertSorted(o,a,hn)},lookup:function(r){var i;i=r.file?n.get(r.file.fileName):t;if(!i)return;var a=e.binarySearch(i,r,e.identity,Dn);if(a>=0)return i[a];return},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,(function(e){return n.get(e)}));if(!t.length)return a;return a.unshift.apply(a,t),a}}};var It=/\$\{/g;e.hasInvalidEscape=function(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,(function(e){return!!e.literal.templateFlags})))};var Ot=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Mt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Lt=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Rt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function Bt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function jt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return Rt.get(e)||Bt(e.charCodeAt(0))}function Jt(e,t){var r=96===t?Lt:39===t?Mt:Ot;return e.replace(r,jt)}e.escapeString=Jt;var Kt=/[^\u0000-\u007F]/g;function zt(e,t){return e=Jt(e,t),Kt.test(e)?e.replace(Kt,(function(e){return Bt(e.charCodeAt(0))})):e}e.escapeNonAsciiString=zt;var Ut=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Vt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,qt=new e.Map(e.getEntries({'"':""","'":"'"}));function Wt(e){return 0===e.charCodeAt(0)?"�":qt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Ht(e,t){var r=39===t?Vt:Ut;return e.replace(r,Wt)}e.escapeJsxAttributeString=Ht,e.stripQuotes=function(e){var t,r=e.length;return r>=2&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")||e.stringContains(t,":")};var Gt=[""," "];function Yt(e){for(var t=Gt[1],r=Gt.length;r<=e;r++)Gt.push(Gt[r-1]+t);return Gt[e]}function Xt(){return Gt[1].length}function $t(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Qt(e,t,r){return t.moduleName||er(e,t.fileName,r&&r.fileName)}function Zt(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function er(t,r,n){var i=function(e){return t.getCanonicalFileName(e)},a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=ri(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function tr(e,t,r,n,i){var a=t.declarationDir||t.outDir;return ri(a?ar(e,a,r,n,i):e)+".d.ts"}function rr(e){return e.outFile||e.out}function nr(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&be(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(q(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function ir(e,t,r){return ar(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function ar(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function or(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(or(e.getDirectoryPath(t),r,n),r(t))}function sr(t,r){return e.computeLineOfPosition(t,r)}function cr(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&f(t.body)}))}function ur(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&lr(e.parameters[0]);return e.parameters[t?1:0]}}function lr(e){return _r(e.name)}function _r(e){return!!e&&79===e.kind&&dr(e)}function dr(e){return 108===e.originalKeywordKind}function pr(t){if(xe(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!xe(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function fr(e,t,r,n){gr(e,t,r.pos,n)}function gr(e,t,r,n){n&&n.length&&r!==n[0].pos&&sr(e,r)!==sr(e,n[0].pos)&&t.writeLine()}function mr(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,u=0,l=n;u=0&&e.kind<=158?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Nr(e)),!t||4096&e.modifierFlagsCache||!r&&!xe(e)||!e.parent||(e.modifierFlagsCache|=4096|Fr(e)),-536875009&e.modifierFlagsCache)}function kr(e){return Tr(e,!0)}function Ar(e){return Tr(e,!1)}function Fr(t){var r=0;return t.parent&&!e.isParameter(t)&&(xe(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64),e.getJSDocOverrideTagNoCache(t)&&(r|=16384)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function Nr(e){var t=Pr(e.modifiers);return(4&e.flags||79===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function Pr(e){var t=0;if(e)for(var r=0,n=e;r=63&&e<=78}function Mr(e){var t=Lr(e);return t&&!t.isImplements?t.class:void 0}function Lr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:117===t.parent.token}:void 0}function Rr(t,r){return e.isBinaryExpression(t)&&(r?63===t.operatorToken.kind:Or(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Br(e){return void 0!==Mr(e)}function jr(e){return 79===e.kind||Jr(e)}function Jr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&jr(t.expression)}function Kr(e){return Be(e)&&"prototype"===Ue(e)}e.getIndentString=Yt,e.getIndentSize=Xt,e.createTextWriter=function(t){var r,n,i,a,o,s=!1;function c(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function u(e){e&&e.length&&(i&&(e=Yt(n)+e,i=!1),r+=e,c(e))}function l(e){e&&(s=!1),u(e)}function _(){r="",n=0,i=!0,a=0,o=0,s=!1}return _(),{write:l,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&l(e)},writeLine:function(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*Xt():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1))},clear:_,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:l,writeOperator:l,writeParameter:l,writeProperty:l,writePunctuation:l,writeSpace:l,writeStringLiteral:l,writeSymbol:function(e,t){return l(e)},writeTrailingSemicolon:l,writeComment:function(e){e&&(s=!0),u(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return r(r({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){n(),e.writeLiteral(t)},writeStringLiteral:function(t){n(),e.writeStringLiteral(t)},writeSymbol:function(t,r){n(),e.writeSymbol(t,r)},writePunctuation:function(t){n(),e.writePunctuation(t)},writeKeyword:function(t){n(),e.writeKeyword(t)},writeOperator:function(t){n(),e.writeOperator(t)},writeParameter:function(t){n(),e.writeParameter(t)},writeSpace:function(t){n(),e.writeSpace(t)},writeProperty:function(t){n(),e.writeProperty(t)},writeComment:function(t){n(),e.writeComment(t)},writeLine:function(){n(),e.writeLine()},increaseIndent:function(){n(),e.increaseIndent()},decreaseIndent:function(){n(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=$t,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName($t(t))},e.getResolvedExternalModuleName=Qt,e.getExternalModuleNameFromDeclaration=function(t,r,n){var i=r.getExternalModuleFileFromDeclaration(n);if(i&&!i.isDeclarationFile){var a=He(n);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==Zt(t,i.path).indexOf(Zt(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory()))))return Qt(t,i)}},e.getExternalModuleNameFromPath=er,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?ri(ir(e,t,n.outDir)):ri(e))+r},e.getDeclarationEmitOutputFilePath=function(e,t){return tr(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=tr,e.outFile=rr,e.getPathsBasePath=function(t,r){var n,i;if(t.paths)return null!==(n=t.baseUrl)&&void 0!==n?n:e.Debug.checkDefined(t.pathsBasePath||(null===(i=r.getCurrentDirectory)||void 0===i?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(t,r,n){var i=t.getCompilerOptions();if(rr(i)){var a=Sn(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(r){return(o||!e.isExternalModule(r))&&nr(r,t,n)}))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(function(e){return nr(e,t,n)}))},e.sourceFileMayBeEmitted=nr,e.getSourceFilePathInNewDir=ir,e.getSourceFilePathInNewDirWorker=ar,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,(function(t){r.add(yn(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o)},e.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(s){or(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=function(t,r){var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=sr,e.getFirstConstructorWithBody=cr,e.getSetAccessorValueParameter=ur,e.getSetAccessorTypeAnnotationNode=function(e){var t=ur(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(lr(r))return r}},e.parameterIsThisKeyword=lr,e.isThisIdentifier=_r,e.isThisInTypeQuery=function(t){if(!_r(t))return!1;for(;e.isQualifiedName(t.parent)&&t.parent.left===t;)t=t.parent;return 179===t.parent.kind},e.identifierIsThisKeyword=dr,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return xt(r)?(n=r,170===r.kind?a=r:171===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(function(t){e.isAccessor(t)&&br(t)===br(r)&&(Ct(t.name)===Ct(r.name)&&(n?i||(i=t):n=t,170!==t.kind||a||(a=t),171!==t.kind||o||(o=t)))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=pr,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(xe(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),(function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(315===t.parent.kind&&t.parent.tags.some(Ge))}(t)?t.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=ur(e);return t&&pr(t)},e.emitNewLineBeforeLeadingComments=fr,e.emitNewLineBeforeLeadingCommentsOfPosition=gr,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&sr(e,r)!==sr(e,n)&&t.writeLine()},e.emitComments=mr,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,u;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),(function(e){return v(t,e.pos)}))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var l=[],_=void 0,d=0,p=c;d=g+2)break}l.push(f),_=f}if(l.length){g=sr(r,e.last(l).end);sr(r,e.skipTrivia(t,a.pos))>=g+2&&(fr(r,n,a,c),mr(t,r,n,l,!1,!0,o,i),u={nodePos:a.pos,detachedCommentEndPos:e.last(l).end})}}return u},e.writeCommentRange=function(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,u=void 0,l=i,_=s.line;l0){var f=p%Xt(),g=Yt((p-f)/Xt());for(n.rawWrite(g);f;)n.rawWrite(" "),f--}else n.rawWrite("")}yr(t,a,n,o,l,d),l=d}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==kr(e)},e.hasSyntacticModifiers=function(e){return 0!==Ar(e)},e.hasEffectiveModifier=hr,e.hasSyntacticModifier=Dr,e.isStatic=br,e.hasStaticModifier=xr,e.hasOverrideModifier=function(e){return hr(e,16384)},e.hasAbstractModifier=function(e){return Dr(e,128)},e.hasAmbientModifier=function(e){return Dr(e,2)},e.hasEffectiveReadonlyModifier=Sr,e.getSelectedEffectiveModifierFlags=Cr,e.getSelectedSyntacticModifierFlags=Er,e.getEffectiveModifierFlags=kr,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return Tr(e,!0,!0)},e.getSyntacticModifierFlags=Ar,e.getEffectiveModifierFlagsNoCache=function(e){return Nr(e)|Fr(e)},e.getSyntacticModifierFlagsNoCache=Nr,e.modifiersToFlags=Pr,e.modifierToFlag=wr,e.createModifiers=function(t){return t?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(t)):void 0},e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=Ir,e.isLogicalOrCoalescingAssignmentExpression=function(e){return Ir(e.operatorToken.kind)},e.isAssignmentOperator=Or,e.tryGetClassExtendingExpressionWithTypeArguments=Mr,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Lr,e.isAssignmentExpression=Rr,e.isLeftHandSideOfAssignment=function(e){return Rr(e.parent)&&e.parent.left===e},e.isDestructuringAssignment=function(e){if(Rr(e,!0)){var t=e.left.kind;return 203===t||202===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Br,e.isEntityNameExpression=jr,e.getFirstIdentifier=function(e){switch(e.kind){case 79:return e;case 159:do{e=e.left}while(79!==e.kind);return e;case 204:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(t){return 79===t.kind||108===t.kind||106===t.kind||229===t.kind||204===t.kind&&e(t.expression)||210===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=Jr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){if(void 0!==(n=t(r.expression)))return n+"."+j(r.name)}else if(e.isElementAccessExpression(r)){var n;if(void 0!==(n=t(r.expression))&&e.isPropertyName(r.argumentExpression))return n+"."+Ct(r.argumentExpression)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=Kr,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 159===e.parent.kind&&e.parent.right===e||204===e.parent.kind&&e.parent.name===e},e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=function(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isJSDocMemberName(t.parent)&&t.parent.right===t},e.isEmptyObjectLiteral=function(e){return 203===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 202===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){if(function(t){return t&&e.length(t.declarations)>0&&Dr(t.declarations[0],512)}(t)&&t.declarations)for(var r=0,n=t.declarations;r>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),c=0,u=s.length;c>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=u?i=a=64:c+2>=u&&(a=64),o+=zr.charAt(r)+zr.charAt(n)+zr.charAt(i)+zr.charAt(a),c+=3;return o}e.convertToBase64=Ur,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Ur(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i>4&3,l=(15&o)<<4|s>>2&15,_=(3&s)<<6|63&c;0===l&&0!==s?n.push(u):0===_&&0!==c?n.push(u,l):n.push(u,l,_),i+=4}return function(e){for(var t="",r=0,n=e.length;r=t||-1===r),{pos:t,end:r}}function Wr(e,t){return qr(t,e.end)}function Hr(e){return e.decorators&&e.decorators.length>0?Wr(e,e.decorators.end):e}function Gr(e,t,r){return Yr(Xr(e,r,!1),t.end,r)}function Yr(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function Xr(t,r,n){return oi(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function $r(e){return void 0!==e.initializer}function Qr(e){return 33554432&e.flags?e.checkFlags:0}function Zr(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 210:return Zr(r);case 218:case 217:var n=r.operator;return 45===n||46===n?c():0;case 219:var i=r,a=i.left,o=i.operatorToken;return a===t&&Or(o.kind)?63===o.kind?1:c():0;case 204:return r.name!==t?0:Zr(r);case 291:var s=Zr(r.parent);return t===r.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(s):s;case 292:return t===r.objectAssignmentInitializer?0:Zr(r.parent);case 202:return Zr(r);default:return 0}function c(){return r.parent&&236===st(r.parent).kind?1:2}}function en(e,t,r){var n=r.onDeleteValue,i=r.onExistingValue;e.forEach((function(r,a){var o=t.get(a);void 0===o?(e.delete(a),n(r,a)):i&&i(r,o,a)}))}function tn(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find(e.isClassLike)}function rn(e){return 204===e.kind||205===e.kind}function nn(e){for(;rn(e);)e=e.expression;return e}function an(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function on(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function sn(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function cn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function un(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function ln(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function _n(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function dn(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.checkDefined(r[+i+n])}))}function pn(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function fn(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function gn(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o4&&(i=dn(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function yn(e){var t=pn(e);return arguments.length>1&&(t=dn(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function vn(e){return e.file?e.file.path:void 0}function hn(t,r){return Dn(t,r)||function(t,r){if(!t.relatedInformation&&!r.relatedInformation)return 0;if(t.relatedInformation&&r.relatedInformation)return e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,(function(e,t){return hn(e,r.relatedInformation[t])}))||0;return t.relatedInformation?-1:1}(t,r)||0}function Dn(t,r){return e.compareStringsCaseSensitive(vn(t),vn(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||bn(t.messageText,r.messageText)||0}function bn(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),a=0;ar.next.length?1:0}function xn(e){return e.target||0}function Sn(t){return"number"==typeof t.module?t.module:xn(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Cn(e){return!(!e.declaration&&!e.composite)}function En(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Tn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function kn(e,t){return t.strictFlag?En(e,t.name):e[t.name]}function An(t,r,n,i){for(var a=e.getPathComponents(e.getNormalizedAbsolutePath(t,n)),o=e.getPathComponents(e.getNormalizedAbsolutePath(r,n)),s=!1;!Fn(a[a.length-2],i)&&!Fn(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop(),s=!0;return s?[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]:void 0}function Fn(t,r){return"node_modules"===r(t)||e.startsWith(t,"@")}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return r?r():e.sys?e.sys.newLine:"\r\n"},e.createRange=qr,e.moveRangeEnd=function(e,t){return qr(e.pos,t)},e.moveRangePos=Wr,e.moveRangePastDecorators=Hr,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?Wr(e,e.modifiers.end):Hr(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return qr(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return Gr(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return Yr(Xr(e,r,!1),Xr(t,r,!1),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return Yr(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=Gr,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return Yr(e.end,Xr(t,r,!1),r)},e.getLinesBetweenRangeEndAndRangeStart=function(t,r,n,i){var a=Xr(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)},e.getLinesBetweenRangeEndPositions=function(t,r,n){return e.getLinesBetweenPositions(n,t.end,r.end)},e.isNodeArrayMultiLine=function(e,t){return!Yr(e.pos,e.end,t)},e.positionsAreOnSameLine=Yr,e.getStartPositionOfRange=Xr,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i),o=function(t,r,n){void 0===r&&(r=0);for(;t-- >r;)if(!e.isWhiteSpaceLike(n.text.charCodeAt(t)))return t}(a,r,n);return e.getLinesBetweenPositions(n,null!=o?o:r,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 258:case 259:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,$r)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=Qr,e.getDeclarationModifierFlagsFromSymbol=function(t,r){if(void 0===r&&(r=!1),t.valueDeclaration){var n=r&&t.declarations&&e.find(t.declarations,(function(e){return 171===e.kind}))||t.valueDeclaration,i=e.getCombinedModifierFlags(n);return t.parent&&32&t.parent.flags?i:-29&i}if(6&Qr(t)){var a=t.checkFlags;return(1024&a?8:256&a?4:16)|(2048&a?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===Zr(e)},e.isWriteAccess=function(e){return 0!==Zr(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Vr||(Vr={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=en,e.mutateMap=function(e,t,r){en(e,t,r);var n=r.createNewValue;t.forEach((function(t,r){e.has(r)||e.set(r,n(r,t))}))},e.isAbstractConstructorSymbol=function(e){if(32&e.flags){var t=tn(e);return!!t&&Dr(t,128)}return!1},e.getClassLikeDeclarationOfSymbol=tn,e.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(t,r){return!!e.forEachAncestorDirectory(t,(function(e){return!!r(e)||void 0}))},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:x(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,(function(e){f(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(f(e[t])){r=e[t];break}})),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=175&&e<=198||129===e||153===e||145===e||156===e||146===e||132===e||148===e||149===e||114===e||151===e||142===e||226===e||307===e||308===e||309===e||310===e||311===e||312===e||313===e},e.isAccessExpression=rn,e.getNameOfAccessExpression=function(t){return 204===t.kind?t.name:(e.Debug.assert(205===t.kind),t.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 267===e.kind||271===e.kind},e.getLeftmostAccessExpression=nn,e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 218:e=e.operand;continue;case 219:e=e.left;continue;case 220:e=e.condition;continue;case 208:e=e.tag;continue;case 206:if(t)return e;case 227:case 205:case 204:case 228:case 345:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return cn},getTokenConstructor:function(){return un},getIdentifierConstructor:function(){return ln},getPrivateIdentifierConstructor:function(){return cn},getSourceFileConstructor:function(){return cn},getSymbolConstructor:function(){return an},getTypeConstructor:function(){return on},getSignatureConstructor:function(){return sn},getSourceMapSourceConstructor:function(){return _n}},e.setObjectAllocator=function(t){e.objectAllocator=t},e.formatStringFromArgs=dn,e.setLocalizedDiagnosticMessages=function(t){e.localizedDiagnosticMessages=t},e.getLocaleSpecificMessage=pn,e.createDetachedDiagnostic=function(e,t,r,n){K(void 0,t,r);var i=pn(n);return arguments.length>4&&(i=dn(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=function(e,t){for(var r=[],n=0,i=e;n2&&(r=dn(r,arguments,2)),r},e.createCompilerDiagnostic=yn,e.createCompilerDiagnosticFromMessageChain=function(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}},e.chainDiagnosticMessages=function(e,t){var r=pn(t);return arguments.length>2&&(r=dn(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next[0];r.next=[t]},e.compareDiagnostics=hn,e.compareDiagnosticsSkipRelatedInformation=Dn,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=xn,e.getEmitModuleKind=Sn,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=Sn(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.hasJsonModuleEmitEnabled=function(t){switch(Sn(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!Cn(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=Sn(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System},e.getEmitDeclarations=Cn,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=En,e.getAllowJSCompilerOption=Tn,e.getUseDefineForClassFields=function(e){return void 0===e.useDefineForClassFields?99===e.target:e.useDefineForClassFields},e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return c(r,t,e.semanticDiagnosticsOptionDeclarations)},e.compilerOptionsAffectEmit=function(t,r){return c(r,t,e.affectsEmitOptionDeclarations)},e.getCompilerOptionValue=kn,e.getJSXTransformEnabled=function(e){var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=function(t,r){var n=null==r?void 0:r.pragmas.get("jsximportsource"),i=e.isArray(n)?n[n.length-1]:n;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,t){return e?e+"/"+(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,r=0;r0;)c+=")?",d--;return c}}function zn(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Un(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(jn(n,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:Bn(n,o,"files"),includeDirectoryPattern:Bn(n,o,"directories"),excludePattern:Bn(r,o,"exclude"),basePaths:qn(t,n,i)}}function Vn(e,t){return new RegExp(e,t?"":"i")}function qn(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o=0;n--)if(e.fileExtensionIs(t,r[n]))return ei(n,r);return 0},e.adjustExtensionPriority=ei,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var ti=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function ri(e){for(var t=0,r=ti;t=0)}function si(e){return".ts"===e||".tsx"===e||".d.ts"===e}function ci(t){return e.find(ti,(function(r){return e.fileExtensionIs(t,r)}))}function ui(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,ui)}function li(e,t){return e.pos=t,e}function _i(e,t){return e.end=t,e}function di(e,t,r){return _i(li(e,t),r)}function pi(e,t){return e&&t&&(e.parent=t),e}function fi(t){return!e.isOmittedExpression(t)}function gi(t){return e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))}e.removeFileExtension=ri,e.tryRemoveExtension=ni,e.removeExtension=ii,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,ti,!1)},e.tryParsePattern=ai,e.tryParsePatterns=function(t){return e.mapDefined(e.getOwnKeys(t),(function(e){return ai(e)}))},e.positionIsSynthesized=oi,e.extensionIsTS=si,e.resolutionExtensionIsTSOrJson=function(e){return si(e)||".json"===e},e.extensionFromPath=function(t){var r=ci(t);return void 0!==r?r:e.Debug.fail("File "+t+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==ci(e)},e.tryGetExtensionFromPath=ci,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,r){for(var n=[],i=0,a=t;ii&&(i=o)}return{min:n,max:i}},e.rangeOfNode=function(e){return{pos:h(e),end:e.end}},e.rangeOfTypeParameters=function(t,r){return{pos:r.pos-1,end:e.skipTrivia(t.text,r.end)+1}},e.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=ui,e.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var u=c>>>4,l=e.charCodeAt(s),_=(l<=57?l-48:10+l-(l<=70?65:97))<<(15&c);o[u]|=_;var d=_>>>16;d&&(o[u+1]|=d)}for(var p="",f=o.length-1,g=!0;g;){var m=0;g=!1;for(u=f;u>=0;u--){var y=m<<16|o[u],v=y/10|0;o[u]=v,m=y-10*v,v&&!g&&(f=u,g=!0)}p=m+p}return p},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=function(t){return!!(8388608&t.flags)||he(t)||function(t){if(79!==t.kind)return!1;var r=e.findAncestor(t.parent,(function(e){switch(e.kind){case 289:return!0;case 204:case 226:return!1;default:return"quit"}}));return 117===(null==r?void 0:r.token)||256===(null==r?void 0:r.parent.kind)}(t)||function(e){for(;79===e.kind||204===e.kind;)e=e.parent;if(160!==e.kind)return!1;if(Dr(e.parent,128))return!0;var t=e.parent.parent.kind;return 256===t||180===t}(t)||!(ye(t)||function(t){return e.isIdentifier(t)&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t}(t))},e.typeOnlyDeclarationIsExport=function(e){return 273===e.kind},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,r){if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i3)return!0;var u=e.getExpressionPrecedence(c);switch(e.compareValues(u,o)){case-1:return!(!n&&1===s&&222===r.kind);case 1:return!1;case 0:if(n)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e}(t))return!1;if(39===t){var l=a?i(a):0;if(e.isLiteralKind(l)&&l===i(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(r,n,a,o)?t.createParenthesizedExpression(n):n}function o(e,t){return a(e,t,!0)}function s(e,t,r){return a(e,r,!1,t)}function c(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isLeftHandSideExpression(n)&&(207!==n.kind||n.arguments)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function u(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(219,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function l(e){return 187===e.kind?t.createParenthesizedType(e):e}function _(e){switch(e.kind){case 185:case 186:case 177:case 178:return t.createParenthesizedType(e)}return l(e)}function d(r,n){return 0===n&&e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(t){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(t){return e.identity},parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)}}}(s||(s={})),function(e){e.createNodeConverters=function(t){return{convertToFunctionBlock:function(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);return e.setTextRange(a,r),a},convertToFunctionExpression:function(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0);return n},convertToArrayAssignmentElement:r,convertToObjectAssignmentElement:n,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function r(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r);var n=s(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function n(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r);if(r.propertyName){var n=s(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 200:case 202:return o(e);case 199:case 203:return a(e)}}function a(r){return e.isObjectBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isObjectLiteralExpression)}function o(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(s||(s={})),function(e){var r,n,i=0;function a(r,a){var f=8&r?o:s,g=e.memoize((function(){return 1&r?e.nullParenthesizerRules:e.createParenthesizerRules(A)})),m=e.memoize((function(){return 2&r?e.nullNodeConverters:e.createNodeConverters(A)})),y=e.memoizeOne((function(e){return function(t,r){return Mt(t,e,r)}})),v=e.memoizeOne((function(e){return function(t){return It(e,t)}})),D=e.memoizeOne((function(e){return function(t){return Ot(t,e)}})),b=e.memoizeOne((function(e){return function(){return function(e){return N(e)}(e)}})),x=e.memoizeOne((function(e){return function(t){return Zr(e,t)}})),S=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?f(Zr(e,r),t):t}(e,t,r)}})),C=e.memoizeOne((function(e){return function(t,r){return Dn(e,t,r)}})),E=e.memoizeOne((function(e){return function(t,r,n){return function(e,t,r,n){void 0===r&&(r=an(t));return t.tagName!==r||t.comment!==n?f(Dn(e,r,n),t):t}(e,t,r,n)}})),T=e.memoizeOne((function(e){return function(t,r,n){return bn(e,t,r,n)}})),k=e.memoizeOne((function(e){return function(t,r,n,i){return function(e,t,r,n,i){void 0===r&&(r=an(t));return t.tagName!==r||t.typeExpression!==n||t.comment!==i?f(bn(e,r,n,i),t):t}(e,t,r,n,i)}})),A={get parenthesizer(){return g()},get converters(){return m()},createNodeArray:F,createNumericLiteral:U,createBigIntLiteral:V,createStringLiteral:W,createStringLiteralFromNode:function(t){var r=q(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:H,createLiteralLikeNode:function(e,t){switch(e){case 8:return U(t,0);case 9:return V(t);case 10:return W(t,void 0);case 11:return Nn(t,!1);case 12:return Nn(t,!0);case 13:return H(t);case 14:return Jt(e,t,void 0,0)}},createIdentifier:X,updateIdentifier:function(t,r){return t.typeArguments!==r?f(X(e.idText(t),r),t):t},createTempVariable:$,createLoopVariable:function(e){var t=2;e&&(t|=8);return Y("",t)},createUniqueName:function(t,r){void 0===r&&(r=0);return e.Debug.assert(!(7&r),"Argument out of range: flags"),e.Debug.assert(32!=(48&r),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Y(t,3|r)},getGeneratedNameForNode:Q,createPrivateIdentifier:function(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);var r=a.createBasePrivateIdentifierNode(80);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=8388608,r},createToken:ee,createSuper:function(){return ee(106)},createThis:te,createNull:function(){return ee(104)},createTrue:re,createFalse:ne,createModifier:ie,createModifiersFromModifierFlags:ae,createQualifiedName:oe,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?f(oe(t,r),e):e},createComputedPropertyName:se,updateComputedPropertyName:function(e,t){return e.expression!==t?f(se(t),e):e},createTypeParameterDeclaration:ce,updateTypeParameterDeclaration:function(e,t,r,n){return e.name!==t||e.constraint!==r||e.default!==n?f(ce(t,r,n),e):e},createParameterDeclaration:ue,updateParameterDeclaration:le,createDecorator:_e,updateDecorator:function(e,t){return e.expression!==t?f(_e(t),e):e},createPropertySignature:de,updatePropertySignature:pe,createPropertyDeclaration:fe,updatePropertyDeclaration:ge,createMethodSignature:me,updateMethodSignature:ye,createMethodDeclaration:ve,updateMethodDeclaration:he,createConstructorDeclaration:be,updateConstructorDeclaration:xe,createGetAccessorDeclaration:Se,updateGetAccessorDeclaration:Ce,createSetAccessorDeclaration:Ee,updateSetAccessorDeclaration:Te,createCallSignature:ke,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(ke(t,r,n),e):e},createConstructSignature:Ae,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(Ae(t,r,n),e):e},createIndexSignature:Fe,updateIndexSignature:Ne,createClassStaticBlockDeclaration:De,updateClassStaticBlockDeclaration:function(e,t,r,n){return e.decorators!==t||e.modifier!==r||e.body!==n?f(De(t,r,n),e):e},createTemplateLiteralTypeSpan:Pe,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?f(Pe(t,r),e):e},createKeywordTypeNode:function(e){return ee(e)},createTypePredicateNode:we,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?f(we(t,r,n),e):e},createTypeReferenceNode:Ie,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?f(Ie(t,r),e):e},createFunctionTypeNode:Oe,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?M(Oe(t,r,n),e):e},createConstructorTypeNode:Me,updateConstructorTypeNode:function(){for(var t=[],r=0;r10?Gn(t):e.reduceLeft(t,A.createComma)},getInternalName:function(e,t,r){return ri(e,t,r,49152)},getLocalName:function(e,t,r){return ri(e,t,r,16384)},getExportName:ni,getDeclarationName:function(e,t,r){return ri(e,t,r)},getNamespaceMemberName:ii,getExternalModuleOrNamespaceExportName:function(t,r,n,i){if(t&&e.hasSyntacticModifier(r,1))return ii(t,ri(r),n,i);return ni(r,n,i)},restoreOuterExpressions:function t(r,n,i){void 0===i&&(i=15);if(r&&e.isOuterExpression(r,i)&&!function(t){return e.isParenthesizedExpression(t)&&e.nodeIsSynthesized(t)&&e.nodeIsSynthesized(e.getSourceMapRange(t))&&e.nodeIsSynthesized(e.getCommentRange(t))&&!e.some(e.getSyntheticLeadingComments(t))&&!e.some(e.getSyntheticTrailingComments(t))}(r))return function(e,t){switch(e.kind){case 210:return Ct(e,t);case 209:return xt(e,e.type,t);case 227:return Ht(e,t,e.type);case 228:return Yt(e,t);case 345:return Wn(e,t)}}(r,t(r.expression,n));return n},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=yr(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);i&&i(n);return a},createUseStrictPrologue:oi,copyPrologue:function(e,t,r,n){var i=si(e,t,r);return ci(e,t,i,n)},copyStandardPrologue:si,copyCustomPrologue:ci,ensureUseStrict:function(r){if(!e.findUseStrictPrologue(r))return e.setTextRange(F(t([oi()],r,!0)),r);return r},liftToBlock:function(t){return e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||er(t)},mergeLexicalEnvironment:function(r,n){if(!e.some(n))return r;var i=ui(r,e.isPrologueDirective,0),a=ui(r,e.isHoistedFunction,i),o=ui(r,e.isHoistedVariableStatement,a),s=ui(n,e.isPrologueDirective,0),c=ui(n,e.isHoistedFunction,s),u=ui(n,e.isHoistedVariableStatement,c),l=ui(n,e.isCustomPrologue,u);e.Debug.assert(l===n.length,"Expected declarations to be valid standard or custom prologues");var _=e.isNodeArray(r)?r.slice():r;l>u&&_.splice.apply(_,t([o,0],n.slice(u,l),!1));u>c&&_.splice.apply(_,t([a,0],n.slice(c,u),!1));c>s&&_.splice.apply(_,t([i,0],n.slice(s,c),!1));if(s>0)if(0===i)_.splice.apply(_,t([0,0],n.slice(0,s),!1));else{for(var d=new e.Map,p=0;p=0;p--){var g=n[p];d.has(g.expression.text)||_.unshift(g)}}if(e.isNodeArray(r))return e.setTextRange(F(_,r.hasTrailingComma),r);return r},updateModifiers:function(t,r){var n;"number"==typeof r&&(r=ae(r));return e.isParameter(t)?le(t,t.decorators,r,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isPropertySignature(t)?pe(t,r,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?ge(t,t.decorators,r,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?ye(t,r,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?he(t,t.decorators,r,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?xe(t,t.decorators,r,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Ce(t,t.decorators,r,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?Te(t,t.decorators,r,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Ne(t,t.decorators,r,t.parameters,t.type):e.isFunctionExpression(t)?Tt(t,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?At(t,r,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?Vt(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?rr(t,r,t.declarationList):e.isFunctionDeclaration(t)?Sr(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?Er(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?kr(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Fr(t,t.decorators,r,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Pr(t,t.decorators,r,t.name,t.members):e.isModuleDeclaration(t)?Ir(t,t.decorators,r,t.name,t.body):e.isImportEqualsDeclaration(t)?Br(t,t.decorators,r,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?Jr(t,t.decorators,r,t.importClause,t.moduleSpecifier):e.isExportAssignment(t)?Hr(t,t.decorators,r,t.expression):e.isExportDeclaration(t)?Yr(t,t.decorators,r,t.isTypeOnly,t.exportClause,t.moduleSpecifier):e.Debug.assertNever(t)}};return A;function F(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t)){if(void 0===r||t.hasTrailingComma===r)return void 0===t.transformFlags&&p(t),e.Debug.attachNodeArrayDebugInfo(t),t;var n=t.slice();return n.pos=t.pos,n.end=t.end,n.hasTrailingComma=r,n.transformFlags=t.transformFlags,e.Debug.attachNodeArrayDebugInfo(n),n}var i=t.length,a=i>=1&&i<=4?t.slice():t;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!r,p(a),e.Debug.attachNodeArrayDebugInfo(a),a}function N(e){return a.createBaseNode(e)}function P(e,t,r){var n=N(e);return n.decorators=li(t),n.modifiers=li(r),n.transformFlags|=d(n.decorators)|d(n.modifiers),n.symbol=void 0,n.localSymbol=void 0,n.locals=void 0,n.nextContainer=void 0,n}function w(t,r,n,i){var a=P(t,r,n);if(i=_i(i),a.name=i,i)switch(a.kind){case 167:case 170:case 171:case 165:case 291:if(e.isIdentifier(i)){a.transformFlags|=l(i);break}default:a.transformFlags|=_(i)}return a}function I(e,t,r,n,i){var a=w(e,t,r,n);return a.typeParameters=li(i),a.transformFlags|=d(a.typeParameters),i&&(a.transformFlags|=1),a}function O(e,t,r,n,i,a,o){var s=I(e,t,r,n,i);return s.parameters=F(a),s.type=o,s.transformFlags|=d(s.parameters)|_(s.type),o&&(s.transformFlags|=1),s}function M(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),f(e,t)}function L(e,t,r,n,i,a,o,s){var c=O(e,t,r,n,i,a,o);return c.body=s,c.transformFlags|=-16777217&_(c.body),s||(c.transformFlags|=1),c}function R(e,t){return t.exclamationToken&&(e.exclamationToken=t.exclamationToken),t.typeArguments&&(e.typeArguments=t.typeArguments),M(e,t)}function B(e,t,r,n,i,a){var o=I(e,t,r,n,i);return o.heritageClauses=li(a),o.transformFlags|=d(o.heritageClauses),o}function j(e,t,r,n,i,a,o){var s=B(e,t,r,n,i,a);return s.members=F(o),s.transformFlags|=d(s.members),s}function J(e,t,r,n,i){var a=w(e,t,r,n);return a.initializer=i,a.transformFlags|=_(a.initializer),a}function K(e,t,r,n,i,a){var o=J(e,t,r,n,a);return o.type=i,o.transformFlags|=_(i),i&&(o.transformFlags|=1),o}function z(e,t){var r=Z(e);return r.text=t,r}function U(e,t){void 0===t&&(t=0);var r=z(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=512),r}function V(t){var r=z(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function q(e,t){var r=z(10,e);return r.singleQuote=t,r}function W(e,t,r){var n=q(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=512),n}function H(e){return z(13,e)}function G(t,r){void 0===r&&t&&(r=e.stringToToken(t)),79===r&&(r=void 0);var n=a.createBaseIdentifierNode(79);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function Y(e,t){var r=G(e,void 0);return r.autoGenerateFlags=t,r.autoGenerateId=i,i++,r}function X(e,t,r){var n=G(e,r);return t&&(n.typeArguments=F(t)),131===n.originalKeywordKind&&(n.transformFlags|=16777216),n}function $(e,t){var r=1;t&&(r|=8);var n=Y("",r);return e&&e(n),n}function Q(t,r){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags");var n=Y(t&&e.isIdentifier(t)?e.idText(t):"",4|r);return n.original=t,n}function Z(e){return a.createBaseTokenNode(e)}function ee(t){e.Debug.assert(t>=0&&t<=158,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=Z(t),n=0;switch(t){case 130:n=192;break;case 123:case 121:case 122:case 143:case 126:case 134:case 85:case 129:case 145:case 156:case 142:case 146:case 157:case 148:case 132:case 149:case 114:case 153:case 151:n=1;break;case 106:n=33554944;break;case 124:n=512;break;case 108:n=8192}return n&&(r.transformFlags|=n),r}function te(){return ee(108)}function re(){return ee(110)}function ne(){return ee(95)}function ie(e){return ee(e)}function ae(e){var t=[];return 1&e&&t.push(ie(93)),2&e&&t.push(ie(134)),512&e&&t.push(ie(88)),2048&e&&t.push(ie(85)),4&e&&t.push(ie(123)),8&e&&t.push(ie(121)),16&e&&t.push(ie(122)),128&e&&t.push(ie(126)),32&e&&t.push(ie(124)),16384&e&&t.push(ie(157)),64&e&&t.push(ie(143)),256&e&&t.push(ie(130)),t}function oe(e,t){var r=N(159);return r.left=e,r.right=_i(t),r.transformFlags|=_(r.left)|l(r.right),r}function se(e){var t=N(160);return t.expression=g().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=66048|_(t.expression),t}function ce(e,t,r){var n=w(161,void 0,void 0,e);return n.constraint=t,n.default=r,n.transformFlags=1,n}function ue(t,r,n,i,a,o,s){var c=K(162,t,r,i,o,s&&g().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=n,c.questionToken=a,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=_(c.dotDotDotToken)|_(c.questionToken),a&&(c.transformFlags|=1),16476&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=4096),(s||n)&&(c.transformFlags|=512)),c}function le(e,t,r,n,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?f(ue(t,r,n,i,a,o,s),e):e}function _e(e){var t=N(163);return t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=4097|_(t.expression),t}function de(e,t,r,n){var i=w(164,void 0,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i}function pe(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?f(de(t,r,n,i),e):e}function fe(t,r,n,i,a,o){var s=K(165,t,r,n,a,o);return s.questionToken=i&&e.isQuestionToken(i)?i:void 0,s.exclamationToken=i&&e.isExclamationToken(i)?i:void 0,s.transformFlags|=_(s.questionToken)|_(s.exclamationToken)|8388608,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=4096),(i||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function ge(t,r,n,i,a,o,s){return t.decorators!==r||t.modifiers!==n||t.name!==i||t.questionToken!==(void 0!==a&&e.isQuestionToken(a)?a:void 0)||t.exclamationToken!==(void 0!==a&&e.isExclamationToken(a)?a:void 0)||t.type!==o||t.initializer!==s?f(fe(r,n,i,a,o,s),t):t}function me(e,t,r,n,i,a){var o=O(166,void 0,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function ye(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?M(me(t,r,n,i,a,o),e):e}function ve(t,r,n,i,a,o,s,c,u){var l=L(167,t,r,i,o,s,c,u);return l.asteriskToken=n,l.questionToken=a,l.transformFlags|=_(l.asteriskToken)|_(l.questionToken)|512,a&&(l.transformFlags|=1),256&e.modifiersToFlags(l.modifiers)?l.transformFlags|=n?64:128:n&&(l.transformFlags|=1024),l}function he(e,t,r,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?R(ve(t,r,n,i,a,o,s,c,u),e):e}function De(e,t,r){var n=I(168,e,t,void 0,void 0);return n.body=r,n.transformFlags=8388608|_(r),n}function be(e,t,r,n){var i=L(169,e,t,void 0,void 0,r,void 0,n);return i.transformFlags|=512,i}function xe(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?R(be(t,r,n,i),e):e}function Se(e,t,r,n,i,a){return L(170,e,t,r,void 0,n,i,a)}function Ce(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.type!==a||e.body!==o?R(Se(t,r,n,i,a,o),e):e}function Ee(e,t,r,n,i){return L(171,e,t,r,void 0,n,void 0,i)}function Te(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?R(Ee(t,r,n,i,a),e):e}function ke(e,t,r){var n=O(172,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ae(e,t,r){var n=O(173,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Fe(e,t,r,n){var i=O(174,e,t,void 0,void 0,r,n);return i.transformFlags=1,i}function Ne(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?M(Fe(t,r,n,i),e):e}function Pe(e,t){var r=N(197);return r.type=e,r.literal=t,r.transformFlags=1,r}function we(e,t,r){var n=N(175);return n.assertsModifier=e,n.parameterName=_i(t),n.type=r,n.transformFlags=1,n}function Ie(e,t){var r=N(176);return r.typeName=_i(e),r.typeArguments=t&&g().parenthesizeTypeArguments(F(t)),r.transformFlags=1,r}function Oe(e,t,r){var n=O(177,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Me(){for(var t=[],r=0;r0;default:return!0}}function ri(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(Xn(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return Q(t)}function ni(e,t,r){return ri(e,t,r,8192)}function ii(t,r,n,i){var a=lt(t,e.nodeIsSynthesized(r)?r:Xn(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function ai(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function oi(){return e.startOnNewLine(ir(W("use strict")))}function si(t,r,n){e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=t.length;a=175&&e<=198)return-2;switch(e){case 206:case 207:case 202:return 536887296;case 259:return 589443072;case 162:return 536870912;case 212:return 557748224;case 211:case 254:return 591310848;case 253:return 537165824;case 255:case 224:return 536940544;case 169:return 591306752;case 165:return 570433536;case 167:case 170:case 171:return 574529536;case 129:case 145:case 156:case 142:case 148:case 146:case 132:case 149:case 114:case 161:case 164:case 166:case 172:case 173:case 174:case 256:case 257:return-2;case 203:return 536973312;case 290:return 536903680;case 199:case 200:return 536887296;case 209:case 227:case 345:case 210:case 106:return 536870912;case 204:case 205:default:return 536870912}}e.getTransformFlagsSubtreeExclusions=f;var g=e.createBaseNodeFactory();function m(e){return e.flags|=8,e}var y,v={createBaseSourceFileNode:function(e){return m(g.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return m(g.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return m(g.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return m(g.createBaseTokenNode(e))},createBaseNode:function(e){return m(g.createBaseNode(e))}};function h(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=function(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers,_=t.startsOnNewLine;r||(r={});i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments));a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments));n&&(r.flags=-268435457&n);o&&(r.commentRange=o);s&&(r.sourceMapRange=s);c&&(r.tokenSourceMapRanges=function(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges));void 0!==u&&(r.constantValue=u);if(l)for(var d=0,p=l;d0&&(o[u-c]=l)}c>0&&(o.length-=c)}},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e}}(s||(s={})),function(e){function r(e){for(var t=[],r=1;r=2)return n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"assign"),void 0,t);return r.requestEmitHelper(e.assignHelper),n.createCallExpression(o("__assign"),void 0,t)},createAwaitHelper:function(t){return r.requestEmitHelper(e.awaitHelper),n.createCallExpression(o("__await"),void 0,[t])},createAsyncGeneratorHelper:function(t,i){return r.requestEmitHelper(e.awaitHelper),r.requestEmitHelper(e.asyncGeneratorHelper),(t.emitNode||(t.emitNode={})).flags|=786432,n.createCallExpression(o("__asyncGenerator"),void 0,[i?n.createThis():n.createVoidZero(),n.createIdentifier("arguments"),t])},createAsyncDelegatorHelper:function(t){return r.requestEmitHelper(e.awaitHelper),r.requestEmitHelper(e.asyncDelegator),n.createCallExpression(o("__asyncDelegator"),void 0,[t])},createAsyncValuesHelper:function(t){return r.requestEmitHelper(e.asyncValues),n.createCallExpression(o("__asyncValues"),void 0,[t])},createRestHelper:function(t,i,a,s){r.requestEmitHelper(e.restHelper);for(var c=[],u=0,l=0;l= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:"\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));"},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},e.getAllUnscopedEmitHelpers=function(){return i||(i=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.createBindingHelper,e.setModuleDefaultHelper],(function(e){return e.name})))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:r(n(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:r(n(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},e.isCallToHelper=function(t,r){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&0!=(4096&e.getEmitFlags(t.expression))&&t.expression.escapedText===r}}(s||(s={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isDotDotDotToken=function(e){return 25===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isPlusToken=function(e){return 39===e.kind},e.isMinusToken=function(e){return 40===e.kind},e.isAsteriskToken=function(e){return 41===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isColonToken=function(e){return 58===e.kind},e.isQuestionDotToken=function(e){return 28===e.kind},e.isEqualsGreaterThanToken=function(e){return 38===e.kind},e.isIdentifier=function(e){return 79===e.kind},e.isPrivateIdentifier=function(e){return 80===e.kind},e.isExportModifier=function(e){return 93===e.kind},e.isAsyncModifier=function(e){return 130===e.kind},e.isAssertsKeyword=function(e){return 128===e.kind},e.isAwaitKeyword=function(e){return 131===e.kind},e.isReadonlyKeyword=function(e){return 143===e.kind},e.isStaticModifier=function(e){return 124===e.kind},e.isAbstractModifier=function(e){return 126===e.kind},e.isSuperKeyword=function(e){return 106===e.kind},e.isImportKeyword=function(e){return 100===e.kind},e.isQualifiedName=function(e){return 159===e.kind},e.isComputedPropertyName=function(e){return 160===e.kind},e.isTypeParameterDeclaration=function(e){return 161===e.kind},e.isParameter=function(e){return 162===e.kind},e.isDecorator=function(e){return 163===e.kind},e.isPropertySignature=function(e){return 164===e.kind},e.isPropertyDeclaration=function(e){return 165===e.kind},e.isMethodSignature=function(e){return 166===e.kind},e.isMethodDeclaration=function(e){return 167===e.kind},e.isClassStaticBlockDeclaration=function(e){return 168===e.kind},e.isConstructorDeclaration=function(e){return 169===e.kind},e.isGetAccessorDeclaration=function(e){return 170===e.kind},e.isSetAccessorDeclaration=function(e){return 171===e.kind},e.isCallSignatureDeclaration=function(e){return 172===e.kind},e.isConstructSignatureDeclaration=function(e){return 173===e.kind},e.isIndexSignatureDeclaration=function(e){return 174===e.kind},e.isTypePredicateNode=function(e){return 175===e.kind},e.isTypeReferenceNode=function(e){return 176===e.kind},e.isFunctionTypeNode=function(e){return 177===e.kind},e.isConstructorTypeNode=function(e){return 178===e.kind},e.isTypeQueryNode=function(e){return 179===e.kind},e.isTypeLiteralNode=function(e){return 180===e.kind},e.isArrayTypeNode=function(e){return 181===e.kind},e.isTupleTypeNode=function(e){return 182===e.kind},e.isNamedTupleMember=function(e){return 195===e.kind},e.isOptionalTypeNode=function(e){return 183===e.kind},e.isRestTypeNode=function(e){return 184===e.kind},e.isUnionTypeNode=function(e){return 185===e.kind},e.isIntersectionTypeNode=function(e){return 186===e.kind},e.isConditionalTypeNode=function(e){return 187===e.kind},e.isInferTypeNode=function(e){return 188===e.kind},e.isParenthesizedTypeNode=function(e){return 189===e.kind},e.isThisTypeNode=function(e){return 190===e.kind},e.isTypeOperatorNode=function(e){return 191===e.kind},e.isIndexedAccessTypeNode=function(e){return 192===e.kind},e.isMappedTypeNode=function(e){return 193===e.kind},e.isLiteralTypeNode=function(e){return 194===e.kind},e.isImportTypeNode=function(e){return 198===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 197===e.kind},e.isTemplateLiteralTypeNode=function(e){return 196===e.kind},e.isObjectBindingPattern=function(e){return 199===e.kind},e.isArrayBindingPattern=function(e){return 200===e.kind},e.isBindingElement=function(e){return 201===e.kind},e.isArrayLiteralExpression=function(e){return 202===e.kind},e.isObjectLiteralExpression=function(e){return 203===e.kind},e.isPropertyAccessExpression=function(e){return 204===e.kind},e.isElementAccessExpression=function(e){return 205===e.kind},e.isCallExpression=function(e){return 206===e.kind},e.isNewExpression=function(e){return 207===e.kind},e.isTaggedTemplateExpression=function(e){return 208===e.kind},e.isTypeAssertionExpression=function(e){return 209===e.kind},e.isParenthesizedExpression=function(e){return 210===e.kind},e.isFunctionExpression=function(e){return 211===e.kind},e.isArrowFunction=function(e){return 212===e.kind},e.isDeleteExpression=function(e){return 213===e.kind},e.isTypeOfExpression=function(e){return 214===e.kind},e.isVoidExpression=function(e){return 215===e.kind},e.isAwaitExpression=function(e){return 216===e.kind},e.isPrefixUnaryExpression=function(e){return 217===e.kind},e.isPostfixUnaryExpression=function(e){return 218===e.kind},e.isBinaryExpression=function(e){return 219===e.kind},e.isConditionalExpression=function(e){return 220===e.kind},e.isTemplateExpression=function(e){return 221===e.kind},e.isYieldExpression=function(e){return 222===e.kind},e.isSpreadElement=function(e){return 223===e.kind},e.isClassExpression=function(e){return 224===e.kind},e.isOmittedExpression=function(e){return 225===e.kind},e.isExpressionWithTypeArguments=function(e){return 226===e.kind},e.isAsExpression=function(e){return 227===e.kind},e.isNonNullExpression=function(e){return 228===e.kind},e.isMetaProperty=function(e){return 229===e.kind},e.isSyntheticExpression=function(e){return 230===e.kind},e.isPartiallyEmittedExpression=function(e){return 345===e.kind},e.isCommaListExpression=function(e){return 346===e.kind},e.isTemplateSpan=function(e){return 231===e.kind},e.isSemicolonClassElement=function(e){return 232===e.kind},e.isBlock=function(e){return 233===e.kind},e.isVariableStatement=function(e){return 235===e.kind},e.isEmptyStatement=function(e){return 234===e.kind},e.isExpressionStatement=function(e){return 236===e.kind},e.isIfStatement=function(e){return 237===e.kind},e.isDoStatement=function(e){return 238===e.kind},e.isWhileStatement=function(e){return 239===e.kind},e.isForStatement=function(e){return 240===e.kind},e.isForInStatement=function(e){return 241===e.kind},e.isForOfStatement=function(e){return 242===e.kind},e.isContinueStatement=function(e){return 243===e.kind},e.isBreakStatement=function(e){return 244===e.kind},e.isReturnStatement=function(e){return 245===e.kind},e.isWithStatement=function(e){return 246===e.kind},e.isSwitchStatement=function(e){return 247===e.kind},e.isLabeledStatement=function(e){return 248===e.kind},e.isThrowStatement=function(e){return 249===e.kind},e.isTryStatement=function(e){return 250===e.kind},e.isDebuggerStatement=function(e){return 251===e.kind},e.isVariableDeclaration=function(e){return 252===e.kind},e.isVariableDeclarationList=function(e){return 253===e.kind},e.isFunctionDeclaration=function(e){return 254===e.kind},e.isClassDeclaration=function(e){return 255===e.kind},e.isInterfaceDeclaration=function(e){return 256===e.kind},e.isTypeAliasDeclaration=function(e){return 257===e.kind},e.isEnumDeclaration=function(e){return 258===e.kind},e.isModuleDeclaration=function(e){return 259===e.kind},e.isModuleBlock=function(e){return 260===e.kind},e.isCaseBlock=function(e){return 261===e.kind},e.isNamespaceExportDeclaration=function(e){return 262===e.kind},e.isImportEqualsDeclaration=function(e){return 263===e.kind},e.isImportDeclaration=function(e){return 264===e.kind},e.isImportClause=function(e){return 265===e.kind},e.isNamespaceImport=function(e){return 266===e.kind},e.isNamespaceExport=function(e){return 272===e.kind},e.isNamedImports=function(e){return 267===e.kind},e.isImportSpecifier=function(e){return 268===e.kind},e.isExportAssignment=function(e){return 269===e.kind},e.isExportDeclaration=function(e){return 270===e.kind},e.isNamedExports=function(e){return 271===e.kind},e.isExportSpecifier=function(e){return 273===e.kind},e.isMissingDeclaration=function(e){return 274===e.kind},e.isNotEmittedStatement=function(e){return 344===e.kind},e.isSyntheticReference=function(e){return 349===e.kind},e.isMergeDeclarationMarker=function(e){return 347===e.kind},e.isEndOfDeclarationMarker=function(e){return 348===e.kind},e.isExternalModuleReference=function(e){return 275===e.kind},e.isJsxElement=function(e){return 276===e.kind},e.isJsxSelfClosingElement=function(e){return 277===e.kind},e.isJsxOpeningElement=function(e){return 278===e.kind},e.isJsxClosingElement=function(e){return 279===e.kind},e.isJsxFragment=function(e){return 280===e.kind},e.isJsxOpeningFragment=function(e){return 281===e.kind},e.isJsxClosingFragment=function(e){return 282===e.kind},e.isJsxAttribute=function(e){return 283===e.kind},e.isJsxAttributes=function(e){return 284===e.kind},e.isJsxSpreadAttribute=function(e){return 285===e.kind},e.isJsxExpression=function(e){return 286===e.kind},e.isCaseClause=function(e){return 287===e.kind},e.isDefaultClause=function(e){return 288===e.kind},e.isHeritageClause=function(e){return 289===e.kind},e.isCatchClause=function(e){return 290===e.kind},e.isPropertyAssignment=function(e){return 291===e.kind},e.isShorthandPropertyAssignment=function(e){return 292===e.kind},e.isSpreadAssignment=function(e){return 293===e.kind},e.isEnumMember=function(e){return 294===e.kind},e.isUnparsedPrepend=function(e){return 296===e.kind},e.isSourceFile=function(e){return 300===e.kind},e.isBundle=function(e){return 301===e.kind},e.isUnparsedSource=function(e){return 302===e.kind},e.isJSDocTypeExpression=function(e){return 304===e.kind},e.isJSDocNameReference=function(e){return 305===e.kind},e.isJSDocMemberName=function(e){return 306===e.kind},e.isJSDocLink=function(e){return 319===e.kind},e.isJSDocLinkCode=function(e){return 320===e.kind},e.isJSDocLinkPlain=function(e){return 321===e.kind},e.isJSDocAllType=function(e){return 307===e.kind},e.isJSDocUnknownType=function(e){return 308===e.kind},e.isJSDocNullableType=function(e){return 309===e.kind},e.isJSDocNonNullableType=function(e){return 310===e.kind},e.isJSDocOptionalType=function(e){return 311===e.kind},e.isJSDocFunctionType=function(e){return 312===e.kind},e.isJSDocVariadicType=function(e){return 313===e.kind},e.isJSDocNamepathType=function(e){return 314===e.kind},e.isJSDoc=function(e){return 315===e.kind},e.isJSDocTypeLiteral=function(e){return 317===e.kind},e.isJSDocSignature=function(e){return 318===e.kind},e.isJSDocAugmentsTag=function(e){return 323===e.kind},e.isJSDocAuthorTag=function(e){return 325===e.kind},e.isJSDocClassTag=function(e){return 327===e.kind},e.isJSDocCallbackTag=function(e){return 333===e.kind},e.isJSDocPublicTag=function(e){return 328===e.kind},e.isJSDocPrivateTag=function(e){return 329===e.kind},e.isJSDocProtectedTag=function(e){return 330===e.kind},e.isJSDocReadonlyTag=function(e){return 331===e.kind},e.isJSDocOverrideTag=function(e){return 332===e.kind},e.isJSDocDeprecatedTag=function(e){return 326===e.kind},e.isJSDocSeeTag=function(e){return 341===e.kind},e.isJSDocEnumTag=function(e){return 334===e.kind},e.isJSDocParameterTag=function(e){return 335===e.kind},e.isJSDocReturnTag=function(e){return 336===e.kind},e.isJSDocThisTag=function(e){return 337===e.kind},e.isJSDocTypeTag=function(e){return 338===e.kind},e.isJSDocTemplateTag=function(e){return 339===e.kind},e.isJSDocTypedefTag=function(e){return 340===e.kind},e.isJSDocUnknownTag=function(e){return 322===e.kind},e.isJSDocPropertyTag=function(e){return 342===e.kind},e.isJSDocImplementsTag=function(e){return 324===e.kind},e.isSyntaxList=function(e){return 343===e.kind}}(s||(s={})),function(e){function r(t,r,n,i){if(e.isComputedPropertyName(n))return e.setTextRange(t.createElementAccessExpression(r,n.expression),i);var a=e.setTextRange(e.isMemberName(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function n(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function i(t,r,a){if(e.isQualifiedName(r)){var o=i(t,r.left,a),s=t.createIdentifier(e.idText(r.right));return s.escapedText=r.right.escapedText,t.createPropertyAccessExpression(o,s)}return n(e.idText(r),a)}function a(e,t,r,a){return t?i(e,t,a):e.createPropertyAccessExpression(n(r,a),"createElement")}function o(t,r){return e.isIdentifier(r)?t.createStringLiteralFromNode(r):e.isComputedPropertyName(r)?e.setParent(e.setTextRange(t.cloneNode(r.expression),r.expression),r.expression.parent):e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)}function s(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function c(e,t){switch(void 0===t&&(t=15),e.kind){case 210:return 0!=(1&t);case 209:case 227:return 0!=(2&t);case 228:return 0!=(4&t);case 345:return 0!=(8&t)}return!1}function u(e,t){for(void 0===t&&(t=15);c(e,t);)e=e.expression;return e}function l(t){return e.setStartsOnNewLine(t,!0)}function _(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function d(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=_(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||n.esModuleInterop&&a)&&s!==e.ModuleKind.System&&s0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,u=a;c0)if(c.length>1)for(var p=0,f=c;p=e.ModuleKind.ES2015&&u<=e.ModuleKind.ESNext){var l=e.getEmitHelpers(n);if(l){for(var _=[],p=0,f=l;p0?o[n-1]:void 0;return e.Debug.assertEqual(i[n],r),o[n]=t.onEnter(a[n],l,u),i[n]=c(t,r),n}function n(t,r,i,a,o,s,_){e.Debug.assertEqual(i[r],n),e.Debug.assertIsDefined(t.onLeft),i[r]=c(t,n);var d=t.onLeft(a[r].left,o[r],a[r]);return d?(l(r,a,d),u(r,i,a,o,d)):r}function i(t,r,n,a,o,s,u){return e.Debug.assertEqual(n[r],i),e.Debug.assertIsDefined(t.onOperator),n[r]=c(t,i),t.onOperator(a[r].operatorToken,o[r],a[r]),r}function a(t,r,n,i,o,s,_){e.Debug.assertEqual(n[r],a),e.Debug.assertIsDefined(t.onRight),n[r]=c(t,a);var d=t.onRight(i[r].right,o[r],i[r]);return d?(l(r,i,d),u(r,n,i,o,d)):r}function o(t,r,n,i,a,s,u){e.Debug.assertEqual(n[r],o),n[r]=c(t,o);var l=t.onExit(i[r],a[r]);if(r>0){if(r--,t.foldState){var _=n[r]===o?"right":"left";a[r]=t.foldState(a[r],l,_)}}else s.value=l;return r}function s(t,r,n,i,a,o,c){return e.Debug.assertEqual(n[r],s),r}function c(t,c){switch(c){case r:if(t.onLeft)return n;case n:if(t.onOperator)return i;case i:if(t.onRight)return a;case a:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function u(e,t,n,i,a){return t[++e]=r,n[e]=a,i[e]=void 0,e}function l(t,r,n){if(e.Debug.shouldAssert(2))for(;t>=0;)e.Debug.assert(r[t]!==n,"Circular traversal detected."),t--}t.enter=r,t.left=n,t.operator=i,t.right=a,t.exit=o,t.done=s,t.nextState=c}(v||(v={}));var h=function(e,t,r,n,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=n,this.onExit=i,this.foldState=a};e.createBinaryExpressionTrampoline=function(t,r,n,i,a,o){var s=new h(t,r,n,i,a,o);return function(t,r){var n={value:void 0},i=[v.enter],a=[t],o=[void 0],c=0;for(;i[c]!==v.done;)c=i[c](s,c,i,a,o,n,r);return e.Debug.assertEqual(c,0),n.value}}}(s||(s={})),function(e){e.setTextRange=function(t,r){return r?e.setTextRangePosEnd(t,r.pos,r.end):t}}(s||(s={})),function(e){var r,n,i,a,o,s,c,u,l;function _(e,t){return t&&e(t)}function d(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;nt.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}}))}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(r||(r={})),function(e){e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"}(n||(n={})),e.parseBaseNodeFactory={createBaseSourceFileNode:function(t){return new(c||(c=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(o||(o=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(s||(s=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(a||(a=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(t){return new(i||(i=e.objectAllocator.getNodeConstructor()))(t,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=p,e.forEachChild=f,e.forEachChildRecursively=function(t,r,n){for(var i=g(t),a=[];a.length=0;--c)i.push(o[c]),a.push(s)}else{var u;if(u=r(o,s)){if("skip"===u)continue;return u}if(o.kind>=159)for(var l=0,_=g(o);l<_.length;l++){var d=_[l];i.push(d),a.push(o)}}}},e.createSourceFile=function(t,r,n,i,a){var o;return void 0===i&&(i=!1),null===e.tracing||void 0===e.tracing||e.tracing.push("parse","createSourceFile",{path:t},!0),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(t),o=100===n?u.parseSourceFile(t,r,n,void 0,i,6):u.parseSourceFile(t,r,n,void 0,i,a),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o},e.parseIsolatedEntityName=function(e,t){return u.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return u.parseJsonText(e,t)},e.isExternalModule=m,e.updateSourceFile=function(e,t,r,n){void 0===n&&(n=!1);var i=l.updateSourceFile(e,t,r,n);return i.flags|=3145728&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=u.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&u.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return u.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(r){var n,i,a,o,s,c=e.createScanner(99,!0),u=20480;function _(e){return F++,e}var d,g,D,b,x,S,C,E,k,A,F,N,P,w,I,O,M,L={createBaseSourceFileNode:function(e){return _(new s(e,0,0))},createBaseIdentifierNode:function(e){return _(new a(e,0,0))},createBasePrivateIdentifierNode:function(e){return _(new o(e,0,0))},createBaseTokenNode:function(e){return _(new i(e,0,0))},createBaseNode:function(e){return _(new n(e,0,0))}},R=e.createNodeFactory(11,L),B=!0,j=!1;function J(t,r,n,i,a){void 0===n&&(n=2),void 0===a&&(a=!1),K(t,r,n,i,6),g=M,he();var o,s,c=fe();if(1===me())o=Ge([],c,c),s=Ve();else{for(var u=void 0;1!==me();){var l=void 0;switch(me()){case 22:l=Nn();break;case 110:case 95:case 104:l=Ve();break;case 40:l=Ae((function(){return 8===he()&&58!==he()}))?an():wn();break;case 8:case 10:if(Ae((function(){return 58!==he()}))){l=jt();break}default:l=wn()}u&&e.isArray(u)?u.push(l):u?u=[u,l]:(u=l,1!==me()&&ue(e.Diagnostics.Unexpected_token))}var _=e.isArray(u)?Ye(R.createArrayLiteralExpression(u),c):e.Debug.checkDefined(u),d=R.createExpressionStatement(_);Ye(d,c),o=Ge([d],c),s=Ue(1,e.Diagnostics.Unexpected_token)}var p=G(t,2,6,!1,o,s,g);a&&H(p),p.nodeCount=F,p.identifierCount=w,p.identifiers=N,p.parseDiagnostics=e.attachFileToDiagnostics(C,p),E&&(p.jsDocDiagnostics=e.attachFileToDiagnostics(E,p));var f=p;return z(),f}function K(t,r,u,l,_){switch(n=e.objectAllocator.getNodeConstructor(),i=e.objectAllocator.getTokenConstructor(),a=e.objectAllocator.getIdentifierConstructor(),o=e.objectAllocator.getPrivateIdentifierConstructor(),s=e.objectAllocator.getSourceFileConstructor(),d=e.normalizePath(t),D=r,b=u,k=l,x=_,S=e.getLanguageVariant(_),C=[],I=0,N=new e.Map,P=new e.Map,w=0,F=0,g=0,B=!0,x){case 1:case 2:M=131072;break;case 6:M=33685504;break;default:M=0}j=!1,c.setText(D),c.setOnError(pe),c.setScriptTarget(b),c.setLanguageVariant(S)}function z(){c.clearCommentDirectives(),c.setText(""),c.setOnError(void 0),D=void 0,b=void 0,k=void 0,x=void 0,S=void 0,g=0,C=void 0,E=void 0,I=0,N=void 0,O=void 0,B=!0}function U(t,r,n){var i=y(d);i&&(M|=8388608),g=M,he();var a=xt(0,Xn);e.Debug.assert(1===me());var o=W(Ve()),s=G(d,t,n,i,a,o,g);return v(s,D),h(s,(function(t,r,n){C.push(e.createDetachedDiagnostic(d,t,r,n))})),s.commentDirectives=c.getCommentDirectives(),s.nodeCount=F,s.identifierCount=w,s.identifiers=N,s.parseDiagnostics=e.attachFileToDiagnostics(C,s),E&&(s.jsDocDiagnostics=e.attachFileToDiagnostics(E,s)),r&&H(s),s}function V(e,t){return t?W(e):e}r.parseSourceFile=function(t,r,n,i,a,o){var s;if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var c=J(t,r,n,i,a);return e.convertToObjectWorker(c,null===(s=c.statements[0])||void 0===s?void 0:s.expression,c.parseDiagnostics,!1,void 0,void 0),c.referencedFiles=e.emptyArray,c.typeReferenceDirectives=e.emptyArray,c.libReferenceDirectives=e.emptyArray,c.amdDependencies=e.emptyArray,c.hasNoDefaultLib=!1,c.pragmas=e.emptyMap,c}K(t,r,n,i,o);var u=U(n,a,o);return z(),u},r.parseIsolatedEntityName=function(e,t){K("",e,t,void 0,1),he();var r=Pt(!0),n=1===me()&&!C.length;return z(),n?r:void 0},r.parseJsonText=J;var q=!1;function W(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,D),(function(e){return Me.parseJSDocComment(t,e.pos,e.end-e.pos)}));return r.length&&(t.jsDoc=r),q&&(q=!1,t.flags|=134217728),t}function H(t){e.setParentRecursive(t,!0)}function G(t,r,n,i,a,o,s){var u=R.createSourceFile(a,o,s);return e.setTextRangePosWidth(u,0,D.length),function(t){t.externalModuleIndicator=e.forEach(t.statements,qi)||function(e){return 2097152&e.flags?Wi(e):void 0}(t)}(u),!i&&m(u)&&16777216&u.transformFlags&&(u=function(t){var r=k,n=l.createSyntaxCursor(t);k={currentNode:function(e){var t=n.currentNode(e);return B&&t&&p(t)&&(t.intersectsChange=!0),t}};var i=[],a=C;C=[];for(var o=0,s=f(t.statements,0),u=function(){var r=t.statements[o],n=t.statements[s];e.addRange(i,t.statements,o,s),o=g(t.statements,s);var u=e.findIndex(a,(function(e){return e.start>=r.pos})),l=u>=0?e.findIndex(a,(function(e){return e.start>=n.pos}),u):-1;u>=0&&e.addRange(C,a,u,l>=0?l:void 0),ke((function(){var e=M;for(M|=32768,c.setTextPos(n.pos),he();1!==me();){var r=c.getStartPos(),a=St(0,Xn);if(i.push(a),r===c.getStartPos()&&he(),o>=0){var s=t.statements[o];if(a.end===s.pos)break;a.end>s.pos&&(o=g(t.statements,o+1))}}M=e}),2),s=o>=0?f(t.statements,o):-1};-1!==s;)u();if(o>=0){var _=t.statements[o];e.addRange(i,t.statements,o);var d=e.findIndex(a,(function(e){return e.start>=_.pos}));d>=0&&e.addRange(C,a,d)}return k=r,R.updateSourceFile(t,e.setTextRange(R.createNodeArray(i),t.statements));function p(e){return!(32768&e.flags||!(16777216&e.transformFlags))}function f(e,t){for(var r=t;r116}function Pe(){return 79===me()||(125!==me()||!ae())&&((131!==me()||!ce())&&me()>116)}function we(t,r,n){return void 0===n&&(n=!0),me()===t?(n&&he(),!0):(r?ue(r):ue(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}r.fixupParentReferences=H;var Ie,Oe,Me,Le=Object.keys(e.textToKeywordObj).filter((function(e){return e.length>2}));function Re(t){var r;if(e.isTaggedTemplateExpression(t))_e(e.skipTrivia(D,t.template.pos),t.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var n=e.isIdentifier(t)?e.idText(t):void 0;if(n&&e.isIdentifierText(n,b)){var i=e.skipTrivia(D,t.pos);switch(n){case"const":case"let":case"var":return void _e(i,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Be(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void _e(i,c.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void Be(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Be(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(r=e.getSpellingSuggestion(n,Le,(function(e){return e})))&&void 0!==r?r:function(t){for(var r=0,n=Le;ri.length+2&&e.startsWith(t,i))return i+" "+t.slice(i.length)}return}(n);a?_e(i,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==me()&&_e(i,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else ue(e.Diagnostics._0_expected,e.tokenToString(26))}}function Be(t,r,n){me()===n?ue(r):ue(t,e.tokenToString(me()))}function je(t){return me()===t?(De(),!0):(ue(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function Je(e){return me()===e&&(he(),!0)}function Ke(e){if(me()===e)return Ve()}function ze(e){if(me()===e)return t=fe(),r=me(),De(),Ye(R.createToken(r),t);var t,r}function Ue(t,r,n){return Ke(t)||Xe(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function Ve(){var e=fe(),t=me();return he(),Ye(R.createToken(t),e)}function qe(){return 26===me()||(19===me()||1===me()||c.hasPrecedingLineBreak())}function We(){return!!qe()&&(26===me()&&he(),!0)}function He(){return We()||we(26)}function Ge(t,r,n,i){var a=R.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:c.getStartPos()),a}function Ye(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:c.getStartPos()),M&&(t.flags|=M),j&&(j=!1,t.flags|=65536),t}function Xe(t,r,n,i){r?le(c.getStartPos(),0,n,i):n&&ue(n,i);var a=fe();return Ye(79===t?R.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,"","",void 0):8===t?R.createNumericLiteral("",void 0):10===t?R.createStringLiteral("",void 0):274===t?R.createMissingDeclaration():R.createToken(t),a)}function $e(e){var t=N.get(e);return void 0===t&&N.set(e,t=e),t}function Qe(t,r,n){if(t){w++;var i=fe(),a=me(),o=$e(c.getTokenValue());return ye(),Ye(R.createIdentifier(o,void 0,a),i)}if(80===me())return ue(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Qe(!0);if(0===me()&&c.tryScan((function(){return 79===c.reScanInvalidIdentifier()})))return Qe(!0);w++;var s=1===me(),u=c.isReservedWord(),l=c.getTokenText(),_=u?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Xe(79,s,r||_,l)}function Ze(e){return Qe(Ne(),void 0,e)}function et(e,t){return Qe(Pe(),e,t)}function tt(t){return Qe(e.tokenIsIdentifierOrKeyword(me()),t)}function rt(){return e.tokenIsIdentifierOrKeyword(me())||10===me()||8===me()}function nt(e){if(10===me()||8===me()){var t=jt();return t.text=$e(t.text),t}return e&&22===me()?function(){var e=fe();we(22);var t=re(qr);return we(23),Ye(R.createComputedPropertyName(t),e)}():80===me()?at():tt()}function it(){return nt(!0)}function at(){var e,t,r=fe(),n=R.createPrivateIdentifier((e=c.getTokenText(),void 0===(t=P.get(e))&&P.set(e,t=e),t));return he(),Ye(n,r)}function ot(e){return me()===e&&Fe(ct)}function st(){return he(),!c.hasPrecedingLineBreak()&&_t()}function ct(){switch(me()){case 85:return 92===he();case 93:return he(),88===me()?Ae(dt):150===me()?Ae(lt):ut();case 88:return dt();case 124:return st();case 135:case 147:return he(),_t();default:return st()}}function ut(){return 41!==me()&&127!==me()&&18!==me()&&_t()}function lt(){return he(),ut()}function _t(){return 22===me()||18===me()||41===me()||25===me()||rt()}function dt(){return he(),84===me()||98===me()||118===me()||126===me()&&Ae(Un)||130===me()&&Ae(Vn)}function pt(t,r){if(Ct(t))return!0;switch(t){case 0:case 1:case 3:return!(26===me()&&r)&&Gn();case 2:return 82===me()||88===me();case 4:return Ae(ur);case 5:return Ae(yi)||26===me()&&!r;case 6:return 22===me()||rt();case 12:switch(me()){case 22:case 41:case 25:case 24:return!0;default:return rt()}case 18:return rt();case 9:return 22===me()||25===me()||rt();case 7:return 18===me()?Ae(ft):r?Pe()&&!vt():Ur()&&!vt();case 8:return ii();case 10:return 27===me()||25===me()||ii();case 19:return Pe();case 15:switch(me()){case 27:case 24:return!0}case 11:return 25===me()||Vr();case 16:return $t(!1);case 17:return $t(!0);case 20:case 21:return 27===me()||Ar();case 22:return wi();case 23:return e.tokenIsIdentifierOrKeyword(me());case 13:return e.tokenIsIdentifierOrKeyword(me())||18===me();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function ft(){if(e.Debug.assert(18===me()),19===he()){var t=he();return 27===t||18===t||94===t||117===t}return!0}function gt(){return he(),Pe()}function mt(){return he(),e.tokenIsIdentifierOrKeyword(me())}function yt(){return he(),e.tokenIsIdentifierOrKeywordOrGreaterThan(me())}function vt(){return(117===me()||94===me())&&Ae(ht)}function ht(){return he(),Vr()}function Dt(){return he(),Ar()}function bt(e){if(1===me())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===me();case 3:return 19===me()||82===me()||88===me();case 7:return 18===me()||94===me()||117===me();case 8:return function(){if(qe())return!0;if(tn(me()))return!0;if(38===me())return!0;return!1}();case 19:return 31===me()||20===me()||18===me()||94===me()||117===me();case 11:return 21===me()||26===me();case 15:case 21:case 10:return 23===me();case 17:case 16:case 18:return 21===me()||23===me();case 20:return 27!==me();case 22:return 18===me()||19===me();case 13:return 31===me()||43===me();case 14:return 29===me()&&Ae(ji);default:return!1}}function xt(e,t){var r=I;I|=1<=0)}function At(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Ft(){var e=Ge([],fe());return e.isMissingList=!0,e}function Nt(e,t,r,n){if(we(r)){var i=kt(e,t);return we(n),i}return Ft()}function Pt(e,t){for(var r=fe(),n=e?tt(t):et(t),i=fe();Je(24);){if(29===me()){n.jsdocDotPos=i;break}i=fe(),n=Ye(R.createQualifiedName(n,It(e,!1)),r)}return n}function wt(e,t){return Ye(R.createQualifiedName(e,t),e.pos)}function It(t,r){if(c.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(me())&&Ae(zn))return Xe(79,!0,e.Diagnostics.Identifier_expected);if(80===me()){var n=at();return r?n:Xe(79,!0,e.Diagnostics.Identifier_expected)}return t?tt():et()}function Ot(e){var t=fe();return Ye(R.createTemplateExpression(Jt(e),function(e){var t,r=fe(),n=[];do{t=Bt(e),n.push(t)}while(16===t.literal.kind);return Ge(n,r)}(e)),t)}function Mt(){var e=fe();return Ye(R.createTemplateLiteralType(Jt(!1),function(){var e,t=fe(),r=[];do{e=Lt(),r.push(e)}while(16===e.literal.kind);return Ge(r,t)}()),e)}function Lt(){var e=fe();return Ye(R.createTemplateLiteralTypeSpan(Jr(),Rt(!1)),e)}function Rt(t){return 19===me()?(function(e){A=c.reScanTemplateToken(e)}(t),r=Kt(me()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):Ue(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function Bt(e){var t=fe();return Ye(R.createTemplateSpan(re(qr),Rt(e)),t)}function jt(){return Kt(me())}function Jt(t){t&&xe();var r=Kt(me());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function Kt(t){var r=fe(),n=e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,c.getTokenValue(),function(e){var t=14===e||17===e,r=c.getTokenText();return r.substring(1,r.length-(c.isUnterminated()?0:t?1:2))}(t),2048&c.getTokenFlags()):8===t?R.createNumericLiteral(c.getTokenValue(),c.getNumericLiteralFlags()):10===t?R.createStringLiteral(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?R.createLiteralLikeNode(t,c.getTokenValue()):e.Debug.fail();return c.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(n.isUnterminated=!0),he(),Ye(n,r)}function zt(){return Pt(!0,e.Diagnostics.Type_expected)}function Ut(){if(!c.hasPrecedingLineBreak()&&29===Se())return Nt(20,Jr,29,31)}function Vt(){var e=fe();return Ye(R.createTypeReferenceNode(zt(),Ut()),e)}function qt(t){switch(t.kind){case 176:return e.nodeIsMissing(t.typeName);case 177:case 178:var r=t,n=r.parameters,i=r.type;return!!n.isMissingList||qt(i);case 189:return qt(t.type);default:return!1}}function Wt(){var e=fe();return he(),Ye(R.createThisTypeNode(),e)}function Ht(){var e,t=fe();return 108!==me()&&103!==me()||(e=tt(),we(58)),Ye(R.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Gt(),void 0),t)}function Gt(){c.setInJSDocType(!0);var e=fe();if(Je(140)){var t=R.createJSDocNamepathType(void 0);e:for(;;)switch(me()){case 19:case 1:case 27:case 5:break e;default:De()}return c.setInJSDocType(!1),Ye(t,e)}var r=Je(25),n=Br();return c.setInJSDocType(!1),r&&(n=Ye(R.createJSDocVariadicType(n),e)),63===me()?(he(),Ye(R.createJSDocOptionalType(n),e)):n}function Yt(){var e,t,r=fe(),n=et();Je(94)&&(Ar()||!Vr()?e=Jr():t=on());var i=Je(63)?Jr():void 0,a=R.createTypeParameterDeclaration(n,e,i);return a.expression=t,Ye(a,r)}function Xt(){if(29===me())return Nt(19,Yt,29,31)}function $t(t){return 25===me()||ii()||e.isModifierKind(me())||59===me()||Ar(!t)}function Qt(){return er(!0)}function Zt(){return er(!1)}function er(t){var r=fe(),n=ge(),i=t?ne(bi):bi();if(108===me()){var a=R.createParameterDeclaration(i,void 0,void 0,Qe(!0),void 0,zr(),void 0);return i&&de(i[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),V(Ye(a,r),n)}var o=B;B=!1;var s=Si(),c=V(Ye(R.createParameterDeclaration(i,s,Ke(25),function(t){var r=ai(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(me())&&he(),r}(s),Ke(57),zr(),Wr()),r),n);return B=o,c}function tr(t,r){if(function(t,r){if(38===t)return we(t),!0;if(Je(58))return!0;if(r&&38===me())return ue(e.Diagnostics._0_expected,e.tokenToString(58)),he(),!0;return!1}(t,r))return Br()}function rr(e){var t=ae(),r=ce();$(!!(1&e)),Z(!!(2&e));var n=32&e?kt(17,Ht):kt(16,r?Qt:Zt);return $(t),Z(r),n}function nr(e){if(!we(20))return Ft();var t=rr(e);return we(21),t}function ir(){Je(27)||He()}function ar(e){var t=fe(),r=ge();173===e&&we(103);var n=Xt(),i=nr(4),a=tr(58,!0);return ir(),V(Ye(172===e?R.createCallSignature(n,i,a):R.createConstructSignature(n,i,a),t),r)}function or(){return 22===me()&&Ae(sr)}function sr(){if(he(),25===me()||23===me())return!0;if(e.isModifierKind(me())){if(he(),Pe())return!0}else{if(!Pe())return!1;he()}return 58===me()||27===me()||57===me()&&(he(),58===me()||27===me()||23===me())}function cr(e,t,r,n){var i=Nt(16,Zt,22,23),a=zr();return ir(),V(Ye(R.createIndexSignature(r,n,i,a),e),t)}function ur(){if(20===me()||29===me()||135===me()||147===me())return!0;for(var t=!1;e.isModifierKind(me());)t=!0,he();return 22===me()||(rt()&&(t=!0,he()),!!t&&(20===me()||29===me()||57===me()||58===me()||27===me()||qe()))}function lr(){if(20===me()||29===me())return ar(172);if(103===me()&&Ae(_r))return ar(173);var e=fe(),t=ge(),r=Si();return ot(135)?mi(e,t,void 0,r,170):ot(147)?mi(e,t,void 0,r,171):or()?cr(e,t,void 0,r):function(e,t,r){var n,i=it(),a=Ke(57);if(20===me()||29===me()){var o=Xt(),s=nr(4),c=tr(58,!0);n=R.createMethodSignature(r,i,a,o,s,c)}else c=zr(),n=R.createPropertySignature(r,i,a,c),63===me()&&(n.initializer=Wr());return ir(),V(Ye(n,e),t)}(e,t,r)}function _r(){return he(),20===me()||29===me()}function dr(){return 24===he()}function pr(){switch(he()){case 20:case 29:case 24:return!0}return!1}function fr(){var e;return we(18)?(e=xt(4,lr),we(19)):e=Ft(),e}function gr(){return he(),39===me()||40===me()?143===he():(143===me()&&he(),22===me()&>()&&101===he())}function mr(){var e,t=fe();we(18),143!==me()&&39!==me()&&40!==me()||143!==(e=Ve()).kind&&we(143),we(22);var r,n=function(){var e=fe(),t=tt();we(101);var r=Jr();return Ye(R.createTypeParameterDeclaration(t,r,void 0),e)}(),i=Je(127)?Jr():void 0;we(23),57!==me()&&39!==me()&&40!==me()||57!==(r=Ve()).kind&&we(57);var a=zr();return He(),we(19),Ye(R.createMappedTypeNode(e,n,i,r,a),t)}function yr(){var t=fe();if(Je(25))return Ye(R.createRestTypeNode(Jr()),t);var r=Jr();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=R.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function vr(){return 58===he()||57===me()&&58===he()}function hr(){return 25===me()?e.tokenIsIdentifierOrKeyword(he())&&vr():e.tokenIsIdentifierOrKeyword(me())&&vr()}function Dr(){if(Ae(hr)){var e=fe(),t=ge(),r=Ke(25),n=tt(),i=Ke(57);we(58);var a=yr();return V(Ye(R.createNamedTupleMember(r,n,i,a),e),t)}return yr()}function br(){var e=fe(),t=ge(),r=function(){var e;if(126===me()){var t=fe();he(),e=Ge([Ye(R.createToken(126),t)],t)}return e}(),n=Je(103),i=Xt(),a=nr(4),o=tr(38,!1),s=n?R.createConstructorTypeNode(r,i,a,o):R.createFunctionTypeNode(i,a,o);return n||(s.modifiers=r),V(Ye(s,e),t)}function xr(){var e=Ve();return 24===me()?void 0:e}function Sr(e){var t=fe();e&&he();var r=110===me()||95===me()||104===me()?Ve():Kt(me());return e&&(r=Ye(R.createPrefixUnaryExpression(40,r),t)),Ye(R.createLiteralTypeNode(r),t)}function Cr(){return he(),100===me()}function Er(){g|=1048576;var e=fe(),t=Je(112);we(100),we(20);var r=Jr();we(21);var n=Je(24)?zt():void 0,i=Ut();return Ye(R.createImportTypeNode(r,n,i,t),e)}function Tr(){return he(),8===me()||9===me()}function kr(){switch(me()){case 129:case 153:case 148:case 145:case 156:case 149:case 132:case 151:case 142:case 146:return Fe(xr)||Vt();case 66:c.reScanAsteriskEqualsToken();case 41:return r=fe(),he(),Ye(R.createJSDocAllType(),r);case 60:c.reScanQuestionToken();case 57:return function(){var e=fe();return he(),27===me()||19===me()||21===me()||31===me()||63===me()||51===me()?Ye(R.createJSDocUnknownType(),e):Ye(R.createJSDocNullableType(Jr()),e)}();case 98:return function(){var e=fe(),t=ge();if(Ae(Ri)){he();var r=nr(36),n=tr(58,!1);return V(Ye(R.createJSDocFunctionType(r,n),e),t)}return Ye(R.createTypeReferenceNode(tt(),void 0),e)}();case 53:return function(){var e=fe();return he(),Ye(R.createJSDocNonNullableType(kr()),e)}();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Sr();case 40:return Ae(Tr)?Sr(!0):Vt();case 114:return Ve();case 108:var e=Wt();return 138!==me()||c.hasPrecedingLineBreak()?e:(t=e,he(),Ye(R.createTypePredicateNode(void 0,t,Jr()),t.pos));case 112:return Ae(Cr)?Er():function(){var e=fe();return we(112),Ye(R.createTypeQueryNode(Pt(!0)),e)}();case 18:return Ae(gr)?mr():function(){var e=fe();return Ye(R.createTypeLiteralNode(fr()),e)}();case 22:return function(){var e=fe();return Ye(R.createTupleTypeNode(Nt(21,Dr,22,23)),e)}();case 20:return function(){var e=fe();we(20);var t=Jr();return we(21),Ye(R.createParenthesizedType(t),e)}();case 100:return Er();case 128:return Ae(zn)?function(){var e=fe(),t=Ue(128),r=108===me()?Wt():et(),n=Je(138)?Jr():void 0;return Ye(R.createTypePredicateNode(t,r,n),e)}():Vt();case 15:return Mt();default:return Vt()}var t,r}function Ar(e){switch(me()){case 129:case 153:case 148:case 145:case 156:case 132:case 143:case 149:case 152:case 114:case 151:case 104:case 108:case 112:case 142:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 146:case 41:case 57:case 53:case 25:case 136:case 100:case 128:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&Ae(Tr);case 20:return!e&&Ae(Fr);default:return Pe()}}function Fr(){return he(),21===me()||$t(!1)||Ar()}function Nr(){var e=fe();return we(136),Ye(R.createInferTypeNode(function(){var e=fe();return Ye(R.createTypeParameterDeclaration(et(),void 0,void 0),e)}()),e)}function Pr(){var e=me();switch(e){case 139:case 152:case 143:return function(e){var t=fe();return we(e),Ye(R.createTypeOperatorNode(e,Pr()),t)}(e);case 136:return Nr()}return function(){for(var e=fe(),t=kr();!c.hasPrecedingLineBreak();)switch(me()){case 53:he(),t=Ye(R.createJSDocNonNullableType(t),e);break;case 57:if(Ae(Dt))return t;he(),t=Ye(R.createJSDocNullableType(t),e);break;case 22:if(we(22),Ar()){var r=Jr();we(23),t=Ye(R.createIndexedAccessTypeNode(t,r),e)}else we(23),t=Ye(R.createArrayTypeNode(t),e);break;default:return t}return t}()}function wr(t){if(Lr()){var r=br();return de(r,e.isFunctionTypeNode(r)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),r}}function Ir(e,t,r){var n=fe(),i=51===e,a=Je(e),o=a&&wr(i)||t();if(me()===e||a){for(var s=[o];Je(e);)s.push(wr(i)||t());o=Ye(r(Ge(s,n)),n)}return o}function Or(){return Ir(50,Pr,R.createIntersectionTypeNode)}function Mr(){return he(),103===me()}function Lr(){return 29===me()||(!(20!==me()||!Ae(Rr))||(103===me()||126===me()&&Ae(Mr)))}function Rr(){if(he(),21===me()||25===me())return!0;if(function(){if(e.isModifierKind(me())&&Si(),Pe()||108===me())return he(),!0;if(22===me()||18===me()){var t=C.length;return ai(),t===C.length}return!1}()){if(58===me()||27===me()||57===me()||63===me())return!0;if(21===me()&&(he(),38===me()))return!0}return!1}function Br(){var e=fe(),t=Pe()&&Fe(jr),r=Jr();return t?Ye(R.createTypePredicateNode(void 0,t,r),e):r}function jr(){var e=et();if(138===me()&&!c.hasPrecedingLineBreak())return he(),e}function Jr(){return ee(40960,Kr)}function Kr(e){if(Lr())return br();var t=fe(),r=Ir(51,Or,R.createUnionTypeNode);if(!e&&!c.hasPrecedingLineBreak()&&Je(94)){var n=Kr(!0);we(57);var i=Kr();we(58);var a=Kr();return Ye(R.createConditionalTypeNode(r,n,i,a),t)}return r}function zr(){return Je(58)?Jr():void 0}function Ur(){switch(me()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Ae(pr);default:return Pe()}}function Vr(){if(Ur())return!0;switch(me()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 131:case 125:case 80:return!0;default:return!!function(){if(oe()&&101===me())return!1;return e.getBinaryOperatorPrecedence(me())>0}()||Pe()}}function qr(){var e=se();e&&Q(!1);for(var t,r=fe(),n=Hr();t=Ke(27);)n=nn(n,t,Hr(),r);return e&&Q(!0),n}function Wr(){return Je(63)?Hr():void 0}function Hr(){if(function(){if(125===me())return!!ae()||Ae(qn);return!1}())return function(){var e=fe();return he(),c.hasPrecedingLineBreak()||41!==me()&&!Vr()?Ye(R.createYieldExpression(void 0,void 0),e):Ye(R.createYieldExpression(Ke(41),Hr()),e)}();var t=function(){var e=function(){if(20===me()||29===me()||130===me())return Ae(Yr);if(38===me())return 1;return 0}();if(0===e)return;return 1===e?Qr(!0):Fe(Xr)}()||function(){if(130===me()&&1===Ae($r)){var e=fe(),t=Ci();return Gr(e,en(0),t)}return}();if(t)return t;var r=fe(),n=en(0);return 79===n.kind&&38===me()?Gr(r,n,void 0):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(be())?nn(n,Ve(),Hr(),r):function(t,r){var n,i=Ke(57);if(!i)return t;return Ye(R.createConditionalExpression(t,i,ee(u,Hr),n=Ue(58),e.nodeIsPresent(n)?Hr():Xe(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r)}(n,r)}function Gr(t,r,n){e.Debug.assert(38===me(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=R.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0);Ye(i,r.pos);var a=Ge([i],i.pos,i.end),o=Ue(38),s=Zr(!!n);return W(Ye(R.createArrowFunction(n,void 0,a,void 0,o,s),t))}function Yr(){if(130===me()){if(he(),c.hasPrecedingLineBreak())return 0;if(20!==me()&&29!==me())return 0}var t=me(),r=he();if(20===t){if(21===r)switch(he()){case 38:case 58:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&130!==r&&Ae(gt))return 1;if(!Pe()&&108!==r)return 0;switch(he()){case 58:return 1;case 57:return he(),58===me()||27===me()||63===me()||21===me()?1:0;case 27:case 63:case 21:return 2}return 0}return e.Debug.assert(29===t),Pe()?1===S?Ae((function(){var e=he();if(94===e)switch(he()){case 63:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}))?1:0:2:0}function Xr(){var t=c.getTokenPos();if(!(null==O?void 0:O.has(t))){var r=Qr(!1);return r||(O||(O=new e.Set)).add(t),r}}function $r(){if(130===me()){if(he(),c.hasPrecedingLineBreak()||38===me())return 0;var e=en(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===me())return 1}return 0}function Qr(t){var r,n=fe(),i=ge(),a=Ci(),o=e.some(a,e.isAsyncModifier)?2:0,s=Xt();if(we(20)){if(r=rr(o),!we(21)&&!t)return}else{if(!t)return;r=Ft()}var c=tr(58,!1);if(!c||t||!qt(c)){var u=c&&e.isJSDocFunctionType(c);if(t||38===me()||!u&&18===me()){var l=me(),_=Ue(38),d=38===l||18===l?Zr(e.some(a,e.isAsyncModifier)):et();return V(Ye(R.createArrowFunction(a,s,r,c,_,d),n),i)}}}function Zr(e){if(18===me())return Ln(e?2:0);if(26!==me()&&98!==me()&&84!==me()&&Gn()&&(18===me()||98===me()||84===me()||59===me()||!Vr()))return Ln(16|(e?2:0));var t=B;B=!1;var r=e?ne(Hr):ee(32768,Hr);return B=t,r}function en(e){var t=fe();return rn(e,on(),t)}function tn(e){return 101===e||158===e}function rn(t,r,n){for(;;){be();var i=e.getBinaryOperatorPrecedence(me());if(!(42===me()?i>=t:i>t))break;if(101===me()&&oe())break;if(127===me()){if(c.hasPrecedingLineBreak())break;he(),a=r,o=Jr(),r=Ye(R.createAsExpression(a,o),a.pos)}else r=nn(r,Ve(),en(i),n)}var a,o;return r}function nn(e,t,r,n){return Ye(R.createBinaryExpression(e,t,r),n)}function an(){var e=fe();return Ye(R.createPrefixUnaryExpression(me(),ve(sn)),e)}function on(){if(function(){switch(me()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 131:return!1;case 29:if(1!==S)return!1;default:return!0}}()){var t=fe(),r=cn();return 42===me()?rn(e.getBinaryOperatorPrecedence(me()),r,t):r}var n=me(),i=sn();if(42===me()){t=e.skipTrivia(D,i.pos);var a=i.end;209===i.kind?_e(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):_e(t,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n))}return i}function sn(){switch(me()){case 39:case 40:case 54:case 53:return an();case 89:return e=fe(),Ye(R.createDeleteExpression(ve(sn)),e);case 112:return function(){var e=fe();return Ye(R.createTypeOfExpression(ve(sn)),e)}();case 114:return function(){var e=fe();return Ye(R.createVoidExpression(ve(sn)),e)}();case 29:return function(){var e=fe();we(29);var t=Jr();we(31);var r=sn();return Ye(R.createTypeAssertion(t,r),e)}();case 131:if(131===me()&&(ce()||Ae(qn)))return function(){var e=fe();return Ye(R.createAwaitExpression(ve(sn)),e)}();default:return cn()}var e}function cn(){if(45===me()||46===me()){var t=fe();return Ye(R.createPrefixUnaryExpression(me(),ve(un)),t)}if(1===S&&29===me()&&Ae(yt))return _n(!0);var r=un();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===me()||46===me())&&!c.hasPrecedingLineBreak()){var n=me();return he(),Ye(R.createPostfixUnaryExpression(r,n),r.pos)}return r}function un(){var t,r=fe();return 100===me()?Ae(_r)?(g|=1048576,t=Ve()):Ae(dr)?(he(),he(),t=Ye(R.createMetaProperty(100,tt()),r),g|=2097152):t=ln():t=106===me()?function(){var t=fe(),r=Ve();if(29===me()){var n=fe();void 0!==Fe(Tn)&&_e(n,fe(),e.Diagnostics.super_may_not_use_type_arguments)}if(20===me()||24===me()||22===me())return r;return Ue(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Ye(R.createPropertyAccessExpression(r,It(!0,!0)),t)}():ln(),Cn(r,t)}function ln(){return bn(fe(),kn(),!0)}function _n(r,n,i){var a,o=fe(),s=function(e){var t=fe();if(we(29),31===me())return Te(),Ye(R.createJsxOpeningFragment(),t);var r,n=fn(),i=0==(131072&M)?Pi():void 0,a=function(){var e=fe();return Ye(R.createJsxAttributes(xt(13,mn)),e)}();31===me()?(Te(),r=R.createJsxOpeningElement(n,i,a)):(we(43),we(31,void 0,!1)&&(e?he():Te()),r=R.createJsxSelfClosingElement(n,i,a));return Ye(r,t)}(r);if(278===s.kind){var c=pn(s),u=void 0,l=c[c.length-1];if(276===(null==l?void 0:l.kind)&&!T(l.openingElement.tagName,l.closingElement.tagName)&&T(s.tagName,l.closingElement.tagName)){var _=l.openingElement.end,d=Ye(R.createJsxElement(l.openingElement,Ge([],_,_),Ye(R.createJsxClosingElement(Ye(R.createIdentifier(""),_,_)),_,_)),l.openingElement.pos,_);c=Ge(t(t([],c.slice(0,c.length-1),!0),[d],!1),c.pos,_),u=l.closingElement}else u=function(e,t){var r=fe();we(30);var n=fn();we(31,void 0,!1)&&(t||!T(e.tagName,n)?he():Te());return Ye(R.createJsxClosingElement(n),r)}(s,r),T(s.tagName,u.tagName)||(i&&e.isJsxOpeningElement(i)&&T(u.tagName,i.tagName)?de(s.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(D,s.tagName)):de(u.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(D,s.tagName)));a=Ye(R.createJsxElement(s,c,u),o)}else 281===s.kind?a=Ye(R.createJsxFragment(s,pn(s),function(t){var r=fe();we(30),e.tokenIsIdentifierOrKeyword(me())&&de(fn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);we(31,void 0,!1)&&(t?he():Te());return Ye(R.createJsxJsxClosingFragment(),r)}(r)),o):(e.Debug.assert(277===s.kind),a=s);if(r&&29===me()){var p=void 0===n?a.pos:n,f=Fe((function(){return _n(!0,p)}));if(f){var g=Xe(27,!1);return e.setTextRangePosWidth(g,f.pos,0),_e(e.skipTrivia(D,p),f.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Ye(R.createBinaryExpression(a,g,f),o)}}return a}function dn(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))de(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;_e(e.skipTrivia(D,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(D,t.tagName))}return;case 30:case 7:return;case 11:case 12:return function(){var e=fe(),t=R.createJsxText(c.getTokenValue(),12===A);return A=c.scanJsxToken(),Ye(t,e)}();case 18:return gn(!1);case 29:return _n(!1,void 0,t);default:return e.Debug.assertNever(r)}}function pn(t){var r=[],n=fe(),i=I;for(I|=16384;;){var a=dn(t,A=c.reScanJsxToken());if(!a)break;if(r.push(a),e.isJsxOpeningElement(t)&&276===(null==a?void 0:a.kind)&&!T(a.openingElement.tagName,a.closingElement.tagName)&&T(t.tagName,a.closingElement.tagName))break}return I=i,Ge(r,n)}function fn(){var e=fe();Ee();for(var t=108===me()?Ve():tt();Je(24);)t=Ye(R.createPropertyAccessExpression(t,It(!0,!1)),e);return t}function gn(e){var t,r,n=fe();if(we(18))return 19!==me()&&(t=Ke(25),r=qr()),e?we(19):we(19,void 0,!1)&&Te(),Ye(R.createJsxExpression(t,r),n)}function mn(){if(18===me())return function(){var e=fe();we(18),we(25);var t=qr();return we(19),Ye(R.createJsxSpreadAttribute(t),e)}();Ee();var e=fe();return Ye(R.createJsxAttribute(tt(),63!==me()?void 0:10===(A=c.scanJsxAttributeValue())?jt():gn(!0)),e)}function yn(){return he(),e.tokenIsIdentifierOrKeyword(me())||22===me()||xn()}function vn(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var r=t.expression;e.isNonNullExpression(r)&&!(32&r.flags);)r=r.expression;if(32&r.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function hn(t,r,n){var i=It(!0,!0),a=n||vn(r),o=a?R.createPropertyAccessChain(r,n,i):R.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&de(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Ye(o,t)}function Dn(t,r,n){var i;if(23===me())i=Xe(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=re(qr);e.isStringOrNumericLiteralLike(a)&&(a.text=$e(a.text)),i=a}return we(23),Ye(n||vn(r)?R.createElementAccessChain(r,n,i):R.createElementAccessExpression(r,i),t)}function bn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===me()&&Ae(yn)?(i=Ue(28),a=e.tokenIsIdentifierOrKeyword(me())):a=Je(24),a)r=hn(t,r,i);else if(i||53!==me()||c.hasPrecedingLineBreak())if(!i&&se()||!Je(22)){if(!xn())return r;r=Sn(t,r,i,void 0)}else r=Dn(t,r,i);else he(),r=Ye(R.createNonNullExpression(r),t)}}function xn(){return 14===me()||15===me()}function Sn(e,t,r,n){var i=R.createTaggedTemplateExpression(t,n,14===me()?(xe(),jt()):Ot(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,Ye(i,e)}function Cn(t,r){for(;;){r=bn(t,r,!0);var n=Ke(28);if(0!=(131072&M)||29!==me()&&47!==me()){if(20===me()){a=En();r=Ye(n||vn(r)?R.createCallChain(r,n,void 0,a):R.createCallExpression(r,void 0,a),t);continue}}else{var i=Fe(Tn);if(i){if(xn()){r=Sn(t,r,n,i);continue}var a=En();r=Ye(n||vn(r)?R.createCallChain(r,n,i,a):R.createCallExpression(r,i,a),t);continue}}if(n){var o=Xe(79,!1,e.Diagnostics.Identifier_expected);r=Ye(R.createPropertyAccessChain(r,n,o),t)}break}return r}function En(){we(20);var e=kt(11,Fn);return we(21),e}function Tn(){if(0==(131072&M)&&29===Se()){he();var e=kt(20,Jr);if(we(31))return e&&function(){switch(me()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:void 0}}function kn(){switch(me()){case 8:case 9:case 10:case 14:return jt();case 108:case 106:case 104:case 110:case 95:return Ve();case 20:return function(){var e=fe(),t=ge();we(20);var r=re(qr);return we(21),V(Ye(R.createParenthesizedExpression(r),e),t)}();case 22:return Nn();case 18:return wn();case 130:if(!Ae(Vn))break;return In();case 84:return ki(fe(),ge(),void 0,void 0,224);case 98:return In();case 103:return function(){var t=fe();if(we(103),Je(24)){var r=tt();return Ye(R.createMetaProperty(103,r),t)}var n,i,a=fe(),o=kn();for(;;){o=bn(a,o,!1),n=Fe(Tn),xn()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=Sn(a,o,void 0,n),n=void 0);break}20===me()?i=En():n&&_e(t,c.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list);return Ye(R.createNewExpression(o,n,i),t)}();case 43:case 68:if(13===(A=c.reScanSlashToken()))return jt();break;case 15:return Ot(!1)}return et(e.Diagnostics.Expression_expected)}function An(){return 25===me()?function(){var e=fe();we(25);var t=Hr();return Ye(R.createSpreadElement(t),e)}():27===me()?Ye(R.createOmittedExpression(),fe()):Hr()}function Fn(){return ee(u,An)}function Nn(){var e=fe();we(22);var t=c.hasPrecedingLineBreak(),r=kt(15,An);return we(23),Ye(R.createArrayLiteralExpression(r,t),e)}function Pn(){var e=fe(),t=ge();if(Ke(25)){var r=Hr();return V(Ye(R.createSpreadAssignment(r),e),t)}var n=bi(),i=Si();if(ot(135))return mi(e,t,n,i,170);if(ot(147))return mi(e,t,n,i,171);var a,o=Ke(41),s=Pe(),c=it(),u=Ke(57),l=Ke(53);if(o||20===me()||29===me())return pi(e,t,n,i,o,c,u,l);if(s&&58!==me()){var _=Ke(63),d=_?re(Hr):void 0;(a=R.createShorthandPropertyAssignment(c,d)).equalsToken=_}else{we(58);var p=re(Hr);a=R.createPropertyAssignment(c,p)}return a.decorators=n,a.modifiers=i,a.questionToken=u,a.exclamationToken=l,V(Ye(a,e),t)}function wn(){var t=fe(),r=c.getTokenPos();we(18);var n=c.hasPrecedingLineBreak(),i=kt(12,Pn,!0);if(!we(19)){var a=e.lastOrUndefined(C);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(d,r,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Ye(R.createObjectLiteralExpression(i,n),t)}function In(){var t=se();Q(!1);var r=fe(),n=ge(),i=Si();we(98);var a=Ke(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?te(40960,On):o?function(e){return te(8192,e)}(On):s?ne(On):On(),u=Xt(),l=nr(o|s),_=tr(58,!1),d=Ln(o|s);return Q(t),V(Ye(R.createFunctionExpression(i,a,c,u,l,_,d),r),n)}function On(){return Ne()?Ze():void 0}function Mn(t,r){var n=fe(),i=ge(),a=c.getTokenPos();if(we(18,r)||t){var o=c.hasPrecedingLineBreak(),s=xt(1,Xn);if(!we(19)){var u=e.lastOrUndefined(C);u&&u.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(u,e.createDetachedDiagnostic(d,a,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var l=V(Ye(R.createBlock(s,o),n),i);return 63===me()&&(ue(e.Diagnostics.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_the_whole_assignment_in_parentheses),he()),l}s=Ft();return V(Ye(R.createBlock(s,void 0),n),i)}function Ln(e,t){var r=ae();$(!!(1&e));var n=ce();Z(!!(2&e));var i=B;B=!1;var a=se();a&&Q(!1);var o=Mn(!!(16&e),t);return a&&Q(!0),B=i,$(r),Z(n),o}function Rn(){var e=fe(),t=ge();we(97);var r,n,i=Ke(131);if(we(20),26!==me()&&(r=113===me()||119===me()||85===me()?ci(!0):te(4096,qr)),i?we(158):Je(158)){var a=re(Hr);we(21),n=R.createForOfStatement(i,r,a,Xn())}else if(Je(101)){a=re(qr);we(21),n=R.createForInStatement(r,a,Xn())}else{we(26);var o=26!==me()&&21!==me()?re(qr):void 0;we(26);var s=21!==me()?re(qr):void 0;we(21),n=R.createForStatement(r,o,s,Xn())}return V(Ye(n,e),t)}function Bn(e){var t=fe(),r=ge();we(244===e?81:86);var n=qe()?void 0:et();return He(),V(Ye(244===e?R.createBreakStatement(n):R.createContinueStatement(n),t),r)}function jn(){return 82===me()?function(){var e=fe();we(82);var t=re(qr);we(58);var r=xt(3,Xn);return Ye(R.createCaseClause(t,r),e)}():function(){var e=fe();we(88),we(58);var t=xt(3,Xn);return Ye(R.createDefaultClause(t),e)}()}function Jn(){var e=fe(),t=ge();we(107),we(20);var r=re(qr);we(21);var n=function(){var e=fe();we(18);var t=xt(2,jn);return we(19),Ye(R.createCaseBlock(t),e)}();return V(Ye(R.createSwitchStatement(r,n),e),t)}function Kn(){var e=fe(),t=ge();we(111);var r,n=Mn(!1),i=83===me()?function(){var e,t=fe();we(83),Je(20)?(e=si(),we(21)):e=void 0;var r=Mn(!1);return Ye(R.createCatchClause(e,r),t)}():void 0;return i&&96!==me()||(we(96),r=Mn(!1)),V(Ye(R.createTryStatement(n,i,r),e),t)}function zn(){return he(),e.tokenIsIdentifierOrKeyword(me())&&!c.hasPrecedingLineBreak()}function Un(){return he(),84===me()&&!c.hasPrecedingLineBreak()}function Vn(){return he(),98===me()&&!c.hasPrecedingLineBreak()}function qn(){return he(),(e.tokenIsIdentifierOrKeyword(me())||8===me()||9===me()||10===me())&&!c.hasPrecedingLineBreak()}function Wn(){for(;;)switch(me()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 150:return he(),!c.hasPrecedingLineBreak()&&Pe();case 140:case 141:return ei();case 126:case 130:case 134:case 121:case 122:case 123:case 143:if(he(),c.hasPrecedingLineBreak())return!1;continue;case 155:return he(),18===me()||79===me()||93===me();case 100:return he(),10===me()||41===me()||18===me()||e.tokenIsIdentifierOrKeyword(me());case 93:var t=he();if(150===t&&(t=Ae(he)),63===t||41===t||18===t||88===t||127===t)return!0;continue;case 124:he();continue;default:return!1}}function Hn(){return Ae(Wn)}function Gn(){switch(me()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return Hn()||Ae(pr);case 85:case 93:return Hn();case 130:case 134:case 118:case 140:case 141:case 150:case 155:return!0;case 123:case 121:case 122:case 124:case 143:return Hn()||!Ae(zn);default:return Vr()}}function Yn(){return he(),Ne()||18===me()||22===me()}function Xn(){switch(me()){case 26:return t=fe(),r=ge(),we(26),V(Ye(R.createEmptyStatement(),t),r);case 18:return Mn(!1);case 113:return li(fe(),ge(),void 0,void 0);case 119:if(Ae(Yn))return li(fe(),ge(),void 0,void 0);break;case 98:return _i(fe(),ge(),void 0,void 0);case 84:return Ti(fe(),ge(),void 0,void 0);case 99:return function(){var e=fe(),t=ge();we(99),we(20);var r=re(qr);we(21);var n=Xn(),i=Je(91)?Xn():void 0;return V(Ye(R.createIfStatement(r,n,i),e),t)}();case 90:return function(){var e=fe(),t=ge();we(90);var r=Xn();we(115),we(20);var n=re(qr);return we(21),Je(26),V(Ye(R.createDoStatement(r,n),e),t)}();case 115:return function(){var e=fe(),t=ge();we(115),we(20);var r=re(qr);we(21);var n=Xn();return V(Ye(R.createWhileStatement(r,n),e),t)}();case 97:return Rn();case 86:return Bn(243);case 81:return Bn(244);case 105:return function(){var e=fe(),t=ge();we(105);var r=qe()?void 0:re(qr);return He(),V(Ye(R.createReturnStatement(r),e),t)}();case 116:return function(){var e=fe(),t=ge();we(116),we(20);var r=re(qr);we(21);var n=te(16777216,Xn);return V(Ye(R.createWithStatement(r,n),e),t)}();case 107:return Jn();case 109:return function(){var e=fe(),t=ge();we(109);var r=c.hasPrecedingLineBreak()?void 0:re(qr);return void 0===r&&(w++,r=Ye(R.createIdentifier(""),fe())),We()||Re(r),V(Ye(R.createThrowStatement(r),e),t)}();case 111:case 83:case 96:return Kn();case 87:return function(){var e=fe(),t=ge();return we(87),He(),V(Ye(R.createDebuggerStatement(),e),t)}();case 59:return Qn();case 130:case 118:case 150:case 140:case 141:case 134:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 143:case 155:if(Hn())return Qn()}var t,r;return function(){var t,r=fe(),n=ge(),i=20===me(),a=re(qr);return e.isIdentifier(a)&&Je(58)?t=R.createLabeledStatement(a,Xn()):(We()||Re(a),t=R.createExpressionStatement(a),i&&(n=!1)),V(Ye(t,r),n)}()}function $n(e){return 134===e.kind}function Qn(){var t=e.some(Ae((function(){return bi(),Si()})),$n);if(t){var r=te(8388608,(function(){var e=Ct(I);if(e)return Et(e)}));if(r)return r}var n=fe(),i=ge(),a=bi(),o=Si();if(t){for(var s=0,c=o;s=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),p(a,t)){var s,u,l,_,f,g=[],m=[];return c.scanRange(t+3,i-5,(function(){var r,n=1,i=t-(a.lastIndexOf("\n",t)+1)+4;function d(e){r||(r=i),g.push(e),i+=e.length}for(De();H(5););H(4)&&(n=0,i=0);e:for(;;){switch(me()){case 59:0===n||1===n?(v(g),f||(f=fe()),N(S(i)),n=0,r=void 0):d(c.getTokenText());break;case 4:g.push(c.getTokenText()),n=0,i=0;break;case 41:var p=c.getTokenText();1===n||2===n?(n=2,d(p)):(n=1,i+=p.length);break;case 5:var h=c.getTokenText();2===n?g.push(h):void 0!==r&&i+h.length>r&&g.push(h.slice(r-i)),i+=h.length;break;case 1:break e;case 18:n=2;var D=c.getStartPos(),b=A(c.getTextPos()-1);if(b){_||y(g),m.push(Ye(R.createJSDocText(g.join("")),null!=_?_:t,D)),m.push(b),g=[],_=c.getTextPos();break}default:n=2,d(c.getTokenText())}De()}v(g),m.length&&g.length&&m.push(Ye(R.createJSDocText(g.join("")),null!=_?_:t,f)),m.length&&s&&e.Debug.assertIsDefined(f,"having parsed tags implies that the end of the comment span should be set");var x=s&&Ge(s,u,l);return Ye(R.createJSDocComment(m.length?Ge(m,t,f):g.length?g.join(""):void 0,x),t,o)}))}function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function h(){for(;;){if(De(),1===me())return!0;if(5!==me()&&4!==me())return!1}}function b(){if(5!==me()&&4!==me()||!Ae(h))for(;5===me()||4===me();)De()}function x(){if((5===me()||4===me())&&Ae(h))return"";for(var e=c.hasPrecedingLineBreak(),t=!1,r="";e&&41===me()||5===me()||4===me();)r+=c.getTokenText(),4===me()?(e=!0,t=!0,r=""):41===me()&&(e=!1),De();return t?r:""}function S(t){e.Debug.assert(59===me());var i=c.getTokenPos();De();var a,o=G(void 0),u=x();switch(o.escapedText){case"author":a=function(t,r,n,i){var a=fe(),o=function(){var e=[],t=!1,r=c.getToken();for(;1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(c.getTokenText()),c.setTextPos(c.getTokenPos()+1);break}}e.push(c.getTokenText()),r=De()}return R.createJSDocText(e.join(""))}(),s=c.getStartPos(),u=E(t,s,n,i);u||(s=c.getStartPos());var l="string"!=typeof u?Ge(e.concatenate([Ye(o,a,s)],u),a):o.text+u;return Ye(R.createJSDocAuthorTag(r,l),t)}(i,o,t,u);break;case"implements":a=function(e,t,r,n){var i=B();return Ye(R.createJSDocImplementsTag(t,i,E(e,fe(),r,n)),e)}(i,o,t,u);break;case"augments":case"extends":a=function(e,t,r,n){var i=B();return Ye(R.createJSDocAugmentsTag(t,i,E(e,fe(),r,n)),e)}(i,o,t,u);break;case"class":case"constructor":a=j(i,R.createJSDocClassTag,o,t,u);break;case"public":a=j(i,R.createJSDocPublicTag,o,t,u);break;case"private":a=j(i,R.createJSDocPrivateTag,o,t,u);break;case"protected":a=j(i,R.createJSDocProtectedTag,o,t,u);break;case"readonly":a=j(i,R.createJSDocReadonlyTag,o,t,u);break;case"override":a=j(i,R.createJSDocOverrideTag,o,t,u);break;case"deprecated":q=!0,a=j(i,R.createJSDocDeprecatedTag,o,t,u);break;case"this":a=function(e,t,n,i){var a=r(!0);return b(),Ye(R.createJSDocThisTag(t,a,E(e,fe(),n,i)),e)}(i,o,t,u);break;case"enum":a=function(e,t,n,i){var a=r(!0);return b(),Ye(R.createJSDocEnumTag(t,a,E(e,fe(),n,i)),e)}(i,o,t,u);break;case"arg":case"argument":case"param":return M(i,o,2,t);case"return":case"returns":a=function(t,r,n,i){e.some(s,e.isJSDocReturnTag)&&_e(r.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=P();return Ye(R.createJSDocReturnTag(r,a,E(t,fe(),n,i)),t)}(i,o,t,u);break;case"template":a=function(e,t,n,i){var a=18===me()?r():void 0,o=function(){var e=fe(),t=[];do{b();var r=W();void 0!==r&&t.push(r),x()}while(H(27));return Ge(t,e)}();return Ye(R.createJSDocTemplateTag(t,a,o,E(e,fe(),n,i)),e)}(i,o,t,u);break;case"type":a=L(i,o,t,u);break;case"typedef":a=function(t,r,n,i){var a,o=P();x();var s=J();b();var c,u=T(n);if(!o||O(o.type)){for(var l=void 0,_=void 0,p=void 0,f=!1;l=Fe((function(){return z(n)}));)if(f=!0,338===l.kind){if(_){ue(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var g=e.lastOrUndefined(C);g&&e.addRelatedInfo(g,e.createDetachedDiagnostic(d,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}_=l}else p=e.append(p,l);if(f){var m=o&&181===o.type.kind,y=R.createJSDocTypeLiteral(p,m);c=(o=_&&_.typeExpression&&!O(_.typeExpression.type)?_.typeExpression:Ye(y,t)).end}}c=c||void 0!==u?fe():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,u||(u=E(t,c,n,i));return Ye(R.createJSDocTypedefTag(r,o,s,u),t,c)}(i,o,t,u);break;case"callback":a=function(t,r,n,i){var a=J();b();var o=T(n),s=function(t){var r,n,i=fe();for(;r=Fe((function(){return U(4,t)}));)n=e.append(n,r);return Ge(n||[],i)}(n),c=Fe((function(){if(H(59)){var e=S(n);if(e&&336===e.kind)return e}})),u=Ye(R.createJSDocSignature(void 0,s,c),t);o||(o=E(t,fe(),n,i));return Ye(R.createJSDocCallbackTag(r,u,a,o),t)}(i,o,t,u);break;case"see":a=function(t,r,i,a){var o=Ae((function(){return 59===De()&&e.tokenIsIdentifierOrKeyword(De())&&"link"===c.getTokenValue()}))?void 0:n(),s=void 0!==i&&void 0!==a?E(t,fe(),i,a):void 0;return Ye(R.createJSDocSeeTag(r,o,s),t)}(i,o,t,u);break;default:a=function(e,t,r,n){return Ye(R.createJSDocUnknownTag(t,E(e,fe(),r,n)),e)}(i,o,t,u)}return a}function E(e,t,r,n){return n||(r+=t-e),T(r,n.slice(r))}function T(e,t){var r,n,i=fe(),a=[],o=[],s=0,u=!0;function l(t){n||(n=e),a.push(t),e+=t.length}void 0!==t&&(""!==t&&l(t),s=1);var _=me();e:for(;;){switch(_){case 4:s=0,a.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!u||Ae(k))){a.push(c.getTokenText());break}c.setTextPos(c.getTextPos()-1);case 1:break e;case 5:if(2===s||3===s)l(c.getTokenText());else{var d=c.getTokenText();void 0!==n&&e+d.length>n&&a.push(d.slice(n-e)),e+=d.length}break;case 18:s=2;var p=c.getStartPos(),f=A(c.getTextPos()-1);f?(o.push(Ye(R.createJSDocText(a.join("")),null!=r?r:i,p)),o.push(f),a=[],r=c.getTextPos()):l(c.getTokenText());break;case 61:s=3===s?2:3,l(c.getTokenText());break;case 41:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),l(c.getTokenText())}u=5===me(),_=De()}return y(a),v(a),o.length?(a.length&&o.push(Ye(R.createJSDocText(a.join("")),null!=r?r:i)),Ge(o,i,c.getTextPos())):a.length?a.join(""):void 0}function k(){var e=De();return 5===e||4===e}function A(t){var r=Fe(F);if(r){De(),b();var n=fe(),i=e.tokenIsIdentifierOrKeyword(me())?Pt(!0):void 0;if(i)for(;80===me();)Ce(),De(),i=Ye(R.createJSDocMemberName(i,et()),n);for(var a=[];19!==me()&&4!==me()&&1!==me();)a.push(c.getTokenText()),De();return Ye(("link"===r?R.createJSDocLink:"linkcode"===r?R.createJSDocLinkCode:R.createJSDocLinkPlain)(i,a.join("")),t,c.getTextPos())}}function F(){if(x(),18===me()&&59===De()&&e.tokenIsIdentifierOrKeyword(De())){var t=c.getTokenValue();if("link"===t||"linkcode"===t||"linkplain"===t)return t}}function N(e){e&&(s?s.push(e):(s=[e],u=e.pos),l=e.end)}function P(){return x(),18===me()?r():void 0}function I(){var t=H(22);t&&b();var r=H(61),n=function(){var e=G();Je(22)&&we(23);for(;Je(24);){var t=G();Je(22)&&we(23),e=wt(e,t)}return e}();return r&&function(t){ze(t)||Xe(t,!1,e.Diagnostics._0_expected,e.tokenToString(t))}(61),t&&(b(),Ke(63)&&qr(),we(23)),{name:n,isBracketed:t}}function O(t){switch(t.kind){case 146:return!0;case 181:return O(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function M(t,r,n,i){var a=P(),o=!a;x();var s=I(),c=s.name,u=s.isBracketed,l=x();o&&!Ae(F)&&(a=P());var _=E(t,fe(),i,l),d=4!==n&&function(t,r,n,i){if(t&&O(t.type)){for(var a=fe(),o=void 0,s=void 0;o=Fe((function(){return U(n,i,r)}));)335!==o.kind&&342!==o.kind||(s=e.append(s,o));if(s){var c=Ye(R.createJSDocTypeLiteral(s,181===t.type.kind),a);return Ye(R.createJSDocTypeExpression(c),a)}}}(a,c,n,i);return d&&(a=d,o=!0),Ye(1===n?R.createJSDocPropertyTag(r,c,u,a,o,_):R.createJSDocParameterTag(r,c,u,a,o,_),t)}function L(t,n,i,a){e.some(s,e.isJSDocTypeTag)&&_e(n.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),u=void 0!==i&&void 0!==a?E(t,fe(),i,a):void 0;return Ye(R.createJSDocTypeTag(n,o,u),t)}function B(){var e=Je(18),t=fe(),r=function(){var e=fe(),t=G();for(;Je(24);){var r=G();t=Ye(R.createPropertyAccessExpression(t,r),e)}return t}(),n=Pi(),i=Ye(R.createExpressionWithTypeArguments(r,n),t);return e&&we(19),i}function j(e,t,r,n,i){return Ye(t(r,E(e,fe(),n,i)),e)}function J(t){var r=c.getTokenPos();if(e.tokenIsIdentifierOrKeyword(me())){var n=G();if(Je(24)){var i=J(!0);return Ye(R.createModuleDeclaration(void 0,void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function K(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function z(e){return U(1,e)}function U(t,r,n){for(var i=!0,a=!1;;)switch(De()){case 59:if(i){var o=V(t,r);return!(o&&(335===o.kind||342===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!K(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function V(t,r){e.Debug.assert(59===me());var n=c.getStartPos();De();var i,a=G();switch(b(),a.escapedText){case"type":return 1===t&&L(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&M(n,a,t,r)}function W(){var t=fe(),r=G(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(!e.nodeIsMissing(r))return Ye(R.createTypeParameterDeclaration(r,void 0,void 0),t)}function H(e){return me()===e&&(De(),!0)}function G(t){if(!e.tokenIsIdentifierOrKeyword(me()))return Xe(79,!t,t||e.Diagnostics.Identifier_expected);w++;var r=c.getTokenPos(),n=c.getTextPos(),i=me(),a=$e(c.getTokenValue()),o=Ye(R.createIdentifier(a,void 0,i),r,n);return De(),o}}t.parseJSDocTypeExpressionForTests=function(t,n,i){K("file.js",t,99,void 0,1),c.setText(t,n,i),A=c.scan();var a=r(),o=G("file.js",99,1,!1,[],R.createToken(1),0),s=e.attachFileToDiagnostics(C,o);return E&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(E,o)),z(),a?{jsDocTypeExpression:a,diagnostics:s}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=function(t,r,n){K("",t,99,void 0,1);var i=te(4194304,(function(){return o(r,n)})),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(C,a);return z(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(t,r,n){var i=A,a=C.length,s=j,c=te(4194304,(function(){return o(r,n)}));return e.setParent(c,t),131072&M&&(E||(E=[]),E.push.apply(E,C)),A=i,C.length=a,j=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(i||(i={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(a||(a={}))}(Me=r.JSDocParser||(r.JSDocParser={}))}(u||(u={})),function(t){function r(t,r,i,o,s,c){return void(r?l(t):u(t));function u(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),f(t,u,l),e.hasJSDocNodes(t))for(var _=0,d=t.jsDoc;_=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;ar),!0;if(a.pos>=i.pos&&(i=a),ri.pos&&(i=a)}return i}function s(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}function c(t){var r=t.statements,n=0;e.Debug.assert(n=t.pos&&e=t.pos&&e0&&a<=n;a++){var s=o(t,i);e.Debug.assert(s.pos<=i);var c=s.pos;i=Math.max(0,c-1)}var u=e.createTextSpanFromBounds(i,e.textSpanEnd(r.span)),l=r.newLength+(r.span.start-i);return e.createTextChangeRange(u,l)}(t,l);s(t,n,m,_),e.Debug.assert(m.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var y=e.textChangeRangeNewSpan(m).length-m.span.length;!function(t,n,o,s,c,u,l,_){return void d(t);function d(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,u,l,_);else{var g=t.end;if(g>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),f(t,d,p),e.hasJSDocNodes(t))for(var m=0,y=t.jsDoc;mo)r(t,!0,c,u,l,_);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var p=0,f=t;pi){y();var m={range:{pos:f.pos+a,end:f.end+a},type:g};u=e.append(u,m),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(m.range.pos,m.range.end))}}return y(),u;function y(){l||(l=!0,u?r&&u.push.apply(u,r):u=r)}}(t.commentDirectives,v.commentDirectives,m.span.start,e.textSpanEnd(m.span),y,p,n,_),v},t.createSyntaxCursor=c,function(e){e[e.Value=-1]="Value"}(l||(l={}))}(l||(l={})),e.isDeclarationFileName=y,e.processCommentPragmas=v,e.processPragmasIntoFields=h;var D=new e.Map;function b(e){if(D.has(e))return D.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))","im");return D.set(e,t),t}var x=/^\/\/\/\s*<(\S+)\s.*?\/>/im,S=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function C(t,r,n){var i=2===r.kind&&x.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,u=o.args;c=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function h(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=ge(i,!1,o),r++):("true"===s&&r++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,z(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=ge(i,parseInt(t[r]),o),r++;break;case"boolean":var s=t[r];a[i.name]=ge(i,"false"!==s,o),"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=ge(i,t[r]||"",o),r++;break;case"list":var c=g(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=f(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function D(e,t){return b(c,e,t)}function b(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function x(){return u||(u=s(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=_,e.createCompilerDiagnosticForInvalidCustomType=d,e.parseCustomTypeOption=f,e.parseListTypeOption=g,e.parseCommandLineWorker=v,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:l,getOptionsNameMap:c,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(t,r){return v(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=D;var S={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:c},getOptionsNameMap:x,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function C(t,r){var n=e.parseJsonText(t,r);return{config:j(n,n.parseDiagnostics,!1,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function E(t,r){var n=T(t,r);return e.isString(n)?e.parseJsonText(t,n):{fileName:t,parseDiagnostics:[n]}}function T(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function k(t){return e.arrayToMap(t,m)}e.parseBuildCommand=function(t){var r=v(S,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){for(var r=[],n=1;n=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,t(t([],s,!0),[_],!1).join(" -> "))),{raw:r||J(n,c)};var d=r?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=ce(t.compilerOptions,n,a,i),c=le(t.typeAcquisition||t.typingOptions,n,a,i),u=function(e,t,r){return _e(R(),e,t,void 0,M,r)}(t.watchOptions,n,a);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=de(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var l=i?ee(i,n):n;o=oe(t.extends,r,l,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:u,typeAcquisition:c,extendedConfigPath:o}}(r,i,a,o,c):function(t,r,n,i,a){var o,s,c,u,l=se(i),_={onSetValidOptionKeyValueInParent:function(t,r,a){var u;switch(t){case"compilerOptions":u=l;break;case"watchOptions":u=c||(c={});break;case"typeAcquisition":u=o||(o=ue(i));break;case"typingOptions":u=s||(s=ue(i));break;default:e.Debug.fail("Unknown option")}u[r.name]=pe(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,l){switch(o){case"extends":var _=i?ee(i,n):n;return void(u=oe(c,r,_,a,(function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)})))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,o){"excludes"===r&&a.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},d=j(t,a,!0,_);o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:ue(i));return{raw:d,options:l,watchOptions:c,typeAcquisition:o,extendedConfigPath:u}}(n,i,a,o,c);if((null===(l=d.options)||void 0===l?void 0:l.paths)&&(d.options.pathsBasePath=a),d.extendedConfigPath){s=s.concat([_]);var p=function(t,r,n,i,a,o){var s,c,u,l,_=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);o&&(c=o.get(_))?(u=c.extendedResult,l=c.extendedConfig):((u=E(r,(function(e){return n.readFile(e)}))).parseDiagnostics.length||(l=ae(void 0,u,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,o)),o&&o.set(_,{extendedResult:u,extendedConfig:l}));t&&(t.extendedSourceFiles=[u.fileName],u.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,u.extendedSourceFiles));if(u.parseDiagnostics.length)return void a.push.apply(a,u.parseDiagnostics);return l}(n,d.extendedConfigPath,i,s,c,u);if(p&&p.options){var f,g=p.raw,m=d.raw,y=function(t){!m[t]&&g[t]&&(m[t]=e.map(g[t],(function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(f||(f=e.convertToRelativePath(e.getDirectoryPath(d.extendedConfigPath),a,e.createGetCanonicalFileName(i.useCaseSensitiveFileNames))),t)})))};y("include"),y("exclude"),y("files"),void 0===m.compileOnSave&&(m.compileOnSave=g.compileOnSave),d.options=e.assign({},p.options,d.options),d.watchOptions=d.watchOptions&&p.watchOptions?e.assign({},p.watchOptions,d.watchOptions):d.watchOptions||p.watchOptions}}return d}function oe(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o+=".json",r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function se(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function ce(t,r,n,i){var a=se(i);return _e(L(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ue(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function le(e,t,r,n){var i=ue(n),a=_(e);return _e(B(),a,t,i,F,r),i}function _e(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=de(c,r[s],n,o):o.push(y(s,a,e.createCompilerDiagnostic))}return i}}function de(t,r,n,i){if(U(t,r)){var a=t.type;if("list"===a&&e.isArray(r))return function(t,r,n,i){return e.filter(e.map(r,(function(e){return de(t.element,e,n,i)})),(function(e){return!!e}))}(t,r,n,i);if(!e.isString(a))return me(t,r,i);var o=ge(t,r,i);return Z(o)?o:fe(t,n,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,z(t)))}function pe(t,r,n){if(!Z(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,(function(e){return pe(i.element,r,e)})),(function(e){return!!e})):n}return e.isString(t.type)?fe(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function fe(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function ge(t,r,n){var i;if(!Z(r)){var a=null===(i=t.extraValidation)||void 0===i?void 0:i.call(t,r);if(!a)return r;n.push(e.createCompilerDiagnostic.apply(void 0,a))}}function me(e,t,r){if(!Z(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return ge(e,i,r);r.push(d(e))}}e.convertToObject=J,e.convertToObjectWorker=K,e.convertToTSConfig=function(t,n,i){var a,o,s,c=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),u=e.map(e.filter(t.fileNames,(null===(o=null===(a=t.options.configFile)||void 0===a?void 0:a.configFileSpecs)||void 0===o?void 0:o.validatedIncludeSpecs)?function(t,r,n,i){if(!r)return e.returnTrue;var a=e.getFileMatcherPatterns(t,n,r,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);if(s)return o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)};if(o)return function(e){return o.test(e)};return e.returnTrue}(n,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,i):e.returnTrue),(function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(n,i.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,i.getCurrentDirectory()),c)})),l=G(t.options,{configFilePath:e.getNormalizedAbsolutePath(n,i.getCurrentDirectory()),useCaseSensitiveFileNames:i.useCaseSensitiveFileNames}),_=t.watchOptions&&function(e){return Y(e,N())}(t.watchOptions);return r(r({compilerOptions:r(r({},V(l)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:_&&V(_),references:e.map(t.projectReferences,(function(e){return r(r({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(u)?u:void 0},(null===(s=t.options.configFile)||void 0===s?void 0:s.configFileSpecs)?{include:q(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.generateTSConfig=function(t,r,n){var i=G(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),c=0,u=e.optionDeclarations;c0)for(var D=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=d.filter((function(t){return e.endsWith(t,".json")})),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),(function(e){return"^"+e+"$"}));o=a?a.map((function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)})):e.emptyArray}if(-1!==e.findIndex(o,(function(e){return e.test(t)}))){var _=s(t);c.has(_)||l.has(_)||l.set(_,t)}return"continue"}if(function(t,r,n,i,a){for(var o=e.getExtensionPriority(t,i),s=e.adjustExtensionPriority(o,i),c=0;cr}function be(t,r,n,i,a){var o=e.getRegularExpressionForWildcard(r,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,n);return!!s&&(!!s.test(t)||!e.hasExtension(t)&&s.test(e.ensureTrailingDirectorySeparator(t)))}function xe(t,r,n,i,a){return t.filter((function(t){if(!e.isString(t))return!1;var i=Se(t,n);return void 0!==i&&r.push(o.apply(void 0,i)),void 0===i}));function o(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function Se(t,r){return r&&ye.test(t)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:De(t)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:void 0}function Ce(t,r,n){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,r,"exclude"),s=o&&new RegExp(o,n?"":"i"),c={};if(void 0!==i){for(var u=[],l=0,_=i;l<_.length;l++){var d=_[l],p=e.normalizePath(e.combinePaths(r,d));if(!s||!s.test(p)){var f=Ee(p,n);if(f){var g=f.key,m=f.flags,y=c[g];(void 0===y||y0);var i={sourceFile:t.configFile,commandLine:{options:t}};r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i)),null==n||n.setOwnMap(n.getOrCreateMapOfCacheRedirects(i))}r.setOwnOptions(t),null==n||n.setOwnOptions(t)}}function C(t,r,n){return{getOrCreateCacheForDirectory:function(i,a){var o=e.toPath(i,t,r);return x(n,a,o,(function(){return new e.Map}))},clear:function(){n.clear()},update:function(e){S(e,n)}}}function E(t,r,i,a,o){var s=function(t,r,i,a){var o,s=a.compilerOptions,c=s.baseUrl,u=s.paths,l=s.configFile;if(u&&!e.pathIsRelative(r)){return a.traceEnabled&&(c&&n(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,r),n(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,r)),X(t,r,e.getPathsBasePath(a.compilerOptions,a.host),u,(null==l?void 0:l.configFileSpecs)?(o=l.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(u)):void 0,i,!1,a)}}(t,r,a,o);return s?s.value:e.isExternalModuleNameRelative(r)?function(t,r,i,a,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&n(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,r);for(var s,c,u=e.normalizePath(e.combinePaths(i,r)),l=0,_=o.compilerOptions.rootDirs;l<_.length;l++){var d=_[l],p=e.normalizePath(d);e.endsWith(p,e.directorySeparator)||(p+=e.directorySeparator);var f=e.startsWith(u,p)&&(void 0===c||c.lengthi&&(i=l),1===i)return i}return i}break;case 260:var _=0;return e.forEachChild(t,(function(t){var n=o(t,r);switch(n){case 0:return;case 2:return void(_=2);case 1:return _=1,!0;default:e.Debug.assertNever(n)}})),_;case 259:return a(t,r);case 79:if(t.isInJSDocNamespace)return 0}return 1}(t,r);return r.set(n,i),i}function s(t,r){for(var n=t.propertyName||t.name,i=t.parent;i;){if(e.isBlock(i)||e.isModuleBlock(i)||e.isSourceFile(i)){for(var a=void 0,s=0,c=i.statements;sa)&&(a=l),1===a)return a}}if(void 0!==a)return a}i=i.parent}return 1}function c(t){return e.Debug.attachFlowNodeDebugInfo(t),t}(n=e.ModuleInstanceState||(e.ModuleInstanceState={}))[n.NonInstantiated=0]="NonInstantiated",n[n.Instantiated=1]="Instantiated",n[n.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=a,function(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.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(i||(i={}));var u=function(){var n,i,o,s,u,p,f,g,m,y,v,h,D,b,x,S,C,E,T,k,A,F,N,P,w=!1,I=0,O={flags:1},M={flags:1},L=function(){return e.createBinaryExpressionTrampoline(t,r,n,i,a,void 0);function t(t,r){if(r){r.stackIndex++,e.setParent(t,s);var n=F;ze(t);var i=s;s=t,r.skip=!1,r.inStrictModeStack[r.stackIndex]=n,r.parentStack[r.stackIndex]=i}else r={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var a=t.operatorToken.kind;if(55===a||56===a||60===a||e.isLogicalOrCoalescingAssignmentOperator(a)){if(_e(t)){var o=Z();De(t,o,o),v=ce(o)}else De(t,x,S);r.skip=!0}return r}function r(e,t,r){if(!t.skip)return o(e)}function n(e,t,r){t.skip||(27===e.kind&&ye(r.left),Be(e))}function i(e,t,r){if(!t.skip)return o(e)}function a(t,r){if(!r.skip){var n=t.operatorToken.kind;if(e.isAssignmentOperator(n)&&!e.isAssignmentTarget(t))if(he(t.left),63===n&&205===t.left.kind)Q(t.left.expression)&&(v=oe(256,v,t))}var i=r.inStrictModeStack[r.stackIndex],a=r.parentStack[r.stackIndex];void 0!==i&&(F=i),void 0!==a&&(s=a),r.skip=!1,r.stackIndex--}function o(t){if(t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t))return t;Be(t)}}();function R(t,r,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(t)||n,t,r,i,a,o)}return function(t,r){n=t,i=r,o=e.getEmitScriptTarget(i),F=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(n,r),P=new e.Set,I=0,N=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(O),e.Debug.attachFlowNodeDebugInfo(M),n.locals||(Be(n),n.symbolCount=I,n.classifiableNames=P,function(){if(m){for(var t=u,r=g,i=f,a=s,o=v,l=0,d=m;l=235&&t.kind<=251&&!i.allowUnreachableCode&&(t.flowNode=v),t.kind){case 239:!function(e){var t=ge(e,ee()),r=Z(),n=Z();ne(t,v),v=t,pe(e.expression,r,n),v=ce(r),fe(e.statement,n,t),ne(t,v),v=ce(n)}(t);break;case 238:!function(e){var t=ee(),r=ge(e,Z()),n=Z();ne(t,v),v=t,fe(e.statement,n,r),ne(r,v),v=ce(r),pe(e.expression,t,n),v=ce(n)}(t);break;case 240:!function(e){var t=ge(e,ee()),r=Z(),n=Z();Be(e.initializer),ne(t,v),v=t,pe(e.condition,r,n),v=ce(r),fe(e.statement,n,t),Be(e.incrementor),ne(t,v),v=ce(n)}(t);break;case 241:case 242:!function(e){var t=ge(e,ee()),r=Z();Be(e.expression),ne(t,v),v=t,242===e.kind&&Be(e.awaitModifier);ne(r,v),Be(e.initializer),253!==e.initializer.kind&&he(e.initializer);fe(e.statement,r,t),ne(t,v),v=ce(r)}(t);break;case 237:!function(e){var t=Z(),r=Z(),n=Z();pe(e.expression,t,r),v=ce(t),Be(e.thenStatement),ne(n,v),v=ce(r),Be(e.elseStatement),ne(n,v),v=ce(n)}(t);break;case 245:case 249:!function(e){Be(e.expression),245===e.kind&&(k=!0,b&&ne(b,v));v=O}(t);break;case 244:case 243:!function(e){if(Be(e.label),e.label){var t=function(e){for(var t=T;t;t=t.next)if(t.name===e)return t;return}(e.label.escapedText);t&&(t.referenced=!0,me(e,t.breakTarget,t.continueTarget))}else me(e,h,D)}(t);break;case 250:!function(t){var r=b,n=C,i=Z(),a=Z(),o=Z();t.finallyBlock&&(b=a);ne(o,v),C=o,Be(t.tryBlock),ne(i,v),t.catchClause&&(v=ce(o),ne(o=Z(),v),C=o,Be(t.catchClause),ne(i,v));if(b=r,C=n,t.finallyBlock){var s=Z();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),v=s,Be(t.finallyBlock),1&v.flags?v=O:(b&&a.antecedents&&ne(b,te(s,a.antecedents,v)),C&&o.antecedents&&ne(C,te(s,o.antecedents,v)),v=i.antecedents?te(s,i.antecedents,v):O)}else v=ce(i)}(t);break;case 247:!function(t){var r=Z();Be(t.expression);var n=h,i=E;h=r,E=v,Be(t.caseBlock),ne(r,v);var a=e.forEach(t.caseBlock.clauses,(function(e){return 288===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||ne(r,ae(E,t,0,0));h=n,E=i,v=ce(r)}(t);break;case 261:!function(e){for(var t=e.clauses,r=G(e.parent.expression),n=O,a=0;a=117&&t.originalKeywordKind<=125?n.bindDiagnostics.push(R(t,function(t){if(e.getContainingClass(t))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),e.declarationNameToString(t))):131===t.originalKeywordKind?e.isExternalModule(n)&&e.isInTopLevelContext(t)?n.bindDiagnostics.push(R(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(t))):32768&t.flags&&n.bindDiagnostics.push(R(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(t))):125===t.originalKeywordKind&&8192&t.flags&&n.bindDiagnostics.push(R(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(t))))}function Ie(t,r){if(r&&79===r.kind){var i=r;if(function(t){return e.isIdentifier(t)&&("eval"===t.escapedText||"arguments"===t.escapedText)}(i)){var a=e.getErrorSpanForNode(n,r);n.bindDiagnostics.push(e.createFileDiagnostic(n,a.start,a.length,function(t){if(e.getContainingClass(t))return e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(t),e.idText(i)))}}}function Oe(e){F&&Ie(e,e.name)}function Me(t){if(o<2&&300!==f.kind&&259!==f.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(f)){var r=e.getErrorSpanForNode(n,t);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,function(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:n.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(t)))}}function Le(t,r,i,a,o){var s=e.getSpanOfTokenAtPosition(n,t.pos);n.bindDiagnostics.push(e.createFileDiagnostic(n,s.start,s.length,r,i,a,o))}function Re(t,i,a,o){!function(t,i,a){var o=e.createFileDiagnostic(n,i.pos,i.end-i.pos,a);t?n.bindDiagnostics.push(o):n.bindSuggestionDiagnostics=e.append(n.bindSuggestionDiagnostics,r(r({},o),{category:e.DiagnosticCategory.Suggestion}))}(t,{pos:e.getTokenPosOfNode(i,n),end:a.end},o)}function Be(t){if(t){e.setParent(t,s);var r=F;if(ze(t),t.kind>158){var n=s;s=t;var i=Ee(t);0===i?H(t):function(t,r){var n=u,i=p,a=f;if(1&r?(212!==t.kind&&(p=u),u=f=t,32&r&&(u.locals=e.createSymbolTable()),Te(u)):2&r&&((f=t).locals=void 0),4&r){var o=v,s=h,l=D,_=b,d=C,g=T,m=k,x=16&r&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);x||(v=c({flags:2}),144&r&&(v.node=t)),b=x||169===t.kind||168===t.kind||e.isInJSFile(t)&&(254===t.kind||211===t.kind)?Z():void 0,C=void 0,h=void 0,D=void 0,T=void 0,k=!1,H(t),t.flags&=-2817,!(1&v.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,k&&(t.flags|=512),t.endFlowNode=v),300===t.kind&&(t.flags|=A,t.endFlowNode=v),b&&(ne(b,v),v=ce(b),(169===t.kind||168===t.kind||e.isInJSFile(t)&&(254===t.kind||211===t.kind))&&(t.returnFlowNode=v)),x||(v=o),h=s,D=l,b=_,C=d,T=g,k=m}else 64&r?(y=!1,H(t),t.flags=y?128|t.flags:-129&t.flags):H(t);u=n,p=i,f=a}(t,i),s=n}else{n=s;1===t.kind&&(s=t),je(t),s=n}F=r}}function je(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Le(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(t);case 190:return void(y=!0);case 175:break;case 161:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.find(t.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),z(r.locals,void 0,t,262144,526824)):ke(t,262144,526824)}else if(188===t.parent.kind){var n=function(t){var r=e.findAncestor(t,(function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t}));return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),z(n.locals,void 0,t,262144,526824)):Ne(t,262144,J(t))}else ke(t,262144,526824)}(t);case 162:return at(t);case 252:return it(t);case 201:return t.flowNode=v,it(t);case 165:case 164:return function(e){return ot(e,4|(e.questionToken?16777216:0),0)}(t);case 291:case 292:return ot(t,4,0);case 294:return ot(t,8,900095);case 172:case 173:case 174:return ke(t,131072,0);case 167:case 166:return ot(t,8192|(t.questionToken?16777216:0),e.isObjectLiteralMethod(t)?0:103359);case 254:return function(t){n.isDeclarationFile||8388608&t.flags||e.isAsyncFunction(t)&&(A|=2048);Oe(t),F?(Me(t),Pe(t,16,110991)):ke(t,16,110991)}(t);case 169:return ke(t,16384,0);case 170:return ot(t,32768,46015);case 171:return ot(t,65536,78783);case 177:case 312:case 318:case 178:return function(t){var r=B(131072,J(t));j(r,t,131072);var n=B(2048,"__type");j(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(t);case 180:case 317:case 193:return function(e){return Ne(e,2048,"__type")}(t);case 327:return function(t){W(t);var r=e.getHostSignatureFromJSDoc(t);r&&167!==r.kind&&j(r.symbol,r,32)}(t);case 203:return function(t){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),F&&!e.isAssignmentTarget(t))for(var i=new e.Map,a=0,o=t.properties;a1&&2097152&h.flags&&(n=e.createSymbolTable()).set("export=",h);return I(n),k(_);function D(e){return!!e&&79===e.kind}function x(t){return e.isVariableStatement(t)?e.filter(e.map(t.declarationList.declarations,e.getNameOfDeclaration),D):e.filter([e.getNameOfDeclaration(t)],D)}function S(r){var n=e.find(r,e.isExportAssignment),i=e.findIndex(r,e.isModuleDeclaration),a=-1!==i?r[i]:void 0;if(a&&n&&n.isExportEquals&&e.isIdentifier(n.expression)&&e.isIdentifier(a.name)&&e.idText(a.name)===e.idText(n.expression)&&a.body&&e.isModuleBlock(a.body)){var o=e.filter(r,(function(t){return!!(1&e.getEffectiveModifierFlags(t))})),s=a.name,c=a.body;if(e.length(o)&&(a=e.factory.updateModuleDeclaration(a,a.decorators,a.modifiers,a.name,c=e.factory.updateModuleBlock(c,e.factory.createNodeArray(t(t([],a.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(o,(function(e){return x(e)})),(function(t){return e.factory.createExportSpecifier(void 0,t)}))),void 0)],!1)))),r=t(t(t([],r.slice(0,i),!0),[a],!1),r.slice(i+1),!0)),!e.find(r,(function(t){return t!==a&&e.nodeHasName(t,s)}))){_=[];var u=!e.some(c.statements,(function(t){return e.hasSyntacticModifier(t,1)||e.isExportAssignment(t)||e.isExportDeclaration(t)}));e.forEach(c.statements,(function(e){W(e,u?1:0)})),r=t(t([],e.filter(r,(function(e){return e!==a&&e!==n})),!0),_,!0)}}return r}function C(r){var n=e.filter(r,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(n)>1){var i=e.filter(r,(function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause}));r=t(t([],i,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(n,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),void 0)],!1)}var a=e.filter(r,(function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(a)>1){var o=e.group(a,(function(t){return e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"}));if(o.length!==a.length)for(var s=function(n){n.length>1&&(r=t(t([],e.filter(r,(function(e){return-1===n.indexOf(e)})),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(n,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),n[0].moduleSpecifier)],!1))},c=0,u=o;c=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(function(r){if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(function(n){return e.nodeHasName(t[n],r.name)}));if(e.length(i)&&e.every(i,(function(e){return A(t[e])}))){for(var a=0,o=i;a0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===r?r="_default":"export="===r&&(r="_exports"),r=e.isIdentifierText(r,z)&&!e.isStringANonContextualKeyword(r)?r:"_"+r.replace(/[^a-zA-Z0-9]/g,"_")}function ve(e,t){var r=O(e);return i.remappedSymbolNames.has(r)?i.remappedSymbolNames.get(r):(t=ye(e,t),i.remappedSymbolNames.set(r,t),t)}}(n,i,l)}))}};function i(t,r,i,o){var s,c;e.Debug.assert(void 0===t||0==(8&t.flags));var u={enclosingDeclaration:t,flags:r||0,tracker:i&&i.trackSymbol?i:{trackSymbol:function(){return!1},moduleResolverHost:134217728&r?{getCommonSourceDirectory:n.getCommonSourceDirectory?function(){return n.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return n.getCurrentDirectory()},getSymlinkCache:e.maybeBind(n,n.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(n,n.useCaseSensitiveFileNames),redirectTargetsMap:n.redirectTargetsMap,getProjectReferenceRedirect:function(e){return n.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return n.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return n.fileExists(e)},getFileIncludeReasons:function(){return n.getFileIncludeReasons()}}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};u.tracker=a(u,u.tracker);var l=o(u);return u.truncating&&1&u.flags&&(null===(c=null===(s=u.tracker)||void 0===s?void 0:s.reportTruncationError)||void 0===c||c.call(s)),u.encounteredError?void 0:l}function a(e,t){var n=t.trackSymbol;return r(r({},t),{reportCyclicStructureError:i(t.reportCyclicStructureError),reportInaccessibleThisError:i(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:i(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:i(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:i(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:i(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:i(t.reportNonSerializableProperty),trackSymbol:n&&function(){for(var t=[],r=0;r(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function u(t,r){o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();var n=8388608&r.flags;if(r.flags&=-8388609,!t)return 262144&r.flags?(r.approximateLength+=3,e.factory.createKeywordTypeNode(129)):void(r.encounteredError=!0);if(536870912&r.flags||(t=Fc(t)),1&t.flags)return r.approximateLength+=3,e.factory.createKeywordTypeNode(t===Oe?137:129);if(2&t.flags)return e.factory.createKeywordTypeNode(153);if(4&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(8&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(145);if(64&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(156);if(16&t.flags&&!t.aliasSymbol)return r.approximateLength+=7,e.factory.createKeywordTypeNode(132);if(1024&t.flags&&!(1048576&t.flags)){var i=zi(t.symbol),a=T(i,r,788968);if(ss(i)===t)return a;var c=e.symbolName(t.symbol);return e.isIdentifierText(c,0)?j(a,e.factory.createTypeReferenceNode(c,void 0)):e.isImportTypeNode(a)?(a.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(a,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c)))):e.isTypeReferenceNode(a)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(a.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return T(t.symbol,r,788968);if(128&t.flags)return r.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&r.flags)),16777216));if(256&t.flags){var _=t.value;return r.approximateLength+=(""+_).length,e.factory.createLiteralTypeNode(_<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-_)):e.factory.createNumericLiteral(_))}if(2048&t.flags)return r.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return r.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&r.flags)){if(la(t.symbol,r.enclosingDeclaration))return r.approximateLength+=6,T(t.symbol,r,111551);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return r.approximateLength+=13,e.factory.createTypeOperatorNode(152,e.factory.createKeywordTypeNode(149))}if(16384&t.flags)return r.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(32768&t.flags)return r.approximateLength+=9,e.factory.createKeywordTypeNode(151);if(65536&t.flags)return r.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return r.approximateLength+=5,e.factory.createKeywordTypeNode(142);if(4096&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(67108864&t.flags)return r.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(p_(t))return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),r.approximateLength+=4,e.factory.createThisTypeNode();if(!n&&t.aliasSymbol&&(16384&r.flags||ua(t.aliasSymbol,r.enclosingDeclaration))){var y=p(t.aliasTypeArguments,r);return!ta(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?T(t.aliasSymbol,r,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var v=e.getObjectFlags(t);if(4&v)return e.Debug.assert(!!(524288&t.flags)),t.node?L(t,B):B(t);if(262144&t.flags||3&v){if(262144&t.flags&&e.contains(r.inferTypeParameters,t))return r.approximateLength+=e.symbolName(t.symbol).length+6,e.factory.createInferTypeNode(m(t,r,void 0));if(4&r.flags&&262144&t.flags&&!ua(t.symbol,r.enclosingDeclaration)){var h=A(t,r);return r.approximateLength+=e.idText(h).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(h)),void 0)}return t.symbol?T(t.symbol,r,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(1048576&t.flags&&t.origin&&(t=t.origin),3145728&t.flags){var D=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n0?1048576&t.flags?e.factory.createUnionTypeNode(b):e.factory.createIntersectionTypeNode(b):void(r.encounteredError||262144&r.flags||(r.encounteredError=!0))}if(48&v)return e.Debug.assert(!!(524288&t.flags)),M(t);if(4194304&t.flags){var x=t.type;r.approximateLength+=6;var S=u(x,r);return e.factory.createTypeOperatorNode(139,S)}if(134217728&t.flags){var C=t.texts,E=t.types,k=e.factory.createTemplateHead(C[0]),F=e.factory.createNodeArray(e.map(E,(function(t,n){return e.factory.createTemplateLiteralTypeSpan(u(t,r),(n10)return l(r);r.symbolDepth.set(c,d+1)}r.visitedTypes.add(o);var f=r.approximateLength,g=n(t),m=r.approximateLength-f;return r.reportedDiagnostic||r.encounteredError||(r.truncating&&(g.truncating=!0),g.addedLength=m,null===(a=null==u?void 0:u.serializedTypes)||void 0===a||a.set(_,g)),r.visitedTypes.delete(o),c&&r.symbolDepth.set(c,d),g}function R(t){if(ac(t)||t.containsError)return function(t){e.Debug.assert(!!(524288&t.flags));var n,i=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,a=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;n=ec(t)?e.factory.createTypeOperatorNode(139,u(tc(t),r)):u(Xs(t),r);var o=m(Ys(t),r,n),s=t.declaration.nameType?u($s(t),r):void 0,c=u(vf(Qs(t),!!(4&rc(t))),r),l=e.factory.createMappedTypeNode(i,o,s,a,c);return r.approximateLength+=10,e.setEmitFlags(l,1)}(t);var n=oc(t);if(!n.properties.length&&!n.indexInfos.length){if(!n.callSignatures.length&&!n.constructSignatures.length)return r.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length)return g(n.callSignatures[0],177,r);if(1===n.constructSignatures.length&&!n.callSignatures.length)return g(n.constructSignatures[0],178,r)}var i=e.filter(n.constructSignatures,(function(e){return!!(4&e.flags)}));if(e.some(i)){var a=e.map(i,Du);return n.callSignatures.length+(n.constructSignatures.length-i.length)+n.indexInfos.length+(2048&r.flags?e.countWhere(n.properties,(function(e){return!(4194304&e.flags)})):e.length(n.properties))&&a.push(function(t){if(0===t.constructSignatures.length)return t;if(t.objectTypeWithoutAbstractConstructSignatures)return t.objectTypeWithoutAbstractConstructSignatures;var r=e.filter(t.constructSignatures,(function(e){return!(4&e.flags)}));if(t.constructSignatures===r)return t;var n=ia(t.symbol,t.members,t.callSignatures,e.some(r)?r:e.emptyArray,t.indexInfos);return t.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(n)),u(Ul(a),r)}var o=r.flags;r.flags|=4194304;var c=function(t){if(s(r))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var n=[],i=0,a=t.callSignatures;i0){var v=(t.target.typeParameters||e.emptyArray).length;y=p(n.slice(x,v),r)}S=r.flags;r.flags|=16;var h=T(t.symbol,r,788968,y);return r.flags=S,c?j(c,h):h}if((n=e.sameMap(n,(function(e,r){return vf(e,!!(2&t.target.elementFlags[r]))}))).length>0){var D=Ru(t),b=p(n.slice(0,D),r);if(b){if(t.target.labeledElementDeclarations)for(var x=0;x2)return[u(t[0],r),e.factory.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),u(t[t.length-1],r)]}for(var i=!(64&r.flags)?e.createUnderscoreEscapedMultiMap():void 0,a=[],o=0,c=0,l=t;c0)),a}function x(t,r){var n;return 524384&uS(t).flags&&(n=e.factory.createNodeArray(e.map(Ko(t),(function(e){return y(e,r)})))),n}function S(t,r,n){var i;e.Debug.assert(t&&0<=r&&r1?m(a,a.length-1,1):void 0,c=i||S(a,0,r),u=E(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(K)===e.ModuleResolutionKind.NodeJs&&u.indexOf("/node_modules/")>=0&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(u));var l=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(u));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),r.approximateLength+=u.length+10,!s||e.isEntityName(s)){if(s)(f=e.isIdentifier(s)?s:s.right).typeArguments=void 0;return e.factory.createImportTypeNode(l,s,c,o)}var _=C(s),d=_.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(l,d,c,o),_.indexType)}var p=m(a,a.length-1,0);if(e.isIndexedAccessTypeNode(p))return p;if(o)return e.factory.createTypeQueryNode(p);var f,g=(f=e.isIdentifier(p)?p:p.right).typeArguments;return f.typeArguments=void 0,e.factory.createTypeReferenceNode(p,g);function m(t,n,a){var o,s=n===t.length-1?i:S(t,n,r),c=t[n],u=t[n-1];if(0===n)r.flags|=16777216,o=Ia(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(u&&Li(u)){var l=Li(u);e.forEachEntry(l,(function(t,r){if(Wi(t,c)&&!hs(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(o||(o=Ia(c,r)),r.approximateLength+=o.length+1,!(16&r.flags)&&u&&Es(u)&&Es(u).get(c.escapedName)&&Wi(Es(u).get(c.escapedName),c)){var _=m(t,n-1,a);return e.isIndexedAccessTypeNode(_)?e.factory.createIndexedAccessTypeNode(_,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(_,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var d=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);if(d.symbol=c,n>a){_=m(t,n-1,a);return e.isEntityName(_)?e.factory.createQualifiedName(_,d):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return d}}function k(e,t,r){var n=Vn(t.enclosingDeclaration,e,788968,void 0,e,!1);return!!n&&!(262144&n.flags&&n===r.symbol)}function A(t,r){var n,i;if(4&r.flags&&r.typeParameterNames){var a=r.typeParameterNames.get(Fl(t));if(a)return a}var o=F(t.symbol,r,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var s=o.escapedText,c=(null===(n=r.typeParameterNamesByTextNextNameCount)||void 0===n?void 0:n.get(s))||0,u=s;(null===(i=r.typeParameterNamesByText)||void 0===i?void 0:i.has(u))||k(u,r,t);)u=s+"_"+ ++c;u!==s&&(o=e.factory.createIdentifier(u,o.typeArguments)),(r.typeParameterNamesByTextNextNameCount||(r.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(Fl(t),o),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(s)}return o}function F(t,r,n,i){var a=D(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=S(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=Ia(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function N(t,r,n){var i=D(t,r,n);return function t(n,i){var a=S(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=Ia(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,ya))return e.factory.createStringLiteral(E(o,r));var u=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),z):e.isIdentifierStart(c,z);if(0===i||u){var l=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return l.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),l):l}91===c&&(s=s.substring(1,s.length-1),c=s.charCodeAt(0));var _=void 0;return e.isSingleOrDoubleQuote(c)?_=e.factory.createStringLiteral(s.substring(1,s.length-1).replace(/\\./g,(function(e){return e.substring(1)})),39===c):""+ +s===s&&(_=e.factory.createNumericLiteral(+s)),_||((_=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),_)}(i,i.length-1)}function P(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function w(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function M(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,w),i=function(t,r,n){var i=Bn(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,K.target)||ky(a)?ky(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):L(a):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(N(i.symbol,r,111551))}}(t,r,n);return i||L(e.unescapeLeadingUnderscores(t.escapedName),!!e.length(t.declarations)&&e.every(t.declarations,P),n)}function L(t,r,n){return e.isIdentifierText(t,K.target)?e.factory.createIdentifier(t):!r&&ky(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)}function R(t,r){return t.declarations&&e.find(t.declarations,(function(t){return!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,(function(e){return e===r})))}))}function B(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=eu(r.target.typeParameters)}function j(t,r,n,i,a,o){if(r!==we&&i){var s=R(n,i);if(s&&!e.isFunctionLikeDeclaration(s)&&!e.isGetAccessorDeclaration(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(td(c)===r&&B(c,r)){var l=U(t,c,a,o);if(l)return l}}}var _=t.flags;8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,(function(r){return e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration)})))&&(t.flags|=1048576);var d=u(r,t);return t.flags=_,d}function J(t,r,n){var i,a,o=!1,s=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:t};var c=Ci(s,67108863,!0,!0);if(c&&(0!==pa(c,r.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=r.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,r.enclosingDeclaration,67108863),null==n||n(c)),e.isIdentifier(t))){var u=262144&c.flags?A(ss(c),r):e.factory.cloneNode(t);return u.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(u,t),16777216)}}return{introducesError:o,node:t}}function U(t,r,i,a){o&&o.throwIfCancellationRequested&&o.throwIfCancellationRequested();var s=!1,c=e.getSourceFileOfNode(r),l=e.visitNode(r,(function r(o){if(e.isJSDocAllType(o)||314===o.kind)return e.factory.createKeywordTypeNode(129);if(e.isJSDocUnknownType(o))return e.factory.createKeywordTypeNode(153);if(e.isJSDocNullableType(o))return e.factory.createUnionTypeNode([e.visitNode(o.type,r),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(o))return e.factory.createUnionTypeNode([e.visitNode(o.type,r),e.factory.createKeywordTypeNode(151)]);if(e.isJSDocNonNullableType(o))return e.visitNode(o.type,r);if(e.isJSDocVariadicType(o))return e.factory.createArrayTypeNode(e.visitNode(o.type,r));if(e.isJSDocTypeLiteral(o))return e.factory.createTypeLiteralNode(e.map(o.jsDocPropertyTags,(function(n){var i=e.isIdentifier(n.name)?n.name:n.name.right,a=Ka(td(o),i.escapedText),s=a&&n.typeExpression&&td(n.typeExpression.type)!==a?u(a,t):void 0;return e.factory.createPropertySignature(void 0,i,n.isBracketed||n.typeExpression&&e.isJSDocOptionalType(n.typeExpression.type)?e.factory.createToken(57):void 0,s||n.typeExpression&&e.visitNode(n.typeExpression.type,r)||e.factory.createKeywordTypeNode(129))})));if(e.isTypeReferenceNode(o)&&e.isIdentifier(o.typeName)&&""===o.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(129),o);if((e.isExpressionWithTypeArguments(o)||e.isTypeReferenceNode(o))&&e.isJSDocIndexSignature(o))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(o.typeArguments[0],r))],e.visitNode(o.typeArguments[1],r))]);if(e.isJSDocFunctionType(o)){var l;return e.isJSDocConstructSignature(o)?e.factory.createConstructorTypeNode(o.modifiers,e.visitNodes(o.typeParameters,r),e.mapDefined(o.parameters,(function(t,n){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(l=t.type):e.factory.createParameterDeclaration(void 0,void 0,g(t),m(t,n),t.questionToken,e.visitNode(t.type,r),void 0)})),e.visitNode(l||o.type,r)||e.factory.createKeywordTypeNode(129)):e.factory.createFunctionTypeNode(e.visitNodes(o.typeParameters,r),e.map(o.parameters,(function(t,n){return e.factory.createParameterDeclaration(void 0,void 0,g(t),m(t,n),t.questionToken,e.visitNode(t.type,r),void 0)})),e.visitNode(o.type,r)||e.factory.createKeywordTypeNode(129))}if(e.isTypeReferenceNode(o)&&e.isInJSDoc(o)&&(!B(o,td(o))||Xu(o)||ke===zu(Ku(o),788968,!0)))return e.setOriginalNode(u(td(o),t),o);if(e.isLiteralImportTypeNode(o)){var _=jn(o).resolvedSymbol;return!e.isInJSDoc(o)||!_||(o.isTypeOf||788968&_.flags)&&e.length(o.typeArguments)>=eu(Ko(_))?e.factory.updateImportTypeNode(o,e.factory.updateLiteralTypeNode(o.argument,function(r,i){if(a){if(t.tracker&&t.tracker.moduleResolverHost){var o=IC(r);if(o){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!n.useCaseSensitiveFileNames),getCurrentDirectory:function(){return t.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return t.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,o);return e.factory.createStringLiteral(c)}}}else if(t.tracker&&t.tracker.trackExternalModuleSymbolOfImportTypeNode){var u=ki(i,i,void 0);u&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(u)}return i}(o,o.argument.literal)),o.qualifier,e.visitNodes(o.typeArguments,r,e.isTypeNode),o.isTypeOf):e.setOriginalNode(u(td(o),t),o)}if(e.isEntityName(o)||e.isEntityNameExpression(o)){var d=J(o,t,i),p=d.introducesError,f=d.node;if(s=s||p,f!==o)return f}c&&e.isTupleTypeNode(o)&&e.getLineAndCharacterOfPosition(c,o.pos).line===e.getLineAndCharacterOfPosition(c,o.end).line&&e.setEmitFlags(o,1);return e.visitEachChild(o,r,e.nullTransformationContext);function g(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function m(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":g(t)?"args":"arg"+r}}));if(!s)return l===r?e.setTextRange(e.factory.cloneNode(r),r):l}}(),ae=e.createSymbolTable(),oe=Fn(4,"undefined");oe.declarations=[];var se=Fn(1536,"globalThis",8);se.exports=ae,se.declarations=[],ae.set(se.escapedName,se);var ce,ue=Fn(4,"arguments"),le=Fn(4,"require"),_e={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+h},getTypeCount:function(){return v},getInstantiationCount:function(){return b},getRelationCacheSizes:function(){return{assignable:gn.size,identity:yn.size,subtype:pn.size,strictSubtype:fn.size}},isUndefinedSymbol:function(e){return e===oe},isArgumentsSymbol:function(e){return e===ue},isUnknownSymbol:function(e){return e===ke},getMergedSymbol:Ji,getDiagnostics:RS,getGlobalDiagnostics:function(){return BS(),un.getGlobalDiagnostics()},getRecursionIdentity:Fp,getUnmatchedProperties:Yf,getTypeOfSymbolAtLocation:function(t,r){var n=e.getParseTreeNode(r);return n?function(t,r){if(t=t.exportSymbol||t,(79===r.kind||80===r.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&(!e.isAssignmentTarget(r)||e.isWriteAccess(r)))){var n=sb(r);if(Hi(jn(r).resolvedSymbol)===t)return n}if(e.isDeclarationName(r)&&e.isSetAccessor(r.parent)&&xo(r.parent))return To(r.parent.symbol,!0);return Oo(t)}(t,n):we},getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,r){var n=t.parent,i=t.parent.parent,a=Kn(n.locals,r,111551),o=Kn(Es(i.symbol),r,111551);if(a&&o)return[a,o];return e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:ss,getPropertiesOfType:lc,getPropertyOfType:function(t,r){return Oc(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=yv(e.escapeLeadingUnderscores(r),i);return a?vv(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return Ka(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:function(e,t){return zc(e,0===t?ze:Ue)},getIndexInfosOfType:Kc,getSignaturesOfType:Lc,getIndexTypeOfType:function(e,t){return Uc(e,0===t?ze:Ue)},getBaseTypes:Yo,getBaseTypeOfLiteralType:Gp,getWidenedType:Ff,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?td(r):we},getParameterType:Zh,getParameterIdentifierNameAtPosition:function(e,t){var r=e.parameters.length-(j(e)?1:0);if(t>",0,Fe),hr=Fs(void 0,void 0,void 0,e.emptyArray,Fe,void 0,0,0),Dr=Fs(void 0,void 0,void 0,e.emptyArray,we,void 0,0,0),br=Fs(void 0,void 0,void 0,e.emptyArray,Fe,void 0,0,0),xr=Fs(void 0,void 0,void 0,e.emptyArray,Ze,void 0,0,0),Sr=Su(Ue,ze,!0),Cr=new e.Map,Er={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},Tr=Ax(Fe,Fe,Fe),kr=Ax(Fe,Fe,Me),Ar=Ax(Qe,Fe,Le),Fr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return rr||(rr=il("AsyncIterator",3,e))||gt},getGlobalIterableType:function(e){return tr||(tr=il("AsyncIterable",1,e))||gt},getGlobalIterableIteratorType:function(e){return nr||(nr=il("AsyncIterableIterator",1,e))||gt},getGlobalGeneratorType:function(e){return ir||(ir=il("AsyncGenerator",3,e))||gt},resolveIterationType:Ob,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Nr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Xt||(Xt=il("Iterator",3,e))||gt},getGlobalIterableType:ll,getGlobalIterableIteratorType:function(e){return $t||($t=il("IterableIterator",1,e))||gt},getGlobalGeneratorType:function(e){return Qt||(Qt=il("Generator",3,e))||gt},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Pr=new e.Map,wr=!1,Ir=new e.Map,Or=0,Mr=0,Lr=0,Rr=!1,Br=0,jr=H_(""),Jr=G_(0),Kr=Y_({negative:!1,base10Value:"0"}),zr=[],Ur=[],Vr=[],qr=0,Wr=[],Hr=[],Gr=[],Yr=[],Xr=[],$r=[],Qr=[],Zr=[],en=[],tn=[],rn=[],nn=[],an=[],on=[],sn=[],cn=[],un=e.createDiagnosticCollection(),ln=e.createDiagnosticCollection(),_n=new e.Map(e.getEntries({string:ze,number:Ue,bigint:Ve,boolean:Ye,symbol:Xe,undefined:Le})),dn=Ll(e.arrayFrom(x.keys(),H_)),pn=new e.Map,fn=new e.Map,gn=new e.Map,mn=new e.Map,yn=new e.Map,vn=new e.Map,hn=e.createSymbolTable();return hn.set(oe.escapedName,oe),function(){for(var t=0,r=n.getSourceFiles();t=5||e.some(o.relatedInformation,(function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,u=i||e.emptyArray;c1)}function Bn(e){if(33554432&e.flags)return e;var t=O(e);return Hr[t]||(Hr[t]=new P)}function jn(e){var t=I(e);return Gr[t]||(Gr[t]=new w)}function Jn(t){return 300===t.kind&&!e.isExternalOrCommonJsModule(t)}function Kn(t,r,n){if(n){var i=Ji(t.get(r));if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=mi(i);if(a===ke||a.flags&n)return i}}}}function zn(t,r){var i=e.getSourceFileOfNode(t),a=e.getSourceFileOfNode(r),o=e.getEnclosingBlockScopeContainer(t);if(i!==a){if(U&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(K)||gg(r)||8388608&t.flags)return!0;if(u(r,t))return!0;var s=n.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(t.pos<=r.pos&&(!e.isPropertyDeclaration(t)||!e.isThisProperty(r.parent)||t.initializer||t.exclamationToken)){if(201===t.kind){var c=e.getAncestor(r,201);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=i&&c.pos<=a){var u=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);if(e.setParent(u.expression,u),e.setParent(u,c),u.flowNode=c.returnFlowNode,!(32768&sf(Em(u,r,df(r)))))return!0}}return!1}(a,Io(Ki(r)),e.filter(r.parent.members,e.isClassStaticBlockDeclaration),r.parent.pos,n.pos))return!0}}else{if(!(165===r.kind&&!e.isStatic(r))||e.getContainingClass(t)!==e.getContainingClass(r))return!0}return!1}))}function l(t,r,n){return!(r.end>t.end)&&void 0===e.findAncestor(r,(function(r){if(r===t)return"quit";switch(r.kind){case 212:return!0;case 165:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 233:switch(r.parent.kind){case 170:case 167:case 171:return!0;default:return!1}default:return!1}}))}}function Un(t,r,n){var i=e.getEmitScriptTarget(K),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=jn(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,(function(e){return s(e.name)||!!e.initializer&&s(e.initializer)}))||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 212:case 211:case 254:case 169:return!1;case 167:case 170:case 171:case 291:return s(t.name);case 165:return e.hasStaticModifier(t)?i<99||!V:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function Vn(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),qn(e,t,r,n,i,a,o,Kn,s)}function qn(t,r,n,i,a,o,s,c,u){var l,_,d,p,f,g,m,y=t,v=!1,h=t,D=!1;e:for(;t;){if(t.locals&&!Jn(t)&&(_=c(t.locals,r,n))){var b=!0;if(e.isFunctionLike(t)&&d&&d!==t.body?(n&_.flags&788968&&315!==d.kind&&(b=!!(262144&_.flags)&&(d===t.type||162===d.kind||161===d.kind)),n&_.flags&3&&(Un(_,t,d)?b=!1:1&_.flags&&(b=162===d.kind||d===t.type&&!!e.findAncestor(_.valueDeclaration,e.isParameter)))):187===t.kind&&(b=d===t.trueType),b)break e;_=void 0}switch(v=v||Wn(t,d),t.kind){case 300:if(!e.isExternalOrCommonJsModule(t))break;D=!0;case 259:var x=Ki(t).exports||T;if(300===t.kind||e.isModuleDeclaration(t)&&8388608&t.flags&&!e.isGlobalScopeAugmentation(t)){if(_=x.get("default")){var S=e.getLocalSymbolForExportDefault(_);if(S&&_.flags&n&&S.escapedName===r)break e;_=void 0}var C=x.get(r);if(C&&2097152===C.flags&&(e.getDeclarationOfKind(C,273)||e.getDeclarationOfKind(C,272)))break}if("default"!==r&&(_=c(x,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||(null===(l=_.declarations)||void 0===l?void 0:l.some(e.isJSDocTypeAlias)))break e;_=void 0}break;case 258:if(_=c(Ki(t).exports,r,8&n))break e;break;case 165:if(!e.isStatic(t)){var E=Yi(t.parent);E&&E.locals&&c(E.locals,r,111551&n)&&(f=t)}break;case 255:case 224:case 256:if(_=c(Ki(t).members||T,r,788968&n)){if(!Yn(_,t)){_=void 0;break}if(d&&e.isStatic(d))return void Sn(h,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(224===t.kind&&32&n){var k=t.name;if(k&&r===k.escapedText){_=t.symbol;break e}}break;case 226:if(d===t.expression&&94===t.parent.token){var A=t.parent.parent;if(e.isClassLike(A)&&(_=c(Ki(A).members,r,788968&n)))return void(i&&Sn(h,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 160:if(m=t.parent.parent,(e.isClassLike(m)||256===m.kind)&&(_=c(Ki(m).members,r,788968&n)))return void Sn(h,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 212:if(K.target>=2)break;case 167:case 169:case 170:case 171:case 254:if(3&n&&"arguments"===r){_=ue;break e}break;case 211:if(3&n&&"arguments"===r){_=ue;break e}if(16&n){var F=t.name;if(F&&r===F.escapedText){_=t.symbol;break e}}break;case 163:t.parent&&162===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||255===t.parent.kind)&&(t=t.parent);break;case 340:case 333:case 334:(M=e.getJSDocRoot(t))&&(t=M.parent);break;case 162:d&&(d===t.initializer||d===t.name&&e.isBindingPattern(d))&&(g||(g=t));break;case 201:d&&(d===t.initializer||d===t.name&&e.isBindingPattern(d))&&e.isParameterDeclaration(t)&&!g&&(g=t);break;case 188:if(262144&n){var N=t.typeParameter.name;if(N&&r===N.escapedText){_=t.typeParameter.symbol;break e}}}Hn(t)&&(p=t),d=t,t=t.parent}if(!o||!_||p&&_===p.symbol||(_.isReferenced|=n),!_){if(d&&(e.Debug.assert(300===d.kind),d.commonJsModuleIndicator&&"exports"===r&&n&d.symbol.flags))return d.symbol;s||(_=c(ae,r,n))}if(!_&&y&&e.isInJSFile(y)&&y.parent&&e.isRequireCall(y.parent,!1))return le;if(_){if(i){if(f&&(99!==K.target||!V)){var P=f.name;return void Sn(h,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(P),Gn(a))}if(h&&(2&n||(32&n||384&n)&&111551==(111551&n))){var w=Hi(_);(2&w.flags||32&w.flags||384&w.flags)&&function(t,r){var n;if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),67108881&t.flags&&32&t.flags)return;var i=null===(n=t.declarations)||void 0===n?void 0:n.find((function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||258===t.kind}));if(void 0===i)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&i.flags||zn(i,r))){var a=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(i));2&t.flags?a=Sn(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&t.flags?a=Sn(r,e.Diagnostics.Class_0_used_before_its_declaration,o):256&t.flags?a=Sn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&t.flags)),e.shouldPreserveConstEnums(K)&&(a=Sn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}(w,h)}if(_&&D&&111551==(111551&n)&&!(4194304&y.flags)){var I=Ji(_);e.length(I.declarations)&&e.every(I.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&En(!K.allowUmdGlobalAccess,h,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(_&&g&&!v&&111551==(111551&n)){var O=Ji(Ts(_)),M=e.getRootDeclaration(g);O===Ki(g)?Sn(h,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(g.name)):O.valueDeclaration&&O.valueDeclaration.pos>g.pos&&M.parent.locals&&c(M.parent.locals,O.escapedName,n)===O&&Sn(h,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(g.name),e.declarationNameToString(h))}_&&h&&111551&n&&2097152&_.flags&&function(t,r,n){if(!e.isValidTypeOnlyAliasUseSite(n)){var i=hi(t);if(i){var a=e.typeOnlyDeclarationIsExport(i),o=a?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,s=a?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,c=e.unescapeLeadingUnderscores(r);e.addRelatedInfo(Sn(n,o,c),e.createDiagnosticForNode(i,s,c))}}}(_,r,h)}return _}if(i&&!(h&&(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||JS(t)||gg(t))return!1;var i=e.getThisContainer(t,!1),a=i;for(;a;){if(e.isClassLike(a.parent)){var o=Ki(a.parent);if(!o)break;if(Oc(Io(o),r))return Sn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Gn(n),Da(o)),!0;if(a===i&&!e.isStatic(a))if(Oc(ss(o).thisType,r))return Sn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Gn(n)),!0}a=a.parent}return!1}(h,r,a)||Xn(h)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=gi(Vn(t,r,788968&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(Oc(ss(a),s))return Sn(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return Sn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(h,r,n)||function(t,r){if(Qn(r)&&273===t.parent.kind)return Sn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),!0;return!1}(h,r)||function(t,r,n){if(111551&n){if(Qn(r))return Sn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=gi(Vn(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=e.unescapeLeadingUnderscores(r);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?!function(t,r){var n=e.findAncestor(t.parent,(function(t){return!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")}));if(n&&1===n.members.length){var i=ss(r);return!!(1048576&i.flags)&&ID(i,384,!0)}return!1}(t,i)?Sn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,a):Sn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,a,"K"===a?"P":"K"):Sn(t,e.Diagnostics._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,a),!0}}return!1}(h,r,n)||function(t,r,n){if(111127&n){if(gi(Vn(t,r,1024,void 0,void 0,!1)))return Sn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n){if(gi(Vn(t,r,1536,void 0,void 0,!1)))return Sn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}(h,r,n)||function(t,r,n){if(788584&n){var i=gi(Vn(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return Sn(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1}(h,r,n)))){var L=void 0;if(u&&qr<10)if((null==(L=Nv(y,r,n))?void 0:L.valueDeclaration)&&e.isAmbientModule(L.valueDeclaration)&&e.isGlobalScopeAugmentation(L.valueDeclaration)&&(L=void 0),L){var R=Da(L),B=bv(y,L,!1),j=xn(h,B?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,Gn(a),R);Cn(!B,j),L.valueDeclaration&&e.addRelatedInfo(j,e.createDiagnosticForNode(L.valueDeclaration,e.Diagnostics._0_is_declared_here,R))}if(!L&&a){var J=function(t){for(var r=Gn(t),n=e.getScriptTargetFeatures(),i=e.getOwnKeys(n),a=0,o=i;a=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",u=i.exports.get("export=").valueDeclaration,l=Sn(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Da(i),c);u&&e.addRelatedInfo(l,e.createDiagnosticForNode(u,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,c))}else!function(t,r){var n,i,a;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))Sn(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Da(t),Da(r.symbol));else{var o=Sn(r.name,e.Diagnostics.Module_0_has_no_default_export,Da(t)),s=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(s){var c=null===(a=s.declarations)||void 0===a?void 0:a.find((function(t){var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=Ti(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(i,t);return yi(t,a,void 0,!1),a}}function ui(r,n,i){var a,o;void 0===i&&(i=!1);var s=e.getExternalModuleRequireArgument(r)||r.moduleSpecifier,c=Ti(r,s),u=!e.isPropertyAccessExpression(n)&&n.propertyName||n.name;if(e.isIdentifier(u)){var l=Pi(c,s,!1,"default"===u.escapedText&&!(!K.allowSyntheticDefaultImports&&!K.esModuleInterop));if(l&&u.escapedText){if(e.isShorthandAmbientModuleSymbol(c))return c;var _=void 0;_=c&&c.exports&&c.exports.get("export=")?Oc(Io(l),u.escapedText,!0):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return gi(Oc(td(r),t))}}(l,u.escapedText),_=gi(_,i);var d=function(e,t,r,n){if(1536&e.flags){var i=Li(e).get(t.escapedText),a=gi(i,n);return yi(r,i,a,!1),a}}(l,u,n,i);if(void 0===d&&"default"===u.escapedText)si(null===(a=c.declarations)||void 0===a?void 0:a.find(e.isSourceFile),c,i)&&(d=Ni(c,i)||gi(c,i));var p=d&&_&&d!==_?function(t,r){if(t===ke&&r===ke)return ke;if(790504&t.flags)return t;var n=Fn(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=new e.Map(r.members)),t.exports&&(n.exports=new e.Map(t.exports)),n}(_,d):d||_;if(!p){var f=Si(c,r),g=e.declarationNameToString(u),m=Pv(u,l);if(void 0!==m){var y=Da(m),v=Sn(u,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,f,g,y);m.valueDeclaration&&e.addRelatedInfo(v,e.createDiagnosticForNode(m.valueDeclaration,e.Diagnostics._0_is_declared_here,y))}else(null===(o=c.exports)||void 0===o?void 0:o.has("default"))?Sn(u,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,f,g):function(r,n,i,a,o){var s,c,u=null===(c=null===(s=a.valueDeclaration)||void 0===s?void 0:s.locals)||void 0===c?void 0:c.get(n.escapedText),l=a.exports;if(u){var _=null==l?void 0:l.get("export=");if(_)Wi(_,u)?function(t,r,n,i){if(U>=e.ModuleKind.ES2015){Sn(r,K.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else{if(e.isInJSFile(t))Sn(r,K.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n);else Sn(r,K.esModuleInterop?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,i)}}(r,n,i,o):Sn(n,e.Diagnostics.Module_0_has_no_exported_member_1,o,i);else{var d=l?e.find(Gc(l),(function(e){return!!Wi(e,u)})):void 0,p=d?Sn(n,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,o,i,Da(d)):Sn(n,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,o,i);u.declarations&&e.addRelatedInfo.apply(void 0,t([p],e.map(u.declarations,(function(t,r){return e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,i)})),!1))}}else Sn(n,e.Diagnostics.Module_0_has_no_exported_member_1,o,i)}(r,u,g,c,f)}return p}}}function li(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function _i(e,t,r){var n=e.parent.parent.moduleSpecifier?ui(e.parent.parent,e,r):Ci(e.propertyName||e.name,t,!1,r);return yi(e,void 0,n,!1),n}function di(t,r){if(e.isClassExpression(t))return WD(t).symbol;if(e.isEntityName(t)||e.isEntityNameExpression(t)){var n=Ci(t,901119,!0,r);return n||(WD(t),jn(t).resolvedSymbol)}}function pi(t,r){switch(void 0===r&&(r=!1),t.kind){case 263:case 252:return ii(t,r);case 265:return ci(t,r);case 266:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=Ti(e,r),i=Pi(n,r,t,!1);return yi(e,n,i,!1),i}(t,r);case 272:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&Ti(e,r),i=r&&Pi(n,r,t,!1);return yi(e,n,i,!1),i}(t,r);case 268:case 201:return function(t,r){var n=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,i=li(n),a=ui(n,i||t,r),o=t.propertyName||t.name;return i&&a&&e.isIdentifier(o)?gi(Oc(Io(a),o.escapedText),r):(yi(t,void 0,a,!1),a)}(t,r);case 273:return _i(t,901119,r);case 269:case 219:return function(t,r){var n=di(e.isExportAssignment(t)?t.expression:t.right,r);return yi(t,void 0,n,!1),n}(t,r);case 262:return function(e,t){var r=Ni(e.parent.symbol,t);return yi(e,void 0,r,!1),r}(t,r);case 292:return Ci(t.name,901119,!0,r);case 291:return function(e,t){return di(e.initializer,t)}(t,r);case 205:case 204:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind)return di(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function fi(e,t){return void 0===t&&(t=901119),!!e&&(2097152==(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function gi(e,t){return!t&&fi(e)?mi(e):e}function mi(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=Bn(t);if(r.target)r.target===Ae&&(r.target=ke);else{r.target=Ae;var n=ti(t);if(!n)return e.Debug.fail();var i=pi(n);r.target===Ae?r.target=i||ke:Sn(n,e.Diagnostics.Circular_definition_of_import_alias_0,Da(t))}return r.target}function yi(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=Ki(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return Bn(a).typeOnlyDeclaration=t,!0;var o=Bn(a);return vi(o,r,i)||vi(o,n,i)}function vi(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:Bn(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function hi(e){if(2097152&e.flags)return Bn(e).typeOnlyDeclaration||void 0}function Di(e){var t=Ki(e),r=mi(t);r&&((r===ke||111551&r.flags&&!lC(r)&&!hi(t))&&bi(t))}function bi(t){var r=Bn(t);if(!r.referenced){r.referenced=!0;var n=ti(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=gi(t);(i===ke||111551&i.flags)&&WD(n.moduleReference)}}}function xi(t,r){return 79===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),79===t.kind||159===t.parent.kind?Ci(t,1920,!1,r):(e.Debug.assert(263===t.parent.kind),Ci(t,901119,!1,r))}function Si(e,t){return e.parent?Si(e.parent,t)+"."+Da(e):Da(e,t,void 0,20)}function Ci(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(79===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:pg(e.getFirstIdentifier(t)),u=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if(Gu(t.parent)){var n=function(t){if(e.findAncestor(t,(function(t){return e.isJSDocNode(t)||4194304&t.flags?e.isJSDocTypeAlias(t):"quit"})))return;var r=e.getJSDocHost(t);if(r&&e.isExpressionStatement(r)&&e.isBinaryExpression(r.expression)&&3===e.getAssignmentDeclarationKind(r.expression)){if(i=Ki(r.expression.left))return Ei(i)}if(r&&(e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)){if(i=Ki(r.parent.parent.left))return Ei(i)}var n=e.getEffectiveJSDocHost(t);if(n&&e.isFunctionLike(n)){var i;return(i=Ki(n))&&i.valueDeclaration}}(t.parent);if(n)return Vn(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=Ji(Vn(a||t,t.escapedText,r,n||u?void 0:c,t,!0))))return Ji(u)}else{if(159!==t.kind&&204!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var l=159===t.kind?t.left:t.expression,_=159===t.kind?t.right:t.name,d=Ci(l,s,n,!1,a);if(!d||e.nodeIsMissing(_))return;if(d===ke)return d;if(d.valueDeclaration&&e.isInJSFile(d.valueDeclaration)&&e.isVariableDeclaration(d.valueDeclaration)&&d.valueDeclaration.initializer&&jh(d.valueDeclaration.initializer)){var p=d.valueDeclaration.initializer.arguments[0],f=Ti(p,p);if(f){var g=Ni(f);g&&(d=g)}}if(!(o=Ji(Kn(Li(d),_.escapedText,r)))){if(!n){var m=Si(d),y=e.declarationNameToString(_),v=Pv(_,d);v?Sn(_,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,m,y,Da(v)):Sn(_,e.Diagnostics.Namespace_0_has_no_exported_member_1,m,y)}return}}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||269===t.parent.kind)&&yi(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:mi(o)}}function Ei(t){var r=t.parent.valueDeclaration;if(r)return(e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0)||r}function Ti(t,r,n){var i=e.getEmitModuleResolutionKind(K)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return ki(t,r,n?void 0:i)}function ki(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?Ai(t,r.text,n,r,i):void 0}function Ai(t,r,i,a,o){(void 0===o&&(o=!1),e.startsWith(r,"@types/"))&&Sn(a,m=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(r,"@types/"),r);var s=Xc(r,!0);if(s)return s;var c=e.getSourceFileOfNode(t),u=e.getResolvedModule(c,r),l=u&&e.getResolutionDiagnostic(K,u),_=u&&!l&&n.getSourceFile(u.resolvedFileName);if(_)return _.symbol?(u.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(u.extension)&&Fi(!1,a,u,r),Ji(_.symbol)):void(i&&Sn(a,e.Diagnostics.File_0_is_not_a_module,_.fileName));if(Ct){var d=e.findBestPatternMatch(Ct,(function(e){return e.pattern}),r);if(d){var p=Et&&Et.get(r);return Ji(p?p:d.symbol)}}if(u&&!e.resolutionExtensionIsTSOrJson(u.extension)&&void 0===l||l===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?Sn(a,m=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,r,u.resolvedFileName):Fi(X&&!!i,a,u,r);else if(i){if(u){var f=n.getProjectReferenceRedirect(u.resolvedFileName);if(f)return void Sn(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,f,u.resolvedFileName)}if(l)Sn(a,l,r,u.resolvedFileName);else{var g=e.tryExtractTSExtension(r);if(g){var m=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,y=e.removeExtension(r,g);e.getEmitModuleKind(K)>=e.ModuleKind.ES2015&&(y+=".js"),Sn(a,m,g,y)}else!K.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(K)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(K)?Sn(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r):Sn(a,i,r)}}}function Fi(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,f().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.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,o.name,e.mangleScopedPackageName(o.name)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;En(t,r,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function Ni(t,r){if(null==t?void 0:t.exports){var n=function(t,r){if(!t||t===ke||t===r||1===r.exports.size||2097152&t.flags)return t;var n=Bn(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:wn(t);i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable());return r.exports.forEach((function(e,t){"export="!==t&&i.exports.set(t,i.exports.has(t)?In(i.exports.get(t),e):e)})),Bn(i).cjsExportMerged=i,n.cjsExportMerged=i}(Ji(gi(t.exports.get("export="),r)),Ji(t));return Ji(n)||t}}function Pi(t,r,n,i){var a=Ni(t,n);if(!n&&a){if(!(i||1539&a.flags||e.getDeclarationOfKind(a,300))){var o=U>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Sn(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,o),a}if(K.esModuleInterop){var s=r.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=Io(a),u=Mc(c,0);if(u&&u.length||(u=Mc(c,1)),u&&u.length){var l=Bh(c,a,t),_=Fn(a.flags,a.escapedName);_.declarations=a.declarations?a.declarations.slice():[],_.parent=a.parent,_.target=a,_.originatingImport=s,a.valueDeclaration&&(_.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(_.constEnumOnlyModule=!0),a.members&&(_.members=new e.Map(a.members)),a.exports&&(_.exports=new e.Map(a.exports));var d=oc(l);return _.type=ia(_,d.members,e.emptyArray,e.emptyArray,d.indexInfos),_}}}}return a}function wi(e){return void 0!==e.exports.get("export=")}function Ii(e){return Gc(Ri(e))}function Oi(e,t){var r=Ri(t);if(r)return r.get(e)}function Mi(t){return!(131068&t.flags||1&e.getObjectFlags(t)||Op(t)||Zp(t))}function Li(e){return 6256&e.flags?Cs(e,"resolvedExports"):1536&e.flags?Ri(e):e.exports||T}function Ri(e){var t=Bn(e);return t.resolvedExports||(t.resolvedExports=ji(e))}function Bi(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&gi(o)!==gi(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}}))}function ji(t){var r=[];return function t(n){if(!(n&&n.exports&&e.pushIfUnique(r,n)))return;var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){var o=e.createSymbolTable(),s=new e.Map;if(a.declarations)for(var c=0,u=a.declarations;c=l?u.substr(0,l-"...".length)+"...":u}function Sa(e,t){var r=Ea(e.symbol)?xa(e,e.symbol.valueDeclaration):xa(e),n=Ea(t.symbol)?xa(t,t.symbol.valueDeclaration):xa(t);return r===n&&(r=Ca(e),n=Ca(t)),[r,n]}function Ca(e){return xa(e,void 0,64)}function Ea(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!Pd(t.valueDeclaration)}function Ta(e){return void 0===e&&(e=0),814775659&e}function ka(t){return!!(t.symbol&&32&t.symbol.flags&&(t===Qo(t.symbol)||524288&t.flags&&16777216&e.getObjectFlags(t)))}function Aa(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(128):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&ie.typeToTypeNode(t.type,r,70222336|Ta(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function Fa(e){return 8===e?"private":16===e?"protected":"public"}function Na(t){return t&&t.parent&&260===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function Pa(t){return 300===t.kind||e.isAmbientModule(t)}function wa(t,r){var n=Bn(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,K.target)||ky(i)?ky(i)&&e.startsWith(i,"-")?"["+i+"]":i:'"'+e.escapeString(i,34)+'"'}if(8192&n.flags)return"["+Ia(n.symbol,r)+"]"}}function Ia(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],Pa)!==e.findAncestor(r.enclosingDeclaration,Pa)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,(function(t){return e.getNameOfDeclaration(t)?t:void 0})),i=n&&e.getNameOfDeclaration(n);if(n&&i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=Bn(t).nameType;if(a&&384&a.flags){var o=wa(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&252===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 224:case 211:case 212:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),224===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=wa(t,r);return void 0!==s?s:e.symbolName(t)}function Oa(t){if(t){var r=jn(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 333:case 340:case 334:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 201:return Oa(t.parent.parent);case 252:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 259:case 255:case 256:case 257:case 254:case 258:case 263:if(e.isExternalModuleAugmentation(t))return!0;var r=Ja(t);return 1&e.getCombinedModifierFlags(t)||263!==t.kind&&300!==r.kind&&8388608&r.flags?Oa(r):Jn(r);case 165:case 164:case 170:case 171:case 167:case 166:if(e.hasEffectiveModifier(t,24))return!1;case 169:case 173:case 172:case 174:case 162:case 260:case 177:case 178:case 180:case 176:case 181:case 182:case 185:case 186:case 189:case 195:return Oa(t.parent);case 265:case 266:case 268:return!1;case 161:case 300:case 262:return!0;case 269:default:return!1}}()),r.isVisible}return!1}function Ma(t,r){var n,i,a;return t.parent&&269===t.parent.kind?n=Vn(t,t.escapedText,2998271,void 0,t,!1):273===t.parent.kind&&(n=_i(t.parent,2998271)),n&&((a=new e.Set).add(O(n)),function t(n){e.forEach(n,(function(n){var o=ei(n)||n;if(r?jn(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=Vn(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,O(c))&&t(c.declarations)}}))}(n.declarations)),i}function La(e,t){var r=Ra(e,t);if(r>=0){for(var n=zr.length,i=r;i=0;r--){if(Ba(zr[r],Vr[r]))return-1;if(zr[r]===e&&Vr[r]===t)return r}return-1}function Ba(t,r){switch(r){case 0:return!!Bn(t).type;case 5:return!!jn(t).resolvedEnumType;case 2:return!!Bn(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved}return e.Debug.assertNever(r)}function ja(){return zr.pop(),Vr.pop(),Ur.pop()}function Ja(t){return e.findAncestor(e.getRootDeclaration(t),(function(e){switch(e.kind){case 252:case 253:case 268:case 267:case 266:case 265:return!1;default:return!0}})).parent}function Ka(e,t){var r=Oc(e,t);return r?Io(r):void 0}function za(e){return e&&0!=(1&e.flags)}function Ua(e){var t=Ki(e);return t&&Bn(t).type||to(e,!1)}function Va(t,r,n){if(131072&(t=Zg(t,(function(e){return!(98304&e.flags)}))).flags)return _t;if(1048576&t.flags)return rm(t,(function(e){return Va(e,r,n)}));var i=Ll(e.map(r,Gl));if(l_(t)||__(i)){if(131072&i.flags)return t;var a=ur||(ur=nl("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return a?ju(a,[t,i]):we}for(var o=e.createSymbolTable(),s=0,c=lc(t);s=2?(i=Fe,dl(ll(!0),[i])):Rt;var c=e.map(a,(function(t){return e.isOmittedExpression(t)?Fe:po(t,r,n)})),u=e.findLastIndex(a,(function(t){return!(t===s||e.isOmittedExpression(t)||Sy(t))}),a.length-1)+1,l=bl(c,e.map(a,(function(e,t){return e===s?4:t>=u?2:1})));return r&&((l=Ou(l)).pattern=t,l.objectFlags|=262144),l}function go(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),199===t.kind?function(t,r,n){var i,a=e.createSymbolTable(),o=262272;e.forEach(t.elements,(function(e){var t=e.propertyName||e.name;if(e.dotDotDotToken)i=Su(ze,Fe,!1);else{var s=Gl(t);if(ys(s)){var c=xs(s),u=Fn(4|(e.initializer?16777216:0),c);u.type=po(e,r,n),u.bindingElement=e,a.set(u.escapedName,u)}else o|=512}}));var s=ia(void 0,a,e.emptyArray,e.emptyArray,i?[i]:e.emptyArray);return s.objectFlags|=o,r&&(s.pattern=t,s.objectFlags|=262144),s}(t,r,n):fo(t,r,n)}function mo(e,t){return vo(to(e,!0),e,t)}function yo(e){var t,r=Ki(e),n=(t=!1,zt||(zt=rl("SymbolConstructor",t)));return n&&r&&r===n}function vo(t,r,n){return t?(4096&t.flags&&yo(r.parent)&&(t=$_(r)),n&&If(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==Ki(r)&&(t=Xe),Ff(t)):(t=e.isParameter(r)&&r.dotDotDotToken?Rt:Fe,n&&(ho(r)||wf(r,t)),t)}function ho(t){var r=e.getRootDeclaration(t);return kb(162===r.kind?r.parent:r)}function Do(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return td(r)}function bo(t){var r=Bn(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=ss(zi(t))).typeParameters?Iu(r,e.map(r.typeParameters,(function(e){return Fe}))):r;var r;if(t===le)return Fe;if(134217728&t.flags&&t.valueDeclaration){var n=Ki(e.getSourceFileOfNode(t.valueDeclaration)),i=Fn(n.flags,"exports");i.declarations=n.declarations?n.declarations.slice():[],i.parent=t,i.target=n,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),n.exports&&(i.exports=new e.Map(n.exports));var a=e.createSymbolTable();return a.set("exports",i),ia(t,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(t.valueDeclaration);var o,s=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(void 0===c)return Q?Me:Fe;var u=HS(c);return za(u)||u===Me?u:we}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?Ff(Yp(lb(s.statements[0].expression))):_t;if(!La(t,0))return 512&t.flags&&!(67108864&t.flags)?Ao(t):Po(t);if(269===s.kind)o=vo(WD(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=so(t);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(9136&t.flags)return Ao(t);o=e.isBinaryExpression(s.parent)?so(t):Do(s)||Fe}else if(e.isPropertyAssignment(s))o=Do(s)||ZD(s);else if(e.isJsxAttribute(s))o=Do(s)||Ly(s);else if(e.isShorthandPropertyAssignment(s))o=Do(s)||QD(s.name,0);else if(e.isObjectLiteralMethod(s))o=Do(s)||eb(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=mo(s,!0);else if(e.isEnumDeclaration(s))o=Ao(t);else if(e.isEnumMember(s))o=Fo(t);else{if(!e.isAccessor(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=To(t)||e.Debug.fail("Non-write accessor resolution must always produce a type")}if(!ja())return 512&t.flags&&!(67108864&t.flags)?Ao(t):Po(t);return o}(t);r.type||(r.type=n)}return r.type}function xo(t){if(t)return 170===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function So(e){var t=xo(e);return t&&td(t)}function Co(t){var r=Bn(t);return r.type||(r.type=Eo(t)||e.Debug.fail("Read type of accessor must always produce a type"))}function Eo(t,r){if(void 0===r&&(r=!1),!La(t,0))return we;var n=To(t,r);ja()||(n=Fe,X&&Sn(e.getDeclarationOfKind(t,170),e.Diagnostics._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,Da(t)));return n}function To(t,r){void 0===r&&(r=!1);var n=e.getDeclarationOfKind(t,170),i=e.getDeclarationOfKind(t,171),a=So(i);if(r&&a)return c(a,t);if(n&&e.isInJSFile(n)){var o=Qa(n);if(o)return c(o,t)}var s=So(n);return s?c(s,t):a||(n&&n.body?c(gD(n),t):i?(kb(i)||En(X,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Da(t)),Fe):n?(e.Debug.assert(!!n,"there must exist a getter as we are current checking either setter or getter in this function"),kb(n)||En(X,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Da(t)),Fe):void 0);function c(t,r){return 1&e.getCheckFlags(r)?Td(t,Bn(r).mapper):t}}function ko(t){var r=Ho(Qo(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function Ao(t){var r=Bn(t),n=r;if(!r.type){var i=t.valueDeclaration&&Ih(t.valueDeclaration,!1);if(i){var a=wh(t,i);a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return Fe;if(r&&(219===r.kind||e.isAccessExpression(r)&&219===r.parent.kind))return so(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=Ni(t);if(n!==t){if(!La(t,0))return we;var i=Ji(t.exports.get("export=")),a=so(i,i===n?void 0:n);return ja()?a:Po(t)}}var o=Zi(16,t);if(32&t.flags){var s=ko(t);return s?Ul([o,s]):o}return W&&16777216&t.flags?df(o):o}(t)}return r.type}function Fo(e){var t=Bn(e);return t.type||(t.type=as(e))}function No(t){var r=Bn(t);if(!r.type){var n=mi(t),i=t.declarations&&pi(ti(t),!0);r.type=(null==i?void 0:i.declarations)&&FS(i.declarations)&&t.declarations.length?function(t){var r=e.getSourceFileOfNode(t.declarations[0]),n=e.unescapeLeadingUnderscores(t.escapedName),i=t.declarations.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&e.isModuleExportsAccessExpression(t.expression)})),a=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),n):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),n);return i&&e.setParent(a.expression.expression,a.expression),e.setParent(a.expression,a),e.setParent(a,r),a.flowNode=r.endFlowNode,Em(a,Ne,Le)}(i):FS(t.declarations)?Ne:111551&n.flags?Io(n):we}return r.type}function Po(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(Sn(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Da(t)),we):(X&&(162!==r.kind||r.initializer)&&Sn(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Da(t)),Fe)}function wo(e){if(98304&e.flags){var t=function(e){var t=Bn(e);return t.writeType||(t.writeType=Eo(e,!0))}(e);if(t)return t}return Io(e)}function Io(t){var r=e.getCheckFlags(t);return 65536&r?function(t){var r=Bn(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?Ll(r.deferralConstituents):Ul(r.deferralConstituents)),r.type}(t):1&r?function(e){var t=Bn(e);if(!t.type){if(!La(e,0))return t.type=we;var r=Td(Io(t.target),t.mapper);ja()||(r=Po(e)),t.type=r}return t.type}(t):262144&r?function(t){if(!t.type){var r=t.mappedType;if(!La(t,0))return r.containsError=!0,we;var n=Td(Qs(r.target||r),gd(r.mapper,Ys(r),t.keyType)),i=W&&16777216&t.flags&&!PD(n,49152)?df(n,!0):524288&t.checkFlags?Df(n):n;ja()||(Sn(_,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Da(t),xa(r)),i=we),t.type=i}return t.type}(t):8192&r?function(e){var t=Bn(e);t.type||(t.type=Gf(e.propertyType,e.mappedType,e.constraintType));return t.type}(t):7&t.flags?bo(t):9136&t.flags?Ao(t):8&t.flags?Fo(t):98304&t.flags?Co(t):2097152&t.flags?No(t):we}function Oo(e){return vf(Io(e),!!(16777216&e.flags))}function Mo(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function Lo(t){return 4&e.getObjectFlags(t)?t.target:t}function Ro(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=Lo(n);return i===r||e.some(Yo(i),t)}if(2097152&n.flags)return e.some(n.types,t);return!1}(t)}function Bo(t,r){for(var n=0,i=r;n0)return!0;if(8650752&e.flags){var t=yc(e);return!!t&&zo(t)}return!1}function Vo(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function qo(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(Lc(t,1),(function(t){return(a||i>=eu(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function Wo(t,r,n){var i=qo(t,r,n),a=e.map(r,td);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?fu(t,a,e.isInJSFile(n)):t}))}function Ho(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=Vo(t);if(!i)return t.resolvedBaseConstructorType=Le;if(!La(t,1))return we;var a=lb(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),lb(n.expression)),2621440&a.flags&&oc(a),!ja())return Sn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Da(t.symbol)),t.resolvedBaseConstructorType=we;if(!(1&a.flags||a===Ke||Uo(a))){var o=Sn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,xa(a));if(262144&a.flags){var s=Au(a),c=Me;if(s){var u=Lc(s,1);u[0]&&(c=lu(u[0]))}a.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Da(a.symbol),xa(c)))}return t.resolvedBaseConstructorType=we}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function Go(t,r){Sn(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,xa(r,void 0,2))}function Yo(t){if(!t.baseTypesResolved){if(La(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[Xo(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=Cc(Ho(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=Vo(t),a=r.symbol?ss(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=Lu(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=Bu(i,r.symbol);else if(1&r.flags)n=r;else{var o=Wo(r,i.typeArguments,i);if(!o.length)return Sn(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=lu(o[0])}if(n===we)return t.resolvedBaseTypes=e.emptyArray;var s=Fc(n);if(!$o(s)){var c=Ic(void 0,n),u=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,xa(s));return un.add(e.createDiagnosticForNodeFromMessageChain(i.expression,u)),t.resolvedBaseTypes=e.emptyArray}if(t===s||Ro(s,t))return Sn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,xa(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0);t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){if(t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray,t.symbol.declarations)for(var r=0,n=t.symbol.declarations;r0)return;for(var i=1;i1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a1){var l=s.thisParameter,_=e.forEach(c,(function(e){return e.thisParameter}));if(_)l=xf(_,Ul(e.mapDefined(c,(function(e){return e.thisParameter&&Io(e.thisParameter)}))));(u=Ps(s,c)).thisParameter=l}(r||(r=[])).push(u)}}}}if(!e.length(r)&&-1!==n){for(var d=t[void 0!==n?n:0],p=d.slice(),f=function(t){if(t!==d){var r=t[0];if(e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),!(p=r.typeParameters&&e.some(p,(function(e){return!!e.typeParameters&&!Rs(r.typeParameters,e.typeParameters)}))?void 0:e.map(p,(function(t){return function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=sd(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=rD(e),i=rD(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=iD(e)||iD(t),u=c&&!iD(a),l=new Array(s+(u?1:0)),_=0;_=nD(a)&&_>=nD(o),y=_>=n?void 0:Yh(e,_),v=_>=i?void 0:Yh(t,_),h=Fn(1|(m&&!g?16777216:0),(y===v?y:y?v?void 0:y:v)||"arg"+_);h.type=g?fl(f):f,l[_]=h}if(u){var D=Fn(1,"args");D.type=fl(Zh(o,s)),o===t&&(D.type=Td(D.type,r)),l[s]=D}return l}(t,r,n),s=function(e,t,r){if(!e||!t)return e||t;var n=Ul([Io(e),Td(Io(t),r)]);return xf(e,n)}(t.thisParameter,r.thisParameter,n),c=Math.max(t.minArgumentCount,r.minArgumentCount),u=Fs(a,i,s,o,void 0,void 0,c,39&(t.flags|r.flags));u.compositeKind=1048576,u.compositeSignatures=e.concatenate(2097152!==t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(u.mapper=2097152!==t.compositeKind&&t.mapper&&t.compositeSignatures?pd(t.mapper,n):n);return u}(t,r)}))))return"break"}},g=0,m=t;g0})),n=e.map(t,zo);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function Ks(t){for(var r,n,i,a=t.types,o=Js(a),s=e.countWhere(o,(function(e){return e})),c=function(c){var u=t.types[c];if(!o[c]){var l=Lc(u,1);l.length&&s>0&&(l=e.map(l,(function(e){var t=Ns(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a=p&&c<=f){var g=f?mu(d,tu(s,d.typeParameters,p,o)):Ns(d);g.typeParameters=t.localTypeParameters,g.resolvedReturnType=t,g.flags=i?4|g.flags:-5&g.flags,u.push(g)}}return u}(_)),t.constructSignatures=i}}}function qs(e,t,r){return Td(e,sd([t.indexType,t.objectType],[G_(0),bl([r])]))}function Ws(t){if(4194304&t.flags){var r=Cc(t.type);return ef(r)?Tl(r):$l(r)}if(16777216&t.flags){if(t.root.isDistributive){var n=t.checkType,i=Ws(n);if(i!==n)return Ed(t,fd(t.root.checkType,i,t.mapper))}return t}return 1048576&t.flags?rm(t,Ws):2097152&t.flags?Ul(e.sameMap(t.types,Ws)):t}function Hs(t){return 4096&e.getCheckFlags(t)}function Gs(t){var r,n=e.createSymbolTable();na(t,T,e.emptyArray,e.emptyArray,e.emptyArray);var i=Ys(t),a=Xs(t),o=$s(t.target||t),s=Qs(t.target||t),c=Cc(tc(t)),u=rc(t),l=Z?128:8576;if(ec(t)){for(var _=0,d=lc(c);_=7,lr||(lr=il("BigInt",0,r))||_t):528&n.flags?Ot:12288&n.flags?sl(z>=2):67108864&n.flags?_t:4194304&n.flags?ot:2&n.flags&&!W?_t:n}function Ec(e){return Fc(Cc(Fc(e)))}function Tc(t,r,n){for(var i,a,o,s,c,u=1048576&t.flags,l=u?0:16777216,_=4,d=0,p=!1,f=0,g=t.types;f2?(N.checkFlags|=65536,N.deferralParent=t,N.deferralConstituents=C):N.type=u?Ll(C):Ul(C),N}}function kc(t,r,n){var i,a,o=(null===(i=t.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(r))||!n?null===(a=t.propertyCache)||void 0===a?void 0:a.get(r):void 0;o||(o=Tc(t,r,n))&&(n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(r,o);return o}function Ac(t,r,n){var i=kc(t,r,n);return!i||16&e.getCheckFlags(i)?void 0:i}function Fc(t){return 1048576&t.flags&&33554432&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,Fc);if(r===t.types)return t;var n=Ll(r);1048576&n.flags&&(n.resolvedReducedType=n);return n}(t)):2097152&t.flags?(33554432&t.objectFlags||(t.objectFlags|=33554432|(e.some(uc(t),Nc)?67108864:0)),67108864&t.objectFlags?Qe:t):t}function Nc(e){return Pc(e)||wc(e)}function Pc(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&Io(t).flags))}function wc(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function Ic(t,r){if(2097152&r.flags&&67108864&e.getObjectFlags(r)){var n=e.find(uc(r),Pc);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,xa(r,void 0,536870912),Da(n));var i=e.find(uc(r),wc);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,xa(r,void 0,536870912),Da(i))}return t}function Oc(e,t,r){if(524288&(e=Ec(e)).flags){var n=oc(e),i=n.members.get(t);if(i&&Gi(i))return i;if(r)return;var a=n===mt?kt:n.callSignatures.length?At:n.constructSignatures.length?Ft:void 0;if(a){var o=cc(a,t);if(o)return o}return cc(Tt,t)}if(3145728&e.flags)return Ac(e,t,r)}function Mc(t,r){if(3670016&t.flags){var n=oc(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function Lc(e,t){return Mc(Ec(e),t)}function Rc(t,r){return e.find(t,(function(e){return e.keyType===r}))}function Bc(t,r){for(var n,i,a,o=0,s=t;o=0),n>=nD(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length)}function Qc(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&311===n.type.kind}function Zc(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function eu(t){var r,n=0;if(t)for(var i=0;i=n&&o<=a){for(var s=t?t.slice():[],c=o;cu.arguments.length&&!f||Yc(d)||(o=i.length)}if((170===t.kind||171===t.kind)&&bs(t)&&(!c||!s)){var g=170===t.kind?171:170,m=e.getDeclarationOfKind(Ki(t),g);m&&(s=(r=$C(m))&&r.symbol)}var y=169===t.kind?Qo(Ji(t.parent.symbol)):void 0,v=y?y.localTypeParameters:Hc(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!iu(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,(function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0})),o=Fn(3,"args",32768);o.type=a?fl(td(a.type)):Rt,a&&r.pop();return r.push(o),!0}(t,i))&&(a|=1),(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,128)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,128))&&(a|=4),n.resolvedSignature=Fs(t,v,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function nu(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t);return(null==r?void 0:r.typeExpression)&&Xv(td(r.typeExpression))}}function iu(t){var r=jn(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 79:return r.escapedText===ue.escapedName&&fg(r)===ue;case 165:case 167:case 170:case 171:return 160===r.name.kind&&t(r.name);case 204:case 205:return t(r.expression);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function au(t){if(!t||!t.declarations)return e.emptyArray;for(var r=[],n=0;n0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(ru(i))}}return r}function ou(e){var t=Ti(e,e);if(t){var r=Ni(t);if(r)return Io(r)}return Fe}function su(e){if(e.thisParameter)return Io(e.thisParameter)}function cu(t){if(!t.resolvedTypePredicate){if(t.target){var r=cu(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,Zc(o.kind,o.parameterName,o.parameterIndex,Td(o.type,s))):vr}else if(t.compositeSignatures)t.resolvedTypePredicate=function(e,t){for(var r,n=[],i=0,a=e;i=0}function pu(e){if(j(e)){var t=Io(e.parameters[e.parameters.length-1]),r=Zp(t)?rf(t):t;return r&&Uc(r,Ue)}}function fu(e,t,r,n){var i=gu(e,tu(t,e.typeParameters,eu(e.typeParameters),r));if(n){var a=$v(lu(i));if(a){var o=Ns(a);o.typeParameters=n;var s=Ns(i);return s.resolvedReturnType=Du(o),s}}return i}function gu(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=Nu(r),a=n.get(i);return a||n.set(i,a=mu(t,r)),a}function mu(e,t){return yd(e,function(e,t){return sd(e.typeParameters,t)}(e,t),!0)}function yu(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return yd(e,dd(e.typeParameters),!0)}(e)):e}function vu(t){return t.typeParameters?t.canonicalSignatureCache||(t.canonicalSignatureCache=function(t){return fu(t,e.map(t.typeParameters,(function(e){return e.target&&!dc(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(t)):t}function hu(t){var r=t.typeParameters;if(r){if(t.baseSignatureCache)return t.baseSignatureCache;for(var n=dd(r),i=sd(r,e.map(r,(function(e){return dc(e)||Me}))),a=e.map(r,(function(e){return Td(e,i)||Me})),o=0;o1&&(t+=":"+a),n+=a}return t}function Pu(e,t){return e?"@"+O(e)+(t?":"+Nu(t):""):""}function wu(t,r){for(var n=0,i=0,a=t;ii.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Sn(t,o===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,xa(n,void 0,2),o,i.length),!s)return we}return 176===t.kind&&vl(t,e.length(t.typeArguments)!==i.length)?Mu(n,t,void 0):Iu(n,e.concatenate(n.outerTypeParameters,tu(Qu(t),i,o,s)))}return Yu(t,r)?n:we}function ju(t,r,n,i){var a=ss(t);if(a===Oe&&N.has(t.escapedName)&&r&&1===r.length)return t_(t,r[0]);var o=Bn(t),s=o.typeParameters,c=Nu(r)+Pu(n,i),u=o.instantiations.get(c);return u||o.instantiations.set(c,u=kd(a,sd(s,tu(r,s,eu(s),e.isInJSFile(t.valueDeclaration))),n,i)),u}function Ju(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias);return!(!n||!e.getContainingFunction(n))}function Ku(t){switch(t.kind){case 176:return t.typeName;case 226:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function zu(e,t,r){return e&&Ci(e,t,r)||ke}function Uu(t,r){if(r===ke)return we;if(96&(r=function(t){var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=Ki(n);if(i)return wh(i,t)}}}(r)||r).flags)return Bu(t,r);if(524288&r.flags)return function(t,r){var n=ss(r),i=Bn(r).typeParameters;if(i){var a=e.length(t.typeArguments),o=eu(i);if(ai.length)return Sn(t,o===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Da(r),o,i.length),we;var s=M_(t),c=!s||!Ju(r)&&Ju(s)?void 0:s;return ju(r,Qu(t),c,L_(c))}return Yu(t,r)?n:we}(t,r);var n=cs(r);if(n)return Yu(t,r)?q_(n):we;if(111551&r.flags&&Gu(t)){var i=function(e,t){var r=jn(e);if(!r.resolvedJSDocType){var n=Io(t),i=n;if(t.valueDeclaration){var a=198===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=Uu(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(t,r);return i||(zu(Ku(t),788968),Io(r))}return we}function Vu(e,t){if(3&t.flags||t===e)return e;var r=Fl(e)+">"+Fl(t),n=Se.get(r);if(n)return n;var i=Xi(33554432);return i.baseType=e,i.substitute=t,Se.set(r,i),i}function qu(e){return 182===e.kind&&1===e.elements.length}function Wu(e,t,r){return qu(t)&&qu(r)?Wu(e,t.elements[0],r.elements[0]):S_(td(t))===e?td(r):void 0}function Hu(t,r){for(var n,i=!0;r&&!e.isStatement(r)&&315!==r.kind;){var a=r.parent;if(162===a.kind&&(i=!i),(i||8650752&t.flags)&&187===a.kind&&r===a.trueType){var o=Wu(t,a.checkType,a.extendsType);o&&(n=e.append(n,o))}r=a}return n?Vu(t,Ul(e.append(n,t))):t}function Gu(e){return!!(4194304&e.flags)&&(176===e.kind||198===e.kind)}function Yu(t,r){return!t.typeArguments||(Sn(t,e.Diagnostics.Type_0_is_not_generic,r?Da(r):t.typeName?e.declarationNameToString(t.typeName):u),!1)}function Xu(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Yu(t),ze;case"Number":return Yu(t),Ue;case"Boolean":return Yu(t),Ye;case"Void":return Yu(t),$e;case"Undefined":return Yu(t),Le;case"Null":return Yu(t),Je;case"Function":case"function":return Yu(t),kt;case"array":return r&&r.length||X?void 0:Rt;case"promise":return r&&r.length||X?void 0:dD(Fe);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=td(r[0]),i=td(r[1]),a=n===ze||n===Ue?[Su(n,i,!1)]:e.emptyArray;return ia(void 0,T,e.emptyArray,e.emptyArray,a)}return Fe}return Yu(t),X?void 0:Fe}}}function $u(t){var r=jn(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=ke,r.resolvedType=WD(t.parent.expression);var n=void 0,i=void 0,a=788968;Gu(t)&&((i=Xu(t))||((n=zu(Ku(t),a,!0))===ke?n=zu(Ku(t),900095):zu(Ku(t),a),i=Uu(t,n))),i||(i=Uu(t,n=zu(Ku(t),a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function Qu(t){return e.map(t.typeArguments,td)}function Zu(t){var r=jn(t);if(!r.resolvedType){var n=e.isThisIdentifier(t.exprName)?Km(t.exprName):lb(t.exprName);r.resolvedType=q_(Ff(n))}return r.resolvedType}function el(t,r){function n(e){var t=e.declarations;if(t)for(var r=0,n=t;r=0)return ql(e.map(r,(function(e,r){return 8&t.elementFlags[r]?e:Me})))?rm(r[o],(function(n){return Cl(t,e.replaceElement(r,o,n))})):we}for(var s=[],c=[],u=[],l=-1,d=-1,p=-1,f=function(o){var c=r[o],u=t.elementFlags[o];if(8&u)if(58982400&c.flags||ac(c))v(c,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]);else if(Zp(c)){var l=Lu(c);if(l.length+s.length>=1e4)return Sn(_,e.isPartOfTypeNode(_)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:we};e.forEach(l,(function(e,t){var r;return v(e,c.target.elementFlags[t],null===(r=c.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}))}else v(Bp(c)&&Uc(c,Ue)||we,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else v(c,u,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},g=0;g=0&&di.fixedLength?function(e){var t=rf(e);return t&&fl(t)}(t)||bl(e.emptyArray):bl(Lu(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function Tl(t){return Ll(e.append(e.arrayOf(t.target.fixedLength,(function(e){return H_(""+e)})),$l(t.target.readonly?Pt:Nt)))}function kl(t,r){var n=e.findIndex(t.elementFlags,(function(e){return!(e&r)}));return n>=0?n:t.elementFlags.length}function Al(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,(function(e){return!(e&r)}))-1}function Fl(e){return e.id}function Nl(t,r){return e.binarySearch(t,r,Fl,e.compareValues)>=0}function Pl(t,r){var n=e.binarySearch(t,r,Fl,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function wl(t,r,n){var i=n.flags;if(1048576&i)return Il(t,r|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(n)?1048576:0),n.types);if(!(131072&i))if(r|=205258751&i,469499904&i&&(r|=262144),n===Pe&&(r|=8388608),!W&&98304&i)131072&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,Fl,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function Il(e,t,r){for(var n=0,i=r;n=0&&Nl(o,Le)&&e.orderedRemoveItemAt(o,c)}if((402664320&s||16384&s&&32768&s)&&function(t,r,n){for(var i=t.length;i>0;){var a=t[--i],o=a.flags;(402653312&o&&4&r||256&o&&8&r||2048&o&&64&r||8192&o&&4096&r||n&&32768&o&&16384&r||W_(a)&&Nl(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}}(o,s,!!(2&r)),128&s&&134217728&s&&function(t){var r=e.filter(t,c_);if(r.length)for(var n=t.length,i=function(){n--;var i=t[n];128&i.flags&&e.some(r,(function(e){return jd(i,e)}))&&e.orderedRemoveItemAt(t,n)};n>0;)i()}(o),2===r&&!(o=function(t,r){var n=Nu(t),i=Ce.get(n);if(i)return i;for(var a=r&&e.some(t,(function(e){return!!(524288&e.flags)&&!ac(e)&&np(oc(e))})),o=t.length,s=o,c=0;s>0;){var u=t[--s];if(a||469499904&u.flags)for(var l=61603840&u.flags?e.find(lc(u),(function(e){return qp(Io(e))})):void 0,d=l&&q_(Io(l)),p=0,f=t;p1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map((function(e){return e.id}))}),void Sn(_,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(c++,l&&61603840&g.flags){var m=Ka(g,l.escapedName);if(m&&qp(m)&&q_(m)!==d)continue}if(up(u,g,fn)&&(!(1&e.getObjectFlags(Lo(u)))||!(1&e.getObjectFlags(Lo(g)))||Kd(u,g))){e.orderedRemoveItemAt(t,s);break}}}}return Ce.set(n,t),t}(o,!!(524288&s))))return we;if(0===o.length)return 65536&s?4194304&s?Je:Ke:32768&s?4194304&s?Le:Re:Qe}if(!a&&1048576&s){var u=[];Ol(u,t);for(var l=[],d=function(t){e.some(u,(function(e){return Nl(e.types,t)}))||l.push(t)},p=0,f=o;p0;){var i=t[--r];if(134217728&i.flags)for(var a=0,o=n;a0;){var i=t[--n];(4&i.flags&&128&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}}(o,a),16777216&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,ap)),0===o.length)return Me;if(1===o.length)return o[0];var s=Nu(o)+Pu(r,n),c=ge.get(s);if(!c){if(1048576&a)if(function(t){var r,n=e.findIndex(t,(function(t){return!!(65536&e.getObjectFlags(t))}));if(n<0)return!1;for(var i=n+1;i=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;i[o]=s[a%c],a=Math.floor(a/c)}var u=Ul(i);131072&u.flags||r.push(u)}return r}(o);c=Ll(u,1,r,n,e.some(u,(function(e){return!!(2097152&e.flags)}))?Ml(2097152,o):void 0)}else c=function(e,t,r){var n=Xi(2097152);return n.objectFlags=wu(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(o,r,n);ge.set(s,c)}return c}function Vl(t){return e.reduceLeft(t,(function(e,t){return 1048576&t.flags?e*t.types.length:131072&t.flags?0:e}),1)}function ql(t){var r=Vl(t);return!(r>=1e5)||(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map((function(e){return e.id})),size:r}),Sn(_,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function Wl(e,t){var r=Xi(4194304);return r.type=e,r.stringsOnly=t,r}function Hl(e,t,r){return Td(e,gd(t.mapper,Ys(t),r))}function Gl(t){return e.isPrivateIdentifier(t)?Qe:e.isIdentifier(t)?H_(e.unescapeLeadingUnderscores(t.escapedText)):q_(e.isComputedPropertyName(t)?Ay(t):lb(t))}function Yl(t,r,n){if(n||!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var i=Bn(Ts(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i="default"===t.escapedName?H_("default"):a&&Gl(a)||(e.isKnownSymbol(t)?void 0:H_(e.symbolName(t)))}if(i&&i.flags&r)return i}return Qe}function Xl(t,r,n){var i=n&&(7&e.getObjectFlags(t)||t.aliasSymbol)?function(e){var t=$i(4194304);return t.type=e,t}(t):void 0,a=e.map(lc(t),(function(e){return Yl(e,r)})),o=e.map(Kc(t),(function(e){return e!==Sr&&e.keyType.flags&r?e.keyType===ze&&8&r?it:e.keyType:Qe}));return Ll(e.concatenate(a,o),1,void 0,void 0,i)}function $l(t,r,n){return void 0===r&&(r=Z),1048576&(t=Fc(t)).flags?Ul(e.map(t.types,(function(e){return $l(e,r,n)}))):2097152&t.flags?Ll(e.map(t.types,(function(e){return $l(e,r,n)}))):58982400&t.flags||ef(t)||ac(t)&&(a=Ys(i=t),!function t(r){return!!(68157439&r.flags)||(16777216&r.flags?r.root.isDistributive&&r.checkType===a:137363456&r.flags?e.every(r.types,t):8388608&r.flags?t(r.objectType)&&t(r.indexType):33554432&r.flags?t(r.substitute):!!(268435456&r.flags)&&t(r.type))}($s(i)||a))?function(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Wl(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=Wl(e,!1))}(t,r):32&e.getObjectFlags(t)?function(t,r){var n=Zg(Xs(t),(function(e){return!(r&&5&e.flags)})),i=t.declaration.nameType&&td(t.declaration.nameType),a=i&&Qg(n,(function(e){return!!(131084&e.flags)}))&&lc(Cc(tc(t)));return i?Ll([rm(n,(function(e){return Hl(i,t,e)})),rm(Ll(e.map(a||e.emptyArray,(function(e){return Yl(e,8576)}))),(function(e){return Hl(i,t,e)}))]):n}(t,n):t===Pe?Pe:2&t.flags?Qe:131073&t.flags?ot:Xl(t,(n?128:402653316)|(r?0:12584),r===Z&&!n);var i,a}function Ql(t){if(Z)return t;var r=cr||(cr=nl("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return r?ju(r,[t,ze]):ze}function Zl(t,r){var n=e.findIndex(r,(function(e){return!!(1179648&e.flags)}));if(n>=0)return ql(r)?rm(r[n],(function(i){return Zl(t,e.replaceElement(r,n,i))})):we;if(e.contains(r,Pe))return Pe;var i=[],a=[],o=t[0];if(!function e(t,r){for(var n=0;n=0){if(a&&Qg(r,(function(e){return!e.target.hasRestElement}))&&!(16&o)){var d=o_(a);Zp(r)?Sn(d,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,xa(r),Ru(r),e.unescapeLeadingUnderscores(u)):Sn(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(u),xa(r))}return D(zc(r,Ue)),rm(r,(function(e){var t=rf(e)||Le;return 1&o?Ll([t,Le]):t}))}}if(!(98304&n.flags)&&wD(n,402665900)){if(131073&r.flags)return r;var p=qc(r,n)||zc(r,ze);if(p)return 2&o&&p.keyType!==Ue?void(c&&Sn(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,xa(n),xa(t))):a&&p.keyType===ze&&!wD(n,12)?(Sn(d=o_(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,xa(n)),1&o?Ll([p.type,Le]):p.type):(D(p),1&o?Ll([p.type,Le]):p.type);if(131072&n.flags)return Qe;if(r_(r))return Fe;if(c&&!OD(r)){if(og(r)){if(X&&384&n.flags)return un.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,xa(r))),Le;if(12&n.flags){var f=e.map(r.properties,(function(e){return Io(e)}));return Ll(e.append(f,Le))}}if(r.symbol===se&&void 0!==u&&se.exports.has(u)&&418&se.exports.get(u).flags)Sn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(u),xa(r));else if(X&&!K.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==u&&Ev(u,r)){var g=xa(r);Sn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,u,g,g+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(Uc(r,Ue))Sn(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var m=void 0;if(void 0!==u&&(m=Fv(u,r)))void 0!==m&&Sn(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,xa(r),m);else{var y=function(t,r,n){function i(e){var r=cc(t,e);if(r){var i=Xv(Io(r));return!!i&&nD(i)>=1&&Jd(n,Zh(i,0))}return!1}var a=e.isAssignmentTarget(r)?"set":"get";if(!i(a))return;var o=e.tryGetPropertyAccessOrIdentifierToString(r.expression);void 0===o?o=a:o+="."+a;return o}(r,c,n);if(void 0!==y)Sn(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,xa(r),y);else{var v=void 0;if(1024&n.flags)v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+xa(n)+"]",xa(r));else if(8192&n.flags){var h=Si(n.symbol,c);v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+h+"]",xa(r))}else 128&n.flags||256&n.flags?v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,xa(r)):12&n.flags&&(v=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,xa(n),xa(r)));v=e.chainDiagnosticMessages(v,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,xa(i),xa(r)),un.add(e.createDiagnosticForNodeFromMessageChain(c,v))}}}return}}if(r_(r))return Fe;if(a){d=o_(a);384&n.flags?Sn(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,xa(r)):12&n.flags?Sn(d,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,xa(r),xa(n)):Sn(d,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,xa(n))}return za(n)?n:void 0;function D(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&Sn(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,xa(r))}}function o_(e){return 205===e.kind?e.argumentExpression:192===e.kind?e.indexType:160===e.kind?e.expression:e}function s_(e){return!!(77&e.flags)}function c_(t){return!!(134217728&t.flags)&&e.every(t.types,s_)}function u_(e){return!!d_(e)}function l_(e){return!!(8388608&d_(e))}function __(e){return!!(16777216&d_(e))}function d_(t){return 3145728&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|e.reduceLeft(t.types,(function(e,t){return e|d_(t)}),0)),25165824&t.objectFlags):33554432&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|d_(t.substitute)|d_(t.baseType)),25165824&t.objectFlags):(58982400&t.flags||ac(t)||ef(t)?8388608:0)|(465829888&t.flags&&!c_(t)?16777216:0)}function p_(e){return!!(262144&e.flags&&e.isThisType)}function f_(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===vt?t:t[n];t[n]=vt;var i=f_(t.objectType,r),a=f_(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,(function(e){return f_(v_(t,e),n)}));return n?Ul(i):Ll(i)}}(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=g_(i,a,r);if(s)return t[n]=s}if(ef(i)&&296&a.flags){var c=nf(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}if(ac(i))return t[n]=rm(y_(i,t.indexType),(function(e){return f_(e,r)}));return t[n]=t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=A_(e),a=F_(e);if(131072&a.flags&&S_(i)===S_(r)){if(1&r.flags||Jd(Fd(r),Fd(n)))return f_(i,t);if(m_(r,n))return Qe}else if(131072&i.flags&&S_(a)===S_(r)){if(!(1&r.flags)&&Jd(Fd(r),Fd(n)))return Qe;if(1&r.flags||m_(r,n))return f_(a,t)}return e}(t,r):t}function g_(t,r,n){if(3145728&t.flags){var i=e.map(t.types,(function(e){return f_(v_(e,r),n)}));return 2097152&t.flags||n?Ul(i):Ll(i)}}function m_(e,t){return!!(131072&Ll([js(e,t),Qe]).flags)}function y_(e,t){var r=sd([Ys(e)],[t]),n=pd(e.mapper,r);return Td(Qs(e),n)}function v_(e,t,r,n,i,a){return void 0===r&&(r=0),D_(e,t,r,n,i,a)||(n?we:Me)}function h_(e,t){return Qg(e,(function(e){if(384&e.flags){var r=xs(e);if(ky(r)){var n=+r;return n>=0&&n=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:E,instantiationCount:C}),Sn(_,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),we;b++,C++,E++;var a=function(t,r,n,i){var a=t.flags;if(262144&a)return cd(t,r);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=id(s,r);return c!==s?Sl(t.target,c):t}return 1024&o?function(t,r){var n=Td(t.mappedType,r);if(!(32&e.getObjectFlags(n)))return t;var i=Td(t.constraintType,r);if(!(4194304&i.flags))return t;var a=Wf(Td(t.source,r),n,i);if(a)return a;return t}(t,r):function(t,r,n,i){var a=4&t.objectFlags?t.node:t.symbol.declarations[0],o=jn(a),s=4&t.objectFlags?o.resolvedType:64&t.objectFlags?t.target:t,c=o.outerTypeParameters;if(!c){var u=jo(a,!0);if(Ph(a)){var l=Hc(a);u=e.addRange(u,l)}c=u||e.emptyArray;var _=4&t.objectFlags?[a]:t.symbol.declarations;c=(4&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(function(t){return e.some(_,(function(e){return hd(t,e)}))})):c,o.outerTypeParameters=c}if(c.length){var d=pd(t.mapper,r),p=e.map(c,(function(e){return cd(e,d)})),f=n||t.aliasSymbol,g=n?i:id(t.aliasTypeArguments,r),m=Nu(p)+Pu(f,g);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(Nu(c)+Pu(s.aliasSymbol,s.aliasTypeArguments),s));var y=s.instantiations.get(m);if(!y){var v=sd(c,p);y=4&s.objectFlags?Mu(t.target,t.node,v,f,g):32&s.objectFlags?bd(s,v,f,g):Cd(s,v,f,g),s.instantiations.set(m,y)}return y}return t}(t,r,n,i)}return t}if(3145728&a){var u=1048576&t.flags?t.origin:void 0,l=u&&3145728&u.flags?u.types:t.types,_=id(l,r);if(_===l&&n===t.aliasSymbol)return t;var d=n||t.aliasSymbol,p=n?i:id(t.aliasTypeArguments,r);return 2097152&a||u&&2097152&u.flags?Ul(_,d,p):Ll(_,1,d,p)}if(4194304&a)return $l(Td(t.type,r));if(134217728&a)return Zl(t.texts,id(t.types,r));if(268435456&a)return t_(t.symbol,Td(t.type,r));if(8388608&a){d=n||t.aliasSymbol,p=n?i:id(t.aliasTypeArguments,r);return v_(Td(t.objectType,r),Td(t.indexType,r),t.accessFlags,void 0,d,p)}if(16777216&a)return Ed(t,pd(t.mapper,r),n,i);if(33554432&a){var f=Td(t.baseType,r);if(8650752&f.flags)return Vu(f,Td(t.substitute,r));var g=Td(t.substitute,r);return 3&g.flags||Jd(Fd(f),Fd(g))?f:g}return t}(t,r,n,i);return E--,a}function Ad(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Td(e,lt))}function Fd(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=Td(e,ut),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function Nd(e,t){return Su(e.keyType,Td(e.type,t),e.isReadonly,e.declaration)}function Pd(t){switch(e.Debug.assert(167!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 211:case 212:case 167:case 254:return wd(t);case 203:return e.some(t.properties,Pd);case 202:return e.some(t.elements,Pd);case 220:return Pd(t.whenTrue)||Pd(t.whenFalse);case 219:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(Pd(t.left)||Pd(t.right));case 291:return Pd(t.initializer);case 210:return Pd(t.expression);case 284:return e.some(t.properties,Pd)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,Pd);case 283:var r=t.initializer;return!!r&&Pd(r);case 286:var n=t.expression;return!!n&&Pd(n)}return!1}function wd(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!Qa(t))&&(e.hasContextSensitiveParameters(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&233!==t.body.kind&&Pd(t.body)}(t))}function Id(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||Dy(t)||e.isObjectLiteralMethod(t))&&wd(t)}function Od(t){if(524288&t.flags){var r=oc(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Zi(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n.indexInfos=e.emptyArray,n}}else if(2097152&t.flags)return Ul(e.map(t.types,Od));return t}function Md(e,t){return up(e,t,yn)}function Ld(e,t){return up(e,t,yn)?-1:0}function Rd(e,t){return up(e,t,gn)?-1:0}function Bd(e,t){return up(e,t,pn)?-1:0}function jd(e,t){return up(e,t,pn)}function Jd(e,t){return up(e,t,gn)}function Kd(t,r){return 1048576&t.flags?e.every(t.types,(function(e){return Kd(e,r)})):1048576&r.flags?e.some(r.types,(function(e){return Kd(t,e)})):58982400&t.flags?Kd(yc(t)||Me,r):r===Tt?!!(67633152&t.flags):r===kt?!!(524288&t.flags)&&Pg(t):Ro(t,Lo(r))||Op(r)&&!Mp(r)&&Kd(t,Pt)}function zd(e,t){return up(e,t,mn)}function Ud(e,t){return zd(e,t)||zd(t,e)}function Vd(e,t,r,n,i,a){return dp(e,t,gn,r,n,i,a)}function qd(e,t,r,n,i,a){return Wd(e,t,gn,r,n,i,a,void 0)}function Wd(e,t,r,n,i,a,o,s){return!!up(e,t,r)||(!n||!Gd(i,e,t,r,a,o,s))&&dp(e,t,r,n,a,o,s)}function Hd(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,Hd))}function Gd(t,n,a,o,s,c,u){if(!t||Hd(a))return!1;if(!dp(n,a,o,void 0)&&function(t,r,n,i,a,o,s){for(var c=Lc(r,0),u=Lc(r,1),l=0,_=[u,c];l<_.length;l++){var d=_[l];if(e.some(d,(function(e){var t=lu(e);return!(131073&t.flags)&&dp(t,n,i,void 0)}))){var p=s||{};Vd(r,n,t,a,o,p);var f=p.errors[p.errors.length-1];return e.addRelatedInfo(f,e.createDiagnosticForNode(t,d===u?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(t,n,a,o,s,c,u))return!0;switch(t.kind){case 286:case 210:return Gd(t.expression,n,a,o,s,c,u);case 219:switch(t.operatorToken.kind){case 63:case 27:return Gd(t.right,n,a,o,s,c,u)}break;case 203:return function(t,r,n,a,o,s){return!(131068&n.flags)&&$d(function(t){var r,n,a,o;return i(this,(function(i){switch(i.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,i.label=1;case 1:if(!(r1,v=Zg(g,Up),h=Zg(g,(function(e){return!Up(e)}));if(y){if(v!==Qe){var D=bl(Ry(_,0));l=$d(function(t,r){var n,a,o,s,c;return i(this,(function(i){switch(i.label){case 0:if(!e.length(t.children))return[2];n=0,a=0,i.label=1;case 1:return au:nD(t)>u))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Zv(t,r=vu(r),void 0,s));var l=rD(t),_=oD(t),d=oD(r);if((_||d)&&Td(_||d,c),_&&d&&l!==u)return 0;var p=r.declaration?r.declaration.kind:0,f=!(3&n)&&H&&167!==p&&166!==p&&169!==p,g=-1,m=su(t);if(m&&m!==$e){var y=su(r);if(y){if(!(S=!f&&s(m,y,!1)||s(y,m,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;g&=S}}for(var v=_||d?Math.min(l,u):Math.max(l,u),h=_||d?v-1:-1,D=0;D=nD(t)&&D0||ZS(c));if(f&&!function(e,t,r){for(var n=0,i=lc(e);n0&&B(lu(v[0]),u,!1)||h.length>0&&B(lu(h[0]),u,!1)?M(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,g,y):M(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,g,y)}return 0}j(c,u);var D=0,x=w();if((3145728&c.flags||3145728&u.flags)&&(D=im(c)*im(u)>=4?q(c,u,n,8|s):H(c,u,n,8|s)),D||1048576&c.flags||!(469499904&c.flags||469499904&u.flags)||(D=q(c,u,n,s))&&P(x),!D&&2359296&c.flags){var C=function(t,r){for(var n,i=!1,a=0,o=t;a0;if(p&&b--,524288&i.flags&&524288&s.flags){var f=l;R(i,s,n),l!==f&&(p=!!l)}if(524288&i.flags&&131068&s.flags)!function(t,r){var n=Ea(t.symbol)?xa(t,t.symbol.valueDeclaration):xa(t),i=Ea(r.symbol)?xa(r,r.symbol.valueDeclaration):xa(r);(wt===t&&ze===r||It===t&&Ue===r||Ot===t&&Ye===r||sl(!1)===t&&Xe===r)&&M(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(i,s);else if(i.symbol&&524288&i.flags&&Tt===i)M(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(u&&2097152&s.flags){var g=s.types,y=Jy(F.IntrinsicAttributes,a),v=Jy(F.IntrinsicClassAttributes,a);if(y!==we&&v!==we&&(e.contains(g,y)||e.contains(g,v)))return c}else l=Ic(l,r);if(!o&&p)return m=[i,s],c;L(o,i,s)}}}function j(t,r){if(e.tracing&&3145728&t.flags&&3145728&r.flags){var n=t,i=r;if(n.objectFlags&i.objectFlags&65536)return;var o=n.types.length,s=i.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:o,targetId:r.id,targetSize:s,pos:null==a?void 0:a.pos,end:null==a?void 0:a.end})}}function J(e,t){for(var r=-1,n=0,i=e.types;n=o.types.length&&a.length%o.types.length==0){var u=B(c,o.types[s%o.types.length],!1,void 0,n);if(u){i&=u;continue}}var l=B(c,t,r,void 0,n);if(!l)return 0;i&=l}return i}function q(t,r,n,a){if(D)return 0;var o=Cp(t,r,a|(S?16:0),i),s=i.get(o);if(void 0!==s&&(!(n&&2&s)||4&s)){if(mr){var c=24&s;8&c&&Td(t,ld(G)),16&c&&Td(t,ld(Y))}return 1&s?-1:0}if(p){for(var u=o.split(",").map((function(t){return t.replace(/-\d+/g,(function(t,r){return"="+e.length(o.slice(0,r).match(/[-=]/g)||void 0)}))})).join(","),l=0;l25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:a}),0}for(var c=new Array(n.length),u=new e.Set,l=0;l5?M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,xa(r),xa(n),e.map(m.slice(0,4),(function(e){return Da(e)})).join(", "),m.length-4):M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,xa(r),xa(n),e.map(m,(function(e){return Da(e)})).join(", ")),s&&l&&b++)}function ee(t,r,n,a,o){if(i===yn)return function(e,t,r){if(!(524288&e.flags&&524288&t.flags))return 0;var n=$(sc(e),r),i=$(sc(t),r);if(n.length!==i.length)return 0;for(var a=-1,o=0,s=n;o=u-y)?t.target.elementFlags[D]:4,x=r.target.elementFlags[h];if(8&x&&!(8&b))return n&&M(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,h),0;if(8&b&&!(12&x))return n&&M(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,D,h),0;if(1&x&&!(1&b))return n&&M(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,h),0;if(!(v&&((12&b||12&x)&&(v=!1),v&&(null==a?void 0:a.has(""+h))))){var S=Zp(t)?h=u-y?vf(f[D],!!(b&x&2)):nf(t,m,y)||Qe:f[0],C=g[h];if(!(j=B(S,8&b&&4&x?fl(C):vf(C,!!(2&x)),n,void 0,o)))return n&&(u>1||c>1)&&(h=u-y||c-m-y==1?I(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,D,h):I(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,m,c-y-1,h)),0;s&=j}}return s}if(12&r.target.combinedFlags)return 0}var E=!(i!==pn&&i!==fn||og(t)||Kp(t)||Zp(t)),T=Xf(t,r,E,!1);if(T)return n&&Z(t,r,T,E),0;if(og(r))for(var k=0,A=$(lc(t),a);k0||Lc(t,n=1).length>0)return e.find(r.types,(function(e){return Lc(e,n).length>0}))}(t,r)||function(t,r){for(var n,i=0,a=0,o=r.types;a=i&&(n=s,i=u)}else qp(c)&&1>=i&&(n=s,i=1)}return n}(t,r)}function gp(t,r,n,i,a){for(var o=t.types.map((function(e){})),s=0,c=r;s0&&e.every(r.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&t.flags)&&e.every(t.types,mp)}function yp(t,r,n){var i=Iu(t,e.map(t.typeParameters,(function(e){return e===r?n:e})));return i.objectFlags|=4096,i}function vp(e){var t=Bn(e);return hp(t.typeParameters,t,(function(r,n,i){var a=ju(e,id(t.typeParameters,ud(n,i)));return a.aliasTypeArgumentsContainsMarker=!0,a}))}function hp(t,r,n){var i,a,o;void 0===t&&(t=e.emptyArray);var s=r.variances;if(!s){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:t.length,id:null!==(o=null!==(i=r.id)&&void 0!==i?i:null===(a=r.declaredType)||void 0===a?void 0:a.id)&&void 0!==o?o:-1}),r.variances=e.emptyArray,s=[];for(var c=function(e){var t=!1,i=!1,a=mr;mr=function(e){return e?i=!0:t=!0};var o=n(r,e,Dt),c=n(r,e,bt),u=(Jd(c,o)?1:0)|(Jd(o,c)?2:0);3===u&&Jd(n(r,e,yr),o)&&(u=4),mr=a,(t||i)&&(t&&(u|=8),i&&(u|=16)),s.push(u)},u=0,l=t;u":n+="-"+o.id}return n}function Cp(e,t,r,n){if(n===yn&&e.id>t.id){var i=e;e=t,t=i}var a=r?":"+r:"";if(xp(e)&&xp(t)){var o=[];return Sp(e,o)+","+Sp(t,o)+a}return e.id+","+t.id+a}function Ep(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n=5)for(var n=Fp(e),i=0,a=0;a=5)return!0;return!1}function Fp(t){if(524288&t.flags&&!sg(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(Zp(t))return t.target}if(262144&t.flags)return t.symbol;if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}return 16777216&t.flags?t.root:t}function Np(e,t){return 0!==Pp(e,t,Ld)}function Pp(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(uS(t)!==uS(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return TD(t)!==TD(r)?0:n(Io(t),Io(r))}function wp(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=rD(e),i=rD(t),a=nD(e),o=nD(t),s=iD(e),c=iD(t);return n===i&&a===o&&s===c||!!(r&&a<=o)}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;if(r.typeParameters){for(var s=sd(t.typeParameters,r.typeParameters),c=0;ce.length(r.typeParameters)&&(a=ks(a,e.last(Lu(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=a}}}function Jp(e){return W?e===tt:e===Re}function Kp(e){var t=Rp(e);return!!t&&Jp(t)}function zp(e){return Zp(e)||!!Oc(e,"0")}function Up(e){return Bp(e)||zp(e)}function Vp(e){return!(240512&e.flags)}function qp(e){return!!(109440&e.flags)}function Wp(t){return 2097152&t.flags?e.some(t.types,qp):!!(109440&t.flags)}function Hp(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,qp):qp(t))}function Gp(e){return 1024&e.flags?ns(e):128&e.flags?ze:256&e.flags?Ue:2048&e.flags?Ve:512&e.flags?Ye:1048576&e.flags?rm(e,Gp):e}function Yp(e){return 1024&e.flags&&W_(e)?ns(e):128&e.flags&&W_(e)?ze:256&e.flags&&W_(e)?Ue:2048&e.flags&&W_(e)?Ve:512&e.flags&&W_(e)?Ye:1048576&e.flags?rm(e,Yp):e}function Xp(e){return 8192&e.flags?Xe:1048576&e.flags?rm(e,Xp):e}function $p(e,t){return XD(e,t)||(e=Xp(Yp(e))),e}function Qp(e,t,r,n){e&&qp(e)&&(e=$p(e,t?Gx(r,t,n):void 0));return e}function Zp(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function ef(e){return Zp(e)&&!!(8&e.target.combinedFlags)}function tf(e){return ef(e)&&1===e.target.elementFlags.length}function rf(e){return nf(e,e.target.fixedLength)}function nf(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=Ru(e)-r;if(t-1&&(Vn(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o);return void En(X,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}a=t.dotDotDotToken?X?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:X?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 201:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!X)return;break;case 312:return void Sn(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 254:case 167:case 166:case 170:case 171:case 211:case 212:if(X&&!t.name)return void Sn(t,3===n?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=X?3===n?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 193:return void(X&&Sn(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=X?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}En(X,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function If(t,r,n){!(a&&X&&131072&e.getObjectFlags(r))||n&&by(t)||Pf(r)||wf(t,r,n)}function Of(e,t,r){var n=rD(e),i=rD(t),a=aD(e),o=aD(t),s=o?i-1:i,c=a?s:Math.min(n,s),u=su(e);if(u){var l=su(t);l&&r(u,l)}for(var _=0;_0){for(var y=p,v=f;!((v=h(y).indexOf(m,v))>=0);){if(++y===e.length)return;v=0}D(y,v),f+=m.length}else if(f0)for(var x=0,S=r;xe.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength1){var r=e.filter(t,sg);if(r.length){var n=Ll(r,2);return e.concatenate(e.filter(t,(function(e){return!sg(e)})),[n])}}return t}(t.candidates),i=function(e){var t=dc(e);return!!t&&PD(16777216&t.flags?fc(t):t,406978556)}(t.typeParameter),a=!i&&t.topLevel&&(t.isFixed||!qf(lu(r),t.typeParameter)),o=i?e.sameMap(n,q_):a?e.sameMap(n,Yp):n;return Ff(416&t.priority?Ll(o,2):function(t){if(!W)return Ip(t);var r=e.filter(t,(function(e){return!(98304&e.flags)}));return r.length?_f(Ip(r),98304&of(t)):Ll(t,2)}(o))}function lg(t,r){var n,i,a=t.inferences[r];if(!a.inferredType){var o=void 0,s=t.signature;if(s){var c=a.candidates?ug(a,s):void 0;if(a.contraCandidates){var u=cg(a);o=!c||131072&c.flags||!jd(c,u)?u:c}else if(c)o=c;else if(1&t.flags)o=Ze;else{var l=xc(a.typeParameter);l&&(o=Td(l,(n=function(t,r){return ld((function(n){return e.findIndex(t.inferences,(function(e){return e.typeParameter===n}))>=r?Me:n}))}(t,r),i=t.nonFixingMapper,n?_d(4,n,i):i)))}}else o=$f(a);a.inferredType=o||_g(!!(2&t.flags));var _=dc(a.typeParameter);if(_){var d=Td(_,t.nonFixingMapper);o&&t.compareTypes(o,ks(d,o))||(a.inferredType=o=d)}}return a.inferredType}function _g(e){return e?Fe:Me}function dg(e){for(var t=[],r=0;r=10&&2*i>=t.length?n:void 0}(r,n);t.keyPropertyName=i?n:"",t.constituentMap=i}return t.keyPropertyName.length?t.keyPropertyName:void 0}}function Eg(e,t){var r,n=null===(r=e.constituentMap)||void 0===r?void 0:r.get(Fl(q_(t)));return n!==Me?n:void 0}function Tg(e,t){var r=Cg(e),n=r&&Ka(t,r);return n&&Eg(e,n)}function kg(e,t){return yg(e,t)||Dg(e,t)}function Ag(e,t){if(e.arguments)for(var r=0,n=e.arguments;r=0&&r.parameterIndex=n&&c-1){var l=a.filter((function(e){return void 0!==e})),_=c=2||0==(34&r.flags)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||290===r.valueDeclaration.parent.kind)return;var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,(function(t){return t===r?"quit":e.isFunctionLike(t)||t.parent&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t}))}(t,n),a=Lm(n);if(a){if(i){var o=!0;if(e.isForStatement(n))if((l=e.getAncestor(r.valueDeclaration,253))&&l.parent===n){var s=function(t,r){return e.findAncestor(t,(function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement}))}(t.parent,n);if(s){var c=jn(s);c.flags|=131072;var u=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(u,r),s===n.initializer&&(o=!1)}}o&&(jn(a).flags|=65536)}var l;if(e.isForStatement(n))(l=e.getAncestor(r.valueDeclaration,253))&&l.parent===n&&function(t,r){var n=t;for(;210===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(217===n.parent.kind||218===n.parent.kind){var a=n.parent;i=45===a.operator||46===a.operator}if(!i)return!1;return!!e.findAncestor(n,(function(e){return e===r?"quit":e===r.statement}))}(t,n)&&(jn(r.valueDeclaration).flags|=4194304);jn(r.valueDeclaration).flags|=524288}i&&(jn(r.valueDeclaration).flags|=262144)}(t,n);var c=Io(a),u=e.getAssignmentTargetKind(t);if(u){if(!(3&a.flags||e.isInJSFile(t)&&512&a.flags))return Sn(t,384&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Da(n)),we;if(TD(a))return 3&a.flags?Sn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Da(n)):Sn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Da(n)),we}var l=2097152&a.flags;if(3&a.flags){if(1===u)return c}else{if(!l)return c;s=ti(n)}if(!s)return c;c=wm(c,t,r);for(var _=162===e.getRootDeclaration(s).kind,d=Tm(s),p=Tm(t),f=p!==d,g=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&jg(t.parent.parent),m=134217728&n.flags;p!==d&&(211===p.kind||212===p.kind||e.isObjectLiteralOrClassExpressionMethod(p))&&(Fm(a)&&c!==Bt||_&&!km(a));)p=Tm(p);var y=_||l||f||g||m||e.isBindingElement(s)||c!==Ne&&c!==Bt&&(!W||0!=(16387&c.flags)||gg(t)||273===t.parent.kind)||228===t.parent.kind||252===s.kind&&s.exclamationToken||8388608&s.flags,v=Em(t,c,y?_?function(e,t){if(La(t.symbol,2)){var r=W&&162===t.kind&&t.initializer&&32768&sf(e)&&!(32768&sf(lb(t.initializer)));return ja(),r?Ig(e,524288):e}return Po(t.symbol),e}(c,s):c:c===Ne||c===Bt?Le:df(c),p);if(gm(t)||c!==Ne&&c!==Bt){if(!y&&!(32768&sf(c))&&32768&sf(v))return Sn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Da(n)),c}else if(v===Ne||v===Bt)return X&&(Sn(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Da(n),xa(v)),Sn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Da(n),xa(v))),dx(v);return u?Gp(v):v}function Lm(t){return e.findAncestor(t,(function(t){return!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)}))}function Rm(e,t){(jn(e).flags|=2,165===t.kind||169===t.kind)?jn(t.parent).flags|=4:jn(t).flags|=4}function Bm(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,Bm)}function jm(e){return Ho(ss(Ki(e)))===Ke}function Jm(t,r,n){var i=r.parent;e.getClassExtendsHeritageElement(i)&&!jm(i)&&t.flowNode&&!Sm(t.flowNode,!1)&&Sn(t,n)}function Km(t){var r=gg(t),n=e.getThisContainer(t,!0),i=!1;switch(169===n.kind&&Jm(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),212===n.kind&&(n=e.getThisContainer(n,!1),i=!0),function(t,r){e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)&&r.initializer&&e.textRangeContainsPositionInclusive(r.initializer,t.pos)&&e.length(r.parent.decorators)&&Sn(t,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(t,n),n.kind){case 259:Sn(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 258:Sn(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 169:Um(t,n)&&Sn(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 160:Sn(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}!r&&i&&z<2&&Rm(t,n);var a=zm(t,!0,n);if($){var o=Io(se);if(a===o&&i)Sn(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var s=Sn(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(n)){var c=zm(n);c&&c!==o&&e.addRelatedInfo(s,e.createDiagnosticForNode(n,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||Fe}function zm(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.getThisContainer(t,!1));var i=e.isInJSFile(t);if(e.isFunctionLike(n)&&(!Xm(t)||e.getThisParameter(n))){var a=su(ru(n))||i&&function(t){var r=e.getJSDocType(t);if(r&&312===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return td(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return td(i.typeExpression)}(n);if(!a){var o=function(t){if(211===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent))return t.parent.left.expression.expression;if(167===t.kind&&203===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.left.expression;if(211===t.kind&&291===t.parent.kind&&203===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent))return t.parent.parent.parent.left.expression;if(211===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent))return t.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent))return t.parent.parent.arguments[0].expression}(n);if(i&&o){var s=lb(o).symbol;s&&s.members&&16&s.flags&&(a=ss(s).thisType)}else Ph(n)&&(a=ss(Ji(n.symbol)).thisType);a||(a=Hm(n))}if(a)return Em(t,a)}if(e.isClassLike(n.parent)){var c=Ki(n.parent);return Em(t,e.isStatic(n)?Io(c):ss(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var u=Ki(n);return u&&Io(u)}if(n.externalModuleIndicator)return Le;if(r)return Io(se)}}function Um(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":162===t.kind&&t.parent===r}))}function Vm(t){var r=206===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1;if(!r)for(;i&&212===i.kind;)i=e.getSuperContainer(i,!0),a=z<2;var o=0;if(!function(t){if(!t)return!1;if(r)return 169===t.kind;if(e.isClassLike(t.parent)||203===t.parent.kind)return e.isStatic(t)?167===t.kind||166===t.kind||170===t.kind||171===t.kind||165===t.kind||168===t.kind:167===t.kind||166===t.kind||170===t.kind||171===t.kind||165===t.kind||164===t.kind||169===t.kind;return!1}(i)){var s=e.findAncestor(t,(function(e){return e===i?"quit":160===e.kind}));return s&&160===s.kind?Sn(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Sn(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||203===i.parent.kind)?Sn(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Sn(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),we}if(r||169!==n.kind||Jm(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||r?(o=512,!r&&z>=2&&z<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(t.parent,(function(t){e.isSourceFile(t)&&!e.isExternalOrCommonJsModule(t)||(jn(t).flags|=134217728)}))):o=256,jn(t).flags|=o,167===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?jn(i).flags|=4096:jn(i).flags|=2048),a&&Rm(t.parent,i),203===i.parent.kind)return z<2?(Sn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),we):Fe;var c=i.parent;if(!e.getClassExtendsHeritageElement(c))return Sn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),we;var u=ss(Ki(c)),l=u&&Yo(u)[0];return l?169===i.kind&&Um(t,i)?(Sn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),we):512===o?Ho(u):ks(l,u.thisType):we}function qm(t){return 4&e.getObjectFlags(t)&&t.target===Lt?Lu(t)[0]:void 0}function Wm(t){return rm(t,(function(t){return 2097152&t.flags?e.forEach(t.types,qm):qm(t)}))}function Hm(t){if(212!==t.kind){if(Id(t)){var r=xy(t);if(r){var n=r.thisParameter;if(n)return Io(n)}}var i=e.isInJSFile(t);if($||i){var a=function(e){return 167!==e.kind&&170!==e.kind&&171!==e.kind||203!==e.parent.kind?211===e.kind&&291===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=_y(a),s=a,c=o;c;){var u=Wm(c);if(u)return Td(u,zf(gy(a)));if(291!==s.parent.kind)break;c=_y(s=s.parent.parent)}return Ff(o?pf(o):WD(a))}var l=e.walkUpParenthesizedExpressions(t.parent);if(219===l.kind&&63===l.operatorToken.kind){var _=l.left;if(e.isAccessExpression(_)){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&fg(d)===p.symbol)return}return Ff(WD(d))}}}}}function Gm(t){var r=t.parent;if(Id(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=uh(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return nh(i,a,i.length,Fe,void 0,0);var o=jn(n),s=o.resolvedSignature;o.resolvedSignature=hr;var c=a=i?v_(Io(n.parameters[i]),G_(r-i),256):Zh(n,r)}function ty(t,r){var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 63:case 76:case 75:case 77:return t===o?function(t){var r,n,i=e.getAssignmentDeclarationKind(t);switch(i){case 0:case 4:var a=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t))return fg(t);if(e.isPropertyAccessExpression(t)){var r=sb(t.expression);return e.isPrivateIdentifier(t.name)?n(r,t.name):Oc(r,t.name.escapedText)}return;function n(e,t){var r=yv(t.escapedText,t);return r&&vv(e,r)}}(t.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&Td(td(c),Bn(a).mapper)||o.initializer&&sb(t.left):0===i?sb(t.left):ny(t);case 5:if(ry(t,i))return ny(t);if(t.left.symbol){var s=t.left.symbol.valueDeclaration;if(!s)return;var c,u=e.cast(t.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return td(c);if(e.isIdentifier(u.expression)){var l=u.expression,_=Vn(l,l.escapedText,111551,void 0,l.escapedText,!0);if(_){var d=_.valueDeclaration&&e.getEffectiveTypeAnnotationNode(_.valueDeclaration);if(d){var p=e.getElementOrPropertyAccessName(u);if(void 0!==p)return iy(td(d),p)}return}}return e.isInJSFile(s)?void 0:sb(t.left)}return sb(t.left);case 1:case 6:case 3:var f=null===(r=t.left.symbol)||void 0===r?void 0:r.valueDeclaration;case 2:f||(f=null===(n=t.symbol)||void 0===n?void 0:n.valueDeclaration);var g=f&&e.getEffectiveTypeAnnotationNode(f);return g?td(g):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}}(n):void 0;case 56:case 60:var s=fy(n,r);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?sb(i):s;case 55:case 27:return t===o?fy(n,r):void 0;default:return}}function ry(t,r){if(void 0===r&&(r=e.getAssignmentDeclarationKind(t)),4===r)return!0;if(!e.isInJSFile(t)||5!==r||!e.isIdentifier(t.left.expression))return!1;var n=t.left.expression.escapedText,i=Vn(t.left,n,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function ny(t){if(!t.symbol)return sb(t.left);if(t.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(r){var n=td(r);if(n)return n}}var i=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=Km(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&iy(a,o)||void 0}}function iy(t,r){return rm(t,(function(t){var n,i;if(ac(t)){var a=Xs(t),o=yc(a)||a,s=H_(e.unescapeLeadingUnderscores(r));if(Jd(s,o))return y_(t,s)}else if(3670016&t.flags){var c=Oc(t,r);if(c)return i=c,262144&e.getCheckFlags(i)&&!i.type&&Ra(i,0)>=0?void 0:Io(c);if(Zp(t)){var u=rf(t);if(u&&ky(r)&&+r>=0)return u}return null===(n=Bc(Jc(t),H_(e.unescapeLeadingUnderscores(r))))||void 0===n?void 0:n.type}}),!0)}function ay(t,r){var n=t.parent,i=e.isPropertyAssignment(t)&&Ym(t);if(i)return i;var a=_y(n,r);if(a){if(bs(t))return iy(a,Ki(t).escapedName);if(t.name){var o=Gl(t.name);return rm(a,(function(e){var t;return null===(t=Bc(Jc(e),o))||void 0===t?void 0:t.type}),!0)}}}function oy(e,t){return e&&(iy(e,""+t)||rm(e,(function(e){return Tx(1,e,Le,void 0,!1)}),!0))}function sy(t){var r=t.parent;return e.isJsxAttributeLike(r)?fy(t):e.isJsxElement(r)?function(t,r){var n=_y(t.openingElement.tagName),i=qy(Uy(t));if(n&&!za(n)&&i&&""!==i){var a=e.getSemanticJsxChildren(t.children),o=a.indexOf(r),s=iy(n,i);return s&&(1===a.length?s:rm(s,(function(e){return Bp(e)?v_(e,G_(o)):e}),!0))}}(r,t):void 0}function cy(t){if(e.isJsxAttribute(t)){var r=_y(t.parent);if(!r||za(r))return;return iy(r,t.name.escapedText)}return fy(t.parent)}function uy(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 151:return!0;case 204:case 210:return uy(e.expression);case 286:return!e.expression||uy(e.expression)}return!1}function ly(t,r){return function(t,r){var n=Cg(t),i=n&&e.find(r.properties,(function(e){return e.symbol&&291===e.kind&&e.symbol.escapedName===n&&uy(e.initializer)})),a=i&&sb(i.initializer);return a&&Eg(t,a)}(r,t)||gp(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&291===e.kind&&uy(e.initializer)&&xg(r,e.symbol.escapedName)})),(function(e){return[function(){return ub(e.initializer)},e.symbol.escapedName]})),e.map(e.filter(lc(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&xg(r,e.escapedName)})),(function(e){return[function(){return Le},e.escapedName]}))),Jd,r)}function _y(t,r){var n=dy(e.isObjectLiteralMethod(t)?function(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(16777216&t.flags))return ay(t,r)}(t,r):fy(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=rm(n,Cc,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(t)?ly(t,i):1048576&i.flags&&e.isJsxAttributes(t)?function(t,r){return gp(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&283===e.kind&&xg(r,e.symbol.escapedName)&&(!e.initializer||uy(e.initializer))})),(function(e){return[e.initializer?function(){return lb(e.initializer)}:function(){return He},e.symbol.escapedName]})),e.map(e.filter(lc(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&xg(r,e.escapedName)})),(function(e){return[function(){return Le},e.escapedName]}))),Jd,r)}(t,i):i}}function dy(t,r,n){if(t&&PD(t,465829888)){var i=gy(r);if(i&&e.some(i.inferences,nb)){if(n&&1&n)return py(t,i.nonFixingMapper);if(i.returnMapper)return py(t,i.returnMapper)}}return t}function py(t,r){return 465829888&t.flags?Td(t,r):1048576&t.flags?Ll(e.map(t.types,(function(e){return py(e,r)})),0):2097152&t.flags?Ul(e.map(t.types,(function(e){return py(e,r)}))):t}function fy(t,r){if(16777216&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 252:case 162:case 165:case 164:case 201:return function(t,r){var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=Ym(n);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name))return go(n.name,!0,!1)}}(t,r);case 212:case 245:return function(t){var r=e.getContainingFunction(t);if(r){var n=Qm(r);if(n){var i=e.getFunctionFlags(r);if(1&i){var a=wx(n,2&i?2:1,void 0);if(!a)return;n=a.returnType}if(2&i){var o=rm(n,Ob);return o&&Ll([o,pD(o)])}return n}}}(t);case 222:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=Qm(r);if(i)return t.asteriskToken?i:Gx(0,i,0!=(2&n))}}(n);case 216:return function(e,t){var r=fy(e,t);if(r){var n=Ob(r);return n&&Ll([n,pD(n)])}}(n,r);case 206:if(100===n.expression.kind)return ze;case 207:return Zm(n,t);case 209:case 227:return e.isConstTypeReference(n.type)?function(e){return fy(e)}(n):td(n.type);case 219:return ty(t,r);case 291:case 292:return ay(n,r);case 293:return fy(n.parent,r);case 202:var i=n;return oy(_y(i,r),e.indexOfNode(i.elements,t));case 220:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?fy(r,t):void 0}(t,r);case 231:return e.Debug.assert(221===n.parent.kind),function(e,t){if(208===e.parent.kind)return Zm(e.parent,t)}(n.parent,t);case 210:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?td(a.typeExpression.type):fy(n,r);case 228:return fy(n,r);case 286:return sy(n);case 283:case 285:return cy(n);case 278:case 277:return function(t,r){if(e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r)return t.parent.contextualType;return ey(t,0)}(n,r)}}}function gy(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function my(t,r){return 0!==ah(r)?function(e,t){var r=cD(e,Me);r=yy(t,Uy(t),r);var n=Jy(F.IntrinsicAttributes,t);n!==we&&(r=js(n,r));return r}(t,r):function(t,r){var n=Uy(r),i=(o=n,Vy(F.ElementAttributesPropertyNameContainer,o)),a=void 0===i?cD(t,Me):""===i?lu(t):function(e,t){if(e.compositeSignatures){for(var r=[],n=0,i=e.compositeSignatures;n=2)return ju(a,tu([s,n],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return Iu(o,tu([s,n],o.typeParameters,2,e.isInJSFile(t)))}return n}function vy(t){return e.getStrictOptionValue(K,"noImplicitAny")?e.reduceLeft(t,(function(t,r){return t!==r&&t?Rs(t.typeParameters,r.typeParameters)?function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=sd(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=rD(e),i=rD(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=iD(e)||iD(t),u=c&&!iD(a),l=new Array(s+(u?1:0)),_=0;_=nD(a)&&_>=nD(o),y=_>=n?void 0:Yh(e,_),v=_>=i?void 0:Yh(t,_),h=Fn(1|(m&&!g?16777216:0),(y===v?y:y?v?void 0:y:v)||"arg"+_);h.type=g?fl(f):f,l[_]=h}if(u){var D=Fn(1,"args");D.type=fl(Zh(o,s)),o===t&&(D.type=Td(D.type,r)),l[s]=D}return l}(t,r,n),s=function(e,t,r){if(!e||!t)return e||t;var n=Ll([Io(e),Td(Io(t),r)]);return xf(e,n)}(t.thisParameter,r.thisParameter,n),c=Math.max(t.minArgumentCount,r.minArgumentCount),u=Fs(a,i,s,o,void 0,void 0,c,39&(t.flags|r.flags));u.compositeKind=2097152,u.compositeSignatures=e.concatenate(2097152===t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(u.mapper=2097152===t.compositeKind&&t.mapper&&t.compositeSignatures?pd(t.mapper,n):n);return u}(t,r):void 0:t})):void 0}function hy(t,r){var n=Lc(t,0),i=e.filter(n,(function(t){return!function(t,r){for(var n=0;n0&&(s=J_(s,R(),t.symbol,g,l),o=[],a=e.createSymbolTable(),y=!1,v=!1,h=!1),Iy(F=Fc(lb(T.expression)))){var O=j_(F,l);if(i&&By(O,i,T),S=o.length,s===we)continue;s=J_(s,O,t.symbol,g,l)}else Sn(T,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=we;continue}e.Debug.assert(170===T.kind||171===T.kind),wS(T)}!A||8576&A.flags?a.set(k.escapedName,k):Jd(A,at)&&(Jd(A,Ue)?v=!0:Jd(A,Xe)?h=!0:y=!0,n&&(m=!0)),o.push(k)}if(u&&293!==t.parent.kind)for(var M=0,L=lc(c);M0&&(s=J_(s,R(),t.symbol,g,l),o=[],a=e.createSymbolTable(),y=!1,v=!1),rm(s,(function(e){return e===_t?R():e}))):R();function R(){var r=[];y&&r.push(Ny(t,S,o,ze)),v&&r.push(Ny(t,S,o,Ue)),h&&r.push(Ny(t,S,o,Xe));var i=ia(t.symbol,a,e.emptyArray,e.emptyArray,r);return i.objectFlags|=262272|g,f&&(i.objectFlags|=8192),m&&(i.objectFlags|=512),n&&(i.pattern=t),i}}function Iy(t){if(465829888&t.flags){var r=yc(t);if(void 0!==r)return Iy(r)}return!!(126615553&t.flags||117632&sf(t)&&Iy(cf(t))||3145728&t.flags&&e.every(t.types,Iy))}function Oy(t){return e.stringContains(t,"-")}function My(t){return 79===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function Ly(e,t){return e.initializer?QD(e.initializer,t):He}function Ry(e,t){for(var r=[],n=0,i=e.children;n0&&(s=J_(s,C(),i.symbol,l,!1),o=e.createSymbolTable()),za(m=Fc(WD(f.expression,r)))&&(c=!0),Iy(m)?(s=J_(s,m,i.symbol,l,!1),a&&By(m,a,f)):n=n?Ul([n,m]):m}c||o.size>0&&(s=J_(s,C(),i.symbol,l,!1));var v=276===t.parent.kind?t.parent:void 0;if(v&&v.openingElement===t&&v.children.length>0){var h=Ry(v,r);if(!c&&_&&""!==_){u&&Sn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(_));var D=_y(t.attributes),b=D&&iy(D,_),x=Fn(4,_);x.type=1===h.length?h[0]:b&&$g(b,zp)?bl(h):fl(Ll(h)),x.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(_),void 0,void 0),e.setParent(x.valueDeclaration,i),x.valueDeclaration.symbol=x;var S=e.createSymbolTable();S.set(_,x),s=J_(s,ia(i.symbol,S,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,l,!1)}}return c?Fe:n&&s!==dt?Ul([n,s]):n||(s===dt?C():s);function C(){l|=ee;var t=ia(i.symbol,o,e.emptyArray,e.emptyArray,e.emptyArray);return t.objectFlags|=262272|l,t}}(t.parent,r)}function Jy(e,t){var r=Uy(t),n=r&&Li(r),i=n&&Kn(n,e,788968);return i?ss(i):we}function Ky(t){var r=jn(t);if(!r.resolvedSymbol){var n=Jy(F.IntrinsicElements,t);if(n!==we){if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=Oc(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):Uc(n,ze)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(Sn(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+F.IntrinsicElements),r.resolvedSymbol=ke)}return X&&Sn(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(F.IntrinsicElements)),r.resolvedSymbol=ke}return r.resolvedSymbol}function zy(t){var r=t&&e.getSourceFileOfNode(t),n=r&&jn(r);if(!n||!1!==n.jsxImplicitImportContainer){if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(K,r),K);if(i){var a=Ai(t,i,e.getEmitModuleResolutionKind(K)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,t),o=a&&a!==ke?Ji(gi(a)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}}}function Uy(e){var t=e&&jn(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=zy(e);if(!r||r===ke){var n=Dn(e);r=Vn(e,n,1920,void 0,n,!1)}if(r){var i=gi(Kn(Li(gi(r)),F.JSX,1920));if(i&&i!==ke)return t&&(t.jsxNamespace=i),i}t&&(t.jsxNamespace=!1)}var a=gi(nl(F.JSX,1920,void 0));return a!==ke?a:void 0}function Vy(t,r){var n=r&&Kn(r.exports,t,788968),i=n&&ss(n),a=i&&lc(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&n.declarations&&Sn(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function qy(e){return Vy(F.ElementChildrenAttributeNameContainer,e)}function Wy(t,r){if(4&t.flags)return[hr];if(128&t.flags){var n=Hy(t,r);return n?[kh(r,n)]:(Sn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+F.IntrinsicElements),e.emptyArray)}var i=Cc(t),a=Lc(i,1);return 0===a.length&&(a=Lc(i,0)),0===a.length&&1048576&i.flags&&(a=Ls(e.map(i.types,(function(e){return Wy(e,r)})))),a}function Hy(t,r){var n=Jy(F.IntrinsicElements,r);if(n!==we){var i=t.value,a=Oc(n,e.escapeLeadingUnderscores(i));if(a)return Io(a);var o=Uc(n,ze);return o||void 0}return Fe}function Gy(t){e.Debug.assert(My(t.tagName));var r=jn(t);if(!r.resolvedJsxElementAttributesType){var n=Ky(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=Io(n)||we:2&r.jsxFlags?r.resolvedJsxElementAttributesType=Uc(Jy(F.IntrinsicElements,t),ze)||we:r.resolvedJsxElementAttributesType=we}return r.resolvedJsxElementAttributesType}function Yy(e){var t=Jy(F.ElementClass,e);if(t!==we)return t}function Xy(e){return Jy(F.Element,e)}function $y(e){var t=Xy(e);if(t)return Ll([t,Je])}function Qy(t){var r,n=e.isJsxOpeningLikeElement(t);if(n&&function(t){(function(t){if(e.isPropertyAccessExpression(t)){var r=t;do{var n=a(r.name);if(n)return n;r=r.expression}while(e.isPropertyAccessExpression(r));var i=a(r);if(i)return i}function a(t){if(e.isIdentifier(t)&&-1!==e.idText(t).indexOf(":"))return uE(t,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(t.tagName),zC(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n=0)return _>=nD(n)&&(iD(n)||_s)return!1;if(o||a>=c)return!0;for(var d=a;d=i&&r.length<=n}function Xv(e){return Qv(e,0,!1)}function $v(e){return Qv(e,0,!1)||Qv(e,1,!1)}function Qv(e,t,r){if(524288&e.flags){var n=oc(e);if(r||0===n.properties.length&&0===n.indexInfos.length){if(0===t&&1===n.callSignatures.length&&0===n.constructSignatures.length)return n.callSignatures[0];if(1===t&&1===n.constructSignatures.length&&0===n.callSignatures.length)return n.constructSignatures[0]}}}function Zv(t,r,n,i){var a=Lf(t.typeParameters,t,0,i),o=aD(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return Of(s?yd(r,s):r,t,(function(e,t){ng(a.inferences,e,t)})),n||Mf(r,t,(function(e,t){ng(a.inferences,e,t,128)})),fu(t,dg(a),e.isInJSFile(r.declaration))}function eh(t){if(!t)return $e;var r=lb(t);return e.isOptionalChainRoot(t.parent)?pf(r):e.isOptionalChain(t.parent)?gf(r):r}function th(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=my(t,e),a=qD(e.attributes,i,n,r);return ng(n.inferences,a,i),dg(n)}(t,r,i,a);if(163!==t.kind){var o=fy(t,e.every(r.typeParameters,(function(e){return!!xc(e)}))?8:0);if(o){var s=gy(t),c=Td(o,zf(function(t,r){return void 0===r&&(r=0),t&&Rf(e.map(t.inferences,Kf),t.signature,t.flags|r,t.compareTypes)}(s,1))),u=Xv(c),l=u&&u.typeParameters?Du(gu(u,u.typeParameters)):c,_=lu(r);ng(a.inferences,l,_,128);var d=Lf(r.typeParameters,r,a.flags),p=Td(o,s&&s.returnMapper);ng(d.inferences,p,_),a.returnMapper=e.some(d.inferences,nb)?zf(function(t){var r=e.filter(t.inferences,nb);return r.length?Rf(e.map(r,Kf),t.signature,t.flags,t.compareTypes):void 0}(d)):void 0}}var f=oD(r),g=f?Math.min(rD(r)-1,n.length):n.length;if(f&&262144&f.flags){var m=e.find(a.inferences,(function(e){return e.typeParameter===f}));m&&(m.impliedArity=e.findIndex(n,Vv,g)<0?n.length-g:void 0)}var y=su(r);if(y){var v=sh(t);ng(a.inferences,eh(v),y)}for(var h=0;h=n-1&&Vv(_=t[n-1]))return rh(230===_.kind?_.type:qD(_.expression,i,a,o));for(var s=[],c=[],u=[],l=r;l_&&(_=v)}}if(!l)return!0;for(var h=1/0,D=0,b=i;D0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=qv(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var r=i[t],n=223===r.kind&&(Mr?lb(r.expression):WD(r.expression));n&&Zp(n)?e.forEach(Lu(n),(function(e,t){var i,a=n.target.elementFlags[t],s=ch(r,4&a?fl(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;c-1)return e.createDiagnosticForNode(n[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,u=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY,_=0,d=r;_u&&(u=f),n.length1&&(v=W(f,pn,D,x)),v||(v=W(f,gn,D,x)),v)return v;if(p)if(g)if(1===g.length||g.length>3){var S,C=g[g.length-1];g.length>3&&(S=e.chainDiagnosticMessages(S,e.Diagnostics.The_last_overload_gave_the_following_error),S=e.chainDiagnosticMessages(S,e.Diagnostics.No_overload_matches_this_call));var E=oh(r,h,C,gn,0,!0,(function(){return S}));if(E)for(var T=0,k=E;T3&&e.addRelatedInfo(A,e.createDiagnosticForNode(C.declaration,e.Diagnostics.The_last_overload_is_declared_here)),q(C,A),un.add(A)}else e.Debug.fail("No error for last overload signature")}else{for(var F=[],N=0,P=Number.MAX_VALUE,w=0,I=0,O=function(t){var n=oh(r,h,t,gn,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,I+1,f.length,ba(t))}));n?(n.length<=P&&(P=n.length,w=I),N=Math.max(N,n.length),F.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),I++},M=0,L=g;M1?F[w]:e.flatten(F);e.Debug.assert(R.length>0,"No errors reported for 3 or fewer overload signatures");var B=e.chainDiagnosticMessages(e.map(R,(function(e){return"string"==typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),K=t([],e.flatMap(R,(function(e){return e.relatedInformation})),!0),z=void 0;if(e.every(R,(function(e){return e.start===R[0].start&&e.length===R[0].length&&e.file===R[0].file}))){var U=R[0];z={file:U.file,start:U.start,length:U.length,code:B.code,category:B.category,messageText:B,relatedInformation:K}}else z=e.createDiagnosticForNodeFromMessageChain(r,B,K);q(g[0],z),un.add(z)}else if(m)un.add(ph(r,[m],h));else if(y)ih(y,r.typeArguments,!0,c);else{var V=e.filter(n,(function(e){return Yv(e,u)}));0===V.length?un.add(function(t,r,n){var i=n.length;if(1===r.length){var a=eu((_=r[0]).typeParameters),o=e.length(_.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,ai?c=Math.min(c,d):o0),wS(t),i||1===r.length||r.some((function(e){return!!e.typeParameters}))?function(t,r,n){var i=function(e,t){for(var r=-1,n=-1,i=0;i=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===ce?n.length:ce),a=r[i],o=a.typeParameters;if(!o)return a;var s=Kv(t)?t.typeArguments:void 0,c=s?mu(a,function(e,t,r){var n=e.map(HS);for(;n.length>t.length;)n.pop();for(;n.length1?e.find(c,(function(t){return e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body)})):void 0;if(u){var l=ru(u),_=!l.typeParameters;W([l],gn,_)&&e.addRelatedInfo(r,e.createDiagnosticForNode(u,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}g=a,m=o,y=s}function W(t,n,i,a){if(void 0===a&&(a=!1),g=void 0,m=void 0,y=void 0,i){var o=t[0];if(e.some(u)||!Gv(r,h,o,a))return;return oh(r,h,o,n,0,!1,void 0)?void(g=[o]):o}for(var s=0;s=0&&Sn(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=ov(t.expression);if(a===Ze)return xr;if((a=Cc(a))===we)return Uv(t);if(za(a))return t.typeArguments&&Sn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),zv(t);var o=Lc(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||169!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=ss(n.parent.symbol);if(!zS(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=HS(s);if(bh(n.parent.symbol,c))return!0}return 8&i&&Sn(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,xa(o)),16&i&&Sn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,xa(o)),!1}return!0}(t,o[0]))return Uv(t);if(o.some((function(e){return 4&e.flags})))return Sn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Uv(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(Sn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Uv(t)):fh(t,o,r,n,0)}var c=Lc(a,0);if(c.length){var u=fh(t,c,r,n,0);return X||(u.declaration&&!Ph(u.declaration)&&lu(u)!==$e&&Sn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),su(u)===$e&&Sn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),u}return Sh(t.expression,a,1),Uv(t)}function bh(t,r){var n=Yo(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=Js(i.types),o=0,s=0,c=i.types;s0;if(1048576&r.flags){for(var c=!1,u=0,l=r.types;u=n-1)return r===n-1?a:fl(v_(a,Ue));for(var o=[],s=[],c=[],u=r;u0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!n&&32&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var u=a-1;u>=0;u--){if(131072&Zg(Zh(t,u),Wv).flags)break;a=u}t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function iD(e){if(j(e)){var t=Io(e.parameters[e.parameters.length-1]);return!Zp(t)||t.target.hasRestElement}return!1}function aD(e){if(j(e)){var t=Io(e.parameters[e.parameters.length-1]);if(!Zp(t))return t;if(t.target.hasRestElement)return El(t,t.target.fixedLength)}}function oD(e){var t=aD(e);return!t||Op(t)||za(t)||0!=(131072&Fc(t).flags)?void 0:t}function sD(e){return cD(e,Qe)}function cD(e,t){return e.parameters.length>0?Zh(e,0):t}function uD(t,r){if(r.typeParameters){if(t.typeParameters)return;t.typeParameters=r.typeParameters}r.thisParameter&&((!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=xf(r.thisParameter,void 0)),lD(t.thisParameter,Io(r.thisParameter))));for(var n=t.parameters.length-(j(t)?1:0),i=0;i0&&(n=Ll(l,2)):u=Qe;var _=function(t,r){var n=[],i=[],a=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,(function(t){var o,s=t.expression?lb(t.expression,r):Re;if(e.pushIfUnique(n,yD(t,s,Fe,a)),t.asteriskToken){var c=wx(s,a?19:17,t.expression);o=c&&c.nextType}else o=fy(t);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),d=_.yieldTypes,p=_.nextTypes;i=e.some(d)?Ll(d,2):void 0,a=e.some(p)?Ul(p):void 0}else{var f=bD(t,r);if(!f)return 2&o?fD(t,Qe):Qe;if(0===f.length)return 2&o?fD(t,$e):$e;n=Ll(f,2)}if(n||i||a){if(i&&If(t,i,3),n&&If(t,n,1),a&&If(t,a,2),n&&qp(n)||i&&qp(i)||a&&qp(a)){var g=by(t),m=g?g===ru(t)?c?void 0:n:dy(lu(g),t):void 0;c?(i=Qp(i,m,0,s),n=Qp(n,m,1,s),a=Qp(a,m,2,s)):n=function(e,t,r){return e&&qp(e)&&(e=$p(e,t?r?wb(t):t:void 0)),e}(n,m,s)}i&&(i=Ff(i)),n&&(n=Ff(n)),a&&(a=Ff(a))}return c?mD(i||Qe,n||u,a||$m(2,t)||Me,s):s?dD(n||u):n||u}function mD(e,t,r,n){var i=n?Fr:Nr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Me,t=i.resolveIterationType(t,void 0)||Me,r=i.resolveIterationType(r,void 0)||Me,a===gt){var o=i.getGlobalIterableIteratorType(!1),s=o!==gt?Lx(o,i):void 0,c=s?s.returnType:Fe,u=s?s.nextType:Le;return Jd(t,c)&&Jd(u,r)?o!==gt?dl(o,[e]):(i.getGlobalIterableIteratorType(!0),_t):(i.getGlobalGeneratorType(!0),_t)}return dl(a,[e,t,r])}function yD(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?Ex(i?19:17,r,n,a):r;return i?Ob(o,a,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function vD(e,t,r,n){var i=0;if(n){for(var a=t;a1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!ib(e,a))return a}}function ob(e){var t=Xv(e);if(t&&!t.typeParameters)return lu(t)}function sb(t){var r=cb(t);if(r)return r;if(67108864&t.flags&&pr){var n=pr[I(t)];if(n)return n}var i=Br,a=lb(t);Br!==i&&((pr||(pr=[]))[I(t)]=a,e.setNodeFlags(t,67108864|t.flags));return a}function cb(t){var r=e.skipParentheses(t);if(!e.isCallExpression(r)||106===r.expression.kind||e.isRequireCall(r,!0)||Lh(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return td(r.type);if(8===t.kind||10===t.kind||110===t.kind||95===t.kind)return lb(t)}else{var n=e.isCallChain(r)?function(e){var t=lb(e.expression),r=yf(t,e.expression),n=ob(t);return n&&mf(n,e,r!==t)}(r):ob(ov(r.expression));if(n)return n}}function ub(e){var t=jn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Fe;try{return t.contextFreeType=lb(e,4)}finally{e.contextualType=r}}function lb(t,r,n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end});var i=_;_=t,C=0;var s=tb(t,function(t,r,n){var i=t.kind;if(o)switch(i){case 224:case 211:case 212:o.throwIfCancellationRequested()}switch(i){case 79:return Mm(t,r);case 108:return Km(t);case 106:return Vm(t);case 104:return Ke;case 14:case 10:return V_(H_(t.text));case 8:return dE(t),V_(G_(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&z<7&&uE(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(t),V_(Y_({negative:!1,base10Value:e.parsePseudoBigInt(t.text)}));case 110:return He;case 95:return qe;case 221:return UD(t);case 13:return Mt;case 202:return Cy(t,r,n);case 203:return wy(t,r);case 204:return fv(t,r);case 159:return gv(t,r);case 205:return jv(t,r);case 206:if(100===t.expression.kind)return Rh(t);case 207:return function(t,r){var n;zC(t,t.typeArguments)||UC(t.arguments);var i=Nh(t,void 0,r);if(i===br)return et;if(Oh(i,t),106===t.expression.kind)return $e;if(207===t.kind){var a=i.declaration;if(a&&169!==a.kind&&173!==a.kind&&178!==a.kind&&!e.isJSDocConstructSignature(a)&&!Ph(a))return X&&Sn(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Fe}if(e.isInJSFile(t)&&jh(t))return ou(t.arguments[0]);var o=lu(i);if(12288&o.flags&&Lh(t))return $_(e.walkUpParenthesizedExpressions(t.parent));if(206===t.kind&&!t.questionDotToken&&236===t.parent.kind&&16384&o.flags&&cu(i))if(e.isDottedName(t.expression)){if(!vm(t)){var s=Sn(t.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);ym(t.expression,s)}}else Sn(t.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(e.isInJSFile(t)){var c=Ih(t,!1);if(null===(n=null==c?void 0:c.exports)||void 0===n?void 0:n.size){var u=ia(c,c.exports,e.emptyArray,e.emptyArray,e.emptyArray);return u.objectFlags|=8192,Ul([o,u])}}return o}(t,r);case 208:return Jh(t);case 210:return function(t,r){var n=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0;if(n)return zh(n.typeExpression.type,n.typeExpression.type,t.expression,r);return lb(t.expression,r)}(t,r);case 224:return function(e){return sS(e),wS(e),Io(Ki(e))}(t);case 211:case 212:return SD(t,r);case 214:return function(e){return lb(e.expression),dn}(t);case 209:case 227:return function(e){return zh(e,e.type,e.expression)}(t);case 228:return Uh(t);case 229:return Vh(t);case 213:return FD(t);case 215:return function(e){return lb(e.expression),Re}(t);case 216:return function(t){if(a){var r=e.getContainingFunctionOrClassStaticBlock(t);if(r&&e.isClassStaticBlockDeclaration(r))Sn(t,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(32768&t.flags)){var n;if(e.isInTopLevelContext(t)){if(!oE(n=e.getSourceFileOfNode(t))){var i=void 0;if(!e.isEffectiveExternalModule(n,K)){i||(i=e.getSpanOfTokenAtPosition(n,t.pos));var o=e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.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);un.add(o)}(U!==e.ModuleKind.ESNext&&U!==e.ModuleKind.System||z<4)&&(i=e.getSpanOfTokenAtPosition(n,t.pos),o=e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher),un.add(o))}}else if(!oE(n=e.getSourceFileOfNode(t))){if(i=e.getSpanOfTokenAtPosition(n,t.pos),o=e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),r&&169!==r.kind&&0==(2&e.getFunctionFlags(r))){var s=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(o,s)}un.add(o)}}Xm(t)&&Sn(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var c=lb(t.expression),u=Ib(c,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return u!==c||u===we||3&c.flags||Cn(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),u}(t);case 217:return function(t){var r=lb(t.operand);if(r===Ze)return Ze;switch(t.operand.kind){case 8:switch(t.operator){case 40:return V_(G_(-t.operand.text));case 39:return V_(G_(+t.operand.text))}break;case 9:if(40===t.operator)return V_(Y_({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return dv(r,t.operand),PD(r,12288)&&Sn(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(PD(r,2112)&&Sn(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),xa(Gp(r))),Ue):ND(r);case 53:bx(t.operand);var n=12582912&wg(r);return 4194304===n?qe:8388608===n?He:Ye;case 45:case 46:return CD(t.operand,dv(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&AD(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),ND(r)}return we}(t);case 218:return function(t){var r=lb(t.operand);return r===Ze?Ze:(CD(t.operand,dv(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&AD(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),ND(r))}(t);case 219:return re(t,r);case 220:return function(e,t){var r=bx(e.condition);return hx(e.condition,r,e.whenTrue),Ll([lb(e.whenTrue,t),lb(e.whenFalse,t)],2)}(t,r);case 223:return function(e,t){return z<2&&OC(e,K.downlevelIteration?1536:1024),Ex(33,lb(e.expression,t),Le,e.expression)}(t,r);case 225:return Re;case 222:return function(t){a&&(8192&t.flags||sE(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Xm(t)&&Sn(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var r=e.getContainingFunction(t);if(!r)return Fe;var n=e.getFunctionFlags(r);if(!(1&n))return Fe;var i=0!=(2&n);t.asteriskToken&&(i&&z<99&&OC(t,26624),!i&&z<2&&K.downlevelIteration&&OC(t,256));var o=_u(r),s=o&&Yx(o,i),c=s&&s.yieldType||Fe,u=s&&s.nextType||Fe,l=i?Ob(u)||Fe:u,_=t.expression?lb(t.expression):Re,d=yD(t,_,l,i);if(o&&d&&qd(d,c,t.expression||t,t.expression),t.asteriskToken)return kx(i?19:17,1,_,t.expression)||Fe;if(o)return Gx(2,o,i)||Fe;var p=$m(2,r);if(!p&&(p=Fe,a&&X&&!e.expressionResultIsUnused(t))){var f=fy(t);f&&!za(f)||Sn(t,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return p}(t);case 230:return function(e){return e.isSpread?v_(e.type,Ue):e.type}(t);case 286:return tv(t,r);case 276:case 277:return function(e,t){return wS(e),Xy(e)||Fe}(t);case 280:return function(t){Qy(t.openingFragment);var r=e.getSourceFileOfNode(t);return!e.getJSXTransformEnabled(K)||!K.jsxFactory&&!r.pragmas.has("jsx")||K.jsxFragmentFactory||r.pragmas.has("jsxfrag")||Sn(t,K.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Ry(t),Xy(t)||Fe}(t);case 284:return jy(t,r);case 278:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return we}(t,r,n),r);return OD(s)&&function(t,r){204===t.parent.kind&&t.parent.expression===t||205===t.parent.kind&&t.parent.expression===t||(79===t.kind||159===t.kind)&&US(t)||179===t.parent.kind&&t.parent.exprName===t||273===t.parent.kind||Sn(t,e.Diagnostics.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);if(K.isolatedModules){e.Debug.assert(!!(128&r.symbol.flags)),8388608&r.symbol.valueDeclaration.flags&&Sn(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}(t,s),_=i,null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function _b(t){t.expression&&sE(t.expression,e.Diagnostics.Type_expected),NS(t.constraint),NS(t.default);var r=os(Ki(t));yc(r),function(e){return bc(e)!==vt}(r)||Sn(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,xa(r));var n=dc(r),i=xc(r);n&&i&&Vd(i,ks(Td(n,ud(r,i)),i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),a&&nS(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function db(t){LC(t),px(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,16476)&&(169===r.kind&&e.nodeIsPresent(r.body)||Sn(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),169===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&Sn(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&Sn(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&Sn(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),169!==r.kind&&173!==r.kind&&178!==r.kind||Sn(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),212===r.kind&&Sn(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),170!==r.kind&&171!==r.kind||Sn(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||Jd(Fc(Io(t.symbol)),jt)||Sn(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function pb(t,r,n){for(var i=0,a=t.elements;i=2||!e.hasRestParameter(t)||8388608&t.flags||e.nodeIsMissing(t.body))return;e.forEach(t.parameters,(function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===ue.escapedName&&bn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var n=e.getEffectiveReturnTypeNode(t);if(X&&!n)switch(t.kind){case 173:Sn(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 172:Sn(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n){var i=e.getFunctionFlags(t);if(1==(5&i)){var o=td(n);if(o===$e)Sn(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=Gx(0,o,0!=(2&i))||Fe;Vd(mD(s,Gx(1,o,0!=(2&i))||s,Gx(2,o,0!=(2&i))||Me,!!(2&i)),o,n)}}else 2==(3&i)&&function(t,r){var n=td(r);if(z>=2){if(n===we)return;var i=cl(!0);if(i!==gt&&!Mo(n,i))return void Sn(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,xa(Ob(n)||$e))}else{if(function(t){Rb(t&&e.getEntityNameFromTypeNode(t))}(r),n===we)return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void Sn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,xa(n));var o=Ci(a,111551,!0),s=o?Io(o):we;if(s===we)return void(79===a.kind&&"Promise"===a.escapedText&&Lo(n)===cl(!1)?Sn(r,e.Diagnostics.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):Sn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=(_=!0,Gt||(Gt=il("PromiseConstructorLike",0,_))||_t);if(c===_t)return void Sn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!Vd(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var u=a&&e.getFirstIdentifier(a),l=Kn(t.locals,u.escapedText,111551);if(l)return void Sn(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a))}var _;Ib(n,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t,n)}174!==t.kind&&312!==t.kind&&qb(t)}}function gb(t){for(var r=new e.Map,n=0,i=t.members;n0&&r.declarations[0]!==t)return}var n=bu(Ki(t));if(null==n?void 0:n.declarations){for(var i=new e.Map,a=function(e){1===e.parameters.length&&e.parameters[0].type&&Xg(td(e.parameters[0].type),(function(t){var r=i.get(Fl(t));r?r.declarations.push(e):i.set(Fl(t),{type:t,declarations:[e]})}))},o=0,s=n.declarations;o1)for(var r=0,n=t.declarations;r=0)return void(r&&Sn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));cn.push(t.id);var s=Ob(o,r,n,i);if(cn.pop(),!s)return;return a.awaitedTypeOfType=s}if(!function(e){var t=Ka(e,"then");return!!t&&Lc(Ig(t,2097152),0).length>0}(t))return a.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();Sn(r,n,i)}}function Lb(t){var r=Nh(t);Oh(r,t);var n=lu(r);if(!(1&n.flags)){var i,a,o=Eh(t);switch(t.parent.kind){case 255:i=Ll([Io(Ki(t.parent)),$e]);break;case 162:i=$e,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 165:i=$e,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 167:case 170:case 171:i=Ll([pl(HS(t.parent)),$e]);break;default:return e.Debug.fail()}Vd(n,i,t,o,(function(){return a}))}}function Rb(t){if(t){var r=e.getFirstIdentifier(t),n=2097152|(79===t.kind?788968:1920),i=Vn(r,r.escapedText,n,void 0,void 0,!0);i&&2097152&i.flags&&Gi(i)&&!lC(mi(i))&&!hi(i)&&bi(i)}}function Bb(t){var r=jb(t);r&&e.isEntityName(r)&&Rb(r)}function jb(e){if(e)switch(e.kind){case 186:case 185:return Jb(e.types);case 187:return Jb([e.trueType,e.falseType]);case 189:case 195:return jb(e.type);case 176:return e.typeName}}function Jb(t){for(var r,n=0,i=t;n=e.ModuleKind.ES2015)&&r&&(ox(t,r,"require")||ox(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ja(t);300===n.kind&&e.isExternalOrCommonJsModule(n)&&bn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(t,r){if(r&&!(z>=4)&&ox(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ja(t);300===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&bn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(e,t){z<=8&&(ox(e,t,"WeakMap")||ox(e,t,"WeakSet"))&&on.push(e)}(t,r),function(e,t){t&&z>=2&&z<=8&&ox(e,t,"Reflect")&&sn.push(e)}(t,r),e.isClassLike(t)?(nS(r,e.Diagnostics.Class_name_cannot_be_0),8388608&t.flags||function(t){1===z&&"Object"===t.escapedText&&U1&&e.some(d.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!gx(r,t)}))&&Sn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var g=dx(mo(t));p===we||g===we||Md(p,g)||67108864&d.flags||fx(d.valueDeclaration,p,t,g),t.initializer&&qd(WD(t.initializer),g,t,t.initializer,void 0),d.valueDeclaration&&!gx(t,d.valueDeclaration)&&Sn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}165!==t.kind&&164!==t.kind&&(Nb(t),252!==t.kind&&201!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(252!==t.kind||t.initializer)){var r=Ki(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=Vn(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&rv(n)){var i=e.getAncestor(n.valueDeclaration,253),a=235===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(233===a.kind&&e.isFunctionLike(a.parent)||260===a.kind||259===a.kind||300===a.kind)){var o=Da(n);Sn(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),_x(t,t.name))}}}}function fx(t,r,n,i){var a=e.getNameOfDeclaration(n),o=165===n.kind||164===n.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(a),c=Sn(a,o,s,xa(r),xa(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function gx(t,r){if(162===t.kind&&252===r.kind||252===t.kind&&162===r.kind)return!0;if(e.hasQuestionToken(t)!==e.hasQuestionToken(r))return!1;return e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(r,504)}function mx(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end}),function(t){if(241!==t.parent.parent.kind&&242!==t.parent.parent.kind)if(8388608&t.flags)tE(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return uE(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return uE(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(235!==t.parent.parent.kind||!t.type||t.initializer||8388608&t.flags)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return uE(t.exclamationToken,r)}var n=e.getEmitModuleKind(K);n=1&&mx(t.declarations[0])}function Cx(e){return Ex(e.awaitModifier?15:13,ov(e.expression),Le,e.expression)}function Ex(e,t,r,n){return za(t)?t:Tx(e,t,r,n,!0)||Fe}function Tx(t,r,n,i,a){var o=0!=(2&t);if(r!==Qe){var s=z>=2,c=!s&&K.downlevelIteration,u=K.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var l=wx(r,t,s?i:void 0);if(a&&l){var _=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?e.Diagnostics.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;_&&Vd(n,l.nextType,i,_)}if(l||s)return u?Rg(l&&l.yieldType):l&&l.yieldType}var d=r,p=!1,f=!1;if(4&t){if(1048576&d.flags){var g=r.types,m=e.filter(g,(function(e){return!(402653316&e.flags)}));m!==g&&(d=Ll(m,2))}else 402653316&d.flags&&(d=Qe);if((f=d!==r)&&(z<1&&i&&(Sn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),p=!0),131072&d.flags))return u?Rg(ze):ze}if(!Bp(d)){if(i&&!p){var y=function(n,i){var a;if(i)return n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];if(kx(t,0,r,void 0))return[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1];if(function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null===(a=r.symbol)||void 0===a?void 0:a.escapedName))return[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}(!!(4&t)&&!f,c),v=y[0];Tn(i,y[1]&&!!Pb(d),v,xa(d))}return f?u?Rg(ze):ze:void 0}var h=Uc(d,Ue);return f&&h?402653316&h.flags&&!K.noUncheckedIndexedAccess?ze:Ll(u?[h,ze,Le]:[h,ze],2):128&t?Rg(h):h}jx(i,r,o)}function kx(e,t,r,n){if(!za(r)){var i=wx(r,e,n);return i&&i[B(t)]}}function Ax(e,t,r){if(void 0===e&&(e=Qe),void 0===t&&(t=Qe),void 0===r&&(r=Me),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=Nu([e,t,r]),i=Cr.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},Cr.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function Fx(t){for(var r,n,i,a=0,o=t;a1)for(var d=0,p=n;dn)return!1;for(var l=0;l1)return sE(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(117===o.token),n)return sE(o,e.Diagnostics.implements_clause_already_seen);n=!0}VC(o)}})(t)||jC(t.typeParameters,r)}(t),zb(t),_x(t,t.name),iS(e.getEffectiveTypeParameterDeclarations(t)),Nb(t);var r=Ki(t),n=ss(r),i=ks(n),o=Io(r);oS(r),Fb(r),function(t){for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a>a;case 49:return i>>>a;case 47:return i<1&&M(t,e.shouldPreserveConstEnums(K))){var s=function(t){var r=t.declarations;if(r)for(var n=0,i=r;n1&&!FS(n))for(var o=0,s=n;o1&&t.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))}))}function NS(t){if(t){var r=_;_=t,C=0,function(t){e.isInJSFile(t)&&e.forEach(t.jsDoc,(function(t){var r=t.tags;return e.forEach(r,NS)}));var r=t.kind;if(o)switch(r){case 259:case 255:case 256:case 254:o.throwIfCancellationRequested()}r>=235&&r<=251&&t.flowNode&&!Dm(t.flowNode)&&En(!1===K.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected);switch(r){case 161:return _b(t);case 162:return db(t);case 165:return yb(t);case 164:return function(t){return e.isPrivateIdentifier(t.name)&&Sn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),yb(t)}(t);case 178:case 177:case 172:case 173:case 174:return fb(t);case 167:case 166:return function(t){ZC(t)||WC(t.name),Vb(t),e.hasSyntacticModifier(t,128)&&167===t.kind&&t.body&&Sn(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name)),e.isPrivateIdentifier(t.name)&&!e.getContainingClass(t)&&Sn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),vb(t)}(t);case 168:return function(t){LC(t),e.forEachChild(t,NS)}(t);case 169:return hb(t);case 170:case 171:return Db(t);case 176:return Cb(t);case 175:return function(t){var r=function(e){switch(e.parent.kind){case 212:case 172:case 254:case 211:case 177:case 167:case 166:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=ru(r),i=cu(n);if(i){NS(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)Q_(a);else if(i.parameterIndex>=0)j(n)&&i.parameterIndex===n.parameters.length-1?Sn(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&Vd(i.type,Io(n.parameters[i.parameterIndex]),t.type,void 0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)}));else if(a){for(var o=!1,s=0,c=r.parameters;s0),n.length>1&&Sn(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Ub(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=Ub(a.expression);o&&i.escapedText!==o.escapedText&&Sn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Sn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 324:return function(t){var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||Sn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 340:case 333:case 334:return function(t){t.typeExpression||Sn(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&nS(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),NS(t.typeExpression)}(t);case 339:return function(e){NS(e.constraint);for(var t=0,r=e.typeParameters;t-1&&n1){var n=e.isEnumConst(t);e.forEach(r.declarations,(function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==n&&Sn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var i=!1;e.forEach(r.declarations,(function(t){if(258!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?Sn(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)}))}}}(t);case 259:return yS(t);case 264:return xS(t);case 263:return function(t){if(!CS(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(LC(t),e.isInternalModuleImportEqualsDeclaration(t)||hS(t)))if(bS(t),e.hasSyntacticModifier(t,1)&&Di(t),275!==t.moduleReference.kind){var r=mi(Ki(t));if(r!==ke){if(111551&r.flags){var n=e.getFirstIdentifier(t.moduleReference);1920&Ci(n,112575).flags||Sn(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}788968&r.flags&&nS(t.name,e.Diagnostics.Import_name_cannot_be_0)}t.isTypeOnly&&uE(t,e.Diagnostics.An_import_alias_cannot_use_import_type)}else!(U>=e.ModuleKind.ES2015)||t.isTypeOnly||8388608&t.flags||uE(t,e.Diagnostics.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)}(t);case 270:return SS(t);case 269:return function(t){if(!CS(t,t.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)){var r=300===t.parent.kind?t.parent:t.parent.parent;if(259!==r.kind||e.isAmbientModule(r)){if(!LC(t)&&e.hasEffectiveModifiers(t)&&sE(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),79===t.expression.kind){var n=t.expression,i=Ci(n,67108863,!0,!0,t);if(i){Om(i,n);var a=2097152&i.flags?mi(i):i;(a===ke||111551&a.flags)&&WD(t.expression)}else WD(t.expression);e.getEmitDeclarations(K)&&Ma(t.expression,!0)}else WD(t.expression);AS(r),8388608&t.flags&&!e.isEntityNameExpression(t.expression)&&uE(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||8388608&t.flags||(U>=e.ModuleKind.ES2015?uE(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):U===e.ModuleKind.System&&uE(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?Sn(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Sn(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 234:case 251:return void _E(t);case 274:(function(e){zb(e)})(t)}}(t),_=r}}function PS(t){e.isInJSFile(t)||uE(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function wS(t){var r=jn(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||new e.Map;var n=I(t);r.deferredNodes.set(n,t)}}function IS(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end});var r=_;switch(_=t,C=0,t.kind){case 206:case 207:case 208:case 163:case 278:zv(t);break;case 211:case 212:case 167:case 166:!function(t){e.Debug.assert(167!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=_u(t);if(xD(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||lu(ru(t)),233===t.body.kind)NS(t.body);else{var i=lb(t.body),a=n&&$x(n,r);a&&qd(2==(3&r)?Ib(i,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,t.body,t.body)}}(t);break;case 170:case 171:Db(t);break;case 224:!function(t){e.forEach(t.members,NS),qb(t)}(t);break;case 277:!function(e){Qy(e)}(t);break;case 276:!function(e){Qy(e.openingElement),My(e.closingElement.tagName)?Ky(e.closingElement):lb(e.closingElement.tagName),Ry(e)}(t)}_=r,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function OS(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:t.path},!0),e.performance.mark("beforeCheck"),function(t){var r=jn(t);if(!(1&r.flags)){if(e.skipTypeChecking(t,K,n))return;!function(t){!!(8388608&t.flags)&&function(t){for(var r=0,n=t.statements;r0?e.concatenate(o,a):a}return e.forEach(n.getSourceFiles(),OS),un.getDiagnostics()}(t)}finally{o=void 0}}function BS(){if(!a)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function jS(e){switch(e.kind){case 161:case 255:case 256:case 257:case 258:case 340:case 333:case 334:return!0;case 265:return e.isTypeOnly;case 268:case 273:return e.parent.parent.isTypeOnly;default:return!1}}function JS(e){for(;159===e.parent.kind;)e=e.parent;return 176===e.parent.kind}function KS(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function zS(e,t){return!!KS(e,(function(e){return e===t}))}function US(e){return void 0!==function(e){for(;159===e.parent.kind;)e=e.parent;return 263===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:269===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function VS(t){if(e.isDeclarationName(t))return Ki(t.parent);if(e.isInJSFile(t)&&204===t.parent.kind&&t.parent===t.parent.parent.left&&!e.isPrivateIdentifier(t)&&!e.isJSDocMemberName(t)){var r=function(t){switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return Ki(t.parent);case 4:case 2:case 5:return Ki(t.parent.parent)}}(t);if(r)return r}if(269===t.parent.kind&&e.isEntityNameExpression(t)){var n=Ci(t,2998271,!0);if(n&&n!==ke)return n}else if(e.isEntityName(t)&&US(t)){var i=e.getAncestor(t,263);return e.Debug.assert(void 0!==i),xi(t,!0)}if(e.isEntityName(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&198===r.kind&&r.qualifier===t)return r}(t);if(a){td(a);var o=jn(t).resolvedSymbol;return o===ke?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(t);)t=t.parent;if(function(e){for(;204===e.parent.kind;)e=e.parent;return 226===e.parent.kind}(t)){var s=0;226===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?Ci(t,s):void 0;if(c)return c}if(335===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(161===t.parent.kind&&339===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;var l=e.findAncestor(t,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName));s=l?901119:111551;if(79===t.kind){if(e.isJSXTagName(t)&&My(t)){var _=Ky(t.parent);return _===ke?void 0:_}var d=Ci(t,s,!1,!l,e.getHostSignatureFromJSDoc(t));if(!d&&l){var p=e.findAncestor(t,e.or(e.isClassLike,e.isInterfaceDeclaration));if(p)return qS(t,Ki(p))}return d}if(204===t.kind||159===t.kind){var f=jn(t);return f.resolvedSymbol?f.resolvedSymbol:(204===t.kind?fv(t,0):gv(t,0),!f.resolvedSymbol&&l&&e.isQualifiedName(t)?qS(t):f.resolvedSymbol)}if(e.isJSDocMemberName(t))return qS(t)}else if(JS(t)){return Ci(t,s=176===t.parent.kind?788968:1920,!1,!0)}return 175===t.parent.kind?Ci(t,1):void 0}function qS(t,r){if(e.isEntityName(t)){var n=901119,i=Ci(t,n,!1,!0,e.getHostSignatureFromJSDoc(t));if(!i&&e.isIdentifier(t)&&r&&(i=Ji(Kn(Li(r),t.escapedText,n))),i)return i}var a=e.isIdentifier(t)?r:qS(t.left),o=e.isIdentifier(t)?t.escapedText:t.right.escapedText;if(a){var s=111551&a.flags&&Oc(Io(a),"prototype");return Oc(s?Io(s):ss(a),o)}}function WS(t,r){if(300===t.kind)return e.isExternalModule(t)?Ji(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(16777216&t.flags)){if(R(t)){var a=Ki(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?Py(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return Ki(n.parent);if(79===t.kind){if(US(t))return VS(t);if(201===n.kind&&199===i.kind&&t===n.propertyName){if(o=Oc(HS(i),t.escapedText))return o}else if(e.isMetaProperty(n)){var o;if(o=Oc(HS(n),t.escapedText))return o;if(103===n.keywordToken)return Wh(n).symbol}}switch(t.kind){case 79:case 80:case 204:case 159:return VS(t);case 108:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=ru(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return lb(t).symbol;case 190:return Q_(t).symbol;case 106:return lb(t).symbol;case 133:var u=t.parent;return u&&169===u.kind?u.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(264===t.parent.kind||270===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJSFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return Ti(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return Ki(n);case 8:var l=e.isElementAccessExpression(n)?n.argumentExpression===t?sb(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?td(i.objectType):void 0;return l&&Oc(l,e.escapeLeadingUnderscores(t.text));case 88:case 98:case 38:case 84:return Ki(t.parent);case 198:return e.isLiteralImportTypeNode(t)?WS(t.argument.literal,r):void 0;case 93:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(t.parent)?qh(t.parent).symbol:void 0;case 229:return lb(t).symbol;default:return}}}function HS(t){if(e.isSourceFile(t)&&!e.isExternalModule(t))return we;if(16777216&t.flags)return we;var r,n=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),i=n&&Qo(Ki(n.class));if(e.isPartOfTypeNode(t)){var a=td(t);return i?ks(a,i.thisType):a}if(e.isExpressionNode(t))return YS(t);if(i&&!n.isImplements){var o=e.firstOrUndefined(Yo(i));return o?ks(o,i.thisType):we}if(jS(t))return ss(r=Ki(t));if(function(t){return 79===t.kind&&jS(t.parent)&&e.getNameOfDeclaration(t.parent)===t}(t))return(r=WS(t))?ss(r):we;if(e.isDeclaration(t))return Io(r=Ki(t));if(R(t))return(r=WS(t))?Io(r):we;if(e.isBindingPattern(t))return to(t.parent,!0)||we;if(US(t)&&(r=WS(t))){var s=ss(r);return s!==we?s:Io(r)}return e.isMetaProperty(t.parent)&&t.parent.keywordToken===t.kind?qh(t.parent):we}function GS(t){if(e.Debug.assert(203===t.kind||202===t.kind),242===t.parent.kind)return BD(t,Cx(t.parent)||we);if(219===t.parent.kind)return BD(t,sb(t.parent.right)||we);if(291===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return LD(r,GS(r)||we,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=GS(n)||we,a=Ex(65,i,Le,t.parent)||we;return RD(n,i,n.elements.indexOf(t),a)}function YS(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),q_(sb(t))}function XS(t){var r=Ki(t.parent);return e.isStatic(t)?Io(r):ss(r)}function $S(t){var r=t.name;switch(r.kind){case 79:return H_(e.idText(r));case 8:case 10:return H_(r.text);case 160:var n=Ay(r);return wD(n,12288)?n:ze;default:return e.Debug.fail("Unsupported property name.")}}function QS(t){t=Cc(t);var r=e.createSymbolTable(lc(t)),n=Lc(t,0).length?At:Lc(t,1).length?Ft:void 0;return n&&e.forEach(lc(n),(function(e){r.has(e.escapedName)||r.set(e.escapedName,e)})),ra(r)}function ZS(t){return e.typeHasCallOrConstructSignatures(t,_e)}function eC(t){if(e.isGeneratedIdentifier(t))return!1;var r=e.getParseTreeNode(t,e.isIdentifier);if(!r)return!1;var n=r.parent;return!!n&&(!((e.isPropertyAccessExpression(n)||e.isPropertyAssignment(n))&&n.name===r)&&kC(r)===ue)}function tC(t){var r=Ti(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=wi(r),i=Bn(r=Ni(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(Ri(r),(function(e){return(e=gi(e))&&!!(111551&e.flags)}))),i.exportsSomeValue}function rC(t,r){var n,i=e.getParseTreeNode(t,e.isIdentifier);if(i){var a=kC(i,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(i));if(a){if(1048576&a.flags){var o=Ji(a.exportSymbol);if(!r&&944&o.flags&&!(3&o.flags))return;a=o}var s=zi(a);if(s){if(512&s.flags&&300===(null===(n=s.valueDeclaration)||void 0===n?void 0:n.kind)){var c=s.valueDeclaration;return c!==e.getSourceFileOfNode(i)?void 0:c}return e.findAncestor(i.parent,(function(t){return e.isModuleOrEnumDeclaration(t)&&Ki(t)===s}))}}}}function nC(t){if(t.generatedImportReference)return t.generatedImportReference;var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=kC(r);if(fi(n,111551)&&!hi(n))return ti(n)}}function iC(t){if(418&t.flags&&t.valueDeclaration&&!e.isSourceFile(t.valueDeclaration)){var r=Bn(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||function(t){return t.valueDeclaration&&e.isBindingElement(t.valueDeclaration)&&290===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind}(t)){var i=jn(t.valueDeclaration);if(Vn(n.parent,t.escapedName,111551,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(n,!1),s=233===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function aC(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=kC(r);if(n&&iC(n))return n.valueDeclaration}}}function oC(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=Ki(r);if(n)return iC(n)}return!1}function sC(t){switch(t.kind){case 263:return uC(Ki(t)||ke);case 265:case 266:case 268:case 273:var r=Ki(t)||ke;return uC(r)&&!hi(r);case 270:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,sC));case 269:return!t.expression||79!==t.expression.kind||uC(Ki(t)||ke)}return!1}function cC(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||300!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&(uC(Ki(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference))}function uC(t){var r=mi(t);return r===ke||!!(111551&r.flags)&&(e.shouldPreserveConstEnums(K)||!lC(r))}function lC(e){return MD(e)||!!e.constEnumOnlyModule}function _C(t,r){if(ri(t)){var n=Ki(t),i=n&&Bn(n);if(null==i?void 0:i.referenced)return!0;var a=Bn(n).target;if(a&&1&e.getEffectiveModifierFlags(t)&&111551&a.flags&&(e.shouldPreserveConstEnums(K)||!lC(a)))return!0}return!!r&&!!e.forEachChild(t,(function(e){return _C(e,r)}))}function dC(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=au(Ki(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function pC(t){return!(!W||$c(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,16476))}function fC(t){return W&&$c(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function gC(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=Ki(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(Li(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function mC(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=Ki(r);return n&&lc(Io(n))||e.emptyArray}function yC(e){var t,r=e.id||0;return r<0||r>=Gr.length?0:(null===(t=Gr[r])||void 0===t?void 0:t.flags)||0}function vC(e){return pS(e.parent),jn(e).enumMemberValue}function hC(e){switch(e.kind){case 294:case 204:case 205:return!0}return!1}function DC(t){if(294===t.kind)return vC(t);var r=jn(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return vC(n)}}function bC(e){return!!(524288&e.flags)&&Lc(e,0).length>0}function xC(t,r){var n,i,a=e.getParseTreeNode(t,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=Ci(e.getFirstIdentifier(a),111551,!0,!0,r);o=!!(null===(n=null==s?void 0:s.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))}var c=Ci(a,111551,!0,!0,r),u=c&&2097152&c.flags?mi(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var l=Ci(a,788968,!0,!1,r);if(u&&u===l){var _=ul(!1);if(_&&u===_)return e.TypeReferenceSerializationKind.Promise;var d=Io(u);if(d&&Uo(d))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!l)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var p=ss(l);return p===we?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&p.flags?e.TypeReferenceSerializationKind.ObjectType:wD(p,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:wD(p,528)?e.TypeReferenceSerializationKind.BooleanType:wD(p,296)?e.TypeReferenceSerializationKind.NumberLikeType:wD(p,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:wD(p,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Zp(p)?e.TypeReferenceSerializationKind.ArrayLikeType:wD(p,12288)?e.TypeReferenceSerializationKind.ESSymbolType:bC(p)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Op(p)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function SC(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(129);var s=Ki(o),c=!s||133120&s.flags?we:Yp(Io(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=df(c)),ie.typeToTypeNode(c,r,1024|n,i)}function CC(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(129);var o=ru(a);return ie.typeToTypeNode(lu(o),r,1024|n,i)}function EC(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(129);var o=Ff(YS(a));return ie.typeToTypeNode(o,r,1024|n,i)}function TC(t){return ae.has(e.escapeLeadingUnderscores(t))}function kC(t,r){var n=jn(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=Ja(a))}return Vn(i,t.escapedText,3257279,void 0,void 0,!0)}function AC(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=kC(r);if(n)return Hi(n).valueDeclaration}}}function FC(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&W_(Io(Ki(t)))}function NC(t,r){return function(t,r,n){var i=1024&t.flags?ie.symbolToExpression(t.symbol,111551,r,void 0,n):t===He?e.factory.createTrue():t===qe&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(Io(Ki(t)),t,r)}function PC(t){return t?(Dn(t),e.getSourceFileOfNode(t).localJsxFactory||gr):gr}function wC(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var n=r.pragmas.get("jsxfrag"),i=e.isArray(n)?n[0]:n;if(i)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,z),r.localJsxFragmentFactory}}if(K.jsxFragmentFactory)return e.parseIsolatedEntityName(K.jsxFragmentFactory,z)}function IC(t){var r=259===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=ki(r,r,void 0);if(n)return e.getDeclarationOfKind(n,300)}function OC(t,r){if((s&r)!==r&&K.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,K)&&!(8388608&t.flags)){var i=function(t,r){l||(l=Ai(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||ke);return l}(n,t);if(i!==ke)for(var a=r&~s,o=1;o<=2097152;o<<=1)if(a&o){var c=MC(o),u=Kn(i.exports,e.escapeLeadingUnderscores(c),111551);u?524288&o?e.some(au(u),(function(e){return rD(e)>3}))||Sn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,4):1048576&o?e.some(au(u),(function(e){return rD(e)>4}))||Sn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,5):1024&o&&(e.some(au(u),(function(e){return rD(e)>2}))||Sn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c,3)):Sn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c)}s|=r}}}function MC(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";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"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function LC(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 167!==t.kind||e.nodeIsPresent(t.body)?sE(t,e.Diagnostics.Decorators_are_not_valid_here):sE(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(170===t.kind||171===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return sE(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||function(t){var r,n,i,a,o,s=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 170:case 171:case 169:case 165:case 164:case 167:case 166:case 174:case 259:case 264:case 263:case 270:case 269:case 211:case 212:case 162:return!1;default:if(260===t.parent.kind||300===t.parent.kind)return!1;switch(t.kind){case 254:return RC(t,130);case 255:case 178:return RC(t,126);case 256:case 235:case 257:case 168:return!0;case 258:return RC(t,85);default:e.Debug.fail()}}}(t)?sE(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==s)return s;for(var c=0,u=0,l=t.modifiers;u1||e.modifiers[0].kind!==t}function BC(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&cE(t[0],t.end-",".length,",".length,r)}function jC(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return cE(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function JC(r){if(z>=3){var n=r.body&&e.isBlock(r.body)&&e.findUseStrictPrologue(r.body.statements);if(n){var i=(o=r.parameters,e.filter(o,(function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})));if(e.length(i)){e.forEach(i,(function(t){e.addRelatedInfo(Sn(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(n,e.Diagnostics.use_strict_directive_used_here))}));var a=i.map((function(t,r){return 0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)}));return e.addRelatedInfo.apply(void 0,t([Sn(n,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,!1)),!0}}}var o;return!1}function KC(t){var r=e.getSourceFileOfNode(t);return LC(t)||jC(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function UC(t){return function(t){if(t)for(var r=0,n=t;r1){n=241===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return sE(o.declarations[1],n)}var c=s[0];if(c.initializer){var n=241===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return uE(c.name,n)}if(c.type)return uE(c,n=241===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function $C(t){if(t.parameters.length===(170===t.kind?1:2))return e.getThisParameter(t)}function QC(t,r){if(function(t){return e.isDynamicName(t)&&!vs(t)}(t))return uE(t,r)}function ZC(t){if(KC(t))return!0;if(167===t.kind){if(203===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||130!==e.first(t.modifiers).kind))return sE(t,e.Diagnostics.Modifiers_cannot_appear_here);if(GC(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(YC(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return cE(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(HC(t))return!0}if(e.isClassLike(t.parent)){if(z<2&&e.isPrivateIdentifier(t.name))return uE(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(8388608&t.flags)return QC(t.name,e.Diagnostics.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(167===t.kind&&!t.body)return QC(t.name,e.Diagnostics.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(256===t.parent.kind)return QC(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(180===t.parent.kind)return QC(t.name,e.Diagnostics.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 eE(t){return e.isStringOrNumericLiteralLike(t)||217===t.kind&&40===t.operator&&8===t.operand.kind}function tE(t){var r,n=t.initializer;if(n){var i=!(eE(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&eE(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&WD(t).flags)}(n)||110===n.kind||95===n.kind||(r=n,9===r.kind||217===r.kind&&40===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return uE(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return uE(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return uE(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function rE(t){if(79===t.kind){if("__esModule"===e.idText(t))return function(t,r,n,i,a,o){if(!oE(e.getSourceFileOfNode(r)))return bn(t,r,n,i,a,o),!0;return!1}("noEmit",t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=0,n=t.elements;r0}function sE(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!oE(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return un.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function cE(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!oE(c)&&(un.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function uE(t,r,n,i,a){return!oE(e.getSourceFileOfNode(t))&&(un.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function lE(t){return 256!==t.kind&&257!==t.kind&&264!==t.kind&&263!==t.kind&&270!==t.kind&&269!==t.kind&&262!==t.kind&&!e.hasSyntacticModifier(t,515)&&sE(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function _E(t){if(8388608&t.flags){if(!jn(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return jn(t).hasReportedStatementInAmbientContext=sE(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(233===t.parent.kind||260===t.parent.kind||300===t.parent.kind){var r=jn(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=sE(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function dE(t){if(32&t.numericLiteralFlags){var r=void 0;if(z>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,194)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,294)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return uE(n?t.parent:t,r,i)}}return function(t){if(16&t.numericLiteralFlags||t.text.length<=15||-1!==t.text.indexOf("."))return;var r=+e.getTextOfNode(t);if(r<=Math.pow(2,53)-1&&r+1>r)return;Cn(!1,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}(t),!1}function pE(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=Tg(r,t);if(a)return a;var o=lc(t);if(o){var s=Sg(o,r);if(s)return gp(r,e.map(s,(function(e){return[function(){return Io(e)},e.escapedName]})),n,void 0,i)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(F||(F={})),e.signatureHasRestParameter=j,e.signatureHasLiteralTypes=J}(s||(s={})),function(e){function t(t,r,n,i){if(void 0===t||void 0===r)return t;var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||c)(o):o,e.Debug.assertNode(a,n),a):void 0}function r(t,r,n,i,a){if(void 0===t||void 0===r)return t;var o,s,c=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>c-i)&&(a=c-i);var u=-1,l=-1;(i>0||a=2&&(s=function(t,r){for(var n,i=0;i0&&p<=158||190===p)return a;var f=u.factory;switch(p){case 79:return e.Debug.type(a),f.updateIdentifier(a,l(a.typeArguments,c,e.isTypeNodeOrTypeParameterDeclaration));case 159:return e.Debug.type(a),f.updateQualifiedName(a,d(a.left,c,e.isEntityName),d(a.right,c,e.isIdentifier));case 160:return e.Debug.type(a),f.updateComputedPropertyName(a,d(a.expression,c,e.isExpression));case 161:return e.Debug.type(a),f.updateTypeParameterDeclaration(a,d(a.name,c,e.isIdentifier),d(a.constraint,c,e.isTypeNode),d(a.default,c,e.isTypeNode));case 162:return e.Debug.type(a),f.updateParameterDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.dotDotDotToken,_,e.isDotDotDotToken),d(a.name,c,e.isBindingName),d(a.questionToken,_,e.isQuestionToken),d(a.type,c,e.isTypeNode),d(a.initializer,c,e.isExpression));case 163:return e.Debug.type(a),f.updateDecorator(a,d(a.expression,c,e.isExpression));case 164:return e.Debug.type(a),f.updatePropertySignature(a,l(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),d(a.questionToken,_,e.isToken),d(a.type,c,e.isTypeNode));case 165:return e.Debug.type(a),f.updatePropertyDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),d(a.questionToken||a.exclamationToken,_,e.isQuestionOrExclamationToken),d(a.type,c,e.isTypeNode),d(a.initializer,c,e.isExpression));case 166:return e.Debug.type(a),f.updateMethodSignature(a,l(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),d(a.questionToken,_,e.isQuestionToken),l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 167:return e.Debug.type(a),f.updateMethodDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.asteriskToken,_,e.isAsteriskToken),d(a.name,c,e.isPropertyName),d(a.questionToken,_,e.isQuestionToken),l(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,u,l),d(a.type,c,e.isTypeNode),o(a.body,c,u,d));case 169:return e.Debug.type(a),f.updateConstructorDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),i(a.parameters,c,u,l),o(a.body,c,u,d));case 170:return e.Debug.type(a),f.updateGetAccessorDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),i(a.parameters,c,u,l),d(a.type,c,e.isTypeNode),o(a.body,c,u,d));case 171:return e.Debug.type(a),f.updateSetAccessorDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),i(a.parameters,c,u,l),o(a.body,c,u,d));case 168:return e.Debug.type(a),u.startLexicalEnvironment(),u.suspendLexicalEnvironment(),f.updateClassStaticBlockDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),o(a.body,c,u,d));case 172:return e.Debug.type(a),f.updateCallSignature(a,l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 173:return e.Debug.type(a),f.updateConstructSignature(a,l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 174:return e.Debug.type(a),f.updateIndexSignature(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),l(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 175:return e.Debug.type(a),f.updateTypePredicateNode(a,d(a.assertsModifier,c,e.isAssertsKeyword),d(a.parameterName,c,e.isIdentifierOrThisTypeNode),d(a.type,c,e.isTypeNode));case 176:return e.Debug.type(a),f.updateTypeReferenceNode(a,d(a.typeName,c,e.isEntityName),l(a.typeArguments,c,e.isTypeNode));case 177:return e.Debug.type(a),f.updateFunctionTypeNode(a,l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 178:return e.Debug.type(a),f.updateConstructorTypeNode(a,l(a.modifiers,c,e.isModifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 179:return e.Debug.type(a),f.updateTypeQueryNode(a,d(a.exprName,c,e.isEntityName));case 180:return e.Debug.type(a),f.updateTypeLiteralNode(a,l(a.members,c,e.isTypeElement));case 181:return e.Debug.type(a),f.updateArrayTypeNode(a,d(a.elementType,c,e.isTypeNode));case 182:return e.Debug.type(a),f.updateTupleTypeNode(a,l(a.elements,c,e.isTypeNode));case 183:return e.Debug.type(a),f.updateOptionalTypeNode(a,d(a.type,c,e.isTypeNode));case 184:return e.Debug.type(a),f.updateRestTypeNode(a,d(a.type,c,e.isTypeNode));case 185:return e.Debug.type(a),f.updateUnionTypeNode(a,l(a.types,c,e.isTypeNode));case 186:return e.Debug.type(a),f.updateIntersectionTypeNode(a,l(a.types,c,e.isTypeNode));case 187:return e.Debug.type(a),f.updateConditionalTypeNode(a,d(a.checkType,c,e.isTypeNode),d(a.extendsType,c,e.isTypeNode),d(a.trueType,c,e.isTypeNode),d(a.falseType,c,e.isTypeNode));case 188:return e.Debug.type(a),f.updateInferTypeNode(a,d(a.typeParameter,c,e.isTypeParameterDeclaration));case 198:return e.Debug.type(a),f.updateImportTypeNode(a,d(a.argument,c,e.isTypeNode),d(a.qualifier,c,e.isEntityName),r(a.typeArguments,c,e.isTypeNode),a.isTypeOf);case 195:return e.Debug.type(a),f.updateNamedTupleMember(a,t(a.dotDotDotToken,c,e.isDotDotDotToken),t(a.name,c,e.isIdentifier),t(a.questionToken,c,e.isQuestionToken),t(a.type,c,e.isTypeNode));case 189:return e.Debug.type(a),f.updateParenthesizedType(a,d(a.type,c,e.isTypeNode));case 191:return e.Debug.type(a),f.updateTypeOperatorNode(a,d(a.type,c,e.isTypeNode));case 192:return e.Debug.type(a),f.updateIndexedAccessTypeNode(a,d(a.objectType,c,e.isTypeNode),d(a.indexType,c,e.isTypeNode));case 193:return e.Debug.type(a),f.updateMappedTypeNode(a,d(a.readonlyToken,_,e.isReadonlyKeywordOrPlusOrMinusToken),d(a.typeParameter,c,e.isTypeParameterDeclaration),d(a.nameType,c,e.isTypeNode),d(a.questionToken,_,e.isQuestionOrPlusOrMinusToken),d(a.type,c,e.isTypeNode));case 194:return e.Debug.type(a),f.updateLiteralTypeNode(a,d(a.literal,c,e.isExpression));case 196:return e.Debug.type(a),f.updateTemplateLiteralType(a,d(a.head,c,e.isTemplateHead),l(a.templateSpans,c,e.isTemplateLiteralTypeSpan));case 197:return e.Debug.type(a),f.updateTemplateLiteralTypeSpan(a,d(a.type,c,e.isTypeNode),d(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 199:return e.Debug.type(a),f.updateObjectBindingPattern(a,l(a.elements,c,e.isBindingElement));case 200:return e.Debug.type(a),f.updateArrayBindingPattern(a,l(a.elements,c,e.isArrayBindingElement));case 201:return e.Debug.type(a),f.updateBindingElement(a,d(a.dotDotDotToken,_,e.isDotDotDotToken),d(a.propertyName,c,e.isPropertyName),d(a.name,c,e.isBindingName),d(a.initializer,c,e.isExpression));case 202:return e.Debug.type(a),f.updateArrayLiteralExpression(a,l(a.elements,c,e.isExpression));case 203:return e.Debug.type(a),f.updateObjectLiteralExpression(a,l(a.properties,c,e.isObjectLiteralElementLike));case 204:return 32&a.flags?(e.Debug.type(a),f.updatePropertyAccessChain(a,d(a.expression,c,e.isExpression),d(a.questionDotToken,_,e.isQuestionDotToken),d(a.name,c,e.isMemberName))):(e.Debug.type(a),f.updatePropertyAccessExpression(a,d(a.expression,c,e.isExpression),d(a.name,c,e.isMemberName)));case 205:return 32&a.flags?(e.Debug.type(a),f.updateElementAccessChain(a,d(a.expression,c,e.isExpression),d(a.questionDotToken,_,e.isQuestionDotToken),d(a.argumentExpression,c,e.isExpression))):(e.Debug.type(a),f.updateElementAccessExpression(a,d(a.expression,c,e.isExpression),d(a.argumentExpression,c,e.isExpression)));case 206:return 32&a.flags?(e.Debug.type(a),f.updateCallChain(a,d(a.expression,c,e.isExpression),d(a.questionDotToken,_,e.isQuestionDotToken),l(a.typeArguments,c,e.isTypeNode),l(a.arguments,c,e.isExpression))):(e.Debug.type(a),f.updateCallExpression(a,d(a.expression,c,e.isExpression),l(a.typeArguments,c,e.isTypeNode),l(a.arguments,c,e.isExpression)));case 207:return e.Debug.type(a),f.updateNewExpression(a,d(a.expression,c,e.isExpression),l(a.typeArguments,c,e.isTypeNode),l(a.arguments,c,e.isExpression));case 208:return e.Debug.type(a),f.updateTaggedTemplateExpression(a,d(a.tag,c,e.isExpression),r(a.typeArguments,c,e.isTypeNode),d(a.template,c,e.isTemplateLiteral));case 209:return e.Debug.type(a),f.updateTypeAssertion(a,d(a.type,c,e.isTypeNode),d(a.expression,c,e.isExpression));case 210:return e.Debug.type(a),f.updateParenthesizedExpression(a,d(a.expression,c,e.isExpression));case 211:return e.Debug.type(a),f.updateFunctionExpression(a,l(a.modifiers,c,e.isModifier),d(a.asteriskToken,_,e.isAsteriskToken),d(a.name,c,e.isIdentifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,u,l),d(a.type,c,e.isTypeNode),o(a.body,c,u,d));case 212:return e.Debug.type(a),f.updateArrowFunction(a,l(a.modifiers,c,e.isModifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,u,l),d(a.type,c,e.isTypeNode),d(a.equalsGreaterThanToken,_,e.isEqualsGreaterThanToken),o(a.body,c,u,d));case 213:return e.Debug.type(a),f.updateDeleteExpression(a,d(a.expression,c,e.isExpression));case 214:return e.Debug.type(a),f.updateTypeOfExpression(a,d(a.expression,c,e.isExpression));case 215:return e.Debug.type(a),f.updateVoidExpression(a,d(a.expression,c,e.isExpression));case 216:return e.Debug.type(a),f.updateAwaitExpression(a,d(a.expression,c,e.isExpression));case 217:return e.Debug.type(a),f.updatePrefixUnaryExpression(a,d(a.operand,c,e.isExpression));case 218:return e.Debug.type(a),f.updatePostfixUnaryExpression(a,d(a.operand,c,e.isExpression));case 219:return e.Debug.type(a),f.updateBinaryExpression(a,d(a.left,c,e.isExpression),d(a.operatorToken,_,e.isBinaryOperatorToken),d(a.right,c,e.isExpression));case 220:return e.Debug.type(a),f.updateConditionalExpression(a,d(a.condition,c,e.isExpression),d(a.questionToken,_,e.isQuestionToken),d(a.whenTrue,c,e.isExpression),d(a.colonToken,_,e.isColonToken),d(a.whenFalse,c,e.isExpression));case 221:return e.Debug.type(a),f.updateTemplateExpression(a,d(a.head,c,e.isTemplateHead),l(a.templateSpans,c,e.isTemplateSpan));case 222:return e.Debug.type(a),f.updateYieldExpression(a,d(a.asteriskToken,_,e.isAsteriskToken),d(a.expression,c,e.isExpression));case 223:return e.Debug.type(a),f.updateSpreadElement(a,d(a.expression,c,e.isExpression));case 224:return e.Debug.type(a),f.updateClassExpression(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.heritageClauses,c,e.isHeritageClause),l(a.members,c,e.isClassElement));case 226:return e.Debug.type(a),f.updateExpressionWithTypeArguments(a,d(a.expression,c,e.isExpression),l(a.typeArguments,c,e.isTypeNode));case 227:return e.Debug.type(a),f.updateAsExpression(a,d(a.expression,c,e.isExpression),d(a.type,c,e.isTypeNode));case 228:return 32&a.flags?(e.Debug.type(a),f.updateNonNullChain(a,d(a.expression,c,e.isExpression))):(e.Debug.type(a),f.updateNonNullExpression(a,d(a.expression,c,e.isExpression)));case 229:return e.Debug.type(a),f.updateMetaProperty(a,d(a.name,c,e.isIdentifier));case 231:return e.Debug.type(a),f.updateTemplateSpan(a,d(a.expression,c,e.isExpression),d(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 233:return e.Debug.type(a),f.updateBlock(a,l(a.statements,c,e.isStatement));case 235:return e.Debug.type(a),f.updateVariableStatement(a,l(a.modifiers,c,e.isModifier),d(a.declarationList,c,e.isVariableDeclarationList));case 236:return e.Debug.type(a),f.updateExpressionStatement(a,d(a.expression,c,e.isExpression));case 237:return e.Debug.type(a),f.updateIfStatement(a,d(a.expression,c,e.isExpression),d(a.thenStatement,c,e.isStatement,f.liftToBlock),d(a.elseStatement,c,e.isStatement,f.liftToBlock));case 238:return e.Debug.type(a),f.updateDoStatement(a,s(a.statement,c,u),d(a.expression,c,e.isExpression));case 239:return e.Debug.type(a),f.updateWhileStatement(a,d(a.expression,c,e.isExpression),s(a.statement,c,u));case 240:return e.Debug.type(a),f.updateForStatement(a,d(a.initializer,c,e.isForInitializer),d(a.condition,c,e.isExpression),d(a.incrementor,c,e.isExpression),s(a.statement,c,u));case 241:return e.Debug.type(a),f.updateForInStatement(a,d(a.initializer,c,e.isForInitializer),d(a.expression,c,e.isExpression),s(a.statement,c,u));case 242:return e.Debug.type(a),f.updateForOfStatement(a,d(a.awaitModifier,_,e.isAwaitKeyword),d(a.initializer,c,e.isForInitializer),d(a.expression,c,e.isExpression),s(a.statement,c,u));case 243:return e.Debug.type(a),f.updateContinueStatement(a,d(a.label,c,e.isIdentifier));case 244:return e.Debug.type(a),f.updateBreakStatement(a,d(a.label,c,e.isIdentifier));case 245:return e.Debug.type(a),f.updateReturnStatement(a,d(a.expression,c,e.isExpression));case 246:return e.Debug.type(a),f.updateWithStatement(a,d(a.expression,c,e.isExpression),d(a.statement,c,e.isStatement,f.liftToBlock));case 247:return e.Debug.type(a),f.updateSwitchStatement(a,d(a.expression,c,e.isExpression),d(a.caseBlock,c,e.isCaseBlock));case 248:return e.Debug.type(a),f.updateLabeledStatement(a,d(a.label,c,e.isIdentifier),d(a.statement,c,e.isStatement,f.liftToBlock));case 249:return e.Debug.type(a),f.updateThrowStatement(a,d(a.expression,c,e.isExpression));case 250:return e.Debug.type(a),f.updateTryStatement(a,d(a.tryBlock,c,e.isBlock),d(a.catchClause,c,e.isCatchClause),d(a.finallyBlock,c,e.isBlock));case 252:return e.Debug.type(a),f.updateVariableDeclaration(a,d(a.name,c,e.isBindingName),d(a.exclamationToken,_,e.isExclamationToken),d(a.type,c,e.isTypeNode),d(a.initializer,c,e.isExpression));case 253:return e.Debug.type(a),f.updateVariableDeclarationList(a,l(a.declarations,c,e.isVariableDeclaration));case 254:return e.Debug.type(a),f.updateFunctionDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.asteriskToken,_,e.isAsteriskToken),d(a.name,c,e.isIdentifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,u,l),d(a.type,c,e.isTypeNode),o(a.body,c,u,d));case 255:return e.Debug.type(a),f.updateClassDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.heritageClauses,c,e.isHeritageClause),l(a.members,c,e.isClassElement));case 256:return e.Debug.type(a),f.updateInterfaceDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),l(a.heritageClauses,c,e.isHeritageClause),l(a.members,c,e.isTypeElement));case 257:return e.Debug.type(a),f.updateTypeAliasDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),l(a.typeParameters,c,e.isTypeParameterDeclaration),d(a.type,c,e.isTypeNode));case 258:return e.Debug.type(a),f.updateEnumDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),l(a.members,c,e.isEnumMember));case 259:return e.Debug.type(a),f.updateModuleDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.name,c,e.isModuleName),d(a.body,c,e.isModuleBody));case 260:return e.Debug.type(a),f.updateModuleBlock(a,l(a.statements,c,e.isStatement));case 261:return e.Debug.type(a),f.updateCaseBlock(a,l(a.clauses,c,e.isCaseOrDefaultClause));case 262:return e.Debug.type(a),f.updateNamespaceExportDeclaration(a,d(a.name,c,e.isIdentifier));case 263:return e.Debug.type(a),f.updateImportEqualsDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),a.isTypeOnly,d(a.name,c,e.isIdentifier),d(a.moduleReference,c,e.isModuleReference));case 264:return e.Debug.type(a),f.updateImportDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.importClause,c,e.isImportClause),d(a.moduleSpecifier,c,e.isExpression));case 265:return e.Debug.type(a),f.updateImportClause(a,a.isTypeOnly,d(a.name,c,e.isIdentifier),d(a.namedBindings,c,e.isNamedImportBindings));case 266:return e.Debug.type(a),f.updateNamespaceImport(a,d(a.name,c,e.isIdentifier));case 272:return e.Debug.type(a),f.updateNamespaceExport(a,d(a.name,c,e.isIdentifier));case 267:return e.Debug.type(a),f.updateNamedImports(a,l(a.elements,c,e.isImportSpecifier));case 268:return e.Debug.type(a),f.updateImportSpecifier(a,d(a.propertyName,c,e.isIdentifier),d(a.name,c,e.isIdentifier));case 269:return e.Debug.type(a),f.updateExportAssignment(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),d(a.expression,c,e.isExpression));case 270:return e.Debug.type(a),f.updateExportDeclaration(a,l(a.decorators,c,e.isDecorator),l(a.modifiers,c,e.isModifier),a.isTypeOnly,d(a.exportClause,c,e.isNamedExportBindings),d(a.moduleSpecifier,c,e.isExpression));case 271:return e.Debug.type(a),f.updateNamedExports(a,l(a.elements,c,e.isExportSpecifier));case 273:return e.Debug.type(a),f.updateExportSpecifier(a,d(a.propertyName,c,e.isIdentifier),d(a.name,c,e.isIdentifier));case 275:return e.Debug.type(a),f.updateExternalModuleReference(a,d(a.expression,c,e.isExpression));case 276:return e.Debug.type(a),f.updateJsxElement(a,d(a.openingElement,c,e.isJsxOpeningElement),l(a.children,c,e.isJsxChild),d(a.closingElement,c,e.isJsxClosingElement));case 277:return e.Debug.type(a),f.updateJsxSelfClosingElement(a,d(a.tagName,c,e.isJsxTagNameExpression),l(a.typeArguments,c,e.isTypeNode),d(a.attributes,c,e.isJsxAttributes));case 278:return e.Debug.type(a),f.updateJsxOpeningElement(a,d(a.tagName,c,e.isJsxTagNameExpression),l(a.typeArguments,c,e.isTypeNode),d(a.attributes,c,e.isJsxAttributes));case 279:return e.Debug.type(a),f.updateJsxClosingElement(a,d(a.tagName,c,e.isJsxTagNameExpression));case 280:return e.Debug.type(a),f.updateJsxFragment(a,d(a.openingFragment,c,e.isJsxOpeningFragment),l(a.children,c,e.isJsxChild),d(a.closingFragment,c,e.isJsxClosingFragment));case 283:return e.Debug.type(a),f.updateJsxAttribute(a,d(a.name,c,e.isIdentifier),d(a.initializer,c,e.isStringLiteralOrJsxExpression));case 284:return e.Debug.type(a),f.updateJsxAttributes(a,l(a.properties,c,e.isJsxAttributeLike));case 285:return e.Debug.type(a),f.updateJsxSpreadAttribute(a,d(a.expression,c,e.isExpression));case 286:return e.Debug.type(a),f.updateJsxExpression(a,d(a.expression,c,e.isExpression));case 287:return e.Debug.type(a),f.updateCaseClause(a,d(a.expression,c,e.isExpression),l(a.statements,c,e.isStatement));case 288:return e.Debug.type(a),f.updateDefaultClause(a,l(a.statements,c,e.isStatement));case 289:return e.Debug.type(a),f.updateHeritageClause(a,l(a.types,c,e.isExpressionWithTypeArguments));case 290:return e.Debug.type(a),f.updateCatchClause(a,d(a.variableDeclaration,c,e.isVariableDeclaration),d(a.block,c,e.isBlock));case 291:return e.Debug.type(a),f.updatePropertyAssignment(a,d(a.name,c,e.isPropertyName),d(a.initializer,c,e.isExpression));case 292:return e.Debug.type(a),f.updateShorthandPropertyAssignment(a,d(a.name,c,e.isIdentifier),d(a.objectAssignmentInitializer,c,e.isExpression));case 293:return e.Debug.type(a),f.updateSpreadAssignment(a,d(a.expression,c,e.isExpression));case 294:return e.Debug.type(a),f.updateEnumMember(a,d(a.name,c,e.isPropertyName),d(a.initializer,c,e.isExpression));case 300:return e.Debug.type(a),f.updateSourceFile(a,n(a.statements,c,u));case 345:return e.Debug.type(a),f.updatePartiallyEmittedExpression(a,d(a.expression,c,e.isExpression));case 346:return e.Debug.type(a),f.updateCommaListExpression(a,l(a.elements,c,e.isExpression));default:return a}}}}(s||(s={})),function(e){e.createSourceMapGenerator=function(t,r,n,i,o){var s,c,u=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,l=u.enter,_=u.exit,d=[],p=[],f=new e.Map,g=[],m=[],y="",v=0,h=0,D=0,b=0,x=0,S=0,C=!1,E=0,T=0,k=0,A=0,F=0,N=0,P=!1,w=!1,I=!1;return{getSources:function(){return d},addSource:O,setSourceContent:M,addName:L,addMapping:R,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=E,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),l();for(var c,u=[],d=a(n.mappings),p=d.next();!p.done;p=d.next()){var f=p.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine=E,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),l(),(function(e,t){return!P||E!==e||T!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(A>t||A===t&&F>r)}(n,i,a))&&(j(),E=t,T=r,w=!1,I=!1,P=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,A=i,F=a,w=!0,void 0!==o&&(N=o,I=!0)),_()}function B(e){m.push(e),m.length>=1024&&J()}function j(){if(P&&(!C||v!==E||h!==T||D!==k||b!==A||x!==F||S!==N)){if(l(),v0&&(y+=String.fromCharCode.apply(void 0,m),m.length=0)}function K(){return j(),J(),{version:3,file:r,sourceRoot:n,sources:p,names:g,mappings:y,sourcesContent:s}}function z(t){t<0?t=1+(-t<<1):t<<=1;do{var r=31&t;(t>>=5)>0&&(r|=32),B((n=r)>=0&&n<26?65+n:n>=26&&n<52?97+n-26:n>=52&&n<62?48+n-52:62===n?43:63===n?47:e.Debug.fail(n+": not a base64 value"))}while(t>0);var n}};var t=/^\/\/[@#] source[M]appingURL=(.+)$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,u=0;return{get pos(){return n},get error(){return t},get state(){return l(!0,!0)},next:function(){for(;!r&&n=e.length)return d("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return d("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function u(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function l(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function _(e){return e.sourcePosition}function d(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}},e.tryGetSourceMappingURL=function(n){for(var i=n.getLineCount()-1;i>=0;i--){var a=n.getLineText(i),o=t.exec(a);if(o)return e.trimStringEnd(o[1]);if(!a.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,p,f,g=e.getDirectoryPath(n),m=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,g):g,y=e.getNormalizedAbsolutePath(r.file,g),v=t.getSourceFileLike(y),h=r.sources.map((function(t){return e.getNormalizedAbsolutePath(t,m)})),D=new e.Map(h.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=C();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,d,e.compareValues);n<0&&(n=~n);var i=r[n];if(void 0===i||!s(i))return t;return{fileName:h[i.sourceIndex],pos:i.sourcePosition}},getGeneratedPosition:function(r){var n=D.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=S(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,_,e.compareValues);a<0&&(a=~a);var o=i[a];if(void 0===o||o.sourceIndex!==n)return r;return{fileName:y,pos:o.generatedPosition}}};function b(n){var i,a,s=void 0!==v?e.getPositionOfLineAndCharacter(v,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(h[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function x(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,b);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: "+n.error),i=e.emptyArray):i=o}return i}function S(t){if(void 0===f){for(var r=[],n=0,i=x();n0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r)}(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i=64&&e<=78},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},e.addPrologueDirectivesAndInitialSuperCall=function(t,r,n,i){if(r.body){var a=r.body.statements,o=t.copyPrologue(a,n,!1,i);if(o===a.length)return o;var s=e.findIndex(a,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}),o);if(s>-1){for(var c=o;c<=s;c++)n.push(e.visitNode(a[c],i,e.isStatement));return s+1}return o}return 0},e.getProperties=function(t,r,n){return e.filter(t.members,(function(t){return function(t,r,n){return e.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&e.hasStaticModifier(t)===n}(t,r,n)}))},e.getStaticPropertiesAndClassStaticBlock=function(t){return e.filter(t.members,c)},e.isInitializedProperty=function(e){return 165===e.kind&&void 0!==e.initializer},e.isNonStaticMethodOrAccessorWithPrivateName=function(t){return!e.isStatic(t)&&e.isMethodOrAccessor(t)&&e.isPrivateIdentifier(t.name)}}(s||(s={})),function(e){var t;function r(t,n){var i=e.getTargetOfBindingOrAssignmentElement(t);return e.isBindingOrAssignmentPattern(i)?function(t,n){for(var i=e.getElementsOfBindingOrAssignmentPattern(t),a=0,o=i;a=1)||49152&f.transformFlags||49152&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),a,c,n),u=void 0);var m=o(t,a,g);e.isComputedPropertyName(g)&&(l=e.append(l,m.argumentExpression)),i(t,f,m,f)}else u=e.append(u,e.visitNode(f,t.visitor))}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),a,c,n)}(t,r,l,n,c):e.isArrayBindingOrAssignmentPattern(l)?function(t,r,n,o,c){var u,l,_=e.getElementsOfBindingOrAssignmentPattern(n),d=_.length;if(t.level<1&&t.downlevelIteration)o=s(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(o,d>0&&e.getRestIndicatorOfBindingOrAssignmentElement(_[d-1])?void 0:d),c),!1,c);else if(1!==d&&(t.level<1||0===d)||e.every(_,e.isOmittedExpression)){o=s(t,o,!e.isDeclarationBindingElement(r)||0!==d,c)}for(var p=0;p=1)if(32768&f.transformFlags||t.hasTransformedPriorElement&&!a(f)){t.hasTransformedPriorElement=!0;var g=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(g),l=e.append(l,[g,f]),u=e.append(u,t.createArrayBindingOrAssignmentElement(g))}else u=e.append(u,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===d-1){m=t.context.factory.createArraySliceCall(o,p);i(t,f,m,f)}}else{var m=t.context.factory.createElementAccessExpression(o,p);i(t,f,m,f)}}}u&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(u),o,c,n);if(l)for(var y=0,v=l;y1&&(_.push(d.createEndOfDeclarationMarker(i)),e.setEmitFlags(c,4194304|e.getEmitFlags(c)));return e.singleOrMany(_)}(o);case 224:return function(r){if(!j(r))return e.visitEachChild(r,k,t);var n=d.createClassExpression(void 0,void 0,r.name,void 0,e.visitNodes(r.heritageClauses,k,e.isHeritageClause),J(r));return e.setOriginalNode(n,r),e.setTextRange(n,r),n}(o);case 289:return function(r){if(117===r.token)return;return e.visitEachChild(r,k,t)}(o);case 226:return function(t){return d.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,k,e.isLeftHandSideExpression),void 0)}(o);case 167:return function(r){if(!oe(r))return;var n=d.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,ae(r),void 0,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(o);case 170:return function(r){if(!le(r))return;var n=d.updateGetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),ae(r),e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([]));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(o);case 171:return function(r){if(!le(r))return;var n=d.updateSetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),ae(r),e.visitParameterList(r.parameters,k,t),e.visitFunctionBody(r.body,k,t)||d.createBlock([]));n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r)));return n}(o);case 254:return function(r){if(!oe(r))return d.createNotEmittedStatement(r);var n=d.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([]));if(Ee(r)){var i=[n];return Fe(i,r),i}return n}(o);case 211:return function(r){if(!oe(r))return d.createOmittedExpression();return d.updateFunctionExpression(r,e.visitNodes(r.modifiers,M,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([]))}(o);case 212:return function(r){return d.updateArrowFunction(r,e.visitNodes(r.modifiers,M,e.isModifier),void 0,e.visitParameterList(r.parameters,k,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,k,t))}(o);case 162:return function(t){if(e.parameterIsThisKeyword(t))return;var r=d.updateParameterDeclaration(t,void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression));r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32));return r}(o);case 210:return function(n){var i=e.skipOuterExpressions(n.expression,-7);if(e.isAssertionExpression(i)){var a=e.visitNode(n.expression,k,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(a,r))?d.updateParenthesizedExpression(n,a):d.createPartiallyEmittedExpression(a,n)}return e.visitEachChild(n,k,t)}(o);case 209:case 227:return function(t){var r=e.visitNode(t.expression,k,e.isExpression);return d.createPartiallyEmittedExpression(r,t)}(o);case 206:return function(t){return d.updateCallExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 207:return function(t){return d.updateNewExpression(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,k,e.isExpression))}(o);case 208:return function(t){return d.updateTaggedTemplateExpression(t,e.visitNode(t.tag,k,e.isExpression),void 0,e.visitNode(t.template,k,e.isExpression))}(o);case 228:return function(t){var r=e.visitNode(t.expression,k,e.isLeftHandSideExpression);return d.createPartiallyEmittedExpression(r,t)}(o);case 258:return function(t){if(!function(t){return!e.isEnumConst(t)||e.shouldPreserveConstEnums(h)}(t))return d.createNotEmittedStatement(t);var n=[],o=2,s=me(n,t);s&&(x===e.ModuleKind.System&&a===r||(o|=512));var c=we(t),u=Ie(t),l=e.hasSyntacticModifier(t,1)?d.getExternalModuleOrNamespaceExportName(i,t,!1,!0):d.getLocalName(t,!1,!0),_=d.createLogicalOr(l,d.createAssignment(l,d.createObjectLiteralExpression()));if(pe(t)){var p=d.getLocalName(t,!1,!0);_=d.createAssignment(p,_)}var g=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,function(t,r){var n=i;i=r;var a=[];f();var o=e.map(t.members,de);return e.insertStatementsAfterStandardPrologue(a,m()),e.addRange(a,o),i=n,d.createBlock(e.setTextRange(d.createNodeArray(a),t.members),!0)}(t,u)),void 0,[_]));e.setOriginalNode(g,t),s&&(e.setSyntheticLeadingComments(g,void 0),e.setSyntheticTrailingComments(g,void 0));return e.setTextRange(g,t),e.addEmitFlags(g,o),n.push(g),n.push(d.createEndOfDeclarationMarker(t)),n}(o);case 235:return function(r){if(Ee(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(d.createExpressionStatement(d.inlineExpressions(e.map(n,_e))),r)}return e.visitEachChild(r,k,t)}(o);case 252:return function(t){return d.updateVariableDeclaration(t,e.visitNode(t.name,k,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,k,e.isExpression))}(o);case 259:return ye(o);case 263:return Ce(o);case 277:return function(t){return d.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);case 278:return function(t){return d.updateJsxOpeningElement(t,e.visitNode(t.tagName,k,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,k,e.isJsxAttributes))}(o);default:return e.visitEachChild(o,k,t)}}function R(r){var n=e.getStrictOptionValue(h,"alwaysStrict")&&!(e.isExternalModule(r)&&x>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return d.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,F,t,0,n))}function B(e){return!!(4096&e.transformFlags)}function j(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,B)||e.some(t.members,B)}function J(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(i)for(var a=0,o=i;a0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s0?165===r.kind?d.createVoidZero():d.createNull():void 0,s=p().createDecorateHelper(n,i,a,o);return e.setTextRange(s,e.moveRangePastDecorators(r)),e.setEmitFlags(s,1536),s}}function G(t){return e.visitNode(t.expression,k,e.isExpression)}function Y(t,r){var n;if(t){n=[];for(var i=0,a=t;i=2,g=_<=8||!d,m=r.onSubstituteNode;r.onSubstituteNode=function(t,r){if(r=m(t,r),1===t)return function(t){switch(t.kind){case 79:return function(t){return function(t){if(1&y&&33554432&u.getNodeCheckFlags(t)){var r=u.getReferencedValueDeclaration(t);if(r){var i=v[r.id];if(i){var a=n.cloneNode(i);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}return}(t)||t}(t);case 108:return function(t){if(2&y&&x){var r=x.facts,i=x.classConstructor;if(1&r)return n.createParenthesizedExpression(n.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(n.cloneNode(i),t),t)}return t}(t)}return t}(r);return r};var y,v,h,D,b=r.onEmitNode;r.onEmitNode=function(t,r,n){var i=e.getOriginalNode(r);if(i.id){var a=T.get(i.id);if(a){var o=x,s=S;return x=a,S=a,b(t,r,n),x=o,void(S=s)}}switch(r.kind){case 211:if(e.isArrowFunction(i)||262144&e.getEmitFlags(r))break;case 254:case 169:o=x,s=S;return x=void 0,S=void 0,b(t,r,n),x=o,void(S=s);case 170:case 171:case 167:case 165:o=x,s=S;return S=x,x=void 0,b(t,r,n),x=o,void(S=s);case 160:o=x,s=S;return x=S,S=void 0,b(t,r,n),x=o,void(S=s)}b(t,r,n)};var x,S,C,E=[],T=new e.Map;return e.chainBundle(r,(function(t){var n=r.getCompilerOptions();if(t.isDeclarationFile||d&&99===n.target)return t;var i=e.visitEachChild(t,F,r);return e.addEmitHelpers(i,r.readEmitHelpers()),i}));function k(a,o){if(8388608&a.transformFlags)switch(a.kind){case 224:case 255:return function(t){if(!e.forEach(t.members,j))return e.visitEachChild(t,F,r);var a=h;if(h=void 0,function(){E.push(x),x=void 0}(),p){var o=e.getNameOfDeclaration(t);o&&e.isIdentifier(o)&&(Y().className=e.idText(o));var s=J(t);e.some(s)&&(Y().weakSetName=Q("instances",s[0].name))}var l=e.isClassDeclaration(t)?function(t){var r=K(t);r&&(G().facts=r);8&r&&W();var a,o=e.getStaticPropertiesAndClassStaticBlock(t);if(2&r){var s=n.createTempVariable(i,!0);G().classConstructor=n.cloneNode(s),a=n.createAssignment(s,n.getInternalName(t))}var c=e.getEffectiveBaseTypeNode(t),u=!(!c||104===e.skipOuterExpressions(c.expression).kind),l=[n.updateClassDeclaration(t,void 0,t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,N,e.isHeritageClause),z(t,u))];a&&X().unshift(a);e.some(h)&&l.push(n.createExpressionStatement(n.inlineExpressions(h)));e.some(o)&&V(l,o,n.getInternalName(t));return l}(t):function(t){var a=K(t);a&&(G().facts=a);8&a&&W();var o,s=!!(1&a),l=e.getStaticPropertiesAndClassStaticBlock(t),_=e.getEffectiveBaseTypeNode(t),d=!(!_||104===e.skipOuterExpressions(_.expression).kind),f=16777216&u.getNodeCheckFlags(t);function g(){var e=u.getNodeCheckFlags(t),r=16777216&e,a=524288&e;return n.createTempVariable(a?c:i,!!r)}2&a&&(o=g(),G().classConstructor=n.cloneNode(o));var m=n.updateClassExpression(t,e.visitNodes(t.decorators,F,e.isDecorator),t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,N,e.isHeritageClause),z(t,d));if(e.some(l,(function(t){return e.isClassStaticBlockDeclaration(t)||!!t.initializer||p&&e.isPrivateIdentifier(t.name)}))||e.some(h)){if(s)return e.Debug.assertIsDefined(D,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),D&&h&&e.some(h)&&D.push(n.createExpressionStatement(n.inlineExpressions(h))),D&&e.some(l)&&V(D,l,n.getInternalName(t)),o?n.inlineExpressions([n.createAssignment(o,m),o]):m;var b=[];if(o||(o=g()),f){0==(1&y)&&(y|=1,r.enableSubstitution(79),v=[]);var x=n.cloneNode(o);x.autoGenerateFlags&=-9,v[e.getOriginalNodeId(t)]=x}return e.setEmitFlags(m,65536|e.getEmitFlags(m)),b.push(e.startOnNewLine(n.createAssignment(o,m))),e.addRange(b,e.map(h,e.startOnNewLine)),e.addRange(b,function(t,r){for(var n=[],i=0,a=t;i_&&(d||e.addRange(f,e.visitNodes(i.body.statements,F,e.isStatement,_,g-_)),_=g)}var m=n.createThis();(function(t,r,i){if(!p||!e.some(r))return;var a=Y().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),t.push(n.createExpressionStatement(function(t,r){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"add"),void 0,[t])}(i,a)))})(f,u,m),V(f,c,m),i&&e.addRange(f,e.visitNodes(i.body.statements,F,e.isStatement,_));return f=n.mergeLexicalEnvironment(f,a()),e.setTextRange(n.createBlock(e.setTextRange(n.createNodeArray(f),i?i.body.statements:t.members),!0),i?i.body:void 0)}(t,o,i);if(!l)return;return e.startOnNewLine(e.setOriginalNode(e.setTextRange(n.createConstructorDeclaration(void 0,void 0,null!=u?u:[],l),o||t),o))}(t,i);return f&&_.push(f),e.addRange(_,e.visitNodes(t.members,w,e.isClassElement)),e.setTextRange(n.createNodeArray(_),t.members)}function U(t){return!e.isStatic(t)&&!e.hasSyntacticModifier(e.getOriginalNode(t),128)&&(d?_<99:e.isInitializedProperty(t)||p&&e.isPrivateIdentifierClassElementDeclaration(t))}function V(t,r,i){for(var a=0,o=r;a=0;--r){var n,i=E[r];if(i)if(n=null===(t=i.privateIdentifierEnvironment)||void 0===t?void 0:t.identifiers.get(e.escapedText))return n}}function te(t){var a=n.getGeneratedNameForNode(t),o=ee(t.name);if(!o)return e.visitEachChild(t,F,r);var s=t.expression;return(e.isThisProperty(t)||e.isSuperProperty(t)||!e.isSimpleCopiableExpression(t.expression))&&(s=n.createTempVariable(i,!0),X().push(n.createBinaryExpression(s,63,e.visitNode(t.expression,F,e.isExpression)))),n.createAssignmentTargetWrapper(a,B(o,s,a,63))}function re(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(r){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(r))i=te(r);else if(f&&e.isSuperProperty(r)&&C&&x){var a=x.classConstructor,o=x.superClassReference;if(1&x.facts)i=H(r);else if(a&&o){var s=e.isElementAccessExpression(r)?e.visitNode(r.argumentExpression,F,e.isExpression):e.isIdentifier(r.name)?n.createStringLiteralFromNode(r.name):void 0;if(s){var c=n.createTempVariable(void 0);i=n.createAssignmentTargetWrapper(c,n.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(t)?n.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,F,e.isExpression)):e.isSpreadElement(t)?n.updateSpreadElement(t,i):i}return e.visitNode(t,P)}function ne(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var r=e.getTargetOfBindingOrAssignmentElement(t),i=void 0;if(r)if(e.isPrivateIdentifierPropertyAccessExpression(r))i=te(r);else if(f&&e.isSuperProperty(r)&&C&&x){var a=x.classConstructor,o=x.superClassReference;if(1&x.facts)i=H(r);else if(a&&o){var s=e.isElementAccessExpression(r)?e.visitNode(r.argumentExpression,F,e.isExpression):e.isIdentifier(r.name)?n.createStringLiteralFromNode(r.name):void 0;if(s){var c=n.createTempVariable(void 0);i=n.createAssignmentTargetWrapper(c,n.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(t)){var u=e.getInitializerOfBindingOrAssignmentElement(t);return n.updatePropertyAssignment(t,e.visitNode(t.name,F,e.isPropertyName),i?u?n.createAssignment(i,e.visitNode(u,F)):i:e.visitNode(t.initializer,P,e.isExpression))}if(e.isSpreadAssignment(t))return n.updateSpreadAssignment(t,i||e.visitNode(t.expression,P,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(t,F)}}}(s||(s={})),function(e){var r,n;function i(t,r,n,i){var a=0!=(4096&r.getNodeCheckFlags(n)),o=[];return i.forEach((function(r,n){var i=e.unescapeLeadingUnderscores(n),s=[];s.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4)))),a&&s.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4),t.createIdentifier("v"))))),o.push(t.createPropertyAssignment(i,t.createObjectLiteralExpression(s)))})),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(o,!0)]))],2))}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(r||(r={})),function(e){e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"}(n||(n={})),e.transformES2017=function(r){var n,a,o,s,c=r.factory,u=r.getEmitHelperFactory,l=r.resumeLexicalEnvironment,_=r.endLexicalEnvironment,d=r.hoistVariableDeclaration,p=r.getEmitResolver(),f=r.getCompilerOptions(),g=e.getEmitScriptTarget(f),m=0,y=[],v=0,h=r.onEmitNode,D=r.onSubstituteNode;return r.onEmitNode=function(t,r,i){if(1&n&&function(e){var t=e.kind;return 255===t||169===t||167===t||170===t||171===t}(r)){var a=6144&p.getNodeCheckFlags(r);if(a!==m){var o=m;return m=a,h(t,r,i),void(m=o)}}else if(n&&y[e.getNodeId(r)]){o=m;return m=0,h(t,r,i),void(m=o)}h(t,r,i)},r.onSubstituteNode=function(r,n){if(n=D(r,n),1===r&&m)return function(r){switch(r.kind){case 204:return J(r);case 205:return K(r);case 206:return function(r){var n=r.expression;if(e.isSuperProperty(n)){var i=e.isPropertyAccessExpression(n)?J(n):K(n);return c.createCallExpression(c.createPropertyAccessExpression(i,"call"),void 0,t([c.createThis()],r.arguments,!0))}return r}(r)}return r}(n);return n},e.chainBundle(r,(function(t){if(t.isDeclarationFile)return t;b(1,!1),b(2,!e.isEffectiveStrictModeSourceFile(t,f));var n=e.visitEachChild(t,T,r);return e.addEmitHelpers(n,r.readEmitHelpers()),n}));function b(e,t){v=t?v|e:v&~e}function x(e){return 0!=(v&e)}function S(){return x(2)}function C(e,t,r){var n=e&~v;if(n){b(n,!0);var i=t(r);return b(n,!1),i}return t(r)}function E(t){return e.visitEachChild(t,T,r)}function T(t){if(0==(128&t.transformFlags))return t;switch(t.kind){case 130:return;case 216:return function(t){if(!x(1))return e.visitEachChild(t,T,r);return e.setOriginalNode(e.setTextRange(c.createYieldExpression(void 0,e.visitNode(t.expression,T,e.isExpression)),t),t)}(t);case 167:return C(3,A,t);case 254:return C(3,F,t);case 211:return C(3,N,t);case 212:return C(1,P,t);case 204:return o&&e.isPropertyAccessExpression(t)&&106===t.expression.kind&&o.add(t.name.escapedText),e.visitEachChild(t,T,r);case 205:return o&&106===t.expression.kind&&(s=!0),e.visitEachChild(t,T,r);case 170:case 171:case 169:case 255:case 224:return C(3,E,t);default:return e.visitEachChild(t,T,r)}}function k(t){if(e.isNodeWithPossibleHoistedDeclaration(t))switch(t.kind){case 235:return function(t){if(I(t.declarationList)){var n=O(t.declarationList,!1);return n?c.createExpressionStatement(n):void 0}return e.visitEachChild(t,T,r)}(t);case 240:return function(t){var n=t.initializer;return c.updateForStatement(t,I(n)?O(n,!1):e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.condition,T,e.isExpression),e.visitNode(t.incrementor,T,e.isExpression),e.visitIterationBody(t.statement,k,r))}(t);case 241:return function(t){return c.updateForInStatement(t,I(t.initializer)?O(t.initializer,!0):e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),e.visitIterationBody(t.statement,k,r))}(t);case 242:return function(t){return c.updateForOfStatement(t,e.visitNode(t.awaitModifier,T,e.isToken),I(t.initializer)?O(t.initializer,!0):e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.expression,T,e.isExpression),e.visitIterationBody(t.statement,k,r))}(t);case 290:return function(t){var n,i=new e.Set;if(w(t.variableDeclaration,i),i.forEach((function(t,r){a.has(r)&&(n||(n=new e.Set(a)),n.delete(r))})),n){var o=a;a=n;var s=e.visitEachChild(t,k,r);return a=o,s}return e.visitEachChild(t,k,r)}(t);case 233:case 247:case 261:case 287:case 288:case 250:case 238:case 239:case 237:case 246:case 248:return e.visitEachChild(t,k,r);default:return e.Debug.assertNever(t,"Unhandled node.")}return T(t)}function A(t){return c.updateMethodDeclaration(t,void 0,e.visitNodes(t.modifiers,T,e.isModifier),t.asteriskToken,t.name,void 0,void 0,e.visitParameterList(t.parameters,T,r),void 0,2&e.getFunctionFlags(t)?B(t):e.visitFunctionBody(t.body,T,r))}function F(t){return c.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,T,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,T,r),void 0,2&e.getFunctionFlags(t)?B(t):e.visitFunctionBody(t.body,T,r))}function N(t){return c.updateFunctionExpression(t,e.visitNodes(t.modifiers,T,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,T,r),void 0,2&e.getFunctionFlags(t)?B(t):e.visitFunctionBody(t.body,T,r))}function P(t){return c.updateArrowFunction(t,e.visitNodes(t.modifiers,T,e.isModifier),void 0,e.visitParameterList(t.parameters,T,r),void 0,t.equalsGreaterThanToken,2&e.getFunctionFlags(t)?B(t):e.visitFunctionBody(t.body,T,r))}function w(t,r){var n=t.name;if(e.isIdentifier(n))r.add(n.escapedText);else for(var i=0,a=n.elements;i=2&&6144&p.getNodeCheckFlags(t);if(P&&(0==(1&n)&&(n|=1,r.enableSubstitution(206),r.enableSubstitution(204),r.enableSubstitution(205),r.enableEmitNotification(255),r.enableEmitNotification(167),r.enableEmitNotification(170),r.enableEmitNotification(171),r.enableEmitNotification(169),r.enableEmitNotification(235)),o.size)){var I=i(c,p,t,o);y[e.getNodeId(I)]=!0,e.insertStatementsAfterStandardPrologue(F,[I])}var O=c.createBlock(F,!0);e.setTextRange(O,t.body),P&&s&&(4096&p.getNodeCheckFlags(t)?e.addEmitHelper(O,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(t)&&e.addEmitHelper(O,e.asyncSuperHelper)),x=O}return a=h,m||(o=C,s=E),x}function j(t,r){return e.isBlock(t)?c.updateBlock(t,e.visitNodes(t.statements,k,e.isStatement,r)):c.converters.convertToFunctionBlock(e.visitNode(t,k,e.isConciseBody))}function J(t){return 106===t.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),t.name),t):t}function K(t){return 106===t.expression.kind?(r=t.argumentExpression,n=t,4096&m?e.setTextRange(c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),"value"),n):e.setTextRange(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=i}(s||(s={})),function(e){var r,n;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(r||(r={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(n||(n={})),e.transformES2018=function(r){var n=r.factory,i=r.getEmitHelperFactory,a=r.resumeLexicalEnvironment,o=r.endLexicalEnvironment,s=r.hoistVariableDeclaration,c=r.getEmitResolver(),u=r.getCompilerOptions(),l=e.getEmitScriptTarget(u),_=r.onEmitNode;r.onEmitNode=function(t,r,n){if(1&p&&function(e){var t=e.kind;return 255===t||169===t||167===t||170===t||171===t}(r)){var i=6144&c.getNodeCheckFlags(r);if(i!==D){var a=D;return D=i,_(t,r,n),void(D=a)}}else if(p&&x[e.getNodeId(r)]){a=D;return D=0,_(t,r,n),void(D=a)}_(t,r,n)};var d=r.onSubstituteNode;r.onSubstituteNode=function(r,i){if(i=d(r,i),1===r&&D)return function(r){switch(r.kind){case 204:return W(r);case 205:return H(r);case 206:return function(r){var i=r.expression;if(e.isSuperProperty(i)){var a=e.isPropertyAccessExpression(i)?W(i):H(i);return n.createCallExpression(n.createPropertyAccessExpression(a,"call"),void 0,t([n.createThis()],r.arguments,!0))}return r}(r)}return r}(i);return i};var p,f,g,m,y,v,h=!1,D=0,b=0,x=[];return e.chainBundle(r,(function(t){if(t.isDeclarationFile)return t;g=t;var i=function(t){var i=S(2,e.isEffectiveStrictModeSourceFile(t,u)?0:1);h=!1;var a=e.visitEachChild(t,T,r),o=e.concatenate(a.statements,m&&[n.createVariableStatement(void 0,n.createVariableDeclarationList(m))]),s=n.updateSourceFile(a,e.setTextRange(n.createNodeArray(o),t.statements));return C(i),s}(t);return e.addEmitHelpers(i,r.readEmitHelpers()),g=void 0,m=void 0,i}));function S(e,t){var r=b;return b=3&(b&~e|t),r}function C(e){b=e}function E(t){m=e.append(m,n.createVariableDeclaration(t))}function T(e){return P(e,!1)}function k(e){return P(e,!0)}function A(e){if(130!==e.kind)return e}function F(e,t,r,n){if(function(e,t){return b!==(b&~e|t)}(r,n)){var i=S(r,n),a=e(t);return C(i),a}return e(t)}function N(t){return e.visitEachChild(t,T,r)}function P(a,o){if(0==(64&a.transformFlags))return a;switch(a.kind){case 216:return function(t){if(2&f&&1&f)return e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,i().createAwaitHelper(e.visitNode(t.expression,T,e.isExpression))),t),t);return e.visitEachChild(t,T,r)}(a);case 222:return function(t){if(2&f&&1&f){if(t.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(t.expression),T,e.isExpression);return e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,i().createAwaitHelper(n.updateYieldExpression(t,t.asteriskToken,e.setTextRange(i().createAsyncDelegatorHelper(e.setTextRange(i().createAsyncValuesHelper(a),a)),a)))),t),t)}return e.setOriginalNode(e.setTextRange(n.createYieldExpression(void 0,M(t.expression?e.visitNode(t.expression,T,e.isExpression):n.createVoidZero())),t),t)}return e.visitEachChild(t,T,r)}(a);case 245:return function(t){if(2&f&&1&f)return n.updateReturnStatement(t,M(t.expression?e.visitNode(t.expression,T,e.isExpression):n.createVoidZero()));return e.visitEachChild(t,T,r)}(a);case 248:return function(t){if(2&f){var i=e.unwrapInnermostStatementOfLabel(t);return 242===i.kind&&i.awaitModifier?O(i,t):n.restoreEnclosingLabel(e.visitNode(i,T,e.isStatement,n.liftToBlock),t)}return e.visitEachChild(t,T,r)}(a);case 203:return function(t){if(32768&t.transformFlags){var a=function(t){for(var r,i=[],a=0,o=t;a1){for(var s=1;s=2&&6144&c.getNodeCheckFlags(t);if(g){0==(1&p)&&(p|=1,r.enableSubstitution(206),r.enableSubstitution(204),r.enableSubstitution(205),r.enableEmitNotification(255),r.enableEmitNotification(167),r.enableEmitNotification(170),r.enableEmitNotification(171),r.enableEmitNotification(169),r.enableEmitNotification(235));var m=e.createSuperAccessVariableStatement(n,c,t,y);x[e.getNodeId(m)]=!0,e.insertStatementsAfterStandardPrologue(s,[m])}s.push(f),e.insertStatementsAfterStandardPrologue(s,o());var h=n.updateBlock(t.body,s);return g&&v&&(4096&c.getNodeCheckFlags(t)?e.addEmitHelper(h,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(t)&&e.addEmitHelper(h,e.asyncSuperHelper)),y=_,v=d,h}function V(t){var r;a();var i=0,s=[],c=null!==(r=e.visitNode(t.body,T,e.isConciseBody))&&void 0!==r?r:n.createBlock([]);e.isBlock(c)&&(i=n.copyPrologue(c.statements,s,!1,T)),e.addRange(s,q(void 0,t));var u=o();if(i>0||e.some(s)||e.some(u)){var l=n.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,u),e.addRange(s,l.statements.slice(i)),n.updateBlock(l,e.setTextRange(n.createNodeArray(s),l.statements))}return c}function q(t,i){for(var a=0,o=i.parameters;a1?"jsxs":"jsx"}(e))}function l(t){var r,n,o="createElement"===t?i.importSpecifier:e.getJSXRuntimeImport(i.importSpecifier,s),c=null===(n=null===(r=i.utilizedImplicitRuntimeImports)||void 0===r?void 0:r.get(o))||void 0===n?void 0:n.get(t);if(c)return c.name;i.utilizedImplicitRuntimeImports||(i.utilizedImplicitRuntimeImports=e.createMap());var u=i.utilizedImplicitRuntimeImports.get(o);u||(u=e.createMap(),i.utilizedImplicitRuntimeImports.set(o,u));var l=a.createUniqueName("_"+t,112),_=a.createImportSpecifier(a.createIdentifier(t),l);return l.generatedImportReference=_,u.set(t,_),l}function _(t){return 2&t.transformFlags?function(t){switch(t.kind){case 276:return f(t,!1);case 277:return g(t,!1);case 280:return m(t,!1);case 286:return N(t);default:return e.visitEachChild(t,_,r)}}(t):t}function d(t){switch(t.kind){case 11:return function(t){var r=function(t){for(var r,n=0,i=-1,a=0;a1?a.createTrue():a.createFalse());var f=e.getLineAndCharacterOfPosition(p,_.pos);d.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(f.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(f.character+1))])),d.push(a.createThis())}}var g=e.setTextRange(a.createCallExpression(u(o),void 0,d),_);return l&&e.startOnNewLine(g),g}function D(t,c,u,_){var p,f=F(t),g=t.attributes.properties;if(0===g.length)p=a.createNull();else{var m=s.target;if(m&&m>=5)p=a.createObjectLiteralExpression(e.flatten(e.spanMap(g,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,S):e.map(t,E)}))));else{var y=e.flatten(e.spanMap(g,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,C):a.createObjectLiteralExpression(e.map(t,E))})));e.isJsxSpreadAttribute(g[0])&&y.unshift(a.createObjectLiteralExpression()),(p=e.singleOrUndefined(y))||(p=o().createAssignHelper(y))}}var v=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):l("createElement"),h=e.createExpressionForJsxElement(a,v,f,p,e.mapDefined(c,d),_);return u&&e.startOnNewLine(h),h}function b(t,r,n,i){var o;if(r&&r.length){var s=y(r);s&&(o=s)}return h(l("Fragment"),o||a.createObjectLiteralExpression([]),void 0,e.length(e.getSemanticJsxChildren(r)),n,i)}function x(t,i,o,c){var u=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,d),t,c);return o&&e.startOnNewLine(u),u}function S(t){return a.createSpreadAssignment(e.visitNode(t.expression,_,e.isExpression))}function C(t){return e.visitNode(t.expression,_,e.isExpression)}function E(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:a.createStringLiteral(n)}(t),n=T(t.initializer);return a.createPropertyAssignment(r,n)}function T(t){if(void 0===t)return a.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),i=a.createStringLiteral((o=t.text,((s=A(o))===o?void 0:s)||t.text),r);return e.setTextRange(i,t)}return 286===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,_,e.isExpression):e.Debug.failBadSyntaxKind(t);var o,s}function k(e,t){var r=A(t);return void 0===e?r:e+" "+r}function A(r){return r.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(r,n,i,a,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var u=t.get(c);return u?e.utf16EncodeAsString(u):r}))}function F(t){if(276===t.kind)return F(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?a.createStringLiteral(e.idText(r)):e.createExpressionFromEntityName(a,r)}function N(t){return e.visitNode(t.expression,_,e.isExpression)}};var t=new e.Map(e.getEntries({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}))}(s||(s={})),function(e){e.transformES2016=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;return e.visitEachChild(r,i,t)}));function i(a){if(0==(256&a.transformFlags))return a;switch(a.kind){case 219:return function(a){switch(a.operatorToken.kind){case 67:return function(t){var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var u=r.createTempVariable(n),l=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(u,s.expression),s.expression),e.setTextRange(r.createAssignment(l,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(u,l),s)}else if(e.isPropertyAccessExpression(s)){u=r.createTempVariable(n);a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(u,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(u,s.name),s)}else a=s,o=s;return e.setTextRange(r.createAssignment(a,e.setTextRange(r.createGlobalMethodCall("Math","pow",[o,c]),t)),t)}(a);case 42:return function(t){var n=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(r.createGlobalMethodCall("Math","pow",[n,a]),t)}(a);default:return e.visitEachChild(a,i,t)}}(a);default:return e.visitEachChild(a,i,t)}}}}(s||(s={})),function(e){var r,n,i,a,o,s;function c(e,t){return{kind:e,expression:t}}!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(r||(r={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(n||(n={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(i||(i={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"}(o||(o={})),function(e){e[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread"}(s||(s={})),e.transformES2015=function(r){var n,i,a,o,s,u,l=r.factory,_=r.getEmitHelperFactory,d=r.startLexicalEnvironment,p=r.resumeLexicalEnvironment,f=r.endLexicalEnvironment,g=r.hoistVariableDeclaration,m=r.getCompilerOptions(),y=r.getEmitResolver(),v=r.onSubstituteNode,h=r.onEmitNode;function D(t){o=e.append(o,l.createVariableDeclaration(t))}return r.onEmitNode=function(t,r,n){if(1&u&&e.isFunctionLike(r)){var i=b(32670,8&e.getEmitFlags(r)?81:65);return h(t,r,n),void x(i,0,0)}h(t,r,n)},r.onSubstituteNode=function(t,r){if(r=v(t,r),1===t)return function(t){switch(t.kind){case 79:return function(t){if(2&u&&!e.isInternalName(t)){var r=y.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!function(t,r){var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=t.end)return!1;var i=e.getEnclosingBlockScopeContainer(t);for(;n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}(r,t)))return e.setTextRange(l.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 108:return function(t){if(1&u&&16&a)return e.setTextRange(l.createUniqueName("_this",48),t);return t}(t)}return t}(r);if(e.isIdentifier(r))return function(t){if(2&u&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 201:case 255:case 258:case 252:return e.parent.name===e&&y.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(l.getGeneratedNameForNode(r),t)}return t}(r);return r},e.chainBundle(r,(function(t){if(t.isDeclarationFile)return t;n=t,i=t.text;var s=function(t){var r=b(8064,64),n=[],i=[];d();var a=l.copyPrologue(t.statements,n,!1,E);e.addRange(i,e.visitNodes(t.statements,E,e.isStatement,a)),o&&i.push(l.createVariableStatement(void 0,l.createVariableDeclarationList(o)));return l.mergeLexicalEnvironment(n,f()),K(n,t),x(r,0,0),l.updateSourceFile(t,e.setTextRange(l.createNodeArray(e.concatenate(n,i)),t.statements))}(t);return e.addEmitHelpers(s,r.readEmitHelpers()),n=void 0,i=void 0,o=void 0,a=0,s}));function b(e,t){var r=a;return a=32767&(a&~e|t),r}function x(e,t,r){a=-32768&(a&~t|r)|e}function S(e){return 0!=(8192&a)&&245===e.kind&&!e.expression}function C(t){return 0!=(512&t.transformFlags)||void 0!==s||8192&a&&function(t){return 2097152&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t))}(t)||e.isIterationStatement(t,!1)&&pe(t)||0!=(33554432&e.getEmitFlags(t))}function E(e){return C(e)?F(e,!1):e}function T(e){return C(e)?F(e,!0):e}function k(t){if(C(t)){var r=e.getOriginalNode(t);if(e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)){var n=b(32670,16449),i=F(t,!1);return x(n,98304,0),i}return F(t,!1)}return t}function A(e){return 106===e.kind?we(!0):E(e)}function F(i,o){switch(i.kind){case 124:return;case 255:return function(t){var r=l.createVariableDeclaration(l.getLocalName(t,!0),void 0,void 0,w(t));e.setOriginalNode(r,t);var n=[],i=l.createVariableStatement(void 0,l.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,512)?l.createExportDefault(l.getLocalName(t)):l.createExternalModuleExport(l.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);0==(4194304&o)&&(n.push(l.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o));return e.singleOrMany(n)}(i);case 224:return function(e){return w(e)}(i);case 162:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(l.createParameterDeclaration(void 0,void 0,void 0,l.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(l.createParameterDeclaration(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(i);case 254:return function(t){var n=s;s=void 0;var i=b(32670,65),o=e.visitParameterList(t.parameters,E,r),c=Y(t),u=32768&a?l.getLocalName(t):t.name;return x(i,98304,0),s=n,l.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,E,e.isModifier),t.asteriskToken,u,void 0,o,void 0,c)}(i);case 212:return function(t){8192&t.transformFlags&&!(16384&a)&&(a|=65536);var n=s;s=void 0;var i=b(15232,66),o=l.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(t.parameters,E,r),void 0,Y(t));return e.setTextRange(o,t),e.setOriginalNode(o,t),e.setEmitFlags(o,8),x(i,0,0),s=n,o}(i);case 211:return function(t){var n=262144&e.getEmitFlags(t)?b(32662,69):b(32670,65),i=s;s=void 0;var o=e.visitParameterList(t.parameters,E,r),c=Y(t),u=32768&a?l.getLocalName(t):t.name;return x(n,98304,0),s=i,l.updateFunctionExpression(t,void 0,t.asteriskToken,u,void 0,o,void 0,c)}(i);case 252:return Q(i);case 79:return P(i);case 253:return function(t){if(3&t.flags||262144&t.transformFlags){3&t.flags&&Ie();var n=e.flatMap(t.declarations,1&t.flags?$:Q),i=l.createVariableDeclarationList(n);return e.setOriginalNode(i,t),e.setTextRange(i,t),e.setCommentRange(i,t),262144&t.transformFlags&&(e.isBindingPattern(t.declarations[0].name)||e.isBindingPattern(e.last(t.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i0?(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(l.createVariableStatement(void 0,l.createVariableDeclarationList(e.flattenDestructuringBinding(n,E,r,0,l.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(l.createExpressionStatement(l.createAssignment(l.getGeneratedNameForNode(n),e.visitNode(a,E,e.isExpression))),1048576)),!0)}function j(t,r,n,i){i=e.visitNode(i,E,e.isExpression);var a=l.createIfStatement(l.createTypeCheck(l.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(l.createBlock([l.createExpressionStatement(e.setEmitFlags(e.setTextRange(l.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(l.cloneNode(n),n),n.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function J(t,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(l.cloneNode(o.name),o.name),o.name.parent):l.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?l.cloneNode(o.name):s,u=n.parameters.length-1,_=l.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(s,void 0,void 0,l.createArrayLiteralExpression([]))])),o),1048576));var d=l.createForStatement(e.setTextRange(l.createVariableDeclarationList([l.createVariableDeclaration(_,void 0,void 0,l.createNumericLiteral(u))]),o),e.setTextRange(l.createLessThan(_,l.createPropertyAccessExpression(l.createIdentifier("arguments"),"length")),o),e.setTextRange(l.createPostfixIncrement(_),o),l.createBlock([e.startOnNewLine(e.setTextRange(l.createExpressionStatement(l.createAssignment(l.createElementAccessExpression(c,0===u?_:l.createSubtract(_,l.createNumericLiteral(u))),l.createElementAccessExpression(l.createIdentifier("arguments"),_))),o))]));return e.setEmitFlags(d,1048576),e.startOnNewLine(d),a.push(d),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(l.createVariableStatement(void 0,l.createVariableDeclarationList(e.flattenDestructuringBinding(o,E,r,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(t,a),!0}function K(e,t){return!!(65536&a&&212!==t.kind)&&(z(e,t,l.createThis()),!0)}function z(t,n,i){0==(1&u)&&(u|=1,r.enableSubstitution(108),r.enableEmitNotification(169),r.enableEmitNotification(167),r.enableEmitNotification(170),r.enableEmitNotification(171),r.enableEmitNotification(212),r.enableEmitNotification(211),r.enableEmitNotification(254));var a=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(l.createUniqueName("_this",48),void 0,void 0,i)]));e.setEmitFlags(a,1050112),e.setSourceMapRange(a,n),e.insertStatementAfterCustomPrologue(t,a)}function U(t,r,n){if(32768&a){var i=void 0;switch(r.kind){case 212:return t;case 167:case 170:case 171:i=l.createVoidZero();break;case 169:i=l.createPropertyAccessExpression(e.setEmitFlags(l.createThis(),4),"constructor");break;case 254:case 211:i=l.createConditionalExpression(l.createLogicalAnd(e.setEmitFlags(l.createThis(),4),l.createBinaryExpression(e.setEmitFlags(l.createThis(),4),102,l.getLocalName(r))),void 0,l.createPropertyAccessExpression(e.setEmitFlags(l.createThis(),4),"constructor"),void 0,l.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=l.createVariableStatement(void 0,l.createVariableDeclarationList([l.createVariableDeclaration(l.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function V(t){return e.setTextRange(l.createEmptyStatement(),t)}function q(t,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=G(n,n,void 0,i),u=e.visitNode(n.name,E,e.isPropertyName);if(!e.isPrivateIdentifier(u)&&e.getUseDefineForClassFields(r.getCompilerOptions())){var _=e.isComputedPropertyName(u)?u.expression:e.isIdentifier(u)?l.createStringLiteral(e.unescapeLeadingUnderscores(u.escapedText)):u;a=l.createObjectDefinePropertyCall(t,_,l.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var d=e.createMemberAccessForPropertyName(l,t,u,n.name);a=l.createAssignment(d,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var p=e.setTextRange(l.createExpressionStatement(a),n);return e.setOriginalNode(p,n),e.setCommentRange(p,o),e.setEmitFlags(p,48),p}function W(t,r,n){var i=l.createExpressionStatement(H(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function H(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(l.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var u=e.visitNode(a.name,E,e.isPropertyName);if(e.isPrivateIdentifier(u))return e.Debug.failBadSyntaxKind(u,"Encountered unhandled private identifier while transforming ES2015.");var _=e.createExpressionForPropertyName(l,u);e.setEmitFlags(_,1552),e.setSourceMapRange(_,a.name);var d=[];if(o){var p=G(o,void 0,void 0,n);e.setSourceMapRange(p,e.getSourceMapRange(o)),e.setEmitFlags(p,512);var f=l.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(o)),d.push(f)}if(s){var g=G(s,void 0,void 0,n);e.setSourceMapRange(g,e.getSourceMapRange(s)),e.setEmitFlags(g,512);var m=l.createPropertyAssignment("set",g);e.setCommentRange(m,e.getCommentRange(s)),d.push(m)}d.push(l.createPropertyAssignment("enumerable",o||s?l.createFalse():l.createTrue()),l.createPropertyAssignment("configurable",l.createTrue()));var y=l.createCallExpression(l.createPropertyAccessExpression(l.createIdentifier("Object"),"defineProperty"),void 0,[c,_,l.createObjectLiteralExpression(d,!0)]);return i&&e.startOnNewLine(y),y}function G(t,n,i,o){var c=s;s=void 0;var u=o&&e.isClassLike(o)&&!e.isStatic(t)?b(32670,73):b(32670,65),_=e.visitParameterList(t.parameters,E,r),d=Y(t);return 32768&a&&!i&&(254===t.kind||211===t.kind)&&(i=l.getGeneratedNameForNode(t)),x(u,98304,0),s=c,e.setOriginalNode(e.setTextRange(l.createFunctionExpression(void 0,t.asteriskToken,i,void 0,_,void 0,d),n),t)}function Y(t){var r,i,a,o=!1,s=!1,c=[],u=[],_=t.body;if(p(),e.isBlock(_)&&(a=l.copyStandardPrologue(_.statements,c,!1),a=l.copyCustomPrologue(_.statements,u,a,E,e.isHoistedFunction),a=l.copyCustomPrologue(_.statements,u,a,E,e.isHoistedVariableStatement)),o=R(u,t)||o,o=J(u,t,!1)||o,e.isBlock(_))a=l.copyCustomPrologue(_.statements,u,a,E),r=_.statements,e.addRange(u,e.visitNodes(_.statements,E,e.isStatement,a)),!o&&_.multiLine&&(o=!0);else{e.Debug.assert(212===t.kind),r=e.moveRangeEnd(_,-1);var d=t.equalsGreaterThanToken;e.nodeIsSynthesized(d)||e.nodeIsSynthesized(_)||(e.rangeEndIsOnSameLineAsRangeStart(d,_,n)?s=!0:o=!0);var g=e.visitNode(_,E,e.isExpression),m=l.createReturnStatement(g);e.setTextRange(m,_),e.moveSyntheticComments(m,_),e.setEmitFlags(m,1440),u.push(m),i=_}if(l.mergeLexicalEnvironment(c,f()),U(c,t,!1),K(c,t),e.some(c)&&(o=!0),u.unshift.apply(u,c),e.isBlock(_)&&e.arrayIsEqualTo(u,_.statements))return _;var y=l.createBlock(e.setTextRange(l.createNodeArray(u),r),o);return e.setTextRange(y,t.body),!o&&s&&e.setEmitFlags(y,1),i&&e.setTokenSourceMapRange(y,19,i),e.setOriginalNode(y,t.body),y}function X(t,n){return e.isDestructuringAssignment(t)?e.flattenDestructuringAssignment(t,E,r,0,!n):27===t.operatorToken.kind?l.updateBinaryExpression(t,e.visitNode(t.left,T,e.isExpression),t.operatorToken,e.visitNode(t.right,n?T:E,e.isExpression)):e.visitEachChild(t,E,r)}function $(t){var n=t.name;return e.isBindingPattern(n)?Q(t):!t.initializer&&function(e){var t=y.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&a)||r&&n&&0!=(512&a))&&0==(4096&a)&&(!y.isDeclarationWithCollidingName(e)||n&&!r&&0==(6144&a))}(t)?l.updateVariableDeclaration(t,t.name,void 0,void 0,l.createVoidZero()):e.visitEachChild(t,E,r)}function Q(t){var n,i=b(32,0);return n=e.isBindingPattern(t.name)?e.flattenDestructuringBinding(t,E,r,0,void 0,0!=(32&i)):e.visitEachChild(t,E,r),x(i,0,0),n}function Z(t){s.labels.set(e.idText(t.label),!0)}function ee(t){s.labels.set(e.idText(t.label),!1)}function te(t,n,i,o,c){var u=b(t,n),_=function(t,n,i,o){if(!pe(t)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var u=o?o(t,n,void 0,i):l.restoreEnclosingLabel(e.isForStatement(t)?function(t){return l.updateForStatement(t,e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.condition,E,e.isExpression),e.visitNode(t.incrementor,T,e.isExpression),e.visitNode(t.statement,E,e.isStatement,l.liftToBlock))}(t):e.visitEachChild(t,E,r),n,s&&ee);return s&&(s.allowedNonLabeledJumps=c),u}var _=function(t){var r;switch(t.kind){case 240:case 241:case 242:var n=t.initializer;n&&253===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var o=_e(t),c=0,u=r.declarations;c=81&&r<=116)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(s||(s={})),function(e){var r,n,i,a,o;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(r||(r={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(n||(n={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(i||(i={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(o||(o={})),e.transformGenerators=function(r){var n,i,a,o,s,c,u,l,_,d,p=r.factory,f=r.getEmitHelperFactory,g=r.resumeLexicalEnvironment,m=r.endLexicalEnvironment,y=r.hoistFunctionDeclaration,v=r.hoistVariableDeclaration,h=r.getCompilerOptions(),D=e.getEmitScriptTarget(h),b=r.getEmitResolver(),x=r.onSubstituteNode;r.onSubstituteNode=function(t,r){if(r=x(t,r),1===t)return function(t){if(e.isIdentifier(t))return function(t){if(!e.isGeneratedIdentifier(t)&&n&&n.has(e.idText(t))){var r=e.getOriginalNode(t);if(e.isIdentifier(r)&&r.parent){var a=b.getReferencedValueDeclaration(r);if(a){var o=i[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(p.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t);return t}(r);return r};var S,C,E,T,k,A,F,N,P,w,I,O,M=1,L=0,R=0;return e.chainBundle(r,(function(t){if(t.isDeclarationFile||0==(1024&t.transformFlags))return t;var n=e.visitEachChild(t,B,r);return e.addEmitHelpers(n,r.readEmitHelpers()),n}));function B(t){var n=t.transformFlags;return o?function(t){switch(t.kind){case 238:case 239:return function(t){return o?(oe(),t=e.visitEachChild(t,B,r),ce(),t):e.visitEachChild(t,B,r)}(t);case 247:return function(t){o&&re({kind:2,isScript:!0,breakLabel:-1});t=e.visitEachChild(t,B,r),o&&ue();return t}(t);case 248:return function(t){o&&re({kind:4,isScript:!0,labelText:e.idText(t.label),breakLabel:-1});t=e.visitEachChild(t,B,r),o&&le();return t}(t);default:return j(t)}}(t):a?j(t):e.isFunctionLikeDeclaration(t)&&t.asteriskToken?function(t){switch(t.kind){case 254:return J(t);case 211:return K(t);default:return e.Debug.failBadSyntaxKind(t)}}(t):1024&n?e.visitEachChild(t,B,r):t}function j(t){switch(t.kind){case 254:return J(t);case 211:return K(t);case 170:case 171:return function(t){var n=a,i=o;return a=!1,o=!1,t=e.visitEachChild(t,B,r),a=n,o=i,t}(t);case 235:return function(t){if(524288&t.transformFlags)return void G(t.declarationList);if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r0?p.inlineExpressions(e.map(c,Y)):void 0,e.visitNode(t.condition,B,e.isExpression),e.visitNode(t.incrementor,B,e.isExpression),e.visitIterationBody(t.statement,B,r))}else t=e.visitEachChild(t,B,r);o&&ce();return t}(t);case 241:return function(t){o&&oe();var n=t.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i0)return he(n,t)}return e.visitEachChild(t,B,r)}(t);case 243:return function(t){if(o){var n=me(t.label&&e.idText(t.label));if(n>0)return he(n,t)}return e.visitEachChild(t,B,r)}(t);case 245:return function(t){return r=e.visitNode(t.expression,B,e.isExpression),n=t,e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(r?[ve(2),r]:[ve(2)])),n);var r,n}(t);default:return 524288&t.transformFlags?function(t){switch(t.kind){case 219:return function(t){var n=e.getExpressionAssociativity(t);switch(n){case 0:return function(t){if(X(t.right))return e.isLogicalOperator(t.operatorToken.kind)?function(t){var r=ee(),n=Z();xe(n,e.visitNode(t.left,B,e.isExpression),t.left),55===t.operatorToken.kind?Ee(r,n,t.left):Ce(r,n,t.left);return xe(n,e.visitNode(t.right,B,e.isExpression),t.right),te(r),n}(t):27===t.operatorToken.kind?U(t):p.updateBinaryExpression(t,Q(e.visitNode(t.left,B,e.isExpression)),t.operatorToken,e.visitNode(t.right,B,e.isExpression));return e.visitEachChild(t,B,r)}(t);case 1:return function(t){var n=t.left,i=t.right;if(X(i)){var a=void 0;switch(n.kind){case 204:a=p.updatePropertyAccessExpression(n,Q(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),n.name);break;case 205:a=p.updateElementAccessExpression(n,Q(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),Q(e.visitNode(n.argumentExpression,B,e.isExpression)));break;default:a=e.visitNode(n,B,e.isExpression)}var o=t.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(p.createAssignment(a,e.setTextRange(p.createBinaryExpression(Q(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,B,e.isExpression)),t)),t):p.updateBinaryExpression(t,a,t.operatorToken,e.visitNode(i,B,e.isExpression))}return e.visitEachChild(t,B,r)}(t);default:return e.Debug.assertNever(n)}}(t);case 346:return function(t){for(var r=[],n=0,i=t.elements;n0&&(Te(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,B,e.isExpression)))}return p.inlineExpressions(r)}(t);case 220:return function(t){if(X(t.whenTrue)||X(t.whenFalse)){var n=ee(),i=ee(),a=Z();return Ee(n,e.visitNode(t.condition,B,e.isExpression),t.condition),xe(a,e.visitNode(t.whenTrue,B,e.isExpression),t.whenTrue),Se(i),te(n),xe(a,e.visitNode(t.whenFalse,B,e.isExpression),t.whenFalse),te(i),a}return e.visitEachChild(t,B,r)}(t);case 222:return function(t){var r=ee(),n=e.visitNode(t.expression,B,e.isExpression);if(t.asteriskToken){!function(e,t){Te(7,[e],t)}(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(f().createValuesHelper(n),t):n,t)}else!function(e,t){Te(6,[e],t)}(n,t);return te(r),function(t){return e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(T,"sent"),void 0,[]),t)}(t)}(t);case 202:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(t);case 203:return function(t){var r=t.properties,n=t.multiLine,i=$(r),a=Z();xe(a,p.createObjectLiteralExpression(e.visitNodes(r,B,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,s,[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(p.cloneNode(a),a),a.parent)):a),p.inlineExpressions(o);function s(r,i){X(i)&&r.length>0&&(be(p.createExpressionStatement(p.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(p,t,i,a),s=e.visitNode(o,B,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r}}(t);case 205:return function(t){if(X(t.argumentExpression))return p.updateElementAccessExpression(t,Q(e.visitNode(t.expression,B,e.isLeftHandSideExpression)),e.visitNode(t.argumentExpression,B,e.isExpression));return e.visitEachChild(t,B,r)}(t);case 206:return function(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,X)){var n=p.createCallBinding(t.expression,v,D,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall(Q(e.visitNode(i,B,e.isLeftHandSideExpression)),a,V(t.arguments)),t),t)}return e.visitEachChild(t,B,r)}(t);case 207:return function(t){if(e.forEach(t.arguments,X)){var n=p.createCallBinding(p.createPropertyAccessExpression(t.expression,"bind"),v),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall(Q(e.visitNode(i,B,e.isExpression)),a,V(t.arguments,p.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,B,r)}(t);default:return e.visitEachChild(t,B,r)}}(t):2098176&t.transformFlags?e.visitEachChild(t,B,r):t}}function J(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,B,r),void 0,z(t.body)),t),t);else{var n=a,i=o;a=!1,o=!1,t=e.visitEachChild(t,B,r),a=n,o=i}return a?void y(t):t}function K(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(p.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,B,r),void 0,z(t.body)),t),t);else{var n=a,i=o;a=!1,o=!1,t=e.visitEachChild(t,B,r),a=n,o=i}return t}function z(t){var r=[],n=a,i=o,f=s,y=c,v=u,h=l,D=_,b=d,x=M,k=S,A=C,F=E,N=T;a=!0,o=!1,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,d=void 0,M=1,S=void 0,C=void 0,E=void 0,T=p.createTempVariable(void 0),g();var P=p.copyPrologue(t.statements,r,!1,B);q(t.statements,P);var w=ke();return e.insertStatementsAfterStandardPrologue(r,m()),r.push(p.createReturnStatement(w)),a=n,o=i,s=f,c=y,u=v,l=h,_=D,d=b,M=x,S=k,C=A,E=F,T=N,e.setTextRange(p.createBlock(r,t.multiLine),t)}function U(t){var r=[];return n(t.left),n(t.right),p.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(X(t)&&r.length>0&&(Te(1,[p.createExpressionStatement(p.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,B,e.isExpression)))}}function V(r,n,i,a){var o,s=$(r);if(s>0){o=Z();var c=e.visitNodes(r,B,e.isExpression,0,s);xe(o,p.createArrayLiteralExpression(n?t([n],c,!0):c)),n=void 0}var u=e.reduceLeft(r,(function(r,i){if(X(i)&&r.length>0){var s=void 0!==o;o||(o=Z()),xe(o,s?p.createArrayConcatCall(o,[p.createArrayLiteralExpression(r,a)]):p.createArrayLiteralExpression(n?t([n],r,!0):r,a)),n=void 0,r=[]}return r.push(e.visitNode(i,B,e.isExpression)),r}),[],s);return o?p.createArrayConcatCall(o,[p.createArrayLiteralExpression(u,a)]):e.setTextRange(p.createArrayLiteralExpression(n?t([n],u,!0):u,a),i)}function q(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0?Se(r,t):be(t)}(t);case 244:return function(t){var r=ge(t.label?e.idText(t.label):void 0);r>0?Se(r,t):be(t)}(t);case 245:return function(t){r=e.visitNode(t.expression,B,e.isExpression),n=t,Te(8,[r],n);var r,n}(t);case 246:return function(t){X(t)?(r=Q(e.visitNode(t.expression,B,e.isExpression)),n=ee(),i=ee(),te(n),re({kind:1,expression:r,startLabel:n,endLabel:i}),W(t.statement),e.Debug.assert(1===ae()),te(ne().endLabel)):be(e.visitNode(t,B,e.isStatement));var r,n,i}(t);case 247:return function(t){if(X(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(re({kind:2,isScript:!1,breakLabel:f=ee()}),f),a=Q(e.visitNode(t.expression,B,e.isExpression)),o=[],s=-1,c=0;c0)break;_.push(p.createCaseClause(e.visitNode(u.expression,B,e.isExpression),[he(o[c],u.expression)]))}else d++}_.length&&(be(p.createSwitchStatement(a,p.createCaseBlock(_))),l+=_.length,_=[]),d>0&&(l+=d,d=0)}Se(s>=0?o[s]:i);for(c=0;c0)break;u.push(Y(i))}u.length&&(be(p.createExpressionStatement(p.inlineExpressions(u))),c+=u.length,u=[])}}function Y(t){return e.setSourceMapRange(p.createAssignment(e.setSourceMapRange(p.cloneNode(t.name),t.name),e.visitNode(t.initializer,B,e.isExpression)),t)}function X(e){return!!e&&0!=(524288&e.transformFlags)}function $(e){for(var t=e.length,r=0;r=0;r--){var n=l[r];if(!de(n))break;if(n.labelText===e)return!0}return!1}function ge(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(de(r=l[t])&&r.labelText===e)return r.breakLabel;if(_e(r)&&fe(e,t-1))return r.breakLabel}else for(t=l.length-1;t>=0;t--){var r;if(_e(r=l[t]))return r.breakLabel}return 0}function me(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(pe(r=l[t])&&fe(e,t-1))return r.continueLabel}else for(t=l.length-1;t>=0;t--){var r;if(pe(r=l[t]))return r.continueLabel}return 0}function ye(e){if(void 0!==e&&e>0){void 0===d&&(d=[]);var t=p.createNumericLiteral(-1);return void 0===d[e]?d[e]=[t]:d[e].push(t),t}return p.createOmittedExpression()}function ve(t){var r=p.createNumericLiteral(t);return e.addSyntheticTrailingComment(r,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(t)),r}function he(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ve(3),ye(t)])),r)}function De(){Te(0)}function be(e){e?Te(1,[e]):De()}function xe(e,t,r){Te(2,[e,t],r)}function Se(e,t){Te(3,[e],t)}function Ce(e,t,r){Te(4,[e,t],r)}function Ee(e,t,r){Te(5,[e,t],r)}function Te(e,t,r){void 0===S&&(S=[],C=[],E=[]),void 0===_&&te(ee());var n=S.length;S[n]=e,C[n]=t,E[n]=r}function ke(){L=0,R=0,k=void 0,A=!1,F=!1,N=void 0,P=void 0,w=void 0,I=void 0,O=void 0;var t=function(){if(S){for(var t=0;t0)),524288))}function Ae(e){(function(e){if(!F)return!0;if(!_||!d)return!1;for(var t=0;t<_.length;t++)if(_[t]===e&&d[t])return!0;return!1})(e)&&(Ne(e),O=void 0,Ie(void 0,void 0)),P&&N&&Fe(!1),function(){if(void 0!==d&&void 0!==k)for(var e=0;e=0;t--){var r=O[t];P=[p.createWithStatement(r.expression,p.createBlock(P))]}if(I){var n=I.startLabel,i=I.catchLabel,a=I.finallyLabel,o=I.endLabel;P.unshift(p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createPropertyAccessExpression(T,"trys"),"push"),void 0,[p.createArrayLiteralExpression([ye(n),ye(i),ye(a),ye(o)])]))),I=void 0}e&&P.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(T,"label"),p.createNumericLiteral(R+1))))}N.push(p.createCaseClause(p.createNumericLiteral(R),P||[])),P=void 0}function Ne(e){if(_)for(var t=0;t<_.length;t++)_[t]===e&&(P&&(Fe(!A),A=!1,F=!1,R++),void 0===k&&(k=[]),void 0===k[R]?k[R]=[t]:k[R].push(t))}function Pe(t){if(Ne(t),function(e){if(s)for(;L=2?2:0)),t),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,i.createVariableStatement(void 0,i.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(i.createVariableDeclaration(i.cloneNode(n.name),void 0,void 0,i.getGeneratedNameForNode(t)),t),t)],d>=2?2:0))));if(K(t)){var o=e.getOriginalNodeId(t);D[o]=z(D[o],t)}else r=z(r,t);return e.singleOrMany(r)}(t);case 263:return function(t){var r;e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(X(t.name,B(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(i.cloneNode(t.name),void 0,void 0,B(t))],d>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(X(i.getExportName(t),i.getLocalName(t))),t),t)));if(K(t)){var n=e.getOriginalNodeId(t);D[n]=U(D[n],t)}else r=U(r,t);return e.singleOrMany(r)}(t);case 270:return function(t){if(!t.moduleSpecifier)return;var r=i.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var n=[];p!==e.ModuleKind.AMD&&n.push(e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(r,void 0,void 0,B(t))])),t),t));for(var o=0,s=t.exportClause.elements;o(e.isExportName(t)?1:0);return!1}function M(t,r){var n,o=i.createUniqueName("resolve"),s=i.createUniqueName("reject"),c=[i.createParameterDeclaration(void 0,void 0,void 0,o),i.createParameterDeclaration(void 0,void 0,void 0,s)],l=i.createBlock([i.createExpressionStatement(i.createCallExpression(i.createIdentifier("require"),void 0,[i.createArrayLiteralExpression([t||i.createOmittedExpression()]),o,s]))]);d>=2?n=i.createArrowFunction(void 0,void 0,c,void 0,void 0,l):(n=i.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,l),r&&e.setEmitFlags(n,8));var _=i.createNewExpression(i.createIdentifier("Promise"),void 0,[n]);return u.esModuleInterop?i.createCallExpression(i.createPropertyAccessExpression(_,i.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):_}function L(t,r){var n,o=i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Promise"),"resolve"),void 0,[]),s=i.createCallExpression(i.createIdentifier("require"),void 0,t?[t]:[]);return u.esModuleInterop&&(s=a().createImportStarHelper(s)),d>=2?n=i.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(n=i.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,i.createBlock([i.createReturnStatement(s)])),r&&e.setEmitFlags(n,8)),i.createCallExpression(i.createPropertyAccessExpression(o,"then"),void 0,[n])}function R(t,r){return!u.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?a().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?a().createImportDefaultHelper(r):r}function B(t){var r=e.getExternalModuleNameLiteral(i,t,m,_,l,u),n=[];return r&&n.push(r),i.createCallExpression(i.createIdentifier("require"),void 0,n)}function j(t,r,n){var a=Z(t);if(a){for(var o=e.isExportName(t)?r:i.createAssignment(t,r),s=0,c=a;se.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,n=i.getGeneratedNameForNode(r),a=i.createImportDeclaration(void 0,void 0,i.createImportClause(!1,void 0,i.createNamespaceImport(n)),t.moduleSpecifier);e.setOriginalNode(a,t.exportClause);var s=e.isExportNamespaceAsDefaultDeclaration(t)?i.createExportDefault(n):i.createExportDeclaration(void 0,void 0,!1,i.createNamedExports([i.createExportSpecifier(n,r)]));return e.setOriginalNode(s,t),[a,s]}(t)}return t}}}(s||(s={})),function(e){function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?r:e.isSetAccessor(t)||e.isGetAccessor(t)?function(r){var n;n=171===t.kind?e.isStatic(t)?r.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:n,errorNode:t.name,typeName:t.name}}:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?function(r){var n;switch(t.kind){case 173:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 172:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 167:case 166:n=e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:255===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 254:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 169:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 173:case 178:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 172:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 167:case 166:return e.isStatic(t.parent)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:255===t.parent.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 254:case 177:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 171:case 170:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: "+e.SyntaxKind[t.parent.kind])}}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?function(){var r;switch(t.parent.kind){case 255:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 256:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 193:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 178:case 173:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 172:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 167:case 166:r=e.isStatic(t.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:255===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 177:case 254:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 257:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){var r;r=e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&117===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?function(r){return{diagnosticMessage:r.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}}:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[t.kind]);function r(r){var n=function(r){return 252===t.kind||201===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:165===t.kind||204===t.kind||164===t.kind||162===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:255===t.parent.kind||162===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:255===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?function(t){var n=function(t){return e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:255===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(s||(s={})),function(e){function r(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function n(t,n){var i=e.getParseTreeNode(t);if(i&&162===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,t.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,t.pos,!1,!0));return c&&c.length&&r(e.last(c),n)}var u=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(u,(function(e){return r(e,n)}))}e.getDeclarationDiagnostics=function(t,r,n){var i=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,i,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[a],!1).diagnostics},e.isInternalDeclaration=n;var i=531469;function a(r){var a,c,u,l,_,d,p,f,g,m,y,v,h=function(){return e.Debug.fail("Diagnostic emitted without context")},D=h,b=!0,x=!1,S=!1,C=!1,E=!1,T=r.factory,k=r.getEmitHost(),A={trackSymbol:function(e,t,r){if(262144&e.flags)return!1;var n=O(F.isSymbolAccessible(e,t,r,!0));return I(F.getTypeReferenceDirectivesForSymbol(e,r)),n},reportInaccessibleThisError:function(){(p||f)&&r.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,M(),"this"))},reportInaccessibleUniqueSymbolError:function(){(p||f)&&r.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,M(),"unique symbol"))},reportCyclicStructureError:function(){(p||f)&&r.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,M()))},reportPrivateInBaseOfClassExpression:function(t){(p||f)&&r.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){(p||f)&&r.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,M(),t))},reportTruncationError:function(){(p||f)&&r.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:k,trackReferencedAmbientModule:function(t,r){var n=F.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return I(n);var i=e.getSourceFileOfNode(t);m.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){x||(d||(d=[])).push(e)},reportNonlocalAugmentation:function(t,n,i){var a,o=null===(a=n.declarations)||void 0===a?void 0:a.find((function(r){return e.getSourceFileOfNode(r)===t})),s=e.filter(i.declarations,(function(r){return e.getSourceFileOfNode(r)!==t}));if(s)for(var c=0,u=s;c0?e.parameters[0].type:void 0}e.transformDeclarations=a}(s||(s={})),function(e){var r,n;function i(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&e.map(r.before,s)),o.push(e.transformTypeScript),o.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&o.push(e.transformJsx),i<99&&o.push(e.transformESNext),i<8&&o.push(e.transformES2021),i<7&&o.push(e.transformES2020),i<6&&o.push(e.transformES2019),i<5&&o.push(e.transformES2018),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&e.map(r.after,s)),o}function a(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,c)),r}function o(t,r){return function(n){var i=t(n);return"function"==typeof i?r(n,i):function(t){return function(r){return e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r)}}(i)}}function s(t){return o(t,e.chainBundle)}function c(e){return o(e,(function(e,t){return t}))}function u(e,t){return t}function l(e,t,r){r(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(r||(r={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(n||(n={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,t,r){return{scriptTransformers:i(e,t,r),declarationTransformers:a(t)}},e.noEmitSubstitution=u,e.noEmitNotification=l,e.transformNodes=function(r,n,i,a,o,s,c){for(var _,d,p,f,g,m=new Array(350),y=0,v=[],h=[],D=[],b=[],x=0,S=!1,C=[],E=0,T=u,k=l,A=0,F=[],N={factory:i,getCompilerOptions:function(){return a},getEmitResolver:function(){return r},getEmitHost:function(){return n},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(N)})),startLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),v[x]=_,h[x]=d,D[x]=p,b[x]=y,x++,_=void 0,d=void 0,p=void 0,y=0},suspendLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is already suspended."),S=!0},resumeLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(S,"Lexical environment is not suspended."),S=!1},endLexicalEnvironment:function(){var r;if(e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),_||d||p){if(d&&(r=t([],d,!0)),_){var n=i.createVariableStatement(void 0,i.createVariableDeclarationList(_));e.setEmitFlags(n,1048576),r?r.push(n):r=[n]}p&&(r=t(r?t([],r,!0):[],p,!0))}x--,_=v[x],d=h[x],p=D[x],y=b[x],0===x&&(v=[],h=[],D=[],b=[]);return r},setLexicalEnvironmentFlags:function(e,t){y=t?y|e:y&~e},getLexicalEnvironmentFlags:function(){return y},hoistVariableDeclaration:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(i.createVariableDeclaration(t),64);_?_.push(r):_=[r];1&y&&(y|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),d?d.push(t):d=[t]},addInitializationStatement:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),p?p.push(t):p=[t]},startBlockScope:function(){e.Debug.assert(A>0,"Cannot start a block scope during initialization."),e.Debug.assert(A<2,"Cannot start a block scope after transformation has completed."),C[E]=f,E++,f=void 0},endBlockScope:function(){e.Debug.assert(A>0,"Cannot end a block scope during initialization."),e.Debug.assert(A<2,"Cannot end a block scope after transformation has completed.");var t=e.some(f)?[i.createVariableStatement(void 0,i.createVariableDeclarationList(f.map((function(e){return i.createVariableDeclaration(e)})),1))]:void 0;E--,f=C[E],0===E&&(C=[]);return t},addBlockScopedVariable:function(t){e.Debug.assert(E>0,"Cannot add a block scoped variable outside of an iteration body."),(f||(f=[])).push(t)},requestEmitHelper:function t(r){if(e.Debug.assert(A>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed.");var t=g;return g=void 0,t},enableSubstitution:function(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),m[t]|=1},enableEmitNotification:function(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),m[t]|=2},isSubstitutionEnabled:J,isEmitNotificationEnabled:K,get onSubstituteNode(){return T},set onSubstituteNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),T=t},get onEmitNode(){return k},set onEmitNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),k=t},addDiagnostic:function(e){F.push(e)}},P=0,w=o;P"],e[8192]=["[","]"],e}();function a(t,r,n,i,a,s){void 0===i&&(i=!1);var u=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),l=t.getCompilerOptions();if(e.outFile(l)){var _=t.getPrependNodes();if(u.length||_.length){var d=e.factory.createBundle(u,_);if(g=r(c(d,t,i),d))return g}}else{if(!a)for(var p=0,f=u;p0){var i=t.preserveSourceNewlinesStack[t.stackIndex],a=t.containerPosStack[t.stackIndex],o=t.containerEndStack[t.stackIndex],s=t.declarationListContainerEndStack[t.stackIndex],c=t.shouldEmitCommentsStack[t.stackIndex],u=t.shouldEmitSourceMapsStack[t.stackIndex];Ae(i),u&&Gr(e),c&&kr(e,a,o,s),null==N||N(e),t.stackIndex--}}),void 0);function t(t,r,n){var i="left"===n?ne.getParenthesizeLeftSideOfBinaryForOperator(r.operatorToken.kind):ne.getParenthesizeRightSideOfBinaryForOperator(r.operatorToken.kind),a=we(0,1,t);if(a===Re&&(e.Debug.assertIsDefined(b),a=Ie(1,1,t=i(e.cast(b,e.isExpression))),b=void 0),(a===Er||a===Wr||a===Me)&&e.isBinaryExpression(t))return t;x=i,a(1,t)}}();return be(),{printNode:function(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.")}switch(r.kind){case 300:return oe(r);case 301:return ae(r);case 302:return function(e,t){var r=p;De(t,void 0),ve(4,e,void 0),be(),p=r}(r,me()),ye()}return se(t,r,n,me()),ye()},printList:function(e,t,r){return ce(e,t,r,me()),ye()},printFile:oe,printBundle:ae,writeNode:se,writeList:ce,writeFile:ge,writeBundle:fe,bundleFileInfo:K};function ae(e){return fe(e,me(),void 0),ye()}function oe(e){return ge(e,me(),void 0),ye()}function se(e,t,r,n){var i=p;De(n,void 0),ve(e,t,r),be(),p=i}function ce(e,t,r,n){var i=p;De(n,void 0),r&&he(r),Pt(void 0,t,e),be(),p=i}function ue(){return p.getTextPosWithWriteLine?p.getTextPosWithWriteLine():p.getTextPos()}function le(t,r,n){var i=e.lastOrUndefined(K.sections);i&&i.kind===n?i.end=r:K.sections.push({pos:t,end:r,kind:n})}function _e(t){if(U&&K&&n&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,n)&&"internal"!==q){var r=q;return pe(p.getTextPos()),V=ue(),q="internal",r}}function de(e){e&&(pe(p.getTextPos()),V=ue(),q=e)}function pe(e){return V"),zt(),Se(e.type),pr(e)}(r);case 178:return function(e){dr(e),ht(e,e.modifiers),Bt("new"),zt(),kt(e,e.typeParameters),At(e,e.parameters),zt(),Lt("=>"),zt(),Se(e.type),pr(e)}(r);case 179:return function(e){Bt("typeof"),zt(),Se(e.exprName)}(r);case 180:return function(t){Lt("{");var r=1&e.getEmitFlags(t)?768:32897;Pt(t,t.members,524288|r),Lt("}")}(r);case 181:return function(e){Se(e.elementType,ne.parenthesizeElementTypeOfArrayType),Lt("["),Lt("]")}(r);case 182:return function(t){Ge(22,t.pos,Lt,t);var r=1&e.getEmitFlags(t)?528:657;Pt(t,t.elements,524288|r),Ge(23,t.elements.end,Lt,t)}(r);case 183:return function(e){Se(e.type,ne.parenthesizeElementTypeOfArrayType),Lt("?")}(r);case 185:return function(e){Pt(e,e.types,516,ne.parenthesizeMemberOfElementType)}(r);case 186:return function(e){Pt(e,e.types,520,ne.parenthesizeMemberOfElementType)}(r);case 187:return function(e){Se(e.checkType,ne.parenthesizeMemberOfConditionalType),zt(),Bt("extends"),zt(),Se(e.extendsType,ne.parenthesizeMemberOfConditionalType),zt(),Lt("?"),zt(),Se(e.trueType),zt(),Lt(":"),zt(),Se(e.falseType)}(r);case 188:return function(e){Bt("infer"),zt(),Se(e.typeParameter)}(r);case 189:return function(e){Lt("("),Se(e.type),Lt(")")}(r);case 226:return function(e){Ee(e.expression,ne.parenthesizeLeftSideOfAccess),Tt(e,e.typeArguments)}(r);case 190:return void Bt("this");case 191:return function(e){Yt(e.operator,Bt),zt(),Se(e.type,ne.parenthesizeMemberOfElementType)}(r);case 192:return function(e){Se(e.objectType,ne.parenthesizeMemberOfElementType),Lt("["),Se(e.indexType),Lt("]")}(r);case 193:return function(t){var r=e.getEmitFlags(t);Lt("{"),1&r?zt():(Vt(),qt());t.readonlyToken&&(Se(t.readonlyToken),143!==t.readonlyToken.kind&&Bt("readonly"),zt());Lt("["),Fe(3,t.typeParameter),t.nameType&&(zt(),Bt("as"),zt(),Se(t.nameType));Lt("]"),t.questionToken&&(Se(t.questionToken),57!==t.questionToken.kind&&Lt("?"));Lt(":"),zt(),Se(t.type),Rt(),1&r?zt():(Vt(),Wt());Lt("}")}(r);case 194:return function(e){Ee(e.literal)}(r);case 195:return function(e){Se(e.dotDotDotToken),Se(e.name),Se(e.questionToken),Ge(58,e.name.end,Lt,e),zt(),Se(e.type)}(r);case 196:return function(e){Se(e.head),Pt(e,e.templateSpans,262144)}(r);case 197:return function(e){Se(e.type),Se(e.literal)}(r);case 198:return function(e){e.isTypeOf&&(Bt("typeof"),zt());Bt("import"),Lt("("),Se(e.argument),Lt(")"),e.qualifier&&(Lt("."),Se(e.qualifier));Tt(e,e.typeArguments)}(r);case 199:return function(e){Lt("{"),Pt(e,e.elements,525136),Lt("}")}(r);case 200:return function(e){Lt("["),Pt(e,e.elements,524880),Lt("]")}(r);case 201:return function(e){Se(e.dotDotDotToken),e.propertyName&&(Se(e.propertyName),Lt(":"),zt());Se(e.name),bt(e.initializer,e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)}(r);case 231:return function(e){Ee(e.expression),Se(e.literal)}(r);case 232:return void Rt();case 233:return function(e){Ve(e,!e.multiLine&&cr(e))}(r);case 235:return function(e){ht(e,e.modifiers),Se(e.declarationList),Rt()}(r);case 234:return qe(!1);case 236:return function(t){Ee(t.expression,ne.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(n)||e.nodeIsSynthesized(t.expression))&&Rt()}(r);case 237:return function(e){var t=Ge(99,e.pos,Bt,e);zt(),Ge(20,t,Lt,e),Ee(e.expression),Ge(21,e.expression.end,Lt,e),Ct(e,e.thenStatement),e.elseStatement&&(Xt(e,e.thenStatement,e.elseStatement),Ge(91,e.thenStatement.end,Bt,e),237===e.elseStatement.kind?(zt(),Se(e.elseStatement)):Ct(e,e.elseStatement))}(r);case 238:return function(t){Ge(90,t.pos,Bt,t),Ct(t,t.statement),e.isBlock(t.statement)&&!j?zt():Xt(t,t.statement,t.expression);We(t,t.statement.end),Rt()}(r);case 239:return function(e){We(e,e.pos),Ct(e,e.statement)}(r);case 240:return function(e){var t=Ge(97,e.pos,Bt,e);zt();var r=Ge(20,t,Lt,e);He(e.initializer),r=Ge(26,e.initializer?e.initializer.end:r,Lt,e),St(e.condition),r=Ge(26,e.condition?e.condition.end:r,Lt,e),St(e.incrementor),Ge(21,e.incrementor?e.incrementor.end:r,Lt,e),Ct(e,e.statement)}(r);case 241:return function(e){var t=Ge(97,e.pos,Bt,e);zt(),Ge(20,t,Lt,e),He(e.initializer),zt(),Ge(101,e.initializer.end,Bt,e),zt(),Ee(e.expression),Ge(21,e.expression.end,Lt,e),Ct(e,e.statement)}(r);case 242:return function(e){var t=Ge(97,e.pos,Bt,e);zt(),function(e){e&&(Se(e),zt())}(e.awaitModifier),Ge(20,t,Lt,e),He(e.initializer),zt(),Ge(158,e.initializer.end,Bt,e),zt(),Ee(e.expression),Ge(21,e.expression.end,Lt,e),Ct(e,e.statement)}(r);case 243:return function(e){Ge(86,e.pos,Bt,e),xt(e.label),Rt()}(r);case 244:return function(e){Ge(81,e.pos,Bt,e),xt(e.label),Rt()}(r);case 245:return function(e){Ge(105,e.pos,Bt,e),St(e.expression),Rt()}(r);case 246:return function(e){var t=Ge(116,e.pos,Bt,e);zt(),Ge(20,t,Lt,e),Ee(e.expression),Ge(21,e.expression.end,Lt,e),Ct(e,e.statement)}(r);case 247:return function(e){var t=Ge(107,e.pos,Bt,e);zt(),Ge(20,t,Lt,e),Ee(e.expression),Ge(21,e.expression.end,Lt,e),zt(),Se(e.caseBlock)}(r);case 248:return function(e){Se(e.label),Ge(58,e.label.end,Lt,e),zt(),Se(e.statement)}(r);case 249:return function(e){Ge(109,e.pos,Bt,e),St(e.expression),Rt()}(r);case 250:return function(e){Ge(111,e.pos,Bt,e),zt(),Se(e.tryBlock),e.catchClause&&(Xt(e,e.tryBlock,e.catchClause),Se(e.catchClause));e.finallyBlock&&(Xt(e,e.catchClause||e.tryBlock,e.finallyBlock),Ge(96,(e.catchClause||e.tryBlock).end,Bt,e),zt(),Se(e.finallyBlock))}(r);case 251:return function(e){Ht(87,e.pos,Bt),Rt()}(r);case 252:return function(e){Se(e.name),Se(e.exclamationToken),Dt(e.type),bt(e.initializer,e.type?e.type.end:e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)}(r);case 253:return function(t){Bt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),zt(),Pt(t,t.declarations,528)}(r);case 254:return function(e){Ye(e)}(r);case 255:return function(e){tt(e)}(r);case 256:return function(e){Et(e,e.decorators),ht(e,e.modifiers),Bt("interface"),zt(),Se(e.name),kt(e,e.typeParameters),Pt(e,e.heritageClauses,512),zt(),Lt("{"),Pt(e,e.members,129),Lt("}")}(r);case 257:return function(e){Et(e,e.decorators),ht(e,e.modifiers),Bt("type"),zt(),Se(e.name),kt(e,e.typeParameters),zt(),Lt("="),zt(),Se(e.type),Rt()}(r);case 258:return function(e){ht(e,e.modifiers),Bt("enum"),zt(),Se(e.name),zt(),Lt("{"),Pt(e,e.members,145),Lt("}")}(r);case 259:return function(t){ht(t,t.modifiers),1024&~t.flags&&(Bt(16&t.flags?"namespace":"module"),zt());Se(t.name);var r=t.body;if(!r)return Rt();for(;r&&e.isModuleDeclaration(r);)Lt("."),Se(r.name),r=r.body;zt(),Se(r)}(r);case 260:return function(t){dr(t),e.forEach(t.statements,gr),Ve(t,cr(t)),pr(t)}(r);case 261:return function(e){Ge(18,e.pos,Lt,e),Pt(e,e.clauses,129),Ge(19,e.clauses.end,Lt,e,!0)}(r);case 262:return function(e){var t=Ge(93,e.pos,Bt,e);zt(),t=Ge(127,t,Bt,e),zt(),t=Ge(141,t,Bt,e),zt(),Se(e.name),Rt()}(r);case 263:return function(e){ht(e,e.modifiers),Ge(100,e.modifiers?e.modifiers.end:e.pos,Bt,e),zt(),e.isTypeOnly&&(Ge(150,e.pos,Bt,e),zt());Se(e.name),zt(),Ge(63,e.name.end,Lt,e),zt(),function(e){79===e.kind?Ee(e):Se(e)}(e.moduleReference),Rt()}(r);case 264:return function(e){ht(e,e.modifiers),Ge(100,e.modifiers?e.modifiers.end:e.pos,Bt,e),zt(),e.importClause&&(Se(e.importClause),zt(),Ge(154,e.importClause.end,Bt,e),zt());Ee(e.moduleSpecifier),Rt()}(r);case 265:return function(e){e.isTypeOnly&&(Ge(150,e.pos,Bt,e),zt());Se(e.name),e.name&&e.namedBindings&&(Ge(27,e.name.end,Lt,e),zt());Se(e.namedBindings)}(r);case 266:return function(e){var t=Ge(41,e.pos,Lt,e);zt(),Ge(127,t,Bt,e),zt(),Se(e.name)}(r);case 272:return function(e){var t=Ge(41,e.pos,Lt,e);zt(),Ge(127,t,Bt,e),zt(),Se(e.name)}(r);case 267:return function(e){rt(e)}(r);case 268:return function(e){nt(e)}(r);case 269:return function(e){var t=Ge(93,e.pos,Bt,e);zt(),e.isExportEquals?Ge(63,t,jt,e):Ge(88,t,Bt,e);zt(),Ee(e.expression,e.isExportEquals?ne.getParenthesizeRightSideOfBinaryForOperator(63):ne.parenthesizeExpressionOfExportDefault),Rt()}(r);case 270:return function(e){var t=Ge(93,e.pos,Bt,e);zt(),e.isTypeOnly&&(t=Ge(150,t,Bt,e),zt());e.exportClause?Se(e.exportClause):t=Ge(41,t,Lt,e);if(e.moduleSpecifier){zt(),Ge(154,e.exportClause?e.exportClause.end:t,Bt,e),zt(),Ee(e.moduleSpecifier)}Rt()}(r);case 271:return function(e){rt(e)}(r);case 273:return function(e){nt(e)}(r);case 274:return;case 275:return function(e){Bt("require"),Lt("("),Ee(e.expression),Lt(")")}(r);case 11:return function(e){p.writeLiteral(e.text)}(r);case 278:case 281:return function(t){if(Lt("<"),e.isJsxOpeningElement(t)){var r=ir(t.tagName,t);it(t.tagName),Tt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&zt(),Se(t.attributes),ar(t.attributes,t),Zt(r)}Lt(">")}(r);case 279:case 282:return function(t){Lt("")}(r);case 283:return function(e){Se(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",Lt,e.initializer,Te)}(r);case 284:return function(e){Pt(e,e.properties,262656)}(r);case 285:return function(e){Lt("{..."),Ee(e.expression),Lt("}")}(r);case 286:return function(t){var r;if(t.expression||!Z&&!e.nodeIsSynthesized(t)&&(o=t.pos,function(t){var r=!1;return e.forEachTrailingCommentRange((null==n?void 0:n.text)||"",t+1,(function(){return r=!0})),r}(o)||function(t){var r=!1;return e.forEachLeadingCommentRange((null==n?void 0:n.text)||"",t+1,(function(){return r=!0})),r}(o))){var i=n&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(n,t.pos).line!==e.getLineAndCharacterOfPosition(n,t.end).line;i&&p.increaseIndent();var a=Ge(18,t.pos,Lt,t);Se(t.dotDotDotToken),Ee(t.expression),Ge(19,(null===(r=t.expression)||void 0===r?void 0:r.end)||a,Lt,t),i&&p.decreaseIndent()}var o}(r);case 287:return function(e){Ge(82,e.pos,Bt,e),zt(),Ee(e.expression,ne.parenthesizeExpressionForDisallowedComma),at(e,e.statements,e.expression.end)}(r);case 288:return function(e){var t=Ge(88,e.pos,Bt,e);at(e,e.statements,t)}(r);case 289:return function(e){zt(),Yt(e.token,Bt),zt(),Pt(e,e.types,528)}(r);case 290:return function(e){var t=Ge(83,e.pos,Bt,e);zt(),e.variableDeclaration&&(Ge(20,t,Lt,e),Se(e.variableDeclaration),Ge(21,e.variableDeclaration.end,Lt,e),zt());Se(e.block)}(r);case 291:return function(t){Se(t.name),Lt(":"),zt();var r=t.initializer;if(0==(512&e.getEmitFlags(r))){jr(e.getCommentRange(r).pos)}Ee(r,ne.parenthesizeExpressionForDisallowedComma)}(r);case 292:return function(e){Se(e.name),e.objectAssignmentInitializer&&(zt(),Lt("="),zt(),Ee(e.objectAssignmentInitializer,ne.parenthesizeExpressionForDisallowedComma))}(r);case 293:return function(e){e.expression&&(Ge(25,e.pos,Lt,e),Ee(e.expression,ne.parenthesizeExpressionForDisallowedComma))}(r);case 294:return function(e){Se(e.name),bt(e.initializer,e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)}(r);case 295:return Ke(r);case 302:case 296:return function(e){for(var t=0,r=e.texts;t=1&&!e.isJsonSourceFile(n)?64:0;Pt(t,t.properties,526226|a|i),r&&Wt()}(r);case 204:return function(t){Ee(t.expression,ne.parenthesizeLeftSideOfAccess);var r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),n=sr(t,t.expression,r),i=sr(t,r,t.name);Qt(n,!1),28===r.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=_r(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}}(t.expression)||p.hasTrailingComment()||p.hasTrailingWhitespace()||Lt(".");t.questionDotToken?Se(r):Ge(r.kind,t.expression.end,Lt,t);Qt(i,!1),Se(t.name),Zt(n,i)}(r);case 205:return function(e){Ee(e.expression,ne.parenthesizeLeftSideOfAccess),Se(e.questionDotToken),Ge(22,e.expression.end,Lt,e),Ee(e.argumentExpression),Ge(23,e.argumentExpression.end,Lt,e)}(r);case 206:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Lt("("),Ot("0"),Lt(","),zt());Ee(t.expression,ne.parenthesizeLeftSideOfAccess),r&&Lt(")");Se(t.questionDotToken),Tt(t,t.typeArguments),wt(t,t.arguments,2576,ne.parenthesizeExpressionForDisallowedComma)}(r);case 207:return function(e){Ge(103,e.pos,Bt,e),zt(),Ee(e.expression,ne.parenthesizeExpressionOfNew),Tt(e,e.typeArguments),wt(e,e.arguments,18960,ne.parenthesizeExpressionForDisallowedComma)}(r);case 208:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Lt("("),Ot("0"),Lt(","),zt());Ee(t.tag,ne.parenthesizeLeftSideOfAccess),r&&Lt(")");Tt(t,t.typeArguments),zt(),Ee(t.template)}(r);case 209:return function(e){Lt("<"),Se(e.type),Lt(">"),Ee(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 210:return function(e){var t=Ge(20,e.pos,Lt,e),r=ir(e.expression,e);Ee(e.expression,void 0),ar(e.expression,e),Zt(r),Ge(21,e.expression?e.expression.end:t,Lt,e)}(r);case 211:return function(e){yr(e.name),Ye(e)}(r);case 212:return function(e){Et(e,e.decorators),ht(e,e.modifiers),Xe(e,Ue)}(r);case 213:return function(e){Ge(89,e.pos,Bt,e),zt(),Ee(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 214:return function(e){Ge(112,e.pos,Bt,e),zt(),Ee(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 215:return function(e){Ge(114,e.pos,Bt,e),zt(),Ee(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 216:return function(e){Ge(131,e.pos,Bt,e),zt(),Ee(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 217:return function(e){Yt(e.operator,jt),function(e){var t=e.operand;return 217===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&zt();Ee(e.operand,ne.parenthesizeOperandOfPrefixUnary)}(r);case 218:return function(e){Ee(e.operand,ne.parenthesizeOperandOfPostfixUnary),Yt(e.operator,jt)}(r);case 219:return ie(r);case 220:return function(e){var t=sr(e,e.condition,e.questionToken),r=sr(e,e.questionToken,e.whenTrue),n=sr(e,e.whenTrue,e.colonToken),i=sr(e,e.colonToken,e.whenFalse);Ee(e.condition,ne.parenthesizeConditionOfConditionalExpression),Qt(t,!0),Se(e.questionToken),Qt(r,!0),Ee(e.whenTrue,ne.parenthesizeBranchOfConditionalExpression),Zt(t,r),Qt(n,!0),Se(e.colonToken),Qt(i,!0),Ee(e.whenFalse,ne.parenthesizeBranchOfConditionalExpression),Zt(n,i)}(r);case 221:return function(e){Se(e.head),Pt(e,e.templateSpans,262144)}(r);case 222:return function(e){Ge(125,e.pos,Bt,e),Se(e.asteriskToken),St(e.expression,ne.parenthesizeExpressionForDisallowedComma)}(r);case 223:return function(e){Ge(25,e.pos,Lt,e),Ee(e.expression,ne.parenthesizeExpressionForDisallowedComma)}(r);case 224:return function(e){yr(e.name),tt(e)}(r);case 225:return;case 227:return function(e){Ee(e.expression,void 0),e.type&&(zt(),Bt("as"),zt(),Se(e.type))}(r);case 228:return function(e){Ee(e.expression,ne.parenthesizeLeftSideOfAccess),jt("!")}(r);case 229:return function(e){Ht(e.keywordToken,e.pos,Lt),Lt("."),Se(e.name)}(r);case 230:return e.Debug.fail("SyntheticExpression should never be printed.");case 276:return function(e){Se(e.openingElement),Pt(e,e.children,262144),Se(e.closingElement)}(r);case 277:return function(e){Lt("<"),it(e.tagName),Tt(e,e.typeArguments),zt(),Se(e.attributes),Lt("/>")}(r);case 280:return function(e){Se(e.openingFragment),Pt(e,e.children,262144),Se(e.closingFragment)}(r);case 343:return e.Debug.fail("SyntaxList should not be printed");case 344:return;case 345:return function(e){Ee(e.expression)}(r);case 346:return function(e){wt(e,e.elements,528,void 0)}(r);case 347:case 348:return;case 349:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(r.kind)?Gt(r,Bt):e.isTokenKind(r.kind)?Gt(r,Lt):void e.Debug.fail("Unhandled SyntaxKind: "+e.Debug.formatSyntaxKind(r.kind)+".")}function Re(t,r){var n=Ie(1,t,r);e.Debug.assertIsDefined(b),r=b,b=void 0,n(t,r)}function Be(r){var i=!1,a=301===r.kind?r:void 0;if(!a||R!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c0)return!1;r=o}return!0}(t)?Ze:et;Pr?Pr(t,t.statements,r):r(t),Wt(),Ht(19,t.statements.end,Lt,t),null==N||N(t)}function Ze(e){et(e,!0)}function et(e,t){var r=ft(e.statements),n=p.getTextPos();Be(e),0===r&&n===p.getTextPos()&&t?(Wt(),Pt(e,e.statements,768),qt()):Pt(e,e.statements,1,void 0,r)}function tt(t){e.forEach(t.members,mr),Et(t,t.decorators),ht(t,t.modifiers),Bt("class"),t.name&&(zt(),Ce(t.name));var r=65536&e.getEmitFlags(t);r&&qt(),kt(t,t.typeParameters),Pt(t,t.heritageClauses,0),zt(),Lt("{"),Pt(t,t.members,129),Lt("}"),r&&Wt()}function rt(e){Lt("{"),Pt(e,e.elements,525136),Lt("}")}function nt(e){e.propertyName&&(Se(e.propertyName),zt(),Ge(127,e.propertyName.end,Bt,e),zt()),Se(e.name)}function it(e){79===e.kind?Ee(e):Se(e)}function at(t,r,i){var a=163969;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],n))?(Ht(58,i,Lt,t),zt(),a&=-130):Ge(58,i,Lt,t),Pt(t,r,a)}function ot(t){Pt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function st(t){t.typeParameters&&Pt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&Pt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(Vt(),zt(),Lt("*"),zt(),Se(t.type))}function ct(e){Lt("@"),Se(e)}function ut(t){var r=e.getTextOfJSDocComment(t);r&&(zt(),J(r))}function lt(e){e&&(zt(),Lt("{"),Se(e.type),Lt("}"))}function _t(t){Vt();var r=t.statements;if(Pr&&(0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0])))return void Pr(t,r,pt);pt(t)}function dt(e,t,r,i){if(e){var a=p.getTextPos();Kt('/// '),K&&K.sections.push({pos:a,end:p.getTextPos(),kind:"no-default-lib"}),Vt()}if(n&&n.moduleName&&(Kt('/// '),Vt()),n&&n.amdDependencies)for(var o=0,s=n.amdDependencies;o'):Kt('/// '),Vt()}for(var u=0,l=t;u'),K&&K.sections.push({pos:a,end:p.getTextPos(),kind:"reference",data:_.fileName}),Vt()}for(var d=0,f=r;d'),K&&K.sections.push({pos:a,end:p.getTextPos(),kind:"type",data:_.fileName}),Vt()}for(var g=0,m=i;g'),K&&K.sections.push({pos:a,end:p.getTextPos(),kind:"lib",data:_.fileName}),Vt()}}function pt(t){var r=t.statements;dr(t),e.forEach(t.statements,gr),Be(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&dt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),Pt(t,r,1,void 0,-1===n?r.length:n),pr(t)}function ft(t,r,n,i){for(var a=!!r,o=0;o=a.length||0===u;if(l&&32768&o)return P&&P(a),void(w&&w(a));if(15360&o&&(Lt(function(e){return i[15360&e][0]}(o)),l&&a&&jr(a.pos,!0)),P&&P(a),l)1&o&&(!j||r&&!e.rangeIsOnSingleLine(r,n))?Vt():256&o&&!(524288&o)&&zt();else{e.Debug.type(a);var _=0==(262144&o),p=_,f=er(r,a,o);f?(Vt(f),p=!1):256&o&&zt(),128&o&&qt();for(var g=void 0,m=void 0,y=!1,v=0;v0?(0==(131&o)&&(qt(),y=!0),Vt(D),p=!1):g&&512&o&&zt()}if(m=_e(h),p){if(jr)jr(e.getCommentRange(h).pos)}else p=_;d=h.pos,1===t.length?t(h):t(h,s),y&&(Wt(),y=!1),g=h}var b=g?e.getEmitFlags(g):0,x=Z||!!(1024&b),S=(null==a?void 0:a.hasTrailingComma)&&64&o&&16&o;S&&(g&&!x?Ge(27,g.end,Lt,g):Lt(",")),g&&(r?r.end:-1)!==g.end&&60&o&&!x&&Rr(S&&(null==a?void 0:a.end)?a.end:g.end),128&o&&Wt(),de(m);var C=rr(r,a,o);C?Vt(C):2097408&o&&zt()}w&&w(a),15360&o&&(l&&a&&Rr(a.end),Lt(function(e){return i[15360&e][1]}(o)))}}function Ot(e){p.writeLiteral(e)}function Mt(e,t){p.writeSymbol(e,t)}function Lt(e){p.writePunctuation(e)}function Rt(){p.writeTrailingSemicolon(";")}function Bt(e){p.writeKeyword(e)}function jt(e){p.writeOperator(e)}function Jt(e){p.writeParameter(e)}function Kt(e){p.writeComment(e)}function zt(){p.writeSpace(" ")}function Ut(e){p.writeProperty(e)}function Vt(e){void 0===e&&(e=1);for(var t=0;t0)}function qt(){p.increaseIndent()}function Wt(){p.decreaseIndent()}function Ht(t,r,n,i){return W?Yt(t,n,r):function(t,r,n,i,a){if(W||t&&e.isInJsonFile(t))return a(r,n,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r],u=c&&c.source||y;i=Yr(u,c?c.pos:i),0==(128&s)&&i>=0&&$r(u,i);i=a(r,n,i),c&&(i=c.end);0==(256&s)&&i>=0&&$r(u,i);return i}(i,t,n,r,Yt)}function Gt(t,r){I&&I(t),r(e.tokenToString(t.kind)),O&&O(t)}function Yt(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function Xt(t,r,n){if(1&e.getEmitFlags(t))zt();else if(j){var i=sr(t,r,n);i?Vt(i):zt()}else Vt()}function $t(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i-1&&i.indexOf(r)===a+1}(t,r)?nr((function(i){return e.getLinesBetweenRangeEndAndRangeStart(t,r,n,i)})):!j&&(a=t,o=r,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(t,r,n)?0:1:65536&i?1:0;if(or(t,i)||or(r,i))return 1}else if(e.getStartsOnNewLine(r))return 1;var a,o;return 1&i?1:0}function rr(t,r,i){if(2&i||j){if(65536&i)return 1;var a=e.lastOrUndefined(r);if(void 0===a)return!t||e.rangeIsOnSingleLine(t,n)?0:1;if(t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(a)&&(!a.parent||a.parent===t)){if(j){var o=e.isNodeArray(r)&&!e.positionIsSynthesized(r.end)?r.end:a.end;return nr((function(r){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,n,r)}))}return e.rangeEndPositionsAreOnSameLine(t,a,n)?0:1}if(or(a,i))return 1}return 1&i&&!(131072&i)?1:0}function nr(t){e.Debug.assert(!!j);var r=t(!0);return 0===r?t(!1):r}function ir(e,t){var r=j&&er(t,[e],0);return r&&Qt(r,!1),!!r}function ar(e,t){var r=j&&rr(t,[e],0);r&&Vt(r)}function or(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function sr(t,r,i){return 131072&e.getEmitFlags(t)?0:(t=ur(t),r=ur(r),i=ur(i),e.getStartsOnNewLine(i)?1:e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(i)?0:j?nr((function(t){return e.getLinesBetweenRangeEndAndRangeStart(r,i,n,t)})):e.rangeEndIsOnSameLineAsRangeStart(r,i,n)?0:1)}function cr(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,n)}function ur(t){for(;210===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function lr(t,r){return e.isGeneratedIdentifier(t)?vr(t):(e.isIdentifier(t)||e.isPrivateIdentifier(t))&&(e.nodeIsSynthesized(t)||!t.parent||!n||t.parent&&n&&e.getSourceFileOfNode(t)!==e.getOriginalNode(n))?e.idText(t):10===t.kind&&t.textSourceNode?lr(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(n,t,r):t.text}function _r(r,i,a){if(10===r.kind&&r.textSourceNode){var o=r.textSourceNode;if(e.isIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:lr(o);return a?'"'+e.escapeJsxAttributeString(s)+'"':i||16777216&e.getEmitFlags(r)?'"'+e.escapeString(s)+'"':'"'+e.escapeNonAsciiString(s)+'"'}return _r(o,i,a)}var c=(i?1:0)|(a?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(r,n,c)}function dr(t){t&&524288&e.getEmitFlags(t)||(c.push(u),u=0,l.push(_))}function pr(t){t&&524288&e.getEmitFlags(t)||(u=c.pop(),_=l.pop())}function fr(t){_&&_!==e.lastOrUndefined(l)||(_=new e.Set),_.add(t)}function gr(t){if(t)switch(t.kind){case 233:e.forEach(t.statements,gr);break;case 248:case 246:case 238:case 239:gr(t.statement);break;case 237:gr(t.thenStatement),gr(t.elseStatement);break;case 240:case 242:case 241:gr(t.initializer),gr(t.statement);break;case 247:gr(t.caseBlock);break;case 261:e.forEach(t.clauses,gr);break;case 287:case 288:e.forEach(t.statements,gr);break;case 250:gr(t.tryBlock),gr(t.catchClause),gr(t.finallyBlock);break;case 290:gr(t.variableDeclaration),gr(t.block);break;case 235:gr(t.declarationList);break;case 253:e.forEach(t.declarations,gr);break;case 252:case 162:case 201:case 255:yr(t.name);break;case 254:yr(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,gr),gr(t.body));break;case 199:case 200:e.forEach(t.elements,gr);break;case 264:gr(t.importClause);break;case 265:yr(t.name),gr(t.namedBindings);break;case 266:case 272:yr(t.name);break;case 267:e.forEach(t.elements,gr);break;case 268:yr(t.propertyName||t.name)}}function mr(e){if(e)switch(e.kind){case 291:case 292:case 165:case 167:case 170:case 171:yr(e.name)}}function yr(t){t&&(e.isGeneratedIdentifier(t)?vr(t):e.isBindingPattern(t)&&gr(t))}function vr(t){if(4==(7&t.autoGenerateFlags))return hr(function(t){var r=t.autoGenerateId,n=t,i=n.original;for(;i&&(n=i,!(e.isIdentifier(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==r));)i=n.original;return n}(t),t.autoGenerateFlags);var r=t.autoGenerateId;return o[r]||(o[r]=function(t){switch(7&t.autoGenerateFlags){case 1:return xr(0,!!(8&t.autoGenerateFlags));case 2:return xr(268435456,!!(8&t.autoGenerateFlags));case 3:return Sr(e.idText(t),32&t.autoGenerateFlags?br:Dr,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(t))}function hr(t,r){var n=e.getNodeId(t);return a[n]||(a[n]=function(t,r){switch(t.kind){case 79:return Sr(lr(t),Dr,!!(16&r),!!(8&r));case 259:case 258:return function(t){var r=lr(t.name);return function(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&3257279&i.flags)return!1}return!0}(r,t)?r:Sr(r)}(t);case 264:case 270:return function(t){var r=e.getExternalModuleName(t);return Sr(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")}(t);case 254:case 255:case 269:return Sr("default");case 224:return Sr("class");case 167:case 170:case 171:return function(t){if(e.isIdentifier(t.name))return hr(t.name);return xr(0)}(t);case 160:return xr(0,!0);default:return xr(0)}}(t,r))}function Dr(e){return br(e)&&!s.has(e)&&!(_&&_.has(e))}function br(t){return!n||e.isFileLevelUniqueName(n,t,S)}function xr(e,t){if(e&&!(u&e)&&Dr(r=268435456===e?"_i":"_n"))return u|=e,t&&fr(r),r;for(;;){var r,n=268435455&u;if(u++,8!==n&&13!==n)if(Dr(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&fr(r),r}}function Sr(e,t,r,n){if(void 0===t&&(t=Dr),r&&t(e))return n?fr(e):s.add(e),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?fr(a):s.add(a),a;i++}}function Cr(e){return Sr(e,br,!0)}function Er(e,t){var r=Ie(2,e,t),n=Y,i=X,a=$;Tr(t),r(e,t),kr(t,n,i,a)}function Tr(t){var r=e.getEmitFlags(t),n=e.getCommentRange(t);!function(t,r,n,i){te(),Q=!1;var a=n<0||0!=(512&r)||11===t.kind,o=i<0||0!=(1024&r)||11===t.kind;(n>0||i>0)&&n!==i&&(a||wr(n,344!==t.kind),(!a||n>=0&&0!=(512&r))&&(Y=n),(!o||i>=0&&0!=(1024&r))&&(X=i,253===t.kind&&($=i)));e.forEach(e.getSyntheticLeadingComments(t),Ar),re()}(t,r,n.pos,n.end),2048&r&&(Z=!0)}function kr(t,r,n,i){var a=e.getEmitFlags(t),o=e.getCommentRange(t);2048&a&&(Z=!1),function(t,r,n,i,a,o,s){te();var c=i<0||0!=(1024&r)||11===t.kind;e.forEach(e.getSyntheticTrailingComments(t),Fr),(n>0||i>0)&&n!==i&&(Y=a,X=o,$=s,c||344===t.kind||function(e){Ur(e,Br)}(i));re()}(t,a,o.pos,o.end,r,n,i)}function Ar(e){(e.hasLeadingNewline||2===e.kind)&&p.writeLine(),Nr(e),e.hasTrailingNewLine||2===e.kind?p.writeLine():p.writeSpace(" ")}function Fr(e){p.isAtStartOfLine()||p.writeSpace(" "),Nr(e),e.hasTrailingNewLine&&p.writeLine()}function Nr(t){var r=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,p,0,r.length,L)}function Pr(t,r,i){te();var a=r.pos,o=r.end,s=e.getEmitFlags(t),c=Z||o<0||0!=(1024&s);a<0||0!=(512&s)||function(t){var r=e.emitDetachedComments(n.text,xe(),p,Vr,t,L,Z);r&&(D?D.push(r):D=[r])}(r),re(),2048&s&&!Z?(Z=!0,i(t),Z=!1):i(t),te(),c||(wr(r.end,!0),Q&&!p.isAtStartOfLine()&&p.writeLine()),re()}function wr(e,t){Q=!1,t?0===e&&(null==n?void 0:n.isDeclarationFile)?zr(e,Or):zr(e,Lr):0===e&&zr(e,Ir)}function Ir(e,t,r,n,i){qr(e,t)&&Lr(e,t,r,n,i)}function Or(e,t,r,n,i){qr(e,t)||Lr(e,t,r,n,i)}function Mr(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function Lr(t,r,i,a,o){Mr(n.text,t)&&(Q||(e.emitNewLineBeforeLeadingCommentOfPosition(xe(),p,o,t),Q=!0),Xr(t),e.writeCommentRange(n.text,xe(),p,t,r,L),Xr(r),a?p.writeLine():3===i&&p.writeSpace(" "))}function Rr(e){Z||-1===e||wr(e,!0)}function Br(t,r,i,a){Mr(n.text,t)&&(p.isAtStartOfLine()||p.writeSpace(" "),Xr(t),e.writeCommentRange(n.text,xe(),p,t,r,L),Xr(r),a&&p.writeLine())}function jr(e,t,r){Z||(te(),Ur(e,t?Br:r?Jr:Kr),re())}function Jr(t,r,i){Xr(t),e.writeCommentRange(n.text,xe(),p,t,r,L),Xr(r),2===i&&p.writeLine()}function Kr(t,r,i,a){Xr(t),e.writeCommentRange(n.text,xe(),p,t,r,L),Xr(r),a?p.writeLine():p.writeSpace(" ")}function zr(t,r){!n||-1!==Y&&t===Y||(function(t){return void 0!==D&&e.last(D).nodePos===t}(t)?function(t){var r=e.last(D).detachedCommentEndPos;D.length-1?D.pop():D=void 0;e.forEachLeadingCommentRange(n.text,r,t,r)}(r):e.forEachLeadingCommentRange(n.text,t,r,t))}function Ur(t,r){n&&(-1===X||t!==X&&t!==$)&&e.forEachTrailingCommentRange(n.text,t,r)}function Vr(t,r,i,a,o,s){Mr(n.text,a)&&(Xr(a),e.writeCommentRange(t,r,i,a,o,s),Xr(o))}function qr(t,r){return e.isRecognizedTripleSlashComment(n.text,t,r)}function Wr(e,t){var r=Ie(3,e,t);Hr(t),r(e,t),Gr(t)}function Hr(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);if(e.isUnparsedNode(t)){e.Debug.assertIsDefined(t.parent,"UnparsedNodes must have parent pointers");var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(t.parent);i&&m&&m.appendSourceMap(p.getLine(),p.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end))}else{var a=n.source||y;344!==t.kind&&0==(16&r)&&n.pos>=0&&$r(n.source||y,Yr(a,n.pos)),64&r&&(W=!0)}}function Gr(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);e.isUnparsedNode(t)||(64&r&&(W=!1),344!==t.kind&&0==(32&r)&&n.end>=0&&$r(n.source||y,n.end))}function Yr(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function Xr(t){if(!(W||e.positionIsSynthesized(t)||Zr(y))){var r=e.getLineAndCharacterOfPosition(y,t),n=r.line,i=r.character;m.addMapping(p.getLine(),p.getColumn(),H,n,i,void 0)}}function $r(e,t){if(e!==y){var r=y,n=H;Qr(e),Xr(t),function(e,t){y=e,H=t}(r,n)}else Xr(t)}function Qr(e){W||(y=e,e!==v?Zr(e)||(H=m.addSource(e.fileName),t.inlineSources&&m.setSourceContent(H,e.text),v=e,G=H):H=G)}function Zr(t){return e.fileExtensionIs(t.fileName,".json")}}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=a,e.getTsBuildInfoEmitOutputFilePath=o,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=l,e.getOutputDeclarationFileName=d,e.getCommonSourceDirectory=y,e.getCommonSourceDirectoryOfConfig=v,e.getAllProjectOutputs=function(t,r){var n=f(),i=n.addOutput,a=n.getOutputs;if(e.outFile(t.options))g(t,i);else{for(var s=e.memoize((function(){return v(t,r)})),c=0,u=t.fileNames;c=4,v=(f+1+"").length;y&&(v=Math.max("...".length,v));for(var h="",D=l;D<=f;D++){h+=o.getNewLine(),y&&l+11}))&&Xt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}M.useDefineForClassFields&&0===_&&Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");M.checkJs&&!e.getAllowJSCompilerOption(M)&&ie.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));M.emitDeclarationOnly&&(e.getEmitDeclarations(M)||Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),M.noEmit&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));M.emitDecoratorMetadata&&!M.experimentalDecorators&&Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");M.jsxFactory?(M.reactNamespace&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==M.jsx&&5!==M.jsx||Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+M.jsx)),e.parseIsolatedEntityName(M.jsxFactory,_)||$t("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,M.jsxFactory)):M.reactNamespace&&!e.isIdentifierText(M.reactNamespace,_)&&$t("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,M.reactNamespace);M.jsxFragmentFactory&&(M.jsxFactory||Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==M.jsx&&5!==M.jsx||Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+M.jsx)),e.parseIsolatedEntityName(M.jsxFragmentFactory,_)||$t("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,M.jsxFragmentFactory));M.reactNamespace&&(4!==M.jsx&&5!==M.jsx||Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+M.jsx)));M.jsxImportSource&&2===M.jsx&&Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+M.jsx));if(!M.noEmit&&!M.suppressOutputPathCheck){var v=Ge(),h=new e.Set;e.forEachEmittedFile(v,(function(e){M.emitDeclarationOnly||D(e.jsFilePath,h),D(e.declarationFilePath,h)}))}function D(t,r){if(t){var n=qe(t);if(be.has(n)){var i=void 0;M.configFilePath||(i=e.chainDiagnosticMessages(void 0,e.Diagnostics.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)),i=e.chainDiagnosticMessages(i,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),rr(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=Z.useCaseSensitiveFileNames()?n:e.toFileNameLowerCase(n);r.has(a)?rr(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.add(a)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),je;function Je(t,r,n){if(!t.length)return e.emptyArray;var i=e.getNormalizedAbsolutePath(r.originalFileName,ae),a=ze(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:i}),e.performance.mark("beforeResolveModule");var o=$(t,i,n,a);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Ke(t,r){if(!t.length)return[];var n=e.isString(r)?r:e.getNormalizedAbsolutePath(r.originalFileName,ae),i=e.isString(r)?void 0:ze(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:n}),e.performance.mark("beforeResolveTypeReference");var a=Q(t,n,i);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),a}function ze(t){var r=Nt(t.originalFileName);if(r||!e.fileExtensionIs(t.originalFileName,".d.ts"))return r;var n=Ue(t.originalFileName,t.path);if(n)return n;if(Z.realpath&&M.preserveSymlinks&&e.stringContains(t.originalFileName,e.nodeModulesPathPart)){var i=Z.realpath(t.originalFileName),a=qe(i);return a===t.path?void 0:Ue(i,a)}}function Ue(t,r){var n=wt(t);return e.isString(n)?Nt(n):n?Pt((function(t){var n=e.outFile(t.commandLine.options);if(n)return qe(n)===r?t:void 0})):void 0}function Ve(t){if(e.containsPath(ne,t.fileName,!1)){var r=e.getBaseFileName(t.fileName);if("lib.d.ts"===r||"lib.es6.d.ts"===r)return 0;var n=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts"),i=e.libs.indexOf(n);if(-1!==i)return i+1}return e.libs.length+2}function qe(t){return e.toPath(t,ae,jt)}function We(){if(void 0===A){var t=e.filter(f,(function(t){return e.sourceFileMayBeEmitted(t,je)}));A=e.getCommonSourceDirectory(M,(function(){return e.mapDefined(t,(function(e){return e.isDeclarationFile?void 0:e.fileName}))}),ae,jt,(function(r){return function(t,r){for(var n=!0,i=Z.getCanonicalFileName(e.getNormalizedAbsolutePath(r,ae)),a=0,o=t;a=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)})),directives:i}}function _t(e,t){return pt(e,t,z,dt)}function dt(t,r){return ot((function(){var n=Qe().getEmitResolver(t,r);return e.getDeclarationDiagnostics(Ge(e.noop),n,t)||e.emptyArray}))}function pt(t,r,n,i){var a,o=t?null===(a=n.perFile)||void 0===a?void 0:a.get(t.path):n.allDiagnostics;if(o)return o;var s=i(t,r);return t?(n.perFile||(n.perFile=new e.Map)).set(t.path,s):n.allDiagnostics=s,s}function ft(e,t){return e.isDeclarationFile?[]:_t(e,t)}function gt(t,r,n,i){bt(e.normalizePath(t),r,n,void 0,i)}function mt(e,t){return e.fileName===t.fileName}function yt(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function vt(t,r){var n=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,void 0,n);return e.addEmitFlags(i,67108864),e.setParent(n,i),e.setParent(i,r),n.flags&=-9,i.flags&=-9,n}function ht(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((M.isolatedModules||o)&&!t.isDeclarationFile){M.importHelpers&&(r=[vt(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(M,t),M);s&&(r||(r=[])).push(vt(s,t))}for(var c=0,u=t.statements;c0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(b,h,t,r,qe(t),_);return he.add(b.path,t),Tt(x,r,l),Et(x,a),ve.set(r,o.name),p.push(x),x}h&&(ye.set(D,h),ve.set(r,o.name))}if(Tt(h,r,l),h){if(H.set(r,q>0),h.fileName=t,h.path=r,h.resolvedPath=qe(t),h.originalFileName=_,Et(h,a),Z.useCaseSensitiveFileNames()){var S=e.toFileNameLowerCase(r),C=xe.get(S);C?St(t,C,a):xe.set(S,h)}te=te||h.hasNoDefaultLib&&!i,M.noResolve||(Mt(h,n),Lt(h)),M.noLib||Bt(h),Jt(h),n?d.push(h):p.push(h)}return h}(t,r,n,i,a,o);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function Et(e,t){e&&J.add(e.path,t)}function Tt(e,t,r){r?(be.set(r,e),be.set(t,e||!1)):be.set(t,e)}function kt(e){var t=At(e);return t&&Ft(t,e)}function At(t){if(pe&&pe.length&&!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json"))return Nt(t)}function Ft(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!Z.useCaseSensitiveFileNames())}function Nt(t){void 0===ge&&(ge=new e.Map,Pt((function(e){qe(M.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(t){return ge.set(qe(t),e.sourceFile.path)}))})));var r=ge.get(qe(t));return r&&Ot(r)}function Pt(t){return e.forEachResolvedProjectReference(pe,t)}function wt(t){if(e.isDeclarationFileName(t))return void 0===me&&(me=new e.Map,Pt((function(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");me.set(qe(n),!0)}else{var i=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!Z.useCaseSensitiveFileNames())}));e.forEach(t.commandLine.fileNames,(function(r){if(!e.fileExtensionIs(r,".d.ts")&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,!Z.useCaseSensitiveFileNames(),i);me.set(qe(n),r)}}))}}))),me.get(qe(t))}function It(e){return Se&&!!Nt(e)}function Ot(e){if(fe)return fe.get(e)||void 0}function Mt(t,n){e.forEach(t.referencedFiles,(function(i,a){bt(r(i.fileName,t.fileName),n,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:t.path,index:a})}))}function Lt(t){var r=e.map(t.typeReferenceDirectives,(function(t){return e.toFileNameLowerCase(t.fileName)}));if(r)for(var n=Ke(r,t),i=0;iV,p=_&&!E(a,s)&&!a.noResolve&&od?e.createDiagnosticForNodeInSourceFile(_,p.elements[d],t.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!M.types)return;i=Yt("types",t.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==t.index){i=Yt("lib",M.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var f=e.forEachEntry(e.targetOptionDeclaration.type,(function(e,t){return e===M.target?t:void 0}));i=f?function(t,r){var n=Ht(t);return n&&e.firstDefined(n,(function(t){return e.isStringLiteral(t.initializer)&&t.initializer.text===r?t.initializer:void 0}))}("target",f):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}return i&&e.createDiagnosticForNodeInSourceFile(M.configFile,i,a)}(t))),t===n&&(n=void 0)}}function Ut(e,t,r,n){(w||(w=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function Vt(e,t,r){ie.add(zt(e,void 0,t,r))}function qt(t,r,n,i,a,o){for(var s=!0,c=0,u=Gt();cr&&(ie.add(e.createDiagnosticForNodeInSourceFile(M.configFile,p.elements[r],n,i,a,o)),s=!1)}}s&&ie.add(e.createCompilerDiagnostic(n,i,a,o))}function Wt(t,r,n,i){for(var a=!0,o=0,s=Gt();or?ie.add(e.createDiagnosticForNodeInSourceFile(t||M.configFile,o.elements[r],n,i,a)):ie.add(e.createCompilerDiagnostic(n,i,a))}function Zt(t,r,n,i,a,o,s){var c=er();(!c||!tr(c,t,r,n,i,a,o,s))&&ie.add(e.createCompilerDiagnostic(i,a,o,s))}function er(){if(void 0===G){G=!1;var t=e.getTsConfigObjectLiteralExpression(M.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r0)for(var a=t.getTypeChecker(),o=0,u=r.imports;o0)for(var d=0,p=r.referencedFiles;d1&&x(b)}return i;function x(t){if(t.declarations)for(var n=0,i=t.declarations;n0;){var _=l.pop();if(!u.has(_)){var d=r.getSourceFileByPath(_);u.set(_,d),d&&p(t,r,d,i,a,o,s)&&l.push.apply(l,g(t,d.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(u.values(),(function(e){return e})))}r.createManyToManyPathMap=i,r.canReuseOldState=l,r.create=function(t,r,n,a){var o=new e.Map,s=t.getCompilerOptions().module!==e.ModuleKind.None?i():void 0,c=s?i():void 0,_=new e.Set,d=l(s,n);t.getTypeChecker();for(var p=0,f=t.getSourceFiles();p0;){var c=s.pop();if(!o.has(c)&&(o.set(c,!0),n(t,c),l(t,c))){var u=e.Debug.checkDefined(t.program).getSourceFileByPath(c);s.push.apply(s,e.BuilderState.getReferencedByPaths(t,u.resolvedPath))}}}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var d=new e.Set;null===(i=t.currentAffectedFilesExportedModulesMap.getKeys(r.resolvedPath))||void 0===i||i.forEach((function(e){return _(t,e,d,n)})),null===(a=t.exportedModulesMap.getKeys(r.resolvedPath))||void 0===a||a.forEach((function(e){var r;return!t.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))&&_(t,e,d,n)}))}(t,r,(function(t,r){return function(t,r,n,i){if(u(t,r),!t.changedFilesSet.has(r)){var a=e.Debug.checkDefined(t.program),o=a.getSourceFileByPath(r);o&&(e.BuilderState.updateShapeSignature(t,a,o,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(t.compilerOptions)&&b(t,r,0))}}(t,r,n,i)}));else{if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var o=e.Debug.checkDefined(t.program),s=o.getCompilerOptions();e.forEach(o.getSourceFiles(),(function(r){return o.isSourceFileDefaultLibrary(r)&&!e.skipTypeChecking(r,s,o)&&u(t,r.resolvedPath)}))}e.BuilderState.updateShapeSignature(t,e.Debug.checkDefined(t.program),r,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap)}}function u(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function l(t,r){return e.Debug.checkDefined(t.currentAffectedFilesSignatures).get(r)!==e.Debug.checkDefined(t.fileInfos.get(r)).signature}function _(e,t,r,n){var i;null===(i=e.referencedMap.getKeys(t))||void 0===i||i.forEach((function(t){return d(e,t,r,n)}))}function d(t,r,n,i){var a,o,s;e.tryAddToSet(n,r)&&(i(t,r),e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap),null===(a=t.currentAffectedFilesExportedModulesMap.getKeys(r))||void 0===a||a.forEach((function(e){return d(t,e,n,i)})),null===(o=t.exportedModulesMap.getKeys(r))||void 0===o||o.forEach((function(e){var r;return!t.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))&&d(t,e,n,i)})),null===(s=t.referencedMap.getKeys(r))||void 0===s||s.forEach((function(e){return!n.has(e)&&i(t,e)})))}function p(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?(t.affectedFilesPendingEmitIndex++,t.buildInfoEmitPending=!0):t.affectedFilesIndex++)}function f(e,t,r){return p(e,r),{result:t,affected:r}}function g(e,t,r,n,i,a){return p(e,r,n,i,a),{result:t,affected:r}}function m(t,r,n){return e.concatenate(function(t,r,n){var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o);return e.filterSemanticDiagnostics(o,t.compilerOptions)}(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function y(t,r){for(var n,i=e.getOptionsNameMap().optionsNameMap,a=0,o=e.getOwnKeys(t).sort(e.compareStringsCaseSensitive);a1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-z]\$\//)){if(-1===(n=t.indexOf(e.directorySeparator,n+1)))return!1;i=t.substring(r+i.length,n+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=n+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}e.removeIgnoredPath=t,e.canWatchDirectory=r,e.createResolutionCache=function(n,i,a){var o,s,c,u,l,_,d=e.createMultiMap(),p=[],f=e.createMultiMap(),g=!1,m=e.memoize((function(){return n.getCurrentDirectory()})),y=n.getCachedDirectoryStructureHost(),v=new e.Map,h=e.createCacheWithRedirects(),D=e.createCacheWithRedirects(),b=e.createModuleResolutionCache(m(),n.getCanonicalFileName,void 0,h,D),x=new e.Map,S=e.createCacheWithRedirects(),C=e.createTypeReferenceDirectiveResolutionCache(m(),n.getCanonicalFileName,void 0,b.getPackageJsonInfoCache(),S),E=[".ts",".tsx",".js",".jsx",".json"],T=new e.Map,k=new e.Map,A=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,m())),F=A&&n.toPath(A),N=void 0!==F?F.split(e.directorySeparator).length:0,P=new e.Map;return{getModuleResolutionCache:function(){return b},startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:L,finishCachingPerDirectoryResolution:function(){c=void 0,L(),k.forEach((function(e,t){0===e.refCount&&(k.delete(t),e.watcher.close())})),g=!1},resolveModuleNames:function(t,r,n,i){return j({names:t,containingFile:r,redirectedReference:i,cache:v,perDirectoryCacheWithRedirects:h,loader:R,getResolutionWithResolvedFileName:w,shouldRetryResolution:function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)},reusedNames:n,logChanges:a})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){var r=v.get(n.toPath(t));return r&&r.get(e)},resolveTypeReferenceDirectives:function(e,t,r){return j({names:e,containingFile:t,redirectedReference:r,cache:x,perDirectoryCacheWithRedirects:S,loader:B,getResolutionWithResolvedFileName:I,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(t){if(!e.fileExtensionIs(t,".json"))return;var r=n.getCurrentProgram();if(!r)return;var i=r.getResolvedProjectReferenceByPath(t);if(!i)return;i.commandLine.fileNames.forEach((function(e){return Q(n.toPath(e))}))},removeResolutionsOfFile:Q,hasChangedAutomaticTypeDirectiveNames:function(){return g},invalidateResolutionOfFile:function(t){Q(t);var r=g;Z(f.get(t),e.returnTrue)&&g&&!r&&n.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:te,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(t){e.Debug.assert(c===t||void 0===c),c=t},createHasInvalidatedResolution:function(t){if(te(),t)return s=void 0,e.returnTrue;var r=s;return s=void 0,function(e){return!!r&&r.has(e)||M(e)}},isFileWithInvalidatedNonRelativeUnresolvedImports:M,updateTypeRootsWatch:function(){var t=n.getCompilationSettings();if(t.types)return void ne();var r=e.getEffectiveTypeRoots(t,{directoryExists:ae,getCurrentDirectory:m});r?e.mutateMap(P,e.arrayToMap(r,(function(e){return n.toPath(e)})),{createNewValue:ie,onDeleteValue:e.closeFileWatcher}):ne()},closeTypeRootsWatch:ne,clear:function(){e.clearMap(k,e.closeFileWatcherOf),T.clear(),d.clear(),ne(),v.clear(),x.clear(),f.clear(),p.length=0,u=void 0,l=void 0,_=void 0,L(),g=!1}};function w(e){return e.resolvedModule}function I(e){return e.resolvedTypeReferenceDirective}function O(t,r){return!(void 0===t||r.length<=t.length)&&(e.startsWith(r,t)&&r[t.length]===e.directorySeparator)}function M(e){if(!c)return!1;var t=c.get(e);return!!t&&!!t.length}function L(){b.clear(),C.clear(),d.forEach(W),d.clear()}function R(t,r,i,a,o){var s,c=e.resolveModuleName(t,r,i,a,b,o);if(!n.getGlobalCache)return c;var u=n.getGlobalCache();if(!(void 0===u||e.isExternalModuleNameRelative(t)||c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var l=e.loadModuleFromGlobalCache(e.Debug.checkDefined(n.globalCacheResolutionModuleName)(t),n.projectName,i,a,u,b),_=l.resolvedModule,d=l.failedLookupLocations;if(_)return c.resolvedModule=_,(s=c.failedLookupLocations).push.apply(s,d),c}return c}function B(t,r,n,i,a){return e.resolveTypeReferenceDirective(t,r,n,i,a,C)}function j(t){var r,i,a,s=t.names,c=t.containingFile,u=t.redirectedReference,l=t.cache,_=t.perDirectoryCacheWithRedirects,d=t.loader,p=t.getResolutionWithResolvedFileName,f=t.shouldRetryResolution,g=t.reusedNames,m=t.logChanges,y=n.toPath(c),v=l.get(y)||l.set(y,new e.Map).get(y),h=e.getDirectoryPath(y),D=_.getOrCreateMapOfCacheRedirects(u),b=D.get(h);b||(b=new e.Map,D.set(h,b));for(var x=[],S=n.getCompilationSettings(),C=m&&M(y),E=n.getCurrentProgram(),T=E&&E.getResolvedProjectReferenceToRedirect(c),k=T?!u||u.sourceFile.path!==T.sourceFile.path:!!u,A=new e.Map,F=0,N=s;FN+1?{dir:i.slice(0,N+1).join(e.directorySeparator),dirPath:n.slice(0,N+1).join(e.directorySeparator)}:{dir:A,dirPath:F,nonRecursive:!1}}return z(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,m())),e.getDirectoryPath(r))}function z(t,n){for(;e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isNodeModulesDirectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var i,a,o=!0;if(void 0!==F)for(;!O(n,F);){var s=e.getDirectoryPath(n);if(s===n)break;o=!1,i=n,a=t,n=s,t=e.getDirectoryPath(t)}return r(n)?{dir:a||t,dirPath:i||n,nonRecursive:o}:void 0}function U(t){return e.fileExtensionIsOneOf(t,E)}function V(t,r,i,a){if(r.refCount)r.refCount++,e.Debug.assertDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?q(r):d.add(t,r);var o=a(r);o&&o.resolvedFileName&&f.add(n.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(i)}function q(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations;if(r.length){p.push(t);for(var i=!1,a=0,o=r;a1),T.set(l,g-1))),d===F?o=!0:Y(d)}}o&&Y(F)}}}function Y(e){k.get(e).refCount--}function X(e,t,r){return n.watchDirectoryOfFailedLookupLocation(e,(function(e){var r=n.toPath(e);y&&y.addOrDeleteFileOrDirectory(e,r),ee(r,t===r)}),r?0:1)}function $(e,t,r){var n=e.get(t);n&&(n.forEach((function(e){return G(e,t,r)})),e.delete(t))}function Q(e){$(v,e,w),$(x,e,I)}function Z(t,r){if(!t)return!1;for(var n=!1,i=0,a=t;i1&&r.sort(d),s.push.apply(s,r));var i=e.getDirectoryPath(t);if(i===t)return o=t,"break";o=t=i},u=e.getDirectoryPath(t);0!==a.size;){var l=c(u);if(u=o,"break"===l)break}if(a.size){var _=e.arrayFrom(a.values());_.length>1&&_.sort(d),s.push.apply(s,_)}return s}function y(t,r,n){for(var i in n)for(var a=0,o=n[i];a=l.length+_.length&&e.startsWith(r,l)&&e.endsWith(r,_)||!_&&r===e.removeTrailingDirectorySeparator(l)){var d=r.substr(l.length,r.length-_.length-l.length);return i.replace("*",d)}}else if(c===r||c===t)return i}}function v(t,r,n,i,a){var o=t.path,s=t.isRedirect,c=r.getCanonicalFileName,u=r.sourceDirectory;if(n.fileExists&&n.readFile){var l=function(t){var r,n=0,i=0,a=0,o=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));var s=0,c=0,u=0;for(;c>=0;)switch(s=c,c=t.indexOf("/",s+1),u){case 0:t.indexOf(e.nodeModulesPathPart,s)===s&&(n=s,i=c,u=1);break;case 1:case 2:1===u&&"@"===t.charAt(s+1)?u=2:(a=c,u=3);break;case 3:u=t.indexOf(e.nodeModulesPathPart,s)===s?1:3}return o=s,u>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}(o);if(l){var _=o,d=!1;if(!a)for(var p=l.packageRootIndex,f=void 0;;){var g=C(p),m=g.moduleFileToTry,v=g.packageRootPath;if(v){_=v,d=!0;break}if(f||(f=m),-1===(p=o.indexOf(e.directorySeparator,p+1))){_=E(f);break}}if(!s||d){var h=n.getGlobalTypingsCacheLocation&&n.getGlobalTypingsCacheLocation(),b=c(_.substring(0,l.topLevelNodeModulesIndex));if(e.startsWith(u,b)||h&&e.startsWith(c(h),b)){var x=_.substring(l.topLevelPackageNameIndex+1),S=e.getPackageNameFromTypesPackageName(x);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&S===x?void 0:S}}}}function C(t){var r=o.substring(0,t),a=e.combinePaths(r,"package.json"),s=o;if(n.fileExists(a)){var u=JSON.parse(n.readFile(a)),l=u.typesVersions?e.getPackageJsonTypesVersionsPaths(u.typesVersions):void 0;if(l){var _=o.slice(r.length+1),d=y(e.removeFileExtension(_),D(_,0,i),l.paths);void 0!==d&&(s=e.combinePaths(r,d))}var p=u.typings||u.types||u.main;if(e.isString(p)){var f=e.toPath(p,r,c);if(e.removeFileExtension(f)===e.removeFileExtension(c(s)))return{packageRootPath:r,moduleFileToTry:s}}}return{moduleFileToTry:s}}function E(t){var r=e.removeFileExtension(t);return"/index"!==c(r.substring(l.fileNameIndex))||function(t,r){if(!t.fileExists)return;for(var n=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),i=0,a=n;i0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:_.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function D(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||o(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function b(t,r){var n=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),getDefaultLibLocation:n,getDefaultLibFileName:function(t){return e.combinePaths(n(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:function(e){return t.write(e+t.newLine)},createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature}}function x(t,r,n,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=b(t,r);return e.copyProperties(o,D(t,i)),o.afterProgramCreate=function(r){var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,(function(){return t.newLine}));v(r,n,a,(function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(c(t),t),s,i,t)}))},o}function S(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=n,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=a,e.createWatchStatusReporter=o,e.parseConfigFileWithSystem=function(t,r,n,i,a,o){var s=a;s.onUnRecoverableConfigFileDiagnostic=function(e){return S(a,o,e)};var c=e.getParsedCommandLineOfConfigFile(t,r,s,n,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=s,e.getWatchErrorSummaryDiagnosticMessage=c,e.getErrorSummaryText=u,e.isBuilderProgram=l,e.listFiles=_,e.explainFiles=d,e.explainIfFileIsRedirect=p,e.getMatchedFileSpec=f,e.getMatchedIncludeSpec=g,e.fileIncludeReasonToDiagnostics=m,e.emitFilesAndReportErrors=v,e.emitFilesAndReportErrorsAndGetExitStatus=h,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=D,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",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"},e.createWatchFactory=function(t,r){var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=n!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop,a=e.getWatchFactory(t,n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(t,r,n){void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize((function(){return t.getNewLine()}));return{getSourceFile:function(n,i,a){var o;try{e.performance.mark("beforeIORead"),o=t.readFile(n,r().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(n,o,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,(function(e,r,n){return t.writeFile(e,r,n)}),(function(e){return t.createDirectory(e)}),(function(e){return t.directoryExists(e)})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory),disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature}},e.setGetSourceFileAsHashVersioned=function(r,n){var i=r.getSourceFile,a=e.maybeBind(n,n.createHash)||e.generateDjb2Hash;r.getSourceFile=function(){for(var e=[],n=0;ne?t:e}function u(t){return e.fileExtensionIs(t,".d.ts")}function l(e){return!!e&&!!e.buildOrder}function _(e){return l(e)?e.buildOrder:e}function d(t,r){return function(n){var i=r?"["+e.formatColorAndReset(e.getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(t)+" - ";i+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(t.newLine+t.newLine),t.write(i)}}function p(t,r,n,i){var a=e.createProgramHost(t,r);return a.getModifiedTime=t.getModifiedTime?function(e){return t.getModifiedTime(e)}:e.returnUndefined,a.setModifiedTime=t.setModifiedTime?function(e,r){return t.setModifiedTime(e,r)}:e.noop,a.deleteFile=t.deleteFile?function(e){return t.deleteFile(e)}:e.noop,a.reportDiagnostic=n||e.createDiagnosticReporter(t),a.reportSolutionBuilderStatus=i||d(t),a.now=e.maybeBind(t,t.now),a}function f(t,r,n,i,a){var o,s,c=r,u=r,l=c.getCurrentDirectory(),_=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),d=(o=i,s={},e.commonOptionsWithBuild.forEach((function(t){e.hasProperty(o,t.name)&&(s[t.name]=o[t.name])})),s),p=e.createCompilerHostFromProgramHost(c,(function(){return C.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(p,c),p.getParsedCommandLine=function(e){return h(C,e,m(C,e))},p.resolveModuleNames=e.maybeBind(c,c.resolveModuleNames),p.resolveTypeReferenceDirectives=e.maybeBind(c,c.resolveTypeReferenceDirectives);var f=p.resolveModuleNames?void 0:e.createModuleResolutionCache(l,_),g=p.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(l,_,void 0,null==f?void 0:f.getPackageJsonInfoCache());if(!p.resolveModuleNames){var y=function(t,r,n){return e.resolveModuleName(t,r,C.projectCompilerOptions,p,f,n).resolvedModule};p.resolveModuleNames=function(t,r,n,i){return e.loadWithLocalCache(e.Debug.checkEachDefined(t),r,i,y)}}if(!p.resolveTypeReferenceDirectives){var v=function(t,r,n){return e.resolveTypeReferenceDirective(t,r,C.projectCompilerOptions,p,n,C.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};p.resolveTypeReferenceDirectives=function(t,r,n){return e.loadWithLocalCache(e.Debug.checkEachDefined(t),r,n,v)}}var D=e.createWatchFactory(u,i),b=D.watchFile,x=D.watchDirectory,S=D.writeLog,C={host:c,hostWithWatch:u,currentDirectory:l,getCanonicalFileName:_,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),write:e.maybeBind(c,c.trace),options:i,baseCompilerOptions:d,rootNames:n,baseWatchOptions:a,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:p,moduleResolutionCache:f,typeReferenceDirectiveResolutionCache:g,buildOrder:void 0,readFileWithCache:function(e){return c.readFile(e)},projectCompilerOptions:d,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,currentInvalidatedProject:void 0,watch:t,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:b,watchDirectory:x,writeLog:S};return C}function g(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function m(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=g(e,t);return r.set(t,i),i}function y(e){return!!e.options}function v(e,t){var r=e.configFileCache.get(t);return r&&y(r)?r:void 0}function h(t,r,n){var i,a=t.configFileCache,o=a.get(n);if(o)return y(o)?o:void 0;var s,c=t.parseConfigFileHost,u=t.baseCompilerOptions,l=t.baseWatchOptions,_=t.extendedConfigCache,d=t.host;return d.getParsedCommandLine?(s=d.getParsedCommandLine(r))||(i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,r)):(c.onUnRecoverableConfigFileDiagnostic=function(e){return i=e},s=e.getParsedCommandLineOfConfigFile(r,u,c,_,l),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(n,s||i),s}function D(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function b(t,r){for(var n,i,a=new e.Map,o=new e.Map,s=[],c=0,u=r;co)}}}function w(t,r,n){var i=t.options;return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force)||(0===n.fileNames.length||!!e.getConfigFileParsingDiagnostics(n).length||!e.isIncrementalCompilation(n.options))}function I(t,r,i){if(t.projectPendingBuild.size&&!l(r)){if(t.currentInvalidatedProject)return e.arrayIsEqualTo(t.currentInvalidatedProject.buildOrder,r)?t.currentInvalidatedProject:void 0;for(var a=t.options,o=t.projectPendingBuild,s=0;sl&&(s=f,l=g)}}if(!r.fileNames.length&&!e.canJsonReportNoInputFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};var y,v=e.getAllProjectOutputs(r,!_.useCaseSensitiveFileNames()),D="(none)",b=o,x="(none)",S=a,C=a,E=!1;if(!i)for(var T=0,k=v;TS&&(S=F,x=A),u(A)&&(C=c(C,e.getModifiedTime(_,A)))}var N,P=!1,w=!1;if(r.projectReferences){t.projectStatus.set(n,{type:e.UpToDateStatusType.ComputingUpstream});for(var I=0,O=r.projectReferences;I=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&r214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=s(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var i=s(r[2],!1);return 0!==i?{name:r[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function c(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'"+t+"':: "+a+" name '"+n+"' cannot be empty";case 2:return"'"+t+"':: "+a+" name '"+n+"' should be less than 214 characters";case 3:return"'"+t+"':: "+a+" name '"+n+"' cannot start with '.'";case 4:return"'"+t+"':: "+a+" name '"+n+"' cannot start with '_'";case 5:return"'"+t+"':: "+a+" name '"+n+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}r.validatePackageName=function(e){return s(e,!0)},r.renderPackageNameValidationFailure=function(e,t){return"object"==typeof e?c(t,e.result,e.name,e.isScopeName):c(t,e,t,!1)}}(e.JsTyping||(e.JsTyping={}))}(s||(s={})),function(e){var t,r,n,i,a,o,s,c,u,l,_,d,p,f,g,m,y,v,h,D;function b(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:l.Smart,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}}t=e.ScriptSnapshot||(e.ScriptSnapshot={}),r=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}(),t.fromString=function(e){return new r(e)},(n=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}))[n.Dependencies=1]="Dependencies",n[n.DevDependencies=2]="DevDependencies",n[n.PeerDependencies=4]="PeerDependencies",n[n.OptionalDependencies=8]="OptionalDependencies",n[n.All=15]="All",(i=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}))[i.Off=0]="Off",i[i.On=1]="On",i[i.Auto=2]="Auto",(a=e.LanguageServiceMode||(e.LanguageServiceMode={}))[a.Semantic=0]="Semantic",a[a.PartialSemantic=1]="PartialSemantic",a[a.Syntactic=2]="Syntactic",e.emptyOptions={},(o=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})).Original="original",o.TwentyTwenty="2020",(s=e.CompletionTriggerKind||(e.CompletionTriggerKind={}))[s.Invoked=1]="Invoked",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",(c=e.InlayHintKind||(e.InlayHintKind={})).Type="Type",c.Parameter="Parameter",c.Enum="Enum",(u=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",u.definition="definition",u.reference="reference",u.writtenReference="writtenReference",function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(l=e.IndentStyle||(e.IndentStyle={})),function(e){e.Ignore="ignore",e.Insert="insert",e.Remove="remove"}(_=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=b,e.testFormatSettings=b("\n"),(d=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[d.aliasName=0]="aliasName",d[d.className=1]="className",d[d.enumName=2]="enumName",d[d.fieldName=3]="fieldName",d[d.interfaceName=4]="interfaceName",d[d.keyword=5]="keyword",d[d.lineBreak=6]="lineBreak",d[d.numericLiteral=7]="numericLiteral",d[d.stringLiteral=8]="stringLiteral",d[d.localName=9]="localName",d[d.methodName=10]="methodName",d[d.moduleName=11]="moduleName",d[d.operator=12]="operator",d[d.parameterName=13]="parameterName",d[d.propertyName=14]="propertyName",d[d.punctuation=15]="punctuation",d[d.space=16]="space",d[d.text=17]="text",d[d.typeParameterName=18]="typeParameterName",d[d.enumMemberName=19]="enumMemberName",d[d.functionName=20]="functionName",d[d.regularExpressionLiteral=21]="regularExpressionLiteral",d[d.link=22]="link",d[d.linkName=23]="linkName",d[d.linkText=24]="linkText",(p=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",p.Region="region",p.Code="code",p.Imports="imports",(f=e.OutputFileType||(e.OutputFileType={}))[f.JavaScript=0]="JavaScript",f[f.SourceMap=1]="SourceMap",f[f.Declaration=2]="Declaration",(g=e.EndOfLineState||(e.EndOfLineState={}))[g.None=0]="None",g[g.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",g[g.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",g[g.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",g[g.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",g[g.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",g[g.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(m=e.TokenClass||(e.TokenClass={}))[m.Punctuation=0]="Punctuation",m[m.Keyword=1]="Keyword",m[m.Operator=2]="Operator",m[m.Comment=3]="Comment",m[m.Whitespace=4]="Whitespace",m[m.Identifier=5]="Identifier",m[m.NumberLiteral=6]="NumberLiteral",m[m.BigIntLiteral=7]="BigIntLiteral",m[m.StringLiteral=8]="StringLiteral",m[m.RegExpLiteral=9]="RegExpLiteral",(y=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",y.warning="warning",y.keyword="keyword",y.scriptElement="script",y.moduleElement="module",y.classElement="class",y.localClassElement="local class",y.interfaceElement="interface",y.typeElement="type",y.enumElement="enum",y.enumMemberElement="enum member",y.variableElement="var",y.localVariableElement="local var",y.functionElement="function",y.localFunctionElement="local function",y.memberFunctionElement="method",y.memberGetAccessorElement="getter",y.memberSetAccessorElement="setter",y.memberVariableElement="property",y.constructorImplementationElement="constructor",y.callSignatureElement="call",y.indexSignatureElement="index",y.constructSignatureElement="construct",y.parameterElement="parameter",y.typeParameterElement="type parameter",y.primitiveType="primitive type",y.label="label",y.alias="alias",y.constElement="const",y.letElement="let",y.directory="directory",y.externalModuleName="external module name",y.jsxAttribute="JSX attribute",y.string="string",y.link="link",y.linkName="link name",y.linkText="link text",(v=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",v.publicMemberModifier="public",v.privateMemberModifier="private",v.protectedMemberModifier="protected",v.exportedModifier="export",v.ambientModifier="declare",v.staticModifier="static",v.abstractModifier="abstract",v.optionalModifier="optional",v.deprecatedModifier="deprecated",v.dtsModifier=".d.ts",v.tsModifier=".ts",v.tsxModifier=".tsx",v.jsModifier=".js",v.jsxModifier=".jsx",v.jsonModifier=".json",(h=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",h.identifier="identifier",h.keyword="keyword",h.numericLiteral="number",h.bigintLiteral="bigint",h.operator="operator",h.stringLiteral="string",h.whiteSpace="whitespace",h.text="text",h.punctuation="punctuation",h.className="class name",h.enumName="enum name",h.interfaceName="interface name",h.moduleName="module name",h.typeParameterName="type parameter name",h.typeAliasName="type alias name",h.parameterName="parameter name",h.docCommentTagName="doc comment tag name",h.jsxOpenTagName="jsx open tag name",h.jsxCloseTagName="jsx close tag name",h.jsxSelfClosingTagName="jsx self closing tag name",h.jsxAttribute="jsx attribute",h.jsxText="jsx text",h.jsxAttributeStringLiteralValue="jsx attribute string literal value",(D=e.ClassificationType||(e.ClassificationType={}))[D.comment=1]="comment",D[D.identifier=2]="identifier",D[D.keyword=3]="keyword",D[D.numericLiteral=4]="numericLiteral",D[D.operator=5]="operator",D[D.stringLiteral=6]="stringLiteral",D[D.regularExpressionLiteral=7]="regularExpressionLiteral",D[D.whiteSpace=8]="whiteSpace",D[D.text=9]="text",D[D.punctuation=10]="punctuation",D[D.className=11]="className",D[D.enumName=12]="enumName",D[D.interfaceName=13]="interfaceName",D[D.moduleName=14]="moduleName",D[D.typeParameterName=15]="typeParameterName",D[D.typeAliasName=16]="typeAliasName",D[D.parameterName=17]="parameterName",D[D.docCommentTagName=18]="docCommentTagName",D[D.jsxOpenTagName=19]="jsxOpenTagName",D[D.jsxCloseTagName=20]="jsxCloseTagName",D[D.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",D[D.jsxAttribute=22]="jsxAttribute",D[D.jsxText=23]="jsxText",D[D.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",D[D.bigintLiteral=25]="bigintLiteral"}(s||(s={})),function(e){var t;function n(t){switch(t.kind){case 252:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 162:case 201:case 165:case 164:case 291:case 292:case 167:case 166:case 169:case 170:case 171:case 254:case 211:case 212:case 290:case 283:return 1;case 161:case 256:case 257:case 180:return 2;case 340:return void 0===t.name?3:2;case 294:case 255:return 3;case 259:return e.isAmbientModule(t)||1===e.getModuleInstanceState(t)?5:4;case 258:case 267:case 268:case 263:case 264:case 269:case 270:return 7;case 300:return 5}return 7}function i(t){for(;159===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function a(e){return e.expression}function o(e){return e.tag}function s(e){return e.tagName}function c(t,r,n,i,a){var o=i?l(t):u(t);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&r(o.parent)&&n(o.parent)===o}function u(e){return p(e)?e.parent:e}function l(e){return p(e)||f(e)?e.parent:e}function _(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isBreakOrContinueStatement))||void 0===r?void 0:r.label)===t}function d(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isLabeledStatement))||void 0===r?void 0:r.label)===t}function p(t){var r;return(null===(r=e.tryCast(t.parent,e.isPropertyAccessExpression))||void 0===r?void 0:r.name)===t}function f(t){var r;return(null===(r=e.tryCast(t.parent,e.isElementAccessExpression))||void 0===r?void 0:r.argumentExpression)===t}e.scanner=e.createScanner(99,!0),(t=e.SemanticMeaning||(e.SemanticMeaning={}))[t.None=0]="None",t[t.Value=1]="Value",t[t.Type=2]="Type",t[t.Namespace=4]="Namespace",t[t.All=7]="All",e.getMeaningFromDeclaration=n,e.getMeaningFromLocation=function(t){var r=(t=I(t)).parent;if(300===t.kind)return 1;if(e.isExportAssignment(r)||e.isExportSpecifier(r)||e.isExternalModuleReference(r)||e.isImportSpecifier(r)||e.isImportClause(r)||e.isImportEqualsDeclaration(r)&&t===r.name){for(var a=r;a;){if(e.isImportEqualsDeclaration(a)||e.isImportClause(a)||e.isExportDeclaration(a))return a.isTypeOnly?2:7;a=a.parent}return 7}return i(t)?function(t){var r=159===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&263===r.parent.kind?7:4}(t):e.isDeclarationName(t)?n(r):e.isEntityName(t)&&e.findAncestor(t,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:function(t){e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent);switch(t.kind){case 108:return!e.isExpressionNode(t);case 190:return!0}switch(t.parent.kind){case 176:return!0;case 198:return!t.parent.isTypeOf;case 226:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(t)?2:function(e){return function(e){var t=e,r=!0;if(159===t.parent.kind){for(;t.parent&&159===t.parent.kind;)t=t.parent;r=t.right===e}return 176===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(204===t.parent.kind){for(;t.parent&&204===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&226===t.parent.kind&&289===t.parent.parent.kind){var n=t.parent.parent.parent;return 255===n.kind&&117===t.parent.parent.token||256===n.kind&&94===t.parent.parent.token}return!1}(e)}(t)?4:e.isTypeParameterDeclaration(r)?(e.Debug.assert(e.isJSDocTemplateTag(r.parent)),2):e.isLiteralTypeNode(r)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=i,e.isCallExpressionTarget=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),c(t,e.isCallExpression,a,r,n)},e.isNewExpressionTarget=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),c(t,e.isNewExpression,a,r,n)},e.isCallOrNewExpressionTarget=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),c(t,e.isCallOrNewExpression,a,r,n)},e.isTaggedTemplateTag=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),c(t,e.isTaggedTemplateExpression,o,r,n)},e.isDecoratorTarget=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),c(t,e.isDecorator,a,r,n)},e.isJsxOpeningLikeElementTagName=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),c(t,e.isJsxOpeningLikeElement,s,r,n)},e.climbPastPropertyAccess=u,e.climbPastPropertyOrElementAccess=l,e.getTargetLabel=function(e,t){for(;e;){if(248===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(t,r){return!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r},e.isJumpStatementTarget=_,e.isLabelOfLabeledStatement=d,e.isLabelName=function(e){return d(e)||_(e)},e.isTagName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isJSDocTag))||void 0===r?void 0:r.tagName)===t},e.isRightSideOfQualifiedName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isQualifiedName))||void 0===r?void 0:r.right)===t},e.isRightSideOfPropertyAccess=p,e.isArgumentExpressionOfElementAccess=f,e.isNameOfModuleDeclaration=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isModuleDeclaration))||void 0===r?void 0:r.name)===t},e.isNameOfFunctionDeclaration=function(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isFunctionLike))||void 0===r?void 0:r.name)===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 165:case 164:case 291:case 294:case 167:case 166:case 170:case 171:case 259:return e.getNameOfDeclaration(t.parent)===t;case 205:return t.parent.argumentExpression===t;case 160:return!0;case 194:return 192===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(t){for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 300:case 167:case 166:case 254:case 211:case 170:case 171:case 255:case 256:case 258:case 259:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 300:return e.isExternalModule(r)?"module":"script";case 259:return"module";case 255:case 224:return"class";case 256:return"interface";case 257:case 333:case 340:return"type";case 258:return"enum";case 252:return c(r);case 201:return c(e.getRootDeclaration(r));case 212:case 254:case 211:return"function";case 170:return"getter";case 171:return"setter";case 167:case 166:return"method";case 291:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 165:case 164:case 292:case 293:return"property";case 174:return"index";case 173:return"construct";case 172:return"call";case 169:case 168:return"constructor";case 161:return"type parameter";case 294:return"enum member";case 162:return e.hasSyntacticModifier(r,16476)?"property":"parameter";case 263:case 268:case 273:case 266:case 272:return"alias";case 219:var i=e.getAssignmentDeclarationKind(r),a=r.right;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=t(a);return""===o?"const":o;case 3:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(a)?"method":"property";case 6:return"local class";default:return e.assertType(i),""}case 79:return e.isImportClause(r.parent)?"alias":"";case 269:var s=t(r.expression);return""===s?"const":s;default:return""}function c(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(t)&&162===t.parent.kind;default:return!1}};var g,m=/^\/\/\/\s*=r.end}function D(e,t,r,n){return Math.max(e,r)t)break;var u=c.getEnd();if(tt.end||e.pos===t.end)&&G(e,n)?r(e):void 0}))}(r)}function B(t,r,n,i){var a=function a(o){if(j(o)&&1!==o.kind)return o;var s=o.getChildren(r),c=e.binarySearchKey(s,t,(function(e,t){return t}),(function(e,r){return t=s[e-1].end?0:1:-1}));if(c>=0&&s[c]){var u=s[c];if(t=t||!G(u,r)||z(u)){var l=K(s,c,r);return l&&J(l,r)}return a(u)}}e.Debug.assert(void 0!==n||300===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var _=K(s,s.length,r);return _&&J(_,r)}(n||r);return e.Debug.assert(!(a&&z(a))),a}function j(t){return e.isToken(t)&&!z(t)}function J(e,t){if(j(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=K(r,r.length,t);return n&&J(n,t)}function K(t,r,n){for(var i=r-1;i>=0;i--){if(z(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(G(t[i],n))return t[i]}}function z(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function U(t,r,n){var i=e.tokenToString(t.kind),a=e.tokenToString(r),o=t.getFullStart(),s=n.text.lastIndexOf(a,o);if(-1!==s){if(n.text.lastIndexOf(i,o-1)=r}))}function W(t,r){if(-1!==r.text.lastIndexOf("<",t?t.pos:r.text.length))for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=B(n.getFullStart(),r))&&28===n.kind&&(n=B(n.getFullStart(),r)),!n||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(n=U(n,18,r)))return;break;case 21:if(!(n=U(n,20,r)))return;break;case 23:if(!(n=U(n,22,r)))return;break;case 27:a++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 139:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=B(n.getFullStart(),r)}}function H(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function G(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function Y(e,t,r){var n=H(e,t,void 0);return!!n&&r===m.test(e.text.substring(n.pos,n.end))}function X(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function $(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function Q(e,t){return{span:e,newText:t}}function Z(e){return 150===e.kind}function ee(t,r){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return r.getCurrentDirectory()},readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(r,r.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}}function te(e,t){return r(r({},ee(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function re(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?ne(n,i):n)}function ne(t,r){return e.factory.createStringLiteral(t,0===r)}function ie(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function ae(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,(function(t){return e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)}));return n?ie(n,t):1}function oe(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(function(t){var r=e.getNameOfDeclaration(t);return r&&79===r.kind?r.escapedText:void 0}))}function se(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function ce(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ue(e){return e.declarations&&e.declarations.length>0&&162===e.declarations[0].kind}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=y,e.rangeContainsRangeExclusive=function(e,t){return v(e,t.pos)&&v(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=v,e.startEndContainsRange=h,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return D(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return D(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=D,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),rn.getStart(t)&&rn.getStart(t)},e.isInJSXText=function(t,r){var n=M(t,r);return!!e.isJsxText(n)||(!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent)))},e.isInsideJsxElement=function(e,t){return function(r){for(;r;)if(r.kind>=277&&r.kind<=286||11===r.kind||29===r.kind||31===r.kind||79===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(276!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1}(M(e,t))},e.findPrecedingMatchingToken=U,e.removeOptionality=V,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=W(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==q(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=q,e.getPossibleTypeArgumentsInfo=W,e.isInComment=H,e.hasDocComment=function(t,r){var n=M(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t,r){void 0===r&&(r=0);var n=[],i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~r:0;return 8&i&&n.push("private"),16&i&&n.push("protected"),4&i&&n.push("public"),(32&i||e.isClassStaticBlockDeclaration(t))&&n.push("static"),128&i&&n.push("abstract"),1&i&&n.push("export"),8192&i&&n.push("deprecated"),8388608&t.flags&&n.push("declare"),269===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 176===t.kind||206===t.kind?t.typeArguments:e.isFunctionLike(t)||255===t.kind||256===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=78},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)=2||!!e.noEmit},e.createModuleSpecifierResolutionHost=ee,e.getModuleSpecifierResolverHost=te,e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?re(e,t,r,n):void 0},e.makeImport=re,e.makeStringLiteral=ne,(g=e.QuotePreference||(e.QuotePreference={}))[g.Single=0]="Single",g[g.Double=1]="Double",e.quotePreferenceFromString=ie,e.getQuotePreference=ae,e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=oe(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=oe,e.isModuleSpecifierLike=function(t){return e.isStringLiteralLike(t)&&(e.isExternalModuleReference(t.parent)||e.isImportDeclaration(t.parent)||e.isRequireCall(t.parent,!1)&&t.parent.arguments[0]===t||e.isImportCall(t.parent)&&t.parent.arguments[0]===t)},e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!se(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return t.modifiers&&e.find(t.modifiers,(function(e){return e.kind===r}))},e.insertImports=function(t,r,n,i){var a=235===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,u=s;ca&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(de(" ",e.SymbolDisplayPartKind.space)),t.push(de("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){if(i>a)return;s(),i+=e.length,t.push(_e(e,r))},writeLine:function(){if(i>a)return;i+=1,t.push(ve()),r=!0},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:u,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(de(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(de(e,r)))}function u(){t=[],r=!0,n=0,i=0}}();function _e(t,r){return de(t,function(t){var r=t.flags;if(3&r)return ue(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&r)return e.SymbolDisplayPartKind.propertyName;if(32768&r)return e.SymbolDisplayPartKind.propertyName;if(65536&r)return e.SymbolDisplayPartKind.propertyName;if(8&r)return e.SymbolDisplayPartKind.enumMemberName;if(16&r)return e.SymbolDisplayPartKind.functionName;if(32&r)return e.SymbolDisplayPartKind.className;if(64&r)return e.SymbolDisplayPartKind.interfaceName;if(384&r)return e.SymbolDisplayPartKind.enumName;if(1536&r)return e.SymbolDisplayPartKind.moduleName;if(8192&r)return e.SymbolDisplayPartKind.methodName;if(262144&r)return e.SymbolDisplayPartKind.typeParameterName;if(524288&r)return e.SymbolDisplayPartKind.aliasName;if(2097152&r)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(r))}function de(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function pe(t){return de(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function fe(t){return de(t,e.SymbolDisplayPartKind.text)}function ge(t){return de(t,e.SymbolDisplayPartKind.linkText)}function me(t,r){return{text:e.getTextOfNode(t),kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(r).fileName,textSpan:X(r)}}}function ye(t){return de(t,e.SymbolDisplayPartKind.link)}e.symbolPart=_e,e.displayPart=de,e.spacePart=function(){return de(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=pe,e.punctuationPart=function(t){return de(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return de(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.parameterNamePart=function(t){return de(t,e.SymbolDisplayPartKind.parameterName)},e.propertyNamePart=function(t){return de(t,e.SymbolDisplayPartKind.propertyName)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?fe(t):pe(r)},e.textPart=fe,e.typeAliasNamePart=function(t){return de(t,e.SymbolDisplayPartKind.aliasName)},e.typeParameterNamePart=function(t){return de(t,e.SymbolDisplayPartKind.typeParameterName)},e.linkTextPart=ge,e.linkNamePart=me,e.linkPart=ye,e.buildLinkParts=function(t,r){var n,i=[ye("{@"+(e.isJSDocLink(t)?"link":e.isJSDocLinkCode(t)?"linkcode":"linkplain")+" ")];if(t.name){var a=null==r?void 0:r.getSymbolAtLocation(t.name),o=(null==a?void 0:a.valueDeclaration)||(null===(n=null==a?void 0:a.declarations)||void 0===n?void 0:n[0]);o?(i.push(me(t.name,o)),t.text&&i.push(ge(t.text))):i.push(ge(e.getTextOfNode(t.name)+" "+t.text))}else t.text&&i.push(ge(t.text));return i.push(ye("}")),i};function ve(){return de("\n",e.SymbolDisplayPartKind.lineBreak)}function he(e){try{return e(le),le.displayParts()}finally{le.clear()}}function De(e){return 0!=(33554432&e.flags)}function be(e){return 0!=(2097152&e.flags)}function xe(e,t){void 0===t&&(t=!0);var r=e&&Ce(e);return r&&!t&&ke(r),r}function Se(t,r,n){var i=n(t);return i?e.setOriginalNode(i,t):i=Ce(t,n),i&&!r&&ke(i),i}function Ce(t,r){var n=r?function(e){return Se(e,!0,r)}:xe,i=r?function(e){return e&&Te(e,!0,r)}:function(e){return e&&Ee(e)},a=e.visitEachChild(t,n,e.nullTransformationContext,i,n);if(a===t){var o=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(o,t)}return a.parent=void 0,a}function Ee(t,r){return void 0===r&&(r=!0),t&&e.factory.createNodeArray(t.map((function(e){return xe(e,r)})),t.hasTrailingComma)}function Te(t,r,n){return e.factory.createNodeArray(t.map((function(e){return Se(e,r,n)})),t.hasTrailingComma)}function ke(e){Ae(e),Fe(e)}function Ae(e){Ne(e,512,Pe)}function Fe(t){Ne(t,1024,e.getLastChild)}function Ne(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&Ne(i,r,n)}function Pe(e){return e.forEachChild((function(e){return e}))}function we(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,Me(r,n,i,a,e.addSyntheticLeadingComment))}function Ie(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,Me(r,n,i,a,e.addSyntheticTrailingComment))}function Oe(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,Me(r,n,i,a,e.addSyntheticLeadingComment))}function Me(e,t,r,n,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,r||s,t.text.slice(a,o),void 0!==n?n:c)}}function Le(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}function Re(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Be(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function je(e){return 172===e||173===e||174===e||164===e||166===e}function Je(e){return 254===e||169===e||167===e||170===e||171===e}function Ke(e){return 259===e}function ze(e){return 235===e||236===e||238===e||243===e||244===e||245===e||249===e||251===e||165===e||257===e||264===e||263===e||270===e||262===e||269===e}function Ue(e,t){return qe(e,e.fileExists,t)}function Ve(e){try{return e()}catch(e){return}}function qe(e,t){for(var r=[],n=2;n-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=xe,e.getSynthesizedDeepCloneWithReplacements=Se,e.getSynthesizedDeepClones=Ee,e.getSynthesizedDeepClonesWithReplacements=Te,e.suppressLeadingAndTrailingTrivia=ke,e.suppressLeadingTrivia=Ae,e.suppressTrailingTrivia=Fe,e.copyComments=function(e,t){var r=e.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i=0),o},e.copyLeadingComments=we,e.copyTrailingComments=Ie,e.copyTrailingAsLeadingComments=Oe,e.needsParentheses=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)||e.isAsExpression(t)&&e.isObjectLiteralExpression(t.expression)},e.getContextualTypeFromParent=function(e,t){var r=e.parent;switch(r.kind){case 207:return t.getContextualType(r);case 219:var n=r,i=n.left,a=n.operatorToken,o=n.right;return Re(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 287:return r.expression===e?Be(r,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,r,n){var i=ae(t,r),a=JSON.stringify(n);return 0===i?"'"+e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"')+"'":a},e.isEqualityOperatorKind=Re,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 221:case 208:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=Be,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){a=!1},s=i.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,r){return!(a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility)},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:te(r,n)});return a?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=je,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Je,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Ke,e.syntaxRequiresTrailingSemicolonOrASI=ze,e.syntaxMayBeASICandidate=e.or(je,Je,Ke,ze),e.positionIsASICandidate=function(t,r,n){var i=e.findAncestor(r,(function(r){return r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)}));return!!i&&function(t,r){var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(je(t.kind)){if(n&&27===n.kind)return!1}else if(Ke(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(Je(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!ze(t.kind))return!1;if(238===t.kind)return!0;var a=R(t,e.findAncestor(t,(function(e){return!e.parent})),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line}(i,n)},e.probablyUsesSemicolons=function(t){var r=0,n=0;return e.forEachChild(t,(function i(a){if(ze(a.kind)){var o=a.getLastToken(t);o&&26===o.kind?r++:n++}return r+n>=5||e.forEachChild(a,i)})),0===r&&n<=1||r/n>.2},e.tryGetDirectories=function(e,t){return qe(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return qe(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=Ue,e.tryDirectoryExists=function(t,r){return Ve((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=Ve,e.tryIOAndConsumeErrors=qe,e.findPackageJsons=function(t,r,n){var i=[];return e.forEachAncestorDirectory(t,(function(t){if(t===n)return!0;var a=e.combinePaths(t,"package.json");Ue(r,a)&&i.push(a)})),i},e.findPackageJson=function(t,r){var n;return e.forEachAncestorDirectory(t,(function(t){return"node_modules"===t||(!!(n=e.findConfigFile(t,(function(e){return Ue(r,e)}),"package.json"))||void 0)})),n},e.getPackageJsonsVisibleToFile=We,e.createPackageJsonInfo=He,e.createPackageJsonImportFilter=function(t,r,n){var i,a=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||We(t.fileName,n)).filter((function(e){return e.parseable}));return{allowsImportingAmbientModule:function(t,r){if(!a.length||!t.valueDeclaration)return!0;var n=c(t.valueDeclaration.getSourceFile().fileName,r);if(void 0===n)return!0;var i=e.stripQuotes(t.getName());if(s(i))return!0;return o(n)||o(i)},allowsImportingSourceFile:function(e,t){if(!a.length)return!0;var r=c(e.fileName,t);if(!r)return!0;return o(r)},allowsImportingSpecifier:function(t){if(!a.length||s(t))return!0;if(e.pathIsRelative(t)||e.isRootedDiskPath(t))return!0;return o(t)}};function o(t){for(var r=u(t),n=0,i=a;n=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,Ye)}},e.getDiagnosticsWithinSpan=function(t,r){var n,i=e.binarySearchKey(r,t.start,(function(e){return e.start}),e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],Ye);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.mapOneOrMany=function(t,r,n){return void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNameForExportedSymbol=function(t,r){return 33554432&t.flags||"export="!==t.escapedName&&"default"!==t.escapedName?t.name:e.firstDefined(t.declarations,(function(t){var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:void 0}))||e.codefix.moduleSymbolToValidIdentifier(function(t){var r;return e.Debug.checkDefined(t.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(t.flags)+". Declarations: "+(null===(r=t.declarations)||void 0===r?void 0:r.map((function(t){var r=e.Debug.formatSyntaxKind(t.kind),n=e.isInJSFile(t),i=t.expression;return(n?"[JS]":"")+r+(i?" (expression: "+e.Debug.formatSyntaxKind(i.kind)+")":"")})).join(", "))+".")}(t),r)},e.stringContainsAt=function(e,t,r){var n=t.length;if(n+r>e.length)return!1;for(var i=0;i=i.length){var D=r(o,u,e.lastOrUndefined(_));void 0!==D&&(m=D)}}while(1!==u);function b(){switch(u){case 43:case 68:t[l]||13!==o.reScanSlashToken()||(u=13);break;case 29:79===l&&v++;break;case 31:v>0&&v--;break;case 129:case 148:case 145:case 132:case 149:v>0&&!c&&(u=79);break;case 15:_.push(u);break;case 18:_.length>0&&_.push(u);break;case 19:if(_.length>0){var r=e.lastOrUndefined(_);15===r?17===(u=o.reScanTemplateToken(!1))?_.pop():e.Debug.assertEqual(u,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),_.pop())}break;default:if(!e.isKeyword(u))break;(24===l||e.isKeyword(l)&&e.isKeyword(u)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 135:case 147:case 133:case 124:return!0;default:return!1}}(l,u))&&(u=79)}}return{endOfLineState:m,spans:y}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s=0){var _=c-o;_>0&&n.push({length:_,classification:e.TokenClass.Whitespace})}n.push({length:u,classification:i(l)}),o=c+u}var d=r.length-o;d>0&&n.push({length:d,classification:e.TokenClass.Whitespace});return{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],(function(e){return e}),(function(){return!0}));function r(t,r,n){switch(r){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}(t)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=78)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 259:case 255:case 256:case 254:case 224:case 211:case 212:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function u(l){if(l&&e.textSpanIntersectsWith(a,l.pos,l.getFullWidth())){if(o(r,l.kind),e.isIdentifier(l)&&!e.nodeIsMissing(l)&&i.has(l.escapedText)){var _=t.getSymbolAtLocation(l),d=_&&c(_,e.getMeaningFromLocation(l),t);d&&function(t,r,n){var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of "+i),s.push(t),s.push(i),s.push(n)}(l.getStart(n),l.getEnd(),d)}l.forEachChild(u)}})),{spans:s,endOfLineState:0}}function c(t,r,n){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(t){return e.some(t.declarations,(function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)}))}(t)?14:void 0:2097152&i?c(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}function u(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 l(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i])*)(\/>)?)?/im,a=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,o=r.text.substr(t,n),s=i.exec(o);if(!s)return!1;if(!s[3]||!(s[3]in e.commentPragmas))return!1;var c=t;d(c,s[1].length),l(c+=s[1].length,s[2].length,10),l(c+=s[2].length,s[3].length,21),c+=s[3].length;var u=s[4],_=c;for(;;){var p=a.exec(u);if(!p)break;var f=c+p.index+p[1].length;f>_&&(d(_,f-_),_=f),l(_,p[2].length,22),_+=p[2].length,p[3].length&&(d(_,p[3].length),_+=p[3].length),l(_,p[4].length,5),_+=p[4].length,p[5].length&&(d(_,p[5].length),_+=p[5].length),l(_,p[6].length,24),_+=p[6].length}(c+=s[4].length)>_&&d(_,c-_);s[5]&&(l(c,s[5].length,10),c+=s[5].length);var g=t+n;c=0),a>0){var o=n||y(t.kind,t);o&&l(i,a,o)}return!0}function y(t,r){if(e.isKeyword(t))return 3;if((29===t||31===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(63===t&&(252===n.kind||165===n.kind||162===n.kind||283===n.kind))return 5;if(219===n.kind||217===n.kind||218===n.kind||220===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&283===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(79===t){if(r)switch(r.parent.kind){case 255:return r.parent.name===r?11:void 0;case 161:return r.parent.name===r?15:void 0;case 256:return r.parent.name===r?13:void 0;case 258:return r.parent.name===r?12:void 0;case 259:return r.parent.name===r?14:void 0;case 162:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function v(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s0})))return 0;if(a((function(e){return e.getCallSignatures().length>0}))&&!a((function(e){return e.getProperties().length>0}))||function(t){for(;c(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t}(r))return 9===n?11:10}}return n}(o,d,g);var y=f.valueDeclaration;if(y){var v=e.getCombinedModifierFlags(y),h=e.getCombinedNodeFlags(y);32&v&&(m|=2),256&v&&(m|=4),0!==g&&2!==g&&(64&v||2&h||8&f.getFlags())&&(m|=8),7!==g&&10!==g||!function(t,r){return e.isBindingElement(t)&&(t=s(t)),e.isVariableDeclaration(t)?(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r:!!e.isFunctionDeclaration(t)&&(!e.isSourceFile(t.parent)&&t.getSourceFile()===r)}(y,r)||(m|=32),t.isSourceFileDefaultLibrary(y.getSourceFile())&&(m|=16)}else f.declarations&&f.declarations.some((function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}))&&(m|=16);i(d,g,m)}}}e.forEachChild(d,_),l=p}}_(r)}(t,r,n,(function(e,t,n){a.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),i),a}function s(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function c(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}(r=t.TokenEncodingConsts||(t.TokenEncodingConsts={}))[r.typeOffset=8]="typeOffset",r[r.modifierMask=255]="modifierMask",(n=t.TokenType||(t.TokenType={}))[n.class=0]="class",n[n.enum=1]="enum",n[n.interface=2]="interface",n[n.namespace=3]="namespace",n[n.typeParameter=4]="typeParameter",n[n.type=5]="type",n[n.parameter=6]="parameter",n[n.variable=7]="variable",n[n.enumMember=8]="enumMember",n[n.property=9]="property",n[n.function=10]="function",n[n.member=11]="member",(i=t.TokenModifier||(t.TokenModifier={}))[i.declaration=0]="declaration",i[i.static=1]="static",i[i.async=2]="async",i[i.readonly=3]="readonly",i[i.defaultLibrary=4]="defaultLibrary",i[i.local=5]="local",t.getSemanticClassifications=function(t,r,n,i){var o=a(t,r,n,i);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],u=0;ua.parameters.length)){var o=r.getParameterType(a,t.argumentIndex);return n=n||!!(4&o.flags),_(o,i)}})),isNewIdentifier:n}}(T,a):k()}case 264:case 270:case 275:return{kind:0,paths:g(t,n,o,s,a,c)};default:return k()}function k(){return{kind:2,types:_(e.getContextualTypeFromParent(n,a)),isNewIdentifier:!1}}}function u(t){switch(t.kind){case 189:return e.walkUpParenthesizedTypes(t);case 210:return e.walkUpParenthesizedExpressions(t);default:return t}}function l(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(t)}}function _(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(function(e){return _(e,r)})):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function d(e,t,r){return{name:e,kind:t,extension:r}}function p(e){return d(e,"directory",void 0)}function f(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf(e.altDirectorySeparator)),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(r+i,a)}(t,r),a=0===t.length?void 0:e.createTextSpan(r,t.length);return n.map((function(t){var r=t.name,n=t.kind,o=t.extension;return-1!==Math.max(r.indexOf(e.directorySeparator),r.indexOf(e.altDirectorySeparator))?{name:r,kind:n,extension:o,span:a}:{name:r,kind:n,extension:o,span:i}}))}function g(r,n,i,a,o,s){return f(n.text,n.getStart(r)+1,function(r,n,i,a,o,s){var c=e.normalizeSlashes(n.text),u=r.path,l=e.getDirectoryPath(u);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(c)||!i.baseUrl&&(e.isRootedDiskPath(c)||e.isUrl(c))?function(r,n,i,a,o,s){var c="js"===s.importModuleSpecifierEnding?2:0,u=m(i,c);return i.rootDirs?function(r,n,i,a,o,s,c){var u=o.project||s.getCurrentDirectory(),l=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),_=function(r,n,i,a){r=r.map((function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(n,t))}));var o=e.firstDefined(r,(function(t){return e.containsPath(t,i,n,a)?i.substr(t.length):void 0}));return e.deduplicate(t(t([],r.map((function(t){return e.combinePaths(t,o)})),!0),[i],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(r,u,i,l);return e.flatMap(_,(function(e){return v(n,e,a,s,c)}))}(i.rootDirs,r,n,u,i,a,o):v(r,n,u,a,o)}(c,l,i,a,u,s):function(t,r,n,i,a){var o=n.baseUrl,s=n.paths,c=[],u=m(n);if(o){var l=n.project||i.getCurrentDirectory(),_=e.normalizePath(e.combinePaths(l,o));v(t,_,u,i,void 0,c),s&&h(c,t,_,u.extensions,s,i)}for(var p=D(t),f=0,g=function(t,r,n){var i=n.getAmbientModules().map((function(t){return e.stripQuotes(t.name)})).filter((function(r){return e.startsWith(r,t)}));if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map((function(t){return e.removePrefix(t,a)}))}return i}(t,p,a);f=e.pos&&r<=e.end}));if(s){var c=t.text.slice(s.pos,r),u=S.exec(c);if(u){var l=u[1],_=u[2],d=u[3],p=e.getDirectoryPath(t.path),g="path"===_?v(d,p,m(n,1),i,t.path):"types"===_?x(i,n,p,D(d),m(n)):e.Debug.fail();return f(d,s.pos+l.length,g)}}}(t,n,s,u))&&i(d);if(e.isInString(t,n,a)){if(!a||!e.isStringLiteralLike(a))return;var d;return function(t,n,a,o,s,c,u){if(void 0!==t){var l=e.createTextSpanFromStringLiteralLikeContent(n);switch(t.kind){case 0:return i(t.paths);case 1:var _=[];return r.getCompletionEntriesFromSymbols(t.symbols,_,n,a,a,o,99,s,4,u,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:t.hasIndexSignature,optionalReplacementSpan:l,entries:_};case 2:return _=t.types.map((function(t){return{name:t.value,kindModifiers:"",kind:"string",sortText:r.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(n)}})),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:l,entries:_};default:return e.Debug.assertNever(t)}}}(d=c(t,a,n,o,s,u,_),a,t,o,l,s,_)}},n.getStringLiteralCompletionDetails=function(t,n,i,o,s,u,l,_,d){if(o&&e.isStringLiteralLike(o)){var p=c(n,o,i,s,u,l,d);return p&&function(t,n,i,o,s,c){switch(i.kind){case 0:return(u=e.find(i.paths,(function(e){return e.name===t})))&&r.createCompletionDetails(t,a(u.extension),u.kind,[e.textPart(t)]);case 1:var u;return(u=e.find(i.symbols,(function(e){return e.name===t})))&&r.createCompletionDetailsForSymbol(u,s,o,n,c);case 2:return e.find(i.types,(function(e){return e.value===t}))?r.createCompletionDetails(t,"","type",[e.textPart(t)]):void 0;default:return e.Debug.assertNever(i)}}(t,o,p,n,s,_)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(o||(o={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"}(s||(s={}));var S=/^(\/\/\/\s*=t.pos;case 24:return 200===i;case 58:return 201===i;case 22:return 200===i;case 20:return 290===i||ve(i);case 18:return 258===i;case 29:return 255===i||224===i||256===i||257===i||e.isFunctionLikeKind(i);case 124:return 165===i&&!e.isClassLike(r.parent);case 25:return 162===i||!!r.parent&&200===r.parent.kind;case 123:case 121:case 122:return 162===i&&!e.isConstructorDeclaration(r.parent);case 127:return 268===i||273===i||266===i;case 135:case 147:return!W(t);case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 136:case 150:return!0;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(J(z(t))&&W(t))return!1;if(me(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(z(t))||xe(t)))return!1;switch(z(t)){case 126:case 84:case 85:case 134:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 130:return e.isPropertyDeclaration(t.parent)}if(e.findAncestor(t.parent,e.isClassLike)&&t===D&&ye(t,a))return!1;var o=e.getAncestor(t.parent,165);if(o&&t!==D&&e.isClassLike(D.parent.parent)&&a<=D.end){if(ye(t,D.end))return!1;if(63!==t.kind&&(e.isInitializedProperty(o)||e.hasType(o)))return!0}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==D||a>D.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(278===e.parent.kind)return 278!==w.parent.kind;if(279===e.parent.kind||277===e.parent.kind)return!!e.parent.parent&&276===e.parent.parent.kind}return!1}(t)||e.isBigIntLiteral(t);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-i)),o}(b))return void r("Returning an empty list because completion was requested in an invalid position.");var M=b.parent;if(24===b.kind||28===b.kind)switch(E=24===b.kind,T=28===b.kind,M.kind){case 204:C=(x=M).expression;var L=e.getLeftmostAccessExpression(x);if(e.nodeIsMissing(L)||(e.isCallExpression(C)||e.isFunctionLike(C))&&C.end===b.pos&&C.getChildCount(n)&&21!==e.last(C.getChildren(n)).kind)return;break;case 159:C=M.left;break;case 259:C=M.name;break;case 198:C=M;break;case 229:C=M.getFirstToken(n),e.Debug.assert(100===C.kind||103===C.kind);break;default:return}else if(!S&&1===n.languageVariant){if(M&&204===M.kind&&(b=M,M=M.parent),d.parent===w)switch(d.kind){case 31:276!==d.parent.kind&&278!==d.parent.kind||(w=d);break;case 43:277===d.parent.kind&&(w=d)}switch(M.kind){case 279:43===b.kind&&(A=!0,w=b);break;case 219:if(!H(M))break;case 277:case 276:case 278:N=!0,29===b.kind&&(k=!0,w=b);break;case 286:case 285:19===D.kind&&31===d.kind&&(N=!0);break;case 283:if(M.initializer===D&&D.end0&&(ee=e.concatenate(ee,function(t,r){if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(i.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:n.LocationPriority}]}}return}(d,t);if(N)return N}var P=[];if(y(t,i)){var w=T(c,P,void 0,d,t,r,i.target,a,u,s,i,S,p,C,x,E,b,h,A);!function(t,r,i,a,o){e.getNameTable(t).forEach((function(t,s){if(t!==r){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:n.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))}(t,d.pos,w,i.target,P)}else{if(!(_||c&&0!==c.length||0!==f))return;T(c,P,void 0,d,t,r,i.target,a,u,s,i,S,p,C,x,E,b,h,A)}if(0!==f)for(var I=new e.Set(P.map((function(e){return e.name}))),O=0,M=function(t,r){if(!r)return B(t);var n=t+7+1;return L[n]||(L[n]=B(t).filter((function(t){return!function(e){switch(e){case 126:case 129:case 156:case 132:case 134:case 92:case 155:case 117:case 136:case 118:case 138:case 139:case 140:case 141:case 142:case 145:case 146:case 157:case 121:case 122:case 123:case 143:case 148:case 149:case 150:case 152:case 153:return!0;default:return!1}}(e.stringToToken(t.name))})))}(f,!k&&e.isSourceFileJS(t));O-1?A(g,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(v)}case"symbol":var D=y.symbol,b=y.location,x=function(t,r,n,i,a,o,s,c,u,l,p){if(null==p?void 0:p.moduleSpecifier){var f=I(s,o),g=f.contextToken,m=f.previousToken;if(m&&G(g||m))return{codeActions:void 0,sourceDisplay:[e.textPart(p.moduleSpecifier)]}}if(!t||!_(t)&&!d(t))return{codeActions:void 0,sourceDisplay:void 0};var y=t.isFromPackageJson?i.getPackageJsonAutoImportProvider().getTypeChecker():n.getTypeChecker(),v=t.moduleSymbol,h=y.getMergedSymbol(e.skipAlias(r.exportSymbol||r,y)),D=e.codefix.getImportCompletionAction(h,v,o,e.getNameForExportedSymbol(r,a.target),i,n,u,c&&e.isIdentifier(c)?c.getStart(o):s,l),b=D.moduleSpecifier,x=D.codeAction;return e.Debug.assert(!(null==p?void 0:p.moduleSpecifier)||b===p.moduleSpecifier),{sourceDisplay:[e.textPart(b)],codeActions:[x]}}(y.origin,D,r,s,f,i,a,y.previousToken,c,u,o.data);return F(D,p,i,b,l,x.codeActions,x.sourceDisplay);case"literal":var S=y.literal;return A(h(i,u,S),"string","string"==typeof S?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return R().some((function(e){return e.name===g}))?A(g,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(y)}},t.createCompletionDetailsForSymbol=F,t.createCompletionDetails=N,t.getCompletionEntrySymbol=function(e,t,r,n,i,a,o){var s=k(e,t,r,n,i,a,o);return"symbol"===s.type?s.symbol:void 0},function(e){e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName",e[e.Keywords=4]="Keywords"}(u||(u={})),(l=t.CompletionKind||(t.CompletionKind={}))[l.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",l[l.Global=1]="Global",l[l.PropertyAccess=2]="PropertyAccess",l[l.MemberLike=3]="MemberLike",l[l.String=4]="String",l[l.None=5]="None";var L=[],R=e.memoize((function(){for(var t=[],r=81;r<=158;r++)t.push({name:e.tokenToString(r),kind:"keyword",kindModifiers:"",sortText:n.GlobalsOrKeywords});return t}));function B(t){return L[t]||(L[t]=R().filter((function(r){var n=e.stringToToken(r.name);switch(t){case 0:return!1;case 1:return K(n)||134===n||140===n||150===n||141===n||e.isTypeKeyword(n)&&151!==n;case 5:return K(n);case 2:return J(n);case 3:return j(n);case 4:return e.isParameterPropertyModifier(n);case 6:return e.isTypeKeyword(n)||85===n;case 7:return e.isTypeKeyword(n);default:return e.Debug.assertNever(t)}})))}function j(e){return 143===e}function J(t){switch(t){case 126:case 133:case 135:case 147:case 130:case 134:case 157:return!0;default:return e.isClassMemberModifier(t)}}function K(t){return 130===t||131===t||127===t||!e.isContextualKeyword(t)&&!J(t)}function z(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function U(t,r,n,i){var a=r&&r!==t,o=!a||3&r.flags?t:i.getUnionType([t,r]),s=o.isUnion()?i.getAllPossiblePropertiesOfTypes(o.types.filter((function(t){return!(131068&t.flags||i.isArrayLikeType(t)||e.typeHasCallOrConstructSignatures(t,i)||i.isTypeInvalidDueToUnionDiscriminant(t,n))}))):o.getApparentProperties();return a?s.filter((function(t){return e.some(t.declarations,(function(e){return e.parent!==n}))})):s}function V(t,r){return t.isUnion()?e.Debug.checkEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function q(t,r){if(t){if(e.isTypeNode(t)&&e.isTypeReferenceType(t.parent))return r.getTypeArgumentConstraint(t);var n=q(t.parent,r);if(n)switch(t.kind){case 164:return r.getTypeOfPropertyOfContextualType(n,t.symbol.escapedName);case 186:case 180:case 185:return n}}}function W(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function H(t){var r=t.left;return e.nodeIsMissing(r)}function G(t){var r=function(){var r=t.parent;if(e.isImportEqualsDeclaration(r))return Y(r.moduleReference)?r:void 0;if(e.isNamedImports(r)||e.isNamespaceImport(r))return Y(r.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(r)||r.elements.length<2)&&!r.parent.name?19===t.kind||79===t.kind?154:r.parent.parent:void 0;if(e.isImportKeyword(t)&&e.isSourceFile(r))return t;if(e.isImportKeyword(t)&&e.isImportDeclaration(r))return Y(r.moduleSpecifier)?r:void 0;return}();return 154===r||r&&e.rangeIsOnSingleLine(r,r.getSourceFile())?r:void 0}function Y(t){var r;return!!e.nodeIsMissing(t)||!(null===(r=e.tryCast(e.isExternalModuleReference(t)?t.expression:t,e.isStringLiteralLike))||void 0===r?void 0:r.text)}function X(t,r,n){void 0===n&&(n=new e.Map);var i=e.skipAlias(t.exportSymbol||t,r);return!!(788968&i.flags)||r.isUnknownSymbol(i)||!!(1536&i.flags)&&e.addToSeen(n,e.getSymbolId(i))&&r.getExportsOfModule(i).some((function(e){return X(e,r,n)}))}function $(t,r){var n=e.skipAlias(t,r).declarations;return!!e.length(n)&&e.every(n,e.isDeprecatedDeclaration)}function Q(e,t){if(0===t.length)return!0;for(var r,n=!1,i=0,a=e.length,o=0;o=0&&!u(r,n[i],115);i--);return e.forEach(a(t.statement),(function(e){s(t,e)&&u(r,e.getFirstToken(),81,86)})),r}function _(e){var t=c(e);if(t)switch(t.kind){case 240:case 241:case 242:case 238:case 239:return l(t);case 247:return d(t)}}function d(t){var r=[];return u(r,t.getFirstToken(),107),e.forEach(t.caseBlock.clauses,(function(n){u(r,n.getFirstToken(),82,88),e.forEach(a(n),(function(e){s(t,e)&&u(r,e.getFirstToken(),81)}))})),r}function p(t,r){var n=[];(u(n,t.getFirstToken(),111),t.catchClause&&u(n,t.catchClause.getFirstToken(),83),t.finallyBlock)&&u(n,e.findChildOfKind(t,96,r),96);return n}function f(t,r){var n=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||300===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(n){var a=[];return e.forEach(i(n),(function(t){a.push(e.findChildOfKind(t,109,r))})),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,(function(t){a.push(e.findChildOfKind(t,105,r))})),a}}function g(t,r){var n=e.getContainingFunction(t);if(n){var a=[];return e.forEachReturnStatement(e.cast(n.body,e.isBlock),(function(t){a.push(e.findChildOfKind(t,105,r))})),e.forEach(i(n.body),(function(t){a.push(e.findChildOfKind(t,109,r))})),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((function(e){u(n,e,130)})),e.forEachChild(r,(function(t){y(t,(function(t){e.isAwaitExpression(t)&&u(n,t.getFirstToken(),131)}))})),n}}function y(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,(function(e){return y(e,r)}))}r.getDocumentHighlights=function(r,i,a,o,s){var c=e.getTouchingPropertyName(a,o);if(c.parent&&(e.isJsxOpeningElement(c.parent)&&c.parent.tagName===c||e.isJsxClosingElement(c.parent))){var v=c.parent.parent,h=[v.openingElement,v.closingElement].map((function(e){return n(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:h}]}return function(t,r,n,i,a){var o=new e.Set(a.map((function(e){return e.fileName}))),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(!s)return;var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(function(e){return e.fileName}),(function(e){return e.span})),u=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),(function(t){var r=t[0],i=t[1];if(!o.has(r)){if(!n.redirectTargetsMap.has(e.toPath(r,n.getCurrentDirectory(),u)))return;var s=n.getSourceFile(r);r=e.find(a,(function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s})).fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}}))}(o,c,r,i,s)||function(r,i){var a=function(r,i){switch(r.kind){case 99:case 91:return e.isIfStatement(r.parent)?function(t,r){for(var i=function(t,r){var n=[];for(;e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);u(n,i[0],99);for(var a=i.length-1;a>=0&&!u(n,i[a],91);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,r),a=[],o=0;o=s.end;_--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(_))){l=!1;break}if(l){a.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(n(i[o],r))}return a}(r.parent,i):void 0;case 105:return c(r.parent,e.isReturnStatement,g);case 109:return c(r.parent,e.isThrowStatement,f);case 111:case 83:case 96:return c(83===r.kind?r.parent.parent:r.parent,e.isTryStatement,p);case 107:return c(r.parent,e.isSwitchStatement,d);case 82:case 88:return e.isDefaultClause(r.parent)||e.isCaseClause(r.parent)?c(r.parent.parent.parent,e.isSwitchStatement,d):void 0;case 81:case 86:return c(r.parent,e.isBreakOrContinueStatement,_);case 97:case 115:case 90:return c(r.parent,(function(t){return e.isIterationStatement(t,!0)}),l);case 133:return s(e.isConstructorDeclaration,[133]);case 135:case 147:return s(e.isAccessor,[135,147]);case 131:return c(r.parent,e.isAwaitExpression,m);case 130:return v(m(r));case 125:return v(function(t){var r=e.getContainingFunction(t);if(!r)return;var n=[];return e.forEachChild(r,(function(t){y(t,(function(t){e.isYieldExpression(t)&&u(n,t.getFirstToken(),125)}))})),n}(r));default:return e.isModifierKind(r.kind)&&(e.isDeclaration(r.parent)||e.isVariableStatement(r.parent))?v((a=r.kind,o=r.parent,e.mapDefined(function(r,n){var i=r.parent;switch(i.kind){case 260:case 300:case 233:case 287:case 288:return 128&n&&e.isClassDeclaration(r)?t(t([],r.members,!0),[r],!1):i.statements;case 169:case 167:case 254:return t(t([],i.parameters,!0),e.isClassLike(i.parent)?i.parent.members:[],!0);case 255:case 224:case 256:case 180:var a=i.members;if(92&n){var o=e.find(i.members,e.isConstructorDeclaration);if(o)return t(t([],a,!0),o.parameters,!0)}else if(128&n)return t(t([],a,!0),[i],!1);return a;case 203:return;default:e.Debug.assertNever(i,"Invalid container kind.")}}(o,e.modifierToFlag(a)),(function(t){return e.findModifier(t,a)})))):void 0}var a,o;function s(t,n){return c(r.parent,t,(function(r){return e.mapDefined(r.symbol.declarations,(function(r){return t(r)?e.find(r.getChildren(i),(function(t){return e.contains(n,t.kind)})):void 0}))}))}function c(e,t,r){return t(e)?v(r(e,i)):void 0}function v(e){return e&&e.map((function(e){return n(e,i)}))}}(r,i);return a&&[{fileName:i.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(s||(s={})),function(e){function t(e){return!!e.sourceFile}function r(r,i,a){void 0===i&&(i="");var o=new e.Map,s=e.createGetCanonicalFileName(!!r);function c(e,t,r,n,i,a,o){return _(e,t,r,n,i,a,!0,o)}function u(e,t,r,n,i,a,o){return _(e,t,r,n,i,a,!1,o)}function l(r,n){var i=t(r)?r:r.get(e.Debug.checkDefined(n,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===n||!i||i.sourceFile.scriptKind===n,"Script kind should match provided ScriptKind:"+n+" and sourceFile.scriptKind: "+(null==i?void 0:i.sourceFile.scriptKind)+", !entry: "+!i),i}function _(r,n,i,s,c,u,_,d){var p=6===(d=e.ensureScriptKind(r,d))?100:i.target||1,f=e.getOrUpdate(o,s,(function(){return new e.Map})),g=f.get(n),m=g&&l(g,d);!m&&a&&((y=a.getDocument(s,n))&&(e.Debug.assert(_),m={sourceFile:y,languageServiceRefCount:0},v()));if(m)m.sourceFile.version!==u&&(m.sourceFile=e.updateLanguageServiceSourceFile(m.sourceFile,c,u,c.getChangeRange(m.sourceFile.scriptSnapshot)),a&&a.setDocument(s,n,m.sourceFile)),_&&m.languageServiceRefCount++;else{var y=e.createLanguageServiceSourceFile(r,c,p,u,!1,d);a&&a.setDocument(s,n,y),m={sourceFile:y,languageServiceRefCount:1},v()}return e.Debug.assert(0!==m.languageServiceRefCount),m.sourceFile;function v(){if(g)if(t(g)){var r=new e.Map;r.set(g.sourceFile.scriptKind,g),r.set(d,m),f.set(n,r)}else g.set(d,m);else f.set(n,m)}}function d(r,n,i){var a=e.Debug.checkDefined(o.get(n)),s=a.get(r),c=l(s,i);c.languageServiceRefCount--,e.Debug.assert(c.languageServiceRefCount>=0),0===c.languageServiceRefCount&&(t(s)?a.delete(r):(s.delete(i),1===s.size&&a.set(r,e.firstDefinedIterator(s.values(),e.identity))))}return{acquireDocument:function(t,r,a,o,u){return c(t,e.toPath(t,i,s),r,n(r),a,o,u)},acquireDocumentWithKey:c,updateDocument:function(t,r,a,o,c){return u(t,e.toPath(t,i,s),r,n(r),a,o,c)},updateDocumentWithKey:u,releaseDocument:function(t,r,a){return d(e.toPath(t,i,s),n(r),a)},releaseDocumentWithKey:d,getLanguageServiceRefCounts:function(t,r){return e.arrayFrom(o.entries(),(function(e){var n=e[0],i=e[1].get(t),a=i&&l(i,r);return[n,a&&a.languageServiceRefCount]}))},reportStats:function(){var r=e.arrayFrom(o.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var r=o.get(e),n=[];return r.forEach((function(e,r){t(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((function(e,t){return n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount})}))})),n.sort((function(e,t){return t.refCount-e.refCount})),{bucket:e,sourceFiles:n}}));return JSON.stringify(r,void 0,2)},getKeyForCompilationSettings:n}}function n(t){return e.sourceFileAffectingCompilerOptions.map((function(r){return e.getCompilerOptionValue(t,r)})).join("|")}e.createDocumentRegistry=function(e,t){return r(e,t)},e.createDocumentRegistryInternal=r}(s||(s={})),function(e){!function(t){var n,i;function a(t,r){return e.forEach(300===t.kind?t.statements:t.body.statements,(function(t){return r(t)||l(t)&&e.forEach(t.body&&t.body.statements,r)}))}function o(t,r){if(t.externalModuleIndicator||void 0!==t.imports)for(var n=0,i=t.imports;n=0&&!(c>n.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function S(t,r){var n=t.getSourceFile(),i=r.text,a=e.mapDefined(D(n,i,t),(function(t){return t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===r?c(t):void 0}));return[{definition:{type:1,node:r},references:a}]}function C(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),E(e,e,t,r,n)}function E(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=x(t,r.text,e);a0;o--){x(t,i=n[o])}return[n.length-1,n[0]]}function x(e,t){var r=v(e,t);g(o,r),u.push(o),l.push(s),s=void 0,o=r}function S(){o.children&&(A(o.children,o),O(o.children)),o=u.pop(),s=l.pop()}function C(e,t,r){x(e,r),k(t),S()}function E(t){t.initializer&&function(e){switch(e.kind){case 212:case 211:case 224:return!0;default:return!1}}(t.initializer)?(x(t),e.forEachChild(t.initializer,k),S()):C(t,t.initializer)}function T(t){return!e.hasDynamicName(t)||219!==t.kind&&e.isPropertyAccessExpression(t.name.expression)&&e.isIdentifier(t.name.expression.expression)&&"Symbol"===e.idText(t.name.expression.expression)}function k(t){var r;if(i.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 169:var n=t;C(n,n.body);for(var a=0,o=n.parameters;a0&&(x(J,L),e.forEachChild(J.right,k),S()):e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?C(t,J.right,L):(x(J,L),C(t,J.right,I.name),S()),void D(M);case 7:case 9:var R=t,B=(L=7===w?R.arguments[0]:R.arguments[0].expression,R.arguments[1]),j=b(t,L);M=j[0];return x(t,j[1]),x(t,e.setTextRange(e.factory.createIdentifier(B.text),B)),k(t.arguments[2]),S(),S(),void D(M);case 5:var J,K=(I=(J=t).left).expression;if(e.isIdentifier(K)&&"prototype"!==e.getElementOrPropertyAccessName(I)&&s&&s.has(K.text))return void(e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?C(t,J.right,K):e.isBindableStaticAccessExpression(I)&&(x(J,K),C(J.left,J.right,e.getNameOrArgument(I)),S()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(w)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,(function(t){e.forEach(t.tags,(function(t){e.isJSDocTypeAlias(t)&&y(t)}))})),e.forEachChild(t,k)}}function A(t,r){var n=new e.Map;e.filterMutate(t,(function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&p(a);if(!o)return!0;var s=n.get(o);if(!s)return n.set(o,t),!0;if(s instanceof Array){for(var c=0,u=s;c0)return Y(n)}switch(t.kind){case 300:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 269:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 212:case 254:case 211:case 255:case 224:return 512&e.getSyntacticModifierFlags(t)?"default":H(t);case 169:return"constructor";case 173:return"new()";case 172:return"()";case 174:return"[]";default:return""}}function B(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:W(t.node),spans:J(t),nameSpan:t.name&&q(t.name),childItems:e.map(t.children,B)}}function j(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:W(t.node),spans:J(t),childItems:e.map(t.children,(function(t){return{text:R(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:J(t),childItems:_,indent:0,bolded:!1,grayed:!1}}))||_,indent:t.indent,bolded:!1,grayed:!1}}function J(e){var t=[q(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r0)return Y(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return Y(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&63===r.operatorToken.kind)return p(r.left).replace(c,"");if(e.isPropertyAssignment(r))return p(r.name);if(512&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"";if(e.isCallExpression(r)){var n=G(r.expression);if(void 0!==n)return(n=Y(n)).length>150?n+" callback":n+"("+Y(e.mapDefined(r.arguments,(function(t){return e.isStringLiteralLike(t)?t.getText(a):void 0})).join(", "))+") callback"}return""}function G(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=G(t.expression),n=t.name.text;return void 0===r?n:r+"."+n}}function Y(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(s||(s={})),function(e){!function(t){function r(t,r){var n=e.isStringLiteral(r)&&r.text;return e.isString(n)&&e.some(t.moduleAugmentations,(function(t){return e.isStringLiteral(t)&&t.text===n}))}function n(t){return void 0!==t&&e.isStringLiteralLike(t)?t.text:void 0}function i(t){var r;if(0===t.length)return t;var n=function(t){for(var r,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=t;a0?g[0]:y[0],k=0===E.length?b?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(E):e.factory.updateNamedImports(y[0].importClause.namedBindings,E);f&&b&&k?(u.push(o(T,b,void 0)),u.push(o(null!==(r=y[0])&&void 0!==r?r:T,void 0,k))):u.push(o(T,b,k))}}else{var A=g[0];u.push(o(A,A.importClause.name,m[0].importClause.namedBindings))}}return u}function a(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=[],i=0,a=e;i...")}function _(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return u(n,"code",n,!1,"<>...")}function d(e){if(0!==e.properties.length)return s(e.getStart(r),e.getEnd(),"code")}function p(e){if(14!==e.kind||0!==e.text.length)return s(e.getStart(r),e.getEnd(),"code")}function f(t,r){return void 0===r&&(r=18),g(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function g(n,i,a,o,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===s&&(s=18===o?19:23);var u=e.findChildOfKind(t,o,r),l=e.findChildOfKind(t,s,r);return u&&l&&c(u,l,n,r,i,a)}function m(t){return t.length?u(e.createTextSpanFromRange(t),"code"):void 0}}(t,r);d&&i.push(d),l--,e.isCallExpression(t)?(l++,m(t.expression),l--,t.arguments.forEach(m),null===(_=t.typeArguments)||void 0===_||_.forEach(m)):e.isIfStatement(t)&&t.elseStatement&&e.isIfStatement(t.elseStatement)?(m(t.expression),m(t.thenStatement),l++,m(t.elseStatement),l--):t.forEachChild(m),l++}}}(r,n,l),function(t,r){for(var n=[],a=t.getLineStarts(),o=0,s=a;o1&&a.push(s(c,u,"comment"))}}function o(t,r,n,i){e.isJsxText(t)||a(t.pos,r,n,i)}function s(t,r,n){return u(e.createTextSpanFromBounds(t,r),n)}function c(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),u(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function u(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(s||(s={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=v(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(E(t,(function(t,n){return d(e.charCodeAt(n+r))===t})))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var _=0,p=n(i,o);_0)return r(t.substring,!0);if(a.characterSpans.length>0){var g=n(i,o),m=!!u(i,g,a,!1)||!u(i,g,a,!0)&&void 0;if(void 0!==m)return r(t.camelCase,m)}}}function a(e,t,r){if(E(t.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function _(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function d(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function p(e){return e>=48&&e<=57}function f(e){return l(e)||_(e)||p(e)||95===e||36===e}function g(e){for(var t=[],r=0,n=0,i=0;i0&&(t.push(m(e.substr(r,n))),n=0)}return n>0&&t.push(m(e.substr(r,n))),t}function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:y(e)}}function y(e){return h(e,!1)}function v(e){return h(e,!0)}function h(t,r){for(var n=[],i=0,a=1;at.length)return;for(var c=n.length-2,u=t.length-1;c>=0;c-=1,u-=1)s=o(s,a(t[u],n[c],i));return s}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=y,e.breakIntoWordSpans=v}(s||(s={})),function(e){e.preProcessFile=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],u=0,l=!1;function _(){return a=o,18===(o=e.scanner.scan())?u++:19===o&&u--,o}function d(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function p(){c.push(d()),f()}function f(){0===u&&(l=!0)}function g(){var t=e.scanner.getToken();return 134===t&&(140===(t=_())&&10===(t=_())&&(i||(i=[]),i.push({ref:d(),depth:u})),!0)}function m(){if(24===a)return!1;var t=e.scanner.getToken();if(100===t){if(20===(t=_())){if(10===(t=_())||14===t)return p(),!0}else{if(10===t)return p(),!0;150===t&&e.scanner.lookAhead((function(){var t=e.scanner.scan();return 154!==t&&(41===t||18===t||79===t||e.isKeyword(t))}))&&(t=_());if(79===t||e.isKeyword(t))if(154===(t=_())){if(10===(t=_()))return p(),!0}else if(63===t){if(v(!0))return!0}else{if(27!==t)return!0;t=_()}if(18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&154===(t=_())&&10===(t=_())&&p()}else 41===t&&127===(t=_())&&(79===(t=_())||e.isKeyword(t))&&154===(t=_())&&10===(t=_())&&p()}return!0}return!1}function y(){var t=e.scanner.getToken();if(93===t){if(f(),150===(t=_()))e.scanner.lookAhead((function(){var t=e.scanner.scan();return 41===t||18===t}))&&(t=_());if(18===t){for(t=_();19!==t&&1!==t;)t=_();19===t&&154===(t=_())&&10===(t=_())&&p()}else if(41===t)154===(t=_())&&10===(t=_())&&p();else if(100===t){if(150===(t=_()))e.scanner.lookAhead((function(){var t=e.scanner.scan();return 79===t||e.isKeyword(t)}))&&(t=_());if((79===t||e.isKeyword(t))&&63===(t=_())&&v(!0))return!0}return!0}return!1}function v(t,r){void 0===r&&(r=!1);var n=t?_():e.scanner.getToken();return 144===n&&(20===(n=_())&&(10===(n=_())||r&&14===n)&&p(),!0)}function h(){var t=e.scanner.getToken();if(79===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=_()))return!0;if(10===(t=_())||14===t){if(27!==(t=_()))return!0;t=_()}if(22!==t)return!0;for(t=_();23!==t&&1!==t;)10!==t&&14!==t||p(),t=_();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),_();1!==e.scanner.getToken();)g()||m()||y()||n&&(v(!1,!0)||h())||_();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var D=0,b=i;Dt)break e;var v=e.singleOrUndefined(e.getTrailingCommentRanges(i.text,m.end));if(v&&2===v.kind&&S(v.pos,v.end),n(i,t,m)){if(e.isBlock(m)||e.isTemplateSpan(m)||e.isTemplateHead(m)||e.isTemplateTail(m)||g&&e.isTemplateHead(g)||e.isVariableDeclarationList(m)&&e.isVariableStatement(d)||e.isSyntaxList(m)&&e.isVariableDeclarationList(d)||e.isVariableDeclaration(m)&&e.isSyntaxList(d)&&1===p.length||e.isJSDocTypeExpression(m)||e.isJSDocSignature(m)||e.isJSDocTypeLiteral(m)){d=m;break}if(e.isTemplateSpan(d)&&y&&e.isTemplateMiddleOrTemplateTail(y))x(m.getFullStart()-"${".length,y.getStart()+"}".length);var h=e.isSyntaxList(m)&&(c=void 0,18===(c=(s=g)&&s.kind)||22===c||20===c||278===c)&&u(y)&&!e.positionsAreOnSameLine(g.getStart(),y.getStart(),i),D=h?g.getEnd():m.getStart(),b=h?y.getStart():l(i,m);e.hasJSDocNodes(m)&&(null===(o=m.jsDoc)||void 0===o?void 0:o.length)&&x(e.first(m.jsDoc).getStart(),b),x(D,b),(e.isStringLiteral(m)||e.isTemplateLiteral(m))&&x(D+1,b-1),d=m;break}if(f===p.length-1)break e}}return _;function x(n,i){if(n!==i){var a=e.createTextSpanFromBounds(n,i);(!_||!e.textSpansEqual(a,_.textSpan)&&e.textSpanIntersectsWithPosition(a,t))&&(_=r({textSpan:a},_&&{parent:_}))}}function S(e,t){x(e,t);for(var r=e;47===i.text.charCodeAt(r);)r++;x(r,t)}};var i=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function a(t){if(e.isSourceFile(t))return o(t.getChildAt(0).getChildren(),i);if(e.isMappedTypeNode(t)){var r=t.getChildren(),n=r[0],a=r.slice(1),u=e.Debug.checkDefined(a.pop());e.Debug.assertEqual(n.kind,18),e.Debug.assertEqual(u.kind,19);var l=o(a,(function(e){return e===t.readonlyToken||143===e.kind||e===t.questionToken||57===e.kind}));return[n,c(s(o(l,(function(e){var t=e.kind;return 22===t||161===t||23===t})),(function(e){return 58===e.kind}))),u]}if(e.isPropertySignature(t))return s(a=o(t.getChildren(),(function(r){return r===t.name||e.contains(t.modifiers,r)})),(function(e){return 58===e.kind}));if(e.isParameter(t)){var _=o(t.getChildren(),(function(e){return e===t.dotDotDotToken||e===t.name}));return s(o(_,(function(e){return e===_[0]||e===t.questionToken})),(function(e){return 63===e.kind}))}return e.isBindingElement(t)?s(t.getChildren(),(function(e){return 63===e.kind})):t.getChildren()}function o(e,t){for(var r,n=[],i=0,a=e;i0&&27===e.last(r).kind&&n++;return n}(i);return 0!==a&&e.Debug.assertLessThan(a,o),{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(i,r)}}}function s(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var a=i,s=o(t,n);if(!s)return;var c=s.list,u=s.argumentIndex,l=s.argumentCount,_=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:a},argumentsSpan:_,argumentIndex:u,argumentCount:l}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?d(i,0,n):void 0;if(e.isTemplateHead(t)&&208===i.parent.kind){var p=i,f=p.parent;return e.Debug.assert(221===p.kind),d(f,u=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var g=i;f=i.parent.parent;if(e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return d(f,u=function(t,r,n,i){if(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r))return e.isInsideTemplateLiteral(r,n,i)?0:t+2;return t+1}(g.parent.templateSpans.indexOf(g),t,r,n),n)}if(e.isJsxOpeningLikeElement(i)){var m=i.attributes.pos,y=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(m,y-m),argumentIndex:0,argumentCount:1}}var v=e.getPossibleTypeArgumentsInfo(t,n);if(v){var h=v.called,D=v.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:h},argumentsSpan:_=e.createTextSpanFromBounds(h.getStart(n),t.end),argumentIndex:D,argumentCount:D+1}}}function c(t){return e.isBinaryExpression(t.parent)?c(t.parent):t}function u(t){return e.isBinaryExpression(t.left)?u(t.left)+1:2}function l(t){return"__type"===t.name&&e.firstDefined(t.declarations,(function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0}))||t}function _(e,t){for(var r=0,n=0,i=e.getChildren();n=0&&i.length>a+1),i[a+1]}function g(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function m(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(n||(n={})),r.getSignatureHelpItems=function(t,r,n,i,_){var d=t.getTypeChecker(),p=e.findTokenOnLeftOfPosition(r,n);if(p){var f=!!i&&"characterTyped"===i.kind;if(!f||!e.isInString(r,n,p)&&!e.isInComment(r,n)){var y=!!i&&"invoked"===i.kind,D=function(t,r,n,i,a){for(var _=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",(function(){return"Child: "+e.Debug.formatSyntaxKind(t.kind)+", parent: "+e.Debug.formatSyntaxKind(t.parent.kind)}));var a=function(t,r,n,i){return function(t,r,n,i){var a=function(t,r,n){if(20!==t.kind&&27!==t.kind)return;var i=t.parent;switch(i.kind){case 210:case 167:case 211:case 212:var a=o(t,r);if(!a)return;var s=a.argumentIndex,l=a.argumentCount,_=a.argumentsSpan,d=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return d&&{contextualType:d,argumentIndex:s,argumentCount:l,argumentsSpan:_};case 219:var p=c(i),f=n.getContextualType(p),g=20===t.kind?0:u(i)-1,m=u(p);return f&&{contextualType:f,argumentIndex:g,argumentCount:m,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}(t,n,i);if(!a)return;var s=a.contextualType,_=a.argumentIndex,d=a.argumentCount,p=a.argumentsSpan,f=s.getNonNullableType(),g=f.getCallSignatures();return 1!==g.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(g),node:t,symbol:l(f.symbol)},argumentsSpan:p,argumentIndex:_,argumentCount:d}}(t,0,n,i)||s(t,r,n)}(t,r,n,i);if(a)return{value:a}},d=t;!e.isSourceFile(d)&&(a||!e.isBlock(d));d=d.parent){var p=_(d);if("object"==typeof p)return p.value}return}(p,n,r,d,y);if(D){_.throwIfCancellationRequested();var b=function(t,r,n,i,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,r,n){if(!e.isCallOrNewExpression(r))return!1;var i=r.getChildren(n);switch(t.kind){case 20:return e.contains(i,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(i,o);case 29:return a(t,n,r.expression);default:return!1}}(i,s.node,n))return;var u=[],l=r.getResolvedSignatureForSignatureHelp(s.node,u,c);return 0===u.length?void 0:{kind:0,candidates:u,resolvedSignature:l};case 1:var _=s.called;if(o&&!a(i,n,e.isIdentifier(_)?_.parent:_))return;if(0!==(u=e.getPossibleGenericSignatures(_,c,r)).length)return{kind:0,candidates:u,resolvedSignature:e.first(u)};var d=r.getSymbolAtLocation(_);return d&&{kind:1,symbol:d};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(D,d,r,p,f);return _.throwIfCancellationRequested(),b?d.runWithCancellationToken(_,(function(e){return 0===b.kind?v(b.candidates,b.resolvedSignature,D,r,e):function(e,t,r,n){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[h(e,c,n,m(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(b.symbol,D,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2===t.invocation.kind)return;var i=g(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(function(r){return e.firstDefined(r.getNamedDeclarations().get(a),(function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(function(e){return v(a,a[0],t,r,e,!0)}))}))}))}(D,t,_):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(i||(i={})),r.getArgumentInfoForCompletions=function(e,t,r){var n=s(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var y=70246400;function v(r,n,i,a,o,s){var c,u=i.isTypeParameterList,l=i.argumentCount,_=i.argumentsSpan,d=i.invocation,p=i.argumentIndex,f=m(d),y=2===d.kind?d.symbol:o.getSymbolAtLocation(g(d))||s&&(null===(c=n.declaration)||void 0===c?void 0:c.symbol),v=y?e.symbolToDisplayParts(o,y,s?a:void 0,void 0):e.emptyArray,h=e.map(r,(function(r){return function(r,n,i,a,o,s){var c=(i?b:x)(r,a,o,s);return e.map(c,(function(i){var s=i.isVariadic,c=i.parameters,u=i.prefix,l=i.suffix,_=t(t([],n,!0),u,!0),d=t(t([],l,!0),function(t,r,n){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)}))}(r,o,a),!0),p=r.getDocumentationComment(a),f=r.getJsDocTags();return{isVariadic:s,prefixDisplayParts:_,suffixDisplayParts:d,separatorDisplayParts:D,parameters:c,documentation:p,tags:f}}))}(r,v,u,o,f,a)}));0!==p&&e.Debug.assertLessThan(p,l);for(var S=0,C=0,E=0;E1))for(var k=0,A=0,F=T;A=l){S=C+k;break}k++}C+=T.length}e.Debug.assert(-1!==S);var P={items:e.flatMapToMutable(h,e.identity),applicableSpan:_,selectedItemIndex:S,argumentIndex:p,argumentCount:l},w=P.items[S];if(w.isVariadic){var I=e.findIndex(w.parameters,(function(e){return!!e.isRest}));-1t?e.substr(0,t-"...".length)+"...":e}function b(t){var r=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter((function(i){var a=l.typeToTypeNode(t,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),r.writeNode(4,a,n,i)}))}}}(e.InlayHints||(e.InlayHints={}))}(s||(s={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(r){if(!e.isDeclarationFileName(r.fileName))return;if(!c(r.fileName))return;var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0},tryGetGeneratedPosition:function(i){if(e.isDeclarationFileName(i.fileName))return;var a=c(i.fileName);if(!a)return;var o=t.getProgram();if(o.isSourceOfProjectReferenceRedirect(a.fileName))return;var u=o.getCompilerOptions(),l=e.outFile(u),_=l?e.removeFileExtension(l)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0===_)return;var d=s(_,i.fileName).getGeneratedPosition(i);return d===i?void 0:d},toLineColumnOffset:function(e,t){return l(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),u=a.get(c);if(u)return u;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var _=l(n);s=_&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(_.text,e.getLineStarts(_)),(function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):void 0}))}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var r=t.getProgram();if(r){var n=o(e),i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:void 0}}function u(r){var n=o(r),a=i.get(n);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(n))){var s=t.readFile(n),c=!!s&&function(t,r){return{text:t,lineMap:r,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}function l(e){return t.getSourceFileLike?t.getSourceFileLike(e):c(e)||u(e)}},e.getDocumentPositionMapper=function(n,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var u=c[1];return r(n,e.base64decode(e.sys,u),i)}s=void 0}}var l=[];s&&l.push(s),l.push(i+".map");for(var _=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),d=0,p=l;d2)&&(t.arguments.length<2||e.some(t.arguments,(function(t){return 104===t.kind||e.isIdentifier(t)&&"undefined"===t.text})))}(t)||e.hasPropertyAccessExpressionWithName(t,"catch"))}function c(r,n){switch(r.kind){case 254:case 211:if(1&e.getFunctionFlags(r))return!1;case 212:t.set(u(r),!0);case 104:return!0;case 79:case 204:var i=n.getSymbolAtLocation(r);return!!i&&(n.isUndefinedSymbol(i)||e.some(e.skipAlias(i,n).declarations,(function(t){return e.isFunctionLike(t)||e.hasInitializer(t)&&!!t.initializer&&e.isFunctionLike(t.initializer)})));default:return!1}}function u(e){return e.pos.toString()+":"+e.end.toString()}function l(e){switch(e.kind){case 254:case 167:case 211:case 212:return!0;default:return!1}}e.computeSuggestionDiagnostics=function(o,s,c){s.getSemanticDiagnostics(o,c);var _,d=[],p=s.getTypeChecker();o.commonJsModuleIndicator&&(e.programContainsEs6Modules(s)||e.compilerOptionsIndicateEs6Modules(s.getCompilerOptions()))&&function(t){return t.statements.some((function(t){switch(t.kind){case 235:return t.declarationList.declarations.some((function(t){return!!t.initializer&&e.isRequireCall(r(t.initializer),!0)}));case 236:var n=t.expression;if(!e.isBinaryExpression(n))return e.isRequireCall(n,!0);var i=e.getAssignmentDeclarationKind(n);return 1===i||2===i;default:return!1}}))}(o)&&d.push(e.createDiagnosticForNode((_=o.commonJsModuleIndicator,e.isBinaryExpression(_)?_.left:_),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var f=e.isSourceFileJS(o);if(t.clear(),function r(n){if(f)(function(t,r){var n,i,a,o;if(211===t.kind){if(e.isVariableDeclaration(t.parent)&&(null===(n=t.symbol.members)||void 0===n?void 0:n.size))return!0;var s=r.getSymbolOfExpando(t,!1);return!(!s||!(null===(i=s.exports)||void 0===i?void 0:i.size)&&!(null===(a=s.members)||void 0===a?void 0:a.size))}if(254===t.kind)return!!(null===(o=t.symbol.members)||void 0===o?void 0:o.size);return!1})(n,p)&&d.push(e.createDiagnosticForNode(e.isVariableDeclaration(n.parent)?n.parent.name:n,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(n)&&n.parent===o&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){var s=n.declarationList.declarations[0].initializer;s&&e.isRequireCall(s,!0)&&d.push(e.createDiagnosticForNode(s,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(n)&&d.push(e.createDiagnosticForNode(n.name||n,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}l(n)&&function(r,n,o){(function(t,r){return!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&function(t,r){return!!e.forEachReturnStatement(t,(function(e){return a(e,r)}))}(t.body,r)&&i(t,r)})(r,n)&&!t.has(u(r))&&o.push(e.createDiagnosticForNode(!r.name&&e.isVariableDeclaration(r.parent)&&e.isIdentifier(r.parent.name)?r.parent.name:r,e.Diagnostics.This_may_be_converted_to_an_async_function))}(n,p,d);n.forEachChild(r)}(o),e.getAllowSyntheticDefaultImports(s.getCompilerOptions()))for(var g=0,m=o.imports;g0?e.arrayFrom(n.values()).join(","):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,u,l,_){var d;void 0===l&&(l=e.getMeaningFromLocation(u));var p,f,g,m,y=[],v=[],h=[],D=e.getCombinedLocalAndExportSymbolFlags(o),b=1&l?i(a,o,u):"",x=!1,S=108===u.kind&&e.isInExpressionContext(u),C=!1;if(108===u.kind&&!S)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==b||32&D||2097152&D){"getter"!==b&&"setter"!==b||(b="property");var E=void 0;if(p=S?a.getTypeAtLocation(u):a.getTypeOfSymbolAtLocation(o,u),u.parent&&204===u.parent.kind){var T=u.parent.name;(T===u||T&&0===T.getFullWidth())&&(u=u.parent)}var k=void 0;if(e.isCallOrNewExpression(u)?k=u:(e.isCallExpressionTarget(u)||e.isNewExpressionTarget(u)||u.parent&&(e.isJsxOpeningLikeElement(u.parent)||e.isTaggedTemplateExpression(u.parent))&&e.isFunctionLike(o.valueDeclaration))&&(k=u.parent),k){E=a.getResolvedSignature(k);var A=207===k.kind||e.isCallExpression(k)&&106===k.expression.kind,F=A?p.getConstructSignatures():p.getCallSignatures();if(!E||e.contains(F,E.target)||e.contains(F,E)||(E=F.length?F[0]:void 0),E){switch(A&&32&D?(b="constructor",$(p.symbol,b)):2097152&D?(Q(b="alias"),y.push(e.spacePart()),A&&(4&E.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),X(o)):$(o,b),b){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(58)),y.push(e.spacePart()),16&e.getObjectFlags(p)||!p.symbol||(e.addRange(y,e.symbolToDisplayParts(a,p.symbol,c,void 0,5)),y.push(e.lineBreakPart())),A&&(4&E.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),Z(E,F,262144);break;default:Z(E,F)}x=!0,C=F.length>1}}else if(e.isNameOfFunctionDeclaration(u)&&!(98304&D)||133===u.kind&&169===u.parent.kind){var N=u.parent;if(o.declarations&&e.find(o.declarations,(function(e){return e===(133===u.kind?N.parent:N)}))){F=169===N.kind?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures();E=a.isImplementationOfOverload(N)?F[0]:a.getSignatureFromDeclaration(N),169===N.kind?(b="constructor",$(p.symbol,b)):$(172!==N.kind||2048&p.symbol.flags||4096&p.symbol.flags?o:p.symbol,b),E&&Z(E,F),x=!0,C=F.length>1}}}if(32&D&&!x&&!S&&(G(),e.getDeclarationOfKind(o,224)?Q("local class"):y.push(e.keywordPart(84)),y.push(e.spacePart()),X(o),ee(o,s)),64&D&&2&l&&(H(),y.push(e.keywordPart(118)),y.push(e.spacePart()),X(o),ee(o,s)),524288&D&&2&l&&(H(),y.push(e.keywordPart(150)),y.push(e.spacePart()),X(o),ee(o,s),y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(o),c,8388608))),384&D&&(H(),e.some(o.declarations,(function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)}))&&(y.push(e.keywordPart(85)),y.push(e.spacePart())),y.push(e.keywordPart(92)),y.push(e.spacePart()),X(o)),1536&D&&!S){H();var P=(V=e.getDeclarationOfKind(o,259))&&V.name&&79===V.name.kind;y.push(e.keywordPart(P?141:140)),y.push(e.spacePart()),X(o)}if(262144&D&&2&l)if(H(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),X(o),o.parent)Y(),X(o.parent,c),ee(o.parent,c);else{var w=e.getDeclarationOfKind(o,161);if(void 0===w)return e.Debug.fail();if(V=w.parent)if(e.isFunctionLikeKind(V.kind)){Y();E=a.getSignatureFromDeclaration(V);173===V.kind?(y.push(e.keywordPart(103)),y.push(e.spacePart())):172!==V.kind&&V.name&&X(V.symbol),e.addRange(y,e.signatureToDisplayParts(a,E,s,32))}else 257===V.kind&&(Y(),y.push(e.keywordPart(150)),y.push(e.spacePart()),X(V.symbol),ee(V.symbol,s))}if(8&D&&(b="enum member",$(o,"enum member"),294===(null==(V=null===(d=o.declarations)||void 0===d?void 0:d[0])?void 0:V.kind))){var I=a.getConstantValue(V);void 0!==I&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(I),"number"==typeof I?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(H(),!x){var O=a.getAliasedSymbol(o);if(O!==o&&O.declarations&&O.declarations.length>0){var M=O.declarations[0],L=e.getNameOfDeclaration(M);if(L){var R=e.isModuleWithStringLiteralName(M)&&e.hasSyntacticModifier(M,2),B="default"!==o.name&&!R,j=t(a,O,e.getSourceFileOfNode(M),M,L,l,B?o:O);y.push.apply(y,j.displayParts),y.push(e.lineBreakPart()),g=j.documentation,m=j.tags}else g=O.getContextualDocumentationComment(M,a),m=O.getJsDocTags(a)}}if(o.declarations)switch(o.declarations[0].kind){case 262:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(141));break;case 269:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(o.declarations[0].isExportEquals?63:88));break;case 273:y.push(e.keywordPart(93));break;default:y.push(e.keywordPart(100))}y.push(e.spacePart()),X(o),e.forEach(o.declarations,(function(t){if(263===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.keywordPart(144)),y.push(e.punctuationPart(20)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(21));else{var n=a.getSymbolAtLocation(r.moduleReference);n&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),X(n,c))}return!0}}))}if(!x)if(""!==b){if(p)if(S?(H(),y.push(e.keywordPart(108))):$(o,b),"property"===b||"JSX attribute"===b||3&D||"local var"===b||S){if(y.push(e.punctuationPart(58)),y.push(e.spacePart()),p.symbol&&262144&p.symbol.flags){var J=e.mapToDisplayParts((function(t){var n=a.typeParameterToDeclaration(p,c,r);W().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(y,J)}else e.addRange(y,e.typeToDisplayParts(a,p,c));if(o.target&&o.target.tupleLabelDeclaration){var K=o.target.tupleLabelDeclaration;e.Debug.assertNode(K.name,e.isIdentifier),y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.textPart(e.idText(K.name))),y.push(e.punctuationPart(21))}}else if(16&D||8192&D||16384&D||131072&D||98304&D||"method"===b){(F=p.getNonNullableType().getCallSignatures()).length&&(Z(F[0],F),C=F.length>1)}}else b=n(a,o,u);if(0!==v.length||C||(v=o.getContextualDocumentationComment(c,a)),0===v.length&&4&D&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(function(e){return 300===e.kind})))for(var z=0,U=o.declarations;z0))break}}return 0!==h.length||C||(h=o.getJsDocTags(a)),0===v.length&&g&&(v=g),0===h.length&&m&&(h=m),{displayParts:y,documentation:v,symbolKind:b,tags:0===h.length?void 0:h};function W(){return f||(f=e.createPrinter({removeComments:!0})),f}function H(){y.length&&y.push(e.lineBreakPart()),G()}function G(){_&&(Q("alias"),y.push(e.spacePart()))}function Y(){y.push(e.spacePart()),y.push(e.keywordPart(101)),y.push(e.spacePart())}function X(t,r){_&&t===o&&(t=_);var n=e.symbolToDisplayParts(a,t,r||s,void 0,7);e.addRange(y,n),16777216&o.flags&&y.push(e.punctuationPart(57))}function $(t,r){H(),r&&(Q(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(y.push(e.spacePart()),X(t)))}function Q(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void y.push(e.textOrKeywordPart(t));default:return y.push(e.punctuationPart(20)),y.push(e.textOrKeywordPart(t)),void y.push(e.punctuationPart(21))}}function Z(t,r,n){void 0===n&&(n=0),e.addRange(y,e.signatureToDisplayParts(a,t,c,32|n)),r.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.operatorPart(39)),y.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),y.push(e.spacePart()),y.push(e.textPart(2===r.length?"overload":"overloads")),y.push(e.punctuationPart(21))),v=t.getDocumentationComment(a),h=t.getJsDocTags(),r.length>1&&0===v.length&&0===h.length&&(v=r[0].getDocumentationComment(a),h=r[0].getJsDocTags())}function ee(t,n){var i=e.mapToDisplayParts((function(i){var o=a.symbolToTypeParameterDeclarations(t,n,r);W().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(y,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(s||(s={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===a[s]&&(a[s]=o[s]);for(var c=0,u=e.transpileOptionValueCompilerOptions;c>=5;return r}(p,d),0,n),a[c]=(_=1+((u=p)>>(l=d)&s),e.Debug.assert((_&s)===_,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),u&~(s<=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,(function(s){return d(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),function(e,r,n){for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,n),s,i,a,function(t,r){if(!t.length)return a;var n=t.filter((function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)})).sort((function(e,t){return e.start-t.start}));if(!n.length)return a;var i=0;return function(t){for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}}(n.parseDiagnostics,r),n)}))}function d(r,n,i,a,o,s,c,u,l){var _,d,f,g,m=s.options,y=s.getRules,v=s.host,h=new t.FormattingContext(l,c,m),D=-1,b=[];if(o.advance(),o.isOnToken()){var x=l.getLineAndCharacterOfPosition(n.getStart(l)).line,S=x;n.decorators&&(S=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),function n(i,a,s,c,p,y){if(!e.rangeOverlapsWithStartEnd(r,i.getStart(l),i.getEnd()))return;var v=T(i,s,p,y),h=a;e.forEachChild(i,(function(e){S(e,-1,i,v,s,c,!1)}),(function(e){C(e,i,s,v)}));for(;o.isOnToken();){var b=o.readTokenInfo(i);if(b.token.end>i.end)break;E(b,i,v,i)}if(!i.parent&&o.isOnEOF()){var x=o.readEOFTokenRange();x.end<=i.end&&_&&N(x,l.getLineAndCharacterOfPosition(x.pos).line,i,_,f,d,a,v)}function S(a,s,c,u,_,d,p,f){var y=a.getStart(l),v=l.getLineAndCharacterOfPosition(y).line,b=v;a.decorators&&(b=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var x=-1;if(p&&e.rangeContainsRange(r,c)&&-1!==(x=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,m);if(s!==i||r===u){var _=t.SmartIndenter.getBaseIndentation(m);return _>u?_:u}}return-1}(y,a.end,_,r,s))&&(s=x),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.endy){S.token.pos>y&&o.skipToStartOf(a);break}E(S,i,u,i)}if(!o.isOnToken())return s;if(e.isToken(a)){var S=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(S.token.end===a.end,"Token end is child end"),E(S,i,u,a),s}var C=163===a.kind?v:d,T=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(m,e)?m.indentSize:0;return o===r?{indentation:r===g?D:a.getIndentation(),delta:Math.min(m.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===g?{indentation:D,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,l)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,v,x,i,u,C);return n(a,h,v,b,T.indentation,T.delta),h=i,f&&202===c.kind&&-1===s&&(s=T.indentation),s}function C(r,n,a,s){e.Debug.assert(e.isNodeArray(r));var c=function(e,t){switch(e.kind){case 169:case 254:case 211:case 167:case 166:case 212:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 206:case 207:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 176:if(e.typeArguments===t)return 29;break;case 180:return 18}return 0}(n,r),u=s,_=a;if(0!==c)for(;o.isOnToken();){if((v=o.readTokenInfo(n)).token.end>r.pos)break;if(v.token.kind===c){_=l.getLineAndCharacterOfPosition(v.token.pos).line,E(v,n,s,n);var d=void 0;if(-1!==D)d=D;else{var p=e.getLineStartPositionForPosition(v.token.pos,l);d=t.SmartIndenter.findFirstNonWhitespaceColumn(p,v.token.pos,l,m)}u=T(n,a,d,m.indentSize)}else E(v,n,s,n)}for(var f=-1,g=0;g0){var S=p(x,m);L(D,b.character,S)}else M(D,b.character)}}}else i||P(r.pos,n,!1)}function I(t,r,n){for(var i=t;io)){var s=O(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),M(s,o+1-s))}}}function O(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function M(t,r){r&&b.push(e.createTextChangeFromStartLength(t,r,""))}function L(t,r,n){(r||n)&&b.push(e.createTextChangeFromStartLength(t,r,n))}}function p(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var u=Math.floor(t/r.tabSize),l=t-u*r.tabSize,_=void 0;return a||(a=[]),void 0===a[u]?a[u]=_=e.repeatString("\t",u):_=a[u],l?_+e.repeatString(" ",l):_}t.createTextRangeWithKind=function(t,r,n){var i={pos:t,end:r,kind:n};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(n)}}),i},function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.formatOnEnter=function(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,_({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return l(c(s(e,26,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return _({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return l(c(s(e,19,t)),t,r,5)},t.formatDocument=function(e,t){return _({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return _({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1)},t.formatNodeGivenIndentation=function(e,r,n,i,a,o){var s={pos:0,end:r.text.length};return t.getFormattingScanner(r.text,n,s.pos,s.end,(function(t){return d(s,e,i,a,t,o,1,(function(e){return!1}),r)}))},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(n||(n={})),t.getRangeOfEnclosingComment=function(t,r,n,i){void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&rr.end}var h=s(g,e,i),D=h.line===t.line||d(g,e,t.line,i);if(y){var b=null===(f=p(e,i))||void 0===f?void 0:f[0],S=m(e,i,u,!!b&&l(b,i).line>h.line);if(-1!==S)return S+n;if(-1!==(S=c(e,g,t,D,i,u)))return S+n}x(u,g,e,i,o)&&!D&&(n+=u.indentSize);var C=_(g,e,t.line,i);g=(e=g).parent,t=C?i.getLineAndCharacterOfPosition(e.getStart(i)):h}return n+a(u)}function s(e,t,r){var n=p(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return!e.isDeclaration(t)&&!e.isStatementButNotDeclaration(t)||300!==r.kind&&i?-1:v(n,a,o)}function u(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function d(t,r,n,i){if(237===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,91,i);return e.Debug.assert(void 0!==a),l(a,i).line===n}return!1}function p(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 176:return a(n.typeArguments);case 203:return a(n.properties);case 202:return a(n.elements);case 180:return a(n.members);case 254:case 211:case 212:case 167:case 166:case 172:case 169:case 178:case 173:return a(n.typeParameters)||a(n.parameters);case 255:case 224:case 256:case 257:case 339:return a(n.typeParameters);case 207:case 206:return a(n.typeArguments)||a(n.arguments);case 253:return a(n.declarations);case 267:case 271:return a(n.elements);case 199:case 200:return a(n.elements)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i=0&&r=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return v(a,n,i);a=l(t[o],n)}return-1}function v(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return D(n,n+e.character,t,r)}function h(t,r,n,i){for(var a=0,o=0,s=t;sn.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),_=t.getRangeOfEnclosingComment(n,r,c||null);if(_&&3===_.kind)return function(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return D(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=h(s,r,t,n),u=c.column,l=c.character;return 0===u?u:42===t.text.charCodeAt(s+l)?u-1:u}(n,r,i,_);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return D(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(27===c.kind&&219!==c.parent.kind){var p=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==p)return p}var v=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);return v&&!e.rangeContainsRange(v,c)?g(v,n,i)+i.indentSize:function(t,r,n,i,s,c){for(var _,d=n;d;){if(e.positionBelongsToNode(d,r,t)&&x(c,d,_,t,!0)){var p=l(d,t),f=u(n,d,i,t);return o(d,p,void 0,0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0,t,!0,c)}var g=m(d,t,c,!0);if(-1!==g)return g;_=d,d=d.parent}return a(c)}(n,r,c,d,s,i)},r.getIndentationForNode=function(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return o(e,i,t,0,r,!1,n)},r.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,r.childStartsOnTheSameLineWithElseInIfStatement=d,r.childIsUnindentedBranchOfConditionalExpression=function(t,r,n,i){if(e.isConditionalExpression(t)&&(r===t.whenTrue||r===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(r===t.whenTrue)return n===a;var o=l(t.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===o&&s===n}return!1},r.argumentStartsOnSameLineAsPreviousArgument=function(t,r,n,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,(function(e){return e.pos===r.pos}));if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(n===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},r.getContainingList=p,r.findFirstNonWhitespaceCharacterAndColumn=h,r.findFirstNonWhitespaceColumn=D,r.nodeWillIndentChild=b,r.shouldIndentChildNode=x})((t=e.formatting||(e.formatting={})).SmartIndenter||(t.SmartIndenter={}))}(s||(s={})),function(e){!function(n){function i(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function a(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function o(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function s(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var c,u;function l(t,r){return e.skipTrivia(t,r,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(c=n.LeadingTriviaOption||(n.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(u=n.TrailingTriviaOption||(n.TrailingTriviaOption={}));var _,d={leadingTriviaOption:c.Exclude,trailingTriviaOption:u.Exclude};function p(e,t,r,n){return{pos:f(e,t,n),end:m(e,r,n)}}function f(t,r,n,i){var a,o;void 0===i&&(i=!1);var s=n.leadingTriviaOption;if(s===c.Exclude)return r.getStart(t);if(s===c.StartLine){var u=r.getStart(t),_=e.getLineStartPositionForPosition(u,t);return e.rangeContainsPosition(r,_)?_:u}if(s===c.JSDoc){var d=e.getJSDocCommentRanges(r,t.text);if(null==d?void 0:d.length)return e.getLineStartPositionForPosition(d[0].pos,t)}var p=r.getFullStart(),f=r.getStart(t);if(p===f)return f;var g=e.getLineStartPositionForPosition(p,t);if(e.getLineStartPositionForPosition(f,t)===g)return s===c.IncludeAll?p:f;if(i){var m=(null===(a=e.getLeadingCommentRanges(t.text,p))||void 0===a?void 0:a[0])||(null===(o=e.getTrailingCommentRanges(t.text,p))||void 0===o?void 0:o[0]);if(m)return e.skipTrivia(t.text,m.end,!0,!0)}var y=p>0?1:0,v=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,g)+y,t);return v=l(t.text,v),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,v),t)}function g(t,r,n){var i=r.end;if(n.trailingTriviaOption===u.Include){var a=e.getTrailingCommentRanges(t.text,i);if(a)for(var o=e.getLineOfLocalPosition(t,r.end),s=0,c=a;so)break;if(e.getLineOfLocalPosition(t,l.end)>o)return e.skipTrivia(t.text,l.end,!0,!0)}}}function m(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===u.Exclude)return a;if(o===u.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a)),c=null===(i=null==s?void 0:s[s.length-1])||void 0===i?void 0:i.end;return c||a}var l=g(t,r,n);if(l)return l;var _=e.skipTrivia(t.text,a,!0);return _===a||o!==u.Include&&!e.isLineBreak(t.text.charCodeAt(_-1))?a:_}function y(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&203===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(_||(_={})),n.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var v,h,D=function(){function n(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return n.fromContext=function(t){return new n(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},n.with=function(e,t){var r=n.fromContext(e);return t(r),r.getChanges()},n.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n=t.getLineAndCharacterOfPosition(u.range.end).line+2)break}if(t.statements.length)if(void 0===l&&(l=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),l",joiner:", "})},n.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},n.prototype.insertNodeAtConstructorStart=function(r,n,i){var a=e.firstOrUndefined(n.body.statements);a&&n.body.multiLine?this.insertNodeBefore(r,a,i):this.replaceConstructorBody(r,n,t([i],n.body.statements,!0))},n.prototype.insertNodeAtConstructorStartAfterSuperCall=function(r,n,i){var a=e.find(n.body.statements,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}));a&&n.body.multiLine?this.insertNodeAfter(r,a,i):this.replaceConstructorBody(r,n,t(t([],n.body.statements,!0),[i],!1))},n.prototype.insertNodeAtConstructorEnd=function(r,n,i){var a=e.lastOrUndefined(n.body.statements);a&&n.body.multiLine?this.insertNodeAfter(r,a,i):this.replaceConstructorBody(r,n,t(t([],n.body.statements,!0),[i],!1))},n.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},n.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=f(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},n.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},n.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},n.prototype.insertNodeAtStartWorker=function(e,t,r){var n,i=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,x(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},n.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=x(r);a=0;n--){var i=r[n],a=i.span,o=i.newText;t=""+t.substring(0,a.start)+o+t.substring(e.textSpanEnd(a))}return t}function C(t){var r=e.visitEachChild(t,C,e.nullTransformationContext,E,C),n=e.nodeIsSynthesized(r)?r:Object.create(r);return e.setTextRangePosEnd(n,i(t),o(t)),n}function E(t,r,n,a,s){var c=e.visitNodes(t,r,n,a,s);if(!c)return c;var u=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(u,i(t),o(t)),u}function T(t,r){return!(e.isInComment(t,r)||e.isInString(t,r)||e.isInTemplateString(t,r)||e.isInJSXText(t,r))}function k(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(t,r,n),a=m(t,r,n);e.deleteRange(t,{pos:i,end:a})}function A(t,r,n,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:b(n,i),end:o===a.length-1?m(n,i,{}):b(n,a[o+1])})):k(t,n,i)}n.ChangeTracker=D,n.getNewFileText=function(e,t,r,n){return v.newFileChangesWorker(void 0,t,e,r,n)},function(t){function n(t,r,n,a,o){var s=n.map((function(e){return 4===e?"":i(e,t,a).text})).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return S(s,e.formatting.formatDocument(c,o))+a}function i(t,r,n){var i=function(t){var r=0,n=e.createTextWriter(t);function i(t,i){if(i||!function(t){return e.skipTrivia(t,0)===t.length}(t)){r=n.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;r-=a}}function o(e){n.write(e),i(e,!1)}function c(e){n.writeComment(e)}function u(e){n.writeKeyword(e),i(e,!1)}function l(e){n.writeOperator(e),i(e,!1)}function _(e){n.writePunctuation(e),i(e,!1)}function d(e){n.writeTrailingSemicolon(e),i(e,!1)}function p(e){n.writeParameter(e),i(e,!1)}function f(e){n.writeProperty(e),i(e,!1)}function g(e){n.writeSpace(e),i(e,!1)}function m(e){n.writeStringLiteral(e),i(e,!1)}function y(e,t){n.writeSymbol(e,t),i(e,!1)}function v(e){n.writeLine(e)}function h(){n.increaseIndent()}function D(){n.decreaseIndent()}function b(){return n.getText()}function x(e){n.rawWrite(e),i(e,!1)}function S(e){n.writeLiteral(e),i(e,!0)}function C(){return n.getTextPos()}function E(){return n.getLine()}function T(){return n.getColumn()}function k(){return n.getIndent()}function A(){return n.isAtStartOfLine()}function F(){n.clear(),r=0}return{onBeforeEmitNode:function(e){e&&a(e,r)},onAfterEmitNode:function(e){e&&s(e,r)},onBeforeEmitNodeArray:function(e){e&&a(e,r)},onAfterEmitNodeArray:function(e){e&&s(e,r)},onBeforeEmitToken:function(e){e&&a(e,r)},onAfterEmitToken:function(e){e&&s(e,r)},write:o,writeComment:c,writeKeyword:u,writeOperator:l,writePunctuation:_,writeTrailingSemicolon:d,writeParameter:p,writeProperty:f,writeSpace:g,writeStringLiteral:m,writeSymbol:y,writeLine:v,increaseIndent:h,decreaseIndent:D,getText:b,rawWrite:x,writeLiteral:S,getTextPos:C,getLine:E,getColumn:T,getIndent:k,isAtStartOfLine:A,hasTrailingComment:function(){return n.hasTrailingComment()},hasTrailingWhitespace:function(){return n.hasTrailingWhitespace()},clear:F}}(n),o="\n"===n?1:0;return e.createPrinter({newLine:o,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:C(t)}}t.getTextChangesFromChanges=function(t,n,a,o){return e.mapDefined(e.group(t,(function(e){return e.sourceFile.path})),(function(t){for(var s=t[0].sourceFile,c=e.stableSort(t,(function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end})),u=function(t){e.Debug.assert(c[t].range.end<=c[t+1].range.pos,"Changes overlap",(function(){return JSON.stringify(c[t].range)+" and "+JSON.stringify(c[t+1].range)}))},l=0;l0?{fileName:s.fileName,textChanges:d}:void 0}))},t.newFileChanges=function(t,r,i,a,o){var s=n(t,e.getScriptKindFromFileName(r),i,a,o);return{fileName:r,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=n,t.getNonformattedText=i}(v||(v={})),n.applyChanges=S,n.isValidLocationToAddComment=T,function(t){function r(t,r,n){if(n.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else{k(t,r,e.getAncestor(n,264))}}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 162:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):A(t,n,i,a);break;case 264:case 263:k(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 201:var s=a.parent;200===s.kind&&a!==e.last(s.elements)?k(t,i,a):A(t,n,i,a);break;case 252:!function(t,r,n,i){var a=i.parent;if(290===a.kind)return void t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n));if(1!==a.declarations.length)return void A(t,r,n,i);var o=a.parent;switch(o.kind){case 242:case 241:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 240:k(t,n,a);break;case 235:k(t,n,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}(t,n,i,a);break;case 161:A(t,n,i,a);break;case 268:var l=a.parent;1===l.elements.length?r(t,i,l):A(t,n,i,a);break;case 266:r(t,i,a);break;case 26:k(t,i,a,{trailingTriviaOption:u.Exclude});break;case 98:k(t,i,a,{leadingTriviaOption:c.Exclude});break;case 255:case 254:k(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;default:a.parent?e.isImportClause(a.parent)&&a.parent.name===a?function(t,r,n){if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else k(t,r,n.name)}else k(t,r,n.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?A(t,n,i,a):k(t,i,a):k(t,i,a)}}}(h||(h={})),n.deleteNode=k}(e.textChanges||(e.textChanges={}))}(s||(s={})),function(e){!function(n){var i=e.createMultiMap(),o=new e.Map;function s(t){return e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t)}function c(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function u(e,t){return{changes:e,commands:t}}function l(t,r,n){for(var i=0,a=_(t);i1)break}var l=o<2;return function(e){var t=e.fixId,n=e.fixAllDescription,i=a(e,["fixId","fixAllDescription"]);return l?i:r(r({},i),{fixId:t,fixAllDescription:n})}}(i,n))}))},n.getAllFixes=function(t){return o.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},n.createCombinedCodeActions=u,n.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},n.codeFixAll=function(t,r,n){var i=[];return u(e.textChanges.ChangeTracker.with(t,(function(e){return l(t,r,(function(t){return n(e,t,i)}))})),0===i.length?void 0:i)},n.eachDiagnostic=l}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(n){return e.arrayFrom(e.flatMapIterator(r.values(),(function(e){var r;return n.cancellationToken&&n.cancellationToken.isCancellationRequested()||!(null===(r=e.kinds)||void 0===r?void 0:r.some((function(e){return t.refactorKindBeginsWith(e,n.kind)})))?void 0:e.getAvailableActions(n)})))},t.getEditsForRefactor=function(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}}(s||(s={})),function(e){!function(t){var r="addConvertToUnknownForNonOverlappingTypes",n=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.Debug.checkDefined(e.findAncestor(i,(function(t){return e.isAsExpression(t)||e.isTypeAssertionExpression(t)})),"Expected to find an assertion expression"),o=e.isAsExpression(a)?e.factory.createAsExpression(a.expression,e.factory.createKeywordTypeNode(153)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(153),a.expression);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.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,e.Diagnostics.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){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(function(t){var r=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(n,n,r)}));return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(s||(s={})),function(e){!function(t){var r="addMissingAsync",n=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(n,i,a,o){var s=a((function(t){return function(t,r,n,i){if(i&&i.has(e.getNodeId(n)))return;null==i||i.add(e.getNodeId(n));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(n,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(n))));t.replaceNode(r,n,a)}(t,n.sourceFile,i,o)}));return t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,r){if(r){var n=e.getTokenAtPosition(t,r.start);return e.findAncestor(n,(function(n){return n.getStart(t)e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))}))}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,u=e.find(s.getDiagnosticsProducingTypeChecker().getDiagnostics(r,o),function(t,r){return function(n){var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,n)),l=a(r,u&&u.relatedInformation&&e.find(u.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(l){return[i(t,l,(function(r){return e.textChanges.ChangeTracker.with(t,r)}))]}},getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,(function(t,n){var c=n.relatedInformation&&e.find(n.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),u=a(o,c);if(u){return i(r,u,(function(e){return e(t),[]}),s)}}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(r){var n="addMissingAwait",i=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],o=t([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,i],a,!0);function s(t,n,i,a,s,c){var u=t.sourceFile,d=t.program,p=t.cancellationToken,f=function(t,r,n,i,a){var s=function(t,r){if(e.isPropertyAccessExpression(t.parent)&&e.isIdentifier(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(e.isIdentifier(t))return{identifiers:[t],isCompleteFix:!0};if(e.isBinaryExpression(t)){for(var n=void 0,i=!0,a=0,o=[t.left,t.right];ae.textSpanEnd(n)?"quit":e.isExpression(r)&&e.textSpansEqual(n,e.createTextSpanFromNode(r,t))}));return s&&function(t,r,n,i,a){var o=a.getDiagnosticsProducingTypeChecker().getDiagnostics(t,i);return e.some(o,(function(t){var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}(t,r,n,i,a)&&l(s)?s:void 0}function l(t){return 32768&t.kind||!!e.findAncestor(t,(function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t||e.isBlock(t)&&(254===t.parent.kind||211===t.parent.kind||212===t.parent.kind||167===t.parent.kind)}))}function _(t,r,n,o,s,c){if(e.isBinaryExpression(s))for(var u=0,l=[s.left,s.right];u0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,r.program,a)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="addMissingDeclareProperty",n=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isIdentifier(a)){var o=a.parent;165!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,134,o)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,a)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="addNameToNamelessParameter",n=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n);if(!e.isIdentifier(i))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(i.kind));var a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createParameterDeclaration(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,e.factory.createTypeReferenceNode(i,void 0),a.initializer);t.replaceNode(r,i,s)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="annotateWithTypeFromJSDoc",n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,a)}function a(t){return function(t){return e.isFunctionLikeDeclaration(t)||252===t.kind||164===t.kind||165===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some((function(t){return!!e.getJSDocType(t)})))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i.length&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.factory.createToken(20));for(var o=0,s=n.parameters;o1?(t.delete(r,l),t.insertNodeAfter(r,d,_)):t.replaceNode(r,d,_)}}function p(n){var i=[];return n.members&&n.members.forEach((function(e,n){if("constructor"===n&&e.valueDeclaration)t.delete(r,e.valueDeclaration.parent);else{var a=u(e,void 0);a&&i.push.apply(i,a)}})),n.exports&&n.exports.forEach((function(t){if("prototype"===t.name&&t.declarations){var r=t.declarations[0];if(1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right))(n=u(r.parent.right.symbol,void 0))&&i.push.apply(i,n)}else{var n;(n=u(t,[e.factory.createToken(124)]))&&i.push.apply(i,n)}})),i;function u(n,i){var u=[];if(!(8192&n.flags||4096&n.flags))return u;var l,_,d=n.valueDeclaration,p=d.parent,f=p.right;if(l=d,_=f,!(e.isAccessExpression(l)?e.isPropertyAccessExpression(l)&&o(l)||e.isFunctionLike(_):e.every(l.properties,(function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))}))))return u;var g=p.parent&&236===p.parent.kind?p.parent:p;if(t.delete(r,g),!f)return u.push(e.factory.createPropertyDeclaration([],i,n.name,void 0,void 0,void 0)),u;if(e.isAccessExpression(d)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var m=e.getQuotePreference(r,s),y=function(t,r,n){if(e.isPropertyAccessExpression(t))return t.name;var i=t.argumentExpression;if(e.isNumericLiteral(i))return i;if(e.isStringLiteralLike(i))return e.isIdentifierText(i.text,r.target)?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===n):i;return}(d,c,m);return y?h(u,f,y):u}if(e.isObjectLiteralExpression(f))return e.flatMap(f.properties,(function(t){return e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)?u.concat(t):e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)?h(u,t.initializer,t.name):o(t)?u:[]}));if(e.isSourceFileJS(r))return u;if(!e.isPropertyAccessExpression(d))return u;var v=e.factory.createPropertyDeclaration(void 0,i,d.name,void 0,void 0,f);return e.copyLeadingComments(p.parent,v,r),u.push(v),u;function h(t,n,o){return e.isFunctionExpression(n)?function(t,n,o){var s=e.concatenate(i,a(n,130)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(p,c,r),t.concat(c)}(t,n,o):function(t,n,o){var s,c=n.body;s=233===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var u=e.concatenate(i,a(n,130)),l=e.factory.createMethodDeclaration(void 0,u,void 0,o,void 0,void 0,n.parameters,void 0,s);return e.copyLeadingComments(p,l,r),t.concat(l)}(t,n,o)}}}}function a(t,r){return e.filter(t.modifiers,(function(e){return e.kind===r}))}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n.preferences,n.program.getCompilerOptions())}));return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(r){var n,i="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(t,r,n,i){var a,o=e.getTokenAtPosition(r,n);if(a=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.canBeConvertedToAsync)){var s=new e.Map,_=e.isInJSFile(a),p=function(t,r){if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,(function t(i){c(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):c(i,r,"catch")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):u(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)})),n}(a,i),f=function(t,r,n){var i=new e.Map,a=e.createMultiMap();return e.forEachChild(t,(function t(o){if(e.isIdentifier(o)){var s=r.getSymbolAtLocation(o);if(s){var c=y(r.getTypeAtLocation(o),r),u=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||n.has(u)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var _=o.text,d=a.get(_);if(d&&d.some((function(e){return e!==s}))){var p=l(o,a);i.set(u,p.identifier),n.set(u,p),a.add(_,s)}else{var f=e.getSynthesizedDeepClone(o);n.set(u,x(f)),a.add(_,s)}}}else{var g=e.firstOrUndefined(c.parameters),m=(null==g?void 0:g.valueDeclaration)&&e.isParameter(g.valueDeclaration)&&e.tryCast(g.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),v=l(m,a);n.set(u,v),a.add(m.text,s)}}}else e.forEachChild(o,t)})),e.getSynthesizedDeepCloneWithReplacements(t,!0,(function(t){if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((a=(n=r.getSymbolAtLocation(t.name))&&i.get(String(e.getSymbolId(n))))&&a.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,a,t.initializer)}else if(e.isIdentifier(t)){var n,a;if(a=(n=r.getSymbolAtLocation(t))&&i.get(String(e.getSymbolId(n))))return e.factory.createIdentifier(a.text)}}))}(a,i,s);if(e.returnsPromise(f,i)){var g=f.body&&e.isBlock(f.body)?function(t,r){var n=[];return e.forEachReturnStatement(t,(function(t){e.isReturnStatementWithFixablePromiseHandler(t,r)&&n.push(t)})),n}(f.body,i):e.emptyArray,m={checker:i,synthNamesMap:s,setOfExpressionsToReturn:p,isInJSFile:_};if(g.length){var v=a.modifiers?a.modifiers.end:a.decorators?e.skipTrivia(r.text,a.decorators.end):a.getStart(r),h=a.modifiers?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,v,130,h);for(var D=function(n){e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=d(a,m);t.replaceNodeWithNodes(r,n,o)}else e.isFunctionLike(a)||e.forEachChild(a,i)}))},b=0,S=g;b0)return O;if(k){I=m(a.checker,k,T);if(C(i,a))return f(I,null===(d=i.typeArguments)||void 0===d?void 0:d[0]);var M=p(r,I,void 0);return r&&r.types.push(k),M}return _();default:return _()}return e.emptyArray}function m(t,r,n){var i=e.getSynthesizedDeepClone(n);return t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function y(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function v(t,r,n){for(var i=[],a=0,o=r;a0)return}else e.isFunctionLike(a)||e.forEachChild(a,r)}))}return i}function h(t,r){var n,i=[];e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){if(e.isIdentifier(r))return a(r);var n=e.flatMap(r.elements,(function(r){return e.isOmittedExpression(r)?[]:[t(r.name)]}));return function(t,r,n){void 0===r&&(r=e.emptyArray);void 0===n&&(n=[]);return{kind:1,bindingPattern:t,elements:r,types:n}}(r,n)}(t.parameters[0].name)):e.isIdentifier(t)?n=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(n=a(t.name));if(n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}(function(e){return e.original?e.original:e}(t));return n&&r.synthNamesMap.get(e.getSymbolId(n).toString())||x(t,i)}}function D(t){return!t||(S(t)?!t.identifier.text:e.every(t.elements,D))}function b(e){return S(e)?e.identifier:e.bindingPattern}function x(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1}}function S(e){return 0===e.kind}function C(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(e.getNodeId(t.original))}r.registerCodeFix({errorCodes:a,getCodeActions:function(t){o=!0;var n=e.textChanges.ChangeTracker.with(t,(function(e){return s(e,t.sourceFile,t.span.start,t.program.getTypeChecker())}));return o?[r.createCodeFixAction(i,n,e.Diagnostics.Convert_to_async_function,i,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[i],getAllCodeActions:function(e){return r.codeFixAll(e,a,(function(t,r){return s(t,r.file,r.start,e.program.getTypeChecker())}))}}),function(e){e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(n||(n={}))}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){function r(t,r,n,i){for(var a=0,o=t.imports;a1?[[o(n),s(n)],!0]:[[s(n)],!0]:[[o(n)],!1]}(_.arguments[0],r):void 0;return p?(i.replaceNodeWithNodes(t,n.parent,p[0]),p[1]):(i.replaceRangeWithText(t,e.createRange(l.getStart(t),_.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,l.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[g(void 0,o,r.right),m([e.factory.createExportSpecifier(o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(93),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,a);return!1}(t,n,y,i,_,p)}default:return!1}}function a(r,n,i,a,o,s,c){var l,_=n.declarationList,d=!1,m=e.map(_.declarations,(function(n){var i=n.name,l=n.initializer;if(l){if(e.isExportsOrModuleExportsOrAlias(r,l))return d=!0,y([]);if(e.isRequireCall(l,!0))return d=!0,function(r,n,i,a,o,s){switch(r.kind){case 199:var c=e.mapAllOrFail(r.elements,(function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)}));if(c)return y([e.makeImport(void 0,c,n,s)]);case 200:var l=u(t.moduleSpecifierToValidIdentifier(n.text,o),a);return y([e.makeImport(e.factory.createIdentifier(l),void 0,n,s),g(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(l))]);case 79:return function(t,r,n,i,a){for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,l=!1,_=0,d=i.original.get(t.text);_=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(t)||n?i?1:2:3;for(var o=0,s=t.statements;o"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(85)),t.insertText(r,c.end," = "),t.insertText(r,u.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a,o=n.sourceFile,s=n.program,c=n.span,u=e.textChanges.ChangeTracker.with(n,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,u,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){i(t,r.file,r.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="fixIncorrectNamedTupleSyntax",n=[e.Diagnostics.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,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=function(t,r){var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,(function(e){return 195===e.kind}))}(i,a.start),s=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n){if(n){for(var i=n.type,a=!1,o=!1;183===i.kind||184===i.kind||189===i.kind;)183===i.kind?a=!0:184===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(o?e.factory.createToken(25):void 0),n.name,n.questionToken||(a?e.factory.createToken(57):void 0),i);s!==n&&t.replaceNode(r,n,s)}}(t,i,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]})}(s||(s={})),function(e){!function(t){var r="fixSpelling",n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var u=c.getTypeAtLocation(o.expression);32&o.flags&&(u=c.getNonNullableType(u)),s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isQualifiedName(o)&&o.right===a){var l=c.getSymbolAtLocation(o.left);l&&1536&l.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,l))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var _=function(t,r,n){if(!n||!e.isStringLiteralLike(n.moduleSpecifier))return;var i=e.getResolvedModule(t,n.moduleSpecifier.text);return i?r.program.getSourceFile(i.resolvedFileName):void 0}(t,n,e.findAncestor(a,e.isImportDeclaration));_&&_.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,_.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var d=e.findAncestor(a,e.isJsxOpeningLikeElement),p=c.getContextualTypeForArgumentAtIndex(d,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,p)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===a){var f=e.findAncestor(a,e.isClassLike),g=f?e.getEffectiveBaseTypeNode(f):void 0,m=g?c.getTypeAtLocation(g):void 0;m&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),m))}else{var y=e.getMeaningFromLocation(a),v=e.getTextOfNode(a);e.Debug.assert(void 0!==v,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,v,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=788968);1&e&&(t|=111551);return t}(y))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.factory.createIdentifier(o)):t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(r,n,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.errorCode,c=i(o,n.span.start,n,s);if(c){var u=c.node,l=c.suggestedSymbol,_=n.host.getCompilationSettings().target,d=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,u,l,_)}));return[t.createCodeFixAction("spelling",d,[e.Diagnostics.Change_spelling_to_0,e.symbolName(l)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,e,r.code),o=e.host.getCompilationSettings().target;n&&a(t,e.sourceFile,n.node,n.suggestedSymbol,o)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r,n="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function c(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],[])}function u(t,n,i,a){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var o=e.first(n.body.statements);if(e.isExpressionStatement(o)&&l(t,n,t.getTypeAtLocation(o.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(l(t,n,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var u=e.first(o.statements);if(e.isLabeledStatement(u)&&e.isExpressionStatement(u.statement)){s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(u.label,u.statement.expression)]);if(l(t,n,c(t,u.label,u.statement.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:u}}}}}function l(t,r,n,i,a){if(a){var o=t.getSignatureFromDeclaration(r);if(o){e.hasSyntacticModifier(r,256)&&(n=t.createPromiseType(n));var s=t.createSignature(r,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function _(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var o=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return u(t,o,t.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return u(t,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var l=function(t){switch(t.kind){case 252:case 162:case 201:case 165:case 291:return t.initializer;case 283:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 292:case 164:case 294:case 342:case 335:return}}(a.parent);if(!l||!e.isFunctionLikeDeclaration(l)||!l.body)return;return u(t,l,t.getTypeAtLocation(a.parent),!0)}}}function d(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function p(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function f(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function g(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return d(e,r.sourceFile,a,o)}));return t.createCodeFixAction(n,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function m(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(function(e){return f(e,r.sourceFile,i,a)}));return t.createCodeFixAction(n,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!function(e){e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"}(r||(r={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions:function(i){var o=i.program,s=i.sourceFile,c=i.span.start,u=i.errorCode,l=_(o.getTypeChecker(),s,c,u);if(l)return l.kind===r.MissingReturnStatement?e.append([g(i,l.expression,l.statement)],e.isArrowFunction(l.declaration)?function(r,i,o,s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.sourceFile,i,o,s,!1)}));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,l.declaration,l.expression,l.commentSource):void 0):[m(i,l.declaration,l.expression)]},getAllCodeActions:function(r){return t.codeFixAll(r,s,(function(t,n){var s=_(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:d(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;p(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;f(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(r){var n,i="fixMissingMember",a="fixMissingProperties",o="fixMissingAttributes",s="fixMissingFunctionDeclaration",c=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Cannot_find_name_0.code];function u(t,r,n,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)||e.isPrivateIdentifier(a)){var o=a.parent;if(e.isIdentifier(a)&&e.hasInitializer(o)&&o.initializer&&e.isObjectLiteralExpression(o.initializer)){var s=e.arrayFrom(n.getUnmatchedProperties(n.getTypeAtLocation(o.initializer),n.getTypeAtLocation(a),!1,!1));if(e.length(s))return{kind:3,token:a,properties:s,parentDeclaration:o.initializer}}if(e.isIdentifier(a)&&e.isJsxOpeningLikeElement(a.parent)){var c=function(t,r){var n=t.getContextualType(r.attributes);if(void 0===n)return e.emptyArray;var i=n.getProperties();if(!e.length(i))return e.emptyArray;for(var a=new e.Set,o=0,s=r.attributes.properties;o=e.ModuleKind.ES2015&&o99)&&(s=e.textChanges.ChangeTracker.with(r,(function(r){if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}})),a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),a.length?a:void 0}}})}(s||(s={})),function(e){!function(t){var r="fixPropertyAssignment",n=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function i(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 94===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(117)),2===i.length&&94===i[0].token&&117===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.factory.createToken(27));for(var s=r.text,c=a.end;c":">","}":"}"};function o(t,r,n,i,o){var s=n.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{"+e.quote(n,r,s)+"}";t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="unusedIdentifier",n="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_deleteImports",o="unusedIdentifier_infer",s=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function c(t,r,n){t.replaceNode(r,n.parent,e.factory.createKeywordTypeNode(153))}function u(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function l(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function _(e){return 100===e.kind||79===e.kind&&(268===e.parent.kind||265===e.parent.kind)}function d(t){return 100===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function p(t,r){return e.isVariableDeclarationList(r.parent)&&e.first(r.parent.getChildren(t))===r}function f(e,t,r){e.delete(t,235===r.parent.kind?r.parent:r)}function g(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(136===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 162:case 161:return!0;case 252:switch(e.parent.parent.parent.kind){case 242:case 241:return!0}}return!1}(i)&&(t.replaceNode(n,i,e.factory.createIdentifier("_"+i.text)),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((function(r){e.isIdentifier(r.name)&&t.replaceNode(n,r.name,e.factory.createIdentifier("_"+r.name.text))}))))}function m(t,r,n,i,a,o,s,c){!function(t,r,n,i,a,o,s,c){var u=t.parent;if(e.isParameter(u))!function(t,r,n,i,a,o,s,c){void 0===c&&(c=!1);(function(t,r,n,i,a,o,s){var c=n.parent;switch(c.kind){case 167:case 169:var u=c.parameters.indexOf(n),l=e.isMethodDeclaration(c)?c.name:c,_=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,l,a,i,o);if(_)for(var d=0,p=_;du,h=e.isPropertyAccessExpression(m.node.parent)&&e.isSuperKeyword(m.node.parent.expression)&&e.isCallExpression(m.node.parent.parent)&&m.node.parent.parent.arguments.length>u,D=(e.isMethodDeclaration(m.node.parent)||e.isMethodSignature(m.node.parent))&&m.node.parent!==n.parent&&m.node.parent.parameters.length>u;if(y||h||D)return!1}}return!0;case 254:return!c.name||!function(t,r,n){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,(function(t){return e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0}))}(t,r,c.name)||v(c,n,s);case 211:case 212:return v(c,n,s);case 171:return!1;default:return e.Debug.failBadSyntaxKind(c)}})(i,r,n,a,o,s,c)&&(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach((function(e){return t.deleteModifier(r,e)})):!n.initializer&&y(n,i,a)&&t.delete(r,n))}(r,n,u,i,a,o,s,c);else if(!(c&&e.isIdentifier(t)&&e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,n))){var l=e.isImportClause(u)?t:e.isComputedPropertyName(u)?u.parent:u;e.Debug.assert(l!==n,"should not delete whole source file"),r.delete(n,l)}}(r,n,t,i,a,o,s,c),e.isIdentifier(r)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(r,i,t,(function(r){e.isPropertyAccessExpression(r.parent)&&r.parent.name===r&&(r=r.parent),!c&&function(t){return(e.isBinaryExpression(t.parent)&&t.parent.left===t||(e.isPostfixUnaryExpression(t.parent)||e.isPrefixUnaryExpression(t.parent))&&t.parent.operand===t)&&e.isExpressionStatement(t.parent.parent)}(r)&&n.delete(t,r.parent.parent)}))}function y(t,r,n){var i=t.parent.parameters.indexOf(t);return!e.FindAllReferences.Core.someSignatureUsage(t.parent,n,r,(function(e,t){return!t||t.arguments.length>i}))}function v(t,r,n){var i=t.parameters,a=i.indexOf(r);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),n?i.slice(a+1).every((function(t){return e.isIdentifier(t.name)&&!t.symbol.isReferenced})):a===i.length-1}t.registerCodeFix({errorCodes:s,getCodeActions:function(i){var s=i.errorCode,y=i.sourceFile,v=i.program,h=i.cancellationToken,D=v.getTypeChecker(),b=v.getSourceFiles(),x=e.getTokenAtPosition(y,i.span.start);if(e.isJSDocTemplateTag(x))return[u(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,x)})),e.Diagnostics.Remove_template_tag)];if(29===x.kind)return[u(C=e.textChanges.ChangeTracker.with(i,(function(e){return l(e,y,x)})),e.Diagnostics.Remove_type_parameters)];var S=d(x);if(S){var C=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,S)}));return[t.createCodeFixAction(r,C,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],a,e.Diagnostics.Delete_all_unused_imports)]}if(_(x)&&(F=e.textChanges.ChangeTracker.with(i,(function(e){return m(y,x,e,D,b,v,h,!1)}))).length)return[t.createCodeFixAction(r,F,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,x.getText(y)],a,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(x.parent)||e.isArrayBindingPattern(x.parent)){if(e.isParameter(x.parent.parent)){var E=x.parent.elements,T=[E.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(E,(function(e){return e.getText(y)})).join(", ")];return[u(e.textChanges.ChangeTracker.with(i,(function(t){return function(t,r,n){e.forEach(n.elements,(function(e){return t.delete(r,e)}))}(t,y,x.parent)})),T)]}return[u(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,x.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(p(y,x))return[u(e.textChanges.ChangeTracker.with(i,(function(e){return f(e,y,x.parent)})),e.Diagnostics.Remove_variable_statement)];var k=[];if(136===x.kind){C=e.textChanges.ChangeTracker.with(i,(function(e){return c(e,y,x)}));var A=e.cast(x.parent,e.isInferTypeNode).typeParameter.name.text;k.push(t.createCodeFixAction(r,C,[e.Diagnostics.Replace_infer_0_with_unknown,A],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var F;if((F=e.textChanges.ChangeTracker.with(i,(function(e){return m(y,x,e,D,b,v,h,!1)}))).length){A=e.isComputedPropertyName(x.parent)?x.parent:x;k.push(u(F,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,A.getText(y)]))}}var N=e.textChanges.ChangeTracker.with(i,(function(e){return g(e,s,y,x)}));return N.length&&k.push(t.createCodeFixAction(r,N,[e.Diagnostics.Prefix_0_with_an_underscore,x.getText(y)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),k},fixIds:[n,i,a,o],getAllCodeActions:function(r){var u=r.sourceFile,v=r.program,h=r.cancellationToken,D=v.getTypeChecker(),b=v.getSourceFiles();return t.codeFixAll(r,s,(function(t,s){var x=e.getTokenAtPosition(u,s.start);switch(r.fixId){case n:g(t,s.code,u,x);break;case a:var S=d(x);S?t.delete(u,S):_(x)&&m(u,x,t,D,b,v,h,!0);break;case i:if(136===x.kind||_(x))break;if(e.isJSDocTemplateTag(x))t.delete(u,x);else if(29===x.kind)l(t,u,x);else if(e.isObjectBindingPattern(x.parent)){if(x.parent.parent.initializer)break;e.isParameter(x.parent.parent)&&!y(x.parent.parent,D,b)||t.delete(u,x.parent.parent)}else{if(e.isArrayBindingPattern(x.parent.parent)&&x.parent.parent.parent.initializer)break;p(u,x)?f(t,u,x.parent):m(u,x,t,D,b,v,h,!0)}break;case o:136===x.kind&&c(t,u,x);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n),s=e.findAncestor(o,e.isStatement);if(s.getStart(r)!==o.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var u=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(u.kind){case 237:if(u.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 239:case 240:return void t.delete(r,u)}if(e.isBlock(s.parent)){var l=n+i,_=e.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;nL.length)j(C,g.getSignatureFromDeclaration(p[p.length-1]),D,v,s(C));else e.Debug.assert(p.length===L.length,"Declarations and signatures should match count"),_(function(t,n,i,a,c,u,l,_){for(var d=a[0],p=a[0].minArgumentCount,f=!1,g=0,m=a;g=d.parameters.length&&(!e.signatureHasRestParameter(y)||e.signatureHasRestParameter(d))&&(d=y)}var v=d.parameters.length-(e.signatureHasRestParameter(d)?1:0),h=d.parameters.map((function(e){return e.name})),D=o(v,h,void 0,p,!1);if(f){var b=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(129)),x=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),h[v]||"rest",v>=p?e.factory.createToken(57):void 0,b,void 0);D.push(x)}return function(t,r,n,i,a,o,c){return e.factory.createMethodDeclaration(void 0,t,void 0,r,n?e.factory.createToken(57):void 0,i,a,o,s(c))}(l,c,u,void 0,D,function(t,n,i,a){if(e.length(t)){var o=n.getUnionType(e.map(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(o,a,void 0,r(i))}}(a,t,n,i),_)}(g,c,n,L,v,x,D,C))}}function j(e,t,r,a,o){var s=i(167,c,e,t,o,a,r,x,n,l);s&&_(s)}}function i(t,n,i,a,o,s,c,u,l,_){var p=n.program,g=p.getTypeChecker(),m=e.getEmitScriptTarget(p.getCompilerOptions()),y=1073742081|(0===i?268435456:0),v=g.signatureToSignatureDeclaration(a,t,l,y,r(n));if(v){var h=v.typeParameters,D=v.parameters,b=v.type;if(_){if(h){var x=e.sameMap(h,(function(t){var r,n=t.constraint,i=t.default;n&&((r=d(n,m))&&(n=r.typeNode,f(_,r.symbols)));i&&((r=d(i,m))&&(i=r.typeNode,f(_,r.symbols)));return e.factory.updateTypeParameterDeclaration(t,t.name,n,i)}));h!==x&&(h=e.setTextRange(e.factory.createNodeArray(x,h.hasTrailingComma),h))}var S=e.sameMap(D,(function(t){var r=d(t.type,m),n=t.type;return r&&(n=r.typeNode,f(_,r.symbols)),e.factory.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)}));if(D!==S&&(D=e.setTextRange(e.factory.createNodeArray(S,D.hasTrailingComma),D)),b){var C=d(b,m);C&&(b=C.typeNode,f(_,C.symbols))}}var E=u?e.factory.createToken(57):void 0,T=v.asteriskToken;return e.isFunctionExpression(v)?e.factory.updateFunctionExpression(v,c,v.asteriskToken,e.tryCast(s,e.isIdentifier),h,D,b,null!=o?o:v.body):e.isArrowFunction(v)?e.factory.updateArrowFunction(v,c,h,D,b,v.equalsGreaterThanToken,null!=o?o:v.body):e.isMethodDeclaration(v)?e.factory.updateMethodDeclaration(v,void 0,c,T,null!=s?s:e.factory.createIdentifier(""),E,h,D,b,o):void 0}}function a(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var u=d(c,a);u&&(f(r,u.symbols),c=u.typeNode)}return e.getSynthesizedDeepClone(c)}function o(t,r,n,i,a){for(var o=[],s=0;s=i?e.factory.createToken(57):void 0,a?void 0:n&&n[s]||e.factory.createKeywordTypeNode(129),void 0);o.push(c)}return o}function s(t){return c(e.Diagnostics.Method_not_implemented.message,t)}function c(t,r){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(t,0===r)]))],!0)}function u(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=_(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=n;s0)return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,r,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="fixAddModuleReferTypeMissingTypeof",n=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(100===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(198===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="wrapJsxInFragment",n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,r){var n=e.getTokenAtPosition(t,r).parent.parent;if((e.isBinaryExpression(n)||(n=n.parent,e.isBinaryExpression(n)))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=function(t){var r=[],n=t;for(;;){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&27===n.operatorToken.kind){if(r.push(n.left),e.isJsxChild(n.right))return r.push(n.right),r;if(e.isBinaryExpression(n.right)){n=n.right;continue}return}return}}(n);i&&t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(r){var n="fixConvertToMappedObjectType",i=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function a(t,r){var n=e.getTokenAtPosition(t,r),i=e.cast(n.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(i.parent))return{indexSignature:i,container:e.isInterfaceDeclaration(i.parent)?i.parent:e.cast(i.parent.parent,e.isTypeAliasDeclaration)}}function o(r,n,i){var a=i.indexSignature,o=i.container,s=(e.isInterfaceDeclaration(o)?o.members:o.type.members).filter((function(t){return!e.isIndexSignatureDeclaration(t)})),c=e.first(a.parameters),u=e.factory.createTypeParameterDeclaration(e.cast(c.name,e.isIdentifier),c.type),l=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(a)?e.factory.createModifier(143):void 0,u,void 0,a.questionToken,a.type),_=e.factory.createIntersectionTypeNode(t(t(t([],e.getAllSuperTypeNodes(o),!0),[l],!1),s.length?[e.factory.createTypeLiteralNode(s)]:e.emptyArray,!0));r.replaceNode(n,o,function(t,r){return e.factory.createTypeAliasDeclaration(t.decorators,t.modifiers,t.name,t.typeParameters,r)}(o,_))}r.registerCodeFix({errorCodes:i,getCodeActions:function(t){var i=t.sourceFile,s=t.span,c=a(i,s.start);if(c){var u=e.textChanges.ChangeTracker.with(t,(function(e){return o(e,i,c)})),l=e.idText(c.container.name);return[r.createCodeFixAction(n,u,[e.Diagnostics.Convert_0_to_mapped_object_type,l],n,[e.Diagnostics.Convert_0_to_mapped_object_type,l])]}},fixIds:[n],getAllCodeActions:function(e){return r.codeFixAll(e,i,(function(e,t){var r=a(t.file,t.start);r&&o(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="removeAccidentalCallParentheses",n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,(function(e){e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})}));return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r]})}(s||(s={})),function(e){!function(t){var r="removeUnnecessaryAwait",n=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),(function(e){return 131===e.kind})),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,r);c&&103!==c.kind&&(o=a.parent)}}t.replaceNode(r,o,a.expression)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unnecessary_await,r,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],n="splitTypeOnlyImport";function i(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function a(t,r,n){if(r){var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.decorators,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.sourceFile,r.span),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(e.sourceFile,r),e)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="fixConvertConstToLet",n=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=n.program,s=function(t,r,n){var i,a=n.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(t,r)),o=e.tryCast(null===(i=null==a?void 0:a.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==o){var s=e.findChildOfKind(o,85,t);if(void 0!==s)return e.createRange(s.pos,s.end)}}(i,a.start,o);if(void 0!==s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return function(e,t,r){e.replaceRangeWithText(t,r,"let")}(e,i,s)}));return[t.createCodeFixAction(r,c,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_const_to_let)]}},fixIds:[r]})}(s||(s={})),function(e){!function(t){var r="fixExpectedComma",n=[e.Diagnostics._0_expected.code];function i(t,r,n){var i=e.getTokenAtPosition(t,r);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,r,n){var i=n.node,a=e.factory.createToken(27);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,r.code);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var r="addVoidToPromise",n=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),u=null==c?void 0:c.valueDeclaration;if(u&&e.isParameter(u)&&e.isNewExpression(u.parent.parent)&&!(null==a?void 0:a.has(u))){null==a||a.add(u);var l=function(t){var r;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var n=null===(r=e.getJSDocTypeTag(t.parent))||void 0===r?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Promise"===e.idText(n.typeName))return n.typeArguments}}(u.parent.parent);if(e.some(l)){var _=l[0],d=!e.isUnionTypeNode(_)&&!e.isParenthesizedTypeNode(_)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([_,e.factory.createKeywordTypeNode(114)]).types[0]);d&&t.insertText(r,_.pos,"("),t.insertText(r,_.end,d?") | void":" | void")}else{var p=s.getResolvedSignature(o.parent),f=null==p?void 0:p.parameters[0],g=f&&s.getTypeOfSymbolAtLocation(f,u.parent.parent);e.isInJSFile(u)?(!g||3&g.flags)&&(t.insertText(r,u.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,u.parent.parent.pos),"/** @type {Promise} */(")):(!g||2&g.flags)&&t.insertText(r,u.parent.parent.expression.end,"")}}}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span,n.program)}));if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){return i(t,n.file,n,r.program,new e.Set)}))}})}(e.codefix||(e.codefix={}))}(s||(s={})),function(e){!function(t){var n="Convert export",i={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},a={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=e.getTokenAtPosition(n,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&r?o.parent:e.getParentNodeInSpan(o,n,a);if(!(s&&(e.isSourceFile(s.parent)||e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent))))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=e.isSourceFile(s.parent)?s.parent.symbol:s.parent.parent.symbol,u=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?513:0),l=!!(512&u);if(!(1&u)||!l&&c.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var _=i.getTypeChecker(),d=function(t){return e.isIdentifier(t)&&_.getSymbolAtLocation(t)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(s.kind){case 254:case 255:case 256:case 258:case 257:case 259:if(!(g=s).name)return;return d(g.name)||{exportNode:g,exportName:g.name,wasDefault:l,exportingModuleSymbol:c};case 235:var p=s;if(!(2&p.declarationList.flags)||1!==p.declarationList.declarations.length)return;var f=e.first(p.declarationList.declarations);if(!f.initializer)return;return e.Debug.assert(!l,"Can't have a default flag here"),d(f.name)||{exportNode:p,exportName:f.name,wasDefault:l,exportingModuleSymbol:c};case 269:var g;if((g=s).isExportEquals)return;return d(g.expression)||{exportNode:g,exportName:g.expression,wasDefault:l,exportingModuleSymbol:c};default:return}}function s(t,r){return e.factory.createImportSpecifier(t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}function c(t,r){return e.factory.createExportSpecifier(t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor(n,{kinds:[i.kind,a.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c)){var u=c.wasDefault?i:a;return[{name:n,description:u.description,actions:[u]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:n,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[r(r({},i),{notApplicableReason:c.error}),r(r({},a),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(r,n){e.Debug.assert(n===i.name||n===a.name,"Unexpected action name");var u=o(r);return e.Debug.assert(u&&!t.isRefactorErrorInfo(u),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){(function(t,r,n,i){var a=r.wasDefault,o=r.exportNode,s=r.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var u=o.expression,l=c(u.text,u.text);n.replaceNode(t,o,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([l])))}else n.delete(t,e.Debug.checkDefined(e.findModifier(o,88),"Should find a default keyword in modifier list"));else{var _=e.Debug.checkDefined(e.findModifier(o,93),"Should find an export keyword in modifier list");switch(o.kind){case 254:case 255:case 256:n.insertNodeAfter(t,_,e.factory.createToken(88));break;case 235:var d=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)&&!d.type){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(d.initializer,"Initializer was previously known to be present")));break}case 258:case 257:case 259:n.deleteModifier(t,_),n.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.fail("Unexpected exportNode kind "+o.kind)}}})(t,n,i,r.getTypeChecker()),function(t,r,n,i){var a=r.wasDefault,o=r.exportName,u=r.exportingModuleSymbol,l=t.getTypeChecker(),_=e.Debug.checkDefined(l.getSymbolAtLocation(o),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),l,i,_,u,o.text,a,(function(t){var r=t.getSourceFile();a?function(t,r,n,i){var a=r.parent;switch(a.kind){case 204:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 268:case 273:var o=a;n.replaceNode(t,o,s(i,o.name.text));break;case 265:var c=a;e.Debug.assert(c.name===r,"Import clause name should match provided ref");o=s(i,r.text);var u=c.namedBindings;if(u)if(266===u.kind){n.deleteRange(t,{pos:r.getStart(t),end:u.getStart(t)});var l=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,_=e.makeImport(void 0,[s(i,r.text)],c.parent.moduleSpecifier,l);n.insertNodeAfter(t,c.parent,_)}else n.delete(t,r),n.insertNodeAtEndOfList(t,u.elements,o);else n.replaceNode(t,r,e.factory.createNamedImports([o]));break;default:e.Debug.failBadSyntaxKind(a)}}(r,t,n,o.text):function(t,r,n){var i=r.parent;switch(i.kind){case 204:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 268:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 273:n.replaceNode(t,i,c("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind "+i.kind)}}(r,t,n)}))}(r,n,i,a)}(r.file,r.program,u,t,r.cancellationToken)})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(s||(s={})),function(e){!function(t){var n="Convert import",i={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},a={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};if(!(o.getEnd()=u.pos?d.getEnd():u.getEnd()),g=o?function(e){for(;e.parent;){if(c(e)&&!c(e.parent))return e;e=e.parent}}(u):function(e,t){for(;e.parent;){if(c(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(u,f),m=g&&c(g)?function(t){if(s(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&s(n)?n:void 0}return t.expression&&s(t.expression)?t.expression:void 0}(g):void 0;if(!m)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var y=i.getTypeChecker();return e.isConditionalExpression(m)?function(t,r){var n=t.condition,i=p(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&_(n,i.expression))return{finalExpression:i,occurrences:[n],expression:t};if(e.isBinaryExpression(n)){var a=l(i.expression,n);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(m,y):function(t){if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=p(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=l(r.expression,t.left);return n?{finalExpression:r,occurrences:n,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(m)}}function l(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=_(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=_(t,r);return a&&n.push(a),n.length>0?n:void 0}function _(t,r){if(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))return function(t,r){for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&d(t)!==d(r);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r);){if(d(t)!==d(r))return!1;t=t.expression,r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()}(t,r)?r:void 0}function d(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?d(t.name):e.isElementAccessExpression(t)?d(t.argumentExpression):void 0}function p(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?p(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function f(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)||e.isCallExpression(r)){var i=f(t,r.expression,n),a=n.length>0?n[n.length-1]:void 0,o=(null==a?void 0:a.getText())===r.expression.getText();if(o&&n.pop(),e.isCallExpression(r))return o?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(e.isElementAccessExpression(r))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}t.registerRefactor(i,{kinds:[o.kind],getAvailableActions:function(n){var s=u(n,"invoked"===n.triggerReason);return s?t.isRefactorErrorInfo(s)?n.preferences.provideRefactorNotApplicableReason?[{name:i,description:a,actions:[r(r({},o),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:i,description:a,actions:[o]}]:e.emptyArray},getEditsForAction:function(r,n){var i=u(r);return e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){var o=i.finalExpression,s=i.occurrences,c=i.expression,u=s[s.length-1],l=f(r,o,s);l&&(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l)||e.isCallExpression(l))&&(e.isBinaryExpression(c)?n.replaceNodeRange(t,u,o,l):e.isConditionalExpression(c)&&n.replaceNode(t,c,e.factory.createBinaryExpression(l,e.factory.createToken(60),c.whenFalse)))}(r.file,r.program.getTypeChecker(),t,i)})),renameFilename:void 0,renameLocation:void 0}}})})((t=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))}(s||(s={})),function(e){var t;(function(r){var n="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message,a={name:n,description:i,kind:"refactor.rewrite.function.overloadList"};function o(e){switch(e.kind){case 166:case 167:case 172:case 169:case 173:case 254:return!0}return!1}function s(t,r,n){var i=e.getTokenAtPosition(t,r),a=e.findAncestor(i,o);if(a){var s=n.getTypeChecker(),c=a.symbol;if(c){var u=c.declarations;if(!(e.length(u)<=1)&&e.every(u,(function(r){return e.getSourceFileOfNode(r)===t}))&&o(u[0])){var l=u[0].kind;if(e.every(u,(function(e){return e.kind===l}))){var _=u;if(!e.some(_,(function(t){return!!t.typeParameters||e.some(t.parameters,(function(t){return!!t.decorators||!!t.modifiers||!e.isIdentifier(t.name)}))}))){var d=e.mapDefined(_,(function(e){return s.getSignatureFromDeclaration(e)}));if(e.length(d)===e.length(u)){var p=s.getReturnTypeOfSignature(d[0]);if(e.every(d,(function(e){return s.getReturnTypeOfSignature(e)===p})))return _}}}}}}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(t){var r=t.file,n=t.startPosition,i=t.program,a=s(r,n,i);if(a){var o=i.getTypeChecker(),c=a[a.length-1],u=c;switch(c.kind){case 166:u=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,_(a),c.type);break;case 167:u=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,_(a),c.type,c.body);break;case 172:u=e.factory.updateCallSignature(c,c.typeParameters,_(a),c.type);break;case 169:u=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,_(a),c.body);break;case 173:u=e.factory.updateConstructSignature(c,c.typeParameters,_(a),c.type);break;case 254:u=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,_(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(u!==c){var l=e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNodeRange(r,a[0],a[a.length-1],u)}));return{renameFilename:void 0,renameLocation:void 0,edits:l}}}function _(t){var r=t[t.length-1];return e.isFunctionLikeDeclaration(r)&&r.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,d)))])}function d(t){var r=e.map(t.parameters,p);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(function(t){return!!e.length(e.getSyntheticLeadingComments(t))}))?0:1)}function p(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(129)),t),n=t.symbol&&t.symbol.getDocumentationComment(o);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n"+i.split("\n").map((function(e){return" * "+e})).join("\n")+"\n ",kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:function(t){var r=t.file,o=t.startPosition,c=t.program;return s(r,o,c)?[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(s||(s={})),function(e){var t;(function(n){var i,a,o,s,c="Extract Symbol",u={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},l={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function _(n){var i=n.kind,a=p(n.file,e.getRefactorContextSpan(n),"invoked"===n.triggerReason),o=a.targetRange;if(void 0===o){if(!a.errors||0===a.errors.length||!n.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var s=[];return t.refactorKindBeginsWith(l.kind,i)&&s.push({name:c,description:l.description,actions:[r(r({},l),{notApplicableReason:F(a.errors)})]}),t.refactorKindBeginsWith(u.kind,i)&&s.push({name:c,description:u.description,actions:[r(r({},u),{notApplicableReason:F(a.errors)})]}),s}var _=function(t,r){var n=m(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope;return i.map((function(t,r){var n,i,a=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),u=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 169:return"constructor";case 211:case 254:return t.name?"function '"+t.name.text+"'":e.ANONYMOUS;case 212:return"arrow function";case 167:return"method '"+t.name.getText()+"'";case 170:return"'get "+t.name.getText()+"'";case 171:return"'set "+t.name.getText()+"'";default:throw e.Debug.assertNever(t,"Unexpected scope kind "+t.kind)}}(t):e.isClassLike(t)?function(e){return 255===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}(t):function(e){return 260===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(t);return 1===u?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===u?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,u]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,u])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}}))}(o,n);if(void 0===_)return e.emptyArray;for(var d,f,g=[],y=new e.Map,v=[],h=new e.Map,D=0,b=0,x=_;b0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(t)]);if(s||i.size){var l=e.visitNodes(u,d).slice();if(s&&!a&&e.isStatement(t)){var _=h(r,n);1===_.length?l.push(e.factory.createReturnStatement(_[0].name)):l.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(_)))}return{body:e.factory.createBlock(l,!0),returnValueProperty:o}}return{body:e.factory.createBlock(u,!0),returnValueProperty:void 0};function d(t){if(!c&&e.isReturnStatement(t)&&s){var a=h(r,n);return t.expression&&(o||(o="__return"),a.unshift(e.factory.createPropertyAssignment(o,e.visitNode(t.expression,d)))),1===a.length?e.factory.createReturnStatement(a[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(a))}var u=c;c=c||e.isFunctionLikeDeclaration(t)||e.isClassLike(t);var l=i.get(e.getNodeId(t).toString()),_=l?e.getSynthesizedDeepClone(l):e.visitEachChild(t,d,e.nullTransformationContext);return c=u,_}}(t,i,u,d,!!(o.facts&a.HasReturn)),I=w.body,O=w.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(I),e.isClassLike(r)){var M=x?[]:[e.factory.createModifier(121)];o.facts&a.InStaticRegion&&M.push(e.factory.createModifier(124)),o.facts&a.IsAsyncFunction&&M.push(e.factory.createModifier(130)),P=e.factory.createMethodDeclaration(void 0,M.length?M:void 0,o.facts&a.IsGenerator?e.factory.createToken(41):void 0,C,void 0,A,E,c,I)}else P=e.factory.createFunctionDeclaration(void 0,o.facts&a.IsAsyncFunction?[e.factory.createToken(130)]:void 0,o.facts&a.IsGenerator?e.factory.createToken(41):void 0,C,A,E,c,I);var L=e.textChanges.ChangeTracker.fromContext(s),R=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(r),(function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)}))}((D(o.range)?e.last(o.range):o.range).end,r);R?L.insertNodeBefore(s.file,R,P,!0):L.insertNodeAtEndOfScope(s.file,r,P),g.writeFixes(L);var B=[],j=function(t,r,n){var i=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&a.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,i)}return i}(r,o,b),J=e.factory.createCallExpression(j,F,T);if(o.facts&a.IsGenerator&&(J=e.factory.createYieldExpression(e.factory.createToken(41),J)),o.facts&a.IsAsyncFunction&&(J=e.factory.createAwaitExpression(J)),S(t)&&(J=e.factory.createJsxExpression(void 0,J)),i.length&&!u)if(e.Debug.assert(!O,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&a.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===i.length){var K=i[0];B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(K.name),void 0,e.getSynthesizedDeepClone(K.type),J)],K.parent.flags)))}else{for(var z=[],U=[],V=i[0].parent.flags,q=!1,W=0,H=i;W0,"Found no members");for(var a=!0,o=0,s=i;ot)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(t.pos,r);m.insertNodeBefore(o.file,D,v,!0),m.replaceNode(o.file,t,h)}else{var b=e.factory.createVariableDeclaration(_,void 0,p,f),C=function(t,r){for(var n;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(C)m.insertNodeBefore(o.file,C,b),h=e.factory.createIdentifier(_),m.replaceNode(o.file,t,h);else if(236===t.parent.kind&&r===e.findAncestor(t,g)){var E=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([b],2));m.replaceNode(o.file,t.parent,E)}else E=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([b],2)),0===(D=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)g(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(x(i)){for(var a=void 0,o=0,s=i.statements;ot.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r)).pos?m.insertNodeAtTopOfFile(o.file,E,!1):m.insertNodeBefore(o.file,D,E,!1),236===t.parent.kind?m.delete(o.file,t.parent):(h=e.factory.createIdentifier(_),S(t)&&(h=e.factory.createJsxExpression(void 0,h)),m.replaceNode(o.file,t,h))}var T=m.getChanges(),k=t.getSourceFile().fileName,A=e.getRenameLocation(T,k,_,!0);return{renameFilename:k,renameLocation:A,edits:T};function F(n,i){if(void 0===n)return{variableType:n,initializer:i};if(!e.isFunctionExpression(i)&&!e.isArrowFunction(i)||i.typeParameters)return{variableType:n,initializer:i};var a=u.getTypeAtLocation(t),o=e.singleOrUndefined(u.getSignaturesOfType(a,0));if(!o)return{variableType:n,initializer:i};if(o.getTypeParameters())return{variableType:n,initializer:i};for(var s=[],c=!1,l=0,_=i.parameters;l<_.length;l++){var d=_[l];if(d.type)s.push(d);else{var p=u.getTypeAtLocation(d);p===u.getAnyType()&&(c=!0),s.push(e.factory.updateParameterDeclaration(d,d.decorators,d.modifiers,d.dotDotDotToken,d.name,d.questionToken,d.type||u.typeToTypeNode(p,r,1),d.initializer))}}if(c)return{variableType:n,initializer:i};if(n=void 0,e.isArrowFunction(i))i=e.factory.updateArrowFunction(i,t.modifiers,i.typeParameters,s,i.type||u.typeToTypeNode(o.getReturnType(),r,1),i.equalsGreaterThanToken,i.body);else{if(o&&o.thisParameter){var f=e.firstOrUndefined(s);if(!f||e.isIdentifier(f.name)&&"this"!==f.name.escapedText){var g=u.getTypeOfSymbolAtLocation(o.thisParameter,t);s.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,u.typeToTypeNode(g,r,1)))}}i=e.factory.updateFunctionExpression(i,t.modifiers,i.asteriskToken,i.name,i.typeParameters,s,i.type||u.typeToTypeNode(o.getReturnType(),r,1),i.body)}return{variableType:n,initializer:i}}}(e.isExpression(c)?c:c.statements[0].expression,o[n],u[n],t.facts,r)}(n,t,o);e.Debug.fail("Unrecognized action name")}function p(t,r,n){void 0===n&&(n=!0);var o=r.length;if(0===o&&!n)return{errors:[e.createFileDiagnostic(t,r.start,o,i.cannotExtractEmpty)]};var s=0===o&&n,c=e.findFirstNonJsxWhitespaceToken(t,r.start),u=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),l=c&&u&&n?function(e,t,r){var n=e.getStart(r),i=t.getEnd();return 59===r.text.charCodeAt(i)&&i++,{start:n,length:i-n}}(c,u,t):r,_=s?function(t){return e.findAncestor(t,(function(t){return t.parent&&b(t)&&!e.isBinaryExpression(t.parent)}))}(c):e.getParentNodeInSpan(c,t,l),d=s?_:e.getParentNodeInSpan(u,t,l),p=[],g=a.None;if(!_||!d)return{errors:[e.createFileDiagnostic(t,r.start,o,i.cannotExtractRange)]};if(e.isJSDoc(_))return{errors:[e.createFileDiagnostic(t,r.start,o,i.cannotExtractJSDoc)]};if(_.parent!==d.parent)return{errors:[e.createFileDiagnostic(t,r.start,o,i.cannotExtractRange)]};if(_!==d){if(!x(_.parent))return{errors:[e.createFileDiagnostic(t,r.start,o,i.cannotExtractRange)]};for(var m=[],y=0,v=_.parent.statements;y=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(n,i.cannotExtractSuper)),!0}else g|=a.UsesThis;break;case 212:e.forEachChild(n,(function t(r){if(e.isThis(r))g|=a.UsesThis;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 255:case 254:e.isSourceFile(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(n,i.functionWillNotBeVisibleInTheNewScope));case 224:case 211:case 167:case 169:case 170:case 171:return!1}var _=u;switch(n.kind){case 237:case 250:u=0;break;case 233:n.parent&&250===n.parent.kind&&n.parent.finallyBlock===n&&(u=4);break;case 288:case 287:u|=1;break;default:e.isIterationStatement(n,!1)&&(u|=3)}switch(n.kind){case 190:case 108:g|=a.UsesThis;break;case 248:var d=n.label;(c||(c=[])).push(d.escapedText),e.forEachChild(n,t),c.pop();break;case 244:case 243:(d=n.label)?e.contains(c,d.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(n,i.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(244===n.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(n,i.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 216:g|=a.IsAsyncFunction;break;case 222:g|=a.IsGenerator;break;case 245:4&u?g|=a.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(n,i.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(n,t)}u=_}(t),o}}function f(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}function g(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function m(t,r){var n=r.file,o=function(t){var r=D(t.range)?e.first(t.range):t.range;if(t.facts&a.UsesThis){var n=e.getContainingClass(r);if(n){var i=e.findAncestor(r,e.isFunctionLikeDeclaration);return i?[i,n]:[n]}}for(var o=[];;)if(162===(r=r.parent).kind&&(r=e.findAncestor(r,(function(t){return e.isFunctionLikeDeclaration(t)})).parent),g(r)&&(o.push(r),300===r.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,r,n,o,s,c){var u,l,_=new e.Map,d=[],p=[],f=[],g=[],m=[],y=new e.Map,v=[],h=D(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===h){var b=t.range,x=e.first(b).getStart(),S=e.last(b).end;l=e.createFileDiagnostic(o,x,S-x,i.expressionExpected)}else 147456&s.getTypeAtLocation(h).flags&&(l=e.createDiagnosticForNode(h,i.uselessConstantType));for(var C=0,E=r;C0){for(var w=new e.Map,I=0,O=N;void 0!==O&&I0&&(n.usages.size>0||n.typeParameterUsages.size>0)){var a=D(t.range)?t.range[0]:t.range;g[r].push(e.createDiagnosticForNode(a,i.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(d[r].usages.forEach((function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))})),e.Debug.assert(D(t.range)||0===v.length,"No variable declarations expected if something was extracted"),s&&!D(t.range)){var c=e.createDiagnosticForNode(t.range,i.cannotWriteInExpression);f[r].push(c),g[r].push(c)}else o&&r>0?(c=e.createDiagnosticForNode(o,i.cannotExtractReadonlyPropertyInitializerOutsideConstructor),f[r].push(c),g[r].push(c)):u&&(c=e.createDiagnosticForNode(u,i.cannotExtractExportedEntity),f[r].push(c),g[r].push(c))},K=0;K=u)return m;if(A.set(m,u),y){for(var v=0,h=d;v=0)){var n=e.isIdentifier(r)?G(r):s.getSymbolAtLocation(r);if(n){var i=e.find(m,(function(e){return e.symbol===n}));if(i)if(e.isVariableDeclaration(i)){var a=i.symbol.id.toString();y.has(a)||(v.push(i),y.set(a,!0))}else u=u||i}e.forEachChild(r,H)}}function G(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function Y(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some((function(e){return e.parent===r})))return e.factory.createIdentifier(t.name);var a=Y(t.parent,r,n);if(void 0!==a)return n?e.factory.createQualifiedName(a,e.factory.createIdentifier(t.name)):e.factory.createPropertyAccessExpression(a,t.name)}}}(t,o,function(t,r){return D(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}(t,n),n,r.program.getTypeChecker(),r.cancellationToken)}}function y(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;nn.pos}));if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,(function(e){return e.end>n.end}),a);if(-1===s||!(0===s||i[s].getStart(r)=2&&e.every(t,(function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)}(t,r)}))}(t.parameters,r))return!1;switch(t.kind){case 254:return m(t)&&g(t,r);case 167:if(e.isObjectLiteralExpression(t.parent)){var i=s(t.name,r);return 1===(null===(n=null==i?void 0:i.declarations)||void 0===n?void 0:n.length)&&g(t,r)}return g(t,r);case 169:return e.isClassDeclaration(t.parent)?m(t.parent)&&g(t,r):y(t.parent.parent)&&g(t,r);case 211:case 212:return y(t.parent)}return!1}(a,n)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function f(t){return e.isMethodSignature(t)&&(e.isInterfaceDeclaration(t.parent)||e.isTypeLiteralNode(t.parent))}function g(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function m(t){return!!t.name||!!e.findModifier(t,88)}function y(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function v(t){return t.length>0&&e.isThis(t[0].name)}function h(t){return v(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function D(t,r){var n=h(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,(function(t,r){var i=function(t,r){return e.isIdentifier(r)&&e.getTextOfIdentifierOrLiteral(r)===t?e.factory.createShorthandPropertyAssignment(t):e.factory.createPropertyAssignment(t,r)}(x(n[r]),t);return e.suppressLeadingAndTrailingTrivia(i.name),e.isPropertyAssignment(i)&&e.suppressLeadingAndTrailingTrivia(i.initializer),e.copyComments(t,i),i}));if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.factory.createPropertyAssignment(x(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function b(t,r,n){var i,a,o,s=r.getTypeChecker(),c=h(t.parameters),u=e.map(c,(function(t){var r=e.factory.createBindingElement(void 0,void 0,x(t),e.isRestParameter(t)&&m(t)?e.factory.createArrayLiteralExpression():t.initializer);return e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer),r})),l=e.factory.createObjectBindingPattern(u),_=(i=c,a=e.map(i,g),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,m)&&(o=e.factory.createObjectLiteralExpression());var d=e.factory.createParameterDeclaration(void 0,void 0,void 0,l,void 0,_,o);if(v(t.parameters)){var p=t.parameters[0],f=e.factory.createParameterDeclaration(void 0,void 0,void 0,p.name,void 0,p.type);return e.suppressLeadingAndTrailingTrivia(f.name),e.copyComments(p.name,f.name),p.type&&(e.suppressLeadingAndTrailingTrivia(f.type),e.copyComments(p.type,f.type)),e.factory.createNodeArray([f,d])}return e.factory.createNodeArray([d]);function g(t){var i=t.type;i||!t.initializer&&!e.isRestParameter(t)||(i=function(t){var i=s.getTypeAtLocation(t);return e.getTypeNodeIfAccessible(i,t,r,n)}(t));var a=e.factory.createPropertySignature(void 0,x(t),m(t)?e.factory.createToken(57):t.questionToken,i);return e.suppressLeadingAndTrailingTrivia(a),e.copyComments(t.name,a.name),t.type&&a.type&&e.copyComments(t.type,a.type),a}function m(t){if(e.isRestParameter(t)){var r=s.getTypeAtLocation(t);return!s.isTupleType(r)}return s.isOptionalParameter(t)}}function x(t){return e.getTextOfIdentifierOrLiteral(t.name)}r.registerRefactor(i,{kinds:[o.kind],getEditsForAction:function(r,n){e.Debug.assert(n===i,"Unexpected action name");var a=r.file,o=r.startPosition,g=r.program,m=r.cancellationToken,y=r.host,v=p(a,o,g.getTypeChecker());if(v&&m){var h=function(r,n,i){var a=function(t){switch(t.kind){case 254:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,88),"Nameless function declaration should be a default export")];case 167:return[t.name];case 169:var r=e.Debug.checkDefined(e.findChildOfKind(t,133,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 224===t.parent.kind?[t.parent.parent.name,r]:[r];case 212:return[t.parent.name];case 211:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind "+t.kind)}}(r),o=e.isConstructorDeclaration(r)?function(t){switch(t.parent.kind){case 255:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,88),"Nameless class declaration should be a default export")];case 224:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}}(r):[],p=e.deduplicate(t(t([],a,!0),o,!0),e.equateValues),g=n.getTypeChecker(),m=y(e.flatMap(p,(function(t){return e.FindAllReferences.getReferenceEntriesForNode(-1,t,n,n.getSourceFiles(),i)})));return e.every(m.declarations,(function(t){return e.contains(p,t)}))||(m.valid=!1),m;function y(t){for(var n={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:n,valid:!0},p=e.map(a,v),m=e.map(o,v),y=e.isConstructorDeclaration(r),h=e.map(a,(function(e){return s(e,g)})),D=0,b=t;D0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}}}(n,r,a),s=p(0,n),c=s[0],u=s[1],l=s[2],_=s[3];if(c===n.length){var g=e.factory.createNoSubstitutionTemplateLiteral(u,l);return o(_,g),g}var m=[],y=e.factory.createTemplateHead(u,l);o(_,y);for(var v,h=function(t){var r=function(t){return e.isParenthesizedExpression(t)&&(f(t),t=t.expression),t}(n[t]);a(t,r);var i=p(t+1,n),s=i[0],c=i[1],u=i[2],l=i[3],_=(t=s-1)==n.length-1;if(e.isTemplateExpression(r)){var g=e.map(r.templateSpans,(function(t,n){f(t);var i=n===r.templateSpans.length-1,a=t.literal.text+(i?c:""),o=d(t.literal)+(i?u:"");return e.factory.createTemplateSpan(t.expression,_?e.factory.createTemplateTail(a,o):e.factory.createTemplateMiddle(a,o))}));m.push.apply(m,g)}else{var y=_?e.factory.createTemplateTail(c,u):e.factory.createTemplateMiddle(c,u);o(l,y),m.push(e.factory.createTemplateSpan(r,y))}v=t},D=c;D1)return t.getUnionType(e.mapDefined(n,(function(e){return e.getReturnType()})))}var i=t.getSignatureFromDeclaration(r);if(i)return t.getReturnTypeOfSignature(i)}(a,i);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=a.typeToTypeNode(s,i,1);return c?{declaration:i,returnTypeNode:c}:void 0}}t.registerRefactor(i,{kinds:[o.kind],getEditsForAction:function(r){var n=s(r);if(n&&!t.isRefactorErrorInfo(n))return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(function(t){return i=r.file,a=t,o=n.declaration,s=n.returnTypeNode,c=e.findChildOfKind(o,21,i),u=e.isArrowFunction(o)&&void 0===c,void((l=u?e.first(o.parameters):c)&&(u&&(a.insertNodeBefore(i,l,e.factory.createToken(20)),a.insertNodeAfter(i,l,e.factory.createToken(21))),a.insertNodeAt(i,l.end,s,{prefix:": "})));var i,a,o,s,c,u,l}))}},getAvailableActions:function(n){var c=s(n);return c?t.isRefactorErrorInfo(c)?n.preferences.provideRefactorNotApplicableReason?[{name:i,description:a,actions:[r(r({},o),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:i,description:a,actions:[o]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).inferFunctionReturnType||(t.inferFunctionReturnType={}))}(s||(s={})),function(e){function n(t,r,n,a){var o=e.isNodeKind(t)?new i(t,r,n):79===t?new l(79,r,n):80===t?new _(80,r,n):new u(t,r,n);return o.parent=a,o.flags=25358336&a.flags,o}e.servicesVersion="0.8";var i=function(){function t(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return t.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},t.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},t.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},t.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(e){return this.getChildren(e).length},t.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},t.prototype.getChildren=function(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=function(t,r){if(!e.isNodeKind(t.kind))return e.emptyArray;var i=[];if(e.isJSDocCommentContainingNode(t))return t.forEachChild((function(e){i.push(e)})),i;e.scanner.setText((r||t.getSourceFile()).text);var o=t.pos,s=function(e){a(i,o,e.pos,t),i.push(e),o=e.end},c=function(e){a(i,o,e.pos,t),i.push(function(e,t){var r=n(343,e.pos,e.end,t);r._children=[];for(var i=e.pos,o=0,s=e;o342}));return n.kind<159?n:n.getFirstToken(t)}},t.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<159?n:n.getLastToken(t)},t.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},t}();function a(t,r,i,a){for(e.scanner.setTextPos(r);r=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild((function i(a){switch(a.kind){case 254:case 211:case 167:case 166:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);r||t.set(e,r=[]);return r}(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 255:case 224:case 256:case 257:case 258:case 259:case 263:case 273:case 268:case 265:case 266:case 170:case 171:case 180:r(a),e.forEachChild(a,i);break;case 162:if(!e.hasSyntacticModifier(a,16476))break;case 252:case 201:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 294:case 165:case 164:r(a);break;case 270:var _=a;_.exportClause&&(e.isNamedExports(_.exportClause)?e.forEach(_.exportClause.elements,i):i(_.exportClause.name));break;case 264:var d=a.importClause;d&&(d.name&&r(d.name),d.namedBindings&&(266===d.namedBindings.kind?r(d.namedBindings):e.forEach(d.namedBindings.elements,i)));break;case 219:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}})),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(i),v=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function h(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!D(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[D(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function D(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function b(){return{target:1,jsx:1}}e.toEditorSettings=h,e.displayPartsToString=function(t){return t?e.map(t,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=b,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var x=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var n=0,i=t.getScriptFileNames();n=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},t}();e.ThrottledCancellationToken=F;var N=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],P=t(t([],N,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function w(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(160===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(t.parent)||203!==t.parent.parent.kind&&284!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}return}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function I(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,(function(n){return(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)}));if(i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a)))return[o];return 0===s.length?e.mapDefined(n.types,(function(e){return e.getProperty(a)})):s}e.createLanguageService=function(n,i,a){var o,s;void 0===i&&(i=e.createDocumentRegistry(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),n.getCurrentDirectory())),s=void 0===a?e.LanguageServiceMode.Semantic:"boolean"==typeof a?a?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:a;var c,u,l=new S(n),_=0,d=n.getCancellationToken?new A(n.getCancellationToken()):k,p=n.getCurrentDirectory();function f(e){n.log&&n.log(e)}!e.localizedDiagnosticMessages&&n.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(n.getLocalizedDiagnosticMessages());var g=e.hostUsesCaseSensitiveFileNames(n),m=e.createGetCanonicalFileName(g),y=e.getSourceMapper({useCaseSensitiveFileNames:function(){return g},getCurrentDirectory:function(){return p},getProgram:b,fileExists:e.maybeBind(n,n.fileExists),readFile:e.maybeBind(n,n.readFile),getDocumentPositionMapper:e.maybeBind(n,n.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(n,n.getSourceFileLike),log:f});function v(e){var t=c.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '"+e+"'.");throw r.ProgramFiles=c.getSourceFiles().map((function(e){return e.fileName})),r}return t}function D(){var t,r,a;if(e.Debug.assert(s!==e.LanguageServiceMode.Syntactic),n.getProjectVersion){var o=n.getProjectVersion();if(o){if(u===o&&!(null===(t=n.hasChangedAutomaticTypeDirectiveNames)||void 0===t?void 0:t.call(n)))return;u=o}}var l=n.getTypeRootsVersion?n.getTypeRootsVersion():0;_!==l&&(f("TypeRoots version has changed; provide new program"),c=void 0,_=l);var v,h=new x(n,m),D=h.getRootFileNames(),b=n.getCompilationSettings()||{target:1,jsx:1},S=n.hasInvalidatedResolution||e.returnFalse,C=e.maybeBind(n,n.hasChangedAutomaticTypeDirectiveNames),E=null===(r=n.getProjectReferences)||void 0===r?void 0:r.call(n),T={useCaseSensitiveFileNames:g,fileExists:P,readFile:w,readDirectory:I,trace:e.maybeBind(n,n.trace),getCurrentDirectory:function(){return p},onUnRecoverableConfigFileDiagnostic:e.noop};if(!e.isProgramUptoDate(c,D,b,(function(e,t){return n.getScriptVersion(t)}),P,S,C,N,E)){var k={getSourceFile:M,getSourceFileByPath:L,getCancellationToken:function(){return d},getCanonicalFileName:m,useCaseSensitiveFileNames:function(){return g},getNewLine:function(){return e.getNewLineCharacter(b,(function(){return e.getNewLineOrDefaultFromHost(n)}))},getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return p},fileExists:P,readFile:w,getSymlinkCache:e.maybeBind(n,n.getSymlinkCache),realpath:e.maybeBind(n,n.realpath),directoryExists:function(t){return e.directoryProbablyExists(t,n)},getDirectories:function(e){return n.getDirectories?n.getDirectories(e):[]},readDirectory:I,onReleaseOldSourceFile:O,onReleaseParsedCommandLine:function(e,t,r){var i;n.getParsedCommandLine?null===(i=n.onReleaseParsedCommandLine)||void 0===i||i.call(n,e,t,r):t&&O(t.sourceFile,r)},hasInvalidatedResolution:S,hasChangedAutomaticTypeDirectiveNames:C,trace:T.trace,resolveModuleNames:e.maybeBind(n,n.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(n,n.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(n,n.useSourceOfProjectReferenceRedirect),getParsedCommandLine:N};null===(a=n.setCompilerHost)||void 0===a||a.call(n,k);var A=i.getKeyForCompilationSettings(b),F={rootNames:D,options:b,host:k,oldProgram:c,projectReferences:E};return c=e.createProgram(F),h=void 0,v=void 0,y.clearCache(),void c.getTypeChecker()}function N(t){var r=e.toPath(t,p,m),i=null==v?void 0:v.get(r);if(void 0!==i)return i||void 0;var a=n.getParsedCommandLine?n.getParsedCommandLine(t):function(t){var r=M(t,100);return r?(r.path=e.toPath(t,p,m),r.resolvedPath=r.path,r.originalFileName=r.fileName,e.parseJsonSourceFileConfigFileContent(r,T,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),p),void 0,e.getNormalizedAbsolutePath(t,p))):void 0}(t);return(v||(v=new e.Map)).set(r,a||!1),a}function P(t){var r=e.toPath(t,p,m),i=h&&h.getEntryByPath(r);return i?!e.isString(i):!!n.fileExists&&n.fileExists(t)}function w(t){var r=e.toPath(t,p,m),i=h&&h.getEntryByPath(r);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):n.readFile&&n.readFile(t)}function I(t,r,i,a,o){return e.Debug.checkDefined(n.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(t,r,i,a,o)}function O(e,t){var r=i.getKeyForCompilationSettings(t);i.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind)}function M(t,r,n,i){return L(t,e.toPath(t,p,m),r,n,i)}function L(t,r,n,a,o){e.Debug.assert(void 0!==h,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var s=h&&h.getOrCreateEntryByPath(t,r);if(s){if(!o){var u=c&&c.getSourceFileByPath(r);if(u){if(s.scriptKind===u.scriptKind)return i.updateDocumentWithKey(t,r,b,A,s.scriptSnapshot,s.version,s.scriptKind);i.releaseDocumentWithKey(u.resolvedPath,i.getKeyForCompilationSettings(c.getCompilerOptions()),u.scriptKind)}}return i.acquireDocumentWithKey(t,r,b,A,s.scriptSnapshot,s.version,s.scriptKind)}}}function b(){if(s!==e.LanguageServiceMode.Syntactic)return D(),c;e.Debug.assert(void 0===c)}function C(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some((function(t){return e.normalizePath(t)===i}))),D();var a=e.mapDefined(n,(function(e){return c.getSourceFile(e)})),o=v(t);return e.DocumentHighlights.getDocumentHighlights(c,d,o,r,a)}function E(t,r,n,i){D();var a=n&&2===n.use?c.getSourceFiles().filter((function(e){return!c.isSourceFileDefaultLibrary(e)})):c.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(c,d,a,t,r,n,i)}var T=new e.Map(e.getEntries(((o={})[18]=19,o[20]=21,o[22]=23,o[31]=29,o)));function F(t){var r;return e.Debug.assertEqual(t.type,"install package"),n.installPackage?n.installPackage({fileName:(r=t.file,e.toPath(r,p,m)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`")}function O(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function M(t,r,n){for(var i=l.getCurrentSourceFile(t),a=[],o=O(i,r),s=o.lineStarts,c=o.firstLine,u=o.lastLine,_=n||!1,d=Number.MAX_VALUE,p=new e.Map,f=new RegExp(/\S/),g=e.isInsideJsxElement(i,s[c]),m=g?"{/*":"//",y=c;y<=u;y++){var v=i.text.substring(s[y],i.getLineEndOfPosition(s[y])),h=f.exec(v);h&&(d=Math.min(d,h.index),p.set(y.toString(),h.index),v.substr(h.index,m.length)!==m&&(_=void 0===n||n))}for(y=c;y<=u;y++)if(c===u||s[y]!==r.end){var D=p.get(y.toString());void 0!==D&&(g?a.push.apply(a,L(t,{pos:s[y]+d,end:i.getLineEndOfPosition(s[y])},_,g)):_?a.push({newText:m,span:{length:0,start:s[y]+d}}):i.text.substr(s[y]+D,m.length)===m&&a.push({newText:"",span:{length:m.length,start:s[y]+D}}))}return a}function L(t,r,n,i){for(var a,o=l.getCurrentSourceFile(t),s=[],c=o.text,u=!1,_=n||!1,d=[],p=r.pos,f=void 0!==i?i:e.isInsideJsxElement(o,p),g=f?"{/*":"/*",m=f?"*/}":"*/",y=f?"\\{\\/\\*":"\\/\\*",v=f?"\\*\\/\\}":"\\*\\/";p<=r.end;){var h=c.substr(p,g.length)===g?g.length:0,D=e.isInComment(o,p+h);if(D)f&&(D.pos--,D.end++),d.push(D.pos),3===D.kind&&d.push(D.end),u=!0,p=D.end+1;else{var b=c.substring(p,r.end).search("("+y+")|("+v+")");_=void 0!==n?n:_||!e.isTextWhiteSpaceLike(c,p,-1===b?r.end:p+b),p=-1===b?r.end+1:p+b+m.length}}if(_||!u){2!==(null===(a=e.isInComment(o,r.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(d,r.pos,e.compareValues),e.insertSorted(d,r.end,e.compareValues);var x=d[0];c.substr(x,g.length)!==g&&s.push({newText:g,span:{length:0,start:x}});for(var S=1;S0?T-m.length:0;h=c.substr(k,m.length)===m?m.length:0;s.push({newText:"",span:{length:g.length,start:T-h}})}return s}function R(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&R(i)}function B(t,r,i,a,o,s){var c="number"==typeof r?[r,void 0]:[r.pos,r.end];return{file:t,startPosition:c[0],endPosition:c[1],program:b(),host:n,formatContext:e.formatting.getFormatContext(a,n),cancellationToken:d,preferences:i,triggerReason:o,kind:s}}T.forEach((function(e,t){return T.set(e.toString(),Number(t))}));var j={dispose:function(){if(c){var t=i.getKeyForCompilationSettings(c.getCompilerOptions());e.forEach(c.getSourceFiles(),(function(e){return i.releaseDocumentWithKey(e.resolvedPath,t,e.scriptKind)})),c=void 0}n=void 0},cleanupSemanticCache:function(){c=void 0},getSyntacticDiagnostics:function(e){return D(),c.getSyntacticDiagnostics(v(e),d).slice()},getSemanticDiagnostics:function(r){D();var n=v(r),i=c.getSemanticDiagnostics(n,d);if(!e.getEmitDeclarations(c.getCompilerOptions()))return i.slice();var a=c.getDeclarationDiagnostics(n,d);return t(t([],i,!0),a,!0)},getSuggestionDiagnostics:function(t){return D(),e.computeSuggestionDiagnostics(v(t),c,d)},getCompilerOptionsDiagnostics:function(){return D(),t(t([],c.getOptionsDiagnostics(d),!0),c.getGlobalDiagnostics(d),!0)},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(d,l.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r,n){return D(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(c,d,v(t),r):e.getSemanticClassifications(c.getTypeChecker(),d,v(t),c.getClassifiableNames(),r)},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(d,l.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r,n){return D(),"original"===(n||"original")?e.getEncodedSemanticClassifications(c.getTypeChecker(),d,v(t),c.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(c,d,v(t),r)},getCompletionsAtPosition:function(t,i,a){void 0===a&&(a=e.emptyOptions);var o=r(r({},e.identity(a)),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});return D(),e.Completions.getCompletionsAtPosition(n,c,f,v(t),i,o,a.triggerCharacter,a.triggerKind,d)},getCompletionEntryDetails:function(t,r,i,a,o,s,u){return void 0===s&&(s=e.emptyOptions),D(),e.Completions.getCompletionEntryDetails(c,f,v(t),r,{name:i,source:o,data:u},n,a&&e.formatting.getFormatContext(a,n),s,d)},getCompletionEntrySymbol:function(t,r,i,a,o){return void 0===o&&(o=e.emptyOptions),D(),e.Completions.getCompletionEntrySymbol(c,f,v(t),r,{name:i,source:a},n,o)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;D();var a=v(t);return e.SignatureHelp.getSignatureHelpItems(c,a,r,i,d)},getQuickInfoAtPosition:function(t,r){D();var n=v(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=c.getTypeChecker(),o=function(t){if(e.isNewExpression(t.parent)&&t.pos===t.parent.pos)return t.parent.expression;if(e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos)return t.parent;return t}(i),s=function(t,r){var n=w(t);if(n){var i=r.getContextualType(n.parent),a=i&&I(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(o,a);if(!s||a.isUnknownSymbol(s)){var u=function(t,r,n){switch(r.kind){case 79:return!e.isLabelName(r)&&!e.isTagName(r)&&!e.isConstTypeReference(r.parent);case 204:case 159:return!e.isInComment(t,n);case 108:case 190:case 106:case 195:return!0;default:return!1}}(n,o,r)?a.getTypeAtLocation(o):void 0;return u&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,n),displayParts:a.runWithCancellationToken(d,(function(t){return e.typeToDisplayParts(t,u,e.getContainerNode(o))})),documentation:u.symbol?u.symbol.getDocumentationComment(a):void 0,tags:u.symbol?u.symbol.getJsDocTags(a):void 0}}var l=a.runWithCancellationToken(d,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(o),o)})),_=l.symbolKind,p=l.displayParts,f=l.documentation,g=l.tags;return{kind:_,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,s),textSpan:e.createTextSpanFromNode(o,n),displayParts:p,documentation:f,tags:g}}},getDefinitionAtPosition:function(t,r){return D(),e.GoToDefinition.getDefinitionAtPosition(c,v(t),r)},getDefinitionAndBoundSpan:function(t,r){return D(),e.GoToDefinition.getDefinitionAndBoundSpan(c,v(t),r)},getImplementationAtPosition:function(t,r){return D(),e.FindAllReferences.getImplementationsAtPosition(c,d,c.getSourceFiles(),v(t),r)},getTypeDefinitionAtPosition:function(t,r){return D(),e.GoToDefinition.getTypeDefinitionAtPosition(c.getTypeChecker(),v(t),r)},getReferencesAtPosition:function(t,r){return D(),E(e.getTouchingPropertyName(v(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return D(),e.FindAllReferences.findReferencedSymbols(c,d,c.getSourceFiles(),v(t),r)},getFileReferences:function(t){return D(),e.FindAllReferences.Core.getReferencesForFileName(t,c,c.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)},getOccurrencesAtPosition:function(t,n){return e.flatMap(C(t,n,[t]),(function(e){return e.highlightSpans.map((function(t){return r(r({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})}))}))},getDocumentHighlights:C,getNameOrDottedNameSpan:function(t,r,n){var i=l.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 204:case 159:case 10:case 95:case 110:case 104:case 106:case 108:case 190:case 79:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(259!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,r){var n=l.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),D();var a=n?[v(n)]:c.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,c.getTypeChecker(),d,t,r,i)},getRenameInfo:function(t,r,n){return D(),e.Rename.getRenameInfo(c,v(t),r,n)},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,l.getCurrentSourceFile(t))},findRenameLocations:function(t,n,i,a,o){D();var s=v(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,n));if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var u=c.parent.parent;return[u.openingElement,u.closingElement].map((function(t){var n=e.createTextSpanFromNode(t.tagName,s);return r({fileName:s.fileName,textSpan:n},e.FindAllReferences.toContextSpan(n,s,t.parent))}))}return E(c,n,{findInStrings:i,findInComments:a,providePrefixAndSuffixTextForRename:o,use:2},(function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,o||!1)}))},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(l.getCurrentSourceFile(t),d)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(l.getCurrentSourceFile(t),d)},getOutliningSpans:function(t){var r=l.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,d)},getTodoComments:function(t,r){D();var n=v(t);d.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/")))for(var c=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,(function(e){return"("+(e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")")})).join("|")+")";return new RegExp(t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),u=void 0;u=c.exec(o);){d.throwIfCancellationRequested();e.Debug.assert(u.length===r.length+3);var l=u[1],_=u.index+l.length;if(e.isInComment(n,_)){for(var p=void 0,f=0;f=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var g=u[2];s.push({descriptor:p,message:g,position:_})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=l.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?T.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort((function(e,t){return e.start-t.start})):e.emptyArray},getIndentationAtPosition:function(t,r,n){var i=e.timestamp(),a=h(n),o=l.getCurrentSourceFile(t);f("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return f("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(t,r,i,a){var o=l.getCurrentSourceFile(t);return e.formatting.formatSelection(r,i,o,e.formatting.getFormatContext(h(a),n))},getFormattingEditsForDocument:function(t,r){return e.formatting.formatDocument(l.getCurrentSourceFile(t),e.formatting.getFormatContext(h(r),n))},getFormattingEditsAfterKeystroke:function(t,r,i,a){var o=l.getCurrentSourceFile(t),s=e.formatting.getFormatContext(h(a),n);if(!e.isInComment(o,r))switch(i){case"{":return e.formatting.formatOnOpeningCurly(r,o,s);case"}":return e.formatting.formatOnClosingCurly(r,o,s);case";":return e.formatting.formatOnSemicolon(r,o,s);case"\n":return e.formatting.formatOnEnter(r,o,s)}return[]},getDocCommentTemplateAtPosition:function(t,r,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(n),l.getCurrentSourceFile(t),r,i)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=l.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition:function(t,r){var n=l.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:void 0;return a&&R(a)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=l.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(t,r,i,a,o,s){void 0===s&&(s=e.emptyOptions),D();var u=v(t),l=e.createTextSpanFromBounds(r,i),_=e.formatting.getFormatContext(o,n);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(t){return d.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:t,sourceFile:u,span:l,program:c,host:n,cancellationToken:d,formatContext:_,preferences:s})}))},getCombinedCodeFix:function(t,r,i,a){void 0===a&&(a=e.emptyOptions),D(),e.Debug.assert("file"===t.type);var o=v(t.fileName),s=e.formatting.getFormatContext(i,n);return e.codefix.getAllFixes({fixId:r,sourceFile:o,program:c,host:n,cancellationToken:d,formatContext:s,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map((function(e){return F(e)}))):F(n)},organizeImports:function(t,r,i){void 0===i&&(i=e.emptyOptions),D(),e.Debug.assert("file"===t.type);var a=v(t.fileName),o=e.formatting.getFormatContext(r,n);return e.OrganizeImports.organizeImports(a,o,n,c,i,t.skipDestructiveCodeActions)},getEditsForFileRename:function(t,r,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(b(),t,r,n,e.formatting.getFormatContext(i,n),a,y)},getEmitOutput:function(t,r,i){D();var a=v(t),o=n.getCustomTransformers&&n.getCustomTransformers();return e.getFileEmitOutput(c,a,!!r,d,o,i)},getNonBoundSourceFile:function(e){return l.getCurrentSourceFile(e)},getProgram:b,getAutoImportProvider:function(){var e;return null===(e=n.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(n)},getApplicableRefactors:function(t,r,n,i,a){void 0===n&&(n=e.emptyOptions),D();var o=v(t);return e.refactor.getApplicableRefactors(B(o,r,n,e.emptyOptions,i,a))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),D();var s=v(t);return e.refactor.getEditsForRefactor(B(s,n,o,r),i,a)},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:y.toLineColumnOffset(e,t)},getSourceMapper:function(){return y},clearSourceMapperCache:function(){return y.clearCache()},prepareCallHierarchy:function(t,r){D();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(c,e.getTouchingPropertyName(v(t),r));return n&&e.mapOneOrMany(n,(function(t){return e.CallHierarchy.createCallHierarchyItem(c,t)}))},provideCallHierarchyIncomingCalls:function(t,r){D();var n=v(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getIncomingCalls(c,i,d):[]},provideCallHierarchyOutgoingCalls:function(t,r){D();var n=v(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(c,i):[]},toggleLineComment:M,toggleMultilineComment:L,commentSelection:function(e,t){var r=O(l.getCurrentSourceFile(e),t);return r.firstLine===r.lastLine&&t.pos!==t.end?L(e,t,!0):M(e,t,!0)},uncommentSelection:function(t,r){var n=l.getCurrentSourceFile(t),i=[],a=r.pos,o=r.end;a===o&&(o+=e.isInsideJsxElement(n,a)?2:1);for(var s=a;s<=o;s++){var c=e.isInComment(n,s);if(c){switch(c.kind){case 2:i.push.apply(i,M(t,{end:c.end,pos:c.pos+1},!1));break;case 3:i.push.apply(i,L(t,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return i},provideInlayHints:function(t,r,i){void 0===i&&(i=e.emptyOptions),D();var a=v(t);return e.InlayHints.provideInlayHints(function(e,t,r){return{file:e,program:b(),host:n,span:t,preferences:r,cancellationToken:d}}(a,r,i))}};switch(s){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:N.forEach((function(e){return j[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.PartialSemantic")}}));break;case e.LanguageServiceMode.Syntactic:P.forEach((function(e){return j[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.Syntactic")}}));break;default:e.Debug.assertNever(s)}return j},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=new e.Map;t.forEachChild((function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&function(t){return e.isDeclarationName(t)||275===t.parent.kind||function(e){return e&&e.parent&&205===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}else if(e.isPrivateIdentifier(n)){i=n.escapedText;r.set(i,void 0===r.get(i)?n.pos:-1)}if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;ai){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(8388608&n.flags))return _(n)}function o(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?_(e):_(r)}function u(r){return _(e.findPrecedingToken(r.pos,t))}function l(r){return _(e.findNextToken(r,r.parent,t))}function _(r){if(r){var n=r.parent;switch(r.kind){case 235:return b(r.declarationList.declarations[0]);case 252:case 165:case 164:return b(r);case 162:return function t(r){if(e.isBindingPattern(r.name))return E(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):_(n.body)}(r);case 254:case 167:case 166:case 170:case 171:case 169:case 211:case 212:return function(e){if(e.body)return x(e)?o(e):_(e.body)}(r);case 233:if(e.isFunctionBlock(r))return v=(y=r).statements.length?y.statements[0]:y.getLastToken(),x(y.parent)?c(y.parent,v):_(v);case 260:return S(r);case 290:return S(r.block);case 236:return o(r.expression);case 245:return o(r.getChildAt(0),r.expression);case 239:return s(r,r.expression);case 238:return _(r.statement);case 251:return o(r.getChildAt(0));case 237:return s(r,r.expression);case 248:return _(r.statement);case 244:case 243:return o(r.getChildAt(0),r.label);case 240:return(m=r).initializer?C(m):m.condition?o(m.condition):m.incrementor?o(m.incrementor):void 0;case 241:return s(r,r.expression);case 242:return C(r);case 247:return s(r,r.expression);case 287:case 288:return _(r.statements[0]);case 250:return S(r.tryBlock);case 249:case 269:return o(r,r.expression);case 263:return o(r,r.moduleReference);case 264:case 270:return o(r,r.moduleSpecifier);case 259:if(1!==e.getModuleInstanceState(r))return;case 255:case 258:case 294:case 201:return o(r);case 246:return _(r.statement);case 163:return h=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,h.pos),h.end);case 199:case 200:return E(r);case 256:case 257:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return u(r);case 18:return function(r){switch(r.parent.kind){case 258:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 255:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 261:return c(r.parent.parent,r.parent.clauses[0])}return _(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 260:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 258:case 255:return o(t);case 233:if(e.isFunctionBlock(t.parent))return o(t);case 290:return _(e.lastOrUndefined(t.parent.statements));case 261:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?_(e.lastOrUndefined(n.statements)):void 0;case 199:var i=t.parent;return _(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return _(t.parent)}}(r);case 23:return function(t){switch(t.parent.kind){case 200:var r=t.parent;return o(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return _(t.parent)}}(r);case 20:return function(e){return 238===e.parent.kind||206===e.parent.kind||207===e.parent.kind?u(e):210===e.parent.kind?l(e):_(e.parent)}(r);case 21:return function(e){switch(e.parent.kind){case 211:case 254:case 212:case 167:case 166:case 170:case 171:case 169:case 239:case 238:case 240:case 242:case 206:case 207:case 210:return u(e);default:return _(e.parent)}}(r);case 58:return function(t){return e.isFunctionLike(t.parent)||291===t.parent.kind||162===t.parent.kind?u(t):_(t.parent)}(r);case 31:case 29:return function(e){return 209===e.parent.kind?l(e):_(e.parent)}(r);case 115:return function(e){return 238===e.parent.kind?s(e,e.parent.expression):_(e.parent)}(r);case 91:case 83:case 96:return l(r);case 158:return function(e){return 242===e.parent.kind?l(e):_(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return T(r);if((79===r.kind||223===r.kind||291===r.kind||292===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(219===r.kind){var i=r,a=i.left,d=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return T(a);if(63===d.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===d.kind)return _(a)}if(e.isExpressionNode(r))switch(n.kind){case 238:return u(r);case 163:return _(r.parent);case 240:case 242:return o(r);case 219:if(27===r.parent.operatorToken.kind)return o(r);break;case 212:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 291:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return _(r.parent.initializer);break;case 209:if(r.parent.type===r)return l(r.parent.type);break;case 252:case 162:var p=r.parent,f=p.initializer,g=p.type;if(f===r||g===r||e.isAssignmentOperator(r.kind))return u(r);break;case 219:if(a=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return u(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return u(r)}return _(r.parent)}}var m,y,v,h;function D(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function b(r){if(241===r.parent.parent.kind)return _(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?E(r.name):r.initializer||e.hasSyntacticModifier(r,1)||242===n.parent.kind?D(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?_(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function x(t){return e.hasSyntacticModifier(t,1)||255===t.parent.kind&&169!==t.kind}function S(r){switch(r.parent.kind){case 259:if(1!==e.getModuleInstanceState(r.parent))return;case 239:case 237:case 241:return c(r.parent,r.statements[0]);case 240:case 242:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return _(r.statements[0])}function C(e){if(253!==e.initializer.kind)return _(e.initializer);var t=e.initializer;return t.declarations.length>0?_(t.declarations[0]):void 0}function E(t){var r=e.forEach(t.elements,(function(e){return 225!==e.kind?e:void 0}));return r?_(r):201===t.parent.kind?o(t.parent):D(t.parent)}function T(t){e.Debug.assert(200!==t.kind&&199!==t.kind);var r=202===t.kind?t.elements:t.properties,n=e.forEach(r,(function(e){return 225!==e.kind?e:void 0}));return n?_(n):o(219===t.parent.kind?t.parent:t)}}}}(s||(s={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(s||(s={}));var s,c=function(){return this}();!function(e){function n(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var i=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),s=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,(function(t){var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,(function(t){return e.getProperty(i,t)}))})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new i(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=s;var u=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return t.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function l(e,t,r,n){return _(e,t,!0,r,n)}function _(t,r,i,a,o){try{var s=function(t,r,n,i){var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log(r+" completed in "+(s-a)+" msec"),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(t,r,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(n(t,i),i.description=r,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=u;var d=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function p(t,r){return t.map((function(t){return function(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}(t,r)}))}e.realizeDiagnostics=p;var f=function(t){function n(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return o(n,t),n.prototype.forwardJSONCall=function(e,t){return l(this.logger,e,t,this.logPerformance)},n.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,c&&c.CollectGarbage&&(c.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},n.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",(function(){return null}))},n.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},n.prototype.realizeDiagnostics=function(t){return p(t,e.getNewLineOrDefaultFromHost(this.host))},n.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+t+"', "+r+", "+n+")",(function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))}))},n.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+t+"', "+r+", "+n+")",(function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))}))},n.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+t+"', "+r+", "+n+")",(function(){return g(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))}))},n.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+t+"', "+r+", "+n+")",(function(){return g(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))}))},n.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",(function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},n.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",(function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},n.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",(function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))}))},n.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)}))},n.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getQuickInfoAtPosition(e,t)}))},n.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)}))},n.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getBreakpointStatementAtPosition(e,t)}))},n.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",(function(){return n.languageService.getSignatureHelpItems(e,t,r)}))},n.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getDefinitionAtPosition(e,t)}))},n.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",(function(){return r.languageService.getDefinitionAndBoundSpan(e,t)}))},n.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getTypeDefinitionAtPosition(e,t)}))},n.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getImplementationAtPosition(e,t)}))},n.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",(function(){return n.languageService.getRenameInfo(e,t,r)}))},n.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+t+")",(function(){return r.languageService.getSmartSelectionRange(e,t)}))},n.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+", "+i+")",(function(){return a.languageService.findRenameLocations(e,t,r,n,i)}))},n.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getBraceMatchingAtPosition(e,t)}))},n.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",(function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)}))},n.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",(function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)}))},n.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",(function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)}))},n.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getReferencesAtPosition(e,t)}))},n.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",(function(){return r.languageService.findReferences(e,t)}))},n.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('"+e+")",(function(){return t.languageService.getFileReferences(e)}))},n.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getOccurrencesAtPosition(e,t)}))},n.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+t+"', "+r+")",(function(){var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,(function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o}))}))},n.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getCompletionsAtPosition(e,t,r)}))},n.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",(function(){var c=void 0===n?void 0:JSON.parse(n);return s.languageService.getCompletionEntryDetails(e,t,r,c,i,a,o)}))},n.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)}))},n.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",(function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)}))},n.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)}))},n.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",(function(){return n.languageService.getDocCommentTemplateAtPosition(e,t,r)}))},n.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getNavigateToItems(e,t,r)}))},n.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",(function(){return t.languageService.getNavigationBarItems(e)}))},n.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",(function(){return t.languageService.getNavigationTree(e)}))},n.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",(function(){return t.languageService.getOutliningSpans(e)}))},n.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",(function(){return r.languageService.getTodoComments(e,JSON.parse(t))}))},n.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+t+")",(function(){return r.languageService.prepareCallHierarchy(e,t)}))},n.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+t+")",(function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)}))},n.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+t+")",(function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)}))},n.prototype.provideInlayHints=function(e,t,r){var n=this;return this.forwardJSONCall("provideInlayHints('"+e+"', '"+JSON.stringify(t)+"', "+JSON.stringify(r)+")",(function(){return n.languageService.provideInlayHints(e,t,r)}))},n.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",(function(){var n=t.languageService.getEmitOutput(e),i=n.diagnostics,o=a(n,["diagnostics"]);return r(r({},o),{diagnostics:t.realizeDiagnostics(i)})}))},n.prototype.getEmitOutputObject=function(e){var t=this;return _(this.logger,"getEmitOutput('"+e+"')",!1,(function(){return t.languageService.getEmitOutput(e)}),this.logPerformance)},n.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.toggleLineComment(e,t)}))},n.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.toggleMultilineComment(e,t)}))},n.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.commentSelection(e,t)}))},n.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.uncommentSelection(e,t)}))},n}(d);function g(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var m=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return o(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),l(this.logger,"getEncodedLexicalClassifications",(function(){return g(n.classifier.getEncodedLexicalClassifications(e,t,r))}),this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")}),t),e.updateVariableDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")}),t),e.createImportClause=e.Debug.deprecate((function(t,r,n){return void 0===n&&(n=!1),e.factory.createImportClause(n,t,r)}),t),e.updateImportClause=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateImportClause(t,i,r,n)}),t),e.createExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i)}),t),e.updateExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateExportDeclaration(t,r,n,o,i,a)}),t),e.createJSDocParamTag=e.Debug.deprecate((function(t,r,n,i){return e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)}),t),e.createComma=e.Debug.deprecate((function(t,r){return e.factory.createComma(t,r)}),t),e.createLessThan=e.Debug.deprecate((function(t,r){return e.factory.createLessThan(t,r)}),t),e.createAssignment=e.Debug.deprecate((function(t,r){return e.factory.createAssignment(t,r)}),t),e.createStrictEquality=e.Debug.deprecate((function(t,r){return e.factory.createStrictEquality(t,r)}),t),e.createStrictInequality=e.Debug.deprecate((function(t,r){return e.factory.createStrictInequality(t,r)}),t),e.createAdd=e.Debug.deprecate((function(t,r){return e.factory.createAdd(t,r)}),t),e.createSubtract=e.Debug.deprecate((function(t,r){return e.factory.createSubtract(t,r)}),t),e.createLogicalAnd=e.Debug.deprecate((function(t,r){return e.factory.createLogicalAnd(t,r)}),t),e.createLogicalOr=e.Debug.deprecate((function(t,r){return e.factory.createLogicalOr(t,r)}),t),e.createPostfixIncrement=e.Debug.deprecate((function(t){return e.factory.createPostfixIncrement(t)}),t),e.createLogicalNot=e.Debug.deprecate((function(t){return e.factory.createLogicalNot(t)}),t),e.createNode=e.Debug.deprecate((function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(300===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):79===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):80===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),r,n)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(t){var r=e.factory.cloneNode(t);return e.setTextRange(r,t),e.setParent(r,t.parent),r}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate((function(e){return 209===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((function(t){return e.isMemberName(t)}),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})}(s||(s={}))})),Gl=E((function(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.AST_TOKEN_TYPES=t.AST_NODE_TYPES=void 0,(r=t.AST_NODE_TYPES||(t.AST_NODE_TYPES={})).ArrayExpression="ArrayExpression",r.ArrayPattern="ArrayPattern",r.ArrowFunctionExpression="ArrowFunctionExpression",r.AssignmentExpression="AssignmentExpression",r.AssignmentPattern="AssignmentPattern",r.AwaitExpression="AwaitExpression",r.BinaryExpression="BinaryExpression",r.BlockStatement="BlockStatement",r.BreakStatement="BreakStatement",r.CallExpression="CallExpression",r.CatchClause="CatchClause",r.ChainExpression="ChainExpression",r.ClassBody="ClassBody",r.ClassDeclaration="ClassDeclaration",r.ClassExpression="ClassExpression",r.ClassProperty="ClassProperty",r.ConditionalExpression="ConditionalExpression",r.ContinueStatement="ContinueStatement",r.DebuggerStatement="DebuggerStatement",r.Decorator="Decorator",r.DoWhileStatement="DoWhileStatement",r.EmptyStatement="EmptyStatement",r.ExportAllDeclaration="ExportAllDeclaration",r.ExportDefaultDeclaration="ExportDefaultDeclaration",r.ExportNamedDeclaration="ExportNamedDeclaration",r.ExportSpecifier="ExportSpecifier",r.ExpressionStatement="ExpressionStatement",r.ForInStatement="ForInStatement",r.ForOfStatement="ForOfStatement",r.ForStatement="ForStatement",r.FunctionDeclaration="FunctionDeclaration",r.FunctionExpression="FunctionExpression",r.Identifier="Identifier",r.IfStatement="IfStatement",r.ImportDeclaration="ImportDeclaration",r.ImportDefaultSpecifier="ImportDefaultSpecifier",r.ImportExpression="ImportExpression",r.ImportNamespaceSpecifier="ImportNamespaceSpecifier",r.ImportSpecifier="ImportSpecifier",r.JSXAttribute="JSXAttribute",r.JSXClosingElement="JSXClosingElement",r.JSXClosingFragment="JSXClosingFragment",r.JSXElement="JSXElement",r.JSXEmptyExpression="JSXEmptyExpression",r.JSXExpressionContainer="JSXExpressionContainer",r.JSXFragment="JSXFragment",r.JSXIdentifier="JSXIdentifier",r.JSXMemberExpression="JSXMemberExpression",r.JSXNamespacedName="JSXNamespacedName",r.JSXOpeningElement="JSXOpeningElement",r.JSXOpeningFragment="JSXOpeningFragment",r.JSXSpreadAttribute="JSXSpreadAttribute",r.JSXSpreadChild="JSXSpreadChild",r.JSXText="JSXText",r.LabeledStatement="LabeledStatement",r.Literal="Literal",r.LogicalExpression="LogicalExpression",r.MemberExpression="MemberExpression",r.MetaProperty="MetaProperty",r.MethodDefinition="MethodDefinition",r.NewExpression="NewExpression",r.ObjectExpression="ObjectExpression",r.ObjectPattern="ObjectPattern",r.Program="Program",r.Property="Property",r.RestElement="RestElement",r.ReturnStatement="ReturnStatement",r.SequenceExpression="SequenceExpression",r.SpreadElement="SpreadElement",r.StaticBlock="StaticBlock",r.Super="Super",r.SwitchCase="SwitchCase",r.SwitchStatement="SwitchStatement",r.TaggedTemplateExpression="TaggedTemplateExpression",r.TemplateElement="TemplateElement",r.TemplateLiteral="TemplateLiteral",r.ThisExpression="ThisExpression",r.ThrowStatement="ThrowStatement",r.TryStatement="TryStatement",r.UnaryExpression="UnaryExpression",r.UpdateExpression="UpdateExpression",r.VariableDeclaration="VariableDeclaration",r.VariableDeclarator="VariableDeclarator",r.WhileStatement="WhileStatement",r.WithStatement="WithStatement",r.YieldExpression="YieldExpression",r.TSAbstractClassProperty="TSAbstractClassProperty",r.TSAbstractKeyword="TSAbstractKeyword",r.TSAbstractMethodDefinition="TSAbstractMethodDefinition",r.TSAnyKeyword="TSAnyKeyword",r.TSArrayType="TSArrayType",r.TSAsExpression="TSAsExpression",r.TSAsyncKeyword="TSAsyncKeyword",r.TSBigIntKeyword="TSBigIntKeyword",r.TSBooleanKeyword="TSBooleanKeyword",r.TSCallSignatureDeclaration="TSCallSignatureDeclaration",r.TSClassImplements="TSClassImplements",r.TSConditionalType="TSConditionalType",r.TSConstructorType="TSConstructorType",r.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",r.TSDeclareFunction="TSDeclareFunction",r.TSDeclareKeyword="TSDeclareKeyword",r.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",r.TSEnumDeclaration="TSEnumDeclaration",r.TSEnumMember="TSEnumMember",r.TSExportAssignment="TSExportAssignment",r.TSExportKeyword="TSExportKeyword",r.TSExternalModuleReference="TSExternalModuleReference",r.TSFunctionType="TSFunctionType",r.TSImportEqualsDeclaration="TSImportEqualsDeclaration",r.TSImportType="TSImportType",r.TSIndexedAccessType="TSIndexedAccessType",r.TSIndexSignature="TSIndexSignature",r.TSInferType="TSInferType",r.TSInterfaceBody="TSInterfaceBody",r.TSInterfaceDeclaration="TSInterfaceDeclaration",r.TSInterfaceHeritage="TSInterfaceHeritage",r.TSIntersectionType="TSIntersectionType",r.TSIntrinsicKeyword="TSIntrinsicKeyword",r.TSLiteralType="TSLiteralType",r.TSMappedType="TSMappedType",r.TSMethodSignature="TSMethodSignature",r.TSModuleBlock="TSModuleBlock",r.TSModuleDeclaration="TSModuleDeclaration",r.TSNamedTupleMember="TSNamedTupleMember",r.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",r.TSNeverKeyword="TSNeverKeyword",r.TSNonNullExpression="TSNonNullExpression",r.TSNullKeyword="TSNullKeyword",r.TSNumberKeyword="TSNumberKeyword",r.TSObjectKeyword="TSObjectKeyword",r.TSOptionalType="TSOptionalType",r.TSParameterProperty="TSParameterProperty",r.TSParenthesizedType="TSParenthesizedType",r.TSPrivateKeyword="TSPrivateKeyword",r.TSPropertySignature="TSPropertySignature",r.TSProtectedKeyword="TSProtectedKeyword",r.TSPublicKeyword="TSPublicKeyword",r.TSQualifiedName="TSQualifiedName",r.TSReadonlyKeyword="TSReadonlyKeyword",r.TSRestType="TSRestType",r.TSStaticKeyword="TSStaticKeyword",r.TSStringKeyword="TSStringKeyword",r.TSSymbolKeyword="TSSymbolKeyword",r.TSTemplateLiteralType="TSTemplateLiteralType",r.TSThisType="TSThisType",r.TSTupleType="TSTupleType",r.TSTypeAliasDeclaration="TSTypeAliasDeclaration",r.TSTypeAnnotation="TSTypeAnnotation",r.TSTypeAssertion="TSTypeAssertion",r.TSTypeLiteral="TSTypeLiteral",r.TSTypeOperator="TSTypeOperator",r.TSTypeParameter="TSTypeParameter",r.TSTypeParameterDeclaration="TSTypeParameterDeclaration",r.TSTypeParameterInstantiation="TSTypeParameterInstantiation",r.TSTypePredicate="TSTypePredicate",r.TSTypeQuery="TSTypeQuery",r.TSTypeReference="TSTypeReference",r.TSUndefinedKeyword="TSUndefinedKeyword",r.TSUnionType="TSUnionType",r.TSUnknownKeyword="TSUnknownKeyword",r.TSVoidKeyword="TSVoidKeyword",(n=t.AST_TOKEN_TYPES||(t.AST_TOKEN_TYPES={})).Boolean="Boolean",n.Identifier="Identifier",n.JSXIdentifier="JSXIdentifier",n.JSXText="JSXText",n.Keyword="Keyword",n.Null="Null",n.Numeric="Numeric",n.Punctuator="Punctuator",n.RegularExpression="RegularExpression",n.String="String",n.Template="Template",n.Block="Block",n.Line="Line"})),Yl=Object.defineProperty({},"__esModule",{value:!0}),Xl=Object.defineProperty({},"__esModule",{value:!0}),$l=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TSESTree=void 0,t.TSESTree=i(Gl)})),Ql=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.AST_TOKEN_TYPES=t.AST_NODE_TYPES=void 0,Object.defineProperty(t,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Gl.AST_NODE_TYPES}});var i=Gl;Object.defineProperty(t,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return i.AST_TOKEN_TYPES}}),n(Yl,t),n(Xl,t),n($l,t)})),Zl=Object.defineProperty({},"__esModule",{value:!0}),e_=Object.defineProperty({},"__esModule",{value:!0}),t_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.TSESTree=t.AST_TOKEN_TYPES=t.AST_NODE_TYPES=void 0,Object.defineProperty(t,"AST_NODE_TYPES",{enumerable:!0,get:function(){return Ql.AST_NODE_TYPES}}),Object.defineProperty(t,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return Ql.AST_TOKEN_TYPES}}),Object.defineProperty(t,"TSESTree",{enumerable:!0,get:function(){return Ql.TSESTree}}),n(Zl,t),n(e_,t)})),r_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.xhtmlEntities=void 0,t.xhtmlEntities={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",frasl:"\u2044",euro:"\u20ac",image:"\u2111",weierp:"\u2118",real:"\u211c",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lArr:"\u21d0",uArr:"\u21d1",rArr:"\u21d2",dArr:"\u21d3",hArr:"\u21d4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",lang:"\u2329",rang:"\u232a",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}})),n_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.firstDefined=t.nodeHasTokens=t.createError=t.TSError=t.convertTokens=t.convertToken=t.getTokenType=t.isChildUnwrappableOptionalChain=t.isChainExpression=t.isOptional=t.isComputedProperty=t.unescapeStringLiteralText=t.hasJSXAncestor=t.findFirstMatchingAncestor=t.findNextToken=t.getTSNodeAccessibility=t.getDeclarationKind=t.isJSXToken=t.isToken=t.getRange=t.canContainDirective=t.getLocFor=t.getLineAndCharacterFor=t.getBinaryExpressionType=t.isJSDocComment=t.isComment=t.isComma=t.getLastModifier=t.hasModifier=t.isESTreeClassMember=t.getTextForTokenKind=t.isLogicalOperator=t.isAssignmentOperator=void 0;const a=i(Hl),o=a.SyntaxKind,s=[o.BarBarToken,o.AmpersandAmpersandToken,o.QuestionQuestionToken];function c(e){return e.kind>=o.FirstAssignment&&e.kind<=o.LastAssignment}function u(e){return s.includes(e.kind)}function l(e){return e.kind===o.SingleLineCommentTrivia||e.kind===o.MultiLineCommentTrivia}function _(e){return e.kind===o.JSDocComment}function d(e,t){const r=t.getLineAndCharacterOfPosition(e);return{line:r.line+1,column:r.character}}function p(e,t,r){return{start:d(e,r),end:d(t,r)}}function f(e){return e.kind>=o.FirstToken&&e.kind<=o.LastToken}function g(e){return e.kind>=o.JsxElement&&e.kind<=o.JsxAttribute}function m(e,t){for(;e;){if(t(e))return e;e=e.parent}}function y(e){return!!m(e,g)}function v(e){return e.type===t_.AST_NODE_TYPES.ChainExpression}function h(e){if("originalKeywordKind"in e&&e.originalKeywordKind)return e.originalKeywordKind===o.NullKeyword?t_.AST_TOKEN_TYPES.Null:e.originalKeywordKind>=o.FirstFutureReservedWord&&e.originalKeywordKind<=o.LastKeyword?t_.AST_TOKEN_TYPES.Identifier:t_.AST_TOKEN_TYPES.Keyword;if(e.kind>=o.FirstKeyword&&e.kind<=o.LastFutureReservedWord)return e.kind===o.FalseKeyword||e.kind===o.TrueKeyword?t_.AST_TOKEN_TYPES.Boolean:t_.AST_TOKEN_TYPES.Keyword;if(e.kind>=o.FirstPunctuation&&e.kind<=o.LastPunctuation)return t_.AST_TOKEN_TYPES.Punctuator;if(e.kind>=o.NoSubstitutionTemplateLiteral&&e.kind<=o.TemplateTail)return t_.AST_TOKEN_TYPES.Template;switch(e.kind){case o.NumericLiteral:return t_.AST_TOKEN_TYPES.Numeric;case o.JsxText:return t_.AST_TOKEN_TYPES.JSXText;case o.StringLiteral:return!e.parent||e.parent.kind!==o.JsxAttribute&&e.parent.kind!==o.JsxElement?t_.AST_TOKEN_TYPES.String:t_.AST_TOKEN_TYPES.JSXText;case o.RegularExpressionLiteral:return t_.AST_TOKEN_TYPES.RegularExpression;case o.Identifier:case o.ConstructorKeyword:case o.GetKeyword:case o.SetKeyword:}if(e.parent&&e.kind===o.Identifier){if(g(e.parent))return t_.AST_TOKEN_TYPES.JSXIdentifier;if(e.parent.kind===o.PropertyAccessExpression&&y(e))return t_.AST_TOKEN_TYPES.JSXIdentifier}return t_.AST_TOKEN_TYPES.Identifier}function D(e,t){const r=e.kind===o.JsxText?e.getFullStart():e.getStart(t),n=e.getEnd(),i=t.text.slice(r,n),a=h(e);return a===t_.AST_TOKEN_TYPES.RegularExpression?{type:a,value:i,range:[r,n],loc:p(r,n,t),regex:{pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}}:{type:a,value:i,range:[r,n],loc:p(r,n,t)}}t.isAssignmentOperator=c,t.isLogicalOperator=u,t.getTextForTokenKind=function(e){return a.tokenToString(e)},t.isESTreeClassMember=function(e){return e.kind!==o.SemicolonClassElement},t.hasModifier=function(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some((t=>t.kind===e))},t.getLastModifier=function(e){return!!e.modifiers&&!!e.modifiers.length&&e.modifiers[e.modifiers.length-1]||null},t.isComma=function(e){return e.kind===o.CommaToken},t.isComment=l,t.isJSDocComment=_,t.getBinaryExpressionType=function(e){return c(e)?t_.AST_NODE_TYPES.AssignmentExpression:u(e)?t_.AST_NODE_TYPES.LogicalExpression:t_.AST_NODE_TYPES.BinaryExpression},t.getLineAndCharacterFor=d,t.getLocFor=p,t.canContainDirective=function(e){if(e.kind===a.SyntaxKind.Block)switch(e.parent.kind){case a.SyntaxKind.Constructor:case a.SyntaxKind.GetAccessor:case a.SyntaxKind.SetAccessor:case a.SyntaxKind.ArrowFunction:case a.SyntaxKind.FunctionExpression:case a.SyntaxKind.FunctionDeclaration:case a.SyntaxKind.MethodDeclaration:return!0;default:return!1}return!0},t.getRange=function(e,t){return[e.getStart(t),e.getEnd()]},t.isToken=f,t.isJSXToken=g,t.getDeclarationKind=function(e){return e.flags&a.NodeFlags.Let?"let":e.flags&a.NodeFlags.Const?"const":"var"},t.getTSNodeAccessibility=function(e){const t=e.modifiers;if(!t)return null;for(let e=0;e(n.pos<=e.pos&&n.end>e.end||n.pos===e.end)&&x(n,r)?t(n):void 0))}(t)},t.findFirstMatchingAncestor=m,t.hasJSXAncestor=y,t.unescapeStringLiteralText=function(e){return e.replace(/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,(e=>{const t=e.slice(1,-1);if("#"===t[0]){const r="x"===t[1]?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return r>1114111?e:String.fromCodePoint(r)}return r_.xhtmlEntities[t]||e}))},t.isComputedProperty=function(e){return e.kind===o.ComputedPropertyName},t.isOptional=function(e){return!!e.questionToken&&e.questionToken.kind===o.QuestionToken},t.isChainExpression=v,t.isChildUnwrappableOptionalChain=function(e,t){return v(t)&&e.expression.kind!==a.SyntaxKind.ParenthesizedExpression},t.getTokenType=h,t.convertToken=D,t.convertTokens=function(e){const t=[];return function r(n){if(!l(n)&&!_(n))if(f(n)&&n.kind!==o.EndOfFileToken){const r=D(n,e);r&&t.push(r)}else n.getChildren(e).forEach(r)}(e),t};class b extends Error{constructor(e,t,r,n,i){super(e),this.fileName=t,this.index=r,this.lineNumber=n,this.column=i,Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0})}}function x(e,t){return e.kind===o.EndOfFileToken?!!e.jsDoc:0!==e.getWidth(t)}function C(e,t){if(void 0!==e)for(let r=0;r= ${e}.0 || >= ${e}.1-rc || >= ${e}.0-beta`,{includePrerelease:!0})}const c=["3.7","3.8","3.9","4.0"],u={};t.typescriptVersionIsAtLeast=u;for(const e of c)u[e]=s(e)})),a_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Converter=t.convertError=void 0;const a=i(Hl),o=a.SyntaxKind;t.convertError=function(e){return(0,n_.createError)(e.file,e.start,e.message||e.messageText)};t.Converter=class{constructor(e,t){this.esTreeNodeToTSNodeMap=new WeakMap,this.tsNodeToESTreeNodeMap=new WeakMap,this.allowPattern=!1,this.inTypeMode=!1,this.ast=e,this.options=Object.assign({},t)}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}convertProgram(){return this.converter(this.ast)}converter(e,t,r,n){if(!e)return null;const i=this.inTypeMode,a=this.allowPattern;void 0!==r&&(this.inTypeMode=r),void 0!==n&&(this.allowPattern=n);const o=this.convertNode(e,null!=t?t:e.parent);return this.registerTSNodeInNodeMap(e,o),this.inTypeMode=i,this.allowPattern=a,o}fixExports(e,t){if(e.modifiers&&e.modifiers[0].kind===o.ExportKeyword){this.registerTSNodeInNodeMap(e,t);const r=e.modifiers[0],n=e.modifiers[1],i=n&&n.kind===o.DefaultKeyword,a=i?(0,n_.findNextToken)(n,this.ast,this.ast):(0,n_.findNextToken)(r,this.ast,this.ast);if(t.range[0]=a.getStart(this.ast),t.loc=(0,n_.getLocFor)(t.range[0],t.range[1],this.ast),i)return this.createNode(e,{type:t_.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:t,range:[r.getStart(this.ast),t.range[1]],exportKind:"value"});{const n=t.type===t_.AST_NODE_TYPES.TSInterfaceDeclaration||t.type===t_.AST_NODE_TYPES.TSTypeAliasDeclaration,i=!0===t.declare;return this.createNode(e,{type:t_.AST_NODE_TYPES.ExportNamedDeclaration,declaration:t,specifiers:[],source:null,exportKind:n||i?"type":"value",range:[r.getStart(this.ast),t.range[1]]})}}return t}registerTSNodeInNodeMap(e,t){t&&this.options.shouldPreserveNodeMaps&&(this.tsNodeToESTreeNodeMap.has(e)||this.tsNodeToESTreeNodeMap.set(e,t))}convertPattern(e,t){return this.converter(e,t,this.inTypeMode,!0)}convertChild(e,t){return this.converter(e,t,this.inTypeMode,!1)}convertType(e,t){return this.converter(e,t,!0,!1)}createNode(e,t){const r=t;return r.range||(r.range=(0,n_.getRange)(e,this.ast)),r.loc||(r.loc=(0,n_.getLocFor)(r.range[0],r.range[1],this.ast)),r&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(r,e),r}convertBindingNameWithTypeAnnotation(e,t,r){const n=this.convertPattern(e);return t&&(n.typeAnnotation=this.convertTypeAnnotation(t,r),this.fixParentLocation(n,n.typeAnnotation.range)),n}convertTypeAnnotation(e,t){const r=(null==t?void 0:t.kind)===o.FunctionType||(null==t?void 0:t.kind)===o.ConstructorType?2:1,n=e.getFullStart()-r,i=(0,n_.getLocFor)(n,e.end,this.ast);return{type:t_.AST_NODE_TYPES.TSTypeAnnotation,loc:i,range:[n,e.end],typeAnnotation:this.convertType(e)}}convertBodyExpressions(e,t){let r=(0,n_.canContainDirective)(t);return e.map((e=>{const t=this.convertChild(e);if(r){if((null==t?void 0:t.expression)&&a.isExpressionStatement(e)&&a.isStringLiteral(e.expression)){const e=t.expression.raw;return t.directive=e.slice(1,-1),t}r=!1}return t})).filter((e=>e))}convertTypeArgumentsToTypeParameters(e,t){const r=(0,n_.findNextToken)(e,this.ast,this.ast);return this.createNode(t,{type:t_.AST_NODE_TYPES.TSTypeParameterInstantiation,range:[e.pos-1,r.end],params:e.map((e=>this.convertType(e)))})}convertTSTypeParametersToTypeParametersDeclaration(e){const t=(0,n_.findNextToken)(e,this.ast,this.ast);return{type:t_.AST_NODE_TYPES.TSTypeParameterDeclaration,range:[e.pos-1,t.end],loc:(0,n_.getLocFor)(e.pos-1,t.end,this.ast),params:e.map((e=>this.convertType(e)))}}convertParameters(e){return e&&e.length?e.map((e=>{var t;const r=this.convertChild(e);return(null===(t=e.decorators)||void 0===t?void 0:t.length)&&(r.decorators=e.decorators.map((e=>this.convertChild(e)))),r})):[]}convertChainExpression(e,t){const{child:r,isOptional:n}=e.type===t_.AST_NODE_TYPES.MemberExpression?{child:e.object,isOptional:e.optional}:e.type===t_.AST_NODE_TYPES.CallExpression?{child:e.callee,isOptional:e.optional}:{child:e.expression,isOptional:!1},i=(0,n_.isChildUnwrappableOptionalChain)(t,r);if(!i&&!n)return e;if(i&&(0,n_.isChainExpression)(r)){const t=r.expression;e.type===t_.AST_NODE_TYPES.MemberExpression?e.object=t:e.type===t_.AST_NODE_TYPES.CallExpression?e.callee=t:e.expression=t}return this.createNode(t,{type:t_.AST_NODE_TYPES.ChainExpression,expression:e})}deeplyCopy(e){if(e.kind===a.SyntaxKind.JSDocFunctionType)throw(0,n_.createError)(this.ast,e.pos,"JSDoc types can only be used inside documentation comments.");const t=`TS${o[e.kind]}`;if(this.options.errorOnUnknownASTType&&!t_.AST_NODE_TYPES[t])throw new Error(`Unknown AST_NODE_TYPE: "${t}"`);const r=this.createNode(e,{type:t});return"type"in e&&(r.typeAnnotation=e.type&&"kind"in e.type&&a.isTypeNode(e.type)?this.convertTypeAnnotation(e.type,e):null),"typeArguments"in e&&(r.typeParameters=e.typeArguments&&"pos"in e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):null),"typeParameters"in e&&(r.typeParameters=e.typeParameters&&"pos"in e.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null),"decorators"in e&&e.decorators&&e.decorators.length&&(r.decorators=e.decorators.map((e=>this.convertChild(e)))),Object.entries(e).filter((([e])=>!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc|type|typeArguments|typeParameters|decorators|transformFlags)$/.test(e))).forEach((([e,t])=>{Array.isArray(t)?r[e]=t.map((e=>this.convertChild(e))):t&&"object"==typeof t&&t.kind?r[e]=this.convertChild(t):r[e]=t})),r}convertJSXIdentifier(e){const t=this.createNode(e,{type:t_.AST_NODE_TYPES.JSXIdentifier,name:e.getText()});return this.registerTSNodeInNodeMap(e,t),t}convertJSXNamespaceOrIdentifier(e){const t=e.getText(),r=t.indexOf(":");if(r>0){const n=(0,n_.getRange)(e,this.ast),i=this.createNode(e,{type:t_.AST_NODE_TYPES.JSXNamespacedName,namespace:this.createNode(e,{type:t_.AST_NODE_TYPES.JSXIdentifier,name:t.slice(0,r),range:[n[0],n[0]+r]}),name:this.createNode(e,{type:t_.AST_NODE_TYPES.JSXIdentifier,name:t.slice(r+1),range:[n[0]+r+1,n[1]]}),range:n});return this.registerTSNodeInNodeMap(e,i),i}return this.convertJSXIdentifier(e)}convertJSXTagName(e,t){let r;switch(e.kind){case o.PropertyAccessExpression:if(e.name.kind===o.PrivateIdentifier)throw new Error("Non-private identifier expected.");r=this.createNode(e,{type:t_.AST_NODE_TYPES.JSXMemberExpression,object:this.convertJSXTagName(e.expression,t),property:this.convertJSXIdentifier(e.name)});break;case o.ThisKeyword:case o.Identifier:default:return this.convertJSXNamespaceOrIdentifier(e)}return this.registerTSNodeInNodeMap(e,r),r}convertMethodSignature(e){const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSMethodSignature,computed:(0,n_.isComputedProperty)(e.name),key:this.convertChild(e.name),params:this.convertParameters(e.parameters),kind:(()=>{switch(e.kind){case o.GetAccessor:return"get";case o.SetAccessor:return"set";case o.MethodSignature:return"method"}})()});(0,n_.isOptional)(e)&&(t.optional=!0),e.type&&(t.returnType=this.convertTypeAnnotation(e.type,e)),(0,n_.hasModifier)(o.ReadonlyKeyword,e)&&(t.readonly=!0),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters));const r=(0,n_.getTSNodeAccessibility)(e);return r&&(t.accessibility=r),(0,n_.hasModifier)(o.ExportKeyword,e)&&(t.export=!0),(0,n_.hasModifier)(o.StaticKeyword,e)&&(t.static=!0),t}applyModifiersToResult(e,t){if(!t||!t.length)return;const r=[];for(let n=0;ne.range[1]&&(e.range[1]=t[1],e.loc.end=(0,n_.getLineAndCharacterFor)(e.range[1],this.ast))}convertNode(e,t){var r,n,i,s,c,u,l,_,d,p;switch(e.kind){case o.SourceFile:return this.createNode(e,{type:t_.AST_NODE_TYPES.Program,body:this.convertBodyExpressions(e.statements,e),sourceType:e.externalModuleIndicator?"module":"script",range:[e.getStart(this.ast),e.endOfFileToken.end]});case o.Block:return this.createNode(e,{type:t_.AST_NODE_TYPES.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case o.Identifier:return this.createNode(e,{type:t_.AST_NODE_TYPES.Identifier,name:e.text});case o.WithStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.WithStatement,object:this.convertChild(e.expression),body:this.convertChild(e.statement)});case o.ReturnStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.ReturnStatement,argument:this.convertChild(e.expression)});case o.LabeledStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.LabeledStatement,label:this.convertChild(e.label),body:this.convertChild(e.statement)});case o.ContinueStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.ContinueStatement,label:this.convertChild(e.label)});case o.BreakStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.BreakStatement,label:this.convertChild(e.label)});case o.IfStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.IfStatement,test:this.convertChild(e.expression),consequent:this.convertChild(e.thenStatement),alternate:this.convertChild(e.elseStatement)});case o.SwitchStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.SwitchStatement,discriminant:this.convertChild(e.expression),cases:e.caseBlock.clauses.map((e=>this.convertChild(e)))});case o.CaseClause:case o.DefaultClause:return this.createNode(e,{type:t_.AST_NODE_TYPES.SwitchCase,test:e.kind===o.CaseClause?this.convertChild(e.expression):null,consequent:e.statements.map((e=>this.convertChild(e)))});case o.ThrowStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.ThrowStatement,argument:this.convertChild(e.expression)});case o.TryStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.TryStatement,block:this.convertChild(e.tryBlock),handler:this.convertChild(e.catchClause),finalizer:this.convertChild(e.finallyBlock)});case o.CatchClause:return this.createNode(e,{type:t_.AST_NODE_TYPES.CatchClause,param:e.variableDeclaration?this.convertBindingNameWithTypeAnnotation(e.variableDeclaration.name,e.variableDeclaration.type):null,body:this.convertChild(e.block)});case o.WhileStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.WhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case o.DoStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.DoWhileStatement,test:this.convertChild(e.expression),body:this.convertChild(e.statement)});case o.ForStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.ForStatement,init:this.convertChild(e.initializer),test:this.convertChild(e.condition),update:this.convertChild(e.incrementor),body:this.convertChild(e.statement)});case o.ForInStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.ForInStatement,left:this.convertPattern(e.initializer),right:this.convertChild(e.expression),body:this.convertChild(e.statement)});case o.ForOfStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.ForOfStatement,left:this.convertPattern(e.initializer),right:this.convertChild(e.expression),body:this.convertChild(e.statement),await:Boolean(e.awaitModifier&&e.awaitModifier.kind===o.AwaitKeyword)});case o.FunctionDeclaration:{const t=(0,n_.hasModifier)(o.DeclareKeyword,e),r=this.createNode(e,{type:t||!e.body?t_.AST_NODE_TYPES.TSDeclareFunction:t_.AST_NODE_TYPES.FunctionDeclaration,id:this.convertChild(e.name),generator:!!e.asteriskToken,expression:!1,async:(0,n_.hasModifier)(o.AsyncKeyword,e),params:this.convertParameters(e.parameters),body:this.convertChild(e.body)||void 0});return e.type&&(r.returnType=this.convertTypeAnnotation(e.type,e)),t&&(r.declare=!0),e.typeParameters&&(r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),this.fixExports(e,r)}case o.VariableDeclaration:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.VariableDeclarator,id:this.convertBindingNameWithTypeAnnotation(e.name,e.type,e),init:this.convertChild(e.initializer)});return e.exclamationToken&&(t.definite=!0),t}case o.VariableStatement:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarationList.declarations.map((e=>this.convertChild(e))),kind:(0,n_.getDeclarationKind)(e.declarationList)});return e.decorators&&(t.decorators=e.decorators.map((e=>this.convertChild(e)))),(0,n_.hasModifier)(o.DeclareKeyword,e)&&(t.declare=!0),this.fixExports(e,t)}case o.VariableDeclarationList:return this.createNode(e,{type:t_.AST_NODE_TYPES.VariableDeclaration,declarations:e.declarations.map((e=>this.convertChild(e))),kind:(0,n_.getDeclarationKind)(e)});case o.ExpressionStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.ExpressionStatement,expression:this.convertChild(e.expression)});case o.ThisKeyword:return this.createNode(e,{type:t_.AST_NODE_TYPES.ThisExpression});case o.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:t_.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map((e=>this.convertPattern(e)))}):this.createNode(e,{type:t_.AST_NODE_TYPES.ArrayExpression,elements:e.elements.map((e=>this.convertChild(e)))});case o.ObjectLiteralExpression:return this.allowPattern?this.createNode(e,{type:t_.AST_NODE_TYPES.ObjectPattern,properties:e.properties.map((e=>this.convertPattern(e)))}):this.createNode(e,{type:t_.AST_NODE_TYPES.ObjectExpression,properties:e.properties.map((e=>this.convertChild(e)))});case o.PropertyAssignment:return this.createNode(e,{type:t_.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.converter(e.initializer,e,this.inTypeMode,this.allowPattern),computed:(0,n_.isComputedProperty)(e.name),method:!1,shorthand:!1,kind:"init"});case o.ShorthandPropertyAssignment:return e.objectAssignmentInitializer?this.createNode(e,{type:t_.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.createNode(e,{type:t_.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.name),right:this.convertChild(e.objectAssignmentInitializer)}),computed:!1,method:!1,shorthand:!0,kind:"init"}):this.createNode(e,{type:t_.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:this.convertChild(e.name),computed:!1,method:!1,shorthand:!0,kind:"init"});case o.ComputedPropertyName:return this.convertChild(e.expression);case o.PropertyDeclaration:{const t=(0,n_.hasModifier)(o.AbstractKeyword,e),r=this.createNode(e,{type:t?t_.AST_NODE_TYPES.TSAbstractClassProperty:t_.AST_NODE_TYPES.ClassProperty,key:this.convertChild(e.name),value:this.convertChild(e.initializer),computed:(0,n_.isComputedProperty)(e.name),static:(0,n_.hasModifier)(o.StaticKeyword,e),readonly:(0,n_.hasModifier)(o.ReadonlyKeyword,e)||void 0,declare:(0,n_.hasModifier)(o.DeclareKeyword,e),override:(0,n_.hasModifier)(o.OverrideKeyword,e)});e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e)),e.decorators&&(r.decorators=e.decorators.map((e=>this.convertChild(e))));const n=(0,n_.getTSNodeAccessibility)(e);return n&&(r.accessibility=n),e.name.kind!==o.Identifier&&e.name.kind!==o.ComputedPropertyName||!e.questionToken||(r.optional=!0),e.exclamationToken&&(r.definite=!0),r.key.type===t_.AST_NODE_TYPES.Literal&&e.questionToken&&(r.optional=!0),r}case o.GetAccessor:case o.SetAccessor:if(e.parent.kind===o.InterfaceDeclaration||e.parent.kind===o.TypeLiteral)return this.convertMethodSignature(e);case o.MethodDeclaration:{const r=this.createNode(e,{type:e.body?t_.AST_NODE_TYPES.FunctionExpression:t_.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,generator:!!e.asteriskToken,expression:!1,async:(0,n_.hasModifier)(o.AsyncKeyword,e),body:this.convertChild(e.body),range:[e.parameters.pos-1,e.end],params:[]});let n;if(e.type&&(r.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters),this.fixParentLocation(r,r.typeParameters.range)),t.kind===o.ObjectLiteralExpression)r.params=e.parameters.map((e=>this.convertChild(e))),n=this.createNode(e,{type:t_.AST_NODE_TYPES.Property,key:this.convertChild(e.name),value:r,computed:(0,n_.isComputedProperty)(e.name),method:e.kind===o.MethodDeclaration,shorthand:!1,kind:"init"});else{r.params=this.convertParameters(e.parameters);const t=(0,n_.hasModifier)(o.AbstractKeyword,e)?t_.AST_NODE_TYPES.TSAbstractMethodDefinition:t_.AST_NODE_TYPES.MethodDefinition;n=this.createNode(e,{type:t,key:this.convertChild(e.name),value:r,computed:(0,n_.isComputedProperty)(e.name),static:(0,n_.hasModifier)(o.StaticKeyword,e),kind:"method",override:(0,n_.hasModifier)(o.OverrideKeyword,e)}),e.decorators&&(n.decorators=e.decorators.map((e=>this.convertChild(e))));const i=(0,n_.getTSNodeAccessibility)(e);i&&(n.accessibility=i)}return e.questionToken&&(n.optional=!0),e.kind===o.GetAccessor?n.kind="get":e.kind===o.SetAccessor?n.kind="set":n.static||e.name.kind!==o.StringLiteral||"constructor"!==e.name.text||n.type===t_.AST_NODE_TYPES.Property||(n.kind="constructor"),n}case o.Constructor:{const t=(0,n_.getLastModifier)(e),r=t&&(0,n_.findNextToken)(t,e,this.ast)||e.getFirstToken(),n=this.createNode(e,{type:e.body?t_.AST_NODE_TYPES.FunctionExpression:t_.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,id:null,params:this.convertParameters(e.parameters),generator:!1,expression:!1,async:!1,body:this.convertChild(e.body),range:[e.parameters.pos-1,e.end]});e.typeParameters&&(n.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters),this.fixParentLocation(n,n.typeParameters.range)),e.type&&(n.returnType=this.convertTypeAnnotation(e.type,e));const i=this.createNode(e,{type:t_.AST_NODE_TYPES.Identifier,name:"constructor",range:[r.getStart(this.ast),r.end]}),a=(0,n_.hasModifier)(o.StaticKeyword,e),s=this.createNode(e,{type:(0,n_.hasModifier)(o.AbstractKeyword,e)?t_.AST_NODE_TYPES.TSAbstractMethodDefinition:t_.AST_NODE_TYPES.MethodDefinition,key:i,value:n,computed:!1,static:a,kind:a?"method":"constructor",override:!1}),c=(0,n_.getTSNodeAccessibility)(e);return c&&(s.accessibility=c),s}case o.FunctionExpression:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.FunctionExpression,id:this.convertChild(e.name),generator:!!e.asteriskToken,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:(0,n_.hasModifier)(o.AsyncKeyword,e),expression:!1});return e.type&&(t.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),t}case o.SuperKeyword:return this.createNode(e,{type:t_.AST_NODE_TYPES.Super});case o.ArrayBindingPattern:return this.createNode(e,{type:t_.AST_NODE_TYPES.ArrayPattern,elements:e.elements.map((e=>this.convertPattern(e)))});case o.OmittedExpression:return null;case o.ObjectBindingPattern:return this.createNode(e,{type:t_.AST_NODE_TYPES.ObjectPattern,properties:e.elements.map((e=>this.convertPattern(e)))});case o.BindingElement:if(t.kind===o.ArrayBindingPattern){const r=this.convertChild(e.name,t);return e.initializer?this.createNode(e,{type:t_.AST_NODE_TYPES.AssignmentPattern,left:r,right:this.convertChild(e.initializer)}):e.dotDotDotToken?this.createNode(e,{type:t_.AST_NODE_TYPES.RestElement,argument:r}):r}{let t;return t=e.dotDotDotToken?this.createNode(e,{type:t_.AST_NODE_TYPES.RestElement,argument:this.convertChild(null!==(r=e.propertyName)&&void 0!==r?r:e.name)}):this.createNode(e,{type:t_.AST_NODE_TYPES.Property,key:this.convertChild(null!==(n=e.propertyName)&&void 0!==n?n:e.name),value:this.convertChild(e.name),computed:Boolean(e.propertyName&&e.propertyName.kind===o.ComputedPropertyName),method:!1,shorthand:!e.propertyName,kind:"init"}),e.initializer&&(t.value=this.createNode(e,{type:t_.AST_NODE_TYPES.AssignmentPattern,left:this.convertChild(e.name),right:this.convertChild(e.initializer),range:[e.name.getStart(this.ast),e.initializer.end]})),t}case o.ArrowFunction:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:this.convertParameters(e.parameters),body:this.convertChild(e.body),async:(0,n_.hasModifier)(o.AsyncKeyword,e),expression:e.body.kind!==o.Block});return e.type&&(t.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),t}case o.YieldExpression:return this.createNode(e,{type:t_.AST_NODE_TYPES.YieldExpression,delegate:!!e.asteriskToken,argument:this.convertChild(e.expression)});case o.AwaitExpression:return this.createNode(e,{type:t_.AST_NODE_TYPES.AwaitExpression,argument:this.convertChild(e.expression)});case o.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:t_.AST_NODE_TYPES.TemplateLiteral,quasis:[this.createNode(e,{type:t_.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-1),cooked:e.text},tail:!0})],expressions:[]});case o.TemplateExpression:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TemplateLiteral,quasis:[this.convertChild(e.head)],expressions:[]});return e.templateSpans.forEach((e=>{t.expressions.push(this.convertChild(e.expression)),t.quasis.push(this.convertChild(e.literal))})),t}case o.TaggedTemplateExpression:return this.createNode(e,{type:t_.AST_NODE_TYPES.TaggedTemplateExpression,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):void 0,tag:this.convertChild(e.tag),quasi:this.convertChild(e.template)});case o.TemplateHead:case o.TemplateMiddle:case o.TemplateTail:{const t=e.kind===o.TemplateTail;return this.createNode(e,{type:t_.AST_NODE_TYPES.TemplateElement,value:{raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(t?1:2)),cooked:e.text},tail:t})}case o.SpreadAssignment:case o.SpreadElement:return this.allowPattern?this.createNode(e,{type:t_.AST_NODE_TYPES.RestElement,argument:this.convertPattern(e.expression)}):this.createNode(e,{type:t_.AST_NODE_TYPES.SpreadElement,argument:this.convertChild(e.expression)});case o.Parameter:{let r,n;return e.dotDotDotToken?r=n=this.createNode(e,{type:t_.AST_NODE_TYPES.RestElement,argument:this.convertChild(e.name)}):e.initializer?(r=this.convertChild(e.name),n=this.createNode(e,{type:t_.AST_NODE_TYPES.AssignmentPattern,left:r,right:this.convertChild(e.initializer)}),e.modifiers&&(n.range[0]=r.range[0],n.loc=(0,n_.getLocFor)(n.range[0],n.range[1],this.ast))):r=n=this.convertChild(e.name,t),e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(r,r.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>r.range[1]&&(r.range[1]=e.questionToken.end,r.loc.end=(0,n_.getLineAndCharacterFor)(r.range[1],this.ast)),r.optional=!0),e.modifiers?this.createNode(e,{type:t_.AST_NODE_TYPES.TSParameterProperty,accessibility:null!==(i=(0,n_.getTSNodeAccessibility)(e))&&void 0!==i?i:void 0,readonly:(0,n_.hasModifier)(o.ReadonlyKeyword,e)||void 0,static:(0,n_.hasModifier)(o.StaticKeyword,e)||void 0,export:(0,n_.hasModifier)(o.ExportKeyword,e)||void 0,override:(0,n_.hasModifier)(o.OverrideKeyword,e)||void 0,parameter:n}):n}case o.ClassDeclaration:case o.ClassExpression:{const t=null!==(s=e.heritageClauses)&&void 0!==s?s:[],r=e.kind===o.ClassDeclaration?t_.AST_NODE_TYPES.ClassDeclaration:t_.AST_NODE_TYPES.ClassExpression,n=t.find((e=>e.token===o.ExtendsKeyword)),i=t.find((e=>e.token===o.ImplementsKeyword)),a=this.createNode(e,{type:r,id:this.convertChild(e.name),body:this.createNode(e,{type:t_.AST_NODE_TYPES.ClassBody,body:[],range:[e.members.pos-1,e.end]}),superClass:(null==n?void 0:n.types[0])?this.convertChild(n.types[0].expression):null});if(n){if(n.types.length>1)throw(0,n_.createError)(this.ast,n.types[1].pos,"Classes can only extend a single class.");(null===(c=n.types[0])||void 0===c?void 0:c.typeArguments)&&(a.superTypeParameters=this.convertTypeArgumentsToTypeParameters(n.types[0].typeArguments,n.types[0]))}e.typeParameters&&(a.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),i&&(a.implements=i.types.map((e=>this.convertChild(e)))),(0,n_.hasModifier)(o.AbstractKeyword,e)&&(a.abstract=!0),(0,n_.hasModifier)(o.DeclareKeyword,e)&&(a.declare=!0),e.decorators&&(a.decorators=e.decorators.map((e=>this.convertChild(e))));const u=e.members.filter(n_.isESTreeClassMember);return u.length&&(a.body.body=u.map((e=>this.convertChild(e)))),this.fixExports(e,a)}case o.ModuleBlock:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case o.ImportDeclaration:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.ImportDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:[],importKind:"value"});if(e.importClause&&(e.importClause.isTypeOnly&&(t.importKind="type"),e.importClause.name&&t.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case o.NamespaceImport:t.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case o.NamedImports:t.specifiers=t.specifiers.concat(e.importClause.namedBindings.elements.map((e=>this.convertChild(e))))}return t}case o.NamespaceImport:return this.createNode(e,{type:t_.AST_NODE_TYPES.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case o.ImportSpecifier:return this.createNode(e,{type:t_.AST_NODE_TYPES.ImportSpecifier,local:this.convertChild(e.name),imported:this.convertChild(null!==(u=e.propertyName)&&void 0!==u?u:e.name)});case o.ImportClause:{const t=this.convertChild(e.name);return this.createNode(e,{type:t_.AST_NODE_TYPES.ImportDefaultSpecifier,local:t,range:t.range})}case o.ExportDeclaration:return(null===(l=e.exportClause)||void 0===l?void 0:l.kind)===o.NamedExports?this.createNode(e,{type:t_.AST_NODE_TYPES.ExportNamedDeclaration,source:this.convertChild(e.moduleSpecifier),specifiers:e.exportClause.elements.map((e=>this.convertChild(e))),exportKind:e.isTypeOnly?"type":"value",declaration:null}):this.createNode(e,{type:t_.AST_NODE_TYPES.ExportAllDeclaration,source:this.convertChild(e.moduleSpecifier),exportKind:e.isTypeOnly?"type":"value",exported:e.exportClause&&e.exportClause.kind===o.NamespaceExport?this.convertChild(e.exportClause.name):null});case o.ExportSpecifier:return this.createNode(e,{type:t_.AST_NODE_TYPES.ExportSpecifier,local:this.convertChild(null!==(_=e.propertyName)&&void 0!==_?_:e.name),exported:this.convertChild(e.name)});case o.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:t_.AST_NODE_TYPES.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:t_.AST_NODE_TYPES.ExportDefaultDeclaration,declaration:this.convertChild(e.expression),exportKind:"value"});case o.PrefixUnaryExpression:case o.PostfixUnaryExpression:{const t=(0,n_.getTextForTokenKind)(e.operator);return"++"===t||"--"===t?this.createNode(e,{type:t_.AST_NODE_TYPES.UpdateExpression,operator:t,prefix:e.kind===o.PrefixUnaryExpression,argument:this.convertChild(e.operand)}):this.createNode(e,{type:t_.AST_NODE_TYPES.UnaryExpression,operator:t,prefix:e.kind===o.PrefixUnaryExpression,argument:this.convertChild(e.operand)})}case o.DeleteExpression:return this.createNode(e,{type:t_.AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:this.convertChild(e.expression)});case o.VoidExpression:return this.createNode(e,{type:t_.AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:this.convertChild(e.expression)});case o.TypeOfExpression:return this.createNode(e,{type:t_.AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:this.convertChild(e.expression)});case o.TypeOperator:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSTypeOperator,operator:(0,n_.getTextForTokenKind)(e.operator),typeAnnotation:this.convertChild(e.type)});case o.BinaryExpression:if((0,n_.isComma)(e.operatorToken)){const t=this.createNode(e,{type:t_.AST_NODE_TYPES.SequenceExpression,expressions:[]}),r=this.convertChild(e.left);return r.type===t_.AST_NODE_TYPES.SequenceExpression&&e.left.kind!==o.ParenthesizedExpression?t.expressions=t.expressions.concat(r.expressions):t.expressions.push(r),t.expressions.push(this.convertChild(e.right)),t}{const t=(0,n_.getBinaryExpressionType)(e.operatorToken);return this.allowPattern&&t===t_.AST_NODE_TYPES.AssignmentExpression?this.createNode(e,{type:t_.AST_NODE_TYPES.AssignmentPattern,left:this.convertPattern(e.left,e),right:this.convertChild(e.right)}):this.createNode(e,{type:t,operator:(0,n_.getTextForTokenKind)(e.operatorToken.kind),left:this.converter(e.left,e,this.inTypeMode,t===t_.AST_NODE_TYPES.AssignmentExpression),right:this.convertChild(e.right)})}case o.PropertyAccessExpression:{const t=this.convertChild(e.expression),r=this.convertChild(e.name),n=!1,i=this.createNode(e,{type:t_.AST_NODE_TYPES.MemberExpression,object:t,property:r,computed:n,optional:void 0!==e.questionDotToken});return this.convertChainExpression(i,e)}case o.ElementAccessExpression:{const t=this.convertChild(e.expression),r=this.convertChild(e.argumentExpression),n=!0,i=this.createNode(e,{type:t_.AST_NODE_TYPES.MemberExpression,object:t,property:r,computed:n,optional:void 0!==e.questionDotToken});return this.convertChainExpression(i,e)}case o.CallExpression:{if(e.expression.kind===o.ImportKeyword){if(1!==e.arguments.length)throw(0,n_.createError)(this.ast,e.arguments.pos,"Dynamic import must have one specifier as an argument.");return this.createNode(e,{type:t_.AST_NODE_TYPES.ImportExpression,source:this.convertChild(e.arguments[0])})}const t=this.convertChild(e.expression),r=e.arguments.map((e=>this.convertChild(e))),n=this.createNode(e,{type:t_.AST_NODE_TYPES.CallExpression,callee:t,arguments:r,optional:void 0!==e.questionDotToken});return e.typeArguments&&(n.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)),this.convertChainExpression(n,e)}case o.NewExpression:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.NewExpression,callee:this.convertChild(e.expression),arguments:e.arguments?e.arguments.map((e=>this.convertChild(e))):[]});return e.typeArguments&&(t.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)),t}case o.ConditionalExpression:return this.createNode(e,{type:t_.AST_NODE_TYPES.ConditionalExpression,test:this.convertChild(e.condition),consequent:this.convertChild(e.whenTrue),alternate:this.convertChild(e.whenFalse)});case o.MetaProperty:return this.createNode(e,{type:t_.AST_NODE_TYPES.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:t_.AST_NODE_TYPES.Identifier,name:(0,n_.getTextForTokenKind)(e.keywordToken)}),property:this.convertChild(e.name)});case o.Decorator:return this.createNode(e,{type:t_.AST_NODE_TYPES.Decorator,expression:this.convertChild(e.expression)});case o.StringLiteral:return this.createNode(e,{type:t_.AST_NODE_TYPES.Literal,value:t.kind===o.JsxAttribute?(0,n_.unescapeStringLiteralText)(e.text):e.text,raw:e.getText()});case o.NumericLiteral:return this.createNode(e,{type:t_.AST_NODE_TYPES.Literal,value:Number(e.text),raw:e.getText()});case o.BigIntLiteral:{const t=(0,n_.getRange)(e,this.ast),r=this.ast.text.slice(t[0],t[1]),n=r.slice(0,-1).replace(/_/g,""),i="undefined"!=typeof BigInt?BigInt(n):null;return this.createNode(e,{type:t_.AST_NODE_TYPES.Literal,raw:r,value:i,bigint:null===i?n:String(i),range:t})}case o.RegularExpressionLiteral:{const t=e.text.slice(1,e.text.lastIndexOf("/")),r=e.text.slice(e.text.lastIndexOf("/")+1);let n=null;try{n=new RegExp(t,r)}catch(e){n=null}return this.createNode(e,{type:t_.AST_NODE_TYPES.Literal,value:n,raw:e.text,regex:{pattern:t,flags:r}})}case o.TrueKeyword:return this.createNode(e,{type:t_.AST_NODE_TYPES.Literal,value:!0,raw:"true"});case o.FalseKeyword:return this.createNode(e,{type:t_.AST_NODE_TYPES.Literal,value:!1,raw:"false"});case o.NullKeyword:return!i_.typescriptVersionIsAtLeast["4.0"]&&this.inTypeMode?this.createNode(e,{type:t_.AST_NODE_TYPES.TSNullKeyword}):this.createNode(e,{type:t_.AST_NODE_TYPES.Literal,value:null,raw:"null"});case o.EmptyStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.EmptyStatement});case o.DebuggerStatement:return this.createNode(e,{type:t_.AST_NODE_TYPES.DebuggerStatement});case o.JsxElement:return this.createNode(e,{type:t_.AST_NODE_TYPES.JSXElement,openingElement:this.convertChild(e.openingElement),closingElement:this.convertChild(e.closingElement),children:e.children.map((e=>this.convertChild(e)))});case o.JsxFragment:return this.createNode(e,{type:t_.AST_NODE_TYPES.JSXFragment,openingFragment:this.convertChild(e.openingFragment),closingFragment:this.convertChild(e.closingFragment),children:e.children.map((e=>this.convertChild(e)))});case o.JsxSelfClosingElement:return this.createNode(e,{type:t_.AST_NODE_TYPES.JSXElement,openingElement:this.createNode(e,{type:t_.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):void 0,selfClosing:!0,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map((e=>this.convertChild(e))),range:(0,n_.getRange)(e,this.ast)}),closingElement:null,children:[]});case o.JsxOpeningElement:return this.createNode(e,{type:t_.AST_NODE_TYPES.JSXOpeningElement,typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):void 0,selfClosing:!1,name:this.convertJSXTagName(e.tagName,e),attributes:e.attributes.properties.map((e=>this.convertChild(e)))});case o.JsxClosingElement:return this.createNode(e,{type:t_.AST_NODE_TYPES.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case o.JsxOpeningFragment:return this.createNode(e,{type:t_.AST_NODE_TYPES.JSXOpeningFragment});case o.JsxClosingFragment:return this.createNode(e,{type:t_.AST_NODE_TYPES.JSXClosingFragment});case o.JsxExpression:{const t=e.expression?this.convertChild(e.expression):this.createNode(e,{type:t_.AST_NODE_TYPES.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:t_.AST_NODE_TYPES.JSXSpreadChild,expression:t}):this.createNode(e,{type:t_.AST_NODE_TYPES.JSXExpressionContainer,expression:t})}case o.JsxAttribute:return this.createNode(e,{type:t_.AST_NODE_TYPES.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(e.name),value:this.convertChild(e.initializer)});case o.JsxText:{const t=e.getFullStart(),r=e.getEnd(),n=this.ast.text.slice(t,r);return this.options.useJSXTextNode?this.createNode(e,{type:t_.AST_NODE_TYPES.JSXText,value:(0,n_.unescapeStringLiteralText)(n),raw:n,range:[t,r]}):this.createNode(e,{type:t_.AST_NODE_TYPES.Literal,value:(0,n_.unescapeStringLiteralText)(n),raw:n,range:[t,r]})}case o.JsxSpreadAttribute:return this.createNode(e,{type:t_.AST_NODE_TYPES.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case o.QualifiedName:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case o.TypeReference:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSTypeReference,typeName:this.convertType(e.typeName),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):void 0});case o.TypeParameter:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSTypeParameter,name:this.convertType(e.name),constraint:e.constraint?this.convertType(e.constraint):void 0,default:e.default?this.convertType(e.default):void 0});case o.ThisType:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSThisType});case o.AnyKeyword:case o.BigIntKeyword:case o.BooleanKeyword:case o.NeverKeyword:case o.NumberKeyword:case o.ObjectKeyword:case o.StringKeyword:case o.SymbolKeyword:case o.UnknownKeyword:case o.VoidKeyword:case o.UndefinedKeyword:case o.IntrinsicKeyword:return this.createNode(e,{type:t_.AST_NODE_TYPES[`TS${o[e.kind]}`]});case o.NonNullExpression:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSNonNullExpression,expression:this.convertChild(e.expression)});return this.convertChainExpression(t,e)}case o.TypeLiteral:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSTypeLiteral,members:e.members.map((e=>this.convertChild(e)))});case o.ArrayType:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSArrayType,elementType:this.convertType(e.elementType)});case o.IndexedAccessType:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSIndexedAccessType,objectType:this.convertType(e.objectType),indexType:this.convertType(e.indexType)});case o.ConditionalType:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSConditionalType,checkType:this.convertType(e.checkType),extendsType:this.convertType(e.extendsType),trueType:this.convertType(e.trueType),falseType:this.convertType(e.falseType)});case o.TypeQuery:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSTypeQuery,exprName:this.convertType(e.exprName)});case o.MappedType:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSMappedType,typeParameter:this.convertType(e.typeParameter),nameType:null!==(d=this.convertType(e.nameType))&&void 0!==d?d:null});return e.readonlyToken&&(e.readonlyToken.kind===o.ReadonlyKeyword?t.readonly=!0:t.readonly=(0,n_.getTextForTokenKind)(e.readonlyToken.kind)),e.questionToken&&(e.questionToken.kind===o.QuestionToken?t.optional=!0:t.optional=(0,n_.getTextForTokenKind)(e.questionToken.kind)),e.type&&(t.typeAnnotation=this.convertType(e.type)),t}case o.ParenthesizedExpression:return this.convertChild(e.expression,t);case o.TypeAliasDeclaration:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSTypeAliasDeclaration,id:this.convertChild(e.name),typeAnnotation:this.convertType(e.type)});return(0,n_.hasModifier)(o.DeclareKeyword,e)&&(t.declare=!0),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),this.fixExports(e,t)}case o.MethodSignature:return this.convertMethodSignature(e);case o.PropertySignature:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSPropertySignature,optional:(0,n_.isOptional)(e)||void 0,computed:(0,n_.isComputedProperty)(e.name),key:this.convertChild(e.name),typeAnnotation:e.type?this.convertTypeAnnotation(e.type,e):void 0,initializer:this.convertChild(e.initializer)||void 0,readonly:(0,n_.hasModifier)(o.ReadonlyKeyword,e)||void 0,static:(0,n_.hasModifier)(o.StaticKeyword,e)||void 0,export:(0,n_.hasModifier)(o.ExportKeyword,e)||void 0}),r=(0,n_.getTSNodeAccessibility)(e);return r&&(t.accessibility=r),t}case o.IndexSignature:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSIndexSignature,parameters:e.parameters.map((e=>this.convertChild(e)))});e.type&&(t.typeAnnotation=this.convertTypeAnnotation(e.type,e)),(0,n_.hasModifier)(o.ReadonlyKeyword,e)&&(t.readonly=!0);const r=(0,n_.getTSNodeAccessibility)(e);return r&&(t.accessibility=r),(0,n_.hasModifier)(o.ExportKeyword,e)&&(t.export=!0),(0,n_.hasModifier)(o.StaticKeyword,e)&&(t.static=!0),t}case o.ConstructorType:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSConstructorType,params:this.convertParameters(e.parameters),abstract:(0,n_.hasModifier)(o.AbstractKeyword,e)});return e.type&&(t.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(t.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),t}case o.FunctionType:case o.ConstructSignature:case o.CallSignature:{const t=e.kind===o.ConstructSignature?t_.AST_NODE_TYPES.TSConstructSignatureDeclaration:e.kind===o.CallSignature?t_.AST_NODE_TYPES.TSCallSignatureDeclaration:t_.AST_NODE_TYPES.TSFunctionType,r=this.createNode(e,{type:t,params:this.convertParameters(e.parameters)});return e.type&&(r.returnType=this.convertTypeAnnotation(e.type,e)),e.typeParameters&&(r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),r}case o.ExpressionWithTypeArguments:{const r=this.createNode(e,{type:t&&t.kind===o.InterfaceDeclaration?t_.AST_NODE_TYPES.TSInterfaceHeritage:t_.AST_NODE_TYPES.TSClassImplements,expression:this.convertChild(e.expression)});return e.typeArguments&&(r.typeParameters=this.convertTypeArgumentsToTypeParameters(e.typeArguments,e)),r}case o.InterfaceDeclaration:{const t=null!==(p=e.heritageClauses)&&void 0!==p?p:[],r=this.createNode(e,{type:t_.AST_NODE_TYPES.TSInterfaceDeclaration,body:this.createNode(e,{type:t_.AST_NODE_TYPES.TSInterfaceBody,body:e.members.map((e=>this.convertChild(e))),range:[e.members.pos-1,e.end]}),id:this.convertChild(e.name)});if(e.typeParameters&&(r.typeParameters=this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)),t.length>0){const n=[],i=[];for(const r of t)if(r.token===o.ExtendsKeyword)for(const t of r.types)n.push(this.convertChild(t,e));else for(const t of r.types)i.push(this.convertChild(t,e));n.length&&(r.extends=n),i.length&&(r.implements=i)}return(0,n_.hasModifier)(o.AbstractKeyword,e)&&(r.abstract=!0),(0,n_.hasModifier)(o.DeclareKeyword,e)&&(r.declare=!0),this.fixExports(e,r)}case o.TypePredicate:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSTypePredicate,asserts:void 0!==e.assertsModifier,parameterName:this.convertChild(e.parameterName),typeAnnotation:null});return e.type&&(t.typeAnnotation=this.convertTypeAnnotation(e.type,e),t.typeAnnotation.loc=t.typeAnnotation.typeAnnotation.loc,t.typeAnnotation.range=t.typeAnnotation.typeAnnotation.range),t}case o.ImportType:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSImportType,isTypeOf:!!e.isTypeOf,parameter:this.convertChild(e.argument),qualifier:this.convertChild(e.qualifier),typeParameters:e.typeArguments?this.convertTypeArgumentsToTypeParameters(e.typeArguments,e):null});case o.EnumDeclaration:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSEnumDeclaration,id:this.convertChild(e.name),members:e.members.map((e=>this.convertChild(e)))});return this.applyModifiersToResult(t,e.modifiers),this.fixExports(e,t)}case o.EnumMember:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSEnumMember,id:this.convertChild(e.name)});return e.initializer&&(t.initializer=this.convertChild(e.initializer)),e.name.kind===a.SyntaxKind.ComputedPropertyName&&(t.computed=!0),t}case o.ModuleDeclaration:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSModuleDeclaration,id:this.convertChild(e.name)});return e.body&&(t.body=this.convertChild(e.body)),this.applyModifiersToResult(t,e.modifiers),e.flags&a.NodeFlags.GlobalAugmentation&&(t.global=!0),this.fixExports(e,t)}case o.ParenthesizedType:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSParenthesizedType,typeAnnotation:this.convertType(e.type)});case o.UnionType:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSUnionType,types:e.types.map((e=>this.convertType(e)))});case o.IntersectionType:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSIntersectionType,types:e.types.map((e=>this.convertType(e)))});case o.AsExpression:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertType(e.type)});case o.InferType:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSInferType,typeParameter:this.convertType(e.typeParameter)});case o.LiteralType:return i_.typescriptVersionIsAtLeast["4.0"]&&e.literal.kind===o.NullKeyword?this.createNode(e.literal,{type:t_.AST_NODE_TYPES.TSNullKeyword}):this.createNode(e,{type:t_.AST_NODE_TYPES.TSLiteralType,literal:this.convertType(e.literal)});case o.TypeAssertionExpression:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSTypeAssertion,typeAnnotation:this.convertType(e.type),expression:this.convertChild(e.expression)});case o.ImportEqualsDeclaration:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSImportEqualsDeclaration,id:this.convertChild(e.name),moduleReference:this.convertChild(e.moduleReference),importKind:e.isTypeOnly?"type":"value",isExport:(0,n_.hasModifier)(o.ExportKeyword,e)});case o.ExternalModuleReference:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSExternalModuleReference,expression:this.convertChild(e.expression)});case o.NamespaceExportDeclaration:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case o.AbstractKeyword:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSAbstractKeyword});case o.TupleType:{const t="elementTypes"in e?e.elementTypes.map((e=>this.convertType(e))):e.elements.map((e=>this.convertType(e)));return this.createNode(e,{type:t_.AST_NODE_TYPES.TSTupleType,elementTypes:t})}case o.NamedTupleMember:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSNamedTupleMember,elementType:this.convertType(e.type,e),label:this.convertChild(e.name,e),optional:null!=e.questionToken});return e.dotDotDotToken?(t.range[0]=t.label.range[0],t.loc.start=t.label.loc.start,this.createNode(e,{type:t_.AST_NODE_TYPES.TSRestType,typeAnnotation:t})):t}case o.OptionalType:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSOptionalType,typeAnnotation:this.convertType(e.type)});case o.RestType:return this.createNode(e,{type:t_.AST_NODE_TYPES.TSRestType,typeAnnotation:this.convertType(e.type)});case o.TemplateLiteralType:{const t=this.createNode(e,{type:t_.AST_NODE_TYPES.TSTemplateLiteralType,quasis:[this.convertChild(e.head)],types:[]});return e.templateSpans.forEach((e=>{t.types.push(this.convertChild(e.type)),t.quasis.push(this.convertChild(e.literal))})),t}case o.ClassStaticBlockDeclaration:return this.createNode(e,{type:t_.AST_NODE_TYPES.StaticBlock,body:this.convertBodyExpressions(e.body.statements,e)});default:return this.deeplyCopy(e)}}}})),o_=function(e,t){return(o_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};var s_=function(){return(s_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u_(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function l_(e){return this instanceof l_?(this.v=e,this):new l_(e)}var __=Object.freeze({__proto__:null,__extends:function(e,t){function r(){this.constructor=e}o_(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},get __assign(){return s_},__rest:function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o},__param:function(e,t){return function(r,n){t(r,n,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))},__generator:function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof l_?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}},__asyncDelegator:function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:l_(e[n](t)),done:"return"===n}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=c_(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}}),d_=E((function(e,t){function r(e){return e.kind===Hl.SyntaxKind.ModuleDeclaration}function n(e){return e.kind===Hl.SyntaxKind.PropertyAccessExpression}function i(e){return e.kind===Hl.SyntaxKind.QualifiedName}Object.defineProperty(t,"__esModule",{value:!0}),t.isExpressionStatement=t.isExpression=t.isExportSpecifier=t.isExportDeclaration=t.isExportAssignment=t.isEnumMember=t.isEnumDeclaration=t.isEntityNameExpression=t.isEntityName=t.isEmptyStatement=t.isElementAccessExpression=t.isDoStatement=t.isDeleteExpression=t.isDefaultClause=t.isDecorator=t.isDebuggerStatement=t.isComputedPropertyName=t.isContinueStatement=t.isConstructSignatureDeclaration=t.isConstructorTypeNode=t.isConstructorDeclaration=t.isConditionalTypeNode=t.isConditionalExpression=t.isCommaListExpression=t.isClassLikeDeclaration=t.isClassExpression=t.isClassDeclaration=t.isCatchClause=t.isCaseOrDefaultClause=t.isCaseClause=t.isCaseBlock=t.isCallSignatureDeclaration=t.isCallLikeExpression=t.isCallExpression=t.isBreakStatement=t.isBreakOrContinueStatement=t.isBooleanLiteral=t.isBlockLike=t.isBlock=t.isBindingPattern=t.isBindingElement=t.isBinaryExpression=t.isAwaitExpression=t.isAssertionExpression=t.isAsExpression=t.isArrowFunction=t.isArrayTypeNode=t.isArrayLiteralExpression=t.isArrayBindingPattern=t.isAccessorDeclaration=void 0,t.isNamespaceImport=t.isNamespaceDeclaration=t.isNamedImports=t.isNamedExports=t.isModuleDeclaration=t.isModuleBlock=t.isMethodSignature=t.isMethodDeclaration=t.isMetaProperty=t.isMappedTypeNode=t.isLiteralTypeNode=t.isLiteralExpression=t.isLabeledStatement=t.isJsxText=t.isJsxSpreadAttribute=t.isJsxSelfClosingElement=t.isJsxOpeningLikeElement=t.isJsxOpeningFragment=t.isJsxOpeningElement=t.isJsxFragment=t.isJsxExpression=t.isJsxElement=t.isJsxClosingFragment=t.isJsxClosingElement=t.isJsxAttributes=t.isJsxAttributeLike=t.isJsxAttribute=t.isJsDoc=t.isIterationStatement=t.isIntersectionTypeNode=t.isInterfaceDeclaration=t.isInferTypeNode=t.isIndexSignatureDeclaration=t.isIndexedAccessTypeNode=t.isImportSpecifier=t.isImportEqualsDeclaration=t.isImportDeclaration=t.isImportClause=t.isIfStatement=t.isIdentifier=t.isGetAccessorDeclaration=t.isFunctionTypeNode=t.isFunctionExpression=t.isFunctionDeclaration=t.isForStatement=t.isForOfStatement=t.isForInOrOfStatement=t.isForInStatement=t.isExternalModuleReference=t.isExpressionWithTypeArguments=void 0,t.isVariableStatement=t.isVariableDeclaration=t.isUnionTypeNode=t.isTypeQueryNode=t.isTypeReferenceNode=t.isTypePredicateNode=t.isTypeParameterDeclaration=t.isTypeOperatorNode=t.isTypeOfExpression=t.isTypeLiteralNode=t.isTypeAssertion=t.isTypeAliasDeclaration=t.isTupleTypeNode=t.isTryStatement=t.isThrowStatement=t.isTextualLiteral=t.isTemplateLiteral=t.isTemplateExpression=t.isTaggedTemplateExpression=t.isSyntaxList=t.isSwitchStatement=t.isStringLiteral=t.isSpreadElement=t.isSpreadAssignment=t.isSourceFile=t.isSignatureDeclaration=t.isShorthandPropertyAssignment=t.isSetAccessorDeclaration=t.isReturnStatement=t.isRegularExpressionLiteral=t.isQualifiedName=t.isPropertySignature=t.isPropertyDeclaration=t.isPropertyAssignment=t.isPropertyAccessExpression=t.isPrefixUnaryExpression=t.isPostfixUnaryExpression=t.isParenthesizedTypeNode=t.isParenthesizedExpression=t.isParameterDeclaration=t.isOmittedExpression=t.isObjectLiteralExpression=t.isObjectBindingPattern=t.isNumericOrStringLikeLiteral=t.isNumericLiteral=t.isNullLiteral=t.isNoSubstitutionTemplateLiteral=t.isNonNullExpression=t.isNewExpression=t.isNamespaceExportDeclaration=void 0,t.isWithStatement=t.isWhileStatement=t.isVoidExpression=t.isVariableDeclarationList=void 0,t.isAccessorDeclaration=function(e){return e.kind===Hl.SyntaxKind.GetAccessor||e.kind===Hl.SyntaxKind.SetAccessor},t.isArrayBindingPattern=function(e){return e.kind===Hl.SyntaxKind.ArrayBindingPattern},t.isArrayLiteralExpression=function(e){return e.kind===Hl.SyntaxKind.ArrayLiteralExpression},t.isArrayTypeNode=function(e){return e.kind===Hl.SyntaxKind.ArrayType},t.isArrowFunction=function(e){return e.kind===Hl.SyntaxKind.ArrowFunction},t.isAsExpression=function(e){return e.kind===Hl.SyntaxKind.AsExpression},t.isAssertionExpression=function(e){return e.kind===Hl.SyntaxKind.AsExpression||e.kind===Hl.SyntaxKind.TypeAssertionExpression},t.isAwaitExpression=function(e){return e.kind===Hl.SyntaxKind.AwaitExpression},t.isBinaryExpression=function(e){return e.kind===Hl.SyntaxKind.BinaryExpression},t.isBindingElement=function(e){return e.kind===Hl.SyntaxKind.BindingElement},t.isBindingPattern=function(e){return e.kind===Hl.SyntaxKind.ArrayBindingPattern||e.kind===Hl.SyntaxKind.ObjectBindingPattern},t.isBlock=function(e){return e.kind===Hl.SyntaxKind.Block},t.isBlockLike=function(e){return void 0!==e.statements},t.isBooleanLiteral=function(e){return e.kind===Hl.SyntaxKind.TrueKeyword||e.kind===Hl.SyntaxKind.FalseKeyword},t.isBreakOrContinueStatement=function(e){return e.kind===Hl.SyntaxKind.BreakStatement||e.kind===Hl.SyntaxKind.ContinueStatement},t.isBreakStatement=function(e){return e.kind===Hl.SyntaxKind.BreakStatement},t.isCallExpression=function(e){return e.kind===Hl.SyntaxKind.CallExpression},t.isCallLikeExpression=function(e){switch(e.kind){case Hl.SyntaxKind.CallExpression:case Hl.SyntaxKind.Decorator:case Hl.SyntaxKind.JsxOpeningElement:case Hl.SyntaxKind.JsxSelfClosingElement:case Hl.SyntaxKind.NewExpression:case Hl.SyntaxKind.TaggedTemplateExpression:return!0;default:return!1}},t.isCallSignatureDeclaration=function(e){return e.kind===Hl.SyntaxKind.CallSignature},t.isCaseBlock=function(e){return e.kind===Hl.SyntaxKind.CaseBlock},t.isCaseClause=function(e){return e.kind===Hl.SyntaxKind.CaseClause},t.isCaseOrDefaultClause=function(e){return e.kind===Hl.SyntaxKind.CaseClause||e.kind===Hl.SyntaxKind.DefaultClause},t.isCatchClause=function(e){return e.kind===Hl.SyntaxKind.CatchClause},t.isClassDeclaration=function(e){return e.kind===Hl.SyntaxKind.ClassDeclaration},t.isClassExpression=function(e){return e.kind===Hl.SyntaxKind.ClassExpression},t.isClassLikeDeclaration=function(e){return e.kind===Hl.SyntaxKind.ClassDeclaration||e.kind===Hl.SyntaxKind.ClassExpression},t.isCommaListExpression=function(e){return e.kind===Hl.SyntaxKind.CommaListExpression},t.isConditionalExpression=function(e){return e.kind===Hl.SyntaxKind.ConditionalExpression},t.isConditionalTypeNode=function(e){return e.kind===Hl.SyntaxKind.ConditionalType},t.isConstructorDeclaration=function(e){return e.kind===Hl.SyntaxKind.Constructor},t.isConstructorTypeNode=function(e){return e.kind===Hl.SyntaxKind.ConstructorType},t.isConstructSignatureDeclaration=function(e){return e.kind===Hl.SyntaxKind.ConstructSignature},t.isContinueStatement=function(e){return e.kind===Hl.SyntaxKind.ContinueStatement},t.isComputedPropertyName=function(e){return e.kind===Hl.SyntaxKind.ComputedPropertyName},t.isDebuggerStatement=function(e){return e.kind===Hl.SyntaxKind.DebuggerStatement},t.isDecorator=function(e){return e.kind===Hl.SyntaxKind.Decorator},t.isDefaultClause=function(e){return e.kind===Hl.SyntaxKind.DefaultClause},t.isDeleteExpression=function(e){return e.kind===Hl.SyntaxKind.DeleteExpression},t.isDoStatement=function(e){return e.kind===Hl.SyntaxKind.DoStatement},t.isElementAccessExpression=function(e){return e.kind===Hl.SyntaxKind.ElementAccessExpression},t.isEmptyStatement=function(e){return e.kind===Hl.SyntaxKind.EmptyStatement},t.isEntityName=function(e){return e.kind===Hl.SyntaxKind.Identifier||i(e)},t.isEntityNameExpression=function e(t){return t.kind===Hl.SyntaxKind.Identifier||n(t)&&e(t.expression)},t.isEnumDeclaration=function(e){return e.kind===Hl.SyntaxKind.EnumDeclaration},t.isEnumMember=function(e){return e.kind===Hl.SyntaxKind.EnumMember},t.isExportAssignment=function(e){return e.kind===Hl.SyntaxKind.ExportAssignment},t.isExportDeclaration=function(e){return e.kind===Hl.SyntaxKind.ExportDeclaration},t.isExportSpecifier=function(e){return e.kind===Hl.SyntaxKind.ExportSpecifier},t.isExpression=function(e){switch(e.kind){case Hl.SyntaxKind.ArrayLiteralExpression:case Hl.SyntaxKind.ArrowFunction:case Hl.SyntaxKind.AsExpression:case Hl.SyntaxKind.AwaitExpression:case Hl.SyntaxKind.BinaryExpression:case Hl.SyntaxKind.CallExpression:case Hl.SyntaxKind.ClassExpression:case Hl.SyntaxKind.CommaListExpression:case Hl.SyntaxKind.ConditionalExpression:case Hl.SyntaxKind.DeleteExpression:case Hl.SyntaxKind.ElementAccessExpression:case Hl.SyntaxKind.FalseKeyword:case Hl.SyntaxKind.FunctionExpression:case Hl.SyntaxKind.Identifier:case Hl.SyntaxKind.JsxElement:case Hl.SyntaxKind.JsxFragment:case Hl.SyntaxKind.JsxExpression:case Hl.SyntaxKind.JsxOpeningElement:case Hl.SyntaxKind.JsxOpeningFragment:case Hl.SyntaxKind.JsxSelfClosingElement:case Hl.SyntaxKind.MetaProperty:case Hl.SyntaxKind.NewExpression:case Hl.SyntaxKind.NonNullExpression:case Hl.SyntaxKind.NoSubstitutionTemplateLiteral:case Hl.SyntaxKind.NullKeyword:case Hl.SyntaxKind.NumericLiteral:case Hl.SyntaxKind.ObjectLiteralExpression:case Hl.SyntaxKind.OmittedExpression:case Hl.SyntaxKind.ParenthesizedExpression:case Hl.SyntaxKind.PostfixUnaryExpression:case Hl.SyntaxKind.PrefixUnaryExpression:case Hl.SyntaxKind.PropertyAccessExpression:case Hl.SyntaxKind.RegularExpressionLiteral:case Hl.SyntaxKind.SpreadElement:case Hl.SyntaxKind.StringLiteral:case Hl.SyntaxKind.SuperKeyword:case Hl.SyntaxKind.TaggedTemplateExpression:case Hl.SyntaxKind.TemplateExpression:case Hl.SyntaxKind.ThisKeyword:case Hl.SyntaxKind.TrueKeyword:case Hl.SyntaxKind.TypeAssertionExpression:case Hl.SyntaxKind.TypeOfExpression:case Hl.SyntaxKind.VoidExpression:case Hl.SyntaxKind.YieldExpression:return!0;default:return!1}},t.isExpressionStatement=function(e){return e.kind===Hl.SyntaxKind.ExpressionStatement},t.isExpressionWithTypeArguments=function(e){return e.kind===Hl.SyntaxKind.ExpressionWithTypeArguments},t.isExternalModuleReference=function(e){return e.kind===Hl.SyntaxKind.ExternalModuleReference},t.isForInStatement=function(e){return e.kind===Hl.SyntaxKind.ForInStatement},t.isForInOrOfStatement=function(e){return e.kind===Hl.SyntaxKind.ForOfStatement||e.kind===Hl.SyntaxKind.ForInStatement},t.isForOfStatement=function(e){return e.kind===Hl.SyntaxKind.ForOfStatement},t.isForStatement=function(e){return e.kind===Hl.SyntaxKind.ForStatement},t.isFunctionDeclaration=function(e){return e.kind===Hl.SyntaxKind.FunctionDeclaration},t.isFunctionExpression=function(e){return e.kind===Hl.SyntaxKind.FunctionExpression},t.isFunctionTypeNode=function(e){return e.kind===Hl.SyntaxKind.FunctionType},t.isGetAccessorDeclaration=function(e){return e.kind===Hl.SyntaxKind.GetAccessor},t.isIdentifier=function(e){return e.kind===Hl.SyntaxKind.Identifier},t.isIfStatement=function(e){return e.kind===Hl.SyntaxKind.IfStatement},t.isImportClause=function(e){return e.kind===Hl.SyntaxKind.ImportClause},t.isImportDeclaration=function(e){return e.kind===Hl.SyntaxKind.ImportDeclaration},t.isImportEqualsDeclaration=function(e){return e.kind===Hl.SyntaxKind.ImportEqualsDeclaration},t.isImportSpecifier=function(e){return e.kind===Hl.SyntaxKind.ImportSpecifier},t.isIndexedAccessTypeNode=function(e){return e.kind===Hl.SyntaxKind.IndexedAccessType},t.isIndexSignatureDeclaration=function(e){return e.kind===Hl.SyntaxKind.IndexSignature},t.isInferTypeNode=function(e){return e.kind===Hl.SyntaxKind.InferType},t.isInterfaceDeclaration=function(e){return e.kind===Hl.SyntaxKind.InterfaceDeclaration},t.isIntersectionTypeNode=function(e){return e.kind===Hl.SyntaxKind.IntersectionType},t.isIterationStatement=function(e){switch(e.kind){case Hl.SyntaxKind.ForStatement:case Hl.SyntaxKind.ForOfStatement:case Hl.SyntaxKind.ForInStatement:case Hl.SyntaxKind.WhileStatement:case Hl.SyntaxKind.DoStatement:return!0;default:return!1}},t.isJsDoc=function(e){return e.kind===Hl.SyntaxKind.JSDocComment},t.isJsxAttribute=function(e){return e.kind===Hl.SyntaxKind.JsxAttribute},t.isJsxAttributeLike=function(e){return e.kind===Hl.SyntaxKind.JsxAttribute||e.kind===Hl.SyntaxKind.JsxSpreadAttribute},t.isJsxAttributes=function(e){return e.kind===Hl.SyntaxKind.JsxAttributes},t.isJsxClosingElement=function(e){return e.kind===Hl.SyntaxKind.JsxClosingElement},t.isJsxClosingFragment=function(e){return e.kind===Hl.SyntaxKind.JsxClosingFragment},t.isJsxElement=function(e){return e.kind===Hl.SyntaxKind.JsxElement},t.isJsxExpression=function(e){return e.kind===Hl.SyntaxKind.JsxExpression},t.isJsxFragment=function(e){return e.kind===Hl.SyntaxKind.JsxFragment},t.isJsxOpeningElement=function(e){return e.kind===Hl.SyntaxKind.JsxOpeningElement},t.isJsxOpeningFragment=function(e){return e.kind===Hl.SyntaxKind.JsxOpeningFragment},t.isJsxOpeningLikeElement=function(e){return e.kind===Hl.SyntaxKind.JsxOpeningElement||e.kind===Hl.SyntaxKind.JsxSelfClosingElement},t.isJsxSelfClosingElement=function(e){return e.kind===Hl.SyntaxKind.JsxSelfClosingElement},t.isJsxSpreadAttribute=function(e){return e.kind===Hl.SyntaxKind.JsxSpreadAttribute},t.isJsxText=function(e){return e.kind===Hl.SyntaxKind.JsxText},t.isLabeledStatement=function(e){return e.kind===Hl.SyntaxKind.LabeledStatement},t.isLiteralExpression=function(e){return e.kind>=Hl.SyntaxKind.FirstLiteralToken&&e.kind<=Hl.SyntaxKind.LastLiteralToken},t.isLiteralTypeNode=function(e){return e.kind===Hl.SyntaxKind.LiteralType},t.isMappedTypeNode=function(e){return e.kind===Hl.SyntaxKind.MappedType},t.isMetaProperty=function(e){return e.kind===Hl.SyntaxKind.MetaProperty},t.isMethodDeclaration=function(e){return e.kind===Hl.SyntaxKind.MethodDeclaration},t.isMethodSignature=function(e){return e.kind===Hl.SyntaxKind.MethodSignature},t.isModuleBlock=function(e){return e.kind===Hl.SyntaxKind.ModuleBlock},t.isModuleDeclaration=r,t.isNamedExports=function(e){return e.kind===Hl.SyntaxKind.NamedExports},t.isNamedImports=function(e){return e.kind===Hl.SyntaxKind.NamedImports},t.isNamespaceDeclaration=function e(t){return r(t)&&t.name.kind===Hl.SyntaxKind.Identifier&&void 0!==t.body&&(t.body.kind===Hl.SyntaxKind.ModuleBlock||e(t.body))},t.isNamespaceImport=function(e){return e.kind===Hl.SyntaxKind.NamespaceImport},t.isNamespaceExportDeclaration=function(e){return e.kind===Hl.SyntaxKind.NamespaceExportDeclaration},t.isNewExpression=function(e){return e.kind===Hl.SyntaxKind.NewExpression},t.isNonNullExpression=function(e){return e.kind===Hl.SyntaxKind.NonNullExpression},t.isNoSubstitutionTemplateLiteral=function(e){return e.kind===Hl.SyntaxKind.NoSubstitutionTemplateLiteral},t.isNullLiteral=function(e){return e.kind===Hl.SyntaxKind.NullKeyword},t.isNumericLiteral=function(e){return e.kind===Hl.SyntaxKind.NumericLiteral},t.isNumericOrStringLikeLiteral=function(e){switch(e.kind){case Hl.SyntaxKind.StringLiteral:case Hl.SyntaxKind.NumericLiteral:case Hl.SyntaxKind.NoSubstitutionTemplateLiteral:return!0;default:return!1}},t.isObjectBindingPattern=function(e){return e.kind===Hl.SyntaxKind.ObjectBindingPattern},t.isObjectLiteralExpression=function(e){return e.kind===Hl.SyntaxKind.ObjectLiteralExpression},t.isOmittedExpression=function(e){return e.kind===Hl.SyntaxKind.OmittedExpression},t.isParameterDeclaration=function(e){return e.kind===Hl.SyntaxKind.Parameter},t.isParenthesizedExpression=function(e){return e.kind===Hl.SyntaxKind.ParenthesizedExpression},t.isParenthesizedTypeNode=function(e){return e.kind===Hl.SyntaxKind.ParenthesizedType},t.isPostfixUnaryExpression=function(e){return e.kind===Hl.SyntaxKind.PostfixUnaryExpression},t.isPrefixUnaryExpression=function(e){return e.kind===Hl.SyntaxKind.PrefixUnaryExpression},t.isPropertyAccessExpression=n,t.isPropertyAssignment=function(e){return e.kind===Hl.SyntaxKind.PropertyAssignment},t.isPropertyDeclaration=function(e){return e.kind===Hl.SyntaxKind.PropertyDeclaration},t.isPropertySignature=function(e){return e.kind===Hl.SyntaxKind.PropertySignature},t.isQualifiedName=i,t.isRegularExpressionLiteral=function(e){return e.kind===Hl.SyntaxKind.RegularExpressionLiteral},t.isReturnStatement=function(e){return e.kind===Hl.SyntaxKind.ReturnStatement},t.isSetAccessorDeclaration=function(e){return e.kind===Hl.SyntaxKind.SetAccessor},t.isShorthandPropertyAssignment=function(e){return e.kind===Hl.SyntaxKind.ShorthandPropertyAssignment},t.isSignatureDeclaration=function(e){return void 0!==e.parameters},t.isSourceFile=function(e){return e.kind===Hl.SyntaxKind.SourceFile},t.isSpreadAssignment=function(e){return e.kind===Hl.SyntaxKind.SpreadAssignment},t.isSpreadElement=function(e){return e.kind===Hl.SyntaxKind.SpreadElement},t.isStringLiteral=function(e){return e.kind===Hl.SyntaxKind.StringLiteral},t.isSwitchStatement=function(e){return e.kind===Hl.SyntaxKind.SwitchStatement},t.isSyntaxList=function(e){return e.kind===Hl.SyntaxKind.SyntaxList},t.isTaggedTemplateExpression=function(e){return e.kind===Hl.SyntaxKind.TaggedTemplateExpression},t.isTemplateExpression=function(e){return e.kind===Hl.SyntaxKind.TemplateExpression},t.isTemplateLiteral=function(e){return e.kind===Hl.SyntaxKind.TemplateExpression||e.kind===Hl.SyntaxKind.NoSubstitutionTemplateLiteral},t.isTextualLiteral=function(e){return e.kind===Hl.SyntaxKind.StringLiteral||e.kind===Hl.SyntaxKind.NoSubstitutionTemplateLiteral},t.isThrowStatement=function(e){return e.kind===Hl.SyntaxKind.ThrowStatement},t.isTryStatement=function(e){return e.kind===Hl.SyntaxKind.TryStatement},t.isTupleTypeNode=function(e){return e.kind===Hl.SyntaxKind.TupleType},t.isTypeAliasDeclaration=function(e){return e.kind===Hl.SyntaxKind.TypeAliasDeclaration},t.isTypeAssertion=function(e){return e.kind===Hl.SyntaxKind.TypeAssertionExpression},t.isTypeLiteralNode=function(e){return e.kind===Hl.SyntaxKind.TypeLiteral},t.isTypeOfExpression=function(e){return e.kind===Hl.SyntaxKind.TypeOfExpression},t.isTypeOperatorNode=function(e){return e.kind===Hl.SyntaxKind.TypeOperator},t.isTypeParameterDeclaration=function(e){return e.kind===Hl.SyntaxKind.TypeParameter},t.isTypePredicateNode=function(e){return e.kind===Hl.SyntaxKind.TypePredicate},t.isTypeReferenceNode=function(e){return e.kind===Hl.SyntaxKind.TypeReference},t.isTypeQueryNode=function(e){return e.kind===Hl.SyntaxKind.TypeQuery},t.isUnionTypeNode=function(e){return e.kind===Hl.SyntaxKind.UnionType},t.isVariableDeclaration=function(e){return e.kind===Hl.SyntaxKind.VariableDeclaration},t.isVariableStatement=function(e){return e.kind===Hl.SyntaxKind.VariableStatement},t.isVariableDeclarationList=function(e){return e.kind===Hl.SyntaxKind.VariableDeclarationList},t.isVoidExpression=function(e){return e.kind===Hl.SyntaxKind.VoidExpression},t.isWhileStatement=function(e){return e.kind===Hl.SyntaxKind.WhileStatement},t.isWithStatement=function(e){return e.kind===Hl.SyntaxKind.WithStatement}})),p_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isImportTypeNode=void 0,__.__exportStar(d_,t),t.isImportTypeNode=function(e){return e.kind===Hl.SyntaxKind.ImportType}})),f_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isSyntheticExpression=t.isRestTypeNode=t.isOptionalTypeNode=void 0,__.__exportStar(p_,t),t.isOptionalTypeNode=function(e){return e.kind===Hl.SyntaxKind.OptionalType},t.isRestTypeNode=function(e){return e.kind===Hl.SyntaxKind.RestType},t.isSyntheticExpression=function(e){return e.kind===Hl.SyntaxKind.SyntheticExpression}})),g_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isBigIntLiteral=void 0,__.__exportStar(f_,t),t.isBigIntLiteral=function(e){return e.kind===Hl.SyntaxKind.BigIntLiteral}})),m_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),__.__exportStar(g_,t)})),y_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isUniqueESSymbolType=t.isUnionType=t.isUnionOrIntersectionType=t.isTypeVariable=t.isTypeReference=t.isTypeParameter=t.isSubstitutionType=t.isObjectType=t.isLiteralType=t.isIntersectionType=t.isInterfaceType=t.isInstantiableType=t.isIndexedAccessype=t.isIndexedAccessType=t.isGenericType=t.isEnumType=t.isConditionalType=void 0,t.isConditionalType=function(e){return 0!=(e.flags&Hl.TypeFlags.Conditional)},t.isEnumType=function(e){return 0!=(e.flags&Hl.TypeFlags.Enum)},t.isGenericType=function(e){return 0!=(e.flags&Hl.TypeFlags.Object)&&0!=(e.objectFlags&Hl.ObjectFlags.ClassOrInterface)&&0!=(e.objectFlags&Hl.ObjectFlags.Reference)},t.isIndexedAccessType=function(e){return 0!=(e.flags&Hl.TypeFlags.IndexedAccess)},t.isIndexedAccessype=function(e){return 0!=(e.flags&Hl.TypeFlags.Index)},t.isInstantiableType=function(e){return 0!=(e.flags&Hl.TypeFlags.Instantiable)},t.isInterfaceType=function(e){return 0!=(e.flags&Hl.TypeFlags.Object)&&0!=(e.objectFlags&Hl.ObjectFlags.ClassOrInterface)},t.isIntersectionType=function(e){return 0!=(e.flags&Hl.TypeFlags.Intersection)},t.isLiteralType=function(e){return 0!=(e.flags&(Hl.TypeFlags.StringOrNumberLiteral|Hl.TypeFlags.BigIntLiteral))},t.isObjectType=function(e){return 0!=(e.flags&Hl.TypeFlags.Object)},t.isSubstitutionType=function(e){return 0!=(e.flags&Hl.TypeFlags.Substitution)},t.isTypeParameter=function(e){return 0!=(e.flags&Hl.TypeFlags.TypeParameter)},t.isTypeReference=function(e){return 0!=(e.flags&Hl.TypeFlags.Object)&&0!=(e.objectFlags&Hl.ObjectFlags.Reference)},t.isTypeVariable=function(e){return 0!=(e.flags&Hl.TypeFlags.TypeVariable)},t.isUnionOrIntersectionType=function(e){return 0!=(e.flags&Hl.TypeFlags.UnionOrIntersection)},t.isUnionType=function(e){return 0!=(e.flags&Hl.TypeFlags.Union)},t.isUniqueESSymbolType=function(e){return 0!=(e.flags&Hl.TypeFlags.UniqueESSymbol)}})),v_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),__.__exportStar(y_,t)})),h_=E((function(e,t){function r(e){return 0!==(e.flags&Hl.TypeFlags.Object&&e.objectFlags&Hl.ObjectFlags.Tuple)}Object.defineProperty(t,"__esModule",{value:!0}),t.isTupleTypeReference=t.isTupleType=void 0,__.__exportStar(v_,t),t.isTupleType=r,t.isTupleTypeReference=function(e){return v_.isTypeReference(e)&&r(e.target)}})),D_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),__.__exportStar(h_,t)})),b_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),__.__exportStar(g_,t),__.__exportStar(D_,t)})),x_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),__.__exportStar(D_,t)})),S_=E((function(e,t){function r(e,t){if(!n(t,Hl.TypeFlags.Undefined))return t;const r=n(t,Hl.TypeFlags.Null);return t=e.getNonNullableType(t),r?e.getNullableType(t,Hl.TypeFlags.Null):t}function n(e,t){for(const r of o(e))if(C_.isTypeFlagSet(r,t))return!0;return!1}function i(e,t){return C_.isTypeFlagSet(t,Hl.TypeFlags.Undefined)&&e.getNullableType(t.getNonNullableType(),Hl.TypeFlags.Undefined)!==t}function a(e,t,r){let n;return r|=Hl.TypeFlags.Any,function t(i){if(x_.isTypeParameter(i)&&void 0!==i.symbol&&void 0!==i.symbol.declarations){if(void 0===n)n=new Set([i]);else{if(n.has(i))return!1;n.add(i)}const r=i.symbol.declarations[0];return void 0===r.constraint||t(e.getTypeFromTypeNode(r.constraint))}return x_.isUnionType(i)?i.types.every(t):x_.isIntersectionType(i)?i.types.some(t):C_.isTypeFlagSet(i,r)}(t)}function o(e){return x_.isUnionType(e)?e.types:[e]}function s(e,t,r){return t(e)?e.types.some(r):r(e)}function c(e,t,r){let n=e.getApparentType(e.getTypeOfSymbolAtLocation(t,r));if(t.valueDeclaration.dotDotDotToken&&(n=n.getNumberIndexType(),void 0===n))return!1;for(const e of o(n))if(0!==e.getCallSignatures().length)return!0;return!1}function u(e,t){return C_.isTypeFlagSet(e,Hl.TypeFlags.BooleanLiteral)&&e.intrinsicName===(t?"true":"false")}function l(e,t){return t.startsWith("__")?e.getProperties().find((e=>e.escapedName===t)):e.getProperty(t)}function _(e,t,r){const n=t&&e.getTypeOfSymbolAtLocation(t,t.valueDeclaration).getProperty(r),i=n&&e.getTypeOfSymbolAtLocation(n,n.valueDeclaration);return i&&x_.isUniqueESSymbolType(i)?i.escapedName:"__@"+r}function d(e,t,r){let n=!1,i=!1;for(const a of o(e))if(void 0===l(a,t)){const e=(C_.isNumericPropertyName(t)?r.getIndexInfoOfType(a,Hl.IndexKind.Number):void 0)||r.getIndexInfoOfType(a,Hl.IndexKind.String);if(void 0!==e&&e.isReadonly){if(n)return!0;i=!0}}else{if(i||p(a,t,r))return!0;n=!0}return!1}function p(e,t,r){return s(e,x_.isIntersectionType,(e=>{const n=l(e,t);if(void 0===n)return!1;if(n.flags&Hl.SymbolFlags.Transient){if(/^(?:[1-9]\d*|0)$/.test(t)&&x_.isTupleTypeReference(e))return e.target.readonly;switch(function(e,t,r){if(!x_.isObjectType(e)||!C_.isObjectFlagSet(e,Hl.ObjectFlags.Mapped))return;const n=e.symbol.declarations[0];return void 0===n.readonlyToken||/^__@[^@]+$/.test(t)?d(e.modifiersType,t,r):n.readonlyToken.kind!==Hl.SyntaxKind.MinusToken}(e,t,r)){case!0:return!0;case!1:return!1}}return C_.isSymbolFlagSet(n,Hl.SymbolFlags.ValueModule)||f(n,r)}))}function f(e,t){return(e.flags&Hl.SymbolFlags.Accessor)===Hl.SymbolFlags.GetAccessor||void 0!==e.declarations&&e.declarations.some((e=>C_.isModifierFlagSet(e,Hl.ModifierFlags.Readonly)||m_.isVariableDeclaration(e)&&C_.isNodeFlagSet(e.parent,Hl.NodeFlags.Const)||m_.isCallExpression(e)&&C_.isReadonlyAssignmentDeclaration(e,t)||m_.isEnumMember(e)||(m_.isPropertyAssignment(e)||m_.isShorthandPropertyAssignment(e))&&C_.isInConstContext(e.parent)))}function g(e){return C_.isNodeFlagSet(e.parent,Hl.NodeFlags.GlobalAugmentation)||m_.isSourceFile(e.parent)&&!Hl.isExternalModule(e.parent)}function m(e,t){var r;return t.getSymbolAtLocation(null!==(r=e.name)&&void 0!==r?r:C_.getChildOfKind(e,Hl.SyntaxKind.ClassKeyword))}Object.defineProperty(t,"__esModule",{value:!0}),t.getBaseClassMemberOfClassElement=t.getIteratorYieldResultFromIteratorResult=t.getInstanceTypeOfClassLikeDeclaration=t.getConstructorTypeOfClassLikeDeclaration=t.getSymbolOfClassLikeDeclaration=t.getPropertyNameFromType=t.symbolHasReadonlyDeclaration=t.isPropertyReadonlyInType=t.getWellKnownSymbolPropertyOfType=t.getPropertyOfType=t.isBooleanLiteralType=t.isFalsyType=t.isThenableType=t.someTypePart=t.intersectionTypeParts=t.unionTypeParts=t.getCallSignaturesOfType=t.isTypeAssignableToString=t.isTypeAssignableToNumber=t.isOptionalChainingUndefinedMarkerType=t.removeOptionalChainingUndefinedMarkerType=t.removeOptionalityFromType=t.isEmptyObjectType=void 0,t.isEmptyObjectType=function e(t){if(x_.isObjectType(t)&&t.objectFlags&Hl.ObjectFlags.Anonymous&&0===t.getProperties().length&&0===t.getCallSignatures().length&&0===t.getConstructSignatures().length&&void 0===t.getStringIndexType()&&void 0===t.getNumberIndexType()){const r=t.getBaseTypes();return void 0===r||r.every(e)}return!1},t.removeOptionalityFromType=r,t.removeOptionalChainingUndefinedMarkerType=function(e,t){if(!x_.isUnionType(t))return i(e,t)?t.getNonNullableType():t;let r=0,n=!1;for(const a of t.types)i(e,a)?n=!0:r|=a.flags;return n?e.getNullableType(t.getNonNullableType(),r):t},t.isOptionalChainingUndefinedMarkerType=i,t.isTypeAssignableToNumber=function(e,t){return a(e,t,Hl.TypeFlags.NumberLike)},t.isTypeAssignableToString=function(e,t){return a(e,t,Hl.TypeFlags.StringLike)},t.getCallSignaturesOfType=function e(t){if(x_.isUnionType(t)){const r=[];for(const n of t.types)r.push(...e(n));return r}if(x_.isIntersectionType(t)){let r;for(const n of t.types){const t=e(n);if(0!==t.length){if(void 0!==r)return[];r=t}}return void 0===r?[]:r}return t.getCallSignatures()},t.unionTypeParts=o,t.intersectionTypeParts=function(e){return x_.isIntersectionType(e)?e.types:[e]},t.someTypePart=s,t.isThenableType=function(e,t,r=e.getTypeAtLocation(t)){for(const n of o(e.getApparentType(r))){const r=n.getProperty("then");if(void 0===r)continue;const i=e.getTypeOfSymbolAtLocation(r,t);for(const r of o(i))for(const n of r.getCallSignatures())if(0!==n.parameters.length&&c(e,n.parameters[0],t))return!0}return!1},t.isFalsyType=function(e){return!!(e.flags&(Hl.TypeFlags.Undefined|Hl.TypeFlags.Null|Hl.TypeFlags.Void))||(x_.isLiteralType(e)?!e.value:u(e,!1))},t.isBooleanLiteralType=u,t.getPropertyOfType=l,t.getWellKnownSymbolPropertyOfType=function(e,t,r){const n="__@"+t;for(const i of e.getProperties()){if(!i.name.startsWith(n))continue;const e=r.getApparentType(r.getTypeAtLocation(i.valueDeclaration.name.expression)).symbol;if(i.escapedName===_(r,e,t))return i}},t.isPropertyReadonlyInType=d,t.symbolHasReadonlyDeclaration=f,t.getPropertyNameFromType=function(e){if(e.flags&(Hl.TypeFlags.StringLiteral|Hl.TypeFlags.NumberLiteral)){const t=String(e.value);return{displayName:t,symbolName:Hl.escapeLeadingUnderscores(t)}}if(x_.isUniqueESSymbolType(e))return{displayName:`[${e.symbol?`${t=e.symbol,C_.isSymbolFlagSet(t,Hl.SymbolFlags.Property)&&void 0!==t.valueDeclaration&&m_.isInterfaceDeclaration(t.valueDeclaration.parent)&&"SymbolConstructor"===t.valueDeclaration.parent.name.text&&g(t.valueDeclaration.parent)?"Symbol.":""}${e.symbol.name}`:e.escapedName.replace(/^__@|@\d+$/g,"")}]`,symbolName:e.escapedName};var t},t.getSymbolOfClassLikeDeclaration=m,t.getConstructorTypeOfClassLikeDeclaration=function(e,t){return e.kind===Hl.SyntaxKind.ClassExpression?t.getTypeAtLocation(e):t.getTypeOfSymbolAtLocation(m(e,t),e)},t.getInstanceTypeOfClassLikeDeclaration=function(e,t){return e.kind===Hl.SyntaxKind.ClassDeclaration?t.getTypeAtLocation(e):t.getDeclaredTypeOfSymbol(m(e,t))},t.getIteratorYieldResultFromIteratorResult=function(e,t,n){return x_.isUnionType(e)&&e.types.find((e=>{const i=e.getProperty("done");return void 0!==i&&u(r(n,n.getTypeOfSymbolAtLocation(i,t)),!1)}))||e},t.getBaseClassMemberOfClassElement=function(e,t){if(!m_.isClassLikeDeclaration(e.parent))return;const r=C_.getBaseOfClassLikeExpression(e.parent);if(void 0===r)return;const n=C_.getSingleLateBoundPropertyNameOfPropertyName(e.name,t);if(void 0===n)return;return l(t.getTypeAtLocation(C_.hasModifier(e.modifiers,Hl.SyntaxKind.StaticKeyword)?r.expression:r),n.symbolName)}})),C_=E((function(e,t){function r(e){return e>=Hl.SyntaxKind.FirstToken&&e<=Hl.SyntaxKind.LastToken}function n(e){return e>=Hl.SyntaxKind.FirstNode}function i(e){return e>=Hl.SyntaxKind.FirstAssignment&&e<=Hl.SyntaxKind.LastAssignment}function a(e,...t){if(void 0===e)return!1;for(const r of e)if(t.includes(r.kind))return!0;return!1}function o(e,t){return 0!=(e.flags&t)}function s(e,t){return 0!=(Hl.getCombinedModifierFlags(e)&t)}function c(e,t,n,i){if(!(t=e.end))return r(e.kind)?e:u(e,t,null!=n?n:e.getSourceFile(),!0===i)}function u(e,t,n,i){if(!i&&r((e=d(e,t)).kind))return e;e:for(;;){for(const a of e.getChildren(n))if(a.end>t&&(i||a.kind!==Hl.SyntaxKind.JSDocComment)){if(r(a.kind))return a;e=a;continue e}return}}function l(e,t,r=e){const n=c(r,t,e);if(void 0===n||n.kind===Hl.SyntaxKind.JsxText||t>=n.end-(Hl.tokenToString(n.kind)||"").length)return;const i=0===n.pos?(Hl.getShebang(e.text)||"").length:n.pos;return 0!==i&&Hl.forEachTrailingCommentRange(e.text,i,_,t)||Hl.forEachLeadingCommentRange(e.text,i,_,t)}function _(e,t,r,n,i){return i>=e&&it||e.end<=t)){for(;n(e.kind);){const r=Hl.forEachChild(e,(e=>e.pos<=t&&e.end>t?e:void 0));if(void 0===r)break;e=r}return e}}function p(e){if(e.kind===Hl.SyntaxKind.ComputedPropertyName){const t=H(e.expression);if(m_.isPrefixUnaryExpression(t)){let e=!1;switch(t.operator){case Hl.SyntaxKind.MinusToken:e=!0;case Hl.SyntaxKind.PlusToken:return m_.isNumericLiteral(t.operand)?`${e?"-":""}${t.operand.text}`:b_.isBigIntLiteral(t.operand)?`${e?"-":""}${t.operand.text.slice(0,-1)}`:void 0;default:return}}return b_.isBigIntLiteral(t)?t.text.slice(0,-1):m_.isNumericOrStringLikeLiteral(t)?t.text:void 0}return e.kind===Hl.SyntaxKind.PrivateIdentifier?void 0:e.text}function f(e,t){for(const r of e.elements){if(r.kind!==Hl.SyntaxKind.BindingElement)continue;let e;if(e=r.name.kind===Hl.SyntaxKind.Identifier?t(r):f(r.name,t),e)return e}}var g,m,y;function v(e){return 0!=(e.flags&Hl.NodeFlags.BlockScoped)}function h(e){switch(e.kind){case Hl.SyntaxKind.InterfaceDeclaration:case Hl.SyntaxKind.TypeAliasDeclaration:case Hl.SyntaxKind.MappedType:return 4;case Hl.SyntaxKind.ConditionalType:return 8;default:return 0}}function D(e){switch(e.kind){case Hl.SyntaxKind.FunctionExpression:case Hl.SyntaxKind.ArrowFunction:case Hl.SyntaxKind.Constructor:case Hl.SyntaxKind.ModuleDeclaration:case Hl.SyntaxKind.ClassDeclaration:case Hl.SyntaxKind.ClassExpression:case Hl.SyntaxKind.EnumDeclaration:case Hl.SyntaxKind.MethodDeclaration:case Hl.SyntaxKind.FunctionDeclaration:case Hl.SyntaxKind.GetAccessor:case Hl.SyntaxKind.SetAccessor:case Hl.SyntaxKind.MethodSignature:case Hl.SyntaxKind.CallSignature:case Hl.SyntaxKind.ConstructSignature:case Hl.SyntaxKind.ConstructorType:case Hl.SyntaxKind.FunctionType:return 1;case Hl.SyntaxKind.SourceFile:return Hl.isExternalModule(e)?1:0;default:return 0}}function b(e){switch(e.kind){case Hl.SyntaxKind.Block:const t=e.parent;return t.kind===Hl.SyntaxKind.CatchClause||t.kind!==Hl.SyntaxKind.SourceFile&&D(t)?0:2;case Hl.SyntaxKind.ForStatement:case Hl.SyntaxKind.ForInStatement:case Hl.SyntaxKind.ForOfStatement:case Hl.SyntaxKind.CaseBlock:case Hl.SyntaxKind.CatchClause:case Hl.SyntaxKind.WithStatement:return 2;default:return 0}}function x(e,t,n=e.getSourceFile()){const i=[];for(;;){if(r(e.kind))t(e);else if(e.kind!==Hl.SyntaxKind.JSDocComment){const t=e.getChildren(n);if(1===t.length){e=t[0];continue}for(let e=t.length-1;e>=0;--e)i.push(t[e])}if(0===i.length)break;e=i.pop()}}function S(e){return e.kind===Hl.SyntaxKind.JsxElement||e.kind===Hl.SyntaxKind.JsxFragment}let C;function E(e,t){return void 0===C?C=Hl.createScanner(t,!1,void 0,e):(C.setScriptTarget(t),C.setText(e)),C.scan(),C}function T(e){return e>=65536?2:1}function k(e,t=Hl.ScriptTarget.Latest){if(0===e.length)return!1;let r=e.codePointAt(0);if(!Hl.isIdentifierStart(r,t))return!1;for(let n=T(r);n=Hl.SyntaxKind.FirstTypeNode&&e<=Hl.SyntaxKind.LastTypeNode},t.isJsDocKind=function(e){return e>=Hl.SyntaxKind.FirstJSDocNode&&e<=Hl.SyntaxKind.LastJSDocNode},t.isKeywordKind=function(e){return e>=Hl.SyntaxKind.FirstKeyword&&e<=Hl.SyntaxKind.LastKeyword},t.isThisParameter=function(e){return e.name.kind===Hl.SyntaxKind.Identifier&&e.name.originalKeywordKind===Hl.SyntaxKind.ThisKeyword},t.getModifier=function(e,t){if(void 0!==e.modifiers)for(const r of e.modifiers)if(r.kind===t)return r},t.hasModifier=a,t.isParameterProperty=function(e){return a(e.modifiers,Hl.SyntaxKind.PublicKeyword,Hl.SyntaxKind.ProtectedKeyword,Hl.SyntaxKind.PrivateKeyword,Hl.SyntaxKind.ReadonlyKeyword)},t.hasAccessModifier=function(e){return s(e,Hl.ModifierFlags.AccessibilityModifier)},t.isNodeFlagSet=o,t.isTypeFlagSet=o,t.isSymbolFlagSet=o,t.isObjectFlagSet=function(e,t){return 0!=(e.objectFlags&t)},t.isModifierFlagSet=s,t.getPreviousStatement=function(e){const t=e.parent;if(m_.isBlockLike(t)){const r=t.statements.indexOf(e);if(r>0)return t.statements[r-1]}},t.getNextStatement=function(e){const t=e.parent;if(m_.isBlockLike(t)){const r=t.statements.indexOf(e);if(rt||e.node.end<=t))e:for(;;){for(const r of e.children){if(r.node.pos>t)return e;if(r.node.end>t){e=r;continue e}}return e}},t.getPropertyName=p,t.forEachDestructuringIdentifier=f,t.forEachDeclaredVariable=function(e,t){for(const r of e.declarations){let e;if(e=r.name.kind===Hl.SyntaxKind.Identifier?t(r):f(r.name,t),e)return e}},(g=t.VariableDeclarationKind||(t.VariableDeclarationKind={}))[g.Var=0]="Var",g[g.Let=1]="Let",g[g.Const=2]="Const",t.getVariableDeclarationKind=function(e){return e.flags&Hl.NodeFlags.Let?1:e.flags&Hl.NodeFlags.Const?2:0},t.isBlockScopedVariableDeclarationList=v,t.isBlockScopedVariableDeclaration=function(e){const t=e.parent;return t.kind===Hl.SyntaxKind.CatchClause||v(t)},t.isBlockScopedDeclarationStatement=function(e){switch(e.kind){case Hl.SyntaxKind.VariableStatement:return v(e.declarationList);case Hl.SyntaxKind.ClassDeclaration:case Hl.SyntaxKind.EnumDeclaration:case Hl.SyntaxKind.InterfaceDeclaration:case Hl.SyntaxKind.TypeAliasDeclaration:return!0;default:return!1}},t.isInSingleStatementContext=function(e){switch(e.parent.kind){case Hl.SyntaxKind.ForStatement:case Hl.SyntaxKind.ForInStatement:case Hl.SyntaxKind.ForOfStatement:case Hl.SyntaxKind.WhileStatement:case Hl.SyntaxKind.DoStatement:case Hl.SyntaxKind.IfStatement:case Hl.SyntaxKind.WithStatement:case Hl.SyntaxKind.LabeledStatement:return!0;default:return!1}},(m=t.ScopeBoundary||(t.ScopeBoundary={}))[m.None=0]="None",m[m.Function=1]="Function",m[m.Block=2]="Block",m[m.Type=4]="Type",m[m.ConditionalType=8]="ConditionalType",(y=t.ScopeBoundarySelector||(t.ScopeBoundarySelector={}))[y.Function=1]="Function",y[y.Block=3]="Block",y[y.Type=7]="Type",y[y.InferType=8]="InferType",t.isScopeBoundary=function(e){return D(e)||b(e)||h(e)},t.isTypeScopeBoundary=h,t.isFunctionScopeBoundary=D,t.isBlockScopeBoundary=b,t.hasOwnThisReference=function(e){switch(e.kind){case Hl.SyntaxKind.ClassDeclaration:case Hl.SyntaxKind.ClassExpression:case Hl.SyntaxKind.FunctionExpression:return!0;case Hl.SyntaxKind.FunctionDeclaration:return void 0!==e.body;case Hl.SyntaxKind.MethodDeclaration:case Hl.SyntaxKind.GetAccessor:case Hl.SyntaxKind.SetAccessor:return e.parent.kind===Hl.SyntaxKind.ObjectLiteralExpression;default:return!1}},t.isFunctionWithBody=function(e){switch(e.kind){case Hl.SyntaxKind.GetAccessor:case Hl.SyntaxKind.SetAccessor:case Hl.SyntaxKind.FunctionDeclaration:case Hl.SyntaxKind.MethodDeclaration:case Hl.SyntaxKind.Constructor:return void 0!==e.body;case Hl.SyntaxKind.FunctionExpression:case Hl.SyntaxKind.ArrowFunction:return!0;default:return!1}},t.forEachToken=x,t.forEachTokenWithTrivia=function(e,t,r=e.getSourceFile()){const n=r.text,i=Hl.createScanner(r.languageVersion,!1,r.languageVariant,n);return x(e,(e=>{const a=e.kind===Hl.SyntaxKind.JsxText||e.pos===e.end?e.pos:e.getStart(r);if(a!==e.pos){i.setTextPos(e.pos);let r=i.scan(),o=i.getTokenPos();for(;o{if(e.pos!==e.end)return e.kind!==Hl.SyntaxKind.JsxText&&Hl.forEachLeadingCommentRange(n,0===e.pos?(Hl.getShebang(n)||"").length:e.pos,a),i||function(e){switch(e.kind){case Hl.SyntaxKind.CloseBraceToken:return e.parent.kind!==Hl.SyntaxKind.JsxExpression||!S(e.parent.parent);case Hl.SyntaxKind.GreaterThanToken:switch(e.parent.kind){case Hl.SyntaxKind.JsxOpeningElement:return e.end!==e.parent.end;case Hl.SyntaxKind.JsxOpeningFragment:return!1;case Hl.SyntaxKind.JsxSelfClosingElement:return e.end!==e.parent.end||!S(e.parent.parent);case Hl.SyntaxKind.JsxClosingElement:case Hl.SyntaxKind.JsxClosingFragment:return!S(e.parent.parent.parent)}}return!0}(e)?Hl.forEachTrailingCommentRange(n,e.end,a):void 0}),r);function a(e,r,i){t(n,{pos:e,end:r,kind:i})}},t.getLineRanges=function(e){const t=e.getLineStarts(),r=[],n=t.length,i=e.text;let a=0;for(let e=1;ea&&Hl.isLineBreak(i.charCodeAt(o-1));--o);r.push({pos:a,end:n,contentLength:o-a}),a=n}return r.push({pos:a,end:e.end,contentLength:e.end-a}),r},t.getLineBreakStyle=function(e){const t=e.getLineStarts();return 1===t.length||t[1]<2||"\r"!==e.text[t[1]-2]?"\n":"\r\n"},t.isValidIdentifier=function(e,t=Hl.ScriptTarget.Latest){const r=E(e,t);return r.isIdentifier()&&r.getTextPos()===e.length&&0===r.getTokenPos()},t.isValidPropertyAccess=k,t.isValidPropertyName=function(e,t=Hl.ScriptTarget.Latest){if(k(e,t))return!0;const r=E(e,t);return r.getTextPos()===e.length&&r.getToken()===Hl.SyntaxKind.NumericLiteral&&r.getTokenValue()===e},t.isValidNumericLiteral=function(e,t=Hl.ScriptTarget.Latest){const r=E(e,t);return r.getToken()===Hl.SyntaxKind.NumericLiteral&&r.getTextPos()===e.length&&0===r.getTokenPos()},t.isValidJsxIdentifier=function(e,t=Hl.ScriptTarget.Latest){if(0===e.length)return!1;let r=!1,n=e.codePointAt(0);if(!Hl.isIdentifierStart(n,t))return!1;for(let i=T(n);in===Hl.SyntaxKind.MultiLineCommentTrivia&&"*"===r.text[e+2]?{pos:e}:void 0));if(void 0===i)return[];const a=i.pos,o=r.text.slice(a,t),s=Hl.createSourceFile("jsdoc.ts",`${o}var a;`,r.languageVersion),c=M(s.statements[0],s);for(const t of c)u(t,e);return c;function u(e,t){return e.pos+=a,e.end+=a,e.parent=t,Hl.forEachChild(e,(t=>u(t,e)),(t=>{t.pos+=a,t.end+=a;for(const r of t)u(r,e)}))}}(e,e.getStart(r),r,t)},(P=t.ImportKind||(t.ImportKind={}))[P.ImportDeclaration=1]="ImportDeclaration",P[P.ImportEquals=2]="ImportEquals",P[P.ExportFrom=4]="ExportFrom",P[P.DynamicImport=8]="DynamicImport",P[P.Require=16]="Require",P[P.ImportType=32]="ImportType",P[P.All=63]="All",P[P.AllImports=59]="AllImports",P[P.AllStaticImports=3]="AllStaticImports",P[P.AllImportExpressions=24]="AllImportExpressions",P[P.AllRequireLike=18]="AllRequireLike",P[P.AllNestedImports=56]="AllNestedImports",P[P.AllTopLevelImports=7]="AllTopLevelImports",t.findImports=function(e,t,r=!0){const n=[];for(const n of L(e,t,r))switch(n.kind){case Hl.SyntaxKind.ImportDeclaration:i(n.moduleSpecifier);break;case Hl.SyntaxKind.ImportEqualsDeclaration:i(n.moduleReference.expression);break;case Hl.SyntaxKind.ExportDeclaration:i(n.moduleSpecifier);break;case Hl.SyntaxKind.CallExpression:i(n.arguments[0]);break;case Hl.SyntaxKind.ImportType:m_.isLiteralTypeNode(n.argument)&&i(n.argument.literal);break;default:throw new Error("unexpected node")}return n;function i(e){m_.isTextualLiteral(e)&&n.push(e)}},t.findImportLikeNodes=L;class R{constructor(e,t,r){this._sourceFile=e,this._options=t,this._ignoreFileName=r,this._result=[]}find(){return this._sourceFile.isDeclarationFile&&(this._options&=-25),7&this._options&&this._findImports(this._sourceFile.statements),56&this._options&&this._findNestedImports(),this._result}_findImports(e){for(const t of e)m_.isImportDeclaration(t)?1&this._options&&this._result.push(t):m_.isImportEqualsDeclaration(t)?2&this._options&&t.moduleReference.kind===Hl.SyntaxKind.ExternalModuleReference&&this._result.push(t):m_.isExportDeclaration(t)?void 0!==t.moduleSpecifier&&4&this._options&&this._result.push(t):m_.isModuleDeclaration(t)&&this._findImportsInModule(t)}_findImportsInModule(e){if(void 0!==e.body)return e.body.kind===Hl.SyntaxKind.ModuleDeclaration?this._findImportsInModule(e.body):void this._findImports(e.body.statements)}_findNestedImports(){const e=this._ignoreFileName||0!=(this._sourceFile.flags&Hl.NodeFlags.JavaScriptFile);let t,r;if(16==(56&this._options)){if(!e)return;t=/\brequire\s*[1&&this._result.push(t.parent)}}else t.kind===Hl.SyntaxKind.Identifier&&t.end-"require".length===e.index&&t.parent.kind===Hl.SyntaxKind.CallExpression&&t.parent.expression===t&&1===t.parent.arguments.length&&this._result.push(t.parent)}}}function B(e){for(;e.kind===Hl.SyntaxKind.ModuleBlock;){do{e=e.parent}while(e.flags&Hl.NodeFlags.NestedNamespace);if(a(e.modifiers,Hl.SyntaxKind.DeclareKeyword))return!0;e=e.parent}return!1}function j(e,t){return(e.strict?!1!==e[t]:!0===e[t])&&("strictPropertyInitialization"!==t||j(e,"strictNullChecks"))}function J(e){let t;return Hl.forEachLeadingCommentRange(e,(Hl.getShebang(e)||"").length,((r,n,i)=>{if(i===Hl.SyntaxKind.SingleLineCommentTrivia){const i=e.slice(r,n),a=/^\/{2,3}\s*@ts-(no)?check(?:\s|$)/i.exec(i);null!==a&&(t={pos:r,end:n,enabled:void 0===a[1]})}})),t}function K(e){return m_.isTypeReferenceNode(e.type)&&e.type.typeName.kind===Hl.SyntaxKind.Identifier&&"const"===e.type.typeName.escapedText}function z(e){return 3===e.arguments.length&&m_.isEntityNameExpression(e.arguments[0])&&m_.isNumericOrStringLikeLiteral(e.arguments[1])&&m_.isPropertyAccessExpression(e.expression)&&"defineProperty"===e.expression.name.escapedText&&m_.isIdentifier(e.expression.expression)&&"Object"===e.expression.expression.escapedText}function U(e){return Hl.isPropertyAccessExpression(e)&&Hl.isIdentifier(e.expression)&&"Symbol"===e.expression.escapedText}function V(e){return{displayName:`[Symbol.${e.name.text}]`,symbolName:"__@"+e.name.text}}t.isStatementInAmbientContext=function(e){for(;e.flags&Hl.NodeFlags.NestedNamespace;)e=e.parent;return a(e.modifiers,Hl.SyntaxKind.DeclareKeyword)||B(e.parent)},t.isAmbientModuleBlock=B,t.getIIFE=function(e){let t=e.parent;for(;t.kind===Hl.SyntaxKind.ParenthesizedExpression;)t=t.parent;return m_.isCallExpression(t)&&e.end<=t.expression.end?t:void 0},t.isStrictCompilerOptionEnabled=j,t.isCompilerOptionEnabled=function e(t,r){switch(r){case"stripInternal":case"declarationMap":case"emitDeclarationOnly":return!0===t[r]&&e(t,"declaration");case"declaration":return t.declaration||e(t,"composite");case"incremental":return void 0===t.incremental?e(t,"composite"):t.incremental;case"skipDefaultLibCheck":return t.skipDefaultLibCheck||e(t,"skipLibCheck");case"suppressImplicitAnyIndexErrors":return!0===t.suppressImplicitAnyIndexErrors&&e(t,"noImplicitAny");case"allowSyntheticDefaultImports":return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:e(t,"esModuleInterop")||t.module===Hl.ModuleKind.System;case"noUncheckedIndexedAccess":return!0===t.noUncheckedIndexedAccess&&e(t,"strictNullChecks");case"allowJs":return void 0===t.allowJs?e(t,"checkJs"):t.allowJs;case"noImplicitAny":case"noImplicitThis":case"strictNullChecks":case"strictFunctionTypes":case"strictPropertyInitialization":case"alwaysStrict":case"strictBindCallApply":return j(t,r)}return!0===t[r]},t.isAmbientModule=function(e){return e.name.kind===Hl.SyntaxKind.StringLiteral||0!=(e.flags&Hl.NodeFlags.GlobalAugmentation)},t.getCheckJsDirective=function(e){return J(e)},t.getTsCheckDirective=J,t.isConstAssertion=K,t.isInConstContext=function(e){let t=e;for(;;){const e=t.parent;e:switch(e.kind){case Hl.SyntaxKind.TypeAssertionExpression:case Hl.SyntaxKind.AsExpression:return K(e);case Hl.SyntaxKind.PrefixUnaryExpression:if(t.kind!==Hl.SyntaxKind.NumericLiteral)return!1;switch(e.operator){case Hl.SyntaxKind.PlusToken:case Hl.SyntaxKind.MinusToken:t=e;break e;default:return!1}case Hl.SyntaxKind.PropertyAssignment:if(e.initializer!==t)return!1;t=e.parent;break;case Hl.SyntaxKind.ShorthandPropertyAssignment:t=e.parent;break;case Hl.SyntaxKind.ParenthesizedExpression:case Hl.SyntaxKind.ArrayLiteralExpression:case Hl.SyntaxKind.ObjectLiteralExpression:case Hl.SyntaxKind.TemplateExpression:t=e;break;default:return!1}}},t.isReadonlyAssignmentDeclaration=function(e,t){if(!z(e))return!1;const r=t.getTypeAtLocation(e.arguments[2]);if(void 0===r.getProperty("value"))return void 0===r.getProperty("set");const n=r.getProperty("writable");if(void 0===n)return!1;const i=void 0!==n.valueDeclaration&&m_.isPropertyAssignment(n.valueDeclaration)?t.getTypeAtLocation(n.valueDeclaration.initializer):t.getTypeOfSymbolAtLocation(n,e.arguments[2]);return S_.isBooleanLiteralType(i,!1)},t.isBindableObjectDefinePropertyCall=z,t.isWellKnownSymbolLiterally=U,t.getPropertyNameOfWellKnownSymbol=V;const q=(([e,t])=>e<"4"||"4"===e&&t<"3")(Hl.versionMajorMinor.split("."));function W(e,t){const r={known:!0,names:[]};if(e=H(e),q&&U(e))r.names.push(V(e));else{const n=t.getTypeAtLocation(e);for(const e of S_.unionTypeParts(t.getBaseConstraintOfType(n)||n)){const t=S_.getPropertyNameFromType(e);t?r.names.push(t):r.known=!1}}return r}function H(e){for(;e.kind===Hl.SyntaxKind.ParenthesizedExpression;)e=e.expression;return e}function G(e){return`${e.negative?"-":""}${e.base10Value}n`}function Y(e){return t.isTypeFlagSet(e,Hl.TypeFlags.Null)?"null":t.isTypeFlagSet(e,Hl.TypeFlags.Undefined)?"undefined":t.isTypeFlagSet(e,Hl.TypeFlags.NumberLiteral)?`${t.isTypeFlagSet(e,Hl.TypeFlags.EnumLiteral)?"enum:":""}${e.value}`:t.isTypeFlagSet(e,Hl.TypeFlags.StringLiteral)?`${t.isTypeFlagSet(e,Hl.TypeFlags.EnumLiteral)?"enum:":""}string:${e.value}`:t.isTypeFlagSet(e,Hl.TypeFlags.BigIntLiteral)?G(e.value):b_.isUniqueESSymbolType(e)?e.escapedName:S_.isBooleanLiteralType(e,!0)?"true":S_.isBooleanLiteralType(e,!1)?"false":void 0}function X(e){var t;if((null===(t=e.heritageClauses)||void 0===t?void 0:t[0].token)===Hl.SyntaxKind.ExtendsKeyword)return e.heritageClauses[0].types[0]}t.getLateBoundPropertyNames=W,t.getLateBoundPropertyNamesOfPropertyName=function(e,t){const r=p(e);return void 0!==r?{known:!0,names:[{displayName:r,symbolName:Hl.escapeLeadingUnderscores(r)}]}:e.kind===Hl.SyntaxKind.PrivateIdentifier?{known:!0,names:[{displayName:e.text,symbolName:t.getSymbolAtLocation(e).escapedName}]}:W(e.expression,t)},t.getSingleLateBoundPropertyNameOfPropertyName=function(e,t){const r=p(e);if(void 0!==r)return{displayName:r,symbolName:Hl.escapeLeadingUnderscores(r)};if(e.kind===Hl.SyntaxKind.PrivateIdentifier)return{displayName:e.text,symbolName:t.getSymbolAtLocation(e).escapedName};const{expression:n}=e;return q&&U(n)?V(n):S_.getPropertyNameFromType(t.getTypeAtLocation(n))},t.unwrapParentheses=H,t.formatPseudoBigInt=G,t.hasExhaustiveCaseClauses=function(e,r){const n=e.caseBlock.clauses.filter(m_.isCaseClause);if(0===n.length)return!1;const i=S_.unionTypeParts(r.getTypeAtLocation(e.expression));if(i.length>n.length)return!1;const a=new Set(i.map(Y));if(a.has(void 0))return!1;const o=new Set;for(const e of n){const n=r.getTypeAtLocation(e.expression);if(t.isTypeFlagSet(n,Hl.TypeFlags.Never))continue;const i=Y(n);if(a.has(i))o.add(i);else if("null"!==i&&"undefined"!==i)return!1}return a.size===o.size},t.getBaseOfClassLikeExpression=X})),E_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.convertComments=void 0;const a=i(Hl);t.convertComments=function(e,t){const r=[];return(0,C_.forEachComment)(e,((n,i)=>{const o=i.kind==a.SyntaxKind.SingleLineCommentTrivia?t_.AST_TOKEN_TYPES.Line:t_.AST_TOKEN_TYPES.Block,s=[i.pos,i.end],c=(0,n_.getLocFor)(s[0],s[1],e),u=s[0]+2,l=i.kind===a.SyntaxKind.SingleLineCommentTrivia?s[1]-u:s[1]-u-2;r.push({type:o,value:t.substr(u,l),range:s,loc:c})}),e),r}})),T_={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};const k_=Object.freeze(Object.keys(T_));for(const e of k_)Object.freeze(T_[e]);Object.freeze(T_);const A_=new Set(["parent","leadingComments","trailingComments"]);function F_(e){return!A_.has(e)&&"_"!==e[0]}var N_=Object.freeze({KEYS:T_,getKeys:e=>Object.keys(e).filter(F_),unionWith(e){const t=Object.assign({},T_);for(const r of Object.keys(e))if(t.hasOwnProperty(r)){const n=new Set(e[r]);for(const e of t[r])n.add(e);t[r]=Object.freeze(Array.from(n))}else t[r]=Object.freeze(Array.from(e[r]));return Object.freeze(t)}}),P_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getKeys=void 0;const r=N_.getKeys;t.getKeys=r})),w_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.visitorKeys=void 0;const a=i(N_).unionWith({ImportExpression:["source"],ArrayPattern:["decorators","elements","typeAnnotation"],ArrowFunctionExpression:["typeParameters","params","returnType","body"],AssignmentPattern:["decorators","left","right","typeAnnotation"],CallExpression:["callee","typeParameters","arguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["decorators","typeAnnotation"],MethodDefinition:["decorators","key","value"],NewExpression:["callee","typeParameters","arguments"],ObjectPattern:["decorators","properties","typeAnnotation"],RestElement:["decorators","argument","typeAnnotation"],TaggedTemplateExpression:["tag","typeParameters","quasi"],StaticBlock:["body"],JSXOpeningElement:["name","typeParameters","attributes"],JSXClosingFragment:[],JSXOpeningFragment:[],JSXSpreadChild:["expression"],ClassProperty:["decorators","key","typeAnnotation","value"],Decorator:["expression"],TSAbstractClassProperty:["decorators","key","typeAnnotation","value"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAnyKeyword:[],TSArrayType:["elementType"],TSAsExpression:["expression","typeAnnotation"],TSAsyncKeyword:[],TSBigIntKeyword:[],TSBooleanKeyword:[],TSCallSignatureDeclaration:["typeParameters","params","returnType"],TSClassImplements:["expression","typeParameters"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSConstructorType:["typeParameters","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","params","returnType"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSExportAssignment:["expression"],TSExportKeyword:[],TSExternalModuleReference:["expression"],TSFunctionType:["typeParameters","params","returnType"],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["parameter","qualifier","typeParameters"],TSIndexedAccessType:["indexType","objectType"],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:["typeParameter"],TSInterfaceBody:["body"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceHeritage:["expression","typeParameters"],TSIntersectionType:["types"],TSIntrinsicKeyword:[],TSLiteralType:["literal"],TSMappedType:["nameType","typeParameter","typeAnnotation"],TSMethodSignature:["typeParameters","key","params","returnType"],TSModuleBlock:["body"],TSModuleDeclaration:["id","body"],TSNamedTupleMember:["elementType"],TSNamespaceExportDeclaration:["id"],TSNeverKeyword:[],TSNonNullExpression:["expression"],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSOptionalType:["typeAnnotation"],TSParameterProperty:["decorators","parameter"],TSParenthesizedType:["typeAnnotation"],TSPrivateKeyword:[],TSPropertySignature:["typeAnnotation","key","initializer"],TSProtectedKeyword:[],TSPublicKeyword:[],TSQualifiedName:["left","right"],TSReadonlyKeyword:[],TSRestType:["typeAnnotation"],TSStaticKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSTemplateLiteralType:["quasis","types"],TSThisType:[],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:["typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSTypeLiteral:["members"],TSTypeOperator:["typeAnnotation"],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:["params"],TSTypeParameterInstantiation:["params"],TSTypePredicate:["typeAnnotation","parameterName"],TSTypeQuery:["exprName"],TSTypeReference:["typeName","typeParameters"],TSUndefinedKeyword:[],TSUnionType:["types"],TSUnknownKeyword:[],TSVoidKeyword:[]});t.visitorKeys=a})),I_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.visitorKeys=t.getKeys=void 0,Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return P_.getKeys}}),Object.defineProperty(t,"visitorKeys",{enumerable:!0,get:function(){return w_.visitorKeys}})})),O_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.simpleTraverse=void 0;class r{constructor(e,t=!1){this.allVisitorKeys=I_.visitorKeys,this.selectors=e,this.setParentPointers=t}traverse(e,t){if(null===(r=e)||"object"!=typeof r||"string"!=typeof r.type)return;var r;this.setParentPointers&&(e.parent=t),"enter"in this.selectors?this.selectors.enter(e,t):e.type in this.selectors&&this.selectors[e.type](e,t);const n=function(e,t){const r=e[t.type];return null!=r?r:[]}(this.allVisitorKeys,e);if(!(n.length<1))for(const t of n){const r=e[t];if(Array.isArray(r))for(const t of r)this.traverse(t,e);else this.traverse(r,e)}}}t.simpleTraverse=function(e,t,n=!1){new r(t,n).traverse(e,void 0)}})),M_=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.astConverter=void 0,t.astConverter=function(e,t,r){const{parseDiagnostics:n}=e;if(n.length)throw(0,a_.convertError)(n[0]);const i=new a_.Converter(e,{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1,shouldPreserveNodeMaps:r}),a=i.convertProgram();return t.range&&t.loc||(0,O_.simpleTraverse)(a,{enter:e=>{t.range||delete e.range,t.loc||delete e.loc}}),t.tokens&&(a.tokens=(0,n_.convertTokens)(e)),t.comment&&(a.comments=(0,E_.convertComments)(e,t.code)),{estree:a,astMaps:i.getASTMaps()}}})),L_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t},a=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getModuleResolver=t.getAstFromProgram=t.getScriptKind=t.getCanonicalFileName=t.ensureAbsolutePath=t.createDefaultCompilerOptionsFromExtra=t.canonicalDirname=t.CORE_COMPILER_OPTIONS=void 0;const o=a(Vl),s=i(Hl),c={noEmit:!0,noUnusedLocals:!0,noUnusedParameters:!0};t.CORE_COMPILER_OPTIONS=c;const u=Object.assign(Object.assign({},c),{allowNonTsExtensions:!0,allowJs:!0,checkJs:!0});t.createDefaultCompilerOptionsFromExtra=function(e){return e.debugLevel.has("typescript")?Object.assign(Object.assign({},u),{extendedDiagnostics:!0}):u};const l=void 0===s.sys||s.sys.useCaseSensitiveFileNames?e=>e:e=>e.toLowerCase();function _(e){return e?e.endsWith(".d.ts")?".d.ts":o.default.extname(e):null}t.getCanonicalFileName=function(e){let t=o.default.normalize(e);return t.endsWith(o.default.sep)&&(t=t.substr(0,t.length-1)),l(t)},t.ensureAbsolutePath=function(e,t){return o.default.isAbsolute(e)?e:o.default.join(t.tsconfigRootDir||Qr.cwd(),e)},t.canonicalDirname=function(e){return o.default.dirname(e)},t.getScriptKind=function(e,t=e.filePath){switch(o.default.extname(t).toLowerCase()){case".ts":return s.ScriptKind.TS;case".tsx":return s.ScriptKind.TSX;case".js":return s.ScriptKind.JS;case".jsx":return s.ScriptKind.JSX;case".json":return s.ScriptKind.JSON;default:return e.jsx?s.ScriptKind.TSX:s.ScriptKind.TS}},t.getAstFromProgram=function(e,t){const r=e.getSourceFile(t.filePath);if(_(t.filePath)===_(null==r?void 0:r.fileName))return r&&{ast:r,program:e}},t.getModuleResolver=function(e){let t;try{t=require(e)}catch(e){throw new Error(["Could not find the provided parserOptions.moduleResolver.","Hint: use an absolute path if you are not in control over where the ESLint instance runs."].join("\n"))}return t}})),R_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t},a=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createDefaultProgram=void 0;const o=a(Mc),s=a(Vl),c=i(Hl),u=(0,o.default)("typescript-eslint:typescript-estree:createDefaultProgram");t.createDefaultProgram=function(e,t){if(u("Getting default program for: %s",t.filePath||"unnamed file"),!t.projects||1!==t.projects.length)return;const r=t.projects[0],n=c.getParsedCommandLineOfConfigFile(r,(0,L_.createDefaultCompilerOptionsFromExtra)(t),Object.assign(Object.assign({},c.sys),{onUnRecoverableConfigFileDiagnostic:()=>{}}));if(!n)return;const i=c.createCompilerHost(n.options,!0);t.moduleResolver&&(i.resolveModuleNames=(0,L_.getModuleResolver)(t.moduleResolver).resolveModuleNames);const a=i.readFile;i.readFile=r=>s.default.normalize(r)===s.default.normalize(t.filePath)?e:a(r);const o=c.createProgram([t.filePath],n.options,i),l=o.getSourceFile(t.filePath);return l&&{ast:l,program:o}}})),B_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t},a=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createIsolatedProgram=void 0;const o=a(Mc),s=i(Hl),c=(0,o.default)("typescript-eslint:typescript-estree:createIsolatedProgram");t.createIsolatedProgram=function(e,t){c("Getting isolated program in %s mode for: %s",t.jsx?"TSX":"TS",t.filePath);const r={fileExists:()=>!0,getCanonicalFileName:()=>t.filePath,getCurrentDirectory:()=>"",getDirectories:()=>[],getDefaultLibFileName:()=>"lib.d.ts",getNewLine:()=>"\n",getSourceFile:r=>s.createSourceFile(r,e,s.ScriptTarget.Latest,!0,(0,L_.getScriptKind)(t,r)),readFile(){},useCaseSensitiveFileNames:()=>!0,writeFile:()=>null},n=s.createProgram([t.filePath],Object.assign({noResolve:!0,target:s.ScriptTarget.Latest,jsx:t.jsx?s.JsxEmit.Preserve:void 0},(0,L_.createDefaultCompilerOptionsFromExtra)(t)),r),i=n.getSourceFile(t.filePath);if(!i)throw new Error("Expected an ast to be returned for the single-file isolated program.");return{ast:i,program:n}}})),j_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t},a=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getProgramsForProjects=t.createWatchProgram=t.clearWatchCaches=void 0;const o=a(Mc),s=a(Ul),c=a(El),u=i(Hl),l=(0,o.default)("typescript-eslint:typescript-estree:createWatchProgram"),_=new Map,d=new Map,p=new Map,f=new Map,g=new Map,m=new Map;function y(e){return(t,r)=>{const n=(0,L_.getCanonicalFileName)(t),i=(()=>{let t=e.get(n);return t||(t=new Set,e.set(n,t)),t})();return i.add(r),{close:()=>{i.delete(r)}}}}t.clearWatchCaches=function(){_.clear(),d.clear(),p.clear(),m.clear(),f.clear(),g.clear()};const v={code:"",filePath:""};function h(e){throw new Error(u.flattenDiagnosticMessageText(e.messageText,u.sys.newLine))}function D(e){var t;return(null===(t=u.sys)||void 0===t?void 0:t.createHash)?u.sys.createHash(e):e}function b(e,t,r){const n=r.EXPERIMENTAL_useSourceOfProjectReferenceRedirect?new Set(t.getSourceFiles().map((e=>(0,L_.getCanonicalFileName)(e.fileName)))):new Set(t.getRootFileNames().map((e=>(0,L_.getCanonicalFileName)(e))));return f.set(e,n),n}t.getProgramsForProjects=function(e,t,r){const n=(0,L_.getCanonicalFileName)(t),i=[];v.code=e,v.filePath=n;const a=d.get(n),o=D(e);m.get(n)!==o&&a&&a.size>0&&a.forEach((e=>e(n,u.FileWatcherEventKind.Changed)));for(const[e,t]of _.entries()){let i=f.get(e),a=null;if(i||(a=t.getProgram().getProgram(),i=b(e,a,r)),i.has(n))return l("Found existing program for file. %s",n),a=null!=a?a:t.getProgram().getProgram(),a.getTypeChecker(),[a]}l("File did not belong to any existing programs, moving to create/update. %s",n);for(const e of r.projects){const t=_.get(e);if(t){const a=E(t,n,e);if(!a)continue;a.getTypeChecker();if(b(e,a,r).has(n))return l("Found updated program for file. %s",n),[a];i.push(a);continue}const a=C(e,r);_.set(e,a);const o=a.getProgram().getProgram();o.getTypeChecker();if(b(e,o,r).has(n))return l("Found program for file. %s",n),[o];i.push(o)}return i};const x=c.default.satisfies(u.version,">=3.9.0-beta",{includePrerelease:!0});function C(e,t){l("Creating watch program for %s.",e);const r=u.createWatchCompilerHost(e,(0,L_.createDefaultCompilerOptionsFromExtra)(t),u.sys,u.createAbstractBuilder,h,(()=>{}));t.moduleResolver&&(r.resolveModuleNames=(0,L_.getModuleResolver)(t.moduleResolver).resolveModuleNames);const n=r.readFile;r.readFile=(e,t)=>{const r=(0,L_.getCanonicalFileName)(e),i=r===v.filePath?v.code:n(r,t);return void 0!==i&&m.set(r,D(i)),i},r.onUnRecoverableConfigFileDiagnostic=h,r.afterProgramCreate=e=>{const t=e.getConfigFileParsingDiagnostics().filter((e=>e.category===u.DiagnosticCategory.Error&&18003!==e.code));t.length>0&&h(t[0])},r.watchFile=y(d),r.watchDirectory=y(p);const i=r.onCachedDirectoryStructureHostCreate;let a;r.onCachedDirectoryStructureHostCreate=e=>{const r=e.readDirectory;e.readDirectory=(e,n,i,a,o)=>r(e,n?n.concat(t.extraFileExtensions):void 0,i,a,o),i(e)},r.extraFileExtensions=t.extraFileExtensions.map((e=>({extension:e,isMixedContent:!0,scriptKind:u.ScriptKind.Deferred}))),r.trace=l,r.useSourceOfProjectReferenceRedirect=()=>t.EXPERIMENTAL_useSourceOfProjectReferenceRedirect,x?(r.setTimeout=void 0,r.clearTimeout=void 0):(l("Running without timeout fix"),r.setTimeout=(e,t,...r)=>(a=e.bind(void 0,...r),a),r.clearTimeout=()=>{a=void 0});const o=u.createWatchProgram(r);if(!x){const e=o.getProgram;o.getProgram=()=>(a&&a(),a=void 0,e.call(o))}return o}function E(e,t,r){let n=e.getProgram().getProgram();if("true"===Qr.env.TSESTREE_NO_INVALIDATION)return n;(function(e){const t=s.default.statSync(e).mtimeMs,r=g.get(e);return g.set(e,t),void 0!==r&&Math.abs(r-t)>Number.EPSILON})(r)&&(l("tsconfig has changed - triggering program update. %s",r),d.get(r).forEach((e=>e(r,u.FileWatcherEventKind.Changed))),f.delete(r));let i=n.getSourceFile(t);if(i)return n;l("File was not found in program - triggering folder update. %s",t);const a=(0,L_.canonicalDirname)(t);let o=null,c=a,_=!1;for(;o!==c;){o=c;const e=p.get(o);e&&(e.forEach((e=>{a!==o&&e(a,u.FileWatcherEventKind.Changed),e(o,u.FileWatcherEventKind.Changed)})),_=!0),c=(0,L_.canonicalDirname)(o)}if(!_)return l("No callback found for file, not part of this program. %s",t),null;if(f.delete(r),n=e.getProgram().getProgram(),i=n.getSourceFile(t),i)return n;l("File was still not found in program after directory update - checking file deletions. %s",t);const m=n.getRootFileNames().find((e=>!s.default.existsSync(e)));if(!m)return null;const y=d.get((0,L_.getCanonicalFileName)(m));return y?(l("Marking file as deleted. %s",m),y.forEach((e=>e(m,u.FileWatcherEventKind.Deleted))),f.delete(r),n=e.getProgram().getProgram(),i=n.getSourceFile(t),i?n:(l("File was still not found in program after deletion check, assuming it is not part of this program. %s",t),null)):(l("Could not find watch callbacks for root file. %s",m),n)}t.createWatchProgram=C})),J_=E((function(e,t){var r=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createProjectProgram=void 0;const n=r(Mc),i=r(Vl),a=(0,n.default)("typescript-eslint:typescript-estree:createProjectProgram"),o=[".ts",".tsx",".js",".jsx"];t.createProjectProgram=function(e,t,r){a("Creating project program for: %s",r.filePath);const n=(0,n_.firstDefined)((0,j_.getProgramsForProjects)(e,r.filePath,r),(e=>(0,L_.getAstFromProgram)(e,r)));if(!n&&!t){const e=['"parserOptions.project" has been set for @typescript-eslint/parser.',`The file does not match your project config: ${i.default.relative(r.tsconfigRootDir||Qr.cwd(),r.filePath)}.`];let t=!1;const n=r.extraFileExtensions||[];n.forEach((t=>{t.startsWith(".")||e.push(`Found unexpected extension "${t}" specified with the "extraFileExtensions" option. Did you mean ".${t}"?`),o.includes(t)&&e.push(`You unnecessarily included the extension "${t}" with the "extraFileExtensions" option. This extension is already handled by the parser by default.`)}));const a=i.default.extname(r.filePath);if(!o.includes(a)){const r=`The extension for the file (${a}) is non-standard`;n.length>0?n.includes(a)||(e.push(`${r}. It should be added to your existing "parserOptions.extraFileExtensions".`),t=!0):(e.push(`${r}. You should add "parserOptions.extraFileExtensions" to your config.`),t=!0)}throw t||e.push("The file must be included in at least one of the projects provided."),new Error(e.join("\n"))}return n}})),K_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t},a=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createSourceFile=void 0;const o=a(Mc),s=i(Hl),c=(0,o.default)("typescript-eslint:typescript-estree:createSourceFile");t.createSourceFile=function(e,t){return c("Getting AST without type information in %s mode for: %s",t.jsx?"TSX":"TS",t.filePath),s.createSourceFile(t.filePath,e,s.ScriptTarget.Latest,!0,(0,L_.getScriptKind)(t))}})),z_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstSemanticOrSyntacticError=void 0;const a=i(Hl);function o(e){return e.filter((e=>{switch(e.code){case 1013:case 1014:case 1044:case 1045:case 1048:case 1049:case 1070:case 1071:case 1085:case 1090:case 1096:case 1097:case 1098:case 1099:case 1117:case 1121:case 1123:case 1141:case 1162:case 1164:case 1172:case 1173:case 1175:case 1176:case 1190:case 1196:case 1200:case 1206:case 1211:case 1242:case 1246:case 1255:case 1308:case 2364:case 2369:case 2452:case 2462:case 8017:case 17012:case 17013:return!0}return!1}))}function s(e){return Object.assign(Object.assign({},e),{message:a.flattenDiagnosticMessageText(e.messageText,a.sys.newLine)})}t.getFirstSemanticOrSyntacticError=function(e,t){try{const r=o(e.getSyntacticDiagnostics(t));if(r.length)return s(r[0]);const n=o(e.getSemanticDiagnostics(t));return n.length?s(n[0]):void 0}catch(e){return void console.warn(`Warning From TSC: "${e.message}`)}}})),U_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t},a=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createProgramFromConfigFile=t.useProvidedPrograms=void 0;const o=a(Mc),s=i(Ul),c=i(Vl),u=i(Hl),l=(0,o.default)("typescript-eslint:typescript-estree:useProvidedProgram");function _(e){return u.formatDiagnostics(e,{getCanonicalFileName:e=>e,getCurrentDirectory:Qr.cwd,getNewLine:()=>"\n"})}t.useProvidedPrograms=function(e,t){let r;l("Retrieving ast for %s from provided program instance(s)",t.filePath);for(const n of e)if(r=(0,L_.getAstFromProgram)(n,t),r)break;if(!r){const e=c.relative(t.tsconfigRootDir||Qr.cwd(),t.filePath);throw new Error(['"parserOptions.programs" has been provided for @typescript-eslint/parser.',`The file was not found in any of the provided program instance(s): ${e}`].join("\n"))}return r.program.getTypeChecker(),r},t.createProgramFromConfigFile=function(e,t){if(void 0===u.sys)throw new Error("`createProgramFromConfigFile` is only supported in a Node-like environment.");const r=u.getParsedCommandLineOfConfigFile(e,L_.CORE_COMPILER_OPTIONS,{onUnRecoverableConfigFileDiagnostic:e=>{throw new Error(_([e]))},fileExists:s.existsSync,getCurrentDirectory:()=>t&&c.resolve(t)||Qr.cwd(),readDirectory:u.sys.readDirectory,readFile:e=>s.readFileSync(e,"utf-8"),useCaseSensitiveFileNames:u.sys.useCaseSensitiveFileNames});if(r.errors.length)throw new Error(_(r.errors));const n=u.createCompilerHost(r.options,!0);return u.createProgram(r.fileNames,r.options,n)}})),V_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t},a=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.clearParseAndGenerateServicesCalls=t.clearProgramCache=t.parseWithNodeMaps=t.parseAndGenerateServices=t.parse=void 0;const o=a(Mc),s={},c=a(jc),u=a(El),l=i(Hl),_=(0,o.default)("typescript-eslint:typescript-estree:parser"),d=">=3.3.1 <4.5.0",p=l.version,f=u.default.satisfies(p,[d].concat(["4.4.0-beta","4.4.1-rc"]).join(" || "));let g,m=!1;const y=new Map;function v(e){return"string"!=typeof e?String(e):e}function h({jsx:e}={}){return e?"estree.tsx":"estree.ts"}function D(){g={code:"",comment:!1,comments:[],createDefaultProgram:!1,debugLevel:new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:!1,EXPERIMENTAL_useSourceOfProjectReferenceRedirect:!1,extraFileExtensions:[],filePath:h(),jsx:!1,loc:!1,log:console.log,preserveNodeMaps:!0,programs:null,projects:[],range:!1,strict:!1,tokens:null,tsconfigRootDir:Qr.cwd(),useJSXTextNode:!1,singleRun:!1,moduleResolver:""}}function b(e,t){const r=[];if("string"==typeof e)r.push(e);else if(Array.isArray(e))for(const t of e)"string"==typeof t&&r.push(t);if(0===r.length)return[];const n=r.filter((e=>!(0,c.default)(e))),i=r.filter((e=>(0,c.default)(e))),a=new Set(n.concat((0,s.sync)([...i,...t],{cwd:g.tsconfigRootDir})).map((e=>function(e,t){return(0,L_.getCanonicalFileName)((0,L_.ensureAbsolutePath)(e,t))}(e,g))));return _("parserOptions.project (excluding ignored) matched projects: %s",a),Array.from(a)}function x(e){var t;if(!0===e.debugLevel?g.debugLevel=new Set(["typescript-eslint"]):Array.isArray(e.debugLevel)&&(g.debugLevel=new Set(e.debugLevel)),g.debugLevel.size>0){const e=[];g.debugLevel.has("typescript-eslint")&&e.push("typescript-eslint:*"),(g.debugLevel.has("eslint")||o.default.enabled("eslint:*,-eslint:code-path"))&&e.push("eslint:*,-eslint:code-path"),o.default.enable(e.join(","))}if(g.range="boolean"==typeof e.range&&e.range,g.loc="boolean"==typeof e.loc&&e.loc,"boolean"==typeof e.tokens&&e.tokens&&(g.tokens=[]),"boolean"==typeof e.comment&&e.comment&&(g.comment=!0,g.comments=[]),"boolean"==typeof e.jsx&&e.jsx&&(g.jsx=!0),"string"==typeof e.filePath&&""!==e.filePath?g.filePath=e.filePath:g.filePath=h(g),"boolean"==typeof e.useJSXTextNode&&e.useJSXTextNode&&(g.useJSXTextNode=!0),"boolean"==typeof e.errorOnUnknownASTType&&e.errorOnUnknownASTType&&(g.errorOnUnknownASTType=!0),"function"==typeof e.loggerFn?g.log=e.loggerFn:!1===e.loggerFn&&(g.log=()=>{}),"string"==typeof e.tsconfigRootDir&&(g.tsconfigRootDir=e.tsconfigRootDir),g.filePath=(0,L_.ensureAbsolutePath)(g.filePath,g),Array.isArray(e.programs)){if(!e.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");g.programs=e.programs,_("parserOptions.programs was provided, so parserOptions.project will be ignored.")}if(!g.programs){const r=(null!==(t=e.projectFolderIgnoreList)&&void 0!==t?t:["**/node_modules/**"]).reduce(((e,t)=>("string"==typeof t&&e.push(t),e)),[]).map((e=>e.startsWith("!")?e:`!${e}`));g.projects=[]||b(e.project,r)}Array.isArray(e.extraFileExtensions)&&e.extraFileExtensions.every((e=>"string"==typeof e))&&(g.extraFileExtensions=e.extraFileExtensions),"boolean"==typeof e.preserveNodeMaps&&(g.preserveNodeMaps=e.preserveNodeMaps),g.createDefaultProgram="boolean"==typeof e.createDefaultProgram&&e.createDefaultProgram,g.EXPERIMENTAL_useSourceOfProjectReferenceRedirect="boolean"==typeof e.EXPERIMENTAL_useSourceOfProjectReferenceRedirect&&e.EXPERIMENTAL_useSourceOfProjectReferenceRedirect,"string"==typeof e.moduleResolver&&(g.moduleResolver=e.moduleResolver)}function C(){var e;if(!f&&!m){if(void 0!==Qr&&(null===(e=Qr.stdout)||void 0===e?void 0:e.isTTY)){const e="=============",t=[e,"WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.","You may find that it works just fine, or you may not.",`SUPPORTED TYPESCRIPT VERSIONS: ${d}`,`YOUR TYPESCRIPT VERSION: ${p}`,"Please only submit bug reports when using the officially supported version.",e];g.log(t.join("\n\n"))}m=!0}}function E(e){"false"!==Qr.env.TSESTREE_SINGLE_RUN?"true"!==Qr.env.TSESTREE_SINGLE_RUN&&(!(null==e?void 0:e.allowAutomaticSingleRunInference)||"true"!==Qr.env.CI&&!Qr.argv[1].endsWith((0,Vl.normalize)("node_modules/.bin/eslint")))?g.singleRun=!1:g.singleRun=!0:g.singleRun=!1}function T(e,t,r){if(D(),null==t?void 0:t.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');e=v(e),g.code=e,void 0!==t&&x(t),C(),E(t);const n=(0,K_.createSourceFile)(e,g),{estree:i,astMaps:a}=(0,M_.astConverter)(n,g,r);return{ast:i,esTreeNodeToTSNodeMap:a.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:a.tsNodeToESTreeNodeMap}}t.clearProgramCache=function(){y.clear()},t.parse=function(e,t){const{ast:r}=T(e,t,!1);return r},t.parseWithNodeMaps=function(e,t){return T(e,t,!0)};let k={};t.clearParseAndGenerateServicesCalls=function(){k={}},t.parseAndGenerateServices=function(e,t){var r;D(),e=v(e),g.code=e,void 0!==t&&(x(t),"boolean"==typeof t.errorOnTypeScriptSyntacticAndSemanticIssues&&t.errorOnTypeScriptSyntacticAndSemanticIssues&&(g.errorOnTypeScriptSyntacticAndSemanticIssues=!0)),C(),E(t),g.singleRun&&!g.programs&&(null===(r=g.projects)||void 0===r?void 0:r.length)>0&&(g.programs={*[Symbol.iterator](){for(const e of g.projects){const t=y.get(e);if(t)yield t;else{_("Detected single-run/CLI usage, creating Program once ahead of time for project: %s",e);const t=(0,U_.createProgramFromConfigFile)(e);y.set(e,t),yield t}}}});const n=null!=g.programs||g.projects&&g.projects.length>0;let i,a;if(g.singleRun&&t.filePath&&(k[t.filePath]=(k[t.filePath]||0)+1),g.singleRun&&t.filePath&&k[t.filePath]>1){const t=(0,B_.createIsolatedProgram)(e,g);i=t.ast,a=t.program}else{const t=function(e,t,r,n){return t&&(0,U_.useProvidedPrograms)(t,g)||r&&(0,J_.createProjectProgram)(e,n,g)||r&&n&&(0,R_.createDefaultProgram)(e,g)||(0,B_.createIsolatedProgram)(e,g)}(e,g.programs,n,g.createDefaultProgram);i=t.ast,a=t.program}const o="boolean"!=typeof g.preserveNodeMaps||g.preserveNodeMaps,{estree:s,astMaps:c}=(0,M_.astConverter)(i,g,o);if(a&&g.errorOnTypeScriptSyntacticAndSemanticIssues){const e=(0,z_.getFirstSemanticOrSyntacticError)(a,i);if(e)throw(0,a_.convertError)(e)}return{ast:s,services:{hasFullTypeInformation:n,program:a,esTreeNodeToTSNodeMap:c.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:c.tsNodeToESTreeNodeMap}}}})),q_="4.31.0",W_=E((function(e,t){var r=S&&S.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=S&&S.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.visitorKeys=t.createProgram=t.clearCaches=t.simpleTraverse=t.clearProgramCache=t.parseWithNodeMaps=t.parseAndGenerateServices=t.parse=void 0,Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return V_.parse}}),Object.defineProperty(t,"parseAndGenerateServices",{enumerable:!0,get:function(){return V_.parseAndGenerateServices}}),Object.defineProperty(t,"parseWithNodeMaps",{enumerable:!0,get:function(){return V_.parseWithNodeMaps}}),Object.defineProperty(t,"clearProgramCache",{enumerable:!0,get:function(){return V_.clearProgramCache}}),Object.defineProperty(t,"simpleTraverse",{enumerable:!0,get:function(){return O_.simpleTraverse}}),n(t_,t),Object.defineProperty(t,"clearCaches",{enumerable:!0,get:function(){return j_.clearWatchCaches}}),Object.defineProperty(t,"createProgram",{enumerable:!0,get:function(){return U_.createProgramFromConfigFile}}),Object.defineProperty(t,"visitorKeys",{enumerable:!0,get:function(){return I_.visitorKeys}}),t.version=q_}));const H_={loc:!0,range:!0,comment:!0,useJSXTextNode:!0,jsx:!0,tokens:!0,loggerFn:!1,project:[]};return{parsers:{typescript:pi((function(t,n,i){const a=fi(t),o=function(e){return new RegExp(["(?:^[^\"'`]*)"].join(""),"m").test(e)}(t),{parseWithNodeMaps:s}=W_,{result:c,error:u}=r((()=>s(a,Object.assign(Object.assign({},H_),{},{jsx:o}))),(()=>s(a,Object.assign(Object.assign({},H_),{},{jsx:!o}))));if(!c)throw function(t){const{message:r,lineNumber:n,column:i}=t;return"number"!=typeof n?t:e(r,{start:{line:n,column:i+1}})}(u);return ko(c.ast,Object.assign(Object.assign({},i),{},{originalText:t,tsParseResult:c}))}))}}}));