diff --git a/legacy_bin/BUILD.gn b/legacy_bin/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..2f875c9a94e3097d9d7e5fdedd7e992a230038e0 --- /dev/null +++ b/legacy_bin/BUILD.gn @@ -0,0 +1,76 @@ +# Copyright (c) 2021-2022 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/ohos.gni") + +# for js-loader +ohos_prebuilt_executable("js_js2abc_api8_linux") { + source = "./api8/bin/linux/js2abc_api8" + subsystem_name = "ark" +} + +ohos_prebuilt_executable("js_js2abc_api8_win") { + source = "./api8/bin/win/js2abc_api8.exe" + subsystem_name = "ark" +} + +ohos_prebuilt_executable("js_js2abc_api8_mac") { + source = "./api8/bin/mac/js2abc_api8" + subsystem_name = "ark" +} + +ohos_prebuilt_etc("js_ts2abc_api8_linux") { + source = "./api8/src/index.js" + part_name = "ark" +} + +ohos_prebuilt_etc("js_ts2abc_api8_win") { + source = "./api8/src/index.js" + part_name = "ark" +} + +ohos_prebuilt_etc("js_ts2abc_api8_mac") { + source = "./api8/src/index.js" + part_name = "ark" +} + +# for ets-loader +ohos_prebuilt_executable("ets_js2abc_api8_linux") { + source = "./api8/bin/linux/js2abc_api8" + subsystem_name = "ark" +} + +ohos_prebuilt_executable("ets_js2abc_api8_win") { + source = "./api8/bin/win/js2abc_api8.exe" + subsystem_name = "ark" +} + +ohos_prebuilt_executable("ets_js2abc_api8_mac") { + source = "./api8/bin/mac/js2abc_api8" + subsystem_name = "ark" +} + +ohos_prebuilt_etc("ets_ts2abc_api8_linux") { + source = "./api8/src/index.js" + part_name = "ark" +} + +ohos_prebuilt_etc("ets_ts2abc_api8_win") { + source = "./api8/src/index.js" + part_name = "ark" +} + +ohos_prebuilt_etc("ets_ts2abc_api8_mac") { + source = "./api8/src/index.js" + part_name = "ark" +} \ No newline at end of file diff --git a/legacy_bin/api8/bin/linux/js2abc_api8 b/legacy_bin/api8/bin/linux/js2abc_api8 new file mode 100755 index 0000000000000000000000000000000000000000..7fa0a0caeb8873bd5abf099d63c25a2b4a19a710 Binary files /dev/null and b/legacy_bin/api8/bin/linux/js2abc_api8 differ diff --git a/legacy_bin/api8/bin/mac/js2abc_api8 b/legacy_bin/api8/bin/mac/js2abc_api8 new file mode 100755 index 0000000000000000000000000000000000000000..5bc8a700abe3b7a7a4b034600a1de360fcab30fc Binary files /dev/null and b/legacy_bin/api8/bin/mac/js2abc_api8 differ diff --git a/legacy_bin/api8/bin/win/js2abc_api8.exe b/legacy_bin/api8/bin/win/js2abc_api8.exe new file mode 100755 index 0000000000000000000000000000000000000000..5ccbfb66d0976a4989a6e26806ae3f0499ee3466 Binary files /dev/null and b/legacy_bin/api8/bin/win/js2abc_api8.exe differ diff --git a/legacy_bin/api8/src/index.js b/legacy_bin/api8/src/index.js new file mode 100644 index 0000000000000000000000000000000000000000..e05f89e431b6a4ed91edfd5563a0cbc2a0a42182 --- /dev/null +++ b/legacy_bin/api8/src/index.js @@ -0,0 +1,3 @@ +/*! For license information please see index.js.LICENSE.txt */ +(()=>{var __webpack_modules__={"./node_modules/ansi-styles/index.js":(e,t,r)=>{"use strict";e=r.nmd(e);const n=r("./node_modules/color-convert/index.js"),i=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`},a=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`},o=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const i=n[r];t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`},n[r]=t[r],e.set(i[0],i[1])}Object.defineProperty(t,r,{value:n,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}const r=e=>e,s=(e,t,r)=>[e,t,r];t.color.close="",t.bgColor.close="",t.color.ansi={ansi:i(r,0)},t.color.ansi256={ansi256:a(r,0)},t.color.ansi16m={rgb:o(s,0)},t.bgColor.ansi={ansi:i(r,10)},t.bgColor.ansi256={ansi256:a(r,10)},t.bgColor.ansi16m={rgb:o(s,10)};for(let e of Object.keys(n)){if("object"!=typeof n[e])continue;const r=n[e];"ansi16"===e&&(e="ansi"),"ansi16"in r&&(t.color.ansi[e]=i(r.ansi16,0),t.bgColor.ansi[e]=i(r.ansi16,10)),"ansi256"in r&&(t.color.ansi256[e]=a(r.ansi256,0),t.bgColor.ansi256[e]=a(r.ansi256,10)),"rgb"in r&&(t.color.ansi16m[e]=o(r.rgb,0),t.bgColor.ansi16m[e]=o(r.rgb,10))}return t}})},"./node_modules/buffer-from/index.js":e=>{var t=Object.prototype.toString,r="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;e.exports=function(e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return a=e,"ArrayBuffer"===t.call(a).slice(8,-1)?function(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw new RangeError("'length' is out of bounds");return r?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}(e,n,i):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return r?Buffer.from(e,t):new Buffer(e,t)}(e,n):r?Buffer.from(e):new Buffer(e);var a}},"./node_modules/chalk/index.js":(e,t,r)=>{"use strict";const n=r("./node_modules/escape-string-regexp/index.js"),i=r("./node_modules/ansi-styles/index.js"),a=r("./node_modules/supports-color/index.js").stdout,o=r("./node_modules/chalk/templates.js"),s="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),c=["ansi","ansi","ansi256","ansi16m"],l=new Set(["gray"]),u=Object.create(null);function _(e,t){t=t||{};const r=a?a.level:0;e.level=void 0===t.level?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function d(e){if(!this||!(this instanceof d)||this.template){const t={};return _(t,e),t.template=function(){const e=[].slice.call(arguments);return m.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,d.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=d,t.template}_(this,e)}s&&(i.blue.open="");for(const e of Object.keys(i))i[e].closeRe=new RegExp(n(i[e].close),"g"),u[e]={get(){const t=i[e];return f.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};u.visible={get(){return f.call(this,this._styles||[],!0,"visible")}},i.color.closeRe=new RegExp(n(i.color.close),"g");for(const e of Object.keys(i.color.ansi))l.has(e)||(u[e]={get(){const t=this.level;return function(){const r=i.color[c[t]][e].apply(null,arguments),n={open:r,close:i.color.close,closeRe:i.color.closeRe};return f.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});i.bgColor.closeRe=new RegExp(n(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi))l.has(e)||(u["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r=i.bgColor[c[t]][e].apply(null,arguments),n={open:r,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return f.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});const p=Object.defineProperties((()=>{}),u);function f(e,t,r){const n=function(){return g.apply(n,arguments)};n._styles=e,n._empty=t;const i=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=p,n}function g(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function o(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):a.get(e)||e}function s(e,t){const r=[],a=t.trim().split(/\s*,\s*/g);let s;for(const t of a)if(isNaN(t)){if(!(s=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(s[2].replace(i,((e,t,r)=>t?o(t):r)))}else r.push(Number(t));return r}function c(e){r.lastIndex=0;const t=[];let n;for(;null!==(n=r.exec(e));){const e=n[1];if(n[2]){const r=s(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function l(e,t){const r={};for(const e of t)for(const t of e.styles)r[t[0]]=e.inverse?null:t.slice(1);let n=e;for(const e of Object.keys(r))if(Array.isArray(r[e])){if(!(e in n))throw new Error(`Unknown Chalk style: ${e}`);n=r[e].length>0?n[e].apply(n,r[e]):n[e]}return n}e.exports=(e,r)=>{const n=[],i=[];let a=[];if(r.replace(t,((t,r,s,u,_,d)=>{if(r)a.push(o(r));else if(u){const t=a.join("");a=[],i.push(0===n.length?t:l(e,n)(t)),n.push({inverse:s,styles:c(u)})}else if(_){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");i.push(l(e,n)(a.join(""))),a=[],n.pop()}else a.push(d)})),i.push(a.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")}},"./node_modules/color-convert/conversions.js":(e,t,r)=>{var n=r("./node_modules/color-name/index.js"),i={};for(var a in n)n.hasOwnProperty(a)&&(i[n[a]]=a);var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var s in o)if(o.hasOwnProperty(s)){if(!("channels"in o[s]))throw new Error("missing channels property: "+s);if(!("labels"in o[s]))throw new Error("missing channel labels property: "+s);if(o[s].labels.length!==o[s].channels)throw new Error("channel and label counts mismatch: "+s);var c=o[s].channels,l=o[s].labels;delete o[s].channels,delete o[s].labels,Object.defineProperty(o[s],"channels",{value:c}),Object.defineProperty(o[s],"labels",{value:l})}o.rgb.hsl=function(e){var t,r,n=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),c=s-o;return s===o?t=0:n===s?t=(i-a)/c:i===s?t=2+(a-n)/c:a===s&&(t=4+(n-i)/c),(t=Math.min(60*t,360))<0&&(t+=360),r=(o+s)/2,[t,100*(s===o?0:r<=.5?c/(s+o):c/(2-s-o)),100*r]},o.rgb.hsv=function(e){var t,r,n,i,a,o=e[0]/255,s=e[1]/255,c=e[2]/255,l=Math.max(o,s,c),u=l-Math.min(o,s,c),_=function(e){return(l-e)/6/u+.5};return 0===u?i=a=0:(a=u/l,t=_(o),r=_(s),n=_(c),o===l?i=n-r:s===l?i=1/3+t-n:c===l&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*a,100*l]},o.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[o.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(r,n))*100,100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},o.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-i)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},o.rgb.keyword=function(e){var t=i[e];if(t)return t;var r,a,o,s=1/0;for(var c in n)if(n.hasOwnProperty(c)){var l=(a=e,o=n[c],Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)+Math.pow(a[2]-o[2],2));l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},o.rgb.lab=function(e){var t=o.rgb.xyz(e),r=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},o.hsl.rgb=function(e){var t,r,n,i,a,o=e[0]/360,s=e[1]/100,c=e[2]/100;if(0===s)return[a=255*c,a,a];t=2*c-(r=c<.5?c*(1+s):c+s-c*s),i=[0,0,0];for(var l=0;l<3;l++)(n=o+1/3*-(l-1))<0&&n++,n>1&&n--,a=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,i[l]=255*a;return i},o.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,i=r,a=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,i*=a<=1?a:2-a,[t,100*(0===n?2*i/(a+i):2*r/(n+r)),(n+r)/2*100]},o.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,i=Math.floor(t)%6,a=t-Math.floor(t),o=255*n*(1-r),s=255*n*(1-r*a),c=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,c,o];case 1:return[s,n,o];case 2:return[o,n,c];case 3:return[o,s,n];case 4:return[c,o,n];case 5:return[n,o,s]}},o.hsv.hsl=function(e){var t,r,n,i=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return n=(2-a)*o,r=a*s,[i,100*(r=(r/=(t=(2-a)*s)<=1?t:2-t)||0),100*(n/=2)]},o.hwb.rgb=function(e){var t,r,n,i,a,o,s,c=e[0]/360,l=e[1]/100,u=e[2]/100,_=l+u;switch(_>1&&(l/=_,u/=_),n=6*c-(t=Math.floor(6*c)),0!=(1&t)&&(n=1-n),i=l+n*((r=1-u)-l),t){default:case 6:case 0:a=r,o=i,s=l;break;case 1:a=i,o=r,s=l;break;case 2:a=l,o=r,s=i;break;case 3:a=l,o=i,s=r;break;case 4:a=i,o=l,s=r;break;case 5:a=r,o=l,s=i}return[255*a,255*o,255*s]},o.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},o.xyz.rgb=function(e){var t,r,n,i=e[0]/100,a=e[1]/100,o=e[2]/100;return r=-.9689*i+1.8758*a+.0415*o,n=.0557*i+-.204*a+1.057*o,t=(t=3.2406*i+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},o.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},o.lab.xyz=function(e){var t,r,n,i=e[0];t=e[1]/500+(r=(i+16)/116),n=r-e[2]/200;var a=Math.pow(r,3),o=Math.pow(t,3),s=Math.pow(n,3);return r=a>.008856?a:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=s>.008856?s:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},o.lab.lch=function(e){var t,r=e[0],n=e[1],i=e[2];return(t=360*Math.atan2(i,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+i*i),t]},o.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},o.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var a=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===i&&(a+=60),a},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},o.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},o.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},o.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];3===t[0].length&&(r=r.split("").map((function(e){return e+e})).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},o.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,i=e[2]/255,a=Math.max(Math.max(r,n),i),o=Math.min(Math.min(r,n),i),s=a-o;return t=s<=0?0:a===r?(n-i)/s%6:a===n?2+(i-r)/s:4+(r-n)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},o.hsl.hcg=function(e){var t,r=e[1]/100,n=e[2]/100,i=0;return(t=n<.5?2*r*n:2*r*(1-n))<1&&(i=(n-.5*t)/(1-t)),[e[0],100*t,100*i]},o.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},o.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(0===r)return[255*n,255*n,255*n];var i,a=[0,0,0],o=t%1*6,s=o%1,c=1-s;switch(Math.floor(o)){case 0:a[0]=1,a[1]=s,a[2]=0;break;case 1:a[0]=c,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=s;break;case 3:a[0]=0,a[1]=c,a[2]=1;break;case 4:a[0]=s,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=c}return i=(1-r)*n,[255*(r*a[0]+i),255*(r*a[1]+i),255*(r*a[2]+i)]},o.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},o.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,n=0;return r>0&&r<.5?n=t/(2*r):r>=.5&&r<1&&(n=t/(2*(1-r))),[e[0],100*n,100*r]},o.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},o.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],100*n,100*i]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},"./node_modules/color-convert/index.js":(e,t,r)=>{var n=r("./node_modules/color-convert/conversions.js"),i=r("./node_modules/color-convert/route.js"),a={};Object.keys(n).forEach((function(e){a[e]={},Object.defineProperty(a[e],"channels",{value:n[e].channels}),Object.defineProperty(a[e],"labels",{value:n[e].labels});var t=i(e);Object.keys(t).forEach((function(r){var n=t[r];a[e][r]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var r=e(t);if("object"==typeof r)for(var n=r.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(n)}))})),e.exports=a},"./node_modules/color-convert/route.js":(e,t,r)=>{var n=r("./node_modules/color-convert/conversions.js");function i(e,t){return function(r){return t(e(r))}}function a(e,t){for(var r=[t[e].parent,e],a=n[t[e].parent][e],o=t[e].parent;t[o].parent;)r.unshift(t[o].parent),a=i(n[t[o].parent][o],a),o=t[o].parent;return a.conversion=r,a}e.exports=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(n),r=t.length,i=0;i{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},"./node_modules/command-line-args/dist/index.js":(e,t,r)=>{"use strict";var n,i=(n=r("./node_modules/lodash.camelcase/index.js"))&&"object"==typeof n&&"default"in n?n.default:n;function a(e){return Array.isArray(e)?e:void 0===e?[]:function(e){return function(e){return"object"==typeof e&&null!==e}(e)&&"number"==typeof e.length}(e)||e instanceof Set?Array.from(e):[e]}function o(e){return Array.isArray(e)?e:void 0===e?[]:function(e){return function(e){return"object"==typeof e&&null!==e}(e)&&"number"==typeof e.length}(e)?Array.prototype.slice.call(e):[e]}function s(e,t){const r=[],n=o(arguments);return n.splice(0,2),o(e).forEach(((e,i)=>{let a=[];n.forEach((t=>{"function"==typeof t?a=a.concat(t(e)):a.push(t)})),t(e)&&r.push({index:i,replaceWithValue:a})})),r.reverse().forEach((t=>{const r=[t.index,1].concat(t.replaceWithValue);e.splice.apply(e,r)})),e}const c={short:/^-([^\d-])$/,long:/^--(\S+)/,combinedShort:/^-[^\d-]{2,}$/,optEquals:/^(--\S+?)=(.*)/};class l extends Array{load(e){if(this.clear(),e&&e!==process.argv)e=a(e);else{e=process.argv.slice(0);const t=process.execArgv.some(g)?1:2;e.splice(0,t)}e.forEach((e=>this.push(String(e))))}clear(){this.length=0}expandOptionEqualsNotation(){if(this.some((e=>c.optEquals.test(e)))){const e=[];this.forEach((t=>{const r=t.match(c.optEquals);r?e.push(r[1],r[2]):e.push(t)})),this.clear(),this.load(e)}}expandGetoptNotation(){this.hasCombinedShortOptions()&&s(this,c.combinedShort,u)}hasCombinedShortOptions(){return this.some((e=>c.combinedShort.test(e)))}static from(e){const t=new this;return t.load(e),t}}function u(e){return(e=e.slice(1)).split("").map((e=>"-"+e))}function _(e){return c.optEquals.test(e)}function d(e){return(c.short.test(e)||c.long.test(e))&&!c.optEquals.test(e)}function p(e){return c.short.test(e)?e.match(c.short)[1]:function(e){return c.long.test(e)&&!_(e)}(e)?e.match(c.long)[1]:_(e)?e.match(c.optEquals)[1].replace(/^--/,""):null}function f(e){return!(d(e)||c.combinedShort.test(e)||c.optEquals.test(e))}function g(e){return["--eval","-e"].indexOf(e)>-1||e.startsWith("--eval=")}function m(e){return"object"==typeof e&&null!==e}function y(e){return void 0!==e}function h(e){return"function"==typeof e}var v={isNumber:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},isString:function(e){return"string"==typeof e},isBoolean:function(e){return"boolean"==typeof e},isPlainObject:function(e){return null!==e&&"object"==typeof e&&e.constructor===Object},isArrayLike:function(e){return m(e)&&"number"==typeof e.length},isObject:m,isDefined:y,isFunction:h,isClass:function(e){return!!h(e)&&/^class /.test(Function.prototype.toString.call(e))},isPrimitive:function(e){if(null===e)return!0;switch(typeof e){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}},isPromise:function(e){if(e){const t=y(Promise)&&e instanceof Promise,r=e.then&&"function"==typeof e.then;return!(!t&&!r)}return!1},isIterable:function(e){return!(null===e||!y(e)||"function"!=typeof e[Symbol.iterator]&&"function"!=typeof e[Symbol.asyncIterator])}};class b{constructor(e){this.name=e.name,this.type=e.type||String,this.alias=e.alias,this.multiple=e.multiple,this.lazyMultiple=e.lazyMultiple,this.defaultOption=e.defaultOption,this.defaultValue=e.defaultValue,this.group=e.group;for(const t in e)this[t]||(this[t]=e[t])}isBoolean(){return this.type===Boolean||v.isFunction(this.type)&&"Boolean"===this.type.name}isMultiple(){return this.multiple||this.lazyMultiple}static create(e){return new this(e)}}class x extends Array{validate(e){let t;this.some((e=>!e.name))&&D("INVALID_DEFINITIONS","Invalid option definitions: the `name` property is required on each definition"),this.some((e=>e.type&&"function"!=typeof e.type))&&D("INVALID_DEFINITIONS","Invalid option definitions: the `type` property must be a setter fuction (default: `Boolean`)"),this.some((e=>(t=e,v.isDefined(e.alias)&&v.isNumber(e.alias))))&&D("INVALID_DEFINITIONS","Invalid option definition: to avoid ambiguity an alias cannot be numeric [--"+t.name+" alias is -"+t.alias+"]"),this.some((e=>(t=e,v.isDefined(e.alias)&&1!==e.alias.length)))&&D("INVALID_DEFINITIONS","Invalid option definition: an alias must be a single character"),this.some((e=>(t=e,"-"===e.alias)))&&D("INVALID_DEFINITIONS",'Invalid option definition: an alias cannot be "-"'),E(this.map((t=>e?t.name.toLowerCase():t.name)))&&D("INVALID_DEFINITIONS","Two or more option definitions have the same name"),E(this.map((t=>e&&v.isDefined(t.alias)?t.alias.toLowerCase():t.alias)))&&D("INVALID_DEFINITIONS","Two or more option definitions have the same alias"),E(this.map((e=>e.defaultOption)))&&D("INVALID_DEFINITIONS","Only one option definition can be the defaultOption"),this.some((e=>(t=e,e.isBoolean()&&e.defaultOption)))&&D("INVALID_DEFINITIONS",`A boolean option ["${t.name}"] can not also be the defaultOption.`)}get(e,t){if(d(e)){if(c.short.test(e)){const r=p(e);if(t){const e=r.toLowerCase();return this.find((t=>v.isDefined(t.alias)&&t.alias.toLowerCase()===e))}return this.find((e=>e.alias===r))}{const r=p(e);if(t){const e=r.toLowerCase();return this.find((t=>t.name.toLowerCase()===e))}return this.find((e=>e.name===r))}}return this.find((t=>t.name===e))}getDefault(){return this.find((e=>!0===e.defaultOption))}isGrouped(){return this.some((e=>e.group))}whereGrouped(){return this.filter(S)}whereNotGrouped(){return this.filter((e=>!S(e)))}whereDefaultValueSet(){return this.filter((e=>v.isDefined(e.defaultValue)))}static from(e,t){if(e instanceof this)return e;const r=super.from(a(e),(e=>b.create(e)));return r.validate(t),r}}function D(e,t){const r=new Error(t);throw r.name=e,r}function S(e){return a(e.group).some((e=>e))}function E(e){const t={};for(let r=0;r(e=e.slice(1)).split("").map((t=>({origArg:`-${e}`,arg:"-"+t})))))}*[Symbol.iterator](){const e=this.definitions;let t,r,n,i,a,o=!1,s=!1;for(let l of this.argv){if(v.isPlainObject(l)&&(a=l.origArg,l=l.arg),s&&this.options.stopAtFirstUnknown){yield{event:"unknown_value",arg:l,name:"_unknown",value:void 0};continue}if(d(l))t=e.get(l,this.options.caseInsensitive),r=void 0,t?(r=!!t.isBoolean()||null,i="set"):i="unknown_option";else if(_(l)){const n=l.match(c.optEquals);t=e.get(n[1],this.options.caseInsensitive),t?t.isBoolean()?(yield{event:"unknown_value",arg:l,name:"_unknown",value:r,def:t},i="set",r=!0):(i="set",r=n[2]):i="unknown_option"}else f(l)&&(t?(r=l,i="set"):(t=this.definitions.getDefault(),t&&!o?(r=l,i="set"):(i="unknown_value",t=void 0)));n=t?t.name:"_unknown";const u={event:i,arg:l,name:n,value:r,def:t};a&&(u.subArg=l,u.arg=a),yield u,"_unknown"===n&&(s=!0),t&&t.defaultOption&&!t.isMultiple()&&"set"===i&&(o=!0),t&&t.isBoolean()&&(t=void 0),t&&!t.multiple&&v.isDefined(r)&&null!==r&&(t=void 0),r=void 0,i=void 0,n=void 0,a=void 0}}}const T=new WeakMap;class k{constructor(e){this.definition=new b(e),this.state=null,this.resetToDefault()}get(){return T.get(this)}set(e){this._set(e,"set")}_set(e,t){const r=this.definition;if(r.isMultiple()){if(null!=e){const n=this.get();"default"===this.state&&(n.length=0),n.push(r.type(e)),this.state=t}}else{if(!r.isMultiple()&&"set"===this.state){const t=new Error(`Singular option already set [${this.definition.name}=${this.get()}]`);throw t.name="ALREADY_SET",t.value=e,t.optionName=r.name,t}null==e?T.set(this,e):(T.set(this,r.type(e)),this.state=t)}}resetToDefault(){v.isDefined(this.definition.defaultValue)?this.definition.isMultiple()?T.set(this,a(this.definition.defaultValue).slice()):T.set(this,this.definition.defaultValue):this.definition.isMultiple()?T.set(this,[]):T.set(this,null),this.state="default"}static create(e){return(e=new b(e)).isBoolean()?A.create(e):new this(e)}}class A extends k{set(e){super.set(!0)}static create(e){return new this(e)}}class N extends Map{constructor(e){super(),this.definitions=x.from(e),this.set("_unknown",k.create({name:"_unknown",multiple:!0}));for(const e of this.definitions.whereDefaultValueSet())this.set(e.name,k.create(e))}toObject(e){e=e||{};const t={};for(const r of this){const n=e.camelCase&&"_unknown"!==r[0]?i(r[0]):r[0],a=r[1];("_unknown"!==n||a.get().length)&&(t[n]=a.get())}return e.skipUnknown&&delete t._unknown,t}}class w extends N{toObject(e){const t=super.toObject({skipUnknown:e.skipUnknown}),r=super.toObject(e),n=r._unknown;delete r._unknown;const o={_all:r};return n&&n.length&&(o._unknown=n),this.definitions.whereGrouped().forEach((r=>{const n=e.camelCase?i(r.name):r.name,s=t[r.name];for(const e of a(r.group))o[e]=o[e]||{},v.isDefined(s)&&(o[e][n]=s)})),this.definitions.whereNotGrouped().forEach((r=>{const n=e.camelCase?i(r.name):r.name,a=t[r.name];v.isDefined(a)&&(o._none||(o._none={}),o._none[n]=a)})),o}}e.exports=function(e,t){(t=t||{}).stopAtFirstUnknown&&(t.partial=!0),e=x.from(e,t.caseInsensitive);const r=new C(e,{argv:t.argv,stopAtFirstUnknown:t.stopAtFirstUnknown,caseInsensitive:t.caseInsensitive}),n=new(e.isGrouped()?w:N)(e);for(const e of r){const r=e.subArg||e.arg;if(!t.partial){if("unknown_value"===e.event){const e=new Error(`Unknown value: ${r}`);throw e.name="UNKNOWN_VALUE",e.value=r,e}if("unknown_option"===e.event){const e=new Error(`Unknown option: ${r}`);throw e.name="UNKNOWN_OPTION",e.optionName=r,e}}let i;n.has(e.name)?i=n.get(e.name):(i=k.create(e.def),n.set(e.name,i)),"_unknown"===e.name?i.set(r):i.set(e.value)}return n.toObject({skipUnknown:!t.partial,camelCase:t.camelCase})}},"./node_modules/command-line-usage/index.js":(e,t,r)=>{e.exports=function(e){if((e=r("./node_modules/command-line-usage/node_modules/array-back/dist/index.js")(e)).length){const t=r("./node_modules/command-line-usage/lib/section/option-list.js"),n=r("./node_modules/command-line-usage/lib/section/content.js");return"\n"+e.map((e=>e.optionList?new t(e):new n(e))).join("\n")}return""}},"./node_modules/command-line-usage/lib/chalk-format.js":(e,t,r)=>{e.exports=function(e){return e?(e=e.replace(/`/g,"\\`"),r("./node_modules/chalk/index.js")(Object.assign([],{raw:[e]}))):""}},"./node_modules/command-line-usage/lib/section.js":(e,t,r)=>{e.exports=class{constructor(){this.lines=[]}add(e){e?r("./node_modules/command-line-usage/node_modules/array-back/dist/index.js")(e).forEach((e=>this.lines.push(e))):this.lines.push("")}toString(){const e=r("os");return this.lines.join(e.EOL)}header(e){const t=r("./node_modules/chalk/index.js");e&&(this.add(t.underline.bold(e)),this.add())}}},"./node_modules/command-line-usage/lib/section/content.js":(e,t,r)=>{const n=r("./node_modules/command-line-usage/lib/section.js"),i=r("./node_modules/command-line-usage/node_modules/typical/dist/index.js"),a=r("./node_modules/table-layout/index.js"),o=r("./node_modules/command-line-usage/lib/chalk-format.js");function s(e){for(const t in e)e[t]=o(e[t]);return e}e.exports=class extends n{constructor(e){if(super(),this.header(e.header),e.content){if(e.raw){const t=r("./node_modules/command-line-usage/node_modules/array-back/dist/index.js")(e.content).map((e=>o(e)));this.add(t)}else this.add(function(e){const t={left:" ",right:" "};if(e){if(i.isString(e))return new a({column:o(e)},{padding:t,maxWidth:80}).renderLines();if(Array.isArray(e)&&e.every(i.isString)){const r=e.map((e=>({column:o(e)})));return new a(r,{padding:t,maxWidth:80}).renderLines()}if(Array.isArray(e)&&e.every(i.isPlainObject))return new a(e.map((e=>s(e))),{padding:t}).renderLines();if(i.isPlainObject(e)){if(!e.options||!e.data)throw new Error('must have an "options" or "data" property\n'+JSON.stringify(e));const r=Object.assign({padding:t},e.options);return r.columns&&(r.columns=r.columns.map((e=>(e.nowrap&&(e.noWrap=e.nowrap,delete e.nowrap),e)))),new a(e.data.map((e=>s(e))),r).renderLines()}{const t=`invalid input - 'content' must be a string, array of strings, or array of plain objects:\n\n${JSON.stringify(e)}`;throw new Error(t)}}}(e.content));this.add()}}}},"./node_modules/command-line-usage/lib/section/option-list.js":(e,t,r)=>{const n=r("./node_modules/command-line-usage/lib/section.js"),i=r("./node_modules/table-layout/index.js"),a=r("./node_modules/command-line-usage/lib/chalk-format.js"),o=r("./node_modules/command-line-usage/node_modules/typical/dist/index.js"),s=r("./node_modules/command-line-usage/node_modules/array-back/dist/index.js");function c(e,t){let r=e.type?e.type.name.toLowerCase():"string";const n=e.multiple||e.lazyMultiple?"[]":"";r&&(r="boolean"===r?"":`{underline ${r}${n}}`),r=a(e.typeLabel||r);let i="";return i=e.alias?e.name?a(t?`{bold --${e.name}}, {bold -${e.alias}} ${r}`:`{bold -${e.alias}}, {bold --${e.name}} ${r}`):a(`{bold -${e.alias}} ${r}`):a(`{bold --${e.name}} ${r}`),i}e.exports=class extends n{constructor(e){super();let t=s(e.optionList);const r=s(e.hide),n=s(e.group);r.length&&(t=t.filter((e=>-1===r.indexOf(e.name)))),e.header&&this.header(e.header),n.length&&(t=t.filter((e=>{const t=n.indexOf("_none")>-1&&!o.isDefined(e.group),r=(i=s(e.group),a=n,i.some((function(e){return a.some((function(t){return e===t}))})));var i,a;if(t||r)return e})));const l=t.map((t=>({option:c(t,e.reverseNameOrder),description:a(t.description)}))),u=e.tableOptions||{padding:{left:" ",right:" "},columns:[{name:"option",noWrap:!0},{name:"description",maxWidth:80}]},_=new i(l,u);this.add(_.renderLines()),this.add()}}},"./node_modules/command-line-usage/node_modules/array-back/dist/index.js":function(e){e.exports=function(){"use strict";return function(e){return Array.isArray(e)?e:void 0===e?[]:function(e){return function(e){return"object"==typeof e&&null!==e}(e)&&"number"==typeof e.length}(e)||e instanceof Set?Array.from(e):[e]}}()},"./node_modules/command-line-usage/node_modules/typical/dist/index.js":function(e,t){!function(e){"use strict";function t(e){return!isNaN(parseFloat(e))&&isFinite(e)}function r(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function n(e){return i(e)&&"number"==typeof e.length}function i(e){return"object"==typeof e&&null!==e}function a(e){return void 0!==e}function o(e){return!a(e)}function s(e){return null===e}function c(e){return a(e)&&!s(e)&&!Number.isNaN(e)}function l(e){return"function"==typeof e&&/^class /.test(Function.prototype.toString.call(e))}function u(e){if(null===e)return!0;switch(typeof e){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}}function _(e){if(e){const t=a(Promise)&&e instanceof Promise,r=e.then&&"function"==typeof e.then;return!(!t&&!r)}return!1}function d(e){return!(null===e||!a(e)||"function"!=typeof e[Symbol.iterator]&&"function"!=typeof e[Symbol.asyncIterator])}function p(e){return"string"==typeof e}function f(e){return"function"==typeof e}var g={isNumber:t,isPlainObject:r,isArrayLike:n,isObject:i,isDefined:a,isUndefined:o,isNull:s,isDefinedValue:c,isClass:l,isPrimitive:u,isPromise:_,isIterable:d,isString:p,isFunction:f};e.default=g,e.isArrayLike=n,e.isClass=l,e.isDefined=a,e.isDefinedValue=c,e.isFunction=f,e.isIterable=d,e.isNull=s,e.isNumber=t,e.isObject=i,e.isPlainObject=r,e.isPrimitive=u,e.isPromise=_,e.isString=p,e.isUndefined=o,Object.defineProperty(e,"__esModule",{value:!0})}(t)},"./node_modules/deep-extend/lib/deep-extend.js":e=>{"use strict";function t(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp}function r(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);return e.copy(t),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}function n(e){var i=[];return e.forEach((function(e,o){"object"==typeof e&&null!==e?Array.isArray(e)?i[o]=n(e):t(e)?i[o]=r(e):i[o]=a({},e):i[o]=e})),i}function i(e,t){return"__proto__"===t?void 0:e[t]}var a=e.exports=function(){if(arguments.length<1||"object"!=typeof arguments[0])return!1;if(arguments.length<2)return arguments[0];var e,o,s=arguments[0],c=Array.prototype.slice.call(arguments,1);return c.forEach((function(c){"object"!=typeof c||null===c||Array.isArray(c)||Object.keys(c).forEach((function(l){return o=i(s,l),(e=i(c,l))===s?void 0:"object"!=typeof e||null===e?void(s[l]=e):Array.isArray(e)?void(s[l]=n(e)):t(e)?void(s[l]=r(e)):"object"!=typeof o||null===o||Array.isArray(o)?void(s[l]=a({},e)):void(s[l]=a(o,e))}))})),s}},"./node_modules/escape-string-regexp/index.js":e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(t,"\\$&")}},"./node_modules/has-flag/index.js":e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return-1!==n&&(-1===i||n{var t,r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i="a-z\\xdf-\\xf6\\xf8-\\xff",a="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+o+"]",c="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",l="\\d+",u="["+i+"]",_="[^\\ud800-\\udfff"+o+l+"\\u2700-\\u27bf"+i+a+"]",d="\\ud83c[\\udffb-\\udfff]",p="[^\\ud800-\\udfff]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",m="["+a+"]",y="(?:"+u+"|"+_+")",h="(?:"+m+"|"+_+")",v="(?:['’](?:d|ll|m|re|s|t|ve))?",b="(?:['’](?:D|LL|M|RE|S|T|VE))?",x="(?:"+c+"|"+d+")?",D="[\\ufe0e\\ufe0f]?",S=D+x+"(?:\\u200d(?:"+[p,f,g].join("|")+")"+D+x+")*",E="(?:"+["[\\u2700-\\u27bf]",f,g].join("|")+")"+S,C="(?:"+[p+c+"?",c,f,g,"[\\ud800-\\udfff]"].join("|")+")",T=RegExp("['’]","g"),k=RegExp(c,"g"),A=RegExp(d+"(?="+d+")|"+C+S,"g"),N=RegExp([m+"?"+u+"+"+v+"(?="+[s,m,"$"].join("|")+")",h+"+"+b+"(?="+[s,m+y,"$"].join("|")+")",m+"?"+y+"+"+v,m+"+"+b,l,E].join("|"),"g"),w=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),F=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,P="object"==typeof global&&global&&global.Object===Object&&global,I="object"==typeof self&&self&&self.Object===Object&&self,O=P||I||Function("return this")(),L=(t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return null==t?void 0:t[e]});function M(e){return w.test(e)}var R=Object.prototype.toString,B=O.Symbol,j=B?B.prototype:void 0,J=j?j.toString:void 0;function V(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==R.call(e)}(e))return J?J.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var U,K=(U=function(e,t,r){return t=t.toLowerCase(),e+(r?z(V(t).toLowerCase()):t)},function(e){return function(e,t,r,n){for(var i=-1,a=e?e.length:0;++i=i?t:function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n{e.exports=function(e,t){return e.concat(t)}},"./node_modules/regexpp/index.js":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.freeze({});let n,i;function a(e){return!(e<48)&&(e<58||!(e<65)&&(e<91||95===e||!(e<97)&&(e<123||o(e)||function(e){return s(e,i||(i=c("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 3c e 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1m 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 h 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 5 3 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 2 u 2 u 1 v 1 1t v a 0 3 9 y 2 3 9 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 1 1s 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1l 2 4 g0 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 n7q 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 ji 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 aa 1 4a a 4w 2 1i e w 9 g 3 1a a 1i 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 4h b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 5d h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 2c e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f ba 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 96 3 ewa 9 3r 4 1o 6 q 9 s6 0 2 1i 8 3 2a 0 c 1 f58 1 43r 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 7a 6 a 9 bn d 15j 6 32 6 6 9 3o7 9 gvt3 6n")))}(e))))}function o(e){return s(e,n||(n=c("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 1i k 2 h 1p 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 6 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 x 0 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 c 2 3 f h f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 6 1k t e 1 b 17 r z 16 2 b z 3 8 8 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 1a 2 1a 2 3o 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t g70 4 wc 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 1g 3 8 17 c 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f 4d 8m a l b 7 49 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 9p 15 7 1 27 s b 0 9 l 2z k s m d 1g 24 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o 2d 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 4f 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 6e 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 z 1k 7c 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 94 i 5a 0 28 pl 2v 32 i 5f 24d tq 34i g6 6nu fs 8 u 36 t j 1b h 3 w k 6 i j5 1r 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 17 8 6wo 7y 1e 2 i 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1th 18 b 6 h 0 aa 17 105 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyl z 378 c 65 3 4g1 f 5rk 2e8 f1 15v 3t6")))}function s(e,t){let r=0,n=t.length/2|0,i=0,a=0,o=0;for(;ro))return!0;r=i+1}return!1}function c(e){let t=0;return e.split(" ").map((e=>t+=0|parseInt(e,36)))}class l{constructor(e,t,r,n){this._raw2018=e,this._raw2019=t,this._raw2020=r,this._raw2021=n}get es2018(){return this._set2018||(this._set2018=new Set(this._raw2018.split(" ")))}get es2019(){return this._set2019||(this._set2019=new Set(this._raw2019.split(" ")))}get es2020(){return this._set2020||(this._set2020=new Set(this._raw2020.split(" ")))}get es2021(){return this._set2021||(this._set2021=new Set(this._raw2021.split(" ")))}}const u=new Set(["General_Category","gc"]),_=new Set(["Script","Script_Extensions","sc","scx"]),d=new l("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","",""),p=new l("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"),f=new l("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict");function g(e,t,r){return u.has(t)?e>=2018&&d.es2018.has(r):!!_.has(t)&&(e>=2018&&p.es2018.has(r)||e>=2019&&p.es2019.has(r)||e>=2020&&p.es2020.has(r)||e>=2021&&p.es2021.has(r))}const m=40,y=41,h=48,v=63,b=99,x=92,D=93,S=123,E=125;function C(e){return e>=65&&e<=90||e>=97&&e<=122}function T(e){return e>=h&&e<=57}function k(e){return e>=h&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function A(e){return e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:e-h}function N(e){return e>=55296&&e<=56319}function w(e){return e>=56320&&e<=57343}function F(e,t){return 1024*(e-55296)+(t-56320)+65536}const P={at:(e,t,r)=>r1},I={at:(e,t,r)=>re>65535?2:1};class O{constructor(){this._impl=P,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(e,t,r,n){this._impl=n?I:P,this._s=e,this._end=r,this.rewind(t)}rewind(e){const t=this._impl;this._i=e,this._cp1=t.at(this._s,this._end,e),this._w1=t.width(this._cp1),this._cp2=t.at(this._s,this._end,e+this._w1),this._w2=t.width(this._cp2),this._cp3=t.at(this._s,this._end,e+this._w1+this._w2),this._w3=t.width(this._cp3),this._cp4=t.at(this._s,this._end,e+this._w1+this._w2+this._w3)}advance(){if(-1!==this._cp1){const e=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=e.width(this._cp2),this._cp3=this._cp4,this._w3=e.width(this._cp3),this._cp4=e.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(e){return this._cp1===e&&(this.advance(),!0)}eat2(e,t){return this._cp1===e&&this._cp2===t&&(this.advance(),this.advance(),!0)}eat3(e,t,r){return this._cp1===e&&this._cp2===t&&this._cp3===r&&(this.advance(),this.advance(),this.advance(),!0)}}class L extends SyntaxError{constructor(e,t,r,n){e&&(e.startsWith("/")||(e=`/${e}/${t?"u":""}`),e=`: ${e}`),super(`Invalid regular expression${e}: ${n}`),this.index=r}}function M(e){return 94===e||36===e||e===x||46===e||42===e||43===e||e===v||e===m||e===y||91===e||e===D||e===S||e===E||124===e}function R(e){return C(e)||95===e}class B{constructor(e){this._reader=new O,this._uFlag=!1,this._nFlag=!1,this._lastIntValue=0,this._lastMinValue=0,this._lastMaxValue=0,this._lastStrValue="",this._lastKeyValue="",this._lastValValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._groupNames=new Set,this._backreferenceNames=new Set,this._options=e||{}}validateLiteral(e,t=0,r=e.length){if(this._uFlag=this._nFlag=!1,this.reset(e,t,r),this.onLiteralEnter(t),this.eat(47)&&this.eatRegExpBody()&&this.eat(47)){const n=this.index,i=e.includes("u",n);this.validateFlags(e,n,r),this.validatePattern(e,t+1,n-1,i)}else if(t>=r)this.raise("Empty");else{const e=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${e}'`)}this.onLiteralLeave(t,r)}validateFlags(e,t=0,r=e.length){const n=new Set;let i=!1,a=!1,o=!1,s=!1,c=!1,l=!1,u=!1;for(let _=t;_=2015?c=!0:121===t&&this.ecmaVersion>=2015?s=!0:115===t&&this.ecmaVersion>=2018?l=!0:100===t&&this.ecmaVersion>=2022?u=!0:this.raise(`Invalid flag '${e[_]}'`)}this.onFlags(t,r,i,a,o,c,s,l,u)}validatePattern(e,t=0,r=e.length,n=!1){this._uFlag=n&&this.ecmaVersion>=2015,this._nFlag=n&&this.ecmaVersion>=2018,this.reset(e,t,r),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&this._groupNames.size>0&&(this._nFlag=!0,this.rewind(t),this.consumePattern())}get strict(){return Boolean(this._options.strict||this._uFlag)}get ecmaVersion(){return this._options.ecmaVersion||2022}onLiteralEnter(e){this._options.onLiteralEnter&&this._options.onLiteralEnter(e)}onLiteralLeave(e,t){this._options.onLiteralLeave&&this._options.onLiteralLeave(e,t)}onFlags(e,t,r,n,i,a,o,s,c){this._options.onFlags&&this._options.onFlags(e,t,r,n,i,a,o,s,c)}onPatternEnter(e){this._options.onPatternEnter&&this._options.onPatternEnter(e)}onPatternLeave(e,t){this._options.onPatternLeave&&this._options.onPatternLeave(e,t)}onDisjunctionEnter(e){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(e)}onDisjunctionLeave(e,t){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(e,t)}onAlternativeEnter(e,t){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(e,t)}onAlternativeLeave(e,t,r){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(e,t,r)}onGroupEnter(e){this._options.onGroupEnter&&this._options.onGroupEnter(e)}onGroupLeave(e,t){this._options.onGroupLeave&&this._options.onGroupLeave(e,t)}onCapturingGroupEnter(e,t){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(e,t)}onCapturingGroupLeave(e,t,r){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(e,t,r)}onQuantifier(e,t,r,n,i){this._options.onQuantifier&&this._options.onQuantifier(e,t,r,n,i)}onLookaroundAssertionEnter(e,t,r){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(e,t,r)}onLookaroundAssertionLeave(e,t,r,n){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(e,t,r,n)}onEdgeAssertion(e,t,r){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(e,t,r)}onWordBoundaryAssertion(e,t,r,n){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(e,t,r,n)}onAnyCharacterSet(e,t,r){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(e,t,r)}onEscapeCharacterSet(e,t,r,n){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(e,t,r,n)}onUnicodePropertyCharacterSet(e,t,r,n,i,a){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(e,t,r,n,i,a)}onCharacter(e,t,r){this._options.onCharacter&&this._options.onCharacter(e,t,r)}onBackreference(e,t,r){this._options.onBackreference&&this._options.onBackreference(e,t,r)}onCharacterClassEnter(e,t){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(e,t)}onCharacterClassLeave(e,t,r){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(e,t,r)}onCharacterClassRange(e,t,r,n){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(e,t,r,n)}get source(){return this._reader.source}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(e,t,r){this._reader.reset(e,t,r,this._uFlag)}rewind(e){this._reader.rewind(e)}advance(){this._reader.advance()}eat(e){return this._reader.eat(e)}eat2(e,t){return this._reader.eat2(e,t)}eat3(e,t,r){return this._reader.eat3(e,t,r)}raise(e){throw new L(this.source,this._uFlag,this.index,e)}eatRegExpBody(){const e=this.index;let t=!1,r=!1;for(;;){const i=this.currentCodePoint;if(-1===i||10===(n=i)||13===n||8232===n||8233===n){const e=t?"character class":"regular expression";this.raise(`Unterminated ${e}`)}if(r)r=!1;else if(i===x)r=!0;else if(91===i)t=!0;else if(i===D)t=!1;else if(47===i&&!t||42===i&&this.index===e)break;this.advance()}var n;return this.index!==e}consumePattern(){const e=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupNames.clear(),this._backreferenceNames.clear(),this.onPatternEnter(e),this.consumeDisjunction();const t=this.currentCodePoint;if(-1!==this.currentCodePoint){t===y&&this.raise("Unmatched ')'"),t===x&&this.raise("\\ at end of pattern"),t!==D&&t!==E||this.raise("Lone quantifier brackets");const e=String.fromCodePoint(t);this.raise(`Unexpected character '${e}'`)}for(const e of this._backreferenceNames)this._groupNames.has(e)||this.raise("Invalid named capture referenced");this.onPatternLeave(e,this.index)}countCapturingParens(){const e=this.index;let t=!1,r=!1,n=0,i=0;for(;-1!==(i=this.currentCodePoint);)r?r=!1:i===x?r=!0:91===i?t=!0:i===D?t=!1:i!==m||t||this.nextCodePoint===v&&(60!==this.nextCodePoint2||61===this.nextCodePoint3||33===this.nextCodePoint3)||(n+=1),this.advance();return this.rewind(e),n}consumeDisjunction(){const e=this.index;let t=0;this.onDisjunctionEnter(e);do{this.consumeAlternative(t++)}while(this.eat(124));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(S)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(e,this.index)}consumeAlternative(e){const t=this.index;for(this.onAlternativeEnter(t,e);-1!==this.currentCodePoint&&this.consumeTerm(););this.onAlternativeLeave(t,this.index,e)}consumeTerm(){return this._uFlag||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){const e=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(94))return this.onEdgeAssertion(e,this.index,"start"),!0;if(this.eat(36))return this.onEdgeAssertion(e,this.index,"end"),!0;if(this.eat2(x,66))return this.onWordBoundaryAssertion(e,this.index,"word",!0),!0;if(this.eat2(x,98))return this.onWordBoundaryAssertion(e,this.index,"word",!1),!0;if(this.eat2(m,v)){const t=this.ecmaVersion>=2018&&this.eat(60);let r=!1;if(this.eat(61)||(r=this.eat(33))){const n=t?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(e,n,r),this.consumeDisjunction(),this.eat(y)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!t&&!this.strict,this.onLookaroundAssertionLeave(e,this.index,n,r),!0}this.rewind(e)}return!1}consumeQuantifier(e=!1){const t=this.index;let r=0,n=0,i=!1;if(this.eat(42))r=0,n=Number.POSITIVE_INFINITY;else if(this.eat(43))r=1,n=Number.POSITIVE_INFINITY;else if(this.eat(v))r=0,n=1;else{if(!this.eatBracedQuantifier(e))return!1;r=this._lastMinValue,n=this._lastMaxValue}return i=!this.eat(v),e||this.onQuantifier(t,this.index,r,n,i),!0}eatBracedQuantifier(e){const t=this.index;if(this.eat(S)){if(this._lastMinValue=0,this._lastMaxValue=Number.POSITIVE_INFINITY,this.eatDecimalDigits()&&(this._lastMinValue=this._lastMaxValue=this._lastIntValue,this.eat(44)&&(this._lastMaxValue=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(E)))return!e&&this._lastMaxValue=2018?this.consumeGroupSpecifier()&&(t=this._lastStrValue):this.currentCodePoint===v&&this.raise("Invalid group"),this.onCapturingGroupEnter(e,t),this.consumeDisjunction(),this.eat(y)||this.raise("Unterminated group"),this.onCapturingGroupLeave(e,this.index,t),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||this.consumeCharacterClass()||this.consumeUncapturingGroup()||this.consumeCapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){const e=this.index;return this.currentCodePoint===x&&this.nextCodePoint===b&&(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,x),!0)}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){const e=this.index,t=this.currentCodePoint;return-1!==t&&!M(t)&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeExtendedPatternCharacter(){const e=this.index,t=this.currentCodePoint;return-1!==t&&94!==t&&36!==t&&t!==x&&46!==t&&42!==t&&43!==t&&t!==v&&t!==m&&t!==y&&91!==t&&124!==t&&(this.advance(),this.onCharacter(e,this.index,t),!0)}consumeGroupSpecifier(){if(this.eat(v)){if(this.eatGroupName()){if(!this._groupNames.has(this._lastStrValue))return this._groupNames.add(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.raise("Invalid group")}return!1}consumeAtomEscape(){return!!(this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName())||((this.strict||this._uFlag)&&this.raise("Invalid escape"),!1)}consumeBackreference(){const e=this.index;if(this.eatDecimalEscape()){const t=this._lastIntValue;if(t<=this._numCapturingParens)return this.onBackreference(e-1,this.index,t),!0;(this.strict||this._uFlag)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeCharacterClassEscape(){const e=this.index;if(this.eat(100))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"digit",!1),!0;if(this.eat(68))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"digit",!0),!0;if(this.eat(115))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"space",!1),!0;if(this.eat(83))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"space",!0),!0;if(this.eat(119))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"word",!1),!0;if(this.eat(87))return this._lastIntValue=-1,this.onEscapeCharacterSet(e-1,this.index,"word",!0),!0;let t=!1;if(this._uFlag&&this.ecmaVersion>=2018&&(this.eat(112)||(t=this.eat(80)))){if(this._lastIntValue=-1,this.eat(S)&&this.eatUnicodePropertyValueExpression()&&this.eat(E))return this.onUnicodePropertyCharacterSet(e-1,this.index,"property",this._lastKeyValue,this._lastValValue||null,t),!0;this.raise("Invalid property name")}return!1}consumeCharacterEscape(){const e=this.index;return!!(this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._uFlag&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape())&&(this.onCharacter(e-1,this.index,this._lastIntValue),!0)}consumeKGroupName(){const e=this.index;if(this.eat(107)){if(this.eatGroupName()){const t=this._lastStrValue;return this._backreferenceNames.add(t),this.onBackreference(e-1,this.index,t),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){const e=this.index;if(this.eat(91)){const t=this.eat(94);return this.onCharacterClassEnter(e,t),this.consumeClassRanges(),this.eat(D)||this.raise("Unterminated character class"),this.onCharacterClassLeave(e,this.index,t),!0}return!1}consumeClassRanges(){const e=this.strict||this._uFlag;for(;;){const t=this.index;if(!this.consumeClassAtom())break;const r=this._lastIntValue;if(!this.eat(45))continue;if(this.onCharacter(this.index-1,this.index,45),!this.consumeClassAtom())break;const n=this._lastIntValue;-1!==r&&-1!==n?(r>n&&this.raise("Range out of order in character class"),this.onCharacterClassRange(t,this.index,r,n)):e&&this.raise("Invalid character class")}}consumeClassAtom(){const e=this.index,t=this.currentCodePoint;if(-1!==t&&t!==x&&t!==D)return this.advance(),this._lastIntValue=t,this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(x)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===b)return this._lastIntValue=x,this.onCharacter(e,this.index,this._lastIntValue),!0;(this.strict||this._uFlag)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeClassEscape(){const e=this.index;if(this.eat(98))return this._lastIntValue=8,this.onCharacter(e-1,this.index,this._lastIntValue),!0;if(this._uFlag&&this.eat(45))return this._lastIntValue=45,this.onCharacter(e-1,this.index,this._lastIntValue),!0;let t=0;return this.strict||this._uFlag||this.currentCodePoint!==b||!T(t=this.nextCodePoint)&&95!==t?this.consumeCharacterClassEscape()||this.consumeCharacterEscape():(this.advance(),this.advance(),this._lastIntValue=t%32,this.onCharacter(e-1,this.index,this._lastIntValue),!0)}eatGroupName(){if(this.eat(60)){if(this.eatRegExpIdentifierName()&&this.eat(62))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){const e=this.index,t=!this._uFlag&&this.ecmaVersion>=2020;let r=this.currentCodePoint;return this.advance(),r===x&&this.eatRegExpUnicodeEscapeSequence(t)?r=this._lastIntValue:t&&N(r)&&w(this.currentCodePoint)&&(r=F(r,this.currentCodePoint),this.advance()),function(e){return function(e){return!(e<65)&&(e<91||!(e<97)&&(e<123||o(e)))}(e)||36===e||95===e}(r)?(this._lastIntValue=r,!0):(this.index!==e&&this.rewind(e),!1)}eatRegExpIdentifierPart(){const e=this.index,t=!this._uFlag&&this.ecmaVersion>=2020;let r=this.currentCodePoint;return this.advance(),r===x&&this.eatRegExpUnicodeEscapeSequence(t)?r=this._lastIntValue:t&&N(r)&&w(this.currentCodePoint)&&(r=F(r,this.currentCodePoint),this.advance()),function(e){return a(e)||36===e||95===e||8204===e||8205===e}(r)?(this._lastIntValue=r,!0):(this.index!==e&&this.rewind(e),!1)}eatCControlLetter(){const e=this.index;if(this.eat(b)){if(this.eatControlLetter())return!0;this.rewind(e)}return!1}eatZero(){return this.currentCodePoint===h&&!T(this.nextCodePoint)&&(this._lastIntValue=0,this.advance(),!0)}eatControlEscape(){return this.eat(102)?(this._lastIntValue=12,!0):this.eat(110)?(this._lastIntValue=10,!0):this.eat(114)?(this._lastIntValue=13,!0):this.eat(116)?(this._lastIntValue=9,!0):!!this.eat(118)&&(this._lastIntValue=11,!0)}eatControlLetter(){const e=this.currentCodePoint;return!!C(e)&&(this.advance(),this._lastIntValue=e%32,!0)}eatRegExpUnicodeEscapeSequence(e=!1){const t=this.index,r=e||this._uFlag;if(this.eat(117)){if(r&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||r&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||r)&&this.raise("Invalid unicode escape"),this.rewind(t)}return!1}eatRegExpUnicodeSurrogatePairEscape(){const e=this.index;if(this.eatFixedHexDigits(4)){const t=this._lastIntValue;if(N(t)&&this.eat(x)&&this.eat(117)&&this.eatFixedHexDigits(4)){const e=this._lastIntValue;if(w(e))return this._lastIntValue=F(t,e),!0}this.rewind(e)}return!1}eatRegExpUnicodeCodePointEscape(){const e=this.index;return!!(this.eat(S)&&this.eatHexDigits()&&this.eat(E)&&(t=this._lastIntValue)>=0&&t<=1114111)||(this.rewind(e),!1);var t}eatIdentityEscape(){const e=this.currentCodePoint;return!!this.isValidIdentityEscape(e)&&(this._lastIntValue=e,this.advance(),!0)}isValidIdentityEscape(e){return-1!==e&&(this._uFlag?M(e)||47===e:this.strict?!a(e):this._nFlag?!(e===b||107===e):e!==b)}eatDecimalEscape(){this._lastIntValue=0;let e=this.currentCodePoint;if(e>=49&&e<=57){do{this._lastIntValue=10*this._lastIntValue+(e-h),this.advance()}while((e=this.currentCodePoint)>=h&&e<=57);return!0}return!1}eatUnicodePropertyValueExpression(){const e=this.index;if(this.eatUnicodePropertyName()&&this.eat(61)&&(this._lastKeyValue=this._lastStrValue,this.eatUnicodePropertyValue())){if(this._lastValValue=this._lastStrValue,g(this.ecmaVersion,this._lastKeyValue,this._lastValValue))return!0;this.raise("Invalid property name")}if(this.rewind(e),this.eatLoneUnicodePropertyNameOrValue()){const e=this._lastStrValue;if(g(this.ecmaVersion,"General_Category",e))return this._lastKeyValue="General_Category",this._lastValValue=e,!0;if(r=e,(t=this.ecmaVersion)>=2018&&f.es2018.has(r)||t>=2019&&f.es2019.has(r)||t>=2021&&f.es2021.has(r))return this._lastKeyValue=e,this._lastValValue="",!0;this.raise("Invalid property name")}var t,r;return!1}eatUnicodePropertyName(){for(this._lastStrValue="";R(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return""!==this._lastStrValue}eatUnicodePropertyValue(){for(this._lastStrValue="";R(e=this.currentCodePoint)||T(e);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();var e;return""!==this._lastStrValue}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){const e=this.index;if(this.eat(120)){if(this.eatFixedHexDigits(2))return!0;(this._uFlag||this.strict)&&this.raise("Invalid escape"),this.rewind(e)}return!1}eatDecimalDigits(){const e=this.index;for(this._lastIntValue=0;T(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+A(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){const e=this.index;for(this._lastIntValue=0;k(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+A(this.currentCodePoint),this.advance();return this.index!==e}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){const e=this._lastIntValue;if(this.eatOctalDigit()){const t=this._lastIntValue;e<=3&&this.eatOctalDigit()?this._lastIntValue=64*e+8*t+this._lastIntValue:this._lastIntValue=8*e+t}else this._lastIntValue=e;return!0}return!1}eatOctalDigit(){const e=this.currentCodePoint;return(t=e)>=h&&t<=55?(this.advance(),this._lastIntValue=e-h,!0):(this._lastIntValue=0,!1);var t}eatFixedHexDigits(e){const t=this.index;this._lastIntValue=0;for(let r=0;re.name===t));e.resolved=r,r.references.push(e)}}onAlternativeEnter(e){const t=this._node;if("Assertion"!==t.type&&"CapturingGroup"!==t.type&&"Group"!==t.type&&"Pattern"!==t.type)throw new Error("UnknownError");this._node={type:"Alternative",parent:t,start:e,end:e,raw:"",elements:[]},t.alternatives.push(this._node)}onAlternativeLeave(e,t){const r=this._node;if("Alternative"!==r.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onGroupEnter(e){const t=this._node;if("Alternative"!==t.type)throw new Error("UnknownError");this._node={type:"Group",parent:t,start:e,end:e,raw:"",alternatives:[]},t.elements.push(this._node)}onGroupLeave(e,t){const r=this._node;if("Group"!==r.type||"Alternative"!==r.parent.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onCapturingGroupEnter(e,t){const r=this._node;if("Alternative"!==r.type)throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:r,start:e,end:e,raw:"",name:t,alternatives:[],references:[]},r.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(e,t){const r=this._node;if("CapturingGroup"!==r.type||"Alternative"!==r.parent.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onQuantifier(e,t,r,n,i){const a=this._node;if("Alternative"!==a.type)throw new Error("UnknownError");const o=a.elements.pop();if(null==o||"Quantifier"===o.type||"Assertion"===o.type&&"lookahead"!==o.kind)throw new Error("UnknownError");const s={type:"Quantifier",parent:a,start:o.start,end:t,raw:this.source.slice(o.start,t),min:r,max:n,greedy:i,element:o};a.elements.push(s),o.parent=s}onLookaroundAssertionEnter(e,t,r){const n=this._node;if("Alternative"!==n.type)throw new Error("UnknownError");const i=this._node={type:"Assertion",parent:n,start:e,end:e,raw:"",kind:t,negate:r,alternatives:[]};n.elements.push(i)}onLookaroundAssertionLeave(e,t){const r=this._node;if("Assertion"!==r.type||"Alternative"!==r.parent.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onEdgeAssertion(e,t,r){const n=this._node;if("Alternative"!==n.type)throw new Error("UnknownError");n.elements.push({type:"Assertion",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onWordBoundaryAssertion(e,t,r,n){const i=this._node;if("Alternative"!==i.type)throw new Error("UnknownError");i.elements.push({type:"Assertion",parent:i,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onAnyCharacterSet(e,t,r){const n=this._node;if("Alternative"!==n.type)throw new Error("UnknownError");n.elements.push({type:"CharacterSet",parent:n,start:e,end:t,raw:this.source.slice(e,t),kind:r})}onEscapeCharacterSet(e,t,r,n){const i=this._node;if("Alternative"!==i.type&&"CharacterClass"!==i.type)throw new Error("UnknownError");i.elements.push({type:"CharacterSet",parent:i,start:e,end:t,raw:this.source.slice(e,t),kind:r,negate:n})}onUnicodePropertyCharacterSet(e,t,r,n,i,a){const o=this._node;if("Alternative"!==o.type&&"CharacterClass"!==o.type)throw new Error("UnknownError");o.elements.push({type:"CharacterSet",parent:o,start:e,end:t,raw:this.source.slice(e,t),kind:r,key:n,value:i,negate:a})}onCharacter(e,t,r){const n=this._node;if("Alternative"!==n.type&&"CharacterClass"!==n.type)throw new Error("UnknownError");n.elements.push({type:"Character",parent:n,start:e,end:t,raw:this.source.slice(e,t),value:r})}onBackreference(e,t,r){const n=this._node;if("Alternative"!==n.type)throw new Error("UnknownError");const i={type:"Backreference",parent:n,start:e,end:t,raw:this.source.slice(e,t),ref:r,resolved:V};n.elements.push(i),this._backreferences.push(i)}onCharacterClassEnter(e,t){const r=this._node;if("Alternative"!==r.type)throw new Error("UnknownError");this._node={type:"CharacterClass",parent:r,start:e,end:e,raw:"",negate:t,elements:[]},r.elements.push(this._node)}onCharacterClassLeave(e,t){const r=this._node;if("CharacterClass"!==r.type||"Alternative"!==r.parent.type)throw new Error("UnknownError");r.end=t,r.raw=this.source.slice(e,t),this._node=r.parent}onCharacterClassRange(e,t){const r=this._node;if("CharacterClass"!==r.type)throw new Error("UnknownError");const n=r.elements,i=n.pop(),a=n.pop(),o=n.pop();if(!o||!i||!a||"Character"!==o.type||"Character"!==i.type||"Character"!==a.type||45!==a.value)throw new Error("UnknownError");const s={type:"CharacterClassRange",parent:r,start:e,end:t,raw:this.source.slice(e,t),min:o,max:i};o.parent=s,i.parent=s,n.push(s)}}class K{constructor(e){this._state=new U(e),this._validator=new B(this._state)}parseLiteral(e,t=0,r=e.length){this._state.source=e,this._validator.validateLiteral(e,t,r);const n=this._state.pattern,i=this._state.flags,a={type:"RegExpLiteral",parent:null,start:t,end:r,raw:e,pattern:n,flags:i};return n.parent=a,i.parent=a,a}parseFlags(e,t=0,r=e.length){return this._state.source=e,this._validator.validateFlags(e,t,r),this._state.flags}parsePattern(e,t=0,r=e.length,n=!1){return this._state.source=e,this._validator.validatePattern(e,t,r,n),this._state.pattern}}class z{constructor(e){this._handlers=e}visit(e){switch(e.type){case"Alternative":this.visitAlternative(e);break;case"Assertion":this.visitAssertion(e);break;case"Backreference":this.visitBackreference(e);break;case"CapturingGroup":this.visitCapturingGroup(e);break;case"Character":this.visitCharacter(e);break;case"CharacterClass":this.visitCharacterClass(e);break;case"CharacterClassRange":this.visitCharacterClassRange(e);break;case"CharacterSet":this.visitCharacterSet(e);break;case"Flags":this.visitFlags(e);break;case"Group":this.visitGroup(e);break;case"Pattern":this.visitPattern(e);break;case"Quantifier":this.visitQuantifier(e);break;case"RegExpLiteral":this.visitRegExpLiteral(e);break;default:throw new Error(`Unknown type: ${e.type}`)}}visitAlternative(e){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(e),e.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(e)}visitAssertion(e){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(e),"lookahead"!==e.kind&&"lookbehind"!==e.kind||e.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(e)}visitBackreference(e){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(e),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(e)}visitCapturingGroup(e){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(e)}visitCharacter(e){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(e),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(e)}visitCharacterClass(e){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(e),e.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(e)}visitCharacterClassRange(e){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(e),this.visitCharacter(e.min),this.visitCharacter(e.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(e)}visitCharacterSet(e){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(e),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(e)}visitFlags(e){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(e),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(e)}visitGroup(e){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(e)}visitPattern(e){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(e)}visitQuantifier(e){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(e),this.visit(e.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(e)}visitRegExpLiteral(e){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(e),this.visitPattern(e.pattern),this.visitFlags(e.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(e)}}t.AST=r,t.RegExpParser=K,t.RegExpValidator=B,t.parseRegExpLiteral=function(e,t){return new K(t).parseLiteral(String(e))},t.validateRegExpLiteral=function(e,t){return new B(t).validateLiteral(e)},t.visitRegExpAST=function(e,t){new z(t).visit(e)}},"./node_modules/source-map-support/node_modules/source-map/lib/array-set.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js"),i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Map;function o(){this._array=[],this._set=a?new Map:Object.create(null)}o.fromArray=function(e,t){for(var r=new o,n=0,i=e.length;n=0)return t}else{var r=n.toSetString(e);if(i.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/base64.js");t.encode=function(e){var t,r="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),r+=n.encode(t)}while(i>0);return r},t.decode=function(e,t,r){var i,a,o,s,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=n.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&a),l+=(a&=31)<>1,1==(1&o)?-s:s),r.rest=t}},"./node_modules/source-map-support/node_modules/source-map/lib/base64.js":(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e{function r(e,n,i,a,o,s){var c=Math.floor((n-e)/2)+e,l=o(i,a[c],!0);return 0===l?c:l>0?n-c>1?r(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n1?r(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,a){if(0===n.length)return-1;var o=r(-1,n.length,e,n,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}},"./node_modules/source-map-support/node_modules/source-map/lib/mapping-list.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js");function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,r,i,a,o,s;r=e,i=(t=this._last).generatedLine,a=r.generatedLine,o=t.generatedColumn,s=r.generatedColumn,a>i||a==i&&s>=o||n.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},"./node_modules/source-map-support/node_modules/source-map/lib/quick-sort.js":(e,t)=>{function r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function n(e,t,i,a){if(i{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js"),i=r("./node_modules/source-map-support/node_modules/source-map/lib/binary-search.js"),a=r("./node_modules/source-map-support/node_modules/source-map/lib/array-set.js").ArraySet,o=r("./node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js"),s=r("./node_modules/source-map-support/node_modules/source-map/lib/quick-sort.js").quickSort;function c(e,t){var r=e;return"string"==typeof e&&(r=n.parseSourceMapInput(e)),null!=r.sections?new _(r,t):new l(r,t)}function l(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sources"),s=n.getArg(r,"names",[]),c=n.getArg(r,"sourceRoot",null),l=n.getArg(r,"sourcesContent",null),u=n.getArg(r,"mappings"),_=n.getArg(r,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);c&&(c=n.normalize(c)),o=o.map(String).map(n.normalize).map((function(e){return c&&n.isAbsolute(c)&&n.isAbsolute(e)?n.relative(c,e):e})),this._names=a.fromArray(s.map(String),!0),this._sources=a.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map((function(e){return n.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=t,this.file=_}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function _(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new a,this._names=new a;var s={line:-1,column:0};this._sections=o.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=n.getArg(e,"offset"),i=n.getArg(r,"line"),a=n.getArg(r,"column");if(i=0){var s=this._originalMappings[o];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return a},t.SourceMapConsumer=c,l.prototype=Object.create(c.prototype),l.prototype.consumer=c,l.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=n.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t1&&(r.source=g+a[1],g+=a[1],r.originalLine=p+a[2],p=r.originalLine,r.originalLine+=1,r.originalColumn=f+a[3],f=r.originalColumn,a.length>4&&(r.name=m+a[4],m+=a[4])),D.push(r),"number"==typeof r.originalLine&&x.push(r)}s(D,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=D,s(x,n.compareByOriginalPositions),this.__originalMappings=x},l.prototype._findMapping=function(e,t,r,n,a,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return i.search(e,t,a,o)},l.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var a=n.getArg(i,"source",null);null!==a&&(a=this._sources.at(a),a=n.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var o=n.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:a,line:n.getArg(i,"originalLine",null),column:n.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i,a=e;if(null!=this.sourceRoot&&(a=n.relative(this.sourceRoot,a)),null!=this.sourceRoot&&(i=n.urlParse(this.sourceRoot))){var o=a.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!i.path||"/"==i.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(t)return null;throw new Error('"'+a+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=n.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=l,_.prototype=Object.create(c.prototype),_.prototype.constructor=c,_.prototype._version=3,Object.defineProperty(_.prototype,"sources",{get:function(){for(var e=[],t=0;t{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/base64-vlq.js"),i=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js"),a=r("./node_modules/source-map-support/node_modules/source-map/lib/array-set.js").ArraySet,o=r("./node_modules/source-map-support/node_modules/source-map/lib/mapping-list.js").MappingList;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new o,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,r=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(n){var a=n;null!==t&&(a=i.relative(t,n)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(n);null!=o&&r.setSourceContent(n,o)})),r},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),r=i.getArg(e,"original",null),n=i.getArg(e,"source",null),a=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,a),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:a})},s.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=i.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var o=this._sourceRoot;null!=o&&(n=i.relative(o,n));var s=new a,c=new a;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=i.join(r,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var l=t.source;null==l||s.has(l)||s.add(l);var u=t.name;null==u||c.has(u)||c.add(u)}),this),this._sources=s,this._names=c,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=i.join(r,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,n))}),this)},s.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},s.prototype._serializeMappings=function(){for(var e,t,r,a,o=0,s=1,c=0,l=0,u=0,_=0,d="",p=this._mappings.toArray(),f=0,g=p.length;f0){if(!i.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=n.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=n.encode(a-_),_=a,e+=n.encode(t.originalLine-1-l),l=t.originalLine-1,e+=n.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-u),u=r)),d+=e}return d},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},"./node_modules/source-map-support/node_modules/source-map/lib/source-node.js":(e,t,r)=>{var n=r("./node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator,i=r("./node_modules/source-map-support/node_modules/source-map/lib/util.js"),a=/(\r?\n)/,o="$$$isSourceNode$$$";function s(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[o]=!0,null!=n&&this.add(n)}s.fromStringWithSourceMap=function(e,t,r){var n=new s,o=e.split(a),c=0,l=function(){return e()+(e()||"");function e(){return c=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r{t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(o=c[u])?c.splice(u,1):".."===o?l++:l>0&&(""===o?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function _(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:function(e){return u(e)?"$"+e:e},t.fromSetString=c?l:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=_(e.source,t.source);return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:_(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=_(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:_(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=_(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:_(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}},"./node_modules/source-map-support/node_modules/source-map/source-map.js":(e,t,r)=>{t.SourceMapGenerator=r("./node_modules/source-map-support/node_modules/source-map/lib/source-map-generator.js").SourceMapGenerator,t.SourceMapConsumer=r("./node_modules/source-map-support/node_modules/source-map/lib/source-map-consumer.js").SourceMapConsumer,t.SourceNode=r("./node_modules/source-map-support/node_modules/source-map/lib/source-node.js").SourceNode},"./node_modules/source-map-support/source-map-support.js":(e,t,r)=>{e=r.nmd(e);var n,i=r("./node_modules/source-map-support/node_modules/source-map/source-map.js").SourceMapConsumer,a=r("path");try{(n=r("fs")).existsSync&&n.readFileSync||(n=null)}catch(e){}var o=r("./node_modules/buffer-from/index.js");function s(e,t){return e.require(t)}var c=!1,l=!1,u=!1,_="auto",d={},p={},f=/^data:application\/json[^,]+base64,/,g=[],m=[];function y(){return"browser"===_||"node"!==_&&"undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function h(e){return function(t){for(var r=0;r";var r=this.getLineNumber();if(null!=r){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(this.isToplevel()||s)s?i+="new "+(a||""):a?i+=a:(i+=t,o=!1);else{var c=this.getTypeName();"[object Object]"===c&&(c="null");var l=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,l&&a.indexOf("."+l)!=a.length-l.length-1&&(i+=" [as "+l+"]")):i+=c+"."+(l||"")}return o&&(i+=" ("+t+")"),i}function C(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]})),t.toString=E,t}function T(e,t){if(void 0===t&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var n=e.getLineNumber(),i=e.getColumnNumber()-1,a=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/.test("object"==typeof process&&null!==process?process.version:"")?0:62;1===n&&i>a&&!y()&&!e.isEval()&&(i-=a);var o=D({source:r,line:n,column:i});t.curPosition=o;var s=(e=C(e)).getFunctionName;return e.getFunctionName=function(){return null==t.nextPosition?s():t.nextPosition.name||s()},e.getFileName=function(){return o.source},e.getLineNumber=function(){return o.line},e.getColumnNumber=function(){return o.column+1},e.getScriptNameOrSourceURL=function(){return o.source},e}var c=e.isEval()&&e.getEvalOrigin();return c?(c=S(c),(e=C(e)).getEvalOrigin=function(){return c},e):e}function k(e,t){u&&(d={},p={});for(var r=(e.name||"Error")+": "+(e.message||""),n={nextPosition:null,curPosition:null},i=[],a=t.length-1;a>=0;a--)i.push("\n at "+T(t[a],n)),n.nextPosition=n.curPosition;return n.curPosition=n.nextPosition=null,r+i.reverse().join("")}function A(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],i=+t[2],a=+t[3],o=d[r];if(!o&&n&&n.existsSync(r))try{o=n.readFileSync(r,"utf8")}catch(e){o=""}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[i-1];if(s)return r+":"+i+"\n"+s+"\n"+new Array(a).join(" ")+"^"}}return null}function N(e){var t=A(e),r=function(){if("object"==typeof process&&null!==process)return process.stderr}();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),"object"==typeof process&&null!==process&&"function"==typeof process.exit&&process.exit(1)}m.push((function(e){var t,r=function(e){var t;if(y())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=4===r.readyState?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch(e){}t=v(e);for(var i,a,o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;a=o.exec(t);)i=a;return i?i[1]:null}(e);if(!r)return null;if(f.test(r)){var n=r.slice(r.indexOf(",")+1);t=o(n,"base64").toString(),r=e}else r=b(e,r),t=v(r);return t?{url:r,map:t}:null}));var w=g.slice(0),F=m.slice(0);t.wrapCallSite=T,t.getErrorSource=A,t.mapSourcePosition=D,t.retrieveSourceMap=x,t.install=function(t){if((t=t||{}).environment&&(_=t.environment,-1===["node","browser","auto"].indexOf(_)))throw new Error("environment "+_+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(g.length=0),g.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(m.length=0),m.unshift(t.retrieveSourceMap)),t.hookRequire&&!y()){var r=s(e,"module"),n=r.prototype._compile;n.__sourceMapSupport||(r.prototype._compile=function(e,t){return d[t]=e,p[t]=void 0,n.call(this,e,t)},r.prototype._compile.__sourceMapSupport=!0)}if(u||(u="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),c||(c=!0,Error.prepareStackTrace=k),!l){var i=!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions;try{!1===s(e,"worker_threads").isMainThread&&(i=!1)}catch(e){}i&&"object"==typeof process&&null!==process&&"function"==typeof process.on&&(l=!0,a=process.emit,process.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,r=this.listeners(e).length>0;if(t&&!r)return N(arguments[1])}return a.apply(this,arguments)})}var a},t.resetRetrieveHandlers=function(){g.length=0,m.length=0,g=w.slice(0),m=F.slice(0),x=h(m),v=h(g)}},"./node_modules/supports-color/index.js":(e,t,r)=>{"use strict";const n=r("os"),i=r("./node_modules/has-flag/index.js"),a=process.env;let o;function s(e){const t=function(e){if(!1===o)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==o)return 0;const t=o?1:0;if("win32"===process.platform){const e=n.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in a))||"codeship"===a.CI_NAME?1:t;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:(a.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}i("no-color")||i("no-colors")||i("color=false")?o=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(o=!0),"FORCE_COLOR"in a&&(o=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),e.exports={supportsColor:s,stdout:s(process.stdout),stderr:s(process.stderr)}},"./node_modules/table-layout/index.js":(e,t,r)=>{const n=r("os");e.exports=class{constructor(e,t){let i=process&&(process.stdout.columns||process.stderr.columns)||0;i&&"win32"===n.platform()&&i--;let a={padding:{left:" ",right:" "},maxWidth:i||80,columns:[]};const o=r("./node_modules/deep-extend/lib/deep-extend.js");this.options=o(a,t),this.load(e)}load(e){const t=r("./node_modules/table-layout/lib/rows.js"),n=r("./node_modules/table-layout/lib/columns.js");let i=this.options;return i.ignoreEmptyColumns&&(e=t.removeEmptyColumns(e)),this.columns=n.getColumns(e),this.rows=new t(e,this.columns),this.columns.maxWidth=i.maxWidth,this.columns.list.forEach((e=>{i.padding&&(e.padding=i.padding),i.noWrap&&(e.noWrap=i.noWrap),i.break&&(e.break=i.break,e.contentWrappable=!0)})),i.columns.forEach((e=>{let t=this.columns.get(e.name);t&&(e.padding&&(t.padding.left=e.padding.left,t.padding.right=e.padding.right),e.width&&(t.width=e.width),e.maxWidth&&(t.maxWidth=e.maxWidth),e.minWidth&&(t.minWidth=e.minWidth),e.noWrap&&(t.noWrap=e.noWrap),e.break&&(t.break=e.break,t.contentWrappable=!0))})),this.columns.autoSize(),this}getWrapped(){const e=r("./node_modules/wordwrapjs/index.js");return this.columns.autoSize(),this.rows.list.map((t=>{let r=[];return t.forEach(((t,n)=>{n.noWrap?r.push(t.value.split(/\r\n?|\n/)):r.push(e.lines(t.value,{width:n.wrappedContentWidth,break:n.break,noTrim:this.options.noTrim}))})),r}))}getLines(){var e=this.getWrapped(),t=[];return e.forEach((e=>{let r=(n=e.map((e=>e.length)),Math.max.apply(null,n));var n;for(let n=0;n{r.push(e[n]||"")})),t.push(r)}})),t}renderLines(){return this.getLines().map((e=>e.reduce(((e,t,n)=>{let i=this.columns.list[n];return e+function(e,t,n){const i=r("./node_modules/table-layout/lib/ansi.js");var a=e.length-i.remove(e).length;return e=e||"",(t.left||"")+e.padEnd(n-t.length()+a)+(t.right||"")}(t,i.padding,i.generatedWidth)}),"")))}toString(){return this.renderLines().join(n.EOL)+n.EOL}}},"./node_modules/table-layout/lib/ansi.js":(e,t)=>{const r=/\u001b.*?m/g;t.remove=function(e){return e.replace(r,"")},t.has=function(e){return r.test(e)}},"./node_modules/table-layout/lib/cell.js":(e,t,r)=>{r("./node_modules/table-layout/node_modules/typical/dist/index.js");const n=new WeakMap,i=new WeakMap;e.exports=class{constructor(e,t){this.value=e,i.set(this,t)}set value(e){n.set(this,e)}get value(){let e=n.get(this);return"function"==typeof e&&(e=e.call(i.get(this))),e=void 0===e?"":String(e),e}}},"./node_modules/table-layout/lib/column.js":(e,t,r)=>{const n=r("./node_modules/table-layout/node_modules/typical/dist/index.js"),i=r("./node_modules/table-layout/lib/padding.js"),a=new WeakMap;e.exports=class{constructor(e){n.isDefined(e.name)&&(this.name=e.name),n.isDefined(e.width)&&(this.width=e.width),n.isDefined(e.maxWidth)&&(this.maxWidth=e.maxWidth),n.isDefined(e.minWidth)&&(this.minWidth=e.minWidth),n.isDefined(e.noWrap)&&(this.noWrap=e.noWrap),n.isDefined(e.break)&&(this.break=e.break),n.isDefined(e.contentWrappable)&&(this.contentWrappable=e.contentWrappable),n.isDefined(e.contentWidth)&&(this.contentWidth=e.contentWidth),n.isDefined(e.minContentWidth)&&(this.minContentWidth=e.minContentWidth),this.padding=e.padding||{left:" ",right:" "},this.generatedWidth=null}set padding(e){a.set(this,new i(e))}get padding(){return a.get(this)}get wrappedContentWidth(){return Math.max(this.generatedWidth-this.padding.length(),0)}isResizable(){return!this.isFixed()}isFixed(){return n.isDefined(this.width)||this.noWrap||!this.contentWrappable}generateWidth(){this.generatedWidth=this.width||this.contentWidth+this.padding.length()}generateMinWidth(){this.minWidth=this.minContentWidth+this.padding.length()}}},"./node_modules/table-layout/lib/columns.js":(e,t,r)=>{const n=r("./node_modules/table-layout/node_modules/typical/dist/index.js"),i=r("./node_modules/table-layout/node_modules/array-back/dist/index.js"),a=r("./node_modules/table-layout/lib/column.js"),o=r("./node_modules/wordwrapjs/index.js"),s=r("./node_modules/table-layout/lib/cell.js"),c=r("./node_modules/table-layout/lib/ansi.js"),l=new WeakMap;class u{constructor(e){this.list=[],i(e).forEach(this.add.bind(this))}totalWidth(){return this.list.length?this.list.map((e=>e.generatedWidth)).reduce(((e,t)=>e+t)):0}totalFixedWidth(){return this.getFixed().map((e=>e.generatedWidth)).reduce(((e,t)=>e+t),0)}get(e){return this.list.find((t=>t.name===e))}getResizable(){return this.list.filter((e=>e.isResizable()))}getFixed(){return this.list.filter((e=>e.isFixed()))}add(e){const t=e instanceof a?e:new a(e);return this.list.push(t),t}set maxWidth(e){l.set(this,e)}autoSize(){const e=l.get(this);this.list.forEach((e=>{e.generateWidth(),e.generateMinWidth()})),this.list.forEach((e=>{n.isDefined(e.maxWidth)&&e.generatedWidth>e.maxWidth&&(e.generatedWidth=e.maxWidth),n.isDefined(e.minWidth)&&e.generatedWidth0){let e=this.getResizable();e.forEach((t=>{t.generatedWidth=Math.floor(r/e.length)}));const t=this.list.filter((e=>e.generatedWidth>e.contentWidth)),n=this.list.filter((e=>e.generatedWidth{const t=e.generatedWidth;e.generateWidth(),i+=t-e.generatedWidth})),n.forEach((e=>{e.generatedWidth+=Math.floor(i/n.length)}))}return this}static getColumns(e){var t=new u;return i(e).forEach((e=>{for(let n in e){let i=t.get(n);i||(i=t.add({name:n,contentWidth:0,minContentWidth:0}));let a=new s(e[n],i).value;c.has(a)&&(a=c.remove(a)),a.length>i.contentWidth&&(i.contentWidth=a.length);let l=(r=a,o.getChunks(r).reduce(((e,t)=>Math.max(t.length,e)),0));l>i.minContentWidth&&(i.minContentWidth=l),i.contentWrappable||(i.contentWrappable=o.isWrappable(a))}var r})),t}}e.exports=u},"./node_modules/table-layout/lib/padding.js":e=>{e.exports=class{constructor(e){this.left=e.left,this.right=e.right}length(){return this.left.length+this.right.length}}},"./node_modules/table-layout/lib/rows.js":(e,t,r)=>{const n=r("./node_modules/table-layout/node_modules/array-back/dist/index.js"),i=r("./node_modules/table-layout/lib/cell.js"),a=r("./node_modules/table-layout/node_modules/typical/dist/index.js");e.exports=class{constructor(e,t){this.list=[],this.load(e,t)}load(e,t){n(e).forEach((e=>{this.list.push(new Map(function(e,t){return t.list.map((t=>[t,new i(e[t.name],t)]))}(e,t)))}))}static removeEmptyColumns(e){const t=e.reduce(((e,t)=>(Object.keys(t).forEach((t=>{-1===e.indexOf(t)&&e.push(t)})),e)),[]).filter((t=>!e.some((e=>{const r=e[t];return a.isDefined(r)&&"string"!=typeof r||"string"==typeof r&&/\S+/.test(r)}))));return e.map((e=>(t.forEach((t=>delete e[t])),e)))}}},"./node_modules/table-layout/node_modules/array-back/dist/index.js":function(e){e.exports=function(){"use strict";return function(e){return Array.isArray(e)?e:void 0===e?[]:function(e){return function(e){return"object"==typeof e&&null!==e}(e)&&"number"==typeof e.length}(e)||e instanceof Set?Array.from(e):[e]}}()},"./node_modules/table-layout/node_modules/typical/dist/index.js":function(e,t){!function(e){"use strict";function t(e){return!isNaN(parseFloat(e))&&isFinite(e)}function r(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function n(e){return i(e)&&"number"==typeof e.length}function i(e){return"object"==typeof e&&null!==e}function a(e){return void 0!==e}function o(e){return!a(e)}function s(e){return null===e}function c(e){return a(e)&&!s(e)&&!Number.isNaN(e)}function l(e){return"function"==typeof e&&/^class /.test(Function.prototype.toString.call(e))}function u(e){if(null===e)return!0;switch(typeof e){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}}function _(e){if(e){const t=a(Promise)&&e instanceof Promise,r=e.then&&"function"==typeof e.then;return!(!t&&!r)}return!1}function d(e){return!(null===e||!a(e)||"function"!=typeof e[Symbol.iterator]&&"function"!=typeof e[Symbol.asyncIterator])}function p(e){return"string"==typeof e}function f(e){return"function"==typeof e}var g={isNumber:t,isPlainObject:r,isArrayLike:n,isObject:i,isDefined:a,isUndefined:o,isNull:s,isDefinedValue:c,isClass:l,isPrimitive:u,isPromise:_,isIterable:d,isString:p,isFunction:f};e.default=g,e.isArrayLike=n,e.isClass=l,e.isDefined=a,e.isDefinedValue=c,e.isFunction=f,e.isIterable=d,e.isNull=s,e.isNumber=t,e.isObject=i,e.isPlainObject=r,e.isPrimitive=u,e.isPromise=_,e.isString=p,e.isUndefined=o,Object.defineProperty(e,"__esModule",{value:!0})}(t)},"./src/addVariable2Scope.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.addVariableToScope=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/util.ts"),c=r("./src/cmdOptions.ts"),l=a(r("./src/jshelpers.js")),u=r("./src/scope.ts"),_=r("./src/syntaxCheckHelper.ts"),d=r("./src/typeRecorder.ts"),p=r("./src/variable.ts");function f(e,t,r){r?function(e,t){if(t){let r=d.TypeRecorder.getInstance().tryGetTypeIndex(o.getOriginalNode(e));t.setTypeIndex(r)}}(e,t):function(e,t){if(t){let r=d.TypeRecorder.getInstance().tryGetVariable2Type(o.getOriginalNode(e));t.setTypeIndex(r)}}(e,t)}function g(e,t){let r="";e.elements.forEach((e=>{o.isOmittedExpression(e)||(o.isIdentifier(e.name)?(r=l.getTextOfIdentifierOrLiteral(e.name),t.add(r,p.VarDeclarationKind.VAR)):(0,s.isBindingPattern)(e.name)&&g(e.name,t))}))}t.addVariableToScope=function(e,t){let r=e.getScopeMap(),n=e.getHoistMap();r.forEach(((r,i)=>{let a=[];r instanceof u.VariableScope&&(function(e,t,r){if(t.addParameter("4funcObj",p.VarDeclarationKind.CONST,-1),e.kind==o.SyntaxKind.ArrowFunction?(t.addParameter("0newTarget",p.VarDeclarationKind.CONST,-1),t.addParameter("0this",p.VarDeclarationKind.CONST,0)):(t.addParameter("4newTarget",p.VarDeclarationKind.CONST,-1),t.addParameter("this",p.VarDeclarationKind.CONST,0)),e.kind!=o.SyntaxKind.SourceFile&&function(e,t,r){let n=new Array;for(let i=0;i{let n;if(e instanceof u.VarDecl)n=r.add(e.name,p.VarDeclarationKind.VAR);else{if(!(e instanceof u.FuncDecl))throw new Error("Wrong type of declaration to be hoisted");n=r.add(e.name,p.VarDeclarationKind.FUNCTION)}t&&f(e.node,n,e instanceof u.FuncDecl)})));let d=r.getDecls(),m=r.getNearestVariableScope();a=n.get(m);for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AssemblyDumper=t.IntrinsicInfo=void 0;const n=r("./src/irnodes.ts"),i=r("./src/statement/tryStatement.ts"),a=r("./src/base/util.ts");t.IntrinsicInfo=class{constructor(e,t,r){this.intrinsicName=e,this.argsNum=t,this.returnType=r}};class o{constructor(e){this.labelPrefix="LABEL_",this.pg=e,this.labels=new Map,this.labelId=0,this.output=""}static writeLanguageTag(e){e.str+=".language ECMAScript\n",e.str+="\n"}writeFunctionHeader(){let e=this.pg.getParametersCount();this.output+=".function any "+this.pg.internalName+"(";for(let t=0;t{let t=e.getCatchBeginLabel();e.getLabelPairs().forEach((e=>{this.output+=".catchall "+this.getLabelName(e.getBeginLabel())+", "+this.getLabelName(e.getEndLabel())+", "+this.getLabelName(t)+"\n"}))})))}getLabelName(e){let t;return this.labels.has(e.id)?t=this.labels.get(e.id):(t=this.labelPrefix+this.labelId++,this.labels.set(e.id,t)),t}writeLabel(e){let t=this.getLabelName(e);this.output+=t+":\n"}dump(){this.writeFunctionHeader(),this.writeFunctionBody(),this.writeFunctionCatchTable(),this.writeFunctionTail(),console.log(this.output)}static dumpHeader(){let e={str:""};o.writeLanguageTag(e),console.log(e.str)}}t.AssemblyDumper=o,o.intrinsicRec=new Map},"./src/astutils.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getVarDeclarationKind=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/variable.ts");t.getVarDeclarationKind=function(e){if(e.parent.kind==o.SyntaxKind.VariableDeclarationList){let t=e.parent;return 0!=(t.flags&o.NodeFlags.Let)?s.VarDeclarationKind.LET:0!=(t.flags&o.NodeFlags.Const)?s.VarDeclarationKind.CONST:s.VarDeclarationKind.VAR}if(e.parent.kind==o.SyntaxKind.CatchClause)return s.VarDeclarationKind.LET;throw new Error("VariableDeclaration inside "+o.SyntaxKind[e.parent]+" is not implemented")}},"./src/base/bcGenUtil.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwObjectNonCoercible=t.createObjectWithExcludedKeys=t.defineClassWithBuffer=t.storeArraySpread=t.createArrayWithBuffer=t.createEmptyArray=t.defineGetterSetterByValue=t.copyDataProperties=t.setObjectWithProto=t.createObjectWithBuffer=t.createObjectHavingMethod=t.createEmptyObject=t.returnUndefined=t.getNextPropName=t.getPropIterator=t.newObject=t.call=t.throwIfSuperNotCorrectCall=t.storeOwnByValue=t.storeOwnByIndex=t.storeOwnByName=t.storeObjByValue=t.loadObjByValue=t.storeObjByIndex=t.loadObjByIndex=t.storeObjByName=t.loadObjByName=t.storeGlobalVar=t.loadGlobalVar=t.tryStoreGlobalByName=t.tryLoadGlobalByName=t.storeLexicalVar=t.loadLexicalVar=t.popLexicalEnv=t.loadLexicalEnv=t.newLexicalEnv=t.throwDeleteSuperProperty=t.throwThrowNotExists=t.throwUndefinedIfHole=t.throwConstAssignment=t.throwException=t.creatDebugger=t.jumpTarget=t.moveVreg=t.deleteObjProperty=t.storeAccumulator=t.loadAccumulator=t.loadAccumulatorString=t.loadAccumulatorFloat=t.loadAccumulatorInt=void 0,t.loadAccumulatorBigInt=t.stClassToGlobalRecord=t.stConstToGlobalRecord=t.stLetToGlobalRecord=t.createRegExpWithLiteral=t.isFalse=t.isTrue=t.defineMethod=t.defineNCFunc=t.defineGeneratorFunc=t.defineAsyncFunc=t.defineFunc=t.loadHomeObject=t.copyModuleIntoCurrentModule=t.storeModuleVariable=t.loadModuleVarByName=t.importModule=t.ldSuperByValue=t.stSuperByValue=t.stSuperByName=t.ldSuperByName=t.superCallSpread=t.superCall=t.closeIterator=t.getIteratorNext=t.getIterator=t.throwIfNotObject=void 0;const n=r("./src/irnodes.ts");t.loadAccumulatorInt=function(e){return new n.LdaiDyn(new n.Imm(e))},t.loadAccumulatorFloat=function(e){return new n.FldaiDyn(new n.Imm(e))},t.loadAccumulatorString=function(e){return new n.LdaStr(e)},t.loadAccumulator=function(e){return new n.LdaDyn(e)},t.storeAccumulator=function(e){return new n.StaDyn(e)},t.deleteObjProperty=function(e,t){return new n.EcmaDelobjprop(e,t)},t.moveVreg=function(e,t){return new n.MovDyn(e,t)},t.jumpTarget=function(e){return new n.Jmp(e)},t.creatDebugger=function(){return new n.EcmaDebugger},t.throwException=function(){return new n.EcmaThrowdyn},t.throwConstAssignment=function(e){return new n.EcmaThrowconstassignment(e)},t.throwUndefinedIfHole=function(e,t){return new n.EcmaThrowundefinedifhole(e,t)},t.throwThrowNotExists=function(){return new n.EcmaThrowthrownotexists},t.throwDeleteSuperProperty=function(){return new n.EcmaThrowdeletesuperproperty},t.newLexicalEnv=function(e,t){return null==t?new n.EcmaNewlexenvdyn(new n.Imm(e)):new n.EcmaNewlexenvwithnamedyn(new n.Imm(e),new n.Imm(t))},t.loadLexicalEnv=function(){return new n.EcmaLdlexenvdyn},t.popLexicalEnv=function(){return new n.EcmaPoplexenvdyn},t.loadLexicalVar=function(e,t){return new n.EcmaLdlexvardyn(new n.Imm(e),new n.Imm(t))},t.storeLexicalVar=function(e,t,r){return new n.EcmaStlexvardyn(new n.Imm(e),new n.Imm(t),r)},t.tryLoadGlobalByName=function(e){return new n.EcmaTryldglobalbyname(e)},t.tryStoreGlobalByName=function(e){return new n.EcmaTrystglobalbyname(e)},t.loadGlobalVar=function(e){return new n.EcmaLdglobalvar(e)},t.storeGlobalVar=function(e){return new n.EcmaStglobalvar(e)},t.loadObjByName=function(e,t){return new n.EcmaLdobjbyname(t,e)},t.storeObjByName=function(e,t){return new n.EcmaStobjbyname(t,e)},t.loadObjByIndex=function(e,t){return new n.EcmaLdobjbyindex(e,new n.Imm(t))},t.storeObjByIndex=function(e,t){return new n.EcmaStobjbyindex(e,new n.Imm(t))},t.loadObjByValue=function(e,t){return new n.EcmaLdobjbyvalue(e,t)},t.storeObjByValue=function(e,t){return new n.EcmaStobjbyvalue(e,t)},t.storeOwnByName=function(e,t,r){return r?new n.EcmaStownbynamewithnameset(t,e):new n.EcmaStownbyname(t,e)},t.storeOwnByIndex=function(e,t){return new n.EcmaStownbyindex(e,new n.Imm(t))},t.storeOwnByValue=function(e,t,r){return r?new n.EcmaStownbyvaluewithnameset(e,t):new n.EcmaStownbyvalue(e,t)},t.throwIfSuperNotCorrectCall=function(e){return new n.EcmaThrowifsupernotcorrectcall(new n.Imm(e))},t.call=function(e,t){let r,i=e.length;if(t)r=new n.EcmaCallithisrangedyn(new n.Imm(i-1),e);else switch(i){case 1:r=new n.EcmaCallarg0dyn(e[0]);break;case 2:r=new n.EcmaCallarg1dyn(e[0],e[1]);break;case 3:r=new n.EcmaCallargs2dyn(e[0],e[1],e[2]);break;case 4:r=new n.EcmaCallargs3dyn(e[0],e[1],e[2],e[3]);break;default:r=new n.EcmaCallirangedyn(new n.Imm(i-1),e)}return r},t.newObject=function(e){return new n.EcmaNewobjdynrange(new n.Imm(e.length),e)},t.getPropIterator=function(){return new n.EcmaGetpropiterator},t.getNextPropName=function(e){return new n.EcmaGetnextpropname(e)},t.returnUndefined=function(){return new n.EcmaReturnundefined},t.createEmptyObject=function(){return new n.EcmaCreateemptyobject},t.createObjectHavingMethod=function(e){return new n.EcmaCreateobjecthavingmethod(new n.Imm(e))},t.createObjectWithBuffer=function(e){return new n.EcmaCreateobjectwithbuffer(new n.Imm(e))},t.setObjectWithProto=function(e,t){return new n.EcmaSetobjectwithproto(e,t)},t.copyDataProperties=function(e,t){return new n.EcmaCopydataproperties(e,t)},t.defineGetterSetterByValue=function(e,t,r,i){return new n.EcmaDefinegettersetterbyvalue(e,t,r,i)},t.createEmptyArray=function(){return new n.EcmaCreateemptyarray},t.createArrayWithBuffer=function(e){return new n.EcmaCreatearraywithbuffer(new n.Imm(e))},t.storeArraySpread=function(e,t){return new n.EcmaStarrayspread(e,t)},t.defineClassWithBuffer=function(e,t,r,i,a){return new n.EcmaDefineclasswithbuffer(e,new n.Imm(t),new n.Imm(r),i,a)},t.createObjectWithExcludedKeys=function(e,t){return new n.EcmaCreateobjectwithexcludedkeys(new n.Imm(t.length-1),e,t)},t.throwObjectNonCoercible=function(){return new n.EcmaThrowpatternnoncoercible},t.throwIfNotObject=function(e){return new n.EcmaThrowifnotobject(e)},t.getIterator=function(){return new n.EcmaGetiterator},t.getIteratorNext=function(e,t){return new n.EcmaGetiteratornext(e,t)},t.closeIterator=function(e){return new n.EcmaCloseiterator(e)},t.superCall=function(e,t){return new n.EcmaSupercall(new n.Imm(e),t)},t.superCallSpread=function(e){return new n.EcmaSupercallspread(e)},t.ldSuperByName=function(e,t){return new n.EcmaLdsuperbyname(t,e)},t.stSuperByName=function(e,t){return new n.EcmaStsuperbyname(t,e)},t.stSuperByValue=function(e,t){return new n.EcmaStsuperbyvalue(e,t)},t.ldSuperByValue=function(e,t){return new n.EcmaLdsuperbyvalue(e,t)},t.importModule=function(e){return new n.EcmaImportmodule(e)},t.loadModuleVarByName=function(e,t){return new n.EcmaLdmodvarbyname(e,t)},t.storeModuleVariable=function(e){return new n.EcmaStmodulevar(e)},t.copyModuleIntoCurrentModule=function(e){return new n.EcmaCopymodule(e)},t.loadHomeObject=function(){return new n.EcmaLdhomeobject},t.defineFunc=function(e,t,r){return new n.EcmaDefinefuncdyn(e,new n.Imm(r),t)},t.defineAsyncFunc=function(e,t,r){return new n.EcmaDefineasyncfunc(e,new n.Imm(r),t)},t.defineGeneratorFunc=function(e,t,r){return new n.EcmaDefinegeneratorfunc(e,new n.Imm(r),t)},t.defineNCFunc=function(e,t,r){return new n.EcmaDefinencfuncdyn(e,new n.Imm(r),t)},t.defineMethod=function(e,t,r){return new n.EcmaDefinemethod(e,new n.Imm(r),t)},t.isTrue=function(){return new n.EcmaIstrue},t.isFalse=function(){return new n.EcmaIsfalse},t.createRegExpWithLiteral=function(e,t){return new n.EcmaCreateregexpwithliteral(e,new n.Imm(t))},t.stLetToGlobalRecord=function(e){return new n.EcmaStlettoglobalrecord(e)},t.stConstToGlobalRecord=function(e){return new n.EcmaStconsttoglobalrecord(e)},t.stClassToGlobalRecord=function(e){return new n.EcmaStclasstoglobalrecord(e)},t.loadAccumulatorBigInt=function(e){return new n.EcmaLdbigint(e)}},"./src/base/builtIn.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expandFunc=t.expandFalse=t.expandTrue=t.expandNull=t.expandSymbol=t.expandUndefined=t.expandGlobal=t.expandInfinity=t.expandNaN=t.expandHole=void 0;const n=r("./src/irnodes.ts"),i=r("./src/base/vregisterCache.ts");t.expandHole=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.HOLE);return[new n.EcmaLdhole,new n.StaDyn(t)]},t.expandNaN=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.NaN);return[new n.EcmaLdnan,new n.StaDyn(t)]},t.expandInfinity=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.Infinity);return[new n.EcmaLdinfinity,new n.StaDyn(t)]},t.expandGlobal=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.Global);return[new n.EcmaLdglobal,new n.StaDyn(t)]},t.expandUndefined=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.undefined);return[new n.EcmaLdundefined,new n.StaDyn(t)]},t.expandSymbol=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.Symbol);return[new n.EcmaLdsymbol,new n.StaDyn(t)]},t.expandNull=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.Null);return[new n.EcmaLdnull,new n.StaDyn(t)]},t.expandTrue=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.True);return[new n.EcmaLdtrue,new n.StaDyn(t)]},t.expandFalse=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.False);return[new n.EcmaLdfalse,new n.StaDyn(t)]},t.expandFunc=function(e){let t=(0,i.getVregisterCache)(e,i.CacheList.FUNC);return[new n.EcmaLdfunction,new n.StaDyn(t)]}},"./src/base/iterator.ts":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Iterator=void 0,t.Iterator=class{constructor(e,t,r,n,i){this.iterRecord=e,this.iterDone=t,this.iterValue=r,this.pandaGen=n,this.node=i}getIterator(){let e=this.pandaGen,t=this.iterRecord.iterator;e.getIterator(this.node),e.storeAccumulator(this.node,t),e.loadObjProperty(this.node,t,"next"),e.storeAccumulator(this.node,this.iterRecord.nextMethod)}callNext(e){this.pandaGen.getIteratorNext(this.node,this.iterRecord.iterator,this.iterRecord.nextMethod),this.pandaGen.storeAccumulator(this.node,e)}iteratorComplete(e){this.pandaGen.loadObjProperty(this.node,e,"done"),this.pandaGen.storeAccumulator(this.node,this.iterDone)}iteratorValue(e){this.pandaGen.loadObjProperty(this.node,e,"value"),this.pandaGen.storeAccumulator(this.node,this.iterValue)}close(){this.pandaGen.closeIterator(this.node,this.iterRecord.iterator)}getCurrentValue(){return this.iterValue}getCurrrentDone(){return this.iterDone}}},"./src/base/lexEnv.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expandLexEnv=void 0;const n=r("./src/cmdOptions.ts"),i=r("./src/base/bcGenUtil.ts"),a=r("./src/base/vregisterCache.ts");t.expandLexEnv=function(e){let t,r=e.getScope().getNearestVariableScope();if(!r)throw new Error("pandagen must have one variable scope");return t=r.need2CreateLexEnv()?function(e,t){let r,o=t.getNumLexEnv(),s=[],c=t.getLexVarInfo();return n.CmdOptions.isDebugMode()&&(r=e.appendScopeInfo(c)),s.push((0,i.newLexicalEnv)(o,r),(0,i.storeAccumulator)((0,a.getVregisterCache)(e,a.CacheList.LexEnv))),s}(e,r):function(e){let t=[];return t.push((0,i.loadLexicalEnv)(),(0,i.storeAccumulator)((0,a.getVregisterCache)(e,a.CacheList.LexEnv))),t}(e),t}},"./src/base/literal.ts":(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralBuffer=t.Literal=t.LiteralTag=void 0,(r=t.LiteralTag||(t.LiteralTag={}))[r.BOOLEAN=1]="BOOLEAN",r[r.INTEGER=2]="INTEGER",r[r.DOUBLE=4]="DOUBLE",r[r.STRING=5]="STRING",r[r.METHOD=6]="METHOD",r[r.GENERATOR=7]="GENERATOR",r[r.ACCESSOR=8]="ACCESSOR",r[r.METHODAFFILIATE=9]="METHODAFFILIATE",r[r.NULLVALUE=255]="NULLVALUE",t.Literal=class{constructor(e,t){this.t=e,this.v=t}getTag(){return this.t}getValue(){return this.v}},t.LiteralBuffer=class{constructor(){this.lb=[]}addLiterals(...e){this.lb.push(...e)}getLiterals(){return this.lb}isEmpty(){return 0==this.lb.length}getLiteral(e){if(!(e>=this.lb.length||this.lb.length<=0))return this.lb[e]}}},"./src/base/lreference.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LReference=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/compilerUtils.ts"),c=r("./src/diagnostic.ts"),l=r("./src/expression/memberAccessExpression.ts"),u=r("./src/expression/parenthesizedExpression.ts"),_=r("./src/irnodes.ts"),d=a(r("./src/jshelpers.js")),p=r("./src/variable.ts"),f=r("./src/base/util.ts");var g;!function(e){e[e.MemberAccess=0]="MemberAccess",e[e.LocalOrGlobal=1]="LocalOrGlobal",e[e.Destructuring=2]="Destructuring"}(g||(g={}));class m{constructor(e,t,r,n,i){this.obj=void 0,this.prop=void 0,this.propLiteral=void 0,this.node=e,this.compiler=t,this.isDeclaration=r,this.refKind=n,n==g.Destructuring?this.destructuringTarget=e:n==g.LocalOrGlobal?this.variable=i:n==g.MemberAccess&&(this.obj=t.getPandaGen().getTemp(),this.prop=t.getPandaGen().getTemp())}getValue(){let e=this.compiler.getPandaGen();switch(this.refKind){case g.MemberAccess:let t;return t=void 0===this.propLiteral?this.prop:this.propLiteral,void e.loadObjProperty(this.node,this.obj,t);case g.LocalOrGlobal:return void this.compiler.loadTarget(this.node,this.variable);case g.Destructuring:throw new Error("Destructuring target can't be loaded");default:throw new Error("Invalid LReference kind to GetValue")}}setValue(){let e=this.compiler.getPandaGen();switch(this.refKind){case g.MemberAccess:{let t;if(t=void 0===this.propLiteral?this.prop:this.propLiteral,d.isSuperProperty(this.node)){let r=e.getTemp();this.compiler.getThis(this.node,r),e.storeSuperProperty(this.node,r,t),e.freeTemps(r)}else e.storeObjProperty(this.node,this.obj,t);return void e.freeTemps(this.obj,this.prop)}case g.LocalOrGlobal:return void this.compiler.storeTarget(this.node,this.variable,this.isDeclaration);case g.Destructuring:return void(0,s.compileDestructuring)(this.destructuringTarget,e,this.compiler);default:throw new Error("Invalid LReference kind to SetValue")}}setObjectAndProperty(e,t,r){d.isSuperProperty(this.node)||e.moveVreg(this.node,this.obj,t),r instanceof _.VReg?e.moveVreg(this.node,this.prop,r):this.propLiteral=r}static generateLReference(e,t,r){let n=e.getPandaGen(),i=t;if(o.isParenthesizedExpression(t)&&(i=(0,u.findInnerExprOfParenthesis)(t)),o.isIdentifier(i)){let t=d.getTextOfIdentifierOrLiteral(i),n=e.getCurrentScope().find(t);return n.v||(n.v=e.getCurrentScope().add(t,p.VarDeclarationKind.NONE)),new m(i,e,r,g.LocalOrGlobal,n)}if(o.isPropertyAccessExpression(i)||o.isElementAccessExpression(i)){let t=new m(i,e,!1,g.MemberAccess,void 0),r=n.getTemp(),a=n.getTemp(),{obj:o,prop:s}=(0,l.getObjAndProp)(i,r,a,e);return t.setObjectAndProperty(n,o,s),n.freeTemps(r,a),t}if(o.isVariableDeclarationList(i)){let t=i.declarations;if(1!=t.length)throw new Error("Malformed variable declaration");return m.generateLReference(e,t[0].name,!0)}if((0,f.isBindingOrAssignmentPattern)(i))return new m(i,e,r,g.Destructuring,void 0);throw new c.DiagnosticError(t,c.DiagnosticCode.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)}}t.LReference=m},"./src/base/properties.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getPropName=t.propertyKeyAsString=t.isConstantExpr=t.generatePropertyFromExpr=t.Property=t.PropertyKind=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/expression/memberAccessExpression.ts"),c=a(r("./src/jshelpers.js"));var l;!function(e){e[e.Variable=0]="Variable",e[e.Constant=1]="Constant",e[e.Computed=2]="Computed",e[e.Prototype=3]="Prototype",e[e.Accessor=4]="Accessor",e[e.Spread=5]="Spread"}(l=t.PropertyKind||(t.PropertyKind={}));class u{constructor(e,t){this.compiled=!1,this.redeclared=!1,this.propKind=e,void 0!==t&&(this.name=t)}setCompiled(){this.compiled=!0}setRedeclared(){this.redeclared=!0}isCompiled(){return this.compiled}isRedeclared(){return this.redeclared}getName(){if(void 0===this.name)throw new Error("this property doesn't have a name");return this.name}getKind(){return this.propKind}getValue(){if(this.propKind==l.Accessor)throw new Error("Accessor doesn't have valueNode");return this.valueNode}getGetter(){return this.getterNode}getSetter(){return this.setterNode}setValue(e){this.valueNode=e,this.getterNode=void 0,this.setterNode=void 0}setGetter(e){this.propKind!=l.Accessor&&(this.valueNode=void 0,this.setterNode=void 0,this.propKind=l.Accessor),this.getterNode=e}setSetter(e){this.propKind!=l.Accessor&&(this.valueNode=void 0,this.getterNode=void 0,this.propKind=l.Accessor),this.setterNode=e}setKind(e){this.propKind=e}}function _(e,t,r,n,i){if(r==l.Computed||r==l.Spread){let i=new u(r,e);i.setValue(t),n.push(i)}else{let a=new u(r,e),s=p(e);if(i.has(s)){let e=n[i.get(s)];if(!(e.getKind()!=l.Accessor&&e.getKind()!=l.Constant||r!=l.Accessor&&r!=l.Constant))return void(r==l.Accessor?o.isGetAccessorDeclaration(t)?e.setGetter(t):o.isSetAccessorDeclaration(t)&&e.setSetter(t):(e.setValue(t),e.setKind(l.Constant)));a.setRedeclared()}i.set(s,n.length),r==l.Accessor?o.isGetAccessorDeclaration(t)?a.setGetter(t):o.isSetAccessorDeclaration(t)&&a.setSetter(t):a.setValue(t),n.push(a)}}function d(e){switch(e.kind){case o.SyntaxKind.StringLiteral:case o.SyntaxKind.NumericLiteral:case o.SyntaxKind.NullKeyword:case o.SyntaxKind.TrueKeyword:case o.SyntaxKind.FalseKeyword:return!0;default:return!1}}function p(e){return"number"==typeof e?e.toString():e}function f(e){if(o.isComputedPropertyName(e))return e;let t=c.getTextOfIdentifierOrLiteral(e);if(e.kind==o.SyntaxKind.NumericLiteral)t=Number.parseFloat(t),(0,s.isValidIndex)(t)||(t=t.toString());else if(e.kind==o.SyntaxKind.StringLiteral){let e=Number(t);isNaN(Number.parseFloat(t))||isNaN(e)||!(0,s.isValidIndex)(e)||String(e)!=t||(t=e)}return t}t.Property=u,t.generatePropertyFromExpr=function(e){let t=!1,r=[],n=new Map;return e.properties.forEach((e=>{switch(e.kind){case o.SyntaxKind.PropertyAssignment:{if(e.name.kind==o.SyntaxKind.ComputedPropertyName){_(e.name,e,l.Computed,r,n);break}let i=f(e.name);if("__proto__"==i){if(t)throw new Error("__proto__ was set multiple times in the object definition.");_(i,e.initializer,l.Prototype,r,n),t=!0;break}d(e.initializer)?_(i,e.initializer,l.Constant,r,n):_(i,e.initializer,l.Variable,r,n);break}case o.SyntaxKind.ShorthandPropertyAssignment:_(c.getTextOfIdentifierOrLiteral(e.name),e.name,l.Variable,r,n);break;case o.SyntaxKind.SpreadAssignment:_(void 0,e.expression,l.Spread,r,n);break;case o.SyntaxKind.MethodDeclaration:{let t=f(e.name);_(t,e,"string"==typeof t||"number"==typeof t?l.Variable:l.Computed,r,n);break}case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:{let t=f(e.name);_(t,e,"string"==typeof t||"number"==typeof t?l.Accessor:l.Computed,r,n);break}default:throw new Error("Unreachable Kind")}})),r},t.isConstantExpr=d,t.propertyKeyAsString=p,t.getPropName=f},"./src/base/typeSystem.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InterfaceType=t.ObjectType=t.ArrayType=t.UnionType=t.ExternalType=t.FunctionType=t.ClassInstType=t.ClassType=t.TypeSummary=t.PlaceHolderType=t.BaseType=t.AccessFlag=t.ModifierReadonly=t.ModifierStatic=t.ModifierAbstract=t.L2Type=t.PrimitiveType=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/pandagen.ts"),l=r("./src/typeChecker.ts"),u=r("./src/typeRecorder.ts"),_=r("./src/base/literal.ts");var d,p,f,g,m,y;!function(e){e[e.ANY=0]="ANY",e[e.NUMBER=1]="NUMBER",e[e.BOOLEAN=2]="BOOLEAN",e[e.VOID=3]="VOID",e[e.STRING=4]="STRING",e[e.SYMBOL=5]="SYMBOL",e[e.NULL=6]="NULL",e[e.UNDEFINED=7]="UNDEFINED",e[e.INT=8]="INT",e[e._LENGTH=50]="_LENGTH"}(d=t.PrimitiveType||(t.PrimitiveType={})),function(e){e[e._COUNTER=0]="_COUNTER",e[e.CLASS=1]="CLASS",e[e.CLASSINST=2]="CLASSINST",e[e.FUNCTION=3]="FUNCTION",e[e.UNION=4]="UNION",e[e.ARRAY=5]="ARRAY",e[e.OBJECT=6]="OBJECT",e[e.EXTERNAL=7]="EXTERNAL",e[e.INTERFACE=8]="INTERFACE"}(p=t.L2Type||(t.L2Type={})),function(e){e[e.NONABSTRACT=0]="NONABSTRACT",e[e.ABSTRACT=1]="ABSTRACT"}(f=t.ModifierAbstract||(t.ModifierAbstract={})),function(e){e[e.NONSTATIC=0]="NONSTATIC",e[e.STATIC=1]="STATIC"}(g=t.ModifierStatic||(t.ModifierStatic={})),function(e){e[e.NONREADONLY=0]="NONREADONLY",e[e.READONLY=1]="READONLY"}(m=t.ModifierReadonly||(t.ModifierReadonly={})),function(e){e[e.PUBLIC=0]="PUBLIC",e[e.PRIVATE=1]="PRIVATE",e[e.PROTECTED=2]="PROTECTED"}(y=t.AccessFlag||(t.AccessFlag={}));class h{constructor(){this.typeChecker=l.TypeChecker.getInstance(),this.typeRecorder=u.TypeRecorder.getInstance()}addCurrentType(e,t){this.typeRecorder.addType2Index(e,t)}setVariable2Type(e,t){this.typeRecorder.setVariable2Type(e,t)}tryGetTypeIndex(e){return this.typeRecorder.tryGetTypeIndex(e)}getOrCreateRecordForDeclNode(e,t){return this.typeChecker.getOrCreateRecordForDeclNode(e,t)}getOrCreateRecordForTypeNode(e,t){return this.typeChecker.getOrCreateRecordForTypeNode(e,t)}getIndexFromTypeArrayBuffer(e){return c.PandaGen.appendTypeArrayBuffer(e)}setTypeArrayBuffer(e,t){c.PandaGen.setTypeArrayBuffer(e,t)}}t.BaseType=h;class v extends h{transfer2LiteralBuffer(){return new _.LiteralBuffer}}t.PlaceHolderType=v,t.TypeSummary=class extends h{constructor(){super(),this.preservedIndex=0,this.userDefinedClassNum=0,this.anonymousRedirect=new Array,this.preservedIndex=this.getIndexFromTypeArrayBuffer(new v)}setInfo(e,t){this.userDefinedClassNum=e,this.anonymousRedirect=t,this.setTypeArrayBuffer(this,this.preservedIndex)}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;t.push(new _.Literal(_.LiteralTag.INTEGER,p._COUNTER)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.userDefinedClassNum)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.anonymousRedirect.length));for(let e of this.anonymousRedirect)t.push(new _.Literal(_.LiteralTag.STRING,e));return e.addLiterals(...t),e}},t.ClassType=class extends h{constructor(e){super(),this.modifier=f.NONABSTRACT,this.extendsHeritage=d.ANY,this.implementsHeritages=new Array,this.staticFields=new Map,this.staticMethods=new Map,this.fields=new Map,this.methods=new Map,this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.addCurrentType(e,this.shiftedTypeIndex),this.fillInModifiers(e),this.fillInHeritages(e),this.fillInFieldsAndMethods(e),this.setTypeArrayBuffer(this,this.typeIndex)}fillInModifiers(e){if(e.modifiers)for(let t of e.modifiers)t.kind===o.SyntaxKind.AbstractKeyword&&(this.modifier=f.ABSTRACT)}fillInHeritages(e){if(e.heritageClauses)for(let t of e.heritageClauses){let e=t.getText();for(let r of t.types){let t=r.expression,n=this.getOrCreateRecordForDeclNode(t,t);e.startsWith("extends ")?this.extendsHeritage=n:e.startsWith("implements ")&&this.implementsHeritages.push(n)}}}fillInFields(e){let t=s.getTextOfIdentifierOrLiteral(e.name),r=Array(d.ANY,y.PUBLIC,m.NONREADONLY),n=!1;if(e.modifiers)for(let t of e.modifiers)switch(t.kind){case o.SyntaxKind.StaticKeyword:n=!0;break;case o.SyntaxKind.PrivateKeyword:r[1]=y.PRIVATE;break;case o.SyntaxKind.ProtectedKeyword:r[1]=y.PROTECTED;break;case o.SyntaxKind.ReadonlyKeyword:r[2]=m.READONLY}let i=e.type,a=e.name;r[0]=this.getOrCreateRecordForTypeNode(i,a),n?this.staticFields.set(t,r):this.fields.set(t,r)}fillInMethods(e){let t=e.name?e.name:void 0,r=new b(e);t&&this.setVariable2Type(t,r.shiftedTypeIndex);let n=this.tryGetTypeIndex(e);r.getModifier()?this.staticMethods.set(r.getFunctionName(),n):this.methods.set(r.getFunctionName(),n)}fillInFieldsAndMethods(e){if(e.members)for(let t of e.members)switch(t.kind){case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.Constructor:case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:this.fillInMethods(t);break;case o.SyntaxKind.PropertyDeclaration:this.fillInFields(t)}}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.CLASS)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.modifier)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.extendsHeritage)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.implementsHeritages.length)),this.implementsHeritages.forEach((e=>{t.push(new _.Literal(_.LiteralTag.INTEGER,e))})),this.transferFields2Literal(t,!1),this.transferMethods2Literal(t,!1),this.transferFields2Literal(t,!0),this.transferMethods2Literal(t,!0),e.addLiterals(...t),e}transferFields2Literal(e,t){let r=t?this.staticFields:this.fields;e.push(new _.Literal(_.LiteralTag.INTEGER,r.size)),r.forEach(((t,r)=>{e.push(new _.Literal(_.LiteralTag.STRING,r)),e.push(new _.Literal(_.LiteralTag.INTEGER,t[0])),e.push(new _.Literal(_.LiteralTag.INTEGER,t[1])),e.push(new _.Literal(_.LiteralTag.INTEGER,t[2]))}))}transferMethods2Literal(e,t){let r=t?this.staticMethods:this.methods;e.push(new _.Literal(_.LiteralTag.INTEGER,r.size)),r.forEach(((t,r)=>{e.push(new _.Literal(_.LiteralTag.STRING,r)),e.push(new _.Literal(_.LiteralTag.INTEGER,t))}))}},t.ClassInstType=class extends h{constructor(e){super(),this.shiftedReferredClassIndex=e,this.typeIndex=this.getIndexFromTypeArrayBuffer(this),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.typeRecorder.setClass2InstanceMap(this.shiftedReferredClassIndex,this.shiftedTypeIndex)}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.CLASSINST)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.shiftedReferredClassIndex)),e.addLiterals(...t),e}};class b extends h{constructor(e){super(),this.name="",this.accessFlag=y.PUBLIC,this.modifierStatic=g.NONSTATIC,this.parameters=new Array,this.returnType=d.ANY,this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.addCurrentType(e,this.shiftedTypeIndex),e.name?this.name=s.getTextOfIdentifierOrLiteral(e.name):this.name="constructor",this.fillInModifiers(e),this.fillInParameters(e),this.fillInReturn(e),this.setTypeArrayBuffer(this,this.typeIndex)}getFunctionName(){return this.name}fillInModifiers(e){if(e.modifiers)for(let t of e.modifiers)switch(t.kind){case o.SyntaxKind.PrivateKeyword:this.accessFlag=y.PRIVATE;break;case o.SyntaxKind.ProtectedKeyword:this.accessFlag=y.PROTECTED;break;case o.SyntaxKind.StaticKeyword:this.modifierStatic=g.STATIC}}fillInParameters(e){if(e.parameters)for(let t of e.parameters){let e=t.type,r=t.name,n=this.getOrCreateRecordForTypeNode(e,r);this.parameters.push(n)}}fillInReturn(e){let t=e.type,r=this.getOrCreateRecordForTypeNode(t,t);this.returnType=r}getModifier(){return this.modifierStatic}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.FUNCTION)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.accessFlag)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.modifierStatic)),t.push(new _.Literal(_.LiteralTag.STRING,this.name)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.parameters.length)),this.parameters.forEach((e=>{t.push(new _.Literal(_.LiteralTag.INTEGER,e))})),t.push(new _.Literal(_.LiteralTag.INTEGER,this.returnType)),e.addLiterals(...t),e}}t.FunctionType=b,t.ExternalType=class extends h{constructor(e,t){super(),this.fullRedirectNath=`#${e}#${t}`,this.typeIndex=this.getIndexFromTypeArrayBuffer(this),this.shiftedTypeIndex=this.typeIndex+d._LENGTH}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.EXTERNAL)),t.push(new _.Literal(_.LiteralTag.STRING,this.fullRedirectNath)),e.addLiterals(...t),e}},t.UnionType=class extends h{constructor(e){super(),this.unionedTypeArray=[],this.typeIndex=d.ANY,this.shiftedTypeIndex=d.ANY,this.setOrReadFromArrayRecord(e)}setOrReadFromArrayRecord(e){let t=e.getText();this.hasUnionTypeMapping(t)?this.shiftedTypeIndex=this.getFromUnionTypeMap(t):(this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.fillInUnionArray(e,this.unionedTypeArray),this.setUnionTypeMap(t,this.shiftedTypeIndex),this.setTypeArrayBuffer(this,this.typeIndex))}hasUnionTypeMapping(e){return this.typeRecorder.hasUnionTypeMapping(e)}getFromUnionTypeMap(e){return this.typeRecorder.getFromUnionTypeMap(e)}setUnionTypeMap(e,t){return this.typeRecorder.setUnionTypeMap(e,t)}fillInUnionArray(e,t){for(let r of e.types){let e=r,n=this.getOrCreateRecordForTypeNode(e,e);t.push(n)}}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;t.push(new _.Literal(_.LiteralTag.INTEGER,p.UNION)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.unionedTypeArray.length));for(let e of this.unionedTypeArray)t.push(new _.Literal(_.LiteralTag.INTEGER,e));return e.addLiterals(...t),e}},t.ArrayType=class extends h{constructor(e){super(),this.referedTypeIndex=d.ANY,this.typeIndex=d.ANY,this.shiftedTypeIndex=d.ANY;let t=e.elementType;this.referedTypeIndex=this.getOrCreateRecordForTypeNode(t,t),this.setOrReadFromArrayRecord()}setOrReadFromArrayRecord(){this.hasArrayTypeMapping(this.referedTypeIndex)?this.shiftedTypeIndex=this.getFromArrayTypeMap(this.referedTypeIndex):(this.typeIndex=this.getIndexFromTypeArrayBuffer(this),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.setTypeArrayBuffer(this,this.typeIndex),this.setArrayTypeMap(this.referedTypeIndex,this.shiftedTypeIndex))}hasArrayTypeMapping(e){return this.typeRecorder.hasArrayTypeMapping(e)}getFromArrayTypeMap(e){return this.typeRecorder.getFromArrayTypeMap(e)}setArrayTypeMap(e,t){return this.typeRecorder.setArrayTypeMap(e,t)}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.ARRAY)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.referedTypeIndex)),e.addLiterals(...t),e}},t.ObjectType=class extends h{constructor(e){super(),this.properties=new Map,this.typeIndex=d.ANY,this.shiftedTypeIndex=d.ANY,this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.fillInMembers(e),this.setTypeArrayBuffer(this,this.typeIndex)}fillInMembers(e){for(let t of e.members){let e=t,r=t.name?t.name.getText():"#undefined",n=this.getOrCreateRecordForTypeNode(e.type,t.name);this.properties.set(r,n)}}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.OBJECT)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.properties.size)),this.properties.forEach(((e,r)=>{t.push(new _.Literal(_.LiteralTag.STRING,r)),t.push(new _.Literal(_.LiteralTag.INTEGER,e))})),e.addLiterals(...t),e}},t.InterfaceType=class extends h{constructor(e){super(),this.heritages=new Array,this.fields=new Map,this.methods=new Array,this.typeIndex=this.getIndexFromTypeArrayBuffer(new v),this.shiftedTypeIndex=this.typeIndex+d._LENGTH,this.addCurrentType(e,this.shiftedTypeIndex),this.fillInHeritages(e),this.fillInFieldsAndMethods(e),this.setTypeArrayBuffer(this,this.typeIndex)}fillInHeritages(e){if(e.heritageClauses)for(let t of e.heritageClauses)for(let e of t.types){let t=e.expression,r=this.getOrCreateRecordForDeclNode(t,t);this.heritages.push(r)}}fillInFields(e){let t=s.getTextOfIdentifierOrLiteral(e.name),r=Array(d.ANY,y.PUBLIC,m.NONREADONLY);if(e.modifiers)for(let t of e.modifiers)switch(t.kind){case o.SyntaxKind.PrivateKeyword:r[1]=y.PRIVATE;break;case o.SyntaxKind.ProtectedKeyword:r[1]=y.PROTECTED;break;case o.SyntaxKind.ReadonlyKeyword:r[2]=m.READONLY}let n=e.type,i=e.name;r[0]=this.getOrCreateRecordForTypeNode(n,i),this.fields.set(t,r)}fillInMethods(e){let t=e.name?e.name:void 0,r=new b(e);t&&this.setVariable2Type(t,r.shiftedTypeIndex);let n=this.tryGetTypeIndex(e);this.methods.push(n)}fillInFieldsAndMethods(e){if(e.members)for(let t of e.members)switch(t.kind){case o.SyntaxKind.MethodSignature:this.fillInMethods(t);break;case o.SyntaxKind.PropertySignature:this.fillInFields(t)}}transfer2LiteralBuffer(){let e=new _.LiteralBuffer,t=new Array;return t.push(new _.Literal(_.LiteralTag.INTEGER,p.INTERFACE)),t.push(new _.Literal(_.LiteralTag.INTEGER,this.heritages.length)),this.heritages.forEach((e=>{t.push(new _.Literal(_.LiteralTag.INTEGER,e))})),this.transferFields2Literal(t),this.transferMethods2Literal(t),e.addLiterals(...t),e}transferFields2Literal(e){let t=this.fields;e.push(new _.Literal(_.LiteralTag.INTEGER,t.size)),t.forEach(((t,r)=>{e.push(new _.Literal(_.LiteralTag.STRING,r)),e.push(new _.Literal(_.LiteralTag.INTEGER,t[0])),e.push(new _.Literal(_.LiteralTag.INTEGER,t[1])),e.push(new _.Literal(_.LiteralTag.INTEGER,t[2]))}))}transferMethods2Literal(e){let t=this.methods;e.push(new _.Literal(_.LiteralTag.INTEGER,t.length)),t.forEach((t=>{e.push(new _.Literal(_.LiteralTag.INTEGER,t))}))}}},"./src/base/util.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isBase64Str=t.setPos=t.getRangeStartVregPos=t.getParameterLength4Ctor=t.getParamLengthOfFunc=t.isRestParameter=t.getRangeExplicitVregNums=t.isRangeInst=t.listenErrorEvent=t.listenChildExit=t.terminateWritePipe=t.initiateTs2abc=t.escapeUnicode=t.isAnonymousFunctionDefinition=t.isUndefinedIdentifier=t.isMemberExpression=t.isBindingOrAssignmentPattern=t.isArrayBindingOrAssignmentPattern=t.isObjectBindingOrAssignmentPattern=t.isBindingPattern=t.addUnicodeEscape=t.execute=t.setVariableExported=t.hasDefaultKeywordModifier=t.hasExportKeywordModifier=t.containSpreadElement=void 0;const o=a(r("path")),s=r("./src/statement/classStatement.ts"),c=a(r("./node_modules/typescript/lib/typescript.js")),l=r("./src/irnodes.ts"),u=a(r("./src/jshelpers.js")),_=r("./src/log.ts"),d=r("./src/scope.ts"),p=r("./src/syntaxCheckHelper.ts");function f(e){let t=0,r=0,n=e.length,i="";for(;r!=n;)"\\"==e[r]&&r+1!=n&&"u"==e[r+1]?(0!=r&&"\\"==e[r-1]?i+=e.substr(t,r-t)+"\\\\\\u":i+=e.substr(t,r-t)+"\\\\u",r+=2,t=r):r++;return r==n&&t!=r&&(i+=e.substr(t)),i}function g(e){return c.isObjectLiteralExpression(e)||c.isObjectBindingPattern(e)}function m(e){return c.isArrayLiteralExpression(e)||c.isArrayBindingPattern(e)}function y(e){return e instanceof l.EcmaCallithisrangedyn||e instanceof l.EcmaCallirangedyn||e instanceof l.EcmaNewobjdynrange||e instanceof l.EcmaCreateobjectwithexcludedkeys}function h(e){return!!e.dotDotDotToken}function v(e){let t=0,r=!0,n=e.parameters;return n&&n.forEach((e=>{(e.initializer||h(e))&&(r=!1),r&&t++})),t}t.containSpreadElement=function(e){if(!e)return!1;for(let t=0;t{e.kind==c.SyntaxKind.ExportKeyword&&(t=!0)})),t},t.hasDefaultKeywordModifier=function(e){let t=!1;return e.modifiers&&e.modifiers.forEach((e=>{e.kind==c.SyntaxKind.DefaultKeyword&&(t=!0)})),t},t.setVariableExported=function(e,t){if(!(t instanceof d.ModuleScope))throw new Error("variable can't be exported out of module scope");let r=t.find(e);r.v.setExport(),r.v.setExportedName(e)},t.execute=function(e,t){return(0,r("child_process").spawn)(e,[...t],{stdio:["pipe","inherit","inherit"]}).on("exit",(t=>1===t?((0,_.LOGD)("fail to execute cmd: ",e),0):((0,_.LOGD)("execute cmd successfully: ",e),1))),1},t.addUnicodeEscape=f,t.isBindingPattern=function(e){return c.isArrayBindingPattern(e)||c.isObjectBindingPattern(e)},t.isObjectBindingOrAssignmentPattern=g,t.isArrayBindingOrAssignmentPattern=m,t.isBindingOrAssignmentPattern=function(e){return m(e)||g(e)},t.isMemberExpression=function(e){return!(!c.isPropertyAccessExpression(e)&&!c.isElementAccessExpression(e))},t.isUndefinedIdentifier=function(e){return!!c.isIdentifier(e)&&"undefined"==u.getTextOfIdentifierOrLiteral(e)},t.isAnonymousFunctionDefinition=function(e){return!!(0,p.isFunctionLikeDeclaration)(e)&&!e.name},t.escapeUnicode=function(e){let t=0,r=0,n="";for(;-1!==(r=e.indexOf("\n",t));){let i=e.substring(t,r);-1!=i.indexOf("\\u")&&(i=f(i)),n=n.concat(i,"\n"),t=r+1}return n=n.concat("}\n"),n},t.initiateTs2abc=function(e){let t=o.join(o.resolve(__dirname,"../bin"),"js2abc_api8");return e.unshift("--compile-by-pipe"),(0,r("child_process").spawn)(t,[...e],{stdio:["pipe","inherit","inherit","pipe"]})},t.terminateWritePipe=function(e){e||(0,_.LOGD)("ts2abc is not a valid object"),e.stdio[3].end()},t.listenChildExit=function(e){e||(0,_.LOGD)("child is not a valid object"),e.on("exit",(e=>{1===e&&(0,_.LOGD)("fail to generate panda binary file"),(0,_.LOGD)("success to generate panda binary file")}))},t.listenErrorEvent=function(e){e||(0,_.LOGD)("child is not a valid object"),e.on("error",(e=>{(0,_.LOGD)(e.toString())}))},t.isRangeInst=y,t.getRangeExplicitVregNums=function(e){return y(e)?e instanceof l.EcmaCreateobjectwithexcludedkeys?2:1:-1},t.isRestParameter=h,t.getParamLengthOfFunc=v,t.getParameterLength4Ctor=function(e){if(!(0,s.extractCtorOfClass)(e))return 0;let t,r=e.members;for(let e=0;e{e(t)})),t},t.isBase64Str=function(e){return""!=e&&""!=e.trim()&&Buffer.from(Buffer.from(e,"base64").toString()).toString("base64")==e}},"./src/base/vregisterCache.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getVregisterCache=t.VregisterCache=t.CacheList=void 0;const n=r("./src/irnodes.ts"),i=r("./src/base/builtIn.ts"),a=r("./src/base/lexEnv.ts");var o;!function(e){e[e.MIN=0]="MIN",e[e.NaN=0]="NaN",e[e.HOLE=1]="HOLE",e[e.FUNC=2]="FUNC",e[e[1/0]=3]="Infinity",e[e[void 0]=4]="undefined",e[e.Symbol=5]="Symbol",e[e.Null=6]="Null",e[e.Global=7]="Global",e[e.LexEnv=8]="LexEnv",e[e.True=9]="True",e[e.False=10]="False",e[e.MAX=11]="MAX"}(o=t.CacheList||(t.CacheList={}));let s=new Map([[o.HOLE,i.expandHole],[o.NaN,i.expandNaN],[o.Infinity,i.expandInfinity],[o.undefined,i.expandUndefined],[o.Symbol,i.expandSymbol],[o.Null,i.expandNull],[o.Global,i.expandGlobal],[o.LexEnv,a.expandLexEnv],[o.True,i.expandTrue],[o.False,i.expandFalse],[o.FUNC,i.expandFunc]]);class c{constructor(e){this.flag=!1,this.vreg=void 0,this.expander=e}isNeeded(){return this.flag}getCache(){return this.flag&&this.vreg||(this.flag=!0,this.vreg=new n.VReg),this.vreg}getExpander(){return this.expander}}t.VregisterCache=class{constructor(){this.cache=[];for(let e=o.MIN;eo.MAX)throw new Error("invalid builtin index");return this.cache[e]}},t.getVregisterCache=function(e,t){return e.getVregisterCache().getCache(t).getCache()}},"./src/cmdOptions.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CmdOptions=void 0;const s=o(r("./node_modules/command-line-args/dist/index.js")),c=o(r("./node_modules/command-line-usage/index.js")),l=a(r("./node_modules/typescript/lib/typescript.js")),u=r("./src/log.ts"),_=a(r("path")),d=r("./src/base/util.ts"),p=[{name:"modules",alias:"m",type:Boolean,defaultValue:!1,description:"compile as module."},{name:"debug-log",alias:"l",type:Boolean,defaultValue:!1,description:"show info debug log and generate the json file."},{name:"dump-assembly",alias:"a",type:Boolean,defaultValue:!1,description:"dump assembly to file."},{name:"debug",alias:"d",type:Boolean,defaultValue:!1,description:"compile with debug info."},{name:"debug-add-watch",alias:"w",type:String,lazyMultiple:!0,defaultValue:[],description:"watch expression, abc file path and maybe watchTimeOut(in seconds) in debug mode."},{name:"keep-persistent-watch",alias:"k",type:String,lazyMultiple:!0,defaultValue:[],description:"keep persistent watch on js file with watched expression."},{name:"show-statistics",alias:"s",type:String,lazyMultiple:!0,defaultValue:"",description:"show compile statistics(ast, histogram, hoisting, all)."},{name:"output",alias:"o",type:String,defaultValue:"",description:"set output file."},{name:"timeout",alias:"t",type:Number,defaultValue:0,description:"js to abc timeout threshold(unit: seconds)."},{name:"opt-log-level",type:String,defaultValue:"error",description:"specifie optimizer log level. Possible values: ['debug', 'info', 'error', 'fatal']"},{name:"opt-level",type:Number,defaultValue:1,description:"Optimization level. Possible values: [0, 1, 2]. Default: 0\n 0: no optimizations\n 1: basic bytecode optimizations, including valueNumber, lowering, constantResolver, regAccAllocator\n 2: other bytecode optimizations, unimplemented yet"},{name:"help",alias:"h",type:Boolean,description:"Show usage guide."},{name:"bc-version",alias:"v",type:Boolean,defaultValue:!1,description:"Print ark bytecode version"},{name:"bc-min-version",type:Boolean,defaultValue:!1,description:"Print ark bytecode minimum supported version"},{name:"included-files",alias:"i",type:String,lazyMultiple:!0,defaultValue:[],description:"The list of dependent files."},{name:"record-type",alias:"p",type:Boolean,defaultValue:!1,description:"Record type info. Default: true"},{name:"dts-type-record",alias:"q",type:Boolean,defaultValue:!1,description:"Record type info for .d.ts files. Default: false"},{name:"debug-type",alias:"g",type:Boolean,defaultValue:!1,description:"Print type-related log. Default: false"},{name:"output-type",type:Boolean,defaultValue:!1,description:"set output type."},{name:"source-file",type:String,defaultValue:"",description:"specify the file path info recorded in generated abc"}];class f{static isEnableDebugLog(){return!!this.options&&this.options["debug-log"]}static isAssemblyMode(){return!!this.options&&this.options["dump-assembly"]}static isDebugMode(){return!!this.options&&this.options.debug}static setWatchEvaluateExpressionArgs(e){this.options["debug-add-watch"]=e}static getDeamonModeArgs(){return this.options?this.options["keep-persistent-watch"]:[]}static isWatchEvaluateDeamonMode(){return"start"==f.getDeamonModeArgs()[0]}static isStopEvaluateDeamonMode(){return"stop"==f.getDeamonModeArgs()[0]}static getEvaluateDeamonPath(){return f.getDeamonModeArgs()[1]}static isWatchEvaluateExpressionMode(){return!!this.options&&0!=this.options["debug-add-watch"].length}static getEvaluateExpression(){return this.options["debug-add-watch"][0]}static getWatchJsPath(){return this.options["debug-add-watch"][1]}static getWatchTimeOutValue(){return 2==this.options["debug-add-watch"].length?0:this.options["debug-add-watch"][2]}static isModules(){return!!this.options&&this.options.modules}static getOptLevel(){return this.options["opt-level"]}static getOptLogLevel(){return this.options["opt-log-level"]}static showASTStatistics(){return!!this.options&&(this.options["show-statistics"].includes("ast")||this.options["show-statistics"].includes("all"))}static showHistogramStatistics(){return!!this.options&&(this.options["show-statistics"].includes("all")||this.options["show-statistics"].includes("histogram"))}static showHoistingStatistics(){return!!this.options&&(this.options["show-statistics"].includes("all")||this.options["show-statistics"].includes("hoisting"))}static getInputFileName(){let e=this.parsedResult.fileNames[0];return e.substring(0,e.lastIndexOf("."))}static getOutputBinName(){let e=this.options.output;return""==e&&(e=f.getInputFileName()+".abc"),e}static getTimeOut(){return this.options?this.options.timeout:0}static isOutputType(){return!!this.options&&this.options["output-type"]}static showHelp(){const e=(0,c.default)([{header:"Ark JavaScript Compiler",content:"node --expose-gc index.js [options] file.js"},{header:"Options",optionList:p},{content:"Project Ark"}]);(0,u.LOGE)(e)}static isBcVersion(){return!!this.options&&this.options["bc-version"]}static getVersion(e=!0){let t=_.join(_.resolve(__dirname,"../bin"),"js2abc_api8"),r=e?"--bc-version":"--bc-min-version";(0,d.execute)(`${t}`,[r])}static isBcMinVersion(){return!!this.options&&this.options["bc-min-version"]}static getIncludedFiles(){return this.options?this.options["included-files"]:[]}static needRecordType(){return!!this.options&&!this.options["record-type"]}static needRecordDtsType(){return!!this.options&&this.options["dts-type-record"]}static enableTypeLog(){return!!this.options&&this.options["debug-type"]}static getSourceFile(){return this.options["source-file"]}static parseUserCmd(e){if(this.options=(0,s.default)(p,{partial:!0}),this.options.help)this.showHelp();else{if(!this.isBcVersion()&&!this.isBcMinVersion())return this.options._unknown?(this.parsedResult=l.parseCommandLine(this.options._unknown),this.parsedResult):((0,u.LOGE)("options at least one file is needed"),void this.showHelp());this.getVersion(this.isBcVersion())}}}t.CmdOptions=f},"./src/compiler.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Compiler=t.ControlFlowChange=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/astutils.ts")),c=r("./src/base/lreference.ts"),l=r("./src/base/util.ts"),u=r("./src/base/vregisterCache.ts"),_=r("./src/cmdOptions.ts"),d=r("./src/debuginfo.ts"),p=r("./src/diagnostic.ts"),f=r("./src/expression/arrayLiteralExpression.ts"),g=r("./src/expression/bigIntLiteral.ts"),m=r("./src/expression/callExpression.ts"),y=r("./src/expression/memberAccessExpression.ts"),h=r("./src/expression/metaProperty.ts"),v=r("./src/expression/newExpression.ts"),b=r("./src/expression/numericLiteral.ts"),x=r("./src/expression/objectLiteralExpression.ts"),D=r("./src/expression/parenthesizedExpression.ts"),S=r("./src/expression/regularExpression.ts"),E=r("./src/expression/stringLiteral.ts"),C=r("./src/expression/templateExpression.ts"),T=r("./src/expression/yieldExpression.ts"),k=r("./src/function/asyncFunctionBuilder.ts"),A=r("./src/function/functionBuilder.ts"),N=r("./src/function/generatorFunctionBuilder.ts"),w=r("./src/hoisting.ts"),F=r("./src/irnodes.ts"),P=a(r("./src/jshelpers.js")),I=r("./src/log.ts"),O=r("./src/scope.ts"),L=r("./src/statement/classStatement.ts"),M=r("./src/statement/forOfStatement.ts"),R=r("./src/statement/labelTarget.ts"),B=r("./src/statement/loopStatement.ts"),j=r("./src/statement/returnStatement.ts"),J=r("./src/statement/switchStatement.ts"),V=r("./src/statement/tryStatement.ts"),U=r("./src/strictMode.ts"),K=r("./src/syntaxCheckHelper.ts"),z=r("./src/variable.ts"),G=r("./src/expression/compileCommaListExpression.ts");var W;!function(e){e[e.Continue=0]="Continue",e[e.Break=1]="Break"}(W=t.ControlFlowChange||(t.ControlFlowChange={})),t.Compiler=class{constructor(e,t,r,n){this.debugTag="compiler",this.envUnion=new Array,this.rootNode=e,this.pandaGen=t,this.compilerDriver=r,this.recorder=n,this.funcBuilder=new A.FunctionBuilder,this.scope=this.pandaGen.getScope();let i=this.scope.getParameters();for(let e=0;e{o.has(t)&&c.delete(t)})),this.pandaGen.setLocals(a),this.pandaGen.setParametersCount(this.pandaGen.getParametersCount()-s),i.getArgumentsOrRestargs()&&(n+=null!==(t=r.get("argumentsOrRestargs"))&&void 0!==t?t:0),this.pandaGen.setCallType(n)}}storeFuncObj2LexEnvIfNeeded(){let e=this.rootNode;if(!o.isFunctionExpression(e)&&!o.isMethodDeclaration(e))return;let t=this.recorder.getScopeOfNode(e);if(e.name){let r=P.getTextOfIdentifierOrLiteral(e.name),n=t.find(r);n.scope==t&&(this.pandaGen.loadAccumulator(d.NodeKind.FirstNodeOfFunction,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.FUNC)),this.pandaGen.storeAccToLexEnv(d.NodeKind.FirstNodeOfFunction,n.scope,n.level,n.v,!0))}}compileLexicalBindingForArrowFunction(){let e=this.rootNode;if(!o.isArrowFunction(e)){let t=this.scope.getChildVariableScope(),r=!1;if(t.forEach((e=>{let t=e.getBindingNode();o.isArrowFunction(t)&&(r=!0)})),r){if(this.storeSpecialArg2LexEnv("4newTarget"),this.storeSpecialArg2LexEnv("arguments"),o.isConstructorDeclaration(e)&&e.parent.heritageClauses)return void this.storeSpecialArg2LexEnv("4funcObj");this.storeSpecialArg2LexEnv("this")}}}storeSpecialArg2LexEnv(e){let t=this.scope.find(e),r=t.v,n=this.pandaGen;if(_.CmdOptions.isDebugMode())t.scope.setLexVar(r,this.scope),n.storeLexicalVar(this.rootNode,t.level,t.v.idxLex,n.getVregForVariable(t.v));else if(r&&r.isLexVar){("this"===e||"4newTarget"===e)&&t.scope instanceof O.FunctionScope&&t.scope.setCallOpt(e),"arguments"===e&&t.scope instanceof O.FunctionScope&&t.scope.setArgumentsOrRestargs();let i="4funcObj"===e?(0,u.getVregisterCache)(n,u.CacheList.FUNC):n.getVregForVariable(t.v);n.storeLexicalVar(this.rootNode,t.level,r.idxLex,i)}}compileSourceFileOrBlock(e){let t=this.pandaGen,r=e.statements,n=!1;e.parent&&o.isConstructorDeclaration(e.parent)&&(0,L.compileDefaultInitClassMembers)(this,e.parent),r.forEach((e=>{this.compileStatement(e),e.kind==o.SyntaxKind.ReturnStatement&&(n=!0)})),e.parent&&o.isConstructorDeclaration(e.parent)?(0,L.compileReturnThis4Ctor)(this,e.parent,n):n||(this.funcBuilder instanceof k.AsyncFunctionBuilder?(this.funcBuilder.resolve(d.NodeKind.Invalid,(0,u.getVregisterCache)(t,u.CacheList.undefined)),t.return(d.NodeKind.Invalid)):_.CmdOptions.isWatchEvaluateExpressionMode()?t.return(d.NodeKind.Invalid):t.returnUndefined(d.NodeKind.Invalid))}compileFunctionBody(e,t){let r=this.pandaGen;if(t.kind==o.SyntaxKind.Block)this.pushScope(t),this.compileSourceFileOrBlock(t),this.popScope();else{if(e!=o.SyntaxKind.ArrowFunction)throw new Error("Node "+this.getNodeName(t)+" is unimplemented as a function body");{this.compileExpression(t);let e=r.getTemp();r.storeAccumulator(t,e),this.funcBuilder instanceof k.AsyncFunctionBuilder?(this.funcBuilder.resolve(t,e),r.return(d.NodeKind.Invalid)):r.loadAccumulator(t,e),r.freeTemps(e),r.return(d.NodeKind.Invalid)}}}compileFunctionParameterDeclaration(e){let t=this.pandaGen;for(let r=0;rthis.compileStatement(e))),this.popScope()}compileVariableStatement(e){let t=e.declarationList,r=(0,l.hasExportKeywordModifier)(e);t.declarations.forEach((e=>{this.compileVariableDeclaration(e,r)}))}compileVariableDeclaration(e,t=!1){if(t){let t=P.getTextOfIdentifierOrLiteral(e.name);(0,l.setVariableExported)(t,this.getCurrentScope())}let r=c.LReference.generateLReference(this,e.name,!0);if(e.initializer)this.compileExpression(e.initializer);else{if(s.getVarDeclarationKind(e)==z.VarDeclarationKind.VAR)return;s.getVarDeclarationKind(e)==z.VarDeclarationKind.LET&&e.parent.kind!=o.SyntaxKind.CatchClause&&this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.undefined))}r.setValue()}compileIfStatement(e){this.pushScope(e);let t=new F.Label,r=new F.Label;this.compileCondition(e.expression,e.elseStatement?t:r),this.compileStatement(e.thenStatement),e.elseStatement&&(this.pandaGen.branch(d.DebugInfo.getLastNode(),r),this.pandaGen.label(e,t),this.compileStatement(e.elseStatement)),this.pandaGen.label(e,r),this.popScope()}popLoopEnv(e,t){for(;t--;)this.pandaGen.popLexicalEnv(e)}popLoopEnvWhenContinueOrBreak(e,t){let r=e.getCorrespondingNode(),n=e.getLoopEnvLevel();switch(r.kind){case o.SyntaxKind.DoStatement:case o.SyntaxKind.ForStatement:this.popLoopEnv(r,n-1);break;case o.SyntaxKind.WhileStatement:case o.SyntaxKind.ForInStatement:case o.SyntaxKind.ForOfStatement:{let e=t?n:n-1;this.popLoopEnv(r,e);break}default:this.popLoopEnv(r,n)}}compileContinueStatement(e){let t=R.LabelTarget.getLabelTarget(e);this.compileFinallyBeforeCFC(t.getTryStatement(),W.Continue,t.getContinueTargetLabel()),t.getLoopEnvLevel()&&this.popLoopEnvWhenContinueOrBreak(t,!0),this.pandaGen.branch(e,t.getContinueTargetLabel())}compileBreakStatement(e){let t=R.LabelTarget.getLabelTarget(e);this.compileFinallyBeforeCFC(t.getTryStatement(),W.Break,void 0),t.getLoopEnvLevel()&&this.popLoopEnvWhenContinueOrBreak(t,!1),this.pandaGen.branch(e,t.getBreakTargetLabel())}compileLabeledStatement(e){this.pushScope(e);let t,r=P.getTextOfIdentifierOrLiteral(e.label);if(e.statement.kind==o.SyntaxKind.Block||e.statement.kind==o.SyntaxKind.IfStatement){t=new F.Label;let r=new R.LabelTarget(e,t,void 0);R.LabelTarget.updateName2LabelTarget(e,r)}this.compileStatement(e.statement),t&&this.pandaGen.label(e,t),R.LabelTarget.deleteName2LabelTarget(r),this.popScope()}compileThrowStatement(e){let t=this.pandaGen;if(!e.expression)throw new p.DiagnosticError(e,p.DiagnosticCode.Line_break_not_permitted_here);this.compileExpression(e.expression);let r=V.TryStatement.getCurrentTryStatement()?V.TryStatement.getCurrentTryStatement().getLoopEnvLevel():0;this.popLoopEnv(e,r),t.throw(e)}compileFinallyBeforeCFC(e,t,r){let n=V.TryStatement.getCurrentTryStatement(),i=n,a=this.scope;for(;n!=e;n=null==n?void 0:n.getOuterTryStatement())if(n&&n.trybuilder){let e=new F.Label,a=new F.Label,o=new V.LabelPair(e,a),s=V.TryStatement.getCurrentTryStatement();V.TryStatement.setCurrentTryStatement(n.getOuterTryStatement()),this.pandaGen.label(n.getStatement(),e),n.trybuilder.compileFinalizer(t,r),this.pandaGen.label(n.getStatement(),a),V.TryStatement.setCurrentTryStatement(s),(0,V.updateCatchTables)(i,n,o)}this.scope=a}constructTry(e,t,r){let n=this.pandaGen,i=new F.Label,a=new F.Label,s=new F.Label,c=r||new F.Label,l=new V.CatchTable(n,s,new V.LabelPair(i,a));n.label(e,i),t.compileTryBlock(l),n.label(e,a),t.compileFinallyBlockIfExisted(),o.isForOfStatement(e)&&this.getRecorder().getScopeOfNode(e).need2CreateLexEnv()&&n.popLexicalEnv(e),n.branch(e,c),n.label(e,s),t.compileExceptionHandler(),r||n.label(e,c)}compileTryStatement(e){this.pushScope(e),e.catchClause&&e.finallyBlock&&(e=(0,V.transformTryCatchFinally)(e,this.recorder));let t=new V.TryBuilder(this,this.pandaGen,e);this.constructTry(e,t),this.popScope()}compileFunctionDeclaration(e){if(!e.name){let t=(0,l.hasExportKeywordModifier)(e),r=(0,l.hasDefaultKeywordModifier)(e);if(!t||!r)throw new Error("Function declaration without name is unimplemented");if(!(this.scope instanceof O.ModuleScope))throw new Error("SyntaxError: export function declaration cannot in other scope except ModuleScope");{let t=this.compilerDriver.getFuncInternalName(e,this.recorder),r=this.getCurrentEnv();this.pandaGen.defineFunction(d.NodeKind.FirstNodeOfFunction,e,t,r),this.pandaGen.storeModuleVar(e,"default")}}}compileExportAssignment(e){this.compileExpression(e.expression),this.pandaGen.storeModuleVar(e,"default")}compileCondition(e,t){let r=this.pandaGen;if(e.kind==o.SyntaxKind.BinaryExpression){let n=e;switch(n.operatorToken.kind){case o.SyntaxKind.LessThanToken:case o.SyntaxKind.GreaterThanToken:case o.SyntaxKind.LessThanEqualsToken:case o.SyntaxKind.GreaterThanEqualsToken:case o.SyntaxKind.EqualsEqualsToken:case o.SyntaxKind.ExclamationEqualsToken:case o.SyntaxKind.EqualsEqualsEqualsToken:case o.SyntaxKind.ExclamationEqualsEqualsToken:{let e=r.getTemp();return this.compileExpression(n.left),r.storeAccumulator(n,e),this.compileExpression(n.right),r.condition(n,n.operatorToken.kind,e,t),void r.freeTemps(e)}case o.SyntaxKind.AmpersandAmpersandToken:return this.compileExpression(n.left),r.jumpIfFalse(n,t),this.compileExpression(n.right),void r.jumpIfFalse(n,t);case o.SyntaxKind.BarBarToken:{let e=new F.Label;return this.compileExpression(n.left),r.jumpIfTrue(n,e),this.compileExpression(n.right),r.jumpIfFalse(n,t),void r.label(n,e)}}}this.compileExpression(e),r.jumpIfFalse(e,t)}compileExpression(e){switch((0,I.LOGD)(this.debugTag,"compile expr:"+e.kind),e.kind){case o.SyntaxKind.NumericLiteral:(0,b.compileNumericLiteral)(this.pandaGen,e);break;case o.SyntaxKind.BigIntLiteral:(0,g.compileBigIntLiteral)(this.pandaGen,e);break;case o.SyntaxKind.StringLiteral:(0,E.compileStringLiteral)(this.pandaGen,e);break;case o.SyntaxKind.RegularExpressionLiteral:(0,S.compileRegularExpressionLiteral)(this,e);break;case o.SyntaxKind.Identifier:this.compileIdentifier(e);break;case o.SyntaxKind.TrueKeyword:case o.SyntaxKind.FalseKeyword:this.compileBooleanLiteral(e);break;case o.SyntaxKind.CallExpression:(0,m.compileCallExpression)(e,this);break;case o.SyntaxKind.NullKeyword:this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Null));break;case o.SyntaxKind.ThisKeyword:this.compileThisKeyword(e);break;case o.SyntaxKind.MetaProperty:(0,h.compileMetaProperty)(e,this);break;case o.SyntaxKind.ArrayLiteralExpression:(0,f.compileArrayLiteralExpression)(this,e);break;case o.SyntaxKind.ObjectLiteralExpression:(0,x.compileObjectLiteralExpression)(this,e);break;case o.SyntaxKind.PropertyAccessExpression:case o.SyntaxKind.ElementAccessExpression:(0,y.compileMemberAccessExpression)(e,this);break;case o.SyntaxKind.NewExpression:(0,v.compileNewExpression)(e,this);break;case o.SyntaxKind.ParenthesizedExpression:this.compileExpression((0,D.findInnerExprOfParenthesis)(e));break;case o.SyntaxKind.FunctionExpression:this.compileFunctionExpression(e);break;case o.SyntaxKind.DeleteExpression:this.compileDeleteExpression(e);break;case o.SyntaxKind.TypeOfExpression:this.compileTypeOfExpression(e);break;case o.SyntaxKind.VoidExpression:this.compileVoidExpression(e);break;case o.SyntaxKind.AwaitExpression:this.compileAwaitExpression(e);break;case o.SyntaxKind.PrefixUnaryExpression:this.compilePrefixUnaryExpression(e);break;case o.SyntaxKind.PostfixUnaryExpression:this.compilePostfixUnaryExpression(e);break;case o.SyntaxKind.BinaryExpression:this.compileBinaryExpression(e);break;case o.SyntaxKind.ConditionalExpression:this.compileConditionalExpression(e);break;case o.SyntaxKind.YieldExpression:(0,T.compileYieldExpression)(this,e);break;case o.SyntaxKind.ArrowFunction:this.compileArrowFunction(e);break;case o.SyntaxKind.TemplateExpression:this.compileTemplateExpression(e);break;case o.SyntaxKind.NoSubstitutionTemplateLiteral:case o.SyntaxKind.FirstTemplateToken:case o.SyntaxKind.LastLiteralToken:this.compileNoSubstitutionTemplateLiteral(e);break;case o.SyntaxKind.TaggedTemplateExpression:this.compileTaggedTemplateExpression(e);break;case o.SyntaxKind.Constructor:case o.SyntaxKind.PropertyDeclaration:break;case o.SyntaxKind.ClassExpression:(0,L.compileClassDeclaration)(this,e);break;case o.SyntaxKind.PartiallyEmittedExpression:break;case o.SyntaxKind.CommaListExpression:(0,G.compileCommaListExpression)(this,e);break;default:throw new Error("Expression of type "+this.getNodeName(e)+" is unimplemented")}}compileIdentifier(e){let t=P.getTextOfIdentifierOrLiteral(e),{scope:r,level:n,v:i}=this.scope.find(t);i?this.loadTarget(e,{scope:r,level:n,v:i}):this.compileUnscopedIdentifier(e)}compileUnscopedIdentifier(e){let t=P.getTextOfIdentifierOrLiteral(e),r=this.pandaGen;switch(t){case"NaN":return void r.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.NaN));case"Infinity":return void r.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Infinity));case"globalThis":return void r.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Global));case"undefined":return void r.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.undefined));default:(0,D.findOuterNodeOfParenthesis)(e).kind==o.SyntaxKind.TypeOfExpression?_.CmdOptions.isWatchEvaluateExpressionMode()?r.loadByNameViaDebugger(e,t,u.CacheList.False):r.loadObjProperty(e,(0,u.getVregisterCache)(r,u.CacheList.Global),t):r.tryLoadGlobalByName(e,t)}}compileBooleanLiteral(e){e.kind==o.SyntaxKind.TrueKeyword?this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.True)):this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.False))}compileFunctionReturnThis(e){if(e.expression.kind==o.SyntaxKind.Identifier){let t=e.expression,r=e.arguments;if("Function"==t.escapedText&&r&&r.length>0)return!!o.isStringLiteral(r[r.length-1])&&(null!=r[r.length-1].text.match(/ *return +this[;]? *$/)&&(this.pandaGen.loadAccumulator(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Global)),!0))}return!1}compileThisKeyword(e){let t=this.pandaGen;(0,L.checkValidUseSuperBeforeSuper)(this,e);let{scope:r,level:n,v:i}=this.scope.find("this");if(this.setCallOpt(r,"this"),!i)throw new Error('"this" not found');if(!(i instanceof z.LocalVariable))throw new Error('"this" must be a local variable');if(r&&n>=0){let e=this.scope,t=!1;for(;e!=r;){if(e instanceof O.VariableScope){t=!0;break}e=e.getParent()}t&&r.setLexVar(i,this.scope)}_.CmdOptions.isWatchEvaluateExpressionMode()?t.loadByNameViaDebugger(e,"this",u.CacheList.True):t.loadAccFromLexEnv(e,r,n,i)}compileFunctionExpression(e){let t=this.compilerDriver.getFuncInternalName(e,this.recorder),r=this.getCurrentEnv();this.pandaGen.defineFunction(e,e,t,r)}compileDeleteExpression(e){let t,r,n=this.pandaGen,i=e.expression;switch(i.kind){case o.SyntaxKind.Identifier:{let r=P.getTextOfIdentifierOrLiteral(i),{scope:a,v:o}=this.scope.find(r);if(!o||a instanceof O.GlobalScope&&o instanceof z.GlobalVariable){let a=n.getTemp();t=(0,u.getVregisterCache)(n,u.CacheList.Global),n.loadAccumulatorString(i,r),n.storeAccumulator(i,a),n.deleteObjProperty(e,t,a),n.freeTemps(a)}else n.loadAccumulator(i,(0,u.getVregisterCache)(n,u.CacheList.False));break}case o.SyntaxKind.PropertyAccessExpression:case o.SyntaxKind.ElementAccessExpression:{if(t=n.getTemp(),r=n.getTemp(),P.isSuperProperty(i))return n.throwDeleteSuperProperty(i),void n.freeTemps(t,r);let{prop:a}=(0,y.getObjAndProp)(i,t,r,this);switch(typeof a){case"string":n.loadAccumulatorString(e,a),n.storeAccumulator(e,r);break;case"number":n.loadAccumulatorInt(e,a),n.storeAccumulator(e,r)}n.deleteObjProperty(e,t,r),n.freeTemps(t,r);break}default:this.compileExpression(i),n.loadAccumulator(e,(0,u.getVregisterCache)(n,u.CacheList.True))}}compileTypeOfExpression(e){this.compileExpression(e.expression),this.pandaGen.typeOf(e)}compileVoidExpression(e){let t=this.pandaGen;this.compileExpression(e.expression),t.loadAccumulator(e,(0,u.getVregisterCache)(t,u.CacheList.undefined))}compileAwaitExpression(e){let t=this.pandaGen;if(!(this.funcBuilder instanceof k.AsyncFunctionBuilder))throw new p.DiagnosticError(e.parent,p.DiagnosticCode.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(e.expression){let r=t.getTemp();this.compileExpression(e.expression),t.storeAccumulator(e,r),this.funcBuilder.await(e,r),t.freeTemps(r)}else this.funcBuilder.await(e,(0,u.getVregisterCache)(t,u.CacheList.undefined))}compilePrefixUnaryExpression(e){let t=this.pandaGen,r=t.getTemp();switch(e.operator){case o.SyntaxKind.PlusPlusToken:case o.SyntaxKind.MinusMinusToken:{let n=c.LReference.generateLReference(this,e.operand,!1);n.getValue(),t.storeAccumulator(e,r),t.unary(e,e.operator,r),n.setValue();break}case o.SyntaxKind.PlusToken:case o.SyntaxKind.MinusToken:case o.SyntaxKind.ExclamationToken:case o.SyntaxKind.TildeToken:this.compileExpression(e.operand),t.storeAccumulator(e,r),t.unary(e,e.operator,r)}t.freeTemps(r)}compilePostfixUnaryExpression(e){let t=this.pandaGen,r=t.getTemp(),n=c.LReference.generateLReference(this,e.operand,!1);switch(n.getValue(),t.storeAccumulator(e,r),e.operator){case o.SyntaxKind.PlusPlusToken:case o.SyntaxKind.MinusMinusToken:t.unary(e,e.operator,r)}n.setValue(),t.toNumber(e,r),t.freeTemps(r)}compileLogicalExpression(e){let t=this.pandaGen,r=t.getTemp();switch(e.operatorToken.kind){case o.SyntaxKind.AmpersandAmpersandToken:{let n=new F.Label,i=new F.Label;this.compileExpression(e.left),t.storeAccumulator(e,r),t.jumpIfFalse(e,n),this.compileExpression(e.right),t.branch(e,i),t.label(e,n),t.loadAccumulator(e,r),t.label(e,i);break}case o.SyntaxKind.BarBarToken:{let n=new F.Label,i=new F.Label;this.compileExpression(e.left),t.storeAccumulator(e,r),t.jumpIfTrue(e,n),this.compileExpression(e.right),t.branch(e,i),t.label(e,n),t.loadAccumulator(e,r),t.label(e,i);break}case o.SyntaxKind.QuestionQuestionToken:{let n=new F.Label,i=new F.Label;this.compileExpression(e.left),t.storeAccumulator(e,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,u.getVregisterCache)(t,u.CacheList.Null),n),t.loadAccumulator(e.left,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,u.getVregisterCache)(t,u.CacheList.undefined),n),t.loadAccumulator(e,r),t.branch(e,i),t.label(e,n),this.compileExpression(e.right),t.label(e,i);break}default:throw new Error("BinaryExpression with operatorToken "+this.getNodeName(e.operatorToken)+" is not Logical Operator")}t.freeTemps(r)}compileBinaryExpression(e){if((0,K.isAssignmentOperator)(e.operatorToken.kind))return void this.compileAssignmentExpression(e.left,e.right,e.operatorToken.kind);if(e.operatorToken.kind==o.SyntaxKind.AmpersandAmpersandToken||e.operatorToken.kind==o.SyntaxKind.BarBarToken||e.operatorToken.kind==o.SyntaxKind.QuestionQuestionToken)return void this.compileLogicalExpression(e);let t=this.pandaGen,r=t.getTemp();this.compileExpression(e.left),t.storeAccumulator(e,r),this.compileExpression(e.right),e.operatorToken.kind!=o.SyntaxKind.CommaToken&&t.binary(e,e.operatorToken.kind,r),t.freeTemps(r)}compileConditionalExpression(e){let t=new F.Label,r=new F.Label;this.compileCondition(e.condition,t),this.compileExpression(e.whenTrue),this.pandaGen.branch(e,r),this.pandaGen.label(e,t),this.compileExpression(e.whenFalse),this.pandaGen.label(e,r)}compileArrowFunction(e){let t=this.compilerDriver.getFuncInternalName(e,this.recorder),r=this.getCurrentEnv();this.pandaGen.defineFunction(e,e,t,r)}compileTemplateSpan(e){let t=e.expression;this.compileExpression(t);let r=e.literal,n=this.pandaGen.getTemp(),i=r.text;0!=i.length&&(this.pandaGen.storeAccumulator(e,n),this.pandaGen.loadAccumulatorString(e,i),this.pandaGen.binary(e,o.SyntaxKind.PlusToken,n)),this.pandaGen.freeTemps(n)}compileTemplateExpression(e){let t=this.pandaGen,r=e.head,n=e.templateSpans,i=t.getTemp();t.loadAccumulatorString(e,r.text),n&&n.length>0&&n.forEach((r=>{t.storeAccumulator(e,i),this.compileTemplateSpan(r),t.binary(e,o.SyntaxKind.PlusToken,i)})),t.freeTemps(i)}compileNoSubstitutionTemplateLiteral(e){let t=e.text;this.pandaGen.loadAccumulatorString(e,t)}compileTaggedTemplateExpression(e){let t,r=this.pandaGen;o.isTemplateExpression(e.template)&&(t=e.template.templateSpans);let{arguments:n,passThis:i}=(0,m.getHiddenParameters)(e.tag,this);(0,C.getTemplateObject)(r,e);let a=r.getTemp();r.storeAccumulator(e,a),n.push(a),t&&t.length&&t.forEach((e=>{let t=r.getTemp();this.compileExpression(e.expression),r.storeAccumulator(e,t),n.push(t)})),r.call(e,n,i),r.freeTemps(...n)}compileAssignmentExpression(e,t,r){let n=c.LReference.generateLReference(this,e,!1);if(r!=o.SyntaxKind.EqualsToken){let i=this.pandaGen.getTemp();n.getValue(),this.pandaGen.storeAccumulator(e,i),this.compileExpression(t),this.pandaGen.binary(e.parent,r,i),this.pandaGen.freeTemps(i)}else this.compileExpression(t);n.setValue()}pushScope(e){let t=this.recorder.getScopeOfNode(e);this.scope=t,d.DebugInfo.addDebugIns(t,this.pandaGen,!0)}popScope(){d.DebugInfo.addDebugIns(this.scope,this.pandaGen,!1),this.scope=this.scope.getParent()}getNodeName(e){return o.SyntaxKind[e.kind]}getThis(e,t){let r=this.pandaGen,n=this.getCurrentScope(),i=this.getCurrentScope().find("this"),a=i.scope,o=i.level,s=i.v;if(this.setCallOpt(a,"this"),a&&o>=0){let e=!1;for(;n!=a;){if(n instanceof O.VariableScope){e=!0;break}n=n.getParent()}e&&a.setLexVar(s,n)}if(s.isLexVar){let n=s.idxLex;r.loadLexicalVar(e,o,n),r.storeAccumulator(e,t)}else r.moveVreg(e,t,r.getVregForVariable(s))}setThis(e){let t=this.pandaGen,r=this.getCurrentScope().find("this");if(this.setCallOpt(r.scope,"this"),r.v.isLexVar){let n=r.v.idxLex,i=t.getTemp();t.storeAccumulator(e,i),t.storeLexicalVar(e,r.level,n,i),t.freeTemps(i)}else t.storeAccumulator(e,t.getVregForVariable(r.v))}setCallOpt(e,t){e instanceof O.FunctionScope&&e.setCallOpt(t)}getPandaGen(){return this.pandaGen}getCurrentScope(){return this.scope}getCompilerDriver(){return this.compilerDriver}getRecorder(){return this.recorder}getFuncBuilder(){return this.funcBuilder}storeTarget(e,t,r){if(t.v instanceof z.LocalVariable){if(r&&t.v.isLetOrConst()&&(t.v.initialize(),t.scope instanceof O.GlobalScope))return void(t.v.isLet()?this.pandaGen.stLetToGlobalRecord(e,t.v.getName()):this.pandaGen.stConstToGlobalRecord(e,t.v.getName()));if(t.v.isLetOrConst()&&t.scope instanceof O.GlobalScope)return void this.pandaGen.tryStoreGlobalByName(e,t.v.getName());if(t.scope&&t.level>=0){let e=this.scope,r=!1;for(;e!=t.scope;){if(e instanceof O.VariableScope){r=!0;break}e=e.getParent()}r&&t.scope.setLexVar(t.v,this.scope)}this.pandaGen.storeAccToLexEnv(e,t.scope,t.level,t.v,r)}else{if(!(t.v instanceof z.GlobalVariable))throw new Error("invalid lhsRef to store");t.v.isNone()&&(0,U.isStrictMode)(e)?this.pandaGen.tryStoreGlobalByName(e,t.v.getName()):this.pandaGen.storeGlobalVar(e,t.v.getName())}}loadTarget(e,t){if(t.v instanceof z.LocalVariable){if((t.v.isLetOrConst()||t.v.isClass())&&t.scope instanceof O.GlobalScope)return void this.pandaGen.tryLoadGlobalByName(e,t.v.getName());if(t.scope&&t.level>=0){let e=this.scope,r=!1;for(;e!=t.scope;){if(e instanceof O.VariableScope){r=!0;break}e=e.getParent()}r&&t.scope.setLexVar(t.v,this.scope)}this.pandaGen.loadAccFromLexEnv(e,t.scope,t.level,t.v)}else{if(!(t.v instanceof z.GlobalVariable))throw new Error("Only local and global variables are implemented");t.v.isNone()?(0,D.findOuterNodeOfParenthesis)(e).kind==o.SyntaxKind.TypeOfExpression?_.CmdOptions.isWatchEvaluateExpressionMode()?this.pandaGen.loadByNameViaDebugger(e,t.v.getName(),u.CacheList.False):this.pandaGen.loadObjProperty(e,(0,u.getVregisterCache)(this.pandaGen,u.CacheList.Global),t.v.getName()):this.pandaGen.tryLoadGlobalByName(e,t.v.getName()):this.pandaGen.loadGlobalVar(e,t.v.getName())}}}},"./src/compilerDriver.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CompilerDriver=t.PendingCompilationUnit=void 0;const o=r("fs"),s=a(r("./node_modules/typescript/lib/typescript.js")),c=r("./src/addVariable2Scope.ts"),l=r("./src/assemblyDumper.ts"),u=r("./src/base/util.ts"),_=r("./src/cmdOptions.ts"),d=r("./src/compiler.ts"),p=r("./src/compilerStatistics.ts"),f=r("./src/debuginfo.ts"),g=r("./src/hoisting.ts"),m=r("./src/log.ts"),y=r("./src/modules.ts"),h=r("./src/pandagen.ts"),v=r("./src/pass/cacheExpander.ts"),b=r("./src/recorder.ts"),x=r("./src/regAllocator.ts"),D=r("./src/scope.ts"),S=r("./src/statement/classStatement.ts"),E=r("./src/syntaxChecker.ts"),C=r("./src/ts2panda.ts"),T=r("./src/typeRecorder.ts");class k{constructor(e,t,r){this.decl=e,this.scope=t,this.internalName=r}}t.PendingCompilationUnit=k;class A{constructor(e){this.passes=[],this.functionId=1,this.funcIdMap=new Map,this.needDumpHeader=!0,this.ts2abcProcess=void 0,this.fileName=e,this.passes=[new v.CacheExpander,new x.RegAlloc],this.compilationUnits=[],this.pendingCompilationUnits=[],(_.CmdOptions.showHistogramStatistics()||_.CmdOptions.showHoistingStatistics())&&(this.statistics=new p.CompilerStatistics)}initiateTs2abcChildProcess(){this.ts2abcProcess=(0,u.initiateTs2abc)([this.fileName])}getTs2abcProcess(){if(void 0===this.ts2abcProcess)throw new Error("ts2abc hasn't been initiated");return this.ts2abcProcess}getStatistics(){return this.statistics}setCustomPasses(e){this.passes=e}addCompilationUnit(e,t,r){let n=this.getFuncInternalName(e,r);return this.pendingCompilationUnits.push(new k(e,t,n)),n}getCompilationUnits(){return this.compilationUnits}kind2String(e){return s.SyntaxKind[e]}getASTStatistics(e,t){e.forEachChild((e=>{t[e.kind]=t[e.kind]+1,this.getASTStatistics(e,t)}))}postOrderAnalysis(e){let t=[],r=[];for(r.push(e);r.length>0;){let e=r.pop();if(null==e)break;t.push(e);for(let t of e.getChildVariableScope())r.push(t)}return t.reverse()}compileForSyntaxCheck(e){let t=this.compilePrologue(e,!1,!0);(0,E.checkDuplicateDeclaration)(t),(0,E.checkExportEntries)(t)}compile(e){if(A.isTsFile=A.isTypeScriptSourceFile(e),_.CmdOptions.showASTStatistics()){let t=new Array(s.SyntaxKind.Count).fill(0);this.getASTStatistics(e,t),t.forEach(((e,t)=>{e>0&&(0,m.LOGD)(this.kind2String(t)+" = "+e)}))}let t=this.compilePrologue(e,!0,!1);if(_.CmdOptions.isAssemblyMode())for(let e=0;ee.run(i))),f.DebugInfo.addDebugIns(t,i,!1),f.DebugInfo.setDebugInfo(i),f.DebugInfo.setSourceFileDebugInfo(i,e),_.CmdOptions.isAssemblyMode()?this.writeBinaryFile(i):C.Ts2Panda.dumpPandaGen(i,this.getTs2abcProcess(),n.recordType),_.CmdOptions.showHistogramStatistics()&&this.statistics.getInsHistogramStatistics(i)}compileUnitTest(e,t){A.isTsFile=A.isTypeScriptSourceFile(e);let r=this.compilePrologue(e,!0,!0);for(let e=0;et.push(e))),h.PandaGen.clearLiteralArrayBuffer()}compileUnitTestImpl(e,t,r,n){let i=new h.PandaGen(r,this.getParametersCount(e),t),a=new d.Compiler(e,i,this,n);_.CmdOptions.isModules()&&s.isSourceFile(e)&&t instanceof D.ModuleScope&&((0,y.setImport)(n.getImportStmts(),t,i),(0,y.setExportBinding)(n.getExportStmts(),t,i)),(0,g.hoisting)(e,i,n,a),a.compile(),this.passes.forEach((e=>e.run(i))),this.compilationUnits.push(i)}static isTypeScriptSourceFile(e){let t=e.fileName;return!(!t||!t.endsWith(".ts"))}compilePrologue(e,t,r){let n;n=_.CmdOptions.isModules()?new D.ModuleScope(e):new D.GlobalScope(e);let i=t&&_.CmdOptions.needRecordType()&&A.isTsFile;i&&T.TypeRecorder.createInstance();let a=new b.Recorder(e,n,this,i,A.isTsFile,r);a.record(),(0,c.addVariableToScope)(a,i);let o=this.postOrderAnalysis(n);for(let e of o)this.addCompilationUnit(e.getBindingNode(),e,a);return a}showStatistics(){_.CmdOptions.showHistogramStatistics()&&this.statistics.printHistogram(!1),_.CmdOptions.showHoistingStatistics()&&this.statistics.printHoistStatistics()}getFuncId(e){if(this.funcIdMap.has(e))return this.funcIdMap.get(e);if(s.isSourceFile(e))return this.funcIdMap.set(e,0),0;let t=this.functionId++;return this.funcIdMap.set(e,t),t}getFuncInternalName(e,t){let r;if(s.isSourceFile(e))r="func_main_0";else if(s.isConstructorDeclaration(e)){let t=e.parent;r=this.getInternalNameForCtor(t,e)}else{let n=e;if(r=t.getScopeOfNode(n).getFuncName(),""==r)return`#${this.getFuncId(n)}#`;if("func_main_0"==r)return`#${this.getFuncId(n)}#${r}`;let i=t.getFuncNameMap();if(!i.has(r))throw new Error("the function name is missing from the name map");i.get(r)>1&&(r=`#${this.getFuncId(n)}#${r}`),-1==r.lastIndexOf(".")&&-1==r.lastIndexOf("\\")||(r=`#${this.getFuncId(n)}#`)}return r}getInternalNameForCtor(e,t){let r=(0,S.getClassNameForConstructor)(e);return r=`#${this.getFuncId(t)}#${r}`,-1!=r.lastIndexOf(".")&&(r=`#${this.getFuncId(t)}#`),r}writeBinaryFile(e){this.needDumpHeader&&(l.AssemblyDumper.dumpHeader(),this.needDumpHeader=!1),new l.AssemblyDumper(e).dump()}getParametersCount(e){let t=3;return e.kind==s.SyntaxKind.SourceFile||(t+=e.parameters.length),t}}t.CompilerDriver=A,A.isTsFile=!1},"./src/compilerStatistics.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompilerStatistics=t.HoistingType=void 0;const n=r("./src/irnodes.ts"),i=r("./src/log.ts");var a;(a=t.HoistingType||(t.HoistingType={}))[a.GLOBAL_VAR=0]="GLOBAL_VAR",a[a.LOCAL_VAR=1]="LOCAL_VAR",a[a.GLOBAL_FUNCTION=2]="GLOBAL_FUNCTION",a[a.LOCAL_FUNCTION=3]="LOCAL_FUNCTION";class o{constructor(e,t){this.count=1,this.relatedInsns=[],this.nodeMap=new Map,this.instSize=e,t&&this.relatedInsns.push(t)}add(e){this.count+=e,this.relatedInsns.forEach((t=>{t.num+=e}))}set(e){this.count=e,this.relatedInsns.forEach((t=>{t.num=e}))}getCount(){return this.count}getInstSize(){return this.instSize}getTotalSize(){return this.count*this.instSize}getRelatedInsns(){return this.relatedInsns}getNodeMap(){return this.nodeMap}updateNodeMap(e){if(this.nodeMap.has(e)){let t=this.nodeMap.get(e);this.nodeMap.set(e,t+1)}else this.nodeMap.set(e,1)}unionNodeMap(e){e.forEach(((e,t)=>{if(this.nodeMap.has(t)){let r=this.nodeMap.get(t);r+=e,this.nodeMap.set(t,r)}else this.nodeMap.set(t,e)}))}getSavedSizeIfRemoved(e){let t=this.getTotalSize();return this.relatedInsns.forEach((r=>{let n=e.getStatistics().get(r.name);n&&(t+=r.num*n.getInstSize())})),t}static createItemValue(e,t){let r;return"lda.str"==e&&(r={name:"sta.dyn",num:1}),new o(t,r)}}class s{constructor(e){this.insHistogram=new Map,this.funcName=e}getInsName(e){return e.kind==n.IRNodeKind.LABEL?"Label":e.kind==n.IRNodeKind.CALL||e.kind==n.IRNodeKind.CALL_SHORT||e.kind==n.IRNodeKind.CALL_RANGE?e.operands[0].split(".")[2]:e.getMnemonic()}unionStatistics(e){e.getStatistics().forEach(((e,t)=>{if(this.insHistogram.has(t)){let r=this.insHistogram.get(t);r.add(e.getCount()),r.unionNodeMap(e.getNodeMap()),this.insHistogram.set(t,r)}else this.insHistogram.set(t,e)}))}catchStatistics(e){e.getInsns().forEach((e=>{let t=this.getInsName(e),r=(0,n.getInstructionSize)(e.kind),a=e.getNodeName();if(t.length<=1&&(0,i.LOGD)("this IRNode had no key: "+e.toString()),this.insHistogram.has(t)){let e=this.insHistogram.get(t);e.updateNodeMap(a),e.add(1),this.insHistogram.set(t,e)}else{let e=o.createItemValue(t,r);e.updateNodeMap(a),this.insHistogram.set(t,e)}}))}getStatistics(){return this.insHistogram}getTotal(){let e=0,t=0;return this.insHistogram.forEach(((r,n)=>{e+=r.getCount(),t+=r.getTotalSize()})),[e,t]}print(){let e=this.getTotal()[0],t=this.getTotal()[1];(0,i.LOGD)("\n"),(0,i.LOGD)("Histogram:","====== ("+this.funcName+") ======"),(0,i.LOGD)("op code\t\t\tinsns number\tins size\ttotal size\tsize percentage"),this.insHistogram.forEach(((e,r)=>{r.length<8?(0,i.LOGD)(r+"\t\t\t"+e.getCount()+"\t\t"+e.getInstSize()+"\t\t"+e.getTotalSize()+"\t\t"+e.getSavedSizeIfRemoved(this)+"\t"+Math.round(e.getSavedSizeIfRemoved(this)/t*100)+"%"):r.length<16?(0,i.LOGD)(r+"\t\t"+e.getCount()+"\t\t"+e.getInstSize()+"\t\t"+e.getTotalSize()+"\t\t"+e.getSavedSizeIfRemoved(this)+"\t"+Math.round(e.getSavedSizeIfRemoved(this)/t*100)+"%"):(0,i.LOGD)(r+"\t"+e.getCount()+"\t\t"+e.getInstSize()+"\t\t"+e.getTotalSize()+"\t\t"+e.getSavedSizeIfRemoved(this)+"\t"+Math.round(e.getSavedSizeIfRemoved(this)/t*100)+"%")})),(0,i.LOGD)("total insns number : \t"+e+"\t\ttotal Size : \t"+t),(0,i.LOGD)("\n"),this.insHistogram.forEach(((e,t)=>{e.getNodeMap().size>1&&((0,i.LOGD)("op code: "+t),e.getNodeMap().forEach(((t,r)=>{r.length<8?(0,i.LOGD)("Node: \t"+r+"\t\t\t\t\t\tnum: \t"+t+"\t\t"+Math.round(t/e.getCount()*100)+"%"):r.length<16?(0,i.LOGD)("Node: \t"+r+"\t\t\t\t\tnum: \t"+t+"\t\t"+Math.round(t/e.getCount()*100)+"%"):r.length<24?(0,i.LOGD)("Node: \t"+r+"\t\t\t\tnum: \t"+t+"\t\t"+Math.round(t/e.getCount()*100)+"%"):(0,i.LOGD)("Node: \t"+r+"\t\t\tnum: \t"+t+"\t\t"+Math.round(t/e.getCount()*100)+"%")})),(0,i.LOGD)("\n"))}))}}t.CompilerStatistics=class{constructor(){this.histogramMap=new Map,this.numOfHoistingCases=[0,0,0,0],this.hoistingRelatedInsnNum=0}addHoistingRelatedInsnNum(e){this.hoistingRelatedInsnNum+=e}addNumOfHoistCases(e){this.numOfHoistingCases[e]++}getInsHistogramStatistics(e){let t=new s(e.internalName);t.catchStatistics(e),this.histogramMap.set(e.internalName,t)}printHistogram(e){let t=new s("Total");this.histogramMap.forEach(((r,n)=>{t.unionStatistics(r),e&&r.print()})),t.print()}printHoistStatistics(){(0,i.LOGD)("\n"),(0,i.LOGD)("HoistingRelated Histogram:","======whole file======="),(0,i.LOGD)("global var\tlocal var\tglobal function\tlocal function"),(0,i.LOGD)(this.numOfHoistingCases[0]+"\t\t"+this.numOfHoistingCases[1]+"\t\t"+this.numOfHoistingCases[2]+"\t\t"+this.numOfHoistingCases[3]),(0,i.LOGD)("\n"),(0,i.LOGD)("Approximately hoisting related insns nums"),(0,i.LOGD)(this.hoistingRelatedInsnNum)}}},"./src/compilerUtils.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileDestructuring=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/lreference.ts"),c=r("./src/base/util.ts"),l=r("./src/base/vregisterCache.ts"),u=r("./src/irnodes.ts"),_=a(r("./src/jshelpers.js")),d=r("./src/statement/tryStatement.ts"),p=r("./src/base/iterator.ts");function f(e,t,r,n,i,a){let c=n.getTemp(),_=n.getTemp(),d=new u.Label,p=new u.Label,f=e,g=s.LReference.generateLReference(i,f,a);n.createEmptyArray(e),n.storeAccumulator(e,c),n.loadAccumulatorInt(e,0),n.storeAccumulator(e,_),n.label(e,d),t.iteratorComplete(r),n.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,l.getVregisterCache)(n,l.CacheList.True),p),t.iteratorValue(r),n.storeObjProperty(e,c,_),n.loadAccumulatorInt(e,1),n.binary(e,o.SyntaxKind.PlusToken,_),n.storeAccumulator(e,_),t.callNext(r),n.branch(e,d),n.label(e,p),n.loadAccumulator(e,c),g.setValue(),n.freeTemps(c,_)}function g(e,t,r,n,i){let a=o.isBindingElement(e)?e.name:e.expression,c=s.LReference.generateLReference(i,a,!0),u=n.getTemp();0==t.length&&(n.loadAccumulator(e,(0,l.getVregisterCache)(n,l.CacheList.undefined)),n.storeAccumulator(e,u),t.push(u)),n.createObjectWithExcludedKeys(e,r,t),c.setValue(),n.freeTemps(u)}function m(e){return!!e.dotDotDotToken}t.compileDestructuring=function(e,t,r){let n=t.getTemp();t.storeAccumulator(e,n),(0,c.isArrayBindingOrAssignmentPattern)(e)&&function(e,t,r){let n=t.getTemp(),i=t.getTemp(),a=t.getTemp(),c=t.getTemp(),_=t.getTemp(),g=t.getTemp(),m=!!o.isArrayBindingPattern(e),y=new p.Iterator({iterator:n,nextMethod:i},a,c,t,e);y.getIterator();let h=new u.Label,v=new u.Label,b=new u.Label,x=new u.Label,D=new u.Label,S=new u.Label;new d.CatchTable(t,b,new d.LabelPair(h,v)),t.label(e,h);for(let n=0;n{t.debugPosInfo.setSourecLineNum(r),t.debugPosInfo.setSourecColumnNum(n),t.debugPosInfo.setDebugPosInfoNodeState(e)}))}static matchFormat(e){let t=0,r=e.getFormats();for(let n=0;nt?i:t);return t}static getIRNodeWholeLength(e){if(e instanceof c.Label||e instanceof c.DebugInsStartPlaceHolder||e instanceof c.DebugInsEndPlaceHolder)return 0;let t=1;if(!e.getFormats()[0])return 0;let r=this.matchFormat(e),n=e.getFormats()[r];for(let r=0;r0&&t[n-1]instanceof c.Label&&(t[n-1].debugPosInfo=t[n].debugPosInfo)}}static setVariablesDebugInfo(e){let t=e.getInsns();for(let e=0;e{t.getName2variable().forEach(((r,n)=>{if(!r.hasAlreadyBinded())return;if("0this"==r.getName()||"0newTarget"==r.getName())return;let i=new u(n,"any","any",r.getVreg().num);i.setStart(t.getScopeStartInsIdx()),i.setLength(t.getScopeEndInsIdx()-t.getScopeStartInsIdx()),e.addDebugVariableInfo(i)}))}))}static setDebugInfo(e){if(d.setPosDebugInfo(e),s.CmdOptions.isDebugMode())return d.setVariablesDebugInfo(e),void d.clearScopeArray()}static setSourceFileDebugInfo(e,t){let r=l.getSourceFileOfNode(t);s.CmdOptions.getSourceFile().length>0?e.setSourceFileDebugInfo(s.CmdOptions.getSourceFile()):e.setSourceFileDebugInfo(r.fileName),s.CmdOptions.isDebugMode()&&o.isSourceFile(t)&&e.setSourceCodeDebugInfo(t.text)}static copyDebugInfo(e,t){t.forEach((t=>t.debugPosInfo=e.debugPosInfo))}static addDebugIns(e,t,r){if(!s.CmdOptions.isDebugMode())return;let n,i=t.getInsns();r?(n=new c.DebugInsStartPlaceHolder(e),d.addScope(e)):n=new c.DebugInsEndPlaceHolder(e),i.push(n)}}t.DebugInfo=d,d.scopeArray=[]},"./src/diagnostic.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.getDiagnostic=t.DiagnosticCode=t.createDiagnostic=t.createFileDiagnostic=t.createDiagnosticOnFirstToken=t.printDiagnostic=t.DiagnosticError=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/log.ts");function l(e,t,r,...n){let i=s.getSpanOfTokenAtPosition(e,t.pos);return s.createFileDiagnostic(e,i.start,i.length,r,...n)}function u(e,t,r,...n){let i,a=s.getErrorSpanForNode(e,t);switch(t.kind){case o.SyntaxKind.Identifier:case o.SyntaxKind.PrivateIdentifier:i=s.createFileDiagnostic(e,a.start,a.length,r,o.idText(t));break;case o.SyntaxKind.ReturnStatement:i=l(e,t,r,...n);break;default:i=s.createFileDiagnostic(e,a.start,a.length,r,...n)}return i}function _(e,t,r,n,i,a){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i}}var d;t.DiagnosticError=class{constructor(e,t,r,n){this.code=t,this.irnode=e,this.file=r||void 0,this.args=n||[]}},t.printDiagnostic=function(e){let t=o.flattenDiagnosticMessageText(e.messageText,"\n");if(e.file&&null!=e.start){let{line:r,character:n}=e.file.getLineAndCharacterOfPosition(e.start);(0,c.LOGE)(`${e.file.fileName} (${r+1},${n+1})`,`${t}`)}else(0,c.LOGE)("Error",t)},t.createDiagnosticOnFirstToken=l,t.createFileDiagnostic=u,t.createDiagnostic=function(e,t,r,...n){return t?e?u(e,t,r,...n):s.createDiagnosticForNode(t,r,...n):s.createCompilerDiagnostic(r,...n)},(d=t.DiagnosticCode||(t.DiagnosticCode={}))[d.Identifier_expected=1003]="Identifier_expected",d[d.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma=1013]="A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma",d[d.A_rest_parameter_must_be_last_in_a_parameter_list=1014]="A_rest_parameter_must_be_last_in_a_parameter_list",d[d.Parameter_cannot_have_question_mark_and_initializer=1015]="Parameter_cannot_have_question_mark_and_initializer",d[d.A_required_parameter_cannot_follow_an_optional_parameter=1016]="A_required_parameter_cannot_follow_an_optional_parameter",d[d.The_readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature=1024]="The_readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature",d[d.Accessibility_modifier_already_seen=1028]="Accessibility_modifier_already_seen",d[d._0_modifier_must_precede_1_modifier=1029]="_0_modifier_must_precede_1_modifier",d[d._0_modifier_already_seen=1030]="_0_modifier_already_seen",d[d._0_modifier_cannot_appear_on_class_elements_of_this_kind=1031]="_0_modifier_cannot_appear_on_class_elements_of_this_kind",d[d.A_declare_modifier_cannot_be_used_in_an_already_ambient_context=1038]="A_declare_modifier_cannot_be_used_in_an_already_ambient_context",d[d._0_modifier_cannot_be_used_in_an_ambient_context=1040]="_0_modifier_cannot_be_used_in_an_ambient_context",d[d._0_modifier_cannot_be_used_here=1042]="_0_modifier_cannot_be_used_here",d[d._0_modifier_cannot_appear_on_a_module_or_namespace_element=1044]="_0_modifier_cannot_appear_on_a_module_or_namespace_element",d[d.A_rest_parameter_cannot_be_optional=1047]="A_rest_parameter_cannot_be_optional",d[d.A_rest_parameter_cannot_have_an_initializer=1048]="A_rest_parameter_cannot_have_an_initializer",d[d._0_modifier_cannot_appear_on_a_type_member=1070]="_0_modifier_cannot_appear_on_a_type_member",d[d._0_modifier_cannot_appear_on_an_index_signature=1071]="_0_modifier_cannot_appear_on_an_index_signature",d[d.A_0_modifier_cannot_be_used_with_an_import_declaration=1079]="A_0_modifier_cannot_be_used_with_an_import_declaration",d[d._0_modifier_cannot_appear_on_a_constructor_declaration=1089]="_0_modifier_cannot_appear_on_a_constructor_declaration",d[d._0_modifier_cannot_appear_on_a_parameter=1090]="_0_modifier_cannot_appear_on_a_parameter",d[d.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",d[d.Invalid_use_of_0_in_strict_mode=1100]="Invalid_use_of_0_in_strict_mode",d[d.A_with_statements_are_not_allowed_in_strict_mode=1101]="A_with_statements_are_not_allowed_in_strict_mode",d[d.A_delete_cannot_be_called_on_an_identifier_in_strict_mode=1102]="A_delete_cannot_be_called_on_an_identifier_in_strict_mode",d[d.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",d[d.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",d[d.Jump_target_cannot_cross_function_boundary=1107]="Jump_target_cannot_cross_function_boundary",d[d.A_return_statement_can_only_be_used_within_a_function_body=1108]="A_return_statement_can_only_be_used_within_a_function_body",d[d.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",d[d.Duplicate_label_0=1114]="Duplicate_label_0",d[d.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",d[d.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",d[d.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",d[d.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name=1118]="An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name",d[d.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",d[d.Octal_literals_are_not_allowed_in_strict_mode=1121]="Octal_literals_are_not_allowed_in_strict_mode",d[d.Octal_escape_sequences_are_not_allowed_in_strict_mode=1122]="Octal_escape_sequences_are_not_allowed_in_strict_mode",d[d.Variable_declaration_list_cannot_be_empty=1123]="Variable_declaration_list_cannot_be_empty",d[d.Line_break_not_permitted_here=1142]="Line_break_not_permitted_here",d[d.The_const_declarations_can_only_be_declared_inside_a_block=1156]="The_const_declarations_can_only_be_declared_inside_a_block",d[d.The_const_declarations_must_be_initialized=1155]="The_const_declarations_must_be_initialized",d[d.The_let_declarations_can_only_be_declared_inside_a_block=1157]="The_let_declarations_can_only_be_declared_inside_a_block",d[d.Unterminated_regular_expression_literal=1161]="Unterminated_regular_expression_literal",d[d.An_object_member_cannot_be_declared_optional=1162]="An_object_member_cannot_be_declared_optional",d[d.A_yield_expression_is_only_allowed_in_a_generator_body=1163]="A_yield_expression_is_only_allowed_in_a_generator_body",d[d.A_comma_expression_is_not_allowed_in_a_computed_property_name=1171]="A_comma_expression_is_not_allowed_in_a_computed_property_name",d[d.The_extends_clause_already_seen=1172]="The_extends_clause_already_seen",d[d.Classes_can_only_extend_a_single_class=1174]="Classes_can_only_extend_a_single_class",d[d.The_implements_clause_already_seen=1175]="The_implements_clause_already_seen",d[d.Property_destructuring_pattern_expected=1180]="Property_destructuring_pattern_expected",d[d.A_destructuring_declaration_must_have_an_initializer=1182]="A_destructuring_declaration_must_have_an_initializer",d[d.A_rest_element_cannot_have_an_initializer=1186]="A_rest_element_cannot_have_an_initializer",d[d.A_parameter_property_may_not_be_declared_using_a_binding_pattern=1187]="A_parameter_property_may_not_be_declared_using_a_binding_pattern",d[d.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",d[d.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",d[d.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",d[d.Line_terminator_not_permitted_before_arrow=1200]="Line_terminator_not_permitted_before_arrow",d[d.Decorators_are_not_valid_here=1206]="Decorators_are_not_valid_here",d[d.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name=1207]="Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name",d[d.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode=1210]="Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode",d[d.Identifier_expected_0_is_a_reserved_word_in_strict_mode=1212]="Identifier_expected_0_is_a_reserved_word_in_strict_mode",d[d.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode=1213]="Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode",d[d.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",d[d.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",d[d.An_export_declaration_can_only_be_used_in_a_module=1233]="An_export_declaration_can_only_be_used_in_a_module",d[d.The_abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration=1242]="The_abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration",d[d._0_modifier_cannot_be_used_with_1_modifier=1243]="_0_modifier_cannot_be_used_with_1_modifier",d[d.Abstract_methods_can_only_appear_within_an_abstract_class=1244]="Abstract_methods_can_only_appear_within_an_abstract_class",d[d.A_class_member_cannot_have_the_0_keyword=1248]="A_class_member_cannot_have_the_0_keyword",d[d.A_decorator_can_only_decorate_a_method_implementation_not_an_overload=1249]="A_decorator_can_only_decorate_a_method_implementation_not_an_overload",d[d.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",d[d.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode=1251]="Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode",d[d.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode=1252]="Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode",d[d.A_definite_assignment_assertion_is_not_permitted_in_this_context=1255]="A_definite_assignment_assertion_is_not_permitted_in_this_context",d[d.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",d[d.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions=1263]="Declarations_with_initializers_cannot_also_have_definite_assignment_assertions",d[d.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations=1264]="Declarations_with_definite_assignment_assertions_must_also_have_type_annotations",d[d.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",d[d.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=1312]="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",d[d.A_parameter_property_cannot_be_declared_using_a_rest_parameter=1317]="A_parameter_property_cannot_be_declared_using_a_rest_parameter",d[d.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",d[d.use_strict_directive_cannot_be_used_with_non_simple_parameter_list=1347]="use_strict_directive_cannot_be_used_with_non_simple_parameter_list",d[d.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",d[d.Duplicate_identifier_0=2300]="Duplicate_identifier_0",d[d.The_super_can_only_be_referenced_in_a_derived_class=2335]="The_super_can_only_be_referenced_in_a_derived_class",d[d.The_super_cannot_be_referenced_in_constructor_arguments=2336]="The_super_cannot_be_referenced_in_constructor_arguments",d[d.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",d[d.The_super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class=2338]="The_super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class",d[d.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter=2358]="The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter",d[d.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type=2359]="The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type",d[d.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",d[d.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter=2361]="The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter",d[d.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",d[d.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",d[d.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",d[d.Multiple_constructor_implementations_are_not_allowed=2392]="Multiple_constructor_implementations_are_not_allowed",d[d.Declaration_name_conflicts_with_built_in_global_identifier_0=2397]="Declaration_name_conflicts_with_built_in_global_identifier_0",d[d.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",d[d.The_super_cannot_be_referenced_in_a_computed_property_name=2466]="The_super_cannot_be_referenced_in_a_computed_property_name",d[d.A_rest_element_must_be_last_in_a_destructuring_pattern=2462]="A_rest_element_must_be_last_in_a_destructuring_pattern",d[d.The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations=2480]="The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations",d[d.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",d[d.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",d[d.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",d[d.A_rest_element_cannot_contain_a_binding_pattern=2501]="A_rest_element_cannot_contain_a_binding_pattern",d[d.The_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions=2660]="The_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions",d[d.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",d[d.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",d[d.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",d[d.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",d[d.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",d[d.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",d[d._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",d[d.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor=17013]="Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor",d[d.An_accessibility_modifier_cannot_be_used_with_a_private_identifier=18010]="An_accessibility_modifier_cannot_be_used_with_a_private_identifier",d[d.Private_identifiers_are_not_allowed_outside_class_bodies=18016]="Private_identifiers_are_not_allowed_outside_class_bodies",d[d._0_modifier_cannot_be_used_with_a_private_identifier=18019]="_0_modifier_cannot_be_used_with_a_private_identifier",d[d.In_strict_mode_code_functions_can_only_be_declared_at_top_level_or_inside_a_block=19e3]="In_strict_mode_code_functions_can_only_be_declared_at_top_level_or_inside_a_block",d[d.Class_Declaration_can_only_be_declared_at_top_level_or_inside_a_block=19001]="Class_Declaration_can_only_be_declared_at_top_level_or_inside_a_block",d[d.Incorrect_regular_expression=19002]="Incorrect_regular_expression",d[d.Invalid_regular_expression_Colon_0_Colon_Invalid_escape=19003]="Invalid_regular_expression_Colon_0_Colon_Invalid_escape",d[d._8_and_9_are_not_allowed_in_strict_mode=19004]="_8_and_9_are_not_allowed_in_strict_mode",d[d.const_and_let_declarations_not_allowed_in_statement_positions=19005]="const_and_let_declarations_not_allowed_in_statement_positions",d[d.Getter_must_not_have_any_formal_parameters=19006]="Getter_must_not_have_any_formal_parameters",d[d.Class_declaration_not_allowed_in_statement_position=19007]="Class_declaration_not_allowed_in_statement_position",d[d.Lexical_declaration_let_not_allowed_in_statement_position=19008]="Lexical_declaration_let_not_allowed_in_statement_position",d[d.Lexical_declaration_const_not_allowed_in_statement_position=19009]="Lexical_declaration_const_not_allowed_in_statement_position",d[d.Invalid_regular_expression_flag_0=19010]="Invalid_regular_expression_flag_0",t.getDiagnostic=function(e){switch(e){case 1003:return _(1003,o.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected.");case 1013:return _(1013,o.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma.");case 1014:return _(1014,o.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list.");case 1015:return _(1015,o.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer.");case 1016:return _(1016,o.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter.");case 1024:return _(1024,o.DiagnosticCategory.Error,"The_readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","The 'readonly' modifier can only appear on a property declaration or index signature.");case 1028:return _(1028,o.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen.");case 1029:return _(1029,o.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier.");case 1030:return _(1030,o.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen.");case 1031:return _(1031,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind.");case 1038:return _(1038,o.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context.");case 1040:return _(1040,o.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context.");case 1042:return _(1042,o.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here.");case 1044:return _(1044,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element.");case 1047:return _(1047,o.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional.");case 1048:return _(1048,o.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer.");case 1070:return _(1070,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member.");case 1071:return _(1071,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature.");case 1079:return _(1079,o.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration.");case 1089:return _(1089,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration.");case 1090:return _(1090,o.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter.");case 1091:return _(1091,o.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.");case 1100:return _(1100,o.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode.");case 1101:return _(1101,o.DiagnosticCategory.Error,"A_with_statements_are_not_allowed_in_strict_mode_1101","A 'with' statements are not allowed in strict mode.");case 1102:return _(1102,o.DiagnosticCategory.Error,"A_delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","A 'delete' cannot be called on an identifier in strict mode.");case 1104:return _(1104,o.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.");case 1105:return _(1105,o.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.");case 1107:return _(1107,o.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary.");case 1108:return _(1108,o.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.");case 1113:return _(1113,o.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.");case 1114:return _(1114,o.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'.");case 1115:return _(1115,o.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.");case 1116:return _(1116,o.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.");case 1117:return _(1117,o.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.");case 1118:return _(1118,o.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.");case 1119:return _(1119,o.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.");case 1121:return _(1121,o.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode.");case 1122:return _(1122,o.DiagnosticCategory.Error,"Octal_escape_sequences_are_not_allowed_in_strict_mode_1122","Octal escape sequences are not allowed in strict mode.");case 1123:return _(1123,o.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty.");case 1142:return _(1142,o.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here.");case 1156:return _(1156,o.DiagnosticCategory.Error,"The_const_declarations_can_only_be_declared_inside_a_block_1156","The 'const' declarations can only be declared inside a block.");case 1155:return _(1155,o.DiagnosticCategory.Error,"The_const_declarations_must_be_initialized_1155","The 'const' declarations must be initialized.");case 1157:return _(1157,o.DiagnosticCategory.Error,"The_let_declarations_can_only_be_declared_inside_a_block_1157","The 'let' declarations can only be declared inside a block.");case 1161:return _(1161,o.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal.");case 1162:return _(1162,o.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional.");case 1163:return _(1163,o.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body.");case 1171:return _(1171,o.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.");case 1172:return _(1172,o.DiagnosticCategory.Error,"The_extends_clause_already_seen_1172","The 'extends' clause already seen.");case 1174:return _(1174,o.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class.");case 1175:return _(1175,o.DiagnosticCategory.Error,"The_implements_clause_already_seen_1175","The 'implements' clause already seen.");case 1180:return _(1180,o.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected.");case 1182:return _(1182,o.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer.");case 1186:return _(1186,o.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A_rest_element_cannot_have_an_initializer.");case 1187:return _(1187,o.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.");case 1188:return _(1188,o.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.");case 1189:return _(1189,o.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.");case 1190:return _(1190,o.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.");case 1200:return _(1200,o.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow.");case 1206:return _(1206,o.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here.");case 1207:return _(1207,o.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.");case 1210:return _(1210,o.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode.");case 1212:return _(1212,o.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode.");case 1213:return _(1213,o.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.");case 1214:return _(1214,o.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.");case 1232:return _(1232,o.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.");case 1233:return _(1233,o.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module.");case 1242:return _(1242,o.DiagnosticCategory.Error,"The_abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","The 'abstract' modifier can only appear on a class, method, or property declaration.");case 1243:return _(1243,o.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier.");case 1244:return _(1244,o.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class.");case 1248:return _(1248,o.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword.");case 1249:return _(1249,o.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.");case 1250:return _(1250,o.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'.");case 1251:return _(1251,o.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.");case 1252:return _(1252,o.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.");case 1255:return _(1255,o.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context.");case 1262:return _(1262,o.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.");case 1263:return _(1263,o.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions.");case 1264:return _(1264,o.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations.");case 1308:return _(1308,o.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.");case 1312:return _(1312,o.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.");case 1317:return _(1317,o.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter.");case 1319:return _(1319,o.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.");case 1347:return _(1347,o.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.");case 1359:return _(1359,o.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.");case 2300:return _(2300,o.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'.");case 2335:return _(2335,o.DiagnosticCategory.Error,"The_super_can_only_be_referenced_in_a_derived_class_2335","The 'super' can only be referenced in a derived class.");case 2336:return _(2336,o.DiagnosticCategory.Error,"The_super_cannot_be_referenced_in_constructor_arguments_2336","The 'super' cannot be referenced in constructor arguments.");case 2337:return _(2337,o.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.");case 2338:return _(2338,o.DiagnosticCategory.Error,"The_super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_2338","The 'super' property access is permitted only in a constructor, member function, or member accessor of a derived class.");case 2358:return _(2358,o.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.");case 2359:return _(2359,o.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.");case 2360:return _(2360,o.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'.");case 2361:return _(2361,o.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter.");case 2362:return _(2362,o.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.");case 2363:return _(2363,o.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.");case 2364:return _(2364,o.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.");case 2392:return _(2392,o.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed.");case 2397:return _(2397,o.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'.");case 2404:return _(2404,o.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.");case 2466:return _(2466,o.DiagnosticCategory.Error,"The_super_cannot_be_referenced_in_a_computed_property_name_2466","The 'super' cannot be referenced in a computed property name.");case 2462:return _(2462,o.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern.");case 2480:return _(2480,o.DiagnosticCategory.Error,"The_let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","The 'let' is not allowed to be used as a name in 'let' or 'const' declarations.");case 2483:return _(2483,o.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.");case 2487:return _(2487,o.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.");case 2491:return _(2491,o.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.");case 2501:return _(2501,o.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern.");case 2660:return _(2660,o.DiagnosticCategory.Error,"The_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","The 'super' can only be referenced in members of derived classes or object literal expressions.");case 2661:return _(2661,o.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.");case 2695:return _(2695,o.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);case 2701:return _(2701,o.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.");case 2778:return _(2778,o.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.");case 2779:return _(2779,o.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.");case 2781:return _(2781,o.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.");case 17012:return _(17012,o.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}'?");case 17013:return _(17013,o.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.");case 18010:return _(18010,o.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier.");case 18016:return _(18016,o.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies.");case 18019:return _(18019,o.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier.");case 19e3:return _(19e3,o.DiagnosticCategory.Error,"In_strict_mode_code_functions_can_only_be_declared_at_top_level_or_inside_a_block_19000","In strict mode code, functions can only be declared at top level or inside a block.");case 19001:return _(19001,o.DiagnosticCategory.Error,"Class_Declaration_can_only_be_declared_at_top_level_or_inside_a_block_19001","Class Declaration can only be declared at top level or inside a block.");case 19002:return _(19002,o.DiagnosticCategory.Error,"Incorrect_regular_expression_19002","Incorrect regular expression");case 19003:return _(19003,o.DiagnosticCategory.Error,"Invalid_regular_expression_Colon_0_Colon_Invalid_escape_19003","Invalid regular expression: '{0}': Invalid escape");case 19004:return _(19004,o.DiagnosticCategory.Error,"_8_and_9_are_not_allowed_in_strict_mode_19004","\\8 and \\9 are not allowed in strict mode");case 19005:return _(19005,o.DiagnosticCategory.Error,"const_and_let_declarations_not_allowed_in_statement_positions_19005","const and let declarations not allowed in statement positions");case 19006:return _(19006,o.DiagnosticCategory.Error,"Getter_must_not_have_any_formal_parameters_19006","Getter must not have any formal parameters");case 19007:return _(19007,o.DiagnosticCategory.Error,"Class_declaration_not_allowed_in_statement_position_19007","Class declaration not allowed in statement position");case 19008:return _(19008,o.DiagnosticCategory.Error,"Lexical_declaration_let_not_allowed_in_statement_position_19008","Lexical declaration 'let' not allowed in statement position");case 19009:return _(19009,o.DiagnosticCategory.Error,"Lexical_declaration_const_not_allowed_in_statement_position_19009","Lexical declaration 'const' not allowed in statement position");case 19010:return _(19010,o.DiagnosticCategory.Error,"Invalid_regular_expression_flag_0_19010","Invalid regular expression flag '{0}'");default:return void console.log("The syntax error code is not supported.")}}},"./src/expression/arrayLiteralExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createArrayFromElements=t.compileArrayLiteralExpression=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/base/literal.ts"),l=r("./src/base/properties.ts"),u=r("./src/pandagen.ts"),_=r("./src/expression/numericLiteral.ts");function d(e,t,r,n){let i=t.getPandaGen();if(0==r.length)return i.createEmptyArray(e),void i.storeAccumulator(e,n);let a=new c.LiteralBuffer,s=i.getTemp(),u=!1,_=!1;for(let e=0;e{let i=n.getTemp();e.compileExpression(t),n.storeAccumulator(t,i),r.push(i)})),i}function f(e,t,r,n){let i,a=n.getPandaGen(),s=p(n,e,t),l=e.expression;switch(l.kind){case o.SyntaxKind.ElementAccessExpression:i=l.argumentExpression;break;case o.SyntaxKind.PropertyAccessExpression:i=l.name;break;default:i=e}if(!s)return void a.call(i,[...t],r);let _=t[0],d=r?t[1]:(0,c.getVregisterCache)(a,c.CacheList.undefined),f=a.getTemp();(0,u.createArrayFromElements)(e,n,e.arguments,f),a.callSpread(i,_,d,f),a.freeTemps(f)}t.compileCallExpression=function(e,t,r){let n=t.getPandaGen();if((e.expression.kind==o.SyntaxKind.CallExpression||e.expression.kind==o.SyntaxKind.NewExpression)&&t.compileFunctionReturnThis(e.expression))return;if(e.expression.kind==o.SyntaxKind.SuperKeyword){let r=[],i=p(t,e,r);return(0,l.compileSuperCall)(t,e,r,i),void n.freeTemps(...r)}let{arguments:i,passThis:a}=d(e.expression,t);f(e,i,a,t),n.freeTemps(...i)},t.getHiddenParameters=d,t.emitCall=f},"./src/expression/compileCommaListExpression.ts":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileCommaListExpression=void 0,t.compileCommaListExpression=function(e,t){t.elements.forEach((t=>{e.compileExpression(t)}))}},"./src/expression/memberAccessExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isValidIndex=t.getObjAndProp=t.compileMemberAccessExpression=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/statement/classStatement.ts"),l=Math.pow(2,32)-1;function u(e,t,r,n){let i=n.getPandaGen(),a=t,c=r;if(s.isSuperProperty(e)||(n.compileExpression(e.expression),i.storeAccumulator(e.expression,t)),o.isPropertyAccessExpression(e)){if(e.name.kind!=o.SyntaxKind.Identifier)throw new Error("Property name of type private Identifier is unimplemented");c=s.getTextOfIdentifierOrLiteral(e.name)}else if(o.isStringLiteral(e.argumentExpression)){c=s.getTextOfIdentifierOrLiteral(e.argumentExpression);let t=Number(c);isNaN(Number.parseFloat(c))||isNaN(t)||!_(t)||String(t)!=c||(c=t)}else if(o.isNumericLiteral(e.argumentExpression))c=parseFloat(s.getTextOfIdentifierOrLiteral(e.argumentExpression)),_(c)||(c=c.toString());else if(o.isPrefixUnaryExpression(e.argumentExpression)&&o.isNumericLiteral(e.argumentExpression.operand)&&(e.argumentExpression.operator==o.SyntaxKind.MinusToken||e.argumentExpression.operator==o.SyntaxKind.PlusToken)){let t=e.argumentExpression,r=parseFloat(s.getTextOfIdentifierOrLiteral(t.operand));c=t.operator==o.SyntaxKind.MinusToken?0===r?r:"-"+r.toString():_(r)?r:"+"+r.toString()}else n.compileExpression(e.argumentExpression),i.storeAccumulator(e.argumentExpression,r),c=r;return{obj:a,prop:c}}function _(e){return!!(e>=0&&e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileNewExpression=void 0;const n=r("./src/base/util.ts"),i=r("./src/expression/arrayLiteralExpression.ts");t.compileNewExpression=function(e,t){let r=t.getPandaGen(),a=r.getTemp(),o=r.getTemp();if(t.compileExpression(e.expression),r.storeAccumulator(e,a),r.moveVreg(e,o,a),(0,n.containSpreadElement)(e.arguments)){let n=r.getTemp();return(0,i.createArrayFromElements)(e,t,e.arguments,n),r.newObjSpread(e,a,o),void r.freeTemps(a,o,n)}let s=2;e.arguments&&(s+=e.arguments.length);let c=new Array(s);c[0]=a,c[1]=o;let l=2;e.arguments&&e.arguments.forEach((n=>{let i=r.getTemp();t.compileExpression(n),r.storeAccumulator(e,i),c[l++]=i})),r.newObject(e,c),r.freeTemps(...c)}},"./src/expression/numericLiteral.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileNumericLiteral=t.isInteger=void 0;const o=r("./src/base/vregisterCache.ts"),s=a(r("./src/jshelpers.js")),c=Math.pow(2,31)-1;function l(e){return!(!Number.isSafeInteger(e)||e>c)}t.isInteger=l,t.compileNumericLiteral=function(e,t){let r=s.getTextOfIdentifierOrLiteral(t),n=Number.parseFloat(r);Number.isNaN(n)?e.loadAccumulator(t,(0,o.getVregisterCache)(e,o.CacheList.NaN)):Number.isFinite(n)?l(n)?e.loadAccumulatorInt(t,n):e.loadAccumulatorFloat(t,n):e.loadAccumulator(t,(0,o.getVregisterCache)(e,o.CacheList.Infinity))}},"./src/expression/objectLiteralExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.createMethodOrAccessor=t.compileObjectLiteralExpression=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/base/util.ts"),l=r("./src/base/vregisterCache.ts"),u=r("./src/expression/numericLiteral.ts"),_=r("./src/expression/parenthesizedExpression.ts"),d=r("./src/pandagen.ts"),p=r("./src/base/properties.ts"),f=r("./src/base/literal.ts");function g(e){let t;if(e.getValue().kind==o.SyntaxKind.StringLiteral)t=new f.Literal(f.LiteralTag.STRING,s.getTextOfIdentifierOrLiteral(e.getValue()));else if(e.getValue().kind==o.SyntaxKind.NumericLiteral){let r=Number.parseFloat(s.getTextOfIdentifierOrLiteral(e.getValue()));t=(0,u.isInteger)(r)?new f.Literal(f.LiteralTag.INTEGER,r):new f.Literal(f.LiteralTag.DOUBLE,r)}else if(e.getValue().kind==o.SyntaxKind.TrueKeyword||e.getValue().kind==o.SyntaxKind.FalseKeyword)t=e.getValue().kind==o.SyntaxKind.TrueKeyword?new f.Literal(f.LiteralTag.BOOLEAN,!0):new f.Literal(f.LiteralTag.BOOLEAN,!1);else{if(e.getValue().kind!=o.SyntaxKind.NullKeyword)throw new Error("Unreachable Kind of Literal");t=new f.Literal(f.LiteralTag.NULLVALUE,null)}return t}function m(e,t,r,n){let i,a=e.getTemp(),s=e.getTemp(),c=e.getTemp(),u=String(n.getName());if(void 0!==n.getGetter()){let o=n.getGetter();b(e,t,r,o),e.storeAccumulator(o,a),i=o}if(void 0!==n.getSetter()){let a=n.getSetter();b(e,t,r,a),e.storeAccumulator(a,s),i=a}e.loadAccumulatorString(i,u),e.storeAccumulator(i,c),void 0!==n.getGetter()&&void 0!==n.getSetter()?e.defineGetterSetterByValue(i,r,c,a,s,!1):o.isGetAccessorDeclaration(i)?e.defineGetterSetterByValue(i,r,c,a,(0,l.getVregisterCache)(e,l.CacheList.undefined),!1):e.defineGetterSetterByValue(i,r,c,(0,l.getVregisterCache)(e,l.CacheList.undefined),s,!1),e.freeTemps(a,s,c)}function y(e,t,r){let n=e.getPandaGen(),i=n.getTemp();e.compileExpression(t.getValue()),n.storeAccumulator(t.getValue(),i),n.copyDataProperties(t.getValue().parent,r,i),n.freeTemps(i)}function h(e,t,r){let n=e.getPandaGen(),i=n.getTemp();switch(e.compileExpression(t.getName().expression),n.storeAccumulator(t.getValue(),i),t.getValue().kind){case o.SyntaxKind.PropertyAssignment:{e.compileExpression(t.getValue().initializer);let a=x(t.getValue().initializer);n.storeOwnProperty(t.getValue(),r,i,a);break}case o.SyntaxKind.MethodDeclaration:b(n,e,r,t.getValue()),n.storeOwnProperty(t.getValue(),r,i,!0);break;case o.SyntaxKind.GetAccessor:{let a=n.getTemp(),o=t.getValue();b(n,e,r,o),n.storeAccumulator(o,a),n.defineGetterSetterByValue(o,r,i,a,(0,l.getVregisterCache)(n,l.CacheList.undefined),!0),n.freeTemps(a);break}case o.SyntaxKind.SetAccessor:{let a=n.getTemp(),o=t.getValue();b(n,e,r,o),n.storeAccumulator(o,a),n.defineGetterSetterByValue(o,r,i,(0,l.getVregisterCache)(n,l.CacheList.undefined),a,!0),n.freeTemps(a);break}}n.freeTemps(i)}function v(e,t,r){let n=e.getPandaGen(),i=n.getTemp();e.compileExpression(t.getValue()),n.storeAccumulator(t.getValue().parent,i),n.setObjectWithProto(t.getValue().parent,i,r),n.freeTemps(i)}function b(e,t,r,n){let i=t.getCompilerDriver().getFuncInternalName(n,t.getRecorder()),a=t.getCurrentEnv();o.isMethodDeclaration(n)&&n.asteriskToken?e.defineFunction(n,n,i,a):e.defineMethod(n,i,r,a)}function x(e){let t=e;return o.isParenthesizedExpression(e)&&(t=(0,_.findInnerExprOfParenthesis)(e)),!(!o.isFunctionLike(t)&&!o.isClassLike(t)||t.name)}t.compileObjectLiteralExpression=function(e,t){let r=e.getPandaGen(),n=(0,p.generatePropertyFromExpr)(t),i=r.getTemp(),a=!1;if(0==n.length)return r.createEmptyObject(t),r.storeAccumulator(t,i),void r.freeTemps(i);let s=new f.LiteralBuffer;a=function(e,t,r){let n=!1;for(let i of t){if(i.getKind()==p.PropertyKind.Spread||i.getKind()==p.PropertyKind.Computed)break;if(i.getKind()==p.PropertyKind.Prototype||i.isRedeclared())continue;let t=new f.Literal(f.LiteralTag.STRING,String(i.getName()));if(i.getKind()==p.PropertyKind.Constant){let e=g(i);r.addLiterals(t,e),i.setCompiled()}if(i.getKind()==p.PropertyKind.Variable){let a,s=e.getCompilerDriver(),l=i.getValue();if(o.isMethodDeclaration(l)){a=l.asteriskToken?new f.Literal(f.LiteralTag.GENERATOR,s.getFuncInternalName(l,e.getRecorder())):new f.Literal(f.LiteralTag.METHOD,s.getFuncInternalName(l,e.getRecorder()));let o=new f.Literal(f.LiteralTag.METHODAFFILIATE,(0,c.getParamLengthOfFunc)(l));r.addLiterals(t,a,o),i.setCompiled(),n=!0}else a=new f.Literal(f.LiteralTag.NULLVALUE,null),r.addLiterals(t,a)}if(i.getKind()==p.PropertyKind.Accessor){let e=new f.Literal(f.LiteralTag.ACCESSOR,null);r.addLiterals(t,e)}}return n}(e,n,s),function(e,t,r,n,i,a){if(n.isEmpty())t.createEmptyObject(e);else{let r=d.PandaGen.getLiteralArrayBuffer(),o=r.length;if(r.push(n),i){let r=a.getCurrentEnv();t.createObjectHavingMethod(e,o,r)}else t.createObjectWithBuffer(e,o)}t.storeAccumulator(e,r)}(t,r,i,s,a,e),function(e,t,r,n){for(let i of r)if(!i.isCompiled())switch(i.getKind()){case p.PropertyKind.Accessor:m(t,e,n,i);break;case p.PropertyKind.Spread:y(e,i,n);break;case p.PropertyKind.Computed:h(e,i,n);break;case p.PropertyKind.Constant:case p.PropertyKind.Variable:{let r=!1;o.isMethodDeclaration(i.getValue())?b(t,e,n,i.getValue()):(e.compileExpression(i.getValue()),r=x(i.getValue())&&-1!=i.getName().toString().lastIndexOf(".")),t.storeOwnProperty(i.getValue().parent,n,i.getName(),r);break}case p.PropertyKind.Prototype:v(e,i,n);break;default:throw new Error("Unreachable PropertyKind for NullValue setting")}}(e,r,n,i),r.loadAccumulator(t,i),r.freeTemps(i)},t.createMethodOrAccessor=b},"./src/expression/parenthesizedExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.findOuterNodeOfParenthesis=t.findInnerExprOfParenthesis=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js"));t.findInnerExprOfParenthesis=function(e){for(;e.expression.kind==o.SyntaxKind.ParenthesizedExpression;)e=e.expression;return e.expression},t.findOuterNodeOfParenthesis=function(e){let t=e.parent;for(;t.kind==o.SyntaxKind.ParenthesizedExpression;)t=t.parent;return t}},"./src/expression/regularExpression.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileRegularExpressionLiteral=t.RegExpFlags=void 0;const o=a(r("./src/jshelpers.js")),s=r("./src/diagnostic.ts");var c;!function(e){e[e.FLAG_GLOBAL=1]="FLAG_GLOBAL",e[e.FLAG_IGNORECASE=2]="FLAG_IGNORECASE",e[e.FLAG_MULTILINE=4]="FLAG_MULTILINE",e[e.FLAG_DOTALL=8]="FLAG_DOTALL",e[e.FLAG_UTF16=16]="FLAG_UTF16",e[e.FLAG_STICKY=32]="FLAG_STICKY"}(c=t.RegExpFlags||(t.RegExpFlags={})),t.compileRegularExpressionLiteral=function(e,t){let r=e.getPandaGen(),n=t.text,i=n,a="",l=n.indexOf("/"),u=n.lastIndexOf("/");if(-1==l||-1==u||l==u)throw new s.DiagnosticError(t,s.DiagnosticCode.Incorrect_regular_expression);i=n.substring(l+1,u),a=n.substring(u+1);let _=function(e,t){let r=0,n=0;for(let i=0;i{e.loadAccumulatorInt(t,a),e.storeAccumulator(t,o),e.loadAccumulatorString(t,void 0===t.literal.rawText?t.literal.text:t.literal.rawText),e.storeObjProperty(t,s,o),e.loadAccumulatorString(t,t.literal.text),e.storeObjProperty(t,c,o),++a})),e.moveVreg(t,r,s),e.moveVreg(t,n,c),e.freeTemps(o,s,c)}function getTemplateObject(e,t){let r=e.getTemp(),n=e.getTemp(),i=e.getTemp(),a=e.getTemp();genTemplateArrayArg(e,t.template,i,a),e.createEmptyArray(t),e.storeAccumulator(t,r);let o=0;e.loadAccumulatorInt(t,o),e.storeAccumulator(t,n),e.loadAccumulator(t,i),e.storeObjProperty(t,r,n),++o,e.loadAccumulatorInt(t,o),e.storeAccumulator(t,n),e.loadAccumulator(t,a),e.storeObjProperty(t,r,n),e.getTemplateObject(t,r),e.freeTemps(r,n,i,a)}exports.getTemplateObject=getTemplateObject},"./src/expression/yieldExpression.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileYieldExpression=void 0;const n=r("./src/function/generatorFunctionBuilder.ts"),i=r("./src/diagnostic.ts"),a=r("./src/base/vregisterCache.ts");t.compileYieldExpression=function(e,t){if(!(e.getFuncBuilder()instanceof n.GeneratorFunctionBuilder))throw new i.DiagnosticError(t.parent,i.DiagnosticCode.A_yield_expression_is_only_allowed_in_a_generator_body);t.asteriskToken?function(e,t){let r=e.getFuncBuilder();if(!t.expression)throw new Error("yield* must have an expression!");e.compileExpression(t.expression),r.yieldStar(t)}(e,t):function(e,t){let r=e.getPandaGen(),n=e.getFuncBuilder();if(t.expression){let i=r.getTemp();e.compileExpression(t.expression),r.storeAccumulator(t,i),n.yield(t,i),r.freeTemps(i)}else n.yield(t,(0,a.getVregisterCache)(r,a.CacheList.undefined))}(e,t)}},"./src/function/asyncFunctionBuilder.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncFunctionBuilder=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/vregisterCache.ts"),c=r("./src/debuginfo.ts"),l=r("./src/irnodes.ts"),u=r("./src/statement/tryStatement.ts");var _;!function(e){e[e.Return=0]="Return",e[e.Throw=1]="Throw",e[e.Next=2]="Next"}(_||(_={})),t.AsyncFunctionBuilder=class{constructor(e){this.pandaGen=e,this.beginLabel=new l.Label,this.endLabel=new l.Label,this.asyncObj=e.getTemp(),this.retVal=e.getTemp()}prepare(e){let t=this.pandaGen;t.asyncFunctionEnter(c.NodeKind.Invalid),t.storeAccumulator(c.NodeKind.Invalid,this.asyncObj),t.label(e,this.beginLabel)}await(e,t){let r=this.pandaGen,n=this.pandaGen.getTemp();r.asyncFunctionAwaitUncaught(e,this.asyncObj,t),r.storeAccumulator(e,n),r.suspendGenerator(e,this.asyncObj,n),r.freeTemps(n),r.resumeGenerator(e,this.asyncObj),r.storeAccumulator(e,this.retVal),this.handleMode(e)}handleMode(e){let t=this.pandaGen,r=t.getTemp();t.getResumeMode(e,this.asyncObj),t.storeAccumulator(e,r),t.loadAccumulatorInt(e,_.Throw);let n=new l.Label;t.condition(e,o.SyntaxKind.EqualsEqualsToken,r,n),t.loadAccumulator(e,this.retVal),t.throw(e),t.freeTemps(r),t.label(e,n),t.loadAccumulator(e,this.retVal)}resolve(e,t){let r=this.pandaGen;r.asyncFunctionResolve(e,this.asyncObj,(0,s.getVregisterCache)(r,s.CacheList.True),t)}cleanUp(e){let t=this.pandaGen;t.label(e,this.endLabel);let r=t.getTemp();t.storeAccumulator(c.NodeKind.Invalid,r),t.asyncFunctionReject(c.NodeKind.Invalid,this.asyncObj,(0,s.getVregisterCache)(t,s.CacheList.True),r),t.return(c.NodeKind.Invalid),t.freeTemps(r),t.freeTemps(this.asyncObj,this.retVal),new u.CatchTable(t,this.endLabel,new u.LabelPair(this.beginLabel,this.endLabel))}}},"./src/function/functionBuilder.ts":(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionBuilder=void 0,t.FunctionBuilder=class{prepare(e){}cleanUp(e){}}},"./src/function/generatorFunctionBuilder.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GeneratorFunctionBuilder=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/vregisterCache.ts"),c=r("./src/compiler.ts"),l=r("./src/irnodes.ts"),u=r("./src/statement/forOfStatement.ts");var _;!function(e){e[e.Return=0]="Return",e[e.Throw=1]="Throw",e[e.Next=2]="Next"}(_||(_={})),t.GeneratorFunctionBuilder=class{constructor(e,t){this.pandaGen=e,this.compiler=t,this.genObj=e.getTemp(),this.retVal=e.getTemp()}prepare(e,t){let r=this.pandaGen;t.getScopeOfNode(e),r.createGeneratorObj(e,(0,s.getVregisterCache)(r,s.CacheList.FUNC)),r.storeAccumulator(e,this.genObj),r.suspendGenerator(e,this.genObj,(0,s.getVregisterCache)(r,s.CacheList.undefined)),r.resumeGenerator(e,this.genObj),r.storeAccumulator(e,this.retVal),this.handleMode(e)}yield(e,t){let r=this.pandaGen,n=r.getTemp();r.EcmaCreateiterresultobj(e,t,(0,s.getVregisterCache)(r,s.CacheList.False)),r.storeAccumulator(e,n),r.suspendGenerator(e,this.genObj,n),r.freeTemps(n),r.resumeGenerator(e,this.genObj),r.storeAccumulator(e,this.retVal),this.handleMode(e)}yieldStar(e){let t=this.pandaGen,r=t.getTemp(),n=t.getTemp(),i=t.getTemp(),a=t.getTemp(),d=new l.Label,p=new l.Label,f=new l.Label,g=new l.Label,m=new l.Label,y=new l.Label,h=new l.Label,v=new l.Label,b=u.IteratorType.Normal,x=(0,u.getIteratorRecord)(t,e,r,n,b);t.moveVreg(e,i,(0,s.getVregisterCache)(t,s.CacheList.undefined)),t.loadAccumulatorInt(e,_.Next),t.storeAccumulator(e,a),t.label(e,d),t.loadAccumulatorInt(e,_.Next),t.condition(e,o.SyntaxKind.EqualsEqualsToken,a,p),t.call(e,[x.getNextMethod(),x.getObject(),i],!0),t.branch(e,g),t.label(e,p),t.loadAccumulatorInt(e,_.Return),t.condition(e,o.SyntaxKind.EqualsEqualsToken,a,f),t.loadObjProperty(e,x.getObject(),"return"),t.storeAccumulator(e,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(t,s.CacheList.undefined),m),t.call(e,[r,x.getObject(),i],!0),t.branch(e,g),t.label(e,m),this.compiler.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0),t.loadAccumulator(e,i),t.return(e),t.label(e,f),t.loadObjProperty(e,x.getObject(),"throw"),t.storeAccumulator(e,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(t,s.CacheList.undefined),y),t.call(e,[r,x.getObject(),i],!0),t.branch(e,g),t.label(e,y),t.loadObjProperty(e,x.getObject(),"return"),t.storeAccumulator(e,r),t.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(t,s.CacheList.undefined),v),t.call(e,[r,x.getObject()],!0);let D=t.getTemp();t.storeAccumulator(e,D),t.throwIfNotObject(e,D),t.freeTemps(D),t.label(e,v),t.throwThrowNotExist(e),t.label(e,g),t.storeAccumulator(e,this.retVal),t.throwIfNotObject(e,this.retVal),t.loadObjProperty(e,this.retVal,"done"),t.jumpIfTrue(e,h),t.suspendGenerator(e,this.genObj,this.retVal),t.resumeGenerator(e,this.genObj),t.storeAccumulator(e,i),t.getResumeMode(e,this.genObj),t.storeAccumulator(e,a),t.branch(e,d);let S=new l.Label;t.label(e,h),t.loadObjProperty(e,this.retVal,"value");let E=t.getTemp();t.storeAccumulator(e,E),t.loadAccumulatorInt(e,_.Return),t.condition(e,o.SyntaxKind.EqualsEqualsToken,a,S),this.compiler.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0),t.loadAccumulator(e,E),t.return(e),t.label(e,S),t.loadAccumulator(e,E),t.freeTemps(r,n,i,a,E)}handleMode(e){let t=this.pandaGen,r=t.getTemp();t.getResumeMode(e,this.genObj),t.storeAccumulator(e,r),t.loadAccumulatorInt(e,_.Return);let n=new l.Label;t.condition(e,o.SyntaxKind.EqualsEqualsToken,r,n),this.compiler.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0),t.loadAccumulator(e,this.retVal),t.return(e),t.label(e,n),t.loadAccumulatorInt(e,_.Throw);let i=new l.Label;t.condition(e,o.SyntaxKind.EqualsEqualsToken,r,i),t.loadAccumulator(e,this.retVal),t.throw(e),t.freeTemps(r),t.label(e,i),t.loadAccumulator(e,this.retVal)}cleanUp(){this.pandaGen.freeTemps(this.genObj,this.retVal)}}},"./src/hoisting.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hoistFunctionInBlock=t.hoistFunction=t.hoistVar=t.hoisting=void 0;const n=r("./src/base/util.ts"),i=r("./src/base/vregisterCache.ts"),a=r("./src/debuginfo.ts"),o=r("./src/scope.ts");function s(e,t,r){let n=e.name;if(t instanceof o.GlobalScope)r.loadAccumulator(e.node,(0,i.getVregisterCache)(r,i.CacheList.undefined)),r.storeGlobalVar(e.node,n);else{if(!(t instanceof o.FunctionScope||t instanceof o.ModuleScope))throw new Error("Wrong scope to hoist");{let e=t.findLocal(n);r.loadAccumulator(a.NodeKind.FirstNodeOfFunction,(0,i.getVregisterCache)(r,i.CacheList.undefined)),r.storeAccToLexEnv(a.NodeKind.FirstNodeOfFunction,t,0,e,!0)}}}function c(e,t,r,i,s){let c=e.name,l=s.getFuncInternalName(e.node,i.getRecorder()),u=i.getCurrentEnv();if(t instanceof o.GlobalScope)r.defineFunction(a.NodeKind.FirstNodeOfFunction,e.node,l,u),r.storeGlobalVar(a.NodeKind.FirstNodeOfFunction,c);else{if(!(t instanceof o.FunctionScope||t instanceof o.LocalScope||t instanceof o.ModuleScope))throw new Error("Wrong scope to hoist");{let i=(0,n.hasExportKeywordModifier)(e.node),s=(0,n.hasDefaultKeywordModifier)(e.node),_=t.findLocal(c);i&&t instanceof o.ModuleScope&&(_.setExport(),s?_.setExportedName("default"):_.setExportedName(_.getName())),r.defineFunction(a.NodeKind.FirstNodeOfFunction,e.node,l,u),r.storeAccToLexEnv(a.NodeKind.FirstNodeOfFunction,t,0,_,!0)}}}t.hoisting=function(e,t,r,n){let i=r.getScopeOfNode(e),a=r.getHoistDeclsOfScope(i);null==a||a.forEach((e=>{if(e instanceof o.VarDecl)s(e,i,t);else{if(!(e instanceof o.FuncDecl))throw new Error("Wrong declaration type to be hoisted");{let r=n.getCompilerDriver();c(e,i,t,n,r)}}}))},t.hoistVar=s,t.hoistFunction=c,t.hoistFunctionInBlock=function(e,t,r,n){let i=e.getDecls(),a=new Array;for(let e=0;e{let i=n.getCompilerDriver();c(r,e,t,n,i)}))}},"./src/index.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const o=a(r("path")),s=a(r("./node_modules/typescript/lib/typescript.js")),c=a(r("fs")),l=r("./src/cmdOptions.ts"),u=r("./src/compilerDriver.ts"),_=a(r("./src/diagnostic.ts")),d=a(r("./src/jshelpers.js")),p=r("./src/log.ts"),f=r("./src/strictMode.ts"),g=r("./src/typeChecker.ts"),m=r("./src/base/util.ts");function y(e){for(let t of e.statements)if(t.modifiers){for(let e of t.modifiers)if(e.kind===s.SyntaxKind.ExportKeyword)return!1}else{if(t.kind===s.SyntaxKind.ExportAssignment)return!1;if(t.kind===s.SyntaxKind.ImportKeyword||t.kind===s.SyntaxKind.ImportDeclaration)return!1}return!0}function h(e,t){let r=v(e),n=new u.CompilerDriver(r);(0,f.setGlobalStrict)(d.isEffectiveStrictModeSourceFile(e,t)),n.compile(e),n.showStatistics()}function v(e){let t=l.CmdOptions.getOutputBinName(),n=e.fileName.substring(0,e.fileName.lastIndexOf(".")),i=l.CmdOptions.getInputFileName();if(/^win/.test(r("os").platform())){var a=i.split(o.sep);i=o.posix.join(...a)}return n!=i&&(t=n+".abc"),t}const b="####",x="watch_expressions";function D(e,t,r,n){l.CmdOptions.setWatchEvaluateExpressionArgs(["",""]);let i=x+".js",a=!1,p=s.createSourceFile(i,c.readFileSync(e).toString(),s.ScriptTarget.ES2017);n.getSyntacticDiagnostics(p).forEach((e=>{a||(c.writeFileSync(t,"There are syntax errors in input expression.\n"),a=!0),_.printDiagnostic(e)})),a||n.emit(void 0,void 0,void 0,void 0,{before:[e=>e=>{o.basename(e.fileName)==i&&(e=p);let t=v(e);return new u.CompilerDriver(t).compileForSyntaxCheck(e),e}],after:[e=>e=>{var t;if(s.getEmitHelpers(e)){let n=[];null===(t=s.getEmitHelpers(e))||void 0===t||t.forEach((t=>{s.createSourceFile(e.fileName,t.text,r.target,!0,s.ScriptKind.JS).statements.forEach((e=>{let t=(0,m.setPos)(e);n.push(t)}))})),n.push(...e.statements),e=s.factory.updateSourceFile(e,n)}let n=v(e),i=new u.CompilerDriver(n);return(0,f.setGlobalStrict)(d.isEffectiveStrictModeSourceFile(e,r)),i.compile(e),e}]})}var S;!function(e){let t;!function(e){e.Default={outDir:"../tmp/build",allowJs:!0,noEmitOnError:!0,noImplicitAny:!0,target:s.ScriptTarget.ES2017,module:s.ModuleKind.ES2015,strictNullChecks:!0,skipLibCheck:!0,alwaysStrict:!0}}(t=e.Options||(e.Options={}))}(S||(S={}));let E=function(e){let t=[];return function e(r){c.readdirSync(r).forEach((function(n,i){let a=o.join(r,n),s=c.statSync(a);!0===s.isDirectory()&&e(a),!0===s.isFile()&&!0===n.endsWith(".d.ts")&&t.push(a)}))}(e),t}(o.join(__dirname,"../node_modules/typescript/lib"));process.argv.push(...E),function(e,t){let r=l.CmdOptions.parseUserCmd(e);if(r){t&&(r.options.project||r.options.build||(r.options=t));try{if(l.CmdOptions.isWatchEvaluateDeamonMode())return void function(e){let t=l.CmdOptions.getEvaluateDeamonPath()+o.sep+x,r=t+".js",n=t+".abc",i=t+".err";if(c.existsSync(r))return void console.log("watchFileServer has been initialized supportTimeout");let a=e.fileNames;c.writeFileSync(r,"initJsFile\n"),c.writeFileSync(i,"initErrMsgFile\n"),a.unshift(r);let u=s.createProgram(a,e.options);D(r,i,e.options,u),c.watchFile(r,{persistent:!0,interval:50},((t,n)=>{if(+t.mtime<=+n.mtime)throw new Error("watched js file has not been initialized");if(c.readFileSync(r).toString()==b)return c.unwatchFile(r),void console.log("stopWatchingSuccess");D(r,i,e.options,u)})),console.log("startWatchingSuccess supportTimeout"),process.on("exit",(()=>{c.unlinkSync(r),c.unlinkSync(n),c.unlinkSync(i)}))}(r);if(l.CmdOptions.isStopEvaluateDeamonMode())return void c.writeFileSync(l.CmdOptions.getEvaluateDeamonPath()+o.sep+x+".js",b);if(l.CmdOptions.isWatchEvaluateExpressionMode())return void function(){let e=l.CmdOptions.getEvaluateExpression();if(!(0,m.isBase64Str)(e))throw new Error("Passed expression string for evaluating is not base64 style.");let t=10;0!=l.CmdOptions.getWatchTimeOutValue()&&(t=l.CmdOptions.getWatchTimeOutValue());let r=l.CmdOptions.getWatchJsPath()+o.sep+x,n=Buffer.from(e,"base64").toString(),i=r+".js",a=r+".abc",s=r+".err";c.watchFile(s,{persistent:!0,interval:50},((e,t)=>{if(+e.mtime<=+t.mtime)throw c.unwatchFile(i),c.unwatchFile(a),new Error("watched errMsg file has not been initialized");console.log("error in genarate abc file for this expression."),c.unwatchFile(a),c.unwatchFile(s),process.exit()})),c.watchFile(a,{persistent:!0,interval:50},((e,t)=>{if(+e.mtime<=+t.mtime)throw c.unwatchFile(i),c.unwatchFile(s),new Error("watched abc file has not been initialized");let r=c.readFileSync(a),n=Buffer.from(r).toString("base64");console.log(n),c.unwatchFile(a),c.unwatchFile(s),process.exit()})),c.writeFileSync(i,n),setTimeout((()=>{throw c.unwatchFile(i),c.unwatchFile(a),c.unwatchFile(s),c.unlinkSync(i),c.unlinkSync(a),c.unlinkSync(s),new Error("watchFileServer has not been initialized")}),1e3*t)}();!function(e,t){let r=s.createProgram(e,t);if(g.TypeChecker.getInstance().setTypeChecker(r.getTypeChecker()),l.CmdOptions.needRecordDtsType())for(let e of r.getSourceFiles())e.isDeclarationFile&&!r.isSourceFileDefaultLibrary(e)&&((0,f.setGlobalDeclare)(y(e)),h(e,t));let n=r.emit(void 0,void 0,void 0,void 0,{before:[e=>e=>{let t=v(e);return new u.CompilerDriver(t).compileForSyntaxCheck(e),e}],after:[e=>e=>{var r;if(s.getEmitHelpers(e)){let n=[];null===(r=s.getEmitHelpers(e))||void 0===r||r.forEach((r=>{s.createSourceFile(e.fileName,r.text,t.target,!0,s.ScriptKind.JS).statements.forEach((e=>{let t=(0,m.setPos)(e);n.push(t)}))})),n.push(...e.statements),e=s.factory.updateSourceFile(e,n)}let n=v(e),i=new u.CompilerDriver(n);return(0,f.setGlobalStrict)(d.isEffectiveStrictModeSourceFile(e,t)),i.compile(e),i.showStatistics(),e}]});s.getPreEmitDiagnostics(r).concat(n.diagnostics).forEach((e=>{_.printDiagnostic(e)}))}(r.fileNames.concat(l.CmdOptions.getIncludedFiles()),r.options)}catch(e){if(e instanceof _.DiagnosticError){let t=_.getDiagnostic(e.code);if(null!=t){let r=_.createDiagnostic(e.file,e.irnode,t,...e.args);_.printDiagnostic(r)}}else{if(!(e instanceof SyntaxError))throw e;(0,p.LOGE)(e.name,e.message)}}}}(process.argv.slice(2),S.Options.Default),global.gc()},"./src/irnodes.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Jgez=t.Jlez=t.Jgtz=t.Jltz=t.Jnez=t.Jeqz=t.JnezObj=t.JeqzObj=t.JneObj=t.JeqObj=t.Jmp=t.FcmpgWide=t.FcmplWide=t.CmpWide=t.StaObj=t.StaWide=t.Sta=t.LdaNull=t.LdaType=t.LdaConst=t.LdaStr=t.FldaiWide=t.LdaiWide=t.Ldai=t.LdaObj=t.LdaWide=t.Lda=t.MovNull=t.FmoviWide=t.MoviWide=t.Movi=t.MovObj=t.MovWide=t.Mov=t.Nop=t.DebugInsEndPlaceHolder=t.DebugInsStartPlaceHolder=t.Label=t.Imm=t.VReg=t.Intrinsic=t.IRNode=t.getInsnFormats=t.getInsnMnemonic=t.OperandKind=t.BuiltIns=t.ResultDst=t.ResultType=t.getInstructionSize=t.IRNodeKind=void 0,t.Starr8=t.LdarrObj=t.FldarrWide=t.Fldarr32=t.LdarrWide=t.Ldarr=t.Ldarru16=t.Ldarr16=t.Ldarru8=t.Ldarr8=t.Inci=t.Mod=t.Div=t.Mul=t.Sub=t.Add=t.Modi=t.Divi=t.Ashri=t.Shri=t.Shli=t.Ori=t.Andi=t.Muli=t.Subi=t.Addi=t.Mod2Wide=t.Mod2=t.Div2Wide=t.Div2=t.Fmod2Wide=t.Fdiv2Wide=t.Fmul2Wide=t.Fsub2Wide=t.Fadd2Wide=t.Mul2Wide=t.Mul2=t.Sub2Wide=t.Sub2=t.Add2Wide=t.Add2=t.NegWide=t.Neg=t.FnegWide=t.Jge=t.Jle=t.Jgt=t.Jlt=t.Jne=t.Jeq=void 0,t.StaDyn=t.LdaDyn=t.MovDyn=t.CallVirtAcc=t.CallVirtAccShort=t.CallVirtRange=t.CallVirt=t.CallVirtShort=t.CallAcc=t.CallAccShort=t.CallRange=t.Call=t.CallShort=t.Isinstance=t.Checkcast=t.Throw=t.ReturnVoid=t.ReturnObj=t.ReturnWide=t.Return=t.StstaticObj=t.StstaticWide=t.Ststatic=t.LdstaticObj=t.LdstaticWide=t.Ldstatic=t.StobjVObj=t.StobjVWide=t.StobjV=t.LdobjVObj=t.LdobjVWide=t.LdobjV=t.StobjObj=t.StobjWide=t.Stobj=t.LdobjObj=t.LdobjWide=t.Ldobj=t.InitobjRange=t.Initobj=t.InitobjShort=t.Newobj=t.Newarr=t.Lenarr=t.StarrObj=t.FstarrWide=t.Fstarr32=t.StarrWide=t.Starr=t.Starr16=void 0,t.I64tou1=t.Fmod2=t.EcmaLdfalse=t.Shl2=t.I32tou1=t.Fdiv2=t.EcmaLdtrue=t.Xor2Wide=t.F64tou64=t.Fmul2=t.EcmaLdglobal=t.Xor2=t.F64tou32=t.Fsub2=t.EcmaLdsymbol=t.Or2Wide=t.Modu2Wide=t.F64toi64=t.Fadd2=t.EcmaLdnull=t.Or2=t.Modu2=t.F64toi32=t.Fneg=t.EcmaLdundefined=t.And2Wide=t.Divu2Wide=t.U64tof64=t.Fcmpg=t.EcmaLdglobalthis=t.And2=t.Divu2=t.I64tof64=t.Fcmpl=t.EcmaLdinfinity=t.NotWide=t.UcmpWide=t.U32tof64=t.Fldai=t.EcmaLdnan=t.Not=t.Ucmp=t.I32tof64=t.Fmovi=t.CalliDynRange=t.CalliDyn=t.CalliDynShort=t.ReturnDyn=t.FldaiDyn=t.LdaiDyn=void 0,t.U64toi32=t.EcmaThrowpatternnoncoercible=t.U32tou8=t.EcmaThrowthrownotexists=t.U32toi8=t.EcmaGetiterator=t.Ashr=t.U32tou16=t.EcmaCreateemptyarray=t.Shr=t.U32toi16=t.F64tof32=t.EcmaCreateemptyobject=t.Shl=t.U32toi64=t.F32tou64=t.EcmaReturnundefined=t.Xor=t.I64toi32=t.F32tou32=t.EcmaLdhole=t.Or=t.I32tou8=t.F32toi64=t.EcmaAsyncfunctionenter=t.And=t.I32toi8=t.F32toi32=t.EcmaGetpropiterator=t.Xori=t.I32tou16=t.F32tof64=t.EcmaGetunmappedargs=t.Ashr2Wide=t.I32toi16=t.U64tof32=t.EcmaPoplexenvdyn=t.Ashr2=t.I32toi64=t.I64tof32=t.EcmaLdlexenvdyn=t.Shr2Wide=t.U64tou1=t.U32tof32=t.EcmaTypeofdyn=t.Shr2=t.U32tou1=t.I32tof32=t.EcmaThrowdyn=t.Shl2Wide=void 0,t.EcmaCallarg1dyn=t.EcmaThrowundefinedifhole=t.EcmaAsyncfunctionawaituncaught=t.EcmaSuspendgenerator=t.EcmaCreateiterresultobj=t.EcmaNewobjspreaddyn=t.EcmaDelobjprop=t.EcmaSupercallspread=t.EcmaCopymodule=t.EcmaCloseiterator=t.EcmaIternext=t.EcmaThrowifnotobject=t.EcmaCallarg0dyn=t.EcmaGetnextpropname=t.EcmaGettemplateobject=t.EcmaThrowconstassignment=t.EcmaCreategeneratorobj=t.EcmaGetresumemode=t.EcmaResumegenerator=t.EcmaStricteqdyn=t.EcmaStrictnoteqdyn=t.EcmaInstanceofdyn=t.EcmaIsindyn=t.EcmaExpdyn=t.EcmaDecdyn=t.EcmaIncdyn=t.EcmaNotdyn=t.EcmaNegdyn=t.EcmaTonumber=t.EcmaXor2dyn=t.EcmaOr2dyn=t.EcmaAnd2dyn=t.EcmaAshr2dyn=t.EcmaShr2dyn=t.EcmaShl2dyn=t.EcmaGreatereqdyn=t.EcmaGreaterdyn=t.EcmaLesseqdyn=t.EcmaLessdyn=t.EcmaNoteqdyn=t.EcmaEqdyn=t.EcmaMod2dyn=t.EcmaDiv2dyn=t.EcmaMul2dyn=t.EcmaSub2dyn=t.EcmaAdd2dyn=t.EcmaDebugger=t.EcmaThrowdeletesuperproperty=t.U64tou32=t.EcmaLdhomeobject=void 0,t.EcmaCreateregexpwithliteral=t.EcmaLdmodvarbyname=t.EcmaStsuperbyname=t.EcmaLdsuperbyname=t.EcmaStownbyname=t.EcmaStobjbyname=t.EcmaLdobjbyname=t.EcmaStglobalvar=t.EcmaLdglobalvar=t.EcmaTrystglobalbyname=t.EcmaTryldglobalbyname=t.EcmaStmodulevar=t.EcmaImportmodule=t.EcmaDefineclasswithbuffer=t.EcmaStlexvardyn=t.EcmaLdlexvardyn=t.EcmaCreateobjectwithbuffer=t.EcmaThrowifsupernotcorrectcall=t.EcmaCreateobjecthavingmethod=t.EcmaCreatearraywithbuffer=t.EcmaCopyrestargs=t.EcmaNewlexenvdyn=t.EcmaDefinemethod=t.EcmaDefineasyncfunc=t.EcmaDefinegeneratorfunc=t.EcmaDefinencfuncdyn=t.EcmaDefinefuncdyn=t.EcmaCreateobjectwithexcludedkeys=t.EcmaSupercall=t.EcmaCallithisrangedyn=t.EcmaCallirangedyn=t.EcmaNewobjdynrange=t.EcmaDefinegettersetterbyvalue=t.EcmaCallargs3dyn=t.EcmaCallargs2dyn=t.EcmaAsyncfunctionreject=t.EcmaAsyncfunctionresolve=t.EcmaCallspreaddyn=t.EcmaStownbyindex=t.EcmaStobjbyindex=t.EcmaLdobjbyindex=t.EcmaStsuperbyvalue=t.EcmaLdsuperbyvalue=t.EcmaStownbyvalue=t.EcmaStobjbyvalue=t.EcmaLdobjbyvalue=t.EcmaSetobjectwithproto=t.EcmaGetiteratornext=t.EcmaStarrayspread=t.EcmaCopydataproperties=void 0,t.EcmaLdbigint=t.EcmaNewlexenvwithnamedyn=t.EcmaLdfunction=t.EcmaStownbynamewithnameset=t.EcmaStownbyvaluewithnameset=t.EcmaStclasstoglobalrecord=t.EcmaStlettoglobalrecord=t.EcmaStconsttoglobalrecord=t.EcmaIsfalse=t.EcmaIstrue=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/debuginfo.ts");var c,l,u,_,d;function p(e){switch(e){case c.NOP:return"nop";case c.MOV:return"mov";case c.MOV_64:return"mov.64";case c.MOV_OBJ:return"mov.obj";case c.MOVI:return"movi";case c.MOVI_64:return"movi.64";case c.FMOVI_64:return"fmovi.64";case c.MOV_NULL:return"mov.null";case c.LDA:return"lda";case c.LDA_64:return"lda.64";case c.LDA_OBJ:return"lda.obj";case c.LDAI:return"ldai";case c.LDAI_64:return"ldai.64";case c.FLDAI_64:return"fldai.64";case c.LDA_STR:return"lda.str";case c.LDA_CONST:return"lda.const";case c.LDA_TYPE:return"lda.type";case c.LDA_NULL:return"lda.null";case c.STA:return"sta";case c.STA_64:return"sta.64";case c.STA_OBJ:return"sta.obj";case c.CMP_64:return"cmp.64";case c.FCMPL_64:return"fcmpl.64";case c.FCMPG_64:return"fcmpg.64";case c.JMP:return"jmp";case c.JEQ_OBJ:return"jeq.obj";case c.JNE_OBJ:return"jne.obj";case c.JEQZ_OBJ:return"jeqz.obj";case c.JNEZ_OBJ:return"jnez.obj";case c.JEQZ:return"jeqz";case c.JNEZ:return"jnez";case c.JLTZ:return"jltz";case c.JGTZ:return"jgtz";case c.JLEZ:return"jlez";case c.JGEZ:return"jgez";case c.JEQ:return"jeq";case c.JNE:return"jne";case c.JLT:return"jlt";case c.JGT:return"jgt";case c.JLE:return"jle";case c.JGE:return"jge";case c.FNEG_64:return"fneg.64";case c.NEG:return"neg";case c.NEG_64:return"neg.64";case c.ADD2:return"add2";case c.ADD2_64:return"add2.64";case c.SUB2:return"sub2";case c.SUB2_64:return"sub2.64";case c.MUL2:return"mul2";case c.MUL2_64:return"mul2.64";case c.FADD2_64:return"fadd2.64";case c.FSUB2_64:return"fsub2.64";case c.FMUL2_64:return"fmul2.64";case c.FDIV2_64:return"fdiv2.64";case c.FMOD2_64:return"fmod2.64";case c.DIV2:return"div2";case c.DIV2_64:return"div2.64";case c.MOD2:return"mod2";case c.MOD2_64:return"mod2.64";case c.ADDI:return"addi";case c.SUBI:return"subi";case c.MULI:return"muli";case c.ANDI:return"andi";case c.ORI:return"ori";case c.SHLI:return"shli";case c.SHRI:return"shri";case c.ASHRI:return"ashri";case c.DIVI:return"divi";case c.MODI:return"modi";case c.ADD:return"add";case c.SUB:return"sub";case c.MUL:return"mul";case c.DIV:return"div";case c.MOD:return"mod";case c.INCI:return"inci";case c.LDARR_8:return"ldarr.8";case c.LDARRU_8:return"ldarru.8";case c.LDARR_16:return"ldarr.16";case c.LDARRU_16:return"ldarru.16";case c.LDARR:return"ldarr";case c.LDARR_64:return"ldarr.64";case c.FLDARR_32:return"fldarr.32";case c.FLDARR_64:return"fldarr.64";case c.LDARR_OBJ:return"ldarr.obj";case c.STARR_8:return"starr.8";case c.STARR_16:return"starr.16";case c.STARR:return"starr";case c.STARR_64:return"starr.64";case c.FSTARR_32:return"fstarr.32";case c.FSTARR_64:return"fstarr.64";case c.STARR_OBJ:return"starr.obj";case c.LENARR:return"lenarr";case c.NEWARR:return"newarr";case c.NEWOBJ:return"newobj";case c.INITOBJ_SHORT:return"initobj.short";case c.INITOBJ:return"initobj";case c.INITOBJ_RANGE:return"initobj.range";case c.LDOBJ:return"ldobj";case c.LDOBJ_64:return"ldobj.64";case c.LDOBJ_OBJ:return"ldobj.obj";case c.STOBJ:return"stobj";case c.STOBJ_64:return"stobj.64";case c.STOBJ_OBJ:return"stobj.obj";case c.LDOBJ_V:return"ldobj.v";case c.LDOBJ_V_64:return"ldobj.v.64";case c.LDOBJ_V_OBJ:return"ldobj.v.obj";case c.STOBJ_V:return"stobj.v";case c.STOBJ_V_64:return"stobj.v.64";case c.STOBJ_V_OBJ:return"stobj.v.obj";case c.LDSTATIC:return"ldstatic";case c.LDSTATIC_64:return"ldstatic.64";case c.LDSTATIC_OBJ:return"ldstatic.obj";case c.STSTATIC:return"ststatic";case c.STSTATIC_64:return"ststatic.64";case c.STSTATIC_OBJ:return"ststatic.obj";case c.RETURN:return"return";case c.RETURN_64:return"return.64";case c.RETURN_OBJ:return"return.obj";case c.RETURN_VOID:return"return.void";case c.THROW:return"throw";case c.CHECKCAST:return"checkcast";case c.ISINSTANCE:return"isinstance";case c.CALL_SHORT:return"call.short";case c.CALL:return"call";case c.CALL_RANGE:return"call.range";case c.CALL_ACC_SHORT:return"call.acc.short";case c.CALL_ACC:return"call.acc";case c.CALL_VIRT_SHORT:return"call.virt.short";case c.CALL_VIRT:return"call.virt";case c.CALL_VIRT_RANGE:return"call.virt.range";case c.CALL_VIRT_ACC_SHORT:return"call.virt.acc.short";case c.CALL_VIRT_ACC:return"call.virt.acc";case c.MOV_DYN:return"mov.dyn";case c.LDA_DYN:return"lda.dyn";case c.STA_DYN:return"sta.dyn";case c.LDAI_DYN:return"ldai.dyn";case c.FLDAI_DYN:return"fldai.dyn";case c.RETURN_DYN:return"return.dyn";case c.CALLI_DYN_SHORT:return"calli.dyn.short";case c.CALLI_DYN:return"calli.dyn";case c.CALLI_DYN_RANGE:return"calli.dyn.range";case c.FMOVI:return"fmovi";case c.I32TOF64:return"i32tof64";case c.UCMP:return"ucmp";case c.NOT:return"not";case c.ECMA_LDNAN:return"ecma.ldnan";case c.FLDAI:return"fldai";case c.U32TOF64:return"u32tof64";case c.UCMP_64:return"ucmp.64";case c.NOT_64:return"not.64";case c.ECMA_LDINFINITY:return"ecma.ldinfinity";case c.FCMPL:return"fcmpl";case c.I64TOF64:return"i64tof64";case c.DIVU2:return"divu2";case c.AND2:return"and2";case c.ECMA_LDGLOBALTHIS:return"ecma.ldglobalthis";case c.FCMPG:return"fcmpg";case c.U64TOF64:return"u64tof64";case c.DIVU2_64:return"divu2.64";case c.AND2_64:return"and2.64";case c.ECMA_LDUNDEFINED:return"ecma.ldundefined";case c.FNEG:return"fneg";case c.F64TOI32:return"f64toi32";case c.MODU2:return"modu2";case c.OR2:return"or2";case c.ECMA_LDNULL:return"ecma.ldnull";case c.FADD2:return"fadd2";case c.F64TOI64:return"f64toi64";case c.MODU2_64:return"modu2.64";case c.OR2_64:return"or2.64";case c.ECMA_LDSYMBOL:return"ecma.ldsymbol";case c.FSUB2:return"fsub2";case c.F64TOU32:return"f64tou32";case c.XOR2:return"xor2";case c.ECMA_LDGLOBAL:return"ecma.ldglobal";case c.FMUL2:return"fmul2";case c.F64TOU64:return"f64tou64";case c.XOR2_64:return"xor2.64";case c.ECMA_LDTRUE:return"ecma.ldtrue";case c.FDIV2:return"fdiv2";case c.I32TOU1:return"i32tou1";case c.SHL2:return"shl2";case c.ECMA_LDFALSE:return"ecma.ldfalse";case c.FMOD2:return"fmod2";case c.I64TOU1:return"i64tou1";case c.SHL2_64:return"shl2.64";case c.ECMA_THROWDYN:return"ecma.throwdyn";case c.I32TOF32:return"i32tof32";case c.U32TOU1:return"u32tou1";case c.SHR2:return"shr2";case c.ECMA_TYPEOFDYN:return"ecma.typeofdyn";case c.U32TOF32:return"u32tof32";case c.U64TOU1:return"u64tou1";case c.SHR2_64:return"shr2.64";case c.ECMA_LDLEXENVDYN:return"ecma.ldlexenvdyn";case c.I64TOF32:return"i64tof32";case c.I32TOI64:return"i32toi64";case c.ASHR2:return"ashr2";case c.ECMA_POPLEXENVDYN:return"ecma.poplexenvdyn";case c.U64TOF32:return"u64tof32";case c.I32TOI16:return"i32toi16";case c.ASHR2_64:return"ashr2.64";case c.ECMA_GETUNMAPPEDARGS:return"ecma.getunmappedargs";case c.F32TOF64:return"f32tof64";case c.I32TOU16:return"i32tou16";case c.XORI:return"xori";case c.ECMA_GETPROPITERATOR:return"ecma.getpropiterator";case c.F32TOI32:return"f32toi32";case c.I32TOI8:return"i32toi8";case c.AND:return"and";case c.ECMA_ASYNCFUNCTIONENTER:return"ecma.asyncfunctionenter";case c.F32TOI64:return"f32toi64";case c.I32TOU8:return"i32tou8";case c.OR:return"or";case c.ECMA_LDHOLE:return"ecma.ldhole";case c.F32TOU32:return"f32tou32";case c.I64TOI32:return"i64toi32";case c.XOR:return"xor";case c.ECMA_RETURNUNDEFINED:return"ecma.returnundefined";case c.F32TOU64:return"f32tou64";case c.U32TOI64:return"u32toi64";case c.SHL:return"shl";case c.ECMA_CREATEEMPTYOBJECT:return"ecma.createemptyobject";case c.F64TOF32:return"f64tof32";case c.U32TOI16:return"u32toi16";case c.SHR:return"shr";case c.ECMA_CREATEEMPTYARRAY:return"ecma.createemptyarray";case c.U32TOU16:return"u32tou16";case c.ASHR:return"ashr";case c.ECMA_GETITERATOR:return"ecma.getiterator";case c.U32TOI8:return"u32toi8";case c.ECMA_THROWTHROWNOTEXISTS:return"ecma.throwthrownotexists";case c.U32TOU8:return"u32tou8";case c.ECMA_THROWPATTERNNONCOERCIBLE:return"ecma.throwpatternnoncoercible";case c.U64TOI32:return"u64toi32";case c.ECMA_LDHOMEOBJECT:return"ecma.ldhomeobject";case c.U64TOU32:return"u64tou32";case c.ECMA_THROWDELETESUPERPROPERTY:return"ecma.throwdeletesuperproperty";case c.ECMA_DEBUGGER:return"ecma.debugger";case c.ECMA_ADD2DYN:return"ecma.add2dyn";case c.ECMA_SUB2DYN:return"ecma.sub2dyn";case c.ECMA_MUL2DYN:return"ecma.mul2dyn";case c.ECMA_DIV2DYN:return"ecma.div2dyn";case c.ECMA_MOD2DYN:return"ecma.mod2dyn";case c.ECMA_EQDYN:return"ecma.eqdyn";case c.ECMA_NOTEQDYN:return"ecma.noteqdyn";case c.ECMA_LESSDYN:return"ecma.lessdyn";case c.ECMA_LESSEQDYN:return"ecma.lesseqdyn";case c.ECMA_GREATERDYN:return"ecma.greaterdyn";case c.ECMA_GREATEREQDYN:return"ecma.greatereqdyn";case c.ECMA_SHL2DYN:return"ecma.shl2dyn";case c.ECMA_SHR2DYN:return"ecma.shr2dyn";case c.ECMA_ASHR2DYN:return"ecma.ashr2dyn";case c.ECMA_AND2DYN:return"ecma.and2dyn";case c.ECMA_OR2DYN:return"ecma.or2dyn";case c.ECMA_XOR2DYN:return"ecma.xor2dyn";case c.ECMA_TONUMBER:return"ecma.tonumber";case c.ECMA_NEGDYN:return"ecma.negdyn";case c.ECMA_NOTDYN:return"ecma.notdyn";case c.ECMA_INCDYN:return"ecma.incdyn";case c.ECMA_DECDYN:return"ecma.decdyn";case c.ECMA_EXPDYN:return"ecma.expdyn";case c.ECMA_ISINDYN:return"ecma.isindyn";case c.ECMA_INSTANCEOFDYN:return"ecma.instanceofdyn";case c.ECMA_STRICTNOTEQDYN:return"ecma.strictnoteqdyn";case c.ECMA_STRICTEQDYN:return"ecma.stricteqdyn";case c.ECMA_RESUMEGENERATOR:return"ecma.resumegenerator";case c.ECMA_GETRESUMEMODE:return"ecma.getresumemode";case c.ECMA_CREATEGENERATOROBJ:return"ecma.creategeneratorobj";case c.ECMA_THROWCONSTASSIGNMENT:return"ecma.throwconstassignment";case c.ECMA_GETTEMPLATEOBJECT:return"ecma.gettemplateobject";case c.ECMA_GETNEXTPROPNAME:return"ecma.getnextpropname";case c.ECMA_CALLARG0DYN:return"ecma.callarg0dyn";case c.ECMA_THROWIFNOTOBJECT:return"ecma.throwifnotobject";case c.ECMA_ITERNEXT:return"ecma.iternext";case c.ECMA_CLOSEITERATOR:return"ecma.closeiterator";case c.ECMA_COPYMODULE:return"ecma.copymodule";case c.ECMA_SUPERCALLSPREAD:return"ecma.supercallspread";case c.ECMA_DELOBJPROP:return"ecma.delobjprop";case c.ECMA_NEWOBJSPREADDYN:return"ecma.newobjspreaddyn";case c.ECMA_CREATEITERRESULTOBJ:return"ecma.createiterresultobj";case c.ECMA_SUSPENDGENERATOR:return"ecma.suspendgenerator";case c.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT:return"ecma.asyncfunctionawaituncaught";case c.ECMA_THROWUNDEFINEDIFHOLE:return"ecma.throwundefinedifhole";case c.ECMA_CALLARG1DYN:return"ecma.callarg1dyn";case c.ECMA_COPYDATAPROPERTIES:return"ecma.copydataproperties";case c.ECMA_STARRAYSPREAD:return"ecma.starrayspread";case c.ECMA_GETITERATORNEXT:return"ecma.getiteratornext";case c.ECMA_SETOBJECTWITHPROTO:return"ecma.setobjectwithproto";case c.ECMA_LDOBJBYVALUE:return"ecma.ldobjbyvalue";case c.ECMA_STOBJBYVALUE:return"ecma.stobjbyvalue";case c.ECMA_STOWNBYVALUE:return"ecma.stownbyvalue";case c.ECMA_LDSUPERBYVALUE:return"ecma.ldsuperbyvalue";case c.ECMA_STSUPERBYVALUE:return"ecma.stsuperbyvalue";case c.ECMA_LDOBJBYINDEX:return"ecma.ldobjbyindex";case c.ECMA_STOBJBYINDEX:return"ecma.stobjbyindex";case c.ECMA_STOWNBYINDEX:return"ecma.stownbyindex";case c.ECMA_CALLSPREADDYN:return"ecma.callspreaddyn";case c.ECMA_ASYNCFUNCTIONRESOLVE:return"ecma.asyncfunctionresolve";case c.ECMA_ASYNCFUNCTIONREJECT:return"ecma.asyncfunctionreject";case c.ECMA_CALLARGS2DYN:return"ecma.callargs2dyn";case c.ECMA_CALLARGS3DYN:return"ecma.callargs3dyn";case c.ECMA_DEFINEGETTERSETTERBYVALUE:return"ecma.definegettersetterbyvalue";case c.ECMA_NEWOBJDYNRANGE:return"ecma.newobjdynrange";case c.ECMA_CALLIRANGEDYN:return"ecma.callirangedyn";case c.ECMA_CALLITHISRANGEDYN:return"ecma.callithisrangedyn";case c.ECMA_SUPERCALL:return"ecma.supercall";case c.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS:return"ecma.createobjectwithexcludedkeys";case c.ECMA_DEFINEFUNCDYN:return"ecma.definefuncdyn";case c.ECMA_DEFINENCFUNCDYN:return"ecma.definencfuncdyn";case c.ECMA_DEFINEGENERATORFUNC:return"ecma.definegeneratorfunc";case c.ECMA_DEFINEASYNCFUNC:return"ecma.defineasyncfunc";case c.ECMA_DEFINEMETHOD:return"ecma.definemethod";case c.ECMA_NEWLEXENVDYN:return"ecma.newlexenvdyn";case c.ECMA_COPYRESTARGS:return"ecma.copyrestargs";case c.ECMA_CREATEARRAYWITHBUFFER:return"ecma.createarraywithbuffer";case c.ECMA_CREATEOBJECTHAVINGMETHOD:return"ecma.createobjecthavingmethod";case c.ECMA_THROWIFSUPERNOTCORRECTCALL:return"ecma.throwifsupernotcorrectcall";case c.ECMA_CREATEOBJECTWITHBUFFER:return"ecma.createobjectwithbuffer";case c.ECMA_LDLEXVARDYN:return"ecma.ldlexvardyn";case c.ECMA_STLEXVARDYN:return"ecma.stlexvardyn";case c.ECMA_DEFINECLASSWITHBUFFER:return"ecma.defineclasswithbuffer";case c.ECMA_IMPORTMODULE:return"ecma.importmodule";case c.ECMA_STMODULEVAR:return"ecma.stmodulevar";case c.ECMA_TRYLDGLOBALBYNAME:return"ecma.tryldglobalbyname";case c.ECMA_TRYSTGLOBALBYNAME:return"ecma.trystglobalbyname";case c.ECMA_LDGLOBALVAR:return"ecma.ldglobalvar";case c.ECMA_STGLOBALVAR:return"ecma.stglobalvar";case c.ECMA_LDOBJBYNAME:return"ecma.ldobjbyname";case c.ECMA_STOBJBYNAME:return"ecma.stobjbyname";case c.ECMA_STOWNBYNAME:return"ecma.stownbyname";case c.ECMA_LDSUPERBYNAME:return"ecma.ldsuperbyname";case c.ECMA_STSUPERBYNAME:return"ecma.stsuperbyname";case c.ECMA_LDMODVARBYNAME:return"ecma.ldmodvarbyname";case c.ECMA_CREATEREGEXPWITHLITERAL:return"ecma.createregexpwithliteral";case c.ECMA_ISTRUE:return"ecma.istrue";case c.ECMA_ISFALSE:return"ecma.isfalse";case c.ECMA_STCONSTTOGLOBALRECORD:return"ecma.stconsttoglobalrecord";case c.ECMA_STLETTOGLOBALRECORD:return"ecma.stlettoglobalrecord";case c.ECMA_STCLASSTOGLOBALRECORD:return"ecma.stclasstoglobalrecord";case c.ECMA_STOWNBYVALUEWITHNAMESET:return"ecma.stownbyvaluewithnameset";case c.ECMA_STOWNBYNAMEWITHNAMESET:return"ecma.stownbynamewithnameset";case c.ECMA_LDFUNCTION:return"ecma.ldfunction";case c.ECMA_NEWLEXENVWITHNAMEDYN:return"ecma.newlexenvwithnamedyn";case c.ECMA_LDBIGINT:return"ecma.ldbigint";default:return""}}function f(e){switch(e){case c.NOP:return[[]];case c.MOV:return[[[1,4],[0,4]],[[1,8],[0,8]],[[1,16],[0,16]]];case c.MOV_64:return[[[1,4],[0,4]],[[1,16],[0,16]]];case c.MOV_OBJ:return[[[1,4],[0,4]],[[1,8],[0,8]],[[1,16],[0,16]]];case c.MOVI:return[[[1,4],[3,4]],[[1,8],[3,8]],[[1,8],[3,16]],[[1,8],[3,32]]];case c.MOVI_64:case c.FMOVI_64:return[[[1,8],[3,64]]];case c.MOV_NULL:return[[[1,8]]];case c.LDA:case c.LDA_64:case c.LDA_OBJ:return[[[0,8]]];case c.LDAI:return[[[3,8]],[[3,16]],[[3,32]]];case c.LDAI_64:case c.FLDAI_64:return[[[3,64]]];case c.LDA_STR:return[[[5,32]]];case c.LDA_CONST:return[[[1,8],[4,32]]];case c.LDA_TYPE:return[[[4,16]]];case c.LDA_NULL:return[[]];case c.STA:case c.STA_64:case c.STA_OBJ:return[[[1,8]]];case c.CMP_64:case c.FCMPL_64:case c.FCMPG_64:return[[[0,8]]];case c.JMP:return[[[6,8]],[[6,16]],[[6,32]]];case c.JEQ_OBJ:case c.JNE_OBJ:return[[[0,8],[6,8]],[[0,8],[6,16]]];case c.JEQZ_OBJ:case c.JNEZ_OBJ:case c.JEQZ:case c.JNEZ:case c.JLTZ:case c.JGTZ:case c.JLEZ:case c.JGEZ:return[[[6,8]],[[6,16]]];case c.JEQ:case c.JNE:case c.JLT:case c.JGT:case c.JLE:case c.JGE:return[[[0,8],[6,8]],[[0,8],[6,16]]];case c.FNEG_64:case c.NEG:case c.NEG_64:return[[]];case c.ADD2:case c.ADD2_64:case c.SUB2:case c.SUB2_64:case c.MUL2:case c.MUL2_64:case c.FADD2_64:case c.FSUB2_64:case c.FMUL2_64:case c.FDIV2_64:case c.FMOD2_64:case c.DIV2:case c.DIV2_64:case c.MOD2:case c.MOD2_64:return[[[0,8]]];case c.ADDI:case c.SUBI:case c.MULI:return[[[3,8]]];case c.ANDI:case c.ORI:return[[[3,32]]];case c.SHLI:case c.SHRI:case c.ASHRI:case c.DIVI:case c.MODI:return[[[3,8]]];case c.ADD:case c.SUB:case c.MUL:case c.DIV:case c.MOD:return[[[0,4],[0,4]]];case c.INCI:return[[[2,4],[3,4]]];case c.LDARR_8:case c.LDARRU_8:case c.LDARR_16:case c.LDARRU_16:case c.LDARR:case c.LDARR_64:case c.FLDARR_32:case c.FLDARR_64:case c.LDARR_OBJ:return[[[0,8]]];case c.STARR_8:case c.STARR_16:case c.STARR:case c.STARR_64:case c.FSTARR_32:case c.FSTARR_64:case c.STARR_OBJ:return[[[0,4],[0,4]]];case c.LENARR:return[[[0,8]]];case c.NEWARR:return[[[1,4],[0,4],[4,16]]];case c.NEWOBJ:return[[[1,8],[4,16]]];case c.INITOBJ_SHORT:return[[[4,16],[0,4],[0,4]]];case c.INITOBJ:return[[[4,16],[0,4],[0,4],[0,4],[0,4]]];case c.INITOBJ_RANGE:return[[[4,16],[0,8]]];case c.LDOBJ:case c.LDOBJ_64:case c.LDOBJ_OBJ:case c.STOBJ:case c.STOBJ_64:case c.STOBJ_OBJ:return[[[0,8],[4,16]]];case c.LDOBJ_V:case c.LDOBJ_V_64:case c.LDOBJ_V_OBJ:return[[[1,4],[0,4],[4,16]]];case c.STOBJ_V:case c.STOBJ_V_64:case c.STOBJ_V_OBJ:return[[[0,4],[0,4],[4,16]]];case c.LDSTATIC:case c.LDSTATIC_64:case c.LDSTATIC_OBJ:case c.STSTATIC:case c.STSTATIC_64:case c.STSTATIC_OBJ:return[[[4,16]]];case c.RETURN:case c.RETURN_64:case c.RETURN_OBJ:case c.RETURN_VOID:return[[]];case c.THROW:return[[[0,8]]];case c.CHECKCAST:case c.ISINSTANCE:return[[[4,16]]];case c.CALL_SHORT:return[[[4,16],[0,4],[0,4]]];case c.CALL:return[[[4,16],[0,4],[0,4],[0,4],[0,4]]];case c.CALL_RANGE:return[[[4,16],[0,8]]];case c.CALL_ACC_SHORT:return[[[4,16],[0,4],[3,4]]];case c.CALL_ACC:return[[[4,16],[0,4],[0,4],[0,4],[3,4]]];case c.CALL_VIRT_SHORT:return[[[4,16],[0,4],[0,4]]];case c.CALL_VIRT:return[[[4,16],[0,4],[0,4],[0,4],[0,4]]];case c.CALL_VIRT_RANGE:return[[[4,16],[0,8]]];case c.CALL_VIRT_ACC_SHORT:return[[[4,16],[0,4],[3,4]]];case c.CALL_VIRT_ACC:return[[[4,16],[0,4],[0,4],[0,4],[3,4]]];case c.MOV_DYN:return[[[1,8],[0,8]],[[1,16],[0,16]]];case c.LDA_DYN:return[[[0,8]]];case c.STA_DYN:return[[[1,8]]];case c.LDAI_DYN:return[[[3,32]]];case c.FLDAI_DYN:return[[[3,64]]];case c.RETURN_DYN:return[[]];case c.CALLI_DYN_SHORT:return[[[3,4],[0,4],[0,4],[0,4]]];case c.CALLI_DYN:return[[[3,4],[0,4],[0,4],[0,4],[0,4],[0,4]]];case c.CALLI_DYN_RANGE:return[[[3,16],[0,16]]];case c.FMOVI:return[[[1,8],[3,32]]];case c.I32TOF64:return[[]];case c.UCMP:return[[[0,8]]];case c.NOT:case c.ECMA_LDNAN:return[[]];case c.FLDAI:return[[[3,32]]];case c.U32TOF64:return[[]];case c.UCMP_64:return[[[0,8]]];case c.NOT_64:case c.ECMA_LDINFINITY:return[[]];case c.FCMPL:return[[[0,8]]];case c.I64TOF64:return[[]];case c.DIVU2:case c.AND2:return[[[0,8]]];case c.ECMA_LDGLOBALTHIS:return[[]];case c.FCMPG:return[[[0,8]]];case c.U64TOF64:return[[]];case c.DIVU2_64:case c.AND2_64:return[[[0,8]]];case c.ECMA_LDUNDEFINED:case c.FNEG:case c.F64TOI32:return[[]];case c.MODU2:case c.OR2:return[[[0,8]]];case c.ECMA_LDNULL:return[[]];case c.FADD2:return[[[0,8]]];case c.F64TOI64:return[[]];case c.MODU2_64:case c.OR2_64:return[[[0,8]]];case c.ECMA_LDSYMBOL:return[[]];case c.FSUB2:return[[[0,8]]];case c.F64TOU32:return[[]];case c.XOR2:return[[[0,8]]];case c.ECMA_LDGLOBAL:return[[]];case c.FMUL2:return[[[0,8]]];case c.F64TOU64:return[[]];case c.XOR2_64:return[[[0,8]]];case c.ECMA_LDTRUE:return[[]];case c.FDIV2:return[[[0,8]]];case c.I32TOU1:return[[]];case c.SHL2:return[[[0,8]]];case c.ECMA_LDFALSE:return[[]];case c.FMOD2:return[[[0,8]]];case c.I64TOU1:return[[]];case c.SHL2_64:return[[[0,8]]];case c.ECMA_THROWDYN:case c.I32TOF32:case c.U32TOU1:return[[]];case c.SHR2:return[[[0,8]]];case c.ECMA_TYPEOFDYN:case c.U32TOF32:case c.U64TOU1:return[[]];case c.SHR2_64:return[[[0,8]]];case c.ECMA_LDLEXENVDYN:case c.I64TOF32:case c.I32TOI64:return[[]];case c.ASHR2:return[[[0,8]]];case c.ECMA_POPLEXENVDYN:case c.U64TOF32:case c.I32TOI16:return[[]];case c.ASHR2_64:return[[[0,8]]];case c.ECMA_GETUNMAPPEDARGS:case c.F32TOF64:case c.I32TOU16:return[[]];case c.XORI:return[[[3,32]]];case c.ECMA_GETPROPITERATOR:case c.F32TOI32:case c.I32TOI8:return[[]];case c.AND:return[[[0,4],[0,4]]];case c.ECMA_ASYNCFUNCTIONENTER:case c.F32TOI64:case c.I32TOU8:return[[]];case c.OR:return[[[0,4],[0,4]]];case c.ECMA_LDHOLE:case c.F32TOU32:case c.I64TOI32:return[[]];case c.XOR:return[[[0,4],[0,4]]];case c.ECMA_RETURNUNDEFINED:case c.F32TOU64:case c.U32TOI64:return[[]];case c.SHL:return[[[0,4],[0,4]]];case c.ECMA_CREATEEMPTYOBJECT:case c.F64TOF32:case c.U32TOI16:return[[]];case c.SHR:return[[[0,4],[0,4]]];case c.ECMA_CREATEEMPTYARRAY:case c.U32TOU16:return[[]];case c.ASHR:return[[[0,4],[0,4]]];case c.ECMA_GETITERATOR:case c.U32TOI8:case c.ECMA_THROWTHROWNOTEXISTS:case c.U32TOU8:case c.ECMA_THROWPATTERNNONCOERCIBLE:case c.U64TOI32:case c.ECMA_LDHOMEOBJECT:case c.U64TOU32:case c.ECMA_THROWDELETESUPERPROPERTY:case c.ECMA_DEBUGGER:return[[]];case c.ECMA_ADD2DYN:case c.ECMA_SUB2DYN:case c.ECMA_MUL2DYN:case c.ECMA_DIV2DYN:case c.ECMA_MOD2DYN:case c.ECMA_EQDYN:case c.ECMA_NOTEQDYN:case c.ECMA_LESSDYN:case c.ECMA_LESSEQDYN:case c.ECMA_GREATERDYN:case c.ECMA_GREATEREQDYN:case c.ECMA_SHL2DYN:case c.ECMA_SHR2DYN:case c.ECMA_ASHR2DYN:case c.ECMA_AND2DYN:case c.ECMA_OR2DYN:case c.ECMA_XOR2DYN:case c.ECMA_TONUMBER:case c.ECMA_NEGDYN:case c.ECMA_NOTDYN:case c.ECMA_INCDYN:case c.ECMA_DECDYN:case c.ECMA_EXPDYN:case c.ECMA_ISINDYN:case c.ECMA_INSTANCEOFDYN:case c.ECMA_STRICTNOTEQDYN:case c.ECMA_STRICTEQDYN:case c.ECMA_RESUMEGENERATOR:case c.ECMA_GETRESUMEMODE:case c.ECMA_CREATEGENERATOROBJ:case c.ECMA_THROWCONSTASSIGNMENT:case c.ECMA_GETTEMPLATEOBJECT:case c.ECMA_GETNEXTPROPNAME:case c.ECMA_CALLARG0DYN:case c.ECMA_THROWIFNOTOBJECT:case c.ECMA_ITERNEXT:case c.ECMA_CLOSEITERATOR:case c.ECMA_COPYMODULE:case c.ECMA_SUPERCALLSPREAD:return[[[0,8]]];case c.ECMA_DELOBJPROP:case c.ECMA_NEWOBJSPREADDYN:case c.ECMA_CREATEITERRESULTOBJ:case c.ECMA_SUSPENDGENERATOR:case c.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT:case c.ECMA_THROWUNDEFINEDIFHOLE:case c.ECMA_CALLARG1DYN:case c.ECMA_COPYDATAPROPERTIES:case c.ECMA_STARRAYSPREAD:case c.ECMA_GETITERATORNEXT:case c.ECMA_SETOBJECTWITHPROTO:case c.ECMA_LDOBJBYVALUE:case c.ECMA_STOBJBYVALUE:case c.ECMA_STOWNBYVALUE:case c.ECMA_LDSUPERBYVALUE:case c.ECMA_STSUPERBYVALUE:return[[[0,8],[0,8]]];case c.ECMA_LDOBJBYINDEX:case c.ECMA_STOBJBYINDEX:case c.ECMA_STOWNBYINDEX:return[[[0,8],[3,32]]];case c.ECMA_CALLSPREADDYN:case c.ECMA_ASYNCFUNCTIONRESOLVE:case c.ECMA_ASYNCFUNCTIONREJECT:case c.ECMA_CALLARGS2DYN:return[[[0,8],[0,8],[0,8]]];case c.ECMA_CALLARGS3DYN:case c.ECMA_DEFINEGETTERSETTERBYVALUE:return[[[0,8],[0,8],[0,8],[0,8]]];case c.ECMA_NEWOBJDYNRANGE:case c.ECMA_CALLIRANGEDYN:case c.ECMA_CALLITHISRANGEDYN:case c.ECMA_SUPERCALL:return[[[3,16],[0,8]]];case c.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS:return[[[3,16],[0,8],[0,8]]];case c.ECMA_DEFINEFUNCDYN:case c.ECMA_DEFINENCFUNCDYN:case c.ECMA_DEFINEGENERATORFUNC:case c.ECMA_DEFINEASYNCFUNC:case c.ECMA_DEFINEMETHOD:return[[[4,16],[3,16],[0,8]]];case c.ECMA_NEWLEXENVDYN:case c.ECMA_COPYRESTARGS:case c.ECMA_CREATEARRAYWITHBUFFER:case c.ECMA_CREATEOBJECTHAVINGMETHOD:case c.ECMA_THROWIFSUPERNOTCORRECTCALL:case c.ECMA_CREATEOBJECTWITHBUFFER:return[[[3,16]]];case c.ECMA_LDLEXVARDYN:return[[[3,4],[3,4]],[[3,8],[3,8]],[[3,16],[3,16]]];case c.ECMA_STLEXVARDYN:return[[[3,4],[3,4],[0,8]],[[3,8],[3,8],[0,8]],[[3,16],[3,16],[0,8]]];case c.ECMA_DEFINECLASSWITHBUFFER:return[[[4,16],[3,16],[3,16],[0,8],[0,8]]];case c.ECMA_IMPORTMODULE:case c.ECMA_STMODULEVAR:case c.ECMA_TRYLDGLOBALBYNAME:case c.ECMA_TRYSTGLOBALBYNAME:case c.ECMA_LDGLOBALVAR:case c.ECMA_STGLOBALVAR:return[[[5,32]]];case c.ECMA_LDOBJBYNAME:case c.ECMA_STOBJBYNAME:case c.ECMA_STOWNBYNAME:case c.ECMA_LDSUPERBYNAME:case c.ECMA_STSUPERBYNAME:case c.ECMA_LDMODVARBYNAME:return[[[5,32],[0,8]]];case c.ECMA_CREATEREGEXPWITHLITERAL:return[[[5,32],[3,8]]];case c.ECMA_ISTRUE:case c.ECMA_ISFALSE:return[[]];case c.ECMA_STCONSTTOGLOBALRECORD:case c.ECMA_STLETTOGLOBALRECORD:case c.ECMA_STCLASSTOGLOBALRECORD:return[[[5,32]]];case c.ECMA_STOWNBYVALUEWITHNAMESET:return[[[0,8],[0,8]]];case c.ECMA_STOWNBYNAMEWITHNAMESET:return[[[5,32],[0,8]]];case c.ECMA_LDFUNCTION:return[[]];case c.ECMA_NEWLEXENVWITHNAMEDYN:return[[[3,16],[3,16]]];case c.ECMA_LDBIGINT:return[[[5,32]]];default:return[]}}!function(e){e[e.NOP=0]="NOP",e[e.MOV=1]="MOV",e[e.MOV_64=2]="MOV_64",e[e.MOV_OBJ=3]="MOV_OBJ",e[e.MOVI=4]="MOVI",e[e.MOVI_64=5]="MOVI_64",e[e.FMOVI_64=6]="FMOVI_64",e[e.MOV_NULL=7]="MOV_NULL",e[e.LDA=8]="LDA",e[e.LDA_64=9]="LDA_64",e[e.LDA_OBJ=10]="LDA_OBJ",e[e.LDAI=11]="LDAI",e[e.LDAI_64=12]="LDAI_64",e[e.FLDAI_64=13]="FLDAI_64",e[e.LDA_STR=14]="LDA_STR",e[e.LDA_CONST=15]="LDA_CONST",e[e.LDA_TYPE=16]="LDA_TYPE",e[e.LDA_NULL=17]="LDA_NULL",e[e.STA=18]="STA",e[e.STA_64=19]="STA_64",e[e.STA_OBJ=20]="STA_OBJ",e[e.CMP_64=21]="CMP_64",e[e.FCMPL_64=22]="FCMPL_64",e[e.FCMPG_64=23]="FCMPG_64",e[e.JMP=24]="JMP",e[e.JEQ_OBJ=25]="JEQ_OBJ",e[e.JNE_OBJ=26]="JNE_OBJ",e[e.JEQZ_OBJ=27]="JEQZ_OBJ",e[e.JNEZ_OBJ=28]="JNEZ_OBJ",e[e.JEQZ=29]="JEQZ",e[e.JNEZ=30]="JNEZ",e[e.JLTZ=31]="JLTZ",e[e.JGTZ=32]="JGTZ",e[e.JLEZ=33]="JLEZ",e[e.JGEZ=34]="JGEZ",e[e.JEQ=35]="JEQ",e[e.JNE=36]="JNE",e[e.JLT=37]="JLT",e[e.JGT=38]="JGT",e[e.JLE=39]="JLE",e[e.JGE=40]="JGE",e[e.FNEG_64=41]="FNEG_64",e[e.NEG=42]="NEG",e[e.NEG_64=43]="NEG_64",e[e.ADD2=44]="ADD2",e[e.ADD2_64=45]="ADD2_64",e[e.SUB2=46]="SUB2",e[e.SUB2_64=47]="SUB2_64",e[e.MUL2=48]="MUL2",e[e.MUL2_64=49]="MUL2_64",e[e.FADD2_64=50]="FADD2_64",e[e.FSUB2_64=51]="FSUB2_64",e[e.FMUL2_64=52]="FMUL2_64",e[e.FDIV2_64=53]="FDIV2_64",e[e.FMOD2_64=54]="FMOD2_64",e[e.DIV2=55]="DIV2",e[e.DIV2_64=56]="DIV2_64",e[e.MOD2=57]="MOD2",e[e.MOD2_64=58]="MOD2_64",e[e.ADDI=59]="ADDI",e[e.SUBI=60]="SUBI",e[e.MULI=61]="MULI",e[e.ANDI=62]="ANDI",e[e.ORI=63]="ORI",e[e.SHLI=64]="SHLI",e[e.SHRI=65]="SHRI",e[e.ASHRI=66]="ASHRI",e[e.DIVI=67]="DIVI",e[e.MODI=68]="MODI",e[e.ADD=69]="ADD",e[e.SUB=70]="SUB",e[e.MUL=71]="MUL",e[e.DIV=72]="DIV",e[e.MOD=73]="MOD",e[e.INCI=74]="INCI",e[e.LDARR_8=75]="LDARR_8",e[e.LDARRU_8=76]="LDARRU_8",e[e.LDARR_16=77]="LDARR_16",e[e.LDARRU_16=78]="LDARRU_16",e[e.LDARR=79]="LDARR",e[e.LDARR_64=80]="LDARR_64",e[e.FLDARR_32=81]="FLDARR_32",e[e.FLDARR_64=82]="FLDARR_64",e[e.LDARR_OBJ=83]="LDARR_OBJ",e[e.STARR_8=84]="STARR_8",e[e.STARR_16=85]="STARR_16",e[e.STARR=86]="STARR",e[e.STARR_64=87]="STARR_64",e[e.FSTARR_32=88]="FSTARR_32",e[e.FSTARR_64=89]="FSTARR_64",e[e.STARR_OBJ=90]="STARR_OBJ",e[e.LENARR=91]="LENARR",e[e.NEWARR=92]="NEWARR",e[e.NEWOBJ=93]="NEWOBJ",e[e.INITOBJ_SHORT=94]="INITOBJ_SHORT",e[e.INITOBJ=95]="INITOBJ",e[e.INITOBJ_RANGE=96]="INITOBJ_RANGE",e[e.LDOBJ=97]="LDOBJ",e[e.LDOBJ_64=98]="LDOBJ_64",e[e.LDOBJ_OBJ=99]="LDOBJ_OBJ",e[e.STOBJ=100]="STOBJ",e[e.STOBJ_64=101]="STOBJ_64",e[e.STOBJ_OBJ=102]="STOBJ_OBJ",e[e.LDOBJ_V=103]="LDOBJ_V",e[e.LDOBJ_V_64=104]="LDOBJ_V_64",e[e.LDOBJ_V_OBJ=105]="LDOBJ_V_OBJ",e[e.STOBJ_V=106]="STOBJ_V",e[e.STOBJ_V_64=107]="STOBJ_V_64",e[e.STOBJ_V_OBJ=108]="STOBJ_V_OBJ",e[e.LDSTATIC=109]="LDSTATIC",e[e.LDSTATIC_64=110]="LDSTATIC_64",e[e.LDSTATIC_OBJ=111]="LDSTATIC_OBJ",e[e.STSTATIC=112]="STSTATIC",e[e.STSTATIC_64=113]="STSTATIC_64",e[e.STSTATIC_OBJ=114]="STSTATIC_OBJ",e[e.RETURN=115]="RETURN",e[e.RETURN_64=116]="RETURN_64",e[e.RETURN_OBJ=117]="RETURN_OBJ",e[e.RETURN_VOID=118]="RETURN_VOID",e[e.THROW=119]="THROW",e[e.CHECKCAST=120]="CHECKCAST",e[e.ISINSTANCE=121]="ISINSTANCE",e[e.CALL_SHORT=122]="CALL_SHORT",e[e.CALL=123]="CALL",e[e.CALL_RANGE=124]="CALL_RANGE",e[e.CALL_ACC_SHORT=125]="CALL_ACC_SHORT",e[e.CALL_ACC=126]="CALL_ACC",e[e.CALL_VIRT_SHORT=127]="CALL_VIRT_SHORT",e[e.CALL_VIRT=128]="CALL_VIRT",e[e.CALL_VIRT_RANGE=129]="CALL_VIRT_RANGE",e[e.CALL_VIRT_ACC_SHORT=130]="CALL_VIRT_ACC_SHORT",e[e.CALL_VIRT_ACC=131]="CALL_VIRT_ACC",e[e.MOV_DYN=132]="MOV_DYN",e[e.LDA_DYN=133]="LDA_DYN",e[e.STA_DYN=134]="STA_DYN",e[e.LDAI_DYN=135]="LDAI_DYN",e[e.FLDAI_DYN=136]="FLDAI_DYN",e[e.RETURN_DYN=137]="RETURN_DYN",e[e.CALLI_DYN_SHORT=138]="CALLI_DYN_SHORT",e[e.CALLI_DYN=139]="CALLI_DYN",e[e.CALLI_DYN_RANGE=140]="CALLI_DYN_RANGE",e[e.FMOVI=141]="FMOVI",e[e.I32TOF64=142]="I32TOF64",e[e.UCMP=143]="UCMP",e[e.NOT=144]="NOT",e[e.ECMA_LDNAN=145]="ECMA_LDNAN",e[e.FLDAI=146]="FLDAI",e[e.U32TOF64=147]="U32TOF64",e[e.UCMP_64=148]="UCMP_64",e[e.NOT_64=149]="NOT_64",e[e.ECMA_LDINFINITY=150]="ECMA_LDINFINITY",e[e.FCMPL=151]="FCMPL",e[e.I64TOF64=152]="I64TOF64",e[e.DIVU2=153]="DIVU2",e[e.AND2=154]="AND2",e[e.ECMA_LDGLOBALTHIS=155]="ECMA_LDGLOBALTHIS",e[e.FCMPG=156]="FCMPG",e[e.U64TOF64=157]="U64TOF64",e[e.DIVU2_64=158]="DIVU2_64",e[e.AND2_64=159]="AND2_64",e[e.ECMA_LDUNDEFINED=160]="ECMA_LDUNDEFINED",e[e.FNEG=161]="FNEG",e[e.F64TOI32=162]="F64TOI32",e[e.MODU2=163]="MODU2",e[e.OR2=164]="OR2",e[e.ECMA_LDNULL=165]="ECMA_LDNULL",e[e.FADD2=166]="FADD2",e[e.F64TOI64=167]="F64TOI64",e[e.MODU2_64=168]="MODU2_64",e[e.OR2_64=169]="OR2_64",e[e.ECMA_LDSYMBOL=170]="ECMA_LDSYMBOL",e[e.FSUB2=171]="FSUB2",e[e.F64TOU32=172]="F64TOU32",e[e.XOR2=173]="XOR2",e[e.ECMA_LDGLOBAL=174]="ECMA_LDGLOBAL",e[e.FMUL2=175]="FMUL2",e[e.F64TOU64=176]="F64TOU64",e[e.XOR2_64=177]="XOR2_64",e[e.ECMA_LDTRUE=178]="ECMA_LDTRUE",e[e.FDIV2=179]="FDIV2",e[e.I32TOU1=180]="I32TOU1",e[e.SHL2=181]="SHL2",e[e.ECMA_LDFALSE=182]="ECMA_LDFALSE",e[e.FMOD2=183]="FMOD2",e[e.I64TOU1=184]="I64TOU1",e[e.SHL2_64=185]="SHL2_64",e[e.ECMA_THROWDYN=186]="ECMA_THROWDYN",e[e.I32TOF32=187]="I32TOF32",e[e.U32TOU1=188]="U32TOU1",e[e.SHR2=189]="SHR2",e[e.ECMA_TYPEOFDYN=190]="ECMA_TYPEOFDYN",e[e.U32TOF32=191]="U32TOF32",e[e.U64TOU1=192]="U64TOU1",e[e.SHR2_64=193]="SHR2_64",e[e.ECMA_LDLEXENVDYN=194]="ECMA_LDLEXENVDYN",e[e.I64TOF32=195]="I64TOF32",e[e.I32TOI64=196]="I32TOI64",e[e.ASHR2=197]="ASHR2",e[e.ECMA_POPLEXENVDYN=198]="ECMA_POPLEXENVDYN",e[e.U64TOF32=199]="U64TOF32",e[e.I32TOI16=200]="I32TOI16",e[e.ASHR2_64=201]="ASHR2_64",e[e.ECMA_GETUNMAPPEDARGS=202]="ECMA_GETUNMAPPEDARGS",e[e.F32TOF64=203]="F32TOF64",e[e.I32TOU16=204]="I32TOU16",e[e.XORI=205]="XORI",e[e.ECMA_GETPROPITERATOR=206]="ECMA_GETPROPITERATOR",e[e.F32TOI32=207]="F32TOI32",e[e.I32TOI8=208]="I32TOI8",e[e.AND=209]="AND",e[e.ECMA_ASYNCFUNCTIONENTER=210]="ECMA_ASYNCFUNCTIONENTER",e[e.F32TOI64=211]="F32TOI64",e[e.I32TOU8=212]="I32TOU8",e[e.OR=213]="OR",e[e.ECMA_LDHOLE=214]="ECMA_LDHOLE",e[e.F32TOU32=215]="F32TOU32",e[e.I64TOI32=216]="I64TOI32",e[e.XOR=217]="XOR",e[e.ECMA_RETURNUNDEFINED=218]="ECMA_RETURNUNDEFINED",e[e.F32TOU64=219]="F32TOU64",e[e.U32TOI64=220]="U32TOI64",e[e.SHL=221]="SHL",e[e.ECMA_CREATEEMPTYOBJECT=222]="ECMA_CREATEEMPTYOBJECT",e[e.F64TOF32=223]="F64TOF32",e[e.U32TOI16=224]="U32TOI16",e[e.SHR=225]="SHR",e[e.ECMA_CREATEEMPTYARRAY=226]="ECMA_CREATEEMPTYARRAY",e[e.U32TOU16=227]="U32TOU16",e[e.ASHR=228]="ASHR",e[e.ECMA_GETITERATOR=229]="ECMA_GETITERATOR",e[e.U32TOI8=230]="U32TOI8",e[e.ECMA_THROWTHROWNOTEXISTS=231]="ECMA_THROWTHROWNOTEXISTS",e[e.U32TOU8=232]="U32TOU8",e[e.ECMA_THROWPATTERNNONCOERCIBLE=233]="ECMA_THROWPATTERNNONCOERCIBLE",e[e.U64TOI32=234]="U64TOI32",e[e.ECMA_LDHOMEOBJECT=235]="ECMA_LDHOMEOBJECT",e[e.U64TOU32=236]="U64TOU32",e[e.ECMA_THROWDELETESUPERPROPERTY=237]="ECMA_THROWDELETESUPERPROPERTY",e[e.ECMA_DEBUGGER=238]="ECMA_DEBUGGER",e[e.ECMA_ADD2DYN=239]="ECMA_ADD2DYN",e[e.ECMA_SUB2DYN=240]="ECMA_SUB2DYN",e[e.ECMA_MUL2DYN=241]="ECMA_MUL2DYN",e[e.ECMA_DIV2DYN=242]="ECMA_DIV2DYN",e[e.ECMA_MOD2DYN=243]="ECMA_MOD2DYN",e[e.ECMA_EQDYN=244]="ECMA_EQDYN",e[e.ECMA_NOTEQDYN=245]="ECMA_NOTEQDYN",e[e.ECMA_LESSDYN=246]="ECMA_LESSDYN",e[e.ECMA_LESSEQDYN=247]="ECMA_LESSEQDYN",e[e.ECMA_GREATERDYN=248]="ECMA_GREATERDYN",e[e.ECMA_GREATEREQDYN=249]="ECMA_GREATEREQDYN",e[e.ECMA_SHL2DYN=250]="ECMA_SHL2DYN",e[e.ECMA_SHR2DYN=251]="ECMA_SHR2DYN",e[e.ECMA_ASHR2DYN=252]="ECMA_ASHR2DYN",e[e.ECMA_AND2DYN=253]="ECMA_AND2DYN",e[e.ECMA_OR2DYN=254]="ECMA_OR2DYN",e[e.ECMA_XOR2DYN=255]="ECMA_XOR2DYN",e[e.ECMA_TONUMBER=256]="ECMA_TONUMBER",e[e.ECMA_NEGDYN=257]="ECMA_NEGDYN",e[e.ECMA_NOTDYN=258]="ECMA_NOTDYN",e[e.ECMA_INCDYN=259]="ECMA_INCDYN",e[e.ECMA_DECDYN=260]="ECMA_DECDYN",e[e.ECMA_EXPDYN=261]="ECMA_EXPDYN",e[e.ECMA_ISINDYN=262]="ECMA_ISINDYN",e[e.ECMA_INSTANCEOFDYN=263]="ECMA_INSTANCEOFDYN",e[e.ECMA_STRICTNOTEQDYN=264]="ECMA_STRICTNOTEQDYN",e[e.ECMA_STRICTEQDYN=265]="ECMA_STRICTEQDYN",e[e.ECMA_RESUMEGENERATOR=266]="ECMA_RESUMEGENERATOR",e[e.ECMA_GETRESUMEMODE=267]="ECMA_GETRESUMEMODE",e[e.ECMA_CREATEGENERATOROBJ=268]="ECMA_CREATEGENERATOROBJ",e[e.ECMA_THROWCONSTASSIGNMENT=269]="ECMA_THROWCONSTASSIGNMENT",e[e.ECMA_GETTEMPLATEOBJECT=270]="ECMA_GETTEMPLATEOBJECT",e[e.ECMA_GETNEXTPROPNAME=271]="ECMA_GETNEXTPROPNAME",e[e.ECMA_CALLARG0DYN=272]="ECMA_CALLARG0DYN",e[e.ECMA_THROWIFNOTOBJECT=273]="ECMA_THROWIFNOTOBJECT",e[e.ECMA_ITERNEXT=274]="ECMA_ITERNEXT",e[e.ECMA_CLOSEITERATOR=275]="ECMA_CLOSEITERATOR",e[e.ECMA_COPYMODULE=276]="ECMA_COPYMODULE",e[e.ECMA_SUPERCALLSPREAD=277]="ECMA_SUPERCALLSPREAD",e[e.ECMA_DELOBJPROP=278]="ECMA_DELOBJPROP",e[e.ECMA_NEWOBJSPREADDYN=279]="ECMA_NEWOBJSPREADDYN",e[e.ECMA_CREATEITERRESULTOBJ=280]="ECMA_CREATEITERRESULTOBJ",e[e.ECMA_SUSPENDGENERATOR=281]="ECMA_SUSPENDGENERATOR",e[e.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT=282]="ECMA_ASYNCFUNCTIONAWAITUNCAUGHT",e[e.ECMA_THROWUNDEFINEDIFHOLE=283]="ECMA_THROWUNDEFINEDIFHOLE",e[e.ECMA_CALLARG1DYN=284]="ECMA_CALLARG1DYN",e[e.ECMA_COPYDATAPROPERTIES=285]="ECMA_COPYDATAPROPERTIES",e[e.ECMA_STARRAYSPREAD=286]="ECMA_STARRAYSPREAD",e[e.ECMA_GETITERATORNEXT=287]="ECMA_GETITERATORNEXT",e[e.ECMA_SETOBJECTWITHPROTO=288]="ECMA_SETOBJECTWITHPROTO",e[e.ECMA_LDOBJBYVALUE=289]="ECMA_LDOBJBYVALUE",e[e.ECMA_STOBJBYVALUE=290]="ECMA_STOBJBYVALUE",e[e.ECMA_STOWNBYVALUE=291]="ECMA_STOWNBYVALUE",e[e.ECMA_LDSUPERBYVALUE=292]="ECMA_LDSUPERBYVALUE",e[e.ECMA_STSUPERBYVALUE=293]="ECMA_STSUPERBYVALUE",e[e.ECMA_LDOBJBYINDEX=294]="ECMA_LDOBJBYINDEX",e[e.ECMA_STOBJBYINDEX=295]="ECMA_STOBJBYINDEX",e[e.ECMA_STOWNBYINDEX=296]="ECMA_STOWNBYINDEX",e[e.ECMA_CALLSPREADDYN=297]="ECMA_CALLSPREADDYN",e[e.ECMA_ASYNCFUNCTIONRESOLVE=298]="ECMA_ASYNCFUNCTIONRESOLVE",e[e.ECMA_ASYNCFUNCTIONREJECT=299]="ECMA_ASYNCFUNCTIONREJECT",e[e.ECMA_CALLARGS2DYN=300]="ECMA_CALLARGS2DYN",e[e.ECMA_CALLARGS3DYN=301]="ECMA_CALLARGS3DYN",e[e.ECMA_DEFINEGETTERSETTERBYVALUE=302]="ECMA_DEFINEGETTERSETTERBYVALUE",e[e.ECMA_NEWOBJDYNRANGE=303]="ECMA_NEWOBJDYNRANGE",e[e.ECMA_CALLIRANGEDYN=304]="ECMA_CALLIRANGEDYN",e[e.ECMA_CALLITHISRANGEDYN=305]="ECMA_CALLITHISRANGEDYN",e[e.ECMA_SUPERCALL=306]="ECMA_SUPERCALL",e[e.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS=307]="ECMA_CREATEOBJECTWITHEXCLUDEDKEYS",e[e.ECMA_DEFINEFUNCDYN=308]="ECMA_DEFINEFUNCDYN",e[e.ECMA_DEFINENCFUNCDYN=309]="ECMA_DEFINENCFUNCDYN",e[e.ECMA_DEFINEGENERATORFUNC=310]="ECMA_DEFINEGENERATORFUNC",e[e.ECMA_DEFINEASYNCFUNC=311]="ECMA_DEFINEASYNCFUNC",e[e.ECMA_DEFINEMETHOD=312]="ECMA_DEFINEMETHOD",e[e.ECMA_NEWLEXENVDYN=313]="ECMA_NEWLEXENVDYN",e[e.ECMA_COPYRESTARGS=314]="ECMA_COPYRESTARGS",e[e.ECMA_CREATEARRAYWITHBUFFER=315]="ECMA_CREATEARRAYWITHBUFFER",e[e.ECMA_CREATEOBJECTHAVINGMETHOD=316]="ECMA_CREATEOBJECTHAVINGMETHOD",e[e.ECMA_THROWIFSUPERNOTCORRECTCALL=317]="ECMA_THROWIFSUPERNOTCORRECTCALL",e[e.ECMA_CREATEOBJECTWITHBUFFER=318]="ECMA_CREATEOBJECTWITHBUFFER",e[e.ECMA_LDLEXVARDYN=319]="ECMA_LDLEXVARDYN",e[e.ECMA_STLEXVARDYN=320]="ECMA_STLEXVARDYN",e[e.ECMA_DEFINECLASSWITHBUFFER=321]="ECMA_DEFINECLASSWITHBUFFER",e[e.ECMA_IMPORTMODULE=322]="ECMA_IMPORTMODULE",e[e.ECMA_STMODULEVAR=323]="ECMA_STMODULEVAR",e[e.ECMA_TRYLDGLOBALBYNAME=324]="ECMA_TRYLDGLOBALBYNAME",e[e.ECMA_TRYSTGLOBALBYNAME=325]="ECMA_TRYSTGLOBALBYNAME",e[e.ECMA_LDGLOBALVAR=326]="ECMA_LDGLOBALVAR",e[e.ECMA_STGLOBALVAR=327]="ECMA_STGLOBALVAR",e[e.ECMA_LDOBJBYNAME=328]="ECMA_LDOBJBYNAME",e[e.ECMA_STOBJBYNAME=329]="ECMA_STOBJBYNAME",e[e.ECMA_STOWNBYNAME=330]="ECMA_STOWNBYNAME",e[e.ECMA_LDSUPERBYNAME=331]="ECMA_LDSUPERBYNAME",e[e.ECMA_STSUPERBYNAME=332]="ECMA_STSUPERBYNAME",e[e.ECMA_LDMODVARBYNAME=333]="ECMA_LDMODVARBYNAME",e[e.ECMA_CREATEREGEXPWITHLITERAL=334]="ECMA_CREATEREGEXPWITHLITERAL",e[e.ECMA_ISTRUE=335]="ECMA_ISTRUE",e[e.ECMA_ISFALSE=336]="ECMA_ISFALSE",e[e.ECMA_STCONSTTOGLOBALRECORD=337]="ECMA_STCONSTTOGLOBALRECORD",e[e.ECMA_STLETTOGLOBALRECORD=338]="ECMA_STLETTOGLOBALRECORD",e[e.ECMA_STCLASSTOGLOBALRECORD=339]="ECMA_STCLASSTOGLOBALRECORD",e[e.ECMA_STOWNBYVALUEWITHNAMESET=340]="ECMA_STOWNBYVALUEWITHNAMESET",e[e.ECMA_STOWNBYNAMEWITHNAMESET=341]="ECMA_STOWNBYNAMEWITHNAMESET",e[e.ECMA_LDFUNCTION=342]="ECMA_LDFUNCTION",e[e.ECMA_NEWLEXENVWITHNAMEDYN=343]="ECMA_NEWLEXENVWITHNAMEDYN",e[e.ECMA_LDBIGINT=344]="ECMA_LDBIGINT",e[e.VREG=345]="VREG",e[e.IMM=346]="IMM",e[e.LABEL=347]="LABEL",e[e.VIRTUALSTARTINS_DYN=348]="VIRTUALSTARTINS_DYN",e[e.VIRTUALENDINS_DYN=349]="VIRTUALENDINS_DYN",e[e.DEFINE_GLOBAL_VAR=350]="DEFINE_GLOBAL_VAR"}(c=t.IRNodeKind||(t.IRNodeKind={})),t.getInstructionSize=function(e){switch(e){case c.NOP:return 1;case c.MOV:return 2;case c.MOV:return 3;case c.MOV:return 5;case c.MOV_64:return 2;case c.MOV_64:return 5;case c.MOV_OBJ:return 2;case c.MOV_OBJ:return 3;case c.MOV_OBJ:return 5;case c.MOVI:return 2;case c.MOVI:return 3;case c.MOVI:return 4;case c.MOVI:return 6;case c.MOVI_64:case c.FMOVI_64:return 10;case c.MOV_NULL:case c.LDA:case c.LDA_64:case c.LDA_OBJ:case c.LDAI:return 2;case c.LDAI:return 3;case c.LDAI:return 5;case c.LDAI_64:case c.FLDAI_64:return 9;case c.LDA_STR:return 5;case c.LDA_CONST:return 6;case c.LDA_TYPE:return 3;case c.LDA_NULL:return 1;case c.STA:case c.STA_64:case c.STA_OBJ:case c.CMP_64:case c.FCMPL_64:case c.FCMPG_64:case c.JMP:return 2;case c.JMP:return 3;case c.JMP:return 5;case c.JEQ_OBJ:return 3;case c.JEQ_OBJ:return 4;case c.JNE_OBJ:return 3;case c.JNE_OBJ:return 4;case c.JEQZ_OBJ:return 2;case c.JEQZ_OBJ:return 3;case c.JNEZ_OBJ:return 2;case c.JNEZ_OBJ:return 3;case c.JEQZ:return 2;case c.JEQZ:return 3;case c.JNEZ:return 2;case c.JNEZ:return 3;case c.JLTZ:return 2;case c.JLTZ:return 3;case c.JGTZ:return 2;case c.JGTZ:return 3;case c.JLEZ:return 2;case c.JLEZ:return 3;case c.JGEZ:return 2;case c.JGEZ:case c.JEQ:return 3;case c.JEQ:return 4;case c.JNE:return 3;case c.JNE:return 4;case c.JLT:return 3;case c.JLT:return 4;case c.JGT:return 3;case c.JGT:return 4;case c.JLE:return 3;case c.JLE:return 4;case c.JGE:return 3;case c.JGE:return 4;case c.FNEG_64:case c.NEG:case c.NEG_64:return 1;case c.ADD2:case c.ADD2_64:case c.SUB2:case c.SUB2_64:case c.MUL2:case c.MUL2_64:case c.FADD2_64:case c.FSUB2_64:case c.FMUL2_64:case c.FDIV2_64:case c.FMOD2_64:case c.DIV2:case c.DIV2_64:case c.MOD2:case c.MOD2_64:case c.ADDI:case c.SUBI:case c.MULI:return 2;case c.ANDI:case c.ORI:return 5;case c.SHLI:case c.SHRI:case c.ASHRI:case c.DIVI:case c.MODI:case c.ADD:case c.SUB:case c.MUL:case c.DIV:case c.MOD:case c.INCI:case c.LDARR_8:case c.LDARRU_8:case c.LDARR_16:case c.LDARRU_16:case c.LDARR:case c.LDARR_64:case c.FLDARR_32:case c.FLDARR_64:case c.LDARR_OBJ:case c.STARR_8:case c.STARR_16:case c.STARR:case c.STARR_64:case c.FSTARR_32:case c.FSTARR_64:case c.STARR_OBJ:case c.LENARR:return 2;case c.NEWARR:case c.NEWOBJ:case c.INITOBJ_SHORT:return 4;case c.INITOBJ:return 5;case c.INITOBJ_RANGE:case c.LDOBJ:case c.LDOBJ_64:case c.LDOBJ_OBJ:case c.STOBJ:case c.STOBJ_64:case c.STOBJ_OBJ:case c.LDOBJ_V:case c.LDOBJ_V_64:case c.LDOBJ_V_OBJ:case c.STOBJ_V:case c.STOBJ_V_64:case c.STOBJ_V_OBJ:return 4;case c.LDSTATIC:case c.LDSTATIC_64:case c.LDSTATIC_OBJ:case c.STSTATIC:case c.STSTATIC_64:case c.STSTATIC_OBJ:return 3;case c.RETURN:case c.RETURN_64:case c.RETURN_OBJ:case c.RETURN_VOID:return 1;case c.THROW:return 2;case c.CHECKCAST:case c.ISINSTANCE:return 3;case c.CALL_SHORT:return 4;case c.CALL:return 5;case c.CALL_RANGE:case c.CALL_ACC_SHORT:return 4;case c.CALL_ACC:return 5;case c.CALL_VIRT_SHORT:return 4;case c.CALL_VIRT:return 5;case c.CALL_VIRT_RANGE:case c.CALL_VIRT_ACC_SHORT:return 4;case c.CALL_VIRT_ACC:return 5;case c.MOV_DYN:return 3;case c.MOV_DYN:return 5;case c.LDA_DYN:case c.STA_DYN:return 2;case c.LDAI_DYN:return 5;case c.FLDAI_DYN:return 9;case c.RETURN_DYN:return 1;case c.CALLI_DYN_SHORT:return 3;case c.CALLI_DYN:return 4;case c.CALLI_DYN_RANGE:return 5;case c.FMOVI:return 7;case c.I32TOF64:return 2;case c.UCMP:return 3;case c.NOT:case c.ECMA_LDNAN:return 2;case c.FLDAI:return 6;case c.U32TOF64:return 2;case c.UCMP_64:return 3;case c.NOT_64:case c.ECMA_LDINFINITY:return 2;case c.FCMPL:return 3;case c.I64TOF64:return 2;case c.DIVU2:case c.AND2:return 3;case c.ECMA_LDGLOBALTHIS:return 2;case c.FCMPG:return 3;case c.U64TOF64:return 2;case c.DIVU2_64:case c.AND2_64:return 3;case c.ECMA_LDUNDEFINED:case c.FNEG:case c.F64TOI32:return 2;case c.MODU2:case c.OR2:return 3;case c.ECMA_LDNULL:return 2;case c.FADD2:return 3;case c.F64TOI64:return 2;case c.MODU2_64:case c.OR2_64:return 3;case c.ECMA_LDSYMBOL:return 2;case c.FSUB2:return 3;case c.F64TOU32:return 2;case c.XOR2:return 3;case c.ECMA_LDGLOBAL:return 2;case c.FMUL2:return 3;case c.F64TOU64:return 2;case c.XOR2_64:return 3;case c.ECMA_LDTRUE:return 2;case c.FDIV2:return 3;case c.I32TOU1:return 2;case c.SHL2:return 3;case c.ECMA_LDFALSE:return 2;case c.FMOD2:return 3;case c.I64TOU1:return 2;case c.SHL2_64:return 3;case c.ECMA_THROWDYN:case c.I32TOF32:case c.U32TOU1:return 2;case c.SHR2:return 3;case c.ECMA_TYPEOFDYN:case c.U32TOF32:case c.U64TOU1:return 2;case c.SHR2_64:return 3;case c.ECMA_LDLEXENVDYN:case c.I64TOF32:case c.I32TOI64:return 2;case c.ASHR2:return 3;case c.ECMA_POPLEXENVDYN:case c.U64TOF32:case c.I32TOI16:return 2;case c.ASHR2_64:return 3;case c.ECMA_GETUNMAPPEDARGS:case c.F32TOF64:case c.I32TOU16:return 2;case c.XORI:return 6;case c.ECMA_GETPROPITERATOR:case c.F32TOI32:case c.I32TOI8:return 2;case c.AND:return 3;case c.ECMA_ASYNCFUNCTIONENTER:case c.F32TOI64:case c.I32TOU8:return 2;case c.OR:return 3;case c.ECMA_LDHOLE:case c.F32TOU32:case c.I64TOI32:return 2;case c.XOR:return 3;case c.ECMA_RETURNUNDEFINED:case c.F32TOU64:case c.U32TOI64:return 2;case c.SHL:return 3;case c.ECMA_CREATEEMPTYOBJECT:case c.F64TOF32:case c.U32TOI16:return 2;case c.SHR:return 3;case c.ECMA_CREATEEMPTYARRAY:case c.U32TOU16:return 2;case c.ASHR:return 3;case c.ECMA_GETITERATOR:case c.U32TOI8:case c.ECMA_THROWTHROWNOTEXISTS:case c.U32TOU8:case c.ECMA_THROWPATTERNNONCOERCIBLE:case c.U64TOI32:case c.ECMA_LDHOMEOBJECT:case c.U64TOU32:case c.ECMA_THROWDELETESUPERPROPERTY:case c.ECMA_DEBUGGER:return 2;case c.ECMA_ADD2DYN:case c.ECMA_SUB2DYN:case c.ECMA_MUL2DYN:case c.ECMA_DIV2DYN:case c.ECMA_MOD2DYN:case c.ECMA_EQDYN:case c.ECMA_NOTEQDYN:case c.ECMA_LESSDYN:case c.ECMA_LESSEQDYN:case c.ECMA_GREATERDYN:case c.ECMA_GREATEREQDYN:case c.ECMA_SHL2DYN:case c.ECMA_SHR2DYN:case c.ECMA_ASHR2DYN:case c.ECMA_AND2DYN:case c.ECMA_OR2DYN:case c.ECMA_XOR2DYN:case c.ECMA_TONUMBER:case c.ECMA_NEGDYN:case c.ECMA_NOTDYN:case c.ECMA_INCDYN:case c.ECMA_DECDYN:case c.ECMA_EXPDYN:case c.ECMA_ISINDYN:case c.ECMA_INSTANCEOFDYN:case c.ECMA_STRICTNOTEQDYN:case c.ECMA_STRICTEQDYN:case c.ECMA_RESUMEGENERATOR:case c.ECMA_GETRESUMEMODE:case c.ECMA_CREATEGENERATOROBJ:case c.ECMA_THROWCONSTASSIGNMENT:case c.ECMA_GETTEMPLATEOBJECT:case c.ECMA_GETNEXTPROPNAME:case c.ECMA_CALLARG0DYN:case c.ECMA_THROWIFNOTOBJECT:case c.ECMA_ITERNEXT:case c.ECMA_CLOSEITERATOR:case c.ECMA_COPYMODULE:case c.ECMA_SUPERCALLSPREAD:return 3;case c.ECMA_DELOBJPROP:case c.ECMA_NEWOBJSPREADDYN:case c.ECMA_CREATEITERRESULTOBJ:case c.ECMA_SUSPENDGENERATOR:case c.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT:case c.ECMA_THROWUNDEFINEDIFHOLE:case c.ECMA_CALLARG1DYN:case c.ECMA_COPYDATAPROPERTIES:case c.ECMA_STARRAYSPREAD:case c.ECMA_GETITERATORNEXT:case c.ECMA_SETOBJECTWITHPROTO:case c.ECMA_LDOBJBYVALUE:case c.ECMA_STOBJBYVALUE:case c.ECMA_STOWNBYVALUE:case c.ECMA_LDSUPERBYVALUE:case c.ECMA_STSUPERBYVALUE:return 4;case c.ECMA_LDOBJBYINDEX:case c.ECMA_STOBJBYINDEX:case c.ECMA_STOWNBYINDEX:return 7;case c.ECMA_CALLSPREADDYN:case c.ECMA_ASYNCFUNCTIONRESOLVE:case c.ECMA_ASYNCFUNCTIONREJECT:case c.ECMA_CALLARGS2DYN:return 5;case c.ECMA_CALLARGS3DYN:case c.ECMA_DEFINEGETTERSETTERBYVALUE:return 6;case c.ECMA_NEWOBJDYNRANGE:case c.ECMA_CALLIRANGEDYN:case c.ECMA_CALLITHISRANGEDYN:case c.ECMA_SUPERCALL:return 5;case c.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS:return 6;case c.ECMA_DEFINEFUNCDYN:case c.ECMA_DEFINENCFUNCDYN:case c.ECMA_DEFINEGENERATORFUNC:case c.ECMA_DEFINEASYNCFUNC:case c.ECMA_DEFINEMETHOD:return 7;case c.ECMA_NEWLEXENVDYN:case c.ECMA_COPYRESTARGS:case c.ECMA_CREATEARRAYWITHBUFFER:case c.ECMA_CREATEOBJECTHAVINGMETHOD:case c.ECMA_THROWIFSUPERNOTCORRECTCALL:case c.ECMA_CREATEOBJECTWITHBUFFER:return 4;case c.ECMA_LDLEXVARDYN:return 3;case c.ECMA_LDLEXVARDYN:return 4;case c.ECMA_LDLEXVARDYN:return 6;case c.ECMA_STLEXVARDYN:return 4;case c.ECMA_STLEXVARDYN:return 5;case c.ECMA_STLEXVARDYN:return 7;case c.ECMA_DEFINECLASSWITHBUFFER:return 10;case c.ECMA_IMPORTMODULE:case c.ECMA_STMODULEVAR:case c.ECMA_TRYLDGLOBALBYNAME:case c.ECMA_TRYSTGLOBALBYNAME:case c.ECMA_LDGLOBALVAR:case c.ECMA_STGLOBALVAR:return 6;case c.ECMA_LDOBJBYNAME:case c.ECMA_STOBJBYNAME:case c.ECMA_STOWNBYNAME:case c.ECMA_LDSUPERBYNAME:case c.ECMA_STSUPERBYNAME:case c.ECMA_LDMODVARBYNAME:case c.ECMA_CREATEREGEXPWITHLITERAL:return 7;case c.ECMA_ISTRUE:case c.ECMA_ISFALSE:return 2;case c.ECMA_STCONSTTOGLOBALRECORD:case c.ECMA_STLETTOGLOBALRECORD:case c.ECMA_STCLASSTOGLOBALRECORD:return 6;case c.ECMA_STOWNBYVALUEWITHNAMESET:return 4;case c.ECMA_STOWNBYNAMEWITHNAMESET:return 7;case c.ECMA_LDFUNCTION:return 2;case c.ECMA_NEWLEXENVWITHNAMEDYN:case c.ECMA_LDBIGINT:return 6;default:return 0}},(d=t.ResultType||(t.ResultType={}))[d.None=0]="None",d[d.Unknown=1]="Unknown",d[d.Int=2]="Int",d[d.Long=3]="Long",d[d.Float=4]="Float",d[d.Obj=5]="Obj",d[d.Boolean=6]="Boolean",(_=t.ResultDst||(t.ResultDst={}))[_.None=0]="None",_[_.Acc=1]="Acc",_[_.VReg=2]="VReg",(u=t.BuiltIns||(t.BuiltIns={}))[u.NaN=0]="NaN",u[u[1/0]=1]="Infinity",u[u.globalThis=2]="globalThis",u[u[void 0]=3]="undefined",u[u.Boolean=4]="Boolean",u[u.Number=5]="Number",u[u.String=6]="String",u[u.BigInt=7]="BigInt",u[u.Symbol=8]="Symbol",u[u.Null=9]="Null",u[u.Object=10]="Object",u[u.Function=11]="Function",u[u.Global=12]="Global",u[u.True=13]="True",u[u.False=14]="False",u[u.LexEnv=15]="LexEnv",u[u.MAX_BUILTIN=16]="MAX_BUILTIN",(l=t.OperandKind||(t.OperandKind={}))[l.SrcVReg=0]="SrcVReg",l[l.DstVReg=1]="DstVReg",l[l.SrcDstVReg=2]="SrcDstVReg",l[l.Imm=3]="Imm",l[l.Id=4]="Id",l[l.StringId=5]="StringId",l[l.Label=6]="Label",t.OperandKind||(t.OperandKind={}),t.getInsnMnemonic=p,t.getInsnFormats=f;class g{constructor(e,t){this.kind=e,this.operands=t,this.node=s.NodeKind.Normal,this.debugPosInfo=new s.DebugPosInfo}toString(){let e=this.getMnemonic(),t=e+"\t";return e.length<8&&(t+="\t"),this.operands.forEach((e=>{t=t+e.toString()+", "})),t}setNode(e){this.node=e}getNodeName(){return this.node!=s.NodeKind.Invalid&&this.node!=s.NodeKind.FirstNodeOfFunction&&this.node!=s.NodeKind.Normal?o.SyntaxKind[this.node.kind]:"undefined"}getMnemonic(){return p(this.kind)}getFormats(){return f(this.kind)}}t.IRNode=g;class m extends g{constructor(e,t){super(e,t),this.kind=e,this.operands=t}toString(){return super.toString()+" [i]"}}t.Intrinsic=m,t.VReg=class{constructor(){this.num=-1}toString(){return"V"+this.num}getTypeIndex(){return this.typeIndex}setTypeIndex(e){this.typeIndex=e}getVariableName(){return this.variableName}setVariableName(e){this.variableName=e}},t.Imm=class extends g{constructor(e){super(c.IMM,[]),this.value=e}toString(){return"#"+this.value}};class y extends g{constructor(){super(c.LABEL,[]),this.id=y.global_id++}toString(){return"LABEL_"+this.id}}t.Label=y,y.global_id=0,t.DebugInsStartPlaceHolder=class extends g{constructor(e){super(c.VIRTUALSTARTINS_DYN,[]),this.scope=e}getScope(){return this.scope}},t.DebugInsEndPlaceHolder=class extends g{constructor(e){super(c.VIRTUALENDINS_DYN,[]),this.scope=e}getScope(){return this.scope}},t.Nop=class extends g{constructor(){super(c.NOP,[])}},t.Mov=class extends g{constructor(e,t){super(c.MOV,[e,t])}},t.MovWide=class extends g{constructor(e,t){super(c.MOV_64,[e,t])}},t.MovObj=class extends g{constructor(e,t){super(c.MOV_OBJ,[e,t])}},t.Movi=class extends g{constructor(e,t){super(c.MOVI,[e,t])}},t.MoviWide=class extends g{constructor(e,t){super(c.MOVI_64,[e,t])}},t.FmoviWide=class extends g{constructor(e,t){super(c.FMOVI_64,[e,t])}},t.MovNull=class extends g{constructor(e){super(c.MOV_NULL,[e])}},t.Lda=class extends g{constructor(e){super(c.LDA,[e])}},t.LdaWide=class extends g{constructor(e){super(c.LDA_64,[e])}},t.LdaObj=class extends g{constructor(e){super(c.LDA_OBJ,[e])}},t.Ldai=class extends g{constructor(e){super(c.LDAI,[e])}},t.LdaiWide=class extends g{constructor(e){super(c.LDAI_64,[e])}},t.FldaiWide=class extends g{constructor(e){super(c.FLDAI_64,[e])}},t.LdaStr=class extends g{constructor(e){super(c.LDA_STR,[e])}},t.LdaConst=class extends g{constructor(e,t){super(c.LDA_CONST,[e,t])}},t.LdaType=class extends g{constructor(e){super(c.LDA_TYPE,[e])}},t.LdaNull=class extends g{constructor(){super(c.LDA_NULL,[])}},t.Sta=class extends g{constructor(e){super(c.STA,[e])}},t.StaWide=class extends g{constructor(e){super(c.STA_64,[e])}},t.StaObj=class extends g{constructor(e){super(c.STA_OBJ,[e])}},t.CmpWide=class extends g{constructor(e){super(c.CMP_64,[e])}},t.FcmplWide=class extends g{constructor(e){super(c.FCMPL_64,[e])}},t.FcmpgWide=class extends g{constructor(e){super(c.FCMPG_64,[e])}},t.Jmp=class extends g{constructor(e){super(c.JMP,[e])}getTarget(){return this.operands[0]}},t.JeqObj=class extends g{constructor(e,t){super(c.JEQ_OBJ,[e,t])}getTarget(){return this.operands[1]}},t.JneObj=class extends g{constructor(e,t){super(c.JNE_OBJ,[e,t])}getTarget(){return this.operands[1]}},t.JeqzObj=class extends g{constructor(e){super(c.JEQZ_OBJ,[e])}getTarget(){return this.operands[0]}},t.JnezObj=class extends g{constructor(e){super(c.JNEZ_OBJ,[e])}getTarget(){return this.operands[0]}},t.Jeqz=class extends g{constructor(e){super(c.JEQZ,[e])}getTarget(){return this.operands[0]}},t.Jnez=class extends g{constructor(e){super(c.JNEZ,[e])}getTarget(){return this.operands[0]}},t.Jltz=class extends g{constructor(e){super(c.JLTZ,[e])}getTarget(){return this.operands[0]}},t.Jgtz=class extends g{constructor(e){super(c.JGTZ,[e])}getTarget(){return this.operands[0]}},t.Jlez=class extends g{constructor(e){super(c.JLEZ,[e])}getTarget(){return this.operands[0]}},t.Jgez=class extends g{constructor(e){super(c.JGEZ,[e])}getTarget(){return this.operands[0]}},t.Jeq=class extends g{constructor(e,t){super(c.JEQ,[e,t])}getTarget(){return this.operands[1]}},t.Jne=class extends g{constructor(e,t){super(c.JNE,[e,t])}getTarget(){return this.operands[1]}},t.Jlt=class extends g{constructor(e,t){super(c.JLT,[e,t])}getTarget(){return this.operands[1]}},t.Jgt=class extends g{constructor(e,t){super(c.JGT,[e,t])}getTarget(){return this.operands[1]}},t.Jle=class extends g{constructor(e,t){super(c.JLE,[e,t])}getTarget(){return this.operands[1]}},t.Jge=class extends g{constructor(e,t){super(c.JGE,[e,t])}getTarget(){return this.operands[1]}},t.FnegWide=class extends g{constructor(){super(c.FNEG_64,[])}},t.Neg=class extends g{constructor(){super(c.NEG,[])}},t.NegWide=class extends g{constructor(){super(c.NEG_64,[])}},t.Add2=class extends g{constructor(e){super(c.ADD2,[e])}},t.Add2Wide=class extends g{constructor(e){super(c.ADD2_64,[e])}},t.Sub2=class extends g{constructor(e){super(c.SUB2,[e])}},t.Sub2Wide=class extends g{constructor(e){super(c.SUB2_64,[e])}},t.Mul2=class extends g{constructor(e){super(c.MUL2,[e])}},t.Mul2Wide=class extends g{constructor(e){super(c.MUL2_64,[e])}},t.Fadd2Wide=class extends g{constructor(e){super(c.FADD2_64,[e])}},t.Fsub2Wide=class extends g{constructor(e){super(c.FSUB2_64,[e])}},t.Fmul2Wide=class extends g{constructor(e){super(c.FMUL2_64,[e])}},t.Fdiv2Wide=class extends g{constructor(e){super(c.FDIV2_64,[e])}},t.Fmod2Wide=class extends g{constructor(e){super(c.FMOD2_64,[e])}},t.Div2=class extends g{constructor(e){super(c.DIV2,[e])}},t.Div2Wide=class extends g{constructor(e){super(c.DIV2_64,[e])}},t.Mod2=class extends g{constructor(e){super(c.MOD2,[e])}},t.Mod2Wide=class extends g{constructor(e){super(c.MOD2_64,[e])}},t.Addi=class extends g{constructor(e){super(c.ADDI,[e])}},t.Subi=class extends g{constructor(e){super(c.SUBI,[e])}},t.Muli=class extends g{constructor(e){super(c.MULI,[e])}},t.Andi=class extends g{constructor(e){super(c.ANDI,[e])}},t.Ori=class extends g{constructor(e){super(c.ORI,[e])}},t.Shli=class extends g{constructor(e){super(c.SHLI,[e])}},t.Shri=class extends g{constructor(e){super(c.SHRI,[e])}},t.Ashri=class extends g{constructor(e){super(c.ASHRI,[e])}},t.Divi=class extends g{constructor(e){super(c.DIVI,[e])}},t.Modi=class extends g{constructor(e){super(c.MODI,[e])}},t.Add=class extends g{constructor(e,t){super(c.ADD,[e,t])}},t.Sub=class extends g{constructor(e,t){super(c.SUB,[e,t])}},t.Mul=class extends g{constructor(e,t){super(c.MUL,[e,t])}},t.Div=class extends g{constructor(e,t){super(c.DIV,[e,t])}},t.Mod=class extends g{constructor(e,t){super(c.MOD,[e,t])}},t.Inci=class extends g{constructor(e,t){super(c.INCI,[e,t])}},t.Ldarr8=class extends g{constructor(e){super(c.LDARR_8,[e])}},t.Ldarru8=class extends g{constructor(e){super(c.LDARRU_8,[e])}},t.Ldarr16=class extends g{constructor(e){super(c.LDARR_16,[e])}},t.Ldarru16=class extends g{constructor(e){super(c.LDARRU_16,[e])}},t.Ldarr=class extends g{constructor(e){super(c.LDARR,[e])}},t.LdarrWide=class extends g{constructor(e){super(c.LDARR_64,[e])}},t.Fldarr32=class extends g{constructor(e){super(c.FLDARR_32,[e])}},t.FldarrWide=class extends g{constructor(e){super(c.FLDARR_64,[e])}},t.LdarrObj=class extends g{constructor(e){super(c.LDARR_OBJ,[e])}},t.Starr8=class extends g{constructor(e,t){super(c.STARR_8,[e,t])}},t.Starr16=class extends g{constructor(e,t){super(c.STARR_16,[e,t])}},t.Starr=class extends g{constructor(e,t){super(c.STARR,[e,t])}},t.StarrWide=class extends g{constructor(e,t){super(c.STARR_64,[e,t])}},t.Fstarr32=class extends g{constructor(e,t){super(c.FSTARR_32,[e,t])}},t.FstarrWide=class extends g{constructor(e,t){super(c.FSTARR_64,[e,t])}},t.StarrObj=class extends g{constructor(e,t){super(c.STARR_OBJ,[e,t])}},t.Lenarr=class extends g{constructor(e){super(c.LENARR,[e])}},t.Newarr=class extends g{constructor(e,t,r){super(c.NEWARR,[e,t,r])}},t.Newobj=class extends g{constructor(e,t){super(c.NEWOBJ,[e,t])}},t.InitobjShort=class extends g{constructor(e,t,r){super(c.INITOBJ_SHORT,[e,t,r])}},t.Initobj=class extends g{constructor(e,t,r,n,i){super(c.INITOBJ,[e,t,r,n,i])}},t.InitobjRange=class extends g{constructor(e,t){super(c.INITOBJ_RANGE,[e,t])}},t.Ldobj=class extends g{constructor(e,t){super(c.LDOBJ,[e,t])}},t.LdobjWide=class extends g{constructor(e,t){super(c.LDOBJ_64,[e,t])}},t.LdobjObj=class extends g{constructor(e,t){super(c.LDOBJ_OBJ,[e,t])}},t.Stobj=class extends g{constructor(e,t){super(c.STOBJ,[e,t])}},t.StobjWide=class extends g{constructor(e,t){super(c.STOBJ_64,[e,t])}},t.StobjObj=class extends g{constructor(e,t){super(c.STOBJ_OBJ,[e,t])}},t.LdobjV=class extends g{constructor(e,t,r){super(c.LDOBJ_V,[e,t,r])}},t.LdobjVWide=class extends g{constructor(e,t,r){super(c.LDOBJ_V_64,[e,t,r])}},t.LdobjVObj=class extends g{constructor(e,t,r){super(c.LDOBJ_V_OBJ,[e,t,r])}},t.StobjV=class extends g{constructor(e,t,r){super(c.STOBJ_V,[e,t,r])}},t.StobjVWide=class extends g{constructor(e,t,r){super(c.STOBJ_V_64,[e,t,r])}},t.StobjVObj=class extends g{constructor(e,t,r){super(c.STOBJ_V_OBJ,[e,t,r])}},t.Ldstatic=class extends g{constructor(e){super(c.LDSTATIC,[e])}},t.LdstaticWide=class extends g{constructor(e){super(c.LDSTATIC_64,[e])}},t.LdstaticObj=class extends g{constructor(e){super(c.LDSTATIC_OBJ,[e])}},t.Ststatic=class extends g{constructor(e){super(c.STSTATIC,[e])}},t.StstaticWide=class extends g{constructor(e){super(c.STSTATIC_64,[e])}},t.StstaticObj=class extends g{constructor(e){super(c.STSTATIC_OBJ,[e])}},t.Return=class extends g{constructor(){super(c.RETURN,[])}},t.ReturnWide=class extends g{constructor(){super(c.RETURN_64,[])}},t.ReturnObj=class extends g{constructor(){super(c.RETURN_OBJ,[])}},t.ReturnVoid=class extends g{constructor(){super(c.RETURN_VOID,[])}},t.Throw=class extends g{constructor(e){super(c.THROW,[e])}},t.Checkcast=class extends g{constructor(e){super(c.CHECKCAST,[e])}},t.Isinstance=class extends g{constructor(e){super(c.ISINSTANCE,[e])}},t.CallShort=class extends g{constructor(e,t,r){var n=[e,t,r],i=[e];for(n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.CALL_SHORT,i)}},t.Call=class extends g{constructor(e,t,r,n,i){var a=[e,t,r,n,i],o=[e];for(a.shift();a&&a.length;){let e=a.shift();null!=e&&o.push(e)}super(c.CALL,o)}},t.CallRange=class extends g{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.CALL_RANGE,n)}},t.CallAccShort=class extends g{constructor(e,t,r){var n=[e,t,r],i=[e];for(n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.CALL_ACC_SHORT,i)}},t.CallAcc=class extends g{constructor(e,t,r,n,i){var a=[e,t,r,n,i],o=[e];for(a.shift();a&&a.length;){let e=a.shift();null!=e&&o.push(e)}super(c.CALL_ACC,o)}},t.CallVirtShort=class extends g{constructor(e,t,r){var n=[e,t,r],i=[e];for(n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.CALL_VIRT_SHORT,i)}},t.CallVirt=class extends g{constructor(e,t,r,n,i){var a=[e,t,r,n,i],o=[e];for(a.shift();a&&a.length;){let e=a.shift();null!=e&&o.push(e)}super(c.CALL_VIRT,o)}},t.CallVirtRange=class extends g{constructor(e,t){var r=[e,t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.CALL_VIRT_RANGE,n)}},t.CallVirtAccShort=class extends g{constructor(e,t,r){var n=[e,t,r],i=[e];for(n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.CALL_VIRT_ACC_SHORT,i)}},t.CallVirtAcc=class extends g{constructor(e,t,r,n,i){var a=[e,t,r,n,i],o=[e];for(a.shift();a&&a.length;){let e=a.shift();null!=e&&o.push(e)}super(c.CALL_VIRT_ACC,o)}},t.MovDyn=class extends g{constructor(e,t){super(c.MOV_DYN,[e,t])}},t.LdaDyn=class extends g{constructor(e){super(c.LDA_DYN,[e])}},t.StaDyn=class extends g{constructor(e){super(c.STA_DYN,[e])}},t.LdaiDyn=class extends g{constructor(e){super(c.LDAI_DYN,[e])}},t.FldaiDyn=class extends g{constructor(e){super(c.FLDAI_DYN,[e])}},t.ReturnDyn=class extends g{constructor(){super(c.RETURN_DYN,[])}},t.CalliDynShort=class extends g{constructor(e,t,r,n){var i=[e,t,r,n],a=[e];for(i.shift();i&&i.length;){let e=i.shift();null!=e&&a.push(e)}super(c.CALLI_DYN_SHORT,a)}},t.CalliDyn=class extends g{constructor(e,t,r,n,i,a){var o=[e,t,r,n,i,a],s=[e];for(o.shift();o&&o.length;){let e=o.shift();null!=e&&s.push(e)}super(c.CALLI_DYN,s)}},t.CalliDynRange=class extends g{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.CALLI_DYN_RANGE,n)}},t.Fmovi=class extends g{constructor(e,t){super(c.FMOVI,[e,t])}},t.I32tof64=class extends g{constructor(){super(c.I32TOF64,[])}},t.Ucmp=class extends g{constructor(e){super(c.UCMP,[e])}},t.Not=class extends g{constructor(){super(c.NOT,[])}},t.EcmaLdnan=class extends m{constructor(){super(c.ECMA_LDNAN,[])}},t.Fldai=class extends g{constructor(e){super(c.FLDAI,[e])}},t.U32tof64=class extends g{constructor(){super(c.U32TOF64,[])}},t.UcmpWide=class extends g{constructor(e){super(c.UCMP_64,[e])}},t.NotWide=class extends g{constructor(){super(c.NOT_64,[])}},t.EcmaLdinfinity=class extends m{constructor(){super(c.ECMA_LDINFINITY,[])}},t.Fcmpl=class extends g{constructor(e){super(c.FCMPL,[e])}},t.I64tof64=class extends g{constructor(){super(c.I64TOF64,[])}},t.Divu2=class extends g{constructor(e){super(c.DIVU2,[e])}},t.And2=class extends g{constructor(e){super(c.AND2,[e])}},t.EcmaLdglobalthis=class extends m{constructor(){super(c.ECMA_LDGLOBALTHIS,[])}},t.Fcmpg=class extends g{constructor(e){super(c.FCMPG,[e])}},t.U64tof64=class extends g{constructor(){super(c.U64TOF64,[])}},t.Divu2Wide=class extends g{constructor(e){super(c.DIVU2_64,[e])}},t.And2Wide=class extends g{constructor(e){super(c.AND2_64,[e])}},t.EcmaLdundefined=class extends m{constructor(){super(c.ECMA_LDUNDEFINED,[])}},t.Fneg=class extends g{constructor(){super(c.FNEG,[])}},t.F64toi32=class extends g{constructor(){super(c.F64TOI32,[])}},t.Modu2=class extends g{constructor(e){super(c.MODU2,[e])}},t.Or2=class extends g{constructor(e){super(c.OR2,[e])}},t.EcmaLdnull=class extends m{constructor(){super(c.ECMA_LDNULL,[])}},t.Fadd2=class extends g{constructor(e){super(c.FADD2,[e])}},t.F64toi64=class extends g{constructor(){super(c.F64TOI64,[])}},t.Modu2Wide=class extends g{constructor(e){super(c.MODU2_64,[e])}},t.Or2Wide=class extends g{constructor(e){super(c.OR2_64,[e])}},t.EcmaLdsymbol=class extends m{constructor(){super(c.ECMA_LDSYMBOL,[])}},t.Fsub2=class extends g{constructor(e){super(c.FSUB2,[e])}},t.F64tou32=class extends g{constructor(){super(c.F64TOU32,[])}},t.Xor2=class extends g{constructor(e){super(c.XOR2,[e])}},t.EcmaLdglobal=class extends m{constructor(){super(c.ECMA_LDGLOBAL,[])}},t.Fmul2=class extends g{constructor(e){super(c.FMUL2,[e])}},t.F64tou64=class extends g{constructor(){super(c.F64TOU64,[])}},t.Xor2Wide=class extends g{constructor(e){super(c.XOR2_64,[e])}},t.EcmaLdtrue=class extends m{constructor(){super(c.ECMA_LDTRUE,[])}},t.Fdiv2=class extends g{constructor(e){super(c.FDIV2,[e])}},t.I32tou1=class extends g{constructor(){super(c.I32TOU1,[])}},t.Shl2=class extends g{constructor(e){super(c.SHL2,[e])}},t.EcmaLdfalse=class extends m{constructor(){super(c.ECMA_LDFALSE,[])}},t.Fmod2=class extends g{constructor(e){super(c.FMOD2,[e])}},t.I64tou1=class extends g{constructor(){super(c.I64TOU1,[])}},t.Shl2Wide=class extends g{constructor(e){super(c.SHL2_64,[e])}},t.EcmaThrowdyn=class extends m{constructor(){super(c.ECMA_THROWDYN,[])}},t.I32tof32=class extends g{constructor(){super(c.I32TOF32,[])}},t.U32tou1=class extends g{constructor(){super(c.U32TOU1,[])}},t.Shr2=class extends g{constructor(e){super(c.SHR2,[e])}},t.EcmaTypeofdyn=class extends m{constructor(){super(c.ECMA_TYPEOFDYN,[])}},t.U32tof32=class extends g{constructor(){super(c.U32TOF32,[])}},t.U64tou1=class extends g{constructor(){super(c.U64TOU1,[])}},t.Shr2Wide=class extends g{constructor(e){super(c.SHR2_64,[e])}},t.EcmaLdlexenvdyn=class extends m{constructor(){super(c.ECMA_LDLEXENVDYN,[])}},t.I64tof32=class extends g{constructor(){super(c.I64TOF32,[])}},t.I32toi64=class extends g{constructor(){super(c.I32TOI64,[])}},t.Ashr2=class extends g{constructor(e){super(c.ASHR2,[e])}},t.EcmaPoplexenvdyn=class extends m{constructor(){super(c.ECMA_POPLEXENVDYN,[])}},t.U64tof32=class extends g{constructor(){super(c.U64TOF32,[])}},t.I32toi16=class extends g{constructor(){super(c.I32TOI16,[])}},t.Ashr2Wide=class extends g{constructor(e){super(c.ASHR2_64,[e])}},t.EcmaGetunmappedargs=class extends m{constructor(){super(c.ECMA_GETUNMAPPEDARGS,[])}},t.F32tof64=class extends g{constructor(){super(c.F32TOF64,[])}},t.I32tou16=class extends g{constructor(){super(c.I32TOU16,[])}},t.Xori=class extends g{constructor(e){super(c.XORI,[e])}},t.EcmaGetpropiterator=class extends m{constructor(){super(c.ECMA_GETPROPITERATOR,[])}},t.F32toi32=class extends g{constructor(){super(c.F32TOI32,[])}},t.I32toi8=class extends g{constructor(){super(c.I32TOI8,[])}},t.And=class extends g{constructor(e,t){super(c.AND,[e,t])}},t.EcmaAsyncfunctionenter=class extends m{constructor(){super(c.ECMA_ASYNCFUNCTIONENTER,[])}},t.F32toi64=class extends g{constructor(){super(c.F32TOI64,[])}},t.I32tou8=class extends g{constructor(){super(c.I32TOU8,[])}},t.Or=class extends g{constructor(e,t){super(c.OR,[e,t])}},t.EcmaLdhole=class extends m{constructor(){super(c.ECMA_LDHOLE,[])}},t.F32tou32=class extends g{constructor(){super(c.F32TOU32,[])}},t.I64toi32=class extends g{constructor(){super(c.I64TOI32,[])}},t.Xor=class extends g{constructor(e,t){super(c.XOR,[e,t])}},t.EcmaReturnundefined=class extends m{constructor(){super(c.ECMA_RETURNUNDEFINED,[])}},t.F32tou64=class extends g{constructor(){super(c.F32TOU64,[])}},t.U32toi64=class extends g{constructor(){super(c.U32TOI64,[])}},t.Shl=class extends g{constructor(e,t){super(c.SHL,[e,t])}},t.EcmaCreateemptyobject=class extends m{constructor(){super(c.ECMA_CREATEEMPTYOBJECT,[])}},t.F64tof32=class extends g{constructor(){super(c.F64TOF32,[])}},t.U32toi16=class extends g{constructor(){super(c.U32TOI16,[])}},t.Shr=class extends g{constructor(e,t){super(c.SHR,[e,t])}},t.EcmaCreateemptyarray=class extends m{constructor(){super(c.ECMA_CREATEEMPTYARRAY,[])}},t.U32tou16=class extends g{constructor(){super(c.U32TOU16,[])}},t.Ashr=class extends g{constructor(e,t){super(c.ASHR,[e,t])}},t.EcmaGetiterator=class extends m{constructor(){super(c.ECMA_GETITERATOR,[])}},t.U32toi8=class extends g{constructor(){super(c.U32TOI8,[])}},t.EcmaThrowthrownotexists=class extends m{constructor(){super(c.ECMA_THROWTHROWNOTEXISTS,[])}},t.U32tou8=class extends g{constructor(){super(c.U32TOU8,[])}},t.EcmaThrowpatternnoncoercible=class extends m{constructor(){super(c.ECMA_THROWPATTERNNONCOERCIBLE,[])}},t.U64toi32=class extends g{constructor(){super(c.U64TOI32,[])}},t.EcmaLdhomeobject=class extends m{constructor(){super(c.ECMA_LDHOMEOBJECT,[])}},t.U64tou32=class extends g{constructor(){super(c.U64TOU32,[])}},t.EcmaThrowdeletesuperproperty=class extends m{constructor(){super(c.ECMA_THROWDELETESUPERPROPERTY,[])}},t.EcmaDebugger=class extends m{constructor(){super(c.ECMA_DEBUGGER,[])}},t.EcmaAdd2dyn=class extends m{constructor(e){super(c.ECMA_ADD2DYN,[e])}},t.EcmaSub2dyn=class extends m{constructor(e){super(c.ECMA_SUB2DYN,[e])}},t.EcmaMul2dyn=class extends m{constructor(e){super(c.ECMA_MUL2DYN,[e])}},t.EcmaDiv2dyn=class extends m{constructor(e){super(c.ECMA_DIV2DYN,[e])}},t.EcmaMod2dyn=class extends m{constructor(e){super(c.ECMA_MOD2DYN,[e])}},t.EcmaEqdyn=class extends m{constructor(e){super(c.ECMA_EQDYN,[e])}},t.EcmaNoteqdyn=class extends m{constructor(e){super(c.ECMA_NOTEQDYN,[e])}},t.EcmaLessdyn=class extends m{constructor(e){super(c.ECMA_LESSDYN,[e])}},t.EcmaLesseqdyn=class extends m{constructor(e){super(c.ECMA_LESSEQDYN,[e])}},t.EcmaGreaterdyn=class extends m{constructor(e){super(c.ECMA_GREATERDYN,[e])}},t.EcmaGreatereqdyn=class extends m{constructor(e){super(c.ECMA_GREATEREQDYN,[e])}},t.EcmaShl2dyn=class extends m{constructor(e){super(c.ECMA_SHL2DYN,[e])}},t.EcmaShr2dyn=class extends m{constructor(e){super(c.ECMA_SHR2DYN,[e])}},t.EcmaAshr2dyn=class extends m{constructor(e){super(c.ECMA_ASHR2DYN,[e])}},t.EcmaAnd2dyn=class extends m{constructor(e){super(c.ECMA_AND2DYN,[e])}},t.EcmaOr2dyn=class extends m{constructor(e){super(c.ECMA_OR2DYN,[e])}},t.EcmaXor2dyn=class extends m{constructor(e){super(c.ECMA_XOR2DYN,[e])}},t.EcmaTonumber=class extends m{constructor(e){super(c.ECMA_TONUMBER,[e])}},t.EcmaNegdyn=class extends m{constructor(e){super(c.ECMA_NEGDYN,[e])}},t.EcmaNotdyn=class extends m{constructor(e){super(c.ECMA_NOTDYN,[e])}},t.EcmaIncdyn=class extends m{constructor(e){super(c.ECMA_INCDYN,[e])}},t.EcmaDecdyn=class extends m{constructor(e){super(c.ECMA_DECDYN,[e])}},t.EcmaExpdyn=class extends m{constructor(e){super(c.ECMA_EXPDYN,[e])}},t.EcmaIsindyn=class extends m{constructor(e){super(c.ECMA_ISINDYN,[e])}},t.EcmaInstanceofdyn=class extends m{constructor(e){super(c.ECMA_INSTANCEOFDYN,[e])}},t.EcmaStrictnoteqdyn=class extends m{constructor(e){super(c.ECMA_STRICTNOTEQDYN,[e])}},t.EcmaStricteqdyn=class extends m{constructor(e){super(c.ECMA_STRICTEQDYN,[e])}},t.EcmaResumegenerator=class extends m{constructor(e){super(c.ECMA_RESUMEGENERATOR,[e])}},t.EcmaGetresumemode=class extends m{constructor(e){super(c.ECMA_GETRESUMEMODE,[e])}},t.EcmaCreategeneratorobj=class extends m{constructor(e){super(c.ECMA_CREATEGENERATOROBJ,[e])}},t.EcmaThrowconstassignment=class extends m{constructor(e){super(c.ECMA_THROWCONSTASSIGNMENT,[e])}},t.EcmaGettemplateobject=class extends m{constructor(e){super(c.ECMA_GETTEMPLATEOBJECT,[e])}},t.EcmaGetnextpropname=class extends m{constructor(e){super(c.ECMA_GETNEXTPROPNAME,[e])}},t.EcmaCallarg0dyn=class extends m{constructor(e){super(c.ECMA_CALLARG0DYN,[e])}},t.EcmaThrowifnotobject=class extends m{constructor(e){super(c.ECMA_THROWIFNOTOBJECT,[e])}},t.EcmaIternext=class extends m{constructor(e){super(c.ECMA_ITERNEXT,[e])}},t.EcmaCloseiterator=class extends m{constructor(e){super(c.ECMA_CLOSEITERATOR,[e])}},t.EcmaCopymodule=class extends m{constructor(e){super(c.ECMA_COPYMODULE,[e])}},t.EcmaSupercallspread=class extends m{constructor(e){super(c.ECMA_SUPERCALLSPREAD,[e])}},t.EcmaDelobjprop=class extends m{constructor(e,t){super(c.ECMA_DELOBJPROP,[e,t])}},t.EcmaNewobjspreaddyn=class extends m{constructor(e,t){super(c.ECMA_NEWOBJSPREADDYN,[e,t])}},t.EcmaCreateiterresultobj=class extends m{constructor(e,t){super(c.ECMA_CREATEITERRESULTOBJ,[e,t])}},t.EcmaSuspendgenerator=class extends m{constructor(e,t){super(c.ECMA_SUSPENDGENERATOR,[e,t])}},t.EcmaAsyncfunctionawaituncaught=class extends m{constructor(e,t){super(c.ECMA_ASYNCFUNCTIONAWAITUNCAUGHT,[e,t])}},t.EcmaThrowundefinedifhole=class extends m{constructor(e,t){super(c.ECMA_THROWUNDEFINEDIFHOLE,[e,t])}},t.EcmaCallarg1dyn=class extends m{constructor(e,t){super(c.ECMA_CALLARG1DYN,[e,t])}},t.EcmaCopydataproperties=class extends m{constructor(e,t){super(c.ECMA_COPYDATAPROPERTIES,[e,t])}},t.EcmaStarrayspread=class extends m{constructor(e,t){super(c.ECMA_STARRAYSPREAD,[e,t])}},t.EcmaGetiteratornext=class extends m{constructor(e,t){super(c.ECMA_GETITERATORNEXT,[e,t])}},t.EcmaSetobjectwithproto=class extends m{constructor(e,t){super(c.ECMA_SETOBJECTWITHPROTO,[e,t])}},t.EcmaLdobjbyvalue=class extends m{constructor(e,t){super(c.ECMA_LDOBJBYVALUE,[e,t])}},t.EcmaStobjbyvalue=class extends m{constructor(e,t){super(c.ECMA_STOBJBYVALUE,[e,t])}},t.EcmaStownbyvalue=class extends m{constructor(e,t){super(c.ECMA_STOWNBYVALUE,[e,t])}},t.EcmaLdsuperbyvalue=class extends m{constructor(e,t){super(c.ECMA_LDSUPERBYVALUE,[e,t])}},t.EcmaStsuperbyvalue=class extends m{constructor(e,t){super(c.ECMA_STSUPERBYVALUE,[e,t])}},t.EcmaLdobjbyindex=class extends m{constructor(e,t){super(c.ECMA_LDOBJBYINDEX,[e,t])}},t.EcmaStobjbyindex=class extends m{constructor(e,t){super(c.ECMA_STOBJBYINDEX,[e,t])}},t.EcmaStownbyindex=class extends m{constructor(e,t){super(c.ECMA_STOWNBYINDEX,[e,t])}},t.EcmaCallspreaddyn=class extends m{constructor(e,t,r){super(c.ECMA_CALLSPREADDYN,[e,t,r])}},t.EcmaAsyncfunctionresolve=class extends m{constructor(e,t,r){super(c.ECMA_ASYNCFUNCTIONRESOLVE,[e,t,r])}},t.EcmaAsyncfunctionreject=class extends m{constructor(e,t,r){super(c.ECMA_ASYNCFUNCTIONREJECT,[e,t,r])}},t.EcmaCallargs2dyn=class extends m{constructor(e,t,r){super(c.ECMA_CALLARGS2DYN,[e,t,r])}},t.EcmaCallargs3dyn=class extends m{constructor(e,t,r,n){super(c.ECMA_CALLARGS3DYN,[e,t,r,n])}},t.EcmaDefinegettersetterbyvalue=class extends m{constructor(e,t,r,n){super(c.ECMA_DEFINEGETTERSETTERBYVALUE,[e,t,r,n])}},t.EcmaNewobjdynrange=class extends m{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.ECMA_NEWOBJDYNRANGE,n)}},t.EcmaCallirangedyn=class extends m{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.ECMA_CALLIRANGEDYN,n)}},t.EcmaCallithisrangedyn=class extends m{constructor(e,t){var r=[e,...t],n=[e];for(r.shift();r&&r.length;){let e=r.shift();null!=e&&n.push(e)}super(c.ECMA_CALLITHISRANGEDYN,n)}},t.EcmaSupercall=class extends m{constructor(e,t){super(c.ECMA_SUPERCALL,[e,t])}},t.EcmaCreateobjectwithexcludedkeys=class extends m{constructor(e,t,r){var n=[e,t,...r],i=[e,t];for(n.shift(),n.shift();n&&n.length;){let e=n.shift();null!=e&&i.push(e)}super(c.ECMA_CREATEOBJECTWITHEXCLUDEDKEYS,i)}},t.EcmaDefinefuncdyn=class extends m{constructor(e,t,r){super(c.ECMA_DEFINEFUNCDYN,[e,t,r])}},t.EcmaDefinencfuncdyn=class extends m{constructor(e,t,r){super(c.ECMA_DEFINENCFUNCDYN,[e,t,r])}},t.EcmaDefinegeneratorfunc=class extends m{constructor(e,t,r){super(c.ECMA_DEFINEGENERATORFUNC,[e,t,r])}},t.EcmaDefineasyncfunc=class extends m{constructor(e,t,r){super(c.ECMA_DEFINEASYNCFUNC,[e,t,r])}},t.EcmaDefinemethod=class extends m{constructor(e,t,r){super(c.ECMA_DEFINEMETHOD,[e,t,r])}},t.EcmaNewlexenvdyn=class extends m{constructor(e){super(c.ECMA_NEWLEXENVDYN,[e])}},t.EcmaCopyrestargs=class extends m{constructor(e){super(c.ECMA_COPYRESTARGS,[e])}},t.EcmaCreatearraywithbuffer=class extends m{constructor(e){super(c.ECMA_CREATEARRAYWITHBUFFER,[e])}},t.EcmaCreateobjecthavingmethod=class extends m{constructor(e){super(c.ECMA_CREATEOBJECTHAVINGMETHOD,[e])}},t.EcmaThrowifsupernotcorrectcall=class extends m{constructor(e){super(c.ECMA_THROWIFSUPERNOTCORRECTCALL,[e])}},t.EcmaCreateobjectwithbuffer=class extends m{constructor(e){super(c.ECMA_CREATEOBJECTWITHBUFFER,[e])}},t.EcmaLdlexvardyn=class extends m{constructor(e,t){super(c.ECMA_LDLEXVARDYN,[e,t])}},t.EcmaStlexvardyn=class extends m{constructor(e,t,r){super(c.ECMA_STLEXVARDYN,[e,t,r])}},t.EcmaDefineclasswithbuffer=class extends m{constructor(e,t,r,n,i){super(c.ECMA_DEFINECLASSWITHBUFFER,[e,t,r,n,i])}},t.EcmaImportmodule=class extends m{constructor(e){super(c.ECMA_IMPORTMODULE,[e])}},t.EcmaStmodulevar=class extends m{constructor(e){super(c.ECMA_STMODULEVAR,[e])}},t.EcmaTryldglobalbyname=class extends m{constructor(e){super(c.ECMA_TRYLDGLOBALBYNAME,[e])}},t.EcmaTrystglobalbyname=class extends m{constructor(e){super(c.ECMA_TRYSTGLOBALBYNAME,[e])}},t.EcmaLdglobalvar=class extends m{constructor(e){super(c.ECMA_LDGLOBALVAR,[e])}},t.EcmaStglobalvar=class extends m{constructor(e){super(c.ECMA_STGLOBALVAR,[e])}},t.EcmaLdobjbyname=class extends m{constructor(e,t){super(c.ECMA_LDOBJBYNAME,[e,t])}},t.EcmaStobjbyname=class extends m{constructor(e,t){super(c.ECMA_STOBJBYNAME,[e,t])}},t.EcmaStownbyname=class extends m{constructor(e,t){super(c.ECMA_STOWNBYNAME,[e,t])}},t.EcmaLdsuperbyname=class extends m{constructor(e,t){super(c.ECMA_LDSUPERBYNAME,[e,t])}},t.EcmaStsuperbyname=class extends m{constructor(e,t){super(c.ECMA_STSUPERBYNAME,[e,t])}},t.EcmaLdmodvarbyname=class extends m{constructor(e,t){super(c.ECMA_LDMODVARBYNAME,[e,t])}},t.EcmaCreateregexpwithliteral=class extends m{constructor(e,t){super(c.ECMA_CREATEREGEXPWITHLITERAL,[e,t])}},t.EcmaIstrue=class extends m{constructor(){super(c.ECMA_ISTRUE,[])}},t.EcmaIsfalse=class extends m{constructor(){super(c.ECMA_ISFALSE,[])}},t.EcmaStconsttoglobalrecord=class extends m{constructor(e){super(c.ECMA_STCONSTTOGLOBALRECORD,[e])}},t.EcmaStlettoglobalrecord=class extends m{constructor(e){super(c.ECMA_STLETTOGLOBALRECORD,[e])}},t.EcmaStclasstoglobalrecord=class extends m{constructor(e){super(c.ECMA_STCLASSTOGLOBALRECORD,[e])}},t.EcmaStownbyvaluewithnameset=class extends m{constructor(e,t){super(c.ECMA_STOWNBYVALUEWITHNAMESET,[e,t])}},t.EcmaStownbynamewithnameset=class extends m{constructor(e,t){super(c.ECMA_STOWNBYNAMEWITHNAMESET,[e,t])}},t.EcmaLdfunction=class extends m{constructor(){super(c.ECMA_LDFUNCTION,[])}},t.EcmaNewlexenvwithnamedyn=class extends m{constructor(e,t){super(c.ECMA_NEWLEXENVWITHNAMEDYN,[e,t])}},t.EcmaLdbigint=class extends m{constructor(e){super(c.ECMA_LDBIGINT,[e])}}},"./src/lexenv.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.VariableAcessStore=t.VariableAccessLoad=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/bcGenUtil.ts"),c=r("./src/base/vregisterCache.ts"),l=r("./src/debuginfo.ts"),u=a(r("./src/jshelpers.js"));class _{constructor(e,t,r){this.variable=r,this.scope=e,this.level=t}isLexVar(){return this.variable.isLexVar}getEnvSlotOfVar(){if(this.isLexVar())return this.variable.idxLex}}function d(e,t,r,n){let i=e.getTemp();n.push((0,s.loadAccumulatorString)(r)),n.push((0,s.storeAccumulator)(i)),n.push((0,s.throwUndefinedIfHole)(t,i)),e.freeTemps(i)}function p(e,t,r,n){let i=e.getTemp();if(t.isConst()&&(r.push((0,s.loadAccumulatorString)(t.getName())),r.push((0,s.storeAccumulator)(i)),r.push((0,s.throwConstAssignment)(i))),t.isClass()&&n!=l.NodeKind.FirstNodeOfFunction&&n!=l.NodeKind.Invalid&&n!=l.NodeKind.Normal){let e=t.getName();for(;n&&(!o.isClassLike(n)||!n.name||u.getTextOfIdentifierOrLiteral(n.name)!=e);)n=n.parent;n&&(r.push((0,s.loadAccumulatorString)(e)),r.push((0,s.storeAccumulator)(i)),r.push((0,s.throwConstAssignment)(i)))}e.freeTemps(i)}t.VariableAccessLoad=class extends _{constructor(e,t,r){super(e,t,r)}expand(e){return this.isLexVar()?this.loadLexEnvVar(e):this.loadLocalVar(e)}loadLocalVar(e){let t=new Array,r=this.variable,n=e.getVregForVariable(r);if(!r.isInitialized()){let n=e.getTemp();return t.push((0,s.loadAccumulator)((0,c.getVregisterCache)(e,c.CacheList.HOLE))),t.push((0,s.storeAccumulator)(n)),d(e,n,r.getName(),t),e.freeTemps(n),t}return"4funcObj"===r.getName()&&this.scope.setCallOpt("4funcObj"),t.push((0,s.loadAccumulator)(n)),t}loadLexEnvVar(e){let t=new Array,r=this.variable,n=r.idxLex;if(t.push((0,s.loadLexicalVar)(this.level,n)),r.isLetOrConst()){let n=e.getTemp();t.push((0,s.storeAccumulator)(n)),d(e,n,r.getName(),t),t.push((0,s.loadAccumulator)(n)),e.freeTemps(n)}return t}},t.VariableAcessStore=class extends _{constructor(e,t,r,n,i){super(e,t,r),this.isDeclaration=n,this.node=i}expand(e){return this.isLexVar()?this.storeLexEnvVar(e):this.storeLocalVar(e)}storeLocalVar(e){let t=new Array,r=this.variable,n=e.getVregForVariable(r);if(!this.isDeclaration){if(!r.isInitialized()){let n=e.getTemp(),i=e.getTemp(),a=e.getTemp();t.push((0,s.storeAccumulator)(i)),t.push((0,s.loadAccumulator)((0,c.getVregisterCache)(e,c.CacheList.HOLE))),t.push((0,s.storeAccumulator)(a)),d(e,a,r.getName(),t),t.push((0,s.loadAccumulator)(i)),e.freeTemps(n,i,a)}p(e,r,t,this.node)}return"4funcObj"===r.getName()&&this.scope.setCallOpt("4funcObj"),t.push((0,s.storeAccumulator)(n)),r.isExportVar()&&t.push((0,s.storeModuleVariable)(r.getExportedName())),t}storeLexEnvVar(e){let t=new Array,r=this.variable,n=e.getTemp();t.push((0,s.storeAccumulator)(n));let i=r.idxLex;if((r.isLetOrConst()||r.isClass())&&!this.isDeclaration){let n=e.getTemp();t.push((0,s.loadLexicalVar)(this.level,i)),t.push((0,s.storeAccumulator)(n)),d(e,n,r.getName(),t),p(e,r,t,this.node),e.freeTemps(n)}return t.push((0,s.storeLexicalVar)(this.level,i,n)),t.push((0,s.loadAccumulator)(n)),r.isExportVar()&&t.push((0,s.storeModuleVariable)(r.getExportedName())),e.freeTemps(n),t}}},"./src/log.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LOGE=t.LOGD=void 0;const n=r("./src/cmdOptions.ts");t.LOGD=function(e,...t){n.CmdOptions.isEnableDebugLog()&&(e?console.log(e+": "+t):console.log(t))},t.LOGE=function(e,...t){e?console.error(e+": "+t):console.error(t)}},"./src/modules.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.setExportBinding=t.setImport=t.ModuleStmt=void 0;const o=a(r("./src/jshelpers.js")),s=r("./src/diagnostic.ts");t.ModuleStmt=class{constructor(e,t=""){this.namespace="",this.bingdingNameMap=new Map,this.bingdingNodeMap=new Map,this.isCopy=!0,this.node=e,this.moduleRequest=t}getNode(){return this.node}getModuleRequest(){return this.moduleRequest}addLocalName(e,t){if(this.bingdingNameMap.has(e))throw new s.DiagnosticError(this.node,s.DiagnosticCode.Duplicate_identifier_0,o.getSourceFileOfNode(this.node),[e]);this.bingdingNameMap.set(e,t)}getBindingNameMap(){return this.bingdingNameMap}addNodeMap(e,t){this.bingdingNodeMap.set(e,t)}getBindingNodeMap(){return this.bingdingNodeMap}setNameSpace(e){this.namespace=e}getNameSpace(){return this.namespace}setCopyFlag(e){this.isCopy=e}getCopyFlag(){return this.isCopy}},t.setImport=function(e,t,r){e.forEach((e=>{if(r.importModule(e.getNode(),e.getModuleRequest()),e.getNameSpace()){let n=t.findLocal(e.getNameSpace());r.storeAccToLexEnv(e.getNode(),t,0,n,!0),n.initialize()}let n=r.allocLocalVreg();r.storeAccumulator(e.getNode(),n),e.getBindingNameMap().forEach(((i,a)=>{let o=t.findLocal(a);r.loadModuleVariable(e.getNode(),n,i),r.storeAccToLexEnv(e.getNode(),t,0,o,!0),o.initialize()}))}))},t.setExportBinding=function(e,t,r){e.forEach((e=>{if(e.getModuleRequest()){r.importModule(e.getNode(),e.getModuleRequest());let t=r.allocLocalVreg();r.storeAccumulator(e.getNode(),t),e.getCopyFlag()?r.copyModule(e.getNode(),t):(e.getNameSpace()&&r.storeModuleVar(e.getNode(),e.getNameSpace()),e.getBindingNameMap().forEach(((n,i)=>{r.loadModuleVariable(e.getNode(),t,n),r.storeModuleVar(e.getNode(),i)})))}else e.getBindingNameMap().forEach(((r,n)=>{let i=t.findLocal(r);if(void 0===i)throw new s.DiagnosticError(e.getNode(),s.DiagnosticCode.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,o.getSourceFileOfNode(e.getNode()),[r]);i.setExport(),i.setExportedName(n)}))}))}},"./src/pandagen.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PandaGen=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./node_modules/typescript/lib/typescript.js"),c=r("./src/base/bcGenUtil.ts"),l=r("./src/base/literal.ts"),u=r("./src/base/util.ts"),_=r("./src/base/vregisterCache.ts"),d=r("./src/cmdOptions.ts"),p=r("./src/debuginfo.ts"),f=r("./src/expression/numericLiteral.ts"),g=r("./src/irnodes.ts"),m=r("./src/lexenv.ts"),y=r("./src/log.ts"),h=r("./src/scope.ts"),v=r("./src/typeRecorder.ts");class b{constructor(e,t,r){this.debugTag="PandaGen",this.locals=[],this.temps=[],this.insns=[],this.catchMap=new Map,this.totalRegsNum=0,this.variableDebugInfoArray=[],this.sourceFileDebugInfo="",this.callType=0,this.internalName=e,this.parametersCount=t,this.scope=r,this.vregisterCache=new _.VregisterCache}appendScopeInfo(e){if(0==e.size)return;let t;t=b.getLiteralArrayBuffer().length;let r=new l.LiteralBuffer,n=new Array;return n.push(new l.Literal(l.LiteralTag.INTEGER,e.size)),e.forEach(((e,t)=>{n.push(new l.Literal(l.LiteralTag.STRING,t)),n.push(new l.Literal(l.LiteralTag.INTEGER,e))})),r.addLiterals(...n),b.getLiteralArrayBuffer().push(r),t}setCallType(e){this.callType=e}getCallType(){return this.callType}static getExportedTypes(){return v.TypeRecorder.getInstance()?v.TypeRecorder.getInstance().getExportedType():new Map}static getDeclaredTypes(){return v.TypeRecorder.getInstance()?v.TypeRecorder.getInstance().getDeclaredType():new Map}getSourceCodeDebugInfo(){return this.sourceCodeDebugInfo}setSourceCodeDebugInfo(e){this.sourceCodeDebugInfo=e}getSourceFileDebugInfo(){return this.sourceFileDebugInfo}setSourceFileDebugInfo(e){this.sourceFileDebugInfo=e}static getLiteralArrayBuffer(){return b.literalArrayBuffer}static clearLiteralArrayBuffer(){b.literalArrayBuffer=[]}getParameterLength(){if(this.scope instanceof h.FunctionScope)return this.scope.getParameterLength()}getFuncName(){return this.scope instanceof h.FunctionScope?this.scope.getFuncName():"main"}static appendTypeArrayBuffer(e){let t=b.literalArrayBuffer.length;return b.literalArrayBuffer.push(e.transfer2LiteralBuffer()),t}static setTypeArrayBuffer(e,t){b.literalArrayBuffer[t]=e.transfer2LiteralBuffer()}getFirstStmt(){return this.firstStmt}setFirstStmt(e){this.firstStmt||(this.firstStmt=e)}getVregisterCache(){return this.vregisterCache}getCatchMap(){return this.catchMap}getScope(){return this.scope}getVariableDebugInfoArray(){return this.variableDebugInfoArray}addDebugVariableInfo(e){this.variableDebugInfoArray.push(e)}allocLocalVreg(){let e=new g.VReg;return this.locals.push(e),e}getVregForVariable(e){if(e.hasAlreadyBinded())return e.getVreg();let t=this.allocLocalVreg();return e.bindVreg(t),t}getTemp(){let e;return e=this.temps.length>0?this.temps.shift():new g.VReg,e}freeTemps(...e){this.temps.unshift(...e)}getInsns(){return this.insns}setInsns(e){this.insns=e}printInsns(){(0,y.LOGE)("function "+this.internalName+"() {"),this.getInsns().forEach((e=>{(0,y.LOGE)(e.toString())})),(0,y.LOGE)("}")}setTotalRegsNum(e){this.totalRegsNum=e}getTotalRegsNum(){return this.totalRegsNum}setParametersCount(e){this.parametersCount=e}getParametersCount(){return this.parametersCount}setLocals(e){this.locals=e}getLocals(){return this.locals}getTemps(){return this.temps}storeAccumulator(e,t){this.add(e,(0,c.storeAccumulator)(t))}loadAccFromArgs(e){if(this.scope.getUseArgs()){let t=this.scope.findLocal("arguments");if(this.scope instanceof h.FunctionScope&&this.scope.setArgumentsOrRestargs(),!t)throw new Error("fail to get arguments");{let r=this.getVregForVariable(t);this.getUnmappedArgs(e),this.add(e,(0,c.storeAccumulator)(r))}}}deleteObjProperty(e,t,r){this.add(e,(0,c.deleteObjProperty)(t,r))}loadAccumulator(e,t){this.add(e,(0,c.loadAccumulator)(t))}createLexEnv(e,t,r){let n,i=r.getNumLexEnv(),a=r.getLexVarInfo();d.CmdOptions.isDebugMode()&&(n=this.appendScopeInfo(a)),this.add(e,(0,c.newLexicalEnv)(i,n),(0,c.storeAccumulator)(t))}popLexicalEnv(e){this.add(e,(0,c.popLexicalEnv)())}loadAccFromLexEnv(e,t,r,n){let i=new m.VariableAccessLoad(t,r,n).expand(this);this.add(e,...i)}storeAccToLexEnv(e,t,r,n,i){let a=new m.VariableAcessStore(t,r,n,i,e).expand(this);this.add(e,...a)}loadObjProperty(e,t,r){switch(typeof r){case"number":if((0,f.isInteger)(r))this.loadObjByIndex(e,t,r);else{let n=this.getTemp();this.add(e,(0,c.loadAccumulatorFloat)(r),(0,c.storeAccumulator)(n)),this.loadObjByValue(e,t,n),this.freeTemps(n)}break;case"string":this.loadObjByName(e,t,r);break;default:this.loadObjByValue(e,t,r)}}storeObjProperty(e,t,r){switch(typeof r){case"number":if((0,f.isInteger)(r))this.storeObjByIndex(e,t,r);else{let n=this.getTemp(),i=this.getTemp();this.storeAccumulator(e,n),this.add(e,(0,c.loadAccumulatorFloat)(r),(0,c.storeAccumulator)(i),(0,c.loadAccumulator)(n)),this.storeObjByValue(e,t,i),this.freeTemps(n,i)}break;case"string":this.storeObjByName(e,t,r);break;default:this.storeObjByValue(e,t,r)}}storeOwnProperty(e,t,r,n=!1){switch(typeof r){case"number":if((0,f.isInteger)(r))this.stOwnByIndex(e,t,r);else{let i=this.getTemp(),a=this.getTemp();this.storeAccumulator(e,i),this.add(e,(0,c.loadAccumulatorFloat)(r),(0,c.storeAccumulator)(a),(0,c.loadAccumulator)(i)),this.stOwnByValue(e,t,a,n),this.freeTemps(i,a)}break;case"string":this.stOwnByName(e,t,r,n);break;default:this.stOwnByValue(e,t,r,n)}}loadObjByName(e,t,r){this.add(e,(0,c.loadObjByName)(t,r))}storeObjByName(e,t,r){this.add(e,(0,c.storeObjByName)(t,r))}loadObjByIndex(e,t,r){this.add(e,(0,c.loadObjByIndex)(t,r))}storeObjByIndex(e,t,r){this.add(e,(0,c.storeObjByIndex)(t,r))}loadObjByValue(e,t,r){this.add(e,(0,c.loadObjByValue)(t,r))}storeObjByValue(e,t,r){this.add(e,(0,c.storeObjByValue)(t,r))}stOwnByName(e,t,r,n){this.add(e,(0,c.storeOwnByName)(t,r,n))}stOwnByIndex(e,t,r){this.add(e,(0,c.storeOwnByIndex)(t,r))}stOwnByValue(e,t,r,n){this.add(e,(0,c.storeOwnByValue)(t,r,n))}loadByNameViaDebugger(e,t,r){this.loadObjProperty(e,(0,_.getVregisterCache)(this,_.CacheList.Global),"debuggerGetValue");let n=this.getTemp();this.storeAccumulator(e,n);let i=this.getTemp();this.loadAccumulatorString(e,t),this.storeAccumulator(e,i);let a=this.getTemp();this.moveVreg(e,a,(0,_.getVregisterCache)(this,r)),this.call(e,[n,i,a],!1),this.freeTemps(n,i,a)}tryLoadGlobalByName(e,t){d.CmdOptions.isWatchEvaluateExpressionMode()?this.loadByNameViaDebugger(e,t,_.CacheList.True):this.add(e,(0,c.tryLoadGlobalByName)(t))}storeByNameViaDebugger(e,t){let r=this.getTemp();this.storeAccumulator(e,r),this.loadObjProperty(e,(0,_.getVregisterCache)(this,_.CacheList.Global),"debuggerSetValue");let n=this.getTemp();this.storeAccumulator(e,n);let i=this.getTemp();this.loadAccumulatorString(e,t),this.storeAccumulator(e,i),this.call(e,[n,i,r],!1),this.freeTemps(r,n,i)}tryStoreGlobalByName(e,t){d.CmdOptions.isWatchEvaluateExpressionMode()?this.storeByNameViaDebugger(e,t):this.add(e,(0,c.tryStoreGlobalByName)(t))}loadGlobalVar(e,t){this.add(e,(0,c.loadGlobalVar)(t))}storeGlobalVar(e,t){this.add(e,(0,c.storeGlobalVar)(t))}loadAccumulatorString(e,t){this.add(e,(0,c.loadAccumulatorString)(t))}loadAccumulatorFloat(e,t){this.add(e,(0,c.loadAccumulatorFloat)(t))}loadAccumulatorInt(e,t){this.add(e,(0,c.loadAccumulatorInt)(t))}moveVreg(e,t,r){this.add(e,(0,c.moveVreg)(t,r))}label(e,t){this.add(p.NodeKind.Invalid,t)}branch(e,t){this.add(e,(0,c.jumpTarget)(t))}isTrue(e){this.add(e,(0,c.isTrue)())}jumpIfTrue(e,t){this.isFalse(e),this.add(e,new g.Jeqz(t))}isFalse(e){this.add(e,(0,c.isFalse)())}jumpIfFalse(e,t){this.isTrue(e),this.add(e,new g.Jeqz(t))}debugger(e){this.add(e,(0,c.creatDebugger)())}throwUndefinedIfHole(e,t,r){this.add(e,(0,c.throwUndefinedIfHole)(t,r))}condition(e,t,r,n){switch(t){case s.SyntaxKind.LessThanToken:this.add(e,new g.EcmaLessdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.GreaterThanToken:this.add(e,new g.EcmaGreaterdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.LessThanEqualsToken:this.add(e,new g.EcmaLesseqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.GreaterThanEqualsToken:this.add(e,new g.EcmaGreatereqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.EqualsEqualsToken:this.add(e,new g.EcmaEqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.ExclamationEqualsToken:this.add(e,new g.EcmaNoteqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.EqualsEqualsEqualsToken:this.add(e,new g.EcmaStricteqdyn(r)),this.add(e,new g.Jeqz(n));break;case s.SyntaxKind.ExclamationEqualsEqualsToken:this.add(e,new g.EcmaStrictnoteqdyn(r)),this.add(e,new g.Jeqz(n))}}unary(e,t,r){switch(t){case s.SyntaxKind.PlusToken:this.add(e,new g.EcmaTonumber(r));break;case s.SyntaxKind.MinusToken:this.add(e,new g.EcmaNegdyn(r));break;case s.SyntaxKind.PlusPlusToken:this.add(e,new g.EcmaIncdyn(r));break;case s.SyntaxKind.MinusMinusToken:this.add(e,new g.EcmaDecdyn(r));break;case s.SyntaxKind.ExclamationToken:let t=new g.Label,n=new g.Label;this.jumpIfFalse(e,t),this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.False))),this.branch(e,n),this.label(e,t),this.add(e,(0,c.loadAccumulator)((0,_.getVregisterCache)(this,_.CacheList.True))),this.label(e,n);break;case s.SyntaxKind.TildeToken:this.add(e,new g.EcmaNotdyn(r));break;default:throw new Error("Unimplemented")}}binary(e,t,r){switch(t){case s.SyntaxKind.LessThanToken:case s.SyntaxKind.GreaterThanToken:case s.SyntaxKind.LessThanEqualsToken:case s.SyntaxKind.GreaterThanEqualsToken:case s.SyntaxKind.EqualsEqualsToken:case s.SyntaxKind.ExclamationEqualsToken:case s.SyntaxKind.EqualsEqualsEqualsToken:case s.SyntaxKind.ExclamationEqualsEqualsToken:this.binaryRelation(e,t,r);break;case s.SyntaxKind.PlusToken:case s.SyntaxKind.PlusEqualsToken:this.add(e,new g.EcmaAdd2dyn(r));break;case s.SyntaxKind.MinusToken:case s.SyntaxKind.MinusEqualsToken:this.add(e,new g.EcmaSub2dyn(r));break;case s.SyntaxKind.AsteriskToken:case s.SyntaxKind.AsteriskEqualsToken:this.add(e,new g.EcmaMul2dyn(r));break;case s.SyntaxKind.AsteriskAsteriskToken:case s.SyntaxKind.AsteriskAsteriskEqualsToken:this.add(e,new g.EcmaExpdyn(r));break;case s.SyntaxKind.SlashToken:case s.SyntaxKind.SlashEqualsToken:this.add(e,new g.EcmaDiv2dyn(r));break;case s.SyntaxKind.PercentToken:case s.SyntaxKind.PercentEqualsToken:this.add(e,new g.EcmaMod2dyn(r));break;case s.SyntaxKind.LessThanLessThanToken:case s.SyntaxKind.LessThanLessThanEqualsToken:this.add(e,new g.EcmaShl2dyn(r));break;case s.SyntaxKind.GreaterThanGreaterThanToken:case s.SyntaxKind.GreaterThanGreaterThanEqualsToken:this.add(e,new g.EcmaShr2dyn(r));break;case s.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:case s.SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken:this.add(e,new g.EcmaAshr2dyn(r));break;case s.SyntaxKind.AmpersandToken:case s.SyntaxKind.AmpersandEqualsToken:this.add(e,new g.EcmaAnd2dyn(r));break;case s.SyntaxKind.BarToken:case s.SyntaxKind.BarEqualsToken:this.add(e,new g.EcmaOr2dyn(r));break;case s.SyntaxKind.CaretToken:case s.SyntaxKind.CaretEqualsToken:this.add(e,new g.EcmaXor2dyn(r));break;case s.SyntaxKind.InKeyword:this.add(e,new g.EcmaIsindyn(r));break;case s.SyntaxKind.InstanceOfKeyword:this.add(e,new g.EcmaInstanceofdyn(r));break;default:throw new Error("Unimplemented")}}throw(e){this.add(e,(0,c.throwException)())}throwThrowNotExist(e){this.add(e,(0,c.throwThrowNotExists)())}throwDeleteSuperProperty(e){this.add(e,(0,c.throwDeleteSuperProperty)())}return(e){this.add(e,new g.ReturnDyn)}call(e,t,r){this.add(e,(0,c.call)(t,r))}returnUndefined(e){this.add(e,(0,c.returnUndefined)())}newObject(e,t){this.add(e,(0,c.newObject)(t))}defineMethod(e,t,r,n){let i=(0,u.getParamLengthOfFunc)(e);this.add(e,(0,c.loadAccumulator)(r),(0,c.defineMethod)(t,n,i))}defineFunction(e,t,r,n){let i=(0,u.getParamLengthOfFunc)(t);if(t.modifiers)for(let a=0;a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclaredSymbol2Type=t.ExportedSymbol2Type=t.TypeOfVreg=t.CatchTable=t.Program=t.Record=t.Function=t.Ins=t.Signature=t.Metadata=void 0;class r{constructor(e=""){this.attribute=e}}t.Metadata=r,t.Signature=class{constructor(e=0,t){this.p=e,this.rt=t}},t.Ins=class{constructor(e,t,r,n,i,a){this.o=e,this.r=t,this.id=r,this.im=n,this.l=i,this.d=a}},t.Function=class{constructor(e,t,r=0,n=[],i,a,o,s="",c,l,u,_,d){this.n=e,this.s=t,this.i=n,this.l=i,this.r=r,this.ca_tab=o,this.v=a,this.sf=s,this.sc=c,this.ct=l,this.ti=u,this.es2t=_,this.ds2t=d}},t.Record=class{constructor(e,t,n,i,a){this.name=e,this.whole_line=t,this.bound_left=n,this.bound_right=i,this.line_number=a,this.metadata=new r}},t.Program=class{constructor(){this.functions=[],this.records=[],this.strings=new Set,this.strings_arr=[],this.literalArrays=[],this.module_mode=!1,this.debug_mode=!1,this.log_enabled=!1,this.opt_level=1,this.opt_log_level="error"}finalize(){this.strings_arr=Array.from(this.strings)}},t.CatchTable=class{constructor(e,t,r){this.tb_lab=e,this.te_lab=t,this.cb_lab=r}},t.TypeOfVreg=class{constructor(e,t){this.vregNum=e,this.typeIndex=t}},t.ExportedSymbol2Type=class{constructor(e,t){this.symbol=e,this.type=t}},t.DeclaredSymbol2Type=class{constructor(e,t){this.symbol=e,this.type=t}}},"./src/pass/cacheExpander.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CacheExpander=void 0;const n=r("./src/base/vregisterCache.ts");t.CacheExpander=class{run(e){let t=e.getInsns(),r=e.getVregisterCache();for(let i=n.CacheList.MIN;i{if(!this.isTsFile||null==t.parent||t.parent.kind!=e.kind){t=d.setParent(t,e);let r=o.getOriginalNode(t);t=o.setTextRange(t,r)}this.setParent(t)}))}recordInfo(e,t){e.forEachChild((e=>{switch(this.syntaxCheckStatus&&(0,y.checkSyntaxError)(e),e.kind){case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.Constructor:case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:case o.SyntaxKind.ArrowFunction:{let r=this.buildVariableScope(t,e);this.recordOtherFunc(e,r),this.recordInfo(e,r);break}case o.SyntaxKind.FunctionDeclaration:{let r=this.buildVariableScope(t,e);this.recordFuncDecl(e,t),this.recordType&&v.TypeChecker.getInstance().formatNodeType(e),this.recordInfo(e,r);break}case o.SyntaxKind.Block:case o.SyntaxKind.IfStatement:case o.SyntaxKind.SwitchStatement:case o.SyntaxKind.LabeledStatement:case o.SyntaxKind.ThrowStatement:case o.SyntaxKind.TryStatement:case o.SyntaxKind.CatchClause:{let r=new g.LocalScope(t);this.setScopeMap(e,r),this.recordInfo(e,r);break}case o.SyntaxKind.DoStatement:case o.SyntaxKind.WhileStatement:case o.SyntaxKind.ForStatement:case o.SyntaxKind.ForInStatement:case o.SyntaxKind.ForOfStatement:{let r=new g.LoopScope(t);this.setScopeMap(e,r),this.recordInfo(e,r);break}case o.SyntaxKind.ClassDeclaration:case o.SyntaxKind.ClassExpression:this.recordClassInfo(e,t),this.recordType&&v.TypeChecker.getInstance().formatNodeType(e);break;case o.SyntaxKind.InterfaceDeclaration:this.recordType&&v.TypeChecker.getInstance().formatNodeType(e);break;case o.SyntaxKind.Identifier:this.recordVariableDecl(e,t);break;case o.SyntaxKind.ImportDeclaration:{if(!l.CmdOptions.isModules())throw new u.DiagnosticError(e,u.DiagnosticCode.An_import_declaration_can_only_be_used_in_a_namespace_or_module,d.getSourceFileOfNode(e));if(!(t instanceof g.ModuleScope))throw new Error("SyntaxError: import statement cannot in other scope except ModuleScope");let r=this.recordImportInfo(e,t);this.recordType&&v.TypeChecker.getInstance().formatNodeType(e,r);break}case o.SyntaxKind.ExportDeclaration:{if(!l.CmdOptions.isModules())throw new u.DiagnosticError(e,u.DiagnosticCode.An_export_declaration_can_only_be_used_in_a_module,d.getSourceFileOfNode(e));if(!(t instanceof g.ModuleScope))throw new Error("SyntaxError: export statement cannot in other scope except ModuleScope");let r=this.recordExportInfo(e);this.recordType&&v.TypeChecker.getInstance().formatNodeType(e,r);break}case o.SyntaxKind.ExportAssignment:if(this.defaultUsed)throw new u.DiagnosticError(e,u.DiagnosticCode.Duplicate_identifier_0,d.getSourceFileOfNode(e),["default"]);this.defaultUsed=!0,this.recordInfo(e,t),this.recordType&&v.TypeChecker.getInstance().formatNodeType(e);break;case o.SyntaxKind.VariableStatement:this.recordType&&v.TypeChecker.getInstance().formatNodeType(e),this.recordInfo(e,t);break;default:this.recordInfo(e,t)}}))}recordClassInfo(e,t){let r=new g.LocalScope(t);this.setScopeMap(e,r);let n=(0,m.extractCtorOfClass)(e);if(n?this.setCtorOfClass(e,n):(0,m.AddCtor2Class)(this,e,r),e.name){let r=d.getTextOfIdentifierOrLiteral(e.name),n=new g.ClassDecl(r,e);t.setDecls(n)}this.recordInfo(e,r)}buildVariableScope(e,t){let r=new g.FunctionScope(e,t),n=e.getNearestVariableScope();return r.setParentVariableScope(n),n.addChildVariableScope(r),this.setScopeMap(t,r),r}recordVariableDecl(e,t){let r=d.getTextOfIdentifierOrLiteral(e),n=this.getDeclarationNodeOfId(e);if(n){let i=s.getVarDeclarationKind(n),a=this.addVariableDeclToScope(t,e,n,r,i);if(i==b.VarDeclarationKind.VAR){let r=t.getNearestVariableScope();this.collectHoistDecls(e,r,a)}}else{let e=t.findDeclPos(r);if(e){let n=e.getDecl(r);if(n instanceof g.LetDecl||n instanceof g.ConstDecl){let r=t.getNearestVariableScope(),n=e.getNearestLexicalScope(),i=r.getNearestLexicalScope(),a=!1;if(n instanceof g.LoopScope){for(;i;){if(i==n){a=!0;break}i=i.getParent()}a&&n.pendingCreateEnv()}}}}if("arguments"==r){let e=t.getNearestVariableScope();null==e||e.setUseArgs(!0)}}addVariableDeclToScope(e,t,r,n,i){let a=new g.VarDecl(n,t);switch(i){case b.VarDeclarationKind.VAR:break;case b.VarDeclarationKind.LET:a=r.parent.kind==o.SyntaxKind.CatchClause?new g.CatchParameter(n,t):new g.LetDecl(n,t);break;case b.VarDeclarationKind.CONST:a=new g.ConstDecl(n,t);break;default:throw new Error("Wrong type of declaration")}return e.setDecls(a),a}getDeclarationNodeOfId(e){let t=e.parent;if(o.isVariableDeclaration(t)&&t.name==e)return t;if(o.isBindingElement(t)&&t.name==e){for(;t&&!o.isVariableDeclaration(t);)t=t.parent;return t||void 0}}recordImportInfo(e,t){if(!o.isStringLiteral(e.moduleSpecifier))throw new Error("moduleSpecifier must be a stringLiteral");let r;if(e.moduleSpecifier){let t=d.getTextOfIdentifierOrLiteral(e.moduleSpecifier);r=new f.ModuleStmt(e,t)}else r=new f.ModuleStmt(e);if(e.importClause){let n=e.importClause;if(n.name){let e=d.getTextOfIdentifierOrLiteral(n.name);t.setDecls(new g.ConstDecl(e,n.name)),r.addLocalName(e,"default"),r.addNodeMap(n.name,n.name)}if(n.namedBindings){let e=n.namedBindings;if(o.isNamespaceImport(e)){let n=d.getTextOfIdentifierOrLiteral(e.name);t.setDecls(new g.ConstDecl(n,e)),r.setNameSpace(n)}o.isNamedImports(e)&&e.elements.forEach((e=>{let n=d.getTextOfIdentifierOrLiteral(e.name),i=e.propertyName?d.getTextOfIdentifierOrLiteral(e.propertyName):n;t.setDecls(new g.ConstDecl(n,e)),r.addLocalName(n,i),r.addNodeMap(e.name,e.propertyName?e.propertyName:e.name)}))}}return this.importStmts.push(r),r}recordExportInfo(e){let t,r=o.getOriginalNode(e);if(r.moduleSpecifier){if(!o.isStringLiteral(r.moduleSpecifier))throw new Error("moduleSpecifier must be a stringLiteral");t=new f.ModuleStmt(r,d.getTextOfIdentifierOrLiteral(r.moduleSpecifier))}else t=new f.ModuleStmt(r);if(r.exportClause){t.setCopyFlag(!1);let e=r.exportClause;o.isNamespaceExport(e)&&t.setNameSpace(d.getTextOfIdentifierOrLiteral(e.name)),o.isNamedExports(e)&&e.elements.forEach((e=>{let n=d.getTextOfIdentifierOrLiteral(e.name);if("default"==n){if(this.defaultUsed)throw new u.DiagnosticError(r,u.DiagnosticCode.Duplicate_identifier_0,d.getSourceFileOfNode(r),[n]);this.defaultUsed=!0}let i=e.propertyName?d.getTextOfIdentifierOrLiteral(e.propertyName):n;t.addLocalName(n,i),t.addNodeMap(e.name,e.propertyName?e.propertyName:e.name)}))}return this.exportStmts.push(t),t}recordFuncDecl(e,t){this.recordFuncInfo(e);let r=e.name;if(!r)return;let n=d.getTextOfIdentifierOrLiteral(r),i=new g.FuncDecl(n,e),a=t,o=!0;t instanceof g.GlobalScope||t instanceof g.ModuleScope?this.collectHoistDecls(e,a,i):t instanceof g.LocalScope?(a=t.getNearestVariableScope(),a==this.getScopeOfNode(e.parent.parent)&&a instanceof g.FunctionScope&&(o=this.collectHoistDecls(e,a,i))):(0,p.LOGD)("Function declaration"," in function is collected in its body block"),o&&t.setDecls(i)}recordOtherFunc(e,t){if(this.recordFuncInfo(e),(o.isFunctionExpression(e)||o.isMethodDeclaration(e))&&e.name&&o.isIdentifier(e.name)){let r=d.getTextOfIdentifierOrLiteral(e.name),n=new g.FuncDecl(r,e);t.setDecls(n)}}recordFuncInfo(e){this.recordFunctionParameters(e),this.recordFuncName(e)}recordFuncName(e){let t="";if(o.isConstructorDeclaration(e)){let r=e.parent;t=(0,m.getClassNameForConstructor)(r)}else if((0,c.isAnonymousFunctionDefinition)(e)){let r=(0,_.findOuterNodeOfParenthesis)(e);if(o.isVariableDeclaration(r)){let e=r.name;o.isIdentifier(e)&&(t=d.getTextOfIdentifierOrLiteral(e))}else if(o.isBinaryExpression(r))r.operatorToken.kind==o.SyntaxKind.EqualsToken&&o.isIdentifier(r.left)&&(t=d.getTextOfIdentifierOrLiteral(r.left));else if(o.isPropertyAssignment(r)){let e=r.name;(o.isIdentifier(e)||o.isStringLiteral(e)||o.isNumericLiteral(e))&&(t=d.getTextOfIdentifierOrLiteral(e),"__proto__"==t&&(t=""))}}else o.isIdentifier(e.name)&&(t=d.getTextOfIdentifierOrLiteral(e.name));if(this.getScopeOfNode(e).setFuncName(t),""!=t){let e=this.funcNameMap;if(e.has(t)){let r=e.get(t);e.set(t,++r)}else e.set(t,1)}}recordFunctionParameters(e){let t=e.parameters,r=[],n=0,i=!0;t&&t.forEach((e=>{if((e.initializer||this.isRestParameter(e))&&(i=!1),i&&n++,o.isIdentifier(e.name)){let t=d.getTextOfIdentifierOrLiteral(e.name);r.push(new g.FunctionParameter(t,e.name))}else this.recordPatternParameter(e.name,r)})),this.getScopeOfNode(e).setParameterLength(n),this.setParametersMap(e,r)}recordPatternParameter(e,t){let r="";e.elements.forEach((e=>{if(!o.isOmittedExpression(e))if(o.isIdentifier(e.name))r=d.getTextOfIdentifierOrLiteral(e.name),t.push(new g.FunctionParameter(r,e.name));else{let r=e.name;this.recordPatternParameter(r,t)}}))}isRestParameter(e){return!!e.dotDotDotToken}collectHoistDecls(e,t,r){let n=r.name;if(t instanceof g.FunctionScope){let t=d.getContainingFunctionDeclaration(e),r=this.getParametersOfFunction(t);if(r)for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegAlloc=void 0;const n=r("./src/base/util.ts"),i=r("./src/base/vregisterCache.ts"),a=r("./src/debuginfo.ts"),o=r("./src/irnodes.ts");class s{constructor(){this.newInsns=[],this.spills=[],this.vRegsId=0,this.usedVreg=[],this.tmpVreg=[],this.vRegsId=0}allocIndexForVreg(e){let t=this.getFreeVreg();e.num=t,this.usedVreg[t]={vreg:e,flag:!1}}findTmpVreg(e){let t=Math.min(256,this.usedVreg.length);for(let r=0;r=16)throw new Error("no available tmp vReg from A");return t.flag=!0,this.tmpVreg.push(t),t.vreg}}throw new Error("no available tmp vReg from B")}clearVregFlags(){for(let e of this.tmpVreg)e.flag=!1;this.tmpVreg=[]}allocSpill(){if(this.spills.length>0)return this.spills.pop();let e=new o.VReg;return this.allocIndexForVreg(e),e}freeSpill(e){this.spills.push(e)}getFreeVreg(){if(this.vRegsId>=65536)throw new Error("vreg has been running out");return this.vRegsId++}getNumOfInvalidVregs(e,t){let r=0;for(let n=0;n=1<=1<=0;--e)this.freeSpill(c[e]);this.clearVregFlags()}checkDynRangeInstruction(e,t){let r=e[t].operands,i=(0,n.getRangeStartVregPos)(e[t]),a=1<=a)return!1;let o=r[i].num,s=i+1;for(;s=0;--e)this.freeSpill(s[e]);this.clearVregFlags()}adjustInstructionsIfNeeded(e){for(let t=0;t0?this.doRealAdjustment(r,o,t,e):this.newInsns.push(e[t])}}getTotalRegsNum(){return this.vRegsId}run(e){let t=e.getInsns(),r=e.getLocals(),n=e.getTemps(),a=e.getVregisterCache(),s=e.getParametersCount();for(let e=0;e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoopScope=t.LocalScope=t.FunctionScope=t.ModuleScope=t.GlobalScope=t.VariableScope=t.Scope=t.FunctionParameter=t.CatchParameter=t.ClassDecl=t.FuncDecl=t.ConstDecl=t.LetDecl=t.VarDecl=t.Decl=t.InitStatus=void 0;const n=r("./src/log.ts"),i=r("./src/variable.ts");var a;!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.UNINITIALIZED=1]="UNINITIALIZED"}(a=t.InitStatus||(t.InitStatus={}));class o{constructor(e,t){this.name=e,this.node=t}}t.Decl=o,t.VarDecl=class extends o{constructor(e,t){super(e,t)}},t.LetDecl=class extends o{constructor(e,t){super(e,t)}},t.ConstDecl=class extends o{constructor(e,t){super(e,t)}},t.FuncDecl=class extends o{constructor(e,t){super(e,t)}},t.ClassDecl=class extends o{constructor(e,t){super(e,t)}},t.CatchParameter=class extends o{constructor(e,t){super(e,t)}},t.FunctionParameter=class extends o{constructor(e,t){super(e,t)}};class s{constructor(){this.debugTag="scope",this.globals=[],this.locals=[],this.name2variable=new Map,this.decls=[],this.parent=void 0,this.callOpt=new Set,this.isArgumentsOrRestargs=!1}getName2variable(){return this.name2variable}getScopeStartInsIdx(){return this.startInsIdx}setScopeStartInsIdx(e){this.startInsIdx=e}setScopeEndInsIdx(e){this.endInsIdx=e}getScopeEndInsIdx(){return this.endInsIdx}setParent(e){this.parent=e}getParent(){return this.parent}getRootScope(){let e=this,t=this.getParent();for(;null!=t;)e=t,t=t.getParent();return e}getNearestVariableScope(){let e=this;for(;e;){if(e instanceof c)return e;e=e.parent}}getNearestLexicalScope(){let e=this;for(;e;){if(e instanceof c||e instanceof p)return e;e=e.parent}}getNthVariableScope(e){let t=this,r=e;for(;t;){if(t instanceof c){if(0==r)return t;r--}t=t.parent}}findLocal(e){return this.name2variable.get(e)}find(e){let t=0,r=this;for(;r;){let i=null,a=t;if((r instanceof c||r instanceof p&&r.need2CreateLexEnv())&&t++,i=r.findLocal(e),i)return(0,n.LOGD)(this.debugTag,"scope.find ("+e+") :"),(0,n.LOGD)(void 0,i),{scope:r,level:a,v:i};r=r.getParent()}return(0,n.LOGD)(this.debugTag,"scope.find ("+e+") : undefined"),{scope:void 0,level:0,v:void 0}}findDeclPos(e){let t,r=this;for(;r;){if(r.hasDecl(e)){t=r;break}r=r.getParent()}return t}setDecls(e){this.decls.push(e)}hasDecl(e){let t=this.decls;for(let r=0;r=0){let e=a,t=!1;for(;e!=o;)e instanceof y.VariableScope&&(t=!0),e=e.getParent();t&&o.setLexVar(c,a),t&&a instanceof y.FunctionScope&&a.setCallOpt("0newTarget")}if(n){let r=i.getTemp();(0,d.createArrayFromElements)(t,e,t.arguments,r),x(t,e),i.superCallSpread(t,r),i.freeTemps(r)}else{let n=r.length,a=n?r[0]:(0,_.getVregisterCache)(i,_.CacheList.undefined);x(t,e),i.superCall(t,n,a)}let l=i.getTemp();i.storeAccumulator(t,l),N(e,t),i.loadAccumulator(t,l),i.freeTemps(l),e.setThis(t)}function x(e,t){let r=t.getRecorder(),n=t.getPandaGen(),i=g.getContainingFunctionDeclaration(e);if(i&&r.getScopeOfNode(i))if(o.isConstructorDeclaration(i))n.loadAccumulator(e,(0,_.getVregisterCache)(n,_.CacheList.FUNC));else{let t=g.getContainingFunctionDeclaration(i),a=r.getScopeOfNode(t);a.pendingCreateEnv();let s=1;for(;!o.isConstructorDeclaration(t);)t=g.getContainingFunctionDeclaration(t),a.pendingCreateEnv(),s++;let c=a.findLocal("4funcObj");a.setLexVar(c,a);let l=c.idxLex;n.loadLexicalVar(e,s,l)}}function D(e){let t=e.members;for(let e=0;e{switch(e.kind){case o.SyntaxKind.Constructor:n=e;break;case o.SyntaxKind.PropertyDeclaration:if(!g.hasStaticModifier(e)){t.push(e);break}if(o.isComputedPropertyName(e.name))S(e.name,e,l.PropertyKind.Computed,i,r)&&a++;else{let t=(0,l.getPropName)(e.name),n=e.initializer;n?(0,l.isConstantExpr)(n)?S(t,n,l.PropertyKind.Constant,i,r)&&a++:S(t,n,l.PropertyKind.Variable,i,r)&&a++:(n=o.createIdentifier("undefined"),S(t,n,l.PropertyKind.Constant,i,r)&&a++)}break;case o.SyntaxKind.MethodDeclaration:{let t=(0,l.getPropName)(e.name);"string"==typeof t||"number"==typeof t?S(t,e,l.PropertyKind.Variable,i,r)&&a++:S(t,e,l.PropertyKind.Computed,i,r)&&a++;break}case o.SyntaxKind.GetAccessor:case o.SyntaxKind.SetAccessor:{let t=(0,l.getPropName)(e.name);"string"==typeof t||"number"==typeof t?S(t,e,l.PropertyKind.Accessor,i,r)&&a++:S(t,e,l.PropertyKind.Computed,i,r)&&a++;break}case o.SyntaxKind.SemicolonClassElement:break;default:throw new Error("Unreachable Kind")}}));let s=i.slice(i.length-a);return i=i.slice(0,i.length-a),i=i.reverse(),i.push(...s),n&&S("constructor",n,l.PropertyKind.Variable,i,r),i}(t,[],new Map);let i=r.getTemp(),a=function(e,t){let r=e.getPandaGen(),n=r.getTemp();if(t.heritageClauses&&t.heritageClauses.length){let i=t.heritageClauses[0];if(i.types.length){let t=i.types[0];return e.compileExpression(t.expression),r.storeAccumulator(t.expression,n),n}}return r.moveVreg(t,n,(0,_.getVregisterCache)(r,_.CacheList.HOLE)),n}(e,t),c=new s.LiteralBuffer,d=0,p=0,f=null!=D(t);for(;d{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIteratorRecord=t.compileForOfStatement=t.IteratorRecord=t.IteratorType=void 0;const n=r("./src/base/vregisterCache.ts"),i=r("./src/statement/labelTarget.ts"),a=r("./src/irnodes.ts"),o=r("./src/statement/tryStatement.ts");var s;!function(e){e[e.Normal=0]="Normal",e[e.Async=1]="Async"}(s=t.IteratorType||(t.IteratorType={}));class c{constructor(e,t,r=s.Normal){this.type=r,this.object=e,this.nextMethod=t}getType(){return this.type}getObject(){return this.object}getNextMethod(){return this.nextMethod}}function l(e,t,r,n,i){return function(e,t,r){if(r==s.Async)throw new Error("Async Iterator haven't been supported");e.getIterator(t)}(e,t,i),e.storeAccumulator(t,n),e.loadObjProperty(t,n,"next"),e.storeAccumulator(t,r),new c(n,r,i)}t.IteratorRecord=c,t.compileForOfStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),c=new a.Label,u=new a.Label,_=r.getTemp(),d=r.getTemp(),p=r.getTemp(),f=t.getRecorder().getScopeOfNode(e).need2CreateLexEnv(),g=r.getTemp(),m=s.Normal;t.compileExpression(e.expression);let y=l(r,e,d,p,m);r.loadAccumulator(e,(0,n.getVregisterCache)(r,n.CacheList.False)),r.storeAccumulator(e,_);let h=new i.LabelTarget(e,u,c,f);i.LabelTarget.pushLabelTarget(h),i.LabelTarget.updateName2LabelTarget(e.parent,h);let v=new o.TryBuilderWithForOf(t,r,e,_,y,h,f,f?g:void 0);t.constructTry(e,v,c),r.label(e,u),i.LabelTarget.popLabelTarget(),f&&(r.popLexicalEnv(e),t.popEnv()),r.freeTemps(_,d,p,g),t.popScope()},t.getIteratorRecord=l},"./src/statement/labelTarget.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LabelTarget=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js")),c=r("./src/diagnostic.ts"),l=r("./src/statement/tryStatement.ts");class u{constructor(e,t,r,n=!1){this.node=e,this.breakTargetLabel=t,this.continueTargetLabel=r,this.hasLoopEnv=n,this.loopEnvLevel=n?1:0,this.tryStatement=l.TryStatement.getCurrentTryStatement()}getBreakTargetLabel(){return this.breakTargetLabel}getContinueTargetLabel(){return this.continueTargetLabel}getLoopEnvLevel(){return this.loopEnvLevel}getTryStatement(){return this.tryStatement}getCorrespondingNode(){return this.node}increaseLoopEnvLevel(){this.loopEnvLevel+=1}decreaseLoopEnvLevel(){this.loopEnvLevel-=1}static isLabelTargetsEmpty(){return 0==u.labelTargetStack.length}static getCloseLabelTarget(){if(!u.isLabelTargetsEmpty())return u.labelTargetStack[u.labelTargetStack.length-1]}static getCloseContinueTarget(){let e=u.getCloseLabelTarget();if(e)return e.continueTargetLabel}static pushLabelTarget(e){e.hasLoopEnv&&(l.TryStatement.getCurrentTryStatement()&&l.TryStatement.getCurrentTryStatement().increaseLoopEnvLevel(),u.labelTargetStack.forEach((e=>e.increaseLoopEnvLevel()))),u.labelTargetStack.push(e)}static popLabelTarget(){!u.isLabelTargetsEmpty()&&u.labelTargetStack.pop().hasLoopEnv&&(l.TryStatement.getCurrentTryStatement()&&l.TryStatement.getCurrentTryStatement().decreaseLoopEnvLevel(),u.labelTargetStack.forEach((e=>e.decreaseLoopEnvLevel())))}static updateName2LabelTarget(e,t){for(;e.kind==o.SyntaxKind.LabeledStatement;){let r=e,n=s.getTextOfIdentifierOrLiteral(r.label);if(u.name2LabelTarget.has(n))throw new c.DiagnosticError(e,c.DiagnosticCode.Duplicate_label_0);u.name2LabelTarget.set(n,t),e=e.parent}}static deleteName2LabelTarget(e){u.name2LabelTarget.delete(e)}static getLabelTarget(e){let t;if(e.label){let r=s.getTextOfIdentifierOrLiteral(e.label);t=u.name2LabelTarget.get(r)}else t=u.getCloseLabelTarget();return t}}t.LabelTarget=u,u.name2LabelTarget=new Map,u.labelTargetStack=[]},"./src/statement/loopStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileForInStatement=t.compileForStatement=t.compileWhileStatement=t.compileDoStatement=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/lreference.ts"),c=r("./src/base/vregisterCache.ts"),l=r("./src/irnodes.ts"),u=r("./src/statement/labelTarget.ts");t.compileDoStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=t.getRecorder().getScopeOfNode(e),i=!!n.need2CreateLexEnv(),a=new l.Label,o=new l.Label,s=new l.Label,c=new u.LabelTarget(e,o,s,i);u.LabelTarget.pushLabelTarget(c),u.LabelTarget.updateName2LabelTarget(e.parent,c);let _=r.getTemp();r.label(e,a),i&&(r.createLexEnv(e,_,n),t.pushEnv(_)),t.compileStatement(e.statement),r.label(e,s),t.compileCondition(e.expression,o),i&&r.popLexicalEnv(e),r.branch(e,a),r.label(e,o),i&&(r.popLexicalEnv(e),t.popEnv()),u.LabelTarget.popLabelTarget(),r.freeTemps(_),t.popScope()},t.compileWhileStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=t.getRecorder().getScopeOfNode(e),i=!!n.need2CreateLexEnv(),a=new l.Label,o=new l.Label,s=new u.LabelTarget(e,o,a,i);u.LabelTarget.pushLabelTarget(s),u.LabelTarget.updateName2LabelTarget(e.parent,s);let c=r.getTemp();r.label(e,a),i&&(r.createLexEnv(e,c,n),t.pushEnv(c)),t.compileCondition(e.expression,o),t.compileStatement(e.statement),i&&r.popLexicalEnv(e),r.branch(e,a),r.label(e,o),i&&(r.popLexicalEnv(e),t.popEnv()),u.LabelTarget.popLabelTarget(),r.freeTemps(c),t.popScope()},t.compileForStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=t.getRecorder().getScopeOfNode(e),i=n.need2CreateLexEnv(),a=r.getTemp(),s=!1;i&&e.initializer&&o.isVariableDeclarationList(e.initializer)&&n.getName2variable().forEach((e=>{e.isLetOrConst()&&e.isLexVar&&(s=!0)}));let c=new l.Label,_=new l.Label,d=new l.Label,p=new u.LabelTarget(e,_,d,i);if(u.LabelTarget.pushLabelTarget(p),u.LabelTarget.updateName2LabelTarget(e.parent,p),e.initializer&&o.isVariableDeclarationList(e.initializer)&&s&&i){r.createLexEnv(e,a,n),t.pushEnv(a),e.initializer.declarations.forEach((e=>t.compileVariableDeclaration(e))),r.label(e,c),e.condition&&t.compileCondition(e.condition,_),t.compileStatement(e.statement),r.label(e,d);let i=new Map,o=new Array;n.getName2variable().forEach(((a,s)=>{if(a.isLexVar&&a.isLetOrConst()){let a=r.getTemp();o.push(a);let c=n.find(s);i.set(c,a),t.loadTarget(e,c),r.storeAccumulator(e,a)}})),r.popLexicalEnv(e),r.createLexEnv(e,a,n),i.forEach(((t,n)=>{let i=n.v.idxLex;r.storeLexicalVar(e,n.level,i,t)})),e.incrementor&&t.compileExpression(e.incrementor),r.branch(e,c),r.label(e,_),r.popLexicalEnv(e),t.popEnv(),r.freeTemps(...o)}else e.initializer&&(o.isVariableDeclarationList(e.initializer)?e.initializer.declarations.forEach((e=>t.compileVariableDeclaration(e))):t.compileExpression(e.initializer)),r.label(e,c),i&&(r.createLexEnv(e,a,n),t.pushEnv(a)),e.condition&&t.compileCondition(e.condition,_),t.compileStatement(e.statement),r.label(e,d),e.incrementor&&t.compileExpression(e.incrementor),i&&r.popLexicalEnv(e),r.branch(e,c),r.label(e,_),i&&(r.popLexicalEnv(e),t.popEnv());u.LabelTarget.popLabelTarget(),r.freeTemps(a),t.popScope()},t.compileForInStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=t.getRecorder().getScopeOfNode(e),i=!!n.need2CreateLexEnv(),a=r.getTemp(),_=new l.Label,d=new l.Label,p=new u.LabelTarget(e,d,_,i);u.LabelTarget.pushLabelTarget(p),u.LabelTarget.updateName2LabelTarget(e.parent,p);let f=r.getTemp(),g=r.getTemp();t.compileExpression(e.expression),r.getPropIterator(e),r.storeAccumulator(e,f),r.label(e,_),i&&(r.createLexEnv(e,a,n),t.pushEnv(a)),r.getNextPropName(e,f),r.storeAccumulator(e,g),r.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,c.getVregisterCache)(r,c.CacheList.undefined),d);let m=s.LReference.generateLReference(t,e.initializer,!1);r.loadAccumulator(e,g),m.setValue(),t.compileStatement(e.statement),i&&r.popLexicalEnv(e),r.branch(e,_),r.label(e,d),i&&(r.popLexicalEnv(e),t.popEnv()),r.freeTemps(a,f,g),u.LabelTarget.popLabelTarget(),t.popScope()}},"./src/statement/returnStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileReturnStatement=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/vregisterCache.ts"),c=r("./src/compiler.ts"),l=r("./src/function/asyncFunctionBuilder.ts"),u=r("./src/irnodes.ts"),_=a(r("./src/jshelpers.js")),d=r("./src/statement/classStatement.ts");function p(e,t,r){let n=e.expression,i=r.getPandaGen();n?r.compileExpression(n):i.loadAccumulator(e,(0,s.getVregisterCache)(i,s.CacheList.undefined)),i.storeAccumulator(e,t),r.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0),i.loadAccumulator(e,t);let a=r.getFuncBuilder();if(a instanceof l.AsyncFunctionBuilder){let t=i.getTemp();i.storeAccumulator(e,t),a.resolve(e,t),i.freeTemps(t)}i.return(e)}t.compileReturnStatement=function(e,t){let r=t.getPandaGen(),n=r.getTemp();!function(e){let t=_.getContainingFunctionDeclaration(e);return!(!t||!o.isConstructorDeclaration(t))&&!!(t&&t.parent&&t.parent.heritageClauses)}(e)?p(e,n,t):function(e,t,r){let n=r.getPandaGen(),i=e.expression,a=n.getTemp();if(i){if(o.isCallExpression(i)&&i.expression.kind==o.SyntaxKind.SuperKeyword)return p(e,t,r),void n.freeTemps(a);i.kind==o.SyntaxKind.ThisKeyword?n.moveVreg(e,a,(0,s.getVregisterCache)(n,s.CacheList.True)):(r.compileExpression(i),n.binary(e,o.SyntaxKind.EqualsEqualsEqualsToken,(0,s.getVregisterCache)(n,s.CacheList.undefined)),n.storeAccumulator(e,a))}else n.moveVreg(e,a,(0,s.getVregisterCache)(n,s.CacheList.True));let l=new u.Label,_=new u.Label;n.loadAccumulator(e,a),n.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(n,s.CacheList.False),l);let f=n.getTemp();r.getThis(e,f),n.loadAccumulator(e,f),n.branch(e,_),n.label(e,l),i?r.compileExpression(i):n.loadAccumulator(e,(0,s.getVregisterCache)(n,s.CacheList.undefined)),n.label(e,_),n.storeAccumulator(e,t),r.compileFinallyBeforeCFC(void 0,c.ControlFlowChange.Break,void 0);let g=new u.Label,m=new u.Label;n.loadAccumulator(e,a),n.condition(e,o.SyntaxKind.ExclamationEqualsEqualsToken,(0,s.getVregisterCache)(n,s.CacheList.False),m),(0,d.checkValidUseSuperBeforeSuper)(r,e),n.branch(e,g),n.label(e,m),n.loadAccumulator(e,t),n.label(e,g),n.return(e),n.freeTemps(a,f)}(e,n,t),r.freeTemps(n)}},"./src/statement/switchStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.compileSwitchStatement=t.SwitchBase=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/irnodes.ts"),c=r("./src/diagnostic.ts"),l=r("./src/statement/labelTarget.ts");class u{constructor(e,t,r,n){this.caseLabels=[],this.stmt=e,this.compiler=t,this.pandaGen=t.getPandaGen(),this.switchEndLabel=n;for(let e=0;e{this.compiler.compileStatement(e)}))}JumpIfCase(e,t){let r=this.stmt,n=this.pandaGen,i=r.caseBlock.clauses[t];this.compiler.compileExpression(i.expression),n.condition(i,o.SyntaxKind.ExclamationEqualsEqualsToken,e,this.caseLabels[t])}JumpToDefault(e){let t=this.stmt.caseBlock.clauses[e];this.pandaGen.branch(t,this.caseLabels[e])}checkDefaultNum(e){if(e>1)throw new c.DiagnosticError(this.stmt,c.DiagnosticCode.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement)}break(){this.pandaGen.branch(this.stmt,this.switchEndLabel)}end(){this.pandaGen.label(this.stmt,this.switchEndLabel)}}t.SwitchBase=u,t.compileSwitchStatement=function(e,t){t.pushScope(e);let r=t.getPandaGen(),n=e.caseBlock.clauses.length,i=new s.Label,a=new u(e,t,n,i),c=r.getTemp();a.compileTagOfSwitch(c);let _=e.caseBlock.clauses,d=0,p=0;for(let e=0;e<_.length;e++){let t=_[e];o.isDefaultClause(t)?(d=e,p++):a.JumpIfCase(c,e)}a.checkDefaultNum(p),d>0?a.JumpToDefault(d):a.break();for(let e=0;e<_.length;e++)a.setCasePosition(e),a.compileCaseStatements(e);a.end(),r.freeTemps(c),l.LabelTarget.popLabelTarget(),t.popScope()}},"./src/statement/tryStatement.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.generateCatchTables=t.updateCatchTables=t.TryBuilderWithForOf=t.TryBuilder=t.TryBuilderBase=t.TryStatement=t.CatchTable=t.LabelPair=t.transformTryCatchFinally=void 0;const o=r("./src/compiler.ts"),s=r("./src/irnodes.ts"),c=a(r("./node_modules/typescript/lib/typescript.js")),l=r("./src/scope.ts"),u=r("./src/base/lreference.ts"),_=r("./src/base/vregisterCache.ts"),d=a(r("./src/jshelpers.js"));t.transformTryCatchFinally=function(e,t){let r=t.getScopeOfNode(e),n=new l.LocalScope(r),i=new l.LocalScope(n);t.getScopeOfNode(e.tryBlock).setParent(i),t.getScopeOfNode(e.catchClause).setParent(i);const a=c.factory.createTryStatement(e.tryBlock,e.catchClause,void 0);t.setScopeMap(a,i);const o=[a];o[0]=d.setParent(o[0],e),o[0]=c.setTextRange(o[0],e.tryBlock);let s=c.factory.updateBlock(e.tryBlock,o);return e=c.factory.updateTryStatement(e,s,void 0,e.finallyBlock),t.setScopeMap(e.tryBlock,n),e};class p{constructor(e,t){this.beginLabel=e,this.endLabel=t}getBeginLabel(){return this.beginLabel}getEndLabel(){return this.endLabel}}t.LabelPair=p,t.CatchTable=class{constructor(e,t,r){this.labelPairs=[],this.catchBeginLabel=t,this.labelPairs.push(r),this.depth=f.getcurrentTryStatementDepth(),e.getCatchMap().set(t,this)}getLabelPairs(){return this.labelPairs}getCatchBeginLabel(){return this.catchBeginLabel}getDepth(){return this.depth}splitLabelPair(e){let t=this.labelPairs.pop();t&&(this.labelPairs.push(new p(t.getBeginLabel(),e.getBeginLabel())),this.labelPairs.push(new p(e.getEndLabel(),t.getEndLabel())))}};class f{constructor(e,t,r){this.loopEnvLevel=0,f.currentTryStatementDepth++,this.outer=f.currentTryStatement,this.stmt=e,this.catchTable=t,r&&(this.trybuilder=r),f.currentTryStatement=this}destroy(){f.currentTryStatementDepth--,f.currentTryStatement=this.outer}static setCurrentTryStatement(e){f.currentTryStatement=e}static getCurrentTryStatement(){return f.currentTryStatement}static getcurrentTryStatementDepth(){return f.currentTryStatementDepth}getOuterTryStatement(){return this.outer}getStatement(){return this.stmt}getCatchTable(){return this.catchTable}getLoopEnvLevel(){return this.loopEnvLevel}increaseLoopEnvLevel(){this.loopEnvLevel+=1}decreaseLoopEnvLevel(){this.loopEnvLevel-=1}}t.TryStatement=f,f.currentTryStatementDepth=0;class g{constructor(e,t,r){this.compiler=e,this.pandaGen=t,this.stmt=r}}t.TryBuilderBase=g,t.TryBuilder=class extends g{constructor(e,t,r){super(e,t,r)}compileTryBlock(e){this.stmt.finallyBlock?this.tryStatement=new f(this.stmt,e,this):this.tryStatement=new f(this.stmt,e),this.compiler.compileStatement(this.stmt.tryBlock),this.tryStatement.destroy()}compileFinallyBlockIfExisted(){this.stmt.finallyBlock&&this.compiler.compileStatement(this.stmt.finallyBlock)}compileExceptionHandler(){let e=this.stmt.catchClause;if(e){this.compiler.pushScope(e),t=this.compiler,(r=e.variableDeclaration)&&t.compileVariableDeclaration(r);let n=e.block;this.compiler.pushScope(n),n.statements.forEach((e=>this.compiler.compileStatement(e))),this.compiler.popScope(),this.compiler.popScope()}else{let e=this.pandaGen.getTemp();this.pandaGen.storeAccumulator(this.stmt,e),this.compiler.compileStatement(this.stmt.finallyBlock),this.pandaGen.loadAccumulator(this.stmt,e),this.pandaGen.throw(this.stmt),this.pandaGen.freeTemps(e)}var t,r}compileFinalizer(e,t){this.compiler.compileStatement(this.stmt.finallyBlock)}},t.TryBuilderWithForOf=class extends g{constructor(e,t,r,n,i,a,o,s){super(e,t,r),this.labelTarget=a,this.doneReg=n,this.iterator=i,this.hasLoopEnv=o,this.loopEnv=s||void 0}compileTryBlock(e){let t=this.stmt,r=this.compiler,n=this.pandaGen;this.tryStatement=new f(t,e,this);let i=this.pandaGen.getTemp(),a=r.getRecorder().getScopeOfNode(t);n.loadAccumulator(t,(0,_.getVregisterCache)(n,_.CacheList.True)),n.storeAccumulator(t,this.doneReg),n.label(t,this.labelTarget.getContinueTargetLabel()),this.hasLoopEnv&&(n.createLexEnv(t,this.loopEnv,a),r.pushEnv(this.loopEnv)),this.compileIteratorNext(t,n,this.iterator,i),n.loadObjProperty(t,i,"done"),n.jumpIfTrue(t,this.labelTarget.getBreakTargetLabel()),n.loadObjProperty(t,i,"value"),n.storeAccumulator(t,i),n.loadAccumulator(t,(0,_.getVregisterCache)(n,_.CacheList.False)),n.storeAccumulator(t,this.doneReg);let o=u.LReference.generateLReference(this.compiler,t.initializer,!1);n.loadAccumulator(t,i),o.setValue(),this.compiler.compileStatement(t.statement),this.tryStatement.destroy(),n.freeTemps(i)}compileFinallyBlockIfExisted(){}compileExceptionHandler(){let e=this.pandaGen,t=new s.Label,r=e.getTemp();e.storeAccumulator(this.stmt,r),e.loadAccumulator(this.stmt,this.doneReg),e.condition(this.stmt.expression,c.SyntaxKind.ExclamationEqualsEqualsToken,(0,_.getVregisterCache)(e,_.CacheList.True),t),e.loadObjProperty(this.stmt,this.iterator.getObject(),"return"),e.storeAccumulator(this.stmt,this.iterator.getNextMethod()),e.condition(this.stmt,c.SyntaxKind.ExclamationEqualsEqualsToken,(0,_.getVregisterCache)(e,_.CacheList.undefined),t),e.call(this.stmt,[this.iterator.getNextMethod(),this.iterator.getObject()],!0),e.label(this.stmt,t),e.loadAccumulator(this.stmt,r),e.throw(this.stmt),e.freeTemps(r)}compileFinalizer(e,t){if(e==o.ControlFlowChange.Break||t!=this.labelTarget.getContinueTargetLabel()){let e=new s.Label,t=this.pandaGen.getTemp();this.pandaGen.loadObjProperty(this.stmt,this.iterator.getObject(),"return"),this.pandaGen.storeAccumulator(this.stmt,this.iterator.getNextMethod()),this.pandaGen.condition(this.stmt,c.SyntaxKind.ExclamationEqualsEqualsToken,(0,_.getVregisterCache)(this.pandaGen,_.CacheList.undefined),e),this.pandaGen.call(this.stmt,[this.iterator.getNextMethod(),this.iterator.getObject()],!0),this.pandaGen.storeAccumulator(this.stmt,t),this.pandaGen.throwIfNotObject(this.stmt,t),this.pandaGen.label(this.stmt,e),this.pandaGen.freeTemps(t)}}compileIteratorNext(e,t,r,n){t.call(e,[r.getNextMethod(),r.getObject()],!0),t.storeAccumulator(e,n),t.throwIfNotObject(e,n)}},t.updateCatchTables=function(e,t,r){for(;e!=t;e=null==e?void 0:e.getOuterTryStatement())e.getCatchTable().splitLabelPair(r);t.getCatchTable().splitLabelPair(r)},t.generateCatchTables=function(e){let t=[];return e.forEach((e=>{t.push(e)})),t.sort(((e,t)=>t.getDepth()-e.getDepth())),t}},"./src/strictMode.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isGlobalDeclare=t.setGlobalDeclare=t.isStrictMode=t.setGlobalStrict=t.checkStrictModeStatementList=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js"));let c=!0,l=!1;function u(e){let t;if(e.kind==o.SyntaxKind.SourceFile)t=e.statements;else{let r=e;if(!r||!r.body)return!1;r.body.kind==o.SyntaxKind.Block&&(t=r.body.statements)}if(null==t)return!1;for(const e of t){if(!s.isPrologueDirective(e))return!1;if(_(e))return!0}return!1}function _(e){let t=s.getSourceFileOfNode(e);const r=s.getSourceTextOfNodeFromSourceFile(t,e.expression);return'"use strict"'===r||"'use strict'"===r}t.checkStrictModeStatementList=u,t.setGlobalStrict=function(e){c=e},t.isStrictMode=function(e){return!!c||function(e){for(;e&&e.parent&&e.parent.kind!=o.SyntaxKind.SourceFile;){let t=s.getContainingFunctionDeclaration(e);if(!t)return!1;if(u(t))return!0;e=t}return!1}(e)},t.setGlobalDeclare=function(e){l=e},t.isGlobalDeclare=function(){return l}},"./src/syntaxCheckHelper.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isStatement=t.isOptionalParameter=t.isIncludeBackslash8Or9InString=t.isInBlockScope=t.isDeclInGlobal=t.visibilityToString=t.isBindingPattern=t.isGlobalIdentifier=t.allowLetAndConstDeclarations=t.isFunctionLikeDeclaration=t.isOriginalKeyword=t.isAssignmentOperator=t.isLeftHandSideExpression=t.isLeftHandSideExpressionKind=t.isEvalOrArgumentsIdentifier=t.isIncludeOctalEscapeSequence=t.stringLiteralIsInRegExp=t.isNewOrCallExpression=t.isOctalNumber=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=a(r("./src/jshelpers.js"));function c(e){return e.kind===o.SyntaxKind.NewExpression||e.kind===o.SyntaxKind.CallExpression}function l(e){switch(e){case o.SyntaxKind.NumericLiteral:case o.SyntaxKind.BigIntLiteral:case o.SyntaxKind.StringLiteral:case o.SyntaxKind.RegularExpressionLiteral:case o.SyntaxKind.NoSubstitutionTemplateLiteral:case o.SyntaxKind.Identifier:case o.SyntaxKind.FalseKeyword:case o.SyntaxKind.ImportKeyword:case o.SyntaxKind.NullKeyword:case o.SyntaxKind.SuperKeyword:case o.SyntaxKind.ThisKeyword:case o.SyntaxKind.TrueKeyword:case o.SyntaxKind.ArrayLiteralExpression:case o.SyntaxKind.ObjectLiteralExpression:case o.SyntaxKind.PropertyAccessExpression:case o.SyntaxKind.ElementAccessExpression:case o.SyntaxKind.CallExpression:case o.SyntaxKind.NewExpression:case o.SyntaxKind.TaggedTemplateExpression:case o.SyntaxKind.ParenthesizedExpression:case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.TemplateExpression:case o.SyntaxKind.ClassExpression:case o.SyntaxKind.NonNullExpression:case o.SyntaxKind.MetaProperty:case o.SyntaxKind.JsxElement:case o.SyntaxKind.JsxSelfClosingElement:case o.SyntaxKind.JsxFragment:return!0;default:return!1}}t.isOctalNumber=function(e){return!(!e||e.length<2||!/^0[0-7]+$/.test(e))},t.isNewOrCallExpression=c,t.stringLiteralIsInRegExp=function(e){let t=e.parent;if(t&&c(t)){let e=t.expression;if(o.isIdentifier(e)&&"RegExp"===e.escapedText)return!0}return!1},t.isIncludeOctalEscapeSequence=function(e){if(!e.match(/\\(?:[1-7][0-7]{0,2}|[0-7]{2,3})/g))return!1;let t=0;for(;t="0"&&e[t+1]<="7")return!0;t++}return!1},t.isEvalOrArgumentsIdentifier=function(e){return o.isIdentifier(e)&&("eval"===e.escapedText||"arguments"===e.escapedText)},t.isLeftHandSideExpressionKind=l,t.isLeftHandSideExpression=function(e){return l(o.skipPartiallyEmittedExpressions(e).kind)},t.isAssignmentOperator=function(e){return e>=o.SyntaxKind.FirstAssignment&&e<=o.SyntaxKind.LastAssignment},t.isOriginalKeyword=function(e){return e.originalKeywordKind>=o.SyntaxKind.FirstFutureReservedWord&&e.originalKeywordKind<=o.SyntaxKind.LastFutureReservedWord},t.isFunctionLikeDeclaration=function(e){if(!e)return!1;switch(e.kind){case o.SyntaxKind.ArrowFunction:case o.SyntaxKind.Constructor:case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.FunctionDeclaration:case o.SyntaxKind.GetAccessor:case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.SetAccessor:return!0;default:return!1}},t.allowLetAndConstDeclarations=function e(t){if(!t)return!1;switch(t.kind){case o.SyntaxKind.DoStatement:case o.SyntaxKind.IfStatement:case o.SyntaxKind.ForStatement:case o.SyntaxKind.ForInStatement:case o.SyntaxKind.ForOfStatement:case o.SyntaxKind.WhileStatement:case o.SyntaxKind.WithStatement:return!1;case o.SyntaxKind.LabeledStatement:return e(t.parent)}return!0},t.isGlobalIdentifier=function(e){switch(e){case"NaN":case"undefined":case"Infinity":return!0;default:return!1}},t.isBindingPattern=function(e){if(!e)return!1;switch(e.kind){case o.SyntaxKind.ArrayBindingPattern:case o.SyntaxKind.ObjectBindingPattern:return!0;default:return!1}},t.visibilityToString=function(e){switch(e){case o.ModifierFlags.Private:return"private";case o.ModifierFlags.Protected:return"protected";default:return"public"}},t.isDeclInGlobal=function(e){let t=e.parent;for(;t&&t.kind!=o.SyntaxKind.Block;)t=t.parent;return!t},t.isInBlockScope=function(e){switch(e.kind){case o.SyntaxKind.SourceFile:case o.SyntaxKind.CaseBlock:case o.SyntaxKind.DefaultClause:case o.SyntaxKind.CaseClause:case o.SyntaxKind.Block:case o.SyntaxKind.Constructor:case o.SyntaxKind.MethodDeclaration:return!0}return!1},t.isIncludeBackslash8Or9InString=function(e){let t=0;for(;t=t.arguments.length},t.isStatement=function(e){return e>=o.SyntaxKind.FirstStatement&&e<=o.SyntaxKind.LastStatement}},"./src/syntaxChecker.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.checkExportEntries=t.checkSyntaxError=t.checkDuplicateDeclaration=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/cmdOptions.ts"),c=r("./src/diagnostic.ts"),l=r("./src/base/util.ts"),u=r("./src/expression/parenthesizedExpression.ts"),_=a(r("./src/jshelpers.js")),d=r("./src/jshelpers.js"),p=r("./src/log.ts"),f=r("./src/scope.ts"),g=r("./src/strictMode.ts"),m=r("./src/syntaxCheckerForStrcitMode.ts"),y=r("./src/syntaxCheckHelper.ts");function h(e,t){let r=e.getDecls(),n=e;if(r[t]instanceof f.VarDecl)for(;!(n instanceof f.FunctionScope);){if(n=n.getParent(),!n)return;n.getDecls().forEach((e=>{x(r[t],e)&&E(r[t])}))}}function v(e,t){let r=e.getDecls();for(let n=t+1;n1)throw o.isForInStatement(e)?new c.DiagnosticError(n.declarations[1],c.DiagnosticCode.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement,t):new c.DiagnosticError(n.declarations[1],c.DiagnosticCode.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement,t);if(i[0].initializer)throw o.isForInStatement(e)?new c.DiagnosticError(i[0].name,c.DiagnosticCode.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer,t):new c.DiagnosticError(i[0].name,c.DiagnosticCode.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer,t);if(i[0].type)throw o.isForInStatement(e)?new c.DiagnosticError(i[0],c.DiagnosticCode.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation,t):new c.DiagnosticError(i[0],c.DiagnosticCode.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation,t)}else O(r),(o.isArrayLiteralExpression(r)||o.isObjectLiteralExpression(r))&&V(r)}function F(e){let t=e.initializer;t.declarations.length>=1&&T(t.declarations[0])}function P(e,t,r){let n=_.skipOuterExpressions(e,7);if(n.kind!==o.SyntaxKind.Identifier&&n.kind!==o.SyntaxKind.PropertyAccessExpression&&n.kind!==o.SyntaxKind.ElementAccessExpression)throw new c.DiagnosticError(e,t);if(n.flags&o.NodeFlags.OptionalChain)throw new c.DiagnosticError(e,r)}function I(e){if((0,y.isAssignmentOperator)(e.operatorToken.kind)){let t=e.left;o.isParenthesizedExpression(t)&&(t=(0,u.findInnerExprOfParenthesis)(t)),e.operatorToken.kind==o.SyntaxKind.EqualsToken&&(o.isArrayLiteralExpression(t)||o.isObjectLiteralExpression(t))&&V(t),O(t)}}function O(e){if(_.isKeyword(e.kind)||e.kind==o.SyntaxKind.NumericLiteral||e.kind==o.SyntaxKind.StringLiteral)throw new c.DiagnosticError(e,c.DiagnosticCode.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)}function L(e){if(!o.isComputedPropertyName(e))return;let t=e.expression;if(o.isBinaryExpression(t)&&t.operatorToken.kind===o.SyntaxKind.CommaToken){let r=_.getSourceFileOfNode(e);throw new c.DiagnosticError(t,c.DiagnosticCode.A_comma_expression_is_not_allowed_in_a_computed_property_name,r)}}function M(e){let t=_.isAssignmentTarget(e),r=_.getSourceFileOfNode(e),n=new Map;for(let i of e.properties){if(o.isSpreadAssignment(i)){if(t){let e=_.skipParentheses(i.expression);if(o.isArrayLiteralExpression(e)||o.isObjectLiteralExpression(e))throw new c.DiagnosticError(i.expression,c.DiagnosticCode.A_rest_element_cannot_contain_a_binding_pattern,r)}continue}let e=i.name;if(o.isComputedPropertyName(e)&&L(e),o.isShorthandPropertyAssignment(i)&&!t&&i.objectAssignmentInitializer)throw new c.DiagnosticError(i.equalsToken,c.DiagnosticCode.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern,r);if(o.isPrivateIdentifier(e))throw new c.DiagnosticError(e,c.DiagnosticCode.Private_identifiers_are_not_allowed_outside_class_bodies,r);if(i.modifiers)for(let e of i.modifiers)if(!o.isMethodDeclaration(i)||e.kind!=o.SyntaxKind.AsyncKeyword)throw new c.DiagnosticError(e,c.DiagnosticCode._0_modifier_cannot_be_used_here,r,[_.getTextOfNode(e)]);let a=R(i);if(a&&!t){let t=_.getPropertyNameForPropertyNameNode(e);if(!t||o.isComputedPropertyName(e))continue;let i=n.get(t);if(i){if(12&a&&12&i&&"___proto__"===t)throw new c.DiagnosticError(e,c.DiagnosticCode.Duplicate_identifier_0,r,[_.getTextOfNode(e)])}else n.set(t,a)}}}function R(e,t){let r;return o.isShorthandPropertyAssignment(e)?function(e){if(e){let t=_.getSourceFileOfNode(e);throw new c.DiagnosticError(e,c.DiagnosticCode.A_definite_assignment_assertion_is_not_permitted_in_this_context,t)}}(e.exclamationToken):o.isPropertyAssignment(e)?(function(e){if(e){let t=_.getSourceFileOfNode(e);throw new c.DiagnosticError(e,c.DiagnosticCode.An_object_member_cannot_be_declared_optional,t)}}(e.questionToken),r=4):o.isMethodDeclaration(e)?r=8:o.isGetAccessor(e)?(J(e),r=1):o.isSetAccessor(e)?r=2:(0,p.LOGE)("Unexpected syntax kind:"+e.kind),r}function B(e){if(e&&e.hasTrailingComma){let t=_.getSourceFileOfNode(e[0]);throw new c.DiagnosticError(e[0],c.DiagnosticCode.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma,t)}}function j(e){k(e),A(e),function(e){let t=e.length,r=!1;for(let n=0;n{if((0,y.isFunctionLikeDeclaration)(n)&&((0,g.isStrictMode)(n)&&function(e,t){let r=t.getParametersOfFunction(e),n=[];r&&r.forEach((e=>{n.includes(e.name)?E(e):n.push(e.name)}))}(n,e),n.body)){let r=t.get(n.body),i=function(e,t){let r=t.getParametersOfFunction(e),n=[];if(r)return r.forEach((e=>{n.push(e.name)})),n}(n,e);r&&function(e,t){if(!e)return;let r=t.getDecls();for(let t=0;t1)throw new c.DiagnosticError(n,c.DiagnosticCode.Classes_can_only_extend_a_single_class);t=!0}}(e);let t=!1,r=_.getSourceFileOfNode(e);if(e.members.forEach((n=>{switch(n.kind){case o.SyntaxKind.Constructor:if(t)throw new c.DiagnosticError(e,c.DiagnosticCode.Multiple_constructor_implementations_are_not_allowed,r);t=!0;break;case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.SetAccessor:j(n);break;case o.SyntaxKind.GetAccessor:J(n)}})),(0,y.isStatement)(e.parent.kind))throw new c.DiagnosticError(e,c.DiagnosticCode.Class_declaration_not_allowed_in_statement_position,r)}(e);break;case o.SyntaxKind.SuperKeyword:!function(e){let t=_.getSourceFileOfNode(e),r=!1;o.isCallExpression(e.parent)&&e.parent.expression===e&&(r=!0);let n=_.getSuperContainer(e,!0);if(!r)for(;n&&o.isArrowFunction(n);)n=_.getSuperContainer(n,!0);if(!function(e,t){return!!e&&(t?o.isConstructorDeclaration(e):!(!o.isClassLike(e.parent)&&!o.isObjectLiteralExpression(e.parent))&&(o.isMethodDeclaration(e)||o.isMethodSignature(e)||o.isGetAccessor(e)||o.isSetAccessor(e)||o.isPropertyDeclaration(e)||o.isPropertySignature(e)||o.isConstructorDeclaration(e)))}(n,r)){let i=_.findAncestor(e,(e=>e===n?"quit":o.isComputedPropertyName(e)));if(i&&o.isComputedPropertyName(i))throw new c.DiagnosticError(e,c.DiagnosticCode.The_super_cannot_be_referenced_in_a_computed_property_name,t);if(_.findAncestor(e,o.isConstructorDeclaration))return;if(r)throw new c.DiagnosticError(e,c.DiagnosticCode.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors,t);if(!n||!n.parent||!o.isClassLike(n.parent)||o.isObjectLiteralExpression(n.parent))throw new c.DiagnosticError(e,c.DiagnosticCode.The_super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions,t);throw new c.DiagnosticError(e,c.DiagnosticCode.The_super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class,t)}}(e);break;case o.SyntaxKind.BinaryExpression:I(e);break;case o.SyntaxKind.Identifier:!function(e){if(_.isIdentifierName(e))return;let t=_.getSourceFileOfNode(e);if(e.originalKeywordKind===o.SyntaxKind.AwaitKeyword){if(_.isExternalOrCommonJsModule(t)&&_.isInTopLevelContext(e))throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,t,_.declarationNameToString(e));if(e.flags&o.NodeFlags.AwaitContext)throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,t,_.declarationNameToString(e))}else if(e.originalKeywordKind===o.SyntaxKind.YieldKeyword&&e.flags&o.NodeFlags.YieldContext)throw new c.DiagnosticError(e,c.DiagnosticCode.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,t,_.declarationNameToString(e))}(e);break;case o.SyntaxKind.ObjectLiteralExpression:M(e);break;case o.SyntaxKind.FunctionDeclaration:case o.SyntaxKind.MethodSignature:case o.SyntaxKind.MethodDeclaration:case o.SyntaxKind.SetAccessor:case o.SyntaxKind.Constructor:case o.SyntaxKind.FunctionExpression:case o.SyntaxKind.ArrowFunction:j(e);break;case o.SyntaxKind.GetAccessor:J(e);break;case o.SyntaxKind.LabeledStatement:!function(e){let t=_.getSourceFileOfNode(e);_.findAncestor(e.parent,(r=>{if(_.isFunctionLike(r))return"quit";if(o.isLabeledStatement(r)&&r.label.escapedText===e.label.escapedText)throw new c.DiagnosticError(e.label,c.DiagnosticCode.Duplicate_label_0,t,[_.getTextOfNode(e.label)]);return!1}));let r=e.statement;if(o.isVariableStatement(r)){let t=r;if(_.isLet(t.declarationList))throw new c.DiagnosticError(e,c.DiagnosticCode.Lexical_declaration_let_not_allowed_in_statement_position);if(_.isVarConst(t.declarationList))throw new c.DiagnosticError(e,c.DiagnosticCode.Lexical_declaration_const_not_allowed_in_statement_position)}}(e);break;case o.SyntaxKind.RegularExpressionLiteral:!function(e){let t=e.text;(new(0,r("./node_modules/regexpp/index.js").RegExpParser)).parseLiteral(t)}(e);break;case o.SyntaxKind.ThrowStatement:!function(e){if(o.isIdentifier(e.expression)&&""===e.expression.text)throw new c.DiagnosticError(e,c.DiagnosticCode.Line_break_not_permitted_here,_.getSourceFileOfNode(e))}(e)}}(e),((0,g.isStrictMode)(e)||s.CmdOptions.isModules())&&(0,m.checkSyntaxErrorForStrictMode)(e)},t.checkExportEntries=function(e){let t=e.getExportStmts(),r=new Set;t.forEach((e=>{e.getBindingNameMap().forEach(((t,n)=>{if(r.has(n))throw new c.DiagnosticError(e.getNode(),c.DiagnosticCode.Duplicate_identifier_0,_.getSourceFileOfNode(e.getNode()),[n]);r.add(n)}))}))}},"./src/syntaxCheckerForStrcitMode.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.checkSyntaxErrorForStrictMode=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/cmdOptions.ts"),c=r("./src/diagnostic.ts"),l=r("./src/expression/parenthesizedExpression.ts"),u=a(r("./src/jshelpers.js")),_=r("./src/strictMode.ts"),d=r("./src/syntaxCheckHelper.ts");function p(e,t){if((0,d.isIncludeOctalEscapeSequence)(t))throw new c.DiagnosticError(e,c.DiagnosticCode.Octal_escape_sequences_are_not_allowed_in_strict_mode);if((0,d.isIncludeOctalEscapeSequence)(t))throw new c.DiagnosticError(e,c.DiagnosticCode._8_and_9_are_not_allowed_in_strict_mode)}function f(e,t){if(!t||!o.isIdentifier(t))return;let r=t;if(!(0,d.isEvalOrArgumentsIdentifier)(r)&&!(0,d.isOriginalKeyword)(r))return;let n=u.getSourceFileOfNode(t),i=[o.idText(r)];throw new c.DiagnosticError(t,(a=e,u.getContainingClass(a)?c.DiagnosticCode.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:c.DiagnosticCode.Invalid_use_of_0_in_strict_mode),n,i);var a}function g(e){let t=e.parameters,r=new Map;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ts2Panda=void 0;const n=r("./src/cmdOptions.ts"),i=r("./src/irnodes.ts"),a=r("./src/log.ts"),o=r("./src/pandagen.ts"),s=r("./src/pandasm.ts"),c=r("./src/statement/tryStatement.ts"),l=r("./src/base/util.ts"),u=r("./src/compilerDriver.ts"),_=/\$/g;class d{constructor(){}static getFuncSignature(e){return new s.Signature(e.getParametersCount())}static getFuncInsnsAndRegsNum(e){let t=[],r=[];return e.getInsns().forEach((e=>{let n=e.kind>=i.IRNodeKind.VREG?void 0:e.kind,a=[],o=[],c=[],u="";if(e instanceof i.Label)u=d.labelPrefix+e.id,r.push(u);else if((0,l.isRangeInst)(e)){let t=e.operands;c.push(t[0].value),a.push(t[1].num),2==(0,l.getRangeStartVregPos)(e)&&a.push(t[2].num)}else e.operands.forEach((e=>{if(e instanceof i.VReg){let t=e;a.push(t.num)}else if(e instanceof i.Imm){let t=e;c.push(t.value)}else if("string"==typeof e)o.push(e),d.strings.add(e);else if(e instanceof i.Label){let t=d.labelPrefix+e.id;o.push(t)}}));e.debugPosInfo.ClearNodeKind(),t.push(new s.Ins(n,0==a.length?void 0:a,0==o.length?void 0:o,0==c.length?void 0:c,""===u?void 0:u,e.debugPosInfo))})),{insns:t,regsNum:e.getTotalRegsNum()-e.getParametersCount(),labels:0==r.length?void 0:r}}static dumpStringsArray(e){let t={t:2,s:Array.from(d.strings)},r=(0,l.escapeUnicode)(JSON.stringify(t,null,2));r="$"+r.replace(_,"#$")+"$",n.CmdOptions.isEnableDebugLog()&&(d.jsonString+=r),e.stdio[3].write(r+"\n")}static dumpTypeLiteralArrayBuffer(){var e;let t=o.PandaGen.getLiteralArrayBuffer(),r="",n=null===(e=t[0].getLiteral(1))||void 0===e?void 0:e.getValue();if(n)for(let e=0;e{i.push(e.getTypeIndex()),n.CmdOptions.enableTypeLog()&&(console.log("---------------------------------------"),console.log("- vreg name:",e.getVariableName()),console.log("- vreg local num:",e.num),console.log("- vreg type:",e.getTypeIndex()))})),"func_main_0"==h)){let e=o.PandaGen.getExportedTypes(),t=o.PandaGen.getDeclaredTypes();0!=e.size&&(p=new Array,e.forEach(((e,t)=>{let r=new s.ExportedSymbol2Type(t,e);p.push(r)}))),0!=t.size&&(f=new Array,t.forEach(((e,t)=>{let r=new s.DeclaredSymbol2Type(t,e);f.push(r)})))}n.CmdOptions.isDebugMode()?(g=e.getVariableDebugInfoArray(),m=e.getSourceCodeDebugInfo()):(g=void 0,m=void 0);let E=(0,c.generateCatchTables)(e.getCatchMap());E?(y=[],E.forEach((e=>{let t=e.getCatchBeginLabel();e.getLabelPairs().forEach((e=>{y.push(new s.CatchTable(d.labelPrefix+e.getBeginLabel().id,d.labelPrefix+e.getEndLabel().id,d.labelPrefix+t.id))}))}))):y=void 0;let C=new s.Function(h,v,b.regsNum,b.insns,b.labels,g,y,x,m,D,i,p,f);(0,a.LOGD)(C);let T={t:0,fb:C},k=(0,l.escapeUnicode)(JSON.stringify(T,null,2));k="$"+k.replace(_,"#$")+"$",n.CmdOptions.isEnableDebugLog()&&(d.jsonString+=k),t.stdio[3].write(k+"\n")}static clearDumpData(){d.strings.clear(),d.jsonString=""}}t.Ts2Panda=d,d.strings=new Set,d.labelPrefix="L_",d.jsonString=""},"./src/typeChecker.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeChecker=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/typeSystem.ts"),c=a(r("./src/jshelpers.js")),l=r("./src/log.ts"),u=r("./src/strictMode.ts"),_=r("./src/typeRecorder.ts");class d{constructor(){this.compiledTypeChecker=null}static getInstance(){return d.instance||(d.instance=new d),d.instance}setTypeChecker(e){this.compiledTypeChecker=e}getTypeChecker(){return this.compiledTypeChecker}getTypeAtLocation(e){if(e)try{return this.compiledTypeChecker.getTypeAtLocation(e)}catch(t){return void(0,l.LOGD)("Get getTypeAtLocation filed for : "+e.getFullText())}}getTypeDeclForIdentifier(e){if(!e)return;let t;try{t=this.compiledTypeChecker.getSymbolAtLocation(e)}catch(t){return void(0,l.LOGD)("Get getSymbolAtLocation filed for : "+e.getFullText())}return t&&t.declarations?t.declarations[0]:void 0}hasExportKeyword(e){if(e.modifiers)for(let t of e.modifiers)if(t.kind===o.SyntaxKind.ExportKeyword)return!0;return!1}hasDeclareKeyword(e){if(e.modifiers)for(let t of e.modifiers)if(t.kind===o.SyntaxKind.DeclareKeyword)return!0;return!1}getDeclNodeForInitializer(e){switch(e.kind){case o.SyntaxKind.Identifier:return this.getTypeDeclForIdentifier(e);case o.SyntaxKind.NewExpression:let t=e.expression;return t.kind==o.SyntaxKind.ClassExpression?t:this.getTypeDeclForIdentifier(t);case o.SyntaxKind.ClassExpression:case o.SyntaxKind.PropertyAccessExpression:return e;default:return}}getTypeForClassDeclOrExp(e,t){let r=_.TypeRecorder.getInstance().tryGetTypeIndex(e);return r==s.PrimitiveType.ANY&&(r=new s.ClassType(e).shiftedTypeIndex),t&&(_.TypeRecorder.getInstance().hasClass2InstanceMap(r)||new s.ClassInstType(r),r=_.TypeRecorder.getInstance().getClass2InstanceMap(r)),r}getTypeForPropertyAccessExpression(e){let t=e,r=c.getTextOfIdentifierOrLiteral(t.expression),n=c.getTextOfIdentifierOrLiteral(t.name);if(_.TypeRecorder.getInstance().inNampespaceMap(r)){let e=_.TypeRecorder.getInstance().getPathForNamespace(r);return new s.ExternalType(n,e).shiftedTypeIndex}return s.PrimitiveType.ANY}getInterfaceDeclaration(e){let t=_.TypeRecorder.getInstance().tryGetTypeIndex(e);return t==s.PrimitiveType.ANY&&(t=new s.InterfaceType(e).shiftedTypeIndex),t}getTypeFromDecl(e,t){if(!e)return s.PrimitiveType.ANY;switch(e.kind){case o.SyntaxKind.ClassDeclaration:case o.SyntaxKind.ClassExpression:return this.getTypeForClassDeclOrExp(e,t);case o.SyntaxKind.ImportSpecifier:case o.SyntaxKind.ImportClause:let r=_.TypeRecorder.getInstance().tryGetTypeIndex(e);return r!=s.PrimitiveType.ANY?r:s.PrimitiveType.ANY;case o.SyntaxKind.PropertyAccessExpression:return this.getTypeForPropertyAccessExpression(e);case o.SyntaxKind.InterfaceDeclaration:return this.getInterfaceDeclaration(e);default:return s.PrimitiveType.ANY}}getTypeFromAnotation(e){if(!e)return s.PrimitiveType.ANY;switch(e.kind){case o.SyntaxKind.StringKeyword:case o.SyntaxKind.NumberKeyword:case o.SyntaxKind.BooleanKeyword:case o.SyntaxKind.SymbolKeyword:case o.SyntaxKind.UndefinedKeyword:case o.SyntaxKind.VoidKeyword:case o.SyntaxKind.LiteralType:let t=e.getText().toUpperCase(),r=s.PrimitiveType.ANY;return t&&t in s.PrimitiveType&&(r=s.PrimitiveType[t]),r;case o.SyntaxKind.UnionType:return new s.UnionType(e).shiftedTypeIndex;case o.SyntaxKind.ArrayType:return new s.ArrayType(e).shiftedTypeIndex;case o.SyntaxKind.ParenthesizedType:let n=e.type;return n.kind==o.SyntaxKind.UnionType?new s.UnionType(n).shiftedTypeIndex:s.PrimitiveType.ANY;case o.SyntaxKind.TypeLiteral:return new s.ObjectType(e).shiftedTypeIndex;default:return s.PrimitiveType.ANY}}getOrCreateRecordForDeclNode(e,t){if(!e)return s.PrimitiveType.ANY;let r=s.PrimitiveType.ANY,n=this.getDeclNodeForInitializer(e);return r=this.getTypeFromDecl(n,e.kind==o.SyntaxKind.NewExpression),t&&_.TypeRecorder.getInstance().setVariable2Type(t,r),r}getOrCreateRecordForTypeNode(e,t){if(!e)return s.PrimitiveType.ANY;let r=s.PrimitiveType.ANY;if(r=this.getTypeFromAnotation(e),r==s.PrimitiveType.ANY&&e.kind==o.SyntaxKind.TypeReference){let t=e.getChildAt(0),n=this.getDeclNodeForInitializer(t);r=this.getTypeFromDecl(n,!0)}return t&&_.TypeRecorder.getInstance().setVariable2Type(t,r),r}formatVariableStatement(e){e.declarationList.declarations.forEach((t=>{let r=t.name,n=t.type,i=t.initializer,a=this.getOrCreateRecordForTypeNode(n,r);if(a==s.PrimitiveType.ANY&&(a=this.getOrCreateRecordForDeclNode(i,r)),this.hasExportKeyword(e)&&a!=s.PrimitiveType.ANY){let e=c.getTextOfIdentifierOrLiteral(r);_.TypeRecorder.getInstance().setExportedType(e,a)}}))}formatClassDeclaration(e){let t=new s.ClassType(e).shiftedTypeIndex,r=e.name,n="default";r&&(n=c.getTextOfIdentifierOrLiteral(r)),this.hasExportKeyword(e)?_.TypeRecorder.getInstance().setExportedType(n,t):this.hasDeclareKeyword(e)&&(0,u.isGlobalDeclare)()&&_.TypeRecorder.getInstance().setDeclaredType(n,t)}formatNodeType(e,t){if(null!==this.compiledTypeChecker)switch(e.kind){case o.SyntaxKind.VariableStatement:let r=o.getOriginalNode(e);this.formatVariableStatement(r);break;case o.SyntaxKind.FunctionDeclaration:let n=o.getOriginalNode(e),i=n.name?n.name:void 0,a=new s.FunctionType(n);i&&_.TypeRecorder.getInstance().setVariable2Type(i,a.shiftedTypeIndex);break;case o.SyntaxKind.ClassDeclaration:let l=o.getOriginalNode(e);(this.hasExportKeyword(e)||this.hasDeclareKeyword(e))&&this.formatClassDeclaration(l);break;case o.SyntaxKind.InterfaceDeclaration:if((0,u.isGlobalDeclare)()){let t=o.getOriginalNode(e),r=new s.InterfaceType(t),n=t.name;if(n){let e=c.getTextOfIdentifierOrLiteral(n);_.TypeRecorder.getInstance().setDeclaredType(e,r.shiftedTypeIndex)}}break;case o.SyntaxKind.ExportDeclaration:t&&_.TypeRecorder.getInstance().addExportedType(t);break;case o.SyntaxKind.ImportDeclaration:t&&_.TypeRecorder.getInstance().addImportedType(t);break;case o.SyntaxKind.ExportAssignment:let d=e.expression,p="default",f=this.getTypeAtLocation(d);if(f){let e=f.getSymbol().valueDeclaration;_.TypeRecorder.getInstance().addNonReExportedType(p,e,d)}}}}t.TypeChecker=d},"./src/typeRecorder.ts":function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeRecorder=void 0;const o=a(r("./node_modules/typescript/lib/typescript.js")),s=r("./src/base/typeSystem.ts"),c=a(r("./src/jshelpers.js")),l=r("./src/typeChecker.ts");class u{constructor(){this.type2Index=new Map,this.variable2Type=new Map,this.userDefinedTypeSet=new Set,this.typeSummary=new s.TypeSummary,this.class2InstanceMap=new Map,this.arrayTypeMap=new Map,this.unionTypeMap=new Map,this.exportedType=new Map,this.declaredType=new Map,this.namespaceMap=new Map,this.anonymousReExport=new Array}static getInstance(){return u.instance}static createInstance(){return u.instance=new u,u.instance}setTypeSummary(){this.typeSummary.setInfo(this.countUserDefinedTypeSet(),this.anonymousReExport)}addUserDefinedTypeSet(e){this.userDefinedTypeSet.add(e)}countUserDefinedTypeSet(){return this.userDefinedTypeSet.size}addType2Index(e,t){this.type2Index.set(e,t),this.addUserDefinedTypeSet(t)}setVariable2Type(e,t){this.variable2Type.set(e,t),t>s.PrimitiveType._LENGTH&&this.addUserDefinedTypeSet(t)}hasType(e){return this.type2Index.has(e)}tryGetTypeIndex(e){return this.type2Index.has(e)?this.type2Index.get(e):s.PrimitiveType.ANY}tryGetVariable2Type(e){return this.variable2Type.has(e)?this.variable2Type.get(e):s.PrimitiveType.ANY}setArrayTypeMap(e,t){this.arrayTypeMap.set(e,t)}hasArrayTypeMapping(e){return this.arrayTypeMap.has(e)}getFromArrayTypeMap(e){return this.arrayTypeMap.get(e)}setUnionTypeMap(e,t){this.unionTypeMap.set(e,t)}hasUnionTypeMapping(e){return this.unionTypeMap.has(e)}getFromUnionTypeMap(e){return this.unionTypeMap.get(e)}setClass2InstanceMap(e,t){this.class2InstanceMap.set(e,t)}hasClass2InstanceMap(e){return this.class2InstanceMap.has(e)}getClass2InstanceMap(e){return this.class2InstanceMap.get(e)}addImportedType(e){if(e.getBindingNodeMap().forEach(((t,r)=>{let n=c.getTextOfIdentifierOrLiteral(t),i=l.TypeChecker.getInstance().getTypeDeclForIdentifier(r),a=new s.ExternalType(n,e.getModuleRequest());this.addType2Index(i,a.shiftedTypeIndex),this.setVariable2Type(r,a.shiftedTypeIndex)})),""!=e.getNameSpace()){this.setNamespaceMap(e.getNameSpace(),e.getModuleRequest());let t=new s.ExternalType("*",e.getNameSpace()).shiftedTypeIndex;this.addUserDefinedTypeSet(t)}}addExportedType(e){if(""!=e.getModuleRequest())if(""!=e.getNameSpace()){let t=new s.ExternalType("*",e.getModuleRequest()).shiftedTypeIndex;this.setExportedType(e.getNameSpace(),t),this.addUserDefinedTypeSet(t)}else 0!=e.getBindingNameMap().size?e.getBindingNameMap().forEach(((t,r)=>{let n=new s.ExternalType(t,e.getModuleRequest()).shiftedTypeIndex;this.setExportedType(r,n),this.addUserDefinedTypeSet(n)})):this.addAnonymousReExport(e.getModuleRequest());else e.getBindingNodeMap().forEach(((e,t)=>{var r;let n=c.getTextOfIdentifierOrLiteral(t),i=null===(r=l.TypeChecker.getInstance().getTypeAtLocation(e).getSymbol())||void 0===r?void 0:r.valueDeclaration;i&&this.addNonReExportedType(n,i,e)}))}addNonReExportedType(e,t,r){let n=this.tryGetTypeIndex(t),i=this.tryGetVariable2Type(t);if(n!=s.PrimitiveType.ANY)this.setExportedType(e,n);else if(i!=s.PrimitiveType.ANY)this.setExportedType(e,i);else{let n=l.TypeChecker.getInstance().getTypeFromDecl(t,r.kind==o.SyntaxKind.NewExpression);this.setExportedType(e,n)}}setExportedType(e,t){this.exportedType.set(e,t)}setDeclaredType(e,t){this.declaredType.set(e,t)}addAnonymousReExport(e){this.anonymousReExport.push(e)}setNamespaceMap(e,t){this.namespaceMap.set(e,t)}inNampespaceMap(e){return this.namespaceMap.has(e)}getPathForNamespace(e){return this.namespaceMap.get(e)}getType2Index(){return this.type2Index}getVariable2Type(){return this.variable2Type}getTypeSet(){return this.userDefinedTypeSet}getExportedType(){return this.exportedType}getDeclaredType(){return this.declaredType}getAnonymousReExport(){return this.anonymousReExport}getNamespaceMap(){return this.namespaceMap}printNodeMap(e){e.forEach(((e,t)=>{console.log(c.getTextOfNode(t)+": "+e)}))}printExportMap(e){e.forEach(((e,t)=>{console.log(t+" : "+e)}))}printReExportMap(e){e.forEach(((e,t)=>{console.log(t+" : "+e)}))}getLog(){console.log("type2Index: "),console.log(this.printNodeMap(this.getType2Index())),console.log("variable2Type: "),console.log(this.printNodeMap(this.getVariable2Type())),console.log("getTypeSet: "),console.log(this.getTypeSet()),console.log("class instance Map:"),console.log(this.class2InstanceMap),console.log("exportedType:"),console.log(this.printExportMap(this.getExportedType())),console.log("AnoymousRedirect:"),console.log(this.getAnonymousReExport()),console.log("namespace Map:"),console.log(this.getNamespaceMap())}}t.TypeRecorder=u},"./src/variable.ts":(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariable=t.LocalVariable=t.Variable=t.VarDeclarationKind=void 0;const n=r("./src/scope.ts");var i;!function(e){e[e.NONE=0]="NONE",e[e.LET=1]="LET",e[e.CONST=2]="CONST",e[e.VAR=3]="VAR",e[e.FUNCTION=4]="FUNCTION",e[e.MODULE=5]="MODULE",e[e.CLASS=6]="CLASS"}(i=t.VarDeclarationKind||(t.VarDeclarationKind={}));class a{constructor(e,t){this.declKind=e,this.isLexVar=!1,this.idxLex=0,this.name=t,this.vreg=void 0,this.typeIndex=0}bindVreg(e){this.vreg=e,this.vreg.setTypeIndex(this.typeIndex),this.vreg.setVariableName(this.name)}hasAlreadyBinded(){return void 0!==this.vreg}getVreg(){if(!this.vreg)throw new Error("variable has not been binded");return this.vreg}getName(){return this.name}getTypeIndex(){return this.typeIndex}setTypeIndex(e){return this.typeIndex=e}setLexVar(e){return this.idxLex=e.getLexVarIdx(),e.pendingCreateEnv(),this.isLexVar=!0,this.idxLex}clearLexVar(){this.isLexVar=!1,this.idxLex=0}isLet(){return this.declKind==i.LET}isConst(){return this.declKind==i.CONST}isLetOrConst(){return this.declKind==i.LET||this.declKind==i.CONST}isVar(){return this.declKind==i.VAR}isNone(){return this.declKind==i.NONE}isClass(){return this.declKind==i.CLASS}}t.Variable=a,t.LocalVariable=class extends a{constructor(e,t,r){super(e,t),this.isExport=!1,this.exportedName="",this.status=r||null}initialize(){this.status=n.InitStatus.INITIALIZED}isInitialized(){return null==this.status||this.status==n.InitStatus.INITIALIZED}setExport(){this.isExport=!0}isExportVar(){return this.isExport}setExportedName(e){this.exportedName=e}getExportedName(){if(!this.exportedName)throw new Error("Exported Variable "+this.getName()+" doesn't have exported name");return this.exportedName}},t.GlobalVariable=class extends a{constructor(e,t){super(e,t)}}},"./node_modules/typescript/lib/typescript.js":function(e,t,r){"use strict";var n,i=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i0&&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 h(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=t("Map","tryGetNativeMap","createMapShim"),e.Set=t("Set","tryGetNativeSet","createSetShim"),e.getIterator=r,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)v.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 M(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 K(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),l=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var u=o,_=1;_r)return;var f=n;n=i,i=f}var g=n[t.length];return g>r?void 0:g}function z(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function G(e,t){for(var r=t;r=r.length+n.length&&H(t,r)&&z(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=H,e.removePrefix=function(e,t){return H(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=w),H(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,"")}}(u||(u={})),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 l(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=l,(i=l=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 u={};function _(e){return a>=e}function d(t,n){return!!_(t)||(u[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!==u&&u&t&&(a=a+(a?"|":"")+_,o&=~u)}if(0===o)return a}else for(var d=0,p=i;dn)for(var i=0,o=e.getOwnKeys(u);i=c.level&&(r[s]=c,u[s]=void 0)}},r.shouldAssert=_,r.fail=p,r.failBadSyntaxKind=function e(t,r,n){return p((r||"Unexpected node.")+"\r\nNode "+x(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=h,r.assertEachDefined=h,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")&&x?"SyntaxKind: "+x(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 '"+v(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 "+x(null==t?void 0:t.kind)+" did not pass test '"+v(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 "+x(t.kind)+" should not have passed test '"+v(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 "+x(null==t?void 0:t.kind)+" did not pass test '"+v(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 "+x(null==t?void 0:t.kind)+" was not a '"+x(r)+"' token."}),i||e)},r.assertMissingNode=function e(t,r,n){d(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(function(){return"Node "+x(t.kind)+" was unexpected'."}),n||e)},r.type=function(e){},r.getFunctionName=v,r.formatSymbol=function(t){return"{ name: "+e.unescapeLeadingUnderscores(t.escapedName)+"; flags: "+T(t.flags)+"; declarations: "+e.map(t.declarations,(function(e){return x(e.kind)}))+" }"},r.formatEnum=b,r.formatSyntaxKind=x,r.formatNodeFlags=D,r.formatModifierFlags=S,r.formatTransformFlags=E,r.formatEmitFlags=C,r.formatSymbolFlags=T,r.formatTypeFlags=k,r.formatSignatureFlags=A,r.formatObjectFlags=N,r.formatFlowFlags=w;var F,P,I,O=!1;function L(e){return function(){if(B(),!F)throw new Error("Debugging helpers could not be loaded.");return F}().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?" ("+w(t)+")":"")}},__debugFlowFlags:{get:function(){return b(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return L(this)}}})}function R(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return"NodeArray "+String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]")}}})}function B(){if(!O){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?" ("+N(r)+")":"")}},__debugFlags:{get:function(){return k(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?N(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=j(e,!0,t,r,n);return function(){throw new TypeError(i)}}(t,s,u,r.message):d?function(e,t,r,n){var i=!1;return function(){i||(l.warn(j(e,!1,t,r,n)),i=!0)}}(t,s,u,r.message):e.noop}(v(t),r),t)}}(e.Debug||(e.Debug={}))}(u||(u={})),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 l=e.Debug.checkDefined(o(t),"Invalid version");t=l.major,i=l.minor,a=l.patch,s=l.prerelease,c=l.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)?h("<",i.version.increment("major")):y(i.patch)?h("<",i.version.increment("minor")):h("<=",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(h("<",a.zero));else switch(e){case"~":r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")));break;case"^":r.push(h(">=",i)),r.push(h("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":r.push(h(e,i));break;case"<=":case">":r.push(y(s)?h("<="===e?"<":">=",i.increment("major")):y(c)?h("<="===e?"<":">=",i.increment("minor")):h(e,i));break;case"=":case void 0:y(s)||y(c)?(r.push(h(">=",i)),r.push(h("<",i.increment(y(s)?"major":"minor")))):r.push(h("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function h(e,t){return{operator:e,operand:t}}function v(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 x(t){return e.map(t,D).join(" ")}function D(e){return""+e.operator+e.operand}}(u||(u={})),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 n=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}()||function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser)try{var n,i=r("perf_hooks"),a=i.performance,o=i.PerformanceObserver;if(t(a,o)){n=a;var s=new e.Version(process.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(s)&&(n={get timeOrigin(){return a.timeOrigin},now:function(){return a.now()},mark:function(e){return a.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",a.mark(r)),a.measure(e,t,r),"__performance.measure-fix__"===r&&a.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:n,PerformanceObserver:o}}}catch(e){}}(),i=null==n?void 0:n.performance;e.tryGetNativePerformanceHooks=function(){return n},e.timestamp=i?function(){return i.now()}:Date.now?Date.now:function(){return+new Date}}(u||(u={})),function(e){!function(t){var r,n;function i(t,r,n){var i=0;return{enter:function(){1==++i&&u(r)},exit:function(){0==--i?(u(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,l=new e.Map;function u(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,u;if(a){var _=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),d=null!==(u=void 0!==r?s.get(r):void 0)&&void 0!==u?u:o,p=l.get(t)||0;l.set(t,p+(_-d)),null==n||n.measure(t,r,i)}}t.mark=u,t.measure=_,t.getCount=function(e){return c.get(e)||0},t.getDuration=function(e){return l.get(e)||0},t.forEachMeasure=function(e){l.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(),l.clear(),n=void 0,a=!1)}}(e.performance||(e.performance={}))}(u||(u={})),function(e){var t,n,i={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{var a=null!==(t=process.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";n=r("./node_modules/typescript/lib sync recursive")(a)}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:i}(u||(u={})),function(e){var t;!function(t){var n,i,o,s,c=0,l=0,u=[],_=[];t.startTracing=function(s,d,p){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===n)try{n=r("fs")}catch(e){throw new Error("tracing requires having fs\n(original error: "+(e.message||e)+")")}i=s,u.length=0,void 0===o&&(o=e.combinePaths(d,"legend.json")),n.existsSync(d)||n.mkdirSync(d,{recursive:!0});var f="build"===i?"."+process.pid+"-"+ ++c:"server"===i?"."+process.pid:"",g=e.combinePaths(d,"trace"+f+".json"),m=e.combinePaths(d,"types"+f+".json");_.push({configFilePath:p,tracePath:g,typesPath:m}),l=n.openSync(g,"w"),e.tracing=t;var y={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(l,"[\n"+[a({name:"process_name",args:{name:"tsc"}},y),a({name:"thread_name",args:{name:"Main"}},y),a(a({name:"TracingStartedInBrowser"},y),{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(l,"\n]\n"),n.closeSync(l),e.tracing=void 0,u.length?function(t){var r,i,o,s,c,l,u,d,p,f,m,y,h,v,b,x,D,S,E,C,T,k;e.performance.mark("beginDumpTypes");var A=_[_.length-1].typesPath,N=n.openSync(A,"w"),w=new e.Map;n.writeSync(N,"[");for(var F=t.length,P=0;P0),p(d.length-1,1e3*e.timestamp()),d.length--},t.popAll=function(){for(var t=1e3*e.timestamp(),r=d.length-1;r>=0;r--)p(r,t);d.length=0},t.dumpLegend=function(){o&&n.writeFileSync(o,JSON.stringify(_))}}(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend}(u||(u={})),function(e){var t,r,n,i,a,o,s,c,l;(l=e.SyntaxKind||(e.SyntaxKind={}))[l.Unknown=0]="Unknown",l[l.EndOfFileToken=1]="EndOfFileToken",l[l.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",l[l.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",l[l.NewLineTrivia=4]="NewLineTrivia",l[l.WhitespaceTrivia=5]="WhitespaceTrivia",l[l.ShebangTrivia=6]="ShebangTrivia",l[l.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",l[l.NumericLiteral=8]="NumericLiteral",l[l.BigIntLiteral=9]="BigIntLiteral",l[l.StringLiteral=10]="StringLiteral",l[l.JsxText=11]="JsxText",l[l.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",l[l.RegularExpressionLiteral=13]="RegularExpressionLiteral",l[l.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",l[l.TemplateHead=15]="TemplateHead",l[l.TemplateMiddle=16]="TemplateMiddle",l[l.TemplateTail=17]="TemplateTail",l[l.OpenBraceToken=18]="OpenBraceToken",l[l.CloseBraceToken=19]="CloseBraceToken",l[l.OpenParenToken=20]="OpenParenToken",l[l.CloseParenToken=21]="CloseParenToken",l[l.OpenBracketToken=22]="OpenBracketToken",l[l.CloseBracketToken=23]="CloseBracketToken",l[l.DotToken=24]="DotToken",l[l.DotDotDotToken=25]="DotDotDotToken",l[l.SemicolonToken=26]="SemicolonToken",l[l.CommaToken=27]="CommaToken",l[l.QuestionDotToken=28]="QuestionDotToken",l[l.LessThanToken=29]="LessThanToken",l[l.LessThanSlashToken=30]="LessThanSlashToken",l[l.GreaterThanToken=31]="GreaterThanToken",l[l.LessThanEqualsToken=32]="LessThanEqualsToken",l[l.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",l[l.EqualsEqualsToken=34]="EqualsEqualsToken",l[l.ExclamationEqualsToken=35]="ExclamationEqualsToken",l[l.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",l[l.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",l[l.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",l[l.PlusToken=39]="PlusToken",l[l.MinusToken=40]="MinusToken",l[l.AsteriskToken=41]="AsteriskToken",l[l.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",l[l.SlashToken=43]="SlashToken",l[l.PercentToken=44]="PercentToken",l[l.PlusPlusToken=45]="PlusPlusToken",l[l.MinusMinusToken=46]="MinusMinusToken",l[l.LessThanLessThanToken=47]="LessThanLessThanToken",l[l.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",l[l.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",l[l.AmpersandToken=50]="AmpersandToken",l[l.BarToken=51]="BarToken",l[l.CaretToken=52]="CaretToken",l[l.ExclamationToken=53]="ExclamationToken",l[l.TildeToken=54]="TildeToken",l[l.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",l[l.BarBarToken=56]="BarBarToken",l[l.QuestionToken=57]="QuestionToken",l[l.ColonToken=58]="ColonToken",l[l.AtToken=59]="AtToken",l[l.QuestionQuestionToken=60]="QuestionQuestionToken",l[l.BacktickToken=61]="BacktickToken",l[l.HashToken=62]="HashToken",l[l.EqualsToken=63]="EqualsToken",l[l.PlusEqualsToken=64]="PlusEqualsToken",l[l.MinusEqualsToken=65]="MinusEqualsToken",l[l.AsteriskEqualsToken=66]="AsteriskEqualsToken",l[l.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",l[l.SlashEqualsToken=68]="SlashEqualsToken",l[l.PercentEqualsToken=69]="PercentEqualsToken",l[l.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",l[l.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",l[l.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",l[l.AmpersandEqualsToken=73]="AmpersandEqualsToken",l[l.BarEqualsToken=74]="BarEqualsToken",l[l.BarBarEqualsToken=75]="BarBarEqualsToken",l[l.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",l[l.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",l[l.CaretEqualsToken=78]="CaretEqualsToken",l[l.Identifier=79]="Identifier",l[l.PrivateIdentifier=80]="PrivateIdentifier",l[l.BreakKeyword=81]="BreakKeyword",l[l.CaseKeyword=82]="CaseKeyword",l[l.CatchKeyword=83]="CatchKeyword",l[l.ClassKeyword=84]="ClassKeyword",l[l.ConstKeyword=85]="ConstKeyword",l[l.ContinueKeyword=86]="ContinueKeyword",l[l.DebuggerKeyword=87]="DebuggerKeyword",l[l.DefaultKeyword=88]="DefaultKeyword",l[l.DeleteKeyword=89]="DeleteKeyword",l[l.DoKeyword=90]="DoKeyword",l[l.ElseKeyword=91]="ElseKeyword",l[l.EnumKeyword=92]="EnumKeyword",l[l.ExportKeyword=93]="ExportKeyword",l[l.ExtendsKeyword=94]="ExtendsKeyword",l[l.FalseKeyword=95]="FalseKeyword",l[l.FinallyKeyword=96]="FinallyKeyword",l[l.ForKeyword=97]="ForKeyword",l[l.FunctionKeyword=98]="FunctionKeyword",l[l.IfKeyword=99]="IfKeyword",l[l.ImportKeyword=100]="ImportKeyword",l[l.InKeyword=101]="InKeyword",l[l.InstanceOfKeyword=102]="InstanceOfKeyword",l[l.NewKeyword=103]="NewKeyword",l[l.NullKeyword=104]="NullKeyword",l[l.ReturnKeyword=105]="ReturnKeyword",l[l.SuperKeyword=106]="SuperKeyword",l[l.SwitchKeyword=107]="SwitchKeyword",l[l.ThisKeyword=108]="ThisKeyword",l[l.ThrowKeyword=109]="ThrowKeyword",l[l.TrueKeyword=110]="TrueKeyword",l[l.TryKeyword=111]="TryKeyword",l[l.TypeOfKeyword=112]="TypeOfKeyword",l[l.VarKeyword=113]="VarKeyword",l[l.VoidKeyword=114]="VoidKeyword",l[l.WhileKeyword=115]="WhileKeyword",l[l.WithKeyword=116]="WithKeyword",l[l.ImplementsKeyword=117]="ImplementsKeyword",l[l.InterfaceKeyword=118]="InterfaceKeyword",l[l.LetKeyword=119]="LetKeyword",l[l.PackageKeyword=120]="PackageKeyword",l[l.PrivateKeyword=121]="PrivateKeyword",l[l.ProtectedKeyword=122]="ProtectedKeyword",l[l.PublicKeyword=123]="PublicKeyword",l[l.StaticKeyword=124]="StaticKeyword",l[l.YieldKeyword=125]="YieldKeyword",l[l.AbstractKeyword=126]="AbstractKeyword",l[l.AsKeyword=127]="AsKeyword",l[l.AssertsKeyword=128]="AssertsKeyword",l[l.AnyKeyword=129]="AnyKeyword",l[l.AsyncKeyword=130]="AsyncKeyword",l[l.AwaitKeyword=131]="AwaitKeyword",l[l.BooleanKeyword=132]="BooleanKeyword",l[l.ConstructorKeyword=133]="ConstructorKeyword",l[l.DeclareKeyword=134]="DeclareKeyword",l[l.GetKeyword=135]="GetKeyword",l[l.InferKeyword=136]="InferKeyword",l[l.IntrinsicKeyword=137]="IntrinsicKeyword",l[l.IsKeyword=138]="IsKeyword",l[l.KeyOfKeyword=139]="KeyOfKeyword",l[l.ModuleKeyword=140]="ModuleKeyword",l[l.NamespaceKeyword=141]="NamespaceKeyword",l[l.NeverKeyword=142]="NeverKeyword",l[l.ReadonlyKeyword=143]="ReadonlyKeyword",l[l.RequireKeyword=144]="RequireKeyword",l[l.NumberKeyword=145]="NumberKeyword",l[l.ObjectKeyword=146]="ObjectKeyword",l[l.SetKeyword=147]="SetKeyword",l[l.StringKeyword=148]="StringKeyword",l[l.SymbolKeyword=149]="SymbolKeyword",l[l.TypeKeyword=150]="TypeKeyword",l[l.UndefinedKeyword=151]="UndefinedKeyword",l[l.UniqueKeyword=152]="UniqueKeyword",l[l.UnknownKeyword=153]="UnknownKeyword",l[l.FromKeyword=154]="FromKeyword",l[l.GlobalKeyword=155]="GlobalKeyword",l[l.BigIntKeyword=156]="BigIntKeyword",l[l.OverrideKeyword=157]="OverrideKeyword",l[l.OfKeyword=158]="OfKeyword",l[l.QualifiedName=159]="QualifiedName",l[l.ComputedPropertyName=160]="ComputedPropertyName",l[l.TypeParameter=161]="TypeParameter",l[l.Parameter=162]="Parameter",l[l.Decorator=163]="Decorator",l[l.PropertySignature=164]="PropertySignature",l[l.PropertyDeclaration=165]="PropertyDeclaration",l[l.MethodSignature=166]="MethodSignature",l[l.MethodDeclaration=167]="MethodDeclaration",l[l.ClassStaticBlockDeclaration=168]="ClassStaticBlockDeclaration",l[l.Constructor=169]="Constructor",l[l.GetAccessor=170]="GetAccessor",l[l.SetAccessor=171]="SetAccessor",l[l.CallSignature=172]="CallSignature",l[l.ConstructSignature=173]="ConstructSignature",l[l.IndexSignature=174]="IndexSignature",l[l.TypePredicate=175]="TypePredicate",l[l.TypeReference=176]="TypeReference",l[l.FunctionType=177]="FunctionType",l[l.ConstructorType=178]="ConstructorType",l[l.TypeQuery=179]="TypeQuery",l[l.TypeLiteral=180]="TypeLiteral",l[l.ArrayType=181]="ArrayType",l[l.TupleType=182]="TupleType",l[l.OptionalType=183]="OptionalType",l[l.RestType=184]="RestType",l[l.UnionType=185]="UnionType",l[l.IntersectionType=186]="IntersectionType",l[l.ConditionalType=187]="ConditionalType",l[l.InferType=188]="InferType",l[l.ParenthesizedType=189]="ParenthesizedType",l[l.ThisType=190]="ThisType",l[l.TypeOperator=191]="TypeOperator",l[l.IndexedAccessType=192]="IndexedAccessType",l[l.MappedType=193]="MappedType",l[l.LiteralType=194]="LiteralType",l[l.NamedTupleMember=195]="NamedTupleMember",l[l.TemplateLiteralType=196]="TemplateLiteralType",l[l.TemplateLiteralTypeSpan=197]="TemplateLiteralTypeSpan",l[l.ImportType=198]="ImportType",l[l.ObjectBindingPattern=199]="ObjectBindingPattern",l[l.ArrayBindingPattern=200]="ArrayBindingPattern",l[l.BindingElement=201]="BindingElement",l[l.ArrayLiteralExpression=202]="ArrayLiteralExpression",l[l.ObjectLiteralExpression=203]="ObjectLiteralExpression",l[l.PropertyAccessExpression=204]="PropertyAccessExpression",l[l.ElementAccessExpression=205]="ElementAccessExpression",l[l.CallExpression=206]="CallExpression",l[l.NewExpression=207]="NewExpression",l[l.TaggedTemplateExpression=208]="TaggedTemplateExpression",l[l.TypeAssertionExpression=209]="TypeAssertionExpression",l[l.ParenthesizedExpression=210]="ParenthesizedExpression",l[l.FunctionExpression=211]="FunctionExpression",l[l.ArrowFunction=212]="ArrowFunction",l[l.DeleteExpression=213]="DeleteExpression",l[l.TypeOfExpression=214]="TypeOfExpression",l[l.VoidExpression=215]="VoidExpression",l[l.AwaitExpression=216]="AwaitExpression",l[l.PrefixUnaryExpression=217]="PrefixUnaryExpression",l[l.PostfixUnaryExpression=218]="PostfixUnaryExpression",l[l.BinaryExpression=219]="BinaryExpression",l[l.ConditionalExpression=220]="ConditionalExpression",l[l.TemplateExpression=221]="TemplateExpression",l[l.YieldExpression=222]="YieldExpression",l[l.SpreadElement=223]="SpreadElement",l[l.ClassExpression=224]="ClassExpression",l[l.OmittedExpression=225]="OmittedExpression",l[l.ExpressionWithTypeArguments=226]="ExpressionWithTypeArguments",l[l.AsExpression=227]="AsExpression",l[l.NonNullExpression=228]="NonNullExpression",l[l.MetaProperty=229]="MetaProperty",l[l.SyntheticExpression=230]="SyntheticExpression",l[l.TemplateSpan=231]="TemplateSpan",l[l.SemicolonClassElement=232]="SemicolonClassElement",l[l.Block=233]="Block",l[l.EmptyStatement=234]="EmptyStatement",l[l.VariableStatement=235]="VariableStatement",l[l.ExpressionStatement=236]="ExpressionStatement",l[l.IfStatement=237]="IfStatement",l[l.DoStatement=238]="DoStatement",l[l.WhileStatement=239]="WhileStatement",l[l.ForStatement=240]="ForStatement",l[l.ForInStatement=241]="ForInStatement",l[l.ForOfStatement=242]="ForOfStatement",l[l.ContinueStatement=243]="ContinueStatement",l[l.BreakStatement=244]="BreakStatement",l[l.ReturnStatement=245]="ReturnStatement",l[l.WithStatement=246]="WithStatement",l[l.SwitchStatement=247]="SwitchStatement",l[l.LabeledStatement=248]="LabeledStatement",l[l.ThrowStatement=249]="ThrowStatement",l[l.TryStatement=250]="TryStatement",l[l.DebuggerStatement=251]="DebuggerStatement",l[l.VariableDeclaration=252]="VariableDeclaration",l[l.VariableDeclarationList=253]="VariableDeclarationList",l[l.FunctionDeclaration=254]="FunctionDeclaration",l[l.ClassDeclaration=255]="ClassDeclaration",l[l.InterfaceDeclaration=256]="InterfaceDeclaration",l[l.TypeAliasDeclaration=257]="TypeAliasDeclaration",l[l.EnumDeclaration=258]="EnumDeclaration",l[l.ModuleDeclaration=259]="ModuleDeclaration",l[l.ModuleBlock=260]="ModuleBlock",l[l.CaseBlock=261]="CaseBlock",l[l.NamespaceExportDeclaration=262]="NamespaceExportDeclaration",l[l.ImportEqualsDeclaration=263]="ImportEqualsDeclaration",l[l.ImportDeclaration=264]="ImportDeclaration",l[l.ImportClause=265]="ImportClause",l[l.NamespaceImport=266]="NamespaceImport",l[l.NamedImports=267]="NamedImports",l[l.ImportSpecifier=268]="ImportSpecifier",l[l.ExportAssignment=269]="ExportAssignment",l[l.ExportDeclaration=270]="ExportDeclaration",l[l.NamedExports=271]="NamedExports",l[l.NamespaceExport=272]="NamespaceExport",l[l.ExportSpecifier=273]="ExportSpecifier",l[l.MissingDeclaration=274]="MissingDeclaration",l[l.ExternalModuleReference=275]="ExternalModuleReference",l[l.JsxElement=276]="JsxElement",l[l.JsxSelfClosingElement=277]="JsxSelfClosingElement",l[l.JsxOpeningElement=278]="JsxOpeningElement",l[l.JsxClosingElement=279]="JsxClosingElement",l[l.JsxFragment=280]="JsxFragment",l[l.JsxOpeningFragment=281]="JsxOpeningFragment",l[l.JsxClosingFragment=282]="JsxClosingFragment",l[l.JsxAttribute=283]="JsxAttribute",l[l.JsxAttributes=284]="JsxAttributes",l[l.JsxSpreadAttribute=285]="JsxSpreadAttribute",l[l.JsxExpression=286]="JsxExpression",l[l.CaseClause=287]="CaseClause",l[l.DefaultClause=288]="DefaultClause",l[l.HeritageClause=289]="HeritageClause",l[l.CatchClause=290]="CatchClause",l[l.PropertyAssignment=291]="PropertyAssignment",l[l.ShorthandPropertyAssignment=292]="ShorthandPropertyAssignment",l[l.SpreadAssignment=293]="SpreadAssignment",l[l.EnumMember=294]="EnumMember",l[l.UnparsedPrologue=295]="UnparsedPrologue",l[l.UnparsedPrepend=296]="UnparsedPrepend",l[l.UnparsedText=297]="UnparsedText",l[l.UnparsedInternalText=298]="UnparsedInternalText",l[l.UnparsedSyntheticReference=299]="UnparsedSyntheticReference",l[l.SourceFile=300]="SourceFile",l[l.Bundle=301]="Bundle",l[l.UnparsedSource=302]="UnparsedSource",l[l.InputFiles=303]="InputFiles",l[l.JSDocTypeExpression=304]="JSDocTypeExpression",l[l.JSDocNameReference=305]="JSDocNameReference",l[l.JSDocMemberName=306]="JSDocMemberName",l[l.JSDocAllType=307]="JSDocAllType",l[l.JSDocUnknownType=308]="JSDocUnknownType",l[l.JSDocNullableType=309]="JSDocNullableType",l[l.JSDocNonNullableType=310]="JSDocNonNullableType",l[l.JSDocOptionalType=311]="JSDocOptionalType",l[l.JSDocFunctionType=312]="JSDocFunctionType",l[l.JSDocVariadicType=313]="JSDocVariadicType",l[l.JSDocNamepathType=314]="JSDocNamepathType",l[l.JSDocComment=315]="JSDocComment",l[l.JSDocText=316]="JSDocText",l[l.JSDocTypeLiteral=317]="JSDocTypeLiteral",l[l.JSDocSignature=318]="JSDocSignature",l[l.JSDocLink=319]="JSDocLink",l[l.JSDocLinkCode=320]="JSDocLinkCode",l[l.JSDocLinkPlain=321]="JSDocLinkPlain",l[l.JSDocTag=322]="JSDocTag",l[l.JSDocAugmentsTag=323]="JSDocAugmentsTag",l[l.JSDocImplementsTag=324]="JSDocImplementsTag",l[l.JSDocAuthorTag=325]="JSDocAuthorTag",l[l.JSDocDeprecatedTag=326]="JSDocDeprecatedTag",l[l.JSDocClassTag=327]="JSDocClassTag",l[l.JSDocPublicTag=328]="JSDocPublicTag",l[l.JSDocPrivateTag=329]="JSDocPrivateTag",l[l.JSDocProtectedTag=330]="JSDocProtectedTag",l[l.JSDocReadonlyTag=331]="JSDocReadonlyTag",l[l.JSDocOverrideTag=332]="JSDocOverrideTag",l[l.JSDocCallbackTag=333]="JSDocCallbackTag",l[l.JSDocEnumTag=334]="JSDocEnumTag",l[l.JSDocParameterTag=335]="JSDocParameterTag",l[l.JSDocReturnTag=336]="JSDocReturnTag",l[l.JSDocThisTag=337]="JSDocThisTag",l[l.JSDocTypeTag=338]="JSDocTypeTag",l[l.JSDocTemplateTag=339]="JSDocTemplateTag",l[l.JSDocTypedefTag=340]="JSDocTypedefTag",l[l.JSDocSeeTag=341]="JSDocSeeTag",l[l.JSDocPropertyTag=342]="JSDocPropertyTag",l[l.SyntaxList=343]="SyntaxList",l[l.NotEmittedStatement=344]="NotEmittedStatement",l[l.PartiallyEmittedExpression=345]="PartiallyEmittedExpression",l[l.CommaListExpression=346]="CommaListExpression",l[l.MergeDeclarationMarker=347]="MergeDeclarationMarker",l[l.EndOfDeclarationMarker=348]="EndOfDeclarationMarker",l[l.SyntheticReferenceExpression=349]="SyntheticReferenceExpression",l[l.Count=350]="Count",l[l.FirstAssignment=63]="FirstAssignment",l[l.LastAssignment=78]="LastAssignment",l[l.FirstCompoundAssignment=64]="FirstCompoundAssignment",l[l.LastCompoundAssignment=78]="LastCompoundAssignment",l[l.FirstReservedWord=81]="FirstReservedWord",l[l.LastReservedWord=116]="LastReservedWord",l[l.FirstKeyword=81]="FirstKeyword",l[l.LastKeyword=158]="LastKeyword",l[l.FirstFutureReservedWord=117]="FirstFutureReservedWord",l[l.LastFutureReservedWord=125]="LastFutureReservedWord",l[l.FirstTypeNode=175]="FirstTypeNode",l[l.LastTypeNode=198]="LastTypeNode",l[l.FirstPunctuation=18]="FirstPunctuation",l[l.LastPunctuation=78]="LastPunctuation",l[l.FirstToken=0]="FirstToken",l[l.LastToken=158]="LastToken",l[l.FirstTriviaToken=2]="FirstTriviaToken",l[l.LastTriviaToken=7]="LastTriviaToken",l[l.FirstLiteralToken=8]="FirstLiteralToken",l[l.LastLiteralToken=14]="LastLiteralToken",l[l.FirstTemplateToken=14]="FirstTemplateToken",l[l.LastTemplateToken=17]="LastTemplateToken",l[l.FirstBinaryOperator=29]="FirstBinaryOperator",l[l.LastBinaryOperator=78]="LastBinaryOperator",l[l.FirstStatement=235]="FirstStatement",l[l.LastStatement=251]="LastStatement",l[l.FirstNode=159]="FirstNode",l[l.FirstJSDocNode=304]="FirstJSDocNode",l[l.LastJSDocNode=342]="LastJSDocNode",l[l.FirstJSDocTagNode=322]="FirstJSDocTagNode",l[l.LastJSDocTagNode=342]="LastJSDocTagNode",l[l.FirstContextualKeyword=126]="FirstContextualKeyword",l[l.LastContextualKeyword=158]="LastContextualKeyword",(c=e.NodeFlags||(e.NodeFlags={}))[c.None=0]="None",c[c.Let=1]="Let",c[c.Const=2]="Const",c[c.NestedNamespace=4]="NestedNamespace",c[c.Synthesized=8]="Synthesized",c[c.Namespace=16]="Namespace",c[c.OptionalChain=32]="OptionalChain",c[c.ExportContext=64]="ExportContext",c[c.ContainsThis=128]="ContainsThis",c[c.HasImplicitReturn=256]="HasImplicitReturn",c[c.HasExplicitReturn=512]="HasExplicitReturn",c[c.GlobalAugmentation=1024]="GlobalAugmentation",c[c.HasAsyncFunctions=2048]="HasAsyncFunctions",c[c.DisallowInContext=4096]="DisallowInContext",c[c.YieldContext=8192]="YieldContext",c[c.DecoratorContext=16384]="DecoratorContext",c[c.AwaitContext=32768]="AwaitContext",c[c.ThisNodeHasError=65536]="ThisNodeHasError",c[c.JavaScriptFile=131072]="JavaScriptFile",c[c.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",c[c.HasAggregatedChildData=524288]="HasAggregatedChildData",c[c.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",c[c.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",c[c.JSDoc=4194304]="JSDoc",c[c.Ambient=8388608]="Ambient",c[c.InWithStatement=16777216]="InWithStatement",c[c.JsonFile=33554432]="JsonFile",c[c.TypeCached=67108864]="TypeCached",c[c.Deprecated=134217728]="Deprecated",c[c.BlockScoped=3]="BlockScoped",c[c.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",c[c.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",c[c.ContextFlags=25358336]="ContextFlags",c[c.TypeExcludesFlags=40960]="TypeExcludesFlags",c[c.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags",(s=e.ModifierFlags||(e.ModifierFlags={}))[s.None=0]="None",s[s.Export=1]="Export",s[s.Ambient=2]="Ambient",s[s.Public=4]="Public",s[s.Private=8]="Private",s[s.Protected=16]="Protected",s[s.Static=32]="Static",s[s.Readonly=64]="Readonly",s[s.Abstract=128]="Abstract",s[s.Async=256]="Async",s[s.Default=512]="Default",s[s.Const=2048]="Const",s[s.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",s[s.Deprecated=8192]="Deprecated",s[s.Override=16384]="Override",s[s.HasComputedFlags=536870912]="HasComputedFlags",s[s.AccessibilityModifier=28]="AccessibilityModifier",s[s.ParameterPropertyModifier=16476]="ParameterPropertyModifier",s[s.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",s[s.TypeScriptModifier=18654]="TypeScriptModifier",s[s.ExportDefault=513]="ExportDefault",s[s.All=27647]="All",(o=e.JsxFlags||(e.JsxFlags={}))[o.None=0]="None",o[o.IntrinsicNamedElement=1]="IntrinsicNamedElement",o[o.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",o[o.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",(i=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[i.None=0]="None",i[i.Auto=1]="Auto",i[i.Loop=2]="Loop",i[i.Unique=3]="Unique",i[i.Node=4]="Node",i[i.KindMask=7]="KindMask",i[i.ReservedInNestedScopes=8]="ReservedInNestedScopes",i[i.Optimistic=16]="Optimistic",i[i.FileLevel=32]="FileLevel",i[i.AllowNameSubstitution=64]="AllowNameSubstitution",(n=e.TokenFlags||(e.TokenFlags={}))[n.None=0]="None",n[n.PrecedingLineBreak=1]="PrecedingLineBreak",n[n.PrecedingJSDocComment=2]="PrecedingJSDocComment",n[n.Unterminated=4]="Unterminated",n[n.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",n[n.Scientific=16]="Scientific",n[n.Octal=32]="Octal",n[n.HexSpecifier=64]="HexSpecifier",n[n.BinarySpecifier=128]="BinarySpecifier",n[n.OctalSpecifier=256]="OctalSpecifier",n[n.ContainsSeparator=512]="ContainsSeparator",n[n.UnicodeEscape=1024]="UnicodeEscape",n[n.ContainsInvalidEscape=2048]="ContainsInvalidEscape",n[n.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",n[n.NumericLiteralFlags=1008]="NumericLiteralFlags",n[n.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(r=e.FlowFlags||(e.FlowFlags={}))[r.Unreachable=1]="Unreachable",r[r.Start=2]="Start",r[r.BranchLabel=4]="BranchLabel",r[r.LoopLabel=8]="LoopLabel",r[r.Assignment=16]="Assignment",r[r.TrueCondition=32]="TrueCondition",r[r.FalseCondition=64]="FalseCondition",r[r.SwitchClause=128]="SwitchClause",r[r.ArrayMutation=256]="ArrayMutation",r[r.Call=512]="Call",r[r.ReduceLabel=1024]="ReduceLabel",r[r.Referenced=2048]="Referenced",r[r.Shared=4096]="Shared",r[r.Label=12]="Label",r[r.Condition=96]="Condition",(t=e.CommentDirectiveType||(e.CommentDirectiveType={}))[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore";var u,_,d,p,f,g,m,y,h,v,b,x,D,S,E,C,T,k,A,N,w,F,P,I,O,L,M,R,B,j,J,V,U,K,z,G,W,q,H,Y,X,Q,Z,$,ee,te,re,ne,ie,ae,oe,se,ce,le,ue,_e;e.OperationCanceledException=function(){},(_e=e.FileIncludeKind||(e.FileIncludeKind={}))[_e.RootFile=0]="RootFile",_e[_e.SourceFromProjectReference=1]="SourceFromProjectReference",_e[_e.OutputFromProjectReference=2]="OutputFromProjectReference",_e[_e.Import=3]="Import",_e[_e.ReferenceFile=4]="ReferenceFile",_e[_e.TypeReferenceDirective=5]="TypeReferenceDirective",_e[_e.LibFile=6]="LibFile",_e[_e.LibReferenceDirective=7]="LibReferenceDirective",_e[_e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(ue=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[ue.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",ue[ue.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(le=e.StructureIsReused||(e.StructureIsReused={}))[le.Not=0]="Not",le[le.SafeModules=1]="SafeModules",le[le.Completely=2]="Completely",(ce=e.ExitStatus||(e.ExitStatus={}))[ce.Success=0]="Success",ce[ce.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",ce[ce.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",ce[ce.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",ce[ce.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",ce[ce.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(se=e.UnionReduction||(e.UnionReduction={}))[se.None=0]="None",se[se.Literal=1]="Literal",se[se.Subtype=2]="Subtype",(oe=e.ContextFlags||(e.ContextFlags={}))[oe.None=0]="None",oe[oe.Signature=1]="Signature",oe[oe.NoConstraints=2]="NoConstraints",oe[oe.Completions=4]="Completions",oe[oe.SkipBindingPatterns=8]="SkipBindingPatterns",(ae=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[ae.None=0]="None",ae[ae.NoTruncation=1]="NoTruncation",ae[ae.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",ae[ae.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",ae[ae.UseStructuralFallback=8]="UseStructuralFallback",ae[ae.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",ae[ae.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",ae[ae.UseFullyQualifiedType=64]="UseFullyQualifiedType",ae[ae.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",ae[ae.SuppressAnyReturnType=256]="SuppressAnyReturnType",ae[ae.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",ae[ae.MultilineObjectLiterals=1024]="MultilineObjectLiterals",ae[ae.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",ae[ae.UseTypeOfFunction=4096]="UseTypeOfFunction",ae[ae.OmitParameterModifiers=8192]="OmitParameterModifiers",ae[ae.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",ae[ae.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",ae[ae.NoTypeReduction=536870912]="NoTypeReduction",ae[ae.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",ae[ae.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",ae[ae.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",ae[ae.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",ae[ae.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",ae[ae.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",ae[ae.AllowEmptyTuple=524288]="AllowEmptyTuple",ae[ae.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",ae[ae.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",ae[ae.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",ae[ae.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",ae[ae.IgnoreErrors=70221824]="IgnoreErrors",ae[ae.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",ae[ae.InTypeAlias=8388608]="InTypeAlias",ae[ae.InInitialEntityName=16777216]="InInitialEntityName",(ie=e.TypeFormatFlags||(e.TypeFormatFlags={}))[ie.None=0]="None",ie[ie.NoTruncation=1]="NoTruncation",ie[ie.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",ie[ie.UseStructuralFallback=8]="UseStructuralFallback",ie[ie.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",ie[ie.UseFullyQualifiedType=64]="UseFullyQualifiedType",ie[ie.SuppressAnyReturnType=256]="SuppressAnyReturnType",ie[ie.MultilineObjectLiterals=1024]="MultilineObjectLiterals",ie[ie.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",ie[ie.UseTypeOfFunction=4096]="UseTypeOfFunction",ie[ie.OmitParameterModifiers=8192]="OmitParameterModifiers",ie[ie.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",ie[ie.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",ie[ie.NoTypeReduction=536870912]="NoTypeReduction",ie[ie.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",ie[ie.AddUndefined=131072]="AddUndefined",ie[ie.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",ie[ie.InArrayType=524288]="InArrayType",ie[ie.InElementType=2097152]="InElementType",ie[ie.InFirstTypeArgument=4194304]="InFirstTypeArgument",ie[ie.InTypeAlias=8388608]="InTypeAlias",ie[ie.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",ie[ie.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(ne=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[ne.None=0]="None",ne[ne.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",ne[ne.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",ne[ne.AllowAnyNodeKind=4]="AllowAnyNodeKind",ne[ne.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",ne[ne.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(re=e.SymbolAccessibility||(e.SymbolAccessibility={}))[re.Accessible=0]="Accessible",re[re.NotAccessible=1]="NotAccessible",re[re.CannotBeNamed=2]="CannotBeNamed",(te=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[te.UnionOrIntersection=0]="UnionOrIntersection",te[te.Spread=1]="Spread",(ee=e.TypePredicateKind||(e.TypePredicateKind={}))[ee.This=0]="This",ee[ee.Identifier=1]="Identifier",ee[ee.AssertsThis=2]="AssertsThis",ee[ee.AssertsIdentifier=3]="AssertsIdentifier",($=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[$.Unknown=0]="Unknown",$[$.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",$[$.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",$[$.NumberLikeType=3]="NumberLikeType",$[$.BigIntLikeType=4]="BigIntLikeType",$[$.StringLikeType=5]="StringLikeType",$[$.BooleanType=6]="BooleanType",$[$.ArrayLikeType=7]="ArrayLikeType",$[$.ESSymbolType=8]="ESSymbolType",$[$.Promise=9]="Promise",$[$.TypeWithCallSignature=10]="TypeWithCallSignature",$[$.ObjectType=11]="ObjectType",(Z=e.SymbolFlags||(e.SymbolFlags={}))[Z.None=0]="None",Z[Z.FunctionScopedVariable=1]="FunctionScopedVariable",Z[Z.BlockScopedVariable=2]="BlockScopedVariable",Z[Z.Property=4]="Property",Z[Z.EnumMember=8]="EnumMember",Z[Z.Function=16]="Function",Z[Z.Class=32]="Class",Z[Z.Interface=64]="Interface",Z[Z.ConstEnum=128]="ConstEnum",Z[Z.RegularEnum=256]="RegularEnum",Z[Z.ValueModule=512]="ValueModule",Z[Z.NamespaceModule=1024]="NamespaceModule",Z[Z.TypeLiteral=2048]="TypeLiteral",Z[Z.ObjectLiteral=4096]="ObjectLiteral",Z[Z.Method=8192]="Method",Z[Z.Constructor=16384]="Constructor",Z[Z.GetAccessor=32768]="GetAccessor",Z[Z.SetAccessor=65536]="SetAccessor",Z[Z.Signature=131072]="Signature",Z[Z.TypeParameter=262144]="TypeParameter",Z[Z.TypeAlias=524288]="TypeAlias",Z[Z.ExportValue=1048576]="ExportValue",Z[Z.Alias=2097152]="Alias",Z[Z.Prototype=4194304]="Prototype",Z[Z.ExportStar=8388608]="ExportStar",Z[Z.Optional=16777216]="Optional",Z[Z.Transient=33554432]="Transient",Z[Z.Assignment=67108864]="Assignment",Z[Z.ModuleExports=134217728]="ModuleExports",Z[Z.All=67108863]="All",Z[Z.Enum=384]="Enum",Z[Z.Variable=3]="Variable",Z[Z.Value=111551]="Value",Z[Z.Type=788968]="Type",Z[Z.Namespace=1920]="Namespace",Z[Z.Module=1536]="Module",Z[Z.Accessor=98304]="Accessor",Z[Z.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",Z[Z.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",Z[Z.ParameterExcludes=111551]="ParameterExcludes",Z[Z.PropertyExcludes=0]="PropertyExcludes",Z[Z.EnumMemberExcludes=900095]="EnumMemberExcludes",Z[Z.FunctionExcludes=110991]="FunctionExcludes",Z[Z.ClassExcludes=899503]="ClassExcludes",Z[Z.InterfaceExcludes=788872]="InterfaceExcludes",Z[Z.RegularEnumExcludes=899327]="RegularEnumExcludes",Z[Z.ConstEnumExcludes=899967]="ConstEnumExcludes",Z[Z.ValueModuleExcludes=110735]="ValueModuleExcludes",Z[Z.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",Z[Z.MethodExcludes=103359]="MethodExcludes",Z[Z.GetAccessorExcludes=46015]="GetAccessorExcludes",Z[Z.SetAccessorExcludes=78783]="SetAccessorExcludes",Z[Z.TypeParameterExcludes=526824]="TypeParameterExcludes",Z[Z.TypeAliasExcludes=788968]="TypeAliasExcludes",Z[Z.AliasExcludes=2097152]="AliasExcludes",Z[Z.ModuleMember=2623475]="ModuleMember",Z[Z.ExportHasLocal=944]="ExportHasLocal",Z[Z.BlockScoped=418]="BlockScoped",Z[Z.PropertyOrAccessor=98308]="PropertyOrAccessor",Z[Z.ClassMember=106500]="ClassMember",Z[Z.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",Z[Z.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",Z[Z.Classifiable=2885600]="Classifiable",Z[Z.LateBindingContainer=6256]="LateBindingContainer",(Q=e.EnumKind||(e.EnumKind={}))[Q.Numeric=0]="Numeric",Q[Q.Literal=1]="Literal",(X=e.CheckFlags||(e.CheckFlags={}))[X.Instantiated=1]="Instantiated",X[X.SyntheticProperty=2]="SyntheticProperty",X[X.SyntheticMethod=4]="SyntheticMethod",X[X.Readonly=8]="Readonly",X[X.ReadPartial=16]="ReadPartial",X[X.WritePartial=32]="WritePartial",X[X.HasNonUniformType=64]="HasNonUniformType",X[X.HasLiteralType=128]="HasLiteralType",X[X.ContainsPublic=256]="ContainsPublic",X[X.ContainsProtected=512]="ContainsProtected",X[X.ContainsPrivate=1024]="ContainsPrivate",X[X.ContainsStatic=2048]="ContainsStatic",X[X.Late=4096]="Late",X[X.ReverseMapped=8192]="ReverseMapped",X[X.OptionalParameter=16384]="OptionalParameter",X[X.RestParameter=32768]="RestParameter",X[X.DeferredType=65536]="DeferredType",X[X.HasNeverType=131072]="HasNeverType",X[X.Mapped=262144]="Mapped",X[X.StripOptional=524288]="StripOptional",X[X.Synthetic=6]="Synthetic",X[X.Discriminant=192]="Discriminant",X[X.Partial=48]="Partial",(Y=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",Y.Constructor="__constructor",Y.New="__new",Y.Index="__index",Y.ExportStar="__export",Y.Global="__global",Y.Missing="__missing",Y.Type="__type",Y.Object="__object",Y.JSXAttributes="__jsxAttributes",Y.Class="__class",Y.Function="__function",Y.Computed="__computed",Y.Resolving="__resolving__",Y.ExportEquals="export=",Y.Default="default",Y.This="this",(H=e.NodeCheckFlags||(e.NodeCheckFlags={}))[H.TypeChecked=1]="TypeChecked",H[H.LexicalThis=2]="LexicalThis",H[H.CaptureThis=4]="CaptureThis",H[H.CaptureNewTarget=8]="CaptureNewTarget",H[H.SuperInstance=256]="SuperInstance",H[H.SuperStatic=512]="SuperStatic",H[H.ContextChecked=1024]="ContextChecked",H[H.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",H[H.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",H[H.CaptureArguments=8192]="CaptureArguments",H[H.EnumValuesComputed=16384]="EnumValuesComputed",H[H.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",H[H.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",H[H.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",H[H.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",H[H.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",H[H.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",H[H.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",H[H.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",H[H.AssignmentsMarked=8388608]="AssignmentsMarked",H[H.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",H[H.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",H[H.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",H[H.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",(q=e.TypeFlags||(e.TypeFlags={}))[q.Any=1]="Any",q[q.Unknown=2]="Unknown",q[q.String=4]="String",q[q.Number=8]="Number",q[q.Boolean=16]="Boolean",q[q.Enum=32]="Enum",q[q.BigInt=64]="BigInt",q[q.StringLiteral=128]="StringLiteral",q[q.NumberLiteral=256]="NumberLiteral",q[q.BooleanLiteral=512]="BooleanLiteral",q[q.EnumLiteral=1024]="EnumLiteral",q[q.BigIntLiteral=2048]="BigIntLiteral",q[q.ESSymbol=4096]="ESSymbol",q[q.UniqueESSymbol=8192]="UniqueESSymbol",q[q.Void=16384]="Void",q[q.Undefined=32768]="Undefined",q[q.Null=65536]="Null",q[q.Never=131072]="Never",q[q.TypeParameter=262144]="TypeParameter",q[q.Object=524288]="Object",q[q.Union=1048576]="Union",q[q.Intersection=2097152]="Intersection",q[q.Index=4194304]="Index",q[q.IndexedAccess=8388608]="IndexedAccess",q[q.Conditional=16777216]="Conditional",q[q.Substitution=33554432]="Substitution",q[q.NonPrimitive=67108864]="NonPrimitive",q[q.TemplateLiteral=134217728]="TemplateLiteral",q[q.StringMapping=268435456]="StringMapping",q[q.AnyOrUnknown=3]="AnyOrUnknown",q[q.Nullable=98304]="Nullable",q[q.Literal=2944]="Literal",q[q.Unit=109440]="Unit",q[q.StringOrNumberLiteral=384]="StringOrNumberLiteral",q[q.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",q[q.DefinitelyFalsy=117632]="DefinitelyFalsy",q[q.PossiblyFalsy=117724]="PossiblyFalsy",q[q.Intrinsic=67359327]="Intrinsic",q[q.Primitive=131068]="Primitive",q[q.StringLike=402653316]="StringLike",q[q.NumberLike=296]="NumberLike",q[q.BigIntLike=2112]="BigIntLike",q[q.BooleanLike=528]="BooleanLike",q[q.EnumLike=1056]="EnumLike",q[q.ESSymbolLike=12288]="ESSymbolLike",q[q.VoidLike=49152]="VoidLike",q[q.DisjointDomains=469892092]="DisjointDomains",q[q.UnionOrIntersection=3145728]="UnionOrIntersection",q[q.StructuredType=3670016]="StructuredType",q[q.TypeVariable=8650752]="TypeVariable",q[q.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",q[q.InstantiablePrimitive=406847488]="InstantiablePrimitive",q[q.Instantiable=465829888]="Instantiable",q[q.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",q[q.ObjectFlagsType=3899393]="ObjectFlagsType",q[q.Simplifiable=25165824]="Simplifiable",q[q.Singleton=67358815]="Singleton",q[q.Narrowable=536624127]="Narrowable",q[q.NotPrimitiveUnion=468598819]="NotPrimitiveUnion",q[q.IncludesMask=205258751]="IncludesMask",q[q.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",q[q.IncludesNonWideningType=4194304]="IncludesNonWideningType",q[q.IncludesWildcard=8388608]="IncludesWildcard",q[q.IncludesEmptyObject=16777216]="IncludesEmptyObject",(W=e.ObjectFlags||(e.ObjectFlags={}))[W.Class=1]="Class",W[W.Interface=2]="Interface",W[W.Reference=4]="Reference",W[W.Tuple=8]="Tuple",W[W.Anonymous=16]="Anonymous",W[W.Mapped=32]="Mapped",W[W.Instantiated=64]="Instantiated",W[W.ObjectLiteral=128]="ObjectLiteral",W[W.EvolvingArray=256]="EvolvingArray",W[W.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",W[W.ReverseMapped=1024]="ReverseMapped",W[W.JsxAttributes=2048]="JsxAttributes",W[W.MarkerType=4096]="MarkerType",W[W.JSLiteral=8192]="JSLiteral",W[W.FreshLiteral=16384]="FreshLiteral",W[W.ArrayLiteral=32768]="ArrayLiteral",W[W.PrimitiveUnion=65536]="PrimitiveUnion",W[W.ContainsWideningType=131072]="ContainsWideningType",W[W.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",W[W.NonInferrableType=524288]="NonInferrableType",W[W.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",W[W.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",W[W.ClassOrInterface=3]="ClassOrInterface",W[W.RequiresWidening=393216]="RequiresWidening",W[W.PropagatingFlags=917504]="PropagatingFlags",W[W.ObjectTypeKindMask=1343]="ObjectTypeKindMask",W[W.ContainsSpread=4194304]="ContainsSpread",W[W.ObjectRestType=8388608]="ObjectRestType",W[W.IsClassInstanceClone=16777216]="IsClassInstanceClone",W[W.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",W[W.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",W[W.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",W[W.IsGenericObjectType=8388608]="IsGenericObjectType",W[W.IsGenericIndexType=16777216]="IsGenericIndexType",W[W.IsGenericType=25165824]="IsGenericType",W[W.ContainsIntersections=33554432]="ContainsIntersections",W[W.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",W[W.IsNeverIntersection=67108864]="IsNeverIntersection",(G=e.VarianceFlags||(e.VarianceFlags={}))[G.Invariant=0]="Invariant",G[G.Covariant=1]="Covariant",G[G.Contravariant=2]="Contravariant",G[G.Bivariant=3]="Bivariant",G[G.Independent=4]="Independent",G[G.VarianceMask=7]="VarianceMask",G[G.Unmeasurable=8]="Unmeasurable",G[G.Unreliable=16]="Unreliable",G[G.AllowsStructuralFallback=24]="AllowsStructuralFallback",(z=e.ElementFlags||(e.ElementFlags={}))[z.Required=1]="Required",z[z.Optional=2]="Optional",z[z.Rest=4]="Rest",z[z.Variadic=8]="Variadic",z[z.Fixed=3]="Fixed",z[z.Variable=12]="Variable",z[z.NonRequired=14]="NonRequired",z[z.NonRest=11]="NonRest",(K=e.AccessFlags||(e.AccessFlags={}))[K.None=0]="None",K[K.IncludeUndefined=1]="IncludeUndefined",K[K.NoIndexSignatures=2]="NoIndexSignatures",K[K.Writing=4]="Writing",K[K.CacheSymbol=8]="CacheSymbol",K[K.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",K[K.ExpressionPosition=32]="ExpressionPosition",K[K.ReportDeprecated=64]="ReportDeprecated",K[K.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",K[K.Contextual=256]="Contextual",K[K.Persistent=1]="Persistent",(U=e.JsxReferenceKind||(e.JsxReferenceKind={}))[U.Component=0]="Component",U[U.Function=1]="Function",U[U.Mixed=2]="Mixed",(V=e.SignatureKind||(e.SignatureKind={}))[V.Call=0]="Call",V[V.Construct=1]="Construct",(J=e.SignatureFlags||(e.SignatureFlags={}))[J.None=0]="None",J[J.HasRestParameter=1]="HasRestParameter",J[J.HasLiteralTypes=2]="HasLiteralTypes",J[J.Abstract=4]="Abstract",J[J.IsInnerCallChain=8]="IsInnerCallChain",J[J.IsOuterCallChain=16]="IsOuterCallChain",J[J.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",J[J.PropagatingFlags=39]="PropagatingFlags",J[J.CallChainFlags=24]="CallChainFlags",(j=e.IndexKind||(e.IndexKind={}))[j.String=0]="String",j[j.Number=1]="Number",(B=e.TypeMapKind||(e.TypeMapKind={}))[B.Simple=0]="Simple",B[B.Array=1]="Array",B[B.Function=2]="Function",B[B.Composite=3]="Composite",B[B.Merged=4]="Merged",(R=e.InferencePriority||(e.InferencePriority={}))[R.NakedTypeVariable=1]="NakedTypeVariable",R[R.SpeculativeTuple=2]="SpeculativeTuple",R[R.SubstituteSource=4]="SubstituteSource",R[R.HomomorphicMappedType=8]="HomomorphicMappedType",R[R.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",R[R.MappedTypeConstraint=32]="MappedTypeConstraint",R[R.ContravariantConditional=64]="ContravariantConditional",R[R.ReturnType=128]="ReturnType",R[R.LiteralKeyof=256]="LiteralKeyof",R[R.NoConstraints=512]="NoConstraints",R[R.AlwaysStrict=1024]="AlwaysStrict",R[R.MaxValue=2048]="MaxValue",R[R.PriorityImpliesCombination=416]="PriorityImpliesCombination",R[R.Circularity=-1]="Circularity",(M=e.InferenceFlags||(e.InferenceFlags={}))[M.None=0]="None",M[M.NoDefault=1]="NoDefault",M[M.AnyDefault=2]="AnyDefault",M[M.SkippedGenericFunction=4]="SkippedGenericFunction",(L=e.Ternary||(e.Ternary={}))[L.False=0]="False",L[L.Unknown=1]="Unknown",L[L.Maybe=3]="Maybe",L[L.True=-1]="True",(O=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[O.None=0]="None",O[O.ExportsProperty=1]="ExportsProperty",O[O.ModuleExports=2]="ModuleExports",O[O.PrototypeProperty=3]="PrototypeProperty",O[O.ThisProperty=4]="ThisProperty",O[O.Property=5]="Property",O[O.Prototype=6]="Prototype",O[O.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",O[O.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",O[O.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"}(u=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var r=u[e.category];return t?r.toLowerCase():r},(I=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[I.Classic=1]="Classic",I[I.NodeJs=2]="NodeJs",(P=e.WatchFileKind||(e.WatchFileKind={}))[P.FixedPollingInterval=0]="FixedPollingInterval",P[P.PriorityPollingInterval=1]="PriorityPollingInterval",P[P.DynamicPriorityPolling=2]="DynamicPriorityPolling",P[P.FixedChunkSizePolling=3]="FixedChunkSizePolling",P[P.UseFsEvents=4]="UseFsEvents",P[P.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(F=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[F.UseFsEvents=0]="UseFsEvents",F[F.FixedPollingInterval=1]="FixedPollingInterval",F[F.DynamicPriorityPolling=2]="DynamicPriorityPolling",F[F.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",(N=e.ModuleKind||(e.ModuleKind={}))[N.None=0]="None",N[N.CommonJS=1]="CommonJS",N[N.AMD=2]="AMD",N[N.UMD=3]="UMD",N[N.System=4]="System",N[N.ES2015=5]="ES2015",N[N.ES2020=6]="ES2020",N[N.ESNext=99]="ESNext",(A=e.JsxEmit||(e.JsxEmit={}))[A.None=0]="None",A[A.Preserve=1]="Preserve",A[A.React=2]="React",A[A.ReactNative=3]="ReactNative",A[A.ReactJSX=4]="ReactJSX",A[A.ReactJSXDev=5]="ReactJSXDev",(k=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[k.Remove=0]="Remove",k[k.Preserve=1]="Preserve",k[k.Error=2]="Error",(T=e.NewLineKind||(e.NewLineKind={}))[T.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",T[T.LineFeed=1]="LineFeed",(C=e.ScriptKind||(e.ScriptKind={}))[C.Unknown=0]="Unknown",C[C.JS=1]="JS",C[C.JSX=2]="JSX",C[C.TS=3]="TS",C[C.TSX=4]="TSX",C[C.External=5]="External",C[C.JSON=6]="JSON",C[C.Deferred=7]="Deferred",(E=e.ScriptTarget||(e.ScriptTarget={}))[E.ES3=0]="ES3",E[E.ES5=1]="ES5",E[E.ES2015=2]="ES2015",E[E.ES2016=3]="ES2016",E[E.ES2017=4]="ES2017",E[E.ES2018=5]="ES2018",E[E.ES2019=6]="ES2019",E[E.ES2020=7]="ES2020",E[E.ES2021=8]="ES2021",E[E.ESNext=99]="ESNext",E[E.JSON=100]="JSON",E[E.Latest=99]="Latest",(S=e.LanguageVariant||(e.LanguageVariant={}))[S.Standard=0]="Standard",S[S.JSX=1]="JSX",(D=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[D.None=0]="None",D[D.Recursive=1]="Recursive",(x=e.CharacterCodes||(e.CharacterCodes={}))[x.nullCharacter=0]="nullCharacter",x[x.maxAsciiCharacter=127]="maxAsciiCharacter",x[x.lineFeed=10]="lineFeed",x[x.carriageReturn=13]="carriageReturn",x[x.lineSeparator=8232]="lineSeparator",x[x.paragraphSeparator=8233]="paragraphSeparator",x[x.nextLine=133]="nextLine",x[x.space=32]="space",x[x.nonBreakingSpace=160]="nonBreakingSpace",x[x.enQuad=8192]="enQuad",x[x.emQuad=8193]="emQuad",x[x.enSpace=8194]="enSpace",x[x.emSpace=8195]="emSpace",x[x.threePerEmSpace=8196]="threePerEmSpace",x[x.fourPerEmSpace=8197]="fourPerEmSpace",x[x.sixPerEmSpace=8198]="sixPerEmSpace",x[x.figureSpace=8199]="figureSpace",x[x.punctuationSpace=8200]="punctuationSpace",x[x.thinSpace=8201]="thinSpace",x[x.hairSpace=8202]="hairSpace",x[x.zeroWidthSpace=8203]="zeroWidthSpace",x[x.narrowNoBreakSpace=8239]="narrowNoBreakSpace",x[x.ideographicSpace=12288]="ideographicSpace",x[x.mathematicalSpace=8287]="mathematicalSpace",x[x.ogham=5760]="ogham",x[x._=95]="_",x[x.$=36]="$",x[x._0=48]="_0",x[x._1=49]="_1",x[x._2=50]="_2",x[x._3=51]="_3",x[x._4=52]="_4",x[x._5=53]="_5",x[x._6=54]="_6",x[x._7=55]="_7",x[x._8=56]="_8",x[x._9=57]="_9",x[x.a=97]="a",x[x.b=98]="b",x[x.c=99]="c",x[x.d=100]="d",x[x.e=101]="e",x[x.f=102]="f",x[x.g=103]="g",x[x.h=104]="h",x[x.i=105]="i",x[x.j=106]="j",x[x.k=107]="k",x[x.l=108]="l",x[x.m=109]="m",x[x.n=110]="n",x[x.o=111]="o",x[x.p=112]="p",x[x.q=113]="q",x[x.r=114]="r",x[x.s=115]="s",x[x.t=116]="t",x[x.u=117]="u",x[x.v=118]="v",x[x.w=119]="w",x[x.x=120]="x",x[x.y=121]="y",x[x.z=122]="z",x[x.A=65]="A",x[x.B=66]="B",x[x.C=67]="C",x[x.D=68]="D",x[x.E=69]="E",x[x.F=70]="F",x[x.G=71]="G",x[x.H=72]="H",x[x.I=73]="I",x[x.J=74]="J",x[x.K=75]="K",x[x.L=76]="L",x[x.M=77]="M",x[x.N=78]="N",x[x.O=79]="O",x[x.P=80]="P",x[x.Q=81]="Q",x[x.R=82]="R",x[x.S=83]="S",x[x.T=84]="T",x[x.U=85]="U",x[x.V=86]="V",x[x.W=87]="W",x[x.X=88]="X",x[x.Y=89]="Y",x[x.Z=90]="Z",x[x.ampersand=38]="ampersand",x[x.asterisk=42]="asterisk",x[x.at=64]="at",x[x.backslash=92]="backslash",x[x.backtick=96]="backtick",x[x.bar=124]="bar",x[x.caret=94]="caret",x[x.closeBrace=125]="closeBrace",x[x.closeBracket=93]="closeBracket",x[x.closeParen=41]="closeParen",x[x.colon=58]="colon",x[x.comma=44]="comma",x[x.dot=46]="dot",x[x.doubleQuote=34]="doubleQuote",x[x.equals=61]="equals",x[x.exclamation=33]="exclamation",x[x.greaterThan=62]="greaterThan",x[x.hash=35]="hash",x[x.lessThan=60]="lessThan",x[x.minus=45]="minus",x[x.openBrace=123]="openBrace",x[x.openBracket=91]="openBracket",x[x.openParen=40]="openParen",x[x.percent=37]="percent",x[x.plus=43]="plus",x[x.question=63]="question",x[x.semicolon=59]="semicolon",x[x.singleQuote=39]="singleQuote",x[x.slash=47]="slash",x[x.tilde=126]="tilde",x[x.backspace=8]="backspace",x[x.formFeed=12]="formFeed",x[x.byteOrderMark=65279]="byteOrderMark",x[x.tab=9]="tab",x[x.verticalTab=11]="verticalTab",(b=e.Extension||(e.Extension={})).Ts=".ts",b.Tsx=".tsx",b.Dts=".d.ts",b.Js=".js",b.Jsx=".jsx",b.Json=".json",b.TsBuildInfo=".tsbuildinfo",(v=e.TransformFlags||(e.TransformFlags={}))[v.None=0]="None",v[v.ContainsTypeScript=1]="ContainsTypeScript",v[v.ContainsJsx=2]="ContainsJsx",v[v.ContainsESNext=4]="ContainsESNext",v[v.ContainsES2021=8]="ContainsES2021",v[v.ContainsES2020=16]="ContainsES2020",v[v.ContainsES2019=32]="ContainsES2019",v[v.ContainsES2018=64]="ContainsES2018",v[v.ContainsES2017=128]="ContainsES2017",v[v.ContainsES2016=256]="ContainsES2016",v[v.ContainsES2015=512]="ContainsES2015",v[v.ContainsGenerator=1024]="ContainsGenerator",v[v.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",v[v.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",v[v.ContainsLexicalThis=8192]="ContainsLexicalThis",v[v.ContainsRestOrSpread=16384]="ContainsRestOrSpread",v[v.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",v[v.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",v[v.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",v[v.ContainsBindingPattern=262144]="ContainsBindingPattern",v[v.ContainsYield=524288]="ContainsYield",v[v.ContainsAwait=1048576]="ContainsAwait",v[v.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",v[v.ContainsDynamicImport=4194304]="ContainsDynamicImport",v[v.ContainsClassFields=8388608]="ContainsClassFields",v[v.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",v[v.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",v[v.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",v[v.HasComputedFlags=536870912]="HasComputedFlags",v[v.AssertTypeScript=1]="AssertTypeScript",v[v.AssertJsx=2]="AssertJsx",v[v.AssertESNext=4]="AssertESNext",v[v.AssertES2021=8]="AssertES2021",v[v.AssertES2020=16]="AssertES2020",v[v.AssertES2019=32]="AssertES2019",v[v.AssertES2018=64]="AssertES2018",v[v.AssertES2017=128]="AssertES2017",v[v.AssertES2016=256]="AssertES2016",v[v.AssertES2015=512]="AssertES2015",v[v.AssertGenerator=1024]="AssertGenerator",v[v.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",v[v.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",v[v.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",v[v.NodeExcludes=536870912]="NodeExcludes",v[v.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",v[v.FunctionExcludes=591310848]="FunctionExcludes",v[v.ConstructorExcludes=591306752]="ConstructorExcludes",v[v.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",v[v.PropertyExcludes=570433536]="PropertyExcludes",v[v.ClassExcludes=536940544]="ClassExcludes",v[v.ModuleExcludes=589443072]="ModuleExcludes",v[v.TypeExcludes=-2]="TypeExcludes",v[v.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",v[v.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",v[v.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",v[v.ParameterExcludes=536870912]="ParameterExcludes",v[v.CatchClauseExcludes=536903680]="CatchClauseExcludes",v[v.BindingPatternExcludes=536887296]="BindingPatternExcludes",v[v.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",v[v.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags",(h=e.EmitFlags||(e.EmitFlags={}))[h.None=0]="None",h[h.SingleLine=1]="SingleLine",h[h.AdviseOnEmitNode=2]="AdviseOnEmitNode",h[h.NoSubstitution=4]="NoSubstitution",h[h.CapturesThis=8]="CapturesThis",h[h.NoLeadingSourceMap=16]="NoLeadingSourceMap",h[h.NoTrailingSourceMap=32]="NoTrailingSourceMap",h[h.NoSourceMap=48]="NoSourceMap",h[h.NoNestedSourceMaps=64]="NoNestedSourceMaps",h[h.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",h[h.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",h[h.NoTokenSourceMaps=384]="NoTokenSourceMaps",h[h.NoLeadingComments=512]="NoLeadingComments",h[h.NoTrailingComments=1024]="NoTrailingComments",h[h.NoComments=1536]="NoComments",h[h.NoNestedComments=2048]="NoNestedComments",h[h.HelperName=4096]="HelperName",h[h.ExportName=8192]="ExportName",h[h.LocalName=16384]="LocalName",h[h.InternalName=32768]="InternalName",h[h.Indented=65536]="Indented",h[h.NoIndentation=131072]="NoIndentation",h[h.AsyncFunctionBody=262144]="AsyncFunctionBody",h[h.ReuseTempVariableScope=524288]="ReuseTempVariableScope",h[h.CustomPrologue=1048576]="CustomPrologue",h[h.NoHoisting=2097152]="NoHoisting",h[h.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",h[h.Iterator=8388608]="Iterator",h[h.NoAsciiEscaping=16777216]="NoAsciiEscaping",h[h.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",h[h.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",h[h.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",h[h.Immutable=268435456]="Immutable",h[h.IndirectCall=536870912]="IndirectCall",(y=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[y.Extends=1]="Extends",y[y.Assign=2]="Assign",y[y.Rest=4]="Rest",y[y.Decorate=8]="Decorate",y[y.Metadata=16]="Metadata",y[y.Param=32]="Param",y[y.Awaiter=64]="Awaiter",y[y.Generator=128]="Generator",y[y.Values=256]="Values",y[y.Read=512]="Read",y[y.SpreadArray=1024]="SpreadArray",y[y.Await=2048]="Await",y[y.AsyncGenerator=4096]="AsyncGenerator",y[y.AsyncDelegator=8192]="AsyncDelegator",y[y.AsyncValues=16384]="AsyncValues",y[y.ExportStar=32768]="ExportStar",y[y.ImportStar=65536]="ImportStar",y[y.ImportDefault=131072]="ImportDefault",y[y.MakeTemplateObject=262144]="MakeTemplateObject",y[y.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",y[y.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",y[y.CreateBinding=2097152]="CreateBinding",y[y.FirstEmitHelper=1]="FirstEmitHelper",y[y.LastEmitHelper=2097152]="LastEmitHelper",y[y.ForOfIncludes=256]="ForOfIncludes",y[y.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",y[y.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",y[y.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",y[y.SpreadIncludes=1536]="SpreadIncludes",(m=e.EmitHint||(e.EmitHint={}))[m.SourceFile=0]="SourceFile",m[m.Expression=1]="Expression",m[m.IdentifierName=2]="IdentifierName",m[m.MappedTypeParameter=3]="MappedTypeParameter",m[m.Unspecified=4]="Unspecified",m[m.EmbeddedStatement=5]="EmbeddedStatement",m[m.JsxAttributeValue=6]="JsxAttributeValue",(g=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[g.Parentheses=1]="Parentheses",g[g.TypeAssertions=2]="TypeAssertions",g[g.NonNullAssertions=4]="NonNullAssertions",g[g.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",g[g.Assertions=6]="Assertions",g[g.All=15]="All",(f=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[f.None=0]="None",f[f.InParameters=1]="InParameters",f[f.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(p=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",p.EmitHelpers="emitHelpers",p.NoDefaultLib="no-default-lib",p.Reference="reference",p.Type="type",p.Lib="lib",p.Prepend="prepend",p.Text="text",p.Internal="internal",(d=e.ListFormat||(e.ListFormat={}))[d.None=0]="None",d[d.SingleLine=0]="SingleLine",d[d.MultiLine=1]="MultiLine",d[d.PreserveLines=2]="PreserveLines",d[d.LinesMask=3]="LinesMask",d[d.NotDelimited=0]="NotDelimited",d[d.BarDelimited=4]="BarDelimited",d[d.AmpersandDelimited=8]="AmpersandDelimited",d[d.CommaDelimited=16]="CommaDelimited",d[d.AsteriskDelimited=32]="AsteriskDelimited",d[d.DelimitersMask=60]="DelimitersMask",d[d.AllowTrailingComma=64]="AllowTrailingComma",d[d.Indented=128]="Indented",d[d.SpaceBetweenBraces=256]="SpaceBetweenBraces",d[d.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",d[d.Braces=1024]="Braces",d[d.Parenthesis=2048]="Parenthesis",d[d.AngleBrackets=4096]="AngleBrackets",d[d.SquareBrackets=8192]="SquareBrackets",d[d.BracketsMask=15360]="BracketsMask",d[d.OptionalIfUndefined=16384]="OptionalIfUndefined",d[d.OptionalIfEmpty=32768]="OptionalIfEmpty",d[d.Optional=49152]="Optional",d[d.PreferNewLine=65536]="PreferNewLine",d[d.NoTrailingNewLine=131072]="NoTrailingNewLine",d[d.NoInterveningComments=262144]="NoInterveningComments",d[d.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",d[d.SingleElement=1048576]="SingleElement",d[d.SpaceAfterList=2097152]="SpaceAfterList",d[d.Modifiers=262656]="Modifiers",d[d.HeritageClauses=512]="HeritageClauses",d[d.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",d[d.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",d[d.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",d[d.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",d[d.UnionTypeConstituents=516]="UnionTypeConstituents",d[d.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",d[d.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",d[d.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",d[d.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",d[d.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",d[d.CommaListElements=528]="CommaListElements",d[d.CallExpressionArguments=2576]="CallExpressionArguments",d[d.NewExpressionArguments=18960]="NewExpressionArguments",d[d.TemplateExpressionSpans=262144]="TemplateExpressionSpans",d[d.SingleLineBlockStatements=768]="SingleLineBlockStatements",d[d.MultiLineBlockStatements=129]="MultiLineBlockStatements",d[d.VariableDeclarationList=528]="VariableDeclarationList",d[d.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",d[d.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",d[d.ClassHeritageClauses=0]="ClassHeritageClauses",d[d.ClassMembers=129]="ClassMembers",d[d.InterfaceMembers=129]="InterfaceMembers",d[d.EnumMembers=145]="EnumMembers",d[d.CaseBlockClauses=129]="CaseBlockClauses",d[d.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",d[d.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",d[d.JsxElementAttributes=262656]="JsxElementAttributes",d[d.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",d[d.HeritageClauseTypes=528]="HeritageClauseTypes",d[d.SourceFileStatements=131073]="SourceFileStatements",d[d.Decorators=2146305]="Decorators",d[d.TypeArguments=53776]="TypeArguments",d[d.TypeParameters=53776]="TypeParameters",d[d.Parameters=2576]="Parameters",d[d.IndexSignatureParameters=8848]="IndexSignatureParameters",d[d.JSDocComment=33]="JSDocComment",(_=e.PragmaKindFlags||(e.PragmaKindFlags={}))[_.None=0]="None",_[_.TripleSlashXML=1]="TripleSlashXML",_[_.SingleLine=2]="SingleLine",_[_.MultiLine=4]="MultiLine",_[_.All=7]="All",_[_.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}}}(u||(u={})),function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var t=/\\/g;function r(e){return 47===e||92===e}function n(e){return u(e)>0}function a(e){return 0!==u(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&&r(e.charCodeAt(e.length-1))}function l(e){return e>=97&&e<=122||e>=65&&e<=90}function u(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(l(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),u=t.slice(o,s);if("file"===c&&(""===u||"localhost"===u)&&l(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=u(e);return t<0?~t:t}function d(t){var r=_(t=h(t));return r===t.length?t:(t=C(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function p(t,r,n){if(_(t=h(t))===t.length)return"";var i=(t=C(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(t,r){return void 0===r&&(r=""),function(t,r){var n=t.substring(0,r),a=t.substring(r).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),i([n],a,!0)}(t=b(r,t),_(t))}function y(t){return 0===t.length?"":(t[0]&&T(t[0]))+t.slice(1).join(e.directorySeparator)}function h(r){var n=r.indexOf("\\");return-1===n?r:(t.lastIndex=n,r.replace(t,e.directorySeparator))}function v(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 b(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(w(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function P(t,r,i,a,o){var s=w(x(i,t),x(i,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&n(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return y(s)}e.comparePathsCaseSensitive=function(t,r){return N(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return N(t,r,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,r,n,i){return"string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),N(t,r,e.getStringComparer(i))},e.containsPath=function(t,r,n,i){if("string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=v(m(t)),o=v(m(r));if(o.length=4,h="linux"===process.platform||"darwin"===process.platform,v=_.platform(),x="win32"!==v&&"win64"!==v&&!M((d=__filename,d.replace(/\w/g,(function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})))),D=x&&null!==(i=l.realpathSync.native)&&void 0!==i?i:l.realpathSync,E=y&&("win32"===process.platform||"darwin"===process.platform),T=e.memoize((function(){return process.cwd()})),k=S({pollingWatchFile:m((function(e,t,r){var i;return l.watchFile(e,{persistent:!0,interval:r},a),{close:function(){return l.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)}}),x),getModifiedTime:j,setTimeout,clearTimeout,fsWatch:function(t,r,i,a,o,s){var c,u,_;h&&(u=t.substr(t.lastIndexOf(e.directorySeparator)),_=u.slice(e.directorySeparator.length));var d=L(t,r)?g():v();return{close:function(){d.close(),d=void 0}};function p(r){e.sysLog("sysLog:: "+t+":: Changing watcher to "+(r===g?"Present":"Missing")+"FileSystemEntryWatcher"),i("rename",""),d&&(d.close(),d=r())}function g(){if(void 0===c&&(c=E?{persistent:!0,recursive:!!a}:{persistent:!0}),f)return e.sysLog("sysLog:: "+t+":: Defaulting to fsWatchFile"),y();try{var r=l.watch(t,c,h?m:i);return r.on("error",(function(){return p(v)})),r}catch(r){return f||(f="ENOSPC"===r.code),e.sysLog("sysLog:: "+t+":: Changing to fsWatchFile"),y()}}function m(e,n){return"rename"!==e||n&&n!==_&&(-1===n.lastIndexOf(u)||n.lastIndexOf(u)!==n.length-u.length)||L(t,r)?i(e,n):p(v)}function y(){return A(t,b(i),o,s)}function v(){return A(t,(function(e,i){i===n.Created&&L(t,r)&&p(g)}),o,s)}},useCaseSensitiveFileNames:x,getCurrentDirectory:T,fileExists:M,fsSupportsRecursiveFsWatch:E,directoryExists:R,getAccessibleSortedChildDirectories:function(e){return O(e).directories},realpath:B,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,defaultWatchFileKind:function(){var e,t;return null===(t=(e=c).defaultWatchFileKind)||void 0===t?void 0:t.call(e)}}),A=k.watchFile,N=k.watchDirectory,w={args:process.argv.slice(2),newLine:_.EOL,useCaseSensitiveFileNames:x,write:function(e){process.stdout.write(e)},getWidthOfTerminal:function(){return process.stdout.columns},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:function(t,r){e.perfLogger.logStartReadFile(t);var n=function(e,t){var r;try{r=l.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=l.openSync(t,"w"),l.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&l.closeSync(i)}},watchFile:A,watchDirectory:N,resolvePath:function(e){return u.resolve(e)},fileExists:M,directoryExists:R,createDirectory:function(e){if(!w.directoryExists(e))try{l.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:T,getDirectories:function(e){return O(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(t,r,n,i,a){return e.matchFiles(t,r,n,i,x,process.cwd(),a,O,B,R)},getModifiedTime:j,setModifiedTime:function(e,t){try{l.utimesSync(e,t,t)}catch(e){return}},deleteFile:function(e){try{return l.unlinkSync(e)}catch(e){return}},createHash:a?J:t,createSHA256Hash:a?J:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=F(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit:function(e){P((function(){return process.exit(e)}))},enableCPUProfiler:function(e,t){if(o)return t(),!1;var n=r("inspector");if(!n||!n.Session)return t(),!1;var i=new n.Session;return i.connect(),i.post("Profiler.enable",(function(){i.post("Profiler.start",(function(){o=i,p=e,t()}))})),!0},disableCPUProfiler:P,cpuProfilingEnabled:function(){return!!o||e.contains(process.execArgv,"--cpu-prof")||e.contains(process.execArgv,"--prof")},realpath:B,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||e.some(process.execArgv,(function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)})),tryEnableSourceMapsForHost:function(){try{r("./node_modules/source-map-support/source-map-support.js").install()}catch(e){}},setTimeout,clearTimeout,clearScreen:function(){process.stdout.write("c")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.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,n){try{var i=e.resolveJSModule(n,t,w);return{module:r("./node_modules/typescript/lib sync recursive")(i),modulePath:i,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return w;function F(e){return l.statSync(e,{throwIfNoEntry:!1})}function P(t){if(o&&"stopping"!==o){var r=o;return o.post("Profiler.stop",(function(n,i){var a,c=i.profile;if(!n){try{(null===(a=F(p))||void 0===a?void 0:a.isDirectory())&&(p=u.join(p,(new Date).toISOString().replace(/:/g,"-")+"+P"+process.pid+".cpuprofile"))}catch(e){}try{l.mkdirSync(u.dirname(p),{recursive:!0})}catch(e){}l.writeFileSync(p,JSON.stringify(function(t){for(var r=0,n=new e.Map,i=e.normalizeSlashes(__dirname),a="file://"+(1===e.getRootLength(i)?"":"/")+i,o=0,c=t.nodes;o 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.")}}(u||(u={})),function(e){var t;function r(e){return e>=79}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||r(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 n=new e.Map(e.getEntries(e.textToKeywordObj)),i=new e.Map(e.getEntries(a(a({},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],l=[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],u=[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?u:1===t?c:o)}e.isUnicodeIdentifierStart=g;var m,y=(m=[],i.forEach((function(e,t){m[e]=t})),m);function h(e){for(var t=new Array,r=0,n=0;r127&&C(i)&&(t.push(n),n=r)}}return t.push(n),t}function v(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,h(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 C(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 i.get(e)},e.computeLineStarts=h,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):v(b(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=v,e.getLineStarts=b,e.computeLineAndCharacterOfPosition=x,e.computeLineOfPosition=D,e.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=b(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=D(n,i),c=D(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return x(b(e),t)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=E,e.isLineBreak=C,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 N="<<<<<<<".length;function w(t,r){if(e.Debug.assert(r>=0),0===r||C(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+N=0&&r127&&S(g)){_&&C(g)&&(u=!0),r++;continue}break e}}return _&&(p=i(s,c,l,u,a,p)),p}function M(e,t,r,n,i){return L(!0,e,t,!1,r,n,i)}function R(e,t,r,n,i){return L(!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=P.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 V(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?l:s)}(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=O,e.forEachLeadingCommentRange=function(e,t,r,n){return L(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return L(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=M,e.reduceEachTrailingCommentRange=R,e.getLeadingCommentRanges=function(e,t){return M(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=V,e.isIdentifierText=function(e,t,r){var n=U(e,0);if(!J(n,t))return!1;for(var i=K(n);i116},isReservedWord:function(){return m>=81&&m<=116},isUnterminated:function(){return 0!=(4&h)},getCommentDirectives:function(){return v},getNumericLiteralFlags:function(){return 1008&h},getTokenFlags:function(){return h},reScanGreaterToken:function(){if(31===m){if(62===b.charCodeAt(u))return 62===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=72):(u+=2,m=49):61===b.charCodeAt(u+1)?(u+=2,m=71):(u++,m=48);if(61===b.charCodeAt(u))return u++,m=33}return m},reScanAsteriskEqualsToken:function(){return e.Debug.assert(66===m,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=g+1,m=63},reScanSlashToken:function(){if(43===m||68===m){for(var r=g+1,n=!1,i=!1;;){if(r>=_){h|=4,N(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(r);if(C(a)){h|=4,N(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<_&&V(b.charCodeAt(r),t);)r++;u=r,y=b.substring(g,u),m=13}return m},reScanTemplateToken:function(t){return e.Debug.assert(19===m,"'reScanTemplateToken' should only be called on a '}'"),u=g,m=q(t)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return u=g,m=q(!0)},scanJsxIdentifier:function(){if(r(m)){for(var e=!1;u<_;){var t=b.charCodeAt(u);if(45!==t)if(58!==t||e){var n=u;if(y+=$(),u===n)break}else y+=":",u++,e=!0,m=79;else y+="-",u++}":"===y.slice(-1)&&(y=y.slice(0,-1),u--)}return m},scanJsxAttributeValue:se,reScanJsxAttributeValue:function(){return u=g=f,se()},reScanJsxToken:function(e){return void 0===e&&(e=!0),u=g=f,m=oe(e)},reScanLessThanToken:function(){return 47===m?(u=g+1,m=29):m},reScanHashToken:function(){return 80===m?(u=g+1,m=62):m},reScanQuestionToken:function(){return e.Debug.assert(60===m,"'reScanQuestionToken' should only be called on a '??'"),u=g+1,m=57},reScanInvalidIdentifier:function(){e.Debug.assert(0===m,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),u=g=f,h=0;var t=U(b,u),r=ie(t,99);return r?m=r:(u+=K(t),m)},scanJsxToken:oe,scanJsDocToken:function(){if(f=g=u,h=0,u>=_)return m=1;var e=U(b,u);switch(u+=K(e),e){case 9:case 11:case 12:case 32:for(;u<_&&E(b.charCodeAt(u));)u++;return m=5;case 64:return m=59;case 13:10===b.charCodeAt(u)&&u++;case 10:return h|=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:u--;var r=Z();if(r>=0&&J(r,t))return u+=3,h|=8,y=X()+$(),m=ee();var n=Q();return n>=0&&J(n,t)?(u+=6,h|=1024,y=String.fromCharCode(n)+$(),m=ee()):(u++,m=0)}if(J(e,t)){for(var i=e;u<_&&V(i=U(b,u),t)||45===b.charCodeAt(u);)u+=K(i);return y=b.substring(g,u),92===i&&(y+=$()),m=ee()}return m=0},scan:ne,getText:function(){return b},clearCommentDirectives:function(){v=void 0},setText:le,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:ue,setInJSDocType:function(e){x+=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=u,a=f,o=g,s=m,c=y,l=h,d=v;le(b,e,t);var p=r();return _=n,u=i,f=a,g=o,m=s,y=c,h=l,v=d,p}};return e.Debug.isDebugging&&Object.defineProperty(D,"__debugShowCurrentPositionInText",{get:function(){var e=D.getText();return e.slice(0,D.getStartPos())+"║"+e.slice(D.getStartPos())}}),D;function N(e,t,r){if(void 0===t&&(t=u),s){var n=u;u=t,s(e,r||0),u=n}}function P(){for(var t=u,r=!1,n=!1,i="";;){var a=b.charCodeAt(u);if(95!==a){if(!T(a))break;r=!0,n=!1,u++}else h|=512,r?(r=!1,n=!0,i+=b.substring(t,u)):N(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),t=++u}return 95===b.charCodeAt(u-1)&&N(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),i+b.substring(t,u)}function L(){var t,r,n=u,i=P();46===b.charCodeAt(u)&&(u++,t=P());var a,o=u;if(69===b.charCodeAt(u)||101===b.charCodeAt(u)){u++,h|=16,43!==b.charCodeAt(u)&&45!==b.charCodeAt(u)||u++;var s=u,c=P();c?(r=b.substring(o,s)+c,o=u):N(e.Diagnostics.Digit_expected)}if(512&h?(a=i,t&&(a+="."+t),r&&(a+=r)):a=b.substring(n,o),void 0!==t||16&h)return M(n,void 0===t&&!!(16&h)),{type:8,value:""+ +a};y=a;var l=re();return M(n),{type:l,value:y}}function M(r,n){if(J(U(b,u),t)){var i=u,a=$().length;1===a&&"n"===b[i]?N(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(N(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),u=i)}}function R(){for(var e=u;A(b.charCodeAt(u));)u++;return+b.substring(e,u)}function B(e,t){var r=z(e,!1,t);return r?parseInt(r,16):-1}function j(e,t){return z(e,!0,t)}function z(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),u++,o=!1}}return i.length=_){n+=b.substring(i,u),h|=4,N(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(u);if(a===r){n+=b.substring(i,u),u++;break}if(92!==a||t){if(C(a)&&!t){n+=b.substring(i,u),h|=4,N(e.Diagnostics.Unterminated_string_literal);break}u++}else n+=b.substring(i,u),n+=H(),i=u}return n}function q(t){for(var r,n=96===b.charCodeAt(u),i=++u,a="";;){if(u>=_){a+=b.substring(i,u),h|=4,N(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=b.charCodeAt(u);if(96===o){a+=b.substring(i,u),u++,r=n?14:17;break}if(36===o&&u+1<_&&123===b.charCodeAt(u+1)){a+=b.substring(i,u),u+=2,r=n?15:16;break}92!==o?13!==o?u++:(a+=b.substring(i,u),++u<_&&10===b.charCodeAt(u)&&u++,a+="\n",i=u):(a+=b.substring(i,u),a+=H(t),i=u)}return e.Debug.assert(void 0!==r),y=a,r}function H(t){var r=u;if(++u>=_)return N(e.Diagnostics.Unexpected_end_of_text),"";var n=b.charCodeAt(u);switch(u++,n){case 48:return t&&u<_&&T(b.charCodeAt(u))?(u++,h|=2048,b.substring(r,u)):"\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=u;i=0?String.fromCharCode(r):(N(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=j(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(N(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(N(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),u>=_?(N(e.Diagnostics.Unexpected_end_of_text),n=!0):125===b.charCodeAt(u)?u++:(N(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":G(r)}function Q(){if(u+5<_&&117===b.charCodeAt(u+1)){var e=u;u+=2;var t=B(4,!1);return u=e,t}return-1}function Z(){if(t>=2&&117===U(b,u+1)&&123===U(b,u+2)){var e=u;u+=3;var r=j(1,!1),n=r?parseInt(r,16):-1;return u=e,n}return-1}function $(){for(var e="",r=u;u<_;){var n=U(b,u);if(V(n,t))u+=K(n);else{if(92!==n)break;if((n=Z())>=0&&V(n,t)){u+=3,h|=8,e+=X(),r=u;continue}if(!((n=Q())>=0&&V(n,t)))break;h|=1024,e+=b.substring(r,u),e+=G(n),r=u+=6}}return e+b.substring(r,u)}function ee(){var e=y.length;if(e>=2&&e<=12){var t=y.charCodeAt(0);if(t>=97&&t<=122){var r=n.get(y);if(void 0!==r)return m=r}}return m=79}function te(t){for(var r="",n=!1,i=!1;;){var a=b.charCodeAt(u);if(95!==a){if(n=!0,!T(a)||a-48>=t)break;r+=b[u],u++,i=!1}else h|=512,n?(n=!1,i=!0):N(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===b.charCodeAt(u-1)&&N(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),r}function re(){if(110===b.charCodeAt(u))return y+="n",384&h&&(y=e.parsePseudoBigInt(y)+"n"),u++,9;var t=128&h?parseInt(y.slice(2),2):256&h?parseInt(y.slice(2),8):+y;return y=""+t,8}function ne(){var r;f=u,h=0;for(var n=!1;;){if(g=u,u>=_)return m=1;var o=U(b,u);if(35===o&&0===u&&I(b,u)){if(u=O(b,u),i)continue;return m=6}switch(o){case 10:case 13:if(h|=1,i){u++;continue}return 13===o&&u+1<_&&10===b.charCodeAt(u+1)?u+=2:u++,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(i){u++;continue}for(;u<_&&E(b.charCodeAt(u));)u++;return m=5;case 33:return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=37):(u+=2,m=35):(u++,m=53);case 34:case 39:return y=W(),m=10;case 96:return m=q(!1);case 37:return 61===b.charCodeAt(u+1)?(u+=2,m=69):(u++,m=44);case 38:return 38===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=76):(u+=2,m=55):61===b.charCodeAt(u+1)?(u+=2,m=73):(u++,m=50);case 40:return u++,m=20;case 41:return u++,m=21;case 42:if(61===b.charCodeAt(u+1))return u+=2,m=66;if(42===b.charCodeAt(u+1))return 61===b.charCodeAt(u+2)?(u+=3,m=67):(u+=2,m=42);if(u++,x&&!n&&1&h){n=!0;continue}return m=41;case 43:return 43===b.charCodeAt(u+1)?(u+=2,m=45):61===b.charCodeAt(u+1)?(u+=2,m=64):(u++,m=39);case 44:return u++,m=27;case 45:return 45===b.charCodeAt(u+1)?(u+=2,m=46):61===b.charCodeAt(u+1)?(u+=2,m=65):(u++,m=40);case 46:return T(b.charCodeAt(u+1))?(y=L().value,m=8):46===b.charCodeAt(u+1)&&46===b.charCodeAt(u+2)?(u+=3,m=25):(u++,m=24);case 47:if(47===b.charCodeAt(u+1)){for(u+=2;u<_&&!C(b.charCodeAt(u));)u++;if(v=ae(v,b.slice(g,u),d,g),i)continue;return m=2}if(42===b.charCodeAt(u+1)){u+=2,42===b.charCodeAt(u)&&47!==b.charCodeAt(u+1)&&(h|=2);for(var s=!1,c=g;u<_;){var l=b.charCodeAt(u);if(42===l&&47===b.charCodeAt(u+1)){u+=2,s=!0;break}u++,C(l)&&(c=u,h|=1)}if(v=ae(v,b.slice(c,u),p,c),s||N(e.Diagnostics.Asterisk_Slash_expected),i)continue;return s||(h|=4),m=3}return 61===b.charCodeAt(u+1)?(u+=2,m=68):(u++,m=43);case 48:if(u+2<_&&(88===b.charCodeAt(u+1)||120===b.charCodeAt(u+1)))return u+=2,(y=j(1,!0))||(N(e.Diagnostics.Hexadecimal_digit_expected),y="0"),y="0x"+y,h|=64,m=re();if(u+2<_&&(66===b.charCodeAt(u+1)||98===b.charCodeAt(u+1)))return u+=2,(y=te(2))||(N(e.Diagnostics.Binary_digit_expected),y="0"),y="0b"+y,h|=128,m=re();if(u+2<_&&(79===b.charCodeAt(u+1)||111===b.charCodeAt(u+1)))return u+=2,(y=te(8))||(N(e.Diagnostics.Octal_digit_expected),y="0"),y="0o"+y,h|=256,m=re();if(u+1<_&&A(b.charCodeAt(u+1)))return y=""+R(),h|=32,m=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r=L(),m=r.type,y=r.value,m;case 58:return u++,m=58;case 59:return u++,m=26;case 60:if(w(b,u)){if(u=F(b,u,N),i)continue;return m=7}return 60===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=70):(u+=2,m=47):61===b.charCodeAt(u+1)?(u+=2,m=32):1===a&&47===b.charCodeAt(u+1)&&42!==b.charCodeAt(u+2)?(u+=2,m=30):(u++,m=29);case 61:if(w(b,u)){if(u=F(b,u,N),i)continue;return m=7}return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=36):(u+=2,m=34):62===b.charCodeAt(u+1)?(u+=2,m=38):(u++,m=63);case 62:if(w(b,u)){if(u=F(b,u,N),i)continue;return m=7}return u++,m=31;case 63:return 46!==b.charCodeAt(u+1)||T(b.charCodeAt(u+2))?63===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=77):(u+=2,m=60):(u++,m=57):(u+=2,m=28);case 91:return u++,m=22;case 93:return u++,m=23;case 94:return 61===b.charCodeAt(u+1)?(u+=2,m=78):(u++,m=52);case 123:return u++,m=18;case 124:if(w(b,u)){if(u=F(b,u,N),i)continue;return m=7}return 124===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,m=75):(u+=2,m=56):61===b.charCodeAt(u+1)?(u+=2,m=74):(u++,m=51);case 125:return u++,m=19;case 126:return u++,m=54;case 64:return u++,m=59;case 92:var D=Z();if(D>=0&&J(D,t))return u+=3,h|=8,y=X()+$(),m=ee();var S=Q();return S>=0&&J(S,t)?(u+=6,h|=1024,y=String.fromCharCode(S)+$(),m=ee()):(N(e.Diagnostics.Invalid_character),u++,m=0);case 35:return 0!==u&&"!"===b[u+1]?(N(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,m=0):(J(U(b,u+1),t)?(u++,ie(U(b,u),t)):(y=String.fromCharCode(U(b,u)),N(e.Diagnostics.Invalid_character,u++,K(o))),m=80);default:var k=ie(o,t);if(k)return m=k;if(E(o)){u+=K(o);continue}if(C(o)){h|=1,u+=K(o);continue}var P=K(o);return N(e.Diagnostics.Invalid_character,u,P),u+=P,m=0}}}function ie(e,t){var r=e;if(J(r,t)){for(u+=K(r);u<_&&V(r=U(b,u),t);)u+=K(r);return y=b.substring(g,u),92===r&&(y+=$()),ee()}}function ae(t,r,n,i){var a=function(e,t){var r=t.exec(e);if(r)switch(r[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}(e.trimStringStart(r),n);return void 0===a?t:e.append(t,{range:{pos:i,end:u},type:a})}function oe(t){if(void 0===t&&(t=!0),f=g=u,u>=_)return m=1;var r=b.charCodeAt(u);if(60===r)return 47===b.charCodeAt(u+1)?(u+=2,m=30):(u++,m=29);if(123===r)return u++,m=18;for(var n=0;u<_&&123!==(r=b.charCodeAt(u));){if(60===r){if(w(b,u))return u=F(b,u,N),m=7;break}if(62===r&&N(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,u,1),125===r&&N(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,u,1),C(r)&&0===n)n=-1;else{if(!t&&C(r)&&n>0)break;S(r)||(n=u)}u++}return y=b.substring(f,u),-1===n?12:11}function se(){switch(f=u,b.charCodeAt(u)){case 34:case 39:return y=W(!0),m=10;default:return ne()}}function ce(e,t){var r=u,n=f,i=g,a=m,o=y,s=h,c=e();return c&&!t||(u=r,f=n,g=i,m=a,y=o,h=s),c}function le(e,t,r){b=e||"",_=void 0===r?b.length:t+r,ue(t||0)}function ue(t){e.Debug.assert(t>=0),u=t,f=t,g=t,m=0,y=void 0,h=0}};var U=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 K(e){return e>=65536?2:1}var z=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 G(e){return z(e)}e.utf16EncodeAsString=G}(u||(u={})),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 l(t){return!!Z(t)&&e.every(t.elements,u)}function u(t){return!!e.isOmittedExpression(t)||l(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=x(t);return r&&e.isIdentifier(r)?r:void 0}function h(e){return e.name||m(e)}function v(e){return!!e.name}function b(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 h(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 x(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?D(t):void 0)}function D(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 N(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=N(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 V(t){return(e.isPropertyDeclaration(t)||Y(t))&&e.isPrivateIdentifier(t.name)}function U(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 K(t){return!!(16476&e.modifierToFlag(t))}function z(e){return!!e&&W(e.kind)}function G(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 G(e)}}function q(e){var t=e.kind;return 169===t||165===t||167===t||170===t||171===t||174===t||168===t||232===t}function H(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 Q(e){var t=e.kind;return 291===t||292===t||293===t||167===t||170===t||171===t}function Z(e){if(e){var t=e.kind;return 200===t||199===t}return!1}function $(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)}}(L(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,l=1;l=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=f,e.idText=g,e.symbolName=function(e){return e.valueDeclaration&&V(e.valueDeclaration)?g(e.valueDeclaration.name):f(e.escapedName)},e.nodeHasName=function t(r,n){return!(!v(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=h,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=x,e.getAssignedName=D,e.getJSDocParameterTags=E,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return C(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return C(e,!0)},e.hasJSDocParameterTags=function(t){return!!F(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return F(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return P(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return F(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return F(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return F(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return F(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return F(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return F(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return F(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return F(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return F(t,e.isJSDocReadonlyTag,!0)},e.getJSDocOverrideTagNoCache=function(t){return F(t,e.isJSDocOverrideTag,!0)},e.getJSDocDeprecatedTag=function(t){return F(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return F(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return F(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return F(t,e.isJSDocThisTag)},e.getJSDocReturnTag=T,e.getJSDocTemplateTag=function(t){return F(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=w,e.getJSDocTagsNoCache=function(e){return N(e,!0)},e.getAllJSDocTags=P,e.getAllJSDocTagsOfKind=function(e,t){return w(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=L,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=M,e.isUnparsedNode=function(e){return M(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=V,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=U,e.isParameterPropertyModifier=K,e.isClassMemberModifier=function(e){return K(e)||124===e||157===e},e.isModifier=function(e){return U(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=z,e.isFunctionLikeOrClassStaticBlockDeclaration=function(t){return!!t&&(W(t.kind)||e.isClassStaticBlockDeclaration(t))},e.isFunctionLikeDeclaration=function(e){return e&&G(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)&&z(t.parent)},e.isClassElement=q,e.isClassLike=H,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)||q(e)},e.isObjectLiteralElementLike=Q,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=Z,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 $(e)||ee(e)},e.isObjectBindingOrAssignmentPattern=$,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(L(e).kind)},e.isUnaryExpression=function(e){return re(L(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){return 233===t.kind&&((void 0===t.parent||250!==t.parent.kind&&290!==t.parent.kind)&&!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||ue(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||Q(e)},e.isTypeReferenceType=function(e){return 176===e.kind||226===e.kind};var le=1073741823;function ue(e){return 319===e.kind||320===e.kind||321===e.kind}e.guessIndentation=function(t){for(var r=le,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 d(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function p(e){return!d(e)}function f(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n0?h(t._children[0],r,n):e.skipTrivia((r||u(t)).text,t.pos,!1,!1,De(t))}function v(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),d(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),v(u(e),e,t)}function D(e){return e.pos}function S(e){var t=e.emitNode;return t&&t.flags||0}function E(e){var t=Tt(e);return 252===t.kind&&290===t.parent.kind}function C(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||k(t))}function T(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function k(e){return!!(1024&e.flags)}function A(e){return C(e)&&N(e)}function N(t){switch(t.parent.kind){case 300:return e.isExternalModule(t.parent);case 260:return C(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function w(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find((function(t){return!(A(t)||e.isModuleDeclaration(t)&&k(t))}))}function F(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 P(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 I(e){switch(e.kind){case 264:case 263:return!0;default:return!1}}function O(t){return I(t)||e.isExportDeclaration(t)}function L(t){return e.findAncestor(t.parent,(function(e){return F(e,e.parent)}))}function M(e){return e&&0!==l(e)?x(e):"(Missing)"}function R(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 vt(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 B(t){switch(t.kind){case 108:return"this";case 80:case 79:return 0===l(t)?e.idText(t):x(t);case 159:return B(t.left)+"."+B(t.right);case 204:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?B(t.expression)+"."+B(t.name):e.Debug.assertNever(t.name);case 306:return B(t.left)+B(t.right);default:return e.Debug.assertNever(t)}}function j(e,t,r,n,i,a,o){var s=K(e,t);return gn(e,s.start,s.length,r,n,i,a,o)}function J(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 V(e,t,r,n,i){return J(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 K(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=d(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 z(e){return 6===e.scriptKind}function G(t){return!!(2&e.getCombinedNodeFlags(t))}function W(e){return 206===e.kind&&100===e.expression.kind}function q(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function H(e){return 236===e.kind&&10===e.expression.kind}function Y(e){return!!(1048576&S(e))}function X(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=l,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.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=u(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=_,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=d,e.nodeIsPresent=p,e.insertStatementsAfterStandardPrologue=function(e,t){return f(e,t,H)},e.insertStatementsAfterCustomPrologue=function(e,t){return f(e,t,m)},e.insertStatementAfterStandardPrologue=function(e,t){return g(e,t,H)},e.insertStatementAfterCustomPrologue=function(e,t){return g(e,t,m)},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2=e.ModuleKind.ES2015)&&r.noImplicitUseStrict))},e.isBlockScope=F,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 333:case 340:case 318:return!0;default:return e.assertType(t),P(t)}},e.isDeclarationWithTypeParameterChildren=P,e.isAnyImportSyntax=I,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 O(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||W(t)},e.isAnyImportOrReExport=O,e.getEnclosingBlockScopeContainer=L,e.forEachEnclosingBlockScopeContainer=function(e,t){for(var r=L(e);r;)t(r),r=L(r)},e.declarationNameToString=M,e.getNameFromIndexInfo=function(e){return e.declaration?M(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 160===e.kind&&!vt(e.expression)},e.getTextOfPropertyName=R,e.entityNameToString=B,e.createDiagnosticForNode=function(e,t,r,n,i,a){return j(u(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 gn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=j,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=u(e),i=K(n,e);return V(n,i.start,i.length,t,r)},e.createFileDiagnosticFromMessageChain=V,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=K,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=z,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=G,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 206===e.kind&&106===e.expression.kind},e.isImportCall=W,e.isImportMeta=function(t){return e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=q,e.isPrologueDirective=H,e.isCustomPrologue=Y,e.isHoistedFunction=function(t){return Y(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return Y(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,X)},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=/^(\/\/\/\s*/;function ne(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!Rr(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!Rr(r);case 161:case 339:return t===r.constraint;case 165:case 164:case 162:case 252:case 254:case 211:case 212:case 169:case 167:case 166:case 170:case 171: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 ie(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 ae(e){return 253===e.parent.kind&&235===e.parent.parent.kind}function oe(e,t,r){return e.properties.filter((function(e){if(291===e.kind){var n=R(e.name);return t===n||!!r&&r===n}return!1}))}function se(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function ce(t,r){var n=se(t);return n?oe(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 ue(e){var t=e.kind;return(204===t||205===t)&&106===e.expression.kind}function _e(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 de(e,t,r){return void 0!==e.decorators&&_e(e,t,r)}function pe(e,t,r){return de(e,t,r)||fe(e,t)}function fe(t,r){switch(t.kind){case 255:return e.some(t.members,(function(e){return pe(e,t,r)}));case 167:case 171:case 169:return e.some(t.parameters,(function(e){return de(e,t,r)}));default:return!1}}function ge(e){var t=e.parent;return(278===t.kind||277===t.kind||279===t.kind)&&t.tagName===e}function me(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)||ge(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)||ge(t);case 79:if(179===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ge(t))return!0;case 8:case 9:case 10:case 14:case 108:return ye(t);default:return!1}}function ye(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&&Rr(t);case 292:return t.objectAssignmentInitializer===e;default:return me(t)}}function he(e){for(;159===e.kind||79===e.kind;)e=e.parent;return 179===e.kind}function ve(e){return 263===e.kind&&275===e.moduleReference.kind}function be(e){return xe(e)}function xe(e){return!!e&&!!(131072&e.flags)}function De(e){return!!e&&!!(4194304&e.flags)}function Se(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&&Se(rn(t.initializer),!0)}function Ce(t){return e.isBinaryExpression(t)||tn(t)||e.isIdentifier(t)||e.isCallExpression(t)}function Te(t){return xe(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&Br(t.name)&&Ae(t.name,t.initializer.left)?t.initializer.right:t.initializer}function ke(t,r){if(e.isCallExpression(t)){var n=st(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 Ae(t,r){if(Et(t)&&Et(r))return Ct(t)===Ct(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=Je(r);return e.isPrivateIdentifier(n)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Ae(t,n)}return!(!Le(t)||!Le(r))&&Ue(t)===Ue(r)&&Ae(t.expression,r.expression)}function Ne(e){for(;Mr(e,!0);)e=e.right;return e}function we(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Fe(t){return e.isIdentifier(t)&&"module"===t.escapedText}function Pe(t){return(e.isPropertyAccessExpression(t)||Me(t))&&Fe(t.expression)&&"exports"===Ue(t)}function Ie(t){var r=function(t){if(e.isCallExpression(t)){if(!Oe(t))return 0;var r=t.arguments[0];return we(r)||Pe(r)?8:Re(r)&&"prototype"===Ue(r)?9:7}return 63!==t.operatorToken.kind||!tn(t.left)||(n=Ne(t),e.isVoidExpression(n)&&e.isNumericLiteral(n.expression)&&"0"===n.expression.text)?0:je(t.left.expression,!0)&&"prototype"===Ue(t.left)&&e.isObjectLiteralExpression(ze(t))?6:Ke(t.left);var n}(t);return 5===r||xe(t)?r:0}function Oe(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)&&vt(t.arguments[1])&&je(t.arguments[0],!0)}function Le(t){return e.isPropertyAccessExpression(t)||Me(t)}function Me(t){return e.isElementAccessExpression(t)&&vt(t.argumentExpression)}function Re(t,r){return e.isPropertyAccessExpression(t)&&(!r&&108===t.expression.kind||e.isIdentifier(t.name)&&je(t.expression,!0))||Be(t,r)}function Be(e,t){return Me(e)&&(!t&&108===e.expression.kind||Br(e.expression)||Re(e.expression,!0))}function je(e,t){return Br(e)||Re(e,t)}function Je(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function Ve(t){if(e.isPropertyAccessExpression(t))return t.name;var r=st(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function Ue(t){var r=Ve(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}}function Ke(t){if(108===t.expression.kind)return 4;if(Pe(t))return 2;if(je(t.expression,!0)){if(Jr(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))&&Re(t))return 1;if(je(t,!0)||e.isElementAccessExpression(t)&&Dt(t))return 5}return 0}function ze(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function Ge(t){switch(t.parent.kind){case 264:case 270:return t.parent;case 275:return t.parent.parent;case 206:return W(t.parent)||Se(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 We(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 q(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 qe(e){return 340===e.kind||333===e.kind||334===e.kind}function He(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Ie(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 Ye(e){switch(e.kind){case 235:var t=Xe(e);return t&&t.initializer;case 165:case 291:return e.initializer}}function Xe(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&&(Xe(r.parent)===t||e.isBinaryExpression(r)&&63===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(Xe(r.parent.parent)||Ye(r.parent.parent)===t||He(r.parent.parent))?r.parent.parent:void 0}function $e(t){var r=et(t);return r&&e.isFunctionLike(r)?r:void 0}function et(t){var r=tt(t);if(r)return He(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?Ne(t.expression):void 0}(r)||Ye(r)||Xe(r)||Qe(r)||r}function tt(t){var r=rt(t);if(r){var n=r.parent;return n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)?n:void 0}}function rt(t){return e.findAncestor(t.parent,e.isJSDoc)}function nt(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&313===r.kind}function it(e){for(var t=e.parent;;){switch(t.kind){case 219:var r=t.operatorToken.kind;return Ir(r)&&t.left===e?63===r||Pr(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 at(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function ot(e){return at(e,210)}function st(t){return e.skipOuterExpressions(t,1)}function ct(t){return Br(t)||e.isClassExpression(t)}function lt(e){return ct(ut(e))}function ut(t){return e.isExportAssignment(t)?t.expression:t.right}function _t(t){var r=dt(t);if(r&&xe(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function dt(e){var t=gt(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function pt(t){if(xe(t))return e.getJSDocImplementsTags(t).map((function(e){return e.class}));var r=gt(t.heritageClauses,117);return null==r?void 0:r.types}function ft(e){var t=gt(e.heritageClauses,94);return t?t.types:void 0}function gt(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===v(t,e).charCodeAt(0)},e.isAssignmentDeclaration=Ce,e.getEffectiveInitializer=Te,e.getDeclaredExpandoInitializer=function(e){var t=Te(e);return t&&ke(t,Jr(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var r=Jr(t.parent.left);return ke(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&ke(r.right,n);if(i&&Ae(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&Oe(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&&ke(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=ke,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&&ke(t.right,Jr(r))&&Br(r)&&Ae(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=Ae,e.getRightMostAssignedExpression=Ne,e.isExportsIdentifier=we,e.isModuleIdentifier=Fe,e.isModuleExportsAccessExpression=Pe,e.getAssignmentDeclarationKind=Ie,e.isBindableObjectDefinePropertyCall=Oe,e.isLiteralLikeAccess=Le,e.isLiteralLikeElementAccess=Me,e.isBindableStaticAccessExpression=Re,e.isBindableStaticElementAccessExpression=Be,e.isBindableStaticNameExpression=je,e.getNameOrArgument=Je,e.getElementOrPropertyAccessArgumentExpressionOrName=Ve,e.getElementOrPropertyAccessName=Ue,e.getAssignmentDeclarationPropertyAccessKind=Ke,e.getInitializerOfBinaryExpression=ze,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Ie(t)},e.isSpecialPropertyDeclaration=function(t){return xe(t)&&t.parent&&236===t.parent.kind&&(!e.isElementAccessExpression(t)||Me(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(8388608&t.flags)||8388608&r.flags)&&Ce(r)&&!Ce(t)||r.kind!==t.kind&&T(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 Ge(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=Ge,e.getExternalModuleName=We,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;return t.name&&(n=r(t))||t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r))?n:void 0},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=qe,e.isTypeAlias=function(t){return qe(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ye,e.getSingleVariableOfVariableStatement=Xe,e.getJSDocCommentsAndTags=function(t,r){var n;ie(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=$e(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=$e,e.getEffectiveJSDocHost=et,e.getJSDocHost=tt,e.getJSDocRoot=rt,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&&nt(r)},e.isRestParameter=nt,e.hasTypeArguments=function(e){return!!e.typeArguments},(te=e.AssignmentKind||(e.AssignmentKind={}))[te.None=0]="None",te[te.Definite=1]="Definite",te[te.Compound=2]="Compound",e.getAssignmentTargetKind=it,e.isAssignmentTarget=function(e){return 0!==it(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 at(e,189)},e.walkUpParenthesizedExpressions=ot,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&189===e.kind;)t=e,e=e.parent;return[t,e]},e.skipParentheses=st,e.isDeleteTarget=function(e){return(204===e.kind||205===e.kind)&&(e=ot(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!==Ie(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 vt(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===Ie(t)&<(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&ct(t.parent.right)||292===t.kind||291===t.kind&&ct(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=ct,e.exportAssignmentIsAlias=lt,e.getExportAssignmentExpression=ut,e.getPropertyAssignmentAliasLikeExpression=function(e){return 292===e.kind?e.name:291===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=_t,e.getClassExtendsHeritageElement=dt,e.getEffectiveImplementsTypeNodes=pt,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?ft(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(_t(t)),pt(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=ft,e.getHeritageClause=gt,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=mt,e.isContextualKeyword=yt,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&&mt(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!yt(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:vr(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&&vr(e,256)}return!1},e.isStringOrNumericLiteralLike=vt,e.isSignedNumericLiteral=bt,e.hasDynamicName=xt,e.isDynamicName=Dt,e.getPropertyNameForPropertyNameNode=St,e.isPropertyNameLiteral=Et,e.getTextOfIdentifierOrLiteral=Ct,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===Tt(e).kind},e.getRootDeclaration=Tt,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=kt,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},($=e.Associativity||(e.Associativity={}))[$.Left=0]="Left",$[$.Right=1]="Right",e.getExpressionAssociativity=function(e){var t=Nt(e),r=207===e.kind&&void 0!==e.arguments;return At(e.kind,t,r)},e.getOperatorAssociativity=At,e.getExpressionPrecedence=function(e){var t=Nt(e),r=207===e.kind&&void 0!==e.arguments;return wt(e.kind,t,r)},e.getOperator=Nt,(Z=e.OperatorPrecedence||(e.OperatorPrecedence={}))[Z.Comma=0]="Comma",Z[Z.Spread=1]="Spread",Z[Z.Yield=2]="Yield",Z[Z.Assignment=3]="Assignment",Z[Z.Conditional=4]="Conditional",Z[Z.Coalesce=4]="Coalesce",Z[Z.LogicalOR=5]="LogicalOR",Z[Z.LogicalAND=6]="LogicalAND",Z[Z.BitwiseOR=7]="BitwiseOR",Z[Z.BitwiseXOR=8]="BitwiseXOR",Z[Z.BitwiseAND=9]="BitwiseAND",Z[Z.Equality=10]="Equality",Z[Z.Relational=11]="Relational",Z[Z.Shift=12]="Shift",Z[Z.Additive=13]="Additive",Z[Z.Multiplicative=14]="Multiplicative",Z[Z.Exponentiation=15]="Exponentiation",Z[Z.Unary=16]="Unary",Z[Z.Update=17]="Update",Z[Z.LeftHandSide=18]="LeftHandSide",Z[Z.Member=19]="Member",Z[Z.Primary=20]="Primary",Z[Z.Highest=20]="Highest",Z[Z.Lowest=0]="Lowest",Z[Z.Invalid=-1]="Invalid",e.getOperatorPrecedence=wt,e.getBinaryOperatorPrecedence=Ft,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;if(i=r.file?n.get(r.file.fileName):t){var a=e.binarySearch(i,r,e.identity,vn);return a>=0?i[a]:void 0}},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)}));return t.length?(a.unshift.apply(a,t),a):a}}};var Pt=/\$\{/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 It=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ot=/[\\\'\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,Mt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function Rt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function Bt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return Mt.get(e)||Rt(e.charCodeAt(0))}function jt(e,t){var r=96===t?Lt:39===t?Ot:It;return e.replace(r,Bt)}e.escapeString=jt;var Jt=/[^\u0000-\u007F]/g;function Vt(e,t){return e=jt(e,t),Jt.test(e)?e.replace(Jt,(function(e){return Rt(e.charCodeAt(0))})):e}e.escapeNonAsciiString=Vt;var Ut=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Kt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,zt=new e.Map(e.getEntries({'"':""","'":"'"}));function Gt(e){return 0===e.charCodeAt(0)?"�":zt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Wt(e,t){var r=39===t?Kt:Ut;return e.replace(r,Gt)}e.escapeJsxAttributeString=Wt,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 qt=[""," "];function Ht(e){for(var t=qt[1],r=qt.length;r<=e;r++)qt.push(qt[r-1]+t);return qt[e]}function Yt(){return qt[1].length}function Xt(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Qt(e,t,r){return t.moduleName||$t(e,t.fileName,r&&r.fileName)}function Zt(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function $t(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=ti(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function er(e,t,r,n,i){var a=t.declarationDir||t.outDir;return ti(a?ir(e,a,r,n,i):e)+".d.ts"}function tr(e){return e.outFile||e.out}function rr(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&be(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(z(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function nr(e,t,r){return ir(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function ir(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 ar(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(ar(e.getDirectoryPath(t),r,n),r(t))}function or(t,r){return e.computeLineOfPosition(t,r)}function sr(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&p(t.body)}))}function cr(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 ur(e.name)}function ur(e){return!!e&&79===e.kind&&_r(e)}function _r(e){return 108===e.originalKeywordKind}function dr(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 pr(e,t,r,n){fr(e,t,r.pos,n)}function fr(e,t,r,n){n&&n.length&&r!==n[0].pos&&or(e,r)!==or(e,n[0].pos)&&t.writeLine()}function gr(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,l=0,u=n;l=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|Ar(e)),-536875009&e.modifierFlagsCache)}function Tr(e){return Cr(e,!0)}function kr(e){return Cr(e,!1)}function Ar(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=wr(e.modifiers);return(4&e.flags||79===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function wr(e){var t=0;if(e)for(var r=0,n=e;r=63&&e<=78}function Or(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 Mr(t,r){return e.isBinaryExpression(t)&&(r?63===t.operatorToken.kind:Ir(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Rr(e){return void 0!==Or(e)}function Br(e){return 79===e.kind||jr(e)}function jr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&Br(t.expression)}function Jr(e){return Re(e)&&"prototype"===Ue(e)}e.getIndentString=Ht,e.getIndentSize=Yt,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 l(e){e&&e.length&&(i&&(e=Ht(n)+e,i=!1),r+=e,c(e))}function u(e){e&&(s=!1),l(e)}function _(){r="",n=0,i=!0,a=0,o=0,s=!1}return _(),{write:u,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&u(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*Yt():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:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:function(e,t){return u(e)},writeTrailingSemicolon:u,writeComment:function(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return a(a({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=Xt,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(Xt(t))},e.getResolvedExternalModuleName=Qt,e.getExternalModuleNameFromDeclaration=function(t,r,n){var i=r.getExternalModuleFileFromDeclaration(n);if(i&&!i.isDeclarationFile){var a=We(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=$t,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?ti(nr(e,t,n.outDir)):ti(e))+r},e.getDeclarationEmitOutputFilePath=function(e,t){return er(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=er,e.outFile=tr,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(tr(i)){var a=Dn(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(r){return(o||!e.isExternalModule(r))&&rr(r,t,n)}))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(function(e){return rr(e,t,n)}))},e.sourceFileMayBeEmitted=rr,e.getSourceFilePathInNewDir=nr,e.getSourceFilePathInNewDirWorker=ir,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,(function(t){r.add(mn(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){ar(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=or,e.getFirstConstructorWithBody=sr,e.getSetAccessorValueParameter=cr,e.getSetAccessorTypeAnnotationNode=function(e){var t=cr(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=ur,e.isThisInTypeQuery=function(t){if(!ur(t))return!1;for(;e.isQualifiedName(t.parent)&&t.parent.left===t;)t=t.parent;return 179===t.parent.kind},e.identifierIsThisKeyword=_r,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)&&St(t.name)===St(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=dr,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(qe))}(t)?t.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=cr(e);return t&&dr(t)},e.emitNewLineBeforeLeadingComments=pr,e.emitNewLineBeforeLeadingCommentsOfPosition=fr,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&or(e,r)!==or(e,n)&&t.writeLine()},e.emitComments=gr,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),(function(e){return y(t,e.pos)}))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var u=[],_=void 0,d=0,p=c;d=g+2)break}u.push(f),_=f}u.length&&(g=or(r,e.last(u).end),or(r,e.skipTrivia(t,a.pos))>=g+2&&(pr(r,n,a,c),gr(t,r,n,u,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.last(u).end}))}return l},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,l=void 0,u=i,_=s.line;u0){var f=p%Yt(),g=Ht((p-f)/Yt());for(n.rawWrite(g);f;)n.rawWrite(" "),f--}else n.rawWrite("")}mr(t,a,n,o,u,d),u=d}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==Tr(e)},e.hasSyntacticModifiers=function(e){return 0!==kr(e)},e.hasEffectiveModifier=hr,e.hasSyntacticModifier=vr,e.isStatic=br,e.hasStaticModifier=xr,e.hasOverrideModifier=function(e){return hr(e,16384)},e.hasAbstractModifier=function(e){return vr(e,128)},e.hasAmbientModifier=function(e){return vr(e,2)},e.hasEffectiveReadonlyModifier=Dr,e.getSelectedEffectiveModifierFlags=Sr,e.getSelectedSyntacticModifierFlags=Er,e.getEffectiveModifierFlags=Tr,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return Cr(e,!0,!0)},e.getSyntacticModifierFlags=kr,e.getEffectiveModifierFlagsNoCache=function(e){return Nr(e)|Ar(e)},e.getSyntacticModifierFlagsNoCache=Nr,e.modifiersToFlags=wr,e.modifierToFlag=Fr,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=Pr,e.isLogicalOrCoalescingAssignmentExpression=function(e){return Pr(e.operatorToken.kind)},e.isAssignmentOperator=Ir,e.tryGetClassExtendingExpressionWithTypeArguments=Or,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Lr,e.isAssignmentExpression=Mr,e.isLeftHandSideOfAssignment=function(e){return Mr(e.parent)&&e.parent.left===e},e.isDestructuringAssignment=function(e){if(Mr(e,!0)){var t=e.left.kind;return 203===t||202===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Rr,e.isEntityNameExpression=Br,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+"."+B(r.name)}else if(e.isElementAccessExpression(r)){var n;if(void 0!==(n=t(r.expression))&&e.isPropertyName(r.argumentExpression))return n+"."+St(r.argumentExpression)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=Jr,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&&vr(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,l=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>=l?i=a=64:c+2>=l&&(a=64),o+=Ur.charAt(r)+Ur.charAt(n)+Ur.charAt(i)+Ur.charAt(a),c+=3;return o}function zr(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t||-1===r),{pos:t,end:r}}function Gr(e,t){return zr(t,e.end)}function Wr(e){return e.decorators&&e.decorators.length>0?Gr(e,e.decorators.end):e}function qr(e,t,r){return Hr(Yr(e,r,!1),t.end,r)}function Hr(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function Yr(t,r,n){return ai(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function Xr(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:case 202: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&&Ir(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);default:return 0}function c(){return r.parent&&236===ot(r.parent).kind?1:2}}function $r(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 en(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find(e.isClassLike)}function tn(e){return 204===e.kind||205===e.kind}function rn(e){for(;tn(e);)e=e.expression;return e}function nn(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 an(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function on(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function sn(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 cn(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 un(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function _n(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.checkDefined(r[+i+n])}))}function dn(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function pn(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function fn(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=_n(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function mn(e){var t=dn(e);return arguments.length>1&&(t=_n(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 yn(e){return e.file?e.file.path:void 0}function hn(t,r){return vn(t,r)||function(t,r){return t.relatedInformation||r.relatedInformation?t.relatedInformation&&r.relatedInformation?e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,(function(e,t){return hn(e,r.relatedInformation[t])}))||0:t.relatedInformation?-1:1:0}(t,r)||0}function vn(t,r){return e.compareStringsCaseSensitive(yn(t),yn(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 Dn(t){return"number"==typeof t.module?t.module:xn(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Sn(e){return!(!e.declaration&&!e.composite)}function En(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Cn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Tn(e,t){return t.strictFlag?En(e,t.name):e[t.name]}function kn(t,r,n,i){for(var a=e.getPathComponents(e.getNormalizedAbsolutePath(t,n)),o=e.getPathComponents(e.getNormalizedAbsolutePath(r,n)),s=!1;!An(a[a.length-2],i)&&!An(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 An(t,r){return"node_modules"===r(t)||e.startsWith(t,"@")}e.convertToBase64=Kr,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Kr(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,u=(15&o)<<4|s>>2&15,_=(3&s)<<6|63&c;0===u&&0!==s?n.push(l):0===_&&0!==c?n.push(l,u):n.push(l,u,_),i+=4}return function(e){for(var t="",r=0,n=e.length;r0?Gr(e,e.modifiers.end):Wr(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return zr(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return qr(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return Hr(Yr(e,r,!1),Yr(t,r,!1),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return Hr(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=qr,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return Hr(e.end,Yr(t,r,!1),r)},e.getLinesBetweenRangeEndAndRangeStart=function(t,r,n,i){var a=Yr(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!Hr(e.pos,e.end,t)},e.positionsAreOnSameLine=Hr,e.getStartPositionOfRange=Yr,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i),o=function(t,r,n){for(void 0===r&&(r=0);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,Xr)},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=$r,e.mutateMap=function(e,t,r){$r(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=en(e);return!!t&&vr(t,128)}return!1},e.getClassLikeDeclarationOfSymbol=en,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){p(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(p(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=tn,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=rn,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 sn},getTokenConstructor:function(){return cn},getIdentifierConstructor:function(){return ln},getPrivateIdentifierConstructor:function(){return sn},getSourceFileConstructor:function(){return sn},getSymbolConstructor:function(){return nn},getTypeConstructor:function(){return an},getSignatureConstructor:function(){return on},getSourceMapSourceConstructor:function(){return un}},e.setObjectAllocator=function(t){e.objectAllocator=t},e.formatStringFromArgs=_n,e.setLocalizedDiagnosticMessages=function(t){e.localizedDiagnosticMessages=t},e.getLocaleSpecificMessage=dn,e.createDetachedDiagnostic=function(e,t,r,n){J(void 0,t,r);var i=dn(n);return arguments.length>4&&(i=_n(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=_n(r,arguments,2)),r},e.createCompilerDiagnostic=mn,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=dn(t);return arguments.length>2&&(r=_n(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=vn,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=xn,e.getEmitModuleKind=Dn,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=Dn(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.hasJsonModuleEmitEnabled=function(t){switch(Dn(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!(!Sn(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=Dn(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System},e.getEmitDeclarations=Sn,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=En,e.getAllowJSCompilerOption=Cn,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=Tn,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 Vn(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(Bn(n,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:Rn(n,o,"files"),includeDirectoryPattern:Rn(n,o,"directories"),excludePattern:Rn(r,o,"exclude"),basePaths:zn(t,n,i)}}function Kn(e,t){return new RegExp(e,t?"":"i")}function zn(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 $n(n,r);return 0},e.adjustExtensionPriority=$n,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var ei=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function ti(e){for(var t=0,r=ei;t=0)}function oi(e){return".ts"===e||".tsx"===e||".d.ts"===e}function si(t){return e.find(ei,(function(r){return e.fileExtensionIs(t,r)}))}function ci(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,ci)}function li(e,t){return e.pos=t,e}function ui(e,t){return e.end=t,e}function _i(e,t,r){return ui(li(e,t),r)}function di(e,t){return e&&t&&(e.parent=t),e}function pi(t){return!e.isOmittedExpression(t)}function fi(t){return e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))}e.removeFileExtension=ti,e.tryRemoveExtension=ri,e.removeExtension=ni,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,ei,!1)},e.tryParsePattern=ii,e.tryParsePatterns=function(t){return e.mapDefined(e.getOwnKeys(t),(function(e){return ii(e)}))},e.positionIsSynthesized=ai,e.extensionIsTS=oi,e.resolutionExtensionIsTSOrJson=function(e){return oi(e)||".json"===e},e.extensionFromPath=function(t){var r=si(t);return void 0!==r?r:e.Debug.fail("File "+t+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==si(e)},e.tryGetExtensionFromPath=si,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=ci,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 l=c>>>4,u=e.charCodeAt(s),_=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=_;var d=_>>>16;d&&(o[l+1]|=d)}for(var p="",f=o.length-1,g=!0;g;){var m=0;for(g=!1,l=f;l>=0;l--){var y=m<<16|o[l],h=y/10|0;o[l]=h,m=y-10*h,h&&!g&&(f=l,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(vr(e.parent,128))return!0;var t=e.parent.parent.kind;return 256===t||180===t}(t)||!(me(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 l=e.getExpressionPrecedence(c);switch(e.compareValues(l,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 u=a?i(a):0;if(e.isLiteralKind(u)&&u===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 l(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(219,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function u(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 u(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)}}}(u||(u={})),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);return e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0),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}}(u||(u={})),function(e){var t,r,n=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 Lt(t,e,r)}})),h=e.memoizeOne((function(e){return function(t){return It(e,t)}})),b=e.memoizeOne((function(e){return function(t){return Ot(t,e)}})),x=e.memoizeOne((function(e){return function(){return function(e){return w(e)}(e)}})),D=e.memoizeOne((function(e){return function(t){return $r(e,t)}})),S=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?f($r(e,r),t):t}(e,t,r)}})),E=e.memoizeOne((function(e){return function(t,r){return bn(e,t,r)}})),C=e.memoizeOne((function(e){return function(t,r,n){return function(e,t,r,n){return void 0===r&&(r=an(t)),t.tagName!==r||t.comment!==n?f(bn(e,r,n),t):t}(e,t,r,n)}})),T=e.memoizeOne((function(e){return function(t,r,n){return xn(e,t,r,n)}})),k=e.memoizeOne((function(e){return function(t,r,n,i){return function(e,t,r,n,i){return void 0===r&&(r=an(t)),t.tagName!==r||t.typeExpression!==n||t.comment!==i?f(xn(e,r,n,i),t):t}(e,t,r,n,i)}})),A={get parenthesizer(){return g()},get converters(){return m()},createNodeArray:N,createNumericLiteral:K,createBigIntLiteral:z,createStringLiteral:W,createStringLiteralFromNode:function(t){var r=G(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:q,createLiteralLikeNode:function(e,t){switch(e){case 8:return K(t,0);case 9:return z(t);case 10:return W(t,void 0);case 11:return wn(t,!1);case 12:return wn(t,!0);case 13:return q(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:Q,createLoopVariable:function(e){var t=2;return e&&(t|=8),Y("",t)},createUniqueName:function(t,r){return void 0===r&&(r=0),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:Z,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:le,updateParameterDeclaration:ue,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:he,updateMethodDeclaration:ve,createConstructorDeclaration:xe,updateConstructorDeclaration:De,createGetAccessorDeclaration:Se,updateGetAccessorDeclaration:Ee,createSetAccessorDeclaration:Ce,updateSetAccessorDeclaration:Te,createCallSignature:ke,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?L(ke(t,r,n),e):e},createConstructSignature:Ae,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?L(Ae(t,r,n),e):e},createIndexSignature:Ne,updateIndexSignature:we,createClassStaticBlockDeclaration:be,updateClassStaticBlockDeclaration:function(e,t,r,n){return e.decorators!==t||e.modifier!==r||e.body!==n?f(be(t,r,n),e):e},createTemplateLiteralTypeSpan:Fe,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?f(Fe(t,r),e):e},createKeywordTypeNode:function(e){return ee(e)},createTypePredicateNode:Pe,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?f(Pe(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?L(Oe(t,r,n),e):e},createConstructorTypeNode:Le,updateConstructorTypeNode:function(){for(var t=[],r=0;r10?Hn(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){return t&&e.hasSyntacticModifier(r,1)?ii(t,ri(r),n,i):ni(r,n,i)},restoreOuterExpressions:function t(r,n,i){return void 0===i&&(i=15),r&&e.isOuterExpression(r,i)&&(a=r,!(e.isParenthesizedExpression(a)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a)))?function(e,t){switch(e.kind){case 210:return Et(e,t);case 209:return Dt(e,e.type,t);case 227:return qt(e,t,e.type);case 228:return Yt(e,t);case 345:return Wn(e,t)}}(r,t(r.expression,n)):n;var a},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);return i&&i(n),a},createUseStrictPrologue:ai,copyPrologue:function(e,t,r,n){return si(e,t,oi(e,t,r),n)},copyStandardPrologue:oi,copyCustomPrologue:si,ensureUseStrict:function(t){return e.findUseStrictPrologue(t)?t:e.setTextRange(N(i([ai()],t,!0)),t)},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(t,r){if(!e.some(r))return t;var n=ci(t,e.isPrologueDirective,0),a=ci(t,e.isHoistedFunction,n),o=ci(t,e.isHoistedVariableStatement,a),s=ci(r,e.isPrologueDirective,0),c=ci(r,e.isHoistedFunction,s),l=ci(r,e.isHoistedVariableStatement,c),u=ci(r,e.isCustomPrologue,l);e.Debug.assert(u===r.length,"Expected declarations to be valid standard or custom prologues");var _=e.isNodeArray(t)?t.slice():t;if(u>l&&_.splice.apply(_,i([o,0],r.slice(l,u),!1)),l>c&&_.splice.apply(_,i([a,0],r.slice(c,l),!1)),c>s&&_.splice.apply(_,i([n,0],r.slice(s,c),!1)),s>0)if(0===n)_.splice.apply(_,i([0,0],r.slice(0,s),!1));else{for(var d=new e.Map,p=0;p=0;p--){var g=r[p];d.has(g.expression.text)||_.unshift(g)}}return e.isNodeArray(t)?e.setTextRange(N(_,t.hasTrailingComma),t):t},updateModifiers:function(t,r){var n;return"number"==typeof r&&(r=ae(r)),e.isParameter(t)?ue(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)?ve(t,t.decorators,r,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?De(t,t.decorators,r,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Ee(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)?we(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)?zt(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)?Cr(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)?Nr(t,t.decorators,r,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Fr(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)?qr(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 N(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 w(e){return a.createBaseNode(e)}function F(e,t,r){var n=w(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 P(t,r,n,i){var a=F(t,r,n);if(i=ui(i),a.name=i,i)switch(a.kind){case 167:case 170:case 171:case 165:case 291:if(e.isIdentifier(i)){a.transformFlags|=u(i);break}default:a.transformFlags|=_(i)}return a}function I(e,t,r,n,i){var a=P(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=N(a),s.type=o,s.transformFlags|=d(s.parameters)|_(s.type),o&&(s.transformFlags|=1),s}function L(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),f(e,t)}function M(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),L(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=N(o),s.transformFlags|=d(s.members),s}function J(e,t,r,n,i){var a=P(e,t,r,n);return a.initializer=i,a.transformFlags|=_(a.initializer),a}function V(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 U(e,t){var r=$(e);return r.text=t,r}function K(e,t){void 0===t&&(t=0);var r=U(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=512),r}function z(t){var r=U(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function G(e,t){var r=U(10,e);return r.singleQuote=t,r}function W(e,t,r){var n=G(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=512),n}function q(e){return U(13,e)}function H(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=H(e,void 0);return r.autoGenerateFlags=t,r.autoGenerateId=n,n++,r}function X(e,t,r){var n=H(e,r);return t&&(n.typeArguments=N(t)),131===n.originalKeywordKind&&(n.transformFlags|=16777216),n}function Q(e,t){var r=1;t&&(r|=8);var n=Y("",r);return e&&e(n),n}function Z(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 $(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=$(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=w(159);return r.left=e,r.right=ui(t),r.transformFlags|=_(r.left)|u(r.right),r}function se(e){var t=w(160);return t.expression=g().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=66048|_(t.expression),t}function ce(e,t,r){var n=P(161,void 0,void 0,e);return n.constraint=t,n.default=r,n.transformFlags=1,n}function le(t,r,n,i,a,o,s){var c=V(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 ue(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(le(t,r,n,i,a,o,s),e):e}function _e(e){var t=w(163);return t.expression=g().parenthesizeLeftSideOfAccess(e),t.transformFlags|=4097|_(t.expression),t}function de(e,t,r,n){var i=P(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=V(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?L(me(t,r,n,i,a,o),e):e}function he(t,r,n,i,a,o,s,c,l){var u=M(167,t,r,i,o,s,c,l);return u.asteriskToken=n,u.questionToken=a,u.transformFlags|=_(u.asteriskToken)|_(u.questionToken)|512,a&&(u.transformFlags|=1),256&e.modifiersToFlags(u.modifiers)?u.transformFlags|=n?64:128:n&&(u.transformFlags|=1024),u}function ve(e,t,r,n,i,a,o,s,c,l){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!==l?R(he(t,r,n,i,a,o,s,c,l),e):e}function be(e,t,r){var n=I(168,e,t,void 0,void 0);return n.body=r,n.transformFlags=8388608|_(r),n}function xe(e,t,r,n){var i=M(169,e,t,void 0,void 0,r,void 0,n);return i.transformFlags|=512,i}function De(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?R(xe(t,r,n,i),e):e}function Se(e,t,r,n,i,a){return M(170,e,t,r,void 0,n,i,a)}function Ee(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 Ce(e,t,r,n,i){return M(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(Ce(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 Ne(e,t,r,n){var i=O(174,e,t,void 0,void 0,r,n);return i.transformFlags=1,i}function we(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?L(Ne(t,r,n,i),e):e}function Fe(e,t){var r=w(197);return r.type=e,r.literal=t,r.transformFlags=1,r}function Pe(e,t,r){var n=w(175);return n.assertsModifier=e,n.parameterName=ui(t),n.type=r,n.transformFlags=1,n}function Ie(e,t){var r=w(176);return r.typeName=ui(e),r.typeArguments=t&&g().parenthesizeTypeArguments(N(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 Le(){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 Z(t)}function ni(e,t,r){return ri(e,t,r,8192)}function ii(t,r,n,i){var a=ut(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(){return e.startOnNewLine(ir(W("use strict")))}function oi(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,a=!1,o=0,s=t.length;o=175&&e<=198)return-2;switch(e){case 206:case 207:case 202:case 199:case 200:return 536887296;case 259:return 589443072;case 162:case 209:case 227:case 345:case 210:case 106:case 204:case 205:default: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}}e.getTransformFlagsSubtreeExclusions=f;var g=e.createBaseNodeFactory();function m(e){return e.flags|=8,e}var y,h={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 v(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,l=t.constantValue,u=t.helpers,_=t.startsOnNewLine;if(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){for(var r in t||(t=[]),e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges)),void 0!==l&&(r.constantValue=l),u)for(var d=0,p=u;d0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e}}(u||(u={})),function(e){function t(e){for(var t=[],r=1;r=2?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(e.assignHelper),r.createCallExpression(o("__assign"),void 0,n))},createAwaitHelper:function(n){return t.requestEmitHelper(e.awaitHelper),r.createCallExpression(o("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,i){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(n.emitNode||(n.emitNode={})).flags|=786432,r.createCallExpression(o("__asyncGenerator"),void 0,[i?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),r.createCallExpression(o("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return t.requestEmitHelper(e.asyncValues),r.createCallExpression(o("__asyncValues"),void 0,[n])},createRestHelper:function(n,i,a,s){t.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u= 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 r||(r=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:t(o(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(o(["\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}}(u||(u={})),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}}(u||(u={})),function(e){function t(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 r(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function n(t,i,a){if(e.isQualifiedName(i)){var o=n(t,i.left,a),s=t.createIdentifier(e.idText(i.right));return s.escapedText=i.right.escapedText,t.createPropertyAccessExpression(o,s)}return r(e.idText(i),a)}function a(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,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 l(e,t){for(void 0===t&&(t=15);c(e,t);)e=e.expression;return e}function u(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,l=a;c0)if(c.length>1)for(var f=0,g=c;f=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext){var u=e.getEmitHelpers(n);if(u){for(var _=[],p=0,f=u;p0?o[n-1]:void 0;return e.Debug.assertEqual(i[n],r),o[n]=t.onEnter(a[n],u,l),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?(u(r,a,d),l(r,i,a,o,d)):r}function i(t,r,n,a,o,s,l){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?(u(r,i,d),l(r,n,i,o,d)):r}function o(t,r,n,i,a,s,l){e.Debug.assertEqual(n[r],o),n[r]=c(t,o);var u=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],u,_)}}else s.value=u;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 l(e,t,n,i,a){return t[++e]=r,n[e]=a,i[e]=void 0,e}function u(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}(y||(y={}));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){for(var n={value:void 0},i=[y.enter],a=[t],o=[void 0],c=0;i[c]!==y.done;)c=i[c](s,c,i,a,o,n,r);return e.Debug.assertEqual(c,0),n.value}}}(u||(u={})),function(e){e.setTextRange=function(t,r){return r?e.setTextRangePosEnd(t,r.pos,r.end):t}}(u||(u={})),function(e){var t,r,n,a,o,s,c,l,u;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"}(t||(t={})),function(e){e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"}(r||(r={})),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(n||(n=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 l;if(l=r(o,s)){if("skip"===l)continue;return l}if(o.kind>=159)for(var u=0,_=g(o);u<_.length;u++){var d=_[u];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?l.parseSourceFile(t,r,n,void 0,i,6):l.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 l.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return l.parseJsonText(e,t)},e.isExternalModule=m,e.updateSourceFile=function(e,t,r,n){void 0===n&&(n=!1);var i=u.updateSourceFile(e,t,r,n);return i.flags|=3145728&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=l.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&l.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return l.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,a,o,s,c=e.createScanner(99,!0);function l(e){return A++,e}var _,d,g,b,x,D,S,E,C,k,A,N,w,F,P,I,O,L={createBaseSourceFileNode:function(e){return l(new s(e,0,0))},createBaseIdentifierNode:function(e){return l(new a(e,0,0))},createBasePrivateIdentifierNode:function(e){return l(new o(e,0,0))},createBaseTokenNode:function(e){return l(new n(e,0,0))},createBaseNode:function(e){return l(new r(e,0,0))}},M=e.createNodeFactory(11,L),R=!0,B=!1;function j(t,r,n,i,a){void 0===n&&(n=2),void 0===a&&(a=!1),J(t,r,n,i,6),d=O,he();var o,s,c=pe();if(1===ge())o=We([],c,c),s=Ue();else{for(var l=void 0;1!==ge();){var u=void 0;switch(ge()){case 22:u=En();break;case 110:case 95:case 104:u=Ue();break;case 40:u=ke((function(){return 8===he()&&58!==he()}))?Zr():Tn();break;case 8:case 10:if(ke((function(){return 58!==he()}))){u=Lt();break}default:u=Tn()}l&&e.isArray(l)?l.push(u):l?l=[l,u]:(l=u,1!==ge()&&ce(e.Diagnostics.Unexpected_token))}var _=e.isArray(l)?qe(M.createArrayLiteralExpression(l),c):e.Debug.checkDefined(l),p=M.createExpressionStatement(_);qe(p,c),o=We([p],c),s=Ve(1,e.Diagnostics.Unexpected_token)}var f=q(t,2,6,!1,o,s,d);a&&W(f),f.nodeCount=A,f.identifierCount=F,f.identifiers=N,f.parseDiagnostics=e.attachFileToDiagnostics(S,f),E&&(f.jsDocDiagnostics=e.attachFileToDiagnostics(E,f));var g=f;return V(),g}function J(t,i,l,u,p){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),a=e.objectAllocator.getIdentifierConstructor(),o=e.objectAllocator.getPrivateIdentifierConstructor(),s=e.objectAllocator.getSourceFileConstructor(),_=e.normalizePath(t),g=i,b=l,C=u,x=p,D=e.getLanguageVariant(p),S=[],P=0,N=new e.Map,w=new e.Map,F=0,A=0,d=0,R=!0,x){case 1:case 2:O=131072;break;case 6:O=33685504;break;default:O=0}B=!1,c.setText(g),c.setOnError(de),c.setScriptTarget(b),c.setLanguageVariant(D)}function V(){c.clearCommentDirectives(),c.setText(""),c.setOnError(void 0),g=void 0,b=void 0,C=void 0,x=void 0,D=void 0,d=0,S=void 0,E=void 0,P=0,N=void 0,I=void 0,R=!0}function U(t,r,n){var i=y(_);i&&(O|=8388608),d=O,he();var a=vt(0,Vn);e.Debug.assert(1===ge());var o=G(Ue()),s=q(_,t,n,i,a,o,d);return h(s,g),v(s,(function(t,r,n){S.push(e.createDetachedDiagnostic(_,t,r,n))})),s.commentDirectives=c.getCommentDirectives(),s.nodeCount=A,s.identifierCount=F,s.identifiers=N,s.parseDiagnostics=e.attachFileToDiagnostics(S,s),E&&(s.jsDocDiagnostics=e.attachFileToDiagnostics(E,s)),r&&W(s),s}function K(e,t){return t?G(e):e}t.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}J(t,r,n,i,o);var l=U(n,a,o);return V(),l},t.parseIsolatedEntityName=function(e,t){J("",e,t,void 0,1),he();var r=At(!0),n=1===ge()&&!S.length;return V(),n?r:void 0},t.parseJsonText=j;var z=!1;function G(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,g),(function(e){return Oe.parseJSDocComment(t,e.pos,e.end-e.pos)}));return r.length&&(t.jsDoc=r),z&&(z=!1,t.flags|=134217728),t}function W(t){e.setParentRecursive(t,!0)}function q(t,r,n,i,a,o,s){var l=M.createSourceFile(a,o,s);return e.setTextRangePosWidth(l,0,g.length),function(t){t.externalModuleIndicator=e.forEach(t.statements,Ii)||function(e){return 2097152&e.flags?Oi(e):void 0}(t)}(l),!i&&m(l)&&16777216&l.transformFlags&&(l=function(t){var r=C,n=u.createSyntaxCursor(t);C={currentNode:function(e){var t=n.currentNode(e);return R&&t&&p(t)&&(t.intersectsChange=!0),t}};var i=[],a=S;S=[];for(var o=0,s=f(t.statements,0),l=function(){var r=t.statements[o],n=t.statements[s];e.addRange(i,t.statements,o,s),o=g(t.statements,s);var l=e.findIndex(a,(function(e){return e.start>=r.pos})),u=l>=0?e.findIndex(a,(function(e){return e.start>=n.pos}),l):-1;l>=0&&e.addRange(S,a,l,u>=0?u:void 0),Te((function(){var e=O;for(O|=32768,c.setTextPos(n.pos),he();1!==ge();){var r=c.getStartPos(),a=bt(0,Vn);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))}}O=e}),2),s=o>=0?f(t.statements,o):-1};-1!==s;)l();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(S,a,d)}return C=r,M.updateSourceFile(t,e.setTextRange(M.createNodeArray(i),t.statements));function p(e){return!(32768&e.flags||!(16777216&e.transformFlags))}function f(e,t){for(var r=t;r116}function we(){return 79===ge()||(125!==ge()||!ie())&&(131!==ge()||!se())&&ge()>116}function Fe(t,r,n){return void 0===n&&(n=!0),ge()===t?(n&&he(),!0):(r?ce(r):ce(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}t.fixupParentReferences=W;var Pe,Ie,Oe,Le=Object.keys(e.textToKeywordObj).filter((function(e){return e.length>2}));function Me(t){var r;if(e.isTaggedTemplateExpression(t))ue(e.skipTrivia(g,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(g,t.pos);switch(n){case"const":case"let":case"var":return void ue(i,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Re(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void ue(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 Re(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Re(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)}}(n);a?ue(i,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==ge()&&ue(i,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else ce(e.Diagnostics._0_expected,e.tokenToString(26))}}function Re(t,r,n){ge()===n?ce(r):ce(t,e.tokenToString(ge()))}function Be(t){return ge()===t?(ve(),!0):(ce(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function je(e){return ge()===e&&(he(),!0)}function Je(e){if(ge()===e)return Ue()}function Ve(t,r,n){return Je(t)||He(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function Ue(){var e=pe(),t=ge();return he(),qe(M.createToken(t),e)}function Ke(){return 26===ge()||19===ge()||1===ge()||c.hasPrecedingLineBreak()}function ze(){return!!Ke()&&(26===ge()&&he(),!0)}function Ge(){return ze()||Fe(26)}function We(t,r,n,i){var a=M.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:c.getStartPos()),a}function qe(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:c.getStartPos()),O&&(t.flags|=O),B&&(B=!1,t.flags|=65536),t}function He(t,r,n,i){r?le(c.getStartPos(),0,n,i):n&&ce(n,i);var a=pe();return qe(79===t?M.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?M.createTemplateLiteralLikeNode(t,"","",void 0):8===t?M.createNumericLiteral("",void 0):10===t?M.createStringLiteral("",void 0):274===t?M.createMissingDeclaration():M.createToken(t),a)}function Ye(e){var t=N.get(e);return void 0===t&&N.set(e,t=e),t}function Xe(t,r,n){if(t){F++;var i=pe(),a=ge(),o=Ye(c.getTokenValue());return me(),qe(M.createIdentifier(o,void 0,a),i)}if(80===ge())return ce(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Xe(!0);if(0===ge()&&c.tryScan((function(){return 79===c.reScanInvalidIdentifier()})))return Xe(!0);F++;var s=1===ge(),l=c.isReservedWord(),u=c.getTokenText(),_=l?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return He(79,s,r||_,u)}function Qe(e){return Xe(Ne(),void 0,e)}function Ze(e,t){return Xe(we(),e,t)}function $e(t){return Xe(e.tokenIsIdentifierOrKeyword(ge()),t)}function et(){return e.tokenIsIdentifierOrKeyword(ge())||10===ge()||8===ge()}function tt(){return function(e){if(10===ge()||8===ge()){var t=Lt();return t.text=Ye(t.text),t}return e&&22===ge()?function(){var e=pe();Fe(22);var t=te(jr);return Fe(23),qe(M.createComputedPropertyName(t),e)}():80===ge()?rt():$e()}(!0)}function rt(){var e,t,r=pe(),n=M.createPrivateIdentifier((e=c.getTokenText(),void 0===(t=w.get(e))&&w.set(e,t=e),t));return he(),qe(n,r)}function nt(e){return ge()===e&&Ae(at)}function it(){return he(),!c.hasPrecedingLineBreak()&&ct()}function at(){switch(ge()){case 85:return 92===he();case 93:return he(),88===ge()?ke(lt):150===ge()?ke(st):ot();case 88:return lt();case 124:default:return it();case 135:case 147:return he(),ct()}}function ot(){return 41!==ge()&&127!==ge()&&18!==ge()&&ct()}function st(){return he(),ot()}function ct(){return 22===ge()||18===ge()||41===ge()||25===ge()||et()}function lt(){return he(),84===ge()||98===ge()||118===ge()||126===ge()&&ke(On)||130===ge()&&ke(Ln)}function ut(t,r){if(xt(t))return!0;switch(t){case 0:case 1:case 3:return!(26===ge()&&r)&&jn();case 2:return 82===ge()||88===ge();case 4:return ke(ar);case 5:return ke(oi)||26===ge()&&!r;case 6:return 22===ge()||et();case 12:switch(ge()){case 22:case 41:case 25:case 24:return!0;default:return et()}case 18:return et();case 9:return 22===ge()||25===ge()||et();case 7:return 18===ge()?ke(_t):r?we()&&!gt():Rr()&&!gt();case 8:return Hn();case 10:return 27===ge()||25===ge()||Hn();case 19:return we();case 15:switch(ge()){case 27:case 24:return!0}case 11:return 25===ge()||Br();case 16:return qt(!1);case 17:return qt(!0);case 20:case 21:return 27===ge()||Sr();case 22:return bi();case 23:return e.tokenIsIdentifierOrKeyword(ge());case 13:return e.tokenIsIdentifierOrKeyword(ge())||18===ge();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function _t(){if(e.Debug.assert(18===ge()),19===he()){var t=he();return 27===t||18===t||94===t||117===t}return!0}function dt(){return he(),we()}function pt(){return he(),e.tokenIsIdentifierOrKeyword(ge())}function ft(){return he(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ge())}function gt(){return(117===ge()||94===ge())&&ke(mt)}function mt(){return he(),Br()}function yt(){return he(),Sr()}function ht(e){if(1===ge())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===ge();case 3:return 19===ge()||82===ge()||88===ge();case 7:return 18===ge()||94===ge()||117===ge();case 8:return!!Ke()||!!Yr(ge())||38===ge();case 19:return 31===ge()||20===ge()||18===ge()||94===ge()||117===ge();case 11:return 21===ge()||26===ge();case 15:case 21:case 10:return 23===ge();case 17:case 16:case 18:return 21===ge()||23===ge();case 20:return 27!==ge();case 22:return 18===ge()||19===ge();case 13:return 31===ge()||43===ge();case 14:return 29===ge()&&ke(ki);default:return!1}}function vt(e,t){var r=P;P|=1<=0)}function Ct(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Tt(){var e=We([],pe());return e.isMissingList=!0,e}function kt(e,t,r,n){if(Fe(r)){var i=Et(e,t);return Fe(n),i}return Tt()}function At(e,t){for(var r=pe(),n=e?$e(t):Ze(t),i=pe();je(24);){if(29===ge()){n.jsdocDotPos=i;break}i=pe(),n=qe(M.createQualifiedName(n,wt(e,!1)),r)}return n}function Nt(e,t){return qe(M.createQualifiedName(e,t),e.pos)}function wt(t,r){if(c.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ge())&&ke(In))return He(79,!0,e.Diagnostics.Identifier_expected);if(80===ge()){var n=rt();return r?n:He(79,!0,e.Diagnostics.Identifier_expected)}return t?$e():Ze()}function Ft(e){var t=pe();return qe(M.createTemplateExpression(Mt(e),function(e){var t,r=pe(),n=[];do{t=Ot(e),n.push(t)}while(16===t.literal.kind);return We(n,r)}(e)),t)}function Pt(){var e=pe();return qe(M.createTemplateLiteralTypeSpan(Or(),It(!1)),e)}function It(t){return 19===ge()?(function(e){k=c.reScanTemplateToken(e)}(t),r=Rt(ge()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):Ve(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function Ot(e){var t=pe();return qe(M.createTemplateSpan(te(jr),It(e)),t)}function Lt(){return Rt(ge())}function Mt(t){t&&xe();var r=Rt(ge());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function Rt(t){var r=pe(),n=e.isTemplateLiteralKind(t)?M.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?M.createNumericLiteral(c.getTokenValue(),c.getNumericLiteralFlags()):10===t?M.createStringLiteral(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?M.createLiteralLikeNode(t,c.getTokenValue()):e.Debug.fail();return c.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(n.isUnterminated=!0),he(),qe(n,r)}function Bt(){return At(!0,e.Diagnostics.Type_expected)}function jt(){if(!c.hasPrecedingLineBreak()&&29===De())return kt(20,Or,29,31)}function Jt(){var e=pe();return qe(M.createTypeReferenceNode(Bt(),jt()),e)}function Vt(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||Vt(i);case 189:return Vt(t.type);default:return!1}}function Ut(){var e=pe();return he(),qe(M.createThisTypeNode(),e)}function Kt(){var e,t=pe();return 108!==ge()&&103!==ge()||(e=$e(),Fe(58)),qe(M.createParameterDeclaration(void 0,void 0,void 0,e,void 0,zt(),void 0),t)}function zt(){c.setInJSDocType(!0);var e=pe();if(je(140)){var t=M.createJSDocNamepathType(void 0);e:for(;;)switch(ge()){case 19:case 1:case 27:case 5:break e;default:ve()}return c.setInJSDocType(!1),qe(t,e)}var r=je(25),n=Pr();return c.setInJSDocType(!1),r&&(n=qe(M.createJSDocVariadicType(n),e)),63===ge()?(he(),qe(M.createJSDocOptionalType(n),e)):n}function Gt(){var e,t,r=pe(),n=Ze();je(94)&&(Sr()||!Br()?e=Or():t=$r());var i=je(63)?Or():void 0,a=M.createTypeParameterDeclaration(n,e,i);return a.expression=t,qe(a,r)}function Wt(){if(29===ge())return kt(19,Gt,29,31)}function qt(t){return 25===ge()||Hn()||e.isModifierKind(ge())||59===ge()||Sr(!t)}function Ht(){return Xt(!0)}function Yt(){return Xt(!1)}function Xt(t){var r=pe(),n=fe(),i=t?re(li):li();if(108===ge()){var a=M.createParameterDeclaration(i,void 0,void 0,Xe(!0),void 0,Mr(),void 0);return i&&_e(i[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),K(qe(a,r),n)}var o=R;R=!1;var s=_i(),c=K(qe(M.createParameterDeclaration(i,s,Je(25),function(t){var r=Yn(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(ge())&&he(),r}(s),Je(57),Mr(),Jr()),r),n);return R=o,c}function Qt(t,r){if(function(t,r){return 38===t?(Fe(t),!0):!!je(58)||!(!r||38!==ge())&&(ce(e.Diagnostics._0_expected,e.tokenToString(58)),he(),!0)}(t,r))return Pr()}function Zt(e){var t=ie(),r=se();X(!!(1&e)),Z(!!(2&e));var n=32&e?Et(17,Kt):Et(16,r?Ht:Yt);return X(t),Z(r),n}function $t(e){if(!Fe(20))return Tt();var t=Zt(e);return Fe(21),t}function er(){je(27)||Ge()}function tr(e){var t=pe(),r=fe();173===e&&Fe(103);var n=Wt(),i=$t(4),a=Qt(58,!0);return er(),K(qe(172===e?M.createCallSignature(n,i,a):M.createConstructSignature(n,i,a),t),r)}function rr(){return 22===ge()&&ke(nr)}function nr(){if(he(),25===ge()||23===ge())return!0;if(e.isModifierKind(ge())){if(he(),we())return!0}else{if(!we())return!1;he()}return 58===ge()||27===ge()||57===ge()&&(he(),58===ge()||27===ge()||23===ge())}function ir(e,t,r,n){var i=kt(16,Yt,22,23),a=Mr();return er(),K(qe(M.createIndexSignature(r,n,i,a),e),t)}function ar(){if(20===ge()||29===ge()||135===ge()||147===ge())return!0;for(var t=!1;e.isModifierKind(ge());)t=!0,he();return 22===ge()||(et()&&(t=!0,he()),!!t&&(20===ge()||29===ge()||57===ge()||58===ge()||27===ge()||Ke()))}function or(){if(20===ge()||29===ge())return tr(172);if(103===ge()&&ke(sr))return tr(173);var e=pe(),t=fe(),r=_i();return nt(135)?ai(e,t,void 0,r,170):nt(147)?ai(e,t,void 0,r,171):rr()?ir(e,t,void 0,r):function(e,t,r){var n,i=tt(),a=Je(57);if(20===ge()||29===ge()){var o=Wt(),s=$t(4),c=Qt(58,!0);n=M.createMethodSignature(r,i,a,o,s,c)}else c=Mr(),n=M.createPropertySignature(r,i,a,c),63===ge()&&(n.initializer=Jr());return er(),K(qe(n,e),t)}(e,t,r)}function sr(){return he(),20===ge()||29===ge()}function cr(){return 24===he()}function lr(){switch(he()){case 20:case 29:case 24:return!0}return!1}function ur(){var e;return Fe(18)?(e=vt(4,or),Fe(19)):e=Tt(),e}function _r(){return he(),39===ge()||40===ge()?143===he():(143===ge()&&he(),22===ge()&&dt()&&101===he())}function dr(){var t=pe();if(je(25))return qe(M.createRestTypeNode(Or()),t);var r=Or();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=M.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function pr(){return 58===he()||57===ge()&&58===he()}function fr(){return 25===ge()?e.tokenIsIdentifierOrKeyword(he())&&pr():e.tokenIsIdentifierOrKeyword(ge())&&pr()}function gr(){if(ke(fr)){var e=pe(),t=fe(),r=Je(25),n=$e(),i=Je(57);Fe(58);var a=dr();return K(qe(M.createNamedTupleMember(r,n,i,a),e),t)}return dr()}function mr(){var e=pe(),t=fe(),r=function(){var e;if(126===ge()){var t=pe();he(),e=We([qe(M.createToken(126),t)],t)}return e}(),n=je(103),i=Wt(),a=$t(4),o=Qt(38,!1),s=n?M.createConstructorTypeNode(r,i,a,o):M.createFunctionTypeNode(i,a,o);return n||(s.modifiers=r),K(qe(s,e),t)}function yr(){var e=Ue();return 24===ge()?void 0:e}function hr(e){var t=pe();e&&he();var r=110===ge()||95===ge()||104===ge()?Ue():Rt(ge());return e&&(r=qe(M.createPrefixUnaryExpression(40,r),t)),qe(M.createLiteralTypeNode(r),t)}function vr(){return he(),100===ge()}function br(){d|=1048576;var e=pe(),t=je(112);Fe(100),Fe(20);var r=Or();Fe(21);var n=je(24)?Bt():void 0,i=jt();return qe(M.createImportTypeNode(r,n,i,t),e)}function xr(){return he(),8===ge()||9===ge()}function Dr(){switch(ge()){case 129:case 153:case 148:case 145:case 156:case 149:case 132:case 151:case 142:case 146:return Ae(yr)||Jt();case 66:c.reScanAsteriskEqualsToken();case 41:return r=pe(),he(),qe(M.createJSDocAllType(),r);case 60:c.reScanQuestionToken();case 57:return function(){var e=pe();return he(),27===ge()||19===ge()||21===ge()||31===ge()||63===ge()||51===ge()?qe(M.createJSDocUnknownType(),e):qe(M.createJSDocNullableType(Or()),e)}();case 98:return function(){var e=pe(),t=fe();if(ke(Ci)){he();var r=$t(36),n=Qt(58,!1);return K(qe(M.createJSDocFunctionType(r,n),e),t)}return qe(M.createTypeReferenceNode($e(),void 0),e)}();case 53:return function(){var e=pe();return he(),qe(M.createJSDocNonNullableType(Dr()),e)}();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return hr();case 40:return ke(xr)?hr(!0):Jt();case 114:return Ue();case 108:var e=Ut();return 138!==ge()||c.hasPrecedingLineBreak()?e:(t=e,he(),qe(M.createTypePredicateNode(void 0,t,Or()),t.pos));case 112:return ke(vr)?br():function(){var e=pe();return Fe(112),qe(M.createTypeQueryNode(At(!0)),e)}();case 18:return ke(_r)?function(){var e,t=pe();Fe(18),143!==ge()&&39!==ge()&&40!==ge()||143!==(e=Ue()).kind&&Fe(143),Fe(22);var r,n=function(){var e=pe(),t=$e();Fe(101);var r=Or();return qe(M.createTypeParameterDeclaration(t,r,void 0),e)}(),i=je(127)?Or():void 0;Fe(23),57!==ge()&&39!==ge()&&40!==ge()||57!==(r=Ue()).kind&&Fe(57);var a=Mr();return Ge(),Fe(19),qe(M.createMappedTypeNode(e,n,i,r,a),t)}():function(){var e=pe();return qe(M.createTypeLiteralNode(ur()),e)}();case 22:return function(){var e=pe();return qe(M.createTupleTypeNode(kt(21,gr,22,23)),e)}();case 20:return function(){var e=pe();Fe(20);var t=Or();return Fe(21),qe(M.createParenthesizedType(t),e)}();case 100:return br();case 128:return ke(In)?function(){var e=pe(),t=Ve(128),r=108===ge()?Ut():Ze(),n=je(138)?Or():void 0;return qe(M.createTypePredicateNode(t,r,n),e)}():Jt();case 15:return function(){var e=pe();return qe(M.createTemplateLiteralType(Mt(!1),function(){var e,t=pe(),r=[];do{e=Pt(),r.push(e)}while(16===e.literal.kind);return We(r,t)}()),e)}();default:return Jt()}var t,r}function Sr(e){switch(ge()){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&&ke(xr);case 20:return!e&&ke(Er);default:return we()}}function Er(){return he(),21===ge()||qt(!1)||Sr()}function Cr(){var e,t=ge();switch(t){case 139:case 152:case 143:return function(e){var t=pe();return Fe(e),qe(M.createTypeOperatorNode(e,Cr()),t)}(t);case 136:return e=pe(),Fe(136),qe(M.createInferTypeNode(function(){var e=pe();return qe(M.createTypeParameterDeclaration(Ze(),void 0,void 0),e)}()),e)}return function(){for(var e=pe(),t=Dr();!c.hasPrecedingLineBreak();)switch(ge()){case 53:he(),t=qe(M.createJSDocNonNullableType(t),e);break;case 57:if(ke(yt))return t;he(),t=qe(M.createJSDocNullableType(t),e);break;case 22:if(Fe(22),Sr()){var r=Or();Fe(23),t=qe(M.createIndexedAccessTypeNode(t,r),e)}else Fe(23),t=qe(M.createArrayTypeNode(t),e);break;default:return t}return t}()}function Tr(t){if(wr()){var r=mr();return _e(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 kr(e,t,r){var n=pe(),i=51===e,a=je(e),o=a&&Tr(i)||t();if(ge()===e||a){for(var s=[o];je(e);)s.push(Tr(i)||t());o=qe(r(We(s,n)),n)}return o}function Ar(){return kr(50,Cr,M.createIntersectionTypeNode)}function Nr(){return he(),103===ge()}function wr(){return 29===ge()||!(20!==ge()||!ke(Fr))||103===ge()||126===ge()&&ke(Nr)}function Fr(){if(he(),21===ge()||25===ge())return!0;if(function(){if(e.isModifierKind(ge())&&_i(),we()||108===ge())return he(),!0;if(22===ge()||18===ge()){var t=S.length;return Yn(),t===S.length}return!1}()){if(58===ge()||27===ge()||57===ge()||63===ge())return!0;if(21===ge()&&(he(),38===ge()))return!0}return!1}function Pr(){var e=pe(),t=we()&&Ae(Ir),r=Or();return t?qe(M.createTypePredicateNode(void 0,t,r),e):r}function Ir(){var e=Ze();if(138===ge()&&!c.hasPrecedingLineBreak())return he(),e}function Or(){return $(40960,Lr)}function Lr(e){if(wr())return mr();var t=pe(),r=kr(51,Ar,M.createUnionTypeNode);if(!e&&!c.hasPrecedingLineBreak()&&je(94)){var n=Lr(!0);Fe(57);var i=Lr();Fe(58);var a=Lr();return qe(M.createConditionalTypeNode(r,n,i,a),t)}return r}function Mr(){return je(58)?Or():void 0}function Rr(){switch(ge()){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 ke(lr);default:return we()}}function Br(){if(Rr())return!0;switch(ge()){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!(ae()&&101===ge()||!(e.getBinaryOperatorPrecedence(ge())>0))||we()}}function jr(){var e=oe();e&&Q(!1);for(var t,r=pe(),n=Vr();t=Je(27);)n=Qr(n,t,Vr(),r);return e&&Q(!0),n}function Jr(){return je(63)?Vr():void 0}function Vr(){if(125===ge()&&(ie()||ke(Mn)))return function(){var e=pe();return he(),c.hasPrecedingLineBreak()||41!==ge()&&!Br()?qe(M.createYieldExpression(void 0,void 0),e):qe(M.createYieldExpression(Je(41),Vr()),e)}();var t=function(){var e=20===ge()||29===ge()||130===ge()?ke(Kr):38===ge()?1:0;if(0!==e)return 1===e?Wr(!0):Ae(zr)}()||function(){if(130===ge()&&1===ke(Gr)){var e=pe(),t=di();return Ur(e,Hr(0),t)}}();if(t)return t;var r=pe(),n=Hr(0);return 79===n.kind&&38===ge()?Ur(r,n,void 0):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(be())?Qr(n,Ue(),Vr(),r):function(t,r){var n,i=Je(57);return i?qe(M.createConditionalExpression(t,i,$(20480,Vr),n=Ve(58),e.nodeIsPresent(n)?Vr():He(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r):t}(n,r)}function Ur(t,r,n){e.Debug.assert(38===ge(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=M.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0);qe(i,r.pos);var a=We([i],i.pos,i.end),o=Ve(38),s=qr(!!n);return G(qe(M.createArrowFunction(n,void 0,a,void 0,o,s),t))}function Kr(){if(130===ge()){if(he(),c.hasPrecedingLineBreak())return 0;if(20!==ge()&&29!==ge())return 0}var t=ge(),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&&ke(dt))return 1;if(!we()&&108!==r)return 0;switch(he()){case 58:return 1;case 57:return he(),58===ge()||27===ge()||63===ge()||21===ge()?1:0;case 27:case 63:case 21:return 2}return 0}return e.Debug.assert(29===t),we()?1===D?ke((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 zr(){var t=c.getTokenPos();if(!(null==I?void 0:I.has(t))){var r=Wr(!1);return r||(I||(I=new e.Set)).add(t),r}}function Gr(){if(130===ge()){if(he(),c.hasPrecedingLineBreak()||38===ge())return 0;var e=Hr(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===ge())return 1}return 0}function Wr(t){var r,n=pe(),i=fe(),a=di(),o=e.some(a,e.isAsyncModifier)?2:0,s=Wt();if(Fe(20)){if(r=Zt(o),!Fe(21)&&!t)return}else{if(!t)return;r=Tt()}var c=Qt(58,!1);if(!c||t||!Vt(c)){var l=c&&e.isJSDocFunctionType(c);if(t||38===ge()||!l&&18===ge()){var u=ge(),_=Ve(38),d=38===u||18===u?qr(e.some(a,e.isAsyncModifier)):Ze();return K(qe(M.createArrowFunction(a,s,r,c,_,d),n),i)}}}function qr(e){if(18===ge())return wn(e?2:0);if(26!==ge()&&98!==ge()&&84!==ge()&&jn()&&(18===ge()||98===ge()||84===ge()||59===ge()||!Br()))return wn(16|(e?2:0));var t=R;R=!1;var r=e?re(Vr):$(32768,Vr);return R=t,r}function Hr(e){var t=pe();return Xr(e,$r(),t)}function Yr(e){return 101===e||158===e}function Xr(t,r,n){for(;;){be();var i=e.getBinaryOperatorPrecedence(ge());if(!(42===ge()?i>=t:i>t))break;if(101===ge()&&ae())break;if(127===ge()){if(c.hasPrecedingLineBreak())break;he(),a=r,o=Or(),r=qe(M.createAsExpression(a,o),a.pos)}else r=Qr(r,Ue(),Hr(i),n)}var a,o;return r}function Qr(e,t,r,n){return qe(M.createBinaryExpression(e,t,r),n)}function Zr(){var e=pe();return qe(M.createPrefixUnaryExpression(ge(),ye(en)),e)}function $r(){if(function(){switch(ge()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 131:return!1;case 29:if(1!==D)return!1;default:return!0}}()){var t=pe(),r=tn();return 42===ge()?Xr(e.getBinaryOperatorPrecedence(ge()),r,t):r}var n=ge(),i=en();if(42===ge()){t=e.skipTrivia(g,i.pos);var a=i.end;209===i.kind?ue(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):ue(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 en(){switch(ge()){case 39:case 40:case 54:case 53:return Zr();case 89:return e=pe(),qe(M.createDeleteExpression(ye(en)),e);case 112:return function(){var e=pe();return qe(M.createTypeOfExpression(ye(en)),e)}();case 114:return function(){var e=pe();return qe(M.createVoidExpression(ye(en)),e)}();case 29:return function(){var e=pe();Fe(29);var t=Or();Fe(31);var r=en();return qe(M.createTypeAssertion(t,r),e)}();case 131:if(131===ge()&&(se()||ke(Mn)))return function(){var e=pe();return qe(M.createAwaitExpression(ye(en)),e)}();default:return tn()}var e}function tn(){if(45===ge()||46===ge()){var t=pe();return qe(M.createPrefixUnaryExpression(ge(),ye(rn)),t)}if(1===D&&29===ge()&&ke(ft))return an(!0);var r=rn();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===ge()||46===ge())&&!c.hasPrecedingLineBreak()){var n=ge();return he(),qe(M.createPostfixUnaryExpression(r,n),r.pos)}return r}function rn(){var t,r=pe();return 100===ge()?ke(sr)?(d|=1048576,t=Ue()):ke(cr)?(he(),he(),t=qe(M.createMetaProperty(100,$e()),r),d|=2097152):t=nn():t=106===ge()?function(){var t=pe(),r=Ue();if(29===ge()){var n=pe();void 0!==Ae(bn)&&ue(n,pe(),e.Diagnostics.super_may_not_use_type_arguments)}return 20===ge()||24===ge()||22===ge()?r:(Ve(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),qe(M.createPropertyAccessExpression(r,wt(!0,!0)),t))}():nn(),hn(r,t)}function nn(){return gn(pe(),xn(),!0)}function an(t,r,n){var a,o=pe(),s=function(e){var t=pe();if(Fe(29),31===ge())return Ce(),qe(M.createJsxOpeningFragment(),t);var r,n=cn(),i=0==(131072&O)?vi():void 0,a=function(){var e=pe();return qe(M.createJsxAttributes(vt(13,un)),e)}();return 31===ge()?(Ce(),r=M.createJsxOpeningElement(n,i,a)):(Fe(43),Fe(31,void 0,!1)&&(e?he():Ce()),r=M.createJsxSelfClosingElement(n,i,a)),qe(r,t)}(t);if(278===s.kind){var c=sn(s),l=void 0,u=c[c.length-1];if(276===(null==u?void 0:u.kind)&&!T(u.openingElement.tagName,u.closingElement.tagName)&&T(s.tagName,u.closingElement.tagName)){var _=u.openingElement.end,d=qe(M.createJsxElement(u.openingElement,We([],_,_),qe(M.createJsxClosingElement(qe(M.createIdentifier(""),_,_)),_,_)),u.openingElement.pos,_);c=We(i(i([],c.slice(0,c.length-1),!0),[d],!1),c.pos,_),l=u.closingElement}else l=function(e,t){var r=pe();Fe(30);var n=cn();return Fe(31,void 0,!1)&&(t||!T(e.tagName,n)?he():Ce()),qe(M.createJsxClosingElement(n),r)}(s,t),T(s.tagName,l.tagName)||(n&&e.isJsxOpeningElement(n)&&T(l.tagName,n.tagName)?_e(s.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(g,s.tagName)):_e(l.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(g,s.tagName)));a=qe(M.createJsxElement(s,c,l),o)}else 281===s.kind?a=qe(M.createJsxFragment(s,sn(s),function(t){var r=pe();return Fe(30),e.tokenIsIdentifierOrKeyword(ge())&&_e(cn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),Fe(31,void 0,!1)&&(t?he():Ce()),qe(M.createJsxJsxClosingFragment(),r)}(t)),o):(e.Debug.assert(277===s.kind),a=s);if(t&&29===ge()){var p=void 0===r?a.pos:r,f=Ae((function(){return an(!0,p)}));if(f){var m=He(27,!1);return e.setTextRangePosWidth(m,f.pos,0),ue(e.skipTrivia(g,p),f.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),qe(M.createBinaryExpression(a,m,f),o)}}return a}function on(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))_e(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;ue(e.skipTrivia(g,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(g,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=pe(),a=M.createJsxText(c.getTokenValue(),12===k),k=c.scanJsxToken(),qe(a,i);case 18:return ln(!1);case 29:return an(!1,void 0,t);default:return e.Debug.assertNever(r)}var i,a}function sn(t){var r=[],n=pe(),i=P;for(P|=16384;;){var a=on(t,k=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 P=i,We(r,n)}function cn(){var e=pe();Ee();for(var t=108===ge()?Ue():$e();je(24);)t=qe(M.createPropertyAccessExpression(t,wt(!0,!1)),e);return t}function ln(e){var t,r,n=pe();if(Fe(18))return 19!==ge()&&(t=Je(25),r=jr()),e?Fe(19):Fe(19,void 0,!1)&&Ce(),qe(M.createJsxExpression(t,r),n)}function un(){if(18===ge())return function(){var e=pe();Fe(18),Fe(25);var t=jr();return Fe(19),qe(M.createJsxSpreadAttribute(t),e)}();Ee();var e=pe();return qe(M.createJsxAttribute($e(),63!==ge()?void 0:10===(k=c.scanJsxAttributeValue())?Lt():ln(!0)),e)}function _n(){return he(),e.tokenIsIdentifierOrKeyword(ge())||22===ge()||mn()}function dn(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 pn(t,r,n){var i=wt(!0,!0),a=n||dn(r),o=a?M.createPropertyAccessChain(r,n,i):M.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&_e(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),qe(o,t)}function fn(t,r,n){var i;if(23===ge())i=He(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=te(jr);e.isStringOrNumericLiteralLike(a)&&(a.text=Ye(a.text)),i=a}return Fe(23),qe(n||dn(r)?M.createElementAccessChain(r,n,i):M.createElementAccessExpression(r,i),t)}function gn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===ge()&&ke(_n)?(i=Ve(28),a=e.tokenIsIdentifierOrKeyword(ge())):a=je(24),a)r=pn(t,r,i);else if(i||53!==ge()||c.hasPrecedingLineBreak())if(!i&&oe()||!je(22)){if(!mn())return r;r=yn(t,r,i,void 0)}else r=fn(t,r,i);else he(),r=qe(M.createNonNullExpression(r),t)}}function mn(){return 14===ge()||15===ge()}function yn(e,t,r,n){var i=M.createTaggedTemplateExpression(t,n,14===ge()?(xe(),Lt()):Ft(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,qe(i,e)}function hn(t,r){for(;;){r=gn(t,r,!0);var n=Je(28);if(0!=(131072&O)||29!==ge()&&47!==ge()){if(20===ge()){a=vn(),r=qe(n||dn(r)?M.createCallChain(r,n,void 0,a):M.createCallExpression(r,void 0,a),t);continue}}else{var i=Ae(bn);if(i){if(mn()){r=yn(t,r,n,i);continue}var a=vn();r=qe(n||dn(r)?M.createCallChain(r,n,i,a):M.createCallExpression(r,i,a),t);continue}}if(n){var o=He(79,!1,e.Diagnostics.Identifier_expected);r=qe(M.createPropertyAccessChain(r,n,o),t)}break}return r}function vn(){Fe(20);var e=Et(11,Sn);return Fe(21),e}function bn(){if(0==(131072&O)&&29===De()){he();var e=Et(20,Or);if(Fe(31))return e&&function(){switch(ge()){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;default:return!1}}()?e:void 0}}function xn(){switch(ge()){case 8:case 9:case 10:case 14:return Lt();case 108:case 106:case 104:case 110:case 95:return Ue();case 20:return function(){var e=pe(),t=fe();Fe(20);var r=te(jr);return Fe(21),K(qe(M.createParenthesizedExpression(r),e),t)}();case 22:return En();case 18:return Tn();case 130:if(!ke(Ln))break;return kn();case 84:return gi(pe(),fe(),void 0,void 0,224);case 98:return kn();case 103:return function(){var t=pe();if(Fe(103),je(24)){var r=$e();return qe(M.createMetaProperty(103,r),t)}for(var n,i,a=pe(),o=xn();;){o=gn(a,o,!1),n=Ae(bn),mn()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=yn(a,o,void 0,n),n=void 0);break}return 20===ge()?i=vn():n&&ue(t,c.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),qe(M.createNewExpression(o,n,i),t)}();case 43:case 68:if(13===(k=c.reScanSlashToken()))return Lt();break;case 15:return Ft(!1)}return Ze(e.Diagnostics.Expression_expected)}function Dn(){return 25===ge()?function(){var e=pe();Fe(25);var t=Vr();return qe(M.createSpreadElement(t),e)}():27===ge()?qe(M.createOmittedExpression(),pe()):Vr()}function Sn(){return $(20480,Dn)}function En(){var e=pe();Fe(22);var t=c.hasPrecedingLineBreak(),r=Et(15,Dn);return Fe(23),qe(M.createArrayLiteralExpression(r,t),e)}function Cn(){var e=pe(),t=fe();if(Je(25)){var r=Vr();return K(qe(M.createSpreadAssignment(r),e),t)}var n=li(),i=_i();if(nt(135))return ai(e,t,n,i,170);if(nt(147))return ai(e,t,n,i,171);var a,o=Je(41),s=we(),c=tt(),l=Je(57),u=Je(53);if(o||20===ge()||29===ge())return ri(e,t,n,i,o,c,l,u);if(s&&58!==ge()){var _=Je(63),d=_?te(Vr):void 0;(a=M.createShorthandPropertyAssignment(c,d)).equalsToken=_}else{Fe(58);var p=te(Vr);a=M.createPropertyAssignment(c,p)}return a.decorators=n,a.modifiers=i,a.questionToken=l,a.exclamationToken=u,K(qe(a,e),t)}function Tn(){var t=pe(),r=c.getTokenPos();Fe(18);var n=c.hasPrecedingLineBreak(),i=Et(12,Cn,!0);if(!Fe(19)){var a=e.lastOrUndefined(S);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(_,r,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return qe(M.createObjectLiteralExpression(i,n),t)}function kn(){var t=oe();Q(!1);var r=pe(),n=fe(),i=_i();Fe(98);var a=Je(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?ee(40960,An):o?ee(8192,An):s?re(An):An(),l=Wt(),u=$t(o|s),_=Qt(58,!1),d=wn(o|s);return Q(t),K(qe(M.createFunctionExpression(i,a,c,l,u,_,d),r),n)}function An(){return Ne()?Qe():void 0}function Nn(t,r){var n=pe(),i=fe(),a=c.getTokenPos();if(Fe(18,r)||t){var o=c.hasPrecedingLineBreak(),s=vt(1,Vn);if(!Fe(19)){var l=e.lastOrUndefined(S);l&&l.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(l,e.createDetachedDiagnostic(_,a,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var u=K(qe(M.createBlock(s,o),n),i);return 63===ge()&&(ce(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()),u}return s=Tt(),K(qe(M.createBlock(s,void 0),n),i)}function wn(e,t){var r=ie();X(!!(1&e));var n=se();Z(!!(2&e));var i=R;R=!1;var a=oe();a&&Q(!1);var o=Nn(!!(16&e),t);return a&&Q(!0),R=i,X(r),Z(n),o}function Fn(e){var t=pe(),r=fe();Fe(244===e?81:86);var n=Ke()?void 0:Ze();return Ge(),K(qe(244===e?M.createBreakStatement(n):M.createContinueStatement(n),t),r)}function Pn(){return 82===ge()?function(){var e=pe();Fe(82);var t=te(jr);Fe(58);var r=vt(3,Vn);return qe(M.createCaseClause(t,r),e)}():function(){var e=pe();Fe(88),Fe(58);var t=vt(3,Vn);return qe(M.createDefaultClause(t),e)}()}function In(){return he(),e.tokenIsIdentifierOrKeyword(ge())&&!c.hasPrecedingLineBreak()}function On(){return he(),84===ge()&&!c.hasPrecedingLineBreak()}function Ln(){return he(),98===ge()&&!c.hasPrecedingLineBreak()}function Mn(){return he(),(e.tokenIsIdentifierOrKeyword(ge())||8===ge()||9===ge()||10===ge())&&!c.hasPrecedingLineBreak()}function Rn(){for(;;)switch(ge()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 150:return he(),!c.hasPrecedingLineBreak()&&we();case 140:case 141:return he(),!c.hasPrecedingLineBreak()&&(we()||10===ge());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===ge()||79===ge()||93===ge();case 100:return he(),10===ge()||41===ge()||18===ge()||e.tokenIsIdentifierOrKeyword(ge());case 93:var t=he();if(150===t&&(t=ke(he)),63===t||41===t||18===t||88===t||127===t)return!0;continue;case 124:he();continue;default:return!1}}function Bn(){return ke(Rn)}function jn(){switch(ge()){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:case 130:case 134:case 118:case 140:case 141:case 150:case 155:return!0;case 100:return Bn()||ke(lr);case 85:case 93:return Bn();case 123:case 121:case 122:case 124:case 143:return Bn()||!ke(In);default:return Br()}}function Jn(){return he(),Ne()||18===ge()||22===ge()}function Vn(){switch(ge()){case 26:return t=pe(),r=fe(),Fe(26),K(qe(M.createEmptyStatement(),t),r);case 18:return Nn(!1);case 113:return ei(pe(),fe(),void 0,void 0);case 119:if(ke(Jn))return ei(pe(),fe(),void 0,void 0);break;case 98:return ti(pe(),fe(),void 0,void 0);case 84:return fi(pe(),fe(),void 0,void 0);case 99:return function(){var e=pe(),t=fe();Fe(99),Fe(20);var r=te(jr);Fe(21);var n=Vn(),i=je(91)?Vn():void 0;return K(qe(M.createIfStatement(r,n,i),e),t)}();case 90:return function(){var e=pe(),t=fe();Fe(90);var r=Vn();Fe(115),Fe(20);var n=te(jr);return Fe(21),je(26),K(qe(M.createDoStatement(r,n),e),t)}();case 115:return function(){var e=pe(),t=fe();Fe(115),Fe(20);var r=te(jr);Fe(21);var n=Vn();return K(qe(M.createWhileStatement(r,n),e),t)}();case 97:return function(){var e=pe(),t=fe();Fe(97);var r,n,i=Je(131);if(Fe(20),26!==ge()&&(r=113===ge()||119===ge()||85===ge()?Zn(!0):ee(4096,jr)),i?Fe(158):je(158)){var a=te(Vr);Fe(21),n=M.createForOfStatement(i,r,a,Vn())}else if(je(101))a=te(jr),Fe(21),n=M.createForInStatement(r,a,Vn());else{Fe(26);var o=26!==ge()&&21!==ge()?te(jr):void 0;Fe(26);var s=21!==ge()?te(jr):void 0;Fe(21),n=M.createForStatement(r,o,s,Vn())}return K(qe(n,e),t)}();case 86:return Fn(243);case 81:return Fn(244);case 105:return function(){var e=pe(),t=fe();Fe(105);var r=Ke()?void 0:te(jr);return Ge(),K(qe(M.createReturnStatement(r),e),t)}();case 116:return function(){var e=pe(),t=fe();Fe(116),Fe(20);var r=te(jr);Fe(21);var n=ee(16777216,Vn);return K(qe(M.createWithStatement(r,n),e),t)}();case 107:return function(){var e=pe(),t=fe();Fe(107),Fe(20);var r=te(jr);Fe(21);var n=function(){var e=pe();Fe(18);var t=vt(2,Pn);return Fe(19),qe(M.createCaseBlock(t),e)}();return K(qe(M.createSwitchStatement(r,n),e),t)}();case 109:return function(){var e=pe(),t=fe();Fe(109);var r=c.hasPrecedingLineBreak()?void 0:te(jr);return void 0===r&&(F++,r=qe(M.createIdentifier(""),pe())),ze()||Me(r),K(qe(M.createThrowStatement(r),e),t)}();case 111:case 83:case 96:return function(){var e=pe(),t=fe();Fe(111);var r,n=Nn(!1),i=83===ge()?function(){var e,t=pe();Fe(83),je(20)?(e=Qn(),Fe(21)):e=void 0;var r=Nn(!1);return qe(M.createCatchClause(e,r),t)}():void 0;return i&&96!==ge()||(Fe(96),r=Nn(!1)),K(qe(M.createTryStatement(n,i,r),e),t)}();case 87:return function(){var e=pe(),t=fe();return Fe(87),Ge(),K(qe(M.createDebuggerStatement(),e),t)}();case 59:return Kn();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(Bn())return Kn()}var t,r;return function(){var t,r=pe(),n=fe(),i=20===ge(),a=te(jr);return e.isIdentifier(a)&&je(58)?t=M.createLabeledStatement(a,Vn()):(ze()||Me(a),t=M.createExpressionStatement(a),i&&(n=!1)),K(qe(t,r),n)}()}function Un(e){return 134===e.kind}function Kn(){var t=e.some(ke((function(){return li(),_i()})),Un);if(t){var r=ee(8388608,(function(){var e=xt(P);if(e)return Dt(e)}));if(r)return r}var n=pe(),i=fe(),a=li(),o=_i();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,l,u,d,f,m=[],y=[];return c.scanRange(t+3,i-5,(function(){var r,n,i=1,_=t-(a.lastIndexOf("\n",t)+1)+4;function p(e){r||(r=_),m.push(e),_+=e.length}for(ve();W(5););W(4)&&(i=0,_=0);e:for(;;){switch(ge()){case 59:0===i||1===i?(v(m),f||(f=pe()),(n=E(_))&&(s?s.push(n):(s=[n],l=n.pos),u=n.end),i=0,r=void 0):p(c.getTokenText());break;case 4:m.push(c.getTokenText()),i=0,_=0;break;case 41:var g=c.getTokenText();1===i||2===i?(i=2,p(g)):(i=1,_+=g.length);break;case 5:var b=c.getTokenText();2===i?m.push(b):void 0!==r&&_+b.length>r&&m.push(b.slice(r-_)),_+=b.length;break;case 1:break e;case 18:i=2;var x=c.getStartPos(),D=A(c.getTextPos()-1);if(D){d||h(m),y.push(qe(M.createJSDocText(m.join("")),null!=d?d:t,x)),y.push(D),m=[],d=c.getTextPos();break}default:i=2,p(c.getTokenText())}ve()}v(m),y.length&&m.length&&y.push(qe(M.createJSDocText(m.join("")),null!=d?d:t,f)),y.length&&s&&e.Debug.assertIsDefined(f,"having parsed tags implies that the end of the comment span should be set");var S=s&&We(s,l,u);return qe(M.createJSDocComment(y.length?We(y,t,f):m.length?m.join(""):void 0,S),t,o)}))}function h(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 b(){for(;;){if(ve(),1===ge())return!0;if(5!==ge()&&4!==ge())return!1}}function x(){if(5!==ge()&&4!==ge()||!ke(b))for(;5===ge()||4===ge();)ve()}function D(){if((5===ge()||4===ge())&&ke(b))return"";for(var e=c.hasPrecedingLineBreak(),t=!1,r="";e&&41===ge()||5===ge()||4===ge();)r+=c.getTokenText(),4===ge()?(e=!0,t=!0,r=""):41===ge()&&(e=!1),ve();return t?r:""}function E(t){e.Debug.assert(59===ge());var i=c.getTokenPos();ve();var a,o=q(void 0),l=D();switch(o.escapedText){case"author":a=function(t,r,n,i){var a=pe(),o=function(){for(var e=[],t=!1,r=c.getToken();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=ve()}return M.createJSDocText(e.join(""))}(),s=c.getStartPos(),l=C(t,s,n,i);l||(s=c.getStartPos());var u="string"!=typeof l?We(e.concatenate([qe(o,a,s)],l),a):o.text+l;return qe(M.createJSDocAuthorTag(r,u),t)}(i,o,t,l);break;case"implements":a=function(e,t,r,n){var i=R();return qe(M.createJSDocImplementsTag(t,i,C(e,pe(),r,n)),e)}(i,o,t,l);break;case"augments":case"extends":a=function(e,t,r,n){var i=R();return qe(M.createJSDocAugmentsTag(t,i,C(e,pe(),r,n)),e)}(i,o,t,l);break;case"class":case"constructor":a=B(i,M.createJSDocClassTag,o,t,l);break;case"public":a=B(i,M.createJSDocPublicTag,o,t,l);break;case"private":a=B(i,M.createJSDocPrivateTag,o,t,l);break;case"protected":a=B(i,M.createJSDocProtectedTag,o,t,l);break;case"readonly":a=B(i,M.createJSDocReadonlyTag,o,t,l);break;case"override":a=B(i,M.createJSDocOverrideTag,o,t,l);break;case"deprecated":z=!0,a=B(i,M.createJSDocDeprecatedTag,o,t,l);break;case"this":a=function(e,t,n,i){var a=r(!0);return x(),qe(M.createJSDocThisTag(t,a,C(e,pe(),n,i)),e)}(i,o,t,l);break;case"enum":a=function(e,t,n,i){var a=r(!0);return x(),qe(M.createJSDocEnumTag(t,a,C(e,pe(),n,i)),e)}(i,o,t,l);break;case"arg":case"argument":case"param":return O(i,o,2,t);case"return":case"returns":a=function(t,r,n,i){e.some(s,e.isJSDocReturnTag)&&ue(r.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=w();return qe(M.createJSDocReturnTag(r,a,C(t,pe(),n,i)),t)}(i,o,t,l);break;case"template":a=function(e,t,n,i){var a=18===ge()?r():void 0,o=function(){var e=pe(),t=[];do{x();var r=G();void 0!==r&&t.push(r),D()}while(W(27));return We(t,e)}();return qe(M.createJSDocTemplateTag(t,a,o,C(e,pe(),n,i)),e)}(i,o,t,l);break;case"type":a=L(i,o,t,l);break;case"typedef":a=function(t,r,n,i){var a,o=w();D();var s=j();x();var c,l=T(n);if(!o||I(o.type)){for(var u=void 0,d=void 0,p=void 0,f=!1;u=Ae((function(){return V(n)}));)if(f=!0,338===u.kind){if(d){ce(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var g=e.lastOrUndefined(S);g&&e.addRelatedInfo(g,e.createDetachedDiagnostic(_,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}d=u}else p=e.append(p,u);if(f){var m=o&&181===o.type.kind,y=M.createJSDocTypeLiteral(p,m);c=(o=d&&d.typeExpression&&!I(d.typeExpression.type)?d.typeExpression:qe(y,t)).end}}return c=c||void 0!==l?pe():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,l||(l=C(t,c,n,i)),qe(M.createJSDocTypedefTag(r,o,s,l),t,c)}(i,o,t,l);break;case"callback":a=function(t,r,n,i){var a=j();x();var o=T(n),s=function(t){for(var r,n,i=pe();r=Ae((function(){return U(4,t)}));)n=e.append(n,r);return We(n||[],i)}(n),c=Ae((function(){if(W(59)){var e=E(n);if(e&&336===e.kind)return e}})),l=qe(M.createJSDocSignature(void 0,s,c),t);return o||(o=C(t,pe(),n,i)),qe(M.createJSDocCallbackTag(r,l,a,o),t)}(i,o,t,l);break;case"see":a=function(t,r,i,a){var o=ke((function(){return 59===ve()&&e.tokenIsIdentifierOrKeyword(ve())&&"link"===c.getTokenValue()}))?void 0:n(),s=void 0!==i&&void 0!==a?C(t,pe(),i,a):void 0;return qe(M.createJSDocSeeTag(r,o,s),t)}(i,o,t,l);break;default:a=function(e,t,r,n){return qe(M.createJSDocUnknownTag(t,C(e,pe(),r,n)),e)}(i,o,t,l)}return a}function C(e,t,r,n){return n||(r+=t-e),T(r,n.slice(r))}function T(e,t){var r,n,i=pe(),a=[],o=[],s=0,l=!0;function u(t){n||(n=e),a.push(t),e+=t.length}void 0!==t&&(""!==t&&u(t),s=1);var _=ge();e:for(;;){switch(_){case 4:s=0,a.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!l||ke(k))){a.push(c.getTokenText());break}c.setTextPos(c.getTextPos()-1);case 1:break e;case 5:if(2===s||3===s)u(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(qe(M.createJSDocText(a.join("")),null!=r?r:i,p)),o.push(f),a=[],r=c.getTextPos()):u(c.getTokenText());break;case 61:s=3===s?2:3,u(c.getTokenText());break;case 41:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),u(c.getTokenText())}l=5===ge(),_=ve()}return h(a),v(a),o.length?(a.length&&o.push(qe(M.createJSDocText(a.join("")),null!=r?r:i)),We(o,i,c.getTextPos())):a.length?a.join(""):void 0}function k(){var e=ve();return 5===e||4===e}function A(t){var r=Ae(N);if(r){ve(),x();var n=pe(),i=e.tokenIsIdentifierOrKeyword(ge())?At(!0):void 0;if(i)for(;80===ge();)Se(),ve(),i=qe(M.createJSDocMemberName(i,Ze()),n);for(var a=[];19!==ge()&&4!==ge()&&1!==ge();)a.push(c.getTokenText()),ve();return qe(("link"===r?M.createJSDocLink:"linkcode"===r?M.createJSDocLinkCode:M.createJSDocLinkPlain)(i,a.join("")),t,c.getTextPos())}}function N(){if(D(),18===ge()&&59===ve()&&e.tokenIsIdentifierOrKeyword(ve())){var t=c.getTokenValue();if("link"===t||"linkcode"===t||"linkplain"===t)return t}}function w(){return D(),18===ge()?r():void 0}function P(){var t=W(22);t&&x();var r=W(61),n=function(){var e=q();for(je(22)&&Fe(23);je(24);){var t=q();je(22)&&Fe(23),e=Nt(e,t)}return e}();return r&&(function(e){if(ge()===e)return t=pe(),r=ge(),ve(),qe(M.createToken(r),t);var t,r}(61)||He(61,!1,e.Diagnostics._0_expected,e.tokenToString(61))),t&&(x(),Je(63)&&jr(),Fe(23)),{name:n,isBracketed:t}}function I(t){switch(t.kind){case 146:return!0;case 181:return I(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function O(t,r,n,i){var a=w(),o=!a;D();var s=P(),c=s.name,l=s.isBracketed,u=D();o&&!ke(N)&&(a=w());var _=C(t,pe(),i,u),d=4!==n&&function(t,r,n,i){if(t&&I(t.type)){for(var a=pe(),o=void 0,s=void 0;o=Ae((function(){return U(n,i,r)}));)335!==o.kind&&342!==o.kind||(s=e.append(s,o));if(s){var c=qe(M.createJSDocTypeLiteral(s,181===t.type.kind),a);return qe(M.createJSDocTypeExpression(c),a)}}}(a,c,n,i);return d&&(a=d,o=!0),qe(1===n?M.createJSDocPropertyTag(r,c,l,a,o,_):M.createJSDocParameterTag(r,c,l,a,o,_),t)}function L(t,n,i,a){e.some(s,e.isJSDocTypeTag)&&ue(n.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),l=void 0!==i&&void 0!==a?C(t,pe(),i,a):void 0;return qe(M.createJSDocTypeTag(n,o,l),t)}function R(){var e=je(18),t=pe(),r=function(){for(var e=pe(),t=q();je(24);){var r=q();t=qe(M.createPropertyAccessExpression(t,r),e)}return t}(),n=vi(),i=qe(M.createExpressionWithTypeArguments(r,n),t);return e&&Fe(19),i}function B(e,t,r,n,i){return qe(t(r,C(e,pe(),n,i)),e)}function j(t){var r=c.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ge())){var n=q();if(je(24)){var i=j(!0);return qe(M.createModuleDeclaration(void 0,void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function J(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 V(e){return U(1,e)}function U(t,r,n){for(var i=!0,a=!1;;)switch(ve()){case 59:if(i){var o=K(t,r);return!(o&&(335===o.kind||342===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!J(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 K(t,r){e.Debug.assert(59===ge());var n=c.getStartPos();ve();var i,a=q();switch(x(),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)&&O(n,a,t,r)}function G(){var t=pe(),r=q(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(!e.nodeIsMissing(r))return qe(M.createTypeParameterDeclaration(r,void 0,void 0),t)}function W(e){return ge()===e&&(ve(),!0)}function q(t){if(!e.tokenIsIdentifierOrKeyword(ge()))return He(79,!t,t||e.Diagnostics.Identifier_expected);F++;var r=c.getTokenPos(),n=c.getTextPos(),i=ge(),a=Ye(c.getTokenValue()),o=qe(M.createIdentifier(a,void 0,i),r,n);return ve(),o}}t.parseJSDocTypeExpressionForTests=function(t,n,i){J("file.js",t,99,void 0,1),c.setText(t,n,i),k=c.scan();var a=r(),o=q("file.js",99,1,!1,[],M.createToken(1),0),s=e.attachFileToDiagnostics(S,o);return E&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(E,o)),V(),a?{jsDocTypeExpression:a,diagnostics:s}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=function(t,r,n){J("",t,99,void 0,1);var i=ee(4194304,(function(){return o(r,n)})),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(S,a);return V(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(t,r,n){var i=k,a=S.length,s=B,c=ee(4194304,(function(){return o(r,n)}));return e.setParent(c,t),131072&O&&(E||(E=[]),E.push.apply(E,S)),k=i,S.length=a,B=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={}))}(Oe=t.JSDocParser||(t.JSDocParser={}))}(l||(l={})),function(t){function r(t,r,i,o,s,c){return void(r?u(t):l(t));function l(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,l,u),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;a=i.pos&&(i=a),rr),!0)})),n){var a=function(t){for(;;){var r=e.getLastChild(t);if(!r)return t;t=r}}(n);a.pos>i.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),l=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===l)}}function c(t){var r=t.statements,n=0;e.Debug.assert(n=t.pos&&e=t.pos&&e0&&i<=1;i++){var a=o(t,n);e.Debug.assert(a.pos<=n);var s=a.pos;n=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),l=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,l)}(t,u);s(t,n,m,_),e.Debug.assert(m.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var y=e.textChangeRangeNewSpan(m).length-m.span.length;!function(t,n,o,s,c,l,u,_){return void d(t);function d(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,l,u,_);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,l,u,_);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};l=e.append(l,m),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(m.range.pos,m.range.end))}}return y(),l;function y(){u||(u=!0,l?r&&l.push.apply(l,r):l=r)}}(t.commentDirectives,h.commentDirectives,m.span.start,e.textSpanEnd(m.span),y,p,n,_),h},t.createSyntaxCursor=c,function(e){e[e.Value=-1]="Value"}(u||(u={}))}(u||(u={})),e.isDeclarationFileName=y,e.processCommentPragmas=h,e.processPragmasIntoFields=v;var b=new e.Map;function x(e){if(b.has(e))return b.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))","im");return b.set(e,t),t}var D=/^\/\/\/\s*<(\S+)\s.*?\/>/im,S=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function E(t,r,n){var i=2===r.kind&&D.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,l=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 v(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,U(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 b(e,t){return x(c,e,t)}function x(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 D(){return l||(l=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=h,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:u,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 h(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=b;var S={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:c},getOptionsNameMap:D,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 E(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 C(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=h(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,i(i([],s,!0),[_],!1).join(" -> "))),{raw:t||J(r,c)};var d=t?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=ue(t.typeAcquisition||t.typingOptions,n,a,i),l=function(e,t,r){return _e(R(),e,t,void 0,L,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 u=i?ee(i,n):n;o=oe(t.extends,r,u,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:l,typeAcquisition:c,extendedConfigPath:o}}(t,n,a,o,c):function(t,r,n,i,a){var o,s,c,l,u=se(i),_={onSetValidOptionKeyValueInParent:function(t,r,a){var l;switch(t){case"compilerOptions":l=u;break;case"watchOptions":l=c||(c={});break;case"typeAcquisition":l=o||(o=le(i));break;case"typingOptions":l=s||(s=le(i));break;default:e.Debug.fail("Unknown option")}l[r.name]=pe(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,u){if("extends"!==o);else{var _=i?ee(i,n):n;l=oe(c,r,_,a,(function(r,n){return e.createDiagnosticForNodeInSourceFile(t,u,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,_);return o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:le(i)),{raw:d,options:u,watchOptions:c,typeAcquisition:o,extendedConfigPath:l}}(r,n,a,o,c);if((null===(u=d.options)||void 0===u?void 0:u.paths)&&(d.options.pathsBasePath=a),d.extendedConfigPath){s=s.concat([_]);var p=function(t,r,n,i,a,o){var s,c,l,u,_=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);if(o&&(c=o.get(_))?(l=c.extendedResult,u=c.extendedConfig):(l=C(r,(function(e){return n.readFile(e)})),l.parseDiagnostics.length||(u=ae(void 0,l,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,o)),o&&o.set(_,{extendedResult:l,extendedConfig:u})),t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,l.extendedSourceFiles)),!l.parseDiagnostics.length)return u;a.push.apply(a,l.parseDiagnostics)}(r,d.extendedConfigPath,n,s,c,l);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(n.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(M(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function le(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function ue(e,t,r,n){var i=le(n),a=_(e);return _e(B(),a,t,i,N,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(K(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 $(o)?o:fe(t,n,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,U(t)))}function pe(t,r,n){if(!$(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(!$(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(!$(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=V,e.convertToTSConfig=function(t,r,n){var i,o,s,c=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),l=e.map(e.filter(t.fileNames,(null===(o=null===(i=t.options.configFile)||void 0===i?void 0:i.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);return s?o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)}:o?function(e){return o.test(e)}:e.returnTrue}(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,n):e.returnTrue),(function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),c)})),u=H(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),_=t.watchOptions&&Y(t.watchOptions,w());return a(a({compilerOptions:a(a({},z(u)),{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:_&&z(_),references:e.map(t.projectReferences,(function(e){return a(a({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(l)?l:void 0},(null===(s=t.options.configFile)||void 0===s?void 0:s.configFileSpecs)?{include:G(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.generateTSConfig=function(t,r,n){var i=H(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),c=0,l=e.optionDeclarations;c0)for(var b=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(_)||u.has(_)||u.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 xe(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 De(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]:be(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 Ee(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 l=[],u=0,_=i;u<_.length;u++){var d=_[u],p=e.normalizePath(e.combinePaths(r,d));if(!s||!s.test(p)){var f=Ce(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 E(t,r,n){return{getOrCreateCacheForDirectory:function(i,a){var o=e.toPath(i,t,r);return D(n,a,o,(function(){return new e.Map}))},clear:function(){n.clear()},update:function(e){S(e,n)}}}function C(r,n,i,a,o){var s=function(r,n,i,a){var o,s=a.compilerOptions,c=s.baseUrl,l=s.paths,u=s.configFile;if(l&&!e.pathIsRelative(n))return a.traceEnabled&&(c&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),X(r,n,e.getPathsBasePath(a.compilerOptions,a.host),l,(null==u?void 0:u.configFileSpecs)?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(l)):void 0,i,!1,a)}(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?function(r,n,i,a,o){if(o.compilerOptions.rootDirs){o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,l=e.normalizePath(e.combinePaths(i,n)),u=0,_=o.compilerOptions.rootDirs;u<_.length;u++){var d=_[u],p=e.normalizePath(d);e.endsWith(p,e.directorySeparator)||(p+=e.directorySeparator);var f=e.startsWith(l,p)&&(void 0===c||c.lengtha&&(a=u),1===a)return a}return a}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 n(t,r);case 79:if(t.isInJSDocNamespace)return 0}return 1}(t,r);return r.set(i,a),a}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=u),1===a)return a}}if(void 0!==a)return a}i=i.parent}return 1}function c(t){return e.Debug.attachFlowNodeDebugInfo(t),t}(r=e.ModuleInstanceState||(e.ModuleInstanceState={}))[r.NonInstantiated=0]="NonInstantiated",r[r.Instantiated=1]="Instantiated",r[r.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=n,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"}(t||(t={}));var l=function(){var t,r,o,s,l,p,f,g,m,y,h,v,b,x,D,S,E,C,T,k,A,N,w,F,P=!1,I=0,O={flags:1},L={flags:1},M=function(){return e.createBinaryExpressionTrampoline((function(t,r){if(r){r.stackIndex++,e.setParent(t,s);var n=N;je(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=$();be(t,o,o),h=ce(o)}else be(t,D,S);r.skip=!0}return r}),(function(e,r,n){if(!r.skip)return t(e)}),(function(e,t,r){t.skip||(27===e.kind&&ye(r.left),Me(e))}),(function(e,r,n){if(!r.skip)return t(e)}),(function(t,r){if(!r.skip){var n=t.operatorToken.kind;e.isAssignmentOperator(n)&&!e.isAssignmentTarget(t)&&(ve(t.left),63===n&&205===t.left.kind&&Z(t.left.expression)&&(h=oe(256,h,t)))}var i=r.inStrictModeStack[r.stackIndex],a=r.parentStack[r.stackIndex];void 0!==i&&(N=i),void 0!==a&&(s=a),r.skip=!1,r.stackIndex--}),void 0);function t(t){if(t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t))return t;Me(t)}}();function R(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(n,i){t=n,r=i,o=e.getEmitScriptTarget(r),N=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,i),F=new e.Set,I=0,w=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(O),e.Debug.attachFlowNodeDebugInfo(L),t.locals||(Me(t),t.symbolCount=I,t.classifiableNames=F,function(){if(m){for(var r=l,n=g,i=f,a=s,o=h,u=0,d=m;u=235&&t.kind<=251&&!r.allowUnreachableCode&&(t.flowNode=h),t.kind){case 239:!function(e){var t=ge(e,ee()),r=$(),n=$();ne(t,h),h=t,pe(e.expression,r,n),h=ce(r),fe(e.statement,n,t),ne(t,h),h=ce(n)}(t);break;case 238:!function(e){var t=ee(),r=ge(e,$()),n=$();ne(t,h),h=t,fe(e.statement,n,r),ne(r,h),h=ce(r),pe(e.expression,t,n),h=ce(n)}(t);break;case 240:!function(e){var t=ge(e,ee()),r=$(),n=$();Me(e.initializer),ne(t,h),h=t,pe(e.condition,r,n),h=ce(r),fe(e.statement,n,t),Me(e.incrementor),ne(t,h),h=ce(n)}(t);break;case 241:case 242:!function(e){var t=ge(e,ee()),r=$();Me(e.expression),ne(t,h),h=t,242===e.kind&&Me(e.awaitModifier),ne(r,h),Me(e.initializer),253!==e.initializer.kind&&ve(e.initializer),fe(e.statement,r,t),ne(t,h),h=ce(r)}(t);break;case 237:!function(e){var t=$(),r=$(),n=$();pe(e.expression,t,r),h=ce(t),Me(e.thenStatement),ne(n,h),h=ce(r),Me(e.elseStatement),ne(n,h),h=ce(n)}(t);break;case 245:case 249:!function(e){Me(e.expression),245===e.kind&&(k=!0,x&&ne(x,h)),h=O}(t);break;case 244:case 243:!function(e){if(Me(e.label),e.label){var t=function(e){for(var t=T;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,me(e,t.breakTarget,t.continueTarget))}else me(e,v,b)}(t);break;case 250:!function(t){var r=x,n=E,i=$(),a=$(),o=$();if(t.finallyBlock&&(x=a),ne(o,h),E=o,Me(t.tryBlock),ne(i,h),t.catchClause&&(h=ce(o),ne(o=$(),h),E=o,Me(t.catchClause),ne(i,h)),x=r,E=n,t.finallyBlock){var s=$();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),h=s,Me(t.finallyBlock),1&h.flags?h=O:(x&&a.antecedents&&ne(x,te(s,a.antecedents,h)),E&&o.antecedents&&ne(E,te(s,o.antecedents,h)),h=i.antecedents?te(s,i.antecedents,h):O)}else h=ce(i)}(t);break;case 247:!function(t){var r=$();Me(t.expression);var n=v,i=C;v=r,C=h,Me(t.caseBlock),ne(r,h);var a=e.forEach(t.caseBlock.clauses,(function(e){return 288===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||ne(r,ae(C,t,0,0)),v=n,C=i,h=ce(r)}(t);break;case 261:!function(e){for(var t=e.clauses,n=H(e.parent.expression),i=O,a=0;a158){var n=s;s=t;var i=Ce(t);0===i?q(t):function(t,r){var n=l,i=p,a=f;if(1&r?(212!==t.kind&&(p=l),l=f=t,32&r&&(l.locals=e.createSymbolTable()),Te(l)):2&r&&((f=t).locals=void 0),4&r){var o=h,s=v,u=b,_=x,d=E,g=T,m=k,D=16&r&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);D||(h=c({flags:2}),144&r&&(h.node=t)),x=D||169===t.kind||168===t.kind||e.isInJSFile(t)&&(254===t.kind||211===t.kind)?$():void 0,E=void 0,v=void 0,b=void 0,T=void 0,k=!1,q(t),t.flags&=-2817,!(1&h.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,k&&(t.flags|=512),t.endFlowNode=h),300===t.kind&&(t.flags|=A,t.endFlowNode=h),x&&(ne(x,h),h=ce(x),(169===t.kind||168===t.kind||e.isInJSFile(t)&&(254===t.kind||211===t.kind))&&(t.returnFlowNode=h)),D||(h=o),v=s,b=u,x=_,E=d,T=g,k=m}else 64&r?(y=!1,q(t),t.flags=y?128|t.flags:-129&t.flags):q(t);l=n,p=i,f=a}(t,i),s=n}else n=s,1===t.kind&&(s=t),Re(t),s=n;N=r}}function Re(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r=117&&r.originalKeywordKind<=125?t.bindDiagnostics.push(R(r,function(r){return e.getContainingClass(r)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(r),e.declarationNameToString(r))):131===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r))):32768&r.flags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):125===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))}(n);case 159:h&&e.isPartOfTypeQuery(n)&&(n.flowNode=h);break;case 229:case 106:n.flowNode=h;break;case 80:return function(r){"#constructor"===r.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(R(r,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(r))))}(n);case 204:case 205:var a=n;h&&Y(a)&&(a.flowNode=h),e.isSpecialPropertyDeclaration(a)&&function(t){108===t.expression.kind?ze(t):e.isBindableStaticAccessExpression(t)&&300===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?qe(t,t.parent):He(t))}(a),e.isInJSFile(a)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(a)&&!d(f,"module")&&U(t.locals,void 0,a.expression,134217729,111550);break;case 219:switch(e.getAssignmentDeclarationKind(n)){case 1:Ue(n);break;case 2:!function(r){if(Ve(r)){var n=e.getRightMostAssignedExpression(r.right);if(!(e.isEmptyObjectLiteral(n)||l===t&&_(t,n)))if(e.isObjectLiteralExpression(n)&&e.every(n.properties,e.isShorthandPropertyAssignment))e.forEach(n.properties,Ke);else{var i=e.exportAssignmentIsAlias(r)?2097152:1049092,a=U(t.symbol.exports,t.symbol,r,67108864|i,0);e.setValueDeclaration(a,r)}}}(n);break;case 3:qe(n.left,n);break;case 6:!function(t){e.setParent(t.left,t),e.setParent(t.right,t),Ze(t.left.expression,t.left,!1,!0)}(n);break;case 4:ze(n);break;case 5:var c=n.left.expression;if(e.isInJSFile(n)&&e.isIdentifier(c)){var u=d(f,c.escapedText);if(e.isThisInitializedDeclaration(null==u?void 0:u.valueDeclaration)){ze(n);break}}!function(r){var n,i=$e(r.left.expression,l)||$e(r.left.expression,f);if(e.isInJSFile(r)||e.isFunctionSymbol(i)){var a=e.getLeftmostAccessExpression(r.left);e.isIdentifier(a)&&2097152&(null===(n=d(l,a.escapedText))||void 0===n?void 0:n.flags)||(e.setParent(r.left,r),e.setParent(r.right,r),e.isIdentifier(r.left.expression)&&l===t&&_(t,r.left.expression)?Ue(r):e.hasDynamicName(r)?(we(r,67108868,"__computed"),We(r,Ye(i,r.left.expression,Qe(r.left),!1,!1))):He(e.cast(r.left,e.isBindableStaticNameExpression)))}}(n);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(t){N&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Pe(t,t.left)}(n);case 290:return function(e){N&&e.variableDeclaration&&Pe(e,e.variableDeclaration.name)}(n);case 213:return function(r){if(N&&79===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 8:return function(r){N&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(R(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(n);case 218:return function(e){N&&Pe(e,e.operand)}(n);case 217:return function(e){N&&(45!==e.operator&&46!==e.operator||Pe(e,e.operand))}(n);case 246:return function(t){N&&Oe(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(n);case 248:return function(t){N&&r.target>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Oe(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(n);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()),U(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()),U(n.locals,void 0,t,262144,526824)):we(t,262144,J(t))}else ke(t,262144,526824)}(n);case 162:return rt(n);case 252:return tt(n);case 201:return n.flowNode=h,tt(n);case 165:case 164:return function(e){return nt(e,4|(e.questionToken?16777216:0),0)}(n);case 291:case 292:return nt(n,4,0);case 294:return nt(n,8,900095);case 172:case 173:case 174:return ke(n,131072,0);case 167:case 166:return nt(n,8192|(n.questionToken?16777216:0),e.isObjectLiteralMethod(n)?0:103359);case 254:return function(r){t.isDeclarationFile||8388608&r.flags||e.isAsyncFunction(r)&&(A|=2048),Ie(r),N?(function(r){if(o<2&&300!==f.kind&&259!==f.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(f)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){return e.getContainingClass(r)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.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}(r)))}}(r),Fe(r,16,110991)):ke(r,16,110991)}(n);case 169:return ke(n,16384,0);case 170:return nt(n,32768,46015);case 171:return nt(n,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)}(n);case 180:case 317:case 193:return function(e){return we(e,2048,"__type")}(n);case 327:return function(t){W(t);var r=e.getHostSignatureFromJSDoc(t);r&&167!==r.kind&&j(r.symbol,r,32)}(n);case 203:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),N&&!e.isAssignmentTarget(r))for(var i=new e.Map,a=0,o=r.properties;a1&&2097152&b.flags&&(t=e.createSymbolTable()).set("export=",b),k(t),h=function(t){var r=e.findIndex(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(r>=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 S(t[e])}))){for(var a=0,o=i;a1){var n=e.filter(t,(function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause}));t=i(i([],n,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),void 0)],!1)}var a=e.filter(t,(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(r){r.length>1&&(t=i(i([],e.filter(t,(function(e){return-1===r.indexOf(e)})),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),r[0].moduleSpecifier)],!1))},c=0,l=o;c0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===n?n="_default":"export="===n&&(n="_exports"),e.isIdentifierText(n,U)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function ne(e,t){var n=O(e);return r.remappedSymbolNames.has(n)?r.remappedSymbolNames.get(n):(t=re(e,t),r.remappedSymbolNames.set(n,t),t)}}(t,r,u)}))}};function r(r,n,i,a){var s,c;e.Debug.assert(void 0===r||0==(8&r.flags));var l={enclosingDeclaration:r,flags:n||0,tracker:i&&i.trackSymbol?i:{trackSymbol:function(){return!1},moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return t.getCurrentDirectory()},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return t.fileExists(e)},getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=o(l,l.tracker);var u=a(l);return l.truncating&&1&l.flags&&(null===(c=null===(s=l.tracker)||void 0===s?void 0:s.reportTruncationError)||void 0===c||c.call(s)),l.encounteredError?void 0:u}function o(e,t){var r=t.trackSymbol;return a(a({},t),{reportCyclicStructureError:n(t.reportCyclicStructureError),reportInaccessibleThisError:n(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:n(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:n(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:n(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:n(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:n(t.reportNonSerializableProperty),trackSymbol:r&&function(){for(var t=[],n=0;n(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function l(t,r){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();var i=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=hc(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 a=Ji(t.symbol),o=T(a,r,788968);if(es(a)===t)return o;var c=e.symbolName(t.symbol);return e.isIdentifierText(c,0)?j(o,e.factory.createTypeReferenceNode(c,void 0)):e.isImportTypeNode(o)?(o.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(o,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c)))):e.isTypeReferenceNode(o)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(o.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(ca(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($u(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(!i&&t.aliasSymbol&&(16384&r.flags||sa(t.aliasSymbol,r.enclosingDeclaration))){var y=p(t.aliasTypeArguments,r);return!$i(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?T(t.aliasSymbol,r,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var h=e.getObjectFlags(t);if(4&h)return e.Debug.assert(!!(524288&t.flags)),t.node?M(t,B):B(t);if(262144&t.flags||3&h){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&&!sa(t.symbol,r.enclosingDeclaration)){var v=A(t,r);return r.approximateLength+=e.idText(v).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(v)),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 b=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n0?1048576&t.flags?e.factory.createUnionTypeNode(x):e.factory.createIntersectionTypeNode(x):void(r.encounteredError||262144&r.flags||(r.encounteredError=!0))}if(48&h)return e.Debug.assert(!!(524288&t.flags)),L(t);if(4194304&t.flags){var D=t.type;r.approximateLength+=6;var S=l(D,r);return e.factory.createTypeOperatorNode(139,S)}if(134217728&t.flags){var E=t.texts,C=t.types,k=e.factory.createTemplateHead(E[0]),N=e.factory.createNodeArray(e.map(C,(function(t,n){return e.factory.createTemplateLiteralTypeSpan(l(t,r),(n10)return u(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==l?void 0:l.serializedTypes)||void 0===a||a.set(_,g)),r.visitedTypes.delete(o),c&&r.symbolDepth.set(c,d),g}function R(t){if(Ys(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=zs(t)?e.factory.createTypeOperatorNode(139,l(Gs(t),r)):l(Js(t),r);var o=m(js(t),r,n),s=t.declaration.nameType?l(Vs(t),r):void 0,c=l(tf(Us(t),!!(4&Ws(t))),r),u=e.factory.createMappedTypeNode(i,o,s,a,c);return r.approximateLength+=10,e.setEmitFlags(u,1)}(t);var n=Xs(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,cl);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=ra(t.symbol,t.members,t.callSignatures,e.some(r)?r:e.emptyArray,t.indexInfos);return t.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(n)),l(wu(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 h=(t.target.typeParameters||e.emptyArray).length;y=p(n.slice(D,h),r)}S=r.flags,r.flags|=16;var v=T(t.symbol,r,788968,y);return r.flags=S,c?j(c,v):v}if(n=e.sameMap(n,(function(e,r){return tf(e,!!(2&t.target.elementFlags[r]))})),n.length>0){var b=Cl(t),x=p(n.slice(0,b),r);if(x){if(t.target.labeledElementDeclarations)for(var D=0;D2)return[l(t[0],r),e.factory.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),l(t[t.length-1],r)]}for(var i=64&r.flags?void 0:e.createUnderscoreEscapedMultiMap(),a=[],o=0,c=0,u=t;c0)),a}function D(t,r){var n;return 524384&hD(t).flags&&(n=e.factory.createNodeArray(e.map(Oo(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),l=C(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeJs&&l.indexOf("/node_modules/")>=0&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(l));var u=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(l));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),r.approximateLength+=l.length+10,!s||e.isEntityName(s))return s&&((f=e.isIdentifier(s)?s:s.right).typeArguments=void 0),e.factory.createImportTypeNode(u,s,c,o);var _=E(s),d=_.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(u,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],l=t[n-1];if(0===n)r.flags|=16777216,o=Fa(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(l&&Oi(l)){var u=Oi(l);e.forEachEntry(u,(function(t,r){if(zi(t,c)&&!ds(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(o||(o=Fa(c,r)),r.approximateLength+=o.length+1,!(16&r.flags)&&l&&hs(l)&&hs(l).get(c.escapedName)&&zi(hs(l).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);return d.symbol=c,n>a?(_=m(t,n-1,a),e.isEntityName(_)?e.factory.createQualifiedName(_,d):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")):d}}function k(e,t,r){var n=zn(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(mu(t));if(a)return a}var o=N(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,l=s;(null===(i=r.typeParameterNamesByText)||void 0===i?void 0:i.has(l))||k(l,r,t);)l=s+"_"+ ++c;l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(r.typeParameterNamesByTextNextNameCount||(r.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(mu(t),o),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(s)}return o}function N(t,r,n,i){var a=b(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=Fa(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 w(t,r,n){var i=b(t,r,n);return function t(n,i){var a=S(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=Fa(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,ga))return e.factory.createStringLiteral(C(o,r));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),U):e.isIdentifierStart(c,U);if(0===i||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return u.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),u):u}91===c&&(c=(s=s.substring(1,s.length-1)).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 F(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function P(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function L(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,P),i=function(t,r,n){var i=Bn(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,V.target)||ty(a)?ty(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):M(a):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(w(i.symbol,r,111551))}}(t,r,n);return i||M(e.unescapeLeadingUnderscores(t.escapedName),!!e.length(t.declarations)&&e.every(t.declarations,F),n)}function M(t,r,n){return e.isIdentifierText(t,V.target)?e.factory.createIdentifier(t):!r&&ty(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)>=Kc(r.target.typeParameters)}function j(t,r,n,i,a,o){if(r!==Pe&&i){var s=R(n,i);if(s&&!e.isFunctionLikeDeclaration(s)&&!e.isGetAccessorDeclaration(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(V_(c)===r&&B(c,r)){var u=K(t,c,a,o);if(u)return u}}}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=l(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=Di(s,67108863,!0,!0);if(c&&(0!==_a(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 l=262144&c.flags?A(es(c),r):e.factory.cloneNode(t);return l.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(l,t),16777216)}}return{introducesError:o,node:t}}function K(r,i,a,o){n&&n.throwIfCancellationRequested&&n.throwIfCancellationRequested();var s=!1,c=e.getSourceFileOfNode(i),u=e.visitNode(i,(function n(i){if(e.isJSDocAllType(i)||314===i.kind)return e.factory.createKeywordTypeNode(129);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(153);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,n),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,n),e.factory.createKeywordTypeNode(151)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,n);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,n));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,(function(t){var a=e.isIdentifier(t.name)?t.name:t.name.right,o=ja(V_(i),a.escapedText),s=o&&t.typeExpression&&V_(t.typeExpression.type)!==o?l(o,r):void 0;return e.factory.createPropertySignature(void 0,a,t.isBracketed||t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,s||t.typeExpression&&e.visitNode(t.typeExpression.type,n)||e.factory.createKeywordTypeNode(129))})));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(129),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))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(i.typeArguments[0],n))],e.visitNode(i.typeArguments[1],n))]);var u;if(e.isJSDocFunctionType(i))return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(i.modifiers,e.visitNodes(i.typeParameters,n),e.mapDefined(i.parameters,(function(t,r){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(u=t.type):e.factory.createParameterDeclaration(void 0,void 0,g(t),m(t,r),t.questionToken,e.visitNode(t.type,n),void 0)})),e.visitNode(u||i.type,n)||e.factory.createKeywordTypeNode(129)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,n),e.map(i.parameters,(function(t,r){return e.factory.createParameterDeclaration(void 0,void 0,g(t),m(t,r),t.questionToken,e.visitNode(t.type,n),void 0)})),e.visitNode(i.type,n)||e.factory.createKeywordTypeNode(129));if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!B(i,V_(i))||Bl(i)||ke===wl(Nl(i),788968,!0)))return e.setOriginalNode(l(V_(i),r),i);if(e.isLiteralImportTypeNode(i)){var _=jn(i).resolvedSymbol;return!e.isInJSDoc(i)||!_||(i.isTypeOf||788968&_.flags)&&e.length(i.typeArguments)>=Kc(Oo(_))?e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,function(n,i){if(o){if(r.tracker&&r.tracker.moduleResolverHost){var a=BS(n);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:function(){return r.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return r.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,a);return e.factory.createStringLiteral(c)}}}else if(r.tracker&&r.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=Ci(i,i,void 0);l&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return i}(i,i.argument.literal)),i.qualifier,e.visitNodes(i.typeArguments,n,e.isTypeNode),i.isTypeOf):e.setOriginalNode(l(V_(i),r),i)}if(e.isEntityName(i)||e.isEntityNameExpression(i)){var d=J(i,r,a),p=d.introducesError,f=d.node;if(s=s||p,f!==i)return f}return c&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(c,i.pos).line===e.getLineAndCharacterOfPosition(c,i.end).line&&e.setEmitFlags(i,1),e.visitEachChild(i,n,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 u===i?e.setTextRange(e.factory.cloneNode(i),i):u}}(),ae=e.createSymbolTable(),oe=Nn(4,"undefined");oe.declarations=[];var se=Nn(1536,"globalThis",8);se.exports=ae,se.declarations=[],ae.set(se.escapedName,se);var ce,le=Nn(4,"arguments"),ue=Nn(4,"require"),_e={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+v},getTypeCount:function(){return h},getInstantiationCount:function(){return x},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===le},isUnknownSymbol:function(e){return e===ke},getMergedSymbol:Bi,getDiagnostics:UD,getGlobalDiagnostics:function(){return KD(),ln.getGlobalDiagnostics()},getRecursionIdentity:fp,getUnmatchedProperties:If,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=Eb(r);if(Gi(jn(r).resolvedSymbol)===t)return n}return e.isDeclarationName(r)&&e.isSetAccessor(r.parent)&&yo(r.parent)?xo(r.parent.symbol,!0):ko(t)}(t,n):Pe},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=Vn(n.locals,r,111551),o=Vn(hs(i.symbol),r,111551);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:es,getPropertiesOfType:ec,getPropertyOfType:function(t,r){return Sc(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=Uy(e.escapeLeadingUnderscores(r),i);return a?Ky(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return ja(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:function(e,t){return Fc(e,0===t?Ue:Ke)},getIndexInfosOfType:wc,getSignaturesOfType:Cc,getIndexTypeOfType:function(e,t){return Pc(e,0===t?Ue:Ke)},getBaseTypes:Uo,getBaseTypeOfLiteralType:Ip,getWidenedType:pf,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?V_(r):Pe},getParameterType:yv,getParameterIdentifierNameAtPosition:function(e,t){var r=e.parameters.length-(j(e)?1:0);if(t>",0,Ne),vr=Ds(void 0,void 0,void 0,e.emptyArray,Ne,void 0,0,0),br=Ds(void 0,void 0,void 0,e.emptyArray,Pe,void 0,0,0),xr=Ds(void 0,void 0,void 0,e.emptyArray,Ne,void 0,0,0),Dr=Ds(void 0,void 0,void 0,e.emptyArray,$e,void 0,0,0),Sr=_l(Ke,Ue,!0),Er=new e.Map,Cr={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=Vx(Ne,Ne,Ne),kr=Vx(Ne,Ne,Le),Ar=Vx(Ze,Ne,Me),Nr={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return rr||(rr=Wl("AsyncIterator",3,e))||gt},getGlobalIterableType:function(e){return tr||(tr=Wl("AsyncIterable",1,e))||gt},getGlobalIterableIteratorType:function(e){return nr||(nr=Wl("AsyncIterableIterator",1,e))||gt},getGlobalGeneratorType:function(e){return ir||(ir=Wl("AsyncGenerator",3,e))||gt},resolveIterationType:Yb,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},wr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Xt||(Xt=Wl("Iterator",3,e))||gt},getGlobalIterableType:Zl,getGlobalIterableIteratorType:function(e){return Qt||(Qt=Wl("IterableIterator",1,e))||gt},getGlobalGeneratorType:function(e){return Zt||(Zt=Wl("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},Fr=new e.Map,Pr=!1,Ir=new e.Map,Or=0,Lr=0,Mr=0,Rr=!1,Br=0,jr=I_(""),Jr=O_(0),Vr=L_({negative:!1,base10Value:"0"}),Ur=[],Kr=[],zr=[],Gr=0,Wr=[],qr=[],Hr=[],Yr=[],Xr=[],Qr=[],Zr=[],$r=[],en=[],tn=[],rn=[],nn=[],an=[],on=[],sn=[],cn=[],ln=e.createDiagnosticCollection(),un=e.createDiagnosticCollection(),_n=new e.Map(e.getEntries({string:Ue,number:Ke,bigint:ze,boolean:Ye,symbol:Xe,undefined:Me})),dn=Su(e.arrayFrom(D.keys(),I_)),pn=new e.Map,fn=new e.Map,gn=new e.Map,mn=new e.Map,yn=new e.Map,hn=new e.Map,vn=e.createSymbolTable();return vn.set(oe.escapedName,oe),function(){for(var r=0,n=t.getSourceFiles();r=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,l=i||e.emptyArray;c1)}function Bn(e){if(33554432&e.flags)return e;var t=O(e);return qr[t]||(qr[t]=new F)}function jn(e){var t=I(e);return Hr[t]||(Hr[t]=new P)}function Jn(t){return 300===t.kind&&!e.isExternalOrCommonJsModule(t)}function Vn(t,r,n){if(n){var i=Bi(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=fi(i);if(a===ke||a.flags&n)return i}}}}function Un(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(K&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(V)||Qf(n)||8388608&r.flags)return!0;if(l(n,r))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(r.pos<=n.pos&&(!e.isPropertyDeclaration(r)||!e.isThisProperty(n.parent)||r.initializer||r.exclamationToken)){if(201===r.kind){var c=e.getAncestor(n,201);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos=i&&c.pos<=a){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);if(e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode,!(32768&Gp(am(l,r,Yp(r)))))return!0}}return!1}(a,To(ji(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 u(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 Kn(t,r,n){var i=e.getEmitScriptTarget(V),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||!z: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 zn(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),Gn(e,t,r,n,i,a,o,Vn,s)}function Gn(t,r,n,i,a,o,s,c,l){var u,_,d,p,f,g,m,y=t,h=!1,v=t,b=!1;e:for(;t;){if(t.locals&&!Jn(t)&&(_=c(t.locals,r,n))){var x=!0;if(e.isFunctionLike(t)&&d&&d!==t.body?(n&_.flags&788968&&315!==d.kind&&(x=!!(262144&_.flags)&&(d===t.type||162===d.kind||161===d.kind)),n&_.flags&3&&(Kn(_,t,d)?x=!1:1&_.flags&&(x=162===d.kind||d===t.type&&!!e.findAncestor(_.valueDeclaration,e.isParameter)))):187===t.kind&&(x=d===t.trueType),x)break e;_=void 0}switch(h=h||Wn(t,d),t.kind){case 300:if(!e.isExternalOrCommonJsModule(t))break;b=!0;case 259:var D=ji(t).exports||T;if(300===t.kind||e.isModuleDeclaration(t)&&8388608&t.flags&&!e.isGlobalScopeAugmentation(t)){if(_=D.get("default")){var S=e.getLocalSymbolForExportDefault(_);if(S&&_.flags&n&&S.escapedName===r)break e;_=void 0}var E=D.get(r);if(E&&2097152===E.flags&&(e.getDeclarationOfKind(E,273)||e.getDeclarationOfKind(E,272)))break}if("default"!==r&&(_=c(D,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||(null===(u=_.declarations)||void 0===u?void 0:u.some(e.isJSDocTypeAlias)))break e;_=void 0}break;case 258:if(_=c(ji(t).exports,r,8&n))break e;break;case 165:if(!e.isStatic(t)){var C=qi(t.parent);C&&C.locals&&c(C.locals,r,111551&n)&&(f=t)}break;case 255:case 224:case 256:if(_=c(ji(t).members||T,r,788968&n)){if(!Yn(_,t)){_=void 0;break}if(d&&e.isStatic(d))return void Sn(v,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(ji(A).members,r,788968&n)))return void(i&&Sn(v,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(ji(m).members,r,788968&n)))return void Sn(v,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 212:if(V.target>=2)break;case 167:case 169:case 170:case 171:case 254:if(3&n&&"arguments"===r){_=le;break e}break;case 211:if(3&n&&"arguments"===r){_=le;break e}if(16&n){var N=t.name;if(N&&r===N.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:(L=e.getJSDocRoot(t))&&(t=L.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 w=t.typeParameter.name;if(w&&r===w.escapedText){_=t.typeParameter.symbol;break e}}}qn(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 ue;if(_){if(i){if(f&&(99!==V.target||!z)){var F=f.name;return void Sn(v,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(F),Hn(a))}if(v&&(2&n||(32&n||384&n)&&111551==(111551&n))){var P=Gi(_);(2&P.flags||32&P.flags||384&P.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)){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||Un(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(V)&&(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))}}}(P,v)}if(_&&b&&111551==(111551&n)&&!(4194304&y.flags)){var I=Bi(_);e.length(I.declarations)&&e.every(I.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&Cn(!V.allowUmdGlobalAccess,v,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&&!h&&111551==(111551&n)){var O=Bi(vs(_)),L=e.getRootDeclaration(g);O===ji(g)?Sn(v,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(g.name)):O.valueDeclaration&&O.valueDeclaration.pos>g.pos&&L.parent.locals&&c(L.parent.locals,O.escapedName,n)===O&&Sn(v,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(g.name),e.declarationNameToString(v))}_&&v&&111551&n&&2097152&_.flags&&function(t,r,n){if(!e.isValidTypeOnlyAliasUseSite(n)){var i=yi(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,v)}return _}if(i&&(!v||!(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||GD(t)||Qf(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=ji(a.parent);if(!o)break;if(Sc(To(o),r))return Sn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Hn(n),ha(o)),!0;if(a===i&&!e.isStatic(a)&&Sc(es(o).thisType,r))return Sn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Hn(n)),!0}a=a.parent}return!1}(v,r,a)||Xn(v)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=pi(zn(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(Sc(es(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}(v,r,n)||function(t,r){return!(!Zn(r)||273!==t.parent.kind)&&(Sn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),!0)}(v,r)||function(t,r,n){if(111551&n){if(Zn(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=pi(zn(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)?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):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=es(r);return!!(1048576&i.flags)&&Xv(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_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,a),!0}}return!1}(v,r,n)||function(t,r,n){if(111127&n){if(pi(zn(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&&pi(zn(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}(v,r,n)||function(t,r,n){if(788584&n){var i=pi(zn(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}(v,r,n)))){var M=void 0;if(l&&Gr<10&&((null==(M=th(y,r,n))?void 0:M.valueDeclaration)&&e.isAmbientModule(M.valueDeclaration)&&e.isGlobalScopeAugmentation(M.valueDeclaration)&&(M=void 0),M)){var R=ha(M),B=Wy(y,M,!1),j=Dn(v,B?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,Hn(a),R);En(!B,j),M.valueDeclaration&&e.addRelatedInfo(j,e.createDiagnosticForNode(M.valueDeclaration,e.Diagnostics._0_is_declared_here,R))}if(!M&&a){var J=function(t){for(var r=Hn(t),n=e.getScriptTargetFeatures(),i=0,a=e.getOwnKeys(n);i=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",l=i.exports.get("export=").valueDeclaration,u=Sn(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,ha(i),c);l&&e.addRelatedInfo(u,e.createDiagnosticForNode(l,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,ha(t),ha(r.symbol));else{var o=Sn(r.name,e.Diagnostics.Module_0_has_no_default_export,ha(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=Ei(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 gi(t,a,void 0,!1),a}}(t,r);case 266:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=Ei(e,r),i=Ni(n,r,t,!1);return gi(e,n,i,!1),i}(t,r);case 272:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&Ei(e,r),i=r&&Ni(n,r,t,!1);return gi(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=ci(n),a=si(n,i||t,r),o=t.propertyName||t.name;return i&&a&&e.isIdentifier(o)?pi(Sc(To(a),o.escapedText),r):(gi(t,void 0,a,!1),a)}(t,r);case 273:return li(t,901119,r);case 269:case 219:return function(t,r){var n=ui(e.isExportAssignment(t)?t.expression:t.right,r);return gi(t,void 0,n,!1),n}(t,r);case 262:return function(e,t){var r=Ai(e.parent.symbol,t);return gi(e,void 0,r,!1),r}(t,r);case 292:return Di(t.name,901119,!0,r);case 291:return function(e,t){return ui(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 ui(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function di(e,t){return void 0===t&&(t=901119),!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function pi(e,t){return!t&&di(e)?fi(e):e}function fi(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=_i(n);r.target===Ae?r.target=i||ke:Sn(n,e.Diagnostics.Circular_definition_of_import_alias_0,ha(t))}return r.target}function gi(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=ji(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return Bn(a).typeOnlyDeclaration=t,!0;var o=Bn(a);return mi(o,r,i)||mi(o,n,i)}function mi(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 yi(e){if(2097152&e.flags)return Bn(e).typeOnlyDeclaration||void 0}function hi(e){var t=ji(e),r=fi(t);r&&(r===ke||111551&r.flags&&!gS(r)&&!yi(t))&&vi(t)}function vi(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=pi(t);(i===ke||111551&i.flags)&&lb(n.moduleReference)}}}function bi(t,r){return 79===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),79===t.kind||159===t.parent.kind?Di(t,1920,!1,r):(e.Debug.assert(263===t.parent.kind),Di(t,901119,!1,r))}function xi(e,t){return e.parent?xi(e.parent,t)+"."+ha(e):ha(e,t,void 0,20)}function Di(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:Yf(e.getFirstIdentifier(t)),l=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if(Ml(t.parent)){var n=function(t){var r=e.findAncestor(t,(function(t){return e.isJSDocNode(t)||4194304&t.flags?e.isJSDocTypeAlias(t):"quit"}));if(!r){var n=e.getJSDocHost(t);if(n&&e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&3===e.getAssignmentDeclarationKind(n.expression)&&(i=ji(n.expression.left)))return Si(i);if(n&&(e.isObjectLiteralMethod(n)||e.isPropertyAssignment(n))&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent)&&(i=ji(n.parent.parent.left)))return Si(i);var i,a=e.getEffectiveJSDocHost(t);if(a&&e.isFunctionLike(a))return(i=ji(a))&&i.valueDeclaration}}(t.parent);if(n)return zn(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=Bi(zn(a||t,t.escapedText,r,n||l?void 0:c,t,!0))))return Bi(l)}else{if(159!==t.kind&&204!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var u=159===t.kind?t.left:t.expression,_=159===t.kind?t.right:t.name,d=Di(u,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&&ov(d.valueDeclaration.initializer)){var p=d.valueDeclaration.initializer.arguments[0],f=Ei(p,p);if(f){var g=Ai(f);g&&(d=g)}}if(!(o=Bi(Vn(Oi(d),_.escapedText,r)))){if(!n){var m=xi(d),y=e.declarationNameToString(_),h=rh(_,d);h?Sn(_,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,m,y,ha(h)):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)&&gi(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:fi(o)}}function Si(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 Ei(t,r,n){var i=e.getEmitModuleResolutionKind(V)===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 Ci(t,r,n?void 0:i)}function Ci(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?Ti(t,r.text,n,r,i):void 0}function Ti(r,n,i,a,o){void 0===o&&(o=!1),e.startsWith(n,"@types/")&&Sn(a,m=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var s=jc(n,!0);if(s)return s;var c=e.getSourceFileOfNode(r),l=e.getResolvedModule(c,n),u=l&&e.getResolutionDiagnostic(V,l),_=l&&!u&&t.getSourceFile(l.resolvedFileName);if(_)return _.symbol?(l.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(l.extension)&&ki(!1,a,l,n),Bi(_.symbol)):void(i&&Sn(a,e.Diagnostics.File_0_is_not_a_module,_.fileName));if(Et){var d=e.findBestPatternMatch(Et,(function(e){return e.pattern}),n);if(d){var p=Ct&&Ct.get(n);return Bi(p||d.symbol)}}if(l&&!e.resolutionExtensionIsTSOrJson(l.extension)&&void 0===u||u===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,n,l.resolvedFileName):ki(X&&!!i,a,l,n);else if(i){if(l){var f=t.getProjectReferenceRedirect(l.resolvedFileName);if(f)return void Sn(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,f,l.resolvedFileName)}if(u)Sn(a,u,n,l.resolvedFileName);else{var g=e.tryExtractTSExtension(n);if(g){var m=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,y=e.removeExtension(n,g);e.getEmitModuleKind(V)>=e.ModuleKind.ES2015&&(y+=".js"),Sn(a,m,g,y)}else!V.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(V)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(V)?Sn(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n):Sn(a,i,n)}}}function ki(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;Cn(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 Ai(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:Pn(t);return i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable()),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}(Bi(pi(t.exports.get("export="),r)),Bi(t));return Bi(n)||t}}function Ni(t,r,n,i){var a=Ai(t,n);if(!n&&a){if(!(i||1539&a.flags||e.getDeclarationOfKind(a,300))){var o=K>=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(V.esModuleInterop){var s=r.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=To(a),l=Ec(c,0);if(l&&l.length||(l=Ec(c,1)),l&&l.length){var u=av(c,a,t),_=Nn(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=Xs(u);return _.type=ra(_,d.members,e.emptyArray,e.emptyArray,d.indexInfos),_}}}}return a}function wi(e){return void 0!==e.exports.get("export=")}function Fi(e){return Rc(Li(e))}function Pi(e,t){var r=Li(t);if(r)return r.get(e)}function Ii(t){return!(131068&t.flags||1&e.getObjectFlags(t)||vp(t)||Bp(t))}function Oi(e){return 6256&e.flags?ys(e,"resolvedExports"):1536&e.flags?Li(e):e.exports||T}function Li(e){var t=Bn(e);return t.resolvedExports||(t.resolvedExports=Ri(e))}function Mi(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&pi(o)!==pi(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 Ri(t){var r=[];return function t(n){if(n&&n.exports&&e.pushIfUnique(r,n)){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,l=a.declarations;c=u?l.substr(0,u-"...".length)+"...":l}function xa(e,t){var r=Sa(e.symbol)?ba(e,e.symbol.valueDeclaration):ba(e),n=Sa(t.symbol)?ba(t,t.symbol.valueDeclaration):ba(t);return r===n&&(r=Da(e),n=Da(t)),[r,n]}function Da(e){return ba(e,void 0,64)}function Sa(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!yd(t.valueDeclaration)}function Ea(e){return void 0===e&&(e=0),814775659&e}function Ca(t){return!!(t.symbol&&32&t.symbol.flags&&(t===Go(t.symbol)||524288&t.flags&&16777216&e.getObjectFlags(t)))}function Ta(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|Ea(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function ka(e){return 8===e?"private":16===e?"protected":"public"}function Aa(t){return t&&t.parent&&260===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function Na(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,V.target)||ty(i)?ty(i)&&e.startsWith(i,"-")?"["+i+"]":i:'"'+e.escapeString(i,34)+'"'}if(8192&n.flags)return"["+Fa(n.symbol,r)+"]"}}function Fa(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],Na)!==e.findAncestor(r.enclosingDeclaration,Na)))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 Pa(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 Pa(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=Ba(t);return 1&e.getCombinedModifierFlags(t)||263!==t.kind&&300!==r.kind&&8388608&r.flags?Pa(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 Pa(t.parent);case 265:case 266:case 268:return!1;case 161:case 300:case 262:return!0;default:return!1}}()),r.isVisible}return!1}function Ia(t,r){var n,i,a;return t.parent&&269===t.parent.kind?n=zn(t,t.escapedText,2998271,void 0,t,!1):273===t.parent.kind&&(n=li(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=zn(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 Oa(e,t){var r=La(e,t);if(r>=0){for(var n=Ur.length,i=r;i=0;r--){if(Ma(Ur[r],zr[r]))return-1;if(Ur[r]===e&&zr[r]===t)return r}return-1}function Ma(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 Ra(){return Ur.pop(),zr.pop(),Kr.pop()}function Ba(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 ja(e,t){var r=Sc(e,t);return r?To(r):void 0}function Ja(e){return e&&0!=(1&e.flags)}function Va(e){var t=ji(e);return t&&Bn(t).type||$a(e,!1)}function Ua(t,r,n){if(131072&(t=Og(t,(function(e){return!(98304&e.flags)}))).flags)return _t;if(1048576&t.flags)return Rg(t,(function(e){return Ua(e,r,n)}));var i=Su(e.map(r,Lu));if(Xu(t)||Qu(i)){if(131072&i.flags)return t;var a=lr||(lr=Gl("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return a?kl(a,[t,i]):Pe}for(var o=e.createSymbolTable(),s=0,c=ec(t);s=2?(i=Ne,eu(Zl(!0),[i])):Rt;var c=e.map(a,(function(t){return e.isOmittedExpression(t)?Ne:uo(t,r,n)})),l=e.findLastIndex(a,(function(t){return!(t===s||e.isOmittedExpression(t)||Qm(t))}),a.length-1)+1,u=e.map(a,(function(e,t){return e===s?4:t>=l?2:1})),_=cu(c,u);return r&&((_=Dl(_)).pattern=t,_.objectFlags|=262144),_}(t,r,n)}function po(e,t){return fo($a(e,!0),e,t)}function fo(t,r,n){return t?(4096&t.flags&&(i=r.parent,a=ji(i),(o=Ut||(Ut=zl("SymbolConstructor",!1)))&&a&&a===o)&&(t=R_(r)),n&&yf(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==ji(r)&&(t=Xe),pf(t)):(t=e.isParameter(r)&&r.dotDotDotToken?Rt:Ne,n&&(go(r)||mf(r,t)),t);var i,a,o}function go(t){var r=e.getRootDeclaration(t);return Ub(162===r.kind?r.parent:r)}function mo(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return V_(r)}function yo(t){if(t)return 170===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function ho(e){var t=yo(e);return t&&V_(t)}function vo(t){var r=Bn(t);return r.type||(r.type=bo(t)||e.Debug.fail("Read type of accessor must always produce a type"))}function bo(t,r){if(void 0===r&&(r=!1),!Oa(t,0))return Pe;var n=xo(t,r);return Ra()||(n=Ne,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,ha(t))),n}function xo(t,r){void 0===r&&(r=!1);var n=e.getDeclarationOfKind(t,170),i=e.getDeclarationOfKind(t,171),a=ho(i);if(r&&a)return c(a,t);if(n&&e.isInJSFile(n)){var o=Xa(n);if(o)return c(o,t)}var s=ho(n);return s?c(s,t):a||(n&&n.body?c(Iv(n),t):i?(Ub(i)||Cn(X,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ha(t)),Ne):n?(e.Debug.assert(!!n,"there must exist a getter as we are current checking either setter or getter in this function"),Ub(n)||Cn(X,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ha(t)),Ne):void 0);function c(t,r){return 1&e.getCheckFlags(r)?dd(t,Bn(r).mapper):t}}function Do(t){var r=Jo(Go(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function So(t){var r=Bn(t),n=r;if(!r.type){var i=t.valueDeclaration&&tv(t.valueDeclaration,!1);if(i){var a=ev(t,i);a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return Ne;if(r&&(219===r.kind||e.isAccessExpression(r)&&219===r.parent.kind))return ao(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=Ai(t);if(n!==t){if(!Oa(t,0))return Pe;var i=Bi(t.exports.get("export=")),a=ao(i,i===n?void 0:n);return Ra()?a:Co(t)}}var o=Qi(16,t);if(32&t.flags){var s=Do(t);return s?wu([o,s]):o}return W&&16777216&t.flags?Yp(o):o}(t)}return r.type}function Eo(e){var t=Bn(e);return t.type||(t.type=Zo(e))}function Co(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,ha(t)),Pe):(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,ha(t)),Ne)}function To(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?Su(r.deferralConstituents):wu(r.deferralConstituents)),r.type}(t):1&r?function(e){var t=Bn(e);if(!t.type){if(!Oa(e,0))return t.type=Pe;var r=dd(To(t.target),t.mapper);Ra()||(r=Co(e)),t.type=r}return t.type}(t):262144&r?function(t){if(!t.type){var r=t.mappedType;if(!Oa(t,0))return r.containsError=!0,Pe;var n=dd(Us(r.target||r),td(r.mapper,js(r),t.keyType)),i=W&&16777216&t.flags&&!Hv(n,49152)?Yp(n,!0):524288&t.checkFlags?nf(n):n;Ra()||(Sn(_,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ha(t),ba(r)),i=Pe),t.type=i}return t.type}(t):8192&r?function(e){var t=Bn(e);return t.type||(t.type=Pf(e.propertyType,e.mappedType,e.constraintType)),t.type}(t):7&t.flags?function(t){var r=Bn(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=es(Ji(t))).typeParameters?xl(r,e.map(r.typeParameters,(function(e){return Ne}))):r;var r;if(t===ue)return Ne;if(134217728&t.flags&&t.valueDeclaration){var n=ji(e.getSourceFileOfNode(t.valueDeclaration)),i=Nn(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),ra(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 Z?Le:Ne;var l=ZD(c);return Ja(l)||l===Le?l:Pe}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?pf(Op(kb(s.statements[0].expression))):_t;if(!Oa(t,0))return 512&t.flags&&!(67108864&t.flags)?So(t):Co(t);if(269===s.kind)o=fo(lb(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=ao(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 So(t);o=e.isBinaryExpression(s.parent)?ao(t):mo(s)||Ne}else if(e.isPropertyAssignment(s))o=mo(s)||mb(s);else if(e.isJsxAttribute(s))o=mo(s)||ly(s);else if(e.isShorthandPropertyAssignment(s))o=mo(s)||gb(s.name,0);else if(e.isObjectLiteralMethod(s))o=mo(s)||yb(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=po(s,!0);else if(e.isEnumDeclaration(s))o=So(t);else if(e.isEnumMember(s))o=Eo(t);else{if(!e.isAccessor(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=xo(t)||e.Debug.fail("Non-write accessor resolution must always produce a type")}return Ra()?o:512&t.flags&&!(67108864&t.flags)?So(t):Co(t)}(t);r.type||(r.type=n)}return r.type}(t):9136&t.flags?So(t):8&t.flags?Eo(t):98304&t.flags?vo(t):2097152&t.flags?function(t){var r=Bn(t);if(!r.type){var n=fi(t),i=t.declarations&&_i(ti(t),!0);r.type=(null==i?void 0:i.declarations)&&OD(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,am(a,we,Me)}(i):OD(t.declarations)?we:111551&n.flags?To(n):Pe}return r.type}(t):Pe}function ko(e){return tf(To(e),!!(16777216&e.flags))}function Ao(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function No(t){return 4&e.getObjectFlags(t)?t.target:t}function wo(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=No(n);return i===r||e.some(Uo(i),t)}return!!(2097152&n.flags)&&e.some(n.types,t)}(t)}function Fo(t,r){for(var n=0,i=r;n0)return!0;if(8650752&e.flags){var t=sc(e);return!!t&&Lo(t)}return!1}function Ro(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function Bo(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(Cc(t,1),(function(t){return(a||i>=Kc(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function jo(t,r,n){var i=Bo(t,r,n),a=e.map(r,V_);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?nl(t,a,e.isInJSFile(n)):t}))}function Jo(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=Ro(t);if(!i)return t.resolvedBaseConstructorType=Me;if(!Oa(t,1))return Pe;var a=kb(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),kb(n.expression)),2621440&a.flags&&Xs(a),!Ra())return Sn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ha(t.symbol)),t.resolvedBaseConstructorType=Pe;if(!(1&a.flags||a===Ve||Mo(a))){var o=Sn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,ba(a));if(262144&a.flags){var s=ml(a),c=Le;if(s){var l=Cc(s,1);l[0]&&(c=$c(l[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,ha(a.symbol),ba(c)))}return t.resolvedBaseConstructorType=Pe}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function Vo(t,r){Sn(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ba(r,void 0,2))}function Uo(t){if(!t.baseTypesResolved){if(Oa(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[Ko(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=pc(Jo(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=Ro(t),a=r.symbol?es(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=El(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=Tl(i,r.symbol);else if(1&r.flags)n=r;else{var o=jo(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=$c(o[0])}if(n===Pe)return t.resolvedBaseTypes=e.emptyArray;var s=hc(n);if(!zo(s)){var c=Dc(void 0,n),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ba(s));return ln.add(e.createDiagnosticForNodeFromMessageChain(i.expression,l)),t.resolvedBaseTypes=e.emptyArray}if(t===s||wo(s,t))return Sn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ba(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 u=s.thisParameter,_=e.forEach(c,(function(e){return e.thisParameter}));_&&(u=of(_,wu(e.mapDefined(c,(function(e){return e.thisParameter&&To(e.thisParameter)}))))),(l=Es(s,c)).thisParameter=u}(r||(r=[])).push(l)}}}}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&&!ws(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=q_(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=bv(e),i=bv(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Dv(e)||Dv(t),l=c&&!Dv(a),u=new Array(s+(l?1:0)),_=0;_=xv(a)&&_>=xv(o),y=_>=n?void 0:pv(e,_),h=_>=i?void 0:pv(t,_),v=Nn(1|(m&&!g?16777216:0),(y===h?y:y?h?void 0:y:h)||"arg"+_);v.type=g?ru(f):f,u[_]=v}if(l){var b=Nn(1,"args");b.type=ru(yv(o,s)),o===t&&(b.type=dd(b.type,r)),u[s]=b}return u}(t,r,n),s=function(e,t,r){return e&&t?of(e,wu([To(e),dd(To(t),r)])):e||t}(t.thisParameter,r.thisParameter,n),c=Ds(a,i,s,o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return c.compositeKind=1048576,c.compositeSignatures=e.concatenate(2097152!==t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(c.mapper=2097152!==t.compositeKind&&t.mapper&&t.compositeSignatures?$_(t.mapper,n):n),c}(t,r)})),!p)return"break"}},g=0,m=t;g0})),n=e.map(t,Lo);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function Os(t,r){for(var n=function(r){t&&!e.every(t,(function(e){return!yp(e,r,!1,!1,!1,Dd)}))||(t=e.append(t,r))},i=0,a=r;i=p&&c<=f){var g=f?al(d,zc(s,d.typeParameters,p,o)):Ss(d);g.typeParameters=t.localTypeParameters,g.resolvedReturnType=t,g.flags=i?4|g.flags:-5&g.flags,l.push(g)}}return l}(_)),t.constructSignatures=i}}}(t):32&t.objectFlags&&function(t){var r,n=e.createSymbolTable();ta(t,T,e.emptyArray,e.emptyArray,e.emptyArray);var i=js(t),a=Js(t),o=Vs(t.target||t),s=Us(t.target||t),c=pc(Gs(t)),l=Ws(t),u=$?128:8576;if(zs(t)){for(var _=0,d=ec(c);_0&&(u=e.map(u,(function(e){var t=Ss(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a=7))||_t:528&r.flags?Ot:12288&r.flags?Yl(U>=2):67108864&r.flags?_t:4194304&r.flags?ot:2&r.flags&&!W?_t:r}function fc(e){return hc(pc(hc(e)))}function gc(t,r,n){for(var i,a,o,s,c,l=1048576&t.flags,u=l?0:16777216,_=4,d=0,p=!1,f=0,g=t.types;f2?(w.checkFlags|=65536,w.deferralParent=t,w.deferralConstituents=E):w.type=l?Su(E):wu(E),w}}function mc(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;return o||(o=gc(t,r,n))&&(n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(r,o),o}function yc(t,r,n){var i=mc(t,r,n);return!i||16&e.getCheckFlags(i)?void 0:i}function hc(t){return 1048576&t.flags&&33554432&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,hc);if(r===t.types)return t;var n=Su(r);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(t)):2097152&t.flags?(33554432&t.objectFlags||(t.objectFlags|=33554432|(e.some($s(t),vc)?67108864:0)),67108864&t.objectFlags?Ze:t):t}function vc(e){return bc(e)||xc(e)}function bc(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&To(t).flags))}function xc(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function Dc(t,r){if(2097152&r.flags&&67108864&e.getObjectFlags(r)){var n=e.find($s(r),bc);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ba(r,void 0,536870912),ha(n));var i=e.find($s(r),xc);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,ba(r,void 0,536870912),ha(i))}return t}function Sc(e,t,r){if(524288&(e=fc(e)).flags){var n=Xs(e),i=n.members.get(t);if(i&&Wi(i))return i;if(r)return;var a=n===mt?kt:n.callSignatures.length?At:n.constructSignatures.length?Nt:void 0;if(a){var o=Zs(a,t);if(o)return o}return Zs(Tt,t)}if(3145728&e.flags)return yc(e,t,r)}function Ec(t,r){if(3670016&t.flags){var n=Xs(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function Cc(e,t){return Ec(fc(e),t)}function Tc(t,r){return e.find(t,(function(e){return e.keyType===r}))}function kc(t,r){for(var n,i,a,o=0,s=t;o=0),n>=xv(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function Vc(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&311===n.type.kind}function Uc(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function Kc(t){var r,n=0;if(t)for(var i=0;i=n&&o<=a){for(var s=t?t.slice():[],c=o;cl.arguments.length&&!f||Bc(d)||(o=i.length)}if((170===t.kind||171===t.kind)&&fs(t)&&(!c||!s)){var g=170===t.kind?171:170,m=e.getDeclarationOfKind(ji(t),g);m&&(s=(r=tE(m))&&r.symbol)}var y=169===t.kind?Go(Bi(t.parent.symbol)):void 0,h=y?y.localTypeParameters:Mc(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!qc(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=Nn(3,"args",32768);return o.type=a?ru(V_(a.type)):Rt,a&&r.pop(),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=Ds(t,h,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function Wc(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t);return(null==r?void 0:r.typeExpression)&&vh(V_(r.typeExpression))}}function qc(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===le.escapedName&&Xf(r)===le;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 Hc(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(Gc(i))}}return r}function Yc(e){var t=Ei(e,e);if(t){var r=Ai(t);if(r)return To(r)}return Ne}function Xc(e){if(e.thisParameter)return To(e.thisParameter)}function Qc(t){if(!t.resolvedTypePredicate){if(t.target){var r=Qc(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,Uc(o.kind,o.parameterName,o.parameterIndex,dd(o.type,s))):hr}else if(t.compositeSignatures)t.resolvedTypePredicate=function(e,t){for(var r,n=[],i=0,a=e;i=0}function rl(e){if(j(e)){var t=To(e.parameters[e.parameters.length-1]),r=Bp(t)?Vp(t):t;return r&&Pc(r,Ke)}}function nl(e,t,r,n){var i=il(e,zc(t,e.typeParameters,Kc(e.typeParameters),r));if(n){var a=bh($c(i));if(a){var o=Ss(a);o.typeParameters=n;var s=Ss(i);return s.resolvedReturnType=cl(o),s}}return i}function il(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=hl(r),a=n.get(i);return a||n.set(i,a=al(t,r)),a}function al(e,t){return nd(e,function(e,t){return q_(e.typeParameters,t)}(e,t),!0)}function ol(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return nd(e,Z_(e.typeParameters),!0)}(e)):e}function sl(t){var r=t.typeParameters;if(r){if(t.baseSignatureCache)return t.baseSignatureCache;for(var n=Z_(r),i=q_(r,e.map(r,(function(e){return rc(e)||Le}))),a=e.map(r,(function(e){return dd(e,i)||Le})),o=0;o1&&(t+=":"+a),n+=a}return t}function vl(e,t){return e?"@"+O(e)+(t?":"+hl(t):""):""}function bl(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,ba(n,void 0,2),o,i.length),!s)return Pe}return 176===t.kind&&au(t,e.length(t.typeArguments)!==i.length)?Sl(n,t,void 0):xl(n,e.concatenate(n.outerTypeParameters,zc(Jl(t),i,o,s)))}return Rl(t,r)?n:Pe}function kl(t,r,n,i){var a=es(t);if(a===Oe&&w.has(t.escapedName)&&r&&1===r.length)return Vu(t,r[0]);var o=Bn(t),s=o.typeParameters,c=hl(r)+vl(n,i),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=pd(a,q_(s,zc(r,s,Kc(s),e.isInJSFile(t.valueDeclaration))),n,i)),l}function Al(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias);return!(!n||!e.getContainingFunction(n))}function Nl(t){switch(t.kind){case 176:return t.typeName;case 226:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function wl(e,t,r){return e&&Di(e,t,r)||ke}function Fl(t,r){if(r===ke)return Pe;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=ji(n);if(i)return ev(i,t)}}}(r)||r).flags)return Tl(t,r);if(524288&r.flags)return function(t,r){var n=es(r),i=Bn(r).typeParameters;if(i){var a=e.length(t.typeArguments),o=Kc(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,ha(r),o,i.length),Pe;var s=x_(t),c=!s||!Al(r)&&Al(s)?void 0:s;return kl(r,Jl(t),c,D_(c))}return Rl(t,r)?n:Pe}(t,r);var n=ts(r);if(n)return Rl(t,r)?F_(n):Pe;if(111551&r.flags&&Ml(t)){var i=function(e,t){var r=jn(e);if(!r.resolvedJSDocType){var n=To(t),i=n;if(t.valueDeclaration){var a=198===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=Fl(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(t,r);return i||(wl(Nl(t),788968),To(r))}return Pe}function Pl(e,t){if(3&t.flags||t===e)return e;var r=mu(e)+">"+mu(t),n=Se.get(r);if(n)return n;var i=Hi(33554432);return i.baseType=e,i.substitute=t,Se.set(r,i),i}function Il(e){return 182===e.kind&&1===e.elements.length}function Ol(e,t,r){return Il(t)&&Il(r)?Ol(e,t.elements[0],r.elements[0]):l_(V_(t))===e?V_(r):void 0}function Ll(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=Ol(t,a.checkType,a.extendsType);o&&(n=e.append(n,o))}r=a}return n?Pl(t,wu(e.append(n,t))):t}function Ml(e){return!!(4194304&e.flags)&&(176===e.kind||198===e.kind)}function Rl(t,r){return!t.typeArguments||(Sn(t,e.Diagnostics.Type_0_is_not_generic,r?ha(r):t.typeName?e.declarationNameToString(t.typeName):l),!1)}function Bl(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Rl(t),Ue;case"Number":return Rl(t),Ke;case"Boolean":return Rl(t),Ye;case"Void":return Rl(t),Qe;case"Undefined":return Rl(t),Me;case"Null":return Rl(t),Je;case"Function":case"function":return Rl(t),kt;case"array":return r&&r.length||X?void 0:Rt;case"promise":return r&&r.length||X?void 0:wv(Ne);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=V_(r[0]),i=V_(r[1]),a=n===Ue||n===Ke?[_l(n,i,!1)]:e.emptyArray;return ra(void 0,T,e.emptyArray,e.emptyArray,a)}return Ne}return Rl(t),X?void 0:Ne}}}function jl(t){var r=jn(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=ke,r.resolvedType=lb(t.parent.expression);var n=void 0,i=void 0,a=788968;Ml(t)&&((i=Bl(t))||((n=wl(Nl(t),a,!0))===ke?n=wl(Nl(t),900095):wl(Nl(t),a),i=Fl(t,n))),i||(i=Fl(t,n=wl(Nl(t),a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function Jl(t){return e.map(t.typeArguments,V_)}function Vl(t){var r=jn(t);if(!r.resolvedType){var n=e.isThisIdentifier(t.exprName)?vm(t.exprName):kb(t.exprName);r.resolvedType=F_(pf(n))}return r.resolvedType}function Ul(t,r){function n(e){var t=e.declarations;if(t)for(var r=0,n=t;r=0)return Pu(e.map(r,(function(e,r){return 8&t.elementFlags[r]?e:Le})))?Rg(r[o],(function(n){return _u(t,e.replaceElement(r,o,n))})):Pe}for(var s=[],c=[],l=[],u=-1,d=-1,p=-1,f=function(o){var c=r[o],l=t.elementFlags[o];if(8&l)if(58982400&c.flags||Ys(c))h(c,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]);else if(Bp(c)){var u=El(c);if(u.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:Pe};e.forEach(u,(function(e,t){var r;return h(e,c.target.elementFlags[t],null===(r=c.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}))}else h(Sp(c)&&Pc(c,Ke)||Pe,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else h(c,l,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},g=0;g=0&&di.fixedLength?function(e){var t=Vp(e);return t&&ru(t)}(t)||cu(e.emptyArray):cu(El(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function pu(t){return Su(e.append(e.arrayOf(t.target.fixedLength,(function(e){return I_(""+e)})),Ru(t.target.readonly?Ft:wt)))}function fu(t,r){var n=e.findIndex(t.elementFlags,(function(e){return!(e&r)}));return n>=0?n:t.elementFlags.length}function gu(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,(function(e){return!(e&r)}))-1}function mu(e){return e.id}function yu(t,r){return e.binarySearch(t,r,mu,e.compareValues)>=0}function hu(t,r){var n=e.binarySearch(t,r,mu,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function vu(t,r,n){var i=n.flags;if(1048576&i)return bu(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===Fe&&(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,mu,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function bu(e,t,r){for(var n=0,i=r;n=0&&yu(o,Me)&&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||P_(a)&&yu(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}}(o,s,!!(2&r)),128&s&&134217728&s&&function(t){var r=e.filter(t,Hu);if(r.length)for(var n=t.length,i=function(){n--;var i=t[n];128&i.flags&&e.some(r,(function(e){return Cd(i,e)}))&&e.orderedRemoveItemAt(t,n)};n>0;)i()}(o),2===r&&(o=function(t,r){var n=hl(t),i=Ee.get(n);if(i)return i;for(var a=r&&e.some(t,(function(e){return!!(524288&e.flags)&&!Ys(e)&&Ud(Xs(e))})),o=t.length,s=o,c=0;s>0;){var l=t[--s];if(a||469499904&l.flags)for(var u=61603840&l.flags?e.find(ec(l),(function(e){return wp(To(e))})):void 0,d=u&&F_(To(u)),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++,u&&61603840&g.flags){var m=ja(g,u.escapedName);if(m&&wp(m)&&F_(m)!==d)continue}if(Hd(l,g,fn)&&(!(1&e.getObjectFlags(No(l)))||!(1&e.getObjectFlags(No(g)))||kd(l,g))){e.orderedRemoveItemAt(t,s);break}}}}return Ee.set(n,t),t}(o,!!(524288&s)),!o))return Pe;if(0===o.length)return 65536&s?4194304&s?Je:Ve:32768&s?4194304&s?Me:Re:Ze}if(!a&&1048576&s){var l=[];xu(l,t);for(var u=[],d=function(t){e.some(l,(function(e){return yu(e.types,t)}))||u.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,zd)),0===o.length)return Le;if(1===o.length)return o[0];var s=hl(o)+vl(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 l=wu(i);131072&l.flags||r.push(l)}return r}(o);c=Su(l,1,r,n,e.some(l,(function(e){return!!(2097152&e.flags)}))?Du(2097152,o):void 0)}else c=function(e,t,r){var n=Hi(2097152);return n.objectFlags=bl(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(o,r,n);ge.set(s,c)}return c}function Fu(t){return e.reduceLeft(t,(function(e,t){return 1048576&t.flags?e*t.types.length:131072&t.flags?0:e}),1)}function Pu(t){var r=Fu(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 Iu(e,t){var r=Hi(4194304);return r.type=e,r.stringsOnly=t,r}function Ou(e,t,r){return dd(e,td(t.mapper,js(t),r))}function Lu(t){return e.isPrivateIdentifier(t)?Ze:e.isIdentifier(t)?I_(e.unescapeLeadingUnderscores(t.escapedText)):F_(e.isComputedPropertyName(t)?ry(t):kb(t))}function Mu(t,r,n){if(n||!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var i=Bn(vs(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i="default"===t.escapedName?I_("default"):a&&Lu(a)||(e.isKnownSymbol(t)?void 0:I_(e.symbolName(t)))}if(i&&i.flags&r)return i}return Ze}function Ru(t,r,n){return void 0===r&&(r=$),1048576&(t=hc(t)).flags?wu(e.map(t.types,(function(e){return Ru(e,r,n)}))):2097152&t.flags?Su(e.map(t.types,(function(e){return Ru(e,r,n)}))):58982400&t.flags||jp(t)||Ys(t)&&(a=js(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))}(Vs(i)||a))?function(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Iu(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=Iu(e,!1))}(t,r):32&e.getObjectFlags(t)?function(t,r){var n=Og(Js(t),(function(e){return!(r&&5&e.flags)})),i=t.declaration.nameType&&V_(t.declaration.nameType),a=i&&Ig(n,(function(e){return!!(131084&e.flags)}))&&ec(pc(Gs(t)));return i?Su([Rg(n,(function(e){return Ou(i,t,e)})),Rg(Su(e.map(a||e.emptyArray,(function(e){return Mu(e,8576)}))),(function(e){return Ou(i,t,e)}))]):n}(t,n):t===Fe?Fe:2&t.flags?Ze:131073&t.flags?ot:function(t,r,n){var i=n&&(7&e.getObjectFlags(t)||t.aliasSymbol)?function(e){var t=Yi(4194304);return t.type=e,t}(t):void 0,a=e.map(ec(t),(function(e){return Mu(e,r)})),o=e.map(wc(t),(function(e){return e!==Sr&&e.keyType.flags&r?e.keyType===Ue&&8&r?it:e.keyType:Ze}));return Su(e.concatenate(a,o),1,void 0,void 0,i)}(t,(n?128:402653316)|(r?0:12584),r===$&&!n);var i,a}function Bu(t){if($)return t;var r=cr||(cr=Gl("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return r?kl(r,[t,Ue]):Ue}function ju(t,r){var n=e.findIndex(r,(function(e){return!!(1179648&e.flags)}));if(n>=0)return Pu(r)?Rg(r[n],(function(i){return ju(t,e.replaceElement(r,n,i))})):Pe;if(e.contains(r,Fe))return Fe;var i=[],a=[],o=t[0];if(!function e(t,r){for(var n=0;n=0){if(a&&Ig(r,(function(e){return!e.target.hasRestElement}))&&!(16&o)){var d=Wu(a);Bp(r)?Sn(d,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,ba(r),Cl(r),e.unescapeLeadingUnderscores(l)):Sn(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),ba(r))}return b(Fc(r,Ke)),Rg(r,(function(e){var t=Vp(e)||Me;return 1&o?Su([t,Me]):t}))}}if(!(98304&n.flags)&&Yv(n,402665900)){if(131073&r.flags)return r;var p=Oc(r,n)||Fc(r,Ue);if(p)return 2&o&&p.keyType!==Ke?void(c&&Sn(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,ba(n),ba(t))):a&&p.keyType===Ue&&!Yv(n,12)?(Sn(d=Wu(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ba(n)),1&o?Su([p.type,Me]):p.type):(b(p),1&o?Su([p.type,Me]):p.type);if(131072&n.flags)return Ze;if(Uu(r))return Ne;if(c&&!Qv(r)){if(zf(r)){if(X&&384&n.flags)return ln.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,ba(r))),Me;if(12&n.flags){var f=e.map(r.properties,(function(e){return To(e)}));return Su(e.append(f,Me))}}if(r.symbol===se&&void 0!==l&&se.exports.has(l)&&418&se.exports.get(l).flags)Sn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),ba(r));else if(X&&!V.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&Xy(l,r)){var g=ba(r);Sn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,g,g+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(Pc(r,Ke))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!==l&&(m=eh(l,r)))void 0!==m&&Sn(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,ba(r),m);else{var y=function(t,r,n){var i=e.isAssignmentTarget(r)?"set":"get";if(function(e){var r=Zs(t,e);if(r){var i=vh(To(r));return!!i&&xv(i)>=1&&Td(n,yv(i,0))}return!1}(i)){var a=e.tryGetPropertyAccessOrIdentifierToString(r.expression);return void 0===a?a=i:a+="."+i,a}}(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,ba(r),y);else{var h=void 0;if(1024&n.flags)h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+ba(n)+"]",ba(r));else if(8192&n.flags){var v=xi(n.symbol,c);h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+v+"]",ba(r))}else 128&n.flags||256&n.flags?h=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,ba(r)):12&n.flags&&(h=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ba(n),ba(r)));h=e.chainDiagnosticMessages(h,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ba(i),ba(r)),ln.add(e.createDiagnosticForNodeFromMessageChain(c,h))}}}return}}return Uu(r)?Ne:(a&&(d=Wu(a),384&n.flags?Sn(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,ba(r)):12&n.flags?Sn(d,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,ba(r),ba(n)):Sn(d,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ba(n))),Ja(n)?n:void 0);function b(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&Sn(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ba(r))}}function Wu(e){return 205===e.kind?e.argumentExpression:192===e.kind?e.indexType:160===e.kind?e.expression:e}function qu(e){return!!(77&e.flags)}function Hu(t){return!!(134217728&t.flags)&&e.every(t.types,qu)}function Yu(e){return!!Zu(e)}function Xu(e){return!!(8388608&Zu(e))}function Qu(e){return!!(16777216&Zu(e))}function Zu(t){return 3145728&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|e.reduceLeft(t.types,(function(e,t){return e|Zu(t)}),0)),25165824&t.objectFlags):33554432&t.flags?(4194304&t.objectFlags||(t.objectFlags|=4194304|Zu(t.substitute)|Zu(t.baseType)),25165824&t.objectFlags):(58982400&t.flags||Ys(t)||jp(t)?8388608:0)|(465829888&t.flags&&!Hu(t)?16777216:0)}function $u(e){return!!(262144&e.flags&&e.isThisType)}function e_(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===ht?t:t[n];t[n]=ht;var i=e_(t.objectType,r),a=e_(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,(function(e){return e_(i_(t,e),n)}));return n?wu(i):Su(i)}}(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=t_(i,a,r);if(s)return t[n]=s}if(jp(i)&&296&a.flags){var c=Up(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}return Ys(i)?t[n]=Rg(n_(i,t.indexType),(function(e){return e_(e,r)})):t[n]=t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=f_(e),a=g_(e);if(131072&a.flags&&l_(i)===l_(r)){if(1&r.flags||Td(gd(r),gd(n)))return e_(i,t);if(r_(r,n))return Ze}else if(131072&i.flags&&l_(a)===l_(r)){if(!(1&r.flags)&&Td(gd(r),gd(n)))return Ze;if(1&r.flags||r_(r,n))return e_(a,t)}return e}(t,r):t}function t_(t,r,n){if(3145728&t.flags){var i=e.map(t.types,(function(e){return e_(i_(e,r),n)}));return 2097152&t.flags||n?wu(i):Su(i)}}function r_(e,t){return!!(131072&Su([Ps(e,t),Ze]).flags)}function n_(e,t){var r=q_([js(e)],[t]),n=$_(e.mapper,r);return dd(Us(e),n)}function i_(e,t,r,n,i,a){return void 0===r&&(r=0),o_(e,t,r,n,i,a)||(n?Pe:Le)}function a_(e,t){return Ig(e,(function(e){if(384&e.flags){var r=gs(e);if(ty(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:C,instantiationCount:E}),Sn(_,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Pe;x++,E++,C++;var a=function(t,r,n,i){var a=t.flags;if(262144&a)return H_(t,r);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=z_(s,r);return c!==s?uu(t.target,c):t}return 1024&o?function(t,r){var n=dd(t.mappedType,r);if(!(32&e.getObjectFlags(n)))return t;var i=dd(t.constraintType,r);if(!(4194304&i.flags))return t;var a=wf(dd(t.source,r),n,i);return a||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 l=Po(a,!0);if($h(a)){var u=Mc(a);l=e.addRange(l,u)}c=l||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 ad(t,e)}))})):c,o.outerTypeParameters=c}if(c.length){var d=$_(t.mapper,r),p=e.map(c,(function(e){return H_(e,d)})),f=n||t.aliasSymbol,g=n?i:z_(t.aliasTypeArguments,r),m=hl(p)+vl(f,g);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(hl(c)+vl(s.aliasSymbol,s.aliasTypeArguments),s));var y=s.instantiations.get(m);if(!y){var h=q_(c,p);y=4&s.objectFlags?Sl(t.target,t.node,h,f,g):32&s.objectFlags?sd(s,h,f,g):ud(s,h,f,g),s.instantiations.set(m,y)}return y}return t}(t,r,n,i)}return t}if(3145728&a){var l=1048576&t.flags?t.origin:void 0,u=l&&3145728&l.flags?l.types:t.types,_=z_(u,r);if(_===u&&n===t.aliasSymbol)return t;var d=n||t.aliasSymbol,p=n?i:z_(t.aliasTypeArguments,r);return 2097152&a||l&&2097152&l.flags?wu(_,d,p):Su(_,1,d,p)}if(4194304&a)return Ru(dd(t.type,r));if(134217728&a)return ju(t.texts,z_(t.types,r));if(268435456&a)return Vu(t.symbol,dd(t.type,r));if(8388608&a)return d=n||t.aliasSymbol,p=n?i:z_(t.aliasTypeArguments,r),i_(dd(t.objectType,r),dd(t.indexType,r),t.accessFlags,void 0,d,p);if(16777216&a)return _d(t,$_(t.mapper,r),n,i);if(33554432&a){var f=dd(t.baseType,r);if(8650752&f.flags)return Pl(f,dd(t.substitute,r));var g=dd(t.substitute,r);return 3&g.flags||Td(gd(f),gd(g))?f:g}return t}(t,r,n,i);return C--,a}function fd(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=dd(e,ut))}function gd(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=dd(e,lt),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function md(e,t){return _l(e.keyType,dd(e.type,t),e.isReadonly,e.declaration)}function yd(t){switch(e.Debug.assert(167!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 211:case 212:case 167:case 254:return hd(t);case 203:return e.some(t.properties,yd);case 202:return e.some(t.elements,yd);case 220:return yd(t.whenTrue)||yd(t.whenFalse);case 219:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(yd(t.left)||yd(t.right));case 291:return yd(t.initializer);case 210:return yd(t.expression);case 284:return e.some(t.properties,yd)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,yd);case 283:var r=t.initializer;return!!r&&yd(r);case 286:var n=t.expression;return!!n&&yd(n)}return!1}function hd(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!Xa(t))&&(e.hasContextSensitiveParameters(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&233!==t.body.kind&&yd(t.body)}(t))}function vd(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||Hm(t)||e.isObjectLiteralMethod(t))&&hd(t)}function bd(t){if(524288&t.flags){var r=Xs(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Qi(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 wu(e.map(t.types,bd));return t}function xd(e,t){return Hd(e,t,yn)}function Dd(e,t){return Hd(e,t,yn)?-1:0}function Sd(e,t){return Hd(e,t,gn)?-1:0}function Ed(e,t){return Hd(e,t,pn)?-1:0}function Cd(e,t){return Hd(e,t,pn)}function Td(e,t){return Hd(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(sc(t)||Le,r):r===Tt?!!(67633152&t.flags):r===kt?!!(524288&t.flags)&&dg(t):wo(t,No(r))||vp(r)&&!bp(r)&&kd(t,Ft)}function Ad(e,t){return Hd(e,t,mn)}function Nd(e,t){return Ad(e,t)||Ad(t,e)}function wd(e,t,r,n,i,a){return Qd(e,t,gn,r,n,i,a)}function Fd(e,t,r,n,i,a){return Pd(e,t,gn,r,n,i,a,void 0)}function Pd(e,t,r,n,i,a,o,s){return!!Hd(e,t,r)||(!n||!Od(i,e,t,r,a,o,s))&&Qd(e,t,r,n,a,o,s)}function Id(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,Id))}function Od(t,r,n,i,o,c,l){if(!t||Id(n))return!1;if(!Qd(r,n,i,void 0)&&function(t,r,n,i,a,o,s){for(var c=Cc(r,0),l=Cc(r,1),u=0,_=[l,c];u<_.length;u++){var d=_[u];if(e.some(d,(function(e){var t=$c(e);return!(131073&t.flags)&&Qd(t,n,i,void 0)}))){var p=s||{};wd(r,n,t,a,o,p);var f=p.errors[p.errors.length-1];return e.addRelatedInfo(f,e.createDiagnosticForNode(t,d===l?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(t,r,n,i,o,c,l))return!0;switch(t.kind){case 286:case 210:return Od(t.expression,r,n,i,o,c,l);case 219:switch(t.operatorToken.kind){case 63:case 27:return Od(t.right,r,n,i,o,c,l)}break;case 203:return function(t,r,n,i,a,o){return!(131068&n.flags)&&Rd(function(t){var r,n,i,a;return s(this,(function(o){switch(o.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,o.label=1;case 1:if(!(r1,h=Og(g,Ap),v=Og(g,(function(e){return!Ap(e)}));if(y){if(h!==Ze){var b=cu(uy(_,0)),x=function(t,r){var n,i,a,o,c;return s(this,(function(s){switch(s.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,s.label=1;case 1:return i_:xv(t)>_))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=Dh(t,r=(u=r).typeParameters?u.canonicalSignatureCache||(u.canonicalSignatureCache=function(t){return nl(t,e.map(t.typeParameters,(function(e){return e.target&&!rc(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(u)):u,void 0,s));var d=bv(t),p=Ev(t),f=Ev(r);if((p||f)&&dd(p||f,c),p&&f&&d!==_)return 0;var g=r.declaration?r.declaration.kind:0,m=!(3&n)&&q&&167!==g&&166!==g&&169!==g,y=-1,h=Xc(t);if(h&&h!==Qe){var v=Xc(r);if(v){if(!(C=!m&&s(h,v,!1)||s(v,h,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;y&=C}}for(var b=p||f?Math.min(d,_):Math.max(d,_),x=p||f?b-1:-1,D=0;D=xv(t)&&D0||iS(c));if(f&&!function(e,t,r){for(var n=0,i=ec(e);n0&&B($c(h[0]),l,!1)||v.length>0&&B($c(v[0]),l,!1)?L(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,g,y):L(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,g,y)}return 0}j(c,l);var b=0,D=P();if((3145728&c.flags||3145728&l.flags)&&(b=jg(c)*jg(l)>=4?z(c,l,i,8|s):G(c,l,i,8|s)),b||1048576&c.flags||!(469499904&c.flags||469499904&l.flags)||(b=z(c,l,i,s))&&F(D),!b&&2359296&c.flags){var E=function(t,r){for(var n,i=!1,a=0,o=t;a0;if(p&&x--,524288&n.flags&&524288&s.flags){var f=u;R(n,s,i),u!==f&&(p=!!u)}if(524288&n.flags&&131068&s.flags)!function(t,r){var n=Sa(t.symbol)?ba(t,t.symbol.valueDeclaration):ba(t),i=Sa(r.symbol)?ba(r,r.symbol.valueDeclaration):ba(r);(Pt===t&&Ue===r||It===t&&Ke===r||Ot===t&&Ye===r||Yl(!1)===t&&Xe===r)&&L(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(n,s);else if(n.symbol&&524288&n.flags&&Tt===n)L(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(l&&2097152&s.flags){var g=s.types,y=dy(N.IntrinsicAttributes,a),h=dy(N.IntrinsicClassAttributes,a);if(y!==Pe&&h!==Pe&&(e.contains(g,y)||e.contains(g,h)))return c}else u=Dc(u,r);if(!o&&p)return m=[n,s],c;M(o,n,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 l=B(c,o.types[s%o.types.length],!1,void 0,n);if(l){i&=l;continue}}var u=B(c,t,r,void 0,n);if(!u)return 0;i&=u}return i}(t,r,i&&!(131068&t.flags),-9&a);if(1048576&r.flags)return U(sf(t),r,i&&!(131068&t.flags)&&!(131068&r.flags));if(2097152&r.flags)return function(e,t,r,n){for(var i=-1,a=0,o=t.types;a25)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(i.length),l=new e.Set,u=0;u=f-S)?t.target.elementFlags[T]:4,A=r.target.elementFlags[C];if(8&A&&!(8&k))return a&&L(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,C),0;if(8&k&&!(12&A))return a&&L(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,T,C),0;if(1&A&&!(1&k))return a&&L(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,C),0;if(!(E&&((12&k||12&A)&&(E=!1),E&&(null==s?void 0:s.has(""+C))))){var N=Bp(t)?C=f-S?tf(v[T],!!(k&A&2)):Up(t,D,S)||Ze:v[0],w=b[C];if(!(W=B(N,8&k&&4&A?ru(w):tf(w,!!(2&A)),a,void 0,c)))return a&&(f>1||p>1)&&(C=f-S||p-D-S==1?I(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,T,C):I(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,D,p-S-1,C)),0;_&=W}}return _}if(12&r.target.combinedFlags)return 0}var F=!(n!==pn&&n!==fn||zf(t)||Tp(t)||Bp(t)),P=Of(t,r,F,!1);if(P)return a&&function(t,r,n,a){var s=!1;if(n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name)&&t.symbol&&32&t.symbol.flags){var c=n.valueDeclaration.name.escapedText,_=e.getSymbolNameForPrivateIdentifier(t.symbol,c);if(_&&Sc(t,_)){var p=e.factory.getDeclarationName(t.symbol.valueDeclaration),f=e.factory.getDeclarationName(r.symbol.valueDeclaration);return void L(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Hn(c),Hn(""===p.escapedText?l:p),Hn(""===f.escapedText?l:f))}}var g,m=e.arrayFrom(If(t,r,a,!1));if((!o||o.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&o.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(s=!0),1===m.length){var y=ha(n);L.apply(void 0,i([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,y],xa(t,r),!1)),e.length(n.declarations)&&(g=e.createDiagnosticForNode(n.declarations[0],e.Diagnostics._0_is_declared_here,y),e.Debug.assert(!!u),d?d.push(g):d=[g]),s&&u&&x++}else R(t,r,!1)&&(m.length>5?L(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ba(t),ba(r),e.map(m.slice(0,4),(function(e){return ha(e)})).join(", "),m.length-4):L(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ba(t),ba(r),e.map(m,(function(e){return ha(e)})).join(", ")),s&&u&&x++)}(t,r,P,F),0;if(zf(r))for(var O=0,M=Y(ec(t),s);O0||Cc(t,n=1).length>0)return e.find(r.types,(function(e){return Cc(e,n).length>0}))}(t,r)||function(t,r){for(var n,i=0,a=0,o=r.types;a=i&&(n=s,i=l)}else wp(c)&&1>=i&&(n=s,i=1)}return n}(t,r)}function ep(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,tp)}function rp(t,r,n){var i=xl(t,e.map(t.typeParameters,(function(e){return e===r?n:e})));return i.objectFlags|=4096,i}function np(e){var t=Bn(e);return ip(t.typeParameters,t,(function(r,n,i){var a=kl(e,z_(t.typeParameters,Y_(n,i)));return a.aliasTypeArgumentsContainsMarker=!0,a}))}function ip(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,bt),c=n(r,e,xt),l=(Td(c,o)?1:0)|(Td(o,c)?2:0);3===l&&Td(n(r,e,yr),o)&&(l=4),mr=a,(t||i)&&(t&&(l|=8),i&&(l|=16)),s.push(l)},l=0,u=t;l":n+="-"+o.id}return n}function lp(e,t,r,n){if(n===yn&&e.id>t.id){var i=e;e=t,t=i}var a=r?":"+r:"";if(sp(e)&&sp(t)){var o=[];return cp(e,o)+","+cp(t,o)+a}return e.id+","+t.id+a}function up(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&&!Gf(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(Bp(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 gp(e,t){return 0!==mp(e,t,Dd)}function mp(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(hD(t)!==hD(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return zv(t)!==zv(r)?0:n(To(t),To(r))}function yp(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=bv(e),i=bv(t),a=xv(e),o=xv(t),s=Dv(e),c=Dv(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=q_(t.typeParameters,r.typeParameters),c=0;ce.length(r.typeParameters)&&(a=bs(a,e.last(El(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=a}}}function Cp(e){return W?e===tt:e===Re}function Tp(e){var t=Dp(e);return!!t&&Cp(t)}function kp(e){return Bp(e)||!!Sc(e,"0")}function Ap(e){return Sp(e)||kp(e)}function Np(e){return!(240512&e.flags)}function wp(e){return!!(109440&e.flags)}function Fp(t){return 2097152&t.flags?e.some(t.types,wp):!!(109440&t.flags)}function Pp(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,wp):wp(t))}function Ip(e){return 1024&e.flags?Xo(e):128&e.flags?Ue:256&e.flags?Ke:2048&e.flags?ze:512&e.flags?Ye:1048576&e.flags?Rg(e,Ip):e}function Op(e){return 1024&e.flags&&P_(e)?Xo(e):128&e.flags&&P_(e)?Ue:256&e.flags&&P_(e)?Ke:2048&e.flags&&P_(e)?ze:512&e.flags&&P_(e)?Ye:1048576&e.flags?Rg(e,Op):e}function Lp(e){return 8192&e.flags?Xe:1048576&e.flags?Rg(e,Lp):e}function Mp(e,t){return pb(e,t)||(e=Lp(Op(e))),e}function Rp(e,t,r,n){return e&&wp(e)&&(e=Mp(e,t?oD(r,t,n):void 0)),e}function Bp(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function jp(e){return Bp(e)&&!!(8&e.target.combinedFlags)}function Jp(e){return jp(e)&&1===e.target.elementFlags.length}function Vp(e){return Up(e,e.target.fixedLength)}function Up(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=Cl(e)-r;if(t-1&&(zn(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 Cn(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}Cn(X,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function yf(t,n,i){!(r&&X&&131072&e.getObjectFlags(n))||i&&Ym(t)||gf(n)||mf(t,n,i)}function hf(e,t,r){var n=bv(e),i=bv(t),a=Sv(e),o=Sv(t),s=o?i-1:i,c=a?s:Math.min(n,s),l=Xc(e);if(l){var u=Xc(t);u&&r(l,u)}for(var _=0;_0){for(var y=p,h=f;!((h=v(y).indexOf(m,h))>=0);){if(++y===e.length)return;h=0}b(y,h),f+=m.length}else if(f0)for(var D=0,S=r;De.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength1){var r=e.filter(t,Gf);if(r.length){var n=Su(r,2);return e.concatenate(e.filter(t,(function(e){return!Gf(e)})),[n])}}return t}(t.candidates),a=!!(n=rc(t.typeParameter))&&Hv(16777216&n.flags?ic(n):n,406978556),o=!a&&t.topLevel&&(t.isFixed||!Nf($c(r),t.typeParameter)),s=a?e.sameMap(i,F_):o?e.sameMap(i,Op):i;return pf(416&t.priority?Su(s,2):function(t){if(!W)return hp(t);var r=e.filter(t,(function(e){return!(98304&e.flags)}));return r.length?Hp(hp(r),98304&zp(t)):Su(t,2)}(s))}(a,s):void 0;if(a.contraCandidates){var l=function(t){return 416&t.priority?wu(t.contraCandidates):(r=t.contraCandidates,e.reduceLeft(r,(function(e,t){return Cd(t,e)?t:e})));var r}(a);o=!c||131072&c.flags||!Cd(c,l)?l:c}else if(c)o=c;else if(1&t.flags)o=$e;else{var u=dc(a.typeParameter);u&&(o=dd(u,(n=function(t,r){return X_((function(n){return e.findIndex(t.inferences,(function(e){return e.typeParameter===n}))>=r?Le:n}))}(t,r),i=t.nonFixingMapper,n?Q_(4,n,i):i)))}}else o=Lf(a);a.inferredType=o||qf(!!(2&t.flags));var _=rc(a.typeParameter);if(_){var d=dd(_,t.nonFixingMapper);o&&t.compareTypes(o,bs(d,o))||(a.inferredType=o=d)}}return a.inferredType}function qf(e){return e?Ne:Le}function Hf(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 sg(e,t){var r,n=null===(r=e.constituentMap)||void 0===r?void 0:r.get(mu(F_(t)));return n!==Le?n:void 0}function cg(e,t){var r=og(e),n=r&&ja(t,r);return n&&sg(e,n)}function lg(e,t){return $f(e,t)||rg(e,t)}function ug(e,t){if(e.arguments)for(var r=0,n=e.arguments;r=0&&r.parameterIndex=n&&c-1){var u=a.filter((function(e){return void 0!==e})),_=c0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return V_(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return V_(i.typeExpression)}(n);if(!a){var o=function(t){return 211===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:167===t.kind&&203===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression: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)?t.parent.parent.parent.left.expression: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)?t.parent.parent.parent.arguments[0].expression: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)?t.parent.parent.arguments[0].expression:void 0}(n);if(i&&o){var s=kb(o).symbol;s&&s.members&&16&s.flags&&(a=es(s).thisType)}else $h(n)&&(a=es(Bi(n.symbol)).thisType);a||(a=Cm(n))}if(a)return am(t,a)}if(e.isClassLike(n.parent)){var c=ji(n.parent);return am(t,e.isStatic(n)?To(c):es(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var l=ji(n);return l&&To(l)}if(n.externalModuleIndicator)return Me;if(r)return To(se)}}function xm(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":162===t.kind&&t.parent===r}))}function Dm(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=U<2;var o=function(t){return!!t&&(r?169===t.kind:!(!e.isClassLike(t.parent)&&203!==t.parent.kind)&&(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))}(i),s=0;if(!o){var c=e.findAncestor(t,(function(e){return e===i?"quit":160===e.kind}));return c&&160===c.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),Pe}if(r||169!==n.kind||hm(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?(s=512,!r&&U>=2&&U<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(t.parent,(function(t){e.isSourceFile(t)&&!e.isExternalOrCommonJsModule(t)||(jn(t).flags|=134217728)}))):s=256,jn(t).flags|=s,167===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?jn(i).flags|=4096:jn(i).flags|=2048),a&&gm(t.parent,i),203===i.parent.kind)return U<2?(Sn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Pe):Ne;var l=i.parent;if(!e.getClassExtendsHeritageElement(l))return Sn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Pe;var u=es(ji(l)),_=u&&Uo(u)[0];return _?169===i.kind&&xm(t,i)?(Sn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Pe):512===s?Jo(u):bs(_,u.thisType):Pe}function Sm(t){return 4&e.getObjectFlags(t)&&t.target===Mt?El(t)[0]:void 0}function Em(t){return Rg(t,(function(t){return 2097152&t.flags?e.forEach(t.types,Sm):Sm(t)}))}function Cm(t){if(212!==t.kind){if(vd(t)){var r=Xm(t);if(r){var n=r.thisParameter;if(n)return To(n)}}var i=e.isInJSFile(t);if(Q||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=Jm(a),s=a,c=o;c;){var l=Em(c);if(l)return dd(l,Tf(zm(a)));if(291!==s.parent.kind)break;c=Jm(s=s.parent.parent)}return pf(o?Xp(o):lb(a))}var u=e.walkUpParenthesizedExpressions(t.parent);if(219===u.kind&&63===u.operatorToken.kind){var _=u.left;if(e.isAccessExpression(_)){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(u);if(p.commonJsModuleIndicator&&Xf(d)===p.symbol)return}return pf(lb(d))}}}}}function Tm(t){var r=t.parent;if(vd(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=Ph(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return Th(i,a,i.length,Ne,void 0,0);var o=jn(n),s=o.resolvedSignature;o.resolvedSignature=vr;var c=a=i?i_(To(n.parameters[i]),O_(r-i),256):yv(n,r)}function Im(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=zn(t.left,n,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function Om(t){if(!t.symbol)return Eb(t.left);if(t.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(r){var n=V_(r);if(n)return n}}var i=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=vm(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&Lm(a,o)||void 0}}function Lm(t,r){return Rg(t,(function(t){var n,i;if(Ys(t)){var a=Js(t),o=sc(a)||a,s=I_(e.unescapeLeadingUnderscores(r));if(Td(s,o))return n_(t,s)}else if(3670016&t.flags){var c=Sc(t,r);if(c)return i=c,262144&e.getCheckFlags(i)&&!i.type&&La(i,0)>=0?void 0:To(c);if(Bp(t)){var l=Vp(t);if(l&&ty(r)&&+r>=0)return l}return null===(n=kc(Nc(t),I_(e.unescapeLeadingUnderscores(r))))||void 0===n?void 0:n.type}}),!0)}function Mm(t,r){var n=t.parent,i=e.isPropertyAssignment(t)&&km(t);if(i)return i;var a=Jm(n,r);if(a){if(fs(t))return Lm(a,ji(t).escapedName);if(t.name){var o=Lu(t.name);return Rg(a,(function(e){var t;return null===(t=kc(Nc(e),o))||void 0===t?void 0:t.type}),!0)}}}function Rm(e,t){return e&&(Lm(e,""+t)||Rg(e,(function(e){return jx(1,e,Me,void 0,!1)}),!0))}function Bm(t){if(e.isJsxAttribute(t)){var r=Jm(t.parent);if(!r||Ja(r))return;return Lm(r,t.name.escapedText)}return Km(t.parent)}function jm(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 jm(e.expression);case 286:return!e.expression||jm(e.expression)}return!1}function Jm(t,r){var n=Vm(e.isObjectLiteralMethod(t)?function(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(16777216&t.flags))return Mm(t,r)}(t,r):Km(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=Rg(n,pc,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(t)?function(t,r){return function(t,r){var n=og(t),i=n&&e.find(r.properties,(function(e){return e.symbol&&291===e.kind&&e.symbol.escapedName===n&&jm(e.initializer)})),a=i&&Eb(i.initializer);return a&&sg(t,a)}(r,t)||ep(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&291===e.kind&&jm(e.initializer)&&ig(r,e.symbol.escapedName)})),(function(e){return[function(){return Tb(e.initializer)},e.symbol.escapedName]})),e.map(e.filter(ec(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)&&ig(r,e.escapedName)})),(function(e){return[function(){return Me},e.escapedName]}))),Td,r)}(t,i):1048576&i.flags&&e.isJsxAttributes(t)?function(t,r){return ep(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&283===e.kind&&ig(r,e.symbol.escapedName)&&(!e.initializer||jm(e.initializer))})),(function(e){return[e.initializer?function(){return kb(e.initializer)}:function(){return qe},e.symbol.escapedName]})),e.map(e.filter(ec(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)&&ig(r,e.escapedName)})),(function(e){return[function(){return Me},e.escapedName]}))),Td,r)}(t,i):i}}function Vm(t,r,n){if(t&&Hv(t,465829888)){var i=zm(r);if(i&&e.some(i.inferences,bb)){if(n&&1&n)return Um(t,i.nonFixingMapper);if(i.returnMapper)return Um(t,i.returnMapper)}}return t}function Um(t,r){return 465829888&t.flags?dd(t,r):1048576&t.flags?Su(e.map(t.types,(function(e){return Um(e,r)})),0):2097152&t.flags?wu(e.map(t.types,(function(e){return Um(e,r)}))):t}function Km(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=km(n);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name))return _o(n.name,!0,!1)}}(t,r);case 212:case 245:return function(t){var r=e.getContainingFunction(t);if(r){var n=wm(r);if(n){var i=e.getFunctionFlags(r);if(1&i){var a=Gx(n,2&i?2:1,void 0);if(!a)return;n=a.returnType}if(2&i){var o=Rg(n,Yb);return o&&Su([o,Fv(o)])}return n}}}(t);case 222:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=wm(r);if(i)return t.asteriskToken?i:oD(0,i,0!=(2&n))}}(n);case 216:return function(e,t){var r=Km(e,t);if(r){var n=Yb(r);return n&&Su([n,Fv(n)])}}(n,r);case 206:if(100===n.expression.kind)return Ue;case 207:return Fm(n,t);case 209:case 227:return e.isConstTypeReference(n.type)?function(e){return Km(e)}(n):V_(n.type);case 219:return function(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 Xf(t);if(e.isPropertyAccessExpression(t)){var r=Eb(t.expression);return e.isPrivateIdentifier(t.name)?function(e,t){var r=Uy(t.escapedText,t);return r&&Ky(e,r)}(r,t.name):Sc(r,t.name.escapedText)}}(t.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&dd(V_(c),Bn(a).mapper)||o.initializer&&Eb(t.left):0===i?Eb(t.left):Om(t);case 5:if(Im(t,i))return Om(t);if(t.left.symbol){var s=t.left.symbol.valueDeclaration;if(!s)return;var c,l=e.cast(t.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return V_(c);if(e.isIdentifier(l.expression)){var u=l.expression,_=zn(u,u.escapedText,111551,void 0,u.escapedText,!0);if(_){var d=_.valueDeclaration&&e.getEffectiveTypeAnnotationNode(_.valueDeclaration);if(d){var p=e.getElementOrPropertyAccessName(l);if(void 0!==p)return Lm(V_(d),p)}return}}return e.isInJSFile(s)?void 0:Eb(t.left)}return Eb(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?V_(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=Km(n,r);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?Eb(i):s;case 55:case 27:return t===o?Km(n,r):void 0;default:return}}(t,r);case 291:case 292:return Mm(n,r);case 293:return Km(n.parent,r);case 202:var i=n;return Rm(Jm(i,r),e.indexOfNode(i.elements,t));case 220:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?Km(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 Fm(e.parent,t)}(n.parent,t);case 210:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?V_(a.typeExpression.type):Km(n,r);case 228:return Km(n,r);case 286:return function(t){var r=t.parent;return e.isJsxAttributeLike(r)?Km(t):e.isJsxElement(r)?function(t,r){var n=Jm(t.openingElement.tagName),i=yy(gy(t));if(n&&!Ja(n)&&i&&""!==i){var a=e.getSemanticJsxChildren(t.children),o=a.indexOf(r),s=Lm(n,i);return s&&(1===a.length?s:Rg(s,(function(e){return Sp(e)?i_(e,O_(o)):e}),!0))}}(r,t):void 0}(n);case 283:case 285:return Bm(n);case 278:case 277:return function(t,r){return e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r?t.parent.contextualType:Pm(t,0)}(n,r)}}}function zm(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function Gm(t,r){return 0!==Ah(r)?function(e,t){var r=Tv(e,Le);r=Wm(t,gy(t),r);var n=dy(N.IntrinsicAttributes,t);return n!==Pe&&(r=Ps(n,r)),r}(t,r):function(t,r){var n,i=gy(r),a=(n=i,my(N.ElementAttributesPropertyNameContainer,n)),o=void 0===a?Tv(t,Le):""===a?$c(t):function(e,t){if(e.compositeSignatures){for(var r=[],n=0,i=e.compositeSignatures;n=2)return kl(a,zc([s,n],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return xl(o,zc([s,n],o.typeParameters,2,e.isInJSFile(t)))}return n}function qm(t,r){var n=Cc(t,0),i=e.filter(n,(function(t){return!function(t,r){for(var n=0;n=i?e:t,o=a===e?t:e,s=a===e?n:i,c=Dv(e)||Dv(t),l=c&&!Dv(a),u=new Array(s+(l?1:0)),_=0;_=xv(a)&&_>=xv(o),y=_>=n?void 0:pv(e,_),h=_>=i?void 0:pv(t,_),v=Nn(1|(m&&!g?16777216:0),(y===h?y:y?h?void 0:y:h)||"arg"+_);v.type=g?ru(f):f,u[_]=v}if(l){var b=Nn(1,"args");b.type=ru(yv(o,s)),o===t&&(b.type=dd(b.type,r)),u[s]=b}return u}(t,r,n),s=function(e,t,r){return e&&t?of(e,Su([To(e),dd(To(t),r)])):e||t}(t.thisParameter,r.thisParameter,n),c=Ds(a,i,s,o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return c.compositeKind=2097152,c.compositeSignatures=e.concatenate(2097152===t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(c.mapper=2097152===t.compositeKind&&t.mapper&&t.compositeSignatures?$_(t.mapper,n):n),c}(t,r):void 0:t})):void 0}(i)}function Hm(e){return 211===e.kind||212===e.kind}function Ym(t){return Hm(t)||e.isObjectLiteralMethod(t)?Xm(t):void 0}function Xm(t){e.Debug.assert(167!==t.kind||e.isObjectLiteralMethod(t));var r=Wc(t);if(r)return r;var n=Jm(t,1);if(n){if(!(1048576&n.flags))return qm(n,t);for(var i,a=0,o=n.types;a1&&n.declarations&&Sn(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function yy(e){return my(N.ElementChildrenAttributeNameContainer,e)}function hy(t,r){if(4&t.flags)return[vr];if(128&t.flags){var n=vy(t,r);return n?[Yh(r,n)]:(Sn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+N.IntrinsicElements),e.emptyArray)}var i=pc(t),a=Cc(i,1);return 0===a.length&&(a=Cc(i,0)),0===a.length&&1048576&i.flags&&(a=Ns(e.map(i.types,(function(e){return hy(e,r)})))),a}function vy(t,r){var n=dy(N.IntrinsicElements,r);if(n!==Pe){var i=t.value,a=Sc(n,e.escapeLeadingUnderscores(i));return a?To(a):Pc(n,Ue)||void 0}return Ne}function by(t){e.Debug.assert(cy(t.tagName));var r=jn(t);if(!r.resolvedJsxElementAttributesType){var n=py(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=To(n)||Pe:2&r.jsxFlags?r.resolvedJsxElementAttributesType=Pc(dy(N.IntrinsicElements,t),Ue)||Pe:r.resolvedJsxElementAttributesType=Pe}return r.resolvedJsxElementAttributesType}function xy(e){var t=dy(N.ElementClass,e);if(t!==Pe)return t}function Dy(e){return dy(N.Element,e)}function Sy(e){var t=Dy(e);if(t)return Su([t,Je])}function Ey(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 pE(t,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(t.tagName),WS(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n=0)return _>=xv(n)&&(Dv(n)||_s)return!1;if(o||a>=c)return!0;for(var d=a;d=i&&r.length<=n}function vh(e){return xh(e,0,!1)}function bh(e){return xh(e,0,!1)||xh(e,1,!1)}function xh(e,t,r){if(524288&e.flags){var n=Xs(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 Dh(t,r,n,i){var a=bf(t.typeParameters,t,0,i),o=Sv(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return hf(s?nd(r,s):r,t,(function(e,t){Vf(a.inferences,e,t)})),n||vf(r,t,(function(e,t){Vf(a.inferences,e,t,128)})),nl(t,Hf(a),e.isInJSFile(r.declaration))}function Sh(t){if(!t)return Qe;var r=kb(t);return e.isOptionalChainRoot(t.parent)?Xp(r):e.isOptionalChain(t.parent)?Zp(r):r}function Eh(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=Gm(t,e),a=cb(e.attributes,i,n,r);return Vf(n.inferences,a,i),Hf(n)}(t,r,i,a);if(163!==t.kind){var o=Km(t,e.every(r.typeParameters,(function(e){return!!dc(e)}))?8:0);if(o){var s=zm(t),c=Tf(function(t,r){return void 0===r&&(r=0),t&&xf(e.map(t.inferences,Cf),t.signature,t.flags|r,t.compareTypes)}(s,1)),l=dd(o,c),u=vh(l),_=u&&u.typeParameters?cl(il(u,u.typeParameters)):l,d=$c(r);Vf(a.inferences,_,d,128);var p=bf(r.typeParameters,r,a.flags),f=dd(o,s&&s.returnMapper);Vf(p.inferences,f,d),a.returnMapper=e.some(p.inferences,bb)?Tf(function(t){var r=e.filter(t.inferences,bb);return r.length?xf(e.map(r,Cf),t.signature,t.flags,t.compareTypes):void 0}(p)):void 0}}var g=Ev(r),m=g?Math.min(bv(r)-1,n.length):n.length;if(g&&262144&g.flags){var y=e.find(a.inferences,(function(e){return e.typeParameter===g}));y&&(y.impliedArity=e.findIndex(n,ph,m)<0?n.length-m:void 0)}var h=Xc(r);if(h){var v=wh(t);Vf(a.inferences,Sh(v),h)}for(var b=0;b=n-1&&ph(_=t[n-1]))return Ch(230===_.kind?_.type:cb(_.expression,i,a,o));for(var s=[],c=[],l=[],u=r;u_&&(_=h)}}if(!u)return!0;for(var v=1/0,b=0,x=i;b0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=fh(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var r=i[t],n=223===r.kind&&(Lr?kb(r.expression):lb(r.expression));n&&Bp(n)?e.forEach(El(n),(function(e,t){var i,a=n.target.elementFlags[t],s=Fh(r,4&a?ru(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,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,_=0,d=r;_l&&(l=f),n.length1&&(h=W(f,pn,b,D)),h||(h=W(f,gn,b,D)),h)return h;if(p)if(g)if(1===g.length||g.length>3){var S,E=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 C=Nh(t,v,E,gn,0,!0,(function(){return S}));if(C)for(var T=0,k=C;T3&&e.addRelatedInfo(A,e.createDiagnosticForNode(E.declaration,e.Diagnostics.The_last_overload_is_declared_here)),G(E,A),ln.add(A)}else e.Debug.fail("No error for last overload signature")}else{for(var N=[],w=0,F=Number.MAX_VALUE,P=0,I=0,O=function(r){var n=Nh(t,v,r,gn,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,I+1,f.length,va(r))}));n?(n.length<=F&&(F=n.length,P=I),w=Math.max(w,n.length),N.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),I++},L=0,M=g;L1?N[P]:e.flatten(N);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),V=i([],e.flatMap(R,(function(e){return e.relatedInformation})),!0),U=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 K=R[0];U={file:K.file,start:K.start,length:K.length,code:B.code,category:B.category,messageText:B,relatedInformation:V}}else U=e.createDiagnosticForNodeFromMessageChain(t,B,V);G(g[0],U),ln.add(U)}else if(m)ln.add(Mh(t,[m],v));else if(y)kh(y,t.typeArguments,!0,c);else{var z=e.filter(n,(function(e){return hh(e,l)}));0===z.length?ln.add(function(t,r,n){var i=n.length;if(1===r.length){var a=Kc((_=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),RD(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=uh(t)?t.typeArguments:void 0,c=s?al(a,function(e,t,r){for(var n=e.map(ZD);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(l){var u=Gc(l),_=!u.typeParameters;W([u],gn,_)&&e.addRelatedInfo(r,e.createDiagnosticForNode(l,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(r,n,i,a){if(void 0===a&&(a=!1),g=void 0,m=void 0,y=void 0,i){var o=r[0];if(e.some(l)||!yh(t,v,o,a))return;return Nh(t,v,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=Fy(t.expression);if(a===$e)return Dr;if((a=pc(a))===Pe)return dh(t);if(Ja(a))return t.typeArguments&&Sn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),_h(t);var o=Cc(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=es(n.parent.symbol);if(!qD(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=ZD(s);if(zh(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,ba(o)),16&i&&Sn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ba(o)),!1}return!0}(t,o[0]))return dh(t);if(o.some((function(e){return 4&e.flags})))return Sn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),dh(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),dh(t)):Rh(t,o,r,n,0)}var c=Cc(a,0);if(c.length){var l=Rh(t,c,r,n,0);return X||(l.declaration&&!$h(l.declaration)&&$c(l)!==Qe&&Sn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Xc(l)===Qe&&Sn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return Wh(t.expression,a,1),dh(t)}function zh(t,r){var n=Uo(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=Is(i.types),o=0,s=0,c=i.types;s0;if(1048576&r.flags){for(var c=!1,l=0,u=r.types;l=n-1)return r===n-1?a:ru(i_(a,Ke));for(var o=[],s=[],c=[],l=r;l0&&(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 l=a-1;l>=0&&!(131072&Og(yv(t,l),gh).flags);l--)a=l;t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function Dv(e){if(j(e)){var t=To(e.parameters[e.parameters.length-1]);return!Bp(t)||t.target.hasRestElement}return!1}function Sv(e){if(j(e)){var t=To(e.parameters[e.parameters.length-1]);if(!Bp(t))return t;if(t.target.hasRestElement)return du(t,t.target.fixedLength)}}function Ev(e){var t=Sv(e);return!t||vp(t)||Ja(t)||0!=(131072&hc(t).flags)?void 0:t}function Cv(e){return Tv(e,Ze)}function Tv(e,t){return e.parameters.length>0?yv(e,0):t}function kv(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=of(r.thisParameter,void 0)),Av(t.thisParameter,To(r.thisParameter)));for(var n=t.parameters.length-(j(t)?1:0),i=0;i0&&(n=Su(u,2)):l=Ze;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?kb(t.expression,r):Re;if(e.pushIfUnique(n,Lv(t,s,Ne,a)),t.asteriskToken){var c=Gx(s,a?19:17,t.expression);o=c&&c.nextType}else o=Km(t);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),d=_.yieldTypes,p=_.nextTypes;i=e.some(d)?Su(d,2):void 0,a=e.some(p)?wu(p):void 0}else{var f=jv(t,r);if(!f)return 2&o?Pv(t,Ze):Ze;if(0===f.length)return 2&o?Pv(t,Qe):Qe;n=Su(f,2)}if(n||i||a){if(i&&yf(t,i,3),n&&yf(t,n,1),a&&yf(t,a,2),n&&wp(n)||i&&wp(i)||a&&wp(a)){var g=Ym(t),m=g?g===Gc(t)?c?void 0:n:Vm($c(g),t):void 0;c?(i=Rp(i,m,0,s),n=Rp(n,m,1,s),a=Rp(a,m,2,s)):n=function(e,t,r){return e&&wp(e)&&(e=Mp(e,t?r?qb(t):t:void 0)),e}(n,m,s)}i&&(i=pf(i)),n&&(n=pf(n)),a&&(a=pf(a))}return c?Ov(i||Ze,n||l,a||Nm(2,t)||Le,s):s?wv(n||l):n||l}function Ov(e,t,r,n){var i=n?Nr:wr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Le,t=i.resolveIterationType(t,void 0)||Le,r=i.resolveIterationType(r,void 0)||Le,a===gt){var o=i.getGlobalIterableIteratorType(!1),s=o!==gt?Yx(o,i):void 0,c=s?s.returnType:Ne,l=s?s.nextType:Me;return Td(t,c)&&Td(l,r)?o!==gt?eu(o,[e]):(i.getGlobalIterableIteratorType(!0),_t):(i.getGlobalGeneratorType(!0),_t)}return eu(a,[e,t,r])}function Lv(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?Bx(i?19:17,r,n,a):r;return i?Yb(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 Mv(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(!xb(e,a))return a}}function Sb(e){var t=vh(e);if(t&&!t.typeParameters)return $c(t)}function Eb(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=kb(t);return Br!==i&&((pr||(pr=[]))[I(t)]=a,e.setNodeFlags(t,67108864|t.flags)),a}function Cb(t){var r=e.skipParentheses(t);if(!e.isCallExpression(r)||106===r.expression.kind||e.isRequireCall(r,!0)||iv(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return V_(r.type);if(8===t.kind||10===t.kind||110===t.kind||95===t.kind)return kb(t)}else{var n=e.isCallChain(r)?function(e){var t=kb(e.expression),r=ef(t,e.expression),n=Sb(t);return n&&$p(n,e,r!==t)}(r):Sb(Fy(r.expression));if(n)return n}}function Tb(e){var t=jn(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Ne;try{return t.contextFreeType=kb(e,4)}finally{e.contextualType=r}}function kb(t,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end});var o=_;_=t,E=0;var s=function(t,i,a){var o=t.kind;if(n)switch(o){case 224:case 211:case 212:n.throwIfCancellationRequested()}switch(o){case 79:return function(t,r){var n=Xf(t);if(n===ke)return Pe;if(n===le){if(Hy(t))return Sn(t,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),Pe;var i=e.getContainingFunction(t);return U<2&&(212===i.kind?Sn(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(i,256)&&Sn(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),jn(i).flags|=8192,To(n)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||pm(n,t);var a=Gi(n),o=2097152&a.flags?fi(a):a;o.declarations&&134217728&ky(o)&&zu(t,o)&&An(t,o.declarations,t.escapedText);var s=a.valueDeclaration;if(s&&32&a.flags)if(255===s.kind&&e.nodeIsDecorated(s))for(i=e.getContainingClass(t);void 0!==i;){if(i===s&&i.name!==t){jn(s).flags|=16777216,jn(t).flags|=33554432;break}i=e.getContainingClass(i)}else if(224===s.kind)for(i=e.getThisContainer(t,!1);300!==i.kind;){if(i.parent===s){(e.isPropertyDeclaration(i)&&e.isStatic(i)||e.isClassStaticBlockDeclaration(i))&&(jn(s).flags|=16777216,jn(t).flags|=33554432);break}i=e.getThisContainer(i,!1)}!function(t,r){if(!(U>=2||0==(34&r.flags)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||290===r.valueDeclaration.parent.kind)){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=fm(n);if(a){if(i){var o=!0;if(e.isForStatement(n)&&(u=e.getAncestor(r.valueDeclaration,253))&&u.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 l=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),s===n.initializer&&(o=!1)}}o&&(jn(a).flags|=65536)}var u;e.isForStatement(n)&&(u=e.getAncestor(r.valueDeclaration,253))&&u.parent===n&&function(t,r){for(var n=t;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}return!!i&&!!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=To(a),l=e.getAssignmentTargetKind(t);if(l){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,ha(n)),Pe;if(zv(a))return 3&a.flags?Sn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,ha(n)):Sn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ha(n)),Pe}var u=2097152&a.flags;if(3&a.flags){if(1===l)return c}else{if(!u)return c;s=ti(n)}if(!s)return c;c=_m(c,t,r);for(var _=162===e.getRootDeclaration(s).kind,d=om(s),p=om(t),f=p!==d,g=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&bg(t.parent.parent),m=134217728&n.flags;p!==d&&(211===p.kind||212===p.kind||e.isObjectLiteralOrClassExpressionMethod(p))&&(lm(a)&&c!==Bt||_&&!sm(a));)p=om(p);var y=_||u||f||g||m||e.isBindingElement(s)||c!==we&&c!==Bt&&(!W||0!=(16387&c.flags)||Qf(t)||273===t.parent.kind)||228===t.parent.kind||252===s.kind&&s.exclamationToken||8388608&s.flags,h=y?_?function(e,t){if(Oa(t.symbol,2)){var r=W&&162===t.kind&&t.initializer&&32768&Gp(e)&&!(32768&Gp(kb(t.initializer)));return Ra(),r?fg(e,524288):e}return Co(t.symbol),e}(c,s):c:c===we||c===Bt?Me:Yp(c),v=am(t,c,h,p);if(Yg(t)||c!==we&&c!==Bt){if(!y&&!(32768&Gp(c))&&32768&Gp(v))return Sn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,ha(n)),c}else if(v===we||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,ha(n),ba(v)),Sn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,ha(n),ba(v))),kx(v);return l?Ip(v):v}(t,i);case 108:return vm(t);case 106:return Dm(t);case 104:return Ve;case 14:case 10:return w_(I_(t.text));case 8:return mE(t),w_(O_(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&U<7&&pE(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(t),w_(L_({negative:!1,base10Value:e.parsePseudoBigInt(t.text)}));case 110:return qe;case 95:return Ge;case 221:return ob(t);case 13:return Lt;case 202:return Zm(t,i,a);case 203:return function(t,r){var n=e.isAssignmentTarget(t);!function(t,r){for(var n=new e.Map,i=0,a=t.properties;i0&&(s=T_(s,R(),t.symbol,g,u),o=[],a=e.createSymbolTable(),y=!1,h=!1,v=!1),oy(N=hc(kb(T.expression)))){var O=C_(N,u);if(i&&_y(O,i,T),S=o.length,s===Pe)continue;s=T_(s,O,t.symbol,g,u)}else Sn(T,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=Pe;continue}e.Debug.assert(170===T.kind||171===T.kind),RD(T)}!A||8576&A.flags?a.set(k.escapedName,k):Td(A,at)&&(Td(A,Ke)?h=!0:Td(A,Xe)?v=!0:y=!0,n&&(m=!0)),o.push(k)}if(l&&293!==t.parent.kind)for(var L=0,M=ec(c);L0&&(s=T_(s,R(),t.symbol,g,u),o=[],a=e.createSymbolTable(),y=!1,h=!1),Rg(s,(function(e){return e===_t?R():e}))):R();function R(){var r=[];y&&r.push(iy(t,S,o,Ue)),h&&r.push(iy(t,S,o,Ke)),v&&r.push(iy(t,S,o,Xe));var i=ra(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}}(t,i);case 204:return jy(t,i);case 159:return Jy(t,i);case 205:return function(e,t){return 32&e.flags?function(e,t){var r=kb(e.expression),n=ef(r,e.expression);return $p(lh(e,Ry(n,e.expression),t),e,n!==r)}(e,t):lh(e,Fy(e.expression),t)}(t,i);case 206:if(100===t.expression.kind)return function(t){if(qS(t.arguments)||function(t){if(K===e.ModuleKind.ES2015)return pE(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);if(t.typeArguments)return pE(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;1!==r.length?pE(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(KS(r),e.isSpreadElement(r[0])&&pE(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element))}(t),0===t.arguments.length)return Pv(t,Ne);for(var r=t.arguments[0],n=lb(r),i=1;i0&&(s=T_(s,E(),i.symbol,u,!1),o=e.createSymbolTable()),Ja(m=hc(lb(f.expression,r)))&&(c=!0),oy(m)?(s=T_(s,m,i.symbol,u,!1),a&&_y(m,a,f)):n=n?wu([n,m]):m}c||o.size>0&&(s=T_(s,E(),i.symbol,u,!1));var h=276===t.parent.kind?t.parent:void 0;if(h&&h.openingElement===t&&h.children.length>0){var v=uy(h,r);if(!c&&_&&""!==_){l&&Sn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(_));var b=Jm(t.attributes),x=b&&Lm(b,_),D=Nn(4,_);D.type=1===v.length?v[0]:x&&Pg(x,kp)?cu(v):ru(Su(v)),D.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(_),void 0,void 0),e.setParent(D.valueDeclaration,i),D.valueDeclaration.symbol=D;var S=e.createSymbolTable();S.set(_,D),s=T_(s,ra(i.symbol,S,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,u,!1)}}return c?Ne:n&&s!==dt?wu([n,s]):n||(s===dt?E():s);function E(){u|=ee;var t=ra(i.symbol,o,e.emptyArray,e.emptyArray,e.emptyArray);return t.objectFlags|=262272|u,t}}(t.parent,r)}(t,i);case 278:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Pe}(t,i,a),c=hb(t,s,i);return Qv(c)&&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)&&HD(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),V.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,c),_=o,null===e.tracing||void 0===e.tracing||e.tracing.pop(),c}function Ab(t){t.expression&&_E(t.expression,e.Diagnostics.Type_expected),LD(t.constraint),LD(t.default);var n=$o(ji(t));sc(n),function(e){return _c(e)!==ht}(n)||Sn(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,ba(n));var i=rc(n),a=dc(n);i&&a&&wd(a,bs(dd(i,Y_(n,a)),a),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),r&&pD(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function Nb(t){VS(t),Ax(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)||Td(hc(To(t.symbol)),jt)||Sn(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function wb(t,r,n){for(var i=0,a=t.elements;i=2||!e.hasRestParameter(t)||8388608&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,(function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===le.escapedName&&xn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var i=e.getEffectiveReturnTypeNode(t);if(X&&!i)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(i){var a=e.getFunctionFlags(t);if(1==(5&a)){var o=V_(i);if(o===Qe)Sn(i,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=oD(0,o,0!=(2&a))||Ne;wd(Ov(s,oD(1,o,0!=(2&a))||s,oD(2,o,0!=(2&a))||Le,!!(2&a)),o,i)}}else 2==(3&a)&&function(t,r){var n=V_(r);if(U>=2){if(n===Pe)return;var i=Xl(!0);if(i!==gt&&!Ao(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,ba(Yb(n)||Qe))}else{if(function(t){Zb(t&&e.getEntityNameFromTypeNode(t))}(r),n===Pe)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,ba(n));var o=Di(a,111551,!0),s=o?To(o):Pe;if(s===Pe)return void(79===a.kind&&"Promise"===a.escapedText&&No(n)===Xl(!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,Ht||(Ht=Wl("PromiseConstructorLike",0,true))||_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(!wd(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 l=a&&e.getFirstIdentifier(a),u=Vn(t.locals,l.escapedText,111551);if(u)return void Sn(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(a))}Hb(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,i)}174!==t.kind&&312!==t.kind&&ox(t)}}function Pb(t){for(var r=new e.Map,n=0,i=t.members;n0&&r.declarations[0]!==t)return}var n=ll(ji(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&&Fg(V_(e.parameters[0].type),(function(t){var r=i.get(mu(t));r?r.declarations.push(e):i.set(mu(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=Yb(o,r,n,i);if(cn.pop(),!s)return;return a.awaitedTypeOfType=s}if(!function(e){var t=ja(e,"then");return!!t&&Cc(fg(t,2097152),0).length>0}(t))return a.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();Sn(r,n,i)}}function Qb(t){var r=Zh(t);rv(r,t);var n=$c(r);if(!(1&n.flags)){var i,a,o=Hh(t);switch(t.parent.kind){case 255:i=Su([To(ji(t.parent)),Qe]);break;case 162:i=Qe,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=Qe,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=Su([tu(ZD(t.parent)),Qe]);break;default:return e.Debug.fail()}wd(n,i,t,o,(function(){return a}))}}function Zb(t){if(t){var r=e.getFirstIdentifier(t),n=2097152|(79===t.kind?788968:1920),i=zn(r,r.escapedText,n,void 0,void 0,!0);i&&2097152&i.flags&&Wi(i)&&!gS(fi(i))&&!yi(i)&&vi(i)}}function $b(t){var r=ex(t);r&&e.isEntityName(r)&&Zb(r)}function ex(e){if(e)switch(e.kind){case 186:case 185:return tx(e.types);case 187:return tx([e.trueType,e.falseType]);case 189:case 195:return ex(e.type);case 176:return e.typeName}}function tx(t){for(var r,n=0,i=t;n=e.ModuleKind.ES2015)&&r&&(xx(t,r,"require")||xx(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ba(t);300===n.kind&&e.isExternalOrCommonJsModule(n)&&xn("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&&!(U>=4)&&xx(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=Ba(t);300===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&xn("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){U<=8&&(xx(e,t,"WeakMap")||xx(e,t,"WeakSet"))&&on.push(e)}(t,r),function(e,t){t&&U>=2&&U<=8&&xx(e,t,"Reflect")&&sn.push(e)}(t,r),e.isClassLike(t)?(pD(r,e.Diagnostics.Class_name_cannot_be_0),8388608&t.flags||function(t){1===U&&"Object"===t.escapedText&&K1&&e.some(d.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!wx(r,t)}))&&Sn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var g=kx(po(t));p===Pe||g===Pe||xd(p,g)||67108864&d.flags||Nx(d.valueDeclaration,p,t,g),t.initializer&&Fd(lb(t.initializer),g,t,t.initializer,void 0),d.valueDeclaration&&!wx(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&&(Gb(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=ji(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=zn(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&ky(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=ha(n);Sn(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),Tx(t,t.name))}}}}function Nx(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,ba(r),ba(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function wx(t,r){return 162===t.kind&&252===r.kind||252===t.kind&&162===r.kind||e.hasQuestionToken(t)===e.hasQuestionToken(r)&&e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(r,504)}function Fx(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)aE(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return pE(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return pE(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 pE(t.exclamationToken,r)}var n=e.getEmitModuleKind(V);n=1&&Fx(t.declarations[0])}function Rx(e){return Bx(e.awaitModifier?15:13,Fy(e.expression),Me,e.expression)}function Bx(e,t,r,n){return Ja(t)?t:jx(e,t,r,n,!0)||Ne}function jx(t,r,n,i,a){var o=0!=(2&t);if(r!==Ze){var s=U>=2,c=!s&&V.downlevelIteration,l=V.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var u=Gx(r,t,s?i:void 0);if(a&&u){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;_&&wd(n,u.nextType,i,_)}if(u||s)return l?hg(u&&u.yieldType):u&&u.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=Su(m,2))}else 402653316&d.flags&&(d=Ze);if((f=d!==r)&&(U<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 l?hg(Ue):Ue}if(!Sp(d)){if(i&&!p){var y=function(n,i){var a;return i?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]:Jx(t,0,r,void 0)?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null===(a=r.symbol)||void 0===a?void 0:a.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]: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),h=y[0];Tn(i,y[1]&&!!Wb(d),h,ba(d))}return f?l?hg(Ue):Ue:void 0}var v=Pc(d,Ke);return f&&v?402653316&v.flags&&!V.noUncheckedIndexedAccess?Ue:Su(l?[v,Ue,Me]:[v,Ue],2):128&t?hg(v):v}Zx(i,r,o)}function Jx(e,t,r,n){if(!Ja(r)){var i=Gx(r,e,n);return i&&i[B(t)]}}function Vx(e,t,r){if(void 0===e&&(e=Ze),void 0===t&&(t=Ze),void 0===r&&(r=Le),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=hl([e,t,r]),i=Er.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},Er.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function Ux(t){for(var r,n,i,a=0,o=t;a1)for(var d=0,p=n;dn)return!1;for(var u=0;u1)return _E(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(117===o.token),n)return _E(o,e.Diagnostics.implements_clause_already_seen);n=!0}HS(o)}})(t)||zS(t.typeParameters,r)}(t),nx(t),Tx(t,t.name),fD(e.getEffectiveTypeParameterDeclarations(t)),Gb(t);var n=ji(t),i=es(n),a=bs(i),o=To(n);gD(n),zb(n),function(t){for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a>o;case 49:return a>>>o;case 47:return a<1&&!OD(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 LD(t){if(t){var i=_;_=t,E=0,function(t){e.isInJSFile(t)&&e.forEach(t.jsDoc,(function(t){var r=t.tags;return e.forEach(r,LD)}));var i=t.kind;if(n)switch(i){case 259:case 255:case 256:case 254:n.throwIfCancellationRequested()}switch(i>=235&&i<=251&&t.flowNode&&!em(t.flowNode)&&Cn(!1===V.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected),i){case 161:return Ab(t);case 162:return Nb(t);case 165:return Ob(t);case 164:return function(t){return e.isPrivateIdentifier(t.name)&&Sn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ob(t)}(t);case 178:case 177:case 172:case 173:case 174:return Fb(t);case 167:case 166:return function(t){nE(t)||XS(t.name),ax(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),Lb(t)}(t);case 168:return function(t){VS(t),e.forEachChild(t,LD)}(t);case 169:return function(t){Fb(t),function(t){var r=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):void 0,n=t.typeParameters||r&&e.firstOrUndefined(r);if(n){var i=n.pos===n.end?n.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,n.pos);return dE(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(t)||function(t){var r=e.getEffectiveReturnTypeNode(t);r&&pE(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),LD(t.body);var n=ji(t);if(t===e.getDeclarationOfKind(n,t.kind)&&zb(n),!e.nodeIsMissing(t.body)&&r){var i=t.parent;if(e.getClassExtendsHeritageElement(i)){gm(t.parent,i);var a=ym(i),o=mm(t.body);if(o){if(a&&Sn(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==V.target||!z)&&(e.some(t.parent.members,(function(t){return!!e.isPrivateIdentifierClassElementDeclaration(t)||165===t.kind&&!e.isStatic(t)&&!!t.initializer}))||e.some(t.parameters,(function(t){return e.hasSyntacticModifier(t,16476)})))){for(var s=void 0,c=0,l=t.body.statements;c=0)j(n)&&i.parameterIndex===n.parameters.length-1?Sn(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&wd(i.type,To(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=ix(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=ix(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&&pD(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),LD(t.typeExpression)}(t);case 339:return function(e){LD(e.constraint);for(var t=0,r=e.typeParameters;t-1&&n1){var i=e.isEnumConst(t);e.forEach(n.declarations,(function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==i&&Sn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var a=!1;e.forEach(n.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||(a?Sn(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)}))}}}(t);case 259:return function(t){if(r){var n=e.isGlobalScopeAugmentation(t),i=8388608&t.flags;n&&!i&&Sn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var a=e.isAmbientModule(t);if(ND(t,a?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;VS(t)||i||10!==t.name.kind||pE(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&Tx(t,t.name),Gb(t);var o=ji(t);if(512&o.flags&&!i&&o.declarations&&o.declarations.length>1&&L(t,e.shouldPreserveConstEnums(V))){var s=function(t){var r=t.declarations;if(r)for(var n=0,i=r;n=e.ModuleKind.ES2015)||t.isTypeOnly||8388608&t.flags||pE(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 function(t){if(!ND(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!VS(t)&&e.hasEffectiveModifiers(t)&&_E(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===U&&jS(t,2097152),function(t){var r;t.isTypeOnly&&271!==(null===(r=t.exportClause)||void 0===r?void 0:r.kind)&&pE(t,e.Diagnostics.Only_named_exports_may_use_export_type)}(t),!t.moduleSpecifier||TD(t)))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,PD);var r=260===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&260===t.parent.kind&&!t.moduleSpecifier&&8388608&t.flags;300===t.parent.kind||r||n||Sn(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=Ei(t,t.moduleSpecifier);i&&wi(i)?Sn(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ha(i)):t.exportClause&&kD(t.exportClause),K!==e.ModuleKind.System&&K=e.ModuleKind.ES2015?pE(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):K===e.ModuleKind.System&&pE(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 gE(t);case 274:!function(e){nx(e)}(t)}}(t),_=i}}function MD(t){e.isInJSFile(t)||pE(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function RD(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 BD(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,E=0,t.kind){case 206:case 207:case 208:case 163:case 278:_h(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=el(t);if(Jv(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||$c(Gc(t)),233===t.body.kind)LD(t.body);else{var i=kb(t.body),a=n&&cD(n,r);a&&Fd(2==(3&r)?Hb(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:Mb(t);break;case 224:!function(t){e.forEach(t.members,LD),ox(t)}(t);break;case 277:!function(e){Ey(e)}(t);break;case 276:!function(e){Ey(e.openingElement),cy(e.closingElement.tagName)?py(e.closingElement):kb(e.closingElement.tagName),uy(e)}(t)}_=r,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function jD(r){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),function(r){var n=jn(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,V,t))return;!function(t){8388608&t.flags&&function(t){for(var r=0,n=t.statements;r0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),jD),ln.getDiagnostics()}(r)}finally{n=void 0}}function KD(){if(!r)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function zD(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 GD(e){for(;159===e.parent.kind;)e=e.parent;return 176===e.parent.kind}function WD(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function qD(e,t){return!!WD(e,(function(e){return e===t}))}function HD(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 YD(t){if(e.isDeclarationName(t))return ji(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 ji(t.parent);case 4:case 2:case 5:return ji(t.parent.parent)}}(t);if(r)return r}if(269===t.parent.kind&&e.isEntityNameExpression(t)){var n=Di(t,2998271,!0);if(n&&n!==ke)return n}else if(e.isEntityName(t)&&HD(t)){var i=e.getAncestor(t,263);return e.Debug.assert(void 0!==i),bi(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){V_(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)?Di(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 l=e.getTypeParameterFromJsDoc(t.parent);return l&&l.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;var u=e.findAncestor(t,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName));if(s=u?901119:111551,79===t.kind){if(e.isJSXTagName(t)&&cy(t)){var _=py(t.parent);return _===ke?void 0:_}var d=Di(t,s,!1,!u,e.getHostSignatureFromJSDoc(t));if(!d&&u){var p=e.findAncestor(t,e.or(e.isClassLike,e.isInterfaceDeclaration));if(p)return XD(t,ji(p))}return d}if(204===t.kind||159===t.kind){var f=jn(t);return f.resolvedSymbol?f.resolvedSymbol:(204===t.kind?jy(t,0):Jy(t,0),!f.resolvedSymbol&&u&&e.isQualifiedName(t)?XD(t):f.resolvedSymbol)}if(e.isJSDocMemberName(t))return XD(t)}else if(GD(t))return Di(t,s=176===t.parent.kind?788968:1920,!1,!0);return 175===t.parent.kind?Di(t,1):void 0}function XD(t,r){if(e.isEntityName(t)){var n=901119,i=Di(t,n,!1,!0,e.getHostSignatureFromJSDoc(t));if(!i&&e.isIdentifier(t)&&r&&(i=Bi(Vn(Oi(r),t.escapedText,n))),i)return i}var a=e.isIdentifier(t)?r:XD(t.left),o=e.isIdentifier(t)?t.escapedText:t.right.escapedText;if(a){var s=111551&a.flags&&Sc(To(a),"prototype");return Sc(s?To(s):es(a),o)}}function QD(t,r){if(300===t.kind)return e.isExternalModule(t)?Bi(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(16777216&t.flags)){if(R(t)){var a=ji(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?ay(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return ji(n.parent);if(79===t.kind){if(HD(t))return YD(t);if(201===n.kind&&199===i.kind&&t===n.propertyName){if(o=Sc(ZD(i),t.escapedText))return o}else if(e.isMetaProperty(n)){var o;if(o=Sc(ZD(n),t.escapedText))return o;if(103===n.keywordToken)return uv(n).symbol}}switch(t.kind){case 79:case 80:case 204:case 159:return YD(t);case 108:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=Gc(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return kb(t).symbol;case 190:return B_(t).symbol;case 106:return kb(t).symbol;case 133:var l=t.parent;return l&&169===l.kind?l.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 Ei(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return ji(n);case 8:var u=e.isElementAccessExpression(n)?n.argumentExpression===t?Eb(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?V_(i.objectType):void 0;return u&&Sc(u,e.escapeLeadingUnderscores(t.text));case 88:case 98:case 38:case 84:return ji(t.parent);case 198:return e.isLiteralImportTypeNode(t)?QD(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)?lv(t.parent).symbol:void 0;case 229:return kb(t).symbol;default:return}}}function ZD(t){if(e.isSourceFile(t)&&!e.isExternalModule(t))return Pe;if(16777216&t.flags)return Pe;var r,n,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&Go(ji(i.class));if(e.isPartOfTypeNode(t)){var o=V_(t);return a?bs(o,a.thisType):o}if(e.isExpressionNode(t))return eS(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(Uo(a));return s?bs(s,a.thisType):Pe}if(zD(t))return es(n=ji(t));if(79===(r=t).kind&&zD(r.parent)&&e.getNameOfDeclaration(r.parent)===r)return(n=QD(t))?es(n):Pe;if(e.isDeclaration(t))return To(n=ji(t));if(R(t))return(n=QD(t))?To(n):Pe;if(e.isBindingPattern(t))return $a(t.parent,!0)||Pe;if(HD(t)&&(n=QD(t))){var c=es(n);return c!==Pe?c:To(n)}return e.isMetaProperty(t.parent)&&t.parent.keywordToken===t.kind?lv(t.parent):Pe}function $D(t){if(e.Debug.assert(203===t.kind||202===t.kind),242===t.parent.kind)return tb(t,Rx(t.parent)||Pe);if(219===t.parent.kind)return tb(t,Eb(t.parent.right)||Pe);if(291===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return $v(r,$D(r)||Pe,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=$D(n)||Pe,a=Bx(65,i,Me,t.parent)||Pe;return eb(n,i,n.elements.indexOf(t),a)}function eS(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),F_(Eb(t))}function tS(t){var r=ji(t.parent);return e.isStatic(t)?To(r):es(r)}function rS(t){var r=t.name;switch(r.kind){case 79:return I_(e.idText(r));case 8:case 10:return I_(r.text);case 160:var n=ry(r);return Yv(n,12288)?n:Ue;default:return e.Debug.fail("Unsupported property name.")}}function nS(t){t=pc(t);var r=e.createSymbolTable(ec(t)),n=Cc(t,0).length?At:Cc(t,1).length?Nt:void 0;return n&&e.forEach(ec(n),(function(e){r.has(e.escapedName)||r.set(e.escapedName,e)})),ea(r)}function iS(t){return e.typeHasCallOrConstructSignatures(t,_e)}function aS(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||PS(r)!==le)}function oS(t){var r=Ei(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=wi(r),i=Bn(r=Ai(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(Li(r),(function(e){return(e=pi(e))&&!!(111551&e.flags)}))),i.exportsSomeValue}function sS(t,r){var n,i=e.getParseTreeNode(t,e.isIdentifier);if(i){var a=PS(i,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(i));if(a){if(1048576&a.flags){var o=Bi(a.exportSymbol);if(!r&&944&o.flags&&!(3&o.flags))return;a=o}var s=Ji(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)&&ji(t)===s}))}}}}function cS(t){if(t.generatedImportReference)return t.generatedImportReference;var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=PS(r);if(di(n,111551)&&!yi(n))return ti(n)}}function lS(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(zn(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 uS(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=PS(r);if(n&&lS(n))return n.valueDeclaration}}}function _S(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=ji(r);if(n)return lS(n)}return!1}function dS(t){switch(t.kind){case 263:return fS(ji(t)||ke);case 265:case 266:case 268:case 273:var r=ji(t)||ke;return fS(r)&&!yi(r);case 270:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,dS));case 269:return!t.expression||79!==t.expression.kind||fS(ji(t)||ke)}return!1}function pS(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||300!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&fS(ji(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function fS(t){var r=fi(t);return r===ke||!!(111551&r.flags)&&(e.shouldPreserveConstEnums(V)||!gS(r))}function gS(e){return Zv(e)||!!e.constEnumOnlyModule}function mS(t,r){if(ri(t)){var n=ji(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(V)||!gS(a)))return!0}return!!r&&!!e.forEachChild(t,(function(e){return mS(e,r)}))}function yS(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=Hc(ji(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function hS(t){return!(!W||Jc(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,16476))}function vS(t){return W&&Jc(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function bS(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=ji(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(Oi(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function xS(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=ji(r);return n&&ec(To(n))||e.emptyArray}function DS(e){var t,r=e.id||0;return r<0||r>=Hr.length?0:(null===(t=Hr[r])||void 0===t?void 0:t.flags)||0}function SS(e){return xD(e.parent),jn(e).enumMemberValue}function ES(e){switch(e.kind){case 294:case 204:case 205:return!0}return!1}function CS(t){if(294===t.kind)return SS(t);var r=jn(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return SS(n)}}function TS(e){return!!(524288&e.flags)&&Cc(e,0).length>0}function kS(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=Di(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=Di(a,111551,!0,!0,r),l=c&&2097152&c.flags?fi(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var u=Di(a,788968,!0,!1,r);if(l&&l===u){var _=Ql(!1);if(_&&l===_)return e.TypeReferenceSerializationKind.Promise;var d=To(l);if(d&&Mo(d))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!u)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var p=es(u);return p===Pe?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&p.flags?e.TypeReferenceSerializationKind.ObjectType:Yv(p,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Yv(p,528)?e.TypeReferenceSerializationKind.BooleanType:Yv(p,296)?e.TypeReferenceSerializationKind.NumberLikeType:Yv(p,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:Yv(p,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Bp(p)?e.TypeReferenceSerializationKind.ArrayLikeType:Yv(p,12288)?e.TypeReferenceSerializationKind.ESSymbolType:TS(p)?e.TypeReferenceSerializationKind.TypeWithCallSignature:vp(p)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function AS(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(129);var s=ji(o),c=!s||133120&s.flags?Pe:Op(To(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=Yp(c)),ie.typeToTypeNode(c,r,1024|n,i)}function NS(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(129);var o=Gc(a);return ie.typeToTypeNode($c(o),r,1024|n,i)}function wS(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(129);var o=pf(eS(a));return ie.typeToTypeNode(o,r,1024|n,i)}function FS(t){return ae.has(e.escapeLeadingUnderscores(t))}function PS(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=Ba(a))}return zn(i,t.escapedText,3257279,void 0,void 0,!0)}function IS(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=PS(r);if(n)return Gi(n).valueDeclaration}}}function OS(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&P_(To(ji(t)))}function LS(t,r){return function(t,r,n){var i=1024&t.flags?ie.symbolToExpression(t.symbol,111551,r,void 0,n):t===qe?e.factory.createTrue():t===Ge&&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)}(To(ji(t)),t,r)}function MS(t){return t?(bn(t),e.getSourceFileOfNode(t).localJsxFactory||gr):gr}function RS(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,U),r.localJsxFragmentFactory}}if(V.jsxFragmentFactory)return e.parseIsolatedEntityName(V.jsxFragmentFactory,U)}function BS(t){var r=259===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=Ci(r,r,void 0);if(n)return e.getDeclarationOfKind(n,300)}function jS(t,r){if((o&r)!==r&&V.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,V)&&!(8388608&t.flags)){var i=(_=n,d=t,u||(u=Ti(_,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,d)||ke),u);if(i!==ke)for(var a=r&~o,s=1;s<=2097152;s<<=1)if(a&s){var c=JS(s),l=Vn(i.exports,e.escapeLeadingUnderscores(c),111551);l?524288&s?e.some(Hc(l),(function(e){return bv(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&s?e.some(Hc(l),(function(e){return bv(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&s&&(e.some(Hc(l),(function(e){return bv(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)}o|=r}}var _,d}function JS(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 VS(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)?_E(t,e.Diagnostics.Decorators_are_not_valid_here):_E(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 _E(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 US(t,130);case 255:case 178:return US(t,126);case 256:case 235:case 257:case 168:return!0;case 258:return US(t,85);default:e.Debug.fail()}}}(t)?_E(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==s)return s;for(var c=0,l=0,u=t.modifiers;l1||e.modifiers[0].kind!==t}function KS(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&dE(t[0],t.end-",".length,",".length,r)}function zS(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return dE(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function GS(t){var r=e.getSourceFileOfNode(t);return VS(t)||zS(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(o=t.parameters,e.filter(o,(function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})));if(e.length(n)){e.forEach(n,(function(t){e.addRelatedInfo(Sn(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))}));var a=n.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,i([Sn(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,!1)),!0}}}var o;return!1}(t)}function WS(t,r){return KS(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return dE(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function qS(t){return function(t){if(t)for(var r=0,n=t;r1)return 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,_E(o.declarations[1],n);var c=s[0];if(c.initializer){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 pE(c.name,n)}if(c.type)return pE(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 tE(t){if(t.parameters.length===(170===t.kind?1:2))return e.getThisParameter(t)}function rE(t,r){if(function(t){return e.isDynamicName(t)&&!_s(t)}(t))return pE(t,r)}function nE(t){if(GS(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 _E(t,e.Diagnostics.Modifiers_cannot_appear_here);if(ZS(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if($S(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return dE(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(QS(t))return!0}if(e.isClassLike(t.parent)){if(U<2&&e.isPrivateIdentifier(t.name))return pE(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(8388608&t.flags)return rE(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 rE(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 rE(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 rE(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 iE(t){return e.isStringOrNumericLiteralLike(t)||217===t.kind&&40===t.operator&&8===t.operand.kind}function aE(t){var r,n=t.initializer;if(n){var i=!(iE(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&iE(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&lb(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 pE(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return pE(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 pE(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function oE(t){if(79===t.kind){if("__esModule"===e.idText(t))return a=t,o=e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,!uE(e.getSourceFileOfNode(a))&&(xn("noEmit",a,o,void 0,void 0,void 0),!0)}else for(var r=0,n=t.elements;r0}function _E(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!uE(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return ln.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function dE(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!uE(c)&&(ln.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function pE(t,r,n,i,a){return!uE(e.getSourceFileOfNode(t))&&(ln.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function fE(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)&&_E(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function gE(t){if(8388608&t.flags){if(!jn(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return jn(t).hasReportedStatementInAmbientContext=_E(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=_E(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function mE(t){if(32&t.numericLiteralFlags){var r=void 0;if(U>=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 pE(n?t.parent:t,r,i)}}return function(t){if(!(16&t.numericLiteralFlags||t.text.length<=15||-1!==t.text.indexOf("."))){var r=+e.getTextOfNode(t);r<=Math.pow(2,53)-1&&r+1>r||En(!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 yE(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=cg(r,t);if(a)return a;var o=ec(t);if(o){var s=ag(o,r);if(s)return ep(r,e.map(s,(function(e){return[function(){return To(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"}(N||(N={})),e.signatureHasRestParameter=j,e.signatureHasLiteralTypes=J}(u||(u={})),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 l=-1,u=-1;(i>0||a=2&&(s=function(t,r){for(var n,i=0;i0&&p<=158||190===p)return a;var f=l.factory;switch(p){case 79:return e.Debug.type(a),f.updateIdentifier(a,u(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,u(a.decorators,c,e.isDecorator),u(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,u(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,u(a.decorators,c,e.isDecorator),u(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,u(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),d(a.questionToken,_,e.isQuestionToken),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 167:return e.Debug.type(a),f.updateMethodDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.asteriskToken,_,e.isAsteriskToken),d(a.name,c,e.isPropertyName),d(a.questionToken,_,e.isQuestionToken),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),d(a.type,c,e.isTypeNode),o(a.body,c,l,d));case 169:return e.Debug.type(a),f.updateConstructorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),i(a.parameters,c,l,u),o(a.body,c,l,d));case 170:return e.Debug.type(a),f.updateGetAccessorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),i(a.parameters,c,l,u),d(a.type,c,e.isTypeNode),o(a.body,c,l,d));case 171:return e.Debug.type(a),f.updateSetAccessorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isPropertyName),i(a.parameters,c,l,u),o(a.body,c,l,d));case 168:return e.Debug.type(a),l.startLexicalEnvironment(),l.suspendLexicalEnvironment(),f.updateClassStaticBlockDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),o(a.body,c,l,d));case 172:return e.Debug.type(a),f.updateCallSignature(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 173:return e.Debug.type(a),f.updateConstructSignature(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 174:return e.Debug.type(a),f.updateIndexSignature(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),u(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),u(a.typeArguments,c,e.isTypeNode));case 177:return e.Debug.type(a),f.updateFunctionTypeNode(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),d(a.type,c,e.isTypeNode));case 178:return e.Debug.type(a),f.updateConstructorTypeNode(a,u(a.modifiers,c,e.isModifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(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,u(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,u(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,u(a.types,c,e.isTypeNode));case 186:return e.Debug.type(a),f.updateIntersectionTypeNode(a,u(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),u(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,u(a.elements,c,e.isBindingElement));case 200:return e.Debug.type(a),f.updateArrayBindingPattern(a,u(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,u(a.elements,c,e.isExpression));case 203:return e.Debug.type(a),f.updateObjectLiteralExpression(a,u(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),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression))):(e.Debug.type(a),f.updateCallExpression(a,d(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression)));case 207:return e.Debug.type(a),f.updateNewExpression(a,d(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode),u(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,u(a.modifiers,c,e.isModifier),d(a.asteriskToken,_,e.isAsteriskToken),d(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),d(a.type,c,e.isTypeNode),o(a.body,c,l,d));case 212:return e.Debug.type(a),f.updateArrowFunction(a,u(a.modifiers,c,e.isModifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),d(a.type,c,e.isTypeNode),d(a.equalsGreaterThanToken,_,e.isEqualsGreaterThanToken),o(a.body,c,l,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),u(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,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isClassElement));case 226:return e.Debug.type(a),f.updateExpressionWithTypeArguments(a,d(a.expression,c,e.isExpression),u(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,u(a.statements,c,e.isStatement));case 235:return e.Debug.type(a),f.updateVariableStatement(a,u(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,l),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,l));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,l));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,l));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,l));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,u(a.declarations,c,e.isVariableDeclaration));case 254:return e.Debug.type(a),f.updateFunctionDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.asteriskToken,_,e.isAsteriskToken),d(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),d(a.type,c,e.isTypeNode),o(a.body,c,l,d));case 255:return e.Debug.type(a),f.updateClassDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isClassElement));case 256:return e.Debug.type(a),f.updateInterfaceDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isTypeElement));case 257:return e.Debug.type(a),f.updateTypeAliasDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),d(a.type,c,e.isTypeNode));case 258:return e.Debug.type(a),f.updateEnumDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.name,c,e.isIdentifier),u(a.members,c,e.isEnumMember));case 259:return e.Debug.type(a),f.updateModuleDeclaration(a,u(a.decorators,c,e.isDecorator),u(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,u(a.statements,c,e.isStatement));case 261:return e.Debug.type(a),f.updateCaseBlock(a,u(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,u(a.decorators,c,e.isDecorator),u(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,u(a.decorators,c,e.isDecorator),u(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,u(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,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),d(a.expression,c,e.isExpression));case 270:return e.Debug.type(a),f.updateExportDeclaration(a,u(a.decorators,c,e.isDecorator),u(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,u(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),u(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),u(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),u(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),u(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,u(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),u(a.statements,c,e.isStatement));case 288:return e.Debug.type(a),f.updateDefaultClause(a,u(a.statements,c,e.isStatement));case 289:return e.Debug.type(a),f.updateHeritageClause(a,u(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,l));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,u(a.elements,c,e.isExpression));default:return a}}}}(u||(u={})),function(e){e.createSourceMapGenerator=function(t,r,n,i,o){var s,c,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,u=l.enter,_=l.exit,d=[],p=[],f=new e.Map,g=[],m=[],y="",h=0,v=0,b=0,x=0,D=0,S=0,E=!1,C=0,T=0,k=0,A=0,N=0,w=0,F=!1,P=!1,I=!1;return{getSources:function(){return d},addSource:O,setSourceContent:L,addName:M,addMapping:R,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),u();for(var c,l=[],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=C,"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"),u(),(function(e,t){return!F||C!==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&&N>r)}(n,i,a))&&(j(),C=t,T=r,P=!1,I=!1,F=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,A=i,N=a,P=!0,void 0!==o&&(w=o,I=!0)),_()}function B(e){m.push(e),m.length>=1024&&J()}function j(){if(F&&(!E||h!==C||v!==T||b!==k||x!==A||D!==N||S!==w)){if(u(),h0&&(y+=String.fromCharCode.apply(void 0,m),m.length=0)}function V(){return j(),J(),{version:3,file:r,sourceRoot:n,sources:p,names:g,mappings:y,sourcesContent:s}}function U(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,l=0;return{get pos(){return n},get error(){return t},get state(){return u(!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 l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function u(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),h=t.getSourceFileLike(y),v=r.sources.map((function(t){return e.getNormalizedAbsolutePath(t,m)})),b=new e.Map(v.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=E();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,d,e.compareValues);n<0&&(n=~n);var i=r[n];return void 0!==i&&s(i)?{fileName:v[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition:function(r){var n=b.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];return void 0===o||o.sourceIndex!==n?r:{fileName:y,pos:o.generatedPosition}}};function x(n){var i,a,s=void 0!==h?e.getPositionOfLineAndCharacter(h,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(v[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 D(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,x);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=D();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)}}(u||(u={})),function(e){function t(r,n){var i=e.getTargetOfBindingOrAssignmentElement(r);return e.isBindingOrAssignmentPattern(i)?function(r,n){for(var i=0,a=e.getElementsOfBindingOrAssignmentPattern(r);i=1)||49152&f.transformFlags||49152&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0);var m=a(t,s,g);e.isComputedPropertyName(g)&&(u=e.append(u,m.argumentExpression)),n(t,f,m,f)}else l=e.append(l,e.visitNode(f,t.visitor))}}l&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i)}(t,r,u,s,c):e.isArrayBindingOrAssignmentPattern(u)?function(t,r,a,s,c){var l,u,_=e.getElementsOfBindingOrAssignmentPattern(a),d=_.length;t.level<1&&t.downlevelIteration?s=o(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(s,d>0&&e.getRestIndicatorOfBindingOrAssignmentElement(_[d-1])?void 0:d),c),!1,c):(1!==d&&(t.level<1||0===d)||e.every(_,e.isOmittedExpression))&&(s=o(t,s,!e.isDeclarationBindingElement(r)||0!==d,c));for(var p=0;p=1)if(32768&f.transformFlags||t.hasTransformedPriorElement&&!i(f)){t.hasTransformedPriorElement=!0;var g=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(g),u=e.append(u,[g,f]),l=e.append(l,t.createArrayBindingOrAssignmentElement(g))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f))p===d-1&&(m=t.context.factory.createArraySliceCall(s,p),n(t,f,m,f));else{var m=t.context.factory.createElementAccessExpression(s,p);n(t,f,m,f)}}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),s,c,a),u)for(var y=0,h=u;y1&&(c.push(d.createEndOfDeclarationMarker(i)),e.setEmitFlags(s,4194304|e.getEmitFlags(s))),e.singleOrMany(c)}(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 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(ie(r)){var n=d.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,L,e.isModifier),r.asteriskToken,ne(r),void 0,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(o);case 170:return function(r){if(ce(r)){var n=d.updateGetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,L,e.isModifier),ne(r),e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(o);case 171:return function(r){if(ce(r)){var n=d.updateSetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,L,e.isModifier),ne(r),e.visitParameterList(r.parameters,k,t),e.visitFunctionBody(r.body,k,t)||d.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(o);case 254:return function(r){if(!ie(r))return d.createNotEmittedStatement(r);var n=d.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,L,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(Se(r)){var i=[n];return ke(i,r),i}return n}(o);case 211:return function(r){return ie(r)?d.updateFunctionExpression(r,e.visitNodes(r.modifiers,L,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,k,t),void 0,e.visitFunctionBody(r.body,k,t)||d.createBlock([])):d.createOmittedExpression()}(o);case 212:return function(r){return d.updateArrowFunction(r,e.visitNodes(r.modifiers,L,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)){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));return r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32)),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(v)}(t))return d.createNotEmittedStatement(t);var n=[],o=2,s=fe(n,t);s&&(D===e.ModuleKind.System&&a===r||(o|=512));var c=we(t),l=Fe(t),u=e.hasSyntacticModifier(t,1)?d.getExternalModuleOrNamespaceExportName(i,t,!1,!0):d.getLocalName(t,!1,!0),_=d.createLogicalOr(u,d.createAssignment(u,d.createObjectLiteralExpression()));if(_e(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,ue);return e.insertStatementsAfterStandardPrologue(a,m()),e.addRange(a,o),i=n,d.createBlock(e.setTextRange(d.createNodeArray(a),t.members),!0)}(t,l)),void 0,[_]));return e.setOriginalNode(g,t),s&&(e.setSyntheticLeadingComments(g,void 0),e.setSyntheticTrailingComments(g,void 0)),e.setTextRange(g,t),e.addEmitFlags(g,o),n.push(g),n.push(d.createEndOfDeclarationMarker(t)),n}(o);case 235:return function(r){if(Se(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(d.createExpressionStatement(d.inlineExpressions(e.map(n,le))),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 ge(o);case 263:return De(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(v,"alwaysStrict")&&!(e.isExternalModule(r)&&D>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return d.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,N,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 W(t){return e.visitNode(t.expression,k,e.isExpression)}function q(t,r){var n;if(t){n=[];for(var i=0,a=t;i=2,g=_<=8||!d,m=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=m(t,n),1===t?function(t){switch(t.kind){case 79:return function(t){return function(t){if(1&y&&33554432&l.getNodeCheckFlags(t)){var n=l.getReferencedValueDeclaration(t);if(n){var i=h[n.id];if(i){var a=r.cloneNode(i);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}}(t)||t}(t);case 108:return function(t){if(2&y&&D){var n=D.facts,i=D.classConstructor;if(1&n)return r.createParenthesizedExpression(r.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(r.cloneNode(i),t),t)}return t}(t)}return t}(n):n};var y,h,v,b,x=t.onEmitNode;t.onEmitNode=function(t,r,n){var i=e.getOriginalNode(r);if(i.id){var a=T.get(i.id);if(a){var o=D,s=S;return D=a,S=a,x(t,r,n),D=o,void(S=s)}}switch(r.kind){case 211:if(e.isArrowFunction(i)||262144&e.getEmitFlags(r))break;case 254:case 169:return o=D,s=S,D=void 0,S=void 0,x(t,r,n),D=o,void(S=s);case 170:case 171:case 167:case 165:return o=D,s=S,S=D,D=void 0,x(t,r,n),D=o,void(S=s);case 160:return o=D,s=S,D=S,S=void 0,x(t,r,n),D=o,void(S=s)}x(t,r,n)};var D,S,E,C=[],T=new e.Map;return e.chainBundle(t,(function(r){var n=t.getCompilerOptions();if(r.isDeclarationFile||d&&99===n.target)return r;var i=e.visitEachChild(r,N,t);return e.addEmitHelpers(i,t.readEmitHelpers()),i}));function k(a,o){if(8388608&a.transformFlags)switch(a.kind){case 224:case 255:return function(i){if(!e.forEach(i.members,j))return e.visitEachChild(i,N,t);var a=v;if(v=void 0,C.push(D),D=void 0,p){var o=e.getNameOfDeclaration(i);o&&e.isIdentifier(o)&&(Y().className=e.idText(o));var s=J(i);e.some(s)&&(Y().weakSetName=Z("instances",s[0].name))}var u=e.isClassDeclaration(i)?function(t){var i=V(t);i&&(H().facts=i),8&i&&W();var a,o=e.getStaticPropertiesAndClassStaticBlock(t);if(2&i){var s=r.createTempVariable(n,!0);H().classConstructor=r.cloneNode(s),a=r.createAssignment(s,r.getInternalName(t))}var c=e.getEffectiveBaseTypeNode(t),l=!(!c||104===e.skipOuterExpressions(c.expression).kind),u=[r.updateClassDeclaration(t,void 0,t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,w,e.isHeritageClause),U(t,l))];return a&&X().unshift(a),e.some(v)&&u.push(r.createExpressionStatement(r.inlineExpressions(v))),e.some(o)&&z(u,o,r.getInternalName(t)),u}(i):function(i){var a=V(i);a&&(H().facts=a),8&a&&W();var o,s=!!(1&a),u=e.getStaticPropertiesAndClassStaticBlock(i),_=e.getEffectiveBaseTypeNode(i),d=!(!_||104===e.skipOuterExpressions(_.expression).kind),f=16777216&l.getNodeCheckFlags(i);function g(){var e=l.getNodeCheckFlags(i),t=16777216&e,a=524288&e;return r.createTempVariable(a?c:n,!!t)}2&a&&(o=g(),H().classConstructor=r.cloneNode(o));var m=r.updateClassExpression(i,e.visitNodes(i.decorators,N,e.isDecorator),i.modifiers,i.name,void 0,e.visitNodes(i.heritageClauses,w,e.isHeritageClause),U(i,d));if(e.some(u,(function(t){return e.isClassStaticBlockDeclaration(t)||!!t.initializer||p&&e.isPrivateIdentifier(t.name)}))||e.some(v)){if(s)return e.Debug.assertIsDefined(b,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),b&&v&&e.some(v)&&b.push(r.createExpressionStatement(r.inlineExpressions(v))),b&&e.some(u)&&z(b,u,r.getInternalName(i)),o?r.inlineExpressions([r.createAssignment(o,m),o]):m;var x=[];if(o||(o=g()),f){0==(1&y)&&(y|=1,t.enableSubstitution(79),h=[]);var D=r.cloneNode(o);D.autoGenerateFlags&=-9,h[e.getOriginalNodeId(i)]=D}return e.setEmitFlags(m,65536|e.getEmitFlags(m)),x.push(e.startOnNewLine(r.createAssignment(o,m))),e.addRange(x,e.map(v,e.startOnNewLine)),e.addRange(x,function(t,r){for(var n=[],i=0,a=t;i_&&(d||e.addRange(f,e.visitNodes(i.body.statements,N,e.isStatement,_,g-_)),_=g)}var m=r.createThis();return function(t,n,i){if(p&&e.some(n)){var a=Y().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),t.push(r.createExpressionStatement(function(t,r){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"add"),void 0,[t])}(i,a)))}}(f,l,m),z(f,c,m),i&&e.addRange(f,e.visitNodes(i.body.statements,N,e.isStatement,_)),f=r.mergeLexicalEnvironment(f,a()),e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(f),i?i.body.statements:n.members),!0),i?i.body:void 0)}(n,o,i);return u?e.startOnNewLine(e.setOriginalNode(e.setTextRange(r.createConstructorDeclaration(void 0,void 0,null!=l?l:[],u),o||n),o)):void 0}(n,i);return f&&_.push(f),e.addRange(_,e.visitNodes(n.members,P,e.isClassElement)),e.setTextRange(r.createNodeArray(_),n.members)}function K(t){return!e.isStatic(t)&&!e.hasSyntacticModifier(e.getOriginalNode(t),128)&&(d?_<99:e.isInitializedProperty(t)||p&&e.isPrivateIdentifierClassElementDeclaration(t))}function z(t,n,i){for(var a=0,o=n;a=0;--r){var n,i=C[r];if(i&&(n=null===(t=i.privateIdentifierEnvironment)||void 0===t?void 0:t.identifiers.get(e.escapedText)))return n}}function te(i){var a=r.getGeneratedNameForNode(i),o=ee(i.name);if(!o)return e.visitEachChild(i,N,t);var s=i.expression;return(e.isThisProperty(i)||e.isSuperProperty(i)||!e.isSimpleCopiableExpression(i.expression))&&(s=r.createTempVariable(n,!0),X().push(r.createBinaryExpression(s,63,e.visitNode(i.expression,N,e.isExpression)))),r.createAssignmentTargetWrapper(a,B(o,s,a,63))}function re(t){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(n))i=te(n);else if(f&&e.isSuperProperty(n)&&E&&D){var a=D.classConstructor,o=D.superClassReference;if(1&D.facts)i=q(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,N,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(t)?r.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,N,e.isExpression)):e.isSpreadElement(t)?r.updateSpreadElement(t,i):i}return e.visitNode(t,F)}function ne(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var n=e.getTargetOfBindingOrAssignmentElement(t),i=void 0;if(n)if(e.isPrivateIdentifierPropertyAccessExpression(n))i=te(n);else if(f&&e.isSuperProperty(n)&&E&&D){var a=D.classConstructor,o=D.superClassReference;if(1&D.facts)i=q(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,N,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(t)){var l=e.getInitializerOfBindingOrAssignmentElement(t);return r.updatePropertyAssignment(t,e.visitNode(t.name,N,e.isPropertyName),i?l?r.createAssignment(i,e.visitNode(l,N)):i:e.visitNode(t.initializer,F,e.isExpression))}if(e.isSpreadAssignment(t))return r.updateSpreadAssignment(t,i||e.visitNode(t.expression,F,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(t,N)}}}(u||(u={})),function(e){var t,r;function n(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"}(t||(t={})),function(e){e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"}(r||(r={})),e.transformES2017=function(t){var r,a,o,s,c=t.factory,l=t.getEmitHelperFactory,u=t.resumeLexicalEnvironment,_=t.endLexicalEnvironment,d=t.hoistVariableDeclaration,p=t.getEmitResolver(),f=t.getCompilerOptions(),g=e.getEmitScriptTarget(f),m=0,y=[],h=0,v=t.onEmitNode,b=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){if(1&r&&function(e){var t=e.kind;return 255===t||169===t||167===t||170===t||171===t}(n)){var a=6144&p.getNodeCheckFlags(n);if(a!==m){var o=m;return m=a,v(t,n,i),void(m=o)}}else if(r&&y[e.getNodeId(n)])return o=m,m=0,v(t,n,i),void(m=o);v(t,n,i)},t.onSubstituteNode=function(t,r){return r=b(t,r),1===t&&m?function(t){switch(t.kind){case 204:return J(t);case 205:return V(t);case 206:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?J(r):V(r);return c.createCallExpression(c.createPropertyAccessExpression(n,"call"),void 0,i([c.createThis()],t.arguments,!0))}return t}(t)}return t}(r):r},e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;x(1,!1),x(2,!e.isEffectiveStrictModeSourceFile(r,f));var n=e.visitEachChild(r,T,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function x(e,t){h=t?h|e:h&~e}function D(e){return 0!=(h&e)}function S(){return D(2)}function E(e,t,r){var n=e&~h;if(n){x(n,!0);var i=t(r);return x(n,!1),i}return t(r)}function C(r){return e.visitEachChild(r,T,t)}function T(r){if(0==(128&r.transformFlags))return r;switch(r.kind){case 130:return;case 216:return function(r){return D(1)?e.setOriginalNode(e.setTextRange(c.createYieldExpression(void 0,e.visitNode(r.expression,T,e.isExpression)),r),r):e.visitEachChild(r,T,t)}(r);case 167:return E(3,A,r);case 254:return E(3,N,r);case 211:return E(3,w,r);case 212:return E(1,F,r);case 204:return o&&e.isPropertyAccessExpression(r)&&106===r.expression.kind&&o.add(r.name.escapedText),e.visitEachChild(r,T,t);case 205:return o&&106===r.expression.kind&&(s=!0),e.visitEachChild(r,T,t);case 170:case 171:case 169:case 255:case 224:return E(3,C,r);default:return e.visitEachChild(r,T,t)}}function k(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 235:return function(r){if(I(r.declarationList)){var n=O(r.declarationList,!1);return n?c.createExpressionStatement(n):void 0}return e.visitEachChild(r,T,t)}(r);case 240:return function(r){var n=r.initializer;return c.updateForStatement(r,I(n)?O(n,!1):e.visitNode(r.initializer,T,e.isForInitializer),e.visitNode(r.condition,T,e.isExpression),e.visitNode(r.incrementor,T,e.isExpression),e.visitIterationBody(r.statement,k,t))}(r);case 241:return function(r){return c.updateForInStatement(r,I(r.initializer)?O(r.initializer,!0):e.visitNode(r.initializer,T,e.isForInitializer),e.visitNode(r.expression,T,e.isExpression),e.visitIterationBody(r.statement,k,t))}(r);case 242:return function(r){return c.updateForOfStatement(r,e.visitNode(r.awaitModifier,T,e.isToken),I(r.initializer)?O(r.initializer,!0):e.visitNode(r.initializer,T,e.isForInitializer),e.visitNode(r.expression,T,e.isExpression),e.visitIterationBody(r.statement,k,t))}(r);case 290:return function(r){var n,i=new e.Set;if(P(r.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(r,k,t);return a=o,s}return e.visitEachChild(r,k,t)}(r);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(r,k,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return T(r)}function A(r){return c.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,T,t))}function N(r){return c.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,T,t))}function w(r){return c.updateFunctionExpression(r,e.visitNodes(r.modifiers,T,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,T,t),void 0,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,T,t))}function F(r){return c.updateArrowFunction(r,e.visitNodes(r.modifiers,T,e.isModifier),void 0,e.visitParameterList(r.parameters,T,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?B(r):e.visitFunctionBody(r.body,T,t))}function P(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(i);if(F&&(0==(1&r)&&(r|=1,t.enableSubstitution(206),t.enableSubstitution(204),t.enableSubstitution(205),t.enableEmitNotification(255),t.enableEmitNotification(167),t.enableEmitNotification(170),t.enableEmitNotification(171),t.enableEmitNotification(169),t.enableEmitNotification(235)),o.size)){var I=n(c,p,i,o);y[e.getNodeId(I)]=!0,e.insertStatementsAfterStandardPrologue(N,[I])}var O=c.createBlock(N,!0);e.setTextRange(O,i.body),F&&s&&(4096&p.getNodeCheckFlags(i)?e.addEmitHelper(O,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(i)&&e.addEmitHelper(O,e.asyncSuperHelper)),D=O}return a=v,m||(o=E,s=C),D}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 V(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=n}(u||(u={})),function(e){var t,r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),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"}(r||(r={})),e.transformES2018=function(t){var r=t.factory,n=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),l=t.getCompilerOptions(),u=e.getEmitScriptTarget(l),_=t.onEmitNode;t.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!==b){var a=b;return b=i,_(t,r,n),void(b=a)}}else if(p&&D[e.getNodeId(r)])return a=b,b=0,_(t,r,n),void(b=a);_(t,r,n)};var d=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=d(t,n),1===t&&b?function(t){switch(t.kind){case 204:return W(t);case 205:return q(t);case 206:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var a=e.isPropertyAccessExpression(n)?W(n):q(n);return r.createCallExpression(r.createPropertyAccessExpression(a,"call"),void 0,i([r.createThis()],t.arguments,!0))}return t}(t)}return t}(n):n};var p,f,g,m,y,h,v=!1,b=0,x=0,D=[];return e.chainBundle(t,(function(n){if(n.isDeclarationFile)return n;g=n;var i=function(n){var i=S(2,e.isEffectiveStrictModeSourceFile(n,l)?0:1);v=!1;var a=e.visitEachChild(n,T,t),o=e.concatenate(a.statements,m&&[r.createVariableStatement(void 0,r.createVariableDeclarationList(m))]),s=r.updateSourceFile(a,e.setTextRange(r.createNodeArray(o),n.statements));return E(i),s}(n);return e.addEmitHelpers(i,t.readEmitHelpers()),g=void 0,m=void 0,i}));function S(e,t){var r=x;return x=3&(x&~e|t),r}function E(e){x=e}function C(t){m=e.append(m,r.createVariableDeclaration(t))}function T(e){return F(e,!1)}function k(e){return F(e,!0)}function A(e){if(130!==e.kind)return e}function N(e,t,r,n){if(function(e,t){return x!==(x&~e|t)}(r,n)){var i=S(r,n),a=e(t);return E(i),a}return e(t)}function w(r){return e.visitEachChild(r,T,t)}function F(a,o){if(0==(64&a.transformFlags))return a;switch(a.kind){case 216:return function(i){return 2&f&&1&f?e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(e.visitNode(i.expression,T,e.isExpression))),i),i):e.visitEachChild(i,T,t)}(a);case 222:return function(i){if(2&f&&1&f){if(i.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(i.expression),T,e.isExpression);return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(r.updateYieldExpression(i,i.asteriskToken,e.setTextRange(n().createAsyncDelegatorHelper(e.setTextRange(n().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,L(i.expression?e.visitNode(i.expression,T,e.isExpression):r.createVoidZero())),i),i)}return e.visitEachChild(i,T,t)}(a);case 245:return function(n){return 2&f&&1&f?r.updateReturnStatement(n,L(n.expression?e.visitNode(n.expression,T,e.isExpression):r.createVoidZero())):e.visitEachChild(n,T,t)}(a);case 248:return function(n){if(2&f){var i=e.unwrapInnermostStatementOfLabel(n);return 242===i.kind&&i.awaitModifier?O(i,n):r.restoreEnclosingLabel(e.visitNode(i,T,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,T,t)}(a);case 203:return function(i){if(32768&i.transformFlags){var a=function(t){for(var n,i=[],a=0,o=t;a1){for(var s=1;s=2&&6144&c.getNodeCheckFlags(i);if(g){0==(1&p)&&(p|=1,t.enableSubstitution(206),t.enableSubstitution(204),t.enableSubstitution(205),t.enableEmitNotification(255),t.enableEmitNotification(167),t.enableEmitNotification(170),t.enableEmitNotification(171),t.enableEmitNotification(169),t.enableEmitNotification(235));var m=e.createSuperAccessVariableStatement(r,c,i,y);D[e.getNodeId(m)]=!0,e.insertStatementsAfterStandardPrologue(s,[m])}s.push(f),e.insertStatementsAfterStandardPrologue(s,o());var v=r.updateBlock(i.body,s);return g&&h&&(4096&c.getNodeCheckFlags(i)?e.addEmitHelper(v,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(i)&&e.addEmitHelper(v,e.asyncSuperHelper)),y=_,h=d,v}function z(t){var n;a();var i=0,s=[],c=null!==(n=e.visitNode(t.body,T,e.isConciseBody))&&void 0!==n?n:r.createBlock([]);e.isBlock(c)&&(i=r.copyPrologue(c.statements,s,!1,T)),e.addRange(s,G(void 0,t));var l=o();if(i>0||e.some(s)||e.some(l)){var u=r.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(i)),r.updateBlock(u,e.setTextRange(r.createNodeArray(s),u.statements))}return c}function G(n,i){for(var a=0,o=i.parameters;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(function(e){var t=function(e){return 5===s.jsx?"jsxDEV":e>1?"jsxs":"jsx"}(e);return l(t)}(o),void 0,d),_);return u&&e.startOnNewLine(g),g}function v(t,c,u,d){var p,f=A(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,D):e.map(t,E)}))));else{var y=e.flatten(e.spanMap(g,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,S):a.createObjectLiteralExpression(e.map(t,E))})));e.isJsxSpreadAttribute(g[0])&&y.unshift(a.createObjectLiteralExpression()),(p=e.singleOrUndefined(y))||(p=o().createAssignHelper(y))}}var h=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):l("createElement"),v=e.createExpressionForJsxElement(a,h,f,p,e.mapDefined(c,_),d);return u&&e.startOnNewLine(v),v}function b(t,r,n,i){var o;if(r&&r.length){var s=m(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 l=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,_),t,c);return o&&e.startOnNewLine(l),l}function D(t){return a.createSpreadAssignment(e.visitNode(t.expression,u,e.isExpression))}function S(t){return e.visitNode(t.expression,u,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=C(t.initializer);return a.createPropertyAssignment(r,n)}function C(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(((s=k(o=t.text))===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,u,e.isExpression):e.Debug.failBadSyntaxKind(t);var o,s}function T(e,t){var r=k(t);return void 0===e?r:e+" "+r}function k(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 l=t.get(c);return l?e.utf16EncodeAsString(l):r}))}function A(t){if(276===t.kind)return A(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,u,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}))}(u||(u={})),function(e){e.transformES2016=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,i,t)}));function i(a){return 0==(256&a.transformFlags)?a:219===a.kind?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 l=r.createTempVariable(n),u=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),e.setTextRange(r.createAssignment(u,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(l,u),s)}else e.isPropertyAccessExpression(s)?(l=r.createTempVariable(n),a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(l,s.name),s)):(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):e.visitEachChild(a,i,t)}}}(u||(u={})),function(e){var t,r,n,a,o,s;function c(e,t){return{kind:e,expression:t}}!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(t||(t={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(r||(r={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(n||(n={})),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(t){var r,n,a,o,s,l,u=t.factory,_=t.getEmitHelperFactory,d=t.startLexicalEnvironment,p=t.resumeLexicalEnvironment,f=t.endLexicalEnvironment,g=t.hoistVariableDeclaration,m=t.getCompilerOptions(),y=t.getEmitResolver(),h=t.onSubstituteNode,v=t.onEmitNode;function b(t){o=e.append(o,u.createVariableDeclaration(t))}return t.onEmitNode=function(t,r,n){if(1&l&&e.isFunctionLike(r)){var i=x(32670,8&e.getEmitFlags(r)?81:65);return v(t,r,n),void D(i,0,0)}v(t,r,n)},t.onSubstituteNode=function(t,r){return r=h(t,r),1===t?function(t){switch(t.kind){case 79:return function(t){if(2&l&&!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;for(var i=e.getEnclosingBlockScopeContainer(t);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(u.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 108:return function(t){return 1&l&&16&a?e.setTextRange(u.createUniqueName("_this",48),t):t}(t)}return t}(r):e.isIdentifier(r)?function(t){if(2&l&&!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(u.getGeneratedNameForNode(r),t)}return t}(r):r},e.chainBundle(t,(function(i){if(i.isDeclarationFile)return i;r=i,n=i.text;var s=function(t){var r=x(8064,64),n=[],i=[];d();var a=u.copyPrologue(t.statements,n,!1,C);return e.addRange(i,e.visitNodes(t.statements,C,e.isStatement,a)),o&&i.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(o))),u.mergeLexicalEnvironment(n,f()),V(n,t),D(r,0,0),u.updateSourceFile(t,e.setTextRange(u.createNodeArray(e.concatenate(n,i)),t.statements))}(i);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,o=void 0,a=0,s}));function x(e,t){var r=a;return a=32767&(a&~e|t),r}function D(e,t,r){a=-32768&(a&~t|r)|e}function S(e){return 0!=(8192&a)&&245===e.kind&&!e.expression}function E(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 C(e){return E(e)?N(e,!1):e}function T(e){return E(e)?N(e,!0):e}function k(t){if(E(t)){var r=e.getOriginalNode(t);if(e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)){var n=x(32670,16449),i=N(t,!1);return D(n,98304,0),i}return N(t,!1)}return t}function A(e){return 106===e.kind?Pe(!0):C(e)}function N(n,o){switch(n.kind){case 124:return;case 255:return function(t){var r=u.createVariableDeclaration(u.getLocalName(t,!0),void 0,void 0,P(t));e.setOriginalNode(r,t);var n=[],i=u.createVariableStatement(void 0,u.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)?u.createExportDefault(u.getLocalName(t)):u.createExternalModuleExport(u.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(u.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)}(n);case 224:return function(e){return P(e)}(n);case 162:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,u.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 254:return function(r){var n=s;s=void 0;var i=x(32670,65),o=e.visitParameterList(r.parameters,C,t),c=Y(r),l=32768&a?u.getLocalName(r):r.name;return D(i,98304,0),s=n,u.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,l,void 0,o,void 0,c)}(n);case 212:return function(r){8192&r.transformFlags&&!(16384&a)&&(a|=65536);var n=s;s=void 0;var i=x(15232,66),o=u.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,C,t),void 0,Y(r));return e.setTextRange(o,r),e.setOriginalNode(o,r),e.setEmitFlags(o,8),D(i,0,0),s=n,o}(n);case 211:return function(r){var n=262144&e.getEmitFlags(r)?x(32662,69):x(32670,65),i=s;s=void 0;var o=e.visitParameterList(r.parameters,C,t),c=Y(r),l=32768&a?u.getLocalName(r):r.name;return D(n,98304,0),s=i,u.updateFunctionExpression(r,void 0,r.asteriskToken,l,void 0,o,void 0,c)}(n);case 252:return Z(n);case 79:return F(n);case 253:return function(r){if(3&r.flags||262144&r.transformFlags){3&r.flags&&Ie();var n=e.flatMap(r.declarations,1&r.flags?Q:Z),i=u.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),262144&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(n,C,t,0,u.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(n),e.visitNode(a,C,e.isExpression))),1048576)),!0)}function j(t,r,n,i){i=e.visitNode(i,C,e.isExpression);var a=u.createIfStatement(u.createTypeCheck(u.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(u.createBlock([u.createExpressionStatement(e.setEmitFlags(e.setTextRange(u.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(u.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(r,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(u.cloneNode(o.name),o.name),o.name.parent):u.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?u.cloneNode(o.name):s,l=n.parameters.length-1,_=u.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(s,void 0,void 0,u.createArrayLiteralExpression([]))])),o),1048576));var d=u.createForStatement(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(_,void 0,void 0,u.createNumericLiteral(l))]),o),e.setTextRange(u.createLessThan(_,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),o),e.setTextRange(u.createPostfixIncrement(_),o),u.createBlock([e.startOnNewLine(e.setTextRange(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(c,0===l?_:u.createSubtract(_,u.createNumericLiteral(l))),u.createElementAccessExpression(u.createIdentifier("arguments"),_))),o))]));return e.setEmitFlags(d,1048576),e.startOnNewLine(d),a.push(d),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(o,C,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function V(e,t){return!!(65536&a&&212!==t.kind)&&(U(e,t,u.createThis()),!0)}function U(r,n,i){0==(1&l)&&(l|=1,t.enableSubstitution(108),t.enableEmitNotification(169),t.enableEmitNotification(167),t.enableEmitNotification(170),t.enableEmitNotification(171),t.enableEmitNotification(212),t.enableEmitNotification(211),t.enableEmitNotification(254));var a=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_this",48),void 0,void 0,i)]));e.setEmitFlags(a,1050112),e.setSourceMapRange(a,n),e.insertStatementAfterCustomPrologue(r,a)}function K(t,r,n){if(32768&a){var i=void 0;switch(r.kind){case 212:return t;case 167:case 170:case 171:i=u.createVoidZero();break;case 169:i=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 254:case 211:i=u.createConditionalExpression(u.createLogicalAnd(e.setEmitFlags(u.createThis(),4),u.createBinaryExpression(e.setEmitFlags(u.createThis(),4),102,u.getLocalName(r))),void 0,u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor"),void 0,u.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function z(t){return e.setTextRange(u.createEmptyStatement(),t)}function G(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=H(n,n,void 0,i),l=e.visitNode(n.name,C,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&e.getUseDefineForClassFields(t.getCompilerOptions())){var _=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?u.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;a=u.createObjectDefinePropertyCall(r,_,u.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var d=e.createMemberAccessForPropertyName(u,r,l,n.name);a=u.createAssignment(d,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var p=e.setTextRange(u.createExpressionStatement(a),n);return e.setOriginalNode(p,n),e.setCommentRange(p,o),e.setEmitFlags(p,48),p}function W(t,r,n){var i=u.createExpressionStatement(q(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function q(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(u.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var l=e.visitNode(a.name,C,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var _=e.createExpressionForPropertyName(u,l);e.setEmitFlags(_,1552),e.setSourceMapRange(_,a.name);var d=[];if(o){var p=H(o,void 0,void 0,n);e.setSourceMapRange(p,e.getSourceMapRange(o)),e.setEmitFlags(p,512);var f=u.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(o)),d.push(f)}if(s){var g=H(s,void 0,void 0,n);e.setSourceMapRange(g,e.getSourceMapRange(s)),e.setEmitFlags(g,512);var m=u.createPropertyAssignment("set",g);e.setCommentRange(m,e.getCommentRange(s)),d.push(m)}d.push(u.createPropertyAssignment("enumerable",o||s?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));var y=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[c,_,u.createObjectLiteralExpression(d,!0)]);return i&&e.startOnNewLine(y),y}function H(r,n,i,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.isStatic(r)?x(32670,73):x(32670,65),_=e.visitParameterList(r.parameters,C,t),d=Y(r);return 32768&a&&!i&&(254===r.kind||211===r.kind)&&(i=u.getGeneratedNameForNode(r)),D(l,98304,0),s=c,e.setOriginalNode(e.setTextRange(u.createFunctionExpression(void 0,r.asteriskToken,i,void 0,_,void 0,d),n),r)}function Y(t){var n,i,a,o=!1,s=!1,c=[],l=[],_=t.body;if(p(),e.isBlock(_)&&(a=u.copyStandardPrologue(_.statements,c,!1),a=u.copyCustomPrologue(_.statements,l,a,C,e.isHoistedFunction),a=u.copyCustomPrologue(_.statements,l,a,C,e.isHoistedVariableStatement)),o=R(l,t)||o,o=J(l,t,!1)||o,e.isBlock(_))a=u.copyCustomPrologue(_.statements,l,a,C),n=_.statements,e.addRange(l,e.visitNodes(_.statements,C,e.isStatement,a)),!o&&_.multiLine&&(o=!0);else{e.Debug.assert(212===t.kind),n=e.moveRangeEnd(_,-1);var d=t.equalsGreaterThanToken;e.nodeIsSynthesized(d)||e.nodeIsSynthesized(_)||(e.rangeEndIsOnSameLineAsRangeStart(d,_,r)?s=!0:o=!0);var g=e.visitNode(_,C,e.isExpression),m=u.createReturnStatement(g);e.setTextRange(m,_),e.moveSyntheticComments(m,_),e.setEmitFlags(m,1440),l.push(m),i=_}if(u.mergeLexicalEnvironment(c,f()),K(c,t,!1),V(c,t),e.some(c)&&(o=!0),l.unshift.apply(l,c),e.isBlock(_)&&e.arrayIsEqualTo(l,_.statements))return _;var y=u.createBlock(e.setTextRange(u.createNodeArray(l),n),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(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,C,t,0,!n):27===r.operatorToken.kind?u.updateBinaryExpression(r,e.visitNode(r.left,T,e.isExpression),r.operatorToken,e.visitNode(r.right,n?T:C,e.isExpression)):e.visitEachChild(r,C,t)}function Q(r){var n=r.name;return e.isBindingPattern(n)?Z(r):!r.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))}(r)?u.updateVariableDeclaration(r,r.name,void 0,void 0,u.createVoidZero()):e.visitEachChild(r,C,t)}function Z(r){var n,i=x(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,C,t,0,void 0,0!=(32&i)):e.visitEachChild(r,C,t),D(i,0,0),n}function $(t){s.labels.set(e.idText(t.label),!0)}function ee(t){s.labels.set(e.idText(t.label),!1)}function te(r,n,i,o,c){var l=x(r,n),_=function(r,n,i,o){if(!pe(r)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(r,n,void 0,i):u.restoreEnclosingLabel(e.isForStatement(r)?function(t){return u.updateForStatement(t,e.visitNode(t.initializer,T,e.isForInitializer),e.visitNode(t.condition,C,e.isExpression),e.visitNode(t.incrementor,T,e.isExpression),e.visitNode(t.statement,C,e.isStatement,u.liftToBlock))}(r):e.visitEachChild(r,C,t),n,s&&ee);return s&&(s.allowedNonLabeledJumps=c),l}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,l=r.declarations;c=81&&r<=116)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(u||(u={})),function(e){var t,r,n,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"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(r||(r={})),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"}(n||(n={})),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(t){var r,n,a,o,s,c,l,u,_,d,p=t.factory,f=t.getEmitHelperFactory,g=t.resumeLexicalEnvironment,m=t.endLexicalEnvironment,y=t.hoistFunctionDeclaration,h=t.hoistVariableDeclaration,v=t.getCompilerOptions(),b=e.getEmitScriptTarget(v),x=t.getEmitResolver(),D=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=D(t,i),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=x.getReferencedValueDeclaration(i);if(a){var o=n[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):t}(i):i};var S,E,C,T,k,A,N,w,F,P,I,O,L=1,M=0,R=0;return e.chainBundle(t,(function(r){if(r.isDeclarationFile||0==(1024&r.transformFlags))return r;var n=e.visitEachChild(r,B,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function B(r){var n=r.transformFlags;return o?function(r){switch(r.kind){case 238:case 239:return function(r){return o?(oe(),r=e.visitEachChild(r,B,t),ce(),r):e.visitEachChild(r,B,t)}(r);case 247:return function(r){return o&&re({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,B,t),o&&le(),r}(r);case 248:return function(r){return o&&re({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,B,t),o&&ue(),r}(r);default:return j(r)}}(r):a?j(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 254:return J(t);case 211:return V(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):1024&n?e.visitEachChild(r,B,t):r}function j(r){switch(r.kind){case 254:return J(r);case 211:return V(r);case 170:case 171:return function(r){var n=a,i=o;return a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i,r}(r);case 235:return function(t){if(524288&t.transformFlags)H(t.declarationList);else{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(r.condition,B,e.isExpression),e.visitNode(r.incrementor,B,e.isExpression),e.visitIterationBody(r.statement,B,t))}else r=e.visitEachChild(r,B,t);return o&&ce(),r}(r);case 241:return function(r){o&&oe();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i0)return ve(n,r)}return e.visitEachChild(r,B,t)}(r);case 243:return function(r){if(o){var n=me(r.label&&e.idText(r.label));if(n>0)return ve(n,r)}return e.visitEachChild(r,B,t)}(r);case 245:return function(t){return r=e.visitNode(t.expression,B,e.isExpression),n=t,e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(r?[he(2),r]:[he(2)])),n);var r,n}(r);default:return 524288&r.transformFlags?function(r){switch(r.kind){case 219:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){return X(r.right)?e.isLogicalOperator(r.operatorToken.kind)?function(t){var r=ee(),n=$();return De(n,e.visitNode(t.left,B,e.isExpression),t.left),55===t.operatorToken.kind?Ce(r,n,t.left):Ee(r,n,t.left),De(n,e.visitNode(t.right,B,e.isExpression),t.right),te(r),n}(r):27===r.operatorToken.kind?K(r):p.updateBinaryExpression(r,Z(e.visitNode(r.left,B,e.isExpression)),r.operatorToken,e.visitNode(r.right,B,e.isExpression)):e.visitEachChild(r,B,t)}(r);case 1:return function(r){var n=r.left,i=r.right;if(X(i)){var a=void 0;switch(n.kind){case 204:a=p.updatePropertyAccessExpression(n,Z(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),n.name);break;case 205:a=p.updateElementAccessExpression(n,Z(e.visitNode(n.expression,B,e.isLeftHandSideExpression)),Z(e.visitNode(n.argumentExpression,B,e.isExpression)));break;default:a=e.visitNode(n,B,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(p.createAssignment(a,e.setTextRange(p.createBinaryExpression(Z(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,B,e.isExpression)),r)),r):p.updateBinaryExpression(r,a,r.operatorToken,e.visitNode(i,B,e.isExpression))}return e.visitEachChild(r,B,t)}(r);default:return e.Debug.assertNever(n)}}(r);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)}(r);case 220:return function(r){if(X(r.whenTrue)||X(r.whenFalse)){var n=ee(),i=ee(),a=$();return Ce(n,e.visitNode(r.condition,B,e.isExpression),r.condition),De(a,e.visitNode(r.whenTrue,B,e.isExpression),r.whenTrue),Se(i),te(n),De(a,e.visitNode(r.whenFalse,B,e.isExpression),r.whenFalse),te(i),a}return e.visitEachChild(r,B,t)}(r);case 222:return function(t){var r,n=ee(),i=e.visitNode(t.expression,B,e.isExpression);return t.asteriskToken?function(e,t){Te(7,[e],t)}(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(f().createValuesHelper(i),t):i,t):function(e,t){Te(6,[e],t)}(i,t),te(n),r=t,e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(T,"sent"),void 0,[]),r)}(r);case 202:return function(e){return z(e.elements,void 0,void 0,e.multiLine)}(r);case 203:return function(t){var r=t.properties,n=t.multiLine,i=Q(r),a=$();De(a,p.createObjectLiteralExpression(e.visitNodes(r,B,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,(function(r,i){X(i)&&r.length>0&&(xe(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}),[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(p.cloneNode(a),a),a.parent)):a),p.inlineExpressions(o)}(r);case 205:return function(r){return X(r.argumentExpression)?p.updateElementAccessExpression(r,Z(e.visitNode(r.expression,B,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,B,e.isExpression)):e.visitEachChild(r,B,t)}(r);case 206:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,X)){var n=p.createCallBinding(r.expression,h,b,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall(Z(e.visitNode(i,B,e.isLeftHandSideExpression)),a,z(r.arguments)),r),r)}return e.visitEachChild(r,B,t)}(r);case 207:return function(r){if(e.forEach(r.arguments,X)){var n=p.createCallBinding(p.createPropertyAccessExpression(r.expression,"bind"),h),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall(Z(e.visitNode(i,B,e.isExpression)),a,z(r.arguments,p.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,B,t)}(r);default:return e.visitEachChild(r,B,t)}}(r):2098176&r.transformFlags?e.visitEachChild(r,B,t):r}}function J(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,U(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return a?void y(r):r}function V(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(p.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,B,t),void 0,U(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,B,t),a=n,o=i}return r}function U(t){var r=[],n=a,i=o,f=s,y=c,h=l,v=u,b=_,x=d,D=L,k=S,A=E,N=C,w=T;a=!0,o=!1,s=void 0,c=void 0,l=void 0,u=void 0,_=void 0,d=void 0,L=1,S=void 0,E=void 0,C=void 0,T=p.createTempVariable(void 0),g();var F=p.copyPrologue(t.statements,r,!1,B);G(t.statements,F);var P=ke();return e.insertStatementsAfterStandardPrologue(r,m()),r.push(p.createReturnStatement(P)),a=n,o=i,s=f,c=y,l=h,u=v,_=b,d=x,L=D,S=k,E=A,C=N,T=w,e.setTextRange(p.createBlock(r,t.multiLine),t)}function K(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 z(t,r,n,a){var o,s=Q(t);if(s>0){o=$();var c=e.visitNodes(t,B,e.isExpression,0,s);De(o,p.createArrayLiteralExpression(r?i([r],c,!0):c)),r=void 0}var l=e.reduceLeft(t,(function(t,n){if(X(n)&&t.length>0){var s=void 0!==o;o||(o=$()),De(o,s?p.createArrayConcatCall(o,[p.createArrayLiteralExpression(t,a)]):p.createArrayLiteralExpression(r?i([r],t,!0):t,a)),r=void 0,t=[]}return t.push(e.visitNode(n,B,e.isExpression)),t}),[],s);return o?p.createArrayConcatCall(o,[p.createArrayLiteralExpression(l,a)]):e.setTextRange(p.createArrayLiteralExpression(r?i([r],l,!0):l,a),n)}function G(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0?Se(r,t):xe(t)}(i);case 244:return function(t){var r=ge(t.label?e.idText(t.label):void 0);r>0?Se(r,t):xe(t)}(i);case 245:return function(t){Te(8,[e.visitNode(t.expression,B,e.isExpression)],t)}(i);case 246:return function(t){var r,n,i;X(t)?(r=Z(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)):xe(e.visitNode(t,B,e.isStatement))}(i);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=Z(e.visitNode(t.expression,B,e.isExpression)),o=[],s=-1,c=0;c0)break;_.push(p.createCaseClause(e.visitNode(l.expression,B,e.isExpression),[ve(o[c],l.expression)]))}else d++;_.length&&(xe(p.createSwitchStatement(a,p.createCaseBlock(_))),u+=_.length,_=[]),d>0&&(u+=d,d=0)}for(Se(s>=0?o[s]:i),c=0;c0);u++)l.push(Y(i));l.length&&(xe(p.createExpressionStatement(p.inlineExpressions(l))),c+=l.length,l=[])}}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 Q(e){for(var t=e.length,r=0;r=0;r--){var n=u[r];if(!de(n))break;if(n.labelText===e)return!0}return!1}function ge(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(de(r=u[t])&&r.labelText===e)return r.breakLabel;if(_e(r)&&fe(e,t-1))return r.breakLabel}else for(t=u.length-1;t>=0;t--){var r;if(_e(r=u[t]))return r.breakLabel}return 0}function me(e){if(u)if(e){for(var t=u.length-1;t>=0;t--)if(pe(r=u[t])&&fe(e,t-1))return r.continueLabel}else for(t=u.length-1;t>=0;t--){var r;if(pe(r=u[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 he(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 ve(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([he(3),ye(t)])),r)}function be(){Te(0)}function xe(e){e?Te(1,[e]):be()}function De(e,t,r){Te(2,[e,t],r)}function Se(e,t){Te(3,[e],t)}function Ee(e,t,r){Te(4,[e,t],r)}function Ce(e,t,r){Te(5,[e,t],r)}function Te(e,t,r){void 0===S&&(S=[],E=[],C=[]),void 0===_&&te(ee());var n=S.length;S[n]=e,E[n]=t,C[n]=r}function ke(){M=0,R=0,k=void 0,A=!1,N=!1,w=void 0,F=void 0,P=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(!N)return!0;if(!_||!d)return!1;for(var t=0;t<_.length;t++)if(_[t]===e&&d[t])return!0;return!1})(e)&&(we(e),O=void 0,Ie(void 0,void 0)),F&&w&&Ne(!1),function(){if(void 0!==d&&void 0!==k)for(var e=0;e=0;t--){var r=O[t];F=[p.createWithStatement(r.expression,p.createBlock(F))]}if(I){var n=I.startLabel,i=I.catchLabel,a=I.finallyLabel,o=I.endLabel;F.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&&F.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(T,"label"),p.createNumericLiteral(R+1))))}w.push(p.createCaseClause(p.createNumericLiteral(R),F||[])),F=void 0}function we(e){if(_)for(var t=0;t<_.length;t++)_[t]===e&&(F&&(Ne(!A),A=!1,N=!1,R++),void 0===k&&(k=[]),void 0===k[R]?k[R]=[t]:k[R].push(t))}function Fe(t){if(we(t),function(e){if(s)for(;M=2?2:0)),t),t))}else i&&e.isDefaultImport(t)&&(r=e.append(r,n.createVariableStatement(void 0,n.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)),t),t)],d>=2?2:0))));if(V(t)){var o=e.getOriginalNodeId(t);b[o]=U(b[o],t)}else r=U(r,t);return e.singleOrMany(r)}(t);case 263:return function(t){var r;if(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(n.createExpressionStatement(X(t.name,B(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.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(n.createExpressionStatement(X(n.getExportName(t),n.getLocalName(t))),t),t))),V(t)){var i=e.getOriginalNodeId(t);b[i]=K(b[i],t)}else r=K(r,t);return e.singleOrMany(r)}(t);case 270:return function(t){if(t.moduleSpecifier){var r=n.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var i=[];p!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.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 L(t,r){var i,o=n.createUniqueName("resolve"),s=n.createUniqueName("reject"),c=[n.createParameterDeclaration(void 0,void 0,void 0,o),n.createParameterDeclaration(void 0,void 0,void 0,s)],u=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([t||n.createOmittedExpression()]),o,s]))]);d>=2?i=n.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(i=n.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),r&&e.setEmitFlags(i,8));var _=n.createNewExpression(n.createIdentifier("Promise"),void 0,[i]);return l.esModuleInterop?n.createCallExpression(n.createPropertyAccessExpression(_,n.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):_}function M(t,r){var i,o=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,[]),s=n.createCallExpression(n.createIdentifier("require"),void 0,t?[t]:[]);return l.esModuleInterop&&(s=a().createImportStarHelper(s)),d>=2?i=n.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(s)])),r&&e.setEmitFlags(i,8)),n.createCallExpression(n.createPropertyAccessExpression(o,"then"),void 0,[i])}function R(t,r){return!l.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(n,t,m,_,u,l),i=[];return r&&i.push(r),n.createCallExpression(n.createIdentifier("require"),void 0,i)}function j(t,r,i){var a=$(t);if(a){for(var o=e.isExportName(t)?r:n.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,i=n.getGeneratedNameForNode(r),a=n.createImportDeclaration(void 0,void 0,n.createImportClause(!1,void 0,n.createNamespaceImport(i)),t.moduleSpecifier);e.setOriginalNode(a,t.exportClause);var s=e.isExportNamespaceAsDefaultDeclaration(t)?n.createExportDefault(i):n.createExportDeclaration(void 0,void 0,!1,n.createNamedExports([n.createExportSpecifier(i,r)]));return e.setOriginalNode(s,t),[a,s]}(t)}return t}}}(u||(u={})),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){return{diagnosticMessage: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,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(){return{diagnosticMessage: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,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}(u||(u={})),function(e){function t(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function r(r,n){var i=e.getParseTreeNode(r);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,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var l=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(l,(function(e){return t(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=r;var n=531469;function a(t){var a,c,l,u,_,d,p,f,g,m,y,h,v=function(){return e.Debug.fail("Diagnostic emitted without context")},b=v,x=!0,D=!1,S=!1,E=!1,C=!1,T=t.factory,k=t.getEmitHost(),A={trackSymbol:function(e,t,r){if(262144&e.flags)return!1;var n=O(N.isSymbolAccessible(e,t,r,!0));return I(N.getTypeReferenceDirectivesForSymbol(e,r)),n},reportInaccessibleThisError:function(){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,L(),"this"))},reportInaccessibleUniqueSymbolError:function(){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,L(),"unique symbol"))},reportCyclicStructureError:function(){(p||f)&&t.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,L()))},reportPrivateInBaseOfClassExpression:function(r){(p||f)&&t.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){(p||f)&&t.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,L(),r))},reportTruncationError:function(){(p||f)&&t.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=N.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return I(n);var i=e.getSourceFileOfNode(t);m.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){D||(d||(d=[])).push(e)},reportNonlocalAugmentation:function(r,n,i){var a,o=null===(a=n.declarations)||void 0===a?void 0:a.find((function(t){return e.getSourceFileOfNode(t)===r})),s=e.filter(i.declarations,(function(t){return e.getSourceFileOfNode(t)!==r}));if(s)for(var c=0,l=s;c0?e.parameters[0].type:void 0}e.transformDeclarations=a}(u||(u={})),function(e){var t,r;function n(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 l(e,t){return t}function u(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"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,t,r){return{scriptTransformers:n(e,t,r),declarationTransformers:a(t)}},e.noEmitSubstitution=l,e.noEmitNotification=u,e.transformNodes=function(t,r,n,a,o,s,c){for(var _,d,p,f,g,m=new Array(350),y=0,h=[],v=[],b=[],x=[],D=0,S=!1,E=[],C=0,T=l,k=u,A=0,N=[],w={factory:n,getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return r},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(w)})),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."),h[D]=_,v[D]=d,b[D]=p,x[D]=y,D++,_=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 t;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&&(t=i([],d,!0)),_){var r=n.createVariableStatement(void 0,n.createVariableDeclarationList(_));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}p&&(t=i(t?i([],t,!0):[],p,!0))}return D--,_=h[D],d=v[D],p=b[D],y=x[D],0===D&&(h=[],v=[],b=[],x=[]),t},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(n.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."),E[C]=f,C++,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)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(f.map((function(e){return n.createVariableDeclaration(e)})),1))]:void 0;return C--,f=E[C],0===C&&(E=[]),t},addBlockScopedVariable:function(t){e.Debug.assert(C>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:V,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){N.push(e)}},F=0,P=o;F"],e[8192]=["[","]"],e}();function a(t,r,n,i,a,s){void 0===i&&(i=!1);var l=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),u=t.getCompilerOptions();if(e.outFile(u)){var _=t.getPrependNodes();if(l.length||_.length){var d=e.factory.createBundle(l,_);if(g=r(c(d,t,i),d))return g}}else{if(!a)for(var p=0,f=l;p0){var r=t.preserveSourceNewlinesStack[t.stackIndex],n=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],a=t.declarationListContainerEndStack[t.stackIndex],o=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Ae(r),s&&Wr(e),o&&Cr(e,n,i,a),null==w||w(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=Pe(0,1,t);if(a===Re&&(e.Debug.assertIsDefined(x),a=Ie(1,1,t=i(e.cast(x,e.isExpression))),x=void 0),(a===Sr||a===zr||a===Le)&&e.isBinaryExpression(t))return t;D=i,a(1,t)}}();return xe(),{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 i=r,a=me(),o=p,be(a,void 0),he(4,i,void 0),xe(),p=o,ye()}var i,a,o;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:V};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;be(n,void 0),he(e,t,r),xe(),p=i}function ce(e,t,r,n){var i=p;be(n,void 0),r&&ve(r),Nt(void 0,t,e),xe(),p=i}function le(){return p.getTextPosWithWriteLine?p.getTextPosWithWriteLine():p.getTextPos()}function ue(t,r,n){var i=e.lastOrUndefined(V.sections);i&&i.kind===n?i.end=r:V.sections.push({pos:t,end:r,kind:n})}function _e(t){if(K&&V&&i&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,i)&&"internal"!==G){var r=G;return pe(p.getTextPos()),z=le(),G="internal",r}}function de(e){e&&(pe(p.getTextPos()),z=le(),G=e)}function pe(e){return z"),Jt(),Se(e.type),_r(e)}(r);case 178:return function(e){ur(e),yt(e,e.modifiers),Mt("new"),Jt(),Ct(e,e.typeParameters),Tt(e,e.parameters),Jt(),Ot("=>"),Jt(),Se(e.type),_r(e)}(r);case 179:return function(e){Mt("typeof"),Jt(),Se(e.exprName)}(r);case 180:return function(t){Ot("{");var r=1&e.getEmitFlags(t)?768:32897;Nt(t,t.members,524288|r),Ot("}")}(r);case 181:return function(e){Se(e.elementType,ne.parenthesizeElementTypeOfArrayType),Ot("["),Ot("]")}(r);case 182:return function(t){He(22,t.pos,Ot,t);var r=1&e.getEmitFlags(t)?528:657;Nt(t,t.elements,524288|r),He(23,t.elements.end,Ot,t)}(r);case 183:return function(e){Se(e.type,ne.parenthesizeElementTypeOfArrayType),Ot("?")}(r);case 185:return function(e){Nt(e,e.types,516,ne.parenthesizeMemberOfElementType)}(r);case 186:return function(e){Nt(e,e.types,520,ne.parenthesizeMemberOfElementType)}(r);case 187:return function(e){Se(e.checkType,ne.parenthesizeMemberOfConditionalType),Jt(),Mt("extends"),Jt(),Se(e.extendsType,ne.parenthesizeMemberOfConditionalType),Jt(),Ot("?"),Jt(),Se(e.trueType),Jt(),Ot(":"),Jt(),Se(e.falseType)}(r);case 188:return function(e){Mt("infer"),Jt(),Se(e.typeParameter)}(r);case 189:return function(e){Ot("("),Se(e.type),Ot(")")}(r);case 226:return function(e){Ce(e.expression,ne.parenthesizeLeftSideOfAccess),Et(e,e.typeArguments)}(r);case 190:return void Mt("this");case 191:return function(e){qt(e.operator,Mt),Jt(),Se(e.type,ne.parenthesizeMemberOfElementType)}(r);case 192:return function(e){Se(e.objectType,ne.parenthesizeMemberOfElementType),Ot("["),Se(e.indexType),Ot("]")}(r);case 193:return function(t){var r=e.getEmitFlags(t);Ot("{"),1&r?Jt():(Ut(),Kt()),t.readonlyToken&&(Se(t.readonlyToken),143!==t.readonlyToken.kind&&Mt("readonly"),Jt()),Ot("["),Ne(3,t.typeParameter),t.nameType&&(Jt(),Mt("as"),Jt(),Se(t.nameType)),Ot("]"),t.questionToken&&(Se(t.questionToken),57!==t.questionToken.kind&&Ot("?")),Ot(":"),Jt(),Se(t.type),Lt(),1&r?Jt():(Ut(),zt()),Ot("}")}(r);case 194:return function(e){Ce(e.literal)}(r);case 195:return function(e){Se(e.dotDotDotToken),Se(e.name),Se(e.questionToken),He(58,e.name.end,Ot,e),Jt(),Se(e.type)}(r);case 196:return function(e){Se(e.head),Nt(e,e.templateSpans,262144)}(r);case 197:return function(e){Se(e.type),Se(e.literal)}(r);case 198:return function(e){e.isTypeOf&&(Mt("typeof"),Jt()),Mt("import"),Ot("("),Se(e.argument),Ot(")"),e.qualifier&&(Ot("."),Se(e.qualifier)),Et(e,e.typeArguments)}(r);case 199:return function(e){Ot("{"),Nt(e,e.elements,525136),Ot("}")}(r);case 200:return function(e){Ot("["),Nt(e,e.elements,524880),Ot("]")}(r);case 201:return function(e){Se(e.dotDotDotToken),e.propertyName&&(Se(e.propertyName),Ot(":"),Jt()),Se(e.name),vt(e.initializer,e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)}(r);case 231:return function(e){Ce(e.expression),Se(e.literal)}(r);case 232:return void Lt();case 233:return function(e){ze(e,!e.multiLine&&or(e))}(r);case 235:return function(e){yt(e,e.modifiers),Se(e.declarationList),Lt()}(r);case 234:return Ge(!1);case 236:return function(t){Ce(t.expression,ne.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(i)||e.nodeIsSynthesized(t.expression))&&Lt()}(r);case 237:return function(e){var t=He(99,e.pos,Mt,e);Jt(),He(20,t,Ot,e),Ce(e.expression),He(21,e.expression.end,Ot,e),Dt(e,e.thenStatement),e.elseStatement&&(Ht(e,e.thenStatement,e.elseStatement),He(91,e.thenStatement.end,Mt,e),237===e.elseStatement.kind?(Jt(),Se(e.elseStatement)):Dt(e,e.elseStatement))}(r);case 238:return function(t){He(90,t.pos,Mt,t),Dt(t,t.statement),e.isBlock(t.statement)&&!j?Jt():Ht(t,t.statement,t.expression),We(t,t.statement.end),Lt()}(r);case 239:return function(e){We(e,e.pos),Dt(e,e.statement)}(r);case 240:return function(e){var t=He(97,e.pos,Mt,e);Jt();var r=He(20,t,Ot,e);qe(e.initializer),r=He(26,e.initializer?e.initializer.end:r,Ot,e),xt(e.condition),r=He(26,e.condition?e.condition.end:r,Ot,e),xt(e.incrementor),He(21,e.incrementor?e.incrementor.end:r,Ot,e),Dt(e,e.statement)}(r);case 241:return function(e){var t=He(97,e.pos,Mt,e);Jt(),He(20,t,Ot,e),qe(e.initializer),Jt(),He(101,e.initializer.end,Mt,e),Jt(),Ce(e.expression),He(21,e.expression.end,Ot,e),Dt(e,e.statement)}(r);case 242:return function(e){var t=He(97,e.pos,Mt,e);Jt(),function(e){e&&(Se(e),Jt())}(e.awaitModifier),He(20,t,Ot,e),qe(e.initializer),Jt(),He(158,e.initializer.end,Mt,e),Jt(),Ce(e.expression),He(21,e.expression.end,Ot,e),Dt(e,e.statement)}(r);case 243:return function(e){He(86,e.pos,Mt,e),bt(e.label),Lt()}(r);case 244:return function(e){He(81,e.pos,Mt,e),bt(e.label),Lt()}(r);case 245:return function(e){He(105,e.pos,Mt,e),xt(e.expression),Lt()}(r);case 246:return function(e){var t=He(116,e.pos,Mt,e);Jt(),He(20,t,Ot,e),Ce(e.expression),He(21,e.expression.end,Ot,e),Dt(e,e.statement)}(r);case 247:return function(e){var t=He(107,e.pos,Mt,e);Jt(),He(20,t,Ot,e),Ce(e.expression),He(21,e.expression.end,Ot,e),Jt(),Se(e.caseBlock)}(r);case 248:return function(e){Se(e.label),He(58,e.label.end,Ot,e),Jt(),Se(e.statement)}(r);case 249:return function(e){He(109,e.pos,Mt,e),xt(e.expression),Lt()}(r);case 250:return function(e){He(111,e.pos,Mt,e),Jt(),Se(e.tryBlock),e.catchClause&&(Ht(e,e.tryBlock,e.catchClause),Se(e.catchClause)),e.finallyBlock&&(Ht(e,e.catchClause||e.tryBlock,e.finallyBlock),He(96,(e.catchClause||e.tryBlock).end,Mt,e),Jt(),Se(e.finallyBlock))}(r);case 251:return function(e){Gt(87,e.pos,Mt),Lt()}(r);case 252:return function(e){Se(e.name),Se(e.exclamationToken),ht(e.type),vt(e.initializer,e.type?e.type.end:e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)}(r);case 253:return function(t){Mt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),Jt(),Nt(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){St(e,e.decorators),yt(e,e.modifiers),Mt("interface"),Jt(),Se(e.name),Ct(e,e.typeParameters),Nt(e,e.heritageClauses,512),Jt(),Ot("{"),Nt(e,e.members,129),Ot("}")}(r);case 257:return function(e){St(e,e.decorators),yt(e,e.modifiers),Mt("type"),Jt(),Se(e.name),Ct(e,e.typeParameters),Jt(),Ot("="),Jt(),Se(e.type),Lt()}(r);case 258:return function(e){yt(e,e.modifiers),Mt("enum"),Jt(),Se(e.name),Jt(),Ot("{"),Nt(e,e.members,145),Ot("}")}(r);case 259:return function(t){yt(t,t.modifiers),1024&~t.flags&&(Mt(16&t.flags?"namespace":"module"),Jt()),Se(t.name);var r=t.body;if(!r)return Lt();for(;r&&e.isModuleDeclaration(r);)Ot("."),Se(r.name),r=r.body;Jt(),Se(r)}(r);case 260:return function(t){ur(t),e.forEach(t.statements,pr),ze(t,or(t)),_r(t)}(r);case 261:return function(e){He(18,e.pos,Ot,e),Nt(e,e.clauses,129),He(19,e.clauses.end,Ot,e,!0)}(r);case 262:return function(e){var t=He(93,e.pos,Mt,e);Jt(),t=He(127,t,Mt,e),Jt(),t=He(141,t,Mt,e),Jt(),Se(e.name),Lt()}(r);case 263:return function(e){yt(e,e.modifiers),He(100,e.modifiers?e.modifiers.end:e.pos,Mt,e),Jt(),e.isTypeOnly&&(He(150,e.pos,Mt,e),Jt()),Se(e.name),Jt(),He(63,e.name.end,Ot,e),Jt(),function(e){79===e.kind?Ce(e):Se(e)}(e.moduleReference),Lt()}(r);case 264:return function(e){yt(e,e.modifiers),He(100,e.modifiers?e.modifiers.end:e.pos,Mt,e),Jt(),e.importClause&&(Se(e.importClause),Jt(),He(154,e.importClause.end,Mt,e),Jt()),Ce(e.moduleSpecifier),Lt()}(r);case 265:return function(e){e.isTypeOnly&&(He(150,e.pos,Mt,e),Jt()),Se(e.name),e.name&&e.namedBindings&&(He(27,e.name.end,Ot,e),Jt()),Se(e.namedBindings)}(r);case 266:return function(e){var t=He(41,e.pos,Ot,e);Jt(),He(127,t,Mt,e),Jt(),Se(e.name)}(r);case 272:return function(e){var t=He(41,e.pos,Ot,e);Jt(),He(127,t,Mt,e),Jt(),Se(e.name)}(r);case 267:case 271:return function(e){!function(e){Ot("{"),Nt(e,e.elements,525136),Ot("}")}(e)}(r);case 268:case 273:return function(e){!function(e){e.propertyName&&(Se(e.propertyName),Jt(),He(127,e.propertyName.end,Mt,e),Jt()),Se(e.name)}(e)}(r);case 269:return function(e){var t=He(93,e.pos,Mt,e);Jt(),e.isExportEquals?He(63,t,Rt,e):He(88,t,Mt,e),Jt(),Ce(e.expression,e.isExportEquals?ne.getParenthesizeRightSideOfBinaryForOperator(63):ne.parenthesizeExpressionOfExportDefault),Lt()}(r);case 270:return function(e){var t=He(93,e.pos,Mt,e);Jt(),e.isTypeOnly&&(t=He(150,t,Mt,e),Jt()),e.exportClause?Se(e.exportClause):t=He(41,t,Ot,e),e.moduleSpecifier&&(Jt(),He(154,e.exportClause?e.exportClause.end:t,Mt,e),Jt(),Ce(e.moduleSpecifier)),Lt()}(r);case 274:case 314:case 325:case 326:case 328:case 329:case 330:case 331:case 332:case 344:case 348:case 347:return;case 275:return function(e){Mt("require"),Ot("("),Ce(e.expression),Ot(")")}(r);case 11:return function(e){p.writeLiteral(e.text)}(r);case 278:case 281:return function(t){if(Ot("<"),e.isJsxOpeningElement(t)){var r=rr(t.tagName,t);rt(t.tagName),Et(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&Jt(),Se(t.attributes),nr(t.attributes,t),Qt(r)}Ot(">")}(r);case 279:case 282:return function(t){Ot("")}(r);case 283:return function(e){Se(e.name),function(e,t,r,n){r&&(t("="),n(r))}(0,Ot,e.initializer,Te)}(r);case 284:return function(e){Nt(e,e.properties,262656)}(r);case 285:return function(e){Ot("{..."),Ce(e.expression),Ot("}")}(r);case 286:return function(t){var r,n;if(t.expression||!$&&!e.nodeIsSynthesized(t)&&(function(t){var r=!1;return e.forEachTrailingCommentRange((null==i?void 0:i.text)||"",t+1,(function(){return r=!0})),r}(n=t.pos)||function(t){var r=!1;return e.forEachLeadingCommentRange((null==i?void 0:i.text)||"",t+1,(function(){return r=!0})),r}(n))){var a=i&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(i,t.pos).line!==e.getLineAndCharacterOfPosition(i,t.end).line;a&&p.increaseIndent();var o=He(18,t.pos,Ot,t);Se(t.dotDotDotToken),Ce(t.expression),He(19,(null===(r=t.expression)||void 0===r?void 0:r.end)||o,Ot,t),a&&p.decreaseIndent()}}(r);case 287:return function(e){He(82,e.pos,Mt,e),Jt(),Ce(e.expression,ne.parenthesizeExpressionForDisallowedComma),nt(e,e.statements,e.expression.end)}(r);case 288:return function(e){var t=He(88,e.pos,Mt,e);nt(e,e.statements,t)}(r);case 289:return function(e){Jt(),qt(e.token,Mt),Jt(),Nt(e,e.types,528)}(r);case 290:return function(e){var t=He(83,e.pos,Mt,e);Jt(),e.variableDeclaration&&(He(20,t,Ot,e),Se(e.variableDeclaration),He(21,e.variableDeclaration.end,Ot,e),Jt()),Se(e.block)}(r);case 291:return function(t){Se(t.name),Ot(":"),Jt();var r=t.initializer;0==(512&e.getEmitFlags(r))&&Rr(e.getCommentRange(r).pos),Ce(r,ne.parenthesizeExpressionForDisallowedComma)}(r);case 292:return function(e){Se(e.name),e.objectAssignmentInitializer&&(Jt(),Ot("="),Jt(),Ce(e.objectAssignmentInitializer,ne.parenthesizeExpressionForDisallowedComma))}(r);case 293:return function(e){e.expression&&(He(25,e.pos,Ot,e),Ce(e.expression,ne.parenthesizeExpressionForDisallowedComma))}(r);case 294:return function(e){Se(e.name),vt(e.initializer,e.name.end,e,ne.parenthesizeExpressionForDisallowedComma)}(r);case 295:return Ve(r);case 302:case 296:return function(e){for(var t=0,r=e.texts;t=1&&!e.isJsonSourceFile(i)?64:0;Nt(t,t.properties,526226|a|n),r&&zt()}(r);case 204:return function(t){Ce(t.expression,ne.parenthesizeLeftSideOfAccess);var r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),n=ar(t,t.expression,r),i=ar(t,r,t.name);Xt(n,!1),28===r.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=lr(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()||Ot("."),t.questionDotToken?Se(r):He(r.kind,t.expression.end,Ot,t),Xt(i,!1),Se(t.name),Qt(n,i)}(r);case 205:return function(e){Ce(e.expression,ne.parenthesizeLeftSideOfAccess),Se(e.questionDotToken),He(22,e.expression.end,Ot,e),Ce(e.argumentExpression),He(23,e.argumentExpression.end,Ot,e)}(r);case 206:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Ot("("),Pt("0"),Ot(","),Jt()),Ce(t.expression,ne.parenthesizeLeftSideOfAccess),r&&Ot(")"),Se(t.questionDotToken),Et(t,t.typeArguments),wt(t,t.arguments,2576,ne.parenthesizeExpressionForDisallowedComma)}(r);case 207:return function(e){He(103,e.pos,Mt,e),Jt(),Ce(e.expression,ne.parenthesizeExpressionOfNew),Et(e,e.typeArguments),wt(e,e.arguments,18960,ne.parenthesizeExpressionForDisallowedComma)}(r);case 208:return function(t){var r=536870912&e.getEmitFlags(t);r&&(Ot("("),Pt("0"),Ot(","),Jt()),Ce(t.tag,ne.parenthesizeLeftSideOfAccess),r&&Ot(")"),Et(t,t.typeArguments),Jt(),Ce(t.template)}(r);case 209:return function(e){Ot("<"),Se(e.type),Ot(">"),Ce(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 210:return function(e){var t=He(20,e.pos,Ot,e),r=rr(e.expression,e);Ce(e.expression,void 0),nr(e.expression,e),Qt(r),He(21,e.expression?e.expression.end:t,Ot,e)}(r);case 211:return function(e){gr(e.name),Ye(e)}(r);case 212:return function(e){St(e,e.decorators),yt(e,e.modifiers),Xe(e,Ke)}(r);case 213:return function(e){He(89,e.pos,Mt,e),Jt(),Ce(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 214:return function(e){He(112,e.pos,Mt,e),Jt(),Ce(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 215:return function(e){He(114,e.pos,Mt,e),Jt(),Ce(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 216:return function(e){He(131,e.pos,Mt,e),Jt(),Ce(e.expression,ne.parenthesizeOperandOfPrefixUnary)}(r);case 217:return function(e){qt(e.operator,Rt),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)&&Jt(),Ce(e.operand,ne.parenthesizeOperandOfPrefixUnary)}(r);case 218:return function(e){Ce(e.operand,ne.parenthesizeOperandOfPostfixUnary),qt(e.operator,Rt)}(r);case 219:return ie(r);case 220:return function(e){var t=ar(e,e.condition,e.questionToken),r=ar(e,e.questionToken,e.whenTrue),n=ar(e,e.whenTrue,e.colonToken),i=ar(e,e.colonToken,e.whenFalse);Ce(e.condition,ne.parenthesizeConditionOfConditionalExpression),Xt(t,!0),Se(e.questionToken),Xt(r,!0),Ce(e.whenTrue,ne.parenthesizeBranchOfConditionalExpression),Qt(t,r),Xt(n,!0),Se(e.colonToken),Xt(i,!0),Ce(e.whenFalse,ne.parenthesizeBranchOfConditionalExpression),Qt(n,i)}(r);case 221:return function(e){Se(e.head),Nt(e,e.templateSpans,262144)}(r);case 222:return function(e){He(125,e.pos,Mt,e),Se(e.asteriskToken),xt(e.expression,ne.parenthesizeExpressionForDisallowedComma)}(r);case 223:return function(e){He(25,e.pos,Ot,e),Ce(e.expression,ne.parenthesizeExpressionForDisallowedComma)}(r);case 224:return function(e){gr(e.name),tt(e)}(r);case 225:case 344:case 347:case 348:return;case 227:return function(e){Ce(e.expression,void 0),e.type&&(Jt(),Mt("as"),Jt(),Se(e.type))}(r);case 228:return function(e){Ce(e.expression,ne.parenthesizeLeftSideOfAccess),Rt("!")}(r);case 229:return function(e){Gt(e.keywordToken,e.pos,Ot),Ot("."),Se(e.name)}(r);case 230:return e.Debug.fail("SyntheticExpression should never be printed.");case 276:return function(e){Se(e.openingElement),Nt(e,e.children,262144),Se(e.closingElement)}(r);case 277:return function(e){Ot("<"),rt(e.tagName),Et(e,e.typeArguments),Jt(),Se(e.attributes),Ot("/>")}(r);case 280:return function(e){Se(e.openingFragment),Nt(e,e.children,262144),Se(e.closingFragment)}(r);case 343:return e.Debug.fail("SyntaxList should not be printed");case 345:return function(e){Ce(e.expression)}(r);case 346:return function(e){wt(e,e.elements,528,void 0)}(r);case 349:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(r.kind)?Wt(r,Mt):e.isTokenKind(r.kind)?Wt(r,Ot):void e.Debug.fail("Unhandled SyntaxKind: "+e.Debug.formatSyntaxKind(r.kind)+".")}function Re(t,r){var n=Ie(1,t,r);e.Debug.assertIsDefined(x),r=x,x=void 0,n(t,r)}function Be(r){var n=!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)?$e:et;Nr?Nr(t,t.statements,r):r(t),zt(),Gt(19,t.statements.end,Ot,t),null==w||w(t)}function $e(e){et(e,!0)}function et(e,t){var r=dt(e.statements),n=p.getTextPos();Be(e),0===r&&n===p.getTextPos()&&t?(zt(),Nt(e,e.statements,768),Kt()):Nt(e,e.statements,1,void 0,r)}function tt(t){e.forEach(t.members,fr),St(t,t.decorators),yt(t,t.modifiers),Mt("class"),t.name&&(Jt(),Ee(t.name));var r=65536&e.getEmitFlags(t);r&&Kt(),Ct(t,t.typeParameters),Nt(t,t.heritageClauses,0),Jt(),Ot("{"),Nt(t,t.members,129),Ot("}"),r&&zt()}function rt(e){79===e.kind?Ce(e):Se(e)}function nt(t,r,n){var a=163969;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],i))?(Gt(58,n,Ot,t),Jt(),a&=-130):He(58,n,Ot,t),Nt(t,r,a)}function it(t){Nt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function at(t){t.typeParameters&&Nt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&Nt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(Ut(),Jt(),Ot("*"),Jt(),Se(t.type))}function ot(e){Ot("@"),Se(e)}function st(t){var r=e.getTextOfJSDocComment(t);r&&(Jt(),J(r))}function ct(e){e&&(Jt(),Ot("{"),Se(e.type),Ot("}"))}function lt(t){Ut();var r=t.statements;!Nr||0!==r.length&&e.isPrologueDirective(r[0])&&!e.nodeIsSynthesized(r[0])?_t(t):Nr(t,r,_t)}function ut(e,t,r,n){if(e){var a=p.getTextPos();jt('/// '),V&&V.sections.push({pos:a,end:p.getTextPos(),kind:"no-default-lib"}),Ut()}if(i&&i.moduleName&&(jt('/// '),Ut()),i&&i.amdDependencies)for(var o=0,s=i.amdDependencies;o'):jt('/// '),Ut()}for(var l=0,u=t;l'),V&&V.sections.push({pos:a,end:p.getTextPos(),kind:"reference",data:_.fileName}),Ut()}for(var d=0,f=r;d'),V&&V.sections.push({pos:a,end:p.getTextPos(),kind:"type",data:_.fileName}),Ut();for(var g=0,m=n;g'),V&&V.sections.push({pos:a,end:p.getTextPos(),kind:"lib",data:_.fileName}),Ut()}function _t(t){var r=t.statements;ur(t),e.forEach(t.statements,pr),Be(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&ut(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),Nt(t,r,1,void 0,-1===n?r.length:n),_r(t)}function dt(t,r,n,i){for(var a=!!r,o=0;o=a.length||0===l;if(u&&32768&o)return F&&F(a),void(P&&P(a));if(15360&o&&(Ot(function(e){return n[15360&e][0]}(o)),u&&a&&Rr(a.pos,!0)),F&&F(a),u)1&o&&(!j||r&&!e.rangeIsOnSingleLine(r,i))?Ut():256&o&&!(524288&o)&&Jt();else{e.Debug.type(a);var _=0==(262144&o),p=_,f=Zt(r,a,o);f?(Ut(f),p=!1):256&o&&Jt(),128&o&&Kt();for(var g=void 0,m=void 0,y=!1,h=0;h0?(0==(131&o)&&(Kt(),y=!0),Ut(b),p=!1):g&&512&o&&Jt()}m=_e(v),p?Rr&&Rr(e.getCommentRange(v).pos):p=_,d=v.pos,1===t.length?t(v):t(v,s),y&&(zt(),y=!1),g=v}var x=g?e.getEmitFlags(g):0,D=$||!!(1024&x),S=(null==a?void 0:a.hasTrailingComma)&&64&o&&16&o;S&&(g&&!D?He(27,g.end,Ot,g):Ot(",")),g&&(r?r.end:-1)!==g.end&&60&o&&!D&&Lr(S&&(null==a?void 0:a.end)?a.end:g.end),128&o&&zt(),de(m);var E=er(r,a,o);E?Ut(E):2097408&o&&Jt()}P&&P(a),15360&o&&(u&&a&&Lr(a.end),Ot(function(e){return n[15360&e][1]}(o)))}}function Pt(e){p.writeLiteral(e)}function It(e,t){p.writeSymbol(e,t)}function Ot(e){p.writePunctuation(e)}function Lt(){p.writeTrailingSemicolon(";")}function Mt(e){p.writeKeyword(e)}function Rt(e){p.writeOperator(e)}function Bt(e){p.writeParameter(e)}function jt(e){p.writeComment(e)}function Jt(){p.writeSpace(" ")}function Vt(e){p.writeProperty(e)}function Ut(e){void 0===e&&(e=1);for(var t=0;t0)}function Kt(){p.increaseIndent()}function zt(){p.decreaseIndent()}function Gt(t,r,n,i){return W?qt(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],l=c&&c.source||y;return i=qr(l,c?c.pos:i),0==(128&s)&&i>=0&&Yr(l,i),i=a(r,n,i),c&&(i=c.end),0==(256&s)&&i>=0&&Yr(l,i),i}(i,t,n,r,qt)}function Wt(t,r){I&&I(t),r(e.tokenToString(t.kind)),O&&O(t)}function qt(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function Ht(t,r,n){if(1&e.getEmitFlags(t))Jt();else if(j){var i=ar(t,r,n);i?Ut(i):Jt()}else Ut()}function Yt(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)?tr((function(n){return e.getLinesBetweenRangeEndAndRangeStart(t,r,i,n)})):!j&&(a=t,o=r,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(t,r,i)?0:1:65536&n?1:0;if(ir(t,n)||ir(r,n))return 1}else if(e.getStartsOnNewLine(r))return 1;var a,o;return 1&n?1:0}function er(t,r,n){if(2&n||j){if(65536&n)return 1;var a=e.lastOrUndefined(r);if(void 0===a)return!t||e.rangeIsOnSingleLine(t,i)?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 tr((function(r){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,i,r)}))}return e.rangeEndPositionsAreOnSameLine(t,a,i)?0:1}if(ir(a,n))return 1}return 1&n&&!(131072&n)?1:0}function tr(t){e.Debug.assert(!!j);var r=t(!0);return 0===r?t(!1):r}function rr(e,t){var r=j&&Zt(t,[e],0);return r&&Xt(r,!1),!!r}function nr(e,t){var r=j&&er(t,[e],0);r&&Ut(r)}function ir(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function ar(t,r,n){return 131072&e.getEmitFlags(t)?0:(t=sr(t),r=sr(r),n=sr(n),e.getStartsOnNewLine(n)?1:e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)?0:j?tr((function(t){return e.getLinesBetweenRangeEndAndRangeStart(r,n,i,t)})):e.rangeEndIsOnSameLineAsRangeStart(r,n,i)?0:1)}function or(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,i)}function sr(t){for(;210===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function cr(t,r){return e.isGeneratedIdentifier(t)?mr(t):(e.isIdentifier(t)||e.isPrivateIdentifier(t))&&(e.nodeIsSynthesized(t)||!t.parent||!i||t.parent&&i&&e.getSourceFileOfNode(t)!==e.getOriginalNode(i))?e.idText(t):10===t.kind&&t.textSourceNode?cr(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(i,t,r):t.text}function lr(r,n,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:cr(o);return a?'"'+e.escapeJsxAttributeString(s)+'"':n||16777216&e.getEmitFlags(r)?'"'+e.escapeString(s)+'"':'"'+e.escapeNonAsciiString(s)+'"'}return lr(o,n,a)}var c=(n?1:0)|(a?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(r,i,c)}function ur(t){t&&524288&e.getEmitFlags(t)||(c.push(l),l=0,u.push(_))}function _r(t){t&&524288&e.getEmitFlags(t)||(l=c.pop(),_=u.pop())}function dr(t){_&&_!==e.lastOrUndefined(u)||(_=new e.Set),_.add(t)}function pr(t){if(t)switch(t.kind){case 233:case 287:case 288:e.forEach(t.statements,pr);break;case 248:case 246:case 238:case 239:pr(t.statement);break;case 237:pr(t.thenStatement),pr(t.elseStatement);break;case 240:case 242:case 241:pr(t.initializer),pr(t.statement);break;case 247:pr(t.caseBlock);break;case 261:e.forEach(t.clauses,pr);break;case 250:pr(t.tryBlock),pr(t.catchClause),pr(t.finallyBlock);break;case 290:pr(t.variableDeclaration),pr(t.block);break;case 235:pr(t.declarationList);break;case 253:e.forEach(t.declarations,pr);break;case 252:case 162:case 201:case 255:case 266:case 272:gr(t.name);break;case 254:gr(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,pr),pr(t.body));break;case 199:case 200:case 267:e.forEach(t.elements,pr);break;case 264:pr(t.importClause);break;case 265:gr(t.name),pr(t.namedBindings);break;case 268:gr(t.propertyName||t.name)}}function fr(e){if(e)switch(e.kind){case 291:case 292:case 165:case 167:case 170:case 171:gr(e.name)}}function gr(t){t&&(e.isGeneratedIdentifier(t)?mr(t):e.isBindingPattern(t)&&pr(t))}function mr(t){if(4==(7&t.autoGenerateFlags))return yr(function(t){for(var r=t.autoGenerateId,n=t,i=n.original;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 br(0,!!(8&t.autoGenerateFlags));case 2:return br(268435456,!!(8&t.autoGenerateFlags));case 3:return xr(e.idText(t),32&t.autoGenerateFlags?vr:hr,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(t))}function yr(t,r){var n=e.getNodeId(t);return a[n]||(a[n]=function(t,r){switch(t.kind){case 79:return xr(cr(t),hr,!!(16&r),!!(8&r));case 259:case 258:return function(t){var r=cr(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:xr(r)}(t);case 264:case 270:return function(t){var r=e.getExternalModuleName(t);return xr(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")}(t);case 254:case 255:case 269:return xr("default");case 224:return xr("class");case 167:case 170:case 171:return function(t){return e.isIdentifier(t.name)?yr(t.name):br(0)}(t);case 160:return br(0,!0);default:return br(0)}}(t,r))}function hr(e){return vr(e)&&!s.has(e)&&!(_&&_.has(e))}function vr(t){return!i||e.isFileLevelUniqueName(i,t,S)}function br(e,t){if(e&&!(l&e)&&hr(r=268435456===e?"_i":"_n"))return l|=e,t&&dr(r),r;for(;;){var r,n=268435455&l;if(l++,8!==n&&13!==n&&hr(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&dr(r),r}}function xr(e,t,r,n){if(void 0===t&&(t=hr),r&&t(e))return n?dr(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?dr(a):s.add(a),a;i++}}function Dr(e){return xr(e,vr,!0)}function Sr(e,t){var r=Ie(2,e,t),n=Y,i=X,a=Q;Er(t),r(e,t),Cr(t,n,i,a)}function Er(t){var r=e.getEmitFlags(t),n=e.getCommentRange(t);!function(t,r,n,i){te(),Z=!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&&(Q=i))),e.forEach(e.getSyntheticLeadingComments(t),Tr),re()}(t,r,n.pos,n.end),2048&r&&($=!0)}function Cr(t,r,n,i){var a=e.getEmitFlags(t),o=e.getCommentRange(t);2048&a&&($=!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),kr),(n>0||i>0)&&n!==i&&(Y=a,X=o,Q=s,c||344===t.kind||function(e){Vr(e,Mr)}(i)),re()}(t,a,o.pos,o.end,r,n,i)}function Tr(e){(e.hasLeadingNewline||2===e.kind)&&p.writeLine(),Ar(e),e.hasTrailingNewLine||2===e.kind?p.writeLine():p.writeSpace(" ")}function kr(e){p.isAtStartOfLine()||p.writeSpace(" "),Ar(e),e.hasTrailingNewLine&&p.writeLine()}function Ar(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,M)}function Nr(t,r,n){te();var a,o,s=r.pos,c=r.end,l=e.getEmitFlags(t),u=$||c<0||0!=(1024&l);s<0||0!=(512&l)||(a=r,(o=e.emitDetachedComments(i.text,De(),p,Ur,a,M,$))&&(b?b.push(o):b=[o])),re(),2048&l&&!$?($=!0,n(t),$=!1):n(t),te(),u||(wr(r.end,!0),Z&&!p.isAtStartOfLine()&&p.writeLine()),re()}function wr(e,t){Z=!1,t?0===e&&(null==i?void 0:i.isDeclarationFile)?Jr(e,Pr):Jr(e,Or):0===e&&Jr(e,Fr)}function Fr(e,t,r,n,i){Kr(e,t)&&Or(e,t,r,n,i)}function Pr(e,t,r,n,i){Kr(e,t)||Or(e,t,r,n,i)}function Ir(r,n){return!t.onlyPrintJsDocStyle||e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n)}function Or(t,r,n,a,o){Ir(i.text,t)&&(Z||(e.emitNewLineBeforeLeadingCommentOfPosition(De(),p,o,t),Z=!0),Hr(t),e.writeCommentRange(i.text,De(),p,t,r,M),Hr(r),a?p.writeLine():3===n&&p.writeSpace(" "))}function Lr(e){$||-1===e||wr(e,!0)}function Mr(t,r,n,a){Ir(i.text,t)&&(p.isAtStartOfLine()||p.writeSpace(" "),Hr(t),e.writeCommentRange(i.text,De(),p,t,r,M),Hr(r),a&&p.writeLine())}function Rr(e,t,r){$||(te(),Vr(e,t?Mr:r?Br:jr),re())}function Br(t,r,n){Hr(t),e.writeCommentRange(i.text,De(),p,t,r,M),Hr(r),2===n&&p.writeLine()}function jr(t,r,n,a){Hr(t),e.writeCommentRange(i.text,De(),p,t,r,M),Hr(r),a?p.writeLine():p.writeSpace(" ")}function Jr(t,r){!i||-1!==Y&&t===Y||(function(t){return void 0!==b&&e.last(b).nodePos===t}(t)?function(t){var r=e.last(b).detachedCommentEndPos;b.length-1?b.pop():b=void 0,e.forEachLeadingCommentRange(i.text,r,t,r)}(r):e.forEachLeadingCommentRange(i.text,t,r,t))}function Vr(t,r){i&&(-1===X||t!==X&&t!==Q)&&e.forEachTrailingCommentRange(i.text,t,r)}function Ur(t,r,n,a,o,s){Ir(i.text,a)&&(Hr(a),e.writeCommentRange(t,r,n,a,o,s),Hr(o))}function Kr(t,r){return e.isRecognizedTripleSlashComment(i.text,t,r)}function zr(e,t){var r=Ie(3,e,t);Gr(t),r(e,t),Wr(t)}function Gr(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&&Yr(n.source||y,qr(a,n.pos)),64&r&&(W=!0)}}function Wr(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&&Yr(n.source||y,n.end))}function qr(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function Hr(t){if(!(W||e.positionIsSynthesized(t)||Qr(y))){var r=e.getLineAndCharacterOfPosition(y,t),n=r.line,i=r.character;m.addMapping(p.getLine(),p.getColumn(),q,n,i,void 0)}}function Yr(e,t){if(e!==y){var r=y,n=q;Xr(e),Hr(t),function(e,t){y=e,q=t}(r,n)}else Hr(t)}function Xr(e){W||(y=e,e!==h?Qr(e)||(q=m.addSource(e.fileName),t.inlineSources&&m.setSourceContent(q,e.text),h=e,H=q):q=H)}function Qr(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=u,e.getOutputDeclarationFileName=d,e.getCommonSourceDirectory=y,e.getCommonSourceDirectoryOfConfig=h,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 h(t,r)})),c=0,l=t.fileNames;c=4,h=(f+1+"").length;y&&(h=Math.max("...".length,h));for(var v="",b=u;b<=f;b++){v+=o.getNewLine(),y&&u+11}))&&Xt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(L.useDefineForClassFields&&0===d&&Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),L.checkJs&&!e.getAllowJSCompilerOption(L)&&ie.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),L.emitDeclarationOnly&&(e.getEmitDeclarations(L)||Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),L.noEmit&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),L.emitDecoratorMetadata&&!L.experimentalDecorators&&Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),L.jsxFactory?(L.reactNamespace&&Xt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==L.jsx&&5!==L.jsx||Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+L.jsx)),e.parseIsolatedEntityName(L.jsxFactory,d)||Qt("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,L.jsxFactory)):L.reactNamespace&&!e.isIdentifierText(L.reactNamespace,d)&&Qt("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,L.reactNamespace),L.jsxFragmentFactory&&(L.jsxFactory||Xt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==L.jsx&&5!==L.jsx||Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+L.jsx)),e.parseIsolatedEntityName(L.jsxFragmentFactory,d)||Qt("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,L.jsxFragmentFactory)),L.reactNamespace&&(4!==L.jsx&&5!==L.jsx||Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+L.jsx))),L.jsxImportSource&&2===L.jsx&&Xt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+L.jsx)),!L.noEmit&&!L.suppressOutputPathCheck){var v=He(),b=new e.Set;e.forEachEmittedFile(v,(function(e){L.emitDeclarationOnly||x(e.jsFilePath,b),x(e.declarationFilePath,b)}))}function x(t,r){if(t){var n=Ge(t);if(xe.has(n)){var i=void 0;L.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=$.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=Ue(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:i}),e.performance.mark("beforeResolveModule");var o=Q(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 Ve(t,r){if(!t.length)return[];var n=e.isString(r)?r:e.getNormalizedAbsolutePath(r.originalFileName,ae),i=e.isString(r)?void 0:Ue(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:n}),e.performance.mark("beforeResolveTypeReference");var a=Z(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 Ue(t){var r=wt(t.originalFileName);if(r||!e.fileExtensionIs(t.originalFileName,".d.ts"))return r;var n=Ke(t.originalFileName,t.path);if(n)return n;if($.realpath&&L.preserveSymlinks&&e.stringContains(t.originalFileName,e.nodeModulesPathPart)){var i=$.realpath(t.originalFileName),a=Ge(i);return a===t.path?void 0:Ke(i,a)}}function Ke(t,r){var n=Pt(t);return e.isString(n)?wt(n):n?Ft((function(t){var n=e.outFile(t.commandLine.options);if(n)return Ge(n)===r?t:void 0})):void 0}function ze(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 Ge(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(L,(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=$.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)}));return{diagnostics:a,directives:i}}function _t(e,t){return pt(e,t,U,dt)}function dt(t,r){return ot((function(){var n=Ze().getEmitResolver(t,r);return e.getDeclarationDiagnostics(He(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){xt(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 ht(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 vt(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((L.isolatedModules||o)&&!t.isDeclarationFile){L.importHelpers&&(r=[ht(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(L,t),L);s&&(r||(r=[])).push(ht(s,t))}for(var c=0,l=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}(x,v,t,r,Ge(t),_);return ve.add(x.path,t),Tt(D,r,u),Ct(D,a),he.set(r,o.name),p.push(D),D}v&&(ye.set(b,v),he.set(r,o.name))}if(Tt(v,r,u),v){if(q.set(r,G>0),v.fileName=t,v.path=r,v.resolvedPath=Ge(t),v.originalFileName=_,Ct(v,a),$.useCaseSensitiveFileNames()){var S=e.toFileNameLowerCase(r),E=De.get(S);E?St(t,E,a):De.set(S,v)}te=te||v.hasNoDefaultLib&&!i,L.noResolve||(Lt(v,n),Mt(v)),L.noLib||Bt(v),Jt(v),n?d.push(v):p.push(v)}return v}(t,r,n,i,a,o);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function Ct(e,t){e&&J.add(e.path,t)}function Tt(e,t,r){r?(xe.set(r,e),xe.set(t,e||!1)):xe.set(t,e)}function kt(e){var t=At(e);return t&&Nt(t,e)}function At(t){if(pe&&pe.length&&!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json"))return wt(t)}function Nt(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!$.useCaseSensitiveFileNames())}function wt(t){void 0===ge&&(ge=new e.Map,Ft((function(e){Ge(L.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(t){return ge.set(Ge(t),e.sourceFile.path)}))})));var r=ge.get(Ge(t));return r&&Ot(r)}function Ft(t){return e.forEachResolvedProjectReference(pe,t)}function Pt(t){if(e.isDeclarationFileName(t))return void 0===me&&(me=new e.Map,Ft((function(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");me.set(Ge(n),!0)}else{var i=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!$.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,!$.useCaseSensitiveFileNames(),i);me.set(Ge(n),r)}}))}}))),me.get(Ge(t))}function It(e){return Se&&!!wt(e)}function Ot(e){if(fe)return fe.get(e)||void 0}function Lt(r,n){e.forEach(r.referencedFiles,(function(i,a){xt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:r.path,index:a})}))}function Mt(t){var r=e.map(t.typeReferenceDirectives,(function(t){return e.toFileNameLowerCase(t.fileName)}));if(r)for(var n=Ve(r,t),i=0;iz,p=_&&!C(a,s)&&!a.noResolve&&of?e.createDiagnosticForNodeInSourceFile(p,g.elements[f],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(!L.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",L.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var b=e.forEachEntry(e.targetOptionDeclaration.type,(function(e,t){return e===L.target?t:void 0}));i=b?(o=b,(s=qt("target"))&&e.firstDefined(s,(function(t){return e.isStringLiteral(t.initializer)&&t.initializer.text===o?t.initializer:void 0}))):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}return i&&e.createDiagnosticForNodeInSourceFile(L.configFile,i,a)}}(t))),t===r&&(r=void 0)}}function Kt(e,t,r,n){(P||(P=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function zt(e,t,r){ie.add(Ut(e,void 0,t,r))}function Gt(t,r,n,i,a,o){for(var s=!0,c=0,l=Ht();cr&&(ie.add(e.createDiagnosticForNodeInSourceFile(L.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=Ht();or?ie.add(e.createDiagnosticForNodeInSourceFile(t||L.configFile,o.elements[r],n,i,a)):ie.add(e.createCompilerDiagnostic(n,i,a))}function $t(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===H){H=!1;var t=e.getTsConfigObjectLiteralExpression(L.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r0)for(var a=t.getTypeChecker(),o=0,l=r.imports;o0)for(var d=0,p=r.referencedFiles;d1&&D(x)}return i;function D(t){if(t.declarations)for(var n=0,i=t.declarations;n0;){var _=u.pop();if(!l.has(_)){var d=r.getSourceFileByPath(_);l.set(_,d),d&&p(t,r,d,i,a,o,s)&&u.push.apply(u,g(t,d.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),(function(e){return e})))}r.createManyToManyPathMap=i,r.canReuseOldState=u,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=u(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 _=e.Debug.checkDefined(t.program).getSourceFileByPath(c);s.push.apply(s,e.BuilderState.getReferencedByPaths(t,_.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 u(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))&&u(t,e,d,n)}))}}(t,r,(function(t,r){return function(t,r,n,i){if(c(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)&&c(t,r.resolvedPath)}))}e.BuilderState.updateShapeSignature(t,e.Debug.checkDefined(t.program),r,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap)}}function c(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 u(e,t,r,n){var i;null===(i=e.referencedMap.getKeys(t))||void 0===i||i.forEach((function(t){return _(e,t,r,n)}))}function _(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 _(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))&&_(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 d(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 p(e,t,r){return d(e,r),{result:t,affected:r}}function f(e,t,r,n,i,a){return d(e,r,n,i,a),{result:t,affected:r}}function g(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);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o),e.filterSemanticDiagnostics(o,t.compilerOptions)}(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function m(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,l,u,_,d=e.createMultiMap(),p=[],f=e.createMultiMap(),g=!1,m=e.memoize((function(){return n.getCurrentDirectory()})),y=n.getCachedDirectoryStructureHost(),h=new e.Map,v=e.createCacheWithRedirects(),b=e.createCacheWithRedirects(),x=e.createModuleResolutionCache(m(),n.getCanonicalFileName,void 0,v,b),D=new e.Map,S=e.createCacheWithRedirects(),E=e.createTypeReferenceDirectiveResolutionCache(m(),n.getCanonicalFileName,void 0,x.getPackageJsonInfoCache(),S),C=[".ts",".tsx",".js",".jsx",".json"],T=new e.Map,k=new e.Map,A=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,m())),N=A&&n.toPath(A),w=void 0!==N?N.split(e.directorySeparator).length:0,F=new e.Map;return{getModuleResolutionCache:function(){return x},startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:M,finishCachingPerDirectoryResolution:function(){c=void 0,M(),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:h,perDirectoryCacheWithRedirects:v,loader:R,getResolutionWithResolvedFileName:P,shouldRetryResolution:function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)},reusedNames:n,logChanges:a})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){var r=h.get(n.toPath(t));return r&&r.get(e)},resolveTypeReferenceDirectives:function(e,t,r){return j({names:e,containingFile:t,redirectedReference:r,cache:D,perDirectoryCacheWithRedirects:S,loader:B,getResolutionWithResolvedFileName:I,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(t){if(e.fileExtensionIs(t,".json")){var r=n.getCurrentProgram();if(r){var i=r.getResolvedProjectReferenceByPath(t);i&&i.commandLine.fileNames.forEach((function(e){return Z(n.toPath(e))}))}}},removeResolutionsOfFile:Z,hasChangedAutomaticTypeDirectiveNames:function(){return g},invalidateResolutionOfFile:function(t){Z(t);var r=g;$(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)||L(e)}},isFileWithInvalidatedNonRelativeUnresolvedImports:L,updateTypeRootsWatch:function(){var t=n.getCompilationSettings();if(t.types)ne();else{var r=e.getEffectiveTypeRoots(t,{directoryExists:ae,getCurrentDirectory:m});r?e.mutateMap(F,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(),h.clear(),D.clear(),f.clear(),p.length=0,l=void 0,u=void 0,_=void 0,M(),g=!1}};function P(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 L(e){if(!c)return!1;var t=c.get(e);return!!t&&!!t.length}function M(){x.clear(),E.clear(),d.forEach(W),d.clear()}function R(t,r,i,a,o){var s,c=e.resolveModuleName(t,r,i,a,x,o);if(!n.getGlobalCache)return c;var l=n.getGlobalCache();if(!(void 0===l||e.isExternalModuleNameRelative(t)||c.resolvedModule&&e.extensionIsTS(c.resolvedModule.extension))){var u=e.loadModuleFromGlobalCache(e.Debug.checkDefined(n.globalCacheResolutionModuleName)(t),n.projectName,i,a,l,x),_=u.resolvedModule,d=u.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,E)}function j(t){var r,i,a,s=t.names,c=t.containingFile,l=t.redirectedReference,u=t.cache,_=t.perDirectoryCacheWithRedirects,d=t.loader,p=t.getResolutionWithResolvedFileName,f=t.shouldRetryResolution,g=t.reusedNames,m=t.logChanges,y=n.toPath(c),h=u.get(y)||u.set(y,new e.Map).get(y),v=e.getDirectoryPath(y),b=_.getOrCreateMapOfCacheRedirects(l),x=b.get(v);x||(x=new e.Map,b.set(v,x));for(var D=[],S=n.getCompilationSettings(),E=m&&L(y),C=n.getCurrentProgram(),T=C&&C.getResolvedProjectReferenceToRedirect(c),k=T?!l||l.sourceFile.path!==T.sourceFile.path:!!l,A=new e.Map,N=0,w=s;Nw+1?{dir:i.slice(0,w+1).join(e.directorySeparator),dirPath:n.slice(0,w+1).join(e.directorySeparator)}:{dir:A,dirPath:N,nonRecursive:!1}}return U(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,m())),e.getDirectoryPath(r))}function U(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!==N)for(;!O(n,N);){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 K(t){return e.fileExtensionIsOneOf(t,C)}function z(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)?G(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 G(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(u,g-1))),d===N?o=!0:Y(d)}}o&&Y(N)}}}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 Q(e,t,r){var n=e.get(t);n&&(n.forEach((function(e){return H(e,t,r)})),e.delete(t))}function Z(e){Q(h,e,P),Q(D,e,I)}function $(t,r){if(!t)return!1;for(var n=!1,i=0,a=t;i1&&r.sort(d),c.push.apply(c,r));var i=e.getDirectoryPath(t);if(i===t)return s=t,"break";s=t=i},u=e.getDirectoryPath(t);0!==a.size;){var _=l(u);if(u=s,"break"===_)break}if(a.size){var p=e.arrayFrom(a.values());p.length>1&&p.sort(d),c.push.apply(c,p)}return c}function y(t,r,n){for(var i in n)for(var a=0,o=n[i];a=u.length+_.length&&e.startsWith(r,u)&&e.endsWith(r,_)||!_&&r===e.removeTrailingDirectorySeparator(u)){var d=r.substr(u.length,r.length-_.length-u.length);return i.replace("*",d)}}else if(c===r||c===t)return i}}function h(t,r,n,i,a){var o=t.path,s=t.isRedirect,c=r.getCanonicalFileName,l=r.sourceDirectory;if(n.fileExists&&n.readFile){var u=function(t){var r,n=0,i=0,a=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={}));for(var o=0,s=0,c=0;s>=0;)switch(o=s,s=t.indexOf("/",o+1),c){case 0:t.indexOf(e.nodeModulesPathPart,o)===o&&(n=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===t.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=t.indexOf(e.nodeModulesPathPart,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}(o);if(u){var _=o,d=!1;if(!a)for(var p=u.packageRootIndex,f=void 0;;){var g=E(p),m=g.moduleFileToTry,h=g.packageRootPath;if(h){_=h,d=!0;break}if(f||(f=m),-1===(p=o.indexOf(e.directorySeparator,p+1))){_=C(f);break}}if(!s||d){var v=n.getGlobalTypingsCacheLocation&&n.getGlobalTypingsCacheLocation(),x=c(_.substring(0,u.topLevelNodeModulesIndex));if(e.startsWith(l,x)||v&&e.startsWith(c(v),x)){var D=_.substring(u.topLevelPackageNameIndex+1),S=e.getPackageNameFromTypesPackageName(D);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&S===D?void 0:S}}}}function E(t){var r=o.substring(0,t),a=e.combinePaths(r,"package.json"),s=o;if(n.fileExists(a)){var l=JSON.parse(n.readFile(a)),u=l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(u){var _=o.slice(r.length+1),d=y(e.removeFileExtension(_),b(_,0,i),u.paths);void 0!==d&&(s=e.combinePaths(r,d))}var p=l.typings||l.types||l.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 C(t){var r=e.removeFileExtension(t);return"/index"!==c(r.substring(u.fileNameIndex))||function(t,r){if(t.fileExists)for(var n=0,i=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]);n0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:_.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function b(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 x(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 D(t,r,n,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=x(t,r);return e.copyProperties(o,b(t,i)),o.afterProgramCreate=function(r){var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,(function(){return t.newLine}));h(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=r,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=l,e.isBuilderProgram=u,e.listFiles=_,e.explainFiles=d,e.explainIfFileIsRedirect=p,e.getMatchedFileSpec=f,e.getMatchedIncludeSpec=g,e.fileIncludeReasonToDiagnostics=m,e.emitFilesAndReportErrors=h,e.emitFilesAndReportErrorsAndGetExitStatus=v,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=b,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(t,r){var n=t.getSourceFile,a=e.maybeBind(r,r.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],r=0;re?t:e}function l(t){return e.fileExtensionIs(t,".d.ts")}function u(e){return!!e&&!!e.buildOrder}function _(e){return u(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){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function g(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=f(e,t);return r.set(t,i),i}function m(e){return!!e.options}function y(e,t){var r=e.configFileCache.get(t);return r&&m(r)?r:void 0}function h(t,r,n){var i,a=t.configFileCache,o=a.get(n);if(o)return m(o)?o:void 0;var s,c=t.parseConfigFileHost,l=t.baseCompilerOptions,u=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,l,c,_,u),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(n,s||i),s}function v(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,l=r;co)}}}function F(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 P(t,n,i){if(t.projectPendingBuild.size&&!u(n)){if(t.currentInvalidatedProject)return e.arrayIsEqualTo(t.currentInvalidatedProject.buildOrder,n)?t.currentInvalidatedProject:void 0;for(var a=t.options,o=t.projectPendingBuild,s=0;su&&(s=f,u=m)}}if(!r.fileNames.length&&!e.canJsonReportNoInputFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};var y,v=e.getAllProjectOutputs(r,!_.useCaseSensitiveFileNames()),b="(none)",x=o,D="(none)",S=a,E=a,C=!1;if(!i)for(var T=0,k=v;TS&&(S=N,D=A),l(A)&&(E=c(E,e.getModifiedTime(_,A)))}var w,F=!1,P=!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)}}t.prefixedNodeCoreModuleList=a.map((function(e){return"node:"+e})),t.nodeCoreModuleList=i(i([],a,!0),t.prefixedNodeCoreModuleList,!0),t.nodeCoreModules=new e.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=o,t.loadSafeList=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));return new e.Map(e.getEntries(n.config))},t.loadTypesMap=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));if(n.config)return new e.Map(e.getEntries(n.config.simpleMap))},t.discoverTypings=function(t,n,i,a,s,c,l,u,_){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var d=new e.Map;i=e.mapDefined(i,(function(t){var r=e.normalizePath(t);if(e.hasJSFileExtension(r))return r}));var p=[];l.include&&S(l.include,"Explicitly included types");var f=l.exclude||[],g=new e.Set(i.map(e.getDirectoryPath));g.add(a),g.forEach((function(t){E(e.combinePaths(t,"package.json"),p),E(e.combinePaths(t,"bower.json"),p),C(e.combinePaths(t,"bower_components"),p),C(e.combinePaths(t,"node_modules"),p)})),l.disableFilenameBasedTypeAcquisition||function(t){var r=e.mapDefined(t,(function(t){if(e.hasJSFileExtension(t)){var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),n=e.removeMinAndVersionNumbers(r);return s.get(n)}}));r.length&&S(r,"Inferred typings from file names"),e.some(t,(function(t){return e.fileExtensionIs(t,".jsx")}))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}(i),u&&S(e.deduplicate(u.map(o),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach((function(e,t){var n=_.get(t);d.has(t)&&void 0===d.get(t)&&void 0!==n&&r(e,n)&&d.set(t,e.typingLocation)}));for(var m=0,y=f;m=r.end}function b(e,t,r,n){return Math.max(e,r)t)break;var l=c.getEnd();if(tt.end||e.pos===t.end)&&q(e,n)?r(e):void 0}))}(r)}function R(t,r,n,i){var a=function a(o){if(B(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 l=s[c];if(t=t||!q(l,r)||V(l)){var u=J(s,c,r);return u&&j(u,r)}return a(l)}}e.Debug.assert(void 0!==n||300===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var _=J(s,s.length,r);return _&&j(_,r)}(n||r);return e.Debug.assert(!(a&&V(a))),a}function B(t){return e.isToken(t)&&!V(t)}function j(e,t){if(B(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=J(r,r.length,t);return n&&j(n,t)}function J(t,r,n){for(var i=r-1;i>=0;i--)if(V(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(q(t[i],n))return t[i]}function V(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 G(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=R(n.getFullStart(),r))&&28===n.kind&&(n=R(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=R(n.getFullStart(),r)}}function W(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function q(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function H(e,t,r){var n=W(e,t,void 0);return!!n&&r===m.test(e.text.substring(n.pos,n.end))}function Y(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function X(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 $(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 ee(e,t){return a(a({},$(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function te(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?re(n,i):n)}function re(t,r){return e.factory.createStringLiteral(t,0===r)}function ne(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function ie(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?ne(n,t):1}function ae(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 oe(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function se(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ce(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 h(e,t.pos)&&h(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=h,e.startEndContainsRange=v,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return b(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return b(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=b,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=O(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}(O(e,t))},e.findPrecedingMatchingToken=U,e.removeOptionality=K,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=G(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==z(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=z,e.getPossibleTypeArgumentsInfo=G,e.isInComment=W,e.hasDocComment=function(t,r){var n=O(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=$,e.getModuleSpecifierResolverHost=ee,e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?te(e,t,r,n):void 0},e.makeImport=te,e.makeStringLiteral=re,(g=e.QuotePreference||(e.QuotePreference={}))[g.Single=0]="Single",g[g.Double=1]="Double",e.quotePreferenceFromString=ne,e.getQuotePreference=ie,e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=ae(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=ae,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)||!oe(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,l=s;ca&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(_e(" ",e.SymbolDisplayPartKind.space)),t.push(_e("...",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){i>a||(s(),i+=e.length,t.push(ue(e,r)))},writeLine:function(){i>a||(i+=1,t.push(ye()),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:l,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(_e(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(_e(e,r)))}function l(){t=[],r=!0,n=0,i=0}}();function ue(t,r){return _e(t,function(t){var r=t.flags;return 3&r?ce(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r||32768&r||65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r||2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(r))}function _e(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function de(t){return _e(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function pe(t){return _e(t,e.SymbolDisplayPartKind.text)}function fe(t){return _e(t,e.SymbolDisplayPartKind.linkText)}function ge(t,r){return{text:e.getTextOfNode(t),kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(r).fileName,textSpan:Y(r)}}}function me(t){return _e(t,e.SymbolDisplayPartKind.link)}function ye(){return _e("\n",e.SymbolDisplayPartKind.lineBreak)}function he(e){try{return e(le),le.displayParts()}finally{le.clear()}}function ve(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&&Se(e);return r&&!t&&Te(r),r}function De(t,r,n){var i=n(t);return i?e.setOriginalNode(i,t):i=Se(t,n),i&&!r&&Te(i),i}function Se(t,r){var n=r?function(e){return De(e,!0,r)}:xe,i=r?function(e){return e&&Ce(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 Ce(t,r,n){return e.factory.createNodeArray(t.map((function(e){return De(e,r,n)})),t.hasTrailingComma)}function Te(e){ke(e),Ae(e)}function ke(e){Ne(e,512,we)}function Ae(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 we(e){return e.forEachChild((function(e){return e}))}function Fe(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,Oe(r,n,i,a,e.addSyntheticLeadingComment))}function Pe(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,Oe(r,n,i,a,e.addSyntheticTrailingComment))}function Ie(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,Oe(r,n,i,a,e.addSyntheticLeadingComment))}function Oe(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 Me(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Re(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Be(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 Je(e){return 259===e}function Ve(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 ze(e,e.fileExists,t)}function Ke(e){try{return e()}catch(e){return}}function ze(e,t){for(var r=[],n=2;n-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=xe,e.getSynthesizedDeepCloneWithReplacements=De,e.getSynthesizedDeepClones=Ee,e.getSynthesizedDeepClonesWithReplacements=Ce,e.suppressLeadingAndTrailingTrivia=Te,e.suppressLeadingTrivia=ke,e.suppressTrailingTrivia=Ae,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=Fe,e.copyTrailingComments=Pe,e.copyTrailingAsLeadingComments=Ie,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 Me(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 287:return r.expression===e?Re(r,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,r,n){var i=ie(t,r),a=JSON.stringify(n);return 0===i?"'"+e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"')+"'":a},e.isEqualityOperatorKind=Me,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=Re,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:ee(r,n)});return a?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Be,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=je,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Je,e.syntaxRequiresTrailingSemicolonOrASI=Ve,e.syntaxMayBeASICandidate=e.or(Be,je,Je,Ve),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(Be(t.kind)){if(n&&27===n.kind)return!1}else if(Je(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(!Ve(t.kind))return!1;if(238===t.kind)return!0;var a=M(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(Ve(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 ze(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return ze(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=Ue,e.tryDirectoryExists=function(t,r){return Ke((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=Ke,e.tryIOAndConsumeErrors=ze,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=Ge,e.createPackageJsonInfo=We,e.createPackageJsonImportFilter=function(t,r,n){var i,a=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||Ge(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());return!!s(i)||(o(n)||o(i))},allowsImportingSourceFile:function(e,t){if(!a.length)return!0;var r=c(e.fileName,t);return!r||o(r)},allowsImportingSpecifier:function(t){return!(a.length&&!s(t))||(!(!e.pathIsRelative(t)&&!e.isRootedDiskPath(t))||o(t))}};function o(t){for(var r=l(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,He)}},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],He);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 b=r(o,l,e.lastOrUndefined(_));void 0!==b&&(m=b)}}while(1!==l);function x(){switch(l){case 43:case 68:t[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:79===u&&h++;break;case 31:h>0&&h--;break;case 129:case 148:case 145:case 132:case 149:h>0&&!c&&(l=79);break;case 15:_.push(l);break;case 18:_.length>0&&_.push(l);break;case 19:if(_.length>0){var r=e.lastOrUndefined(_);15===r?17===(l=o.reScanTemplateToken(!1))?_.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),_.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 135:case 147:case 133:case 124:return!0;default:return!1}}(u,l))&&(l=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:l,classification:i(u)}),o=c+l}var d=r.length-o;return d>0&&n.push({length:d,classification:e.TokenClass.Whitespace}),{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;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 l(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var _=t.getSymbolAtLocation(u),d=_&&c(_,e.getMeaningFromLocation(u),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)}(u.getStart(n),u.getEnd(),d)}u.forEachChild(l)}})),{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 l(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 u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i])*)(\/>)?)?/im.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=t;d(s,o[1].length),u(s+=o[1].length,o[2].length,10),u(s+=o[2].length,o[3].length,21),s+=o[3].length;for(var c=o[4],l=s;;){var _=i.exec(c);if(!_)break;var p=s+_.index+_[1].length;p>l&&(d(l,p-l),l=p),u(l,_[2].length,22),l+=_[2].length,_[3].length&&(d(l,_[3].length),l+=_[3].length),u(l,_[4].length,5),l+=_[4].length,_[5].length&&(d(l,_[5].length),l+=_[5].length),u(l,_[6].length,24),l+=_[6].length}(s+=o[4].length)>l&&d(l,s-l),o[5]&&(u(s,o[5].length,10),s+=o[5].length);var f=t+n;return s=0),a>0){var o=n||y(t.kind,t);o&&u(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 h(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(o((function(e){return e.getCallSignatures().length>0}))&&!o((function(e){return e.getProperties().length>0}))||function(t){for(;a(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t}(r))return 9===n?11:10}}return n}(c,d,g);var y=f.valueDeclaration;if(y){var h=e.getCombinedModifierFlags(y),v=e.getCombinedNodeFlags(y);32&h&&(m|=2),256&h&&(m|=4),0!==g&&2!==g&&(64&h||2&v||8&f.getFlags())&&(m|=8),7!==g&&10!==g||!function(t,r){return e.isBindingElement(t)&&(t=i(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);o(d,g,m)}}}e.forEachChild(d,_),u=p}}(r)}(t,r,n,(function(e,t,n){s.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),o),s}function i(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function a(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}var o,s,c;(c=t.TokenEncodingConsts||(t.TokenEncodingConsts={}))[c.typeOffset=8]="typeOffset",c[c.modifierMask=255]="modifierMask",(s=t.TokenType||(t.TokenType={}))[s.class=0]="class",s[s.enum=1]="enum",s[s.interface=2]="interface",s[s.namespace=3]="namespace",s[s.typeParameter=4]="typeParameter",s[s.type=5]="type",s[s.parameter=6]="parameter",s[s.variable=7]="variable",s[s.enumMember=8]="enumMember",s[s.property=9]="property",s[s.function=10]="function",s[s.member=11]="member",(o=t.TokenModifier||(t.TokenModifier={}))[o.declaration=0]="declaration",o[o.static=1]="static",o[o.async=2]="async",o[o.readonly=3]="readonly",o[o.defaultLibrary=4]="defaultLibrary",o[o.local=5]="local",t.getSemanticClassifications=function(t,n,i,a){var o=r(t,n,i,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],l=0;la.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(r,n,o,s,a,c)};default:return k()}function k(){return{kind:2,types:_(e.getContextualTypeFromParent(n,a)),isNewIdentifier:!1}}}function l(t){switch(t.kind){case 189:return e.walkUpParenthesizedTypes(t);case 210:return e.walkUpParenthesizedExpressions(t);default:return t}}function u(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(t,r,n,a,o,s){return f(r.text,r.getStart(t)+1,function(t,r,n,a,o,s){var c=e.normalizeSlashes(r.text),l=t.path,u=e.getDirectoryPath(l);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)||!n.baseUrl&&(e.isRootedDiskPath(c)||e.isUrl(c))?function(t,r,n,a,o,s){var c=m(n,"js"===s.importModuleSpecifierEnding?2:0);return n.rootDirs?function(t,r,n,a,o,s,c){var l=function(t,r,n,a){t=t.map((function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))}));var o=e.firstDefined(t,(function(t){return e.containsPath(t,n,r,a)?n.substr(t.length):void 0}));return e.deduplicate(i(i([],t.map((function(t){return e.combinePaths(t,o)})),!0),[n],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,o.project||s.getCurrentDirectory(),n,!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()));return e.flatMap(l,(function(e){return h(r,e,a,s,c)}))}(n.rootDirs,t,r,c,n,a,o):h(t,r,c,a,o)}(c,u,n,a,l,s):function(t,r,n,i,a){var o=n.baseUrl,s=n.paths,c=[],l=m(n);if(o){var u=n.project||i.getCurrentDirectory(),_=e.normalizePath(e.combinePaths(u,o));h(t,_,l,i,void 0,c),s&&v(c,t,_,l.extensions,s,i)}for(var p=b(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),l=S.exec(c);if(l){var u=l[1],_=l[2],d=l[3],p=e.getDirectoryPath(t.path),g="path"===_?h(d,p,m(n,1),i,t.path):"types"===_?D(i,n,p,b(d),m(n)):e.Debug.fail();return f(d,s.pos+u.length,g)}}}(r,i,s,l);return d&&n(d)}if(e.isInString(r,i,a)){if(!a||!e.isStringLiteralLike(a))return;return function(r,i,a,o,s,c,l){if(void 0!==r){var u=e.createTextSpanFromStringLiteralLikeContent(i);switch(r.kind){case 0:return n(r.paths);case 1:var _=[];return t.getCompletionEntriesFromSymbols(r.symbols,_,i,a,a,o,99,s,4,l,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:u,entries:_};case 2:return _=r.types.map((function(r){return{name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(i)}})),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:u,entries:_};default:return e.Debug.assertNever(r)}}}(d=c(r,a,i,o,s,l,_),a,r,o,u,s,_)}},r.getStringLiteralCompletionDetails=function(r,n,i,o,s,l,u,_,d){if(o&&e.isStringLiteralLike(o)){var p=c(n,o,i,s,l,u,d);return p&&function(r,n,i,o,s,c){switch(i.kind){case 0:return(l=e.find(i.paths,(function(e){return e.name===r})))&&t.createCompletionDetails(r,a(l.extension),l.kind,[e.textPart(r)]);case 1:var l;return(l=e.find(i.symbols,(function(e){return e.name===r})))&&t.createCompletionDetailsForSymbol(l,s,o,n,c);case 2:return e.find(i.types,(function(e){return e.value===r}))?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(i)}}(r,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:case 22:return 200===i;case 58:return 201===i;case 20:return 290===i||he(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(U(t))&&W(t))return!1;if(me(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(U(t))||De(t)))return!1;switch(U(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===b&&ye(t,a))return!1;var o=e.getAncestor(t.parent,165);if(o&&t!==b&&e.isClassLike(b.parent.parent)&&a<=b.end){if(ye(t,b.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!==b||a>b.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!==P.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}(x))return void r("Returning an empty list because completion was requested in an invalid position.");var L=x.parent;if(24===x.kind||28===x.kind)switch(C=24===x.kind,T=28===x.kind,L.kind){case 204:E=(D=L).expression;var M=e.getLeftmostAccessExpression(D);if(e.nodeIsMissing(M)||(e.isCallExpression(E)||e.isFunctionLike(E))&&E.end===x.pos&&E.getChildCount(n)&&21!==e.last(E.getChildren(n)).kind)return;break;case 159:E=L.left;break;case 259:E=L.name;break;case 198:E=L;break;case 229:E=L.getFirstToken(n),e.Debug.assert(100===E.kind||103===E.kind);break;default:return}else if(!S&&1===n.languageVariant){if(L&&204===L.kind&&(x=L,L=L.parent),d.parent===P)switch(d.kind){case 31:276!==d.parent.kind&&278!==d.parent.kind||(P=d);break;case 43:277===d.parent.kind&&(P=d)}switch(L.kind){case 279:43===x.kind&&(A=!0,P=x);break;case 219:if(!q(L))break;case 277:case 276:case 278:w=!0,29===x.kind&&(k=!0,P=x);break;case 286:case 285:19===b.kind&&31===d.kind&&(w=!0);break;case 283:if(L.initializer===b&&b.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:r.LocationPriority}]}}}(d,t);if(w)return w}var F=[];if(y(t,i)){var P=T(c,F,void 0,d,t,n,i.target,a,l,s,i,S,p,E,D,C,x,v,A);!function(t,n,i,a,o){e.getNameTable(t).forEach((function(t,s){if(t!==n){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:r.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))}(t,d.pos,P,i.target,F)}else{if(!(_||c&&0!==c.length||0!==f))return;T(c,F,void 0,d,t,n,i.target,a,l,s,i,S,p,E,D,C,x,v,A)}if(0!==f)for(var I=new e.Set(F.map((function(e){return e.name}))),O=0,L=function(t,r){if(!r)return B(t);var n=t+7+1;return M[n]||(M[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(h)}case"symbol":var b=y.symbol,x=y.location,D=function(t,r,n,i,a,o,s,c,l,u,p){if(null==p?void 0:p.moduleSpecifier){var f=I(s,o),g=f.contextToken,m=f.previousToken;if(m&&H(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(),h=t.moduleSymbol,v=y.getMergedSymbol(e.skipAlias(r.exportSymbol||r,y)),b=e.codefix.getImportCompletionAction(v,h,o,e.getNameForExportedSymbol(r,a.target),i,n,l,c&&e.isIdentifier(c)?c.getStart(o):s,u),x=b.moduleSpecifier,D=b.codeAction;return e.Debug.assert(!(null==p?void 0:p.moduleSpecifier)||x===p.moduleSpecifier),{sourceDisplay:[e.textPart(x)],codeActions:[D]}}(y.origin,b,r,s,f,i,a,y.previousToken,c,l,o.data);return N(b,p,i,x,u,D.codeActions,D.sourceDisplay);case"literal":var S=y.literal;return A(v(i,l,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=N,t.createCompletionDetails=w,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"}(l||(l={})),(u=t.CompletionKind||(t.CompletionKind={}))[u.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",u[u.Global=1]="Global",u[u.PropertyAccess=2]="PropertyAccess",u[u.MemberLike=3]="MemberLike",u[u.String=4]="String",u[u.None=5]="None";var M=[],R=e.memoize((function(){for(var t=[],n=81;n<=158;n++)t.push({name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:r.GlobalsOrKeywords});return t}));function B(t){return M[t]||(M[t]=R().filter((function(r){var n=e.stringToToken(r.name);switch(t){case 0:return!1;case 1:return V(n)||134===n||140===n||150===n||141===n||e.isTypeKeyword(n)&&151!==n;case 5:return V(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 V(t){return 130===t||131===t||127===t||!e.isContextualKeyword(t)&&!J(t)}function U(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function K(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 z(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 G(t,r){if(t){if(e.isTypeNode(t)&&e.isTypeReferenceType(t.parent))return r.getTypeArgumentConstraint(t);var n=G(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 q(t){var r=t.left;return e.nodeIsMissing(r)}function H(t){var r,n=(r=t.parent,e.isImportEqualsDeclaration(r)?Y(r.moduleReference)?r:void 0:e.isNamedImports(r)||e.isNamespaceImport(r)?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:e.isImportKeyword(t)&&e.isSourceFile(r)?t:e.isImportKeyword(t)&&e.isImportDeclaration(r)&&Y(r.moduleSpecifier)?r:void 0);return 154===n||n&&e.rangeIsOnSingleLine(n,n.getSourceFile())?n: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 Q(t,r){var n=e.skipAlias(t,r).declarations;return!!e.length(n)&&e.every(n,e.isDeprecatedDeclaration)}function Z(e,t){if(0===t.length)return!0;for(var r,n=!1,i=0,a=e.length,o=0;o=0&&!l(r,n[i],115);i--);return e.forEach(a(t.statement),(function(e){s(t,e)&&l(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 u(t);case 247:return d(t)}}function d(t){var r=[];return l(r,t.getFirstToken(),107),e.forEach(t.caseBlock.clauses,(function(n){l(r,n.getFirstToken(),82,88),e.forEach(a(n),(function(e){s(t,e)&&l(r,e.getFirstToken(),81)}))})),r}function p(t,r){var n=[];return l(n,t.getFirstToken(),111),t.catchClause&&l(n,t.catchClause.getFirstToken(),83),t.finallyBlock&&l(n,e.findChildOfKind(t,96,r),96),n}function f(t,r){var i=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(i){var a=[];return e.forEach(n(i),(function(t){a.push(e.findChildOfKind(t,109,r))})),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,(function(t){a.push(e.findChildOfKind(t,105,r))})),a}}function g(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),(function(t){a.push(e.findChildOfKind(t,105,r))})),e.forEach(n(i.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){l(n,e,130)})),e.forEachChild(r,(function(t){y(t,(function(t){e.isAwaitExpression(t)&&l(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)}))}t.getDocumentHighlights=function(t,n,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 h=c.parent.parent,v=[h.openingElement,h.closingElement].map((function(e){return r(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:v}]}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){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(function(e){return e.fileName}),(function(e){return e.span})),l=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(),l)))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,t,n,s)||function(t,n){var a=function(t,n){switch(t.kind){case 99:case 91:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,r){for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);l(n,i[0],99);for(var a=i.length-1;a>=0&&!l(n,i[a],91);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o=s.end;_--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(_))){u=!1;break}if(u){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 105:return c(t.parent,e.isReturnStatement,g);case 109:return c(t.parent,e.isThrowStatement,f);case 111:case 83:case 96:return c(83===t.kind?t.parent.parent:t.parent,e.isTryStatement,p);case 107:return c(t.parent,e.isSwitchStatement,d);case 82:case 88:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?c(t.parent.parent.parent,e.isSwitchStatement,d):void 0;case 81:case 86:return c(t.parent,e.isBreakOrContinueStatement,_);case 97:case 115:case 90:return c(t.parent,(function(t){return e.isIterationStatement(t,!0)}),u);case 133:return s(e.isConstructorDeclaration,[133]);case 135:case 147:return s(e.isAccessor,[135,147]);case 131:return c(t.parent,e.isAwaitExpression,m);case 130:return h(m(t));case 125:return h(function(t){var r=e.getContainingFunction(t);if(r){var n=[];return e.forEachChild(r,(function(t){y(t,(function(t){e.isYieldExpression(t)&&l(n,t.getFirstToken(),125)}))})),n}}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?h((a=t.kind,o=t.parent,e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 260:case 300:case 233:case 287:case 288:return 128&r&&e.isClassDeclaration(t)?i(i([],t.members,!0),[t],!1):n.statements;case 169:case 167:case 254:return i(i([],n.parameters,!0),e.isClassLike(n.parent)?n.parent.members:[],!0);case 255:case 224:case 256:case 180:var a=n.members;if(92&r){var o=e.find(n.members,e.isConstructorDeclaration);if(o)return i(i([],a,!0),o.parameters,!0)}else if(128&r)return i(i([],a,!0),[n],!1);return a;case 203:return;default:e.Debug.assertNever(n,"Invalid container kind.")}}(o,e.modifierToFlag(a)),(function(t){return e.findModifier(t,a)})))):void 0}var a,o;function s(r,i){return c(t.parent,r,(function(t){return e.mapDefined(t.symbol.declarations,(function(t){return r(t)?e.find(t.getChildren(n),(function(t){return e.contains(i,t.kind)})):void 0}))}))}function c(e,t,r){return t(e)?h(r(e,n)):void 0}function h(e){return e&&e.map((function(e){return r(e,n)}))}}(t,n);return a&&[{fileName:n.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(u||(u={})),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 l(e,t,r,n,i,a,o){return _(e,t,r,n,i,a,!1,o)}function u(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,l,_,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&&u(g,d);if(!m&&a&&(y=a.getDocument(s,n))&&(e.Debug.assert(_),m={sourceFile:y,languageServiceRefCount:0},h()),m)m.sourceFile.version!==l&&(m.sourceFile=e.updateLanguageServiceSourceFile(m.sourceFile,c,l,c.getChangeRange(m.sourceFile.scriptSnapshot)),a&&a.setDocument(s,n,m.sourceFile)),_&&m.languageServiceRefCount++;else{var y=e.createLanguageServiceSourceFile(r,c,p,l,!1,d);a&&a.setDocument(s,n,y),m={sourceFile:y,languageServiceRefCount:1},h()}return e.Debug.assert(0!==m.languageServiceRefCount),m.sourceFile;function h(){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=u(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,l){return c(t,e.toPath(t,i,s),r,n(r),a,o,l)},acquireDocumentWithKey:c,updateDocument:function(t,r,a,o,c){return l(t,e.toPath(t,i,s),r,n(r),a,o,c)},updateDocumentWithKey:l,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&&u(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}(u||(u={})),function(e){!function(t){function r(t,r){return e.forEach(300===t.kind?t.statements:t.body.statements,(function(t){return r(t)||c(t)&&e.forEach(t.body&&t.body.statements,r)}))}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i=0&&!(c>n.end);){var l=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(a.charCodeAt(l),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(b(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 E(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),C(e,e,t,r,n)}function C(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=D(t,r.text,e);a0;o--)D(t,i=n[o]);return[n.length-1,n[0]]}function D(e,t){var r=h(e,t);g(o,r),l.push(o),u.push(s),s=void 0,o=r}function S(){o.children&&(A(o.children,o),O(o.children)),o=l.pop(),s=u.pop()}function E(e,t,r){D(e,r),k(t),S()}function C(t){t.initializer&&function(e){switch(e.kind){case 212:case 211:case 224:return!0;default:return!1}}(t.initializer)?(D(t),e.forEachChild(t.initializer,k),S()):E(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(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 169:var i=t;E(i,i.body);for(var a=0,o=i.parameters;a0&&(D(J,M),e.forEachChild(J.right,k),S()):e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?E(t,J.right,M):(D(J,M),E(t,J.right,I.name),S()),void b(L);case 7:case 9:var R=t,B=(M=7===P?R.arguments[0]:R.arguments[0].expression,R.arguments[1]),j=x(t,M);return L=j[0],D(t,j[1]),D(t,e.setTextRange(e.factory.createIdentifier(B.text),B)),k(t.arguments[2]),S(),S(),void b(L);case 5:var J,V=(I=(J=t).left).expression;if(e.isIdentifier(V)&&"prototype"!==e.getElementOrPropertyAccessName(I)&&s&&s.has(V.text))return void(e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?E(t,J.right,V):e.isBindableStaticAccessExpression(I)&&(D(J,V),E(J.left,J.right,e.getNameOrArgument(I)),S()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(P)}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,l=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":q(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&&G(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=[G(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=H(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(i):void 0})).join(", "))+") callback"}return""}function H(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=H(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={}))}(u||(u={})),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===C.length?x?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(C):e.factory.updateNamedImports(y[0].importClause.namedBindings,C);f&&x&&k?(l.push(o(T,x,void 0)),l.push(o(null!==(r=y[0])&&void 0!==r?r:T,void 0,k))):l.push(o(T,x,k))}}else{var A=g[0];l.push(o(A,A.importClause.name,m[0].importClause.namedBindings))}}return l}function a(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=[],i=0,a=e;i...")}(t);case 280:return function(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return l(n,"code",n,!1,"<>...")}(t);case 277:case 278:return function(e){if(0!==e.properties.length)return s(e.getStart(r),e.getEnd(),"code")}(t.attributes);case 221:case 14:return function(e){if(14!==e.kind||0!==e.text.length)return s(e.getStart(r),e.getEnd(),"code")}(t);case 200:return u(t,!1,!e.isBindingElement(t.parent),22);case 212:return function(t){if(!e.isBlock(t.body)&&!e.positionsAreOnSameLine(t.body.getFullStart(),t.body.getEnd(),r))return l(e.createTextSpanFromBounds(t.body.getFullStart(),t.body.getEnd()),"code",e.createTextSpanFromNode(t))}(t);case 206:return function(t){if(t.arguments.length){var n=e.findChildOfKind(t,20,r),i=e.findChildOfKind(t,21,r);if(n&&i&&!e.positionsAreOnSameLine(n.pos,i.pos,r))return c(n,i,t,r,!1,!0)}}(t)}var a;function o(t,r){return void 0===r&&(r=18),u(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function u(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 l=e.findChildOfKind(t,o,r),u=e.findChildOfKind(t,s,r);return l&&u&&c(l,u,n,r,i,a)}}(i,t);d&&n.push(d),u--,e.isCallExpression(i)?(u++,m(i.expression),u--,i.arguments.forEach(m),null===(_=i.typeArguments)||void 0===_||_.forEach(m)):e.isIfStatement(i)&&i.elseStatement&&e.isIfStatement(i.elseStatement)?(m(i.expression),m(i.thenStatement),u++,m(i.elseStatement),u--):i.forEachChild(m),u++}}}(t,r,u),function(t,r){for(var i=[],a=0,o=t.getLineStarts();a1&&a.push(s(c,l,"comment"))}}function o(t,r,n,i){e.isJsxText(t)||a(t.pos,r,n,i)}function s(t,r,n){return l(e.createTextSpanFromBounds(t,r),n)}function c(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),l(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function l(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={}))}(u||(u={})),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=y(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=!!l(i,g,a,!1)||!l(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){for(var t=[],r=0,n=0,i=0;i0&&(t.push(g(e.substr(r,n))),n=0);var a;return n>0&&t.push(g(e.substr(r,n))),t}function g(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:m(e)}}function m(e){return h(e,!1)}function y(e){return h(e,!0)}function h(t,r){for(var n=[],i=0,a=1;at.length)){for(var c=n.length-2,l=t.length-1;c>=0;c-=1,l-=1)s=o(s,a(t[l],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=m,e.breakIntoWordSpans=y}(u||(u={})),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=[],l=0,u=!1;function _(){return a=o,18===(o=e.scanner.scan())?l++:19===o&&l--,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===l&&(u=!0)}function g(){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;if(150===t){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 154!==t&&(41===t||18===t||79===t||e.isKeyword(t))}));r&&(t=_())}if(79===t||e.isKeyword(t))if(154===(t=_())){if(10===(t=_()))return p(),!0}else if(63===t){if(y(!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 m(){var t=e.scanner.getToken();if(93===t){if(f(),150===(t=_())){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 41===t||18===t}));r&&(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&&(150===(t=_())&&(r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 79===t||e.isKeyword(t)})),r&&(t=_())),(79===t||e.isKeyword(t))&&63===(t=_())&&y(!0)))return!0;return!0}return!1}function y(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();)void 0,134===e.scanner.getToken()&&(140===_()&&10===_()&&(i||(i=[]),i.push({ref:d(),depth:l})),1)||g()||m()||n&&(y(!1,!0)||h())||_();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),u){if(i)for(var v=0,b=i;vt)break e;var h=e.singleOrUndefined(e.getTrailingCommentRanges(n.text,m.end));if(h&&2===h.kind&&S(h.pos,h.end),r(n,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}e.isTemplateSpan(d)&&y&&e.isTemplateMiddleOrTemplateTail(y)&&D(m.getFullStart()-"${".length,y.getStart()+"}".length);var v=e.isSyntaxList(m)&&(void 0,18===(c=(s=g)&&s.kind)||22===c||20===c||278===c)&&l(y)&&!e.positionsAreOnSameLine(g.getStart(),y.getStart(),n),b=v?g.getEnd():m.getStart(),x=v?y.getStart():u(n,m);e.hasJSDocNodes(m)&&(null===(o=m.jsDoc)||void 0===o?void 0:o.length)&&D(e.first(m.jsDoc).getStart(),x),D(b,x),(e.isStringLiteral(m)||e.isTemplateLiteral(m))&&D(b+1,x-1),d=m;break}if(f===p.length-1)break e}}return _;function D(r,n){if(r!==n){var i=e.createTextSpanFromBounds(r,n);(!_||!e.textSpansEqual(i,_.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(_=a({textSpan:i},_&&{parent:_}))}}function S(e,t){D(e,t);for(var r=e;47===n.text.charCodeAt(r);)r++;D(r,t)}};var n=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(t){if(e.isSourceFile(t))return o(t.getChildAt(0).getChildren(),n);if(e.isMappedTypeNode(t)){var r=t.getChildren(),i=r[0],a=r.slice(1),l=e.Debug.checkDefined(a.pop());e.Debug.assertEqual(i.kind,18),e.Debug.assertEqual(l.kind,19);var u=o(a,(function(e){return e===t.readonlyToken||143===e.kind||e===t.questionToken||57===e.kind})),_=o(u,(function(e){var t=e.kind;return 22===t||161===t||23===t}));return[i,c(s(_,(function(e){return 58===e.kind}))),l]}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 d=o(t.getChildren(),(function(e){return e===t.dotDotDotToken||e===t.name}));return s(o(d,(function(e){return e===d[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++,n}(i);0!==a&&e.Debug.assertLessThan(a,o);var s=function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(i,r);return{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:s}}}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,l=s.argumentIndex,u=s.argumentCount,d=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:a},argumentsSpan:d,argumentIndex:l,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?_(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),_(f,l=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var g=i;if(f=i.parent.parent,e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return l=function(t,r,n,i){return e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r)?e.isInsideTemplateLiteral(r,n,i)?0:t+2:t+1}(g.parent.templateSpans.indexOf(g),t,r,n),_(f,l,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 h=e.getPossibleTypeArgumentsInfo(t,n);if(h){var v=h.called,b=h.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:v},argumentsSpan:d=e.createTextSpanFromBounds(v.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function c(t){return e.isBinaryExpression(t.parent)?c(t.parent):t}function l(t){return e.isBinaryExpression(t.left)?l(t.left)+1:2}function u(e,t){for(var r=0,n=0,i=e.getChildren();n=0&&i.length>a+1),i[a+1]}function f(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function g(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"}(r||(r={})),t.getSignatureHelpItems=function(t,r,n,i,u){var _=t.getTypeChecker(),d=e.findTokenOnLeftOfPosition(r,n);if(d){var p=!!i&&"characterTyped"===i.kind;if(!p||!e.isInString(r,n,d)&&!e.isInComment(r,n)){var m=!!i&&"invoked"===i.kind,v=function(t,r,n,i,a){for(var u=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){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,u=a.argumentCount,_=a.argumentsSpan,d=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return d&&{contextualType:d,argumentIndex:s,argumentCount:u,argumentsSpan:_};case 219:var p=c(i),f=n.getContextualType(p),g=20===t.kind?0:l(i)-1,m=l(p);return f&&{contextualType:f,argumentIndex:g,argumentCount:m,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}}(t,n,i);if(a){var s,u=a.contextualType,_=a.argumentIndex,d=a.argumentCount,p=a.argumentsSpan,f=u.getNonNullableType(),g=f.getCallSignatures();return 1!==g.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(g),node:t,symbol:(s=f.symbol,"__type"===s.name&&e.firstDefined(s.declarations,(function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0}))||s)},argumentsSpan:p,argumentIndex:_,argumentCount:d}}}(t,0,n,i)||s(t,r,n)}(t,r,n,i);if(a)return{value:a}},_=t;!e.isSourceFile(_)&&(a||!e.isBlock(_));_=_.parent){var d=u(_);if("object"==typeof d)return d.value}}(d,n,r,_,m);if(v){u.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 l=[],u=r.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var _=s.called;if(o&&!a(i,n,e.isIdentifier(_)?_.parent:_))return;if(0!==(l=e.getPossibleGenericSignatures(_,c,r)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};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)}}(v,_,r,d,p);return u.throwIfCancellationRequested(),b?_.runWithCancellationToken(u,(function(e){return 0===b.kind?y(b.candidates,b.resolvedSignature,v,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,g(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(b.symbol,v,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2!==t.invocation.kind){var i=f(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 y(a,a[0],t,r,e,!0)}))}))}))}}(v,t,u):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(n||(n={})),t.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 m=70246400;function y(t,r,n,a,o,s){var c,l=n.isTypeParameterList,u=n.argumentCount,_=n.argumentsSpan,d=n.invocation,p=n.argumentIndex,m=g(d),y=2===d.kind?d.symbol:o.getSymbolAtLocation(f(d))||s&&(null===(c=r.declaration)||void 0===c?void 0:c.symbol),h=y?e.symbolToDisplayParts(o,y,s?a:void 0,void 0):e.emptyArray,D=e.map(t,(function(t){return function(t,r,n,a,o,s){var c=(n?b:x)(t,a,o,s);return e.map(c,(function(n){var s=n.isVariadic,c=n.parameters,l=n.prefix,u=n.suffix,_=i(i([],r,!0),l,!0),d=i(i([],u,!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)}))}(t,o,a),!0),p=t.getDocumentationComment(a),f=t.getJsDocTags();return{isVariadic:s,prefixDisplayParts:_,suffixDisplayParts:d,separatorDisplayParts:v,parameters:c,documentation:p,tags:f}}))}(t,h,l,o,m,a)}));0!==p&&e.Debug.assertLessThan(p,u);for(var S=0,E=0,C=0;C1))for(var k=0,A=0,N=T;A=u){S=E+k;break}k++}E+=T.length}e.Debug.assert(-1!==S);var F={items:e.flatMapToMutable(D,e.identity),applicableSpan:_,selectedItemIndex:S,argumentIndex:p,argumentCount:u},P=F.items[S];if(P.isVariadic){var I=e.findIndex(P.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=u.typeToTypeNode(t,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),r.writeNode(4,a,n,i)}))}}}(e.InlayHints||(e.InlayHints={}))}(u||(u={})),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)&&c(r.fileName)){var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0}},tryGetGeneratedPosition:function(i){if(!e.isDeclarationFileName(i.fileName)){var a=c(i.fileName);if(a){var o=t.getProgram();if(!o.isSourceOfProjectReferenceRedirect(a.fileName)){var l=o.getCompilerOptions(),u=e.outFile(l),_=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0!==_){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 l(r){return t.getSourceFileLike?t.getSourceFileLike(r):c(r)||function(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:void 0,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}(r)}},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 l=c[1];return r(n,e.base64decode(e.sys,l),i)}s=void 0}}var u=[];s&&u.push(s),u.push(i+".map");for(var _=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),d=0,p=u;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(l(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 l(e){return e.pos.toString()+":"+e.end.toString()}function u(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))}return 254===t.kind&&!!(null===(o=t.symbol.members)||void 0===o?void 0:o.size)})(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))}u(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(l(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,l,u,_){var d;void 0===u&&(u=e.getMeaningFromLocation(l));var p,f,g,m,y=[],h=[],v=[],b=e.getCombinedLocalAndExportSymbolFlags(o),x=1&u?i(a,o,l):"",D=!1,S=108===l.kind&&e.isInExpressionContext(l),E=!1;if(108===l.kind&&!S)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==x||32&b||2097152&b){"getter"!==x&&"setter"!==x||(x="property");var C=void 0;if(p=S?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(o,l),l.parent&&204===l.parent.kind){var T=l.parent.name;(T===l||T&&0===T.getFullWidth())&&(l=l.parent)}var k=void 0;if(e.isCallOrNewExpression(l)?k=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(o.valueDeclaration))&&(k=l.parent),k){C=a.getResolvedSignature(k);var A=207===k.kind||e.isCallExpression(k)&&106===k.expression.kind,N=A?p.getConstructSignatures():p.getCallSignatures();if(!C||e.contains(N,C.target)||e.contains(N,C)||(C=N.length?N[0]:void 0),C){switch(A&&32&b?(x="constructor",Z(p.symbol,x)):2097152&b?($(x="alias"),y.push(e.spacePart()),A&&(4&C.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),Q(o)):Z(o,x),x){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&C.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),ee(C,N,262144);break;default:ee(C,N)}D=!0,E=N.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&b)||133===l.kind&&169===l.parent.kind){var w=l.parent,F=o.declarations&&e.find(o.declarations,(function(e){return e===(133===l.kind?w.parent:w)}));F&&(N=169===w.kind?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures(),C=a.isImplementationOfOverload(w)?N[0]:a.getSignatureFromDeclaration(w),169===w.kind?(x="constructor",Z(p.symbol,x)):Z(172!==w.kind||2048&p.symbol.flags||4096&p.symbol.flags?o:p.symbol,x),C&&ee(C,N),D=!0,E=N.length>1)}}if(32&b&&!D&&!S&&(Y(),e.getDeclarationOfKind(o,224)?$("local class"):y.push(e.keywordPart(84)),y.push(e.spacePart()),Q(o),te(o,s)),64&b&&2&u&&(H(),y.push(e.keywordPart(118)),y.push(e.spacePart()),Q(o),te(o,s)),524288&b&&2&u&&(H(),y.push(e.keywordPart(150)),y.push(e.spacePart()),Q(o),te(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&b&&(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()),Q(o)),1536&b&&!S){H();var P=(G=e.getDeclarationOfKind(o,259))&&G.name&&79===G.name.kind;y.push(e.keywordPart(P?141:140)),y.push(e.spacePart()),Q(o)}if(262144&b&&2&u)if(H(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),Q(o),o.parent)X(),Q(o.parent,c),te(o.parent,c);else{var I=e.getDeclarationOfKind(o,161);if(void 0===I)return e.Debug.fail();(G=I.parent)&&(e.isFunctionLikeKind(G.kind)?(X(),C=a.getSignatureFromDeclaration(G),173===G.kind?(y.push(e.keywordPart(103)),y.push(e.spacePart())):172!==G.kind&&G.name&&Q(G.symbol),e.addRange(y,e.signatureToDisplayParts(a,C,s,32))):257===G.kind&&(X(),y.push(e.keywordPart(150)),y.push(e.spacePart()),Q(G.symbol),te(G.symbol,s)))}if(8&b&&(x="enum member",Z(o,"enum member"),294===(null==(G=null===(d=o.declarations)||void 0===d?void 0:d[0])?void 0:G.kind))){var O=a.getConstantValue(G);void 0!==O&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(O),"number"==typeof O?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(H(),!D){var L=a.getAliasedSymbol(o);if(L!==o&&L.declarations&&L.declarations.length>0){var M=L.declarations[0],R=e.getNameOfDeclaration(M);if(R){var B=e.isModuleWithStringLiteralName(M)&&e.hasSyntacticModifier(M,2),j="default"!==o.name&&!B,J=t(a,L,e.getSourceFileOfNode(M),M,R,u,j?o:L);y.push.apply(y,J.displayParts),y.push(e.lineBreakPart()),g=J.documentation,m=J.tags}else g=L.getContextualDocumentationComment(M,a),m=L.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()),Q(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()),Q(n,c))}return!0}}))}if(!D)if(""!==x){if(p)if(S?(H(),y.push(e.keywordPart(108))):Z(o,x),"property"===x||"JSX attribute"===x||3&b||"local var"===x||S){if(y.push(e.punctuationPart(58)),y.push(e.spacePart()),p.symbol&&262144&p.symbol.flags){var V=e.mapToDisplayParts((function(t){var n=a.typeParameterToDeclaration(p,c,r);q().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(y,V)}else e.addRange(y,e.typeToDisplayParts(a,p,c));if(o.target&&o.target.tupleLabelDeclaration){var U=o.target.tupleLabelDeclaration;e.Debug.assertNode(U.name,e.isIdentifier),y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.textPart(e.idText(U.name))),y.push(e.punctuationPart(21))}}else(16&b||8192&b||16384&b||131072&b||98304&b||"method"===x)&&(N=p.getNonNullableType().getCallSignatures()).length&&(ee(N[0],N),E=N.length>1)}else x=n(a,o,l);if(0!==h.length||E||(h=o.getContextualDocumentationComment(c,a)),0===h.length&&4&b&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(function(e){return 300===e.kind})))for(var K=0,z=o.declarations;K0))break}}return 0!==v.length||E||(v=o.getJsDocTags(a)),0===h.length&&g&&(h=g),0===v.length&&m&&(v=m),{displayParts:y,documentation:h,symbolKind:x,tags:0===v.length?void 0:v};function q(){return f||(f=e.createPrinter({removeComments:!0})),f}function H(){y.length&&y.push(e.lineBreakPart()),Y()}function Y(){_&&($("alias"),y.push(e.spacePart()))}function X(){y.push(e.spacePart()),y.push(e.keywordPart(101)),y.push(e.spacePart())}function Q(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 Z(t,r){H(),r&&($(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(y.push(e.spacePart()),Q(t)))}function $(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 ee(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))),h=t.getDocumentationComment(a),v=t.getJsDocTags(),r.length>1&&0===h.length&&0===v.length&&(h=r[0].getDocumentationComment(a),v=r[0].getJsDocTags())}function te(t,n){var i=e.mapToDisplayParts((function(i){var o=a.symbolToTypeParameterDeclarations(t,n,r);q().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(y,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(u||(u={})),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,l=e.transpileOptionValueCompilerOptions;c>=5;return r}(d,_),0,n),o[s]=(u=1+((c=d)>>(l=_)&31),e.Debug.assert((31&u)===u,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),c&~(31<=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,l,u){var _,d,f,g,m,y=s.options,h=s.getRules,v=s.host,b=new t.FormattingContext(u,c,y),x=-1,D=[];if(o.advance(),o.isOnToken()){var S=u.getLineAndCharacterOfPosition(n.getStart(u)).line,E=S;n.decorators&&(E=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,u)).line),function n(i,a,s,c,p,m){if(e.rangeOverlapsWithStartEnd(r,i.getStart(u),i.getEnd())){var h=k(i,s,p,m),v=a;for(e.forEachChild(i,(function(e){S(e,-1,i,h,s,c,!1)}),(function(r){!function(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),l=s,_=a;if(0!==c)for(;o.isOnToken()&&!((h=o.readTokenInfo(n)).token.end>r.pos);)if(h.token.kind===c){_=u.getLineAndCharacterOfPosition(h.token.pos).line,E(h,n,s,n);var d=void 0;if(-1!==x)d=x;else{var p=e.getLineStartPositionForPosition(h.token.pos,u);d=t.SmartIndenter.findFirstNonWhitespaceColumn(p,h.token.pos,u,y)}l=k(n,a,d,y.indentSize)}else E(h,n,s,n);for(var f=-1,g=0;gi.end)break;E(b,i,h,i)}if(!i.parent&&o.isOnEOF()){var D=o.readEOFTokenRange();D.end<=i.end&&_&&F(D,u.getLineAndCharacterOfPosition(D.pos).line,i,_,f,d,a,h)}}function S(a,s,c,l,_,d,p,f){var m=a.getStart(u),h=u.getLineAndCharacterOfPosition(m).line,b=h;a.decorators&&(b=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,u)).line);var D=-1;if(p&&e.rangeContainsRange(r,c)&&(D=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=u.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,u),l=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,u,y);if(s!==i||r===l){var _=t.SmartIndenter.getBaseIndentation(y);return _>l?_:l}}return-1}(m,a.end,_,r,s),-1!==D&&(s=D)),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.endm){S.token.pos>m&&o.skipToStartOf(a);break}E(S,i,l,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,l,a),s}var C=163===a.kind?h:d,T=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(y,e)?y.indentSize:0;return o===r?{indentation:r===g?x:a.getIndentation(),delta:Math.min(y.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===g?{indentation:x,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,u)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,u)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,u)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,h,D,i,l,C);return n(a,v,h,b,T.indentation,T.delta),v=i,f&&202===c.kind&&-1===s&&(s=T.indentation),s}function E(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&N(t.leadingTrivia,n,v,i);var p=0,f=e.rangeContainsRange(r,t.token),m=u.getLineAndCharacterOfPosition(t.token.pos);if(f){var y=l(t.token),h=_;if(p=w(t.token,m,n,v,i),!y)if(0===p){var b=h&&u.getLineAndCharacterOfPosition(h.end).line;d=c&&m.line!==b}else d=1===p}if(t.trailingTrivia&&N(t.trailingTrivia,n,v,i),d){var D=f&&!l(t.token)?i.getIndentationForToken(m.line,t.token.kind,a,!!s):-1,S=!0;if(t.leadingTrivia){var E=i.getIndentationForComment(t.token.kind,D,a);S=A(t.leadingTrivia,E,S,(function(e){return P(e.pos,E,!1)}))}-1!==D&&S&&(P(t.token.pos,D,1===p),g=m.line,x=D)}o.advance(),v=n}}(n,n,S,E,i,a)}if(!o.isOnToken()){var C=t.SmartIndenter.nodeWillIndentChild(y,n,void 0,u,!1)?i+y.indentSize:i,T=o.getCurrentLeadingTrivia();T&&A(T,C,!1,(function(e){return w(e,u.getLineAndCharacterOfPosition(e.pos),n,n,void 0)}))}return!1!==y.trimTrailingWhitespace&&(m=_?_.end:r.pos,O(u.getLineAndCharacterOfPosition(m).line,u.getLineAndCharacterOfPosition(r.end).line+1,_)),D;function k(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(a.kind){case 278:case 279:case 277:case 226:return!1}break;case 22:case 23:if(193!==a.kind)return!1}return n!==t&&!(r.decorators&&i===function(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 255:return 84;case 256:return 118;case 254:return 98;case 258:return 258;case 170:return 135;case 171:return 147;case 167:if(t.asteriskToken)return 41;case 165:case 162:var r=e.getNameOfDeclaration(t);if(r)return r.kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e,n){t.SmartIndenter.shouldIndentChildNode(y,n,r,u)&&(i+=e?y.indentSize:-y.indentSize,a=t.SmartIndenter.shouldIndentChildNode(y,r)?y.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(y,r,e,u,!0)?a:0}}function A(t,n,i,a){for(var o=0,s=t;o0){var S=p(D,y);R(b,x.character,S)}else M(b,x.character)}}}else i||P(r.pos,n,!1)}function O(t,r,n){for(var i=t;io)){var s=L(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),M(s,o+1-s))}}}function L(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function M(t,r){r&&D.push(e.createTextChangeFromStartLength(t,r,""))}function R(t,r,n){(r||n)&&D.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 l=Math.floor(t/r.tabSize),u=t-l*r.tabSize,_=void 0;return a||(a=[]),void 0===a[l]?a[l]=_=e.repeatString("\t",l):_=a[l],u?_+e.repeatString(" ",u):_}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 u(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 u(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 v=s(g,e,i),b=v.line===t.line||d(g,e,t.line,i);if(y){var x=null===(f=p(e,i))||void 0===f?void 0:f[0],S=m(e,i,l,!!x&&u(x,i).line>v.line);if(-1!==S)return S+n;if(-1!==(S=c(e,g,t,b,i,l)))return S+n}D(l,g,e,i,o)&&!b&&(n+=l.indentSize);var E=_(g,e,t.line,i);g=(e=g).parent,t=E?i.getLineAndCharacterOfPosition(e.getStart(i)):v}return n+a(l)}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:h(n,a,o)}function l(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===u(a,i).line?2:0:0}function u(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),u(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:case 267:case 271:case 199:case 200: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)}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 h(a,n,i);a=u(t[o],n)}return-1}function h(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(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 b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),l=c.column,u=c.character;return 0===l?l:42===t.text.charCodeAt(s+u)?l-1:l}(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 b(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 h=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);return h&&!e.rangeContainsRange(h,c)?g(h,n,i)+i.indentSize:function(t,r,n,i,s,c){for(var _,d=n;d;){if(e.positionBelongsToNode(d,r,t)&&D(c,d,_,t,!0)){var p=u(d,t),f=l(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=u(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=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=D})((t=e.formatting||(e.formatting={})).SmartIndenter||(t.SmartIndenter={}))}(u||(u={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(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,l;function u(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=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(l=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var _,d={leadingTriviaOption:c.Exclude,trailingTriviaOption:l.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 l=r.getStart(t),_=e.getLineStartPositionForPosition(l,t);return e.rangeContainsPosition(r,_)?_:l}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,h=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,g)+y,t);return h=u(t.text,h),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,h),t)}function g(t,r,n){var i=r.end;if(n.trailingTriviaOption===l.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,u.end)>o)return e.skipTrivia(t.text,u.end,!0,!0)}}}function m(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===l.Exclude)return a;if(o===l.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a));return(null===(i=null==s?void 0:s[s.length-1])||void 0===i?void 0:i.end)||a}var c=g(t,r,n);if(c)return c;var u=e.skipTrivia(t.text,a,!0);return u===a||o!==l.Include&&!e.isLineBreak(t.text.charCodeAt(u-1))?a:u}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"}(_||(_={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var h,v,b=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n=t.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(t.statements.length&&(void 0===u&&(u=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),u",joiner:", "})},t.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)},t.prototype.insertNodeAtConstructorStart=function(t,r,n){var a=e.firstOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeBefore(t,a,n):this.replaceConstructorBody(t,r,i([n],r.body.statements,!0))},t.prototype.insertNodeAtConstructorStartAfterSuperCall=function(t,r,n){var a=e.find(r.body.statements,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}));a&&r.body.multiLine?this.insertNodeAfter(t,a,n):this.replaceConstructorBody(t,r,i(i([],r.body.statements,!0),[n],!1))},t.prototype.insertNodeAtConstructorEnd=function(t,r,n){var a=e.lastOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeAfter(t,a,n):this.replaceConstructorBody(t,r,i(i([],r.body.statements,!0),[n],!1))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},t.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})},t.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.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,D(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=D(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 E(t){var n=e.visitEachChild(t,E,e.nullTransformationContext,C,E),i=e.nodeIsSynthesized(n)?n:Object.create(n);return e.setTextRangePosEnd(i,r(t),o(t)),i}function C(t,n,i,a,s){var c=e.visitNodes(t,n,i,a,s);if(!c)return c;var l=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,r(t),o(t)),l}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:x(n,i),end:o===a.length-1?m(n,i,{}):x(n,a[o+1])})):k(t,n,i)}t.ChangeTracker=b,t.getNewFileText=function(e,t,r,n){return h.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(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,i){var a=function(t){var r=0,i=e.createTextWriter(t);function a(t,n){if(n||!function(t){return e.skipTrivia(t,0)===t.length}(t)){r=i.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;r-=a}}return{onBeforeEmitNode:function(e){e&&n(e,r)},onAfterEmitNode:function(e){e&&s(e,r)},onBeforeEmitNodeArray:function(e){e&&n(e,r)},onAfterEmitNodeArray:function(e){e&&s(e,r)},onBeforeEmitToken:function(e){e&&n(e,r)},onAfterEmitToken:function(e){e&&s(e,r)},write:function(e){i.write(e),a(e,!1)},writeComment:function(e){i.writeComment(e)},writeKeyword:function(e){i.writeKeyword(e),a(e,!1)},writeOperator:function(e){i.writeOperator(e),a(e,!1)},writePunctuation:function(e){i.writePunctuation(e),a(e,!1)},writeTrailingSemicolon:function(e){i.writeTrailingSemicolon(e),a(e,!1)},writeParameter:function(e){i.writeParameter(e),a(e,!1)},writeProperty:function(e){i.writeProperty(e),a(e,!1)},writeSpace:function(e){i.writeSpace(e),a(e,!1)},writeStringLiteral:function(e){i.writeStringLiteral(e),a(e,!1)},writeSymbol:function(e,t){i.writeSymbol(e,t),a(e,!1)},writeLine:function(e){i.writeLine(e)},increaseIndent:function(){i.increaseIndent()},decreaseIndent:function(){i.decreaseIndent()},getText:function(){return i.getText()},rawWrite:function(e){i.rawWrite(e),a(e,!1)},writeLiteral:function(e){i.writeLiteral(e),a(e,!0)},getTextPos:function(){return i.getTextPos()},getLine:function(){return i.getLine()},getColumn:function(){return i.getColumn()},getIndent:function(){return i.getIndent()},isAtStartOfLine:function(){return i.isAtStartOfLine()},hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:function(){i.clear(),r=0}}}(i),o="\n"===i?1:0;return e.createPrinter({newLine:o,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},a).writeNode(4,t,r,a),{text:a.getText(),node:E(t)}}t.getTextChangesFromChanges=function(t,r,n,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})),l=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)}))},u=0;u0?{fileName:s.fileName,textChanges:d}:void 0}))},t.newFileChanges=function(t,n,i,a,o){var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=i}(h||(h={})),t.applyChanges=S,t.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)if(1===a.declarations.length){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)}}else A(t,r,n,i);else t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n))}(t,n,i,a);break;case 161:A(t,n,i,a);break;case 268:var u=a.parent;1===u.elements.length?r(t,i,u):A(t,n,i,a);break;case 266:r(t,i,a);break;case 26:k(t,i,a,{trailingTriviaOption:l.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)}}}(v||(v={})),t.deleteNode=k}(e.textChanges||(e.textChanges={}))}(u||(u={})),function(e){!function(t){var r=e.createMultiMap(),n=new e.Map;function o(t){return e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t)}function s(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function l(e,t){return{changes:e,commands:t}}function u(t,r,n){for(var i=0,a=_(t);i1)break}var u=i<2;return function(e){var t=e.fixId,r=e.fixAllDescription,n=c(e,["fixId","fixAllDescription"]);return u?n:a(a({},n),{fixId:t,fixAllDescription:r})}}(r,n))}))},t.getAllFixes=function(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=l,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return l(e.textChanges.ChangeTracker.with(t,(function(e){return u(t,r,(function(t){return n(e,t,i)}))})),0===i.length?void 0:i)},t.eachDiagnostic=u}(e.codefix||(e.codefix={}))}(u||(u={})),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)}}(u||(u={})),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={}))}(u||(u={})),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)]}})}(u||(u={})),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))){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,l=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)),u=a(r,l&&l.relatedInformation&&e.find(l.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(u)return[i(t,u,(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})),l=a(o,c);if(l)return i(r,l,(function(e){return e(t),[]}),s)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingAwait",n=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=i([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,n],a,!0);function s(r,n,i,a,s,c){var l=r.sourceFile,d=r.program,p=r.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)&&u(s)?s:void 0}function u(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,i,o,s,c){if(e.isBinaryExpression(s))for(var l=0,u=[s.left,s.right];l0)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={}))}(u||(u={})),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={}))}(u||(u={})),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={}))}(u||(u={})),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={}))}(u||(u={})),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,u),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=l(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];1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right)&&(n=l(r.parent.right.symbol,void 0))&&i.push.apply(i,n)}else{var n;(n=l(t,[e.factory.createToken(124)]))&&i.push.apply(i,n)}})),i;function l(n,i){var l=[];if(!(8192&n.flags||4096&n.flags))return l;var u,_,d=n.valueDeclaration,p=d.parent,f=p.right;if(u=d,_=f,!(e.isAccessExpression(u)?e.isPropertyAccessExpression(u)&&o(u)||e.isFunctionLike(_):e.every(u.properties,(function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))}))))return l;var g=p.parent&&236===p.parent.kind?p.parent:p;if(t.delete(r,g),!f)return l.push(e.factory.createPropertyDeclaration([],i,n.name,void 0,void 0,void 0)),l;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;return e.isNumericLiteral(i)?i:e.isStringLiteralLike(i)?e.isIdentifierText(i.text,r.target)?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===n):i:void 0}(d,c,m);return y?v(l,f,y):l}if(e.isObjectLiteralExpression(f))return e.flatMap(f.properties,(function(t){return e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)?l.concat(t):e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)?v(l,t.initializer,t.name):o(t)?l:[]}));if(e.isSourceFileJS(r))return l;if(!e.isPropertyAccessExpression(d))return l;var h=e.factory.createPropertyDeclaration(void 0,i,d.name,void 0,void 0,f);return e.copyLeadingComments(p.parent,h,r),l.push(h),l;function v(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 l=e.concatenate(i,a(n,130)),u=e.factory.createMethodDeclaration(void 0,l,void 0,o,void 0,void 0,n.parameters,void 0,s);return e.copyLeadingComments(p,u,r),t.concat(u)}(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={}))}(u||(u={})),function(e){!function(t){var r,n="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)):l(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),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||n.has(l)){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=u(o,a);i.set(l,p.identifier),n.set(l,p),a.add(_,s)}else{var f=e.getSynthesizedDeepClone(o);n.set(l,D(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),h=u(m,a);n.set(l,h),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 h=a.modifiers?a.modifiers.end:a.decorators?e.skipTrivia(r.text,a.decorators.end):a.getStart(r),v=a.modifiers?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,h,130,v);for(var b=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)}))},x=0,S=g;x0)return O;if(k){if(I=m(a.checker,k,T),E(i,a))return f(I,null===(d=i.typeArguments)||void 0===d?void 0:d[0]);var L=p(r,I,void 0);return r&&r.types.push(k),L}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 h(t,r,n){for(var i=[],a=0,o=r;a0)return}else e.isFunctionLike(a)||e.forEachChild(a,r)}))}return i}function v(t,r){var n,i=[];if(e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){return e.isIdentifier(r)?a(r):function(t,r,n){return void 0===r&&(r=e.emptyArray),void 0===n&&(n=[]),{kind:1,bindingPattern:t,elements:r,types:n}}(r,e.flatMap(r.elements,(function(r){return e.isOmittedExpression(r)?[]:[t(r.name)]})))}(t.parameters[0].name)):e.isIdentifier(t)?n=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(n=a(t.name)),n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n,a=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}((n=t).original?n.original:n);return a&&r.synthNamesMap.get(e.getSymbolId(a).toString())||D(t,i)}}function b(t){return!t||(S(t)?!t.identifier.text:e.every(t.elements,b))}function x(e){return S(e)?e.identifier:e.bindingPattern}function D(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1}}function S(e){return 0===e.kind}function E(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(e.getNodeId(t.original))}t.registerCodeFix({errorCodes:a,getCodeActions:function(r){o=!0;var i=e.textChanges.ChangeTracker.with(r,(function(e){return s(e,r.sourceFile,r.span.start,r.program.getTypeChecker())}));return o?[t.createCodeFixAction(n,i,e.Diagnostics.Convert_to_async_function,n,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[n],getAllCodeActions:function(e){return t.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"}(r||(r={}))}(e.codefix||(e.codefix={}))}(u||(u={})),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(u.getStart(t),_.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.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 u,_=n.declarationList,d=!1,m=e.map(_.declarations,(function(n){var i=n.name,u=n.initializer;if(u){if(e.isExportsOrModuleExportsOrAlias(r,u))return d=!0,y([]);if(e.isRequireCall(u,!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 u=l(t.moduleSpecifierToValidIdentifier(n.text,o),a);return y([e.makeImport(e.factory.createIdentifier(u),void 0,n,s),g(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(u))]);case 79:return function(t,r,n,i,a){for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,u=!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,l.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,l=e.textChanges.ChangeTracker.with(n,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,l,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={}))}(u||(u={})),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]})}(u||(u={})),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 l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(a,l)}else if(e.isQualifiedName(o)&&o.right===a){var u=c.getSymbolAtLocation(o.left);u&&1536&u.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,u))}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)){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),h=e.getTextOfNode(a);e.Debug.assert(void 0!==h,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,h,function(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),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 l=c.node,u=c.suggestedSymbol,_=n.host.getCompilationSettings().target,d=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,l,u,_)}));return[t.createCodeFixAction("spelling",d,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],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={}))}(u||(u={})),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 l(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)&&u(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(u(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 l=e.first(o.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)&&(s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]),u(t,n,c(t,l.label,l.statement.expression),i,a)))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:l}}}}function u(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 l(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 l(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 u=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(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return l(t,u,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,l=i.errorCode,u=_(o.getTypeChecker(),s,c,l);if(u)return u.kind===r.MissingReturnStatement?e.append([g(i,u.expression,u.statement)],e.isArrowFunction(u.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,u.declaration,u.expression,u.commentSource):void 0):[m(i,u.declaration,u.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={}))}(u||(u={})),function(e){!function(t){var r,n="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 l(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}}})}(u||(u={})),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={}))}(u||(u={})),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={}))}(u||(u={})),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 l(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(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 l=t.parent;if(e.isParameter(l))!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 l=c.parameters.indexOf(n),u=e.isMethodDeclaration(c)?c.name:c,_=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,u,a,i,o);if(_)for(var d=0,p=_;dl,v=e.isPropertyAccessExpression(m.node.parent)&&e.isSuperKeyword(m.node.parent.expression)&&e.isCallExpression(m.node.parent.parent)&&m.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(m.node.parent)||e.isMethodSignature(m.node.parent))&&m.node.parent!==n.parent&&m.node.parent.parameters.length>l;if(y||v||b)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)||h(c,n,s);case 211:case 212:return h(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,l,i,a,o,s,c);else if(!(c&&e.isIdentifier(t)&&e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,n))){var u=e.isImportClause(l)?t:e.isComputedPropertyName(l)?l.parent:l;e.Debug.assert(u!==n,"should not delete whole source file"),r.delete(n,u)}}(r,n,t,i,a,o,s,c),e.isIdentifier(r)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(r,i,t,(function(r){var i;e.isPropertyAccessExpression(r.parent)&&r.parent.name===r&&(r=r.parent),!c&&(i=r,(e.isBinaryExpression(i.parent)&&i.parent.left===i||(e.isPostfixUnaryExpression(i.parent)||e.isPrefixUnaryExpression(i.parent))&&i.parent.operand===i)&&e.isExpressionStatement(i.parent.parent))&&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 h(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,h=i.program,v=i.cancellationToken,b=h.getTypeChecker(),x=h.getSourceFiles(),D=e.getTokenAtPosition(y,i.span.start);if(e.isJSDocTemplateTag(D))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,D)})),e.Diagnostics.Remove_template_tag)];if(29===D.kind)return[l(E=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,y,D)})),e.Diagnostics.Remove_type_parameters)];var S=d(D);if(S){var E=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,S)}));return[t.createCodeFixAction(r,E,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],a,e.Diagnostics.Delete_all_unused_imports)]}if(_(D)&&(N=e.textChanges.ChangeTracker.with(i,(function(e){return m(y,D,e,b,x,h,v,!1)}))).length)return[t.createCodeFixAction(r,N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,D.getText(y)],a,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(D.parent)||e.isArrayBindingPattern(D.parent)){if(e.isParameter(D.parent.parent)){var C=D.parent.elements,T=[C.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(C,(function(e){return e.getText(y)})).join(", ")];return[l(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,D.parent)})),T)]}return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,D.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(p(y,D))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return f(e,y,D.parent)})),e.Diagnostics.Remove_variable_statement)];var k=[];if(136===D.kind){E=e.textChanges.ChangeTracker.with(i,(function(e){return c(e,y,D)}));var A=e.cast(D.parent,e.isInferTypeNode).typeParameter.name.text;k.push(t.createCodeFixAction(r,E,[e.Diagnostics.Replace_infer_0_with_unknown,A],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var N;(N=e.textChanges.ChangeTracker.with(i,(function(e){return m(y,D,e,b,x,h,v,!1)}))).length&&(A=e.isComputedPropertyName(D.parent)?D.parent:D,k.push(l(N,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,A.getText(y)])))}var w=e.textChanges.ChangeTracker.with(i,(function(e){return g(e,s,y,D)}));return w.length&&k.push(t.createCodeFixAction(r,w,[e.Diagnostics.Prefix_0_with_an_underscore,D.getText(y)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),k},fixIds:[n,i,a,o],getAllCodeActions:function(r){var l=r.sourceFile,h=r.program,v=r.cancellationToken,b=h.getTypeChecker(),x=h.getSourceFiles();return t.codeFixAll(r,s,(function(t,s){var D=e.getTokenAtPosition(l,s.start);switch(r.fixId){case n:g(t,s.code,l,D);break;case a:var S=d(D);S?t.delete(l,S):_(D)&&m(l,D,t,b,x,h,v,!0);break;case i:if(136===D.kind||_(D))break;if(e.isJSDocTemplateTag(D))t.delete(l,D);else if(29===D.kind)u(t,l,D);else if(e.isObjectBindingPattern(D.parent)){if(D.parent.parent.initializer)break;e.isParameter(D.parent.parent)&&!y(D.parent.parent,b,x)||t.delete(l,D.parent.parent)}else{if(e.isArrayBindingPattern(D.parent.parent)&&D.parent.parent.parent.initializer)break;p(l,D)?f(t,l,D.parent):m(l,D,t,b,x,h,v,!0)}break;case o:136===D.kind&&c(t,l,D);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),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 l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 237:if(l.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,l)}if(e.isBlock(s.parent)){var u=n+i,_=e.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;nM.length?j(E,g.getSignatureFromDeclaration(p[p.length-1]),b,h,s(E)):(e.Debug.assert(p.length===M.length,"Declarations and signatures should match count"),_(function(t,n,i,a,c,l,u,_){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 h=d.parameters.length-(e.signatureHasRestParameter(d)?1:0),v=d.parameters.map((function(e){return e.name})),b=o(h,v,void 0,p,!1);if(f){var x=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(129)),D=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),v[h]||"rest",h>=p?e.factory.createToken(57):void 0,x,void 0);b.push(D)}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,void 0,a,o,s(c))}(u,c,l,0,b,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,M,h,D,b,E))))}}function j(e,t,r,a,o){var s=i(167,c,e,t,o,a,r,D,n,u);s&&_(s)}}function i(t,n,i,a,o,s,c,l,u,_){var p=n.program,g=p.getTypeChecker(),m=e.getEmitScriptTarget(p.getCompilerOptions()),y=1073742081|(0===i?268435456:0),h=g.signatureToSignatureDeclaration(a,t,u,y,r(n));if(h){var v=h.typeParameters,b=h.parameters,x=h.type;if(_){if(v){var D=e.sameMap(v,(function(t){var r,n=t.constraint,i=t.default;return n&&(r=d(n,m))&&(n=r.typeNode,f(_,r.symbols)),i&&(r=d(i,m))&&(i=r.typeNode,f(_,r.symbols)),e.factory.updateTypeParameterDeclaration(t,t.name,n,i)}));v!==D&&(v=e.setTextRange(e.factory.createNodeArray(D,v.hasTrailingComma),v))}var S=e.sameMap(b,(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(b!==S&&(b=e.setTextRange(e.factory.createNodeArray(S,b.hasTrailingComma),b)),x){var E=d(x,m);E&&(x=E.typeNode,f(_,E.symbols))}}var C=l?e.factory.createToken(57):void 0,T=h.asteriskToken;return e.isFunctionExpression(h)?e.factory.updateFunctionExpression(h,c,h.asteriskToken,e.tryCast(s,e.isIdentifier),v,b,x,null!=o?o:h.body):e.isArrowFunction(h)?e.factory.updateArrowFunction(h,c,v,b,x,h.equalsGreaterThanToken,null!=o?o:h.body):e.isMethodDeclaration(h)?e.factory.updateMethodDeclaration(h,void 0,c,T,null!=s?s:e.factory.createIdentifier(""),C,v,b,x,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 l=d(c,a);l&&(f(r,l.symbols),c=l.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 l(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={}))}(u||(u={})),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),l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,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={}))}(u||(u={})),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){for(var r=[],n=t;;){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 l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,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={}))}(u||(u={})),function(e){!function(t){var r="fixConvertToMappedObjectType",n=[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(t,r,n){var a,o,s=n.indexSignature,c=n.container,l=(e.isInterfaceDeclaration(c)?c.members:c.type.members).filter((function(t){return!e.isIndexSignatureDeclaration(t)})),u=e.first(s.parameters),_=e.factory.createTypeParameterDeclaration(e.cast(u.name,e.isIdentifier),u.type),d=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(s)?e.factory.createModifier(143):void 0,_,void 0,s.questionToken,s.type),p=e.factory.createIntersectionTypeNode(i(i(i([],e.getAllSuperTypeNodes(c),!0),[d],!1),l.length?[e.factory.createTypeLiteralNode(l)]:e.emptyArray,!0));t.replaceNode(r,c,(a=c,o=p,e.factory.createTypeAliasDeclaration(a.decorators,a.modifiers,a.name,a.typeParameters,o)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,s=n.span,c=a(i,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return o(e,i,c)})),u=e.idText(c.container.name);return[t.createCodeFixAction(r,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],r,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&o(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),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]})}(u||(u={})),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={}))}(u||(u={})),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={}))}(u||(u={})),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]})}(u||(u={})),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={}))}(u||(u={})),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),l=null==c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null==a?void 0:a.has(l))){null==a||a.add(l);var u=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}}(l.parent.parent);if(e.some(u)){var _=u[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,l.parent.parent);e.isInJSFile(l)?(!g||3&g.flags)&&(t.insertText(r,l.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,l.parent.parent.pos),"/** @type {Promise} */(")):(!g||2&g.flags)&&t.insertText(r,l.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={}))}(u||(u={})),function(e){!function(t){var r="Convert export",n={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},i={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,l=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?513:0),u=!!(512&l);if(!(1&l)||!u&&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:u,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(!u,"Can't have a default flag here"),d(f.name)||{exportNode:p,exportName:f.name,wasDefault:u,exportingModuleSymbol:c};case 269:var g;if((g=s).isExportEquals)return;return d(g.expression)||{exportNode:g,exportName:g.expression,wasDefault:u,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(r,{kinds:[n.kind,i.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c)){var l=c.wasDefault?n:i;return[{name:r,description:l.description,actions:[l]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[a(a({},n),{notApplicableReason:c.error}),a(a({},i),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(r,a){e.Debug.assert(a===n.name||a===i.name,"Unexpected action name");var l=o(r);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info");var u=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 l=o.expression,u=c(l.text,l.text);n.replaceNode(t,o,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([u])))}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,l=r.exportingModuleSymbol,u=t.getTypeChecker(),_=e.Debug.checkDefined(u.getSymbolAtLocation(o),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,i,_,l,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 l=c.namedBindings;if(l)if(266===l.kind){n.deleteRange(t,{pos:r.getStart(t),end:l.getStart(t)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,_=e.makeImport(void 0,[s(i,r.text)],c.parent.moduleSpecifier,u);n.insertNodeAfter(t,c.parent,_)}else n.delete(t,r),n.insertNodeAtEndOfList(t,l.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,l,t,r.cancellationToken)}));return{edits:u,renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){var r="Convert import",n={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},i={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()=l.pos?d.getEnd():l.getEnd()),g=o?function(e){for(;e.parent;){if(c(e)&&!c(e.parent))return e;e=e.parent}}(l):function(e,t){for(;e.parent;){if(c(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(l,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=u(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=u(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 u(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(n,{kinds:[o.kind],getAvailableActions:function(r){var s=l(r,"invoked"===r.triggerReason);return s?t.isRefactorErrorInfo(s)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[a(a({},o),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:n,description:i,actions:[o]}]:e.emptyArray},getEditsForAction:function(r,n){var i=l(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,l=s[s.length-1],u=f(r,o,s);u&&(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u)||e.isCallExpression(u))&&(e.isBinaryExpression(c)?n.replaceNodeRange(t,l,o,u):e.isConditionalExpression(c)&&n.replaceNode(t,c,e.factory.createBinaryExpression(u,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={}))}(u||(u={})),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 l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(function(r){return e.getSourceFileOfNode(r)===t}))&&o(l[0])){var u=l[0].kind;if(e.every(l,(function(e){return e.kind===u}))){var _=l;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(l)){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],l=c;switch(c.kind){case 166:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,u(a),c.type);break;case 167:l=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,u(a),c.type,c.body);break;case 172:l=e.factory.updateCallSignature(c,c.typeParameters,u(a),c.type);break;case 169:l=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,u(a),c.body);break;case 173:l=e.factory.updateConstructSignature(c,c.typeParameters,u(a),c.type);break;case 254:l=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,u(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l!==c)return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNodeRange(r,a[0],a[a.length-1],l)}))}}function u(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,_)))])}function _(t){var r=e.map(t.parameters,d);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(function(t){return!!e.length(e.getSyntheticLeadingComments(t))}))?0:1)}function d(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){return s(t.file,t.startPosition,t.program)?[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(u||(u={})),function(e){var t;(function(r){var n,i,o,s,c="Extract Symbol",l={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},u={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function _(r){var n=r.kind,i=p(r.file,e.getRefactorContextSpan(r),"invoked"===r.triggerReason),o=i.targetRange;if(void 0===o){if(!i.errors||0===i.errors.length||!r.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var s=[];return t.refactorKindBeginsWith(u.kind,n)&&s.push({name:c,description:u.description,actions:[a(a({},u),{notApplicableReason:N(i.errors)})]}),t.refactorKindBeginsWith(l.kind,n)&&s.push({name:c,description:l.description,actions:[a(a({},l),{notApplicableReason:N(i.errors)})]}),s}var _=function(t,r){var n=m(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope,c=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),l=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===l?(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===l?(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,l]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),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]}}}));return c}(o,r);if(void 0===_)return e.emptyArray;for(var d,f,g=[],y=new e.Map,h=[],v=new e.Map,b=0,x=0,D=_;x0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(t)]);if(s||i.size){var u=e.visitNodes(l,(function t(a){if(!c&&e.isReturnStatement(a)&&s){var l=v(r,n);return a.expression&&(o||(o="__return"),l.unshift(e.factory.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===l.length?e.factory.createReturnStatement(l[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(l))}var u=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var _=i.get(e.getNodeId(a).toString()),d=_?e.getSynthesizedDeepClone(_):e.visitEachChild(a,t,e.nullTransformationContext);return c=u,d})).slice();if(s&&!a&&e.isStatement(t)){var _=v(r,n);1===_.length?u.push(e.factory.createReturnStatement(_[0].name)):u.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(_)))}return{body:e.factory.createBlock(u,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0}}(t,a,l,d,!!(o.facts&i.HasReturn)),I=P.body,O=P.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(I),e.isClassLike(r)){var L=D?[]:[e.factory.createModifier(121)];o.facts&i.InStaticRegion&&L.push(e.factory.createModifier(124)),o.facts&i.IsAsyncFunction&&L.push(e.factory.createModifier(130)),F=e.factory.createMethodDeclaration(void 0,L.length?L:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,E,void 0,A,C,c,I)}else F=e.factory.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.factory.createToken(130)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,E,A,C,c,I);var M=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)}))}((b(o.range)?e.last(o.range):o.range).end,r);R?M.insertNodeBefore(s.file,R,F,!0):M.insertNodeAtEndOfScope(s.file,r,F),g.writeFixes(M);var B=[],j=function(t,r,n){var a=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a}(r,o,x),J=e.factory.createCallExpression(j,N,T);if(o.facts&i.IsGenerator&&(J=e.factory.createYieldExpression(e.factory.createToken(41),J)),o.facts&i.IsAsyncFunction&&(J=e.factory.createAwaitExpression(J)),S(t)&&(J=e.factory.createJsxExpression(void 0,J)),a.length&&!l)if(e.Debug.assert(!O,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var V=a[0];B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(V.name),void 0,e.getSynthesizedDeepClone(V.type),J)],V.parent.flags)))}else{for(var U=[],K=[],z=a[0].parent.flags,G=!1,W=0,q=a;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,b,h,!0),m.replaceNode(o.file,t,v)}else{var x=e.factory.createVariableDeclaration(_,void 0,p,f),E=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(E)m.insertNodeBefore(o.file,E,x),v=e.factory.createIdentifier(_),m.replaceNode(o.file,t,v);else if(236===t.parent.kind&&r===e.findAncestor(t,g)){var C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2));m.replaceNode(o.file,t.parent,C)}else C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2)),b=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(D(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),0===b.pos?m.insertNodeAtTopOfFile(o.file,C,!1):m.insertNodeBefore(o.file,b,C,!1),236===t.parent.kind?m.delete(o.file,t.parent):(v=e.factory.createIdentifier(_),S(t)&&(v=e.factory.createJsxExpression(void 0,v)),m.replaceNode(o.file,t,v))}var T=m.getChanges(),k=t.getSourceFile().fileName;return{renameFilename:k,renameLocation:e.getRenameLocation(T,k,_,!0),edits:T}}(e.isExpression(c)?c:c.statements[0].expression,o[n],l[n],t.facts,r)}(n,t,o);e.Debug.fail("Unrecognized action name")}function p(t,r,a){void 0===a&&(a=!0);var o=r.length;if(0===o&&!a)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractEmpty)]};var s=0===o&&a,c=e.findFirstNonJsxWhitespaceToken(t,r.start),l=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),u=c&&l&&a?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,l,t):r,_=s?function(t){return e.findAncestor(t,(function(t){return t.parent&&x(t)&&!e.isBinaryExpression(t.parent)}))}(c):e.getParentNodeInSpan(c,t,u),d=s?_:e.getParentNodeInSpan(l,t,u),p=[],g=i.None;if(!_||!d)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(e.isJSDoc(_))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractJSDoc)]};if(_.parent!==d.parent)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(_!==d){if(!D(_.parent))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};for(var m=[],y=0,h=_.parent.statements;y=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else g|=i.UsesThis;break;case 212:e.forEachChild(a,(function t(r){if(e.isThis(r))g|=i.UsesThis;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 255:case 254:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 224:case 211:case 167:case 169:case 170:case 171:return!1}var _=l;switch(a.kind){case 237:case 250:l=0;break;case 233:a.parent&&250===a.parent.kind&&a.parent.finallyBlock===a&&(l=4);break;case 288:case 287:l|=1;break;default:e.isIterationStatement(a,!1)&&(l|=3)}switch(a.kind){case 190:case 108:g|=i.UsesThis;break;case 248:var d=a.label;(c||(c=[])).push(d.escapedText),e.forEachChild(a,t),c.pop();break;case 244:case 243:(d=a.label)?e.contains(c,d.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):l&(244===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 216:g|=i.IsAsyncFunction;break;case 222:g|=i.IsGenerator;break;case 245:4&l?g|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}l=_}(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 a=r.file,o=function(t){var r=b(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,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),s=function(t,r){return b(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}(t,a),c=function(t,r,a,o,s,c){var l,u,_=new e.Map,d=[],p=[],f=[],g=[],m=[],y=new e.Map,h=[],v=b(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===v){var x=t.range,D=e.first(x).getStart(),S=e.last(x).end;u=e.createFileDiagnostic(o,D,S-D,n.expressionExpected)}else 147456&s.getTypeAtLocation(v).flags&&(u=e.createDiagnosticForNode(v,n.uselessConstantType));for(var E=0,C=r;E=l)return m;if(N.set(m,l),y){for(var h=0,v=d;h0){for(var I=new e.Map,O=0,L=F;void 0!==L&&O=0)){var i=e.isIdentifier(n)?z(n):s.getSymbolAtLocation(n);if(i){var a=e.find(m,(function(e){return e.symbol===i}));if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();y.has(o)||(h.push(a),y.set(o,!0))}else l=l||a}e.forEachChild(n,r)}}))}for(var V=function(r){var i=d[r];if(r>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=b(t.range)?t.range[0]:t.range;g[r].push(e.createDiagnosticForNode(a,n.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(b(t.range)||0===h.length,"No variable declarations expected if something was extracted"),s&&!b(t.range)){var c=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[r].push(c),g[r].push(c)}else o&&r>0?(c=e.createDiagnosticForNode(o,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor),f[r].push(c),g[r].push(c)):l&&(c=e.createDiagnosticForNode(l,n.cannotExtractExportedEntity),f[r].push(c),g[r].push(c))},U=0;Un.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 g(t)&&f(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)&&f(t,r)}return f(t,r);case 169:return e.isClassDeclaration(t.parent)?g(t.parent)&&f(t,r):m(t.parent.parent)&&f(t,r);case 211:case 212:return m(t.parent)}return!1}(a,n)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function f(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function g(t){return!!t.name||!!e.findModifier(t,88)}function m(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function y(t){return t.length>0&&e.isThis(t[0].name)}function h(t){return y(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function v(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,a,o=(i=x(n[r]),a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(o.name),e.isPropertyAssignment(o)&&e.suppressLeadingAndTrailingTrivia(o.initializer),e.copyComments(t,o),o}));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),l=e.map(c,(function(t){var r=e.factory.createBindingElement(void 0,void 0,x(t),e.isRestParameter(t)&&g(t)?e.factory.createArrayLiteralExpression():t.initializer);return e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer),r})),u=e.factory.createObjectBindingPattern(l),_=(i=c,a=e.map(i,(function(t){var i,a,o=t.type;o||!t.initializer&&!e.isRestParameter(t)||(i=t,a=s.getTypeAtLocation(i),o=e.getTypeNodeIfAccessible(a,i,r,n));var c=e.factory.createPropertySignature(void 0,x(t),g(t)?e.factory.createToken(57):t.questionToken,o);return e.suppressLeadingAndTrailingTrivia(c),e.copyComments(t.name,c.name),t.type&&c.type&&e.copyComments(t.type,c.type),c})),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,g)&&(o=e.factory.createObjectLiteralExpression());var d=e.factory.createParameterDeclaration(void 0,void 0,void 0,u,void 0,_,o);if(y(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){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)}t.registerRefactor(n,{kinds:[o.kind],getEditsForAction:function(t,r){e.Debug.assert(r===n,"Unexpected action name");var a=t.file,o=t.startPosition,f=t.program,g=t.cancellationToken,m=t.host,y=p(a,o,f.getTypeChecker());if(y&&g){var h=function(t,r,n){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)}}(t),o=e.isConstructorDeclaration(t)?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]}}(t):[],p=e.deduplicate(i(i([],a,!0),o,!0),e.equateValues),f=r.getTypeChecker(),g=function(r){for(var n={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:n,valid:!0},p=e.map(a,m),g=e.map(o,m),y=e.isConstructorDeclaration(t),h=e.map(a,(function(e){return s(e,f)})),v=0,b=r;v0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}}}(n,r,i),o=d(0,n),s=o[0],c=o[1],l=o[2],u=o[3];if(s===n.length){var f=e.factory.createNoSubstitutionTemplateLiteral(c,l);return a(u,f),f}var g=[],m=e.factory.createTemplateHead(c,l);a(u,m);for(var y,h=function(t){var r=function(t){return e.isParenthesizedExpression(t)&&(p(t),t=t.expression),t}(n[t]);i(t,r);var o=d(t+1,n),s=o[0],c=o[1],l=o[2],u=o[3],f=(t=s-1)==n.length-1;if(e.isTemplateExpression(r)){var m=e.map(r.templateSpans,(function(t,n){p(t);var i=n===r.templateSpans.length-1,a=t.literal.text+(i?c:""),o=_(t.literal)+(i?l:"");return e.factory.createTemplateSpan(t.expression,f?e.factory.createTemplateTail(a,o):e.factory.createTemplateMiddle(a,o))}));g.push.apply(g,m)}else{var h=f?e.factory.createTemplateTail(c,l):e.factory.createTemplateMiddle(c,l);a(u,h),g.push(e.factory.createTemplateSpan(r,h))}y=t},v=s;v1)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(n,{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),void((u=(l=e.isArrowFunction(o)&&void 0===c)?e.first(o.parameters):c)&&(l&&(a.insertNodeBefore(i,u,e.factory.createToken(20)),a.insertNodeAfter(i,u,e.factory.createToken(21))),a.insertNodeAt(i,u.end,s,{prefix:": "})));var i,a,o,s,c,l,u}))}},getAvailableActions:function(r){var c=s(r);return c?t.isRefactorErrorInfo(c)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[a(a({},o),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:n,description:i,actions:[o]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).inferFunctionReturnType||(t.inferFunctionReturnType={}))}(u||(u={})),function(e){function t(t,n,i,a){var o=e.isNodeKind(t)?new r(t,n,i):79===t?new u(79,n,i):80===t?new _(80,n,i):new c(t,n,i);return o.parent=a,o.flags=25358336&a.flags,o}e.servicesVersion="0.8";var r=function(){function r(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 r.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")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){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(r,i){if(!e.isNodeKind(r.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild((function(e){a.push(e)})),a;e.scanner.setText((i||r.getSourceFile()).text);var o=r.pos,s=function(e){n(a,o,e.pos,r),a.push(e),o=e.end};return e.forEach(r.jsDoc,s),o=r.pos,r.forEachChild(s,(function(e){n(a,o,e.pos,r),a.push(function(e,r){var i=t(343,e.pos,e.end,r);i._children=[];for(var a=e.pos,o=0,s=e;o342}));return n.kind<159?n:n.getFirstToken(t)}},r.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)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(r,n,i,a){for(e.scanner.setTextPos(n);n=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);return r||t.set(e,r=[]),r}(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.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 u=a;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,i);break}u.initializer&&i(u.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}(r),h=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 v(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!b(n)){r=!1;break}if(r)return t;var i={};for(var n in t)e.hasProperty(t,n)&&(i[b(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]);return i}function b(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=v,e.displayPartsToString=function(t){return t?e.map(t,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=function(){return{target:1,jsx:1}},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=A;var N=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],w=i(i([],N,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function F(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}}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function P(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)}));return i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a))?[o]:0===s.length?e.mapDefined(n.types,(function(e){return e.getProperty(a)})):s}e.createLanguageService=function(t,r,n){var o,s;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),s=void 0===n?e.LanguageServiceMode.Semantic:"boolean"==typeof n?n?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:n;var c,l,u=new D(t),_=0,d=t.getCancellationToken?new k(t.getCancellationToken()):T,p=t.getCurrentDirectory();function f(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(t.getLocalizedDiagnosticMessages());var g=e.hostUsesCaseSensitiveFileNames(t),m=e.createGetCanonicalFileName(g),y=e.getSourceMapper({useCaseSensitiveFileNames:function(){return g},getCurrentDirectory:function(){return p},getProgram:S,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:f});function h(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 b(){var n,i,a;if(e.Debug.assert(s!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var o=t.getProjectVersion();if(o){if(l===o&&!(null===(n=t.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call(t)))return;l=o}}var u=t.getTypeRootsVersion?t.getTypeRootsVersion():0;_!==u&&(f("TypeRoots version has changed; provide new program"),c=void 0,_=u);var h,v=new x(t,m),b=v.getRootFileNames(),D=t.getCompilationSettings()||{target:1,jsx:1},S=t.hasInvalidatedResolution||e.returnFalse,E=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),C=null===(i=t.getProjectReferences)||void 0===i?void 0:i.call(t),T={useCaseSensitiveFileNames:g,fileExists:F,readFile:P,readDirectory:I,trace:e.maybeBind(t,t.trace),getCurrentDirectory:function(){return p},onUnRecoverableConfigFileDiagnostic:e.noop};if(!e.isProgramUptoDate(c,b,D,(function(e,r){return t.getScriptVersion(r)}),F,S,E,w,C)){var k={getSourceFile:L,getSourceFileByPath:M,getCancellationToken:function(){return d},getCanonicalFileName:m,useCaseSensitiveFileNames:function(){return g},getNewLine:function(){return e.getNewLineCharacter(D,(function(){return e.getNewLineOrDefaultFromHost(t)}))},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return p},fileExists:F,readFile:P,getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:I,onReleaseOldSourceFile:O,onReleaseParsedCommandLine:function(e,r,n){var i;t.getParsedCommandLine?null===(i=t.onReleaseParsedCommandLine)||void 0===i||i.call(t,e,r,n):r&&O(r.sourceFile,n)},hasInvalidatedResolution:S,hasChangedAutomaticTypeDirectiveNames:E,trace:T.trace,resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:w};null===(a=t.setCompilerHost)||void 0===a||a.call(t,k);var A=r.getKeyForCompilationSettings(D),N={rootNames:b,options:D,host:k,oldProgram:c,projectReferences:C};return c=e.createProgram(N),v=void 0,h=void 0,y.clearCache(),void c.getTypeChecker()}function w(r){var n=e.toPath(r,p,m),i=null==h?void 0:h.get(n);if(void 0!==i)return i||void 0;var a=t.getParsedCommandLine?t.getParsedCommandLine(r):function(t){var r=L(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}(r);return(h||(h=new e.Map)).set(n,a||!1),a}function F(r){var n=e.toPath(r,p,m),i=v&&v.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function P(r){var n=e.toPath(r,p,m),i=v&&v.getEntryByPath(n);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(r)}function I(r,n,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)}function O(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind)}function L(t,r,n,i){return M(t,e.toPath(t,p,m),0,0,i)}function M(t,n,i,a,o){e.Debug.assert(void 0!==v,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var s=v&&v.getOrCreateEntryByPath(t,n);if(s){if(!o){var l=c&&c.getSourceFileByPath(n);if(l){if(s.scriptKind===l.scriptKind)return r.updateDocumentWithKey(t,n,D,A,s.scriptSnapshot,s.version,s.scriptKind);r.releaseDocumentWithKey(l.resolvedPath,r.getKeyForCompilationSettings(c.getCompilerOptions()),l.scriptKind)}}return r.acquireDocumentWithKey(t,n,D,A,s.scriptSnapshot,s.version,s.scriptKind)}}}function S(){if(s!==e.LanguageServiceMode.Syntactic)return b(),c;e.Debug.assert(void 0===c)}function E(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some((function(t){return e.normalizePath(t)===i}))),b();var a=e.mapDefined(n,(function(e){return c.getSourceFile(e)})),o=h(t);return e.DocumentHighlights.getDocumentHighlights(c,d,o,r,a)}function C(t,r,n,i){b();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 A=new e.Map(e.getEntries(((o={})[18]=19,o[20]=21,o[22]=23,o[31]=29,o)));function I(r){var n;return e.Debug.assertEqual(r.type,"install package"),t.installPackage?t.installPackage({fileName:(n=r.file,e.toPath(n,p,m)),packageName:r.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 L(t,r,n){for(var i=u.getCurrentSourceFile(t),a=[],o=O(i,r),s=o.lineStarts,c=o.firstLine,l=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<=l;y++){var h=i.text.substring(s[y],i.getLineEndOfPosition(s[y])),v=f.exec(h);v&&(d=Math.min(d,v.index),p.set(y.toString(),v.index),h.substr(v.index,m.length)!==m&&(_=void 0===n||n))}for(y=c;y<=l;y++)if(c===l||s[y]!==r.end){var b=p.get(y.toString());void 0!==b&&(g?a.push.apply(a,M(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]+b,m.length)===m&&a.push({newText:"",span:{length:m.length,start:s[y]+b}}))}return a}function M(t,r,n,i){for(var a,o=u.getCurrentSourceFile(t),s=[],c=o.text,l=!1,_=n||!1,d=[],p=r.pos,f=void 0!==i?i:e.isInsideJsxElement(o,p),g=f?"{/*":"/*",m=f?"*/}":"*/",y=f?"\\{\\/\\*":"\\/\\*",h=f?"\\*\\/\\}":"\\*\\/";p<=r.end;){var v=c.substr(p,g.length)===g?g.length:0,b=e.isInComment(o,p+v);if(b)f&&(b.pos--,b.end++),d.push(b.pos),3===b.kind&&d.push(b.end),l=!0,p=b.end+1;else{var x=c.substring(p,r.end).search("("+y+")|("+h+")");_=void 0!==n?n:_||!e.isTextWhiteSpaceLike(c,p,-1===x?r.end:p+x),p=-1===x?r.end+1:p+x+m.length}}if(_||!l){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 D=d[0];c.substr(D,g.length)!==g&&s.push({newText:g,span:{length:0,start:D}});for(var S=1;S0?T-m.length:0;v=c.substr(k,m.length)===m?m.length:0,s.push({newText:"",span:{length:g.length,start:T-v}})}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(r,n,i,a,o,s){var c="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:c[0],endPosition:c[1],program:S(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:d,preferences:i,triggerReason:o,kind:s}}A.forEach((function(e,t){return A.set(e.toString(),Number(t))}));var j={dispose:function(){if(c){var n=r.getKeyForCompilationSettings(c.getCompilerOptions());e.forEach(c.getSourceFiles(),(function(e){return r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind)})),c=void 0}t=void 0},cleanupSemanticCache:function(){c=void 0},getSyntacticDiagnostics:function(e){return b(),c.getSyntacticDiagnostics(h(e),d).slice()},getSemanticDiagnostics:function(t){b();var r=h(t),n=c.getSemanticDiagnostics(r,d);if(!e.getEmitDeclarations(c.getCompilerOptions()))return n.slice();var a=c.getDeclarationDiagnostics(r,d);return i(i([],n,!0),a,!0)},getSuggestionDiagnostics:function(t){return b(),e.computeSuggestionDiagnostics(h(t),c,d)},getCompilerOptionsDiagnostics:function(){return b(),i(i([],c.getOptionsDiagnostics(d),!0),c.getGlobalDiagnostics(d),!0)},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(d,u.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r,n){return b(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(c,d,h(t),r):e.getSemanticClassifications(c.getTypeChecker(),d,h(t),c.getClassifiableNames(),r)},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(d,u.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r,n){return b(),"original"===(n||"original")?e.getEncodedSemanticClassifications(c.getTypeChecker(),d,h(t),c.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(c,d,h(t),r)},getCompletionsAtPosition:function(r,n,i){void 0===i&&(i=e.emptyOptions);var o=a(a({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return b(),e.Completions.getCompletionsAtPosition(t,c,f,h(r),n,o,i.triggerCharacter,i.triggerKind,d)},getCompletionEntryDetails:function(r,n,i,a,o,s,l){return void 0===s&&(s=e.emptyOptions),b(),e.Completions.getCompletionEntryDetails(c,f,h(r),n,{name:i,source:o,data:l},t,a&&e.formatting.getFormatContext(a,t),s,d)},getCompletionEntrySymbol:function(r,n,i,a,o){return void 0===o&&(o=e.emptyOptions),b(),e.Completions.getCompletionEntrySymbol(c,f,h(r),n,{name:i,source:a},t,o)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;b();var a=h(t);return e.SignatureHelp.getSignatureHelpItems(c,a,r,i,d)},getQuickInfoAtPosition:function(t,r){b();var n=h(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=c.getTypeChecker(),o=function(t){return e.isNewExpression(t.parent)&&t.pos===t.parent.pos?t.parent.expression:e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos?t.parent:t}(i),s=function(t,r){var n=F(t);if(n){var i=r.getContextualType(n.parent),a=i&&P(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 l=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 l&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,n),displayParts:a.runWithCancellationToken(d,(function(t){return e.typeToDisplayParts(t,l,e.getContainerNode(o))})),documentation:l.symbol?l.symbol.getDocumentationComment(a):void 0,tags:l.symbol?l.symbol.getJsDocTags(a):void 0}}var u=a.runWithCancellationToken(d,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(o),o)})),_=u.symbolKind,p=u.displayParts,f=u.documentation,g=u.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 b(),e.GoToDefinition.getDefinitionAtPosition(c,h(t),r)},getDefinitionAndBoundSpan:function(t,r){return b(),e.GoToDefinition.getDefinitionAndBoundSpan(c,h(t),r)},getImplementationAtPosition:function(t,r){return b(),e.FindAllReferences.getImplementationsAtPosition(c,d,c.getSourceFiles(),h(t),r)},getTypeDefinitionAtPosition:function(t,r){return b(),e.GoToDefinition.getTypeDefinitionAtPosition(c.getTypeChecker(),h(t),r)},getReferencesAtPosition:function(t,r){return b(),C(e.getTouchingPropertyName(h(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return b(),e.FindAllReferences.findReferencedSymbols(c,d,c.getSourceFiles(),h(t),r)},getFileReferences:function(t){return b(),e.FindAllReferences.Core.getReferencesForFileName(t,c,c.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)},getOccurrencesAtPosition:function(t,r){return e.flatMap(E(t,r,[t]),(function(e){return e.highlightSpans.map((function(t){return a(a({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})}))}))},getDocumentHighlights:E,getNameOrDottedNameSpan:function(t,r,n){var i=u.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=u.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),b();var a=n?[h(n)]:c.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,c.getTypeChecker(),d,t,r,i)},getRenameInfo:function(t,r,n){return b(),e.Rename.getRenameInfo(c,h(t),r,n)},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,u.getCurrentSourceFile(t))},findRenameLocations:function(t,r,n,i,o){b();var s=h(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,r));if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var l=c.parent.parent;return[l.openingElement,l.closingElement].map((function(t){var r=e.createTextSpanFromNode(t.tagName,s);return a({fileName:s.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,s,t.parent))}))}return C(c,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:o,use:2},(function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,o||!1)}))},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(u.getCurrentSourceFile(t),d)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(u.getCurrentSourceFile(t),d)},getOutliningSpans:function(t){var r=u.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,d)},getTodoComments:function(t,r){b();var n=h(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")}(),l=void 0;l=c.exec(o);){d.throwIfCancellationRequested(),e.Debug.assert(l.length===r.length+3);var u=l[1],_=l.index+u.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=l[2];s.push({descriptor:p,message:g,position:_})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=u.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?A.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=v(n),o=u.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(r,n,i,a){var o=u.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(v(a),t))},getFormattingEditsForDocument:function(r,n){return e.formatting.formatDocument(u.getCurrentSourceFile(r),e.formatting.getFormatContext(v(n),t))},getFormattingEditsAfterKeystroke:function(r,n,i,a){var o=u.getCurrentSourceFile(r),s=e.formatting.getFormatContext(v(a),t);if(!e.isInComment(o,n))switch(i){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(r,n,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),u.getCurrentSourceFile(r),n,i)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=u.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=u.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=u.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,a,o,s){void 0===s&&(s=e.emptyOptions),b();var l=h(r),u=e.createTextSpanFromBounds(n,i),_=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(r){return d.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:l,span:u,program:c,host:t,cancellationToken:d,formatContext:_,preferences:s})}))},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),b(),e.Debug.assert("file"===r.type);var o=h(r.fileName),s=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:o,program:c,host:t,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 I(e)}))):I(n)},organizeImports:function(r,n,i){void 0===i&&(i=e.emptyOptions),b(),e.Debug.assert("file"===r.type);var a=h(r.fileName),o=e.formatting.getFormatContext(n,t);return e.OrganizeImports.organizeImports(a,o,t,c,i,r.skipDestructiveCodeActions)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(S(),r,n,t,e.formatting.getFormatContext(i,t),a,y)},getEmitOutput:function(r,n,i){b();var a=h(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(c,a,!!n,d,o,i)},getNonBoundSourceFile:function(e){return u.getCurrentSourceFile(e)},getProgram:S,getAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},getApplicableRefactors:function(t,r,n,i,a){void 0===n&&(n=e.emptyOptions),b();var o=h(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),b();var s=h(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){b();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(c,e.getTouchingPropertyName(h(t),r));return n&&e.mapOneOrMany(n,(function(t){return e.CallHierarchy.createCallHierarchyItem(c,t)}))},provideCallHierarchyIncomingCalls:function(t,r){b();var n=h(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){b();var n=h(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(c,i):[]},toggleLineComment:L,toggleMultilineComment:M,commentSelection:function(e,t){var r=O(u.getCurrentSourceFile(e),t);return r.firstLine===r.lastLine&&t.pos!==t.end?M(e,t,!0):L(e,t,!0)},uncommentSelection:function(t,r){var n=u.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,L(t,{end:c.end,pos:c.pos+1},!1));break;case 3:i.push.apply(i,M(t,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return i},provideInlayHints:function(r,n,i){void 0===i&&(i=e.emptyOptions),b();var a=h(r);return e.InlayHints.provideInlayHints(function(e,r,n){return{file:e,program:S(),host:t,span:r,preferences:n,cancellationToken:d}}(a,n,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:w.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 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 l(r){return _(e.findPrecedingToken(r.pos,t))}function u(r){return _(e.findNextToken(r,r.parent,t))}function _(r){if(r){var n=r.parent;switch(r.kind){case 235:return x(r.declarationList.declarations[0]);case 252:case 165:case 164:return x(r);case 162:return function t(r){if(e.isBindingPattern(r.name))return C(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 D(e)?o(e):_(e.body)}(r);case 233:if(e.isFunctionBlock(r))return h=(y=r).statements.length?y.statements[0]:y.getLastToken(),D(y.parent)?c(y.parent,h):_(h);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?E(m):m.condition?o(m.condition):m.incrementor?o(m.incrementor):void 0;case 241:return s(r,r.expression);case 242:return E(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 v=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,v.pos),v.end);case 199:case 200:return C(r);case 256:case 257:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return l(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){if(200===t.parent.kind){var r=t.parent;return o(e.lastOrUndefined(r.elements)||r)}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?l(e):210===e.parent.kind?u(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 l(e);default:return _(e.parent)}}(r);case 58:return function(t){return e.isFunctionLike(t.parent)||291===t.parent.kind||162===t.parent.kind?l(t):_(t.parent)}(r);case 31:case 29:return function(e){return 209===e.parent.kind?u(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 u(r);case 158:return function(e){return 242===e.parent.kind?u(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 l(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 u(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 l(r);break;case 219:if(a=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return l(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return l(r)}return _(r.parent)}}var m,y,h,v;function b(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function x(r){if(241===r.parent.parent.kind)return _(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?C(r.name):r.initializer||e.hasSyntacticModifier(r,1)||242===n.parent.kind?b(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?_(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function D(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 E(e){if(253!==e.initializer.kind)return _(e.initializer);var t=e.initializer;return t.declarations.length>0?_(t.declarations[0]):void 0}function C(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):b(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)}}}}(u||(u={})),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}}(u||(u={}));var u,_=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var r=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}(),n=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 r(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=n;var o=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 s(e,t,r,n){return u(e,t,!0,r,n)}function u(r,n,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}(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,i),i.description=n,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=o;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 r(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 l(r,t),r.prototype.forwardJSONCall=function(e,t){return s(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,_&&_.CollectGarbage&&(_.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",(function(){return null}))},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},r.prototype.realizeDiagnostics=function(t){return p(t,e.getNewLineOrDefaultFromHost(this.host))},r.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))}))},r.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))}))},r.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)))}))},r.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)))}))},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",(function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",(function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",(function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))}))},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)}))},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getQuickInfoAtPosition(e,t)}))},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)}))},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getBreakpointStatementAtPosition(e,t)}))},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",(function(){return n.languageService.getSignatureHelpItems(e,t,r)}))},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getDefinitionAtPosition(e,t)}))},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",(function(){return r.languageService.getDefinitionAndBoundSpan(e,t)}))},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getTypeDefinitionAtPosition(e,t)}))},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getImplementationAtPosition(e,t)}))},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",(function(){return n.languageService.getRenameInfo(e,t,r)}))},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+t+")",(function(){return r.languageService.getSmartSelectionRange(e,t)}))},r.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)}))},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getBraceMatchingAtPosition(e,t)}))},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",(function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)}))},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",(function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)}))},r.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)}))},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getReferencesAtPosition(e,t)}))},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",(function(){return r.languageService.findReferences(e,t)}))},r.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('"+e+")",(function(){return t.languageService.getFileReferences(e)}))},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",(function(){return r.languageService.getOccurrencesAtPosition(e,t)}))},r.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}))}))},r.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getCompletionsAtPosition(e,t,r)}))},r.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)}))},r.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)}))},r.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)}))},r.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)}))},r.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",(function(){return n.languageService.getDocCommentTemplateAtPosition(e,t,r)}))},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",(function(){return n.languageService.getNavigateToItems(e,t,r)}))},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",(function(){return t.languageService.getNavigationBarItems(e)}))},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",(function(){return t.languageService.getNavigationTree(e)}))},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",(function(){return t.languageService.getOutliningSpans(e)}))},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",(function(){return r.languageService.getTodoComments(e,JSON.parse(t))}))},r.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+t+")",(function(){return r.languageService.prepareCallHierarchy(e,t)}))},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+t+")",(function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)}))},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+t+")",(function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)}))},r.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)}))},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",(function(){var r=t.languageService.getEmitOutput(e),n=r.diagnostics,i=c(r,["diagnostics"]);return a(a({},i),{diagnostics:t.realizeDiagnostics(n)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return u(this.logger,"getEmitOutput('"+e+"')",!1,(function(){return t.languageService.getEmitOutput(e)}),this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.toggleLineComment(e,t)}))},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.toggleMultilineComment(e,t)}))},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.commentSelection(e,t)}))},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('"+e+"', '"+JSON.stringify(t)+"')",(function(){return r.languageService.uncommentSelection(e,t)}))},r}(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 l(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),s(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."})}(u||(u={}))},"./node_modules/typescript/lib sync recursive":e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id="./node_modules/typescript/lib sync recursive",e.exports=t},"./node_modules/wordwrapjs/index.js":(e,t,r)=>{const n=r("os"),i=r("./node_modules/wordwrapjs/node_modules/typical/dist/index.js"),a=/[^\s-]+?-\b|\S+|\s+|\r\n?|\n/g,o=/\u001b.*?m/g;function s(e){return this.options.noTrim?e:e.trim()}function c(e){return e.replace(o,"")}function l(e){if(c(e).length>this.options.width){const t=e.split("");let r;const n=[];for(;(r=t.splice(0,this.options.width)).length;)n.push(r.join(""));return n}return e}e.exports=class{constructor(e,t){t=t||{},i.isDefined(e)||(e=""),this._lines=String(e).split(/\r\n|\n/g),this.options=t,this.options.width=void 0===t.width?30:t.width}lines(){const e=r("./node_modules/reduce-flatten/index.js");return this._lines.map(s.bind(this)).map((e=>e.match(a)||["~~empty~~"])).map((e=>this.options.break?e.map(l.bind(this)):e)).map((t=>t.reduce(e,[]))).map((e=>e.reduce(((e,t)=>{let r=e[e.length-1];return c(t).length+c(r).length>this.options.width?e.push(t):e[e.length-1]+=t,e}),[""]))).reduce(e,[]).map(s.bind(this)).filter((e=>e.trim())).map((e=>e.replace("~~empty~~","")))}wrap(){return this.lines().join(n.EOL)}toString(){return this.wrap()}static wrap(e,t){return new this(e,t).wrap()}static lines(e,t){return new this(e,t).lines()}static isWrappable(e){if(i.isDefined(e)){var t=(e=String(e)).match(a);return!!t&&t.length>1}}static getChunks(e){return e.match(a)||[]}}},"./node_modules/wordwrapjs/node_modules/typical/dist/index.js":function(e,t){!function(e){"use strict";function t(e){return!isNaN(parseFloat(e))&&isFinite(e)}function r(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function n(e){return i(e)&&"number"==typeof e.length}function i(e){return"object"==typeof e&&null!==e}function a(e){return void 0!==e}function o(e){return!a(e)}function s(e){return null===e}function c(e){return a(e)&&!s(e)&&!Number.isNaN(e)}function l(e){return"function"==typeof e&&/^class /.test(Function.prototype.toString.call(e))}function u(e){if(null===e)return!0;switch(typeof e){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}}function _(e){if(e){const t=a(Promise)&&e instanceof Promise,r=e.then&&"function"==typeof e.then;return!(!t&&!r)}return!1}function d(e){return!(null===e||!a(e)||"function"!=typeof e[Symbol.iterator]&&"function"!=typeof e[Symbol.asyncIterator])}function p(e){return"string"==typeof e}function f(e){return"function"==typeof e}var g={isNumber:t,isPlainObject:r,isArrayLike:n,isObject:i,isDefined:a,isUndefined:o,isNull:s,isDefinedValue:c,isClass:l,isPrimitive:u,isPromise:_,isIterable:d,isString:p,isFunction:f};e.default=g,e.isArrayLike=n,e.isClass=l,e.isDefined=a,e.isDefinedValue=c,e.isFunction=f,e.isIterable=d,e.isNull=s,e.isNumber=t,e.isObject=i,e.isPlainObject=r,e.isPrimitive=u,e.isPromise=_,e.isString=p,e.isUndefined=o,Object.defineProperty(e,"__esModule",{value:!0})}(t)},"./src/jshelpers.js":(e,t,r)=>{const n=r("./node_modules/typescript/lib/typescript.js");function i(e){return n.declarationNameToString(e)}function i(e){return n.declarationNameToString(e)}e.exports={getSymbol:function(e){return e.symbol},tsStringToString:function(e){return""+e},getTextOfIdentifierOrLiteral:function(e){return n.getTextOfIdentifierOrLiteral(e)},isJsFile:function(e){return 0!=(e.scriptKind&n.ScriptKind.JS)},createEmptyNodeArray:function(){return[]},getFlowNode:function(e){return e.flowNode},bindSourceFile:function(e,t){n.bindSourceFile(e,t)},createDiagnosticForNode:function(e,t,...r){return n.createDiagnosticForNode(e,t,...r)},createCompilerDiagnostic:function(e,...t){return n.createCompilerDiagnostic(e,...t)},createFileDiagnostic:function(e,t,r,i,...a){return n.createFileDiagnostic(e,t,r,i,a)},isEffectiveStrictModeSourceFile:function(e,t){return n.isEffectiveStrictModeSourceFile(e,t)},getErrorSpanForNode:function(e,t){return n.getErrorSpanForNode(e,t)},getSpanOfTokenAtPosition:function(e,t){return n.getSpanOfTokenAtPosition(e,t)},getContainingClass:function(e){return n.getContainingClass(e)},declarationNameToString:i,getContainingFunction:function(e){return n.getContainingFunction(e)},isPrologueDirective:function(e){return n.isPrologueDirective(e)},getSourceTextOfNodeFromSourceFile:function(e,t,r){return n.getSourceTextOfNodeFromSourceFile(e,t,r)},isAssignmentTarget:function(e){return n.isAssignmentTarget(e)},getSourceFileOfNode:function(e){return n.getSourceFileOfNode(e)},isIterationStatement:function(e,t){return n.isIterationStatement(e,t)},getTextOfNode:function(e,t){return n.getTextOfNode(e,t)},nodePosToString:function(e){return n.nodePosToString(e)},getContainingFunctionDeclaration:function(e){return n.getContainingFunctionDeclaration(e)},tokenToString:function(e){return n.tokenToString(e)},getNewTargetContainer:function(e){return n.getNewTargetContainer(e)},isLet:function(e){return n.isLet(e)},isVarConst:function(e){return n.isVarConst(e)},nodeCanBeDecorated:function(e){return n.nodeCanBeDecorated(e)},nodeIsPresent:function(e){return n.nodeIsPresent(e)},getAllAccessorDeclarations:function(e,t){return n.getAllAccessorDeclarations(e,t)},modifierToFlag:function(e){return n.modifierToFlag(e)},hasSyntacticModifier:function(e,t){return n.hasSyntacticModifier(e,t)},isAmbientModule:function(e){return n.isAmbientModule(e)},isKeyword:function(e){return n.isKeyword(e)},getThisContainer:function(e){return n.getThisContainer(e)},getEnclosingBlockScopeContainer:function(e){return n.getEnclosingBlockScopeContainer(e)},findAncestor:function(e,t){return n.findAncestor(e,t)},isBlockScope:function(e,t){return n.isBlockScope(e,t)},isIdentifierName:function(e){return n.isIdentifierName(e)},declarationNameToString:i,isInTopLevelContext:function(e){return n.isInTopLevelContext(e)},isExternalOrCommonJsModule:function(e){return n.isExternalOrCommonJsModule(e)},skipParentheses:function(e){return n.skipParentheses(e)},getImmediatelyInvokedFunctionExpression:function(e){return n.getImmediatelyInvokedFunctionExpression(e)},hasQuestionToken:function(e){return n.hasQuestionToken(e)},getPropertyNameForPropertyNameNode:function(e){return n.getPropertyNameForPropertyNameNode(e)},isFunctionBlock:function(e){return n.isFunctionBlock(e)},isFunctionLike:function(e){return n.isFunctionLike(e)},getSuperContainer:function(e,t){return n.getSuperContainer(e,t)},getClassExtendsHeritageElement:function(e){return n.getClassExtendsHeritageElement(e)},hasStaticModifier:function(e){return n.hasStaticModifier(e)},skipOuterExpressions:function(e,t){return n.skipOuterExpressions(e,t)},isSuperCall:function(e){return n.isSuperCall(e)},isThisIdentifier:function(e){return n.isThisIdentifier(e)},isThisProperty:function(e){return n.isThisProperty(e)},isSuperProperty:function(e){return n.isSuperProperty(e)},setParent:function(e,t){return n.setParent(e,t)}}},buffer:e=>{"use strict";e.exports=require("buffer")},child_process:e=>{"use strict";e.exports=require("child_process")},crypto:e=>{"use strict";e.exports=require("crypto")},fs:e=>{"use strict";e.exports=require("fs")},inspector:e=>{"use strict";e.exports=require("inspector")},os:e=>{"use strict";e.exports=require("os")},path:e=>{"use strict";e.exports=require("path")},perf_hooks:e=>{"use strict";e.exports=require("perf_hooks")}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__=__webpack_require__("./src/index.ts"),__webpack_export_target__=exports;for(var i in __webpack_exports__)__webpack_export_target__[i]=__webpack_exports__[i];__webpack_exports__.__esModule&&Object.defineProperty(__webpack_export_target__,"__esModule",{value:!0})})(); +//# sourceMappingURL=index.js.map \ No newline at end of file