diff --git a/online/file-size.json b/online/file-size.json index ee2291e..dad2a9c 100644 --- a/online/file-size.json +++ b/online/file-size.json @@ -1,6 +1,6 @@ { "indexBundleCss": "4.45 kB 1.28 kB", "indexBundleJs": "24.6 kB 6.58 kB", - "vendorBundleJs": "1.97 MB 534 kB", + "vendorBundleJs": "1.97 MB 535 kB", "onlineIndexHtml": "5.48 kB 1.81 kB" } \ No newline at end of file diff --git a/online/index.html b/online/index.html index 2c4ae4c..337d867 100644 --- a/online/index.html +++ b/online/index.html @@ -13,5 +13,5 @@
- + \ No newline at end of file diff --git a/online/index.less b/online/index.less index eaf1004..5755185 100644 --- a/online/index.less +++ b/online/index.less @@ -3,7 +3,7 @@ box-sizing: border-box; margin: 0; padding: 0; - font-family: "Lucida Grande", "Lucida Sans Unicode", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Verdana,Aril", "sans-serif"; + font-family: "Lucida Grande", "Lucida Sans Unicode", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Verdana,Aril", sans-serif; -webkit-font-smoothing: antialiased; } diff --git a/online/vendor.bundle-d7cd4a5103518b10b07cd4bb0adaa82c.js b/online/vendor.bundle-c4fee759cc9359e52f86ae60d5162352.js similarity index 85% rename from online/vendor.bundle-d7cd4a5103518b10b07cd4bb0adaa82c.js rename to online/vendor.bundle-c4fee759cc9359e52f86ae60d5162352.js index d5c4e20..09eaed3 100644 --- a/online/vendor.bundle-d7cd4a5103518b10b07cd4bb0adaa82c.js +++ b/online/vendor.bundle-c4fee759cc9359e52f86ae60d5162352.js @@ -1 +1 @@ -!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,a,o){for(var s,c,u,l=0,d=[];l=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),a.alloc(+e)}function g(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function h(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return w(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){function a(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}var o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}var u;if(i){var l=-1;for(u=n;us&&(n=s-c),u=n;u>=0;u--){for(var d=!0,f=0;fi&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,u,l,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],128==(192&c)&&(d=(31&a)<<6|63&c)>127&&(o=d);break;case 3:c=e[i+1],u=e[i+2],128==(192&c)&&128==(192&u)&&(d=(15&a)<<12|(63&c)<<6|63&u)>2047&&(d<55296||d>57343)&&(o=d);break;case 4:c=e[i+1],u=e[i+2],l=e[i+3],128==(192&c)&&128==(192&u)&&128==(192&l)&&(d=(15&a)<<18|(63&c)<<12|(63&u)<<6|63&l)>65535&&d<1114112&&(o=d)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return A(r)}function A(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr)&&(n=r);for(var i="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function B(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,i){return i||B(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),Y.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,i){return i||B(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),Y.write(e,t,n,r,52,8),n+8}function J(e){if(e=U(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function U(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function K(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){t=t||1/0;for(var n,r=e.length,i=null,a=[],o=0;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function V(e){for(var t=[],n=0;n>8,i=n%256,a.push(i),a.push(r);return a}function H(e){return X.toByteArray(J(e))}function G(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function $(e){return e!==e}var X=n(80),Y=n(81),Q=n(40);t.Buffer=a,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=r(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,n){return o(null,e,t,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,n){return c(null,e,t,n)},a.allocUnsafe=function(e){return u(null,e)},a.allocUnsafeSlow=function(e){return u(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},a.prototype.compare=function(e,t,n,r,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,c=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return D(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=this[e],i=1,a=0;++a=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},a.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),Y.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),Y.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),Y.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),Y.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){M(this,e,t,n,Math.pow(2,8*n)-1,0)}var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;o=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function s(e,t,n,r){for(var i=0,a=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return i}function c(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}function u(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,f=Math.min(u,t.length-1),_=Math.max(0,u-e.length+1);_<=f;_++){var p=u-_|0;i=0|e.words[p],a=0|t.words[_],o=i*a+d,l+=o/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}function l(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,a=0;a>>26)|0,i+=o>>>26,o&=67108863}n.words[a]=s,r=o,o=i}return 0!==r?n.words[a]=r:n.length--,n.strip()}function d(e,t,n){return(new f).mulp(e,t,n)}function f(e,t){this.x=e,this.y=t}function _(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function h(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function v(e){y.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;var b;try{b=n(121).Buffer}catch(e){}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return e.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var i=0;"-"===e[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===n)for(i=0,a=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);return this.strip()},a.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=o(e,n,n+6),this.words[r]|=i<>>26-a&4194303,(a+=24)>=26&&(a-=26,r++);n+6!==t&&(i=o(e,t,n+6),this.words[r]|=i<>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var a=e.length-n,o=a%r,c=Math.min(a,a-o)+n,u=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var x=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],k=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(e,t){e=e||10,t=0|t||1;var n;if(16===e||"hex"===e){n="";for(var i=0,a=0,o=0;o>>24-i&16777215,n=0!==a||o!==this.length-1?x[6-c.length]+c+n:c+n,i+=2,i>=26&&(i-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=k[e],l=S[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var f=d.modn(l).toString(e);d=d.idivn(l),n=d.isZero()?f+n:x[u-f.length]+f+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return r(void 0!==b),this.toArrayLike(b,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),a=n||Math.max(1,i);r(i<=a,"byte array longer than desired length"),r(a>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(a),l=this.clone();if(c){for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,a=0;a>>26;for(;0!==i&&a>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;var r,i;n>0?(r=this,i=e):(r=e,i=this);for(var a=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==a&&o>26,this.words[o]=67108863&t;if(0===a&&o>>13,_=0|o[1],p=8191&_,m=_>>>13,g=0|o[2],h=8191&g,y=g>>>13,v=0|o[3],b=8191&v,x=v>>>13,k=0|o[4],S=8191&k,C=k>>>13,D=0|o[5],T=8191&D,E=D>>>13,w=0|o[6],A=8191&w,N=w>>>13,P=0|o[7],O=8191&P,I=P>>>13,F=0|o[8],M=8191&F,R=F>>>13,L=0|o[9],B=8191&L,j=L>>>13,z=0|s[0],J=8191&z,U=z>>>13,K=0|s[1],q=8191&K,V=K>>>13,W=0|s[2],H=8191&W,G=W>>>13,$=0|s[3],X=8191&$,Y=$>>>13,Q=0|s[4],Z=8191&Q,ee=Q>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],ae=8191&ie,oe=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],de=8191&le,fe=le>>>13,_e=0|s[9],pe=8191&_e,me=_e>>>13;n.negative=e.negative^t.negative,n.length=19,r=Math.imul(d,J),i=Math.imul(d,U),i=i+Math.imul(f,J)|0,a=Math.imul(f,U);var ge=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,J),i=Math.imul(p,U),i=i+Math.imul(m,J)|0,a=Math.imul(m,U),r=r+Math.imul(d,q)|0,i=i+Math.imul(d,V)|0,i=i+Math.imul(f,q)|0,a=a+Math.imul(f,V)|0;var he=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(he>>>26)|0,he&=67108863,r=Math.imul(h,J),i=Math.imul(h,U),i=i+Math.imul(y,J)|0,a=Math.imul(y,U),r=r+Math.imul(p,q)|0,i=i+Math.imul(p,V)|0,i=i+Math.imul(m,q)|0,a=a+Math.imul(m,V)|0,r=r+Math.imul(d,H)|0,i=i+Math.imul(d,G)|0,i=i+Math.imul(f,H)|0,a=a+Math.imul(f,G)|0;var ye=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,J),i=Math.imul(b,U),i=i+Math.imul(x,J)|0,a=Math.imul(x,U),r=r+Math.imul(h,q)|0,i=i+Math.imul(h,V)|0,i=i+Math.imul(y,q)|0,a=a+Math.imul(y,V)|0,r=r+Math.imul(p,H)|0,i=i+Math.imul(p,G)|0,i=i+Math.imul(m,H)|0,a=a+Math.imul(m,G)|0,r=r+Math.imul(d,X)|0,i=i+Math.imul(d,Y)|0,i=i+Math.imul(f,X)|0,a=a+Math.imul(f,Y)|0;var ve=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(S,J),i=Math.imul(S,U),i=i+Math.imul(C,J)|0,a=Math.imul(C,U),r=r+Math.imul(b,q)|0,i=i+Math.imul(b,V)|0,i=i+Math.imul(x,q)|0,a=a+Math.imul(x,V)|0,r=r+Math.imul(h,H)|0,i=i+Math.imul(h,G)|0,i=i+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,r=r+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0,i=i+Math.imul(m,X)|0,a=a+Math.imul(m,Y)|0,r=r+Math.imul(d,Z)|0,i=i+Math.imul(d,ee)|0,i=i+Math.imul(f,Z)|0,a=a+Math.imul(f,ee)|0;var be=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(T,J),i=Math.imul(T,U),i=i+Math.imul(E,J)|0,a=Math.imul(E,U),r=r+Math.imul(S,q)|0,i=i+Math.imul(S,V)|0,i=i+Math.imul(C,q)|0,a=a+Math.imul(C,V)|0,r=r+Math.imul(b,H)|0,i=i+Math.imul(b,G)|0,i=i+Math.imul(x,H)|0,a=a+Math.imul(x,G)|0,r=r+Math.imul(h,X)|0,i=i+Math.imul(h,Y)|0,i=i+Math.imul(y,X)|0,a=a+Math.imul(y,Y)|0,r=r+Math.imul(p,Z)|0,i=i+Math.imul(p,ee)|0,i=i+Math.imul(m,Z)|0,a=a+Math.imul(m,ee)|0,r=r+Math.imul(d,ne)|0,i=i+Math.imul(d,re)|0,i=i+Math.imul(f,ne)|0,a=a+Math.imul(f,re)|0;var xe=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(A,J),i=Math.imul(A,U),i=i+Math.imul(N,J)|0,a=Math.imul(N,U),r=r+Math.imul(T,q)|0,i=i+Math.imul(T,V)|0,i=i+Math.imul(E,q)|0,a=a+Math.imul(E,V)|0,r=r+Math.imul(S,H)|0,i=i+Math.imul(S,G)|0,i=i+Math.imul(C,H)|0,a=a+Math.imul(C,G)|0,r=r+Math.imul(b,X)|0,i=i+Math.imul(b,Y)|0,i=i+Math.imul(x,X)|0,a=a+Math.imul(x,Y)|0,r=r+Math.imul(h,Z)|0,i=i+Math.imul(h,ee)|0,i=i+Math.imul(y,Z)|0,a=a+Math.imul(y,ee)|0,r=r+Math.imul(p,ne)|0,i=i+Math.imul(p,re)|0,i=i+Math.imul(m,ne)|0,a=a+Math.imul(m,re)|0,r=r+Math.imul(d,ae)|0,i=i+Math.imul(d,oe)|0,i=i+Math.imul(f,ae)|0,a=a+Math.imul(f,oe)|0;var ke=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(O,J),i=Math.imul(O,U),i=i+Math.imul(I,J)|0,a=Math.imul(I,U),r=r+Math.imul(A,q)|0,i=i+Math.imul(A,V)|0,i=i+Math.imul(N,q)|0,a=a+Math.imul(N,V)|0,r=r+Math.imul(T,H)|0,i=i+Math.imul(T,G)|0,i=i+Math.imul(E,H)|0,a=a+Math.imul(E,G)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(S,Y)|0,i=i+Math.imul(C,X)|0,a=a+Math.imul(C,Y)|0,r=r+Math.imul(b,Z)|0,i=i+Math.imul(b,ee)|0,i=i+Math.imul(x,Z)|0,a=a+Math.imul(x,ee)|0,r=r+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0,i=i+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,r=r+Math.imul(p,ae)|0,i=i+Math.imul(p,oe)|0,i=i+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0,r=r+Math.imul(d,ce)|0,i=i+Math.imul(d,ue)|0,i=i+Math.imul(f,ce)|0,a=a+Math.imul(f,ue)|0;var Se=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(M,J),i=Math.imul(M,U),i=i+Math.imul(R,J)|0,a=Math.imul(R,U),r=r+Math.imul(O,q)|0,i=i+Math.imul(O,V)|0,i=i+Math.imul(I,q)|0,a=a+Math.imul(I,V)|0,r=r+Math.imul(A,H)|0,i=i+Math.imul(A,G)|0,i=i+Math.imul(N,H)|0,a=a+Math.imul(N,G)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(T,Y)|0,i=i+Math.imul(E,X)|0,a=a+Math.imul(E,Y)|0,r=r+Math.imul(S,Z)|0,i=i+Math.imul(S,ee)|0,i=i+Math.imul(C,Z)|0,a=a+Math.imul(C,ee)|0,r=r+Math.imul(b,ne)|0,i=i+Math.imul(b,re)|0,i=i+Math.imul(x,ne)|0,a=a+Math.imul(x,re)|0,r=r+Math.imul(h,ae)|0,i=i+Math.imul(h,oe)|0,i=i+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,r=r+Math.imul(p,ce)|0,i=i+Math.imul(p,ue)|0,i=i+Math.imul(m,ce)|0,a=a+Math.imul(m,ue)|0,r=r+Math.imul(d,de)|0,i=i+Math.imul(d,fe)|0,i=i+Math.imul(f,de)|0,a=a+Math.imul(f,fe)|0;var Ce=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(B,J),i=Math.imul(B,U),i=i+Math.imul(j,J)|0,a=Math.imul(j,U),r=r+Math.imul(M,q)|0,i=i+Math.imul(M,V)|0,i=i+Math.imul(R,q)|0,a=a+Math.imul(R,V)|0,r=r+Math.imul(O,H)|0,i=i+Math.imul(O,G)|0,i=i+Math.imul(I,H)|0,a=a+Math.imul(I,G)|0,r=r+Math.imul(A,X)|0,i=i+Math.imul(A,Y)|0,i=i+Math.imul(N,X)|0,a=a+Math.imul(N,Y)|0,r=r+Math.imul(T,Z)|0,i=i+Math.imul(T,ee)|0,i=i+Math.imul(E,Z)|0,a=a+Math.imul(E,ee)|0,r=r+Math.imul(S,ne)|0,i=i+Math.imul(S,re)|0,i=i+Math.imul(C,ne)|0,a=a+Math.imul(C,re)|0,r=r+Math.imul(b,ae)|0,i=i+Math.imul(b,oe)|0,i=i+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,r=r+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0,i=i+Math.imul(y,ce)|0,a=a+Math.imul(y,ue)|0,r=r+Math.imul(p,de)|0,i=i+Math.imul(p,fe)|0,i=i+Math.imul(m,de)|0,a=a+Math.imul(m,fe)|0,r=r+Math.imul(d,pe)|0,i=i+Math.imul(d,me)|0,i=i+Math.imul(f,pe)|0,a=a+Math.imul(f,me)|0;var De=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(B,q),i=Math.imul(B,V),i=i+Math.imul(j,q)|0,a=Math.imul(j,V),r=r+Math.imul(M,H)|0,i=i+Math.imul(M,G)|0,i=i+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,r=r+Math.imul(O,X)|0,i=i+Math.imul(O,Y)|0,i=i+Math.imul(I,X)|0,a=a+Math.imul(I,Y)|0,r=r+Math.imul(A,Z)|0,i=i+Math.imul(A,ee)|0,i=i+Math.imul(N,Z)|0,a=a+Math.imul(N,ee)|0,r=r+Math.imul(T,ne)|0,i=i+Math.imul(T,re)|0,i=i+Math.imul(E,ne)|0,a=a+Math.imul(E,re)|0,r=r+Math.imul(S,ae)|0,i=i+Math.imul(S,oe)|0,i=i+Math.imul(C,ae)|0,a=a+Math.imul(C,oe)|0,r=r+Math.imul(b,ce)|0,i=i+Math.imul(b,ue)|0,i=i+Math.imul(x,ce)|0,a=a+Math.imul(x,ue)|0,r=r+Math.imul(h,de)|0,i=i+Math.imul(h,fe)|0,i=i+Math.imul(y,de)|0,a=a+Math.imul(y,fe)|0,r=r+Math.imul(p,pe)|0,i=i+Math.imul(p,me)|0,i=i+Math.imul(m,pe)|0,a=a+Math.imul(m,me)|0;var Te=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(B,H),i=Math.imul(B,G),i=i+Math.imul(j,H)|0,a=Math.imul(j,G),r=r+Math.imul(M,X)|0,i=i+Math.imul(M,Y)|0,i=i+Math.imul(R,X)|0,a=a+Math.imul(R,Y)|0,r=r+Math.imul(O,Z)|0,i=i+Math.imul(O,ee)|0,i=i+Math.imul(I,Z)|0,a=a+Math.imul(I,ee)|0,r=r+Math.imul(A,ne)|0,i=i+Math.imul(A,re)|0,i=i+Math.imul(N,ne)|0,a=a+Math.imul(N,re)|0,r=r+Math.imul(T,ae)|0,i=i+Math.imul(T,oe)|0,i=i+Math.imul(E,ae)|0,a=a+Math.imul(E,oe)|0,r=r+Math.imul(S,ce)|0,i=i+Math.imul(S,ue)|0,i=i+Math.imul(C,ce)|0,a=a+Math.imul(C,ue)|0,r=r+Math.imul(b,de)|0,i=i+Math.imul(b,fe)|0,i=i+Math.imul(x,de)|0,a=a+Math.imul(x,fe)|0,r=r+Math.imul(h,pe)|0,i=i+Math.imul(h,me)|0,i=i+Math.imul(y,pe)|0,a=a+Math.imul(y,me)|0;var Ee=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(B,X),i=Math.imul(B,Y),i=i+Math.imul(j,X)|0,a=Math.imul(j,Y),r=r+Math.imul(M,Z)|0,i=i+Math.imul(M,ee)|0,i=i+Math.imul(R,Z)|0,a=a+Math.imul(R,ee)|0,r=r+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,i=i+Math.imul(I,ne)|0,a=a+Math.imul(I,re)|0,r=r+Math.imul(A,ae)|0,i=i+Math.imul(A,oe)|0,i=i+Math.imul(N,ae)|0,a=a+Math.imul(N,oe)|0,r=r+Math.imul(T,ce)|0,i=i+Math.imul(T,ue)|0,i=i+Math.imul(E,ce)|0,a=a+Math.imul(E,ue)|0,r=r+Math.imul(S,de)|0,i=i+Math.imul(S,fe)|0,i=i+Math.imul(C,de)|0,a=a+Math.imul(C,fe)|0,r=r+Math.imul(b,pe)|0,i=i+Math.imul(b,me)|0,i=i+Math.imul(x,pe)|0,a=a+Math.imul(x,me)|0;var we=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(B,Z),i=Math.imul(B,ee),i=i+Math.imul(j,Z)|0,a=Math.imul(j,ee),r=r+Math.imul(M,ne)|0,i=i+Math.imul(M,re)|0,i=i+Math.imul(R,ne)|0,a=a+Math.imul(R,re)|0,r=r+Math.imul(O,ae)|0,i=i+Math.imul(O,oe)|0,i=i+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,r=r+Math.imul(A,ce)|0,i=i+Math.imul(A,ue)|0,i=i+Math.imul(N,ce)|0,a=a+Math.imul(N,ue)|0,r=r+Math.imul(T,de)|0,i=i+Math.imul(T,fe)|0,i=i+Math.imul(E,de)|0,a=a+Math.imul(E,fe)|0,r=r+Math.imul(S,pe)|0,i=i+Math.imul(S,me)|0,i=i+Math.imul(C,pe)|0,a=a+Math.imul(C,me)|0;var Ae=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(B,ne),i=Math.imul(B,re),i=i+Math.imul(j,ne)|0,a=Math.imul(j,re),r=r+Math.imul(M,ae)|0,i=i+Math.imul(M,oe)|0,i=i+Math.imul(R,ae)|0,a=a+Math.imul(R,oe)|0,r=r+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,i=i+Math.imul(I,ce)|0,a=a+Math.imul(I,ue)|0,r=r+Math.imul(A,de)|0,i=i+Math.imul(A,fe)|0,i=i+Math.imul(N,de)|0,a=a+Math.imul(N,fe)|0,r=r+Math.imul(T,pe)|0,i=i+Math.imul(T,me)|0,i=i+Math.imul(E,pe)|0,a=a+Math.imul(E,me)|0;var Ne=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(B,ae),i=Math.imul(B,oe),i=i+Math.imul(j,ae)|0,a=Math.imul(j,oe),r=r+Math.imul(M,ce)|0,i=i+Math.imul(M,ue)|0,i=i+Math.imul(R,ce)|0,a=a+Math.imul(R,ue)|0,r=r+Math.imul(O,de)|0,i=i+Math.imul(O,fe)|0,i=i+Math.imul(I,de)|0,a=a+Math.imul(I,fe)|0,r=r+Math.imul(A,pe)|0,i=i+Math.imul(A,me)|0,i=i+Math.imul(N,pe)|0,a=a+Math.imul(N,me)|0;var Pe=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(B,ce),i=Math.imul(B,ue),i=i+Math.imul(j,ce)|0,a=Math.imul(j,ue),r=r+Math.imul(M,de)|0,i=i+Math.imul(M,fe)|0,i=i+Math.imul(R,de)|0,a=a+Math.imul(R,fe)|0,r=r+Math.imul(O,pe)|0,i=i+Math.imul(O,me)|0,i=i+Math.imul(I,pe)|0,a=a+Math.imul(I,me)|0;var Oe=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(B,de),i=Math.imul(B,fe),i=i+Math.imul(j,de)|0,a=Math.imul(j,fe),r=r+Math.imul(M,pe)|0,i=i+Math.imul(M,me)|0,i=i+Math.imul(R,pe)|0,a=a+Math.imul(R,me)|0;var Ie=(u+r|0)+((8191&i)<<13)|0;u=(a+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(B,pe),i=Math.imul(B,me),i=i+Math.imul(j,pe)|0,a=Math.imul(j,me);var Fe=(u+r|0)+((8191&i)<<13)|0;return u=(a+(i>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,c[0]=ge,c[1]=he,c[2]=ye,c[3]=ve,c[4]=be,c[5]=xe,c[6]=ke,c[7]=Se,c[8]=Ce,c[9]=De,c[10]=Te,c[11]=Ee,c[12]=we,c[13]=Ae,c[14]=Ne,c[15]=Pe,c[16]=Oe,c[17]=Ie,c[18]=Fe,0!==u&&(c[19]=u,n.length++),n};Math.imul||(C=u),a.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?C(this,e,t):n<63?u(this,e,t):n<1024?l(this,e,t):d(this,e,t)},f.prototype.makeRBT=function(e){for(var t=new Array(e),n=a.prototype._countBits(e)-1,r=0;r>=1;return r},f.prototype.permute=function(e,t,n,r,i,a){for(var o=0;o>>=1)i++;return 1<>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*t;o>=26,t+=i/67108864|0,t+=a>>>26,this.words[n]=67108863&a}return 0!==t&&(this.words[n]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=c(e);if(0===t.length)return new a(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0);var i;i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<o)for(this.length-=o,u=0;u=0&&(0!==l||u>=i);u--){var d=0|this.words[u];this.words[u]=l<<26-a|d>>>a,l=d&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),i=e,o=0|i.words[i.length-1];0!==(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){s=new a(null),s.length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var f=67108864*(0|r.words[i.length+d])+(0|r.words[i.length+d-1]);for(f=Math.min(f/o|0,67108863),r._ishlnsubmul(i,f,d);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},a.prototype.divmod=function(e,t,n){if(r(!e.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var i,o,s;return 0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),a=n.cmp(r);return a<0||1===i&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},a.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=new a(0),c=new a(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var l=n.clone(),d=t.clone();!t.isZero();){for(var f=0,_=1;0==(t.words[0]&_)&&f<26;++f,_<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),o.isub(c)):(n.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},a.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new a(1),o=new a(0),s=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)i.isOdd()&&i.iadd(s),i.iushrn(1);for(var l=0,d=1;0==(n.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(n.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(o)):(n.isub(t),o.isub(i))}var f;return f=0===t.cmpn(1)?i:o,f.cmpn(0)<0&&f.iadd(e),f},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var a=t;t=n,n=a}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[o]=s}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(e){var t=e<0;if(0!==this.negative&&!t)return-1;if(0===this.negative&&t)return 1;this.strip();var n;if(this.length>1)n=1;else{t&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];n=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return-1===this.cmpn(e)},a.prototype.lt=function(e){return-1===this.cmp(e)},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new y(e)},a.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var D={k256:null,p224:null,p192:null,p25519:null};_.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),t=n.bitLength()}while(t>this.n);var r=t0?n.isub(this.p):n.strip(),n},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(p,_),p.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r>>22,i=a}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},p.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(D[e])return D[e];var t;if("k256"===e)t=new p;else if("p224"===e)t=new m;else if("p192"===e)t=new g;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new h}return D[e]=t,t},y.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},y.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},y.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},y.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},y.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},y.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},y.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},y.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},y.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},y.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},y.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},y.prototype.isqr=function(e){return this.imul(e,e.clone())},y.prototype.sqr=function(e){return this.mul(e,e)},y.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new a(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var s=new a(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new a(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var d=this.pow(l,i),f=this.pow(e,i.addn(1).iushrn(1)),_=this.pow(e,i),p=o;0!==_.cmp(s);){for(var m=_,g=0;0!==m.cmp(s);g++)m=m.redSqr();r(g=0;r--){for(var u=t.words[r],l=c-1;l>=0;l--){var d=u>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===r&&0===l)&&(i=this.mul(i,n[o]),s=0,o=0)):s=0}c=26}return i},y.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},y.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new v(e)},i(v,y),v.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},v.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},v.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},v.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},v.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(t,n(120)(e))},function(e,t,n){"use strict";var r=t;r.version=n(127).version,r.utils=n(128),r.rand=n(61),r.curve=n(23),r.curves=n(133),r.ec=n(141),r.eddsa=n(145)},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!=0&&(e="0"+e),r=0;r>8,o=255&i;a?n.push(a,o):n.push(o)}else for(r=0;r>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function o(e,t){for(var n="",r=0;r>>0}return a}function l(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=255&a):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=255&a)}return n}function d(e,t){return e>>>t|e<<32-t}function f(e,t){return e<>>32-t}function _(e,t){return e+t>>>0}function p(e,t,n){return e+t+n>>>0}function m(e,t,n,r){return e+t+n+r>>>0}function g(e,t,n,r,i){return e+t+n+r+i>>>0}function h(e,t,n,r){var i=e[t],a=e[t+1],o=r+a>>>0,s=(o>>0,e[t+1]=o}function y(e,t,n,r){return(t+r>>>0>>0}function v(e,t,n,r){return t+r>>>0}function b(e,t,n,r,i,a,o,s){var c=0,u=t;return u=u+r>>>0,c+=u>>0,c+=u>>0,c+=u>>0}function x(e,t,n,r,i,a,o,s){return t+r+a+s>>>0}function k(e,t,n,r,i,a,o,s,c,u){var l=0,d=t;return d=d+r>>>0,l+=d>>0,l+=d>>0,l+=d>>0,l+=d>>0}function S(e,t,n,r,i,a,o,s,c,u){return t+r+a+s+u>>>0}function C(e,t,n){return(t<<32-n|e>>>n)>>>0}function D(e,t,n){return(e<<32-n|t>>>n)>>>0}function T(e,t,n){return e>>>n}function E(e,t,n){return(e<<32-n|t>>>n)>>>0}var w=n(5),A=n(0);t.inherits=A,t.toArray=r,t.toHex=i,t.htonl=a,t.toHex32=o,t.zero2=s,t.zero8=c,t.join32=u,t.split32=l,t.rotr32=d,t.rotl32=f,t.sum32=_,t.sum32_3=p,t.sum32_4=m,t.sum32_5=g,t.sum64=h,t.sum64_hi=y,t.sum64_lo=v,t.sum64_4_hi=b,t.sum64_4_lo=x,t.sum64_5_hi=k,t.sum64_5_lo=S,t.rotr64_hi=C,t.rotr64_lo=D,t.shr64_hi=T,t.shr64_lo=E},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function a(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function o(){m&&_&&(m=!1,_.length?p=_.concat(p):g=-1,p.length&&s())}function s(){if(!m){var e=i(o);m=!0;for(var t=p.length;t;){for(_=p,p=[];++g1)for(var n=1;n65536)throw new Error("requested too many random bytes");var i=new t.Uint8Array(e);e>0&&s.getRandomValues(i);var a=o.from(i.buffer);return"function"==typeof n?r.nextTick(function(){n(null,a)}):a}var o=n(1).Buffer,s=t.crypto||t.msCrypto;s&&s.getRandomValues?e.exports=a:e.exports=i}).call(t,n(6),n(8))},function(e,t,n){function r(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}var i=n(1).Buffer;r.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=i.from(e,t));for(var n=this._block,r=this._blockSize,a=e.length,o=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=4294967295&n,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=r},function(e,t,n){"use strict";(function(t){function r(e){u.call(this,"digest"),this._hash=e,this.buffers=[]}function i(e){u.call(this,"digest"),this._hash=e}var a=n(0),o=n(26),s=n(27),c=n(32),u=n(9);a(r,u),r.prototype._update=function(e){this.buffers.push(e)},r.prototype._final=function(){var e=t.concat(this.buffers),n=this._hash(e);return this.buffers=null,n},a(i,u),i.prototype._update=function(e){this._hash.update(e)},i.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return e=e.toLowerCase(),"md5"===e?new r(o):new i("rmd160"===e||"ripemd160"===e?new s:c(e))}}).call(t,n(2).Buffer)},function(e,t,n){(function(e){function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function r(e){return"boolean"==typeof e}function i(e){return null===e}function a(e){return null==e}function o(e){return"number"==typeof e}function s(e){return"string"==typeof e}function c(e){return"symbol"==typeof e}function u(e){return void 0===e}function l(e){return"[object RegExp]"===g(e)}function d(e){return"object"==typeof e&&null!==e}function f(e){return"[object Date]"===g(e)}function _(e){return"[object Error]"===g(e)||e instanceof Error}function p(e){return"function"==typeof e}function m(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function g(e){return Object.prototype.toString.call(e)}t.isArray=n,t.isBoolean=r,t.isNull=i,t.isNullOrUndefined=a,t.isNumber=o,t.isString=s,t.isSymbol=c,t.isUndefined=u,t.isRegExp=l,t.isObject=d,t.isDate=f,t.isError=_,t.isFunction=p,t.isPrimitive=m,t.isBuffer=e.isBuffer}).call(t,n(2).Buffer)},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),i=new t(r),a=0;a=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a0||r>0;){var l=new a;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var d=0;if(o>0){var f=s.length-o;d=Math.min(o,u.length),u.copy(s,f,0,d),o-=d}if(d0){var _=c.length-r,p=Math.min(r,u.length-d);u.copy(c,_,d,d+p),r-=p}}return u.fill(0),{key:s,iv:c}}var i=n(1).Buffer,a=n(101);e.exports=r},function(e,t,n){function r(e){s.isBuffer(e)||(e=s.from(e));for(var t=e.length/4|0,n=new Array(t),r=0;r>>24]^l[p>>>16&255]^d[m>>>8&255]^f[255&g]^t[h++],o=u[p>>>24]^l[m>>>16&255]^d[g>>>8&255]^f[255&_]^t[h++],s=u[m>>>24]^l[g>>>16&255]^d[_>>>8&255]^f[255&p]^t[h++],c=u[g>>>24]^l[_>>>16&255]^d[p>>>8&255]^f[255&m]^t[h++],_=a,p=o,m=s,g=c;return a=(r[_>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[h++],o=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&_])^t[h++],s=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[_>>>8&255]<<8|r[255&p])^t[h++],c=(r[g>>>24]<<24|r[_>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^t[h++],a>>>=0,o>>>=0,s>>>=0,c>>>=0,[a,o,s,c]}function o(e){this._key=r(e),this._reset()}var s=n(1).Buffer,c=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],a=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,n[o]=u,r[u]=o;var l=e[o],d=e[l],f=e[d],_=257*e[u]^16843008*u;i[0][o]=_<<24|_>>>8,i[1][o]=_<<16|_>>>16,i[2][o]=_<<8|_>>>24,i[3][o]=_,_=16843009*f^65537*d^257*l^16843008*o,a[0][u]=_<<24|_>>>8,a[1][u]=_<<16|_>>>16,a[2][u]=_<<8|_>>>24,a[3][u]=_,0===o?o=s=1:(o=l^e[e[e[f^l]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:a}}();o.blockSize=16,o.keySize=32,o.prototype.blockSize=o.blockSize,o.prototype.keySize=o.keySize,o.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],a=0;a>>24,o=u.SBOX[o>>>24]<<24|u.SBOX[o>>>16&255]<<16|u.SBOX[o>>>8&255]<<8|u.SBOX[255&o],o^=c[a/t|0]<<24):t>6&&a%t==4&&(o=u.SBOX[o>>>24]<<24|u.SBOX[o>>>16&255]<<16|u.SBOX[o>>>8&255]<<8|u.SBOX[255&o]),i[a]=i[a-t]^o}for(var s=[],l=0;l>>24]]^u.INV_SUB_MIX[1][u.SBOX[f>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[f>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&f]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=s},o.prototype.encryptBlockRaw=function(e){return e=r(e),a(e,this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},o.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=s.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},o.prototype.decryptBlock=function(e){e=r(e);var t=e[1];e[1]=e[3],e[3]=t;var n=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),i=s.allocUnsafe(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},o.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=o},function(e,t,n){"use strict";var r=t;r.base=n(129),r.short=n(130),r.mont=n(131),r.edwards=n(132)},function(e,t,n){(function(t){function r(e){var n;"object"!=typeof e||t.isBuffer(e)||(n=e.passphrase,e=e.key),"string"==typeof e&&(e=new t(e));var r,o,c=s(e,n),u=c.tag,l=c.data;switch(u){case"CERTIFICATE":o=a.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(o||(o=a.PublicKey.decode(l,"der")),r=o.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPublicKey.decode(o.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return o.subjectPrivateKey=o.subjectPublicKey,{type:"ec",data:o};case"1.2.840.10040.4.1":return o.algorithm.params.pub_key=a.DSAparam.decode(o.subjectPublicKey.data,"der"),{type:"dsa",data:o.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+u);case"ENCRYPTED PRIVATE KEY":l=a.EncryptedPrivateKey.decode(l,"der"),l=i(l,n);case"PRIVATE KEY":switch(o=a.PrivateKey.decode(l,"der"),r=o.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPrivateKey.decode(o.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:o.algorithm.curve,privateKey:a.ECPrivateKey.decode(o.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return o.algorithm.params.priv_key=a.DSAparam.decode(o.subjectPrivateKey,"der"),{type:"dsa",params:o.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+u);case"RSA PUBLIC KEY":return a.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return a.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:a.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return l=a.ECPrivateKey.decode(l,"der"),{curve:l.parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+u)}}function i(e,n){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=o[e.algorithm.decrypt.cipher.algo.join(".")],s=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,d=parseInt(a.split("-")[1],10)/8,f=u.pbkdf2Sync(n,r,i,d),_=c.createDecipheriv(a,f,s),p=[];return p.push(_.update(l)),p.push(_.final()),t.concat(p)}var a=n(148),o=n(160),s=n(161),c=n(33),u=n(50);e.exports=r,r.signature=a.signature}).call(t,n(2).Buffer)},function(e,t,n){"use strict";(function(t,r,i,a){var o,s=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;n--){var r=e[n];if(t(r,n))return r}}function g(e,t){for(var n=0;n0;for(var n=0,r=e;nt?1:0};i<=a;){var o=i+(a-i>>1),s=e[o];if(0===n(s,t))return o;n(s,t)>0?a=o-1:i=o+1}return~i}function oe(e,t,n,r,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===r||r<0?0:r,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}function se(e,t,n,r,i){if(e){var a=e.length;if(a>0){var o=void 0===r||r>a-1?a-1:r,s=void 0===i||o-i<0?0:o-i,c=void 0;for(arguments.length<=2?(c=e[o],o--):c=n;o>=s;)c=t(c,e[o],o),o--;return c}}return n}function ce(e,t){return Fn.call(e,t)}function ue(e,t){return Fn.call(e,t)?e[t]:void 0}function le(e){var t=[];for(var n in e)Fn.call(e,n)&&t.push(n);return t}function de(e){var t=[];for(var n in e)Fn.call(e,n)&&t.push(e[n]);return t}function fe(e,t){for(var n=[],r=e.next(),i=r.value,a=r.done;!a;o=e.next(),i=o.value,a=o.done,o)n.push(t?t(i):i);return n;var o}function _e(e,t){for(var n=e.entries(),r=n.next(),i=r.value,a=r.done;!a;u=n.next(),i=u.value,a=u.done,u){var o=i[0],s=i[1],c=t(s,o);if(c)return c}return;var u}function pe(e,t){for(var n=e.keys(),r=n.next(),i=r.value,a=r.done;!a;s=n.next(),i=s.value,a=s.done,s){var o=t(i);if(o)return o}return;var s}function me(e,t){e.forEach(function(e,n){t.set(n,e)})}function ge(e){for(var t=[],n=1;n4&&(i=je(i,arguments,4)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code}}function Ue(e,t){var n=ze(t);return arguments.length>2&&(n=je(n,arguments,2)),n}function Ke(e){var t=ze(e);return arguments.length>1&&(t=je(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}}function qe(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}function Ve(e,t){var n=ze(t);return arguments.length>2&&(n=je(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e}}function We(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e}function He(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e0?1:0}if(t=t.toUpperCase(),n=n.toUpperCase(),t===n)return 0}return t0&&".."!==ee(i)?i.pop():s&&i.push(s))}return i}function it(e){return at(e).path}function at(t){t=tt(t);var n=nt(t),r=t.substr(0,n),i=rt(t,n);if(i.length){var a=r+i.join(e.directorySeparator);return{path:ot(t)?a+e.directorySeparator:a,parts:i}}return{path:r,parts:i}}function ot(e){return e.charCodeAt(e.length-1)===Mn}function st(t){return t.substr(0,Math.max(nt(t),t.lastIndexOf(e.directorySeparator)))}function ct(e){return e&&!mt(e)&&It(e,"://")}function ut(e){return/^\.\.?($|[\\\/])/.test(e)}function lt(t){return!e.isExternalModuleNameRelative(t)}function dt(e){return e.target||0}function ft(t){return"number"==typeof t.module?t.module:dt(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function _t(t){var n=t.moduleResolution;return void 0===n&&(n=ft(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),n}function pt(e){for(var t=!1,n=0;n1&&""===ee(s)&&s.pop();var c;for(c=0;c=0&&e.indexOf(t,n)===n}function It(e,t){return-1!==e.indexOf(t)}function Ft(e){return It(Ct(e),".")}function Mt(e,t){return e.length>t.length&&Ot(e,t)}function Rt(e,t){for(var n=0,r=t;n0;)c+=")?",_--;return c}}function Jt(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Ut(e,t,n,r,i){e=it(e),i=it(i);var a=Dt(i,e);return{includeFilePatterns:D(Bt(n,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Lt(n,a,"files"),includeDirectoryPattern:Lt(n,a,"directories"),excludePattern:Lt(t,a,"exclude"),basePaths:qt(e,n,r)}}function Kt(e,t,n,r,i,a,o,s){function c(e,n,r){var i=s(e),a=i.files,o=i.directories;a=a.slice().sort(m);for(var u=0,l=a;u=0;n--)if(Mt(e,t[n]))return Zt(n,t);return 0}function Zt(e,t){return e<2?0:ei&&(i=c.prefix.length,r=s)}return r}function xn(e,t){var n=e.prefix,r=e.suffix;return t.length>=n.length+r.length&&Nt(t,n)&&Ot(t,r)}function kn(e){Vn.assert(pt(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function Sn(e){return!(e>=0)}function Cn(e){return".ts"===e||".tsx"===e||".d.ts"===e}function Dn(e){var t=En(e);if(void 0!==t)return t;Vn.fail("File "+e+" has unknown extension.")}function Tn(e){return void 0!==En(e)}function En(t){return p(e.supportedTypescriptExtensionsForExtractExtension,function(e){return Mt(t,e)})||p(e.supportedJavascriptExtensions,function(e){return Mt(t,e)})}function wn(e){var t=Ct(e),n=t.lastIndexOf(".");if(n>=0)return t.substring(n)}function An(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function Nn(e,t){return function(n){return e(n)&&t(n)}}function Pn(e){}function On(t){function r(t){return e.toPath(t,C(),T)}function i(e){return k.get(e)}function a(e){return i(st(e))}function o(e){return Ct(it(e))}function s(e,n){var r={files:D(t.readDirectory(e,void 0,void 0,["*.*"]),o)||[],directories:t.getDirectories(e)||[]};return k.set(n,r),r}function c(e,t){var n=i(t);if(n)return n;try{return s(e,t)}catch(e){return void Vn.assert(!k.has(t))}}function u(e,t){return T(e)===T(t)}function l(e,t){return R(e,function(e){return u(e,t)})}function d(e,t,n){if(l(e,t)){if(!n)return S(e,function(e){return!u(e,t)})}else if(n)return e.push(t)}function f(e,n,i){var s=r(e),c=a(s);return c&&b(c,o(e),!0),t.writeFile(e,n,i)}function _(e){var n=r(e),i=a(n);return i&&l(i.files,o(e))||t.fileExists(e)}function p(e){var n=r(e);return k.has(n)||t.directoryExists(e)}function m(e){var n=r(e),i=a(n),s=o(e);i&&d(i.directories,s,!0),t.createDirectory(e)}function g(e){var n=r(e),i=c(e,n);return i?i.directories.slice():t.getDirectories(e)}function h(e,n,a,o,u){function l(e){var t=r(e);return t===d?f:i(t)||s(e,t)}var d=r(e),f=c(e,d);return f?Kt(e,n,a,o,t.useCaseSensitiveFileNames,C(),u,l):t.readDirectory(e,n,a,o,u)}function y(e,n){if(i(n))t.directoryExists(e)||k.delete(n);else{var r=a(n);if(r){var s=o(e);if(r){var c={fileExists:t.fileExists(n),directoryExists:t.directoryExists(n)};return b(r,s,c.fileExists),d(r.directories,s,c.directoryExists),c}}}}function v(t,n,r){if(r!==e.FileWatcherEventKind.Changed){var i=a(n);i&&b(i,o(t),r===e.FileWatcherEventKind.Created)}}function b(e,t,n){d(e.files,t,n)}function x(){k.clear()}var k=n(),C=Re(function(){return t.getCurrentDirectory()}),T=gn(t.useCaseSensitiveFileNames);return{useCaseSensitiveFileNames:t.useCaseSensitiveFileNames,newLine:t.newLine,readFile:function(e,n){return t.readFile(e,n)},write:function(e){return t.write(e)},writeFile:f,fileExists:_,directoryExists:p,createDirectory:m,getCurrentDirectory:C,getDirectories:g,readDirectory:h,addOrDeleteFileOrDirectory:y,addOrDeleteFile:v,clearCache:x,exit:function(e){return t.exit(e)}}}e.collator="object"==typeof Intl&&"function"==typeof Intl.Collator?new Intl.Collator(void 0,{usage:"sort",sensitivity:"accent"}):void 0,e.localeCompareIsCorrect=e.collator&&e.collator.compare("a","B")<0,e.createMap=n,e.createUnderscoreEscapedMap=r,e.createSymbolTable=i,e.createMapFromTemplate=a;var In="undefined"!=typeof Map&&"entries"in Map.prototype?Map:function(){var e=function(){function e(e,t){this.index=0,this.data=e,this.selector=t,this.keys=Object.keys(e)}return e.prototype.next=function(){var e=this.index;return e=t}function n(e,t,r,i){e||(r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),s(t?"False expression: "+t:"False expression.",i||n))}function r(e,t,n,r){if(e!==t){s("Expected "+e+" === "+t+". "+(n?r?n+" "+r:n:""))}}function i(e,t,n){e>=t&&s("Expected "+e+" < "+t+". "+(n||""))}function a(e,t){e>t&&s("Expected "+e+" <= "+t)}function o(e,t){e= "+t)}function s(e,t){var n=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||s),n}function c(e,t,n){return s(t||"Illegal value: "+e,n||c)}function u(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),n=/^function\s+([\w\$]+)\s*\(/.exec(t);return n?n[1]:""}e.currentAssertionLevel=0,e.isDebugging=!1,e.shouldAssert=t,e.assert=n,e.assertEqual=r,e.assertLessThan=i,e.assertLessThanOrEqual=a,e.assertGreaterThanOrEqual=o,e.fail=s,e.assertNever=c,e.getFunctionName=u}(Vn=e.Debug||(e.Debug={})),e.orderedRemoveItem=dn,e.orderedRemoveItemAt=fn,e.unorderedRemoveItemAt=_n,e.unorderedRemoveItem=pn,e.createGetCanonicalFileName=gn,e.matchPatternOrExact=hn,e.patternText=yn,e.matchedText=vn,e.findBestPatternMatch=bn,e.tryParsePattern=kn,e.positionIsSynthesized=Sn,e.extensionIsTypeScript=Cn,e.extensionFromPath=Dn,e.isAnySupportedFileExtension=Tn,e.tryGetExtensionFromPath=En,e.getAnyExtensionFromPath=wn,e.isCheckJsEnabledForFile=An,e.and=Nn,e.assertTypeIsNever=Pn,e.createCachedDirectoryStructureHost=On}(o||(o={}));var o;!function(e){function a(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function o(){if(void 0!==t){var e=t.version;if(e){var n=e.indexOf(".");if(-1!==n)return parseInt(e.substring(1,n))}}}e.setStackTraceLimit=a;var s;!function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(s=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),e.getNodeMajorVersion=o,e.sys=function(){function a(t,n){var r=e.getDirectoryPath(t),i=""!==r&&t!==r&&!n.directoryExists(r);i&&a(r,n),!i&&n.directoryExists(t)||n.createDirectory(t)}var c;if("undefined"!=typeof ChakraHost?c=function(){var t=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)};return{newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,n){n&&(t="\ufeff"+t),ChakraHost.writeFile(e,t)},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(t,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,n,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}():void 0!==t&&t.nextTick&&!t.browser&&(c=function(){function a(e){return e.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})}function c(e,t,n){function r(n,r){var i=0==+n.mtime,a=0==+r.mtime,o=!i&&a,c=i&&!a,u=o?s.Created:c?s.Deleted:s.Changed;u===s.Changed&&+n.mtime<=+r.mtime||t(e,u)}return v.watchFile(e,{persistent:!0,interval:n||250},r),{close:function(){return v.unwatchFile(e,r)}}}function u(e,n,r){function i(){void 0===o&&(o=!T||"win32"!==t.platform&&"darwin"!==t.platform?{persistent:!0}:{persistent:!0,recursive:!!r});var i=v.watch(e,o,n);return i.on("error",function(){g(e)||(u=a(),n("rename",""))}),i}function a(){return c(e,function(t,r){r===s.Created&&g(e)&&(u.close(),u=i(),n("rename",""))})}var o,u=g(e)?i():a();return{close:function(){u.close()}}}function l(e,t){if(m(e)){var n=v.readFileSync(e),r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(var i=0;i=2&&255===n[0]&&254===n[1]?n.toString("utf16le",2):r>=3&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")}}function d(e,t,n){n&&(t="\ufeff"+t);var r;try{r=v.openSync(e,"w"),v.writeSync(r,t,void 0,"utf8")}finally{void 0!==r&&v.closeSync(r)}}function f(t){try{for(var n=v.readdirSync(t||".").sort(),r=[],i=[],a=0,o=n;a=4,E=x.platform(),w=function(){return"win32"!==E&&"win64"!==E&&!m(a(r))}();!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(y||(y={}));var A={args:t.argv.slice(2),newLine:x.EOL,useCaseSensitiveFileNames:w,write:function(e){t.stdout.write(e)},readFile:l,writeFile:d,watchFile:function(e,t,n){if(S){var r=C.addFile(e,t);return{close:function(){return C.removeFile(r)}}}return c(e,t,n)},watchDirectory:function(t,n,r){return u(t,function(r,i){"rename"===r&&n(i?e.normalizePath(e.combinePaths(t,i)):i)},r)},resolvePath:function(e){return b.resolve(e)},fileExists:m,directoryExists:g,createDirectory:function(e){A.directoryExists(e)||v.mkdirSync(e)},getExecutingFilePath:function(){return r},getCurrentDirectory:function(){return t.cwd()},getDirectories:h,getEnvironmentVariable:function(e){return Object({NODE_ENV:"production"})[e]||""},readDirectory:_,getModifiedTime:function(e){try{return v.statSync(e).mtime}catch(e){return}},createHash:function(e){var t=k.createHash("md5");return t.update(e),t.digest("hex")},getMemoryUsage:function(){return i.gc&&i.gc(),t.memoryUsage().heapUsed},getFileSize:function(e){try{var t=v.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){t.exit(e)},realpath:function(e){return v.realpathSync(e)},debugMode:e.some(t.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{n(!function(){var e=new Error('Cannot find module "source-map-support"');throw e.code="MODULE_NOT_FOUND",e}()).install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout};return A}()),c){var u=c.writeFile;c.writeFile=function(t,n,r){var i=e.getDirectoryPath(e.normalizeSlashes(t));i&&!c.directoryExists(i)&&a(i,c),u.call(c,t,n,r)}}return c}(),e.sys&&e.sys.getEnvironmentVariable&&(e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(o||(o={}));var o;!function(e){function t(e,t,n,r){return{code:e,category:t,key:n,message:r}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_or_number_1023","An index signature parameter type must be 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.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."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:t(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:t(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:t(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:t(1046,e.DiagnosticCategory.Error,"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046","A 'declare' modifier is required for a top level declaration in a .d.ts file."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:t(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression: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."),_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}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_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."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),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."),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."),A_tuple_type_element_list_cannot_be_empty:t(1122,e.DiagnosticCategory.Error,"A_tuple_type_element_list_cannot_be_empty_1122","A tuple type element list cannot be empty."),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."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array()' instead."),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_directly_refer_to_a_built_in_symbol:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol_1165","A computed property name in an ambient context must directly refer to a built-in symbol."),A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol_1166","A computed property name in a class property declaration must directly refer to a built-in symbol."),A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol_1168","A computed property name in a method overload must directly refer to a built-in symbol."),A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol_1169","A computed property name in an interface must directly refer to a built-in symbol."),A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol_1170","A computed property name in a type literal must directly refer to a built-in symbol."),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."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),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."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),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."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:t(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.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."),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_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 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_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),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:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254","A 'const' initializer in an ambient context must be a string or numeric literal."),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_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),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_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323","Dynamic import cannot be used when targeting ECMAScript 2015 modules."),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}()'?"),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:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),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_may_only_extend_a_class_or_another_interface:t(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),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_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","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_but_module_0_has_no_exported_member_1:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),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'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),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."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Type_0_cannot_be_converted_to_type_1:t(2352,e.DiagnosticCategory.Error,"Type_0_cannot_be_converted_to_type_1_2352","Type '{0}' cannot be converted to type '{1}'."),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_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number' 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_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.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."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number' 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'."),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_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties: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 or has parameter properties."),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."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same 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."),Overload_signature_is_not_compatible_with_function_implementation:t(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),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}'."),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: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_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."),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_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),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}'."),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}'."),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_may_only_implement_another_class_or_interface:t(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","A class may only implement another class or interface."),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_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),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:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),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."),Type_0_has_no_property_1_and_no_string_index_signature:t(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:t(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),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."),In_const_enum_declarations_member_initializer_must_be_constant_expression:t(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","In 'const' enum declarations member initializer must be constant expression."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment: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."),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_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type 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_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' 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_with_length_1_cannot_be_assigned_to_tuple_with_length_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{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."),Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:t(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","Module '{0}' resolves to a non-module entity and cannot be imported using this construct."),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_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type 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_a_class_or_interface_type:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),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_the_abstract_class_0:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_the_abstract_class_0_2511","Cannot create an instance of the abstract class '{0}'."),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_this_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible 'this' 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_constant_or_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","Cannot assign to '{0}' because it is a constant or 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[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_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_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' 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."),Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:t(2550,e.DiagnosticCategory.Error,"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550","Generic type instantiation is excessively deep and possibly infinite."),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}."),Expected_0_arguments_but_got_a_minimum_of_1:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_a_minimum_of_1_2556","Expected {0} arguments, but got a minimum of {1}."),Expected_at_least_0_arguments_but_got_a_minimum_of_1:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_a_minimum_of_1_2557","Expected at least {0} arguments, but got a minimum of {1}."),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."),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."),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'?"),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."),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."),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."),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_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_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_4034","Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1_4035","Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'."),Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_4036","Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1_4037","Parameter '{0}' of public property setter from exported class has or is using private name '{1}'."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_externa_4038","Return type of public static property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_4039","Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0_4040","Return type of public static property getter from exported class has or is using private name '{0}'."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_modul_4041","Return type of public property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_4042","Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0_4043","Return type of public property getter from exported class has or is using private name '{0}'."),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}'."),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.Message,"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."),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}'."),File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0:t(5011,e.DiagnosticCategory.Error,"File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0_5011","File specification cannot contain multiple recursive directory wildcards ('**'): '{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}."),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_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."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),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_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in 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."),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(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","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."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),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."),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"),Compilation_complete_Watching_for_file_changes:t(6042,e.DiagnosticCategory.Message,"Compilation_complete_Watching_for_file_changes_6042","Compilation complete. Watching for file changes."),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_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has 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:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),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_Colon:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_Colon_6079","Specify library files to be included in the compilation: "),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),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_string_got_1:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105","Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."),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."),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."),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:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_6147","Resolution for module '{0}' was found in cache."),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(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","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"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced 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_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),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."),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_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),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."),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label."),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_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{0}` 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}'."),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_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),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."),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."),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."),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}'."),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_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{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_this_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_this_to_unresolved_variable_90008","Add 'this.' to unresolved variable."),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(90009,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__90009","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(90010,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_90010","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import '{0}' from \"{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."),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"),Extract_symbol:t(95003,e.DiagnosticCategory.Message,"Extract_symbol_95003","Extract symbol"),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.")}}(o||(o={}));var o;!function(e){function t(e){return e>=71}function n(e,t){if(e=1?n(e,z):n(e,B)}function i(e,t){return t>=1?n(e,J):n(e,j)}function a(e){return U[e]}function o(e){return L.get(e)}function s(e){for(var t=new Array,n=0,r=0;n127&&m(i)&&(t.push(r),r=n)}}return t.push(r),t}function c(e,t,n){return u(l(e),t,n,e.text)}function u(t,n,r,i){e.Debug.assert(n>=0&&n=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function m(e){return 10===e||13===e||8232===e||8233===e}function g(e){return e>=48&&e<=57}function h(e){return e>=48&&e<=55}function y(e,t){var n=e.charCodeAt(t);switch(n){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 n>127}}function v(t,n,r,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(n))return n;for(;;){var a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)return n;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(i)break;if(47===t.charCodeAt(n+1)){for(n+=2;n127&&_(a)){n++;continue}}return n}}function b(t,n){if(e.Debug.assert(n>=0),0===n||m(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+K=0&&n127&&_(g)){d&&m(g)&&(l=!0),n++;continue}break e}}return d&&(p=i(s,c,u,l,a,p)),p}function D(e,t,n,r){return C(!1,e,t,!1,n,r)}function T(e,t,n,r){return C(!1,e,t,!0,n,r)}function E(e,t,n,r,i){return C(!0,e,t,!1,n,r,i)}function w(e,t,n,r,i){return C(!0,e,t,!0,n,r,i)}function A(e,t,n,r,i,a){return a||(a=[]),a.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function N(e,t){return E(e,t,A,void 0,void 0)}function P(e,t){return w(e,t,A,void 0,void 0)}function O(e){var t=q.exec(e);if(t)return t[0]}function I(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&r(e,t)}function F(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&i(e,t)}function M(e,t){if(!I(e.charCodeAt(0),t))return!1;for(var n=1;n=48&&i<=57)r=16*r+i-48;else if(i>=65&&i<=70)r=16*r+i-65+10;else{if(!(i>=97&&i<=102))break;r=16*r+i-97+10}ne++,n++}return n=re){r+=a.substring(i,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}var o=a.charCodeAt(ne);if(o===n){r+=a.substring(i,ne),ne++;break}if(92===o&&t)r+=a.substring(i,ne),r+=T(),i=ne;else{if(m(o)){r+=a.substring(i,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}ne++}}return r}function D(){var t=96===a.charCodeAt(ne);ne++;for(var n,r=ne,i="";;){if(ne>=re){i+=a.substring(r,ne),le=!0,u(e.Diagnostics.Unterminated_template_literal),n=t?13:16;break}var o=a.charCodeAt(ne);if(96===o){i+=a.substring(r,ne),ne++,n=t?13:16;break}if(36===o&&ne+1=re)return u(e.Diagnostics.Unexpected_end_of_text),"";var t=a.charCodeAt(ne);switch(ne++,t){case 48:return"\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:return ne=0?String.fromCharCode(n):(u(e.Diagnostics.Hexadecimal_digit_expected),"")}function w(){var t=y(1),n=!1;return t<0?(u(e.Diagnostics.Hexadecimal_digit_expected),n=!0):t>1114111&&(u(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),ne>=re?(u(e.Diagnostics.Unexpected_end_of_text),n=!0):125===a.charCodeAt(ne)?ne++:(u(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":A(t)}function A(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var n=Math.floor((t-65536)/1024)+55296,r=(t-65536)%1024+56320;return String.fromCharCode(n,r)}function N(){if(ne+5=0&&F(r,n)))break;e+=a.substring(t,ne),e+=String.fromCharCode(r),ne+=6,t=ne}}return e+=a.substring(t,ne)}function O(){var e=se.length;if(e>=2&&e<=11){var t=se.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(oe=L.get(se)))return oe}return oe=71}function M(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var n=0,r=0;;){var i=a.charCodeAt(ne),o=i-48;if(!g(i)||o>=t)break;n=n*t+o,ne++,r++}return 0===r?-1:n}function R(){for(ie=ne,ue=!1,ce=!1,le=!1,de=0;;){if(ae=ne,ne>=re)return oe=1;var t=a.charCodeAt(ne);if(35===t&&0===ne&&k(a,ne)){if(ne=S(a,ne),r)continue;return oe=6}switch(t){case 10:case 13:if(ce=!0,r){ne++;continue}return 13===t&&ne+1=0&&I(f,n)?(ne+=6,se=String.fromCharCode(f)+P(),oe=O()):(u(e.Diagnostics.Invalid_character),ne++,oe=0);default:if(I(t,n)){for(ne++;ne=re){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=a.charCodeAt(t);if(m(o)){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===o&&!i){t++;break}91===o?i=!0:92===o?r=!0:93===o&&(i=!1)}t++}for(;t=re)return oe=1;var e=a.charCodeAt(ne);if(60===e)return 47===a.charCodeAt(ne+1)?(ne+=2,oe=28):(ne++,oe=27);if(123===e)return ne++,oe=17;for(var t=0;ne=re)return oe=1;ie=ne,ae=ne;var e=a.charCodeAt(ne);switch(e){case 9:case 11:case 12:case 32:for(;ne=0),ne=t,ie=t,ae=t,oe=0,ce=!1,se=void 0,ue=!1,le=!1}void 0===i&&(i=0);var ne,re,ie,ae,oe,se,ce,ue,le,de;return Y(a,s,c),{getStartPos:function(){return ie},getTextPos:function(){return ne},getToken:function(){return oe},getTokenPos:function(){return ae},getTokenText:function(){return a.substring(ae,ne)},getTokenValue:function(){return se},hasExtendedUnicodeEscape:function(){return ue},hasPrecedingLineBreak:function(){return ce},isIdentifier:function(){return 71===oe||oe>107},isReservedWord:function(){return oe>=72&&oe<=107},isUnterminated:function(){return le},getNumericLiteralFlags:function(){return de},reScanGreaterToken:B,reScanSlashToken:j,reScanTemplateToken:z,scanJsxIdentifier:K,scanJsxAttributeValue:q,reScanJsxToken:J,scanJsxToken:U,scanJSDocToken:V,scan:R,getText:X,setText:Y,setScriptTarget:Z,setLanguageVariant:ee,setOnError:Q,setTextPos:te,tryScan:$,lookAhead:G,scanRange:H}}e.tokenIsIdentifierOrKeyword=t;var L=e.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:140,function:89,get:125,if:90,implements:108,import:91,in:92,instanceof:93,interface:109,is:126,keyof:127,let:110,module:128,namespace:129,never:130,new:94,null:95,number:133,object:134,package:111,private:112,protected:113,public:114,readonly:131,require:132,global:141,return:96,set:135,static:115,string:136,super:97,switch:98,symbol:137,this:99,throw:100,true:101,try:102,type:138,typeof:103,undefined:139,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:142,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,">":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57}),B=[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],j=[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],z=[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],J=[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];e.isUnicodeIdentifierStart=r;var U=function(e){var t=[];return e.forEach(function(e,n){t[e]=n}),t}(L);e.tokenToString=a,e.stringToToken=o,e.computeLineStarts=s,e.getPositionOfLineAndCharacter=c,e.computePositionOfLineAndCharacter=u,e.getLineStarts=l,e.computeLineAndCharacterOfPosition=d,e.getLineAndCharacterOfPosition=f,e.isWhiteSpaceLike=_,e.isWhiteSpaceSingleLine=p,e.isLineBreak=m,e.isOctalDigit=h,e.couldStartTrivia=y,e.skipTrivia=v;var K="<<<<<<<".length,q=/^#!.*/;e.forEachLeadingCommentRange=D,e.forEachTrailingCommentRange=T,e.reduceEachLeadingCommentRange=E,e.reduceEachTrailingCommentRange=w,e.getLeadingCommentRanges=N,e.getTrailingCommentRanges=P,e.getShebang=O,e.isIdentifierStart=I,e.isIdentifierPart=F,e.isIdentifierText=M,e.createScanner=R}(o||(o={}));var o;!function(e){function t(e,t){var n=e.declarations;if(n)for(var r=0,i=n;r=0),e.getLineStarts(n)[t]}function g(t){var n=_(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return n.fileName+"("+(r.line+1)+","+(r.character+1)+")"}function h(t,n){e.Debug.assert(t>=0);var r=e.getLineStarts(n),i=t,a=n.text;if(i+1===r.length)return a.length-1;var o=r[i],s=r[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function y(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function v(e){return!y(e)}function b(t,n,r){if(47===t.charCodeAt(n+1)&&n+20?k(t._children[0],n,r):e.skipTrivia((n||_(t)).text,t.pos)}function S(t,n){return y(t)||!t.decorators?k(t,n):e.skipTrivia((n||_(t)).text,t.decorators.end)}function C(t,n,r){if(void 0===r&&(r=!1),y(n))return"";var i=t.text;return i.substring(r?n.pos:e.skipTrivia(i,n.pos),n.end)}function D(t,n){return y(n)?"":t.substring(e.skipTrivia(t,n.pos),n.end)}function T(e,t){return void 0===t&&(t=!1),C(_(e),e,t)}function E(t,n){return e.binarySearch(t,n,w)}function w(e,t){var n=e.pos,r=t.pos;return n=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function I(e){return e}function F(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function M(t){return 0!=(3&e.getCombinedNodeFlags(t))||R(t)}function R(e){var t=tn(e);return 226===t.kind&&260===t.parent.kind}function L(e){return e&&233===e.kind&&(9===e.name.kind||K(e))}function B(t){return e.isModuleDeclaration(t)&&9===t.name.kind}function j(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)}function z(e){return J(e.valueDeclaration)}function J(e){return e&&233===e.kind&&!e.body}function U(t){return 265===t.kind||233===t.kind||e.isFunctionLike(t)}function K(e){return!!(512&e.flags)}function q(t){if(!t||!L(t))return!1;switch(t.parent.kind){case 265:return e.isExternalModule(t.parent);case 234:return L(t.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function V(t,n){return e.isExternalModule(t)||n.isolatedModules}function W(t,n){switch(t.kind){case 265:case 235:case 260:case 233:case 214:case 215:case 216:case 152:case 151:case 153:case 154:case 228:case 186:case 187:return!0;case 207:return n&&!e.isFunctionLike(n)}return!1}function H(t){switch(t.kind){case 155:case 156:case 150:case 157:case 160:case 161:case 273:case 229:case 199:case 230:case 231:case 282:case 228:case 151:case 152:case 153:case 154:case 186:case 187:return!0;default:return e.assertTypeIsNever(t),!1}}function G(e){switch(e.kind){case 238:case 237:return!0;default:return!1}}function $(e){for(var t=e.parent;t;){if(W(t,t.parent))return t;t=t.parent}}function X(e){return 0===r(e)?"(Missing)":T(e)}function Y(e){return e.declaration?X(e.declaration.parameters[0].name):void 0}function Q(e){switch(e.kind){case 71:return e.escapedText;case 9:case 8:return O(e.text);case 144:if(qt(e.expression))return O(e.expression.text)}}function Z(t){switch(t.kind){case 71:return 0===r(t)?e.idText(t):T(t);case 143:return Z(t.left)+"."+Z(t.right);case 179:return Z(t.expression)+"."+Z(t.name)}}function ee(e,t,n,r,i){return te(_(e),e,t,n,r,i)}function te(t,n,r,i,a,o){var s=ae(t,n);return e.createFileDiagnostic(t,s.start,s.length,r,i,a,o)}function ne(e,t){var n=_(e),r=ae(n,e);return{file:n,start:r.start,length:r.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}}function re(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);r.scan();var i=r.getTokenPos();return e.createTextSpanFromBounds(i,r.getTextPos())}function ie(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&207===n.body.kind){var i=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(i=0;case 183:return!1}}return!1}function ge(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function he(t,n){function r(t){switch(t.kind){case 219:return n(t);case 235:case 207:case 211:case 212:case 213:case 214:case 215:case 216:case 220:case 221:case 257:case 258:case 222:case 224:case 260:return e.forEachChild(t,r)}}return r(t)}function ye(t,n){function r(t){switch(t.kind){case 197:n(t);var i=t.expression;return void(i&&r(i));case 232:case 230:case 233:case 231:case 229:case 199:return;default:if(e.isFunctionLike(t)){var a=t.name;if(a&&144===a.kind)return void r(a.expression)}else me(t)||e.forEachChild(t,r)}}return r(t)}function ve(t){return t&&164===t.kind?t.elementType:t&&159===t.kind?e.singleOrUndefined(t.typeArguments):void 0}function be(e){if(e)switch(e.kind){case 176:case 264:case 146:case 261:case 149:case 148:case 262:case 226:return!0}return!1}function xe(e){switch(e.kind){case 151:case 150:case 152:case 153:case 154:case 228:case 186:return!0}return!1}function ke(e,t){for(;;){if(t&&t(e),222!==e.statement.kind)return e.statement;e=e.statement}}function Se(t){return t&&207===t.kind&&e.isFunctionLike(t.parent)}function Ce(e){return e&&151===e.kind&&178===e.parent.kind}function De(e){return 151===e.kind&&(178===e.parent.kind||199===e.parent.kind)}function Te(e){return e&&1===e.kind}function Ee(e){return e&&0===e.kind}function we(t,n,r){return e.filter(t.properties,function(e){if(261===e.kind){var t=Q(e.name);return n===t||r&&r===t}})}function Ae(t){return e.findAncestor(t.parent,e.isFunctionLike)}function Ne(t){return e.findAncestor(t.parent,e.isClassLike)}function Pe(t,n){for(;;){if(!(t=t.parent))return;switch(t.kind){case 144:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 187:if(!n)continue;case 228:case 186:case 233:case 149:case 148:case 151:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 232:case 265:return t}}}function Oe(e){var t=Pe(e,!1);if(t)switch(t.kind){case 152:case 228:case 186:return t}}function Ie(t,n){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 144:t=t.parent;break;case 228:case 186:case 187:if(!n)continue;case 149:case 148:case 151:case 150:case 152:case 153:case 154:return t;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}}function Fe(e){if(186===e.kind||187===e.kind){for(var t=e,n=e.parent;185===n.kind;)t=n,n=n.parent;if(181===n.kind&&n.expression===t)return n}}function Me(e){var t=e.kind;return(179===t||180===t)&&97===e.expression.kind}function Re(e){switch(e.kind){case 159:return e.typeName;case 201:return dr(e.expression)?e.expression:void 0;case 71:case 143:return e}}function Le(t){return 183===t.kind?t.tag:e.isJsxOpeningLikeElement(t)?t.tagName:t.expression}function Be(e){switch(e.kind){case 229:return!0;case 149:return 229===e.parent.kind;case 153:case 154:case 151:return void 0!==e.body&&229===e.parent.kind;case 146:return void 0!==e.parent.body&&(152===e.parent.kind||151===e.parent.kind||154===e.parent.kind)&&229===e.parent.parent.kind}return!1}function je(e){return void 0!==e.decorators&&Be(e)}function ze(e){return je(e)||Je(e)}function Je(t){switch(t.kind){case 229:return e.forEach(t.members,ze);case 151:case 154:return e.forEach(t.parameters,je)}}function Ue(e){var t=e.parent;return(251===t.kind||250===t.kind||252===t.kind)&&t.tagName===e}function Ke(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 202:case 184:case 203:case 185:case 186:case 199:case 187:case 190:case 188:case 189:case 192:case 193:case 194:case 195:case 198:case 196:case 13:case 200:case 249:case 250:case 197:case 191:case 204:return!0;case 143:for(;143===e.parent.kind;)e=e.parent;return 162===e.parent.kind||Ue(e);case 71:if(162===e.parent.kind||Ue(e))return!0;case 8:case 9:case 99:return qe(e);default:return!1}}function qe(e){var t=e.parent;switch(t.kind){case 226:case 146:case 149:case 148:case 264:case 261:case 176:return t.initializer===e;case 210:case 211:case 212:case 213:case 219:case 220:case 221:case 257:case 223:return t.expression===e;case 214:var n=t;return n.initializer===e&&227!==n.initializer.kind||n.condition===e||n.incrementor===e;case 215:case 216:var r=t;return r.initializer===e&&227!==r.initializer.kind||r.expression===e;case 184:case 202:case 205:case 144:return e===t.expression;case 147:case 256:case 255:case 263:return!0;case 201:return t.expression===e&&ur(t);default:return Ke(t)}}function Ve(e){return 237===e.kind&&248===e.moduleReference.kind}function We(t){return e.Debug.assert(Ve(t)),t.moduleReference.expression}function He(e){return 237===e.kind&&248!==e.moduleReference.kind}function Ge(e){return $e(e)}function $e(e){return e&&!!(65536&e.flags)}function Xe(e){return e&&!!(1048576&e.flags)}function Ye(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&t.typeArguments&&2===t.typeArguments.length&&(136===t.typeArguments[0].kind||133===t.typeArguments[0].kind)}function Qe(e,t){if(181!==e.kind)return!1;var n=e,r=n.expression,i=n.arguments;if(71!==r.kind||"require"!==r.escapedText)return!1;if(1!==i.length)return!1;var a=i[0];return!t||9===a.kind||13===a.kind}function Ze(e){return 39===e||34===e}function et(e,t){return 34===C(t,e).charCodeAt(0)}function tt(e){if(e.valueDeclaration&&226===e.valueDeclaration.kind){var t=e.valueDeclaration;return t.initializer&&(186===t.initializer.kind||199===t.initializer.kind)}return!1}function nt(e){for(;sr(e,!0);)e=e.right;return e}function rt(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function it(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText}function at(e){if(!$e(e))return 0;if(58!==e.operatorToken.kind||179!==e.left.kind)return 0;var t=e.left;if(71===t.expression.kind){var n=t.expression;return"exports"===n.escapedText?1:"module"===n.escapedText&&"exports"===t.name.escapedText?2:5}if(99===t.expression.kind)return 4;if(179===t.expression.kind){var r=t.expression;if(71===r.expression.kind){if("module"===r.expression.escapedText&&"exports"===r.name.escapedText)return 1;if("prototype"===r.name.escapedText)return 3}}return 0}function ot(e){if(238===e.kind)return e.moduleSpecifier;if(237===e.kind){var t=e.moduleReference;if(248===t.kind)return t.expression}return 244===e.kind?e.moduleSpecifier:B(e)?e.name:void 0}function st(e){if(237===e.kind)return e;var t=e.importClause;return t&&t.namedBindings&&240===t.namedBindings.kind?t.namedBindings:void 0}function ct(e){return 238===e.kind&&e.importClause&&!!e.importClause.name}function ut(e){if(e)switch(e.kind){case 146:case 151:case 150:case 262:case 261:case 149:case 148:return void 0!==e.questionToken}return!1}function lt(e){return 273===e.kind&&e.parameters.length>0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText}function dt(t){return e.isJSDocTypedefTag(t)?[t.parent]:gt(t)}function ft(t){return e.isExpressionStatement(t)&&t.expression&&e.isBinaryExpression(t.expression)&&58===t.expression.operatorToken.kind&&t.expression.right}function _t(t,n){return e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&(!n||t.declarationList.declarations[0].initializer===n)&&t.declarationList.declarations[0].initializer}function pt(t,n){return e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&(!n||t.declarationList.declarations[0]===n)&&t.declarationList.declarations[0]}function mt(e){return 233===e.kind&&e.body&&233===e.body.kind&&e.body}function gt(t){function n(t){var i=t.parent;i&&(261===i.kind||mt(i))&&n(i),i&&i.parent&&(pt(i.parent,t)||ft(i.parent))&&n(i.parent),i&&i.parent&&i.parent.parent&&_t(i.parent.parent,t)&&n(i.parent.parent),146===t.kind&&(r=e.addRange(r,e.getJSDocParameterTags(t))),be(t)&&t.initializer&&e.hasJSDocNodes(t.initializer)&&(r=e.addRange(r,t.initializer.jsDoc)),e.hasJSDocNodes(t)&&(r=e.addRange(r,t.jsDoc))}var r;return n(t),r||e.emptyArray}function ht(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var n=t.name.escapedText,r=yt(t),i=ft(r)||_t(r)||pt(r)||mt(r)||r;if(i&&e.isFunctionLike(i)){var a=e.find(i.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===n});return a&&a.symbol}}}function yt(t){return e.Debug.assert(275===t.parent.kind),t.parent.parent}function vt(t){var n=t.name.escapedText,r=t.parent.parent.parent.typeParameters;return e.find(r,function(e){return e.name.escapedText===n})}function bt(t){var n=e.lastOrUndefined(t.parameters);return n&&xt(n)}function xt(e){return void 0!==e.dotDotDotToken}function kt(e){for(var t=e.parent;;){switch(t.kind){case 194:var n=t.operatorToken.kind;return ar(n)&&t.left===e?58===n?1:2:0;case 192:case 193:var r=t.operator;return 43===r||44===r?2:0;case 215:case 216:return t.initializer===e?1:0;case 185:case 177:case 198:e=t;break;case 262:if(t.name!==e)return 0;e=t.parent;break;case 261:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function St(e){return 0!==kt(e)}function Ct(e){if(179!==e.kind&&180!==e.kind)return!1;for(e=e.parent;e&&185===e.kind;)e=e.parent;return e&&188===e.kind}function Dt(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Tt(e){for(;e;){if(Zn(e,2)||265===e.kind&&e.isDeclarationFile)return!0;e=e.parent}return!1}function Et(t){switch(t.kind){case 71:case 9:case 8:return e.isDeclaration(t.parent)&&t.parent.name===t;default:return!1}}function wt(t){switch(t.kind){case 71:case 9:case 8:if(e.isDeclaration(t.parent))return t.parent.name===t;var n=t.parent.parent;return e.isBinaryExpression(n)&&0!==at(n)&&e.getNameOfDeclaration(n)===t;default:return!1}}function At(t){return(9===t.kind||8===t.kind)&&144===t.parent.kind&&e.isDeclaration(t.parent.parent)}function Nt(e){var t=e.parent;switch(t.kind){case 149:case 148:case 151:case 150:case 153:case 154:case 264:case 261:case 179:return t.name===e;case 143:if(t.right===e){for(;143===t.kind;)t=t.parent;return 162===t.kind}return!1;case 176:case 242:return t.propertyName===e;case 246:case 253:return!0}return!1}function Pt(e){return 237===e.kind||236===e.kind||239===e.kind&&!!e.name||240===e.kind||242===e.kind||246===e.kind||243===e.kind&&Ot(e)}function Ot(e){return dr(e.expression)}function It(e){var t=Rt(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0}function Ft(e){var t=Rt(e.heritageClauses,108);return t?t.types:void 0}function Mt(e){var t=Rt(e.heritageClauses,85);return t?t.types:void 0}function Rt(e,t){if(e)for(var n=0,r=e;n1&&(d=d+r.length-1,f=c.length-t.length+e.lastOrUndefined(r))}}function o(){l||(c+=t,d++,f=c.length,l=!0)}function s(e,t){n(D(e,t))}var c,u,l,d,f;return r(),{write:n,rawWrite:i,writeTextOfNode:s,writeLiteral:a,writeLine:o,increaseIndent:function(){u++},decreaseIndent:function(){u--},getIndent:function(){return u},getTextPos:function(){return c.length},getLine:function(){return d+1},getColumn:function(){return l?u*vn()+1:c.length-f+1},getText:function(){return c},isAtStartOfLine:function(){return l},reset:r}}function xn(e,t){return t.moduleName||Sn(e,t.fileName)}function kn(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);if(r&&!r.isDeclarationFile)return xn(e,r)}function Sn(t,n){var r=function(e){return t.getCanonicalFileName(e)},i=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),r),a=e.getNormalizedAbsolutePath(n,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(i,a,i,r,!1);return e.removeFileExtension(o)}function Cn(t,n,r){var i=n.getCompilerOptions();return(i.outDir?e.removeFileExtension(wn(t,n,i.outDir)):e.removeFileExtension(t.fileName))+r}function Dn(t,n){var r=n.getCompilerOptions(),i=r.declarationDir||r.outDir,a=i?wn(t,n,i):t.fileName;return e.removeFileExtension(a)+".d.ts"}function Tn(t,n){var r=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(r.outFile||r.out){var a=e.getEmitModuleKind(r),o=a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&En(t,r,i)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return En(e,r,i)})}function En(e,t,n){return!(t.noEmitForJsFiles&&Ge(e)||e.isDeclarationFile||n(e))}function wn(t,n,r){var i=e.getNormalizedAbsolutePath(t.fileName,n.getCurrentDirectory()),a=n.getCommonSourceDirectory();return i=0===n.getCanonicalFileName(i).indexOf(n.getCanonicalFileName(a))?i.substring(a.length):i,e.combinePaths(r,i)}function An(t,n,r,i,a,o){t.writeFile(r,i,a,function(t){n.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,r,t))},o)}function Nn(t,n){return e.getLineAndCharacterOfPosition(t,n).line}function Pn(t,n){return e.computeLineAndCharacterOfPosition(t,n).line}function On(t){return e.forEach(t.members,function(e){if(152===e.kind&&v(e.body))return e})}function In(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&Rn(e.parameters[0]);return e.parameters[t?1:0]}}function Fn(e){var t=In(e);return t&&t.type}function Mn(e){if(e.parameters.length){var t=e.parameters[0];if(Rn(t))return t}}function Rn(e){return Ln(e.name)}function Ln(e){return e&&71===e.kind&&Bn(e)}function Bn(e){return 99===e.originalKeywordKind}function jn(t,n){var r,i,a,o;return Vt(n)?(r=n,153===n.kind?a=n:154===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){if((153===e.kind||154===e.kind)&&Zn(e,32)===Zn(n,32)){Gt(e.name)===Gt(n.name)&&(r?i||(i=e):r=e,153!==e.kind||a||(a=e),154!==e.kind||o||(o=e))}}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}}function zn(t,n){return t.type?t.type:n||$e(t)?e.getJSDocType(t):void 0}function Jn(t,n){return t.type?t.type:n||$e(t)?e.getJSDocReturnType(t):void 0}function Un(t,n){if(t.typeParameters)return t.typeParameters;if(n||$e(t)){var r=e.getJSDocTemplateTag(t);return r&&r.typeParameters}}function Kn(e,t){var n=In(e);return n&&zn(n,t)}function qn(e,t,n,r){Vn(e,t,n.pos,r)}function Vn(e,t,n,r){r&&r.length&&n!==r[0].pos&&Pn(e,n)!==Pn(e,r[0].pos)&&t.writeLine()}function Wn(e,t,n,r){n!==r&&Pn(e,n)!==Pn(e,r)&&t.writeLine()}function Hn(e,t,n,r,i,a,o,s){if(r&&r.length>0){i&&n.write(" ");for(var c=!1,u=0,l=r;u=g+2)break}d.push(m),f=m}if(d.length){var g=Pn(n,e.lastOrUndefined(d).end);Pn(n,e.skipTrivia(t,a.pos))>=g+2&&(qn(n,r,a,u),Hn(t,n,r,d,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.lastOrUndefined(d).end})}}return l}function $n(t,n,r,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(n,i),c=n.length,u=void 0,l=i,d=s.line;l0){var m=p%vn(),g=yn((p-m)/vn());for(r.rawWrite(g);m;)r.rawWrite(" "),m--}else r.rawWrite("")}Xn(t,a,r,o,l,f),l=f}else r.write(t.substring(i,a))}function Xn(e,t,n,r,i,a){var o=Math.min(t,a-1),s=e.substring(i,o).replace(/^\s+|\s+$/g,"");s?(n.write(s),o!==t&&n.writeLine()):n.writeLiteral(r)}function Yn(t,n,r){for(var i=0;n=58&&e<=70}function or(t){if(201===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function sr(t,n){return e.isBinaryExpression(t)&&(n?58===t.operatorToken.kind:ar(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function cr(e){if(sr(e,!0)){var t=e.left.kind;return 178===t||177===t}return!1}function ur(e){return void 0!==or(e)}function lr(t){return 201===t.kind&&dr(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)}function dr(e){return 71===e.kind||179===e.kind&&dr(e.expression)}function fr(e){return 143===e.parent.kind&&e.parent.right===e||179===e.parent.kind&&e.parent.name===e}function _r(e){return 178===e.kind&&0===e.properties.length}function pr(e){return 177===e.kind&&0===e.elements.length}function mr(e){return gr(e)?e.declarations[0].localSymbol:void 0}function gr(t){return t&&e.length(t.declarations)>0&&Zn(t.declarations[0],512)}function hr(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(n){return e.fileExtensionIs(t,n)})}function yr(t){for(var n=[],r=t.length,i=0;i>6|192),n.push(63&a|128)):a<65536?(n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)):a<131072?(n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return n}function vr(e){for(var t,n,r,i,a="",o=yr(e),s=0,c=o.length;s>2,n=(3&o[s])<<4|o[s+1]>>4,r=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?r=i=64:s+2>=c&&(i=64),a+=gi.charAt(t)+gi.charAt(n)+gi.charAt(r)+gi.charAt(i),s+=3;return a}function br(t,n){switch(t.newLine){case 0:return hi;case 1:return yi}return n?n.newLine:e.sys?e.sys.newLine:hi}function xr(e,t,n){void 0===e&&(e=0);var r=kr(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){for(var i="",a=e,o=r.length-1;o>=0&&0!==a;o--){var s=r[o],c=s[0],u=s[1];0!==c&&(a&c)===c&&(a&=~c,i=u+(i?", ":"")+i)}if(0===a)return i}else for(var l=0,d=r;l0?Or(e,e.decorators.end):e}function Fr(e){return e.modifiers&&e.modifiers.length>0?Or(e,e.modifiers.end):Ir(e)}function Mr(e){return e.pos===e.end}function Rr(t,n){return Nr(t,t+e.tokenToString(n).length)}function Lr(e,t){return zr(e,e,t)}function Br(e,t,n){return Ur(Kr(e,n),Kr(t,n),n)}function jr(e,t,n){return Ur(e.end,t.end,n)}function zr(e,t,n){return Ur(Kr(e,n),t.end,n)}function Jr(e,t,n){return Ur(e.end,Kr(t,n),n)}function Ur(e,t,n){return e===t||Nn(n,e)===Nn(n,t)}function Kr(t,n){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(n.text,t.pos)}function qr(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 232:case 233:return n===n.parent.name}return!1}function Vr(t){return e.filter(t.declarations,Wr)}function Wr(e){return void 0!==e.initializer}function Hr(e){return e.watch&&e.hasOwnProperty("watch")}function Gr(e){return 33554432&e.flags?e.checkFlags:0}function $r(t){if(t.valueDeclaration){var n=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?n:-29&n}if(6&Gr(t)){var r=t.checkFlags;return(256&r?8:64&r?4:16)|(512&r?32:0)}return 4194304&t.flags?36:0}function Xr(e,t){for(var n=new Array(t.length+1),r=new Array(t.length+1),i=0;i/;var si=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var ci=/^(\/\/\/\s*/;e.isPartOfTypeNode=me,e.isChildOfNodeWithKind=ge,e.forEachReturnStatement=he,e.forEachYieldExpression=ye,e.getRestParameterElementType=ve,e.isVariableLike=be,e.introducesArgumentsExoticObject=xe,e.unwrapInnermostStatementOfLabel=ke,e.isFunctionBlock=Se,e.isObjectLiteralMethod=Ce,e.isObjectLiteralOrClassExpressionMethod=De,e.isIdentifierTypePredicate=Te,e.isThisTypePredicate=Ee,e.getPropertyAssignment=we,e.getContainingFunction=Ae,e.getContainingClass=Ne,e.getThisContainer=Pe,e.getNewTargetContainer=Oe,e.getSuperContainer=Ie,e.getImmediatelyInvokedFunctionExpression=Fe,e.isSuperProperty=Me,e.getEntityNameFromTypeNode=Re,e.getInvokedExpression=Le,e.nodeCanBeDecorated=Be,e.nodeIsDecorated=je,e.nodeOrChildIsDecorated=ze,e.childIsDecorated=Je,e.isJSXTagName=Ue,e.isPartOfExpression=Ke,e.isInExpressionContext=qe,e.isExternalModuleImportEqualsDeclaration=Ve,e.getExternalModuleImportEqualsDeclarationExpression=We,e.isInternalModuleImportEqualsDeclaration=He,e.isSourceFileJavaScript=Ge,e.isInJavaScriptFile=$e,e.isInJSDoc=Xe,e.isJSDocIndexSignature=Ye,e.isRequireCall=Qe,e.isSingleOrDoubleQuote=Ze,e.isStringDoubleQuoted=et,e.isDeclarationOfFunctionOrClassExpression=tt,e.getRightMostAssignedExpression=nt,e.isExportsIdentifier=rt,e.isModuleExportsPropertyAccessExpression=it,e.getSpecialPropertyAssignmentKind=at,e.getExternalModuleName=ot,e.getNamespaceDeclarationNode=st,e.isDefaultImport=ct,e.hasQuestionToken=ut,e.isJSDocConstructSignature=lt,e.getAllJSDocs=dt,e.getSourceOfAssignment=ft,e.getSingleInitializerOfVariableStatement=_t,e.getSingleVariableOfVariableStatement=pt,e.getNestedModuleDeclaration=mt,e.getJSDocCommentsAndTags=gt,e.getParameterSymbolFromJSDoc=ht,e.getJSDocHost=yt,e.getTypeParameterFromJsDoc=vt,e.hasRestParameter=bt,e.isRestParameter=xt;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=kt,e.isAssignmentTarget=St,e.isDeleteTarget=Ct,e.isNodeDescendantOf=Dt,e.isInAmbientContext=Tt,e.isDeclarationName=Et,e.isAnyDeclarationName=wt,e.isLiteralComputedPropertyDeclarationName=At,e.isIdentifierName=Nt,e.isAliasSymbolDeclaration=Pt,e.exportAssignmentIsAlias=Ot,e.getClassExtendsHeritageClauseElement=It,e.getClassImplementsHeritageClauseElements=Ft,e.getInterfaceBaseTypeNodes=Mt,e.getHeritageClause=Rt,e.tryResolveScriptReference=Lt,e.getAncestor=Bt,e.getFileReferenceFromReferencePath=jt,e.isKeyword=zt,e.isTrivia=Jt;!function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=Ut,e.isAsyncFunction=Kt,e.isStringOrNumericLiteral=qt,e.hasDynamicName=Vt,e.isDynamicName=Wt,e.isWellKnownSymbolSyntactically=Ht,e.getPropertyNameForPropertyNameNode=Gt,e.getTextOfIdentifierOrLiteral=$t,e.getEscapedTextOfIdentifierOrLiteral=Xt,e.getPropertyNameForKnownSymbolName=Yt,e.isESSymbolIdentifier=Qt,e.isPushOrUnshiftIdentifier=Zt,e.isParameterDeclaration=en,e.getRootDeclaration=tn,e.nodeStartsNewLexicalEnvironment=nn,e.nodeIsSynthesized=rn,e.getOriginalSourceFile=an;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=on,e.getOperatorAssociativity=sn,e.getExpressionPrecedence=cn,e.getOperator=un,e.getOperatorPrecedence=ln,e.createDiagnosticCollection=dn;var ui=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,li=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,di=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,fi=e.createMapFromTemplate({"\0":"\\0","\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"}),_i=/\\0[0-9]/g;e.escapeString=fn,e.isIntrinsicJsxName=mn;var pi=/[^\u0000-\u007F]/g;e.escapeNonAsciiString=hn;var mi=[""," "];e.getIndentString=yn,e.getIndentSize=vn,e.createTextWriter=bn,e.getResolvedExternalModuleName=xn,e.getExternalModuleNameFromDeclaration=kn,e.getExternalModuleNameFromPath=Sn,e.getOwnEmitOutputFilePath=Cn,e.getDeclarationEmitOutputFilePath=Dn,e.getSourceFilesToEmit=Tn,e.sourceFileMayBeEmitted=En,e.getSourceFilePathInNewDir=wn,e.writeFile=An,e.getLineOfLocalPosition=Nn,e.getLineOfLocalPositionFromLineMap=Pn,e.getFirstConstructorWithBody=On,e.getSetAccessorTypeAnnotationNode=Fn,e.getThisParameter=Mn,e.parameterIsThisKeyword=Rn,e.isThisIdentifier=Ln,e.identifierIsThisKeyword=Bn,e.getAllAccessorDeclarations=jn,e.getEffectiveTypeAnnotationNode=zn,e.getEffectiveReturnTypeNode=Jn,e.getEffectiveTypeParameterDeclarations=Un,e.getEffectiveSetAccessorTypeAnnotationNode=Kn,e.emitNewLineBeforeLeadingComments=qn,e.emitNewLineBeforeLeadingCommentsOfPosition=Vn,e.emitNewLineBeforeLeadingCommentOfPosition=Wn,e.emitComments=Hn,e.emitDetachedComments=Gn,e.writeCommentRange=$n,e.hasModifiers=Qn,e.hasModifier=Zn,e.getSelectedModifierFlags=er,e.getModifierFlags=tr,e.getModifierFlagsNoCache=nr,e.modifierToFlag=rr,e.isLogicalOperator=ir,e.isAssignmentOperator=ar,e.tryGetClassExtendingExpressionWithTypeArguments=or,e.isAssignmentExpression=sr,e.isDestructuringAssignment=cr,e.isExpressionWithTypeArgumentsInClassExtendsClause=ur,e.isExpressionWithTypeArgumentsInClassImplementsClause=lr,e.isEntityNameExpression=dr,e.isRightSideOfQualifiedNameOrPropertyAccess=fr,e.isEmptyObjectLiteral=_r,e.isEmptyArrayLiteral=pr,e.getLocalSymbolForExportDefault=mr,e.tryExtractTypeScriptExtension=hr;var gi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=vr;var hi="\r\n",yi="\n";e.getNewLineCharacter=br,e.formatSyntaxKind=Sr,e.formatModifierFlags=Cr,e.formatTransformFlags=Dr,e.formatEmitFlags=Tr,e.formatSymbolFlags=Er,e.formatTypeFlags=wr,e.formatObjectFlags=Ar,e.createRange=Nr,e.moveRangeEnd=Pr,e.moveRangePos=Or,e.moveRangePastDecorators=Ir,e.moveRangePastModifiers=Fr,e.isCollapsedRange=Mr,e.createTokenRange=Rr,e.rangeIsOnSingleLine=Lr,e.rangeStartPositionsAreOnSameLine=Br,e.rangeEndPositionsAreOnSameLine=jr,e.rangeStartIsOnSameLineAsRangeEnd=zr,e.rangeEndIsOnSameLineAsRangeStart=Jr,e.positionsAreOnSameLine=Ur,e.getStartPositionOfRange=Kr,e.isDeclarationNameOfEnumOrNamespace=qr,e.getInitializedVariables=Vr,e.isWatchSet=Hr,e.getCheckFlags=Gr,e.getDeclarationModifierFlagsFromSymbol=$r,e.levenshtein=Xr,e.skipAlias=Yr,e.getCombinedLocalAndExportSymbolFlags=Qr,e.isWriteOnlyAccess=Zr,e.isWriteAccess=ei;var vi;!function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(vi||(vi={})),e.compareDataObjects=ni,e.clearMap=ri,e.mutateMap=ii,e.forEachAncestorDirectory=ai}(o||(o={})),function(e){function t(e){switch(e.target){case 5:return"lib.esnext.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function n(e){return e.start+e.length}function r(e){return 0===e.length}function i(e,t){return t>=e.start&&t=e.start&&n(t)<=n(e)}function o(e,t){return Math.max(e.start,t.start)=e.start}function u(e,t,r){var i=t+r;return t<=n(e)&&i>=e.start}function l(e,t,n,r){var i=e+t,a=n+r;return n<=i&&a>=e}function d(e,t){return t<=n(e)&&t>=e.start}function f(e,t){var r=Math.max(e.start,t.start),i=Math.min(n(e),n(t));if(r<=i)return p(r,i)}function _(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function p(e,t){return _(e,t-e)}function m(e){return _(e.span.start,e.newLength)}function g(e){return r(e.span)&&0===e.newLength}function h(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function y(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var r=t[0],i=r.span.start,a=n(r.span),o=i+r.newLength,s=1;s=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function P(e){return N(e.escapedText)}function O(e){return N(e.escapedName)}function I(e){return e}function F(t){var n=t.parent.parent;if(n){if(e.isDeclaration(n))return M(n);switch(n.kind){case 208:if(n.declarationList&&n.declarationList.declarations[0])return M(n.declarationList.declarations[0]);return;case 210:var r=n.expression;switch(r.kind){case 179:return r.name;case 180:var i=r.argumentExpression;if(e.isIdentifier(i))return i}return;case 1:return;case 185:return M(n.expression);case 222:if(e.isDeclaration(n.statement)||e.isExpression(n.statement))return M(n.statement);return;default:e.Debug.assertNever(n,"Found typedef tag attached to node which it should not be!")}}}function M(t){var n=L(t);return e.isIdentifier(n)?n:void 0}function R(e){return e.name||F(e)}function L(t){if(t){switch(t.kind){case 284:case 279:var n=t.name;if(143===n.kind)return n.right;break;case 194:var r=t;switch(e.getSpecialPropertyAssignmentKind(r)){case 1:case 4:case 5:case 3:return r.left.name;default:return}case 283:return R(t);case 243:var i=t.expression;return e.isIdentifier(i)?i:void 0}return t.name}}function B(t){if(t.name&&e.isIdentifier(t.name)){var n=t.name.escapedText;return H(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n})}}function j(e){return!!G(e,279)}function z(e){return G(e,277)}function J(e){return G(e,278)}function U(e){return G(e,280)}function K(e){return G(e,282)}function q(e){var t=G(e,281);if(t&&t.typeExpression&&t.typeExpression.type)return t}function V(t){var n=G(t,281);if(!n&&146===t.kind){var r=B(t);r&&(n=e.find(r,function(e){return!!e.typeExpression}))}return n&&n.typeExpression&&n.typeExpression.type}function W(e){var t=U(e);return t&&t.typeExpression&&t.typeExpression.type}function H(t){var n=t.jsDocCache;return void 0===n&&(t.jsDocCache=n=e.flatMap(e.getJSDocCommentsAndTags(t),function(t){return e.isJSDoc(t)?t.tags:t})),n}function G(t,n){var r=H(t);return e.find(r,function(e){return e.kind===n})}function $(t,n){var r=H(t);return e.filter(r,function(e){return e.kind===n})}e.getDefaultLibFileName=t,e.textSpanEnd=n,e.textSpanIsEmpty=r,e.textSpanContainsPosition=i,e.textSpanContainsTextSpan=a,e.textSpanOverlapsWith=o,e.textSpanOverlap=s,e.textSpanIntersectsWithTextSpan=c,e.textSpanIntersectsWith=u,e.decodedTextSpanIntersectsWith=l,e.textSpanIntersectsWithPosition=d,e.textSpanIntersection=f,e.createTextSpan=_,e.createTextSpanFromBounds=p,e.textChangeRangeNewSpan=m,e.textChangeRangeIsUnchanged=g,e.createTextChangeRange=h,e.unchangedTextChangeRange=h(_(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=y,e.getTypeParameterOwner=v,e.isParameterPropertyDeclaration=b,e.isEmptyBindingPattern=x,e.isEmptyBindingElement=k,e.getCombinedModifierFlags=C,e.getCombinedNodeFlags=D,e.validateLocaleAndSetLanguage=T,e.getOriginalNode=E,e.isParseTreeNode=w,e.getParseTreeNode=A,e.unescapeLeadingUnderscores=N,e.idText=P,e.symbolName=O,e.unescapeIdentifier=I,e.getNameOfJSDocTypedef=R,e.getNameOfDeclaration=L,e.getJSDocParameterTags=B,e.hasJSDocParameterTags=j,e.getJSDocAugmentsTag=z,e.getJSDocClassTag=J,e.getJSDocReturnTag=U,e.getJSDocTemplateTag=K,e.getJSDocTypeTag=q,e.getJSDocType=V,e.getJSDocReturnType=W,e.getJSDocTags=H,e.getAllJSDocTagsOfKind=$}(o||(o={})),function(e){function t(e){return 8===e.kind}function n(e){return 9===e.kind}function r(e){return 10===e.kind}function i(e){return 12===e.kind}function a(e){return 13===e.kind}function o(e){return 14===e.kind}function s(e){return 15===e.kind}function c(e){return 16===e.kind}function u(e){return 71===e.kind}function l(e){return 143===e.kind}function d(e){return 144===e.kind}function f(e){return 145===e.kind}function _(e){return 146===e.kind}function p(e){return 147===e.kind}function m(e){return 148===e.kind}function g(e){return 149===e.kind}function h(e){return 150===e.kind}function y(e){return 151===e.kind}function v(e){return 152===e.kind}function b(e){return 153===e.kind}function x(e){return 154===e.kind}function k(e){return 155===e.kind}function S(e){return 156===e.kind}function C(e){return 157===e.kind}function D(e){return 158===e.kind}function T(e){return 159===e.kind}function E(e){return 160===e.kind}function w(e){return 161===e.kind}function A(e){return 162===e.kind}function N(e){return 163===e.kind}function P(e){return 164===e.kind}function O(e){return 165===e.kind}function I(e){return 166===e.kind}function F(e){return 167===e.kind}function M(e){return 168===e.kind}function R(e){return 169===e.kind}function L(e){return 170===e.kind}function B(e){return 171===e.kind}function j(e){return 172===e.kind}function z(e){return 173===e.kind}function J(e){return 174===e.kind}function U(e){return 175===e.kind}function K(e){return 176===e.kind}function q(e){return 177===e.kind}function V(e){return 178===e.kind}function W(e){return 179===e.kind}function H(e){return 180===e.kind}function G(e){return 181===e.kind}function $(e){return 182===e.kind}function X(e){return 183===e.kind}function Y(e){return 184===e.kind}function Q(e){return 185===e.kind}function Z(e){for(;288===e.kind;)e=e.expression;return e}function ee(e){return 186===e.kind}function te(e){return 187===e.kind}function ne(e){return 188===e.kind}function re(e){return 191===e.kind}function ie(e){return 190===e.kind}function ae(e){return 191===e.kind}function oe(e){return 192===e.kind}function se(e){return 193===e.kind}function ce(e){return 194===e.kind}function ue(e){return 195===e.kind}function le(e){return 196===e.kind}function de(e){return 197===e.kind}function fe(e){return 198===e.kind}function _e(e){return 199===e.kind}function pe(e){return 200===e.kind}function me(e){return 201===e.kind}function ge(e){return 202===e.kind}function he(e){return 203===e.kind}function ye(e){return 204===e.kind}function ve(e){return 205===e.kind}function be(e){return 206===e.kind}function xe(e){return 207===e.kind}function ke(e){return 208===e.kind}function Se(e){return 209===e.kind}function Ce(e){return 210===e.kind}function De(e){return 211===e.kind}function Te(e){return 212===e.kind}function Ee(e){return 213===e.kind}function we(e){return 214===e.kind}function Ae(e){return 215===e.kind}function Ne(e){return 216===e.kind}function Pe(e){return 217===e.kind}function Oe(e){return 218===e.kind}function Ie(e){return 219===e.kind}function Fe(e){return 220===e.kind}function Me(e){return 221===e.kind}function Re(e){return 222===e.kind}function Le(e){return 223===e.kind}function Be(e){return 224===e.kind}function je(e){return 225===e.kind}function ze(e){return 226===e.kind}function Je(e){return 227===e.kind}function Ue(e){return 228===e.kind}function Ke(e){return 229===e.kind}function qe(e){return 230===e.kind}function Ve(e){return 231===e.kind}function We(e){return 232===e.kind}function He(e){return 233===e.kind}function Ge(e){return 234===e.kind}function $e(e){return 235===e.kind}function Xe(e){return 236===e.kind}function Ye(e){return 237===e.kind}function Qe(e){return 238===e.kind}function Ze(e){return 239===e.kind}function et(e){return 240===e.kind}function tt(e){return 241===e.kind}function nt(e){return 242===e.kind}function rt(e){return 243===e.kind}function it(e){return 244===e.kind}function at(e){return 245===e.kind}function ot(e){return 246===e.kind}function st(e){return 247===e.kind}function ct(e){return 248===e.kind}function ut(e){return 249===e.kind}function lt(e){return 250===e.kind}function dt(e){return 251===e.kind}function ft(e){return 252===e.kind}function _t(e){return 253===e.kind}function pt(e){return 254===e.kind}function mt(e){return 255===e.kind}function gt(e){return 256===e.kind}function ht(e){return 257===e.kind}function yt(e){return 258===e.kind}function vt(e){return 259===e.kind}function bt(e){return 260===e.kind}function xt(e){return 261===e.kind}function kt(e){return 262===e.kind}function St(e){return 263===e.kind}function Ct(e){return 264===e.kind}function Dt(e){return 265===e.kind}function Tt(e){return 266===e.kind}function Et(e){return 267===e.kind}function wt(e){return 268===e.kind}function At(e){return 269===e.kind}function Nt(e){return 270===e.kind}function Pt(e){return 271===e.kind}function Ot(e){return 272===e.kind}function It(e){return 273===e.kind}function Ft(e){return 274===e.kind}function Mt(e){return 275===e.kind}function Rt(e){return 277===e.kind}function Lt(e){return 279===e.kind}function Bt(e){return 280===e.kind}function jt(e){return 281===e.kind}function zt(e){return 282===e.kind}function Jt(e){return 283===e.kind}function Ut(e){return 284===e.kind}function Kt(e){return 284===e.kind||279===e.kind}function qt(e){return 285===e.kind}e.isNumericLiteral=t,e.isStringLiteral=n,e.isJsxText=r,e.isRegularExpressionLiteral=i,e.isNoSubstitutionTemplateLiteral=a,e.isTemplateHead=o,e.isTemplateMiddle=s,e.isTemplateTail=c,e.isIdentifier=u,e.isQualifiedName=l,e.isComputedPropertyName=d,e.isTypeParameterDeclaration=f,e.isParameter=_,e.isDecorator=p,e.isPropertySignature=m,e.isPropertyDeclaration=g,e.isMethodSignature=h,e.isMethodDeclaration=y,e.isConstructorDeclaration=v,e.isGetAccessorDeclaration=b,e.isSetAccessorDeclaration=x,e.isCallSignatureDeclaration=k,e.isConstructSignatureDeclaration=S,e.isIndexSignatureDeclaration=C,e.isTypePredicateNode=D,e.isTypeReferenceNode=T,e.isFunctionTypeNode=E,e.isConstructorTypeNode=w,e.isTypeQueryNode=A,e.isTypeLiteralNode=N,e.isArrayTypeNode=P,e.isTupleTypeNode=O,e.isUnionTypeNode=I,e.isIntersectionTypeNode=F,e.isParenthesizedTypeNode=M,e.isThisTypeNode=R,e.isTypeOperatorNode=L,e.isIndexedAccessTypeNode=B,e.isMappedTypeNode=j,e.isLiteralTypeNode=z,e.isObjectBindingPattern=J,e.isArrayBindingPattern=U,e.isBindingElement=K,e.isArrayLiteralExpression=q,e.isObjectLiteralExpression=V,e.isPropertyAccessExpression=W,e.isElementAccessExpression=H,e.isCallExpression=G,e.isNewExpression=$,e.isTaggedTemplateExpression=X,e.isTypeAssertion=Y,e.isParenthesizedExpression=Q,e.skipPartiallyEmittedExpressions=Z,e.isFunctionExpression=ee,e.isArrowFunction=te,e.isDeleteExpression=ne,e.isTypeOfExpression=re,e.isVoidExpression=ie,e.isAwaitExpression=ae,e.isPrefixUnaryExpression=oe,e.isPostfixUnaryExpression=se,e.isBinaryExpression=ce,e.isConditionalExpression=ue,e.isTemplateExpression=le,e.isYieldExpression=de,e.isSpreadElement=fe,e.isClassExpression=_e,e.isOmittedExpression=pe,e.isExpressionWithTypeArguments=me,e.isAsExpression=ge,e.isNonNullExpression=he,e.isMetaProperty=ye,e.isTemplateSpan=ve,e.isSemicolonClassElement=be,e.isBlock=xe,e.isVariableStatement=ke,e.isEmptyStatement=Se,e.isExpressionStatement=Ce,e.isIfStatement=De,e.isDoStatement=Te,e.isWhileStatement=Ee,e.isForStatement=we,e.isForInStatement=Ae,e.isForOfStatement=Ne,e.isContinueStatement=Pe,e.isBreakStatement=Oe,e.isReturnStatement=Ie,e.isWithStatement=Fe,e.isSwitchStatement=Me,e.isLabeledStatement=Re,e.isThrowStatement=Le,e.isTryStatement=Be,e.isDebuggerStatement=je,e.isVariableDeclaration=ze,e.isVariableDeclarationList=Je,e.isFunctionDeclaration=Ue,e.isClassDeclaration=Ke,e.isInterfaceDeclaration=qe,e.isTypeAliasDeclaration=Ve,e.isEnumDeclaration=We,e.isModuleDeclaration=He,e.isModuleBlock=Ge,e.isCaseBlock=$e,e.isNamespaceExportDeclaration=Xe,e.isImportEqualsDeclaration=Ye,e.isImportDeclaration=Qe,e.isImportClause=Ze,e.isNamespaceImport=et,e.isNamedImports=tt,e.isImportSpecifier=nt,e.isExportAssignment=rt,e.isExportDeclaration=it,e.isNamedExports=at,e.isExportSpecifier=ot,e.isMissingDeclaration=st,e.isExternalModuleReference=ct,e.isJsxElement=ut,e.isJsxSelfClosingElement=lt,e.isJsxOpeningElement=dt,e.isJsxClosingElement=ft,e.isJsxAttribute=_t,e.isJsxAttributes=pt,e.isJsxSpreadAttribute=mt,e.isJsxExpression=gt,e.isCaseClause=ht,e.isDefaultClause=yt,e.isHeritageClause=vt,e.isCatchClause=bt,e.isPropertyAssignment=xt,e.isShorthandPropertyAssignment=kt,e.isSpreadAssignment=St,e.isEnumMember=Ct,e.isSourceFile=Dt,e.isBundle=Tt,e.isJSDocTypeExpression=Et,e.isJSDocAllType=wt,e.isJSDocUnknownType=At,e.isJSDocNullableType=Nt,e.isJSDocNonNullableType=Pt,e.isJSDocOptionalType=Ot,e.isJSDocFunctionType=It,e.isJSDocVariadicType=Ft,e.isJSDoc=Mt,e.isJSDocAugmentsTag=Rt,e.isJSDocParameterTag=Lt,e.isJSDocReturnTag=Bt,e.isJSDocTypeTag=jt,e.isJSDocTemplateTag=zt,e.isJSDocTypedefTag=Jt,e.isJSDocPropertyTag=Ut,e.isJSDocPropertyLikeTag=Kt,e.isJSDocTypeLiteral=qt}(o||(o={})),function(e){function t(e){return 286===e.kind}function n(e){return r(e.kind)}function r(e){return e>=143}function i(e){return e.kind>=0&&e.kind<=142}function a(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}function o(e){return 8<=e&&e<=13}function s(e){return o(e.kind)}function c(e){return 13<=e&&e<=16}function u(e){var t=e.kind;return 15===t||16===t}function l(e){switch(e.kind){case 9:case 14:case 15:case 16:case 13:return!0;default:return!1}}function d(t){return e.isIdentifier(t)&&t.autoGenerateKind>0}function f(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 131:case 115:return!0}return!1}function _(e){return f(e.kind)}function p(e){var t=e.kind;return 143===t||71===t}function m(e){var t=e.kind;return 71===t||9===t||8===t||144===t}function g(e){var t=e.kind;return 71===t||174===t||175===t}function h(e){return e&&b(e.kind)}function y(e){return e&&v(e.kind)}function v(e){switch(e){case 228:case 151:case 152:case 153:case 154:case 186:case 187:return!0;default:return!1}}function b(e){switch(e){case 150:case 155:case 156:case 157:case 160:case 273:case 161:return!0;default:return v(e)}}function x(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&h(t.parent)}function k(e){var t=e.kind;return 152===t||149===t||151===t||153===t||154===t||157===t||206===t||247===t}function S(e){return e&&(229===e.kind||199===e.kind)}function C(e){return e&&(153===e.kind||154===e.kind)}function D(e){var t=e.kind;return 156===t||155===t||148===t||150===t||157===t||247===t}function T(e){var t=e.kind;return 261===t||262===t||263===t||151===t||153===t||154===t||247===t}function E(e){return e>=158&&e<=173||119===e||133===e||134===e||122===e||136===e||137===e||99===e||105===e||139===e||95===e||130===e||201===e||268===e||269===e||270===e||271===e||272===e||273===e||274===e}function w(e){return E(e.kind)}function A(e){switch(e.kind){case 160:case 161:return!0}return!1}function N(e){if(e){var t=e.kind;return 175===t||174===t}return!1}function P(e){var t=e.kind;return 177===t||178===t}function O(e){var t=e.kind;return 176===t||200===t}function I(e){switch(e.kind){case 226:case 146:case 176:return!0}return!1}function F(e){return M(e)||R(e)}function M(e){switch(e.kind){case 174:case 178:return!0}return!1}function R(e){switch(e.kind){case 175:case 177:return!0}return!1}function L(e){var t=e.kind;return 179===t||143===t}function B(e){switch(e.kind){case 251:case 250:case 181:case 182:case 183:case 147:return!0;default:return!1}}function j(e){return 181===e.kind||182===e.kind}function z(e){var t=e.kind;return 196===t||13===t}function J(t){return U(e.skipPartiallyEmittedExpressions(t).kind)}function U(e){switch(e){case 179:case 180:case 182:case 181:case 249:case 250:case 183:case 177:case 185:case 178:case 199:case 186:case 71:case 12:case 8:case 9:case 13:case 196:case 86:case 95:case 99:case 101:case 97:case 203:case 204:case 91:return!0;default:return!1}}function K(t){return q(e.skipPartiallyEmittedExpressions(t).kind)}function q(e){switch(e){case 192:case 193:case 188:case 189:case 190:case 191:case 184:return!0;default:return U(e)}}function V(e){switch(e.kind){case 193:return!0;case 192:return 43===e.operator||44===e.operator;default:return!1}}function W(t){return H(e.skipPartiallyEmittedExpressions(t).kind)}function H(e){switch(e){case 195:case 197:case 187:case 194:case 198:case 202:case 200:case 289:case 288:return!0;default:return q(e)}}function G(e){var t=e.kind;return 184===t||202===t}function $(e){return 288===e.kind}function X(e){return 287===e.kind}function Y(e){return X(e)||$(e)}function Q(e,t){switch(e.kind){case 214:case 215:case 216:case 212:case 213:return!0;case 222:return t&&Q(e.statement,t)}return!1}function Z(e){return 215===e.kind||216===e.kind}function ee(t){return e.isBlock(t)||W(t)}function te(t){return e.isBlock(t)}function ne(t){return e.isVariableDeclarationList(t)||W(t)}function re(e){var t=e.kind;return 234===t||233===t||71===t}function ie(e){var t=e.kind;return 234===t||233===t}function ae(e){var t=e.kind;return 71===t||233===t}function oe(e){var t=e.kind;return 241===t||240===t}function se(e){return 233===e.kind||232===e.kind}function ce(e){return 187===e||176===e||229===e||199===e||152===e||232===e||264===e||246===e||228===e||186===e||153===e||239===e||237===e||242===e||230===e||253===e||151===e||150===e||233===e||236===e||240===e||146===e||261===e||149===e||148===e||154===e||262===e||231===e||145===e||226===e||283===e}function ue(e){return 228===e||247===e||229===e||230===e||231===e||232===e||233===e||238===e||237===e||244===e||243===e||236===e}function le(e){return 218===e||217===e||225===e||212===e||210===e||209===e||215===e||216===e||214===e||211===e||222===e||219===e||221===e||223===e||224===e||208===e||213===e||220===e||287===e||291===e||290===e}function de(t){return 145===t.kind?282!==t.parent.kind||e.isInJavaScriptFile(t):ce(t.kind)}function fe(e){return ue(e.kind)}function _e(e){return le(e.kind)}function pe(e){var t=e.kind;return le(t)||ue(t)||me(e)}function me(t){return 207===t.kind&&((void 0===t.parent||224!==t.parent.kind&&260!==t.parent.kind)&&!e.isFunctionBlock(t))}function ge(e){var t=e.kind;return 248===t||143===t||71===t}function he(e){var t=e.kind;return 99===t||71===t||179===t}function ye(e){var t=e.kind;return 249===t||256===t||250===t||10===t}function ve(e){var t=e.kind;return 253===t||255===t}function be(e){var t=e.kind;return 9===t||256===t}function xe(e){var t=e.kind;return 251===t||250===t}function ke(e){var t=e.kind;return 257===t||258===t}function Se(e){return e.kind>=267&&e.kind<=285}function Ce(e){return 275===e.kind||De(e)}function De(e){return e.kind>=276&&e.kind<=285}function Te(e){return 154===e.kind}function Ee(e){return 153===e.kind}function we(e){return!!e.jsDoc&&e.jsDoc.length>0}e.isSyntaxList=t,e.isNode=n,e.isNodeKind=r,e.isToken=i,e.isNodeArray=a,e.isLiteralKind=o,e.isLiteralExpression=s,e.isTemplateLiteralKind=c,e.isTemplateMiddleOrTemplateTail=u,e.isStringTextContainingNode=l,e.isGeneratedIdentifier=d,e.isModifierKind=f,e.isModifier=_,e.isEntityName=p,e.isPropertyName=m,e.isBindingName=g,e.isFunctionLike=h,e.isFunctionLikeDeclaration=y,e.isFunctionLikeKind=b,e.isFunctionOrModuleBlock=x,e.isClassElement=k,e.isClassLike=S,e.isAccessor=C,e.isTypeElement=D,e.isObjectLiteralElementLike=T,e.isTypeNode=w,e.isFunctionOrConstructorTypeNode=A,e.isBindingPattern=N,e.isAssignmentPattern=P,e.isArrayBindingElement=O,e.isDeclarationBindingElement=I,e.isBindingOrAssignmentPattern=F,e.isObjectBindingOrAssignmentPattern=M,e.isArrayBindingOrAssignmentPattern=R,e.isPropertyAccessOrQualifiedName=L,e.isCallLikeExpression=B,e.isCallOrNewExpression=j,e.isTemplateLiteral=z,e.isLeftHandSideExpression=J,e.isUnaryExpression=K,e.isUnaryExpressionWithWrite=V,e.isExpression=W,e.isAssertionExpression=G,e.isPartiallyEmittedExpression=$,e.isNotEmittedStatement=X,e.isNotEmittedOrPartiallyEmittedNode=Y,e.isIterationStatement=Q,e.isForInOrOfStatement=Z,e.isConciseBody=ee,e.isFunctionBody=te,e.isForInitializer=ne,e.isModuleBody=re,e.isNamespaceBody=ie,e.isJSDocNamespaceBody=ae,e.isNamedImportBindings=oe,e.isModuleOrEnumDeclaration=se,e.isDeclaration=de,e.isDeclarationStatement=fe,e.isStatementButNotDeclaration=_e,e.isStatement=pe,e.isModuleReference=ge,e.isJsxTagNameExpression=he,e.isJsxChild=ye,e.isJsxAttributeLike=ve,e.isStringLiteralOrJsxExpression=be,e.isJsxOpeningLikeElement=xe,e.isCaseOrDefaultClause=ke,e.isJSDocNode=Se,e.isJSDocCommentContainingNode=Ce,e.isJSDocTag=De,e.isSetAccessor=Te,e.isGetAccessor=Ee,e.hasJSDocNodes=we}(o||(o={}));var o;!function(e){function t(t,n,r){return 265===t?new(g||(g=e.objectAllocator.getSourceFileConstructor()))(t,n,r):71===t?new(m||(m=e.objectAllocator.getIdentifierConstructor()))(t,n,r):e.isNodeKind(t)?new(_||(_=e.objectAllocator.getNodeConstructor()))(t,n,r):new(p||(p=e.objectAllocator.getTokenConstructor()))(t,n,r)}function n(e,t){return t&&e(t)}function r(e,t,n){if(n){if(t)return t(n);for(var r=0,i=n;r107)}function G(t,n,r){return void 0===r&&(r=!0),R()===t?(r&&L(),!0):(n?O(n):O(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function $(e){return R()===e&&(L(),!0)}function X(e){if(R()===e)return Q()}function Y(e,t,n,r){return X(e)||ie(e,t,n,r)}function Q(){var e=te(R());return L(),re(e)}function Z(){return 25===R()||(18===R()||1===R()||ha.hasPrecedingLineBreak())}function ee(){return Z()?(25===R()&&L(),!0):G(25)}function te(t,n){return fa++,n>=0||(n=ha.getStartPos()),e.isNodeKind(t)?new ra(t,n,n):71===t?new aa(t,n,n):new ia(t,n,n)}function ne(e,t,n){var r=e.length,i=r>=1&&r<=4?e.slice():e;return i.pos=t,i.end=void 0===n?ha.getStartPos():n,i}function re(e,t){return e.end=void 0===t?ha.getStartPos():t,ga&&(e.flags|=ga),va&&(va=!1,e.flags|=32768),e}function ie(t,n,r,i){n?I(ha.getStartPos(),0,r,i):O(r,i);var a=te(t,ha.getStartPos());return 71===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),re(a)}function ae(e){var t=_a.get(e);return void 0===t&&_a.set(e,t=e),t}function oe(t,n){if(pa++,t){var r=te(71);return 71!==R()&&(r.originalKeywordKind=R()),r.escapedText=e.escapeLeadingUnderscores(ae(ha.getTokenValue())),L(),re(r)}return ie(71,1===R(),n||e.Diagnostics.Identifier_expected)}function se(e){return oe(H(),e)}function ce(t){return oe(e.tokenIsIdentifierOrKeyword(R()),t)}function ue(){return e.tokenIsIdentifierOrKeyword(R())||9===R()||8===R()}function le(e){if(9===R()||8===R()){var t=Xe();return t.text=ae(t.text),t}return e&&21===R()?fe():ce()}function de(){return le(!0)}function fe(){var e=te(144);return G(21),e.expression=b(on),G(22),re(e)}function _e(e){return R()===e&&W(me)}function pe(){return L(),!ha.hasPrecedingLineBreak()&&he()}function me(){return 76===R()?83===L():84===R()?(L(),79===R()?V(ye):39!==R()&&118!==R()&&17!==R()&&he()):79===R()?ye():115===R()?(L(),he()):pe()}function ge(){return e.isModifierKind(R())&&W(me)}function he(){return 21===R()||17===R()||39===R()||24===R()||ue()}function ye(){return L(),75===R()||89===R()||109===R()||117===R()&&V(Br)||120===R()&&V(jr)}function ve(t,n){if(Ne(t))return!0;switch(t){case 0:case 1:case 3:return!(25===R()&&n)&&Kr();case 2:return 73===R()||79===R();case 4:return V(Ct);case 5:return V(pi)||25===R()&&!n;case 6:return 21===R()||ue();case 12:return 21===R()||39===R()||24===R()||ue();case 17:return ue();case 9:return 21===R()||24===R()||ue();case 7:return 17===R()?V(be):n?H()&&!Se():nn()&&!Se();case 8:return ei();case 10:return 26===R()||24===R()||ei();case 18:return H();case 11:case 15:return 26===R()||24===R()||rn();case 16:return ft();case 19:case 20:return 26===R()||jt();case 21:return wi();case 22:return e.tokenIsIdentifierOrKeyword(R());case 13:return e.tokenIsIdentifierOrKeyword(R())||17===R();case 14:return!0}e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function be(){if(e.Debug.assert(17===R()),18===L()){var t=L();return 26===t||17===t||85===t||108===t}return!0}function xe(){return L(),H()}function ke(){return L(),e.tokenIsIdentifierOrKeyword(R())}function Se(){return(108===R()||85===R())&&V(Ce)}function Ce(){return L(),rn()}function De(e){if(1===R())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===R();case 3:return 18===R()||73===R()||79===R();case 7:return 17===R()||85===R()||108===R();case 8:return Te();case 18:return 29===R()||19===R()||17===R()||85===R()||108===R();case 11:return 20===R()||25===R();case 15:case 20:case 10:return 22===R();case 16:case 17:return 20===R()||22===R();case 19:return 26!==R();case 21:return 17===R()||18===R();case 13:return 29===R()||41===R();case 14:return 27===R()&&V(zi)}}function Te(){return!!Z()||(!!Sn(R())||36===R())}function Ee(){for(var e=0;e<23;e++)if(ma&1<=0&&(c.hasTrailingComma=!0),c}function Ke(){return ne([],M())}function qe(e,t,n,r){if(G(n)){var i=Ue(e,t);return G(r),i}return Ke()}function Ve(e,t){for(var n=e?ce(t):se(t),r=ha.getStartPos();$(23);){if(27===R()){n.jsdocDotPos=r;break}r=ha.getStartPos(),n=We(n,He(e))}return n}function We(e,t){var n=te(143,e.pos);return n.left=e,n.right=t,re(n)}function He(t){if(ha.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(R())){if(V(Lr))return ie(71,!0,e.Diagnostics.Identifier_expected)}return t?ce():se()}function Ge(){var t=te(196);t.head=Ye(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var n=[],r=M();do{n.push($e())}while(15===e.lastOrUndefined(n).literal.kind);return t.templateSpans=ne(n,r),re(t)}function $e(){var t=te(205);t.expression=b(on);var n;return 18===R()?(z(),n=Qe()):n=Y(16,!1,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=n,re(t)}function Xe(){return Ze(R())}function Ye(){var t=Ze(R());return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function Qe(){var t=Ze(R());return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function Ze(e){var t=te(e),n=ha.getTokenValue();return t.text=n,ha.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),ha.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=ha.getNumericLiteralFlags()),L(),re(t),t}function et(){var t=te(159);return t.typeName=Ve(!0,e.Diagnostics.Type_expected),ha.hasPrecedingLineBreak()||27!==R()||(t.typeArguments=qe(19,Zt,27,29)),re(t)}function tt(e){L();var t=te(158,e.pos);return t.parameterName=e,t.type=Zt(),re(t)}function nt(){var e=te(169);return L(),re(e)}function rt(){var e=te(268);return L(),re(e)}function it(){var e=ha.getStartPos();if(L(),26===R()||18===R()||20===R()||29===R()||58===R()||49===R()){var t=te(269,e);return re(t)}var t=te(270,e);return t.type=Zt(),re(t)}function at(){if(V(ji)){var e=te(273);return L(),pt(56,36,e),l(re(e))}var t=te(159);return t.typeName=ce(),re(t)}function ot(){var e=te(146);return 99!==R()&&94!==R()||(e.name=ce(),G(56)),e.type=Zt(),re(e)}function st(e){var t=te(e);return L(),t.type=Bt(),re(t)}function ct(){var e=te(162);return G(103),e.exprName=Ve(!0),re(e)}function ut(){var e=te(145);return e.name=se(),$(85)&&(jt()||!rn()?e.constraint=Zt():e.expression=Mn()),$(58)&&(e.default=Zt()),re(e)}function lt(){if(27===R())return qe(18,ut,27,29)}function dt(){if($(56))return Zt()}function ft(){return 24===R()||ei()||e.isModifierKind(R())||57===R()||jt(!0)}function _t(t){var n=te(146);return 99===R()?(n.name=oe(!0),n.type=dt(),re(n)):(n.decorators=mi(),n.modifiers=gi(),n.dotDotDotToken=X(24),n.name=ti(),0===e.getFullWidth(n.name)&&!e.hasModifiers(n)&&e.isModifierKind(R())&&L(),n.questionToken=X(55),n.type=dt(),n.initializer=sn(!0,t),l(re(n)))}function pt(e,t,n){32&t||(n.typeParameters=lt()),n.parameters=ht(t),n.type=mt(e,!!(4&t))}function mt(e,t){return gt(e,t)?Yt():void 0}function gt(t,n){return 36===t?(G(t),!0):!!$(56)||!(!n||36!==R())&&(O(e.Diagnostics._0_expected,e.tokenToString(56)),L(),!0)}function ht(e){if(G(19)){var t=w(),n=P();m(!!(1&e)),h(!!(2&e));var r=Ue(16,32&e?ot:function(){return _t(!!(8&e))});if(m(t),h(n),!G(20)&&8&e)return;return r}return 8&e?void 0:Ke()}function yt(){$(26)||ee()}function vt(e){var t=te(e);return 156===e&&G(94),pt(56,4,t),yt(),l(re(t))}function bt(){return 21===R()&&V(xt)}function xt(){if(L(),24===R()||22===R())return!0;if(e.isModifierKind(R())){if(L(),H())return!0}else{if(!H())return!1;L()}return 56===R()||26===R()||55===R()&&(L(),56===R()||26===R()||22===R())}function kt(e,t,n){var r=te(157,e);return r.decorators=t,r.modifiers=n,r.parameters=qe(16,_t,21,22),r.type=tn(),yt(),l(re(r))}function St(e,t){var n=de(),r=X(55);if(19===R()||27===R()){var i=te(150,e);return i.modifiers=t,i.name=n,i.questionToken=r,pt(56,4,i),yt(),l(re(i))}var a=te(148,e);return a.modifiers=t,a.name=n,a.questionToken=r,a.type=tn(),58===R()&&(a.initializer=di()),yt(),l(re(a))}function Ct(){if(19===R()||27===R())return!0;for(var t;e.isModifierKind(R());)t=!0,L();return 21===R()||(ue()&&(t=!0,L()),!!t&&(19===R()||27===R()||55===R()||56===R()||26===R()||Z()))}function Dt(){if(19===R()||27===R())return vt(155);if(94===R()&&V(Tt))return vt(156);var e=M(),t=gi();return bt()?kt(e,void 0,t):St(e,t)}function Tt(){return L(),19===R()||27===R()}function Et(){var e=te(163);return e.members=wt(),re(e)}function wt(){var e;return G(17)?(e=we(4,Dt),G(18)):e=Ke(),e}function At(){return L(),131===R()&&L(),21===R()&&xe()&&92===L()}function Nt(){var e=te(145);return e.name=se(),G(92),e.constraint=Zt(),re(e)}function Pt(){var e=te(172);return G(17),e.readonlyToken=X(131),G(21),e.typeParameter=Nt(),G(22),e.questionToken=X(55),e.type=tn(),ee(),G(18),re(e)}function Ot(){var e=te(165);return e.elementTypes=qe(20,Zt,21,22),re(e)}function It(){var e=te(168);return G(19),e.type=Zt(),G(20),re(e)}function Ft(e){var t=te(e);return 161===e&&G(94),pt(36,4,t),l(re(t))}function Mt(){var e=Q();return 23===R()?void 0:e}function Rt(e){var t,n=te(173);e&&(t=te(192),t.operator=38,L());var r=101===R()||86===R()?Q():Ze(R());return e&&(t.operand=r,re(t),r=t),n.literal=r,re(n)}function Lt(){return 8===L()}function Bt(){switch(R()){case 119:case 136:case 133:case 122:case 137:case 139:case 130:case 134:return W(Mt)||et();case 39:return rt();case 55:return it();case 89:return at();case 24:return st(274);case 51:return st(271);case 13:case 9:case 8:case 101:case 86:return Rt();case 38:return V(Lt)?Rt(!0):et();case 105:case 95:return Q();case 99:var e=nt();return 126!==R()||ha.hasPrecedingLineBreak()?e:tt(e);case 103:return ct();case 17:return V(At)?Pt():Et();case 21:return Ot();case 19:return It();default:return et()}}function jt(e){switch(R()){case 119:case 136:case 133:case 122:case 137:case 105:case 139:case 95:case 99:case 103:case 130:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 134:case 39:case 55:case 51:case 24:return!0;case 38:return!e&&V(Lt);case 19:return!e&&V(zt);default:return H()}}function zt(){return L(),20===R()||ft()||jt()}function Jt(){for(var e=Bt();!ha.hasPrecedingLineBreak();)switch(R()){case 58:if(!(1048576&ga))return e;e=Ut(272,e);break;case 51:e=Ut(271,e);break;case 55:e=Ut(270,e);break;case 21:if(G(21),jt()){var t=te(171,e.pos);t.objectType=e,t.indexType=Zt(),G(22),e=re(t)}else{var t=te(164,e.pos);t.elementType=e,G(22),e=re(t)}break;default:return e}return e}function Ut(e,t){L();var n=te(e,t.pos);return n.type=t,re(n)}function Kt(e){var t=te(170);return G(e),t.operator=e,t.type=qt(),re(t)}function qt(){switch(R()){case 127:return Kt(127)}return Jt()}function Vt(e,t,n){$(n);var r=t();if(R()===n){for(var i=[r];$(n);)i.push(t());var a=te(e,r.pos);a.types=ne(i,r.pos),r=re(a)}return r}function Wt(){return Vt(167,qt,48)}function Ht(){return Vt(166,Wt,49)}function Gt(){return 27===R()||19===R()&&V(Xt)}function $t(){if(e.isModifierKind(R())&&gi(),H()||99===R())return L(),!0;if(21===R()||17===R()){var t=ca.length;return ti(),t===ca.length}return!1}function Xt(){if(L(),20===R()||24===R())return!0;if($t()){if(56===R()||26===R()||55===R()||58===R())return!0;if(20===R()&&(L(),36===R()))return!0}return!1}function Yt(){var e=H()&&W(Qt),t=Zt();if(e){var n=te(158,e.pos);return n.parameterName=e,n.type=t,re(n)}return t}function Qt(){var e=se();if(126===R()&&!ha.hasPrecedingLineBreak())return L(),e}function Zt(){return y(20480,en)}function en(){return Gt()?Ft(160):94===R()?Ft(161):Ht()}function tn(){return $(56)?Zt():void 0}function nn(){switch(R()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;case 91:return V(Tt);default:return H()}}function rn(){if(nn())return!0;switch(R()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!Dn()||H()}}function an(){return 17!==R()&&89!==R()&&75!==R()&&57!==R()&&rn()}function on(){var e=N();e&&g(!1);for(var t,n=cn();t=X(26);)n=En(n,t,cn());return e&&g(!0),n}function sn(t,n){if(58!==R()){if(ha.hasPrecedingLineBreak()||t&&17===R()||!rn())return;if(t&&n){var r=ie(71,!0,e.Diagnostics._0_expected,"=");return r.escapedText="= not found",r}}return G(58),cn()}function cn(){if(un())return dn();var t=_n()||hn();if(t)return t;var n=kn(0);return 71===n.kind&&36===R()?fn(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(B())?En(n,Q(),cn()):xn(n)}function un(){return 116===R()&&(!!w()||V(zr))}function ln(){return L(),!ha.hasPrecedingLineBreak()&&H()}function dn(){var e=te(197);return L(),ha.hasPrecedingLineBreak()||39!==R()&&!rn()?re(e):(e.asteriskToken=X(39),e.expression=cn(),re(e))}function fn(t,n){e.Debug.assert(36===R(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var r;n?(r=te(187,n.pos),r.modifiers=n):r=te(187,t.pos);var i=te(146,t.pos);return i.name=t,re(i),r.parameters=ne([i],i.pos,i.end),r.equalsGreaterThanToken=Y(36,!1,e.Diagnostics._0_expected,"=>"),r.body=bn(!!n),l(re(r))}function _n(){var t=pn();if(0!==t){var n=1===t?vn(!0):W(gn);if(n){var r=e.hasModifier(n,256),i=R();return n.equalsGreaterThanToken=Y(36,!1,e.Diagnostics._0_expected,"=>"),n.body=36===i||17===i?bn(r):se(),l(re(n))}}}function pn(){return 19===R()||27===R()||120===R()?V(mn):36===R()?1:0}function mn(){if(120===R()){if(L(),ha.hasPrecedingLineBreak())return 0;if(19!==R()&&27!==R())return 0}var t=R(),n=L();if(19===t){if(20===n){switch(L()){case 36:case 56:case 17:return 1;default:return 0}}return 21===n||17===n?2:24===n?1:H()?56===L()?1:2:0}if(e.Debug.assert(27===t),!H())return 0;if(1===sa.languageVariant){return V(function(){var e=L();if(85===e){switch(L()){case 58:case 29:return!1;default:return!0}}else if(26===e)return!0;return!1})?1:0}return 2}function gn(){return vn(!1)}function hn(){if(120===R()&&1===V(yn)){var e=hi();return fn(kn(0),e)}}function yn(){if(120===R()){if(L(),ha.hasPrecedingLineBreak()||36===R())return 0;var e=kn(0);if(!ha.hasPrecedingLineBreak()&&71===e.kind&&36===R())return 1}return 0}function vn(t){var n=te(187);if(n.modifiers=hi(),pt(56,(e.hasModifier(n,256)?2:0)|(t?0:8),n),n.parameters&&(t||!(36!==R()&&17!==R()||e.find(n.parameters,function(t){return t.initializer&&e.isIdentifier(t.initializer)&&"= not found"===t.initializer.escapedText}))))return n}function bn(e){return 17===R()?vr(e?2:0):25!==R()&&89!==R()&&75!==R()&&Kr()&&!an()?vr(16|(e?2:0)):e?C(cn):D(cn)}function xn(t){var n=X(55);if(!n)return t;var r=te(195,t.pos);return r.condition=t,r.questionToken=n,r.whenTrue=y(ya,cn),r.colonToken=Y(56,!1,e.Diagnostics._0_expected,e.tokenToString(56)),r.whenFalse=cn(),re(r)}function kn(e){return Cn(e,Mn())}function Sn(e){return 92===e||142===e}function Cn(e,t){for(;;){B();var n=Tn();if(!(40===R()?n>=e:n>e))break;if(92===R()&&A())break;if(118===R()){if(ha.hasPrecedingLineBreak())break;L(),t=wn(t,Zt())}else t=En(t,Q(),kn(n))}return t}function Dn(){return(!A()||92!==R())&&Tn()>0}function Tn(){switch(R()){case 54:return 1;case 53:return 2;case 49:return 3;case 50:return 4;case 48:return 5;case 32:case 33:case 34:case 35:return 6;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 7;case 45:case 46:case 47:return 8;case 37:case 38:return 9;case 39:case 41:case 42:return 10;case 40:return 11}return-1}function En(e,t,n){var r=te(194,e.pos);return r.left=e,r.operatorToken=t,r.right=n,re(r)}function wn(e,t){var n=te(202,e.pos);return n.expression=e,n.type=t,re(n)}function An(){var e=te(192);return e.operator=R(),L(),e.operand=Rn(),re(e)}function Nn(){var e=te(188);return L(),e.expression=Rn(),re(e)}function Pn(){var e=te(189);return L(),e.expression=Rn(),re(e)}function On(){var e=te(190);return L(),e.expression=Rn(),re(e)}function In(){return 121===R()&&(!!P()||V(zr))}function Fn(){var e=te(191);return L(),e.expression=Rn(),re(e)}function Mn(){if(Ln()){var t=Bn();return 40===R()?Cn(Tn(),t):t}var n=R(),r=Rn();if(40===R()){var i=e.skipTrivia(da,r.pos);184===r.kind?I(i,r.end-i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):I(i,r.end-i,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 r}function Rn(){switch(R()){case 37:case 38:case 52:case 51:return An();case 80:return Nn();case 103:return Pn();case 105:return On();case 27:return er();case 121:if(In())return Fn();default:return Bn()}}function Ln(){switch(R()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==sa.languageVariant)return!1;default:return!0}}function Bn(){if(43===R()||44===R()){var t=te(192);return t.operator=R(),L(),t.operand=jn(),re(t)}if(1===sa.languageVariant&&27===R()&&V(ke))return Kn(!0);var n=jn();if(e.Debug.assert(e.isLeftHandSideExpression(n)),(43===R()||44===R())&&!ha.hasPrecedingLineBreak()){var t=te(193,n.pos);return t.operand=n,t.operator=R(),L(),re(t)}return n}function jn(){var e;return 91===R()&&V(Tt)?(sa.flags|=524288,e=Q()):e=97===R()?Jn():zn(),nr(e)}function zn(){return tr(or())}function Jn(){var t=Q();if(19===R()||23===R()||21===R())return t;var n=te(179,t.pos);return n.expression=t,Y(23,!1,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=He(!0),re(n)}function Un(e,t){return e.kind===t.kind&&(71===e.kind?e.escapedText===t.escapedText:99===e.kind||e.name.escapedText===t.name.escapedText&&Un(e.expression,t.expression))}function Kn(t){var n,r=Gn(t);if(251===r.kind){var i=te(249,r.pos);i.openingElement=r,i.children=Wn(i.openingElement.tagName),i.closingElement=Zn(t),Un(i.openingElement.tagName,i.closingElement.tagName)||I(i.closingElement.pos,i.closingElement.end-i.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(da,i.openingElement.tagName)),n=re(i)}else e.Debug.assert(250===r.kind),n=r;if(t&&27===R()){var a=W(function(){return Kn(!0)});if(a){O(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=te(194,n.pos);return o.end=a.end,o.left=n,o.right=a,o.operatorToken=ie(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return n}function qn(){var e=te(10,ha.getStartPos());return e.containsOnlyWhiteSpaces=11===la,la=ha.scanJsxToken(),re(e)}function Vn(){switch(R()){case 10:case 11:return qn();case 17:return Xn(!1);case 27:return Kn(!1)}e.Debug.fail("Unknown JSX child kind "+R())}function Wn(t){var n=[],r=M(),i=ma;for(ma|=16384;;){if(la=ha.reScanJsxToken(),28===R())break;if(1===R()){I(t.pos,t.end-t.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(da,t));break}if(7===R())break;var a=Vn();a&&n.push(a)}return ma=i,ne(n,r)}function Hn(){var e=te(254);return e.properties=we(13,Yn),re(e)}function Gn(e){var t=ha.getStartPos();G(27);var n,r=$n(),i=Hn();return 29===R()?(n=te(251,t),U()):(G(41),e?G(29):(G(29,void 0,!1),U()),n=te(250,t)),n.tagName=r,n.attributes=i,re(n)}function $n(){J();for(var e=99===R()?Q():ce();$(23);){var t=te(179,e.pos);t.expression=e,t.name=He(!0),e=re(t)}return e}function Xn(e){var t=te(256);return G(17),18!==R()&&(t.dotDotDotToken=X(24),t.expression=cn()),e?G(18):(G(18,void 0,!1),U()),re(t)}function Yn(){if(17===R())return Qn();J();var e=te(253);if(e.name=ce(),58===R())switch(K()){case 9:e.initializer=Xe();break;default:e.initializer=Xn(!0)}return re(e)}function Qn(){var e=te(255);return G(17),G(24),e.expression=on(),G(18),re(e)}function Zn(e){var t=te(252);return G(28),t.tagName=$n(),e?G(29):(G(29,void 0,!1),U()),re(t)}function er(){var e=te(184);return G(27),e.type=Zt(),G(29),e.expression=Rn(),re(e)}function tr(e){for(;;){if(X(23)){var t=te(179,e.pos);t.expression=e,t.name=He(!0),e=re(t)}else if(51!==R()||ha.hasPrecedingLineBreak())if(N()||!$(21)){if(13!==R()&&14!==R())return e;var n=te(183,e.pos);n.tag=e,n.template=13===R()?Xe():Ge(),e=re(n)}else{var r=te(180,e.pos);if(r.expression=e,22!==R()&&(r.argumentExpression=b(on),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var i=r.argumentExpression;i.text=ae(i.text)}G(22),e=re(r)}else{L();var a=te(203,e.pos);a.expression=e,e=re(a)}}}function nr(e){for(;;)if(e=tr(e),27!==R()){if(19!==R())return e;var t=te(181,e.pos);t.expression=e,t.arguments=rr(),e=re(t)}else{var n=W(ir);if(!n)return e;var t=te(181,e.pos);t.expression=e,t.typeArguments=n,t.arguments=rr(),e=re(t)}}function rr(){G(19);var e=Ue(11,lr);return G(20),e}function ir(){if($(27)){var e=Ue(19,Zt);if(G(29))return e&&ar()?e:void 0}}function ar(){switch(R()){case 19:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}function or(){switch(R()){case 8:case 9:case 13:return Xe();case 99:case 97:case 95:case 101:case 86:return Q();case 19:return sr();case 21:return dr();case 17:return pr();case 120:if(!V(jr))break;return mr();case 75:return vi();case 89:return mr();case 94:return hr();case 41:case 63:if(12===j())return Xe();break;case 14:return Ge()}return se(e.Diagnostics.Expression_expected)}function sr(){var e=te(185);return G(19),e.expression=b(on),G(20),l(re(e))}function cr(){var e=te(198);return G(24),e.expression=cn(),re(e)}function ur(){return 24===R()?cr():26===R()?te(200):cn()}function lr(){return y(ya,ur)}function dr(){var e=te(177);return G(21),ha.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ue(15,ur),G(22),re(e)}function fr(e,t,n){return _e(125)?fi(153,e,t,n):_e(135)?fi(154,e,t,n):void 0}function _r(){var e=ha.getStartPos();if(X(24)){var t=te(263,e);return t.expression=cn(),l(re(t))}var n=mi(),r=gi(),i=fr(e,n,r);if(i)return i;var a=X(39),o=H(),s=de(),c=X(55);if(a||19===R()||27===R())return ci(e,n,r,a,s,c);if(o&&(26===R()||18===R()||58===R())){var u=te(262,e);u.name=s,u.questionToken=c;var d=X(58);return d&&(u.equalsToken=d,u.objectAssignmentInitializer=b(cn)),l(re(u))}var f=te(261,e);return f.modifiers=r,f.name=s,f.questionToken=c,G(56),f.initializer=b(cn),l(re(f))}function pr(){var e=te(178);return G(17),ha.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ue(12,_r,!0),G(18),re(e)}function mr(){var t=N();t&&g(!1);var n=te(186);n.modifiers=gi(),G(89),n.asteriskToken=X(39);var r=n.asteriskToken?1:0,i=e.hasModifier(n,256)?2:0;return n.name=r&&i?T(gr):r?k(gr):i?C(gr):gr(),pt(56,r|i,n),n.body=vr(r|i),t&&g(!0),l(re(n))}function gr(){return H()?se():void 0}function hr(){var e=ha.getStartPos();if(G(94),$(23)){var t=te(204,e);return t.keywordToken=94,t.name=ce(),re(t)}var n=te(182,e);return n.expression=zn(),n.typeArguments=W(ir),(n.typeArguments||19===R())&&(n.arguments=rr()),re(n)}function yr(e,t){var n=te(207);return G(17,t)||e?(ha.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=we(1,Wr),G(18)):n.statements=Ke(),re(n)}function vr(e,t){var n=w();m(!!(1&e));var r=P();h(!!(2&e));var i=N();i&&g(!1);var a=yr(!!(16&e),t);return i&&g(!0),m(n),h(r),a}function br(){var e=te(209);return G(25),re(e)}function xr(){var e=te(211);return G(90),G(19),e.expression=b(on),G(20),e.thenStatement=Wr(),e.elseStatement=$(82)?Wr():void 0,re(e)}function kr(){var e=te(212);return G(81),e.statement=Wr(),G(106),G(19),e.expression=b(on),G(20),$(25),re(e)}function Sr(){var e=te(213);return G(106),G(19),e.expression=b(on),G(20),e.statement=Wr(),re(e)}function Cr(){var e=M();G(88);var t=X(121);G(19);var n=void 0;25!==R()&&(n=104===R()||110===R()||76===R()?ri(!0):x(on));var r;if(t?G(142):$(142)){var i=te(216,e);i.awaitModifier=t,i.initializer=n,i.expression=b(cn),G(20),r=i}else if($(92)){var a=te(215,e);a.initializer=n,a.expression=b(on),G(20),r=a}else{var o=te(214,e);o.initializer=n,G(25),25!==R()&&20!==R()&&(o.condition=b(on)),G(25),20!==R()&&(o.incrementor=b(on)),G(20),r=o}return r.statement=Wr(),re(r)}function Dr(e){var t=te(e);return G(218===e?72:77),Z()||(t.label=se()),ee(),re(t)}function Tr(){var e=te(219);return G(96),Z()||(e.expression=b(on)),ee(),re(e)}function Er(){var e=te(220);return G(107),G(19),e.expression=b(on),G(20),e.statement=Wr(),re(e)}function wr(){var e=te(257);return G(73),e.expression=b(on),G(56),e.statements=we(3,Wr),re(e)}function Ar(){var e=te(258);return G(79),G(56),e.statements=we(3,Wr),re(e)}function Nr(){return 73===R()?wr():Ar()}function Pr(){var e=te(221);G(98),G(19),e.expression=b(on),G(20);var t=te(235,ha.getStartPos());return G(17),t.clauses=we(2,Nr),G(18),e.caseBlock=re(t),re(e)}function Or(){var e=te(223);return G(100),e.expression=ha.hasPrecedingLineBreak()?void 0:b(on),ee(),re(e)}function Ir(){var e=te(224);return G(102),e.tryBlock=yr(!1),e.catchClause=74===R()?Fr():void 0,e.catchClause&&87!==R()||(G(87),e.finallyBlock=yr(!1)),re(e)}function Fr(){var e=te(260);return G(74),$(19)?(e.variableDeclaration=ni(),G(20)):e.variableDeclaration=void 0,e.block=yr(!1),re(e)}function Mr(){var e=te(225);return G(78),ee(),re(e)}function Rr(){var e=ha.getStartPos(),t=b(on);if(71===t.kind&&$(56)){var n=te(222,e);return n.label=t,n.statement=Wr(),l(re(n))}var r=te(210,e);return r.expression=t,ee(),l(re(r))}function Lr(){return L(),e.tokenIsIdentifierOrKeyword(R())&&!ha.hasPrecedingLineBreak()}function Br(){return L(),75===R()&&!ha.hasPrecedingLineBreak()}function jr(){return L(),89===R()&&!ha.hasPrecedingLineBreak()}function zr(){return L(),(e.tokenIsIdentifierOrKeyword(R())||8===R()||9===R())&&!ha.hasPrecedingLineBreak()}function Jr(){for(;;)switch(R()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 138:return ln();case 128:case 129:return Gr();case 117:case 120:case 124:case 112:case 113:case 114:case 131:if(L(),ha.hasPrecedingLineBreak())return!1;continue;case 141:return L(),17===R()||71===R()||84===R();case 91:return L(),9===R()||39===R()||17===R()||e.tokenIsIdentifierOrKeyword(R());case 84:if(L(),58===R()||39===R()||17===R()||79===R()||118===R())return!0;continue;case 115:L();continue;default:return!1}}function Ur(){return V(Jr)}function Kr(){switch(R()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 91:return Ur()||V(Tt);case 76:case 84:return Ur();case 120:case 124:case 109:case 128:case 129:case 138:case 141:return!0;case 114:case 112:case 113:case 115:case 131:return Ur()||!V(Lr);default:return rn()}}function qr(){return L(),H()||17===R()||21===R()}function Vr(){return V(qr)}function Wr(){switch(R()){case 25:return br();case 17:return yr(!1);case 104:return ai(ha.getStartPos(),void 0,void 0);case 110:if(Vr())return ai(ha.getStartPos(),void 0,void 0);break;case 89:return oi(ha.getStartPos(),void 0,void 0);case 75:return bi(ha.getStartPos(),void 0,void 0);case 90:return xr();case 81:return kr();case 106:return Sr();case 88:return Cr();case 77:return Dr(217);case 72:return Dr(218);case 96:return Tr();case 107:return Er();case 98:return Pr();case 100:return Or();case 102:case 74:case 87:return Ir();case 78:return Mr();case 57:return Hr();case 120:case 109:case 138:case 128:case 129:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 131:case 141:if(Ur())return Hr()}return Rr()}function Hr(){var t=M(),n=mi(),r=gi();switch(R()){case 104:case 110:case 76:return ai(t,n,r);case 89:return oi(t,n,r);case 75:return bi(t,n,r);case 109:return Ni(t,n,r);case 138:return Pi(t,n,r);case 83:return Ii(t,n,r);case 141:case 128:case 129:return Li(t,n,r);case 91:return Ui(t,n,r);case 84:switch(L(),R()){case 79:case 58:return ea(t,n,r);case 118:return Ji(t,n,r);default:return Zi(t,n,r)}default:if(n||r){var i=ie(247,!0,e.Diagnostics.Declaration_expected);return i.pos=t,i.decorators=n,i.modifiers=r,re(i)}}}function Gr(){return L(),!ha.hasPrecedingLineBreak()&&(H()||9===R())}function $r(e,t){return 17!==R()&&Z()?void ee():vr(e,t)}function Xr(){if(26===R())return te(200);var e=te(176);return e.dotDotDotToken=X(24),e.name=ti(),e.initializer=sn(!1),re(e)}function Yr(){var e=te(176);e.dotDotDotToken=X(24);var t=H(),n=de();return t&&56!==R()?e.name=n:(G(56),e.propertyName=n,e.name=ti()),e.initializer=sn(!1),re(e)}function Qr(){var e=te(174);return G(17),e.elements=Ue(9,Yr),G(18),re(e)}function Zr(){var e=te(175);return G(21),e.elements=Ue(10,Xr),G(22),re(e)}function ei(){return 17===R()||21===R()||H()}function ti(){return 21===R()?Zr():17===R()?Qr():se()}function ni(){var e=te(226);return e.name=ti(),e.type=tn(),Sn(R())||(e.initializer=di()),re(e)}function ri(t){var n=te(227);switch(R()){case 104:break;case 110:n.flags|=1;break;case 76:n.flags|=2;break;default:e.Debug.fail()}if(L(),142===R()&&V(ii))n.declarations=Ke();else{var r=A();p(t),n.declarations=Ue(8,ni),p(r)}return re(n)}function ii(){return xe()&&20===L()}function ai(e,t,n){var r=te(208,e);return r.decorators=t,r.modifiers=n,r.declarationList=ri(!1),ee(),l(re(r))}function oi(t,n,r){var i=te(228,t);i.decorators=n,i.modifiers=r,G(89),i.asteriskToken=X(39),i.name=e.hasModifier(i,512)?gr():se();var a=i.asteriskToken?1:0,o=e.hasModifier(i,256)?2:0;return pt(56,a|o,i),i.body=$r(a|o,e.Diagnostics.or_expected),l(re(i))}function si(t,n,r){var i=te(152,t);return i.decorators=n,i.modifiers=r,G(123),pt(56,0,i),i.body=$r(0,e.Diagnostics.or_expected),l(re(i))}function ci(t,n,r,i,a,o,s){var c=te(151,t);c.decorators=n,c.modifiers=r,c.asteriskToken=i,c.name=a,c.questionToken=o;var u=i?1:0,d=e.hasModifier(c,256)?2:0;return pt(56,u|d,c),c.body=$r(u|d,s),l(re(c))}function ui(t,n,r,i,a){var o=te(149,t);return o.decorators=n,o.modifiers=r,o.name=i,o.questionToken=a,o.type=tn(),o.initializer=e.hasModifier(o,32)?b(di):y(6144,di),ee(),l(re(o))}function li(t,n,r){var i=X(39),a=de(),o=X(55);return i||19===R()||27===R()?ci(t,n,r,i,a,o,e.Diagnostics.or_expected):ui(t,n,r,a,o)}function di(){return sn(!1)}function fi(e,t,n,r){var i=te(e,t);return i.decorators=n,i.modifiers=r,i.name=de(),pt(56,0,i),i.body=$r(0),l(re(i))}function _i(e){switch(e){case 114:case 112:case 113:case 115:case 131:return!0;default:return!1}}function pi(){var t;if(57===R())return!0;for(;e.isModifierKind(R());){if(t=R(),_i(t))return!0;L()}if(39===R())return!0;if(ue()&&(t=R(),L()),21===R())return!0;if(void 0!==t){if(!e.isKeyword(t)||135===t||125===t)return!0;switch(R()){case 19:case 27:case 56:case 58:case 55:return!0;default:return Z()}}return!1}function mi(){for(var e,t=M();;){var n=M();if(!$(57))break;var r=te(147,n);r.expression=S(jn),re(r),(e||(e=[])).push(r)}return e&&ne(e,t)}function gi(e){for(var t,n=M();;){var r=ha.getStartPos(),i=R();if(76===R()&&e){if(!W(pe))break}else if(!ge())break;var a=re(te(i,r));(t||(t=[])).push(a)}return t&&ne(t,n)}function hi(){var e;if(120===R()){var t=ha.getStartPos(),n=R();L();e=ne([re(te(n,t))],t)}return e}function yi(){if(25===R()){var t=te(206);return L(),re(t)}var n=M(),r=mi(),i=gi(!0),a=fr(n,r,i);if(a)return a;if(123===R())return si(n,r,i);if(bt())return kt(n,r,i);if(e.tokenIsIdentifierOrKeyword(R())||9===R()||8===R()||39===R()||21===R())return li(n,r,i);if(r||i){return ui(n,r,i,ie(71,!0,e.Diagnostics.Declaration_expected),void 0)}e.Debug.fail("Should not have attempted to parse class member declaration.")}function vi(){return xi(ha.getStartPos(),void 0,void 0,199)}function bi(e,t,n){return xi(e,t,n,229)}function xi(e,t,n,r){var i=te(r,e);return i.decorators=t,i.modifiers=n,G(75),i.name=ki(),i.typeParameters=lt(),i.heritageClauses=Ci(),G(17)?(i.members=Ai(),G(18)):i.members=Ke(),l(re(i))}function ki(){return H()&&!Si()?se():void 0}function Si(){return 108===R()&&V(ke)}function Ci(){if(wi())return we(21,Di)}function Di(){var e=R();if(85===e||108===e){var t=te(259);return t.token=e,L(),t.types=Ue(7,Ti),re(t)}}function Ti(){var e=te(201);return e.expression=jn(),e.typeArguments=Ei(),re(e)}function Ei(){return 27===R()?qe(19,Zt,27,29):void 0}function wi(){return 85===R()||108===R()}function Ai(){return we(5,yi)}function Ni(e,t,n){var r=te(230,e);return r.decorators=t,r.modifiers=n,G(109),r.name=se(),r.typeParameters=lt(),r.heritageClauses=Ci(),r.members=wt(),l(re(r))}function Pi(e,t,n){var r=te(231,e);return r.decorators=t,r.modifiers=n,G(138),r.name=se(),r.typeParameters=lt(),G(58),r.type=Zt(),ee(),l(re(r))}function Oi(){var e=te(264,ha.getStartPos());return e.name=de(),e.initializer=b(di),l(re(e))}function Ii(e,t,n){var r=te(232,e);return r.decorators=t,r.modifiers=n,G(83),r.name=se(),G(17)?(r.members=Ue(6,Oi),G(18)):r.members=Ke(),l(re(r))}function Fi(){var e=te(234,ha.getStartPos());return G(17)?(e.statements=we(1,Wr),G(18)):e.statements=Ke(),re(e)}function Mi(e,t,n,r){var i=te(233,e),a=16&r;return i.decorators=t,i.modifiers=n,i.flags|=r,i.name=se(),i.body=$(23)?Mi(M(),void 0,void 0,4|a):Fi(),l(re(i))}function Ri(e,t,n){var r=te(233,e);return r.decorators=t,r.modifiers=n,141===R()?(r.name=se(),r.flags|=512):(r.name=Xe(),r.name.text=ae(r.name.text)),17===R()?r.body=Fi():ee(),re(r)}function Li(e,t,n){var r=0;if(141===R())return Ri(e,t,n);if($(129))r|=16;else if(G(128),9===R())return Ri(e,t,n);return Mi(e,t,n,r)}function Bi(){return 132===R()&&V(ji)}function ji(){return 19===L()}function zi(){return 41===L()}function Ji(e,t,n){var r=te(236,e);return r.decorators=t,r.modifiers=n,G(118),G(129),r.name=se(),ee(),re(r)}function Ui(e,t,n){G(91);var r,i=ha.getStartPos();if(H()&&(r=se(),26!==R()&&140!==R()))return Ki(e,t,n,r);var a=te(238,e);return a.decorators=t,a.modifiers=n,(r||39===R()||17===R())&&(a.importClause=qi(r,i),G(140)),a.moduleSpecifier=Hi(),ee(),re(a)}function Ki(e,t,n,r){var i=te(237,e);return i.decorators=t,i.modifiers=n,i.name=r,G(58),i.moduleReference=Vi(),ee(),l(re(i))}function qi(e,t){var n=te(239,t);return e&&(n.name=e),n.name&&!$(26)||(n.namedBindings=39===R()?Gi():$i(241)),re(n)}function Vi(){return Bi()?Wi():Ve(!1)}function Wi(){var e=te(248);return G(132),G(19),e.expression=Hi(),G(20),re(e)}function Hi(){if(9===R()){var e=Xe();return e.text=ae(e.text),e}return on()}function Gi(){var e=te(240);return G(39),G(118),e.name=se(),re(e)}function $i(e){var t=te(e);return t.elements=qe(22,241===e?Yi:Xi,17,18),re(t)}function Xi(){return Qi(246)}function Yi(){return Qi(242)}function Qi(t){var n=te(t),r=e.isKeyword(R())&&!H(),i=ha.getTokenPos(),a=ha.getTextPos(),o=ce();return 118===R()?(n.propertyName=o,G(118),r=e.isKeyword(R())&&!H(),i=ha.getTokenPos(),a=ha.getTextPos(),n.name=ce()):n.name=o,242===t&&r&&I(i,a-i,e.Diagnostics.Identifier_expected),re(n)}function Zi(e,t,n){var r=te(244,e);return r.decorators=t,r.modifiers=n,$(39)?(G(140),r.moduleSpecifier=Hi()):(r.exportClause=$i(245),(140===R()||9===R()&&!ha.hasPrecedingLineBreak())&&(G(140),r.moduleSpecifier=Hi())),ee(),re(r)}function ea(e,t,n){var r=te(243,e);return r.decorators=t,r.modifiers=n,$(58)?r.isExportEquals=!0:G(79),r.expression=cn(),ee(),re(r)}function ta(t){for(var n,r=e.createScanner(t.languageVersion,!1,0,da),i=[],a=[],o=[],s=void 0;;){var c=r.scan();if(2!==c){if(e.isTrivia(c))continue;break}var u={kind:r.getToken(),pos:r.getTokenPos(),end:r.getTextPos()},l=da.substring(u.pos,u.end),d=e.getFileReferenceFromReferencePath(l,u);if(d){var f=d.fileReference;t.hasNoDefaultLib=d.isNoDefaultLib;var _=d.diagnosticMessage;f&&(d.isTypeReferenceDirective?a.push(f):i.push(f)),_&&ca.push(e.createFileDiagnostic(t,u.pos,u.end-u.pos,_))}else{var p=/^\/\/\/\s*=1&&(o=0,r.push(ha.getTokenText())),e=0;break;case 57:break;case 5:if(2===o)t(ha.getTokenText());else{var s=ha.getTokenText();void 0!==n&&e+s.length>n&&r.push(s.slice(n-e-1)),e+=s.length}break;case 39:if(0===o){o=1,e+=ha.getTokenText().length;break}default:o=2,t(ha.getTokenText())}if(57===R())break;w()}return i(r),a(r),r}function l(e,t){var n=te(276,e.pos);return n.atToken=e,n.tagName=t,re(n)}function d(e,t){e.comment=t.join(""),L?L.push(e):(L=[e],B=e.pos),j=e.end}function f(){return s(),17===R()?r():void 0}function _(){var e=$(21),t=A();return e&&(s(),X(58)&&on(),G(22)),{name:t,isBracketed:e}}function p(t){switch(t.kind){case 134:return!0;case 164:return p(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function m(e,t,n){var r=f(),i=!r;s();var a=_(),o=a.name,c=a.isBracketed;s(),i&&(r=f());var u=1===n?te(279,e.pos):te(284,e.pos),l=g(r,o);return l&&(r=l,i=!0),u.atToken=e,u.tagName=t,u.typeExpression=r,u.name=o,u.isNameFirst=i,u.isBracketed=c,re(u)}function g(e,t){if(e&&p(e.type)){for(var n=te(267,ha.getTokenPos()),r=void 0,i=void 0,a=ha.getStartPos(),o=void 0;r=W(function(){return D(1,t)});)o||(o=[]),o.push(r);if(o)return i=te(285,a),i.jsDocPropertyTags=o,164===e.type.kind&&(i.isArrayType=!0),n.type=re(i),re(n)}}function h(t,n){e.forEach(L,function(e){return 280===e.kind})&&I(n.pos,ha.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=te(280,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=f(),re(r)}function y(t,n){e.forEach(L,function(e){return 281===e.kind})&&I(n.pos,ha.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var i=te(281,t.pos);return i.atToken=t,i.tagName=n,i.typeExpression=r(!0),re(i)}function v(e,t){var n=te(277,e.pos);return n.atToken=e,n.tagName=t,n.class=b(),re(n)}function b(){var e=$(17),t=te(201);t.expression=x(),t.typeArguments=Ei();var n=re(t);return e&&G(18),n}function x(){for(var e=N(!0);$(23);){var t=te(179,e.pos);t.expression=e,t.name=N(),e=re(t)}return e}function k(e,t){var n=te(278,e.pos);return n.atToken=e,n.tagName=t,re(n)}function S(e,t){function n(e){var t=ha.getTokenPos(),r=N();if(r&&$(23)){var i=te(233,t);return i.flags|=e,i.name=r,i.body=n(4),re(i)}return r&&4&e&&(r.isInJSDocNamespace=!0),r}var r=f();s();var i=te(283,e.pos);if(i.atToken=e,i.tagName=t,i.fullName=n(0),i.fullName)for(var a=i.fullName;;){if(71===a.kind||!a.body){i.name=71===a.kind?a:a.name;break}a=a.body}if(s(),i.typeExpression=r,!r||p(r.type)){for(var o=void 0,c=void 0,u=void 0,l=ha.getStartPos();o=W(function(){return D(0)});)if(c||(c=te(285,l)),281===o.kind){if(u)break;u=o}else c.jsDocPropertyTags||(c.jsDocPropertyTags=[]),c.jsDocPropertyTags.push(o);c&&(r&&164===r.type.kind&&(c.isArrayType=!0),i.typeExpression=u&&u.typeExpression&&!p(u.typeExpression.type)?u.typeExpression:re(c))}return re(i)}function C(t,n){for(;!e.isIdentifier(t)||!e.isIdentifier(n);){if(e.isIdentifier(t)||e.isIdentifier(n)||t.right.escapedText!==n.right.escapedText)return!1;t=t.left,n=n.left}return t.escapedText===n.escapedText}function D(t,n){for(var r=!0,i=!1;;)switch(w(),R()){case 57:if(r){var a=T(t);return!(a&&279===a.kind&&(e.isIdentifier(a.name)||!C(n,a.name.left)))&&a}i=!1;break;case 4:r=!0,i=!1;break;case 39:i&&(r=!1),i=!0;break;case 71:r=!1;break;case 1:return!1}}function T(t){e.Debug.assert(57===R());var n=te(57,ha.getStartPos());n.end=ha.getTextPos(),w();var r=N();if(s(),!r)return!1;switch(r.escapedText){case"type":return 0===t&&y(n,r);case"prop":case"property":return 0===t&&m(n,r,t);case"arg":case"argument":case"param":return 1===t&&m(n,r,t)}return!1}function E(t,n){e.forEach(L,function(e){return 282===e.kind})&&I(n.pos,ha.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);for(var r=[],i=M();;){var a=N();if(s(),!a)return void I(ha.getStartPos(),0,e.Diagnostics.Identifier_expected);var o=te(145,a.pos);if(o.name=a,re(o),r.push(o),26!==R())break;w(),s()}var c=te(282,t.pos);return c.atToken=t,c.tagName=n,c.typeParameters=ne(r,i),re(c),c}function w(){return la=ha.scanJSDocToken()}function A(){var e=N(!0);for($(21)&&G(22);$(23);){var t=N(!0);$(21)&&G(22),e=We(e,t)}return e}function N(t){if(void 0===t&&(t=!1),!e.tokenIsIdentifierOrKeyword(R()))return t?ie(71,!0,e.Diagnostics.Identifier_expected):void O(e.Diagnostics.Identifier_expected);var n=ha.getTokenPos(),r=ha.getTextPos(),i=te(71,n);return i.escapedText=e.escapeLeadingUnderscores(P.substring(n,r)),re(i,r),w(),i}var P=da;t=t||0;var F=void 0===n?P.length:t+n;n=F-t,e.Debug.assert(t>=0),e.Debug.assert(t<=F),e.Debug.assert(F<=P.length);var L,B,j,z,J=[];return function(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}(P,t)?(ha.scanRange(t+3,n-5,function(){function e(e){s||(s=u),J.push(e),u+=e.length}var n=!0,r=1,s=void 0,u=t-Math.max(P.lastIndexOf("\n",t),0)+4;for(w();5===R();)w();for(4===R()&&(r=0,u=0,w());1!==R();){switch(R()){case 57:0===r||1===r?(a(J),c(u),r=0,n=!1,s=void 0,u++):e(ha.getTokenText());break;case 4:J.push(ha.getTokenText()),r=0,u=0;break;case 39:var l=ha.getTokenText();1===r||2===r?(r=2,e(l)):(r=1,u+=l.length);break;case 71:e(ha.getTokenText()),r=2;break;case 5:var d=ha.getTokenText();2===r?J.push(d):void 0!==s&&u+d.length>s&&J.push(d.slice(s-u-1)),u+=d.length;break;case 1:break;default:r=2,e(ha.getTokenText())}n?w():n=!0}i(J),a(J),z=o()}),z):z}t.parseJSDocTypeExpressionForTests=n,t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=i,t.parseJSDocComment=a;var u;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(u||(u={}));var l;!function(e){e[e.Property=0]="Property",e[e.Parameter=1]="Parameter"}(l||(l={})),t.parseJSDocCommentWorker=o}(ka=t.JSDocParser||(t.JSDocParser={}))}(h||(h={}));var y;!function(t){function n(t,n,r,i){if(i=i||e.Debug.shouldAssert(2),d(t,n,r,i),e.textChangeRangeIsUnchanged(r))return t;if(0===t.statements.length)return h.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var a=t;e.Debug.assert(!a.hasBeenIncrementallyParsed),a.hasBeenIncrementallyParsed=!0;var o=t.text,s=f(t),l=u(t,r);d(t,n,l,i),e.Debug.assert(l.span.start<=r.span.start),e.Debug.assert(e.textSpanEnd(l.span)===e.textSpanEnd(r.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(l))===e.textSpanEnd(e.textChangeRangeNewSpan(r)));var _=e.textChangeRangeNewSpan(l).length-l.span.length;return c(a,l.span.start,e.textSpanEnd(l.span),e.textSpanEnd(e.textChangeRangeNewSpan(l)),_,o,n,i),h.parseSourceFile(t.fileName,n,t.languageVersion,s,!0,t.scriptKind)}function r(t,n,r,o,c,u){function l(t){var n="";if(u&&a(t)&&(n=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=r,t.end+=r,u&&a(t)&&e.Debug.assert(n===c.substring(t.pos,t.end)),i(t,l,d),e.hasJSDocNodes(t))for(var f=0,_=t.jsDoc;f<_.length;f++){var p=_[f];i(p,l,d)}s(t,u)}function d(e){e._children=void 0,e.pos+=r,e.end+=r;for(var t=0,n=e;t=n,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=r?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end))}function s(t,n){if(n){var r=t.pos;i(t,function(t){e.Debug.assert(t.pos>=r),r=t.end}),e.Debug.assert(r<=t.end)}}function c(t,n,a,c,u,l,d,f){function _(t){if(e.Debug.assert(t.pos<=t.end),t.pos>a)return void r(t,!1,u,l,d,f);var m=t.end;if(m>=n)return t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u),i(t,_,p),void s(t,f);e.Debug.assert(ma)return void r(t,!0,u,l,d,f);var i=t.end;if(i>=n){t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u);for(var s=0,p=t;s0&&i<=1;i++){var a=l(t,r);e.Debug.assert(a.pos<=r);var o=a.pos;r=Math.max(0,o-1)}var s=e.createTextSpanFromBounds(r,e.textSpanEnd(n.span)),c=n.newLength+(n.span.start-r);return e.createTextChangeRange(s,c)}function l(t,n){function r(t){var n=void 0;return i(t,function(t){e.nodeIsPresent(t)&&(n=t)}),n}function a(t){if(!e.nodeIsMissing(t))return t.pos<=n?(t.pos>=s.pos&&(s=t),nn),!0)}var o,s=t;if(i(t,a),o){var c=function(e){for(;;){var t=r(e);if(!t)return e;e=t}}(o);c.pos>s.pos&&(s=c)}return s}function d(t,n,r,i){var a=t.text;if(r&&(e.Debug.assert(a.length-r.span.length+r.newLength===n.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,r.span.start),s=n.substr(0,r.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(r.span),a.length),u=n.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),n.length);e.Debug.assert(c===u)}}function f(t){function n(e){function n(t){return e>=t.pos&&e=t.pos&&e=158&&e<=173)return-3;switch(e){case 181:case 182:case 177:return 537396545;case 233:return 574674241;case 146:return 536872257;case 187:return 601249089;case 186:case 228:return 601281857;case 227:return 546309441;case 229:case 199:return 539358529;case 152:return 601015617;case 151:case 153:case 154:return 601015617;case 119:case 133:case 130:case 136:case 134:case 122:case 137:case 105:case 145:case 148:case 150:case 155:case 156:case 157:case 230:case 231:return-3;case 178:return 540087617;case 260:return 537920833;case 174:case 175:return 537396545;default:return 536872257}}function O(t,n){n.parent=t,e.forEachChild(n,function(e){return O(n,e)})}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var I;!function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(I||(I={}));var F=function(){function n(t,n,r,i,a){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(t)||Et,t,n,r,i,a)}function i(t,n){Et=t,wt=n,At=e.getEmitScriptTarget(wt),Vt=a(Et,n),Ht=e.createUnderscoreEscapedMap(),$t=0,Gt=Et.isDeclarationFile,Wt=e.objectAllocator.getSymbolConstructor(),Et.locals||(We(Et),Et.symbolCount=$t,Et.classifiableNames=Ht),Et=void 0,wt=void 0,At=void 0,Nt=void 0,Pt=void 0,Ot=void 0,It=void 0,Ft=!1,Mt=void 0,Rt=void 0,Lt=void 0,Bt=void 0,jt=void 0,zt=void 0,Ut=void 0,Kt=!1,qt=0,Qt=0}function a(e,t){return!((void 0===t.alwaysStrict?!t.strict:!t.alwaysStrict)||e.isDeclarationFile)||!!e.externalModuleIndicator}function o(e,t){return $t++,new Wt(e,t)}function s(t,n,r){if(t.flags|=r,n.symbol=t,t.declarations?t.declarations.push(n):t.declarations=[n],1952&r&&!t.exports&&(t.exports=e.createSymbolTable()),6240&r&&!t.members&&(t.members=e.createSymbolTable()),107455&r){var i=t.valueDeclaration;(!i||i.kind!==n.kind&&233===i.kind)&&(t.valueDeclaration=n)}}function c(t){if(243===t.kind)return t.isExportEquals?"export=":"default";var n=e.getNameOfDeclaration(t);if(n){if(e.isAmbientModule(t)){var r=e.getTextOfIdentifierOrLiteral(n);return e.isGlobalScopeAugmentation(t)?"__global":'"'+r+'"'}if(144===n.kind){var i=n.expression;return e.isStringOrNumericLiteral(i)?e.escapeLeadingUnderscores(i.text):(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.idText(i.name)))}return e.getEscapedTextOfIdentifierOrLiteral(n)}switch(t.kind){case 152:return"__constructor";case 160:case 155:return"__call";case 161:case 156:return"__new";case 157:return"__index";case 244:return"__export";case 194:if(2===e.getSpecialPropertyAssignmentKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 228:case 229:return e.hasModifier(t,512)?"default":void 0;case 273:return e.isJSDocConstructSignature(t)?"__new":"__call";case 146:e.Debug.assert(273===t.parent.kind);var a=t.parent;return"arg"+e.indexOf(a.parameters,t);case 283:var o=e.getNameOfJSDocTypedef(t);return void 0!==o?o.escapedText:void 0}}function u(t){return t.name?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(c(t))}function l(t,r,i,a,l,d){e.Debug.assert(!e.hasDynamicName(i));var f,_=e.hasModifier(i,512),p=_&&r?"default":c(i);if(void 0===p)f=o(0,"__missing");else if(f=t.get(p),788448&a&&Ht.set(p,!0),f){if(d&&!f.isReplaceableByMethod)return f;if(f.flags&l)if(f.isReplaceableByMethod)t.set(p,f=o(0,p));else{i.name&&(i.name.parent=i);var m=2&f.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;f.declarations&&f.declarations.length&&(_?m=e.Diagnostics.A_module_cannot_have_multiple_default_exports:f.declarations&&f.declarations.length&&(_||243===i.kind&&!i.isExportEquals)&&(m=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(f.declarations,function(t){Et.bindDiagnostics.push(n(e.getNameOfDeclaration(t)||t,m,u(t)))}),Et.bindDiagnostics.push(n(e.getNameOfDeclaration(i)||i,m,u(i))),f=o(0,p)}}else t.set(p,f=o(0,p)),d&&(f.isReplaceableByMethod=!0);return s(f,i,a),f.parent=r,f}function d(t,n,r){var i=1&e.getCombinedModifierFlags(t);if(2097152&n)return 246===t.kind||237===t.kind&&i?l(Pt.symbol.exports,Pt.symbol,t,n,r):l(Pt.locals,void 0,t,n,r);283===t.kind&&e.Debug.assert(e.isInJavaScriptFile(t));var a=283===t.kind&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(i||32&Pt.flags)||a){var o=107455&n?1048576:0,s=l(Pt.locals,void 0,t,o,r);return s.exportSymbol=l(Pt.symbol.exports,Pt.symbol,t,n,r),t.localSymbol=s,s}return l(Pt.locals,void 0,t,n,r)}function f(t,n){var r=Pt,i=Ot;if(1&n?(Pt=Ot=t,32&n&&(Pt.locals=e.createSymbolTable()),me(Pt)):2&n&&(Ot=t,Ot.locals=void 0),4&n){var a=Mt,o=Rt,s=Lt,c=Bt,u=Ut,l=Kt,d=16&n&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);d?Bt=S():(Mt={flags:2},144&n&&(Mt.container=t),Bt=void 0),Rt=void 0,Lt=void 0,Ut=void 0,Kt=!1,_(t),t.flags&=-1409,!(1&Mt.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=128,Kt&&(t.flags|=256)),265===t.kind&&(t.flags|=qt),d?(T(Bt,Mt),Mt=I(Bt)):Mt=a,Rt=o,Lt=s,Bt=c,Ut=u,Kt=l}else 64&n?(Ft=!1,_(t),t.flags=Ft?64|t.flags:-65&t.flags):_(t);Pt=r,Ot=i}function _(e){if(Gt)g(e);else if(536870912&e.transformFlags)Gt=!0,g(e),Gt=!1,Qt|=e.transformFlags&~P(e.kind);else{var t=Qt;Qt=0,g(e),Qt=t|r(e,Qt)}}function p(t){if(void 0!==t)if(Gt)e.forEach(t,We);else{var n=Qt;Qt=0;for(var r=0,i=0,a=t;i=108&&t.originalKeywordKind<=116&&!e.isIdentifierName(t)&&!e.isInAmbientContext(t)&&(Et.parseDiagnostics.length||Et.bindDiagnostics.push(n(t,Pe(t),e.declarationNameToString(t))))}function Pe(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Et.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}function Oe(t){Vt&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Re(t,t.left)}function Ie(e){Vt&&e.variableDeclaration&&Re(e,e.variableDeclaration.name)}function Fe(t){if(Vt&&71===t.expression.kind){var n=e.getErrorSpanForNode(Et,t.expression);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Me(t){return e.isIdentifier(t)&&("eval"===t.escapedText||"arguments"===t.escapedText)}function Re(t,n){if(n&&71===n.kind){var r=n;if(Me(r)){var i=e.getErrorSpanForNode(Et,n);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,i.start,i.length,Le(t),e.idText(r)))}}}function Le(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Be(e){Vt&&Re(e,e.name)}function je(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Et.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}function ze(t){if(At<2&&265!==Ot.kind&&233!==Ot.kind&&!e.isFunctionLike(Ot)){var n=e.getErrorSpanForNode(Et,t);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,n.start,n.length,je(t)))}}function Je(t){Vt&&4&t.numericLiteralFlags&&Et.bindDiagnostics.push(n(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Ue(e){Vt&&Re(e,e.operand)}function Ke(e){Vt&&(43!==e.operator&&44!==e.operator||Re(e,e.operand))}function qe(t){Vt&&Ve(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Ve(t,n,r,i,a){var o=e.getSpanOfTokenAtPosition(Et,t.pos);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,o.start,o.length,n,r,i,a))}function We(t){if(t){t.parent=Nt;var n=Vt;if(e.isInJavaScriptFile(t)&&He(t),Xe(t),t.kind>142){var i=Nt;Nt=t;var a=pe(t);0===a?_(t):f(t,a),Nt=i}else Gt||0!=(536870912&t.transformFlags)||(Qt|=r(t,0));Vt=n}}function He(t){if(e.hasJSDocNodes(t))for(var n=0,r=t.jsDoc;n1);if(e.isGlobalScopeAugmentation(n))b(xb,n.symbol.exports);else{var r=e.isInAmbientContext(t.parent.parent)?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,i=de(t,t,r,!0);if(!i)return;i=_e(i),1920&i.flags?(i=33554432&i.flags?i:y(i),v(i,n.symbol)):_(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}}function k(t,n,r){function i(t,n){return function(r){return Vb.add(e.createDiagnosticForNode(r,n,t))}}n.forEach(function(n,a){var o=t.get(a);o?e.forEach(o.declarations,i(e.unescapeLeadingUnderscores(a),r)):t.set(a,n)})}function S(e){if(33554432&e.flags)return e;var t=n(e);return Fb[t]||(Fb[t]={})}function C(e){var n=t(e);return Mb[n]||(Mb[n]={flags:0})}function D(e){return 32768&e.flags?e.objectFlags:0}function T(t){return 265===t.kind&&!e.isExternalOrCommonJsModule(t)}function E(t,n,r){if(r){var i=t.get(n);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&r)return i;if(2097152&i.flags){var a=ie(i);if(a===ov||a.flags&r)return i}}}}function w(t,n){var r=t.parent,i=t.parent.parent,a=E(r.locals,n,107455),o=E(i.symbol.members,n,107455);if(a&&o)return[a,o];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function A(t,n){function r(t,n,r){return!!e.findAncestor(t,function(i){if(i===r)return"quit";if(e.isFunctionLike(i))return!0;if(i.parent&&149===i.parent.kind&&i.parent.initializer===i)if(e.hasModifier(i.parent,32)){if(151===n.kind)return!0}else{var a=149===n.kind&&!e.hasModifier(n,32);if(!a||e.getContainingClass(t)!==e.getContainingClass(n))return!0}})}var a=e.getSourceFileOfNode(t),o=e.getSourceFileOfNode(n);if(a!==o){if(Jy&&(a.externalModuleIndicator||o.externalModuleIndicator)||!jy.outFile&&!jy.out||oc(n)||e.isInAmbientContext(t))return!0;if(r(n,t))return!0;var s=i.getSourceFiles();return e.indexOf(s,a)<=e.indexOf(s,o)}if(t.pos<=n.pos){if(176===t.kind){var c=e.getAncestor(n,176);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=l?u.substr(0,l-"...".length)+"...":u}function Ze(t,n,r){return e.usingSingleLineStringWriter(function(e){ot().buildTypePredicateDisplay(t,e,n,r)})}function et(e){for(var t=[],n=0,r=0;r0&&(26!==t&&$e(i),Ge(i,t),$e(i)),c(e[n],26===t?0:128)}function l(e,t,n,o,s){if((32&e.flags||!Ie(e.escapedName))&&r(e,i,a,793064,0,s),n0&&(Ge(t,26),$e(t)),n(e[r])}function f(e,t,n,r){if(e&&e.length){Ge(n,27);for(var a=512,o=0;o0&&(Ge(n,26),$e(n),a=0),i(t(e[o]),n,r,a);Ge(n,29)}}function _(e,t,n,r,i,a){Ge(n,19),e&&s(e,n,r,i,a);for(var o=0;o0||e)&&(Ge(n,26),$e(n)),s(t[o],n,r,i,a);Ge(n,20)}function p(t,n,r,a,o){e.isIdentifierTypePredicate(t)?n.writeParameter(t.parameterName):He(n,99),$e(n),He(n,126),$e(n),i(t.type,n,r,a,o)}function g(e,t,n,r,a){var o=Vr(e);4096&r&>(o)||(16&r?($e(t),Ge(t,36)):Ge(t,56),$e(t),e.typePredicate?p(e.typePredicate,t,n,r,a):i(o,t,n,r,a))}function h(e,t,n,r,i,a){1===i&&(He(t,94),$e(t)),e.target&&64&r?f(e.target.typeParameters,e.mapper,t,n):l(e.typeParameters,t,n,r,a),_(e.thisParameter,e.parameters,t,n,r,a),g(e,t,n,r,a)}function y(t,n,r,a,o,s){if(t){switch(t.isReadonly&&(He(n,131),$e(n)),Ge(n,21),n.writeParameter(t.declaration?e.declarationNameToString(t.declaration.parameters[0].name):"x"),Ge(n,56),$e(n),r){case 1:He(n,133);break;case 0:He(n,136)}Ge(n,22),Ge(n,56),$e(n),i(t.type,n,a,o,s),Ge(n,25),n.writeLine()}}return Xb||(Xb={buildSymbolDisplay:r,buildTypeDisplay:i,buildTypeParameterDisplay:o,buildTypePredicateDisplay:p,buildParameterDisplay:s,buildDisplayForParametersAndDelimiters:_,buildDisplayForTypeParametersAndDelimiters:l,buildTypeParameterDisplayFromSymbol:a,buildSignatureDisplay:h,buildIndexSignatureDisplay:y,buildReturnTypeDisplay:g})}function st(t){if(t){var n=C(t);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(t.kind){case 176:return st(t.parent.parent);case 226:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 233:case 229:case 230:case 231:case 228:case 232:case 237:if(e.isExternalModuleAugmentation(t))return!0;var n=_t(t);return 1&e.getCombinedModifierFlags(t)||237!==t.kind&&265!==n.kind&&e.isInAmbientContext(n)?st(n):T(n);case 149:case 148:case 153:case 154:case 151:case 150:if(e.hasModifier(t,24))return!1;case 152:case 156:case 155:case 157:case 146:case 234:case 160:case 161:case 163:case 159:case 164:case 165:case 166:case 167:case 168:return st(t.parent);case 239:case 240:case 242:return!1;case 145:case 265:case 236:return!0;case 243:default:return!1}}()),n.isVisible}return!1}function ct(t){function n(t){e.forEach(t,function(t){C(t).isVisible=!0;var r=U(t)||t;if(e.pushIfUnique(i,r),e.isInternalModuleImportEqualsDeclaration(t)){var a=t.moduleReference,o=Qm(a),s=N(t,o.escapedText,901119,void 0,void 0,!1);s&&n(s.declarations)}})}var r;t.parent&&243===t.parent.kind?r=N(t.parent,t.escapedText,2998271,e.Diagnostics.Cannot_find_name_0,t,!1):246===t.parent.kind&&(r=Z(t.parent,2998271));var i=[];return r&&n(r.declarations),i}function ut(e,t){var n=lt(e,t);if(n>=0){for(var r=wb.length,i=n;i=0;n--){if(dt(wb[n],Nb[n]))return-1;if(wb[n]===e&&Nb[n]===t)return n}return-1}function dt(t,n){return 0===n?S(t).type:2===n?S(t).declaredType:1===n?t.resolvedBaseConstructorType:3===n?t.resolvedReturnType:void e.Debug.fail("Unhandled TypeSystemPropertyName "+n)}function ft(){return wb.pop(),Nb.pop(),Ab.pop()}function _t(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 226:case 227:case 242:case 241:case 240:case 239:return!1;default:return!0}}))&&t.parent}function pt(t){var n=xn(Te(t));return n.typeParameters?li(n,e.map(n.typeParameters,function(e){return cv})):n}function mt(e,t){var n=Sr(e,t);return n?qt(n):void 0}function gt(e){return e&&0!=(1&e.flags)}function ht(e){var t=De(e);return t&&S(t).type||Dt(e,!1)}function yt(t){return 144===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function vt(t,n,r){if(t=$c(t,function(e){return!(6144&e.flags)}),8192&t.flags)return Dv;if(65536&t.flags)return Xc(t,function(e){return vt(e,n,r)});for(var i=e.createSymbolTable(),a=e.createUnderscoreEscapedMap(),o=0,s=n;o=2?Xi(cv):Wv;var o=e.map(i,function(t){return e.isOmittedExpression(t)?cv:Et(t,n,r)}),s=na(o);return n&&(s=di(s),s.pattern=t),s}function Nt(e,t,n){return 174===e.kind?wt(e,t,n):At(e,t,n)}function Pt(e,t){var n=Dt(e,!0);return n?(t&&Us(e,n),261===e.kind?n:js(n)):(n=e.dotDotDotToken?Wv:cv,t&&Wy&&(Ot(e)||Js(e,n)),n)}function Ot(t){var n=e.getRootDeclaration(t);return op(146===n.kind?n.parent:n)}function It(t){var n=S(t);if(!n.type){if(4194304&t.flags)return n.type=pt(t);var r=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(r))return n.type=cv;if(243===r.kind)return n.type=N_(r.expression);if(e.isInJavaScriptFile(r)&&e.isJSDocPropertyLikeTag(r)&&r.typeExpression)return n.type=Xa(r.typeExpression.type);if(!ut(t,0))return lv;var i=void 0;i=194===r.kind||179===r.kind&&194===r.parent.kind?Tt(t):Pt(r,!0),ft()||(i=Kt(t)),n.type=i}return n.type}function Ft(t){if(t){if(153===t.kind){var n=e.getEffectiveReturnTypeNode(t);return n&&Xa(n)}var r=e.getEffectiveSetAccessorTypeAnnotationNode(t);return r&&Xa(r)}}function Mt(e){var t=Zh(e);return t&&t.symbol}function Rt(e){return qr(jr(e))}function Lt(t){var n=S(t);if(!n.type){var r=e.getDeclarationOfKind(t,153),i=e.getDeclarationOfKind(t,154);if(r&&e.isInJavaScriptFile(r)){var a=xt(r);if(a)return n.type=a}if(!ut(t,0))return lv;var o=void 0,s=Ft(r);if(s)o=s;else{var c=Ft(i);c?o=c:r&&r.body?o=If(r):(Wy&&(i?_(i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Xe(t)):(e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),_(r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Xe(t)))),o=cv)}if(!ft()&&(o=cv,Wy)){_(e.getDeclarationOfKind(t,153),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,Xe(t))}n.type=o}return n.type}function Bt(e){var t=an(fn(e));return 540672&t.flags?t:void 0}function jt(t){var n=S(t);if(!n.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))n.type=cv;else{var r=Oe(16,t);if(32&t.flags){var i=Bt(t);n.type=i?va([r,i]):r}else n.type=qy&&16777216&t.flags?Ns(r,2048):r}return n.type}function zt(e){var t=S(e);return t.type||(t.type=yn(e)),t.type}function Jt(e){var t=S(e);if(!t.type){var n=ie(e);t.type=107455&n.flags?qt(n):lv}return t.type}function Ut(t){var n=S(t);if(!n.type)if(100===Ry)_(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),n.type=lv;else{if(!ut(t,0))return lv;Ry++;var r=bo(qt(n.target),n.mapper);Ry--,ft()||(r=Kt(t)),n.type=r}return n.type}function Kt(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(_(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xe(t)),lv):(Wy&&_(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,Xe(t)),cv)}function qt(t){return 1&e.getCheckFlags(t)?Ut(t):7&t.flags?It(t):9136&t.flags?jt(t):8&t.flags?zt(t):98304&t.flags?Lt(t):2097152&t.flags?Jt(t):lv}function Vt(e,t){return void 0!==e&&void 0!==t&&0!=(4&D(e))&&e.target===t}function Wt(e){return 4&D(e)?e.target:e}function Ht(t,n){function r(t){if(7&D(t)){var i=Wt(t);return i===n||e.forEach(on(i),r)}if(131072&t.flags)return e.forEach(t.types,r)}return r(t)}function Gt(t,n){for(var r=0,i=n;r0)return!0;if(540672&e.flags){var t=dr(e);return t&&un(t)&&Zt(t)}return!1}function tn(t){var n=t.symbol.valueDeclaration;if(e.isInJavaScriptFile(n)){var r=e.getJSDocAugmentsTag(n);if(r)return r.class}return e.getClassExtendsHeritageClauseElement(n)}function nn(t,n,r){var i=e.length(n),a=e.isInJavaScriptFile(r);return e.filter(Dr(t,1),function(t){return(a||i>=Lr(t.typeParameters))&&i<=e.length(t.typeParameters)})}function rn(t,n,r){var i=nn(t,n,r),a=e.map(n,Xa);return e.sameMap(i,function(t){return e.some(t.typeParameters)?Gr(t,a,e.isInJavaScriptFile(r)):t})}function an(t){if(!t.resolvedBaseConstructorType){var n=t.symbol.valueDeclaration,r=e.getClassExtendsHeritageClauseElement(n),i=tn(t);if(!i)return t.resolvedBaseConstructorType=dv;if(!ut(t,1))return lv;var a=N_(i.expression);if(r&&i!==r&&(e.Debug.assert(!r.typeArguments),N_(r.expression)),163840&a.flags&&nr(a),!ft())return _(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Xe(t.symbol)),t.resolvedBaseConstructorType=lv;if(!(1&a.flags||a===pv||en(a)))return _(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Qe(a)),t.resolvedBaseConstructorType=lv;t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function on(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[Qi(pa(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&sn(t),64&t.symbol.flags&&ln(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function sn(t){t.resolvedBaseTypes=e.emptyArray;var n=vr(an(t));if(163841&n.flags){var r,i=tn(t),a=Ci(i),o=n&&n.symbol?xn(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&cn(o))r=_i(i,n.symbol,a);else if(1&n.flags)r=n;else{var s=rn(n,i.typeArguments,i);if(!s.length)return void _(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);r=Vr(s[0])}if(r!==lv)return un(r)?t===r||Ht(r,t)?void _(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Qe(t,void 0,1)):void(t.resolvedBaseTypes=[r]):void _(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Qe(r))}}function cn(e){var t=e.outerTypeParameters;if(t){var n=t.length-1,r=e.typeArguments;return t[n].symbol!==r[n].symbol}return!0}function un(t){return 16809985&t.flags&&!tr(t)||131072&t.flags&&!e.forEach(t.types,function(e){return!un(e)})}function ln(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var n=0,r=t.symbol.declarations;n=f)&&s<=_){var p=_?$r(d,Br(o,d.typeParameters,f,a)):Rn(d);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,c.push(p)}}return c}function Bn(e,t,n,r,i){for(var a=0,o=e;a0)return;for(var i=1;i1){if(l=Rn(c),e.forEach(u,function(e){return e.thisParameter})){var d=pa(e.map(u,function(e){return qt(e.thisParameter)||cv}),!0);l.thisParameter=Is(c.thisParameter,d)}l.resolvedReturnType=void 0,l.unionSignatures=u}(i||(i=[])).push(l)}}}return i||e.emptyArray}function Jn(e,t){for(var n=[],r=!1,i=0,a=e;i0&&(l=e.map(l,function(e){var t=Rn(e);return t.resolvedReturnType=Wn(Vr(e),o,c),t})),a=e.concatenate(a,l)}i=e.concatenate(i,Dr(u,0)),n=qn(n,wr(u,0)),r=qn(r,wr(u,1))}(c);Me(t,Ly,i,a,n,r)}function Gn(t){var n=t.symbol;if(t.target){var r=wn(rr(t.target),t.mapper,!1),i=Za(Dr(t.target,0),t.mapper),a=Za(Dr(t.target,1),t.mapper),o=xo(wr(t.target,0),t.mapper),s=xo(wr(t.target,1),t.mapper);Me(t,r,i,a,o,s)}else if(2048&n.flags){var r=n.members,i=Ur(r.get("__call")),a=Ur(r.get("__new")),o=ii(n,0),s=ii(n,1);Me(t,r,i,a,o,s)}else{var r=Ly,o=void 0;if(n.exports&&(r=be(n)),32&n.flags){var c=fn(n),u=an(c);704512&u.flags?(r=e.createSymbolTable(Fe(r)),An(r,or(u))):u===cv&&(o=ri(cv,!1))}var s=384&n.flags?vb:void 0;if(Me(t,r,e.emptyArray,e.emptyArray,o,s),8208&n.flags&&(t.callSignatures=Ur(n)),32&n.flags){var c=fn(n),a=Ur(n.members.get("__constructor"));a.length||(a=Ln(c)),t.constructSignatures=a}}}function $n(t){function n(n,o){var d;"object"==typeof o&&(d=o);var f=ro([a],[n]),_=t.mapper?co(t.mapper,f):f,m=bo(s,_);if(32&n.flags){var g=e.escapeLeadingUnderscores(n.value),h=Sr(c,g),y=l||!!(h&&16777216&h.flags),v=p(4|(y?16777216:0),g);v.checkFlags=u||h&&Uf(h)?8:0,v.type=m,d&&(v.syntheticOrigin=d,v.declarations=d.declarations),v.syntheticLiteralTypeOrigin=n,i.set(g,v)}else 3&n.flags&&(r=ri(m,u))}var r,i=e.createSymbolTable();Me(t,Ly,e.emptyArray,e.emptyArray,void 0,void 0);var a=Xn(t),o=Yn(t),s=Qn(t),c=vr(Zn(t)),u=!!t.declaration.readonlyToken,l=!!t.declaration.questionToken;if(170===t.declaration.typeParameter.constraint.kind){for(var d=0,f=or(c);d=2):16777216&t.flags?Dv:t}function br(t,n){for(var r,i=t.types,a=65536&t.flags,o=a?24:0,s=a?0:16777216,c=4,u=0,l=0,d=i;l=0),i>=r.minArgumentCount}var a=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!a&&(!t.type&&!t.dotDotDotToken&&e.indexOf(t.parent.parameters,t)>=a.arguments.length)}function Rr(e){var t=e.parameterName;return 71===t.kind?{kind:1,parameterName:t?t.escapedText:void 0,parameterIndex:t?M_(e.parent.parameters,t):void 0,type:Xa(e.type)}:{kind:0,type:Xa(e.type)}}function Lr(e){var t=0;if(e)for(var n=0;n=r)&&o<=a){t||(t=[]);for(var s=o;sc.arguments.length&&!f.type||Ir(f)||l||(a=r.length)}if(!(153!==t.kind&&154!==t.kind||e.hasDynamicName(t)||s&&o)){var m=153===t.kind?154:153,g=e.getDeclarationOfKind(t.symbol,m);g&&(o=Mt(g))}var h=152===t.kind?fn(Ce(t.parent.symbol)):void 0,y=h?h.localTypeParameters:Pr(t),v=zr(t,u,h),b=t.type&&158===t.type.kind?Rr(t.type):void 0,x=e.hasRestParameter(t);if(!x&&e.isInJavaScriptFile(t)&&Jr(t)){x=!0;var k=p(3,"args");k.type=Wv,k.isRestParameter=!0,r.push(k)}n.resolvedSignature=Mn(t,y,o,r,v,b,a,x,i)}return n.resolvedSignature}function zr(t,n,r){if(n)return Xa(t.parameters[0].type);if(r)return r;var i=e.getEffectiveReturnTypeNode(t);if(i)return Xa(i);if(153===t.kind&&!e.hasDynamicName(t)){return Ft(e.getDeclarationOfKind(t.symbol,154))}return e.nodeIsMissing(t.body)?cv:void 0}function Jr(t){function n(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.escapedText&&e.isPartOfExpression(t);case 149:case 151:case 153:case 154:return 144===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,n)}}var r=C(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=n(t.body)),r.containsArgumentsReference}function Ur(t){if(!t)return e.emptyArray;for(var n=[],r=0;r0&&i.body){var a=t.declarations[r-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)break}n.push(jr(i))}}return n}function Kr(e){var t=le(e,e);if(t){var n=_e(t);if(n)return qt(n)}return cv}function qr(e){if(e.thisParameter)return qt(e.thisParameter)}function Vr(t){if(!t.resolvedReturnType){if(!ut(t,3))return lv;var n=void 0;if(n=t.target?bo(Vr(t.target),t.mapper):t.unionSignatures?pa(e.map(t.unionSignatures,Vr),!0):If(t.declaration),!ft()&&(n=cv,Wy)){var r=t.declaration,i=e.getNameOfDeclaration(r);i?_(i,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,e.declarationNameToString(i)):_(r,e.Diagnostics.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.resolvedReturnType=n}return t.resolvedReturnType}function Wr(e){return!e.resolvedReturnType&<(e,3)>=0}function Hr(t){if(t.hasRestParameter){var n=qt(e.lastOrUndefined(t.parameters));if(4&D(n)&&n.target===jv)return n.typeArguments[0]}return cv}function Gr(t,n,r){n=Br(n,t.typeParameters,Lr(t.typeParameters),r);var i=t.instantiations||(t.instantiations=e.createMap()),a=ci(n),o=i.get(a);return o||i.set(a,o=$r(t,n)),o}function $r(e,t){return _o(e,ro(e.typeParameters,t),!0)}function Xr(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=Yr(e)):e}function Yr(e){return _o(e,io(e.typeParameters),!0)}function Qr(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=Zr(e)):e}function Zr(t){return Gr(t,e.map(t.typeParameters,function(e){return e.target&&!ur(e.target)?e.target:e}),e.isInJavaScriptFile(t.declaration))}function ei(t){if(!t.isolatedSignatureType){var n=152===t.declaration.kind||156===t.declaration.kind,r=Oe(16);r.members=Ly,r.properties=e.emptyArray,r.callSignatures=n?e.emptyArray:[t],r.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=r}return t.isolatedSignatureType}function ti(e){return e.members.get("__index")}function ni(e,t){var n=1===t?133:136,r=ti(e);if(r)for(var i=0,a=r.declarations;i1&&(t+=":"+a),r+=a}return t}function ui(e,t){for(var n=0,r=0,i=e;ra.length))return _(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Qe(i,void 0,1),s,a.length),lv;return li(i,e.concatenate(i.outerTypeParameters,Br(r,a,s,c)))}return t.typeArguments?(_(t,e.Diagnostics.Type_0_is_not_generic,Qe(i)),lv):i}function pi(t,n){var r=xn(t),i=S(t),a=i.typeParameters,o=ci(n),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=bo(r,ro(a,Br(n,a,Lr(a),e.isInJavaScriptFile(t.valueDeclaration))))),s}function mi(t,n,r){var i=xn(n),a=S(n).typeParameters;if(a){var o=e.length(t.typeArguments),s=Lr(a);return oa.length?(_(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Xe(n),s,a.length),lv):pi(n,r)}return t.typeArguments?(_(t,e.Diagnostics.Type_0_is_not_generic,Xe(n)),lv):i}function gi(t){switch(t.kind){case 159:return t.typeName;case 201:var n=t.expression;if(e.isEntityNameExpression(n))return n}}function hi(e,t){return e?ue(e,t)||ov:ov}function yi(t,n){var r=Ci(t);if(n===ov)return lv;var i=vi(t,n,r);if(i)return i;var a=kn(n);if(void 0!==a)return r?(_(t,e.Diagnostics.Type_0_is_not_generic,Xe(n)),lv):a;if(!(107455&n.flags&&bi(t)))return lv;var o=qt(n);if(o.symbol&&!pf(o)){var s=vi(t,o.symbol,r);if(s)return s}return hi(gi(t),793064),o}function vi(t,n,r){return 96&n.flags?_i(t,n,r):524288&n.flags?mi(t,n,r):16&n.flags&&bi(t)&&(n.members||e.getJSDocClassTag(n.valueDeclaration))?_f(n):void 0}function bi(e){return 1048576&e.flags&&159===e.kind}function xi(t){if(e.isIdentifier(t.typeName)){if("Object"===t.typeName.escapedText){if(e.isJSDocIndexSignature(t)){var n=Xa(t.typeArguments[0]),r=Xa(t.typeArguments[1]),i=ri(r,!1);return Re(void 0,Ly,e.emptyArray,e.emptyArray,n===mv&&i,n===gv&&i)}return cv}switch(t.typeName.escapedText){case"String":return mv;case"Number":return gv;case"Boolean":return vv;case"Void":return xv;case"Undefined":return dv;case"Null":return _v;case"Function":case"function":return Bv;case"Array":case"array":return t.typeArguments&&t.typeArguments.length?void 0:Wv;case"Promise":case"promise":return t.typeArguments&&t.typeArguments.length?void 0:Pf(cv)}}}function ki(e){var t=Xa(e.type);return qy?pa([t,_v]):t}function Si(e){var t=C(e);if(!t.resolvedType){var n=void 0,r=void 0,i=793064;bi(e)&&(r=xi(e),i|=107455),r||(n=hi(gi(e),i),r=yi(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function Ci(t){return e.map(t.typeArguments,Xa)}function Di(e){var t=C(e);return t.resolvedType||(t.resolvedType=js(N_(e.exprName))),t.resolvedType}function Ti(t,n){function r(e){for(var t=e.declarations,n=0,r=t;n>1),o=e[a].id;if(o===i)return a;o>i?r=a-1:n=a+1}return~n}function aa(e,t){return ia(e,t)>=0}function oa(e){for(var t=0,n=0,r=e.types;ne[r-1].id?~r:ia(e,t);i<0&&(32768&n&&16&t.objectFlags&&t.symbol&&8208&t.symbol.flags&&ua(e,t)||e.splice(~i,0,t))}}function ca(e,t){for(var n=0,r=t;n0;)n--,la(t[n],t)&&e.orderedRemoveItemAt(t,n)}function _a(t){for(var n=t.length;n>0;){n--;var r=t[n];(32&r.flags&&t.containsString||64&r.flags&&t.containsNumber||96&r.flags&&1048576&r.flags&&aa(t,r.regularType))&&e.orderedRemoveItemAt(t,n)}}function pa(e,t,n,r){if(0===e.length)return kv;if(1===e.length)return e[0];var i=[];return ca(i,e),i.containsAny?cv:(t?fa(i):i.containsStringOrNumberLiteral&&_a(i),0===i.length?i.containsNull?i.containsNonWideningType?_v:pv:i.containsUndefined?i.containsNonWideningType?dv:fv:kv:ma(i,n,r))}function ma(e,t,n){if(0===e.length)return kv;if(1===e.length)return e[0];var r=ci(e),i=tv.get(r);if(!i){i=Ne(65536|ui(e,6144)),tv.set(r,i),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=n}return i}function ga(t){var n=C(t);return n.resolvedType||(n.resolvedType=pa(e.map(t.types,Xa),!1,La(t),Ba(t))),n.resolvedType}function ha(t,n){131072&n.flags?ya(t,n.types):1&n.flags?t.containsAny=!0:8192&n.flags?t.containsNever=!0:16&D(n)&&Ko(n)?t.containsEmptyObject=!0:!qy&&6144&n.flags||e.contains(t,n)||(32768&n.flags&&(t.containsObjectType=!0),65536&n.flags&&void 0===t.unionIndex&&(t.unionIndex=t.length),32768&n.flags&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&ua(t,n)||t.push(n))}function ya(e,t){for(var n=0,r=t;n=n?Dv:r}}function oo(e){return!!e.signature}function so(e){return e&&oo(e)?qs(e.signature,2|e.flags,e.compareTypes,e.inferences):e}function co(e,t){return function(n){return bo(e(n),t)}}function uo(e,t,n){return function(r){return r===e?t:n(r)}}function lo(e){var t=Ne(16384);return t.symbol=e.symbol,t.target=e,t}function fo(t,n){return e.isIdentifierTypePredicate(t)?{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:bo(t.type,n)}:{kind:0,type:bo(t.type,n)}}function _o(t,n,r){var i,a;if(t.typeParameters&&!r){i=e.map(t.typeParameters,lo),n=co(ro(t.typeParameters,i),n);for(var o=0,s=i;on.parameters.length)return 0;t.typeParameters&&t.typeParameters!==n.typeParameters&&(n=Qr(n),t=Md(t,n,void 0,s));var c=n.declaration?n.declaration.kind:0,u=!r&&Vy&&151!==c&&150!==c&&152!==c,l=-1,d=qr(t);if(d&&d!==xv){var f=qr(n);if(f){var _=!u&&s(d,f,!1)||s(f,d,a);if(!_)return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;l&=_}}for(var p=zo(t),m=zo(n),g=Jo(t,p,n,m),h=t.parameters,y=n.parameters,v=0;v0||Dr(t,0).length>0||Dr(t,1).length>0)&&E(n)&&!w(t,n)){if(i){var o=Dr(t,0),_=Dr(t,1);o.length>0&&d(Vr(o[0]),n,!1)||_.length>0&&d(Vr(_[0]),n,!1)?s(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Qe(t),Qe(n)):s(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Qe(t),Qe(n))}return 0}var m=0,h=B,x=H;return H=!1,65536&t.flags?m=r===cx?v(t,n,i&&!(8190&t.flags)):b(t,n,i&&!(8190&t.flags)):(65536&n.flags?m=g(t,n,i&&!(8190&t.flags)&&!(8190&n.flags)):131072&n.flags?(H=!0,m=y(t,n,i)):131072&t.flags&&(m=v(t,n,!1)),!m&&(1032192&t.flags||1032192&n.flags)&&(m=k(t,n,i))&&(B=h)),H=x,!m&&i&&(32768&t.flags&&8190&n.flags?u(t,n):t.symbol&&32768&t.flags&&Lv===t&&s(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),c(a,t,n)),m}function f(e,t){var n;return 32768&e.flags&&32768&t.flags?k(e,t,!1):(65536&e.flags&&65536&t.flags||131072&e.flags&&131072&t.flags)&&(n=m(e,t))&&(n&=m(t,e))?n:0}function p(t,n,a){if(Qf(n,32768)&&!(512&D(n))){var o=!!(33554432&t.flags);if((r===sx||r===cx)&&(Wc(Lv,n)||!o&&Ko(n)))return!1;if(65536&n.flags){var c=h(t,n);if(c)return p(t,c,a)}for(var u=0,l=rr(t);u0&&e.every(n.properties,function(e){return!!(16777216&e.flags)})}return!!(131072&t.flags)&&e.every(t.types,E)}function w(e,t){for(var n=!!(33554432&e.flags),r=0,i=or(e);r":i+="-"+s.id}return i}function es(e,t,n){if(n===ux&&e.id>t.id){var r=e;e=t,t=r}if(Qo(e)&&Qo(t)){var i=[];return Zo(e,i)+","+Zo(t,i)}return e.id+","+t.id}function ts(t,n){if(!(6&e.getCheckFlags(t)))return n(t);for(var r=0,i=t.containingType.types;r=5&&32768&e.flags){var r=e.symbol;if(r)for(var i=0,a=0;a=5)return!0}}return!1}function cs(e,t){return 0!==us(e,t,Eo)}function us(t,n,r){if(t===n)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(n)))return 0;if(i){if(Rm(t)!==Rm(n))return 0}else if((16777216&t.flags)!=(16777216&n.flags))return 0;return Uf(t)!==Uf(n)?0:r(qt(t),qt(n))}function ls(e,t,n){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var r=e.hasRestParameter?1:0,i=t.hasRestParameter?1:0;return!!(n&&e.minArgumentCount<=t.minArgumentCount&&(r>i||r===i&&e.parameters.length>=t.parameters.length))}function ds(t,n,r,i,a,o){if(t===n)return-1;if(!ls(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;t=Xr(t),n=Xr(n);var s=-1;if(!i){var c=qr(t);if(c){var u=qr(n);if(u){var l=o(c,u);if(!l)return 0;s&=l}}}for(var d=n.parameters.length,f=0;f=e.parameters.length-1}function _s(e){for(var t,n=0,r=e;n=2||0==(34&n.flags)||260===n.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),i=Eu(t.parent,r),a=r,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}o&&(i&&(C(a).flags|=65536),214===r.kind&&e.getAncestor(n.valueDeclaration,227).parent===r&&Au(t,r)&&(C(n.valueDeclaration).flags|=2097152),C(n.valueDeclaration).flags|=262144),i&&(C(n.valueDeclaration).flags|=131072)}}function Au(t,n){for(var r=t;185===r.parent.kind;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(192===r.parent.kind||193===r.parent.kind){var a=r.parent;i=43===a.operator||44===a.operator}return!!i&&!!e.findAncestor(r,function(e){return e===n?"quit":e===n.statement})}function Nu(e,t){if(C(e).flags|=2,149===t.kind||152===t.kind){C(t.parent).flags|=4}else C(t).flags|=4}function Pu(t){if(e.isSuperCall(t))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,Pu)}function Ou(e){var t=C(e);return void 0===t.hasSuperCall&&(t.superCall=Pu(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function Iu(e){return an(xn(De(e)))===pv}function Fu(t,n,r){var i=n.parent;if(e.getClassExtendsHeritageClauseElement(i)&&!Iu(i)){var a=Ou(n);(!a||a.end>t.pos)&&_(t,r)}}function Mu(t){var n=e.getThisContainer(t,!0),r=!1;switch(152===n.kind&&Fu(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),187===n.kind&&(n=e.getThisContainer(n,!1),r=zy<2),n.kind){case 233:_(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 232:_(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 152:Lu(t,n)&&_(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 149:case 148:e.hasModifier(n,32)&&_(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 144:_(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}if(r&&Nu(t,n),e.isFunctionLike(n)&&(!Hu(t)||e.getThisParameter(n))){if(186===n.kind&&194===n.parent.kind&&3===e.getSpecialPropertyAssignmentKind(n.parent)){var i=n.parent.left.expression.expression,a=N_(i).symbol;if(a&&a.members&&16&a.flags)return _f(a)}var o=Rt(n)||Uu(n);if(o)return o}if(e.isClassLike(n.parent)){var s=De(n.parent),c=e.hasModifier(n,32)?qt(s):xn(s).thisType;return mu(t,c)}if(e.isInJavaScriptFile(t)){var c=Ru(n);if(c&&c!==lv)return c}return Hy&&_(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),cv}function Ru(t){var n=e.getJSDocType(t);if(n&&273===n.kind){var r=n;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Xa(r.parameters[0].type)}}function Lu(t,n){return!!e.findAncestor(t,function(e){return e===n?"quit":146===e.kind})}function Bu(t){var n=181===t.parent.kind&&t.parent.expression===t,r=e.getSuperContainer(t,!0),i=!1;if(!n)for(;r&&187===r.kind;)r=e.getSuperContainer(r,!0),i=zy<2;var a=function(t){return!!t&&(n?152===t.kind:!(!e.isClassLike(t.parent)&&178!==t.parent.kind)&&(e.hasModifier(t,32)?151===t.kind||150===t.kind||153===t.kind||154===t.kind:151===t.kind||150===t.kind||153===t.kind||154===t.kind||149===t.kind||148===t.kind||152===t.kind))}(r),o=0;if(!a){var s=e.findAncestor(t,function(e){return e===r?"quit":144===e.kind});return s&&144===s.kind?_(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?_(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(e.isClassLike(r.parent)||178===r.parent.kind)?_(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):_(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),lv}if(n||152!==r.kind||Fu(t,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),o=e.hasModifier(r,32)||n?512:256,C(t).flags|=o,151===r.kind&&e.hasModifier(r,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?C(r).flags|=4096:C(r).flags|=2048),i&&Nu(t.parent,r),178===r.parent.kind)return zy<2?(_(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),lv):cv;var c=r.parent,u=xn(De(c)),l=u&&on(u)[0];return l?152===r.kind&&Lu(t,r)?(_(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),lv):512===o?an(u):Pn(l,u.thisType):(e.getClassExtendsHeritageClauseElement(c)||_(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),lv)}function ju(e){return 151!==e.kind&&153!==e.kind&&154!==e.kind||178!==e.parent.kind?186===e.kind&&261===e.parent.kind?e.parent.parent:void 0:e.parent}function zu(e){return 4&D(e)&&e.target===Vv?e.typeArguments[0]:void 0}function Ju(t){return Xc(t,function(t){return 131072&t.flags?e.forEach(t.types,zu):zu(t)})}function Uu(t){if(187!==t.kind){if(Co(t)){var n=ml(t);if(n){var r=n.thisParameter;if(r)return qt(r)}}var i=e.isInJavaScriptFile(t);if(Hy||i){var a=ju(t);if(a){for(var o=sl(a),s=a,c=o;c;){var u=Ju(c);if(u)return bo(u,ul(a));if(261!==s.parent.kind)break;s=s.parent.parent,c=sl(s)}return o?Ps(o):b_(a)}var l=t.parent;if(194===l.kind&&58===l.operatorToken.kind){var d=l.left;if(179===d.kind||180===d.kind){var f=d.expression;if(i&&e.isIdentifier(f)){var _=e.getSourceFileOfNode(l);if(_.commonJsModuleIndicator&&ac(f)===_.symbol)return}return b_(f)}}}}}function Ku(t){var n=t.parent;if(Co(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){var i=e.indexOf(n.parameters,t);if(t.dotDotDotToken){for(var a=[],o=i;o=0){return Df(C(t).resolvedSignature===hb?hb:lf(t),i)}}function Xu(e,t){if(183===e.parent.kind)return $u(e.parent,t)}function Yu(t){var n=t.parent,r=n.operatorToken.kind;if(e.isAssignmentOperator(r)){if(t===n.right){switch(e.getSpecialPropertyAssignmentKind(n)){case 0:break;case 5:if(!n.left.symbol)break;case 1:case 2:case 3:case 4:return}return w_(n.left)}}else{if(54===r){var i=cl(n);return i||t!==n.right||(i=w_(n.left,!0)),i}if((53===r||26===r)&&t===n.right)return cl(n)}}function Qu(e,t){return Xc(e,function(e){var n=229376&e.flags?Sr(e,t):void 0;return n?qt(n):void 0})}function Zu(e,t){return Xc(e,function(e){return Er(e,t)})}function el(t){return!!(65536&t.flags?e.forEach(t.types,vs):vs(t))}function tl(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!xg(t))return nl(t)}function nl(t){var n=t.parent,r=sl(n);if(r){if(!e.hasDynamicName(t)){var i=De(t).escapedName,a=Qu(r,i);if(a)return a}return vl(t.name)&&Zu(r,1)||Zu(r,0)}}function rl(e,t){return e&&(Qu(e,""+t)||Zu(e,1)||_m(e,void 0,!1,!1,!1))}function il(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?cl(t):void 0}function al(t){var n=e.isJsxAttributeLike(t.parent)?t.parent.parent:t.parent.openingElement.attributes,r=cl(n);if(r&&!gt(r)){if(e.isJsxAttribute(t.parent))return Qu(r,t.parent.name.escapedText);if(249===t.parent.kind){var i=Bl();return i&&""!==i?Qu(r,i):cv}return r}}function ol(t){var n=cl(t.parent);if(e.isJsxAttribute(t)){if(!n||gt(n))return;return Qu(n,t.name.escapedText)}return n}function sl(e){var t=cl(e);return t&&vr(t)}function cl(t){if(!xg(t)){if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 226:case 146:case 149:case 148:case 176:return qu(t);case 187:case 219:return Vu(t);case 197:return Wu(n);case 181:case 182:return $u(n,t);case 184:case 202:return Xa(n.type);case 194:return Yu(t);case 261:case 262:return nl(n);case 263:return sl(n.parent);case 177:var r=n;return rl(sl(r),e.indexOfNode(r.elements,t));case 195:return il(t);case 205:return e.Debug.assert(196===n.parent.kind),Xu(n.parent,t);case 185:var i=e.isInJavaScriptFile(n)?e.getJSDocTypeTag(n):void 0;return i?Xa(i.typeExpression.type):cl(n);case 256:return al(n);case 253:case 255:return ol(n);case 251:case 250:return Wl(n)}}}function ul(t){return t=e.findAncestor(t,function(e){return!!e.contextualMapper}),t?t.contextualMapper:By}function ll(e,t){var n=Cr(e,0);if(1===n.length){var r=n[0];if(!dl(r,t))return r}}function dl(t,n){for(var r=0;r0&&(s=ja(s,r(),t.symbol,c),o=[],a=e.createSymbolTable(),g=!1,h=!1,f=0);var T=N_(x.expression);if(!Tl(T))return _(x,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),lv;s=ja(s,T,t.symbol,c),v=b+1;continue}e.Debug.assert(153===x.kind||154===x.kind),_g(x)}!S&&e.hasDynamicName(x)?vl(x.name)?h=!0:g=!0:a.set(k.escapedName,k),o.push(k)}if(l)for(var N=0,P=or(u);N0&&(s=ja(s,r(),t.symbol,c)),s):r()}function Tl(t){return!!(16777217&t.flags||7392&Ts(t)&&Tl(Es(t))||32768&t.flags&&!tr(t)||196608&t.flags&&!e.forEach(t.types,function(e){return!Tl(e)}))}function El(e){return Zl(e),$l()||cv}function wl(e){return Zl(e.openingElement),Nl(e.closingElement.tagName)?Fl(e.closingElement):N_(e.closingElement.tagName),$l()||cv}function Al(t){return!e.stringContains(t,"-")}function Nl(t){switch(t.kind){case 179:case 99:return!1;case 71:return e.isIntrinsicJsxName(t.escapedText);default:e.Debug.fail()}}function Pl(t,n,r){function i(t,n){var r=Re(t,n,e.emptyArray,e.emptyArray,void 0,void 0);return r.flags|=37748736,r.objectFlags|=128,r}for(var a,o=t.attributes,s=e.createSymbolTable(),c=Dv,u=[],l=!1,d=!1,f=Bl(),m=0,g=o.properties;m0&&(c=ja(c,i(o.symbol,s),t.symbol,0),u=[],s=e.createSymbolTable());var v=N_(h.expression);gt(v)&&(l=!0),Tl(v)?c=ja(c,v,t.symbol,0):a=a?va([a,v]):v}}if(!l){c!==Dv&&(u.length>0&&(c=ja(c,i(o.symbol,s),t.symbol,0)),u=or(c)),s=e.createSymbolTable();for(var x=0,k=u;x0){for(var D=[],T=0,E=C.children;T1&&_(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Ll(){return nx||(nx=!0,Gb=Rl(ax.ElementAttributesPropertyNameContainer)),Gb}function Bl(){return rx||(rx=!0,$b=Rl(ax.ElementChildrenAttributeNameContainer)),$b}function jl(e){if(e){if(131072&e.flags){for(var t=[],n=0,r=e.types;n0))_(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(Ll()));else{if(Fo(r,n,t.attributes.properties.length>0?t.attributes:t)&&!gt(r)&&!gt(n))for(var i=0,a=t.attributes.properties;i30)){t=t.toLowerCase();for(var u=0,l=n;ui)continue;_<3?(c=!0,s=d):_=m&&o.length<=p))return!1;if(c>=0)return fs(r,c)||c>=r.minArgumentCount;if(!r.hasRestParameter&&a>r.parameters.length)return!1;var g=a>=r.minArgumentCount;return s||g}function Fd(e){if(32768&e.flags){var t=nr(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function Md(t,n,r,i){var a=qs(t,1,i);return Ks(n,t,function(e,t){Qs(a.inferences,bo(e,r||By),t)}),r||Qs(a.inferences,Vr(n),Vr(t),8),Gr(t,ic(a),e.isInJavaScriptFile(n.declaration))}function Rd(t,n,r,i,a){for(var o=0,s=a.inferences;o0?[t.attributes]:e.emptyArray:t.arguments||e.emptyArray}function Ud(e,t,n){if(147!==e.kind)return t.length;switch(e.parent.kind){case 229:case 199:return 1;case 149:return 2;case 151:case 153:case 154:return 0===zy?2:n.parameters.length>=3?3:2;case 146:return 3}}function Kd(t){if(229===t.kind){var n=De(t);return qt(n)}if(146===t.kind&&(t=t.parent,152===t.kind)){var n=De(t);return qt(n)}return 149===t.kind||151===t.kind||153===t.kind||154===t.kind?zg(t):(e.Debug.fail("Unsupported decorator target."),lv)}function qd(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),lv;if(146===t.kind&&(t=t.parent,152===t.kind))return cv;if(149===t.kind||151===t.kind||153===t.kind||154===t.kind){var n=t;switch(n.name.kind){case 71:return Va(e.idText(n.name));case 8:case 9:return Va(n.name.text);case 144:var r=Sl(n.name);return Zf(r,512)?r:mv;default:return e.Debug.fail("Unsupported property name."),lv}}return e.Debug.fail("Unsupported decorator target."),lv}function Vd(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a third synthetic argument."),lv;if(146===t.kind)return gv;if(149===t.kind)return e.Debug.fail("Property decorators should not have a third synthetic argument."),lv;if(151===t.kind||153===t.kind||154===t.kind){return Hi(Rg(t))}return e.Debug.fail("Unsupported decorator target."),lv}function Wd(t,n){return 0===n?Kd(t.parent):1===n?qd(t.parent):2===n?Vd(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),lv)}function Hd(e,t){return 147===e.kind?Wd(e,t):0===t&&183===e.kind?Oi():void 0}function Gd(e,t,n){if(147!==e.kind&&(0!==n||183!==e.kind))return t[n]}function $d(e,t,n){return 147===e.kind?e.expression:0===t&&183===e.kind?e.template:n}function Xd(t,n,r,i){function a(n,r,i){if(void 0===i&&(i=!1),h=void 0,y=void 0,p){var a=n[0];if(!Id(t,_,a,i))return;return jd(t,_,a,r,f,!1)?a:void(h=a)}for(var s=0;s0?f[e.indexOf(f,!0)]=!1:f=void 0}}}var o,s=183===t.kind,u=147===t.kind,l=e.isJsxOpeningLikeElement(t);s||u||l||(o=t.typeArguments,97!==t.expression.kind&&e.forEach(o,fg));var d=r||[];if(Pd(n,d),!d.length)return Vb.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Nd(t);var f,_=Jd(t),p=1===d.length&&!d[0].typeParameters,m=0;if(!u&&!p)for(var g=s?1:0;g<_.length;g++)ko(_[g])&&(f||(f=new Array(_.length)),f[g]=!0,m++);var h,y,v,b=r&&181===t.kind&&t.arguments.hasTrailingComma;if(d.length>1&&(v=a(d,ox,b)),v||(v=a(d,sx,b)),v)return v;if(h){if(l)return h;jd(t,_,h,sx,void 0,!0)}else if(y)Ld(y,t.typeArguments,!0,i);else if(o&&e.every(n,function(t){return e.length(t.typeParameters)!==o.length})){for(var x=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,S=0,C=n;S-1,T=A?x:x0);var I=Yd(d,void 0===Yy?_.length:Yy),F=d[I],M=F.typeParameters;if(M&&wd(t)&&t.typeArguments){for(var R=t.typeArguments.map(Rg);R.length>M.length;)R.pop();for(;R.length=t)return i;a.parameters.length>r&&(r=a.parameters.length,n=i)}return n}function Qd(t,n){if(97===t.expression.kind){var r=Bu(t.expression);if(r!==lv){var i=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(i){return Xd(t,rn(r,i.typeArguments,i),n)}}return Ad(t)}var a=sd(t.expression);if(a===Sv)return yb;var o=vr(a);if(o===lv)return Nd(t);var s=Dr(o,0),c=Dr(o,1);return Zd(a,o,s.length,c.length)?(a!==lv&&t.typeArguments&&_(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Ad(t)):s.length?Xd(t,s,n):(c.length?_(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Qe(a)):_(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(o)),Nd(t))}function Zd(e,t,n,r){return!!gt(e)||(!!(gt(t)&&16384&e.flags)||!n&&!r&&(!(65536&e.flags)&&No(e,Bv)))}function ef(t,n){if(t.arguments&&zy<1){var r=Od(t.arguments);r>=0&&_(t.arguments[r],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var i=sd(t.expression);if(i===Sv)return yb;if((i=vr(i))===lv)return Nd(t);if(gt(i))return t.typeArguments&&_(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Ad(t);var a=Dr(i,1);if(a.length){if(!tf(t,a[0]))return Nd(t);var o=i.symbol&&Lm(i.symbol);return o&&e.hasModifier(o,128)?(_(t,e.Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0,e.declarationNameToString(e.getNameOfDeclaration(o))),Nd(t)):Xd(t,a,n)}var s=Dr(i,0);if(s.length){var c=Xd(t,s,n);return df(c.declaration)||Vr(c)===xv||_(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),qr(c)===xv&&_(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return _(t,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature),Nd(t)}function tf(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,i=e.getSelectedModifierFlags(r,24);if(!i)return!0;var a=Lm(r.parent.symbol),o=xn(r.parent.symbol);if(!wg(t,a)){var s=e.getContainingClass(t);if(s)for(var c=Rg(s),u=on(c);u.length;){var l=u[0];if(16&i&&l.symbol===r.parent.symbol)return!0;u=on(l)}return 8&i&&_(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Qe(o)),16&i&&_(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Qe(o)),!1}return!0}function nf(t,n){var r=N_(t.tag),i=vr(r);if(i===lv)return Nd(t);var a=Dr(i,0),o=Dr(i,1);return Zd(r,i,a.length,o.length)?Ad(t):a.length?Xd(t,a,n):(_(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(i)),Nd(t))}function rf(t){switch(t.parent.kind){case 229:case 199:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 146:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 149:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 151:case 153:case 154:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function af(t,n){var r=N_(t.expression),i=vr(r);if(i===lv)return Nd(t);var a=Dr(i,0),o=Dr(i,1);if(Zd(r,i,a.length,o.length))return Ad(t);if(of(t,a)){var s=e.getTextOfNode(t.expression,!1);return _(t,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,s),Nd(t)}var c=rf(t);if(!a.length){var u=void 0;return u=e.chainDiagnosticMessages(u,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(i)),u=e.chainDiagnosticMessages(u,c),Vb.add(e.createDiagnosticForNodeFromMessageChain(t,u)),Nd(t)}return Xd(t,a,n,c)}function of(t,n){return n.length&&e.every(n,function(e){return 0===e.minArgumentCount&&!e.hasRestParameter&&e.parameters.length0)return Xd(e,c,n)}function uf(t,n){switch(t.kind){case 181:return Qd(t,n);case 182:return ef(t,n);case 183:return nf(t,n);case 147:return af(t,n);case 251:case 250:return cf(t,N_(t.tagName),n)||gb}e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function lf(e,t){var n=C(e),r=n.resolvedSignature;if(r&&r!==hb&&!t)return r;n.resolvedSignature=hb;var i=uf(e,t);return n.resolvedSignature=kb===Sb?i:r,i}function df(t){if(t&&e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?De(t):e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?De(t.initializer):void 0;return n&&void 0!==n.members}return!1}function ff(t){if(e.isDeclarationOfFunctionOrClassExpression(t)&&(t=De(t.valueDeclaration.initializer)),df(t.valueDeclaration))return _f(t);if(3&t.flags){var n=qt(t);if(n.symbol&&!pf(n)&&df(n.symbol.valueDeclaration))return _f(n.symbol)}}function _f(t){var n=S(t);return n.inferredClassType||(n.inferredClassType=Re(t,t.members||Ly,e.emptyArray,e.emptyArray,void 0,void 0)),n.inferredClassType}function pf(e){return e.symbol&&16&D(e)&&S(e.symbol).inferredClassType===e}function mf(t){Bh(t,t.typeArguments)||zh(t.arguments);var n=lf(t);if(97===t.expression.kind)return xv;if(182===t.kind){var r=n.declaration;if(r&&152!==r.kind&&156!==r.kind&&161!==r.kind&&!e.isJSDocConstructSignature(r)){var i=N_(t.expression).symbol;i||71!==t.expression.kind||(i=ac(t.expression));var a=i&&ff(i);return a||(Wy&&_(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),cv)}}return e.isInJavaScriptFile(t)&&yf(t)?Kr(t.arguments[0]):Vr(n)}function gf(t){if(zh(t.arguments)||Ty(t),0===t.arguments.length)return Of(t,cv);for(var n=t.arguments[0],r=b_(n),i=1;i0?Df(e,0):kv}function Ef(t,n,r){for(var i=t.parameters.length-(t.hasRestParameter?1:0),a=0;a=0)if(n.parameters[r.parameterIndex].dotDotDotToken)_(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else{var a=e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Fo(r.type,Rg(n.parameters[r.parameterIndex]),t.type,void 0,a)}else if(i){for(var o=!1,s=0,c=n.parameters;s0&&n.declarations[0]!==t)return}var r=ti(De(t));if(r)for(var i=!1,a=!1,o=0,s=r.declarations;o=0)return void(n&&_(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));qb.push(t.id);var l=_p(u,n,r);if(qb.pop(),!l)return;return i.awaitedTypeOfType=l}var d=mt(t,"then");return d&&Dr(d,0).length>0?void(n&&(e.Debug.assert(!!r),_(n,r))):i.awaitedTypeOfType=t}function pp(t){var n=e.getEffectiveReturnTypeNode(t),r=Xa(n);if(zy>=2){if(r===lv)return lv;var i=Mi(!0);if(i!==wv&&!Vt(r,i))return _(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),lv}else{if(gp(n),r===lv)return lv;var a=e.getEntityNameFromTypeNode(n);if(void 0===a)return _(n,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,Qe(r)),lv;var o=ue(a,107455,!0),s=o?qt(o):lv;if(s===lv)return 71===a.kind&&"Promise"===a.escapedText&&Wt(r)===Mi(!1)?_(n,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):_(n,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)),lv;var c=Li(!0);if(c===Dv)return _(n,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)),lv;if(!Fo(s,c,n,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 lv;var u=a&&Qm(a),l=E(t.locals,u.escapedText,107455);if(l)return _(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a)),lv}return fp(r,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function mp(t){var n=lf(t),r=Vr(n);if(!(1&r.flags)){var i,a,o=rf(t);switch(t.parent.kind){case 229:i=pa([qt(De(t.parent)),xv]);break;case 146:i=xv,a=e.chainDiagnosticMessages(a,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 149:i=xv,a=e.chainDiagnosticMessages(a,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 151:case 153:case 154:i=pa([Hi(Rg(t.parent)),xv])}Fo(r,i,t,o,a)}}function gp(t){hp(t&&e.getEntityNameFromTypeNode(t))}function hp(e){if(e){var t=Qm(e),n=2097152|(71===e.kind?793064:1920),r=N(t,t.escapedText,n,void 0,void 0,!0);r&&2097152&r.flags&&we(r)&&!eh(ie(r))&&oe(r)}}function yp(t){var n=vp(t);n&&e.isEntityName(n)&&hp(n)}function vp(t){if(t)switch(t.kind){case 167:case 166:for(var n=void 0,r=0,i=t.types;r0),r.length>1&&_(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Tp(t.class.expression),a=e.getClassExtendsHeritageClauseElement(n);if(a){var o=Tp(a.expression);o&&i.escapedText!==o.escapedText&&_(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}function Tp(e){switch(e.kind){case 71:return e;case 179:return e.name;default:return}}function Ep(t){xp(t),j_(t);var n=e.getFunctionFlags(t);if(t.name&&144===t.name.kind&&Sl(t.name),!e.hasDynamicName(t)){var r=De(t),i=t.localSymbol||r,a=e.find(i.declarations,function(e){return e.kind===t.kind&&!(65536&e.flags)});t===a&&cp(i),r.parent&&e.getDeclarationOfKind(r,t.kind)===t&&cp(r)}fg(t.body);var o=e.getEffectiveReturnTypeNode(t);if(0==(1&n)){var s=o&&(2&n?pp(t):Xa(o));Bf(t,s)}c&&!o&&(Wy&&e.nodeIsMissing(t.body)&&!op(t)&&Js(t,cv),1&n&&e.nodeIsPresent(t.body)&&Vr(jr(t))),wp(t)}function wp(e){fb&&fb.push(e)}function Ap(){if(fb)for(var e=0,t=fb;e=e.ModuleKind.ES2015)&&(zp(t,n,"require")||zp(t,n,"exports"))&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=_t(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&_(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n))}}function Hp(t,n){if(!(zy>=4)&&zp(t,n,"Promise")&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=_t(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&1024&r.flags&&_(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(n),e.declarationNameToString(n))}}function Gp(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(226!==t.kind||t.initializer)){var n=De(t);if(1&n.flags){if(!e.isIdentifier(t.name))throw e.Debug.fail();var r=N(t,t.name.escapedText,3,void 0,void 0,!1);if(r&&r!==n&&2&r.flags&&3&id(r)){var i=e.getAncestor(r.valueDeclaration,227),a=208===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!(a&&(207===a.kind&&e.isFunctionLike(a.parent)||234===a.kind||233===a.kind||265===a.kind))){var o=Xe(r);_(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}function $p(t){function n(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(179===i.kind)return n(i.expression);if(71!==i.kind)return e.forEachChild(i,n);var a=N(i,i.escapedText,2204607,void 0,void 0,!1);if(a&&a!==ov&&a.valueDeclaration){if(a.valueDeclaration===t)return void _(i,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(t.name));if(e.getEnclosingBlockScopeContainer(a.valueDeclaration)===r){if(146===a.valueDeclaration.kind||176===a.valueDeclaration.kind){if(a.valueDeclaration.pos1)return _y(t,e.Diagnostics.Modifiers_cannot_appear_here)}}function rm(e){ky(e),N_(e.expression)}function im(t){ky(t),N_(t.expression),fg(t.thenStatement),209===t.thenStatement.kind&&_(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),fg(t.elseStatement)}function am(e){ky(e),fg(e.statement),N_(e.expression)}function om(e){ky(e),N_(e.expression),fg(e.statement)}function sm(t){ky(t)||t.initializer&&227===t.initializer.kind&&cy(t.initializer),t.initializer&&(227===t.initializer.kind?e.forEach(t.initializer.declarations,Zp):N_(t.initializer)),t.condition&&N_(t.condition),t.incrementor&&N_(t.incrementor),fg(t.statement),t.locals&&wp(t)}function cm(t){if(Xh(t),216===t.kind)if(t.awaitModifier){var n=e.getFunctionFlags(e.getContainingFunction(t));2==(6&n)&&zy<5&&bh(t,16384)}else jy.downlevelIteration&&zy<2&&bh(t,256);if(227===t.initializer.kind)lm(t);else{var r=t.initializer,i=dm(t.expression,t.awaitModifier);if(177===r.kind||178===r.kind)c_(r,i||lv);else{var a=N_(r);Vf(r,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),i&&Fo(i,a,r,void 0)}}fg(t.statement),t.locals&&wp(t)}function um(t){Xh(t);var n=sd(t.expression);if(227===t.initializer.kind){var r=t.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&_(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),lm(t)}else{var i=t.initializer,a=N_(i);177===i.kind||178===i.kind?_(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):No(Da(n),a)?Vf(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):_(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}Zf(n,17317888)||_(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter),fg(t.statement),t.locals&&wp(t)}function lm(e){var t=e.initializer;if(t.declarations.length>=1){Zp(t.declarations[0])}}function dm(e,t){return fm(sd(e),e,!0,void 0!==t)}function fm(e,t,n,r){return gt(e)?e:_m(e,t,n,r,!0)||cv}function _m(t,n,r,i,a){var o=zy>=2,s=!o&&jy.downlevelIteration;if(o||s||i){var c=pm(t,o?n:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,d=!1;if(r){if(65536&u.flags){var f=t.types,p=e.filter(f,function(e){return!(262178&e.flags)});p!==f&&(u=pa(p,!0))}else 262178&u.flags&&(u=kv);if((d=u!==t)&&(zy<1&&n&&(_(n,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),8192&u.flags))return mv}if(!ys(u)){if(n&&!l){_(n,!r||d?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type:s?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:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,Qe(u))}return d?mv:void 0}var m=Ar(u,1);return d&&m?262178&m.flags?mv:pa([m,mv],!0):m}function pm(t,n,r,i,a){function o(t){var o=t;if(r){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(Vt(t,Bi(!1))||Vt(t,zi(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(Vt(t,Ji(!1))||Vt(t,Ki(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=r&&mt(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||i&&mt(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!gt(c)){var u=c&&Dr(c,0);if(!e.some(u))return void(n&&(_(n,r?e.Diagnostics.Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator),n=void 0));var l=pa(e.map(u,Vr),!0),d=mm(l,n,!!s);return a&&n&&d&&Fo(t,s?Gi(d):Xi(d),n),s?o.iteratedTypeOfAsyncIterable=d:o.iteratedTypeOfIterable=d}}if(!gt(t))return Xc(t,o)}function mm(t,n,r){if(!gt(t)){var i=t;if(r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(Vt(t,(r?ji:Ui)(!1)))return r?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=mt(t,"next");if(!gt(a)){var o=a?Dr(a,0):e.emptyArray;if(0===o.length)return void(n&&_(n,r?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method));var s=pa(e.map(o,Vr),!0);if(!(gt(s)||r&&(s=lp(s,n,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property),gt(s)))){var c=s&&mt(s,"value");return c?r?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c:void(n&&_(n,r?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property))}}}}function gm(e,t){if(!gt(e))return pm(e,void 0,t,!t,!1)||mm(e,void 0,t)}function hm(e){ky(e)||ny(e)}function ym(t){return 153===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,154))}function vm(t,n){var r=2==(3&e.getFunctionFlags(t))?dp(n):n;return r&&Qf(r,1025)}function bm(t){if(!ky(t)){e.getContainingFunction(t)||_y(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}var n=e.getContainingFunction(t);if(n){var r=jr(n),i=Vr(r);if(qy||t.expression||8192&i.flags){var a=t.expression?b_(t.expression):dv,o=e.getFunctionFlags(n);if(1&o)return;if(154===n.kind)t.expression&&_(t,e.Diagnostics.Setters_cannot_return_a_value);else if(152===n.kind)t.expression&&!Fo(a,i,t)&&_(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(n)||ym(n))if(2&o){var s=dp(i),c=fp(a,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);s&&Fo(c,s,t)}else Fo(a,i,t)}else 152!==n.kind&&jy.noImplicitReturns&&!vm(n,i)&&_(t,e.Diagnostics.Not_all_code_paths_return_a_value)}}function xm(t){ky(t)||16384&t.flags&&_y(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),N_(t.expression);var n=e.getSourceFileOfNode(t);if(!fy(n)){var r=e.getSpanOfTokenAtPosition(n,t.pos).start;py(n,r,t.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function km(t){ky(t);var n,r=!1,i=N_(t.expression),a=xs(i);e.forEach(t.caseBlock.clauses,function(o){if(258===o.kind&&!r)if(void 0===n)n=o;else{var s=e.getSourceFileOfNode(t),u=e.skipTrivia(s.text,o.pos),l=o.statements.length>0?o.statements[0].pos:o.end;py(s,u,l-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0}if(c&&257===o.kind){var d=o,f=N_(d.expression),_=xs(f),p=i;_&&a||(f=_?ks(f):f,p=ks(i)),d_(p,f)||Mo(f,p,d.expression,void 0)}e.forEach(o.statements,fg)}),t.caseBlock.locals&&wp(t.caseBlock)}function Sm(t){ky(t)||e.findAncestor(t.parent,function(n){if(e.isFunctionLike(n))return"quit";if(222===n.kind&&n.label.escapedText===t.label.escapedText){var r=e.getSourceFileOfNode(t);return my(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(r.text,t.label)),!0}}),fg(t.statement)}function Cm(t){ky(t)||void 0===t.expression&&Cy(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&N_(t.expression)}function Dm(t){ky(t),Bp(t.tryBlock);var n=t.catchClause;if(n){if(n.variableDeclaration)if(n.variableDeclaration.type)_y(n.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(n.variableDeclaration.initializer)_y(n.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=n.block.locals;r&&e.forEachKey(n.locals,function(t){var n=r.get(t);n&&0!=(2&n.flags)&&my(n.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}Bp(n.block)}t.finallyBlock&&Bp(t.finallyBlock)}function Tm(t){function n(t,n,r,i,a,o){if(a){var s=t.valueDeclaration;if(1!==o||(s?vl(e.getNameOfDeclaration(s)):kl(t.escapedName))){var c;if(!s||194!==s.kind&&144!==e.getNameOfDeclaration(s).kind&&t.parent!==r.symbol){if(i)c=i;else if(2&D(r)){var u=e.forEach(on(r),function(e){return ir(e,t.escapedName)&&Ar(e,o)});c=u?void 0:r.symbol.declarations[0]}}else c=s;if(c&&!No(n,a)){_(c,0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,Xe(t),Qe(n),Qe(a))}}}}var r=ni(t.symbol,1),i=ni(t.symbol,0),a=Ar(t,0),o=Ar(t,1);if((a||o)&&(e.forEach(rr(t),function(e){var s=qt(e);n(e,s,t,i,a,0),n(e,s,t,r,o,1)}),1&D(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=t.symbol.valueDeclaration,c=0,u=s.members;cr)return!1;for(var u=0;u>s;case 47:return o>>>s;case 45:return o<1&&e.forEach(r.declarations,function(t){e.isConstEnumDeclaration(t)!==n&&_(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var i=!1;e.forEach(r.declarations,function(t){if(232!==t.kind)return!1;var n=t;if(!n.members.length)return!1;var r=n.members[0];r.initializer||(i?_(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)})}}}function Gm(t){for(var n=t.declarations,r=0,i=n;r1&&!i&&r(t,jy.preserveConstEnums||jy.isolatedModules)){var s=Gm(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?_(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos=e.ModuleKind.ES2015&&!e.isInAmbientContext(t)&&my(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)}function ig(t){if(!ag(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(Sh(t)||Ch(t)||!e.hasModifiers(t)||_y(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||Zm(t)))if(t.exportClause){e.forEach(t.exportClause.elements,og);var n=234===t.parent.kind&&e.isAmbientModule(t.parent.parent),r=!n&&234===t.parent.kind&&!t.moduleSpecifier&&e.isInAmbientContext(t);265===t.parent.kind||n||r||_(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=le(t,t.moduleSpecifier);i&&me(i)&&_(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Xe(i)),Jy!==e.ModuleKind.System&&Jy!==e.ModuleKind.ES2015&&Jy!==e.ModuleKind.ESNext&&bh(t,32768)}}function ag(e,t){var n=265===e.parent.kind||234===e.parent.kind||233===e.parent.kind;return n||_y(e,t),!n}function og(t){if(eg(t),!t.parent.parent.moduleSpecifier){var n=t.propertyName||t.name,r=N(n,n.escapedText,2998271,void 0,void 0,!0);r&&(r===Xy||T(_t(r.declarations[0])))?_(n,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(n)):ae(t)}}function sg(t){if(!ag(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var n=265===t.parent.kind?t.parent:t.parent.parent;if(233===n.kind&&!e.isAmbientModule(n))return void(t.isExportEquals?_(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):_(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));Sh(t)||Ch(t)||!e.hasModifiers(t)||_y(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),71===t.expression.kind?ae(t):b_(t.expression),ug(n),e.isInAmbientContext(t)&&!e.isEntityNameExpression(t.expression)&&my(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),t.isExportEquals&&!e.isInAmbientContext(t)&&(Jy>=e.ModuleKind.ES2015?my(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):Jy===e.ModuleKind.System&&my(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function cg(t){return e.forEachEntry(t.exports,function(e,t){return"export="!==t})}function ug(t){var n=De(t),r=S(n);if(!r.exportsChecked){var i=n.exports.get("export=");if(i&&cg(n)){var a=K(i)||i.valueDeclaration;rt(a)||_(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=xe(n);o&&o.forEach(function(t,n){var r=t.declarations,i=t.flags;if("__export"!==n&&!(1984&i)){var a=e.countWhere(r,px);if(!(524288&i&&a<=2)&&a>1)for(var o=0,s=r;o0?e.concatenate(o,a):a}return e.forEach(i.getSourceFiles(),mg),Vb.getDiagnostics()}function vg(){return bg(),Vb.getGlobalDiagnostics()}function bg(){if(!c)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function xg(e){if(e)for(;e.parent;){if(220===e.parent.kind&&e.parent.statement===e)return!0;e=e.parent}return!1}function kg(t,n){function r(t,n){if(e.getCombinedLocalAndExportSymbolFlags(t)&n){var r=t.escapedName;a.has(r)||a.set(r,t)}}function i(e,t){t&&e.forEach(function(e){r(e,t)})}if(xg(t))return[];var a=e.createSymbolTable(),o=!1;return function(){for(;t;){switch(t.locals&&!T(t)&&i(t.locals,n),t.kind){case 233:i(De(t).exports,2623475&n);break;case 232:i(De(t).exports,8&n);break;case 199:t.name&&r(t.symbol,n);case 229:case 230:o||i(De(t).members,793064&n);break;case 186:t.name&&r(t.symbol,n)}e.introducesArgumentsExoticObject(t)&&r(Qy,n),o=e.hasModifier(t,32),t=t.parent}i(xb,n)}(),Or(a)}function Sg(e){return 71===e.kind&&Cg(e.parent)&&e.parent.name===e}function Cg(e){switch(e.kind){case 145:case 229:case 230:case 231:case 232:return!0}}function Dg(e){for(var t=e;t.parent&&143===t.parent.kind;)t=t.parent;return t.parent&&159===t.parent.kind}function Tg(e){for(var t=e;t.parent&&179===t.parent.kind;)t=t.parent;return t.parent&&201===t.parent.kind}function Eg(t,n){for(var r;;){if(!(t=e.getContainingClass(t)))break;if(r=n(t))break}return r}function wg(e,t){return!!Eg(e,function(e){return e===t})}function Ag(e){for(;143===e.parent.kind;)e=e.parent;return 237===e.parent.kind?e.parent.moduleReference===e&&e.parent:243===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function Ng(e){return void 0!==Ag(e)}function Pg(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return De(t.parent);case 4:case 2:case 5:return De(t.parent.parent)}}function Og(t){if(e.isDeclarationName(t))return De(t.parent);if(e.isInJavaScriptFile(t)&&179===t.parent.kind&&t.parent===t.parent.parent.left){var n=Pg(t);if(n)return n}if(243===t.parent.kind&&e.isEntityNameExpression(t))return ue(t,2998271);if(179!==t.kind&&Ng(t)){var r=e.getAncestor(t,237);return e.Debug.assert(void 0!==r),se(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Tg(t)){var i=0;201===t.parent.kind?(i=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(i|=107455)):i=1920,i|=2097152;var a=ue(t,i);if(a)return a}if(279===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(145===t.parent.kind&&282===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var o=e.getTypeParameterFromJsDoc(t.parent);return o&&o.symbol}if(e.isPartOfExpression(t)){if(e.nodeIsMissing(t))return;if(71===t.kind)return e.isJSXTagName(t)&&Nl(t)?Fl(t.parent):ue(t,107455,!1,!0);if(179===t.kind||143===t.kind){var s=C(t);return s.resolvedSymbol?s.resolvedSymbol:(179===t.kind?ud(t):ld(t),s.resolvedSymbol)}}else{if(Dg(t)){var i=159===t.parent.kind?793064:1920;return ue(t,i,!1,!0)}if(253===t.parent.kind)return Hl(t.parent)}return 158===t.parent.kind?ue(t,1):void 0}function Ig(t){if(265===t.kind)return e.isExternalModule(t)?Ce(t.symbol):void 0;if(!xg(t)){if(a(t))return De(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return De(t.parent.parent);if(71===t.kind){if(Ng(t))return Og(t);if(176===t.parent.kind&&174===t.parent.parent.kind&&t===t.parent.propertyName){var n=Rg(t.parent.parent),r=n&&Sr(n,t.escapedText);if(r)return r}}switch(t.kind){case 71:case 179:case 143:return Og(t);case 99:var i=e.getThisContainer(t,!1);if(e.isFunctionLike(i)){var o=jr(i);if(o.thisParameter)return o.thisParameter}if(e.isInExpressionContext(t))return N_(t).symbol;case 169:return $a(t).symbol;case 97:return N_(t).symbol;case 123:var s=t.parent;if(s&&152===s.kind)return s.parent.symbol;return;case 9:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(238===t.parent.kind||244===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent))return le(t,t);case 8:var c=e.isElementAccessExpression(t.parent)?t.parent.argumentExpression===t?w_(t.parent.expression):void 0:e.isLiteralTypeNode(t.parent)&&e.isIndexedAccessTypeNode(t.parent.parent)?Xa(t.parent.parent.objectType):void 0;return c&&Sr(c,e.escapeLeadingUnderscores(t.text));case 79:return De(t.parent);default:return}}}function Fg(e){if(e&&262===e.kind)return ue(e.name,2204607)}function Mg(e){return e.parent.parent.moduleSpecifier?X(e.parent.parent,e):ue(e.propertyName||e.name,2998271)}function Rg(t){if(xg(t))return lv;if(e.isPartOfTypeNode(t)){var n=Xa(t);if(n&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)){var r=e.getContainingClass(t),i=Rg(r);n=Pn(n,i.thisType)}return n}if(e.isPartOfExpression(t))return jg(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var o=e.getContainingClass(t),i=xn(De(o)),s=on(i)[0];return s&&Pn(s,i.thisType)}if(Cg(t)){var c=De(t);return xn(c)}if(Sg(t)){var c=Ig(t);return c&&xn(c)}if(e.isDeclaration(t)){var c=De(t);return qt(c)}if(a(t)){var c=Ig(t);return c&&qt(c)}if(e.isBindingPattern(t))return Dt(t.parent,!0);if(Ng(t)){var c=Ig(t),u=c&&xn(c);return u!==lv?u:qt(c)}return lv}function Lg(t){if(e.Debug.assert(178===t.kind||177===t.kind),216===t.parent.kind){var n=dm(t.parent.expression,t.parent.awaitModifier);return c_(t,n||lv)}if(194===t.parent.kind){var n=w_(t.parent.right);return c_(t,n||lv)}if(261===t.parent.kind){return a_(Lg(t.parent.parent)||lv,t.parent)}e.Debug.assert(177===t.parent.kind);var r=Lg(t.parent),i=fm(r||lv,t.parent,!1,!1)||lv;return s_(t.parent,r,e.indexOf(t.parent.elements,t),i||lv)}function Bg(e){var t=Lg(e.parent.parent);return t&&Sr(t,e.escapedText)}function jg(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),qa(w_(t))}function zg(t){var n=De(t.parent);return e.hasModifier(t,32)?qt(n):xn(n)}function Jg(t){t=vr(t);var n=e.createSymbolTable(or(t));return(Dr(t,0).length||Dr(t,1).length)&&e.forEach(or(Bv),function(e){n.has(e.escapedName)||n.set(e.escapedName,e)}),Fe(n)}function Ug(t){if(6&e.getCheckFlags(t)){var n=[],r=t.escapedName;return e.forEach(S(t).containingType.types,function(e){var t=Sr(e,r);t&&n.push(t)}),n}if(33554432&t.flags){var i=t;if(i.leftSpread)return Ug(i.leftSpread).concat(Ug(i.rightSpread));if(i.syntheticOrigin)return Ug(i.syntheticOrigin);for(var a=void 0,o=t;o=S(o).target;)a=o;if(a)return[a]}return[t]}function Kg(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){return!(179===t.parent.kind&&t.parent.name===t)&&mh(t)===Qy}return!1}function qg(t){function n(e){return(e=re(e))&&!!(107455&e.flags)}var r=le(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var i=me(r);r=_e(r);var a=S(r);return void 0===a.exportsSomeValue&&(a.exportsSomeValue=i?!!(107455&r.flags):e.forEachEntry(xe(r),n)),a.exportsSomeValue}function Vg(t){var n=t.parent;return n&&e.isModuleOrEnumDeclaration(n)&&t===n.name}function Wg(t,n){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=mh(t,Vg(t));if(r){if(1048576&r.flags){var i=Ce(r.exportSymbol);if(!n&&944&i.flags)return;r=i}var a=Te(r);if(a){if(512&a.flags&&265===a.valueDeclaration.kind){var o=a.valueDeclaration;return o!==e.getSourceFileOfNode(t)?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&De(t)===a})}}}}function Hg(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=mh(t);if(ne(n,107455))return K(n)}}function Gg(t){if(418&t.flags){var n=S(t);if(void 0===n.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(r)){var i=C(t.valueDeclaration);if(N(r.parent,t.escapedName,107455,void 0,void 0,!1))n.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(r,!1),s=207===r.kind&&e.isIterationStatement(r.parent,!1);n.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||a&&(o||s))}else n.isDeclarationWithCollidingName=!1}}return n.isDeclarationWithCollidingName}return!1}function $g(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=mh(t);if(n&&Gg(n))return n.valueDeclaration}}function Xg(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var n=De(t);if(n)return Gg(n)}return!1}function Yg(t){switch(t.kind){case 237:case 239:case 240:case 242:case 246:return Zg(De(t)||ov);case 244:var n=t.exportClause;return n&&e.forEach(n.elements,Yg);case 243:return!t.expression||71!==t.expression.kind||Zg(De(t)||ov)}return!1}function Qg(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||265!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&(Zg(De(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference))}function Zg(e){var t=ie(e);return t===ov||107455&t.flags&&(jy.preserveConstEnums||!eh(t))}function eh(e){return t_(e)||e.constEnumOnlyModule}function th(t,n){if(e.isAliasSymbolDeclaration(t)){var r=De(t);if(r&&S(r).referenced)return!0}return!!n&&e.forEachChild(t,function(e){return th(e,n)})}function nh(t){if(e.nodeIsPresent(t.body)){var n=De(t),r=Ur(n);return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function rh(t){return qy&&!Mr(t)&&t.initializer&&!e.hasModifier(t,92)}function ih(t){return qy&&Mr(t)&&!t.initializer&&e.hasModifier(t,92)}function ah(e){return C(e).flags}function oh(e){return Km(e.parent),C(e).enumMemberValue}function sh(e){switch(e.kind){case 264:case 179:case 180:return!0}return!1}function ch(t){if(264===t.kind)return oh(t);var n=C(t).resolvedSymbol;return n&&8&n.flags&&e.isConstEnumDeclaration(n.valueDeclaration.parent)?oh(n.valueDeclaration):void 0}function uh(e){return 32768&e.flags&&Dr(e,0).length>0}function lh(t,n){if(!(t=e.getParseTreeNode(t,e.isEntityName)))return e.TypeReferenceSerializationKind.Unknown;if(n&&!(n=e.getParseTreeNode(n)))return e.TypeReferenceSerializationKind.Unknown;var r=ue(t,107455,!0,!1,n),i=ue(t,793064,!0,!1,n);if(r&&r===i){var a=Ri(!1);if(a&&r===a)return e.TypeReferenceSerializationKind.Promise;var o=qt(r);if(o&&en(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.ObjectType;var s=xn(i);return s===lv?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:Zf(s,15360)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Zf(s,136)?e.TypeReferenceSerializationKind.BooleanType:Zf(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:Zf(s,262178)?e.TypeReferenceSerializationKind.StringLikeType:Cs(s)?e.TypeReferenceSerializationKind.ArrayLikeType:Zf(s,512)?e.TypeReferenceSerializationKind.ESSymbolType:uh(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:hs(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function dh(e,t,n,r){var i=De(e),a=!i||133120&i.flags?lv:Ss(qt(i));8192&n&&(a=Ns(a,2048)),ot().buildTypeDisplay(a,r,t,n)}function fh(e,t,n,r){var i=jr(e);ot().buildTypeDisplay(Vr(i),r,t,n)}function _h(e,t,n,r){var i=js(jg(e));ot().buildTypeDisplay(i,r,t,n)}function ph(t){return xb.has(e.escapeLeadingUnderscores(t))}function mh(t,n){var r=C(t).resolvedSymbol;if(r)return r;var i=t;if(n){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=_t(a))}return N(i,t.escapedText,3253183,void 0,void 0,!0)}function gh(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=mh(t);if(n)return Ee(n).valueDeclaration}}function hh(t){if(e.isConst(t)){var n=qt(De(t));return!!(96&n.flags&&1048576&n.flags)}return!1}function yh(e,t){var n=qt(De(e));t.writeStringLiteral(it(n))}function vh(t){var n=e.getExternalModuleName(t),r=de(n,n,void 0);if(r)return e.getDeclarationOfKind(r,265)}function bh(t,n){if((wy&n)!==n&&jy.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,jy)&&!e.isInAmbientContext(t)){var i=kh(r,t);if(i!==ov)for(var a=n&~wy,o=1;o<=65536;o<<=1)if(a&o){var s=xh(o),c=E(i.exports,e.escapeLeadingUnderscores(s),107455);c||_(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}wy|=n}}}function xh(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"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__makeTemplateObject";default:e.Debug.fail("Unrecognized helper")}}function kh(t,n){return Ay||(Ay=fe(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,n)||ov),Ay}function Sh(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t))return 151!==t.kind||e.nodeIsPresent(t.body)?_y(t,e.Diagnostics.Decorators_are_not_valid_here):_y(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(153===t.kind||154===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(n.firstAccessor.decorators&&t===n.secondAccessor)return _y(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function Ch(t){var n=Dh(t);if(void 0!==n)return n;for(var r,i,a,o,s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function wh(t,n){switch(t.kind){case 151:case 228:case 186:case 187:return!1}return my(n,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function Ah(t){if(t&&t.hasTrailingComma){var n=t.end-",".length,r=t.end;return py(t[0],n,r-n,e.Diagnostics.Trailing_comma_not_allowed)}}function Nh(t,n){if(Ah(t))return!0;if(t&&0===t.length){var r=t.pos-"<".length;return py(n,r,e.skipTrivia(n.text,t.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function Ph(t){for(var n=!1,r=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function Bh(e,t){return Ah(t)||Lh(e,t)}function jh(t){if(t)for(var n=0,r=t;n1)return _y(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0}else{if(e.Debug.assert(108===o.token),r)return _y(o,e.Diagnostics.implements_clause_already_seen);r=!0}Jh(o)}}function qh(t){var n=!1;if(t.heritageClauses)for(var r=0,i=t.heritageClauses;r1){var i=215===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return _y(n.declarations[1],i)}var a=r[0];if(a.initializer){var i=215===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 my(a.name,i)}if(a.type){var i=215===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 my(a,i)}}}return!1}function Yh(t){var n=t.kind;if(zy<1)return my(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(e.isInAmbientContext(t))return my(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===t.body&&!e.hasModifier(t,128))return py(t,t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&e.hasModifier(t,128))return my(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return my(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!Qh(t))return my(t.name,153===n?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(154===n){if(t.type)return my(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=t.parameters[0];if(r.dotDotDotToken)return my(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return my(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return my(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function Qh(e){return Zh(e)||e.parameters.length===(153===e.kind?0:1)}function Zh(t){if(t.parameters.length===(153===t.kind?1:2))return e.getThisParameter(t)}function ey(t,n){if(e.isDynamicName(t))return my(t,n)}function ty(t){if(nm(t)||Oh(t)||Wh(t))return!0;if(178===t.parent.kind){if(Hh(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return py(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(e.isClassLike(t.parent)){if(e.isInAmbientContext(t))return ey(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol);if(!t.body)return ey(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol)}else{if(230===t.parent.kind)return ey(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol);if(163===t.parent.kind)return ey(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)}}function ny(t){for(var n=t;n;){if(e.isFunctionLike(n))return my(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 222:if(t.label&&n.label.escapedText===t.label.escapedText){return!!(217===t.kind&&!e.isIterationStatement(n.statement,!0))&&my(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 221:if(218===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(n,!1)&&!t.label)return!1}n=n.parent}if(t.label){var r=218===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return my(t,r)}var r=218===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return my(t,r)}function ry(t){if(t.dotDotDotToken){var n=t.parent.elements;if(t!==e.lastOrUndefined(n))return my(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(175===t.name.kind||174===t.name.kind)return my(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.initializer)return py(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function iy(e){return 9===e.kind||8===e.kind||192===e.kind&&38===e.operator&&8===e.operand.kind}function ay(t){if(215!==t.parent.parent.kind&&216!==t.parent.parent.kind)if(e.isInAmbientContext(t)){if(t.initializer){if(!e.isConst(t)||t.type){var n="=".length;return py(t,t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!iy(t.initializer))return my(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!iy(t.initializer))){var n="=".length;return py(t,t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return my(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return my(t,e.Diagnostics.const_declarations_must_be_initialized)}return jy.module===e.ModuleKind.ES2015||jy.module===e.ModuleKind.ESNext||jy.module===e.ModuleKind.System||jy.noEmit||e.isInAmbientContext(t.parent.parent)||!e.hasModifier(t.parent.parent,1)||oy(t.name),(e.isLet(t)||e.isConst(t))&&sy(t.name)}function oy(t){if(71===t.kind){if("__esModule"===e.idText(t))return my(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=t.elements,r=0,i=n;r0}function _y(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!fy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Vb.add(e.createFileDiagnostic(o,s.start,s.length,n,r,i,a)),!0}}function py(t,n,r,i,a,o,s){var c=e.getSourceFileOfNode(t);if(!fy(c))return Vb.add(e.createFileDiagnostic(c,n,r,i,a,o,s)),!0}function my(t,n,r,i,a){if(!fy(e.getSourceFileOfNode(t)))return Vb.add(e.createDiagnosticForNode(t,n,r,i,a)),!0}function gy(t){if(t.typeParameters)return py(t,t.typeParameters.pos,t.typeParameters.end-t.typeParameters.pos,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}function hy(t){if(t.type)return my(t.type,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function yy(t){if(e.isClassLike(t.parent)){if(ey(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol))return!0}else if(230===t.parent.kind){if(ey(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return my(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(163===t.parent.kind){if(ey(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return my(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(e.isInAmbientContext(t)&&t.initializer)return _y(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}function vy(t){return 230!==t.kind&&231!==t.kind&&238!==t.kind&&237!==t.kind&&244!==t.kind&&243!==t.kind&&236!==t.kind&&!e.hasModifier(t,515)&&_y(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function by(t){for(var n=0,r=t.statements;n=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,173)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,264)&&(n=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){var r=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator,i=(r?"-":"")+"0o"+t.text;return my(r?t.parent:t,n,i)}}}function Cy(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!fy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Vb.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,n,r,i,a)),!0}}function Dy(){return Mv||(Mv=[],xb.forEach(function(e,t){s.test(t)&&Mv.push(e)})),Mv}function Ty(t){if(Jy===e.ModuleKind.ES2015)return my(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return my(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var n=t.arguments;return 1!==n.length?my(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(n[0])?my(n[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):void 0}var Ey,wy,Ay,Ny=e.objectAllocator.getSymbolConstructor(),Py=e.objectAllocator.getTypeConstructor(),Oy=e.objectAllocator.getSignatureConstructor(),Iy=0,Fy=0,My=0,Ry=0,Ly=e.createSymbolTable(),By=e.identity,jy=i.getCompilerOptions(),zy=e.getEmitScriptTarget(jy),Jy=e.getEmitModuleKind(jy),Uy=!!jy.noUnusedLocals||!!jy.noUnusedParameters,Ky=void 0!==jy.allowSyntheticDefaultImports?jy.allowSyntheticDefaultImports:Jy===e.ModuleKind.System,qy=void 0===jy.strictNullChecks?jy.strict:jy.strictNullChecks,Vy=void 0===jy.strictFunctionTypes?jy.strict:jy.strictFunctionTypes,Wy=void 0===jy.noImplicitAny?jy.strict:jy.noImplicitAny,Hy=void 0===jy.noImplicitThis?jy.strict:jy.noImplicitThis,Gy=function(){function t(e){if(a){var t=179===e.kind||71===e.kind&&oc(e)?1156031:794600,r=ue(e,t,!0);return r&&r!==ov?n(r,t):void 0}}function n(t,n){if(a&&r(t)){for(var i,o=0,s=t.declarations;o0){var c=r(i.slice(0,fi(t)),s);if(c&&c.length>0)return e.createTupleTypeNode(c)}return s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyTuple?e.createTupleTypeNode([]):void(s.encounteredError=!0)}var u=t.target.outerTypeParameters,l=0,d=void 0;if(u)for(var p=u.length;l0){var S=(t.target.typeParameters||e.emptyArray).length;k=r(i.slice(l,S),s)}if(k){(71===b.kind?b:b.right).typeArguments=void 0}return e.createTypeReferenceNode(b,k)}(t);if(16384&t.flags||3&b){var v=t.symbol?c(t.symbol,s,793064,!1):e.createIdentifier("?");return e.createTypeReferenceNode(v,void 0)}if(!m&&t.aliasSymbol&&Ue(t.aliasSymbol,s.enclosingDeclaration)){var v=f(t.aliasSymbol),x=r(t.aliasTypeArguments,s);return e.createTypeReferenceNode(v,x)}if(196608&t.flags){var k=65536&t.flags?et(t.types):t.types,S=r(k,s);if(S&&S.length>0){return e.createUnionOrIntersectionTypeNode(65536&t.flags?166:167,S)}return void(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyUnionOrIntersection||(s.encounteredError=!0))}if(48&b)return e.Debug.assert(!!(32768&t.flags)),function(t){var n=t.symbol;if(n){if(32&n.flags&&!Bt(n)||896&n.flags||function(){var t=!!(8192&n.flags)&&e.some(n.declarations,function(t){return e.hasModifier(t,32)}),r=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 265===e.parent.kind||234===e.parent.kind}));if(t||r)return e.contains(s.symbolStack,n)}())return d(n,107455);if(e.contains(s.symbolStack,n)){var r=nt(t);if(r){var i=c(r,s,793064,!1);return e.createTypeReferenceNode(i,void 0)}return e.createKeywordTypeNode(119)}s.symbolStack||(s.symbolStack=[]),s.symbolStack.push(n);var a=l(t);return s.symbolStack.pop(),a}return l(t)}(t);if(262144&t.flags){var C=t.type,T=n(C,s);return e.createTypeOperatorNode(T)}if(524288&t.flags){var E=n(t.objectType,s),T=n(t.indexType,s);return e.createIndexedAccessTypeNode(E,T)}e.Debug.fail("Should be unreachable.")}function r(t,r){if(e.some(t)){for(var i=[],a=0;a0){var c=t[i-1],u=void 0;if(1&e.getCheckFlags(s))u=Qt(c);else{524384&Rm(c).flags&&(u=Yt(s))}a=r(u,n)}var l=at(s,n),d=e.setEmitFlags(e.createIdentifier(l,a),16777216);return i>0?e.createQualifiedName(o(t,i-1),d):d}function s(t,r,i){var a,o=je(t,n.enclosingDeclaration,r,!1);if(!o||ze(o[0],n.enclosingDeclaration,1===o.length?r:Be(r))){var c=Te(o?o[0]:t);if(c){var u=s(c,Be(r),!1);u&&(a=c,o=u.concat(o||[t]))}}return o||(!i&&(!a&&e.forEach(t.declarations,qe)||6144&t.flags)?void 0:[t])}var c;return 262144&t.flags||!(n.enclosingDeclaration||n.flags&e.NodeBuilderFlags.UseFullyQualifiedType)?c=[t]:(c=s(t,i,!0),e.Debug.assert(c&&c.length>0)),!a||1===c.length||n.encounteredError||n.flags&e.NodeBuilderFlags.AllowQualifedNameInPlaceOfIdentifier||(n.encounteredError=!0),o(c,c.length-1)}return{typeToTypeNode:function(e,r,i){var a=t(r,i),o=n(e,a);return a.encounteredError?void 0:o},indexInfoToIndexSignatureDeclaration:function(e,n,r,a){var o=t(r,a),s=i(e,n,o);return o.encounteredError?void 0:s},signatureToSignatureDeclaration:function(e,n,r,i){var o=t(r,i),s=a(e,n,o);return o.encounteredError?void 0:s}}}(),Xy=p(4,"undefined");Xy.declarations=[];var Yy,Qy=p(4,"arguments"),Zy={getNodeCount:function(){return e.sum(i.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(i.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(i.getSourceFiles(),"symbolCount")+Fy},getTypeCount:function(){return Iy},isUndefinedSymbol:function(e){return e===Xy},isArgumentsSymbol:function(e){return e===Qy},isUnknownSymbol:function(e){return e===ov},getMergedSymbol:Ce,getDiagnostics:hg,getGlobalDiagnostics:vg,getTypeOfSymbolAtLocation:function(t,n){return n=e.getParseTreeNode(n),n?gu(t,n):lv},getSymbolsOfParameterPropertyDeclaration:function(t,n){return t=e.getParseTreeNode(t,e.isParameter),e.Debug.assert(void 0!==t,"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."),w(t,e.escapeLeadingUnderscores(n))},getDeclaredTypeOfSymbol:xn,getPropertiesOfType:or,getPropertyOfType:function(t,n){return Sr(t,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:wr,getSignaturesOfType:Dr,getIndexTypeOfType:Ar,getBaseTypes:on,getBaseTypeOfLiteralType:ks,getWidenedType:js,getTypeFromTypeNode:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t?Xa(t):lv},getParameterType:Df,getReturnTypeOfSignature:Vr,getNullableType:Ns,getNonNullableType:Ps,typeToTypeNode:$y.typeToTypeNode,indexInfoToIndexSignatureDeclaration:$y.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:$y.signatureToSignatureDeclaration,getSymbolsInScope:function(t,n){return t=e.getParseTreeNode(t),t?kg(t,n):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?Ig(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?Fg(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return t=e.getParseTreeNode(t,e.isExportSpecifier),t?Mg(t):void 0},getExportSymbolOfSymbol:function(e){return Ce(e.exportSymbol||e)},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?Rg(t):lv},getPropertySymbolOfDestructuringAssignment:function(t){return t=e.getParseTreeNode(t,e.isIdentifier),t?Bg(t):void 0},signatureToString:function(t,n,r,i){return Ye(t,e.getParseTreeNode(n),r,i)},typeToString:function(t,n,r){return Qe(t,e.getParseTreeNode(n),r)},getSymbolDisplayBuilder:ot,symbolToString:function(t,n,r){return Xe(t,e.getParseTreeNode(n),r)},getAugmentedPropertiesOfType:Jg,getRootSymbols:Ug,getContextualType:function(t){return t=e.getParseTreeNode(t,e.isExpression),t?cl(t):void 0},getFullyQualifiedName:ce,getResolvedSignature:function(t,n,r){t=e.getParseTreeNode(t,e.isCallLikeExpression),Yy=r;var i=t?lf(t,n):void 0;return Yy=void 0,i},getConstantValue:function(t){return t=e.getParseTreeNode(t,sh),t?ch(t):void 0},isValidPropertyAccess:function(t,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&xd(t,e.escapeLeadingUnderscores(n))},getSignatureFromDeclaration:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?jr(t):void 0},isImplementationOfOverload:function(t){var n=e.getParseTreeNode(t,e.isFunctionLike);return n?nh(n):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var n=S(t);if(!n.immediateTarget){var r=K(t);e.Debug.assert(!!r),n.immediateTarget=te(r,!0)}return n.immediateTarget},getAliasedSymbol:ie,getEmitResolver:f,getExportsOfModule:ge,getExportsAndPropertiesOfModule:he,getSymbolWalker:e.createGetSymbolWalker(Hr,Vr,on,nr,qt,ac,Er,oi,Qm),getAmbientModules:Dy,getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement),t?Vl(t):void 0},getJsxIntrinsicTagNames:Yl,isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&Mr(t)},tryGetMemberInModuleExports:function(t,n){return ye(e.escapeLeadingUnderscores(t),n)},tryGetMemberInModuleExportsAndProperties:function(t,n){return ve(e.escapeLeadingUnderscores(t),n)},tryFindAmbientModuleWithoutAugmentations:function(e){return Fr(e,!1)},getApparentType:vr,getUnionType:pa,createAnonymousType:Re,createSignature:Mn,createSymbol:p,createIndexInfo:ri,getAnyType:function(){return cv},getStringType:function(){return mv},getNumberType:function(){return gv},createPromiseType:Pf,createArrayType:Qi,getBooleanType:function(){return vv},getVoidType:function(){return xv},getUndefinedType:function(){return dv},getNullType:function(){return _v},getESSymbolType:function(){return bv},getNeverType:function(){return kv},isSymbolAccessible:Ke,isArrayLikeType:ys,getAllPossiblePropertiesOfTypes:sr,getSuggestionForNonexistentProperty:function(e,t){return hd(e,t)},getSuggestionForNonexistentSymbol:function(t,n,r){return yd(t,e.escapeLeadingUnderscores(n),r)},getBaseConstraintOfType:dr,resolveName:function(t,n,r){return N(n,e.escapeLeadingUnderscores(t),r,void 0,void 0,!1)},getJsxNamespace:function(){return e.unescapeLeadingUnderscores(u())}},ev=[],tv=e.createMap(),nv=e.createMap(),rv=e.createMap(),iv=e.createMap(),av=[],ov=p(4,"unknown"),sv=p(0,"__resolving__"),cv=Pe(1,"any"),uv=Pe(1,"any"),lv=Pe(1,"unknown"),dv=Pe(2048,"undefined"),fv=qy?dv:Pe(2099200,"undefined"),_v=Pe(4096,"null"),pv=qy?_v:Pe(2101248,"null"),mv=Pe(2,"string"),gv=Pe(4,"number"),hv=Pe(128,"true"),yv=Pe(128,"false"),vv=function(e){var t=pa(e);return t.flags|=8,t.intrinsicName="boolean",t}([hv,yv]),bv=Pe(512,"symbol"),xv=Pe(1024,"void"),kv=Pe(8192,"never"),Sv=Pe(8192,"never"),Cv=Pe(16777216,"object"),Dv=Re(void 0,Ly,e.emptyArray,e.emptyArray,void 0,void 0),Tv=p(2048,"__type");Tv.members=e.createSymbolTable();var Ev=Re(Tv,Ly,e.emptyArray,e.emptyArray,void 0,void 0),wv=Re(void 0,Ly,e.emptyArray,e.emptyArray,void 0,void 0);wv.instantiations=e.createMap();var Av=Re(void 0,Ly,e.emptyArray,e.emptyArray,void 0,void 0);Av.flags|=8388608;var Nv=Re(void 0,Ly,e.emptyArray,e.emptyArray,void 0,void 0),Pv=Re(void 0,Ly,e.emptyArray,e.emptyArray,void 0,void 0),Ov=Re(void 0,Ly,e.emptyArray,e.emptyArray,void 0,void 0),Iv=Ne(16384),Fv=Ne(16384);Fv.constraint=Iv;var Mv,Rv,Lv,Bv,jv,zv,Jv,Uv,Kv,qv,Vv,Wv,Hv,Gv,$v,Xv,Yv,Qv,Zv,eb,tb,nb,rb,ib,ab,ob,sb,cb,ub,lb,db,fb,_b,pb=Ne(16384),mb=Mn(void 0,void 0,void 0,e.emptyArray,cv,void 0,0,!1,!1),gb=Mn(void 0,void 0,void 0,e.emptyArray,lv,void 0,0,!1,!1),hb=Mn(void 0,void 0,void 0,e.emptyArray,cv,void 0,0,!1,!1),yb=Mn(void 0,void 0,void 0,e.emptyArray,Sv,void 0,0,!1,!1),vb=ri(mv,!0),bb=ri(cv,!1),xb=e.createSymbolTable(),kb=0,Sb=0,Cb=0,Db=!1,Tb=Va(""),Eb=Va(0),wb=[],Ab=[],Nb=[],Pb=0,Ob=10,Ib=[],Fb=[],Mb=[],Rb=[],Lb=[],Bb=[],jb=[],zb=[],Jb=[],Ub=[],Kb=[],qb=[],Vb=e.createDiagnosticCollection();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.Discriminatable=4194304]="Discriminatable",e[e.All=8388607]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=6166480]="ObjectStrictFacts",e[e.ObjectFacts=8378320]="ObjectFacts",e[e.FunctionStrictFacts=6164448]="FunctionStrictFacts",e[e.FunctionFacts=8376288]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts"}(_b||(_b={}));var Wb,Hb,Gb,$b,Xb,Yb,Qb=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),Zb=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),ex=e.createMapFromTemplate({string:mv,number:gv,boolean:vv,symbol:bv,undefined:dv}),tx=function(){return pa(e.arrayFrom(Qb.keys(),Va))}(),nx=!1,rx=!1,ix=e.createUnderscoreEscapedMap(),ax={JSX:"JSX",IntrinsicElements:"IntrinsicElements",ElementClass:"ElementClass",ElementAttributesPropertyNameContainer:"ElementAttributesProperty",ElementChildrenAttributeNameContainer:"ElementChildrenAttribute",Element:"Element",IntrinsicAttributes:"IntrinsicAttributes",IntrinsicClassAttributes:"IntrinsicClassAttributes"},ox=e.createMap(),sx=e.createMap(),cx=e.createMap(),ux=e.createMap(),lx=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType"}(Yb||(Yb={}));var dx;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential"}(dx||(dx={}));var fx;!function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(fx||(fx={}));var _x=e.createSymbolTable();_x.set(Xy.escapedName,Xy);var px=e.and(dg,lg);return function(){for(var t=0,n=i.getSourceFiles();t0&&(a[c-s]=u)}s>0&&(a.length-=s)}}function ta(t,n){return t===n?0:t.priority===n.priority?0:void 0===t.priority?1:void 0===n.priority?-1:e.compareValues(t.priority,n.priority)}function na(e,t){if(e.original=t,t){var n=t.emitNode;n&&(e.emitNode=ra(n,e.emitNode))}return e}function ra(t,n){var r=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers;return n||(n={}),i&&(n.leadingComments=e.addRange(i.slice(),n.leadingComments)),a&&(n.trailingComments=e.addRange(a.slice(),n.trailingComments)),r&&(n.flags=r),o&&(n.commentRange=o),s&&(n.sourceMapRange=s),c&&(n.tokenSourceMapRanges=ia(c,n.tokenSourceMapRanges)),void 0!==u&&(n.constantValue=u),l&&(n.helpers=e.addRange(n.helpers,l)),n}function ia(e,t){t||(t=[]);for(var n in e)t[n]=e[n];return t}e.updateNode=n,e.createNodeArray=r,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createIdentifier=u,e.updateIdentifier=l;var aa=0;e.createTempVariable=d,e.createLoopVariable=f,e.createUniqueName=_,e.getGeneratedNameForNode=p,e.createToken=m,e.createSuper=g,e.createThis=h,e.createNull=y,e.createTrue=v,e.createFalse=b,e.createQualifiedName=x,e.updateQualifiedName=k,e.createComputedPropertyName=S,e.updateComputedPropertyName=C,e.createTypeParameterDeclaration=D,e.updateTypeParameterDeclaration=T,e.createParameter=E,e.updateParameter=w,e.createDecorator=A,e.updateDecorator=N,e.createPropertySignature=P,e.updatePropertySignature=O,e.createProperty=I,e.updateProperty=F,e.createMethodSignature=M,e.updateMethodSignature=R,e.createMethod=L,e.updateMethod=B,e.createConstructor=j,e.updateConstructor=z,e.createGetAccessor=J,e.updateGetAccessor=U,e.createSetAccessor=K,e.updateSetAccessor=q,e.createCallSignature=V,e.updateCallSignature=W,e.createConstructSignature=H,e.updateConstructSignature=G,e.createIndexSignature=$,e.updateIndexSignature=X,e.createSignatureDeclaration=Y,e.createKeywordTypeNode=Z,e.createTypePredicateNode=ee,e.updateTypePredicateNode=te,e.createTypeReferenceNode=ne,e.updateTypeReferenceNode=re,e.createFunctionTypeNode=ie,e.updateFunctionTypeNode=ae,e.createConstructorTypeNode=oe,e.updateConstructorTypeNode=se,e.createTypeQueryNode=ce,e.updateTypeQueryNode=ue,e.createTypeLiteralNode=le,e.updateTypeLiteralNode=de,e.createArrayTypeNode=fe,e.updateArrayTypeNode=_e,e.createTupleTypeNode=pe,e.updateTypleTypeNode=me,e.createUnionTypeNode=ge,e.updateUnionTypeNode=he,e.createIntersectionTypeNode=ye,e.updateIntersectionTypeNode=ve,e.createUnionOrIntersectionTypeNode=be,e.createParenthesizedType=ke,e.updateParenthesizedType=Se,e.createThisTypeNode=Ce,e.createTypeOperatorNode=De,e.updateTypeOperatorNode=Te,e.createIndexedAccessTypeNode=Ee,e.updateIndexedAccessTypeNode=we,e.createMappedTypeNode=Ae,e.updateMappedTypeNode=Ne,e.createLiteralTypeNode=Pe,e.updateLiteralTypeNode=Oe,e.createObjectBindingPattern=Ie,e.updateObjectBindingPattern=Fe,e.createArrayBindingPattern=Me,e.updateArrayBindingPattern=Re,e.createBindingElement=Le,e.updateBindingElement=Be,e.createArrayLiteral=je,e.updateArrayLiteral=ze,e.createObjectLiteral=Je,e.updateObjectLiteral=Ue,e.createPropertyAccess=Ke,e.updatePropertyAccess=qe,e.createElementAccess=Ve,e.updateElementAccess=We,e.createCall=He,e.updateCall=Ge,e.createNew=$e,e.updateNew=Xe,e.createTaggedTemplate=Ye,e.updateTaggedTemplate=Qe,e.createTypeAssertion=Ze,e.updateTypeAssertion=et,e.createParen=tt,e.updateParen=nt,e.createFunctionExpression=rt,e.updateFunctionExpression=it,e.createArrowFunction=at,e.updateArrowFunction=ot,e.createDelete=st,e.updateDelete=ct,e.createTypeOf=ut,e.updateTypeOf=lt,e.createVoid=dt,e.updateVoid=ft,e.createAwait=_t,e.updateAwait=pt,e.createPrefix=mt,e.updatePrefix=gt,e.createPostfix=ht,e.updatePostfix=yt,e.createBinary=vt,e.updateBinary=bt,e.createConditional=xt,e.updateConditional=kt,e.createTemplateExpression=St,e.updateTemplateExpression=Ct,e.createTemplateHead=Dt,e.createTemplateMiddle=Tt,e.createTemplateTail=Et,e.createNoSubstitutionTemplateLiteral=wt,e.createYield=At,e.updateYield=Nt,e.createSpread=Pt,e.updateSpread=Ot,e.createClassExpression=It,e.updateClassExpression=Ft,e.createOmittedExpression=Mt,e.createExpressionWithTypeArguments=Rt,e.updateExpressionWithTypeArguments=Lt,e.createAsExpression=Bt,e.updateAsExpression=jt,e.createNonNullExpression=zt,e.updateNonNullExpression=Jt,e.createMetaProperty=Ut,e.updateMetaProperty=Kt,e.createTemplateSpan=qt,e.updateTemplateSpan=Vt,e.createSemicolonClassElement=Wt,e.createBlock=Ht,e.updateBlock=Gt,e.createVariableStatement=$t,e.updateVariableStatement=Xt,e.createEmptyStatement=Yt,e.createStatement=Qt,e.updateStatement=Zt,e.createIf=en,e.updateIf=tn,e.createDo=nn,e.updateDo=rn,e.createWhile=an,e.updateWhile=on,e.createFor=sn,e.updateFor=cn,e.createForIn=un,e.updateForIn=ln,e.createForOf=dn,e.updateForOf=fn,e.createContinue=_n,e.updateContinue=pn,e.createBreak=mn,e.updateBreak=gn,e.createReturn=hn,e.updateReturn=yn,e.createWith=vn,e.updateWith=bn,e.createSwitch=xn,e.updateSwitch=kn,e.createLabel=Sn,e.updateLabel=Cn,e.createThrow=Dn,e.updateThrow=Tn,e.createTry=En,e.updateTry=wn,e.createDebuggerStatement=An,e.createVariableDeclaration=Nn,e.updateVariableDeclaration=Pn,e.createVariableDeclarationList=On,e.updateVariableDeclarationList=In,e.createFunctionDeclaration=Fn,e.updateFunctionDeclaration=Mn,e.createClassDeclaration=Rn,e.updateClassDeclaration=Ln,e.createInterfaceDeclaration=Bn,e.updateInterfaceDeclaration=jn,e.createTypeAliasDeclaration=zn,e.updateTypeAliasDeclaration=Jn,e.createEnumDeclaration=Un,e.updateEnumDeclaration=Kn,e.createModuleDeclaration=qn,e.updateModuleDeclaration=Vn,e.createModuleBlock=Wn,e.updateModuleBlock=Hn,e.createCaseBlock=Gn,e.updateCaseBlock=$n,e.createNamespaceExportDeclaration=Xn,e.updateNamespaceExportDeclaration=Yn;e.createImportEqualsDeclaration=Qn,e.updateImportEqualsDeclaration=Zn,e.createImportDeclaration=er,e.updateImportDeclaration=tr,e.createImportClause=nr,e.updateImportClause=rr,e.createNamespaceImport=ir,e.updateNamespaceImport=ar,e.createNamedImports=or,e.updateNamedImports=sr,e.createImportSpecifier=cr,e.updateImportSpecifier=ur,e.createExportAssignment=lr,e.updateExportAssignment=dr,e.createExportDeclaration=fr,e.updateExportDeclaration=_r,e.createNamedExports=pr,e.updateNamedExports=mr,e.createExportSpecifier=gr,e.updateExportSpecifier=hr,e.createExternalModuleReference=yr,e.updateExternalModuleReference=vr,e.createJsxElement=br,e.updateJsxElement=xr,e.createJsxSelfClosingElement=kr,e.updateJsxSelfClosingElement=Sr,e.createJsxOpeningElement=Cr,e.updateJsxOpeningElement=Dr,e.createJsxClosingElement=Tr,e.updateJsxClosingElement=Er,e.createJsxAttribute=wr,e.updateJsxAttribute=Ar,e.createJsxAttributes=Nr,e.updateJsxAttributes=Pr,e.createJsxSpreadAttribute=Or,e.updateJsxSpreadAttribute=Ir,e.createJsxExpression=Fr,e.updateJsxExpression=Mr,e.createCaseClause=Rr,e.updateCaseClause=Lr,e.createDefaultClause=Br,e.updateDefaultClause=jr,e.createHeritageClause=zr,e.updateHeritageClause=Jr,e.createCatchClause=Ur,e.updateCatchClause=Kr,e.createPropertyAssignment=qr,e.updatePropertyAssignment=Vr,e.createShorthandPropertyAssignment=Wr,e.updateShorthandPropertyAssignment=Hr,e.createSpreadAssignment=Gr,e.updateSpreadAssignment=$r,e.createEnumMember=Xr,e.updateEnumMember=Yr,e.updateSourceFileNode=Qr,e.getMutableClone=Zr,e.createNotEmittedStatement=ei,e.createEndOfDeclarationMarker=ti,e.createMergeDeclarationMarker=ni,e.createPartiallyEmittedExpression=ri,e.updatePartiallyEmittedExpression=ii,e.createCommaList=oi,e.updateCommaList=si,e.createBundle=ci,e.updateBundle=ui,e.createImmediatelyInvokedFunctionExpression=li,e.createImmediatelyInvokedArrowFunction=di,e.createComma=fi,e.createLessThan=_i,e.createAssignment=pi,e.createStrictEquality=mi,e.createStrictInequality=gi,e.createAdd=hi,e.createSubtract=yi,e.createPostfixIncrement=vi,e.createLogicalAnd=bi,e.createLogicalOr=xi,e.createLogicalNot=ki,e.createVoidZero=Si,e.createExportDefault=Ci,e.createExternalModuleExport=Di,e.disposeEmitNodes=Ni,e.getOrCreateEmitNode=Pi,e.setTextRange=Oi,e.setEmitFlags=Ii,e.addEmitFlags=Fi,e.getSourceMapRange=Mi,e.setSourceMapRange=Ri;var oa;e.createSourceMapSource=Li,e.getTokenSourceMapRange=Bi,e.setTokenSourceMapRange=ji,e.getCommentRange=zi,e.setCommentRange=Ji,e.getSyntheticLeadingComments=Ui,e.setSyntheticLeadingComments=Ki,e.addSyntheticLeadingComment=qi,e.getSyntheticTrailingComments=Vi,e.setSyntheticTrailingComments=Wi,e.addSyntheticTrailingComment=Hi,e.getConstantValue=Gi,e.setConstantValue=$i,e.addEmitHelper=Xi,e.addEmitHelpers=Yi,e.removeEmitHelper=Qi,e.getEmitHelpers=Zi,e.moveEmitHelpers=ea,e.compareEmitHelpers=ta,e.setOriginalNode=na}(o||(o={})),function(e){function t(t,n){return"undefined"===n?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(n))}function n(t,n,r){if(e.isComputedPropertyName(n))return e.setTextRange(e.createElementAccess(t,n.expression),r);var i=e.setTextRange(e.isIdentifier(n)?e.createPropertyAccess(t,n):e.createElementAccess(t,n),n);return e.getOrCreateEmitNode(i).flags|=64,i}function r(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[n].concat(r)),i)}function i(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[n,r]),i)}function a(t,n){var r=[];return void 0!==n&&r.push("number"==typeof n?e.createLiteral(n):n),e.createCall(e.createPropertyAccess(t,"slice"),void 0,r)}function o(t,n){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,n)}function s(t,n,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,n]),r)}function c(t,n){var r=e.createIdentifier(t||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(n),r}function u(t,n){if(e.isQualifiedName(t)){var r=u(t.left,n),i=e.createIdentifier(e.idText(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccess(r,i)}return c(e.idText(t),n)}function l(t,n,r){return t?u(t,r):e.createPropertyAccess(c(n,r),"createElement")}function d(t,n,r,i,a,o,s){var c=[r];if(i&&c.push(i),a&&a.length>0)if(i||c.push(e.createNull()),a.length>1)for(var u=0,d=a;u0;default:return!0}}function b(t,n,r,i){var a,o,s=_e(t,7);if(e.isSuperProperty(s))a=e.createThis(),o=s;else if(97===s.kind)a=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=ee(s);else switch(s.kind){case 179:v(s.expression,i)?(a=e.createTempVariable(n),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s);break;case 180:v(s.expression,i)?(a=e.createTempVariable(n),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s);break;default:a=e.createVoidZero(),o=ee(t)}return{target:o,thisArg:a}}function x(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)}function k(t){if(e.isQualifiedName(t)){var n=k(t.left),r=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(n,r),t)}return e.getMutableClone(t)}function S(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function C(e,t,n){switch(t.kind){case 153:case 154:return D(e.properties,t,n,e.multiLine);case 261:return T(t,n);case 262:return E(t,n);case 151:return w(t,n)}}function D(t,n,r,i){var a=e.getAllAccessorDeclarations(t,n),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(n===o){var u=[];if(s){var l=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(l,s),e.setOriginalNode(l,s);var d=e.createPropertyAssignment("get",l);u.push(d)}if(c){var f=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(f,c),e.setOriginalNode(f,c);var _=e.createPropertyAssignment("set",f);u.push(_)}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var p=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,S(n.name),e.createObjectLiteral(u,i)]),o);return e.aggregateTransformFlags(p)}}function T(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),t.initializer),t),t))}function E(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function w(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}function A(e,t,n){return R(e,t,n,49152)}function N(t){return 0!=(32768&e.getEmitFlags(t))}function P(e,t,n){return R(e,t,n,16384)}function O(t){return 0!=(16384&e.getEmitFlags(t))}function I(e,t,n){return R(e,t,n,8192)}function F(t){return 0!=(8192&e.getEmitFlags(t))}function M(e,t,n){return R(e,t,n)}function R(t,n,r,i){var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),r||(i|=48),n||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function L(t,n,r,i){return t&&e.hasModifier(n,1)?B(t,R(n),r,i):I(n,r,i)}function B(t,n,r,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n));e.setTextRange(a,n);var o;return i||(o|=48),r||(o|=1536),o&&e.setEmitFlags(a,o),a}function j(t,n){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],n),t)}function z(t){e.Debug.assert(!!t.body);var n=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(n,t),e.setTextRange(n,t),t.startsOnNewLine&&(n.startsOnNewLine=!0),e.aggregateTransformFlags(n),n}function J(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function U(e,t,n,r){return q(e,t,K(e,t,n),r)}function K(t,n,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=n.length;ae.getOperatorPrecedence(194,26)?t:e.setTextRange(e.createParen(t),t)}function ae(t){var n=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(n)){var r=n.expression,i=e.skipPartiallyEmittedExpressions(r).kind;if(186===i||187===i){var a=e.getMutableClone(n);return a.expression=e.setTextRange(e.createParen(r),r),ye(t,a,4)}}var o=le(n,!1).kind;return 178===o||186===o?e.setTextRange(e.createParen(t),t):t}function oe(t){switch(t.kind){case 166:case 167:case 160:case 161:return e.createParenthesizedType(t)}return t}function se(t){switch(t.kind){case 162:case 170:return e.createParenthesizedType(t)}return oe(t)}function ce(t){return e.createNodeArray(e.sameMap(t,oe))}function ue(t){if(e.some(t)){for(var n=[],r=0;r= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=_;var je={name:"typescript: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 };\n '};e.createReadHelper=p;var ze={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};e.createSpreadHelper=m,e.createForOfBindingStatement=g,e.insertLeadingStatement=h,e.restoreEnclosingLabel=y,e.createCallBinding=b,e.inlineExpressions=x,e.createExpressionFromEntityName=k,e.createExpressionForPropertyName=S,e.createExpressionForObjectLiteralElementLike=C,e.getInternalName=A,e.isInternalName=N,e.getLocalName=P,e.isLocalName=O,e.getExportName=I,e.isExportName=F,e.getDeclarationName=M,e.getExternalModuleOrNamespaceExportName=L,e.getNamespaceMemberName=B,e.convertToFunctionBody=j,e.convertFunctionDeclarationToExpression=z,e.addPrologue=U,e.addStandardPrologue=K,e.addCustomPrologue=q,e.startsWithUseStrict=V,e.ensureUseStrict=W,e.parenthesizeBinaryOperand=H,e.parenthesizeForConditionalHead=Y,e.parenthesizeSubexpressionOfConditionalExpression=Q,e.parenthesizeForNew=Z,e.parenthesizeForAccess=ee,e.parenthesizePostfixOperand=te,e.parenthesizePrefixOperand=ne,e.parenthesizeListElements=re,e.parenthesizeExpressionForList=ie,e.parenthesizeExpressionForExpressionStatement=ae,e.parenthesizeElementTypeMember=oe,e.parenthesizeArrayTypeMember=se,e.parenthesizeElementTypeMembers=ce,e.parenthesizeTypeParameters=ue,e.parenthesizeConciseBody=de;!function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=fe,e.skipOuterExpressions=_e,e.skipParentheses=pe,e.skipAssertions=me,e.recreateOuterExpressions=ye,e.startOnNewLine=ve,e.getExternalHelpersModuleName=be,e.getOrCreateExternalHelpersModuleNameIfNeeded=xe,e.getLocalNameForExternalImport=ke,e.getExternalModuleNameLiteral=Se,e.tryGetModuleNameFromFile=De,e.getInitializerOfBindingOrAssignmentElement=Ee,e.getTargetOfBindingOrAssignmentElement=we,e.getRestIndicatorOfBindingOrAssignmentElement=Ae,e.getPropertyNameOfBindingOrAssignmentElement=Ne,e.getElementsOfBindingOrAssignmentPattern=Pe,e.convertToArrayAssignmentElement=Oe,e.convertToObjectAssignmentElement=Ie,e.convertToAssignmentPattern=Fe,e.convertToObjectAssignmentPattern=Me,e.convertToArrayAssignmentPattern=Re,e.convertToAssignmentElementTarget=Le}(o||(o={}));var o;!function(e){function t(t,n,r,i){if(void 0===t||void 0===n)return t;e.aggregateTransformFlags(t);var a=n(t);if(a===t)return t;var o;if(void 0!==a)return o=e.isArray(a)?(i||s)(a):a,e.Debug.assertNode(o,r),e.aggregateTransformFlags(o),o}function n(t,n,r,i,a){if(void 0===t||void 0===n)return t;var o,s=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>s-i)&&(a=s-i),(i>0||a0&&d<=142||169===d)return o;switch(d){case 71:return e.updateIdentifier(o,u(o.typeArguments,s,e.isTypeNode));case 143:return e.updateQualifiedName(o,t(o.left,s,e.isEntityName),t(o.right,s,e.isIdentifier));case 144:return e.updateComputedPropertyName(o,t(o.expression,s,e.isExpression));case 145:return e.updateTypeParameterDeclaration(o,t(o.name,s,e.isIdentifier),t(o.constraint,s,e.isTypeNode),t(o.default,s,e.isTypeNode));case 146:return e.updateParameter(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.dotDotDotToken,l,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 147:return e.updateDecorator(o,t(o.expression,s,e.isExpression));case 148:return e.updatePropertySignature(o,u(o.modifiers,s,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 149:return e.updateProperty(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 150:return e.updateMethodSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken));case 151:return e.updateMethod(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 152:return e.updateConstructor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),i(o.parameters,s,c,u),a(o.body,s,c));case 153:return e.updateGetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 154:return e.updateSetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),a(o.body,s,c));case 155:return e.updateCallSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 156:return e.updateConstructSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 157:return e.updateIndexSignature(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 158:return e.updateTypePredicateNode(o,t(o.parameterName,s),t(o.type,s,e.isTypeNode));case 159:return e.updateTypeReferenceNode(o,t(o.typeName,s,e.isEntityName),u(o.typeArguments,s,e.isTypeNode));case 160:return e.updateFunctionTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 161:return e.updateConstructorTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 162:return e.updateTypeQueryNode(o,t(o.exprName,s,e.isEntityName));case 163:return e.updateTypeLiteralNode(o,u(o.members,s,e.isTypeElement));case 164:return e.updateArrayTypeNode(o,t(o.elementType,s,e.isTypeNode));case 165:return e.updateTypleTypeNode(o,u(o.elementTypes,s,e.isTypeNode));case 166:return e.updateUnionTypeNode(o,u(o.types,s,e.isTypeNode));case 167:return e.updateIntersectionTypeNode(o,u(o.types,s,e.isTypeNode));case 168:return e.updateParenthesizedType(o,t(o.type,s,e.isTypeNode));case 170:return e.updateTypeOperatorNode(o,t(o.type,s,e.isTypeNode));case 171:return e.updateIndexedAccessTypeNode(o,t(o.objectType,s,e.isTypeNode),t(o.indexType,s,e.isTypeNode));case 172:return e.updateMappedTypeNode(o,t(o.readonlyToken,l,e.isToken),t(o.typeParameter,s,e.isTypeParameterDeclaration),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode));case 173:return e.updateLiteralTypeNode(o,t(o.literal,s,e.isExpression));case 174:return e.updateObjectBindingPattern(o,u(o.elements,s,e.isBindingElement));case 175:return e.updateArrayBindingPattern(o,u(o.elements,s,e.isArrayBindingElement));case 176:return e.updateBindingElement(o,t(o.dotDotDotToken,l,e.isToken),t(o.propertyName,s,e.isPropertyName),t(o.name,s,e.isBindingName),t(o.initializer,s,e.isExpression));case 177:return e.updateArrayLiteral(o,u(o.elements,s,e.isExpression));case 178:return e.updateObjectLiteral(o,u(o.properties,s,e.isObjectLiteralElementLike));case 179:return e.updatePropertyAccess(o,t(o.expression,s,e.isExpression),t(o.name,s,e.isIdentifier));case 180:return e.updateElementAccess(o,t(o.expression,s,e.isExpression),t(o.argumentExpression,s,e.isExpression));case 181:return e.updateCall(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 182:return e.updateNew(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 183:return e.updateTaggedTemplate(o,t(o.tag,s,e.isExpression),t(o.template,s,e.isTemplateLiteral));case 184:return e.updateTypeAssertion(o,t(o.type,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 185:return e.updateParen(o,t(o.expression,s,e.isExpression));case 186:return e.updateFunctionExpression(o,u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 187:return e.updateArrowFunction(o,u(o.modifiers,s,e.isModifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),t(o.equalsGreaterThanToken,s,e.isToken),a(o.body,s,c));case 188:return e.updateDelete(o,t(o.expression,s,e.isExpression));case 189:return e.updateTypeOf(o,t(o.expression,s,e.isExpression));case 190:return e.updateVoid(o,t(o.expression,s,e.isExpression));case 191:return e.updateAwait(o,t(o.expression,s,e.isExpression));case 192:return e.updatePrefix(o,t(o.operand,s,e.isExpression));case 193:return e.updatePostfix(o,t(o.operand,s,e.isExpression));case 194:return e.updateBinary(o,t(o.left,s,e.isExpression),t(o.right,s,e.isExpression),t(o.operatorToken,s,e.isToken));case 195:return e.updateConditional(o,t(o.condition,s,e.isExpression),t(o.questionToken,s,e.isToken),t(o.whenTrue,s,e.isExpression),t(o.colonToken,s,e.isToken),t(o.whenFalse,s,e.isExpression));case 196:return e.updateTemplateExpression(o,t(o.head,s,e.isTemplateHead),u(o.templateSpans,s,e.isTemplateSpan));case 197:return e.updateYield(o,t(o.asteriskToken,l,e.isToken),t(o.expression,s,e.isExpression));case 198:return e.updateSpread(o,t(o.expression,s,e.isExpression));case 199:return e.updateClassExpression(o,u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 201:return e.updateExpressionWithTypeArguments(o,u(o.typeArguments,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 202:return e.updateAsExpression(o,t(o.expression,s,e.isExpression),t(o.type,s,e.isTypeNode));case 203:return e.updateNonNullExpression(o,t(o.expression,s,e.isExpression));case 204:return e.updateMetaProperty(o,t(o.name,s,e.isIdentifier));case 205:return e.updateTemplateSpan(o,t(o.expression,s,e.isExpression),t(o.literal,s,e.isTemplateMiddleOrTemplateTail));case 207:return e.updateBlock(o,u(o.statements,s,e.isStatement));case 208:return e.updateVariableStatement(o,u(o.modifiers,s,e.isModifier),t(o.declarationList,s,e.isVariableDeclarationList));case 210:return e.updateStatement(o,t(o.expression,s,e.isExpression));case 211:return e.updateIf(o,t(o.expression,s,e.isExpression),t(o.thenStatement,s,e.isStatement,e.liftToBlock),t(o.elseStatement,s,e.isStatement,e.liftToBlock));case 212:return e.updateDo(o,t(o.statement,s,e.isStatement,e.liftToBlock),t(o.expression,s,e.isExpression));case 213:return e.updateWhile(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 214:return e.updateFor(o,t(o.initializer,s,e.isForInitializer),t(o.condition,s,e.isExpression),t(o.incrementor,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 215:return e.updateForIn(o,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 216:return e.updateForOf(o,o.awaitModifier,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 217:return e.updateContinue(o,t(o.label,s,e.isIdentifier));case 218:return e.updateBreak(o,t(o.label,s,e.isIdentifier));case 219:return e.updateReturn(o,t(o.expression,s,e.isExpression));case 220:return e.updateWith(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 221:return e.updateSwitch(o,t(o.expression,s,e.isExpression),t(o.caseBlock,s,e.isCaseBlock));case 222:return e.updateLabel(o,t(o.label,s,e.isIdentifier),t(o.statement,s,e.isStatement,e.liftToBlock));case 223:return e.updateThrow(o,t(o.expression,s,e.isExpression));case 224:return e.updateTry(o,t(o.tryBlock,s,e.isBlock),t(o.catchClause,s,e.isCatchClause),t(o.finallyBlock,s,e.isBlock));case 226:return e.updateVariableDeclaration(o,t(o.name,s,e.isBindingName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 227:return e.updateVariableDeclarationList(o,u(o.declarations,s,e.isVariableDeclaration));case 228:return e.updateFunctionDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 229:return e.updateClassDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 230:return e.updateInterfaceDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isTypeElement));case 231:return e.updateTypeAliasDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),t(o.type,s,e.isTypeNode));case 232:return e.updateEnumDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.members,s,e.isEnumMember));case 233:return e.updateModuleDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.body,s,e.isModuleBody));case 234:return e.updateModuleBlock(o,u(o.statements,s,e.isStatement));case 235:return e.updateCaseBlock(o,u(o.clauses,s,e.isCaseOrDefaultClause));case 236:return e.updateNamespaceExportDeclaration(o,t(o.name,s,e.isIdentifier));case 237:return e.updateImportEqualsDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.moduleReference,s,e.isModuleReference));case 238:return e.updateImportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.importClause,s,e.isImportClause),t(o.moduleSpecifier,s,e.isExpression));case 239:return e.updateImportClause(o,t(o.name,s,e.isIdentifier),t(o.namedBindings,s,e.isNamedImportBindings));case 240:return e.updateNamespaceImport(o,t(o.name,s,e.isIdentifier));case 241:return e.updateNamedImports(o,u(o.elements,s,e.isImportSpecifier));case 242:return e.updateImportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 243:return e.updateExportAssignment(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.expression,s,e.isExpression));case 244:return e.updateExportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.exportClause,s,e.isNamedExports),t(o.moduleSpecifier,s,e.isExpression));case 245:return e.updateNamedExports(o,u(o.elements,s,e.isExportSpecifier));case 246:return e.updateExportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 248:return e.updateExternalModuleReference(o,t(o.expression,s,e.isExpression));case 249:return e.updateJsxElement(o,t(o.openingElement,s,e.isJsxOpeningElement),u(o.children,s,e.isJsxChild),t(o.closingElement,s,e.isJsxClosingElement));case 250:return e.updateJsxSelfClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 251:return e.updateJsxOpeningElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 252:return e.updateJsxClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression));case 253:return e.updateJsxAttribute(o,t(o.name,s,e.isIdentifier),t(o.initializer,s,e.isStringLiteralOrJsxExpression));case 254:return e.updateJsxAttributes(o,u(o.properties,s,e.isJsxAttributeLike));case 255:return e.updateJsxSpreadAttribute(o,t(o.expression,s,e.isExpression));case 256:return e.updateJsxExpression(o,t(o.expression,s,e.isExpression));case 257:return e.updateCaseClause(o,t(o.expression,s,e.isExpression),u(o.statements,s,e.isStatement));case 258:return e.updateDefaultClause(o,u(o.statements,s,e.isStatement));case 259:return e.updateHeritageClause(o,u(o.types,s,e.isExpressionWithTypeArguments));case 260:return e.updateCatchClause(o,t(o.variableDeclaration,s,e.isVariableDeclaration),t(o.block,s,e.isBlock));case 261:return e.updatePropertyAssignment(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 262:return e.updateShorthandPropertyAssignment(o,t(o.name,s,e.isIdentifier),t(o.objectAssignmentInitializer,s,e.isExpression));case 263:return e.updateSpreadAssignment(o,t(o.expression,s,e.isExpression));case 264:return e.updateEnumMember(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 265:return e.updateSourceFileNode(o,r(o.statements,s,c));case 288:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));case 289:return e.updateCommaList(o,u(o.elements,s,e.isExpression));default:return o}}}function s(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=n,e.visitLexicalEnvironment=r,e.visitParameterList=i,e.visitFunctionBody=a,e.visitEachChild=o}(o||(o={})),function(e){function t(e,t,n){return e?t(n,e):n}function n(e,t,n){return e?t(n,e):n}function r(r,i,a,o){if(void 0===r)return i;var s=o?n:e.reduceLeft,c=o||a,u=r.kind;if(u>0&&u<=142)return i;if(u>=158&&u<=173)return i;var l=i;switch(r.kind){case 206:case 209:case 200:case 225:case 287:break;case 143:l=t(r.left,a,l),l=t(r.right,a,l);break;case 144:l=t(r.expression,a,l);break;case 146:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 147:l=t(r.expression,a,l);break;case 148:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.questionToken,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 149:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 151:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 152:l=s(r.modifiers,c,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 153:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 154:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 174:case 175:l=s(r.elements,c,l);break;case 176:l=t(r.propertyName,a,l),l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 177:l=s(r.elements,c,l);break;case 178:l=s(r.properties,c,l);break;case 179:l=t(r.expression,a,l),l=t(r.name,a,l);break;case 180:l=t(r.expression,a,l),l=t(r.argumentExpression,a,l);break;case 181:case 182:l=t(r.expression,a,l),l=s(r.typeArguments,c,l),l=s(r.arguments,c,l);break;case 183:l=t(r.tag,a,l),l=t(r.template,a,l);break;case 184:l=t(r.type,a,l),l=t(r.expression,a,l);break;case 186:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 187:l=s(r.modifiers,c,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 185:case 188:case 189:case 190:case 191:case 197:case 198:case 203:l=t(r.expression,a,l);break;case 192:case 193:l=t(r.operand,a,l);break;case 194:l=t(r.left,a,l),l=t(r.right,a,l);break;case 195:l=t(r.condition,a,l),l=t(r.whenTrue,a,l),l=t(r.whenFalse,a,l);break;case 196:l=t(r.head,a,l),l=s(r.templateSpans,c,l);break;case 199:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 201:l=t(r.expression,a,l),l=s(r.typeArguments,c,l);break;case 202:l=t(r.expression,a,l),l=t(r.type,a,l);break;case 205:l=t(r.expression,a,l),l=t(r.literal,a,l);break;case 207:l=s(r.statements,c,l);break;case 208:l=s(r.modifiers,c,l),l=t(r.declarationList,a,l);break;case 210:l=t(r.expression,a,l);break;case 211:l=t(r.expression,a,l),l=t(r.thenStatement,a,l),l=t(r.elseStatement,a,l);break;case 212:l=t(r.statement,a,l),l=t(r.expression,a,l);break;case 213:case 220:l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 214:l=t(r.initializer,a,l),l=t(r.condition,a,l),l=t(r.incrementor,a,l),l=t(r.statement,a,l);break;case 215:case 216:l=t(r.initializer,a,l),l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 219:case 223:l=t(r.expression,a,l);break;case 221:l=t(r.expression,a,l),l=t(r.caseBlock,a,l);break;case 222:l=t(r.label,a,l),l=t(r.statement,a,l);break;case 224:l=t(r.tryBlock,a,l),l=t(r.catchClause,a,l),l=t(r.finallyBlock,a,l);break;case 226:l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 227:l=s(r.declarations,c,l);break;case 228:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 229:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 232:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.members,c,l);break;case 233:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.body,a,l);break;case 234:l=s(r.statements,c,l);break;case 235:l=s(r.clauses,c,l);break;case 237:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.moduleReference,a,l);break;case 238:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.importClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 239:l=t(r.name,a,l),l=t(r.namedBindings,a,l);break;case 240:l=t(r.name,a,l);break;case 241:case 245:l=s(r.elements,c,l);break;case 242:case 246:l=t(r.propertyName,a,l),l=t(r.name,a,l);break;case 243:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.expression,a,l);break;case 244:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.exportClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 248:l=t(r.expression,a,l);break;case 249:l=t(r.openingElement,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingElement,a,l);break;case 250:case 251:l=t(r.tagName,a,l),l=t(r.attributes,a,l);break;case 254:l=s(r.properties,c,l);break;case 252:l=t(r.tagName,a,l);break;case 253:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 255:case 256:l=t(r.expression,a,l);break;case 257:l=t(r.expression,a,l);case 258:l=s(r.statements,c,l);break;case 259:l=s(r.types,c,l);break;case 260:l=t(r.variableDeclaration,a,l),l=t(r.block,a,l);break;case 261:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 262:l=t(r.name,a,l),l=t(r.objectAssignmentInitializer,a,l);break;case 263:l=t(r.expression,a,l);break;case 264:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 265:l=s(r.statements,c,l);break;case 288:l=t(r.expression,a,l);break;case 289:l=s(r.elements,c,l)}return l}function i(t,n){return e.some(n)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,n)),t):e.addRange(t,n):t}function a(t){return f.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)}function o(e){return s(e),e}function s(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var n=u(t);return e.computeTransformFlagsForNode(t,n)}function c(e){if(void 0===e)return 0;for(var t=0,n=0,r=0,i=e;r=1)||1572864&p.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(p).transformFlags||e.isComputedPropertyName(h)){d&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),a,o,i),d=void 0);var g=s(t,a,h);e.isComputedPropertyName(h)&&(f=e.append(f,g.argumentExpression)),r(t,p,g,p)}else d=e.append(d,p)}}d&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),a,o,i)}function a(t,n,i,a,o){var s=e.getElementsOfBindingOrAssignmentPattern(i),u=s.length;if(t.level<1&&t.downlevelIteration)a=c(t,e.createReadHelper(t.context,a,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[u-1])?void 0:u,o),!1,o);else if(1!==u&&(t.level<1||0===u)||e.every(s,e.isOmittedExpression)){var l=!e.isDeclarationBindingElement(n)||0!==u;a=c(t,a,l,o)}for(var d,f,_=0;_=1)if(1048576&p.transformFlags){var m=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),f=e.append(f,[m,p]),d=e.append(d,t.createArrayBindingOrAssignmentElement(m))}else d=e.append(d,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p)){if(_===u-1){var g=e.createArraySlice(a,_);r(t,p,g,p)}}else{var g=e.createElementAccess(a,_);r(t,p,g,p)}}}if(d&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(d),a,o,i),f)for(var h=0,y=f;h=e.ModuleKind.ES2015);return e.updateSourceFileNode(n,e.visitLexicalEnvironment(n.statements,d,t,0,r))}function x(t){if(t.decorators&&t.decorators.length>0)return!0;var n=e.getFirstConstructorWithBody(t);return!!n&&e.forEach(n.parameters,k)}function k(e){return void 0!==e.decorators&&e.decorators.length>0}function S(t,n){var r=0;e.some(n)&&(r|=1);var i=e.getClassExtendsHeritageClauseElement(t);return i&&95!==e.skipOuterExpressions(i.expression).kind&&(r|=64),x(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),mt(t)?r|=8:yt(t)?r|=32:ht(t)&&(r|=16),Qt<=1&&7&r&&(r|=128),r}function C(n){var r=R(n,!0),i=S(n,r);128&i&&t.startLexicalEnvironment();var a=n.name||(5&i?e.getGeneratedNameForNode(n):void 0),o=2&i?T(n,a,i):D(n,a,i),s=[o];if(1&i&&z(s,r,128&i?e.getInternalName(n):e.getLocalName(n)),ee(s,n,!1),ee(s,n,!0),re(s,n),128&i){var c=e.createTokenRange(e.skipTrivia(nn.text,n.members.end),18),u=e.getInternalName(n),l=e.createPartiallyEmittedExpression(u);l.end=c.end,e.setEmitFlags(l,1536);var d=e.createReturn(l);d.pos=c.pos,e.setEmitFlags(d,1920),s.push(d),e.addRange(s,t.endLexicalEnvironment());var f=e.createImmediatelyInvokedArrowFunction(s);e.setEmitFlags(f,33554432);var _=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,f)]));e.setOriginalNode(_,n),e.setCommentRange(_,n),e.setSourceMapRange(_,e.moveRangePastDecorators(n)),e.startOnNewLine(_),s=[_]}return 8&i?bt(s,n):(128&i||2&i)&&(32&i?s.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&i&&s.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(o,4194304|e.getEmitFlags(o))),e.singleOrMany(s)}function D(t,n,r){var i=128&r?void 0:e.visitNodes(t.modifiers,y,e.isModifier),a=e.createClassDeclaration(void 0,i,n,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),w(t,0!=(64&r))),o=e.getEmitFlags(t);return 1&r&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}function T(t,n,r){var i=e.moveRangePastDecorators(t),a=Tt(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),c=w(t,0!=(64&r)),l=e.createClassExpression(void 0,n,void 0,s,c);e.setOriginalNode(l,t),e.setTextRange(l,i);var d=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,l):l)],1));return e.setOriginalNode(d,t),e.setTextRange(d,i),e.setCommentRange(d,t),d}function E(t){var n=R(t,!0),r=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),i=w(t,e.some(r,function(e){return 85===e.token})),a=e.createClassExpression(void 0,t.name,void 0,r,i);if(e.setOriginalNode(a,t),e.setTextRange(a,t),n.length>0){var o=[],s=e.createTempVariable(Gt);return 8388608&$t.getNodeCheckFlags(t)&&(Nt(),un[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(a,65536|e.getEmitFlags(a)),o.push(e.startOnNewLine(e.createAssignment(s,a))),e.addRange(o,J(n,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return a}function w(t,n){var r=[],i=A(t,n);return i&&r.push(i),e.addRange(r,e.visitNodes(t.members,g,e.isClassElement)),e.setTextRange(e.createNodeArray(r),t.members)}function A(n,r){var i=e.forEach(n.members,B),a=262144&n.transformFlags,o=e.getFirstConstructorWithBody(n);if(!i&&!a)return e.visitEachChild(o,u,t);var s=N(o),c=P(n,o,r);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||n),o))}function N(n){return e.visitParameterList(n&&n.parameters,u,t)||[]}function P(t,n,r){var i=[],a=0;if(Wt(),n){a=O(n,i);var o=I(n);e.addRange(i,e.map(o,M))}else r&&i.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));return z(i,R(t,!1),e.createThis()),n&&e.addRange(i,e.visitNodes(n.body.statements,u,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,Ht()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),n?n.body.statements:t.members),!0),n?n.body:void 0)}function O(t,n){if(t.body){var r=t.body.statements,i=e.addPrologue(n,r,!1,u);if(i===r.length)return i;var a=r[i];return 210===a.kind&&e.isSuperCall(a.expression)?(n.push(e.visitNode(a,u,e.isStatement)),i+1):i}return 0}function I(t){return e.filter(t.parameters,F)}function F(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function M(t){e.Debug.assert(e.isIdentifier(t.name));var n=t.name,r=e.getMutableClone(n);e.setEmitFlags(r,1584);var i=e.getMutableClone(n);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),t.name),i)),e.moveRangePos(t,-1)))}function R(t,n){return e.filter(t.members,n?L:B)}function L(e){return j(e,!0)}function B(e){return j(e,!1)}function j(t,n){return 149===t.kind&&n===e.hasModifier(t,32)&&void 0!==t.initializer}function z(t,n,r){for(var i=0,a=n;i0?149===i.kind?e.createVoidZero():e.createNull():void 0,l=n(t,o,s,c,u,e.moveRangePastDecorators(i));return e.setEmitFlags(l,1536),l}}function re(t,n){var r=ie(n);r&&t.push(e.setOriginalNode(e.createStatement(r),n))}function ie(r){var i=G(r),a=Z(r,r,i);if(a){var o=un&&un[e.getOriginalNodeId(r)],s=e.getLocalName(r,!1,!0),c=n(t,a,s),u=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastDecorators(r)),u}}function ae(t){return e.visitNode(t.expression,u,e.isExpression)}function oe(n,r){var a;if(n){a=[];for(var o=0,s=n;o= 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 };'},u={name:"typescript: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 };'},l={name:"typescript: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 };"}}(o||(o={}));var o;!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,i,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function i(n){if(0==(16&n.transformFlags))return n;switch(n.kind){case 120:return;case 191:return a(n);case 151:return o(n);case 228:return s(n);case 186:return c(n);case 187:return u(n);default:return e.visitEachChild(n,i,t)}}function a(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,i,e.isExpression)),t),t)}function o(n){return e.updateMethod(n,void 0,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function s(n){return e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function c(n){return e.updateFunctionExpression(n,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function u(n){return e.updateArrowFunction(n,e.visitNodes(n.modifiers,i,e.isModifier),void 0,e.visitParameterList(n.parameters,i,t),void 0,n.equalsGreaterThanToken,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function l(r){C();var a=e.getOriginalNode(r,e.isFunctionLike),o=a.type,s=w<2?f(o):void 0,c=187===r.kind,u=0!=(8192&T.getNodeCheckFlags(r));if(c){var l=n(t,u,s,d(r.body)),p=D();if(e.some(p)){var m=e.convertToFunctionBody(l);return e.updateBlock(m,e.setTextRange(e.createNodeArray(e.concatenate(m.statements,p)),m.statements))}return l}var g=[],h=e.addPrologue(g,r.body.statements,!1,i);g.push(e.createReturn(n(t,u,s,d(r.body,h)))),e.addRange(g,D());var m=e.createBlock(g,!0);return e.setTextRange(m,r.body),w>=2&&(4096&T.getNodeCheckFlags(r)?(_(),e.addEmitHelper(m,e.advancedAsyncSuperHelper)):2048&T.getNodeCheckFlags(r)&&(_(),e.addEmitHelper(m,e.asyncSuperHelper))),m}function d(n,r){if(e.isBlock(n))return e.updateBlock(n,e.visitLexicalEnvironment(n.statements,i,t,r));S();var a=e.convertToFunctionBody(e.visitNode(n,i,e.isConciseBody)),o=D();return e.updateBlock(a,e.setTextRange(e.createNodeArray(e.concatenate(a.statements,o)),a.statements))}function f(t){var n=t&&e.getEntityNameFromTypeNode(t);if(n&&e.isEntityName(n)){var r=T.getTypeReferenceSerializationKind(n);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return n}}function _(){0==(1&k)&&(k|=1,t.enableSubstitution(181),t.enableSubstitution(179),t.enableSubstitution(180),t.enableEmitNotification(229),t.enableEmitNotification(151),t.enableEmitNotification(153),t.enableEmitNotification(154),t.enableEmitNotification(152))}function p(e,t,n){if(1&k&&b(t)){var r=6144&T.getNodeCheckFlags(t);if(r!==A){var i=A;return A=r,N(e,t,n),void(A=i)}}N(e,t,n)}function m(e,t){return t=P(e,t),1===e&&A?g(t):t}function g(e){switch(e.kind){case 179:return h(e);case 180:return y(e);case 181:return v(e)}return e}function h(t){return 97===t.expression.kind?x(e.createLiteral(e.idText(t.name)),t):t}function y(e){return 97===e.expression.kind?x(e.argumentExpression,e):e}function v(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?h(n):y(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function b(e){var t=e.kind;return 229===t||152===t||151===t||153===t||154===t}function x(t,n){return 4096&A?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),n):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),n)}var k,S=t.startLexicalEnvironment,C=t.resumeLexicalEnvironment,D=t.endLexicalEnvironment,T=t.getEmitResolver(),E=t.getCompilerOptions(),w=e.getEmitScriptTarget(E),A=0,N=t.onEmitNode,P=t.onSubstituteNode;return t.onEmitNode=p,t.onSubstituteNode=m,r}function n(t,n,r,a){t.requestEmitHelper(i);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),r?e.createExpressionFromEntityName(r):e.createVoidZero(),o])}var r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(r||(r={})),e.transformES2017=t;var i={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\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) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n const _super = name => super[name];\n "},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:"\n const _super = (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 "}}(o||(o={}));var o;!function(e){function t(t){function s(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,c,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function c(e){return d(e,!1)}function u(e){return d(e,!0)}function l(e){if(120!==e.kind)return e}function d(n,r){if(0==(8&n.transformFlags))return n;switch(n.kind){case 191:return f(n);case 197:return _(n);case 222:return p(n);case 178:return g(n);case 194:return b(n,r);case 226:return x(n);case 216:return C(n,void 0);case 214:return k(n);case 190:return S(n);case 152:return N(n);case 151:return I(n);case 153:return P(n);case 154:return O(n);case 228:return F(n);case 186:return R(n);case 187:return M(n);case 146:return A(n);case 210:return h(n);case 185:return y(n,r);case 260:return v(n);default:return e.visitEachChild(n,c,t)}}function f(n){return 2&ie&&1&ie?e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.visitNode(n.expression,c,e.isExpression))),n),n):e.visitEachChild(n,c,t)}function _(n){if(2&ie&&1&ie&&n.asteriskToken){var i=e.visitNode(n.expression,c,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.updateYield(n,n.asteriskToken,a(t,o(t,i,i),i)))),n),n)}return e.visitEachChild(n,c,t)}function p(n){if(2&ie&&1&ie){var r=e.unwrapInnermostStatementOfLabel(n);return 216===r.kind&&r.awaitModifier?C(r,n):e.restoreEnclosingLabel(e.visitEachChild(n,c,t),n)}return e.visitEachChild(n,c,t)}function m(t){for(var n,r=[],i=0,a=t;i=2&&(4096&Q.getNodeCheckFlags(n)?(z(),e.addEmitHelper(o,e.advancedAsyncSuperHelper)):2048&Q.getNodeCheckFlags(n)&&(z(),e.addEmitHelper(o,e.asyncSuperHelper))),o}function B(t){$();var n=0,r=[],i=e.visitNode(t.body,c,e.isConciseBody);e.isBlock(i)&&(n=e.addPrologue(r,i.statements,!1,c)),e.addRange(r,j(void 0,t));var a=X();if(n>0||e.some(r)||e.some(a)){var o=e.convertToFunctionBody(i,!0);return e.addRange(r,o.statements.slice(n)),e.addRange(r,a),e.updateBlock(o,e.setTextRange(e.createNodeArray(r),o.statements))}return i}function j(n,r){for(var i=0,a=r.parameters;i=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(c),e.createCall(e.getHelperName("__assign"),void 0,n))}function r(t,n){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__await"),void 0,[n])}function i(t,n){return t.requestEmitHelper(u),t.requestEmitHelper(l),(n.emitNode||(n.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),n])}function a(t,n,r){return t.requestEmitHelper(u),t.requestEmitHelper(d),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[n]),r)}function o(t,n,r){return t.requestEmitHelper(f),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[n]),r)}var s;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(s||(s={})),e.transformESNext=t;var c={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__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 };"};e.createAssignHelper=n;var u={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\n "},l={name:"typescript:asyncGenerator",scoped:!1,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 };\n '},d={name:"typescript:asyncDelegator",scoped:!1,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) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n };\n '},f={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncIterator) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator];\n return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n };\n '}}(o||(o={}));var o;!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,i,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function i(e){return 4&e.transformFlags?a(e):e}function a(n){switch(n.kind){case 249:return s(n,!1);case 250:return c(n,!1);case 256:return b(n);default:return e.visitEachChild(n,i,t)}}function o(t){switch(t.kind){case 10:return _(t);case 256:return b(t);case 249:return s(t,!0);case 250:return c(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function s(e,t){return u(e.openingElement,e.children,t,e)}function c(e,t){return u(e,void 0,t,e)}function u(n,r,i,a){var s,c=y(n),u=n.attributes.properties;if(0===u.length)s=e.createNull();else{var f=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,n){return n?e.map(t,l):e.createObjectLiteral(e.map(t,d))}));e.isJsxSpreadAttribute(u[0])&&f.unshift(e.createObjectLiteral()),s=e.singleOrUndefined(f),s||(s=e.createAssignHelper(t,f))}var _=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(),x.reactNamespace,c,s,e.mapDefined(r,o),n,a);return i&&e.startOnNewLine(_),_}function l(t){return e.visitNode(t.expression,i,e.isExpression)}function d(t){var n=v(t),r=f(t.initializer);return e.createPropertyAssignment(n,r)}function f(t){if(void 0===t)return e.createTrue();if(9===t.kind){var n=h(t.text);return n?e.setTextRange(e.createLiteral(n),t):t}if(256===t.kind)return void 0===t.expression?e.createTrue():b(t);e.Debug.failBadSyntaxKind(t)}function _(t){var n=p(e.getTextOfNode(t,!0));return void 0===n?void 0:e.createLiteral(n)}function p(t){for(var n,r=0,i=-1,a=0;a=0,"statementOffset not initialized correctly!"));var s=r&&95!==e.skipOuterExpressions(r.expression).kind,c=P(a,t,s,i,o);1!==c&&2!==c||o++,t&&(1===c&&(Ft|=4096),e.addRange(a,e.visitNodes(t.body.statements,l,e.isStatement,o))),!s||2===c||t&&N(t.body)||a.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(a,Tt()),t&&K(a,t,!1);var u=e.createBlock(e.setTextRange(e.createNodeArray(a),t?t.body.statements:n.members),!0);return e.setTextRange(u,t?t.body:n),t||e.setEmitFlags(u,1536),u}function N(t){if(219===t.kind)return!0;if(211===t.kind){var n=t;if(n.elseStatement)return N(n.thenStatement)&&N(n.elseStatement)}else if(207===t.kind){var r=e.lastOrUndefined(t.statements);if(r&&N(r))return!0}return!1}function P(t,n,r,i,a){if(!r)return n&&J(t,n),0;if(!n)return t.push(e.createReturn(I())),2;if(i)return U(t,n,I()),pt(),1;var o,s,c=n.body.statements;if(a0?n.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,l,t,0,o))),1048576)):a&&n.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,l,e.isExpression))),1048576))}function B(t,n,r,i){i=e.visitNode(i,l,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(i,48|e.getEmitFlags(i))),n))]),n),417));a.startsOnNewLine=!0,e.setTextRange(a,n),e.setEmitFlags(a,1048992),t.push(a)}function j(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function z(t,n,r){var i=e.lastOrUndefined(n.parameters);if(j(i,r)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=n.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createArrayLiteral([]))])),i),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),i))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u)}}function J(t,n){32768&n.transformFlags&&187!==n.kind&&U(t,n,e.createThis())}function U(t,n,r,i){pt();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,r)]));e.setEmitFlags(a,1050112),e.setTextRange(a,i),e.setSourceMapRange(a,n),t.push(a)}function K(t,n,r){if(16384&Ft){var i=void 0;switch(n.kind){case 187:return t;case 151:case 153:case 154:i=e.createVoidZero();break;case 152:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 228:case 186:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(n))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(n)}var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,i)]));if(r)return[a].concat(t);t.unshift(a)}return t}function q(t,n){for(var r=0,i=n.members;r0&&(o=!0),e.isBlock(u))a=e.addCustomPrologue(c,u.statements,a,l),r=u.statements,e.addRange(c,e.visitNodes(u.statements,l,e.isStatement,a)),!o&&u.multiLine&&(o=!0);else{e.Debug.assert(187===n.kind),r=e.moveRangeEnd(u,-1);var d=n.equalsGreaterThanToken;e.nodeIsSynthesized(d)||e.nodeIsSynthesized(u)||(e.rangeEndIsOnSameLineAsRangeStart(d,u,Ot)?s=!0:o=!0);var f=e.visitNode(u,l,e.isExpression),_=e.createReturn(f);e.setTextRange(_,u),e.setEmitFlags(_,1440),c.push(_),i=u}var p=t.endLexicalEnvironment();e.addRange(c,p),K(c,n,!1),!o&&p&&p.length&&(o=!0);var m=e.createBlock(e.setTextRange(e.createNodeArray(c),r),o);return e.setTextRange(m,n.body),!o&&s&&e.setEmitFlags(m,1),i&&e.setTokenSourceMapRange(m,18,i),e.setOriginalNode(m,n.body),m}function ee(n){var r=e.visitFunctionBody(n.body,d,t);return e.updateBlock(r,e.setTextRange(e.createNodeArray(K(r.statements,n,!0)),r.statements))}function te(n,r){if(r)return e.visitEachChild(n,l,t);var i=256&Ft?o(4032,512):o(3904,128),a=e.visitEachChild(n,l,t);return s(i,0,0),a}function ne(n){switch(n.expression.kind){case 185:return e.updateStatement(n,re(n.expression,!1));case 194:return e.updateStatement(n,ie(n.expression,!1))}return e.visitEachChild(n,l,t)}function re(n,r){if(!r)switch(n.expression.kind){case 185:return e.updateParen(n,re(n.expression,!1));case 194:return e.updateParen(n,ie(n.expression,!1))}return e.visitEachChild(n,l,t)}function ie(n,r){return e.isDestructuringAssignment(n)?e.flattenDestructuringAssignment(n,l,t,0,r):e.visitEachChild(n,l,t)}function ae(n){var r,i=o(0,e.hasModifier(n,1)?32:0);if(Rt&&0==(3&n.declarationList.flags)){for(var a=void 0,c=0,u=n.declarationList.declarations;c=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);r;){if(r===i||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return!0;r=r.parent}return!1}function xt(t){return 1&Lt&&16&Ft?e.setTextRange(e.createIdentifier("_this"),t):t}function kt(t,n){return e.hasModifier(n,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function St(t,n){if(!t||!n)return!1;if(e.some(t.parameters))return!1;var r=e.firstOrUndefined(t.body.statements);if(!r||!e.nodeIsSynthesized(r)||210!==r.kind)return!1;var i=r.expression;if(!e.nodeIsSynthesized(i)||181!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||97!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||198!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}var Ct=t.startLexicalEnvironment,Dt=t.resumeLexicalEnvironment,Tt=t.endLexicalEnvironment,Et=t.hoistVariableDeclaration,wt=t.getCompilerOptions(),At=t.getEmitResolver(),Nt=t.onSubstituteNode,Pt=t.onEmitNode;t.onEmitNode=ft,t.onSubstituteNode=mt;var Ot,It,Ft,Mt,Rt,Lt;return a}function n(t,n){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__extends"),void 0,[n,e.createIdentifier("_super")])}function r(t,n,r){return t.requestEmitHelper(l),e.createCall(e.getHelperName("__makeTemplateObject"),void 0,[n,r])}var i;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(i||(i={}));var a;!function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(a||(a={}));var o;!function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(o||(o={}));var s;!function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn"}(s||(s={}));var c;!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.ForStatement=1024]="ForStatement",e[e.ForInOrForOfStatement=2048]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",e[e.ComputedPropertyName=8192]="ComputedPropertyName",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=4032]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=3968]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=1280]="ForStatementIncludes",e[e.ForStatementExcludes=3008]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=3904]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",e[e.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",e[e.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",e[e.NewTarget=16384]="NewTarget",e[e.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.PropagateNewTargetMask=49152]="PropagateNewTargetMask"}(c||(c={})),e.transformES2015=t;var u={name:"typescript:extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"},l={name:"typescript: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 };'}}(o||(o={}));var o;!function(e){function t(t){function n(e){return e}function r(t,n,r){switch(n.kind){case 251:case 252:case 250:var i=n.tagName;u[e.getOriginalNodeId(i)]=!0}c(t,n,r)}function i(t,n){return n.id&&u&&u[n.id]?d(t,n):(n=d(t,n),e.isPropertyAccessExpression(n)?a(n):e.isPropertyAssignment(n)?o(n):n)}function a(t){var n=s(t.name);return n?e.setTextRange(e.createElementAccess(t.expression,n),t):t}function o(t){var n=e.isIdentifier(t.name)&&s(t.name);return n?e.updatePropertyAssignment(t,n,t.initializer):t}function s(t){var n=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(n>=72&&n<=107)return e.setTextRange(e.createLiteral(t),t)}var c,u,l=t.getCompilerOptions();1!==l.jsx&&3!==l.jsx||(c=t.onEmitNode,t.onEmitNode=r,t.enableEmitNotification(251),t.enableEmitNotification(252),t.enableEmitNotification(250),u=[]);var d=t.onSubstituteNode;return t.onSubstituteNode=i,t.enableSubstitution(179),t.enableSubstitution(261),n}e.transformES5=t}(o||(o={}));var o;!function(e){function t(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}function n(n){function i(t){if(t.isDeclarationFile||0==(512&t.transformFlags))return t;var r=e.visitEachChild(t,a,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}function a(t){var r=t.transformFlags;return Ft?o(t):It?s(t):256&r?u(t):512&r?e.visitEachChild(t,a,n):t}function o(e){switch(e.kind){case 212:return z(e);case 213:return U(e);case 221:return te(e);case 222:return re(e);default:return s(e)}}function s(t){switch(t.kind){case 228:return l(t);case 186:return d(t);case 153:case 154:return f(t);case 208:return p(t);case 214:return q(t);case 215:return W(t);case 218:return X(t);case 217:return G(t);case 219:return Q(t);default:return 16777216&t.transformFlags?c(t):33554944&t.transformFlags?e.visitEachChild(t,a,n):t}}function c(t){switch(t.kind){case 194:return m(t);case 195:return k(t);case 197:return S(t);case 177:return C(t);case 178:return T(t);case 180:return E(t);case 181:return w(t);case 182:return A(t);default:return e.visitEachChild(t,a,n)}}function u(t){switch(t.kind){case 228:return l(t);case 186:return d(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,a,n)}}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,n),void 0,_(t.body)),t),t);else{var r=It,i=Ft;It=!1,Ft=!1,t=e.visitEachChild(t,a,n),It=r,Ft=i}return It?void Dt(t):t}function d(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,n),void 0,_(t.body)),t),t);else{var r=It,i=Ft;It=!1,Ft=!1,t=e.visitEachChild(t,a,n),It=r,Ft=i}return t}function f(t){var r=It,i=Ft;return It=!1,Ft=!1,t=e.visitEachChild(t,a,n),It=r,Ft=i,t}function _(t){var n=[],r=It,i=Ft,o=Mt,s=Rt,c=Lt,u=Bt,l=jt,d=zt,f=Zt,_=Jt,p=Ut,m=Kt,g=qt;It=!0,Ft=!1,Mt=void 0,Rt=void 0,Lt=void 0,Bt=void 0,jt=void 0,zt=void 0,Zt=1,Jt=void 0,Ut=void 0,Kt=void 0,qt=e.createTempVariable(void 0),St();var h=e.addPrologue(n,t.statements,!1,a);N(t.statements,h);var y=rt();return e.addRange(n,Ct()),n.push(e.createReturn(y)),It=r,Ft=i,Mt=o,Rt=s,Lt=c,Bt=u,jt=l,zt=d,Zt=f,Jt=_,Ut=p,Kt=m,qt=g,e.setTextRange(e.createBlock(n,t.multiLine),t)}function p(t){if(16777216&t.transformFlags)return void R(t.declarationList);if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n=59&&e<=70}function h(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}function y(t){var r=t.left,i=t.right;if(oe(i)){var o=void 0;switch(r.kind){case 179:o=e.updatePropertyAccess(r,de(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),r.name);break;case 180:o=e.updateElementAccess(r,de(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),de(e.visitNode(r.argumentExpression,a,e.isExpression)));break;default:o=e.visitNode(r,a,e.isExpression)}var s=t.operatorToken.kind;return g(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(de(o),h(s),e.visitNode(i,a,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(i,a,e.isExpression))}return e.visitEachChild(t,a,n)}function v(t){if(oe(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return b(t);if(26===t.operatorToken.kind)return x(t);var r=e.getMutableClone(t);return r.left=de(e.visitNode(t.left,a,e.isExpression)),r.right=e.visitNode(t.right,a,e.isExpression),r}return e.visitEachChild(t,a,n)}function b(t){var n=_e(),r=fe();return He(r,e.visitNode(t.left,a,e.isExpression),t.left),53===t.operatorToken.kind?Xe(n,r,t.left):$e(n,r,t.left),He(r,e.visitNode(t.right,a,e.isExpression),t.right),pe(n),r}function x(t){function n(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(n(t.left),n(t.right)):(oe(t)&&r.length>0&&(nt(1,[e.createStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,a,e.isExpression)))}var r=[];return n(t.left),n(t.right),e.inlineExpressions(r)}function k(t){if(oe(t.whenTrue)||oe(t.whenFalse)){var r=_e(),i=_e(),o=fe();return Xe(r,e.visitNode(t.condition,a,e.isExpression),t.condition),He(o,e.visitNode(t.whenTrue,a,e.isExpression),t.whenTrue),Ge(i),pe(r),He(o,e.visitNode(t.whenFalse,a,e.isExpression),t.whenFalse),pe(i),o}return e.visitEachChild(t,a,n)}function S(t){var r=_e(),i=e.visitNode(t.expression,a,e.isExpression);if(t.asteriskToken){Ye(0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(n,i,t):i,t)}else Qe(i,t);return pe(r),qe(t)}function C(e){return D(e.elements,void 0,void 0,e.multiLine)}function D(t,n,r,i){function o(t,r){if(oe(r)&&t.length>0){var o=void 0!==s;s||(s=fe()),He(s,o?e.createArrayConcat(s,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(n?[n].concat(t):t,i)),n=void 0,t=[]}return t.push(e.visitNode(r,a,e.isExpression)),t}var s,c=se(t);if(c>0){s=fe();var u=e.visitNodes(t,a,e.isExpression,0,c);He(s,e.createArrayLiteral(n?[n].concat(u):u)),n=void 0}var l=e.reduceLeft(t,o,[],c);return s?e.createArrayConcat(s,[e.createArrayLiteral(l,i)]):e.setTextRange(e.createArrayLiteral(n?[n].concat(l):l,i),r)}function T(t){function n(n,r){oe(r)&&n.length>0&&(We(e.createStatement(e.inlineExpressions(n))),n=[]);var o=e.createExpressionForObjectLiteralElementLike(t,r,s),c=e.visitNode(o,a,e.isExpression);return c&&(i&&(c.startsOnNewLine=!0),n.push(c)),n}var r=t.properties,i=t.multiLine,o=se(r),s=fe();He(s,e.createObjectLiteral(e.visitNodes(r,a,e.isObjectLiteralElementLike,0,o),i));var c=e.reduceLeft(r,n,[],o);return c.push(i?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function E(t){if(oe(t.argumentExpression)){var r=e.getMutableClone(t);return r.expression=de(e.visitNode(t.expression,a,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(t.argumentExpression,a,e.isExpression),r}return e.visitEachChild(t,a,n)}function w(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,oe)){var r=e.createCallBinding(t.expression,Tt,wt,!0),i=r.target,o=r.thisArg;return e.setOriginalNode(e.createFunctionApply(de(e.visitNode(i,a,e.isLeftHandSideExpression)),o,D(t.arguments),t),t)}return e.visitEachChild(t,a,n)}function A(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Tt),i=r.target,o=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(de(e.visitNode(i,a,e.isExpression)),o,D(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,a,n)}function N(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0)break;u.push(L(i))}u.length&&(We(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function L(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,a,e.isExpression)),t)}function B(t){if(oe(t))if(oe(t.thenStatement)||oe(t.elseStatement)){var n=_e(),r=t.elseStatement?_e():void 0;Xe(t.elseStatement?r:n,e.visitNode(t.expression,a,e.isExpression),t.expression),P(t.thenStatement),t.elseStatement&&(Ge(n),pe(r),P(t.elseStatement)),pe(n)}else We(e.visitNode(t,a,e.isStatement));else We(e.visitNode(t,a,e.isStatement))}function j(t){if(oe(t)){var n=_e(),r=_e();Te(n),pe(r),P(t.statement),pe(n),$e(r,e.visitNode(t.expression,a,e.isExpression)),Ee()}else We(e.visitNode(t,a,e.isStatement))}function z(t){return Ft?(De(),t=e.visitEachChild(t,a,n),Ee(),t):e.visitEachChild(t,a,n)}function J(t){if(oe(t)){var n=_e(),r=Te(n);pe(n),Xe(r,e.visitNode(t.expression,a,e.isExpression)),P(t.statement),Ge(n),Ee()}else We(e.visitNode(t,a,e.isStatement))}function U(t){return Ft?(De(),t=e.visitEachChild(t,a,n),Ee(),t):e.visitEachChild(t,a,n)}function K(t){if(oe(t)){var n=_e(),r=_e(),i=Te(r);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?R(o):We(e.setTextRange(e.createStatement(e.visitNode(o,a,e.isExpression)),o))}pe(n),t.condition&&Xe(i,e.visitNode(t.condition,a,e.isExpression)),P(t.statement),pe(r),t.incrementor&&We(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,a,e.isExpression)),t.incrementor)),Ge(n),Ee()}else We(e.visitNode(t,a,e.isStatement))}function q(t){Ft&&De();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var i=0,o=r.declarations;i0?e.inlineExpressions(e.map(c,L)):void 0,e.visitNode(t.condition,a,e.isExpression),e.visitNode(t.incrementor,a,e.isExpression),e.visitNode(t.statement,a,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,a,n);return Ft&&Ee(),t}function V(t){if(oe(t)){var n=fe(),r=fe(),i=e.createLoopVariable(),o=t.initializer;Tt(i),He(n,e.createArrayLiteral()),We(e.createForIn(r,e.visitNode(t.expression,a,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(n,"push"),void 0,[r])))),He(i,e.createLiteral(0));var s=_e(),c=_e(),u=Te(c);pe(s),Xe(u,e.createLessThan(i,e.createPropertyAccess(n,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var d=0,f=o.declarations;d0?Ge(n,t):We(t)}function G(t){if(Ft){var r=je(t.label&&e.idText(t.label));if(r>0)return Ue(r,t)}return e.visitEachChild(t,a,n)}function $(t){var n=Be(t.label?e.idText(t.label):void 0);n>0?Ge(n,t):We(t)}function X(t){if(Ft){var r=Be(t.label&&e.idText(t.label));if(r>0)return Ue(r,t)}return e.visitEachChild(t,a,n)}function Y(t){Ze(e.visitNode(t.expression,a,e.isExpression),t)}function Q(t){return Ke(e.visitNode(t.expression,a,e.isExpression),t)}function Z(t){oe(t)?(ve(de(e.visitNode(t.expression,a,e.isExpression))),P(t.statement),be()):We(e.visitNode(t,a,e.isStatement))}function ee(t){if(oe(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,i=Ae(),o=de(e.visitNode(t.expression,a,e.isExpression)),s=[],c=-1,u=0;u0)break;f.push(e.createCaseClause(e.visitNode(p.expression,a,e.isExpression),[Ue(s[u],p.expression)]))}else _++}f.length&&(We(e.createSwitch(o,e.createCaseBlock(f))),d+=f.length,f=[]),_>0&&(d+=_,_=0)}Ge(c>=0?s[c]:i);for(var u=0;u=0;n--){var r=Bt[n];if(!Me(r))break;if(r.labelText===e)return!0}return!1}function Be(e){if(Bt)if(e)for(var t=Bt.length-1;t>=0;t--){var n=Bt[t];if(Me(n)&&n.labelText===e)return n.breakLabel;if(Fe(n)&&Le(e,t-1))return n.breakLabel}else for(var t=Bt.length-1;t>=0;t--){var n=Bt[t];if(Fe(n))return n.breakLabel}return 0}function je(e){if(Bt)if(e)for(var t=Bt.length-1;t>=0;t--){var n=Bt[t];if(Re(n)&&Le(e,t-1))return n.continueLabel}else for(var t=Bt.length-1;t>=0;t--){var n=Bt[t];if(Re(n))return n.continueLabel}return 0}function ze(t){if(t>0){void 0===zt&&(zt=[]);var n=e.createLiteral(-1);return void 0===zt[t]?zt[t]=[n]:zt[t].push(n),n}return e.createOmittedExpression()}function Je(n){var r=e.createLiteral(n);return e.addSyntheticTrailingComment(r,3,t(n)),r}function Ue(t,n){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([Je(3),ze(t)])),n)}function Ke(t,n){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Je(2),t]:[Je(2)])),n)}function qe(t){return e.setTextRange(e.createCall(e.createPropertyAccess(qt,"sent"),void 0,[]),t)}function Ve(){nt(0)}function We(e){e?nt(1,[e]):Ve()}function He(e,t,n){nt(2,[e,t],n)}function Ge(e,t){nt(3,[e],t)}function $e(e,t,n){nt(4,[e,t],n)}function Xe(e,t,n){nt(5,[e,t],n)}function Ye(e,t){nt(7,[e],t)}function Qe(e,t){nt(6,[e],t)}function Ze(e,t){nt(8,[e],t)}function et(e,t){nt(9,[e],t)}function tt(){nt(10)}function nt(e,t,n){void 0===Jt&&(Jt=[],Ut=[],Kt=[]),void 0===jt&&pe(_e());var r=Jt.length;Jt[r]=e,Ut[r]=t,Kt[r]=n}function rt(){en=0,tn=0,Vt=void 0,Wt=!1,Ht=!1,Gt=void 0,$t=void 0,Xt=void 0,Yt=void 0,Qt=void 0;var t=it();return r(n,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,qt)],void 0,e.createBlock(t,t.length>0)),524288))}function it(){if(Jt){for(var t=0;t=0;n--){var r=Qt[n];$t=[e.createWith(r.expression,e.createBlock($t))]}if(Yt){var i=Yt.startLabel,a=Yt.catchLabel,o=Yt.finallyLabel,s=Yt.endLabel;$t.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(qt,"trys"),"push"),void 0,[e.createArrayLiteral([ze(i),ze(a),ze(o),ze(s)])]))),Yt=void 0}t&&$t.push(e.createStatement(e.createAssignment(e.createPropertyAccess(qt,"label"),e.createLiteral(tn+1))))}Gt.push(e.createCaseClause(e.createLiteral(tn),$t||[])),$t=void 0}function ut(e){if(jt)for(var t=0;t 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 };'}}(o||(o={}));var o;!function(e){function t(t){function a(t){switch(t){case e.ModuleKind.AMD:return u;case e.ModuleKind.UMD:return l;default:return c}}function o(t){if(t.isDeclarationFile||!(e.isExternalModule(t)||ee.isolatedModules||67108864&t.transformFlags))return t;se=t,ce=e.collectExternalModuleInfo(t,te,ee),de[e.getOriginalNodeId(t)]=ce;var n=a(ie),r=n(t);return se=void 0,ce=void 0,le=!1,e.aggregateTransformFlags(r)}function s(){return!(ce.exportEquals||!e.isExternalModule(se))}function c(n){Y();var i=[],a=ee.alwaysStrict||!ee.noImplicitUseStrict&&e.isExternalModule(se),o=e.addPrologue(i,n.statements,a,p);s()&&e.append(i,j()),e.append(i,e.visitNode(ce.externalHelpersImportDeclaration,p,e.isStatement)),e.addRange(i,e.visitNodes(n.statements,p,e.isStatement,o)),_(i,!1),e.addRange(i,Q());var c=e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray(i),n.statements));return ce.hasExportStarsToExportValues&&!ee.importHelpers&&e.addEmitHelper(c,r),e.addEmitHelpers(c,t.readEmitHelpers()),c}function u(t){var n=e.createIdentifier("define"),r=e.tryGetModuleNameFromFile(t,ne,ee),i=d(t,!0),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames;return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(n,void 0,(r?[r]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(a,o)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(s),void 0,f(t))])))]),t.statements))}function l(t){var n=d(t,!1),r=n.aliasedModuleNames,i=n.unaliasedModuleNames,a=n.importAliasNames,o=e.tryGetModuleNameFromFile(t,ne,ee),s=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,(o?[o]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(r,i)),e.createIdentifier("factory")])))])))],!0),void 0));return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(s,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(a),void 0,f(t))]))]),t.statements))}function d(t,n){for(var r=[],i=[],a=[],o=0,s=t.amdDependencies;o=2?r=e.createArrowFunction(void 0,void 0,o,void 0,void 0,s):(r=e.createFunctionExpression(void 0,void 0,void 0,void 0,o,void 0,s),n&&e.setEmitFlags(r,8)),e.createNew(e.createIdentifier("Promise"),void 0,[r])}function v(t,n){var r,i=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),a=e.createCall(e.createIdentifier("require"),void 0,t?[t]:[]);return re>=2?r=e.createArrowFunction(void 0,void 0,[],void 0,void 0,a):(r=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(a)])),n&&e.setEmitFlags(r,8)),e.createCall(e.createPropertyAccess(i,"then"),void 0,[r])}function b(t){var n,r=e.getNamespaceDeclarationNode(t);if(ie!==e.ModuleKind.AMD){if(!t.importClause)return e.setTextRange(e.createStatement(x(t)),t);var i=[];r&&!e.isDefaultImport(t)?i.push(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,x(t))):(i.push(e.createVariableDeclaration(e.getGeneratedNameForNode(t),void 0,x(t))),r&&e.isDefaultImport(t)&&i.push(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)))),n=e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(i,re>=2?2:0)),t))}else r&&e.isDefaultImport(t)&&(n=e.append(n,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)),t)],re>=2?2:0))));if(N(t)){var a=e.getOriginalNodeId(t);fe[a]=O(fe[a],t)}else n=O(n,t);return e.singleOrMany(n)}function x(t){var n=e.getExternalModuleNameLiteral(t,se,ne,te,ee),r=[];return n&&r.push(n),e.createCall(e.createIdentifier("require"),void 0,r)}function k(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var n;if(ie!==e.ModuleKind.AMD?n=e.hasModifier(t,1)?e.append(n,e.setTextRange(e.createStatement(J(t.name,x(t))),t)):e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,x(t))],re>=2?2:0)),t)):e.hasModifier(t,1)&&(n=e.append(n,e.setTextRange(e.createStatement(J(e.getExportName(t),e.getLocalName(t))),t))),N(t)){var r=e.getOriginalNodeId(t);fe[r]=I(fe[r],t)}else n=I(n,t);return e.singleOrMany(n)}function S(r){if(r.moduleSpecifier){var i=e.getGeneratedNameForNode(r);if(r.exportClause){var a=[];ie!==e.ModuleKind.AMD&&a.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,x(r))])),r));for(var o=0,s=r.exportClause.elements;o0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(e.createVariableDeclaration(t),64);S?S.push(n):S=[n]}function m(t){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),C?C.push(t):C=[t]}function g(){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!N,"Lexical environment is suspended."),E[A]=S,w[A]=C,A++,S=void 0,C=void 0}function h(){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!N,"Lexical environment is already suspended."),N=!0}function y(){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(N,"Lexical environment is not suspended."),N=!1}function v(){e.Debug.assert(I>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(I<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!N,"Lexical environment is suspended.");var t;if((S||C)&&(C&&(t=C.slice()),S)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(S));t?t.push(n):t=[n]}return A--,S=E[A],C=w[A],0===A&&(E=[],w=[]),t}function b(t){e.Debug.assert(I>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(I<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),D=e.append(D,t)}function x(){e.Debug.assert(I>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(I<2,"Cannot modify the transformation context after transformation has completed.");var t=D;return D=void 0,t}function k(){if(I<3){for(var t=0,n=i;t=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),k.sourceMapMappings+=r(v.nameIndex-x),x=v.nameIndex),b=v,k.sourceMapDecodedMappings.push(b)}}function u(t){if(!D&&!e.positionIsSynthesized(t)){C&&e.performance.mark("beforeSourcemap");var r=e.getLineAndCharacterOfPosition(m,t);r.line++,r.character++;var i=n.getLine(),a=n.getColumn();!v||v.emittedLine!==i||v.emittedColumn!==a||v.sourceIndex===y&&(v.sourceLine>r.line||v.sourceLine===r.line&&v.sourceColumn>r.character)?(c(),v={emittedLine:i,emittedColumn:a,sourceLine:r.line,sourceColumn:r.character,sourceIndex:y}):(v.sourceLine=r.line,v.sourceColumn=r.character,v.sourceIndex=y),C&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function l(e,t,n){if(D)return n(e,t);if(t){var r=t.emitNode,i=r&&r.flags,o=r&&r.sourceMapRange,s=o||t,c=s.pos,l=s.end,d=o&&o.source,_=m;d===_&&(d=void 0),d&&f(d),287!==t.kind&&0==(16&i)&&c>=0&&u(a(c)),d&&f(_),64&i?(D=!0,n(e,t),D=!1):n(e,t),d&&f(d),287!==t.kind&&0==(32&i)&&l>=0&&u(l),d&&f(_)}}function d(e,t,n,r){if(D)return r(t,n);var i=e&&e.emitNode,o=i&&i.flags,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[t];return n=a(s?s.pos:n),0==(128&o)&&n>=0&&u(n),n=r(t,n),s&&(n=s.end),0==(256&o)&&n>=0&&u(n),n}function f(n){if(!D){m=n,g=m.text;var r=S.sourceRoot?t.getCommonSourceDirectory():h,i=e.getRelativePathToDirectoryOrUrl(r,m.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);y=e.indexOf(k.sourceMapSources,i),-1===y&&(y=k.sourceMapSources.length,k.sourceMapSources.push(i),k.inputSourceFileNames.push(m.fileName),S.inlineSources&&k.sourceMapSourcesContent.push(m.text))}}function _(){if(!D)return c(),JSON.stringify({version:3,file:k.sourceMapFile,sourceRoot:k.sourceMapSourceRoot,sources:k.sourceMapSources,names:k.sourceMapNames,mappings:k.sourceMapMappings,sourcesContent:k.sourceMapSourcesContent})}function p(){if(!D){if(S.inlineSourceMap){var t=e.convertToBase64(_());return k.jsSourceMappingURL="data:application/json;base64,"+t}return k.jsSourceMappingURL}}var m,g,h,y,v,b,x,k,S=t.getCompilerOptions(),C=S.extendedDiagnostics,D=!(S.sourceMap||S.inlineSourceMap);return{initialize:o,reset:s,getSourceMapData:function(){return k},setSourceFile:f,emitPos:u,emitNodeWithSourceMap:l,emitTokenWithSourceMap:d,getText:_,getSourceMappingURL:p}}function n(e){if(e<64)return a.charAt(e);throw TypeError(e+": not a 64 based value")}function r(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;e>>=5,e>0&&(r|=32),t+=n(r)}while(e>0);return t}var i={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=t;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"}(o||(o={}));var o;!function(e){function t(t,n){function r(t,n,r){if(z)return void r(t,n);if(n){j=!1;var a=n.emitNode,o=a&&a.flags,s=a&&a.commentRange||n,c=s.pos,u=s.end;if(c<0&&u<0||c===u)i(t,n,a,o,r);else{F&&e.performance.mark("preEmitNodeWithComment");var l=287!==n.kind,f=c<0||0!=(512&o)||10===n.kind,_=u<0||0!=(1024&o)||10===n.kind;f||d(c,l);var p=R,g=L,h=B;f||(R=c),_||(L=u,227===n.kind&&(B=u)),F&&e.performance.measure("commentTime","preEmitNodeWithComment"),i(t,n,a,o,r),F&&e.performance.mark("postEmitNodeWithComment"),R=p,L=g,B=h,!_&&l&&m(u),F&&e.performance.measure("commentTime","postEmitNodeWithComment")}}}function i(t,n,r,i,s){var c=r&&r.leadingComments;e.some(c)&&(F&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(c,a),F&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),u(t,n,i,s);var l=r&&r.trailingComments;e.some(l)&&(F&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(l,o),F&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function a(e){2===e.kind&&A.writeLine(),s(e),e.hasTrailingNewLine||2===e.kind?A.writeLine():A.write(" ")}function o(e){A.isAtStartOfLine()||A.write(" "),s(e),e.hasTrailingNewLine&&A.writeLine()}function s(t){var n=c(t),r=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,r,A,0,n.length,M)}function c(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function u(e,t,n,r){2048&n?(z=!0,r(e,t),z=!1):r(e,t)}function l(t,n,r){F&&e.performance.mark("preEmitBodyWithDetachedComments");var i=n.pos,a=n.end,o=e.getEmitFlags(t),s=i<0||0!=(512&o),c=z||a<0||0!=(1024&o);s||T(n),F&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!z?(z=!0,r(t),z=!1):r(t),F&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(d(n.end,!0),j&&!A.isAtStartOfLine()&&A.writeLine()),F&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")}function d(e,t){j=!1,t?v(e,_):0===e&&v(e,f)}function f(e,t,n,r,i){w(e,t)&&_(e,t,n,r,i)}function _(t,r,i,a,o){j||(e.emitNewLineBeforeLeadingCommentOfPosition(O,A,o,t),j=!0),n&&n(t),e.writeCommentRange(P,O,A,t,r,M),n&&n(r),a?A.writeLine():A.write(" ")}function p(e){z||-1===e||d(e,!0)}function m(e){b(e,g)}function g(t,r,i,a){A.isAtStartOfLine()||A.write(" "),n&&n(t),e.writeCommentRange(P,O,A,t,r,M),n&&n(r),a&&A.writeLine()}function h(t,n){z||(F&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),b(t,n?g:y),F&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))}function y(t,r,i,a){n&&n(t),e.writeCommentRange(P,O,A,t,r,M),n&&n(r),a?A.writeLine():A.write(" ")}function v(t,n){-1!==R&&t===R||(C(t)?D(n):e.forEachLeadingCommentRange(P,t,n,t))}function b(t,n){(-1===L||t!==L&&t!==B)&&e.forEachTrailingCommentRange(P,t,n)}function x(){N=void 0,P=void 0,O=void 0,I=void 0}function k(e){A=e}function S(t){N=t,P=N.text,O=e.getLineStarts(N),I=void 0}function C(t){return void 0!==I&&e.lastOrUndefined(I).nodePos===t}function D(t){var n=e.lastOrUndefined(I).detachedCommentEndPos;I.length-1?I.pop():I=void 0,e.forEachLeadingCommentRange(P,n,t,n)}function T(t){var n=e.emitDetachedComments(P,O,A,E,t,M,z);n&&(I?I.push(n):I=[n])}function E(t,r,i,a,o,s){n&&n(a),e.writeCommentRange(t,r,i,a,o,s),n&&n(o)}function w(t,n){return e.isRecognizedTripleSlashComment(P,t,n)}var A,N,P,O,I,F=t.extendedDiagnostics,M=e.getNewLineCharacter(t),R=-1,L=-1,B=-1,j=!1,z=t.removeComments;return{reset:x,setWriter:k,setSourceFile:S,emitNodeWithComments:r,emitBodyWithDetachedComments:l,emitTrailingCommentsOfPosition:h,emitLeadingCommentsOfPosition:p}}e.createCommentWriter=t}(o||(o={}));var o;!function(e){function t(t,r,i){function a(e,i){var a=e.declarationFilePath;n(t,r,o,a,i,!1)}var o=e.createDiagnosticCollection();return e.forEachEmittedFile(t,a,i),o.getDiagnostics(i?i.fileName:void 0)}function n(t,n,r,i,a,o){function s(t){var n=be.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function c(t){if(t){var n=e.getLeadingCommentRanges(be,t.pos);if(e.forEach(n,s))return;oe(t)}}function u(){var t=e.createTextWriter(ge);t.trackSymbol=p,t.reportInaccessibleThisError=g,t.reportPrivateInBaseOfClassExpression=m,t.writeKeyword=t.write,t.writeOperator=t.write,t.writePunctuation=t.write,t.writeSpace=t.write,t.writeStringLiteral=t.writeLiteral,t.writeParameter=t.write,t.writeProperty=t.write,t.writeSymbol=t.write,l(t)}function l(e){_e=e,ce=e.write,fe=e.writeTextOfNode,ue=e.writeLine,le=e.increaseIndent,de=e.decreaseIndent}function d(t){var n=_e;e.forEach(t,function(t){var n;226===t.kind?n=t.parent.parent:241===t.kind||242===t.kind||239===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):n=t;var r=e.forEach(Pe,function(e){return e.node===n?e:void 0});if(!r&&De&&(r=e.forEach(De,function(e){return e.node===n?e:void 0})),r)if(238===r.node.kind)r.isVisible=!0;else{u();for(var i=r.indent;i;i--)le();233===n.kind&&(e.Debug.assert(void 0===De),De=[]),P(n),233===n.kind&&(r.subModuleElementDeclarationEmitInfo=De,De=void 0),r.asynchronousOutput=_e.getText()}}),l(n)}function f(t){if(t){Te||(Te=e.createMap());for(var n=0,r=t;n")))}(t);case 159:return function(e){i(e.typeName),e.typeArguments&&(ce("<"),x(e.typeArguments,C),ce(">"))}(t);case 162:return function(e){ce("typeof "),i(e.exprName)}(t);case 164:return function(e){C(e.elementType),ce("[]")}(t);case 165:return function(e){ce("["),x(e.elementTypes,C),ce("]")}(t);case 166:return function(e){b(e.types," | ",C)}(t);case 167:return function(e){b(e.types," & ",C)}(t);case 168:return function(e){ce("("),C(e.type),ce(")")}(t);case 170:return function(t){ce(e.tokenToString(t.operator)),ce(" "),C(t.type)}(t);case 171:return function(e){C(e.objectType),ce("["),C(e.indexType),ce("]")}(t);case 172:return function(e){var t=ye;ye=e,ce("{"),ue(),le(),e.readonlyToken&&ce("readonly "),ce("["),r(e.typeParameter.name),ce(" in "),C(e.typeParameter.constraint),ce("]"),e.questionToken&&ce("?"),ce(": "),C(e.type),ce(";"),ue(),de(),ce("}"),ye=t}(t);case 160:case 161:return re(t);case 163:return function(e){ce("{"),e.members.length&&(ue(),le(),v(e.members),de()),ce("}")}(t);case 71:case 143:return i(t);case 158:return function(e){fe(be,e.parameterName),ce(" is "),C(e.type)}(t)}}function D(t){be=t.text,xe=e.getLineStarts(t),ke=t.identifiers,Se=e.isExternalModule(t),ye=t,e.emitDetachedComments(be,xe,_e,e.writeCommentRange,t,ge,!0),v(t.statements)}function T(e){if(!ke.has(e))return e;for(var t=0;;){t++;var n=e+"_"+t;if(!ke.has(n))return n}}function E(e,t,r,i){var a=T(t);return i&&ce("declare "),ce("const "),ce(a),ce(": "),_e.getSymbolAccessibilityDiagnostic=function(){return r},n.writeTypeOfExpression(e,ye,16388,_e),ce(";"),ue(),a}function w(t){if(71===t.expression.kind)ce(t.isExportEquals?"export = ":"export default "),fe(be,t.expression);else{var r=E(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},Ne);ce(t.isExportEquals?"export = ":"export default "),ce(r)}if(ce(";"),ue(),71===t.expression.kind){d(n.collectLinkedAliases(t.expression))}}function A(e){return n.isDeclarationVisible(e)}function N(e,t){if(t)P(e);else if(237===e.kind||265===e.parent.kind&&Se){var r=void 0;if(De&&265!==e.parent.kind)De.push({node:e,outputPos:_e.getTextPos(),indent:_e.getIndent(),isVisible:r});else{if(238===e.kind){var i=e;i.importClause&&(r=i.importClause.name&&n.isDeclarationVisible(i.importClause)||M(i.importClause.namedBindings))}Pe.push({node:e,outputPos:_e.getTextPos(),indent:_e.getIndent(),isVisible:r})}}}function P(t){switch(t.kind){case 228:return ne(t);case 208:return ee(t);case 230:return $(t);case 229:return G(t);case 231:return U(t);case 232:return K(t);case 233:return J(t);case 237:return F(t);case 238:return R(t);default:e.Debug.fail("Unknown symbol kind")}}function O(t){if(265===t.parent.kind){var n=e.getModifierFlags(t);1&n&&ce("export "),512&n?ce("default "):230!==t.kind&&Ne&&ce("declare ")}}function I(e){8&e?ce("private "):16&e&&ce("protected "),32&e&&ce("static "),64&e&&ce("readonly "),128&e&&ce("abstract ")}function F(t){function n(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}we(t),e.hasModifier(t,1)&&ce("export "),ce("import "),fe(be,t.name),ce(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(S(t.moduleReference,n),ce(";")):(ce("require("),L(t),ce(");")),_e.writeLine()}function M(t){if(t)return 240===t.kind?n.isDeclarationVisible(t):e.forEach(t.elements,function(e){return n.isDeclarationVisible(e)})}function R(t){if(we(t),e.hasModifier(t,1)&&ce("export "),ce("import "),t.importClause){var r=_e.getTextPos();t.importClause.name&&n.isDeclarationVisible(t.importClause)&&fe(be,t.importClause.name),t.importClause.namedBindings&&M(t.importClause.namedBindings)&&(r!==_e.getTextPos()&&ce(", "),240===t.importClause.namedBindings.kind?(ce("* as "),fe(be,t.importClause.namedBindings.name)):(ce("{ "),x(t.importClause.namedBindings.elements,B,n.isDeclarationVisible),ce(" }"))),ce(" from ")}L(t),ce(";"),_e.writeLine()}function L(r){ve=ve||233!==r.kind;var i;if(237===r.kind){var a=r;i=e.getExternalModuleImportEqualsDeclarationExpression(a)}else if(233===r.kind)i=r.name;else{var a=r;i=a.moduleSpecifier}if(9===i.kind&&me&&(he.out||he.outFile)){var o=e.getExternalModuleNameFromDeclaration(t,n,r);if(o)return ce('"'),ce(o),void ce('"')}fe(be,i)}function B(e){e.propertyName&&(fe(be,e.propertyName),ce(" as ")),fe(be,e.name)}function j(e){B(e),d(n.collectLinkedAliases(e.propertyName||e.name))}function z(e){we(e),ce("export "),e.exportClause?(ce("{ "),x(e.exportClause.elements,j),ce(" }")):ce("*"),e.moduleSpecifier&&(ce(" from "),L(e)),ce(";"),_e.writeLine()}function J(t){for(we(t),O(t),e.isGlobalScopeAugmentation(t)?ce("global "):(ce(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?L(t):fe(be,t.name));t.body&&234!==t.body.kind;)t=t.body,ce("."),fe(be,t.name);var n=ye;t.body?(ye=t,ce(" {"),ue(),le(),v(t.body.statements),de(),ce("}"),ue(),ye=n):ce(";")}function U(t){function n(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}var r=ye;ye=t,we(t),O(t),ce("type "),fe(be,t.name),W(t.typeParameters),ce(" = "),S(t.type,n),ce(";"),ue(),ye=r}function K(t){we(t),O(t),e.isConst(t)&&ce("const "),ce("enum "),fe(be,t.name),ce(" {"),ue(),le(),v(t.members),de(),ce("}"),ue()}function q(t){we(t),fe(be,t.name);var r=n.getConstantValue(t);void 0!==r&&(ce(" = "),ce(e.getTextOfConstantValue(r))),ce(","),ue()}function V(t){return 151===t.parent.kind&&e.hasModifier(t.parent,8)}function W(t){function n(t){function n(){var n;switch(t.parent.kind){case 229:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 230:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 156:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 155:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 151:case 150:n=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===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 228:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 231:n=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:n,errorNode:t,typeName:t.name}}le(),we(t),de(),fe(be,t.name),t.constraint&&!V(t)&&(ce(" extends "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),C(t.constraint)):S(t.constraint,n)),t.default&&!V(t)&&(ce(" = "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),C(t.default)):S(t.default,n))}t&&(ce("<"),x(t,n),ce(">"))}function H(t,n){function r(t){function r(){var r;return r=229===t.parent.parent.kind?n?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}e.isEntityNameExpression(t.expression)?S(t,r):n||95!==t.expression.kind||ce("null")}t&&(ce(n?" implements ":" extends "),x(t,r))}function G(t){var n=ye;ye=t;var r,i=e.getClassExtendsHeritageClauseElement(t);i&&!e.isEntityNameExpression(i.expression)&&(r=95===i.expression.kind?"null":E(i.expression,t.name.escapedText+"_base",{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:i,typeName:t.name},!e.findAncestor(t,function(e){return 233===e.kind}))),we(t),O(t),e.hasModifier(t,128)&&ce("abstract "),ce("class "),fe(be,t.name),W(t.typeParameters),i&&(e.isEntityNameExpression(i.expression)?H([i],!1):(ce(" extends "),ce(r),i.typeArguments&&(ce("<"),x(i.typeArguments,C),ce(">")))),H(e.getClassImplementsHeritageClauseElements(t),!0),ce(" {"),ue(),le(),function(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&X(t)})}(e.getFirstConstructorWithBody(t)),v(t.members),de(),ce("}"),ue(),ye=n}function $(t){we(t),O(t),ce("interface "),fe(be,t.name);var n=ye;ye=t,W(t.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});r&&r.length&&H(r,!1),ce(" {"),ue(),le(),v(t.members),de(),ce("}"),ue(),ye=n}function X(t){e.hasDynamicName(t)||(we(t),I(e.getModifierFlags(t)),Y(t),ce(";"),ue())}function Y(t){function r(n){return 226===t.kind?n.errorModuleName?2===n.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:149===t.kind||148===t.kind||146===t.kind&&e.hasModifier(t.parent,8)?e.hasModifier(t,32)?n.errorModuleName?2===n.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:229===t.parent.kind||146===t.kind?n.errorModuleName?2===n.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:n.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}function i(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function a(e){for(var t=[],n=0,r=e.elements;n0?e.parameters[0].type:void 0}function r(t){var n;return 154===i.kind?(n=e.hasModifier(i.parent,32)?t.errorModuleName?e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:i.parameters[0],typeName:i.name}):(n=e.hasModifier(i,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0,{diagnosticMessage:n,errorNode:i.name,typeName:void 0})}if(!e.hasDynamicName(t)){var i,a=e.getAllAccessorDeclarations(t.parent.members,t);if(t===a.firstAccessor){if(we(a.getAccessor),we(a.setAccessor),I(e.getModifierFlags(t)|(a.setAccessor?0:64)),fe(be,t.name),!e.hasModifier(t,8)){i=t;var o=n(t);if(!o){var s=153===t.kind?a.setAccessor:a.getAccessor;o=n(s),o&&(i=s)}h(t,o,r)}ce(";"),ue()}}}function ne(t){e.hasDynamicName(t)||n.isImplementationOfOverload(t)||(we(t),228===t.kind?O(t):151!==t.kind&&152!==t.kind||I(e.getModifierFlags(t)),228===t.kind?(ce("function "),fe(be,t.name)):152===t.kind?ce("constructor"):(fe(be,t.name),e.hasQuestionToken(t)&&ce("?")),ie(t))}function re(e){we(e),ie(e)}function ie(t){function n(n){var r;switch(t.kind){case 156:r=n.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 155:r=n.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 157:r=n.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 151:case 150:r=e.hasModifier(t,32)?n.errorModuleName?2===n.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:229===t.parent.kind?n.errorModuleName?2===n.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:n.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 228:r=n.errorModuleName?2===n.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:e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:r,errorNode:t.name||t}}var r=ye;ye=t;var i=!1;if(157===t.kind)I(e.getModifierFlags(t)),ce("[");else{if(152===t.kind&&e.hasModifier(t,8))return ce("();"),void ue();if(156===t.kind||161===t.kind)ce("new ");else if(160===t.kind){var a=_e.getText();t.typeParameters&&"<"===a.charAt(a.length-1)&&(i=!0,ce("("))}W(t.typeParameters),ce("(")}x(t.parameters,ae),ce(157===t.kind?"]":")");var o=160===t.kind||161===t.kind;o||163===t.parent.kind?t.type&&(ce(o?" => ":": "),C(t.type)):152===t.kind||e.hasModifier(t,8)||y(t,n),ye=r,o?i&&ce(")"):(ce(";"),ue())}function ae(t){function r(e){var n=i(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function i(n){switch(t.parent.kind){case 152:return n.errorModuleName?2===n.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 156:return n.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 155:return n.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 157:return n.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 151:case 150:return e.hasModifier(t.parent,32)?n.errorModuleName?2===n.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:229===t.parent.parent.kind?n.errorModuleName?2===n.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:n.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 228:return n.errorModuleName?2===n.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;default:e.Debug.fail("This is unknown parent for parameter: "+t.parent.kind)}}function a(e){if(174===e.kind)ce("{"),x(e.elements,o),ce("}");else if(175===e.kind){ce("[");var t=e.elements;x(t,o),t&&t.hasTrailingComma&&ce(", "),ce("]")}}function o(t){200===t.kind?ce(" "):176===t.kind&&(t.propertyName&&(fe(be,t.propertyName),ce(": ")),t.name&&(e.isBindingPattern(t.name)?a(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&ce("..."),fe(be,t.name))))}le(),we(t),t.dotDotDotToken&&ce("..."),e.isBindingPattern(t.name)?a(t.name):fe(be,t.name),n.isOptionalParameter(t)&&ce("?"),de(),160===t.parent.kind||161===t.parent.kind||163===t.parent.parent.kind?Q(t):e.hasModifier(t.parent,8)||h(t,t.type,r)}function oe(e){switch(e.kind){case 228:case 233:case 237:case 230:case 229:case 231:case 232:return N(e,A(e));case 208:return N(e,Z(e));case 238:return N(e,!e.importClause);case 244:return z(e);case 152:case 151:case 150:return ne(e);case 156:case 155:case 157:return re(e);case 153:case 154:return te(e);case 149:case 148:return X(e);case 264:return q(e);case 243:return w(e);case 265:return D(e)}}function se(n,r,a){function o(t,i){var a=266===i.kind;a&&!r||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),s=t.declarationFilePath||t.jsFilePath,c=a)}var s,c=!1;return n.isDeclarationFile?s=n.fileName:e.forEachEmittedFile(t,o,n,a),s&&(s=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(i)),s,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Oe+='/// '+ge),c}var ce,ue,le,de,fe,_e,pe=266===a.kind?a.sourceFiles:[a],me=266===a.kind,ge=t.getNewLine(),he=t.getCompilerOptions();u();var ye,ve,be,xe,ke,Se,Ce,De,Te,Ee=!1,we=he.removeComments?e.noop:k,Ae=he.stripInternal?c:oe,Ne=!0,Pe=[],Oe="",Ie=[],Fe=!1,Me=[];return e.forEach(pe,function(n){if(!e.isSourceFileJavaScript(n)){if(he.noResolve||e.forEach(n.referencedFiles,function(r){var i=e.tryResolveScriptReference(t,n,r);i&&!e.contains(Ie,i)&&(se(i,!me&&!Fe,o)&&(Fe=!0),Ie.push(i))}),ve=!1,me&&e.isExternalModule(n)?e.isExternalModule(n)&&(Ne=!1,ce('declare module "'+e.getResolvedExternalModuleName(t,n)+'" {'),ue(),le(),D(n),de(),ce("}"),ue()):(Ne=!0,D(n)),Pe.length){var r=_e;e.forEach(Pe,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(238===t.node.kind),u(),e.Debug.assert(0===t.indent||1===t.indent&&me);for(var n=0;n'+ge}),{reportedDeclarationError:Ee,moduleElementDeclarationEmitInfo:Me,synchronousDeclarationOutput:_e.getText(),referencesOutput:Oe}}function r(t,r,i,a,o,s){function c(t,n){var r=0,i="";return e.forEach(n,function(e){e.asynchronousOutput&&(i+=t.substring(r,e.outputPos),i+=c(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),r=e.outputPos)}),i+=t.substring(r)}var u=n(i,a,o,t,r,s),l=u.reportedDeclarationError||i.isEmitBlocked(t)||i.getCompilerOptions().noEmit;if(!l){var d=266===r.kind?r.sourceFiles:[r],f=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(i,o,t,f,i.getCompilerOptions().emitBOM,d)}return l}e.getDeclarationDiagnostics=t,e.writeDeclarationFile=r}(o||(o={}));var o;!function(e){function t(t,i,a,o){var s=e.isArray(a)?a:e.getSourceFilesToEmit(t,a),c=t.getCompilerOptions();if(c.outFile||c.out){if(s.length){var u=c.outFile||c.out,l=n(u,c),d=c.declaration?e.removeFileExtension(u)+".d.ts":"";i({jsFilePath:u,sourceMapFilePath:l,declarationFilePath:d},e.createBundle(s),o)}}else for(var f=0,_=s;f<_.length;f++){var p=_[f],u=e.getOwnEmitOutputFilePath(p,t,r(p,c)),l=n(u,c),d=e.isSourceFileJavaScript(p)||!o&&!c.declaration?void 0:e.getDeclarationEmitOutputFilePath(p,t);i({jsFilePath:u,sourceMapFilePath:l,declarationFilePath:d},p,o)}}function n(e,t){return t.sourceMap?e+".map":void 0}function r(t,n){if(1===n.jsx)if(e.isSourceFileJavaScript(t)){if(e.fileExtensionIs(t.fileName,".jsx"))return".jsx"}else if(1===t.languageVariant)return".jsx";return".js"}function i(t){return 266===t.kind?e.updateBundle(t,e.sameMap(t.sourceFiles,e.getOriginalSourceFile)):e.getOriginalSourceFile(t)}function a(n,r,a,s,c){function u(t,a){var o=t.jsFilePath,c=t.sourceMapFilePath,u=t.declarationFilePath;r.isEmitBlocked(o)||g.noEmit?C=!0:s||l(o,c,a),u&&(C=e.writeDeclarationFile(u,i(a),r,n,b,s)||C),!C&&v&&(s||v.push(o),c&&v.push(c),u&&v.push(u))}function l(t,n,i){var a=266===i.kind?i:void 0,o=265===i.kind?i:void 0,s=a?a.sourceFiles:[o];S.initialize(t,n,i),a?(p=e.createMap(),m=!1,E.writeBundle(a,k)):(m=!0,E.writeFile(o,k)),k.writeLine();var c=S.getSourceMappingURL();c&&k.write("//# sourceMappingURL="+c),g.sourceMap&&!g.inlineSourceMap&&e.writeFile(r,b,n,S.getText(),!1,s),y&&y.push(S.getSourceMapData()),e.writeFile(r,b,t,k.getText(),g.emitBOM,s),S.reset(),k.reset(),_=void 0,p=void 0,m=!1}function d(e){_=e,S.setSourceFile(e)}function f(t,n){var r=!1,i=266===t.kind?t:void 0;if(!i||h!==e.ModuleKind.None){for(var a=i?i.sourceFiles.length:1,o=0;o "),v(e.type)}function te(e){qn("function"),Ln(e,e.parameters),qn(":"),v(e.type)}function ne(e){qn("?"),v(e.type)}function re(e){qn("!"),v(e.type)}function ie(e){v(e.type),qn("=")}function ae(e){qn("new "),Rn(e,e.typeParameters),Ln(e,e.parameters),qn(" => "),v(e.type)}function oe(e){qn("typeof "),v(e.exprName)}function se(t){qn("{");var n=1&e.getEmitFlags(t)?448:65;Jn(t,t.members,262144|n),qn("}")}function ce(e){v(e.elementType),qn("[]")}function ue(e){qn("..."),v(e.type)}function le(e){qn("["),Jn(e,e.elementTypes,336),qn("]")}function de(e){Jn(e,e.types,260)}function fe(e){Jn(e,e.types,264)}function _e(e){qn("("),v(e.type),qn(")")}function pe(){qn("this")}function me(e){Yn(e.operator),qn(" "),v(e.type)}function ge(e){v(e.objectType),qn("["),v(e.indexType),qn("]")}function he(t){var n=e.getEmitFlags(t);qn("{"),1&n?qn(" "):(Vn(),Wn()),t.readonlyToken&&(v(t.readonlyToken),qn(" ")),qn("["),k(3,t.typeParameter),qn("]"),y(t.questionToken),qn(": "),v(t.type),qn(";"),1&n?qn(" "):(Vn(),Hn()),qn("}")}function ye(e){x(e.literal)}function ve(e){var t=e.elements;0===t.length?qn("{}"):(qn("{"),Jn(e,t,432),qn("}"))}function be(e){0===e.elements.length?qn("[]"):(qn("["),Jn(e,e.elements,304),qn("]"))}function xe(e){On(e.propertyName,": "),y(e.dotDotDotToken),v(e.name),Nn(" = ",e.initializer)}function ke(e){Un(e,e.elements,4466|(e.multiLine?32768:0))}function Se(t){var n=65536&e.getEmitFlags(t);n&&Wn();var r=t.multiLine?32768:0,i=wr.languageVersion>=1?32:0;Jn(t,t.properties,263122|i|r),n&&Hn()}function Ce(t){var n=!1,r=!1;if(!(131072&e.getEmitFlags(t))){var i=t.expression.end,a=e.skipTrivia(wr.text,t.expression.end)+1,o=e.createToken(23);o.pos=i,o.end=a,n=sr(t,t.expression,o),r=sr(t,o,t.name)}x(t.expression),tr(n),qn(!n&&De(t.expression)?"..":"."),tr(r),v(t.name),nr(n,r)}function De(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var r=dr(n);return!n.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(23))}if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)){var i=e.getConstantValue(n);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}function Te(e){x(e.expression),qn("["),x(e.argumentExpression),qn("]")}function Ee(e){x(e.expression),Mn(e,e.typeArguments),Un(e,e.arguments,1296)}function we(e){qn("new "),x(e.expression),Mn(e,e.typeArguments),Un(e,e.arguments,9488)}function Ae(e){x(e.tag),qn(" "),x(e.template)}function Ne(e){qn("<"),v(e.type),qn(">"),x(e.expression)}function Pe(e){qn("("),x(e.expression),qn(")")}function Oe(e){Ct(e)}function Ie(e){Fn(e,e.decorators),wn(e,e.modifiers),Tt(e,Fe)}function Fe(e){Rn(e,e.typeParameters),jn(e,e.parameters),An(": ",e.type),qn(" "),v(e.equalsGreaterThanToken)}function Me(e){qn("delete "),x(e.expression)}function Re(e){qn("typeof "),x(e.expression)}function Le(e){qn("void "),x(e.expression)}function Be(e){qn("await "),x(e.expression)}function je(e){Yn(e.operator),ze(e)&&qn(" "),x(e.operand)}function ze(e){var t=e.operand;return 192===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function Je(e){x(e.operand),Yn(e.operator)}function Ue(e){var t=26!==e.operatorToken.kind,n=sr(e,e.left,e.operatorToken),r=sr(e,e.operatorToken,e.right);x(e.left),tr(n,t?" ":void 0),Zr(e.operatorToken.pos),Xn(e.operatorToken),Qr(e.operatorToken.end,!0),tr(r," "),x(e.right),nr(n,r)}function Ke(e){var t=sr(e,e.condition,e.questionToken),n=sr(e,e.questionToken,e.whenTrue),r=sr(e,e.whenTrue,e.colonToken),i=sr(e,e.colonToken,e.whenFalse);x(e.condition),tr(t," "),v(e.questionToken),tr(n," "),x(e.whenTrue),nr(t,n),tr(r," "),v(e.colonToken),tr(i," "),x(e.whenFalse),nr(r,i)}function qe(e){v(e.head),Jn(e,e.templateSpans,131072)}function Ve(e){qn("yield"),v(e.asteriskToken),Nn(" ",e.expression)}function We(e){qn("..."),x(e.expression)}function He(e){It(e)}function Ge(e){x(e.expression),Mn(e,e.typeArguments)}function $e(e){x(e.expression),e.type&&(qn(" as "),v(e.type))}function Xe(e){x(e.expression),qn("!")}function Ye(e){$n(e.keywordToken,e.pos),qn("."),v(e.name)}function Qe(e){x(e.expression),v(e.literal)}function Ze(e){$n(17,e.pos,e),et(e,!e.multiLine&&cr(e)),Wn(),Zr(e.statements.end),Hn(),$n(18,e.statements.end,e)}function et(t,n){var r=n||1&e.getEmitFlags(t)?384:65;Jn(t,t.statements,r)}function tt(e){wn(e,e.modifiers),v(e.declarationList),qn(";")}function nt(){qn(";")}function rt(e){x(e.expression),qn(";")}function it(e){var t=$n(90,e.pos,e);qn(" "),$n(19,t,e),x(e.expression),$n(20,e.expression.end,e),In(e,e.thenStatement),e.elseStatement&&(Qn(e),$n(82,e.thenStatement.end,e),211===e.elseStatement.kind?(qn(" "),v(e.elseStatement)):In(e,e.elseStatement))}function at(t){qn("do"),In(t,t.statement),e.isBlock(t.statement)?qn(" "):Qn(t),qn("while ("),x(t.expression),qn(");")}function ot(e){qn("while ("),x(e.expression),qn(")"),In(e,e.statement)}function st(e){var t=$n(88,e.pos);qn(" "),$n(19,t,e),lt(e.initializer),qn(";"),Nn(" ",e.condition),qn(";"),Nn(" ",e.incrementor),qn(")"),In(e,e.statement)}function ct(e){var t=$n(88,e.pos);qn(" "),$n(19,t),lt(e.initializer),qn(" in "),x(e.expression),$n(20,e.expression.end),In(e,e.statement)}function ut(e){var t=$n(88,e.pos);qn(" "),On(e.awaitModifier," "),$n(19,t),lt(e.initializer),qn(" of "),x(e.expression),$n(20,e.expression.end),In(e,e.statement)}function lt(e){void 0!==e&&(227===e.kind?v(e):x(e))}function dt(e){$n(77,e.pos),An(" ",e.label),qn(";")}function ft(e){$n(72,e.pos),An(" ",e.label),qn(";")}function _t(t,n,r){var i=r&&e.getParseTreeNode(r);return i&&i.kind===r.kind&&(n=e.skipTrivia(wr.text,n)),n=$n(t,n,r),i&&i.kind===r.kind&&Qr(n,!0),n}function pt(e){_t(96,e.pos,e),Nn(" ",e.expression),qn(";")}function mt(e){qn("with ("),x(e.expression),qn(")"),In(e,e.statement)}function gt(e){var t=$n(98,e.pos);qn(" "),$n(19,t),x(e.expression),$n(20,e.expression.end),qn(" "),v(e.caseBlock)}function ht(e){v(e.label),qn(": "),v(e.statement)}function yt(e){qn("throw"),Nn(" ",e.expression),qn(";")}function vt(e){qn("try "),v(e.tryBlock),e.catchClause&&(Qn(e),v(e.catchClause)),e.finallyBlock&&(Qn(e),qn("finally "),v(e.finallyBlock))}function bt(e){$n(78,e.pos),qn(";")}function xt(e){v(e.name),An(": ",e.type),Nn(" = ",e.initializer)}function kt(t){qn(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),Jn(t,t.declarations,272)}function St(e){Ct(e)}function Ct(e){Fn(e,e.decorators),wn(e,e.modifiers),qn("function"),y(e.asteriskToken),qn(" "),b(e.name),Tt(e,Et)}function Dt(e,t){At(t)}function Tt(t,n){var r=t.body;if(r)if(e.isBlock(r)){var i=65536&e.getEmitFlags(t);i&&Wn(),524288&e.getEmitFlags(t)?(n(t),zr?zr(4,r,Dt):At(r)):(fr(),n(t),zr?zr(4,r,Dt):At(r),_r()),i&&Hn()}else n(t),qn(" "),x(r);else n(t),qn(";")}function Et(e){Rn(e,e.typeParameters),Ln(e,e.parameters),An(": ",e.type)}function wt(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,wr))return!1;if(rr(t,t.statements,2)||ar(t,t.statements,2))return!1;for(var n,r=0,i=t.statements;r0&&v(e.attributes),qn("/>")}function rn(e){qn("<"),dn(e.tagName),Gn(e.attributes.properties," "),e.attributes.properties&&e.attributes.properties.length>0&&v(e.attributes),qn(">")}function an(e){Fr.writeLiteral(lr(e,!0))}function on(e){qn("")}function sn(e){Jn(e,e.properties,131328)}function cn(e){v(e.name),An("=",e.initializer)}function un(e){qn("{..."),x(e.expression),qn("}")}function ln(e){e.expression&&(qn("{"),y(e.dotDotDotToken),x(e.expression),qn("}"))}function dn(e){71===e.kind?x(e):v(e)}function fn(e){qn("case "),x(e.expression),qn(":"),pn(e,e.statements)}function _n(e){qn("default:"),pn(e,e.statements)}function pn(t,n){var r=1===n.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],wr));n.length>0&&Qr(n.pos);var i=81985;r&&(qn(" "),i&=-66),Jn(t,n,i)}function mn(e){qn(" "),Yn(e.token),qn(" "),Jn(e,e.types,272)}function gn(e){var t=$n(74,e.pos);qn(" "),e.variableDeclaration&&($n(19,t),v(e.variableDeclaration),$n(20,e.variableDeclaration.end),qn(" ")),v(e.block)}function hn(t){v(t.name),qn(": ");var n=t.initializer;if(Qr&&0==(512&e.getEmitFlags(n))){var r=e.getCommentRange(n);Qr(r.pos)}x(n)}function yn(e){v(e.name),e.objectAssignmentInitializer&&(qn(" = "),x(e.objectAssignmentInitializer))}function vn(e){e.expression&&(qn("..."),x(e.expression))}function bn(e){v(e.name),Nn(" = ",e.initializer)}function xn(t){Vn();var n=t.statements;if(Yr){if(0===n.length||!e.isPrologueDirective(n[0])||e.nodeIsSynthesized(n[0]))return void Yr(t,n,kn)}kn(t)}function kn(t){var n=t.statements;fr(),O(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});Jn(t,n,1,-1===r?n.length:r),_r()}function Sn(e){x(e.expression)}function Cn(e){Un(e,e.elements,272)}function Dn(t,n,r){for(var i=0;i0)&&Vn(),v(a),r&&r.set(a.expression.text,!0))}return t.length}function Tn(t){if(e.isSourceFile(t))m(t),Dn(t.statements);else for(var n=e.createMap(),r=0,i=t.sourceFiles;r=r.length||0===o;if(d&&16384&i)return qr&&qr(r),void(Vr&&Vr(r));if(7680&i&&qn(c(i)),qr&&qr(r),d)1&i?Vn():128&i&&!(262144&i)&&qn(" ");else{var f=0==(131072&i),_=f;rr(n,r,i)?(Vn(),_=!1):128&i&&qn(" "),64&i&&Wn();for(var p=void 0,m=void 0,g=s(i),h=0;h"],e[4096]=["[","]"],e}();e.forEachEmittedFile=t,e.emitFiles=a,e.createPrinter=o;var f;!function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(f||(f={}));var _;!function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.DelimitersMask=28]="DelimitersMask",e[e.AllowTrailingComma=32]="AllowTrailingComma",e[e.Indented=64]="Indented",e[e.SpaceBetweenBraces=128]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",e[e.Braces=512]="Braces",e[e.Parenthesis=1024]="Parenthesis",e[e.AngleBrackets=2048]="AngleBrackets",e[e.SquareBrackets=4096]="SquareBrackets",e[e.BracketsMask=7680]="BracketsMask",e[e.OptionalIfUndefined=8192]="OptionalIfUndefined",e[e.OptionalIfEmpty=16384]="OptionalIfEmpty",e[e.Optional=24576]="Optional",e[e.PreferNewLine=32768]="PreferNewLine",e[e.NoTrailingNewLine=65536]="NoTrailingNewLine",e[e.NoInterveningComments=131072]="NoInterveningComments",e[e.NoSpaceIfEmpty=262144]="NoSpaceIfEmpty",e[e.SingleElement=524288]="SingleElement",e[e.Modifiers=131328]="Modifiers",e[e.HeritageClauses=256]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=448]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=65]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=336]="TupleTypeElements",e[e.UnionTypeConstituents=260]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=432]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=304]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=263122]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",e[e.CommaListElements=272]="CommaListElements",e[e.CallExpressionArguments=1296]="CallExpressionArguments",e[e.NewExpressionArguments=9488]="NewExpressionArguments",e[e.TemplateExpressionSpans=131072]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=384]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=65]="MultiLineBlockStatements",e[e.VariableDeclarationList=272]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=256]="ClassHeritageClauses",e[e.ClassMembers=65]="ClassMembers",e[e.InterfaceMembers=65]="InterfaceMembers",e[e.EnumMembers=81]="EnumMembers",e[e.CaseBlockClauses=65]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=432]="NamedImportsOrExportsElements",e[e.JsxElementChildren=131072]="JsxElementChildren",e[e.JsxElementAttributes=131328]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=272]="HeritageClauseTypes",e[e.SourceFileStatements=65537]="SourceFileStatements",e[e.Decorators=24577]="Decorators",e[e.TypeArguments=26960]="TypeArguments",e[e.TypeParameters=26960]="TypeParameters",e[e.Parameters=1360]="Parameters",e[e.IndexSignatureParameters=4432]="IndexSignatureParameters"}(_||(_={}))}(o||(o={}));var o;!function(e){function t(e,t,n,r,i){function a(e,t,n){o.push({name:e,writeByteOrderMark:n,text:t})}var o=[],s=e.emit(t,a,r,n,i);return{outputFiles:o,emitSkipped:s.emitSkipped}}function n(n){function r(t){var n=t.getCompilerOptions().module!==e.ModuleKind.None;x!==n&&(x=n,S=x?b():v(),C.clear(),D.clear()),E.clear(),k=void 0,e.mutateMap(C,e.arrayToMap(t.getSourceFiles(),function(e){return e.path}),{createNewValue:function(e,n){return a(t,n)},onDeleteValue:o,onExistingValue:function(e,n){return s(t,e,n)}})}function i(e){T.set(e,!0),D.delete(e)}function a(e,t){return i(t.path),S.onAddSourceFile(e,t),{version:t.version,signature:void 0}}function o(e,t){T.delete(t),D.delete(t),S.onRemoveSourceFile(t)}function s(e,t,n){t.version!==n.version?(i(n.path),t.version=n.version,S.onUpdateSourceFile(e,n)):S.onUpdateSourceFileWithSameVersion(e,n)&&i(n.path)}function c(e){S||r(e)}function u(e){S&&r(e)}function l(t,n){c(t);var r=t.getSourceFileByPath(n);return r?g(t,r)?S.getFilesAffectedByUpdatedShape(t,r):[r]:e.emptyArray}function d(t,n){c(t);var r=t.getCompilerOptions();if(!T.size)return e.emptyArray;if(r.outFile||r.out)return e.Debug.assert(0===D.size),T.clear(),[t.emit(void 0,n)];var i,a=e.createMap();return T.forEach(function(e,r){l(t,r).forEach(function(e){D.delete(e.path),a.has(e.path)||(a.set(e.path,!0),(i||(i=[])).push(t.emit(e,n)))})}),T.clear(),i||e.emptyArray}function f(t,n){c(t),e.Debug.assert(0===T.size);var r=t.getCompilerOptions();if(r.outFile||r.out)return e.Debug.assert(0===D.size),t.getSemanticDiagnostics(void 0,n);for(var i,a=0,o=t.getSourceFiles();a0?(o=n.computeHash(c.outputFiles[0].text),a.signature=o):o=s}return!s||o!==s}function h(t,r){function i(t){a||(a=e.createMap()),a.set(t,!0)}var a;if(r.imports&&r.imports.length>0)for(var o=t.getTypeChecker(),s=0,c=r.imports;s0)for(var _=0,p=r.referencedFiles;_0;){var c=s.pop();if(!i.has(c)){var u=t.getSourceFileByPath(c);i.set(c,u),u&&g(t,u)&&s.push.apply(s,o(c))}}return e.flatMapIter(i.values(),function(e){return e})}var c=e.createMap();return{onAddSourceFile:t,onRemoveSourceFile:a,onUpdateSourceFile:n,onUpdateSourceFileWithSameVersion:r,getFilesAffectedByUpdatedShape:s}}var x,k,S,C=e.createMap(),D=e.createMap(),T=e.createMap(),E=e.createMap();return{updateProgram:u,getFilesAffectedBy:l,emitChangedFiles:d,getSemanticDiagnostics:f,clear:p}}e.getFileEmitOutput=t,e.createBuilder=n}(o||(o={}));var o;!function(e){function t(t,n,r){for(void 0===r&&(r="tsconfig.json");;){var i=e.combinePaths(t,r);if(n(i))return i;var a=e.getDirectoryPath(t);if(a===t)break;t=a}}function n(t,n){var r=e.getDirectoryPath(n),i=e.isRootedDiskPath(t)?t:e.combinePaths(r,t);return e.normalizePath(i)}function r(t,n,r){var i;return e.forEach(t,function(t){var a=e.getNormalizedPathComponents(t,n);if(a.pop(),!i)return void(i=a);for(var o=Math.min(i.length,a.length),s=0;se.getRootLength(t)&&!a(t)){o(e.getDirectoryPath(t)),e.sys.createDirectory(t)}}function s(t,n,r){l||(l=e.createMap());var i=e.sys.createHash(n),a=e.sys.getModifiedTime(t);if(a){var o=l.get(t);if(o&&o.byteOrderMark===r&&o.hash===i&&o.mtime.getTime()===a.getTime())return}e.sys.writeFile(t,n,r);var s=e.sys.getModifiedTime(t);l.set(t,{hash:i,byteOrderMark:r,mtime:s})}function c(n,r,i,a){try{e.performance.mark("beforeIOWrite"),o(e.getDirectoryPath(e.normalizePath(n))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?s(n,r,i):e.sys.writeFile(n,r,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}}function u(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var l,d=e.createMap(),f=e.getNewLineCharacter(t),_=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:i,getDefaultLibLocation:u,getDefaultLibFileName:function(t){return e.combinePaths(u(),e.getDefaultLibFileName(t))},writeFile:c,getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:r,getNewLine:function(){return f},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+f)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:_}}function a(t,n,r){var i=t.getOptionsDiagnostics(r).concat(t.getSyntacticDiagnostics(n,r),t.getGlobalDiagnostics(r),t.getSemanticDiagnostics(n,r));return t.getCompilerOptions().declaration&&e.addRange(i,t.getDeclarationDiagnostics(n,r)),e.sortAndDeduplicateDiagnostics(i)}function o(e,t){for(var n="",r=0,i=e;r=4,A=(v+1+"").length;w&&(A=Math.max(E.length,A)),s+=n.getNewLine();for(var N=g;N<=v;N++){w&&g+10||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}var l=x().getEmitResolver(a.outFile||a.out?void 0:n);e.performance.mark("beforeEmit");var d=o?[]:e.getTransformers(a,s),_=e.emitFiles(l,f(r),n,o,d);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),_}function E(e){return w(c(e))}function w(e){return Ye.get(e)}function A(t,n,r){return t?n(t,r):e.sortAndDeduplicateDiagnostics(e.flatMap(ye.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),n(e,r)}))}function N(e,t){return A(e,I,t)}function P(e,t){return A(e,M,t)}function O(e,t){var n=ye.getCompilerOptions();return!e||n.out||n.outFile?j(e,t):A(e,U,t)}function I(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=B(t),e.isCheckJsEnabledForFile(t,a)&&(t.additionalSyntacticDiagnostics=e.concatenate(t.additionalSyntacticDiagnostics,t.jsDocDiagnostics))),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function F(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(xe=void 0,be=void 0),t}}function M(e,t){return J(e,t,De,R)}function R(t,n){return F(function(){if(a.skipLibCheck&&t.isDeclarationFile||a.skipDefaultLibCheck&&t.hasNoDefaultLib)return e.emptyArray;var r=x();e.Debug.assert(!!t.bindDiagnostics);var i=3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||e.isCheckJsEnabledForFile(t,a),o=i?t.bindDiagnostics:e.emptyArray,s=i?r.getDiagnostics(t,n):e.emptyArray,c=we.getDiagnostics(t.fileName),u=je.getDiagnostics(t.fileName),l=o.concat(s,c,u);return e.filter(l,L)})}function L(t){var n=t.file,r=t.start;if(n)for(var i=e.getLineStarts(n),a=e.computeLineAndCharacterOfPosition(i,r).line;a>0;){var o=n.text.slice(i[a-1],i[a]),s=b.exec(o);if(!s)return!0;if(s[3])return!1;a--}return!0}function B(t){return F(function(){function n(t){switch(u.kind){case 146:case 149:if(u.questionToken===t)return void c.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 226:if(u.type===t)return void c.push(s(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 237:return void c.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 243:if(t.isExportEquals)return void c.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 259:if(108===t.token)return void c.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 230:return void c.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 233:return void c.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 231:return void c.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 232:return void c.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 203:return void c.push(s(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 202:return void c.push(s(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 184:e.Debug.fail()}var i=u;u=t,e.forEachChild(t,n,r),u=i}function r(t){switch(u.decorators!==t||a.experimentalDecorators||c.push(s(u,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),u.kind){case 229:case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:if(t===u.typeParameters)return void c.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 208:if(t===u.modifiers)return i(t,208===u.kind);break;case 149:if(t===u.modifiers){for(var r=0,l=t;r0),d.path=n,o.useCaseSensitiveFileNames()){var m=n.toLowerCase(),g=Qe.get(m);g?Q(t,g.fileName,i,s,c):Qe.set(m,d)}Re=Re||d.hasNoDefaultLib,a.noResolve||(te(d,r),ne(d)),oe(d),r?Ce.unshift(d):Ce.push(d)}return d}function te(t,r){e.forEach(t.referencedFiles,function(e){Y(n(e.fileName,t.fileName),r,void 0,t,e.pos,e.end)})}function ne(t){for(var n=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=Ve(n,t.fileName),i=0;iAe,g=p&&!h(a,u)&&!a.noResolve&&on&&(je.add(e.createDiagnosticForNodeInSourceFile(a.configFile,m.initializer.elements[n],r,i,o,s)),c=!1)}}c&&je.add(e.createCompilerDiagnostic(r,i,o,s))}function le(t,n,r,i){for(var a=!0,o=de(),s=0,c=o;s1})&&fe(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!a.noEmit&&a.allowJs&&a.declaration&&fe(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),a.checkJs&&!a.allowJs&&je.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),a.emitDecoratorMetadata&&!a.experimentalDecorators&&fe(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),a.jsxFactory?(a.reactNamespace&&fe(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(a.jsxFactory,d)||_e("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,a.jsxFactory)):a.reactNamespace&&!e.isIdentifierText(a.reactNamespace,d)&&_e("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,a.reactNamespace),!a.noEmit&&!a.suppressOutputPathCheck){var b=f(),x=e.createMap();e.forEachEmittedFile(b,function(e){t(e.jsFilePath,x),t(e.declarationFilePath,x)})}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),ye}function h(t,n){function r(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return t.allowJs||!t.noImplicitAny?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}switch(n.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||i();case".js":return i()}}function y(t){return e.Debug.assert(t.every(function(e){return void 0!==e}),"A name is undefined.",function(){return JSON.stringify(t)}),t}function v(e){for(var t=e.imports,n=e.moduleAugmentations,r=t.map(function(e){return e.text}),i=0,a=n;i=i.length)break;var s=o;if(34===i.charCodeAt(s)){for(o++;o32;)o++;a.push(i.substring(s,o))}}r(a)}var s={},u=[],l=[];return r(t),{options:s,fileNames:u,errors:l}}function c(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=n(),i=r.optionNameMap,a=r.shortOptionNames;if(t){var o=a.get(e);void 0!==o&&(e=o)}return i.get(e)}function u(t,n){var r=f(t,n);return e.isString(r)?l(t,r):{config:{},error:r}}function l(t,n){var r=e.parseJsonText(t,n);return{config:m(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function d(t,n){var r=f(t,n);return e.isString(r)?e.parseJsonText(t,r):{parseDiagnostics:[r]}}function f(t,n){var r;try{r=n(t)}catch(n){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):r}function _(t){return e.arrayToMap(t,function(e){return e.name})}function p(){return void 0===se&&(se=_([{name:"compilerOptions",type:"object",elementOptions:_(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:_(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:_(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])),se}function m(e,t){return g(e,t,void 0,void 0)}function g(t,n,r,a){function o(i,o,s,l){for(var d={},f=0,_=i.properties;f<_.length;f++){var p=_[f];if(261===p.kind){p.questionToken&&n.push(e.createDiagnosticForNodeInSourceFile(t,p.questionToken,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?")),u(p.name)||n.push(e.createDiagnosticForNodeInSourceFile(t,p.name,e.Diagnostics.String_literal_with_double_quotes_expected));var m=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(p.name)),g=o?o.get(m):void 0;s&&!g&&n.push(e.createDiagnosticForNodeInSourceFile(t,p.name,s,m));var h=c(p.initializer,g);if(void 0!==m&&(d[m]=h,a&&(l||o===r))){var v=y(g,h);l?v&&a.onSetValidOptionKeyValueInParent(l,g,h):o===r&&(v?a.onSetValidOptionKeyValueInRoot(m,p.name,h,p.initializer):g||a.onSetUnknownOptionKeyValueInRoot(m,p.name,h,p.initializer))}}else n.push(e.createDiagnosticForNodeInSourceFile(t,p,e.Diagnostics.Property_assignment_expected))}return d}function s(e,t){return e.map(function(e){return c(e,t)})}function c(r,a){function c(i){i&&n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,a.name,h(a)))}switch(r.kind){case 101:return c(a&&"boolean"!==a.type),!0;case 86:return c(a&&"boolean"!==a.type),!1;case 95:return c(a&&"extends"===a.name),null;case 9:u(r)||n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.String_literal_with_double_quotes_expected)),c(a&&e.isString(a.type)&&"string"!==a.type);var l=r.text;if(a&&!e.isString(a.type)){var d=a;d.type.has(l.toLowerCase())||n.push(i(d,function(n,i,a){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a)}))}return l;case 8:return c(a&&"number"!==a.type),Number(r.text);case 178:c(a&&"object"!==a.type);var f=r;if(a){var _=a;return o(f,_.elementOptions,_.extraKeyDiagnosticMessage,_.name)}return o(f,void 0,void 0,void 0);case 177:return c(a&&"list"!==a.type),s(r.elements,a&&a.element)}a?c(!0):n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function u(n){return e.isStringLiteral(n)&&e.isStringDoubleQuoted(n,t)}return t.jsonObject?o(t.jsonObject,r,void 0,void 0):{}}function h(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function y(t,n){if(t){if(S(n))return!0;if("list"===t.type)return e.isArray(n);return typeof n===(e.isString(t.type)?t.type:"string")}}function v(t,r,i){function a(e){return"string"===e.type||"number"===e.type||"boolean"===e.type?void 0:"list"===e.type?a(e.element):e.type}function o(t,n){return e.forEachEntry(n,function(e,n){if(e===t)return n})}function s(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":return e.isFilePath?"./":"";case"list":return[];case"object":return{};default:return e.type.keys().next().value}}function c(e){return Array(e+1).join(" ")}var u=e.extend(t,e.defaultInitCompilerOptions),l=function(t){var r=e.createMap(),i=n().optionNameMap;for(var s in t)!function(n){if(e.hasProperty(t,n)){if(i.has(n)&&i.get(n).category===e.Diagnostics.Command_line_Options)return"continue";var s=t[n],c=i.get(n.toLowerCase());if(c){var u=a(c);u?"list"===c.type?r.set(n,s.map(function(e){return o(e,u)})):r.set(n,o(s,u)):r.set(n,s)}}}(s);return r}(u);return function(){for(var t=e.createMultiMap(),n=0,a=e.optionDeclarations;n=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,s.concat([u]).join(" -> "))),{raw:t||m(n,c)};var l=t?N(t,r,i,o,a,c):P(n,r,i,o,a,c);if(l.extendedConfigPath){s=s.concat([u]);var d=I(n,l.extendedConfigPath,r,i,o,s,c);if(d&&w(d)){var f=d.raw,_=l.raw,p=function(e){var t=_[e]||f[e];t&&(_[e]=t)};p("include"),p("exclude"),p("files"),void 0===_.compileOnSave&&(_.compileOnSave=f.compileOnSave),l.options=e.assign({},d.options,l.options)}}return l}function N(t,n,r,i,a,o){e.hasProperty(t,"excludes")&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var s=B(t.compilerOptions,r,o,a),c=z(t.typeAcquisition||t.typingOptions,r,o,a);t.compileOnSave=F(t,r,o);var u;if(t.extends)if(e.isString(t.extends)){var l=a?C(a,r):r;u=O(t.extends,n,l,i,o,e.createCompilerDiagnostic)}else o.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,typeAcquisition:c,extendedConfigPath:u}}function P(t,n,r,i,a,o){var s,c,u,l=L(a),d={onSetValidOptionKeyValueInParent:function(t,n,i){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t),("compilerOptions"===t?l:"typeAcquisition"===t?s||(s=j(a)):c||(c=j(a)))[n.name]=K(n,r,i)},onSetValidOptionKeyValueInRoot:function(s,c,l,d){switch(s){case"extends":var f=a?C(a,r):r;return void(u=O(l,n,f,i,o,function(n,r){return e.createDiagnosticForNodeInSourceFile(t,d,n,r)}));case"files":return void(0===l.length&&o.push(e.createDiagnosticForNodeInSourceFile(t,d,e.Diagnostics.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(n,r,i,a){"excludes"===n&&o.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},f=g(t,o,p(),d);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:j(a)),{raw:f,options:l,typeAcquisition:s,extendedConfigPath:u}}function O(t,n,r,i,a,o){if(t=e.normalizeSlashes(t),!(e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")))return void a.push(o(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t));var s=e.toPath(t,r,i);return n.fileExists(s)||e.endsWith(s,".json")||(s+=".json",n.fileExists(s))?s:void a.push(o(e.Diagnostics.File_0_does_not_exist,t))}function I(t,n,r,i,a,o,s){var c=d(n,function(e){return r.readFile(e)});if(t&&(t.extendedSourceFiles||(t.extendedSourceFiles=[])).push(c.fileName),c.parseDiagnostics.length)return void s.push.apply(s,c.parseDiagnostics);var u=e.getDirectoryPath(n),l=A(void 0,c,r,u,e.getBaseFileName(n),a,o,s);if(t&&(g=t.extendedSourceFiles).push.apply(g,c.extendedSourceFiles),w(l)){var f=e.convertToRelativePath(u,i,a),_=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(f,t)},p=function(t){m[t]&&(m[t]=e.map(m[t],_))},m=l.raw;p("include"),p("exclude"),p("files")}return l;var g}function F(t,n,r){if(e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){var i=U(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return!("boolean"!=typeof i||!i)&&i}}function M(e,t,n){var r=[];return{options:B(e,t,r,n),errors:r}}function R(e,t,n){var r=[];return{options:z(e,t,r,n),errors:r}}function L(t){return"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0}:{}}function B(t,n,r,i){var a=L(i);return J(e.optionDeclarations,t,n,a,e.Diagnostics.Unknown_compiler_option_0,r),a}function j(t){return{enable:"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function z(n,r,i,a){var o=j(a),s=t(n);return J(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,i),o}function J(t,n,r,i,a,o){if(n){var s=_(t);for(var c in n){var u=s.get(c);u?i[u.name]=U(u,n[c],r,o):o.push(e.createCompilerDiagnostic(a,c))}}}function U(t,n,r,i){if(y(t,n)){var a=t.type;return"list"===a&&e.isArray(n)?W(t,n,r,i):e.isString(a)?q(t,r,n):V(t,n,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,h(t)))}function K(t,n,r){if(!S(r)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(r,function(e){return K(i.element,n,e)}),function(e){return!!e}):r}return e.isString(t.type)?q(t,n,r):t.type.get(e.isString(r)?r.toLowerCase():r)}}function q(t,n,r){return t.isFilePath&&""===(r=e.normalizePath(e.combinePaths(n,r)))&&(r="."),r}function V(e,t,n){if(!S(t)){var i=t.toLowerCase(),a=e.type.get(i);if(void 0!==a)return a;n.push(r(e))}}function W(t,n,r,i){return e.filter(e.map(n,function(e){return U(t.element,e,r,i)}),function(e){return!!e})}function H(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function G(t,n,r,i,a,o,s,c,u){i=e.normalizePath(i);var l,d;return n&&(l=X(n,s,!1,u,"include")),r&&(d=X(r,s,!0,u,"exclude")),$({filesSpecs:t,includeSpecs:n,excludeSpecs:r,validatedIncludeSpecs:l,validatedExcludeSpecs:d,wildcardDirectories:Q(l,d,i,o.useCaseSensitiveFileNames)},i,a,o,c)}function $(t,n,r,i,a){void 0===a&&(a=[]),n=e.normalizePath(n);var o=i.useCaseSensitiveFileNames?ne:re,s=e.createMap(),c=e.createMap(),u=t.filesSpecs,l=t.validatedIncludeSpecs,d=t.validatedExcludeSpecs,f=t.wildcardDirectories,_=e.getSupportedExtensions(r,a);if(u)for(var p=0,m=u;p0)for(var y=0,v=i.readDirectory(n,_,d,l,void 0);y=n.end}function A(e,t,n){return e.pos<=t&&e.end>=n}function N(e,t,n){return P(e.pos,e.end,t,n)}function P(e,t,n,r){return Math.max(e,n)=t.end)return n});return e.Debug.assert(!n||e.contains(n.getChildren(),t)),n}function j(e,t,n){return J(e,t,n,function(e){return ne(e.kind)})}function z(e,t,n){return J(e,t,n,function(e){return re(e.kind)})}function J(e,t,n,r){return K(e,t,!1,r,!1,n)}function U(e,t,n,r){return K(e,t,!0,void 0,r,n)}function K(t,n,r,i,a,o){var s=t;e:for(;;){if(e.isToken(s))return s;for(var c=0,u=s.getChildren();cn)break;var f=l.getEnd();if(nr.getStart(t)&&nt.end||s.pos===t.end)&&Z(s))return r(s)}}return r(n)}function W(t,n,r,i){function a(t){if(e.isToken(t))return t;var n=t.getChildren(),r=s(n,n.length);return r&&a(r)}function o(c){if(e.isToken(c))return c;for(var u=c.getChildren(),l=0;l=t||!Z(d)||$(d)){var f=s(u,l);return f&&a(f)}return o(d)}}if(e.Debug.assert(void 0!==r||265===c.kind||e.isJSDocCommentContainingNode(c)),u.length){var f=s(u,u.length);return f&&a(f)}}function s(t,n){for(var r=n-1;r>=0;r--){if($(t[r]))e.Debug.assert(r>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Z(t[r]))return t[r]}}var c=o(r||n);return e.Debug.assert(!(c&&$(c))),c}function H(t,n){var r=W(n,t);if(r&&e.isStringTextContainingNode(r)){var i=r.getStart(),a=r.getEnd();if(ir.getStart(t)}function Y(t,n,r,i){return!!e.formatting.getRangeOfEnclosingComment(t,n,!1,void 0,r,i)}function Q(t,n){function r(e){var n=t.text;return n.length>=e.pos+3&&"/"===n[e.pos]&&"*"===n[e.pos+1]&&"*"===n[e.pos+2]}var i=U(t,n,!1),a=e.getLeadingCommentRanges(t.text,i.pos);return e.forEach(a,r)}function Z(e){return 0!==e.getWidth()}function ee(t){var n=e.getCombinedModifierFlags(t),r=[];return 8&n&&r.push("private"),16&n&&r.push("protected"),4&n&&r.push("public"),32&n&&r.push("static"),128&n&&r.push("abstract"),1&n&&r.push("export"),e.isInAmbientContext(t)&&r.push("declare"),r.length>0?r.join(","):""}function te(t){return 159===t.kind||181===t.kind?t.typeArguments:e.isFunctionLike(t)||229===t.kind||230===t.kind?t.typeParameters:void 0}function ne(t){return 71===t||e.isKeyword(t)}function re(e){return 9===e||8===e||ne(e)}function ie(e){return 2===e||3===e}function ae(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))}function oe(e){return 17<=e&&e<=70}function se(t,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart()0&&146===e.declarations[0].kind}function n(n,i){return r(n,function(n){var r=n.flags;return 3&r?t(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r?e.SymbolDisplayPartKind.propertyName:32768&r?e.SymbolDisplayPartKind.propertyName: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?e.SymbolDisplayPartKind.aliasName:2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(i))}function r(t,n){return{text:t,kind:e.SymbolDisplayPartKind[n]}}function i(){return r(" ",e.SymbolDisplayPartKind.space)}function a(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}function s(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}function c(t){var n=e.stringToToken(t);return void 0===n?u(t):a(n)}function u(t){return r(t,e.SymbolDisplayPartKind.text)}function l(e){return e.getNewLine?e.getNewLine():A}function d(){return r("\n",e.SymbolDisplayPartKind.lineBreak)}function f(e){try{return e(w),w.displayParts()}finally{w.clear()}}function _(e,t,n,r){return f(function(i){e.getSymbolDisplayBuilder().buildTypeDisplay(t,i,n,r)})}function p(e,t,n,r,i){return f(function(a){e.getSymbolDisplayBuilder().buildSymbolDisplay(t,a,n,r,i)})}function m(e,t,n,r){return r|=65536,f(function(i){e.getSymbolDisplayBuilder().buildSignatureDisplay(t,i,n,r)})}function g(t,n,r){if(h(r)||e.isStringOrNumericLiteral(r)&&144===r.parent.kind)return e.getTextOfIdentifierOrLiteral(r);var i=e.getLocalSymbolForExportDefault(n);return t.symbolToString(i||n)}function h(e){return e.parent&&(242===e.parent.kind||246===e.parent.kind)&&e.parent.propertyName===e}function y(t){var n=t.length;return n>=2&&t.charCodeAt(0)===t.charCodeAt(n-1)&&e.isSingleOrDoubleQuote(t.charCodeAt(0))?t.substring(1,n-1):t}function v(t,n){for(var r=[],i=2;i=0){var d=c-o;d>0&&i.push({length:d,classification:e.TokenClass.Whitespace})}i.push({length:u,classification:r(l)}),o=c+u}var f=n.length-o;return f>0&&i.push({length:f,classification:e.TokenClass.Whitespace}),{entries:i,finalLexState:t.endOfLineState}}function r(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;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:default:return e.TokenClass.Identifier}}function i(e,t,r){return n(a(e,t,r),e)}function a(n,r,i){function a(e,t,n){if(8!==n){0===e&&o>0&&(e+=o),e-=o,t-=o;var r=t-e;r>0&&(p.spans.push(e),p.spans.push(r),p.spans.push(n))}}for(var o=0,s=0,_=0;f.length>0;)f.pop();switch(r){case 3:n='"\\\n'+n,o=3;break;case 2:n="'\\\n"+n,o=3;break;case 1:n="/*\n"+n,o=3;break;case 4:n="`\n"+n,o=2;break;case 5:n="}\n"+n,o=2;case 6:f.push(14)}l.setText(n);var p={endOfLineState:0,spans:[]},m=0;do{if(s=l.scan(),!e.isTrivia(s)){if(41!==s&&63!==s||d[_]){if(23===_&&c(s))s=71;else if(c(_)&&c(s)&&!t(_,s))s=71;else if(71===_&&27===s)m++;else if(29===s&&m>0)m--;else if(119===s||136===s||133===s||122===s||137===s)m>0&&!i&&(s=71);else if(14===s)f.push(s);else if(17===s)f.length>0&&f.push(s);else if(18===s&&f.length>0){var g=e.lastOrUndefined(f);14===g?(s=l.reScanTemplateToken(),16===s?f.pop():e.Debug.assertEqual(s,15,"Should have been a template middle.")):(e.Debug.assertEqual(g,17,"Should have been an open brace"),f.pop())}}else 12===l.reScanSlashToken()&&(s=12);_=s}!function(){var t=l.getTokenPos(),r=l.getTextPos();if(a(t,r,u(s)),r>=n.length)if(9===s){var i=l.getTokenText();if(l.isUnterminated()){for(var o=i.length-1,c=0;92===i.charCodeAt(o-c);)c++;if(1&c){var d=i.charCodeAt(0);p.endOfLineState=34===d?3:2}}}else 3===s?l.isUnterminated()&&(p.endOfLineState=1):e.isTemplateLiteralKind(s)?l.isUnterminated()&&(16===s?p.endOfLineState=5:13===s?p.endOfLineState=4:e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+s)):f.length>0&&14===e.lastOrUndefined(f)&&(p.endOfLineState=6)}()}while(1!==s);return p}function o(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}function s(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}function c(e){return e>=72&&e<=142}function u(t){if(c(t))return 3;if(o(t)||s(t))return 5;if(t>=17&&t<=70)return 10;switch(t){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(t)?6:2}}var l=e.createScanner(5,!1),d=[];d[71]=!0,d[9]=!0,d[8]=!0,d[12]=!0,d[99]=!0,d[43]=!0,d[44]=!0,d[20]=!0,d[22]=!0,d[18]=!0,d[101]=!0,d[86]=!0;var f=[];return{getClassificationsForLine:i,getEncodedLexicalClassifications:a}}function n(e,t,n,r,a){return o(i(e,t,n,r,a))}function r(e,t){switch(t){case 233:case 229:case 230:case 228:e.throwIfCancellationRequested()}}function i(t,n,i,a,o){function s(e,t,n){l.push(e),l.push(t),l.push(n)}function c(t,n){var r=t.getFlags();if(0!=(788448&r)){if(32&r)return 11;if(384&r)return 12;if(524288&r)return 16;if(2&n){if(64&r)return 13;if(262144&r)return 15}else if(1536&r&&(4&n||1&n&&function(t){return e.forEach(t.declarations,function(t){return 233===t.kind&&1===e.getModuleInstanceState(t)})}(t)))return 14}}function u(i){if(i&&e.textSpanIntersectsWith(o,i.getFullStart(),i.getFullWidth())){var l=i.kind;if(r(n,l),71===l&&!e.nodeIsMissing(i)){var d=i;if(a.has(d.escapedText)){var f=t.getSymbolAtLocation(i);if(f){var _=c(f,e.getMeaningFromLocation(i));_&&s(i.getStart(),i.getWidth(),_)}}}e.forEachChild(i,u)}}var l=[];return u(i),{spans:l,endOfLineState:0}}function a(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";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"}}function o(t){e.Debug.assert(t.spans.length%3==0);for(var n=t.spans,r=[],i=0;i=0),i>0){var s=n||m(t.kind,t);s&&a(r,i,s)}return!0}function p(e){switch(e.parent&&e.parent.kind){case 251:if(e.parent.tagName===e)return 19;break;case 252:if(e.parent.tagName===e)return 20;break;case 250:if(e.parent.tagName===e)return 21;break;case 253:if(e.parent.name===e)return 22}}function m(t,n){if(e.isKeyword(t))return 3;if((27===t||29===t)&&n&&e.getTypeArgumentOrTypeParameterList(n.parent))return 10;if(e.isPunctuation(t)){if(n){if(58===t&&(226===n.parent.kind||149===n.parent.kind||146===n.parent.kind||253===n.parent.kind))return 5;if(194===n.parent.kind||192===n.parent.kind||193===n.parent.kind||195===n.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 253===n.parent.kind?24:6;if(12===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(n)switch(n.parent.kind){case 229:if(n.parent.name===n)return 11;return;case 145:if(n.parent.name===n)return 15;return;case 230:if(n.parent.name===n)return 13;return;case 232:if(n.parent.name===n)return 12;return;case 233:if(n.parent.name===n)return 14;return;case 146:if(n.parent.name===n)return e.isThisIdentifier(n)?3:17;return}return 2}}function g(i){if(i&&e.decodedTextSpanIntersectsWith(h,y,i.pos,i.getFullWidth())){r(t,i.kind);for(var a=0,o=i.getChildren(n);a=e.pos&&n<=e.end&&e});if(c){var u={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:[]},d=t.text.substr(c.pos,n-c.pos),f=C.exec(d);if(f){var _=f[1],p=f[2],g=f[3],h=e.getDirectoryPath(t.path);if("path"===p){var y=m(g,c.pos+_.length);u.entries=a(g,h,e.getSupportedExtensions(r),!0,y,i,t.path)}else{var v={start:c.pos+_.length,length:f[0].length-_.length};u.entries=l(i,r,h,v)}}return u}}}}function l(t,n,r,i,a){if(void 0===a&&(a=[]),n.types)for(var o=0,s=n.types;o=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}function h(t){return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(e.normalizePath(t)):e.normalizePath(t)}function y(e,t){return S(e,e.getDirectories,t)}function v(e,t,n,r,i){return S(e,e.readDirectory,t,n,r,i)}function b(e,t){return S(e,e.readFile,t)}function x(e,t){return S(e,e.fileExists,t)}function k(t,n){try{return e.directoryProbablyExists(n,t)}catch(e){}}function S(e,t){for(var n=[],r=2;r0&&(fe=j(r,i)),!0}function v(n){var r=241===n.kind?238:244,i=e.getAncestor(n,r),a=i.moduleSpecifier;if(!a)return!1;oe=!0,se=!1;var o=t.getSymbolAtLocation(a);if(!o)return fe=e.emptyArray,!0;var s=t.getExportsAndPropertiesOfModule(o);return fe=B(s,n.elements),!0}function b(n){oe=!0,se=!0,de=1;var r=e.getClassExtendsHeritageClauseElement(n),i=e.getClassImplementsHeritageClauseElements(n);if(r||i){var a=Q.parent,o=e.isClassElement(a)&&e.getModifierFlags(a);if(71===Q.kind&&!U(Q))switch(Q.getText()){case"private":o|=8;break;case"static":o|=32}if(!(8&o)){var s=void 0;r&&(s=t.getTypeAtLocation(r),32&o&&(s=t.getTypeOfSymbolAtLocation(s.symbol,n)));var c=32&o?e.emptyArray:e.flatMap(i||e.emptyArray,function(e){return t.getPropertiesOfType(t.getTypeAtLocation(e))});fe=z(s?t.getPropertiesOfType(s):e.emptyArray,c,n.members,o)}}}function D(t){if(t)switch(t.kind){case 17:case 26:var n=t.parent;if(e.isObjectLiteralExpression(n)||e.isObjectBindingPattern(n))return n}}function T(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 241:case 245:return e.parent}}}function w(t){return e.isClassElement(t.parent)&&e.isClassLike(t.parent.parent)}function N(t){return e.isParameter(t)&&e.isConstructorDeclaration(t.parent)}function P(t){return t.parent&&N(t.parent)&&(S(t.kind)||e.isDeclarationName(t))}function O(t){if(t)switch(t.kind){case 17:case 26:if(e.isClassLike(t.parent))return t.parent;break;case 25:case 18:if(e.isClassLike(ie))return ie;if(w(ie)&&ie.parent.name===ie)return ie.parent.parent;break;default:if(w(t)&&(x(t.kind)||k(t.getText())))return t.parent.parent}if(ie&&286===ie.kind&&e.isClassLike(ie.parent))return ie.parent}function I(t){if(t)switch(t.kind){case 19:case 26:return e.isConstructorDeclaration(t.parent)&&t.parent;default:if(P(t))return t.parent.parent}}function F(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 179:case 254:case 253:case 255:if(t&&(250===t.kind||251===t.kind))return t;if(253===t.kind)return t.parent.parent;break;case 9:if(t&&(253===t.kind||255===t.kind))return t.parent.parent;break;case 18:if(t&&256===t.kind&&t.parent&&253===t.parent.kind)return t.parent.parent.parent;if(t&&255===t.kind)return t.parent.parent}}}function M(t){var n=t.parent.kind;switch(t.kind){case 26:return 226===n||227===n||208===n||232===n||R(n)||230===n||175===n||231===n||e.isClassLike(t.parent)&&t.parent.typeParameters&&t.parent.typeParameters.end>=t.pos;case 23:return 175===n;case 56:return 176===n;case 21:return 175===n;case 19:return 260===n||R(n);case 17:return 232===n||230===n||163===n;case 25:return 148===n&&t.parent&&t.parent.parent&&(230===t.parent.parent.kind||163===t.parent.parent.kind);case 27:return 229===n||199===n||230===n||231===n||e.isFunctionLikeKind(n);case 115:return 149===n&&!e.isClassLike(t.parent.parent);case 24:return 146===n||t.parent&&t.parent.parent&&175===t.parent.parent.kind;case 114:case 112:case 113:return 146===n&&!e.isConstructorDeclaration(t.parent.parent);case 118:return 242===n||246===n||240===n;case 125:case 135:if(w(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 138:return!0}if(k(t.getText())&&w(t))return!1;if(P(t)&&(!e.isIdentifier(t)||C(t.getText())||U(t)))return!1;switch(t.getText()){case"abstract":case"async":case"class":case"const":case"declare":case"enum":case"function":case"interface":case"let":case"private":case"protected":case"public":case"static":case"var":case"yield":return!0}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)}function R(t){return e.isFunctionLikeKind(t)&&152!==t}function L(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function B(t,n){for(var r=e.createUnderscoreEscapedMap(),i=0,a=n;is))for(var u=c.length-1;u>=0;u--){var l=c[u];if(t>=l.pos)return l}}}function w(t){if(!e.isToken(t))return t;switch(t.kind){case 104:case 110:case 76:return t.parent.parent;default:return t.parent}}function A(e,t){if(!(65536&e.flags))return t.getPropertiesOfType(e);var n=e.types,r=n.filter(function(e){return!(8190&e.flags||t.isArrayLikeType(e))});return t.getAllPossiblePropertiesOfTypes(r)}var N;!function(e){e[e.None=0]="None",e[e.ClassElementKeywords=1]="ClassElementKeywords",e[e.ConstructorParameterKeywords=2]="ConstructorParameterKeywords"}(N||(N={})),t.getCompletionsAtPosition=n,t.getCompletionEntryDetails=p,t.getCompletionEntrySymbol=g;var P=[]}(e.Completions||(e.Completions={}))}(o||(o={}));var o;!function(e){!function(t){function n(t,n,a,s,c){var u=e.getTouchingWord(a,s,!0);if(u!==a){if(e.Debug.assert(void 0!==u.parent),e.isJsxOpeningElement(u.parent)&&u.parent.tagName===u||e.isJsxClosingElement(u.parent)){var l=u.parent.parent,d=l.openingElement,f=l.closingElement,_=[d,f].map(function(e){return r(e.tagName,a)});return[{fileName:a.fileName,highlightSpans:_}]}return i(u,t,n,c)||o(u,a)}}function r(t,n){return{fileName:n.fileName,textSpan:e.createTextSpanFromNode(t,n),kind:"none"}}function i(t,n,r,i){var o=e.FindAllReferences.getReferenceEntriesForNode(t,n,i,r);return o&&a(o)}function a(t){for(var n=e.createMap(),r=0,i=t;r=0&&!y(n,r[i],106);i--);var a=f(t.statement);return e.forEach(a,function(e){_(t,e)&&y(n,e.getFirstToken(),72,77)}),n}function k(e){var t=p(e);if(t)switch(t.kind){case 214:case 215:case 216:case 212:case 213:return x(t);case 221:return S(t)}}function S(t){var n=[];return y(n,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(r){y(n,r.getFirstToken(),73,79);var i=f(r);e.forEach(i,function(e){_(t,e)&&y(n,e.getFirstToken(),72)})}),n}function C(t,n){var r=[];if(y(r,t.getFirstToken(),102),t.catchClause&&y(r,t.catchClause.getFirstToken(),74),t.finallyBlock){y(r,e.findChildOfKind(t,87,n),87)}return r}function D(t){var n=d(t);if(n){var r=[];return e.forEach(l(n),function(e){y(r,e.getFirstToken(),100)}),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,function(e){y(r,e.getFirstToken(),96)}),r}}function T(t){var n=e.getContainingFunction(t);if(n&&s(n.body,207)){var r=[];return e.forEachReturnStatement(n.body,function(e){y(r,e.getFirstToken(),96)}),e.forEach(l(n.body),function(e){y(r,e.getFirstToken(),100)}),r}}function E(t,n){for(var i=[];s(t.parent,211)&&t.parent.elseStatement===t;)t=t.parent;for(;t;){var a=t.getChildren();y(i,a[0],90);for(var o=a.length-1;o>=0&&!y(i,a[o],82);o--);if(!s(t.elseStatement,211))break;t=t.elseStatement}for(var c=[],o=0;o=u.end;f--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(f))){d=!1;break}if(d){c.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),l.end),kind:"reference"}),o++;continue}}c.push(r(i[o],n))}return c}function w(e,t){for(var n=e.parent;222===n.kind;n=n.parent)if(n.label.escapedText===t)return!0;return!1}t.getDocumentHighlights=n}(e.DocumentHighlights||(e.DocumentHighlights={}))}(o||(o={}));var o;!function(e){function t(t,n){function r(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function i(t,n){var r=_.get(t);return!r&&n&&_.set(t,r=e.createMap()),r}function a(){var t=e.arrayFrom(_.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=_.get(e),n=[];return t.forEach(function(e,t){n.push({name:t,refCount:e.languageServiceRefCount,references:e.owners.slice(0)})}),n.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:n}});return JSON.stringify(t,void 0,2)}function o(t,i,a,o,c){return s(t,e.toPath(t,n,p),i,r(i),a,o,c)}function s(e,t,n,r,i,a,o){return l(e,t,n,r,i,a,!0,o)}function c(t,i,a,o,s){return u(t,e.toPath(t,n,p),i,r(i),a,o,s)}function u(e,t,n,r,i,a,o){return l(e,t,n,r,i,a,!1,o)}function l(t,n,r,a,o,s,c,u){var l=i(a,!0),d=l.get(n);if(d)d.sourceFile.version!==s&&(d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,o,s,o.getChangeRange(d.sourceFile.scriptSnapshot))),c&&d.languageServiceRefCount++;else{d={sourceFile:e.createLanguageServiceSourceFile(t,o,r.target,s,!1,u),languageServiceRefCount:1,owners:[]},l.set(n,d)}return d.sourceFile}function d(t,i){return f(e.toPath(t,n,p),r(i))}function f(t,n){var r=i(n,!1);e.Debug.assert(void 0!==r);var a=r.get(t);a.languageServiceRefCount--,e.Debug.assert(a.languageServiceRefCount>=0),0===a.languageServiceRefCount&&r.delete(t)}void 0===n&&(n="");var _=e.createMap(),p=e.createGetCanonicalFileName(!!t);return{acquireDocument:o,acquireDocumentWithKey:s,updateDocument:c,updateDocumentWithKey:u,releaseDocument:d,releaseDocumentWithKey:f,reportStats:a,getKeyForCompilationSettings:r}}e.createDocumentRegistry=t}(o||(o={}));var o;!function(e){!function(t){function n(e,t,n){var a=c(e,t,n);return function(o,c,u){var l=r(e,a,c,t,n),d=l.directImports,f=l.indirectUsers;return s({indirectUsers:f},i(d,o,c.exportKind,t,u))}}function r(t,n,r,i,o){function s(t){var n=d(t);if(n)for(var r=0,a=n;r=0&&!(c>r.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),5)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),5)||i.push(c),c=a.indexOf(n,c+s+1)}return i}function h(n,r){for(var i=[],a=n.getSourceFile(),o=r.text,s=g(a,o,n),c=0,u=s;cc?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^\/]+\/[^\/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2}function o(t,n){switch(t){case 2:return"Package name '"+n+"' cannot be empty";case 3:return"Package name '"+n+"' should be less than "+c+" characters";case 4:return"Package name '"+n+"' cannot start with '.'";case 5:return"Package name '"+n+"' cannot start with '_'";case 1:return"Package '"+n+"' is scoped and currently is not supported";case 6:return"Package name '"+n+"' contains non URI safe characters";case 0:throw e.Debug.fail();default:e.Debug.assertNever(t)}}t.nodeCoreModuleList=["buffer","querystring","events","http","cluster","zlib","os","https","punycode","repl","readline","vm","child_process","url","dns","net","dgram","fs","path","string_decoder","tls","crypto","stream","util","assert","tty","domain","constants","process","v8","timers","console"];var s=e.arrayToSet(t.nodeCoreModuleList);t.loadSafeList=n,t.loadTypesMap=r,t.discoverTypings=i;!function(e){e[e.Ok=0]="Ok",e[e.ScopedPackagesNotSupported=1]="ScopedPackagesNotSupported",e[e.EmptyName=2]="EmptyName",e[e.NameTooLong=3]="NameTooLong",e[e.NameStartsWithDot=4]="NameStartsWithDot",e[e.NameStartsWithUnderscore=5]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=6]="NameContainsNonURISafeCharacters"}(t.PackageNameValidationResult||(t.PackageNameValidationResult={}));var c=214;t.validatePackageName=a,t.renderPackageNameValidationFailure=o}(e.JsTyping||(e.JsTyping={}))}(o||(o={}));var o;!function(e){!function(t){function n(t,n,i,a,o,s){for(var c=e.createPatternMatcher(a),u=[],f=0,_=t;f<_.length;f++){var p=_[f];!function(t){if(i.throwIfCancellationRequested(),s&&e.fileExtensionIs(t.fileName,".d.ts"))return"continue";e.forEachEntry(t.getNamedDeclarations(),function(e,i){r(c,i,e,n,t.fileName,u)})}(p)}return u.sort(l),void 0!==o&&(u=u.slice(0,o)),u.map(d)}function r(e,t,n,r,o,s){var l=e.getMatchesForLastSegmentOfPattern(t);if(l)for(var d=0,f=n;d0);for(var n=0,r=t;n0);for(var n=e.PatternMatchKind.camelCase,r=0,i=t;r0)return r}switch(t.kind){case 265:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 187:case 228:case 186:case 229:case 199:return 512&e.getModifierFlags(t)?"default":N(t);case 152:return"constructor";case 156:return"new()";case 155:return"()";case 157:return"[]";case 283:return b(t);default:return""}}function b(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&208===t.kind&&t.declarationList.declarations.length>0){var n=t.declarationList.declarations[0].name;if(71===n.kind)return n.text}return""}function x(t){function n(e){if(r(e)&&(i.push(e),e.children))for(var t=0,a=e.children;t0?e.declarationNameToString(t.name):226===t.parent.kind?e.declarationNameToString(t.parent.name):194===t.parent.kind&&58===t.parent.operatorToken.kind?a(t.parent.left).replace(M,""):261===t.parent.kind&&t.parent.name?a(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}function P(e){switch(e.kind){case 187:case 186:case 199:return!0;default:return!1}}var O,I,F,M=/\s+/g,R=[],L=[];t.getNavigationBarItems=n,t.getNavigationTree=r}(e.NavigationBar||(e.NavigationBar={}))}(o||(o={}));var o;!function(e){!function(t){function n(t,n){function s(n,i,a,o,s){if(n&&i&&a){var c={textSpan:e.createTextSpanFromBounds(s?i.getFullStart():i.getStart(),a.getEnd()),hintSpan:e.createTextSpanFromNode(n,t),bannerText:r,autoCollapse:o};_.push(c)}}function c(t,n){if(t){var i={textSpan:e.createTextSpanFromBounds(t.pos,t.end),hintSpan:e.createTextSpanFromBounds(t.pos,t.end),bannerText:r,autoCollapse:n};_.push(i)}}function u(r){var i=e.getLeadingCommentRangesOfNode(r,t);if(i){for(var a=-1,o=-1,s=!0,u=0,d=0,f=i;d1){c({kind:2,pos:t,end:n},!1)}}function d(t){return e.isFunctionBlock(t)&&187!==t.parent.kind}function f(a){if(n.throwIfCancellationRequested(),!(p>i)){switch(e.isDeclaration(a)&&u(a),a.kind){case 207:if(!e.isFunctionBlock(a)){var o=a.parent,c=e.findChildOfKind(a,17,t),l=e.findChildOfKind(a,18,t);if(212===o.kind||215===o.kind||216===o.kind||214===o.kind||211===o.kind||213===o.kind||220===o.kind||260===o.kind){s(o,c,l,d(a),!0);break}if(224===o.kind){var m=o;if(m.tryBlock===a){s(o,c,l,d(a),!0);break}if(m.finallyBlock===a){var g=e.findChildOfKind(m,87,t);if(g){s(g,c,l,d(a),!0);break}}}var h=e.createTextSpanFromNode(a);_.push({textSpan:h,hintSpan:h,bannerText:r,autoCollapse:d(a)});break}case 234:var y=e.findChildOfKind(a,17,t),v=e.findChildOfKind(a,18,t);s(a.parent,y,v,d(a),!0);break;case 229:case 230:case 232:case 235:s(a,e.findChildOfKind(a,17,t),e.findChildOfKind(a,18,t),d(a),!0);break;case 178:s(a,e.findChildOfKind(a,17,t),e.findChildOfKind(a,18,t),d(a),!e.isArrayLiteralExpression(a.parent));break;case 177:s(a,e.findChildOfKind(a,21,t),e.findChildOfKind(a,22,t),d(a),!e.isArrayLiteralExpression(a.parent))}p++,e.forEachChild(a,f),p--}}var _=[],p=0,m=[];return f(t),function(){for(var n=t.getLineStarts(),r=0;rt.length))){for(var i=r,a=v.length-2,s=t.length-1;a>=0;a-=1,s-=1){var c=v[a],u=t[s],l=p(u,c);if(!l)return;e.addRange(i,l)}return i}}}function d(e){var t=y.get(e);return t||y.set(e,t=m(e)),t}function f(n,r,i){var o=s(n,r.textLowerCase);if(0===o)return r.text.length===n.length?t(x.exact,i,n===r.text):t(x.prefix,i,e.startsWith(n,r.text));var c=r.isLowerCase;if(c){if(o>0)for(var u=d(n),l=0,f=u;l0)return t(x.substring,i,!0);if(!c&&r.characterSpans.length>0){var p=d(n),m=h(n,p,r,!1);if(void 0!==m)return t(x.camelCase,i,!0,m);if(void 0!==(m=h(n,p,r,!0)))return t(x.camelCase,i,!1,m)}return c&&r.text.length0&&a(n.charCodeAt(o))?t(x.substring,i,!1):void 0}function _(e){for(var t=0;tt.length)return!1;if(r)for(var s=0;s1}}function r(e){return{totalTextChunk:_(e),subWordTextChunks:f(e)}}function i(e){return 0===e.subWordTextChunks.length}function a(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function o(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function s(e,t){for(var n=e.length-t.length,r=0;r<=n;r++)if(c(e,t,r))return r;return-1}function c(e,t,n){for(var r=0;r=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function l(e){return e>=48&&e<=57}function d(e){return a(e)||o(e)||l(e)||95===e||36===e}function f(e){for(var t=[],n=0,r=0,i=0;i0&&(t.push(_(e.substr(n,r))),r=0)}return r>0&&t.push(_(e.substr(n,r))),t}function _(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:p(e)}}function p(e){return g(e,!1)}function m(e){return g(e,!0)}function g(t,n){for(var r=[],i=0,a=1;a0){if(e.some(c,o))return a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(71===t.kind&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.stripQuotes(e.getDeclaredName(n,s,t)),l=e.SymbolDisplay.getSymbolKind(n,s,t);return l?i(u,n.getFullyQualifiedName(s),l,e.SymbolDisplay.getSymbolModifiers(s),t,r):void 0}}else if(9===t.kind){if(o(t))return a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);var u=e.stripQuotes(t.text);return i(u,u,"var","",t,r)}}function i(e,t,n,r,i,a){return{canRename:!0,kind:n,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:r,triggerSpan:o(i,a)}}function a(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function o(t,n){var r=t.getStart(n),i=t.getWidth(n);return 9===t.kind&&(r+=1,i-=2),e.createTextSpan(r,i)}function s(t){switch(t.kind){case 71:case 9:case 99:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}t.getRenameInfo=n}(e.Rename||(e.Rename={}))}(o||(o={}));var o;!function(e){!function(t){function n(t,n,i,a){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(n,i);if(s){var c=d(s,i,n);if(c){a.throwIfCancellationRequested();var u=c.invocation,l=[],f=o.getResolvedSignature(u,l,c.argumentCount);if(a.throwIfCancellationRequested(),l.length)return _(l,f,c,o);if(e.isSourceFileJavaScript(n))return r(c,t)}}}function r(e,t){if(181===e.invocation.kind){var n=e.invocation,r=n.expression,i=71===r.kind?r:179===r.kind?r.name:void 0;if(i&&i.escapedText)for(var a=t.getTypeChecker(),o=0,s=t.getSourceFiles();o0&&26===e.lastOrUndefined(n).kind&&r++,r}function s(t,n,r){return e.Debug.assert(r>=n.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(n.kind)?e.isInsideTemplateLiteral(n,r)?0:t+2:t+1}function c(t,n,r){var i=13===t.template.kind?1:t.template.templateSpans.length+1;return 0!==n&&e.Debug.assertLessThan(n,i),{kind:2,invocation:t,argumentsSpan:l(t,r),argumentIndex:n,argumentCount:i}}function u(t,n){var r=t.getFullStart(),i=e.skipTrivia(n.text,t.getEnd(),!1);return e.createTextSpan(r,i-r)}function l(t,n){var r=t.template,i=r.getStart(),a=r.getEnd();if(196===r.kind){0===e.lastOrUndefined(r.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(n.text,a,!1))}return e.createTextSpan(i,a-i)}function d(t,n,r){for(var a=t;265!==a.kind;a=a.parent){if(e.isFunctionBlock(a))return;(a.posa.parent.end)&&e.Debug.fail("Node of kind "+a.kind+" is not a subspan of its parent of kind "+a.parent.kind);var o=i(a,n,r);if(o)return o}}function f(t,n,r){var i=t.getChildren(r),a=i.indexOf(n);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function _(t,n,r,i){function a(t){var n=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildParameterDisplay(t,e,u)});return{name:t.name,documentation:t.getDocumentationComment(),displayParts:n,isOptional:i.isOptionalParameter(t.valueDeclaration)}}function o(t){var n=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildTypeParameterDisplay(t,e,u)});return{name:t.symbol.name,documentation:e.emptyArray,displayParts:n,isOptional:!1}}var s=r.argumentCount,c=r.argumentsSpan,u=r.invocation,l=r.argumentIndex,d=0===r.kind,f=e.getInvokedExpression(u),_=i.getSymbolAtLocation(f),p=_&&e.symbolToDisplayParts(i,_,void 0,void 0),m=e.map(t,function(t){var n,r=[],s=[];p&&e.addRange(r,p);var c;if(d){c=!1,r.push(e.punctuationPart(27));var l=(t.target||t).typeParameters;n=l&&l.length>0?e.map(l,o):e.emptyArray,s.push(e.punctuationPart(29));var f=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(t.thisParameter,t.parameters,e,u)});e.addRange(s,f)}else{c=t.hasRestParameter;var _=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(t.typeParameters,e,u)});e.addRange(r,_),r.push(e.punctuationPart(19)),n=e.map(t.parameters,a),s.push(e.punctuationPart(20))}var m=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildReturnTypeDisplay(t,e,u)});return e.addRange(s,m),{isVariadic:c,prefixDisplayParts:r,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:n,documentation:t.getDocumentationComment(),tags:t.getJsDocTags()}});0!==l&&e.Debug.assertLessThan(l,s);var g=t.indexOf(n);return e.Debug.assert(-1!==g),{items:m,applicableSpan:c,selectedItemIndex:g,argumentIndex:l,argumentCount:s}}!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments",e[e.JSXAttributesArguments=3]="JSXAttributesArguments"}(t.ArgumentListKind||(t.ArgumentListKind={})),t.getSignatureHelpItems=n,t.getImmediatelyContainingArgumentInfo=i,t.getContainingArgumentInfo=d}(e.SignatureHelp||(e.SignatureHelp={}))}(o||(o={}));var o;!function(e){!function(t){function n(t,n,i){var a=e.getCombinedLocalAndExportSymbolFlags(n);if(32&a)return e.getDeclarationOfKind(n,199)?"local class":"class";if(384&a)return"enum";if(524288&a)return"type";if(64&a)return"interface";if(262144&a)return"type parameter";var o=r(t,n,i);if(""===o){if(262144&a)return"type parameter";if(8&a)return"enum member";if(2097152&a)return"alias";if(1536&a)return"module"}return o}function r(t,n,r){if(t.isUndefinedSymbol(n))return"var";if(t.isArgumentsSymbol(n))return"local var";if(99===r.kind&&e.isExpression(r))return"parameter";var i=e.getCombinedLocalAndExportSymbolFlags(n);if(3&i)return e.isFirstDeclarationOfSymbolParameter(n)?"parameter":n.valueDeclaration&&e.isConst(n.valueDeclaration)?"const":e.forEach(n.declarations,e.isLet)?"let":o(n)?"local var":"var";if(16&i)return o(n)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(4&i){if(33554432&i&&6&n.checkFlags){var a=e.forEach(t.getRootSymbols(n),function(t){var n=t.getFlags();if(98311&n)return"property";e.Debug.assert(!!(8208&n))});if(!a){return t.getTypeOfSymbolAtLocation(n,r).getCallSignatures().length?"method":"property"}return a}return r.parent&&e.isJsxAttribute(r.parent)?"JSX attribute":"property"}return""}function i(t){return t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):""}function a(t,i,a,o,s,c){function u(){b.length&&b.push(e.lineBreakPart())}function l(){b.push(e.spacePart()),b.push(e.keywordPart(92)),b.push(e.spacePart())}function d(n,r){var i=e.symbolToDisplayParts(t,n,r||a,void 0,3);e.addRange(b,i)}function f(t,n){u(),n&&(_(n),b.push(e.spacePart()),d(t))}function _(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void b.push(e.textOrKeywordPart(t));default:return b.push(e.punctuationPart(19)),b.push(e.textOrKeywordPart(t)),void b.push(e.punctuationPart(20))}}function p(n,r,i){e.addRange(b,e.signatureToDisplayParts(t,n,o,64|i)),r.length>1&&(b.push(e.spacePart()),b.push(e.punctuationPart(19)),b.push(e.operatorPart(37)),b.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),b.push(e.spacePart()),b.push(e.textPart(2===r.length?"overload":"overloads")),b.push(e.punctuationPart(20))),g=n.getDocumentationComment(),h=n.getJsDocTags()}function m(n,r){var i=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplayFromSymbol(n,e,r)});e.addRange(b,i)}void 0===c&&(c=e.getMeaningFromLocation(s));var g,h,y,v,b=[],x=e.getCombinedLocalAndExportSymbolFlags(i),k=r(t,i,s),S=99===s.kind&&e.isExpression(s);if(""!==k||32&x||2097152&x){"getter"!==k&&"setter"!==k||(k="property");var C=void 0;if(v=S?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(i.exportSymbol||i,s),s.parent&&179===s.parent.kind){var D=s.parent.name;(D===s||D&&0===D.getFullWidth())&&(s=s.parent)}var T=void 0;if(e.isCallOrNewExpression(s)?T=s:e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s)?T=s.parent:s.parent&&e.isJsxOpeningLikeElement(s.parent)&&e.isFunctionLike(i.valueDeclaration)&&(T=s.parent),T){var E=[];C=t.getResolvedSignature(T,E);var w=182===T.kind||e.isCallExpression(T)&&97===T.expression.kind,A=w?v.getConstructSignatures():v.getCallSignatures();if(e.contains(A,C.target)||e.contains(A,C)||(C=A.length?A[0]:void 0),C){switch(w&&32&x?(k="constructor",f(v.symbol,k)):2097152&x?(k="alias",_(k),b.push(e.spacePart()),w&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),d(i)):f(i,k),k){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":b.push(e.punctuationPart(56)),b.push(e.spacePart()),w&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),32768&v.flags&&16&v.objectFlags||!v.symbol||e.addRange(b,e.symbolToDisplayParts(t,v.symbol,o,void 0,1)),p(C,A,16);break;default:p(C,A)}y=!0}}else if(e.isNameOfFunctionDeclaration(s)&&!(98304&x)||123===s.kind&&152===s.parent.kind){var N=s.parent,P=e.find(i.declarations,function(e){return e===(123===s.kind?N.parent:N)});if(P){var A=152===N.kind?v.getNonNullableType().getConstructSignatures():v.getNonNullableType().getCallSignatures();C=t.isImplementationOfOverload(N)?A[0]:t.getSignatureFromDeclaration(N),152===N.kind?(k="constructor",f(v.symbol,k)):f(155!==N.kind||2048&v.symbol.flags||4096&v.symbol.flags?i:v.symbol,k),p(C,A),y=!0}}}if(32&x&&!y&&!S&&(e.getDeclarationOfKind(i,199)?_("local class"):b.push(e.keywordPart(75)),b.push(e.spacePart()),d(i),m(i,a)),64&x&&2&c&&(u(),b.push(e.keywordPart(109)),b.push(e.spacePart()),d(i),m(i,a)),524288&x&&(u(),b.push(e.keywordPart(138)),b.push(e.spacePart()),d(i),m(i,a),b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),e.addRange(b,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(i),o,1024))),384&x&&(u(),e.forEach(i.declarations,e.isConstEnumDeclaration)&&(b.push(e.keywordPart(76)),b.push(e.spacePart())),b.push(e.keywordPart(83)),b.push(e.spacePart()),d(i)),1536&x){u();var O=e.getDeclarationOfKind(i,233),I=O&&O.name&&71===O.name.kind;b.push(e.keywordPart(I?129:128)),b.push(e.spacePart()),d(i)}if(262144&x&&2&c)if(u(),b.push(e.punctuationPart(19)),b.push(e.textPart("type parameter")),b.push(e.punctuationPart(20)),b.push(e.spacePart()),d(i),i.parent)l(),d(i.parent,o),m(i.parent,o);else{var F=e.getDeclarationOfKind(i,145);e.Debug.assert(void 0!==F);var O=F.parent;if(O)if(e.isFunctionLikeKind(O.kind)){l();var C=t.getSignatureFromDeclaration(O);156===O.kind?(b.push(e.keywordPart(94)),b.push(e.spacePart())):155!==O.kind&&O.name&&d(O.symbol),e.addRange(b,e.signatureToDisplayParts(t,C,a,64))}else 231===O.kind&&(l(),b.push(e.keywordPart(138)),b.push(e.spacePart()),d(O.symbol),m(O.symbol,a))}if(8&x){k="enum member",f(i,"enum member");var O=i.declarations[0];if(264===O.kind){var M=t.getConstantValue(O);void 0!==M&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.displayPart(e.getTextOfConstantValue(M),"number"==typeof M?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(2097152&x){switch(u(),i.declarations[0].kind){case 236:b.push(e.keywordPart(84)),b.push(e.spacePart()),b.push(e.keywordPart(129));break;case 243:b.push(e.keywordPart(84)),b.push(e.spacePart()),b.push(e.keywordPart(i.declarations[0].isExportEquals?58:79));break;default:b.push(e.keywordPart(91))}b.push(e.spacePart()),d(i),e.forEach(i.declarations,function(n){if(237===n.kind){var r=n;if(e.isExternalModuleImportEqualsDeclaration(r))b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.keywordPart(132)),b.push(e.punctuationPart(19)),b.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),b.push(e.punctuationPart(20));else{var i=t.getSymbolAtLocation(r.moduleReference);i&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),d(i,o))}return!0}})}if(!y)if(""!==k){if(v)if(S?(u(),b.push(e.keywordPart(99))):f(i,k),"property"===k||"JSX attribute"===k||3&x||"local var"===k||S)if(b.push(e.punctuationPart(56)),b.push(e.spacePart()),v.symbol&&262144&v.symbol.flags){var R=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplay(v,e,o)});e.addRange(b,R)}else e.addRange(b,e.typeToDisplayParts(t,v,o));else if(16&x||8192&x||16384&x||131072&x||98304&x||"method"===k){var A=v.getNonNullableType().getCallSignatures();A.length&&p(A[0],A)}}else k=n(t,i,s);if(!g&&(g=i.getDocumentationComment(),h=i.getJsDocTags(),0===g.length&&4&x&&i.parent&&e.forEach(i.parent.declarations,function(e){return 265===e.kind})))for(var L=0,B=i.declarations;L0))break}}return{displayParts:b,documentation:g,symbolKind:k,tags:h}}function o(t){return!t.parent&&e.forEach(t.declarations,function(t){if(186===t.kind)return!0;if(226!==t.kind&&228!==t.kind)return!1;for(var n=t.parent;!e.isFunctionBlock(n);n=n.parent)if(265===n.kind||234===n.kind)return!1;return!0})}t.getSymbolKind=n,t.getSymbolModifiers=i,t.getSymbolDisplayPartsDocumentationAndSymbolKind=a}(e.SymbolDisplay||(e.SymbolDisplay={}))}(o||(o={}));var o;!function(e){function t(t,n){var i=[],a=n.compilerOptions?r(n.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=n.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);n.moduleName&&(s.moduleName=n.moduleName),n.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(n.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),d={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,n){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=n):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=n)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},f=e.createProgram([o],a,d);return n.reportDiagnostics&&(e.addRange(i,f.getSyntacticDiagnostics(s)),e.addRange(i,f.getOptionsDiagnostics())),f.emit(void 0,void 0,void 0,void 0,n.transformers),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:i,sourceMapText:u}}function n(n,r,i,a,o){var s=t(n,{compilerOptions:r,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText}function r(t,n){i=i||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var r=0,a=i;r>=5,n+=5;return t},t.prototype.IncreaseInsertionIndex=function(t){var n=this.rulesInsertionIndexBitmap>>t&31;n++,e.Debug.assert((31&n)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");var r=this.rulesInsertionIndexBitmap&~(31<=0},e.prototype.isSpecific=function(){return!0},e}(),a=function(){function e(e){this.token=e}return e.prototype.GetTokens=function(){return[this.token]},e.prototype.Contains=function(e){return e===this.token},e.prototype.isSpecific=function(){return!0},e}(),o=function(){function e(){}return e.prototype.GetTokens=function(){return n},e.prototype.Contains=function(){return!0},e.prototype.toString=function(){return"[allTokens]"},e.prototype.isSpecific=function(){return!1},e}(),s=function(){function e(e){this.except=e}return e.prototype.GetTokens=function(){var e=this;return n.filter(function(t){return t!==e.except})},e.prototype.Contains=function(e){return e!==this.except},e.prototype.isSpecific=function(){return!1},e}();!function(t){function r(e){return new a(e)}function c(e){return new i(e)}function u(t,n,r){void 0===r&&(r=[]);for(var a=[],o=t;o<=n;o++)e.indexOf(r,o)<0&&a.push(o);return new i(a)}function l(e){return new s(e)}t.FromToken=r,t.FromTokens=c,t.FromRange=u,t.AnyExcept=l,t.Any=new o,t.AnyIncludingMultilineComments=t.FromTokens(n.concat([3])),t.Keywords=t.FromRange(72,142),t.BinaryOperators=t.FromRange(27,70),t.BinaryKeywordOperators=t.FromTokens([92,93,142,118,126]),t.UnaryPrefixOperators=t.FromTokens([43,44,52,51]),t.UnaryPrefixExpressions=t.FromTokens([8,71,19,21,17,99,94]),t.UnaryPreincrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostincrementExpressions=t.FromTokens([71,20,22,94]),t.UnaryPredecrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostdecrementExpressions=t.FromTokens([71,20,22,94]),t.Comments=t.FromTokens([2,3]),t.TypeNames=t.FromTokens([71,133,136,122,137,105,119])}(t.TokenRange||(t.TokenRange={}))}(t.Shared||(t.Shared={}))}(e.formatting||(e.formatting={}))}(o||(o={}));var o;!function(e){!function(t){var n=function(){function n(){this.globalRules=new t.Rules;var e=this.globalRules.HighPriorityCommonRules.concat(this.globalRules.UserConfigurableRules).concat(this.globalRules.LowPriorityCommonRules);this.rulesMap=new t.RulesMap(e)}return n.prototype.getRulesMap=function(){return this.rulesMap},n.prototype.getFormatOptions=function(){return this.options},n.prototype.ensureUpToDate=function(t){this.options&&e.compareDataObjects(this.options,t)||(this.options=e.clone(t))},n}();t.RulesProvider=n}(e.formatting||(e.formatting={}))}(o||(o={}));var o;!function(e){!function(t){function n(t,n,r,i){var a=n.getLineAndCharacterOfPosition(t).line;if(0===a)return[];for(var o=e.getEndLinePosition(a,n);e.isWhiteSpaceSingleLine(n.text.charCodeAt(o));)o--;return e.isLineBreak(n.text.charCodeAt(o))&&o--,h({pos:e.getStartPositionOfLine(a-1,n),end:o+1},n,i,r,2)}function r(e,t,n,r){return g(u(c(e,25,t)),t,r,n,3)}function i(t,n,r,i){var a=c(t,17,n);if(!a)return[];var o=a.parent,s=u(o);return h({pos:e.getLineStartPositionForPosition(s.getStart(n),n),end:t},n,i,r,4)}function a(e,t,n,r){return g(u(c(e,18,t)),t,r,n,5)}function o(e,t,n){return h({pos:0,end:e.text.length},e,n,t,0)}function s(t,n,r,i,a){return h({pos:e.getLineStartPositionForPosition(t,r),end:n},r,a,i,1)}function c(t,n,r){var i=e.findPrecedingToken(t,r);return i&&i.kind===n&&t===i.getEnd()?i:void 0}function u(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!l(t.parent,t);)t=t.parent;return t}function l(t,n){switch(t.kind){case 229:case 230:return e.rangeContainsRange(t.members,n);case 233:var r=t.body;return r&&234===r.kind&&e.rangeContainsRange(r.statements,n);case 265:case 207:case 234:return e.rangeContainsRange(t.statements,n);case 260:return e.rangeContainsRange(t.block.statements,n)}return!1}function d(t,n){function r(i){var a=e.forEachChild(i,function(r){return e.startEndContainsRange(r.getStart(n),r.end,t)&&r});if(a){var o=r(a);if(o)return o}return i}return r(n)}function f(t,n){function r(){return!1}if(!t.length)return r;var i=t.filter(function(t){return e.rangeOverlapsWithStartEnd(n,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!i.length)return r;var a=0;return function(t){for(;;){if(a>=i.length)return!1;var n=i[a];if(t.end<=n.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,n.start,n.start+n.length))return!0;a++}}}function _(t,n,r){var i=t.getStart(r);if(i===n.pos&&t.end===n.end)return i;var a=e.findPrecedingToken(n.pos,r);return a?a.end>=n.pos?t.pos:a.end:t.pos}function p(e,n,r){for(var i,a=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(e,i))return n.indentSize;a=o,i=e,e=e.parent}return 0}function m(e,n,r,i,a,o){var s={pos:0,end:n.text.length};return t.getFormattingScanner(n.text,r,s.pos,s.end,function(t){return y(s,e,i,a,t,o.getFormatOptions(),o,1,function(e){return!1},n)})}function g(t,n,r,i,a){return t?h({pos:e.getLineStartPositionForPosition(t.getStart(n),n),end:t.end},n,r,i,a):[]}function h(e,n,r,i,a){var o=d(e,n);return t.getFormattingScanner(n.text,n.languageVariant,_(o,e,n),e.end,function(s){return y(e,o,t.SmartIndenter.getIndentationForNode(o,e,n,r),p(o,r,n),s,r,i,a,f(n.parseDiagnostics,e),n)})}function y(n,r,i,a,o,s,c,u,l,d){function f(n,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,n,r)||e.rangeContainsStartEnd(a,n,r)){if(-1!==o)return o}else{var c=d.getLineAndCharacterOfPosition(n).line,u=e.getLineStartPositionForPosition(n,d),l=t.SmartIndenter.findFirstNonWhitespaceColumn(u,n,d,s);if(c!==i||n===l){var f=t.SmartIndenter.getBaseIndentation(s);return f>l?f:l}}return-1}function _(e,n,r,i,a,o){var c=r,u=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0;return o===n?(c=n===R?L:a.getIndentation(),u=Math.min(s.indentSize,a.getDelta(e)+u)):-1===c&&(c=t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,n,d)?a.getIndentation():a.getIndentation()+a.getDelta(e)),{indentation:c,delta:u}}function p(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 229:return 75;case 230:return 109;case 228:return 89;case 232:return 232;case 153:return 125;case 154:return 135;case 151:if(t.asteriskToken)return 39;case 149:case 146:return e.getNameOfDeclaration(t).kind}}function m(e,n,r,i){function a(n,r){return t.SmartIndenter.nodeWillIndentChild(e,r,!0)?n:0}return{getIndentationForComment:function(e,t,n){switch(e){case 18:case 22:case 20:return r+a(i,n)}return-1!==t?t:r},getIndentationForToken:function(t,o,s){if(n!==t&&e.decorators&&o===p(e))return r;switch(o){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return r;case 41:case 29:if(251===s.kind||252===s.kind||250===s.kind)return r;break;case 21:case 22:if(172!==s.kind)return r}return n!==t?r+a(i,s):r},getIndentation:function(){return r},getDelta:function(e){return a(i,e)},recomputeIndentation:function(n){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(n?r+=s.indentSize:r-=s.indentSize,i=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0)}}}function g(t,r,i,a,s,c){function u(r,i,a,s,c,u,l,p){var m=r.getStart(d),h=d.getLineAndCharacterOfPosition(m).line,y=h;r.decorators&&(y=d.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,d)).line);var b=-1;if(l&&e.rangeContainsRange(n,a)&&-1!==(b=f(m,r.end,c,n,i))&&(i=b),!e.rangeOverlapsWithStartEnd(n,r.pos,r.end))return r.endm)break;v(x,t,s,t)}if(!o.isOnToken())return i;if(e.isToken(r)&&10!==r.kind){var x=o.readTokenInfo(r);return e.Debug.assert(x.token.end===r.end,"Token end is child end"),v(x,t,s,r),i}var k=147===r.kind?h:u,S=_(r,h,b,t,s,k);return g(r,C,h,y,S.indentation,S.delta),C=t,p&&177===a.kind&&-1===i&&(i=S.indentation),i}function p(n,r,i,a){e.Debug.assert(e.isNodeArray(n));var s=b(r,n),c=x(s),l=a,f=i;if(0!==s)for(;o.isOnToken();){var p=o.readTokenInfo(r);if(p.token.end>n.pos)break;if(p.token.kind===s){f=d.getLineAndCharacterOfPosition(p.token.pos).line;var g=_(p.token,f,-1,r,a,i);l=m(r,i,g.indentation,g.delta),v(p,r,l,r)}else v(p,r,a,r)}for(var h=-1,y=0;yt.end)break;v(D,t,k,t)}}}function h(t,r,i,a){for(var o=0,s=t;o0){var x=k(b,s);P(y,v.character,x)}else N(y,v.character)}}}function E(t,n,r){for(var i=t;io)){var s=w(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(d.text.charCodeAt(s-1))),N(s,o+1-s))}}}function w(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(d.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function A(t,n,r){return{span:e.createTextSpan(t,n),newText:r}}function N(e,t){t&&j.push(A(e,t,""))}function P(e,t,n){(t||n)&&j.push(A(e,t,n))}function O(e,t,n,r,i){switch(e.Operation.Action){case 1:return;case 8:t.end!==r.pos&&N(t.end,r.pos-t.end);break;case 4:if(1!==e.Flag&&n!==i)return;1!==i-n&&P(t.end,r.pos-t.end,s.newLineCharacter);break;case 2:if(1!==e.Flag&&n!==i)return;1===r.pos-t.end&&32===d.text.charCodeAt(t.end)||P(t.end,r.pos-t.end," ")}}var I,F,M,R,L,B=new t.FormattingContext(d,u,s),j=[];if(o.advance(),o.isOnToken()){var z=d.getLineAndCharacterOfPosition(r.getStart(d)).line,J=z;r.decorators&&(J=d.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,d)).line),g(r,r,z,J,i,a)}if(!o.isOnToken()){var U=o.getCurrentLeadingTrivia();U&&(h(U,r,r,void 0),function(){var e=I?I.end:n.pos;E(d.getLineAndCharacterOfPosition(e).line,d.getLineAndCharacterOfPosition(n.end).line+1,I)}())}return j}function v(t,n,r,i,a,o){if(void 0===a&&(a=e.getTokenAtPosition(t,n,!1)),!(a.getStart(t)<=n&&ni.text.length)return a(s);if(s.indentStyle===e.IndentStyle.None)return 0;var f=e.findPrecedingToken(r,i),_=t.getRangeOfEnclosingComment(i,r,!0,f||null);if(_){var p=e.getLineAndCharacterOfPosition(i,r).line-1,m=e.getLineAndCharacterOfPosition(i,_.pos).line;if(e.Debug.assert(m>=0),p<=m)return x(e.getStartPositionOfLine(m,i),r,i,s);var y=e.getStartPositionOfLine(p,i),v=b(y,r,i,s),k=v.column,S=v.character;if(0===k)return k;return 42===i.text.charCodeAt(y+S)?k-1:k}if(!f)return a(s);if(e.isStringOrRegularExpressionOrTemplateLiteral(f.kind)&&f.getStart(i)<=r&&r0;){var E=i.text.charCodeAt(T);if(!e.isWhiteSpaceLike(E))break;T--}var w=e.getLineStartPositionForPosition(T,i);return n.findFirstNonWhitespaceColumn(w,T,i,s)}if(26===f.kind&&194!==f.parent.kind){var A=c(f,i,s);if(-1!==A)return A}for(var N,P,O,I=f;I;){if(e.positionBelongsToNode(I,r,i)&&C(I,N)){P=d(I,i);var F=l(f,I,D,i);O=0!==F?u&&2===F?s.indentSize:0:D!==P.line?s.indentSize:0;break}var A=g(I,i,s);if(-1!==A)return A;if(-1!==(A=h(I,i,s)))return A+s.indentSize;N=I,I=I.parent}return I?o(I,P,void 0,O,i,s):a(s)}function i(e,t,n,r){return o(e,n.getLineAndCharacterOfPosition(e.getStart(n)),t,0,n,r)}function a(e){return e.baseIndentSize||0}function o(e,t,n,r,i,o){for(var c,l=e.parent;l;){var d=!0;if(n){var p=e.getStart(i);d=pn.end}if(d){var m=g(e,i,o);if(-1!==m)return m+r}c=s(l,e,i);var y=c.line===t.line||_(l,e,t.line,i);if(d){var m=u(e,l,t,y,i,o);if(-1!==m)return m+r;if(-1!==(m=h(e,i,o)))return m+r}C(l,e)&&!y&&(r+=o.indentSize);var v=f(l,e,t.line,i);e=l,l=e.parent,t=v?i.getLineAndCharacterOfPosition(e.getStart()):c}return r+a(o)}function s(e,t,n){var r=m(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function c(t,n,r){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,n,r):-1}function u(t,n,r,i,a,o){return!e.isDeclaration(t)&&!e.isStatementButNotDeclaration(t)||265!==n.kind&&i?-1:v(r,a,o)}function l(t,n,r,i){var a=e.findNextToken(t,n);if(!a)return 0;if(17===a.kind)return 1;if(18===a.kind){return r===d(a,i).line?2:0}return 0}function d(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function f(t,n,r,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,n))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===r}function _(t,n,r,i){if(211===t.kind&&t.elseStatement===n){var a=e.findChildOfKind(t,82,i);e.Debug.assert(void 0!==a);return d(a,i).line===r}return!1}function p(t,n,r){return t&&e.rangeContainsStartEnd(t,n,r)?t:void 0}function m(e,t){if(e.parent)switch(e.parent.kind){case 159:return p(e.parent.typeArguments,e.getStart(t),e.getEnd());case 178:return e.parent.properties;case 177:return e.parent.elements;case 228:case 186:case 187:case 151:case 150:case 155:case 152:case 161:case 156:var n=e.getStart(t);return p(e.parent.typeParameters,n,e.getEnd())||p(e.parent.parameters,n,e.getEnd());case 229:return p(e.parent.typeParameters,e.getStart(t),e.getEnd());case 182:case 181:var n=e.getStart(t);return p(e.parent.typeArguments,n,e.getEnd())||p(e.parent.arguments,n,e.getEnd());case 227:return p(e.parent.declarations,e.getStart(t),e.getEnd());case 241:case 245:return p(e.parent.elements,e.getStart(t),e.getEnd())}}function g(t,n,r){var i=m(t,n);return i?function(i){var a=e.indexOf(i,t);return-1!==a?y(i,a,n,r):-1}(i):-1}function h(t,n,r){if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var i=t.parent.expression,a=function(e){for(;;)switch(e.kind){case 181:case 182:case 179:case 180:e=e.expression;break;default:return e}}(i);if(i===a)return-1;var o=n.getLineAndCharacterOfPosition(i.end),s=n.getLineAndCharacterOfPosition(a.end);return o.line===s.line?-1:v(o,n,r)}return-1}function y(t,n,r,i){e.Debug.assert(n>=0&&n=0;s--)if(26!==t[s].kind){var c=r.getLineAndCharacterOfPosition(t[s].end).line;if(c!==o.line)return v(o,r,i);o=d(t[s],r)}return-1}function v(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return x(r,r+e.character,t,n)}function b(t,n,r,i){for(var a=0,o=0,s=t;s0?1:0,l=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,c)+u,t);return l=o(t.text,l),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,l),t)}function l(t,n,r){if(r.useNonAdjustedEndPosition||e.isExpression(n))return n.getEnd();var i=n.getEnd(),a=e.skipTrivia(t.text,i,!0);return a!==i&&e.isLineBreak(t.text.charCodeAt(a-1))?a:i}function d(e,t){return t&&e.parent&&(26===t.kind||25===t.kind&&178===e.parent.kind)}function f(e){for(var t="",n=0;n=0;r--){var i=n[r];t=""+t.substring(0,i.span.start)+i.newText+t.substring(e.textSpanEnd(i.span))}return t}function g(t){return e.skipTrivia(t,0)===t.length}function h(t){var r=e.visitEachChild(t,h,e.nullTransformationContext,y,h),a=e.nodeIsSynthesized(r)?r:Object.create(r);return a.pos=n(t),a.end=i(t),a}function y(t,r,a,o,s){var c=e.visitNodes(t,r,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=n(t),u.end=i(t),u}var v;!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start"}(v=t.Position||(t.Position={}));var b;!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes"}(b||(b={})),t.getSeparatorCharacter=c,t.getAdjustedStartPosition=u,t.getAdjustedEndPosition=l;var x=function(){function t(t,n,r){this.newLine=t,this.rulesProvider=n,this.validator=r,this.changes=[],this.newLineCharacter=e.getNewLineCharacter({newLine:t})}return t.fromContext=function(e){return new t("\n"===e.newLineCharacter?1:0,e.rulesProvider)},t.with=function(e,n){var r=t.fromContext(e);return n(r),r.getChanges()},t.prototype.deleteRange=function(e,t){return this.changes.push({kind:b.Remove,sourceFile:e,range:t}),this},t.prototype.deleteNode=function(e,t,n){void 0===n&&(n={});var r=u(e,t,n,v.FullStart),i=l(e,t,n);return this.changes.push({kind:b.Remove,sourceFile:e,range:{pos:r,end:i}}),this},t.prototype.deleteNodeRange=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,v.FullStart),a=l(e,n,r);return this.changes.push({kind:b.Remove,sourceFile:e,range:{pos:i,end:a}}),this},t.prototype.deleteNodeInList=function(t,n){var r=e.formatting.SmartIndenter.getContainingList(n,t);if(!r)return e.Debug.fail("node is not a list element"),this;var i=e.indexOfNode(r,n);if(i<0)return this;if(1===r.length)return this.deleteNode(t,n),this;if(i!==r.length-1){var a=e.getTokenAtPosition(t,n.end,!1);if(a&&d(n,a)){var o=e.skipTrivia(t.text,u(t,n,{},v.FullStart),!1,!0),s=r[i+1],c=e.skipTrivia(t.text,u(t,s,{},v.FullStart),!1,!0);this.deleteRange(t,{pos:o,end:c})}}else{var l=e.getTokenAtPosition(t,r[i-1].end,!1);l&&d(n,l)&&this.deleteNodeRange(t,l,n)}return this},t.prototype.replaceRange=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:e,range:t,options:r,node:n}),this},t.prototype.replaceNode=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,v.Start),a=l(e,t,r);return this.replaceWithSingle(e,i,a,n,r)},t.prototype.replaceNodeRange=function(e,t,n,r,i){void 0===i&&(i={});var a=u(e,t,i,v.Start),o=l(e,n,i);return this.replaceWithSingle(e,a,o,r,i)},t.prototype.replaceWithSingle=function(e,t,n,r,i){return this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:e,options:i,node:r,range:{pos:t,end:n}}),this},t.prototype.replaceWithMultiple=function(e,t,n,r,i){return this.changes.push({kind:b.ReplaceWithMultipleNodes,sourceFile:e,options:i,nodes:r,range:{pos:t,end:n}}),this},t.prototype.replaceNodeWithNodes=function(e,t,n,r){var i=u(e,t,r,v.Start),a=l(e,t,r);return this.replaceWithMultiple(e,i,a,n,r)},t.prototype.replaceNodesWithNodes=function(t,n,r,i){var a=u(t,n[0],i,v.Start),o=l(t,e.lastOrUndefined(n),i);return this.replaceWithMultiple(t,a,o,r,i)},t.prototype.replaceRangeWithNodes=function(e,t,n,r){return this.replaceWithMultiple(e,t.pos,t.end,n,r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,n,r,i){var a=u(e,t,i,v.Start),o=l(e,n,i);return this.replaceWithMultiple(e,a,o,r,i)},t.prototype.insertNodeAt=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:e,options:r,node:n,range:{pos:t,end:t}}),this},t.prototype.insertNodeBefore=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,v.Start);return this.replaceWithSingle(e,i,i,n,r)},t.prototype.insertNodeAfter=function(t,n,r,i){void 0===i&&(i={}),(e.isStatementButNotDeclaration(n)||149===n.kind||148===n.kind||150===n.kind)&&59!==t.text.charCodeAt(n.end-1)&&this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:t,options:{},range:{pos:n.end,end:n.end},node:e.createToken(25)});var a=l(t,n,i);return this.replaceWithSingle(t,a,a,r,i)},t.prototype.insertNodeInListAfter=function(t,n,r){var i=e.formatting.SmartIndenter.getContainingList(n,t);if(!i)return e.Debug.fail("node is not a list element"),this;var a=e.indexOfNode(i,n);if(a<0)return this;var c=n.getEnd();if(a!==i.length-1){var u=e.getTokenAtPosition(t,n.end,!1);if(u&&d(n,u)){var l=e.getLineAndCharacterOfPosition(t,o(t.text,i[a+1].getFullStart())),_=e.getLineAndCharacterOfPosition(t,u.end),p=void 0,m=void 0;_.line===l.line?(m=u.end,p=f(l.character-_.character)):m=e.getStartPositionOfLine(l.line,t),this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:t,range:{pos:m,end:i[a+1].getStart(t)},node:r,options:{prefix:p,suffix:""+e.tokenToString(u.kind)+t.text.substring(u.end,i[a+1].getStart(t))}})}}else{var g=n.getStart(t),h=e.getLineStartPositionForPosition(g,t),y=void 0,v=!1;if(1===i.length)y=26;else{var x=e.findPrecedingToken(n.pos,t);y=d(n,x)?x.kind:26;v=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==h}if(s(t.text,n.end)&&(v=!0),v){this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:t,range:{pos:c,end:c},node:e.createToken(y),options:{}});var k=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(h,g,t,this.rulesProvider.getFormatOptions()),S=e.skipTrivia(t.text,c,!0,!1);S!==c&&e.isLineBreak(t.text.charCodeAt(S-1))&&S--,this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:t,range:{pos:S,end:S},node:r,options:{indentation:k,prefix:this.newLineCharacter}})}else this.changes.push({kind:b.ReplaceWithSingleNode,sourceFile:t,range:{pos:c,end:c},node:r,options:{prefix:e.tokenToString(y)+" "}})}return this},t.prototype.getChanges=function(){for(var n=this,r=e.createMap(),i=0,a=this.changes;i0)for(var i=0,a=n;i0&&function(e,r,i){e.push({description:i,changes:t.newNodesToChanges(r,u,n)})}(p,x,k)}return p}}t.registerCodeFix({errorCodes:[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code],getCodeActions:n})}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){!function(t){function n(n){function r(r){if(181===o.parent.parent.kind){var i=o.parent.parent,a=t.createMethodFromCallExpression(i,c,r,u),s=e.textChanges.ChangeTracker.fromContext(n);s.insertNodeAfter(m,g,a,{suffix:n.newLineCharacter});var l=u?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0;return{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(l),[c]),changes:s.getChanges()}}}var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1);if(71===o.kind&&e.isPropertyAccessExpression(o.parent)){var s,c=o.getText(i),u=!1;if(99===o.parent.expression.kind){var l=e.getThisContainer(o,!1);if(!e.isClassElement(l))return;s=l.parent,u=s&&e.hasModifier(l,32)}else{var d=n.program.getTypeChecker(),f=o.parent.expression,_=d.getTypeAtLocation(f);if(32768&_.flags){var p=_.symbol;32&p.flags&&(s=p.declarations&&p.declarations[0],_!==d.getDeclaredTypeOfSymbol(p)&&(u=!0))}}if(s&&e.isClassLike(s)){var m=e.getSourceFileOfNode(s),g=e.getOpenBraceOfClassLike(s,m);return e.isInJavaScriptFile(m)?function(t,i){var a,o=r(!1);if(o&&(a=[o]),i){if(199===t.kind)return a;var s=t.name.getText(),u=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier(s),c),e.createIdentifier("undefined"))),l=e.textChanges.ChangeTracker.fromContext(n);l.insertNodeAfter(m,t,u,{prefix:n.newLineCharacter,suffix:n.newLineCharacter});var d={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_static_property_0),[c]),changes:l.getChanges()};return(a||(a=[])).push(d),a}var f=e.getFirstConstructorWithBody(t);if(!f)return a;var _=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createThis(),c),e.createIdentifier("undefined"))),p=e.textChanges.ChangeTracker.fromContext(n);p.insertNodeBefore(m,f.body.getLastToken(),_,{suffix:n.newLineCharacter});var g={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_property_0_in_the_constructor),[c]),changes:p.getChanges()};return(a||(a=[])).push(g),a}(s,u):function(t,i){var a,s=r(!0);s&&(a=[s]);var u;if(194===o.parent.parent.kind){var l=o.parent.parent,d=o.parent===l.left?l.right:l.left,f=n.program.getTypeChecker(),_=f.getWidenedType(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(d)));u=f.typeToTypeNode(_,t)}u=u||e.createKeywordTypeNode(119);var p=e.createProperty(void 0,i?[e.createToken(115)]:void 0,c,void 0,u,void 0),h=e.textChanges.ChangeTracker.fromContext(n);h.insertNodeAfter(m,g,p,{suffix:n.newLineCharacter});var y=i?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0;if(a=e.append(a,{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(y),[c]),changes:h.getChanges()}),!i){var v=e.createKeywordTypeNode(136),b=e.createParameter(void 0,void 0,void 0,"x",void 0,v,void 0),x=e.createIndexSignature(void 0,void 0,[b],u),k=e.textChanges.ChangeTracker.fromContext(n);k.insertNodeAfter(m,g,x,{suffix:n.newLineCharacter}),a.push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_property_0),[c]),changes:k.getChanges()})}return a}(s,u)}}}t.registerCodeFix({errorCodes:[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],getCodeActions:n})}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){!function(t){function n(t){var n,i=t.sourceFile,a=e.getTokenAtPosition(i,t.span.start,!1),o=t.program.getTypeChecker();if(e.isPropertyAccessExpression(a.parent)&&a.parent.name===a){e.Debug.assert(71===a.kind);var s=o.getTypeAtLocation(a.parent.expression);n=o.getSuggestionForNonexistentProperty(a,s)}else{var c=e.getMeaningFromLocation(a);n=o.getSuggestionForNonexistentSymbol(a,e.getTextOfNode(a),r(c))}if(n)return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_spelling_to_0),[n]),changes:[{fileName:i.fileName,textChanges:[{span:{start:a.getStart(),length:a.getWidth()},newText:n}]}]}]}function r(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=793064),1&e&&(t|=107455),t}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code],getCodeActions:n})}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){!function(t){function n(t,n){var r=e.getPackageName(n).packageName;if(t.isKnownTypesPackageName(r)){var i=e.getTypesPackageName(r);return{description:"Install '"+i+"'",changes:[],commands:[{type:"install package",packageName:i}]}}}t.registerCodeFix({errorCodes:[e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],getCodeActions:function(t){var r=t.sourceFile,i=t.span.start,a=e.getTokenAtPosition(r,i,!1);if(!e.isStringLiteral(a))throw e.Debug.fail();var o=n(t.host,a.text);return o&&[o]}}),t.tryGetCodeActionForInstallPackageTypes=n}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){!function(t){function n(n){var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1),s=n.program.getTypeChecker();if(e.isClassLike(o.parent)){var c=o.parent,u=e.getClassExtendsHeritageClauseElement(c),l=s.getTypeAtLocation(u),d=s.getPropertiesOfType(l),f=d.filter(r),_=t.createMissingMemberNodes(c,f,s),p=t.newNodesToChanges(_,e.getOpenBraceOfClassLike(c,i),n);if(p&&p.length>0)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:p}]}}function r(t){var n=t.getDeclarations();e.Debug.assert(!!(n&&n.length>0));var r=e.getModifierFlags(n[0]);return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code],getCodeActions:n}),t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:n})}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions:function(t){function n(t){if(210===t.kind&&e.isSuperCall(t.expression))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,n)}var r=t.sourceFile,i=e.getTokenAtPosition(r,t.span.start,!1);if(99===i.kind){var a=e.getContainingFunction(i),o=n(a.body);if(o){if(o.expression&&181===o.expression.kind)for(var s=o.expression.arguments,c=0;c0){var s=o[0].getFirstToken();if(s&&85===s.kind){var c=e.textChanges.ChangeTracker.fromContext(t);c.replaceNode(n,s,e.createToken(108));for(var u=1;u=d.length+f.length&&e.startsWith(i,d)&&e.endsWith(i,f)){var _=i.substr(d.length,i.length-f.length);return o.replace("*",_)}}else if(u===i||u===a)return o}return i}}}function m(t,n,r,i){var a=v(n,t,i);if(void 0!==a){var o=v(r,t,i),s=void 0!==o?k(a,o,i):a;return e.removeFileExtension(s)}}function g(t,n,r,i){var a=e.getEffectiveTypeRoots(t,n);return a&&e.firstDefined(a,function(t){var n=e.toPath(t,void 0,r);if(e.startsWith(i,n))return b(i.substring(n.length+1))})}function h(t,n,r,i,a){if(e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs){var o=y(n);if(o){var s=function(t){var n=t.substring(0,o.packageRootIndex),a=e.combinePaths(n,"package.json");if(r.fileExists(a)){var s=JSON.parse(r.readFile(a));if(s){var c=s.typings||s.types||s.main;if(c){if(e.toPath(c,n,i)===i(t))return n}}}var u=e.removeFileExtension(t);return"/index"===i(u.substring(o.fileNameIndex))?u.substring(0,o.fileNameIndex):u}(n);return s=function(e){var t=e.substring(0,o.topLevelNodeModulesIndex);return 0===a.indexOf(t)?e.substring(o.topLevelPackageNameIndex+1):k(e,a,i)}(s),e.getPackageNameFromAtTypesDirectory(s)}}}function y(e){var t,n=0,r=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"}(t||(t={}));for(var o=0,s=0,c=0;s>=0;)switch(o=s,s=e.indexOf("/",o+1),c){case 0:e.indexOf("/node_modules/",o)===o&&(n=o,r=s,c=1);break;case 1:case 2:1===c&&"@"===e.charAt(o+1)?c=2:(i=s,c=3);break;case 3:c=e.indexOf("/node_modules/",o)===o?1:3}return a=o,c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:a}:void 0}function v(t,n,r){return e.firstDefined(n,function(e){return x(t,e,r)})}function b(t){return t=e.removeFileExtension(t),e.endsWith(t,"/index")&&(t=t.substr(0,t.length-6)),t}function x(t,n,r){var i=e.getRelativePathToDirectoryOrUrl(n,t,n,r,!1);return e.isRootedDiskPath(i)||e.startsWith(i,"..")?void 0:i}function k(t,n,r){var i=e.getRelativePathToDirectoryOrUrl(n,t,n,r,!1);return e.pathIsRelative(i)?i:"./"+i}function S(t,r,i){var a=e.firstDefined(i,function(t){if(238===t.kind&&t.importClause){var i=D(r,t.importClause);if(i){var a=e.stripQuotes(t.moduleSpecifier.getText());return n(e.Diagnostics.Add_0_to_existing_import_declaration_from_1,[r.symbolName,a],i,"InsertingIntoExistingImport",a)}}});if(a)return a;var o=e.firstDefined(i,C)||f(r.sourceFile,t,r.compilerOptions,r.getCanonicalFileName,r.host);return u(r,o)}function C(t){var n=238===t.kind?t.moduleSpecifier:248===t.moduleReference.kind?t.moduleReference.expression:void 0;return n&&e.isStringLiteral(n)?n.text:void 0}function D(t,n){var r=t.symbolName,i=t.sourceFile,a=t.kind,o=n.name,s=n.namedBindings;switch(a){case 1:return o?void 0:O.with(t,function(t){return t.replaceNode(i,n,e.createImportClause(e.createIdentifier(r),s))});case 0:var c=e.createImportSpecifier(void 0,e.createIdentifier(r));if(s&&241===s.kind&&0!==s.elements.length)return O.with(t,function(e){return e.insertNodeInListAfter(i,s.elements[s.elements.length-1],c)});if(!s||241===s.kind&&0===s.elements.length)return O.with(t,function(t){return t.replaceNode(i,n,e.createImportClause(o,e.createNamedImports([c])))});return;case 2:return s?void 0:O.with(t,function(t){return t.replaceNode(i,n,e.createImportClause(o,e.createNamespaceImport(e.createIdentifier(r))))});default:e.Debug.assertNever(a)}}function T(t,r,i){var a=r.symbolName,o=r.sourceFile;return n(e.Diagnostics.Change_0_to_1,[a,t+"."+a],O.with(r,function(n){return n.replaceNode(o,i,e.createPropertyAccess(e.createIdentifier(t),a))}),"CodeChange",void 0)}function E(t){var n=r(t);return t.errorCode===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?w(n):A(n,t.program.getSourceFiles(),t.cancellationToken)}function w(t){var n,r,a=t.checker,o=t.symbolToken,c=a.getSymbolAtLocation(o);return 2097152&c.flags?(n=a.getAliasedSymbol(c),r=t.symbolName):e.isJsxOpeningLikeElement(o.parent)&&o.parent.tagName===o?(n=a.getAliasedSymbol(a.resolveName(a.getJsxNamespace(),o.parent.tagName,107455)),r=n.name):e.Debug.fail("Either the symbol or the JSX namespace should be a UMD global if we got here"),i(n,s({},t,{symbolName:r,kind:2}))}function A(t,n,r){var a=t.sourceFile,o=t.checker,c=t.symbolName,u=t.symbolToken;e.Debug.assert("default"!==c);var l=new F,d=e.getMeaningFromLocation(u);return P(o,n,function(n){if(n!==a.symbol){r.throwIfCancellationRequested();var u=o.tryGetMemberInModuleExports("default",n);if(u){var f=e.getLocalSymbolForExportDefault(u);if(f&&f.escapedName===c&&N(f,d)){var _=e.getUniqueSymbolId(f,o);l.addActions(_,i(n,s({},t,{kind:1})))}}var p=o.tryGetMemberInModuleExportsAndProperties(c,n);if(p&&N(p,d)){var _=e.getUniqueSymbolId(p,o);l.addActions(_,i(n,s({},t,{kind:0})))}}}),l.getAllActions()}function N(t,n){var r=t.declarations;return e.some(r,function(t){return!!(e.getMeaningFromDeclaration(t)&n)})}function P(t,n,r){for(var i=0,a=t.getAmbientModules();i=o)return{span:{start:o,length:0},newText:"// @ts-ignore"+r}}return{span:{start:n,length:0},newText:(n===o?"":r)+"// @ts-ignore"+r}}function r(t){var r=t.sourceFile,i=t.program,a=t.newLineCharacter,o=t.span;if(e.isInJavaScriptFile(r)&&e.isCheckJsEnabledForFile(r,i.getCompilerOptions()))return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:[{fileName:r.fileName,textChanges:[n(r,o.start,a)]}]},{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[{fileName:r.fileName,textChanges:[{span:{start:r.checkJsDirective?r.checkJsDirective.pos:0,length:r.checkJsDirective?r.checkJsDirective.end-r.checkJsDirective.pos:0},newText:"// @ts-nocheck"+a}]}]}]}t.registerCodeFix({errorCodes:function(){var t=e.Diagnostics;return Object.keys(t).filter(function(n){return t[n]&&t[n].category===e.DiagnosticCategory.Error}).map(function(e){return t[e].code})}(),getCodeActions:r})}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){!function(t){function n(t,n,r){for(var i=r.sourceFile,a=e.textChanges.ChangeTracker.fromContext(r),o=0,s=t;og.length){var h=r.getSignatureFromDeclaration(a[a.length-1]),b=i(h,n,u());b&&y.push(b)}else{e.Debug.assert(a.length===g.length);var x=s(g,c,p,f);y.push(x)}return y;default:return}}}function a(t,n,r,i){var a,s=o(t.arguments.length,void 0,void 0,r);if(r)for(var c=e.length(t.typeArguments),l=0;l=r?e.createToken(55):void 0,i?e.createKeywordTypeNode(119):void 0,void 0);a.push(s)}return a}function s(t,n,r,i){for(var a=t[0],s=t[0].minArgumentCount,u=!1,l=0;l=a.parameters.length&&(!d.hasRestParameter||a.hasRestParameter)&&(a=d)}var f=a.parameters.length-(a.hasRestParameter?1:0),_=a.parameters.map(function(e){return e.name}),p=o(f,_,s,!0);if(u){var m=e.createArrayTypeNode(e.createKeywordTypeNode(119)),g=e.createParameter(void 0,void 0,e.createToken(24),_[f]||"rest",f>=s?e.createToken(55):void 0,m,void 0);p.push(g)}return c(i,n,r,void 0,p,void 0)}function c(t,n,r,i,a,o){return e.createMethod(void 0,t,void 0,n,r?e.createToken(55):void 0,i,a,o,u())}function u(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}function l(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.newNodesToChanges=n,t.createMissingMemberNodes=r,t.createMethodFromCallExpression=a,t.createStubbedMethod=c}(e.codefix||(e.codefix={}))}(o||(o={}));var o;!function(e){!function(t){function n(t){function n(t){if(e.isIdentifier(t.name)){var n=c(t.name),r=n&&d(n,t);if(r)return o(t.name.getText(),t.name.getEnd(),": "+r)}}function i(e){switch(e.kind){case 228:case 151:case 152:return!0;case 186:return!!e.name}return!1}function a(t){var n=t.parameters[0];if(n&&e.isIdentifier(t.name)&&e.isIdentifier(n.name)){var r=c(t.name)||c(n.name),i=r&&d(r,b);if(i)return o(t.name.getText(),n.name.getEnd(),": "+i)}}function o(t,n,r){return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Infer_type_of_0_from_usage),[t]),changes:[{fileName:p.fileName,textChanges:[{span:{start:n,length:0},newText:r}]}]}]}function s(t){var n=e.FindAllReferences.findReferencedSymbols(m,y,m.getSourceFiles(),t.getSourceFile(),t.getStart());return e.Debug.assert(!!n,"Found no references!"),e.Debug.assert(1===n.length,"Found more references than expected"),e.map(n[0].references,function(t){return e.getTokenAtPosition(m.getSourceFile(t.fileName),t.textSpan.start,!1)})}function c(e){return r.inferTypeFromReferences(s(e),x,y)}function u(e){switch(e.kind){case 152:case 186:case 228:case 151:var t=152===e.kind,n=t?f(e,p,123):e.name;if(n)return r.inferTypeForParametersFromReferences(s(n),e,x,y)}}function l(){if(!_){var t="",n=!0,r=function(e){return t+=e};_={string:function(){return n?t:void 0},writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:r,writeLine:function(){return t+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){t="",n=!0},trackSymbol:function(e,t,r){0!==x.isSymbolAccessible(e,t,r,!1).accessibility&&(n=!1)},reportInaccessibleThisError:function(){n=!1},reportPrivateInBaseOfClassExpression:function(){n=!1}}}return _.clear(),_}function d(e,t){var n=l();return x.getSymbolDisplayBuilder().buildTypeDisplay(e,n,t),n.string()}function f(e,t,n){for(var r=0,i=e.getChildren(t);r_&&(m?p=e.concatenate(p,e.map(y.argumentTypes.slice(_),function(e){return r.getBaseTypeOfLiteralType(e)})):p.push(r.getBaseTypeOfLiteralType(y.argumentTypes[_])))}if(p.length){var v=r.getWidenedType(r.getUnionType(p,!0));f[_]=m?r.createArrayType(v):v}}return f}}}function i(t,n,r){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;switch(t.parent.kind){case 193:r.isNumber=!0;break;case 192:o(t.parent,r);break;case 194:s(t,t.parent,n,r);break;case 257:case 258:c(t.parent,n,r);break;case 181:case 182:t.parent.expression===t?u(t.parent,n,r):a(t,n,r);break;case 179:l(t.parent,n,r);break;case 180:d(t.parent,t,n,r);break;default:return a(t,n,r)}}function a(t,n,r){e.isPartOfExpression(t)&&m(r,n.getContextualType(t))}function o(e,t){switch(e.operator){case 43:case 44:case 38:case 52:t.isNumber=!0;break;case 37:t.isNumberOrString=!0}}function s(t,n,r,i){switch(n.operatorToken.kind){case 40:case 39:case 41:case 42:case 45:case 46:case 47:case 48:case 49:case 50:case 60:case 62:case 61:case 63:case 64:case 68:case 69:case 70:case 65:case 67:case 66:case 38:case 27:case 30:case 29:case 31:var a=r.getTypeAtLocation(n.left===t?n.right:n.left);272&a.flags?m(i,a):i.isNumber=!0;break;case 59:case 37:var o=r.getTypeAtLocation(n.left===t?n.right:n.left);272&o.flags?m(i,o):84&o.flags?i.isNumber=!0:262178&o.flags?i.isString=!0:i.isNumberOrString=!0;break;case 58:case 32:case 34:case 35:case 33:m(i,r.getTypeAtLocation(n.left===t?n.right:n.left));break;case 92:t===n.left&&(i.isString=!0);break;case 54:t!==n.left||226!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||m(i,r.getTypeAtLocation(n.right))}}function c(e,t,n){m(n,t.getTypeAtLocation(e.parent.parent.expression))}function u(e,t,n){var r={argumentTypes:[],returnType:{}};if(e.arguments)for(var a=0,o=e.arguments;at&&(r?a=e.concatenate(a,e.map(c.argumentTypes.slice(t),function(e){return i.getBaseTypeOfLiteralType(e)})):a.push(i.getBaseTypeOfLiteralType(c.argumentTypes[t])))}if(a.length){var u=i.getWidenedType(i.getUnionType(a,!0));return r?i.createArrayType(u):u}}function p(t,n){for(var r=[],i=0;i0?[{name:s.name,description:s.description,actions:[{description:s.description,name:o}]}]:void 0}}function i(t,n){function r(t,n){void 0===n&&(n=!1),f.some(function(n){return e.isNodeDescendantOf(t,n)})||(f.push(t),n?_.push(function(){return h.deleteNodeInList(u,t)}):_.push(function(){return h.deleteNode(u,t)}))}function i(t){function n(t,n){return e.isFunctionLike(n)}function i(t,i){if(4&t.flags){var a=t.valueDeclaration,o=a.parent;if(n(a,o.right)){if(r(o.parent&&210===o.parent.kind?o.parent:o),!o.right)return e.createProperty([],i,t.name,void 0,void 0,void 0);switch(o.right.kind){case 186:var l=o.right,d=e.concatenate(i,c(l,120)),f=e.createMethod(void 0,d,void 0,a.name,void 0,void 0,l.parameters,void 0,l.body);return s(o,f),f;case 187:var _=o.right,p=_.body,m=void 0;if(207===p.kind)m=p;else{var g=p;m=e.createBlock([e.createReturn(g)])}var d=e.concatenate(i,c(_,120)),f=e.createMethod(void 0,d,void 0,a.name,void 0,void 0,_.parameters,void 0,m);return s(o,f),f;default:if(e.isSourceFileJavaScript(u))return;var h=e.createProperty(void 0,i,a.name,void 0,void 0,o.right);return s(o.parent,h),h}}}}var a=[];return t.members&&t.members.forEach(function(e){var t=i(e,void 0);t&&a.push(t)}),t.exports&&t.exports.forEach(function(t){var n=i(t,[e.createToken(115)]);n&&a.push(n)}),a}function s(t,n){e.forEachLeadingCommentRange(u.text,t.pos,function(t,r,i,a){3===i?(t+=2,r-=2):t+=2,e.addSyntheticLeadingComment(n,i,u.text.slice(t,r),a)})}function c(t,n){return e.filter(t.modifiers,function(e){return e.kind===n})}if(o===n){var u=t.file,l=a(t),d=t.rulesProvider.getFormatOptions().newLineCharacter,f=[],_=[];if(19&l.flags){var p,m,g=l.valueDeclaration,h=e.textChanges.ChangeTracker.fromContext(t);switch(g.kind){case 228:p=g,r(g),m=function(t){var n=i(l);t.body&&n.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body));var r=c(t,84);return e.createClassDeclaration(void 0,r,t.name,void 0,void 0,n)}(g);break;case 226:p=g.parent.parent,1===g.parent.declarations.length?r(p):r(g,!0),m=function(t){var n=t.initializer;if(n&&186===n.kind&&71===t.name.kind){var r=i(n.symbol);n.body&&r.unshift(e.createConstructor(void 0,void 0,n.parameters,n.body));var a=c(p,84);return e.createClassDeclaration(void 0,a,t.name,void 0,void 0,r)}}(g)}if(m){h.insertNodeAfter(u,p,m,{suffix:d});for(var y=0,v=_;y=n.start+n.length)return(s||(s=[])).push(e.createDiagnosticForNode(t,J.CannotExtractSuper)),!0}else l|=U.UsesThis}if(!t||e.isFunctionLikeDeclaration(t)||e.isClassLike(t)){switch(t.kind){case 228:case 229:265===t.parent.kind&&void 0===t.parent.externalModuleIndicator&&(s||(s=[])).push(e.createDiagnosticForNode(t,J.FunctionWillNotBeVisibleInTheNewScope))}return!1}var o=d;switch(t.kind){case 211:case 224:d=0;break;case 207:t.parent&&224===t.parent.kind&&t.parent.finallyBlock===t&&(d=4);break;case 257:d|=1;break;default:e.isIterationStatement(t,!1)&&(d|=3)}switch(t.kind){case 169:case 99:l|=U.UsesThis;break;case 222:var f=t.label;(c||(c=[])).push(f.escapedText),e.forEachChild(t,i),c.pop();break;case 218:case 217:var f=t.label;f?e.contains(c,f.escapedText)||(s||(s=[])).push(e.createDiagnosticForNode(t,J.CannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):d&(218===t.kind?1:2)||(s||(s=[])).push(e.createDiagnosticForNode(t,J.CannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 191:l|=U.IsAsyncFunction;break;case 197:l|=U.IsGenerator;break;case 219:4&d?l|=U.HasReturn:(s||(s=[])).push(e.createDiagnosticForNode(t,J.CannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(t,i)}d=o}var a;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"}(a||(a={})),!(e.isStatement(t)||e.isPartOfExpression(t)&&B(t)))return[e.createDiagnosticForNode(t,J.StatementOrExpressionExpected)];if(e.isInAmbientContext(t))return[e.createDiagnosticForNode(t,J.CannotExtractAmbientBlock)];var o=e.getContainingClass(t);o&&r(t,o);var s,c,d=4;return i(t),s}var a=n.length;if(0===a)return{errors:[e.createFileDiagnostic(t,n.start,a,J.CannotExtractEmpty)]};var s=R(e.getTokenAtPosition(t,n.start,!1),t,n),c=R(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(n)),t,n),u=[],l=U.None;if(!s||!c)return{errors:[e.createFileDiagnostic(t,n.start,a,J.CannotExtractRange)]};if(s.parent!==c.parent)return{errors:[e.createFileDiagnostic(t,n.start,a,J.CannotExtractRange)]};if(s!==c){if(!j(s.parent))return{errors:[e.createFileDiagnostic(t,n.start,a,J.CannotExtractRange)]};for(var d=[],f=0,_=s.parent.statements;f<_.length;f++){var p=_[f];if(p===s||d.length){var m=i(p);if(m)return{errors:m};d.push(p)}if(p===c)break}return{targetRange:{range:d,facts:l,declarations:u}}}var g=function(t){if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t))return[e.createDiagnosticForNode(t,J.CannotExtractIdentifier)]}(s)||i(s);return g?{errors:g}:{targetRange:{range:o(s),facts:l,declarations:u}}}function o(t){return e.isStatement(t)?[t]:e.isPartOfExpression(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}function s(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function c(t){var n=I(t.range)?e.first(t.range):t.range;if(t.facts&U.UsesThis){var r=e.getContainingClass(n);if(r){var i=e.findAncestor(n,e.isFunctionLikeDeclaration);return i?[i,r]:[r]}}for(var a=[];;)if(n=n.parent,146===n.kind&&(n=e.findAncestor(n,function(t){return e.isFunctionLikeDeclaration(t)}).parent),s(n)&&(a.push(n),265===n.kind))return a}function u(t,n,r){var i=f(t,n),a=i.scopes,o=i.readsAndWrites,s=o.target,c=o.usagesPerScope,u=o.functionErrorsPerScope,l=o.exposedVariableDeclarations;return e.Debug.assert(!u[r].length,"The extraction went missing? How?"),n.cancellationToken.throwIfCancellationRequested(),v(s,a[r],c[r],l,t,n)}function l(t,n,r){var i=f(t,n),a=i.scopes,o=i.readsAndWrites,s=o.target,c=o.usagesPerScope,u=o.constantErrorsPerScope,l=o.exposedVariableDeclarations;return e.Debug.assert(!u[r].length,"The extraction went missing? How?"),e.Debug.assert(0===l.length,"Extract constant accepted a range containing a variable declaration?"),n.cancellationToken.throwIfCancellationRequested(),b(e.isExpression(s)?s:s.statements[0].expression,a[r],c[r],t.facts,n)}function d(t,n){var r=f(t,n),i=r.scopes,a=r.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope;return i.map(function(t,n){var r,i,a=_(t),c=p(t),u=e.isFunctionLikeDeclaration(t)?m(t):e.isClassLike(t)?g(t):h(t);return 1===u?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===u?(r=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"])):(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,u]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,u])),0!==n||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:r,errors:o[n]},constantExtraction:{description:i,errors:s[n]}}})}function f(e,t){var n=t.file,r=c(e);return{scopes:r,readsAndWrites:M(e,r,F(e,n),n,t.program.getTypeChecker(),t.cancellationToken)}}function _(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}function p(t){return e.isClassLike(t)?"readonly field":"constant"}function m(t){switch(t.kind){case 152:return"constructor";case 186:return t.name?"function expression '"+t.name.text+"'":"anonymous function expression";case 228:return"function '"+t.name.text+"'";case 187:return"arrow function";case 151:return"method '"+t.name.getText();case 153:return"'get "+t.name.getText()+"'";case 154:return"'set "+t.name.getText()+"'";default:e.Debug.assertNever(t)}}function g(e){return 229===e.kind?"class '"+e.name.text+"'":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}function h(e){return 234===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}function y(t,n){for(var r=t,i=1;e.stringContains(n,r);i++)r=t+"_"+i;return r}function v(t,n,r,i,a,o){function s(t){if(void 0!==t){for(var n=e.getSynthesizedDeepClone(t),r=n;e.isParenthesizedTypeNode(r);)r=r.type;return e.isUnionTypeNode(r)&&e.find(r.types,function(e){return 139===e.kind})?n:e.createUnionTypeNode([n,e.createKeywordTypeNode(139)])}}var c,u=r.usages,l=r.typeParameterUsages,d=r.substitutions,f=o.program.getTypeChecker(),_=n.getSourceFile(),p=y(e.isClassLike(n)?"newMethod":"newFunction",_.text),m=e.isInJavaScriptFile(n),g=e.createIdentifier(p),h=void 0,v=[],b=[];u.forEach(function(n,r){var i=void 0;if(!m){var a=f.getTypeOfSymbolAtLocation(n.symbol,n.node);a=f.getBaseTypeOfLiteralType(a),i=f.typeToTypeNode(a,t,e.NodeBuilderFlags.NoTruncation)}var o=e.createParameter(void 0,void 0,void 0,r,void 0,i);v.push(o),2===n.usage&&(c||(c=[])).push(n),b.push(e.createIdentifier(r))});var x=e.arrayFrom(l.values()).map(function(e){return{type:e,declaration:S(e)}}),E=x.sort(C),w=0===E.length?void 0:E.map(function(e){return e.declaration}),N=void 0!==w?w.map(function(t){return e.createTypeReferenceNode(t.name,void 0)}):void 0;if(e.isExpression(t)&&!m){var P=f.getContextualType(t);h=f.typeToTypeNode(P,n,e.NodeBuilderFlags.NoTruncation)}var F=T(t,i,c,d,!!(a.facts&U.HasReturn)),M=F.body,R=F.returnValueProperty;e.suppressLeadingAndTrailingTrivia(M);var L;if(e.isClassLike(n)){var B=m?[]:[e.createToken(112)];a.facts&U.InStaticRegion&&B.push(e.createToken(115)),a.facts&U.IsAsyncFunction&&B.push(e.createToken(120)),L=e.createMethod(void 0,B.length?B:void 0,a.facts&U.IsGenerator?e.createToken(39):void 0,g,void 0,w,v,h,M)}else L=e.createFunctionDeclaration(void 0,a.facts&U.IsAsyncFunction?[e.createToken(120)]:void 0,a.facts&U.IsGenerator?e.createToken(39):void 0,g,w,v,h,M);var j=e.textChanges.ChangeTracker.fromContext(o),z=(I(a.range)?e.last(a.range):a.range).end,J=A(z,n);J?j.insertNodeBefore(o.file,J,L,{suffix:o.newLineCharacter+o.newLineCharacter}):j.insertNodeBefore(o.file,n.getLastToken(),L,{prefix:e.isLineBreak(_.text.charCodeAt(n.getLastToken().pos))?o.newLineCharacter:o.newLineCharacter+o.newLineCharacter,suffix:o.newLineCharacter});var K=[],q=D(n,a,p),V=e.createCall(q,N,b);if(a.facts&U.IsGenerator&&(V=e.createYield(e.createToken(39),V)),a.facts&U.IsAsyncFunction&&(V=e.createAwait(V)),i.length&&!c)if(e.Debug.assert(!R),e.Debug.assert(!(a.facts&U.HasReturn)),1===i.length){var W=i[0];K.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(W.name),e.getSynthesizedDeepClone(W.type),V)],W.parent.flags)))}else{for(var H=[],G=[],$=i[0].parent.flags,X=!1,Y=0,Q=i;Y1)return t;r=t,t=t.parent}}function k(t,n,r,i){for(var a=0,o=-1,s=0,c=t;s=0),o}function S(e){var t=void 0,n=e.symbol;if(n&&n.declarations)for(var r=0,i=n.declarations;r0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.createBlock(t.statements,!0),returnValueProperty:void 0};var c,u=!1,l=e.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.createReturn(t)]);if(s||i.size){var d=e.visitNodes(l,o).slice();if(s&&!a&&e.isStatement(t)){var f=O(n,r);1===f.length?d.push(e.createReturn(f[0].name)):d.push(e.createReturn(e.createObjectLiteral(f)))}return{body:e.createBlock(d,!0),returnValueProperty:c}}return{body:e.createBlock(l,!0),returnValueProperty:void 0}}function E(t,n){function r(t){var i=n.get(e.getNodeId(t).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(t,r,e.nullTransformationContext)}return n.size?r(t):t}function w(t){if(e.isFunctionLikeDeclaration(t)){var n=t.body;if(e.isBlock(n))return n.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertTypeIsNever(t)}return e.emptyArray}function A(t,n){return e.find(w(n),function(n){return n.pos>=t&&e.isFunctionLikeDeclaration(n)&&!e.isConstructorDeclaration(n)})}function N(t,n){var r=n.members;e.Debug.assert(r.length>0);for(var i=void 0,a=!0,o=0,s=r;ot)return i||r[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==i)return c;a=!1}i=c}return e.Debug.assert(void 0!==i),i}function P(t,n){e.Debug.assert(!e.isClassLike(n));for(var r=void 0,i=t;i!==n;i=i.parent)s(i)&&(r=i);for(var i=(r||t).parent;;i=i.parent){if(j(i)){for(var a=void 0,o=0,c=i.statements;ot.pos)break;a=u}return e.Debug.assert(void 0!==a),a}if(i===n){e.Debug.fail("Didn't encounter a block-like before encountering scope");break}}}function O(t,n){var r=e.map(t,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)}),i=e.map(n,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)});return void 0===r?i:void 0===i?r:r.concat(i)}function I(t){return e.isArray(t)}function F(t,n){return I(t.range)?{pos:e.first(t.range).getStart(n),end:e.last(t.range).getEnd()}:t.range}function M(t,n,r,i,a,o){function s(t){return e.isDeclarationWithTypeParameters(t)&&void 0!==t.typeParameters&&t.typeParameters.length>0}function c(e){for(var t=a.getSymbolWalker(function(){return o.throwIfCancellationRequested(),!0}),n=t.walkType(e).visitedTypes,r=0,i=n;r=s)return l;if(F.set(l,s),d){for(var f=0,m=g;f=0)){var r=e.isIdentifier(n)?_(n):a.getSymbolAtLocation(n);if(r){var i=e.find(b,function(e){return e.symbol===r});if(i)if(e.isVariableDeclaration(i)){var o=i.symbol.id.toString();x.has(o)||(k.push(i),x.set(o,!0))}else S=S||i}e.forEachChild(n,f)}}function _(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?a.getShorthandAssignmentValueSymbol(t.parent):a.getSymbolAtLocation(t)}function p(t,n,r){if(t){if(t.getDeclarations().some(function(e){return e.parent===n}))return e.createIdentifier(t.name);var i=p(t.parent,n,r);if(void 0!==i)return r?e.createQualifiedName(i,e.createIdentifier(t.name)):e.createPropertyAccess(i,t.name)}}var m=e.createMap(),g=[],h=[],y=[],v=[],b=[],x=e.createMap(),k=[],S=void 0,C=I(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range,D=void 0;if(void 0===C){var T=t.range,E=e.first(T).getStart(),w=e.last(T).end;D=e.createFileDiagnostic(i,E,w-E,J.ExpressionExpected)}else 9216&a.getTypeAtLocation(C).flags&&(D=e.createDiagnosticForNode(C,J.UselessConstantType));for(var A=0,N=n;A0){for(var B=e.createMap(),j=0,z=R;void 0!==z&&j0&&(r.usages.size>0||r.typeParameterUsages.size>0)){var i=I(t.range)?t.range[0]:t.range;v[n].push(e.createDiagnosticForNode(i,J.CannotAccessVariablesFromNestedScopes))}var a=!1,o=void 0;if(g[n].usages.forEach(function(t){2===t.usage&&(a=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))}),e.Debug.assert(I(t.range)||0===k.length),a&&!I(t.range)){var s=e.createDiagnosticForNode(t.range,J.CannotWriteInExpression);y[n].push(s),v[n].push(s)}else if(o&&n>0){var s=e.createDiagnosticForNode(o,J.CannotExtractReadonlyPropertyInitializerOutsideConstructor);y[n].push(s),v[n].push(s)}else if(S){var s=e.createDiagnosticForNode(S,J.CannotExtractExportedEntity);y[n].push(s),v[n].push(s)}}(G);return{target:M,usagesPerScope:g,functionErrorsPerScope:y,constantErrorsPerScope:v,exposedVariableDeclarations:k}}function R(t,n,r){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!L(r,t.parent,n))return t;t=t.parent}}function L(t,n,r){return e.textSpanContainsPosition(t,n.getStart(r))&&n.getEnd()<=e.textSpanEnd(t)}function B(e){switch(e.parent.kind){case 264:return!1}switch(e.kind){case 9:return 238!==e.parent.kind&&242!==e.parent.kind;case 198:case 174:case 176:return!1;case 71:return 176!==e.parent.kind&&242!==e.parent.kind&&246!==e.parent.kind}return!0}function j(e){switch(e.kind){case 207:case 265:case 234:case 257:return!0;default:return!1}}var z={name:"Extract Symbol",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_symbol),getAvailableActions:r,getEditsForAction:i};t.registerRefactor(z),n.getAvailableActions=r,n.getEditsForAction=i;var J;!function(t){function n(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.CannotExtractRange=n("Cannot extract range."),t.CannotExtractImport=n("Cannot extract import statement."),t.CannotExtractSuper=n("Cannot extract super call."),t.CannotExtractEmpty=n("Cannot extract empty range."),t.ExpressionExpected=n("expression expected."),t.UselessConstantType=n("No reason to extract constant of type."),t.StatementOrExpressionExpected=n("Statement or expression expected."),t.CannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),t.CannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),t.CannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),t.CannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),t.TypeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),t.FunctionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),t.CannotExtractIdentifier=n("Select more than a single identifier."),t.CannotExtractExportedEntity=n("Cannot extract exported declaration"),t.CannotWriteInExpression=n("Cannot write back side-effects when extracting an expression"),t.CannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),t.CannotExtractAmbientBlock=n("Cannot extract code from ambient contexts"),t.CannotAccessVariablesFromNestedScopes=n("Cannot access variables from nested scopes"),t.CannotExtractToOtherFunctionLike=n("Cannot extract method to a function-like scope that is not a function"),t.CannotExtractToJSClass=n("Cannot extract constant to a class scope in JS"),t.CannotExtractToExpressionArrowFunction=n("Cannot extract constant to an arrow function without a block")}(J=n.Messages||(n.Messages={}));var U;!function(e){e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion"}(U||(U={})),n.getRangeToExtract=a;var K;!function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(K||(K={}));var q;!function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(q||(q={}))}(t.extractSymbol||(t.extractSymbol={}))}(e.refactor||(e.refactor={}))}(o||(o={}));var o;!function(e){!function(t){!function(n){function r(e){var t=e.program.getCompilerOptions();if(!(void 0===t.noImplicitAny?t.strict:t.noImplicitAny)){var n=a(e);return n&&[{name:c.name,description:c.description,actions:[{description:n.description,name:s}]}]}}function i(t,n){return e.Debug.assertEqual(s,n),{edits:[],renameFilename:void 0,renameLocation:void 0,commands:a(t).commands}}function a(t){var n=t.file,r=t.startPosition,i=e.getTokenAtPosition(n,r,!1);if(e.isStringLiteral(i)&&o(i)&&void 0===e.getResolvedModule(n,i.text))return e.codefix.tryGetCodeActionForInstallPackageTypes(t.host,i.text)}function o(e){switch(e.parent.kind){case 238:case 248:return!0;default:return!1}}var s="install",c={name:"Install missing types package",description:"Install missing types package",getEditsForAction:i,getAvailableActions:r};t.registerRefactor(c)}(t.installTypesForPackage||(t.installTypesForPackage={}))}(e.refactor||(e.refactor={}))}(o||(o={}));var o;!function(e){function t(t,n,r,i){var a=e.isNodeKind(t)?new S(t,n,r):71===t?new E(71,n,r):new T(t,n,r);return a.parent=i,a}function n(t){var n=!0;for(var i in t)if(e.hasProperty(t,i)&&!r(i)){n=!1;break}if(n)return t;var a={};for(var i in t)if(e.hasProperty(t,i)){var o=r(i)?i:i.charAt(0).toLowerCase()+i.substr(1);a[o]=t[i]}return a}function r(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function i(t){return t?e.map(t,function(e){return e.text}).join(""):""}function o(){return{target:1,jsx:1}}function s(){return e.codefix.getSupportedErrorCodes()}function u(e,t,n){e.version=n,e.scriptSnapshot=t}function l(t,n,r,i,a,o){var s=n.getText(0,n.getLength()),c=e.createSourceFile(t,s,r,a,o);return u(c,n,i),c}function d(t,n,r,i,a){if(i&&r!==t.version&&!e.disableIncrementalParsing){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var d=n.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+d+c:s?s+d:d+c}var f=e.updateSourceFile(t,o,i,a);return u(f,n,r),f.nameTable=void 0,t!==f&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),f}return l(t.fileName,n,t.languageVersion,r,!0,t.scriptKind)}function f(t,r){function i(e){t.log&&t.log(e)}function a(e){var t=le.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function o(e){return k.ensureUpToDate(e),k}function s(){function n(n){var r=e.toPath(n,me,ge),i=l.getEntryByPath(r);return i?!e.isString(i):t.fileExists&&t.fileExists(n)}function a(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.path,n)}function o(t,n,r,i){return s(t,e.toPath(t,me,ge),n,r,i)}function s(t,n,i,a,o){e.Debug.assert(void 0!==l);var s=l.getOrCreateEntryByPath(t,n);if(s){if(!o){var c=le&&le.getSourceFileByPath(n);if(c)return e.Debug.assertEqual(s.scriptKind,c.scriptKind,"Registered script kind should match new script kind.",n),r.updateDocumentWithKey(t,n,_,m,s.scriptSnapshot,s.version,s.scriptKind)}return r.acquireDocumentWithKey(t,n,_,m,s.scriptSnapshot,s.version,s.scriptKind)}}if(t.getProjectVersion){var c=t.getProjectVersion();if(c){if(de===c&&!t.hasChangedAutomaticTypeDirectiveNames)return;de=c}}var u=t.getTypeRootsVersion?t.getTypeRootsVersion():0;fe!==u&&(i("TypeRoots version has changed; provide new program"),le=void 0,fe=u);var l=new O(t,ge),d=l.getRootFileNames(),f=t.hasInvalidatedResolution||e.returnFalse;if(!e.isProgramUptoDate(le,d,l.compilationSettings(),function(e){return l.getVersion(e)},n,f,t.hasChangedAutomaticTypeDirectiveNames)){var _=l.compilationSettings(),p={getSourceFile:o,getSourceFileByPath:s,getCancellationToken:function(){return pe},getCanonicalFileName:ge,useCaseSensitiveFileNames:function(){return _e},getNewLine:function(){return e.getNewLineCharacter(_,{newLine:e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return me},fileExists:n,readFile:function(n){var r=e.toPath(n,me,ge),i=l.getEntryByPath(r);return i?e.isString(i)?void 0:i.scriptSnapshot.getText(0,i.scriptSnapshot.getLength()):t.readFile&&t.readFile(n)},directoryExists:function(n){return e.directoryProbablyExists(n,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},onReleaseOldSourceFile:a,hasInvalidatedResolution:f,hasChangedAutomaticTypeDirectiveNames:t.hasChangedAutomaticTypeDirectiveNames};t.trace&&(p.trace=function(e){return t.trace(e)}),t.resolveModuleNames&&(p.resolveModuleNames=function(e,n,r){return t.resolveModuleNames(e,n,r)}),t.resolveTypeReferenceDirectives&&(p.resolveTypeReferenceDirectives=function(e,n){return t.resolveTypeReferenceDirectives(e,n)});var m=r.getKeyForCompilationSettings(_);le=e.createProgram(d,_,p,le),l=void 0,le.getTypeChecker()}}function c(){return s(),le}function u(){le=void 0}function l(){le&&(e.forEach(le.getSourceFiles(),function(e){return r.releaseDocument(e.fileName,le.getCompilerOptions())}),le=void 0),t=void 0}function d(e){return s(),le.getSyntacticDiagnostics(a(e),pe).slice()}function f(e){s();var t=a(e),n=le.getSemanticDiagnostics(t,pe);if(!le.getCompilerOptions().declaration)return n.slice();var r=le.getDeclarationDiagnostics(t,pe);return n.concat(r)}function _(){return s(),le.getOptionsDiagnostics(pe).concat(le.getGlobalDiagnostics(pe))}function p(n,r){return s(),e.Completions.getCompletionsAtPosition(t,le.getTypeChecker(),i,le.getCompilerOptions(),a(n),r,le.getSourceFiles())}function m(n,r,c,u,l){s();var d=u?o(u):void 0;return e.Completions.getCompletionEntryDetails(le.getTypeChecker(),i,le.getCompilerOptions(),a(n),r,{name:c,source:l},le.getSourceFiles(),t,d)}function g(t,n,r,o){return s(),e.Completions.getCompletionEntrySymbol(le.getTypeChecker(),i,le.getCompilerOptions(),a(t),n,{name:r,source:o},le.getSourceFiles())}function h(t,n){s();var r=a(t),i=e.getTouchingPropertyName(r,n,!0);if(i!==r&&!e.isLabelName(i)){var o=le.getTypeChecker(),c=y(i,o);if(c&&!o.isUnknownSymbol(c)){var u=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(o,c,r,e.getContainerNode(i),i);return{kind:u.symbolKind,kindModifiers:e.SymbolDisplay.getSymbolModifiers(c),textSpan:e.createTextSpan(i.getStart(),i.getWidth()),displayParts:u.displayParts,documentation:u.documentation,tags:u.tags}}switch(i.kind){case 71:case 179:case 143:case 99:case 169:case 97:var l=o.getTypeAtLocation(i);if(l)return{kind:"",kindModifiers:"",textSpan:e.createTextSpan(i.getStart(),i.getWidth()),displayParts:e.typeToDisplayParts(o,l,e.getContainerNode(i)),documentation:l.symbol?l.symbol.getDocumentationComment():void 0,tags:l.symbol?l.symbol.getJsDocTags():void 0}}}}function y(t,n){if((e.isIdentifier(t)||e.isStringLiteral(t))&&e.isPropertyAssignment(t.parent)&&t.parent.name===t){var r=n.getContextualType(t.parent.parent);if(r){var i=n.getPropertyOfType(r,e.getTextOfIdentifierOrLiteral(t));if(i)return i}}return n.getSymbolAtLocation(t)}function v(t,n){return s(),e.GoToDefinition.getDefinitionAtPosition(le,a(t),n)}function b(t,n){return s(),e.GoToDefinition.getTypeDefinitionAtPosition(le.getTypeChecker(),a(t),n)}function x(t,n){return s(),e.FindAllReferences.getImplementationsAtPosition(le,pe,le.getSourceFiles(),a(t),n)}function S(t,n){var r=D(t,n);if(r){var i=ge(e.normalizeSlashes(t));r=e.filter(r,function(t){return ge(e.normalizeSlashes(t.fileName))===i})}return r}function C(t,n,r){s();var i=e.map(r,function(e){return le.getSourceFile(e)}),o=a(t);return e.DocumentHighlights.getDocumentHighlights(le,pe,o,n,i)}function D(e,t){return function(e){if(e){for(var t=[],n=0,r=e;n0&&!function(t){return e.stringContains(t,"/node_modules/")}(i.fileName))for(var u=function(){var t=/(?:\/\/+\s*)/.source,i=/(?:\/\*+\s*)/.source,a=/(?:^(?:\s|\*)*)/.source,o="("+a+"|"+t+"|"+i+")",s="(?:"+e.map(n,function(e){return"("+r(e.text)+")"}).join("|")+")",c=/(?:$|\*\/)/.source,u=/(?:.*?)/.source,l="("+s+u+")",d=o+l+c;return new RegExp(d,"gim")}(),l=void 0;l=u.exec(o);){pe.throwIfCancellationRequested();e.Debug.assert(l.length===n.length+3);var d=l[1],f=l.index+d.length;if(e.isInComment(i,f)){for(var _=void 0,p=0;p=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}(o.charCodeAt(f+_.text.length))){var m=l[2];c.push({descriptor:_,message:m,position:f})}}}return c}function ae(n,r){s();var i=t.getDefaultLibFileName(t.getCompilationSettings());return e.Rename.getRenameInfo(le.getTypeChecker(),i,ge,a(n),r)}function oe(e,n,r){var i="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:e,startPosition:i[0],endPosition:i[1],program:c(),newLineCharacter:r?r.newLineCharacter:t.getNewLine(),host:t,rulesProvider:o(r),cancellationToken:pe}}function se(t,n){s();var r=a(t);return e.refactor.getApplicableRefactors(oe(r,n))}function ce(t,n,r,i,o){s();var c=a(t);return e.refactor.getEditsForRefactor(oe(c,r,n),i,o)}void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var ue=new I(t);k=k||new e.formatting.RulesProvider;var le,de,fe=0,_e=t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),pe=new F(t.getCancellationToken&&t.getCancellationToken()),me=t.getCurrentDirectory();!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var ge=e.createGetCanonicalFileName(_e);return{dispose:l,cleanupSemanticCache:u,getSyntacticDiagnostics:d,getSemanticDiagnostics:f,getCompilerOptionsDiagnostics:_,getSyntacticClassifications:V,getSemanticClassifications:K,getEncodedSyntacticClassifications:W,getEncodedSemanticClassifications:q,getCompletionsAtPosition:p,getCompletionEntryDetails:m,getCompletionEntrySymbol:g,getSignatureHelpItems:M,getQuickInfoAtPosition:h,getDefinitionAtPosition:v,getImplementationAtPosition:x,getTypeDefinitionAtPosition:b,getReferencesAtPosition:E,findReferences:A,getOccurrencesAtPosition:S,getDocumentHighlights:C,getNameOrDottedNameSpan:B,getBreakpointStatementAtPosition:j,getNavigateToItems:N,getRenameInfo:ae,findRenameLocations:T,getNavigationBarItems:z,getNavigationTree:J,getOutliningSpans:H,getTodoComments:ie,getBraceMatchingAtPosition:G,getIndentationAtPosition:$,getFormattingEditsForRange:X,getFormattingEditsForDocument:Y,getFormattingEditsAfterKeystroke:Q,getDocCommentTemplateAtPosition:te,isValidBraceCompletionAtPosition:ne,getSpanOfEnclosingComment:re,getCodeFixesAtPosition:Z,applyCodeActionCommand:ee,getEmitOutput:P,getNonBoundSourceFile:R,getSourceFile:L,getProgram:c,getApplicableRefactors:se,getEditsForRefactor:ce}}function _(e){return e.nameTable||p(e),e.nameTable}function p(t){var n=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(r){if(e.isIdentifier(r)&&r.escapedText||e.isStringOrNumericLiteral(r)&&m(r)){var i=e.getEscapedTextOfIdentifierOrLiteral(r);n.set(i,void 0===n.get(i)?r.pos:-1)}if(e.forEachChild(r,t),e.hasJSDocNodes(r))for(var a=0,o=r.jsDoc;a285});return r.kind<143?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<143?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}(),C=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.parent=void 0}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,n){return e.getTokenPosOfNode(this,t,n)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return(e||this.getSourceFile()).text.substring(this.getStart(),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),D=function(){function t(e,t){this.flags=e,this.escapedName=t}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!0,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),T=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.kind=t,i}return c(t,e),t}(C),E=function(t){function n(e,n,r){return t.call(this,n,r)||this}return c(n,t),Object.defineProperty(n.prototype,"text",{get:function(){return e.idText(this)},enumerable:!0,configurable:!0}),n}(C);E.prototype.kind=71;var w=function(){function e(e,t){this.checker=e,this.flags=t}return e.prototype.getFlags=function(){return this.flags},e.prototype.getSymbol=function(){return this.symbol},e.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},e.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},e.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},e.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},e.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},e.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},e.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},e.prototype.getBaseTypes=function(){return 32768&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e}(),A=function(){function t(e){this.checker=e}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=this.declaration?e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]):[]),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}(),N=function(t){function n(e,n,r){return t.call(this,e,n,r)||this}return c(n,t),n.prototype.update=function(t,n){return e.updateSourceFile(this,t,n)},n.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},n.prototype.getLineStarts=function(){return e.getLineStarts(this)},n.prototype.getPositionOfLineAndCharacter=function(t,n){return e.getPositionOfLineAndCharacter(this,t,n)},n.prototype.getLineEndOfPosition=function(e){var t,n=this.getLineAndCharacterOfPosition(e).line,r=this.getLineStarts();n+1>=r.length&&(t=this.getEnd()),t||(t=r[n+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},n.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},n.prototype.computeNamedDeclarations=function(){function t(e){var t=r(e);t&&a.add(t,e)}function n(e){var t=a.get(e);return t||a.set(e,t=[]),t}function r(t){var n=e.getNameOfDeclaration(t);if(n){var r=e.getTextOfIdentifierOrLiteral(n);if(void 0!==r)return r;if(144===n.kind){var i=n.expression;return 179===i.kind?i.name.text:e.getTextOfIdentifierOrLiteral(i)}}}function i(a){switch(a.kind){case 228:case 186:case 151:case 150:var o=a,s=r(o);if(s){var c=n(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 229:case 199:case 230:case 231:case 232:case 233:case 237:case 246:case 242:case 239:case 240:case 153:case 154:case 163:t(a),e.forEachChild(a,i);break;case 146:if(!e.hasModifier(a,92))break;case 226:case 176:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 264:case 149:case 148:t(a);break;case 244:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 238:var d=a.importClause;d&&(d.name&&t(d),d.namedBindings&&(240===d.namedBindings.kind?t(d.namedBindings):e.forEach(d.namedBindings.elements,i)));break;case 194:0!==e.getSpecialPropertyAssignmentKind(a)&&t(a);default:e.forEachChild(a,i)}}var a=e.createMultiMap();return e.forEachChild(this,i),a},n}(S),P=function(){function t(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();e.toEditorSettings=n,e.displayPartsToString=i,e.getDefaultCompilerOptions=o,e.getSupportedCodeFixes=s;var O=function(){function t(t,n){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var r=t.getScriptFileNames(),i=0,a=r;i=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=M,e.createLanguageService=f,e.getNameTable=_,e.getContainingObjectLiteralElement=h,e.getPropertySymbolsFromContextualType=y,e.getPropertySymbolsFromType=v,e.getDefaultLibFilePath=x,e.objectAllocator=function(){return{getNodeConstructor:function(){return S},getTokenConstructor:function(){return T},getIdentifierConstructor:function(){return E},getSourceFileConstructor:function(){return N},getSymbolConstructor:function(){return D},getTypeConstructor:function(){return w},getSignatureConstructor:function(){return A},getSourceMapSourceConstructor:function(){return P}}}()}(o||(o={}));var o;!function(e){!function(t){function n(t,n){function r(n,r){var i=n.decorators?e.skipTrivia(t.text,n.decorators.end):n.getStart(t);return e.createTextSpanFromBounds(i,(r||n).getEnd())}function i(t,n){return r(t,e.findNextToken(n,n.parent))}function a(e,n){return u(e&&d===t.getLineAndCharacterOfPosition(e.getStart(t)).line?e:n)}function o(n){return e.createTextSpanFromBounds(e.skipTrivia(t.text,n.pos),n.end)}function s(n){return u(e.findPrecedingToken(n.pos,t))}function c(t){return u(e.findNextToken(t,t.parent))}function u(n){function l(n){return 227===n.parent.kind&&n.parent.declarations[0]===n?r(e.findPrecedingToken(n.pos,t,n.parent),n):r(n)}function d(n){return 215===n.parent.parent.kind?u(n.parent.parent):e.isBindingPattern(n.name)?h(n.name):n.initializer||e.hasModifier(n,1)||216===n.parent.parent.kind?l(n):227===n.parent.kind&&n.parent.declarations[0]!==n?u(e.findPrecedingToken(n.pos,t,n.parent)):void 0}function f(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}function _(t){if(e.isBindingPattern(t.name))return h(t.name);if(f(t))return r(t);var n=t.parent,i=e.indexOf(n.parameters,t);return i?_(n.parameters[i-1]):u(n.body)}function p(t){return e.hasModifier(t,1)||229===t.parent.kind&&152!==t.kind}function m(n){switch(n.parent.kind){case 233:if(1!==e.getModuleInstanceState(n.parent))return;case 213:case 211:case 215:return a(n.parent,n.statements[0]);case 214:case 216:return a(e.findPrecedingToken(n.pos,t,n.parent),n.statements[0])}return u(n.statements[0])}function g(e){if(227!==e.initializer.kind)return u(e.initializer);var t=e.initializer;return t.declarations.length>0?u(t.declarations[0]):void 0}function h(t){var n=e.forEach(t.elements,function(e){return 200!==e.kind?e:void 0});return n?u(n):176===t.parent.kind?r(t.parent):l(t.parent)}function y(t){e.Debug.assert(175!==t.kind&&174!==t.kind);var n=177===t.kind?t.elements:t.properties,i=e.forEach(n,function(e){return 200!==e.kind?e:void 0});return i?u(i):r(194===t.parent.kind?t.parent:t)}if(n)switch(n.kind){case 208:return d(n.declarationList.declarations[0]);case 226:case 149:case 148:return d(n);case 146:return _(n);case 228:case 151:case 150:case 153:case 154:case 152:case 186:case 187:return function(e){if(e.body)return p(e)?r(e):u(e.body)}(n);case 207:if(e.isFunctionBlock(n))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();return p(e.parent)?a(e.parent,t):u(t)}(n);case 234:return m(n);case 260:return m(n.block);case 210:return r(n.expression);case 219:return r(n.getChildAt(0),n.expression);case 213:return i(n,n.expression);case 212:return u(n.statement);case 225:return r(n.getChildAt(0));case 211:return i(n,n.expression);case 222:return u(n.statement);case 218:case 217:return r(n.getChildAt(0),n.label);case 214:return function(e){return e.initializer?g(e):e.condition?r(e.condition):e.incrementor?r(e.incrementor):void 0}(n);case 215:return i(n,n.expression);case 216:return g(n);case 221:return i(n,n.expression);case 257:case 258:return u(n.statements[0]);case 224:return m(n.tryBlock);case 223:case 243:return r(n,n.expression);case 237:return r(n,n.moduleReference);case 238:case 244:return r(n,n.moduleSpecifier);case 233:if(1!==e.getModuleInstanceState(n))return;case 229:case 232:case 264:case 176:return r(n);case 220:return u(n.statement);case 147:return o(n.parent.decorators);case 174:case 175:return h(n);case 230:case 231:return;case 25:case 1:return a(e.findPrecedingToken(n.pos,t));case 26:return s(n);case 17:return function(n){switch(n.parent.kind){case 232:var r=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),r.members.length?r.members[0]:r.getLastToken(t));case 229:var i=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),i.members.length?i.members[0]:i.getLastToken(t));case 235:return a(n.parent.parent,n.parent.clauses[0])}return u(n.parent)}(n);case 18:return function(t){switch(t.parent.kind){case 234:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 232:case 229:return r(t);case 207:if(e.isFunctionBlock(t.parent))return r(t);case 260:return u(e.lastOrUndefined(t.parent.statements));case 235:var n=t.parent,i=e.lastOrUndefined(n.clauses);if(i)return u(e.lastOrUndefined(i.statements));return;case 174:var a=t.parent;return u(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return r(e.lastOrUndefined(o.properties)||o)}return u(t.parent)}}(n);case 22:return function(t){switch(t.parent.kind){case 175:var n=t.parent;return r(e.lastOrUndefined(n.elements)||n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var i=t.parent;return r(e.lastOrUndefined(i.elements)||i)}return u(t.parent)}}(n);case 19:return function(e){return 212===e.parent.kind||181===e.parent.kind||182===e.parent.kind?s(e):185===e.parent.kind?c(e):u(e.parent)}(n);case 20:return function(e){switch(e.parent.kind){case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 152:case 213:case 212:case 214:case 216:case 181:case 182:case 185:return s(e);default:return u(e.parent)}}(n);case 56:return function(t){return e.isFunctionLike(t.parent)||261===t.parent.kind||146===t.parent.kind?s(t):u(t.parent)}(n);case 29:case 27:return function(e){return 184===e.parent.kind?c(e):u(e.parent)}(n);case 106:return function(e){return 212===e.parent.kind?i(e,e.parent.expression):u(e.parent)}(n);case 82:case 74:case 87:return c(n);case 142:return function(e){return 216===e.parent.kind?c(e):u(e.parent)}(n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return y(n);if((71===n.kind||198===n.kind||261===n.kind||262===n.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return r(n);if(194===n.kind){var v=n;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.left))return y(v.left);if(58===v.operatorToken.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.parent))return r(n);if(26===v.operatorToken.kind)return u(v.left)}if(e.isPartOfExpression(n))switch(n.parent.kind){case 212:return s(n);case 147:return u(n.parent);case 214:case 216:return r(n);case 194:if(26===n.parent.operatorToken.kind)return r(n);break;case 187:if(n.parent.body===n)return r(n)}if(261===n.parent.kind&&n.parent.name===n&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent))return u(n.parent.initializer);if(184===n.parent.kind&&n.parent.type===n)return c(n.parent.type);if(e.isFunctionLike(n.parent)&&n.parent.type===n)return s(n);if(226===n.parent.kind||146===n.parent.kind){var b=n.parent;if(b.initializer===n||b.type===n||e.isAssignmentOperator(n.kind))return s(n)}if(194===n.parent.kind){var v=n.parent;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.left)&&(v.right===n||v.operatorToken===n))return s(n)}return u(n.parent)}}if(!t.isDeclarationFile){var l=e.getTokenAtPosition(t,n,!1),d=t.getLineAndCharacterOfPosition(n).line;if((!(t.getLineAndCharacterOfPosition(l.getStart(t)).line>d)||(l=e.findPrecedingToken(l.pos,t))&&t.getLineAndCharacterOfPosition(l.getEnd()).line===d)&&!e.isInAmbientContext(l))return u(l)}}t.spanInSourceFileAtLocation=n}(e.BreakpointResolver||(e.BreakpointResolver={}))}(o||(o={}));var o;!function(e){function t(t,n,r){var i=[];r=e.fixupCompilerOptions(r,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,r,a,n,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}e.transform=t}(o||(o={}));var o,u=function(){return this}();!function(t){function n(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function r(e,n,r,i){var a;i&&(e.log(n),a=t.timestamp());var o=r();if(i){var s=t.timestamp();if(e.log(n+" completed in "+(s-a)+" msec"),t.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}function i(e,t,n,r){return a(e,t,!0,n,r)}function a(e,i,a,o,s){try{var c=r(e,i,o,s);return a?JSON.stringify({result:c}):c}catch(r){return r instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(n(e,r),r.description=i,JSON.stringify({error:r}))}}function o(e,t){return e.map(function(e){return s(e,t)})}function s(e,n){return{message:t.flattenDiagnosticMessageText(e.messageText,n),start:e.start,length:e.length,category:t.DiagnosticCategory[e.category].toLowerCase(),code:e.code}}function l(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var d=function(){function e(e){this.scriptSnapshotShim=e}return e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var n=e,r=this.scriptSnapshotShim.getChangeRange(n.scriptSnapshotShim);if(null===r)return null;var i=JSON.parse(r);return t.createTextChangeRange(t.createTextSpan(i.span.start,i.span.length),i.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},e}(),f=function(){function e(e){var n=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,r){var i=JSON.parse(n.shimHost.getModuleResolutionsForFile(r));return t.map(e,function(e){var n=t.getProperty(i,e);return n?{resolvedFileName:n,extension:t.extensionFromPath(n),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,r){var i=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return t.map(e,function(e){return t.getProperty(i,e)})})}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},e.prototype.error=function(e){this.shimHost.error(e)},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.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},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new d(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.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}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new t.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();t.LanguageServiceShimHostAdapter=f;var _=function(){function e(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)}),"realpath"in this.shimHost&&(this.realpath=function(e){return t.shimHost.realpath(e)})}return e.prototype.readDirectory=function(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e.prototype.readFile=function(e){return this.shimHost.readFile(e)},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e}();t.CoreServicesShimHostAdapter=_;var p=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();t.realizeDiagnostics=o;var m=function(e){function n(t,n,r){var i=e.call(this,t)||this;return i.host=n,i.languageService=r,i.logPerformance=!1,i.logger=i.host,i}return c(n,e),n.prototype.forwardJSONCall=function(e,t){return i(this.logger,e,t,this.logPerformance)},n.prototype.dispose=function(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,u&&u.CollectGarbage&&(u.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,e.prototype.dispose.call(this,t)},n.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},n.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},n.prototype.realizeDiagnostics=function(e){var n=t.getNewLineOrDefaultFromHost(this.host);return t.realizeDiagnostics(e,n)},n.prototype.getSyntacticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+n+", "+r+")",function(){return i.languageService.getSyntacticClassifications(e,t.createTextSpan(n,r))})},n.prototype.getSemanticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+n+", "+r+")",function(){return i.languageService.getSemanticClassifications(e,t.createTextSpan(n,r))})},n.prototype.getEncodedSyntacticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+n+", "+r+")",function(){return l(i.languageService.getEncodedSyntacticClassifications(e,t.createTextSpan(n,r)))})},n.prototype.getEncodedSemanticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+n+", "+r+")",function(){return l(i.languageService.getEncodedSemanticClassifications(e,t.createTextSpan(n,r)))})},n.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var n=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(n)})},n.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var n=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(n)})},n.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},n.prototype.getQuickInfoAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return n.languageService.getQuickInfoAtPosition(e,t)})},n.prototype.getNameOrDottedNameSpan=function(e,t,n){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNameOrDottedNameSpan(e,t,n)})},n.prototype.getBreakpointStatementAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBreakpointStatementAtPosition(e,t)})},n.prototype.getSignatureHelpItems=function(e,t){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t)})},n.prototype.getDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAtPosition(e,t)})},n.prototype.getTypeDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getTypeDefinitionAtPosition(e,t)})},n.prototype.getImplementationAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return n.languageService.getImplementationAtPosition(e,t)})},n.prototype.getRenameInfo=function(e,t){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t)})},n.prototype.findRenameLocations=function(e,t,n,r){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+n+", "+r+")",function(){return i.languageService.findRenameLocations(e,t,n,r)})},n.prototype.getBraceMatchingAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBraceMatchingAtPosition(e,t)})},n.prototype.isValidBraceCompletionAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,t,n)})},n.prototype.getSpanOfEnclosingComment=function(e,t,n){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return r.languageService.getSpanOfEnclosingComment(e,t,n)})},n.prototype.getIndentationAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(n);return r.languageService.getIndentationAtPosition(e,t,i)})},n.prototype.getReferencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getReferencesAtPosition(e,t)})},n.prototype.findReferences=function(e,t){var n=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return n.languageService.findReferences(e,t)})},n.prototype.getOccurrencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getOccurrencesAtPosition(e,t)})},n.prototype.getDocumentHighlights=function(e,n,r){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+n+")",function(){var a=i.languageService.getDocumentHighlights(e,n,JSON.parse(r)),o=t.normalizeSlashes(e).toLowerCase();return t.filter(a,function(e){return t.normalizeSlashes(e.fileName).toLowerCase()===o})})},n.prototype.getCompletionsAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+")",function(){return n.languageService.getCompletionsAtPosition(e,t)})},n.prototype.getCompletionEntryDetails=function(e,t,n,r,i){var a=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+n+"')",function(){var o=JSON.parse(r);return a.languageService.getCompletionEntryDetails(e,t,n,o,i)})},n.prototype.getFormattingEditsForRange=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+n+")",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsForRange(e,t,n,a)})},n.prototype.getFormattingEditsForDocument=function(e,t){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var r=JSON.parse(t);return n.languageService.getFormattingEditsForDocument(e,r)})},n.prototype.getFormattingEditsAfterKeystroke=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+n+"')",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsAfterKeystroke(e,t,n,a)})},n.prototype.getDocCommentTemplateAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDocCommentTemplateAtPosition(e,t)})},n.prototype.getNavigateToItems=function(e,t,n){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNavigateToItems(e,t,n)})},n.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},n.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},n.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},n.prototype.getTodoComments=function(e,t){var n=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return n.languageService.getTodoComments(e,JSON.parse(t))})},n.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},n.prototype.getEmitOutputObject=function(e){var t=this;return a(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},n}(p),g=function(e){function n(n,r){var i=e.call(this,n)||this;return i.logger=r,i.logPerformance=!1,i.classifier=t.createClassifier(),i}return c(n,e),n.prototype.getEncodedLexicalClassifications=function(e,t,n){var r=this;return i(this.logger,"getEncodedLexicalClassifications",function(){return l(r.classifier.getEncodedLexicalClassifications(e,t,n))},this.logPerformance)},n.prototype.getClassificationsForLine=function(e,t,n){for(var r=this.classifier.getClassificationsForLine(e,t,n),i="",a=0,o=r.entries;a>5]|=128<>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,l=271733878,d=0;d>16)+(t>>16)+(n>>16)<<16|65535&n}function l(e,t){return e<>>32-t}var d=n(82);e.exports=function(e){return d(e,r)}},function(e,t,n){"use strict";(function(t){function r(){d.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function i(e,t){return e<>>32-t}function a(e,t,n,r,a,o,s,c){return i(e+(t^n^r)+o+s|0,c)+a|0}function o(e,t,n,r,a,o,s,c){return i(e+(t&n|~t&r)+o+s|0,c)+a|0}function s(e,t,n,r,a,o,s,c){return i(e+((t|~n)^r)+o+s|0,c)+a|0}function c(e,t,n,r,a,o,s,c){return i(e+(t&r|n&~r)+o+s|0,c)+a|0}function u(e,t,n,r,a,o,s,c){return i(e+(t^(n|~r))+o+s|0,c)+a|0}var l=n(0),d=n(83);l(r,d),r.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,l=this._c,d=this._d,f=this._e;n=a(n,r,l,d,f,e[0],0,11),l=i(l,10),f=a(f,n,r,l,d,e[1],0,14),r=i(r,10),d=a(d,f,n,r,l,e[2],0,15),n=i(n,10),l=a(l,d,f,n,r,e[3],0,12),f=i(f,10),r=a(r,l,d,f,n,e[4],0,5),d=i(d,10),n=a(n,r,l,d,f,e[5],0,8),l=i(l,10),f=a(f,n,r,l,d,e[6],0,7),r=i(r,10),d=a(d,f,n,r,l,e[7],0,9),n=i(n,10),l=a(l,d,f,n,r,e[8],0,11),f=i(f,10),r=a(r,l,d,f,n,e[9],0,13),d=i(d,10),n=a(n,r,l,d,f,e[10],0,14),l=i(l,10),f=a(f,n,r,l,d,e[11],0,15),r=i(r,10),d=a(d,f,n,r,l,e[12],0,6),n=i(n,10),l=a(l,d,f,n,r,e[13],0,7),f=i(f,10),r=a(r,l,d,f,n,e[14],0,9),d=i(d,10),n=a(n,r,l,d,f,e[15],0,8),l=i(l,10),f=o(f,n,r,l,d,e[7],1518500249,7),r=i(r,10),d=o(d,f,n,r,l,e[4],1518500249,6),n=i(n,10),l=o(l,d,f,n,r,e[13],1518500249,8),f=i(f,10),r=o(r,l,d,f,n,e[1],1518500249,13),d=i(d,10),n=o(n,r,l,d,f,e[10],1518500249,11),l=i(l,10),f=o(f,n,r,l,d,e[6],1518500249,9),r=i(r,10),d=o(d,f,n,r,l,e[15],1518500249,7),n=i(n,10),l=o(l,d,f,n,r,e[3],1518500249,15),f=i(f,10),r=o(r,l,d,f,n,e[12],1518500249,7),d=i(d,10),n=o(n,r,l,d,f,e[0],1518500249,12),l=i(l,10),f=o(f,n,r,l,d,e[9],1518500249,15),r=i(r,10),d=o(d,f,n,r,l,e[5],1518500249,9),n=i(n,10),l=o(l,d,f,n,r,e[2],1518500249,11),f=i(f,10),r=o(r,l,d,f,n,e[14],1518500249,7),d=i(d,10),n=o(n,r,l,d,f,e[11],1518500249,13),l=i(l,10),f=o(f,n,r,l,d,e[8],1518500249,12),r=i(r,10),d=s(d,f,n,r,l,e[3],1859775393,11),n=i(n,10),l=s(l,d,f,n,r,e[10],1859775393,13),f=i(f,10),r=s(r,l,d,f,n,e[14],1859775393,6),d=i(d,10),n=s(n,r,l,d,f,e[4],1859775393,7),l=i(l,10),f=s(f,n,r,l,d,e[9],1859775393,14),r=i(r,10),d=s(d,f,n,r,l,e[15],1859775393,9),n=i(n,10),l=s(l,d,f,n,r,e[8],1859775393,13),f=i(f,10),r=s(r,l,d,f,n,e[1],1859775393,15),d=i(d,10),n=s(n,r,l,d,f,e[2],1859775393,14),l=i(l,10),f=s(f,n,r,l,d,e[7],1859775393,8),r=i(r,10),d=s(d,f,n,r,l,e[0],1859775393,13),n=i(n,10),l=s(l,d,f,n,r,e[6],1859775393,6),f=i(f,10),r=s(r,l,d,f,n,e[13],1859775393,5),d=i(d,10),n=s(n,r,l,d,f,e[11],1859775393,12),l=i(l,10),f=s(f,n,r,l,d,e[5],1859775393,7),r=i(r,10),d=s(d,f,n,r,l,e[12],1859775393,5),n=i(n,10),l=c(l,d,f,n,r,e[1],2400959708,11),f=i(f,10),r=c(r,l,d,f,n,e[9],2400959708,12),d=i(d,10),n=c(n,r,l,d,f,e[11],2400959708,14),l=i(l,10),f=c(f,n,r,l,d,e[10],2400959708,15),r=i(r,10),d=c(d,f,n,r,l,e[0],2400959708,14),n=i(n,10),l=c(l,d,f,n,r,e[8],2400959708,15),f=i(f,10),r=c(r,l,d,f,n,e[12],2400959708,9),d=i(d,10),n=c(n,r,l,d,f,e[4],2400959708,8),l=i(l,10),f=c(f,n,r,l,d,e[13],2400959708,9),r=i(r,10),d=c(d,f,n,r,l,e[3],2400959708,14),n=i(n,10),l=c(l,d,f,n,r,e[7],2400959708,5),f=i(f,10),r=c(r,l,d,f,n,e[15],2400959708,6),d=i(d,10),n=c(n,r,l,d,f,e[14],2400959708,8),l=i(l,10),f=c(f,n,r,l,d,e[5],2400959708,6),r=i(r,10),d=c(d,f,n,r,l,e[6],2400959708,5),n=i(n,10),l=c(l,d,f,n,r,e[2],2400959708,12),f=i(f,10),r=u(r,l,d,f,n,e[4],2840853838,9),d=i(d,10),n=u(n,r,l,d,f,e[0],2840853838,15),l=i(l,10),f=u(f,n,r,l,d,e[5],2840853838,5),r=i(r,10),d=u(d,f,n,r,l,e[9],2840853838,11),n=i(n,10),l=u(l,d,f,n,r,e[7],2840853838,6),f=i(f,10),r=u(r,l,d,f,n,e[12],2840853838,8),d=i(d,10),n=u(n,r,l,d,f,e[2],2840853838,13),l=i(l,10),f=u(f,n,r,l,d,e[10],2840853838,12),r=i(r,10),d=u(d,f,n,r,l,e[14],2840853838,5),n=i(n,10),l=u(l,d,f,n,r,e[1],2840853838,12),f=i(f,10),r=u(r,l,d,f,n,e[3],2840853838,13),d=i(d,10),n=u(n,r,l,d,f,e[8],2840853838,14),l=i(l,10),f=u(f,n,r,l,d,e[11],2840853838,11),r=i(r,10),d=u(d,f,n,r,l,e[6],2840853838,8),n=i(n,10),l=u(l,d,f,n,r,e[15],2840853838,5),f=i(f,10),r=u(r,l,d,f,n,e[13],2840853838,6),d=i(d,10);var _=this._a,p=this._b,m=this._c,g=this._d,h=this._e;_=u(_,p,m,g,h,e[5],1352829926,8),m=i(m,10),h=u(h,_,p,m,g,e[14],1352829926,9),p=i(p,10),g=u(g,h,_,p,m,e[7],1352829926,9),_=i(_,10),m=u(m,g,h,_,p,e[0],1352829926,11),h=i(h,10),p=u(p,m,g,h,_,e[9],1352829926,13),g=i(g,10),_=u(_,p,m,g,h,e[2],1352829926,15),m=i(m,10),h=u(h,_,p,m,g,e[11],1352829926,15),p=i(p,10),g=u(g,h,_,p,m,e[4],1352829926,5),_=i(_,10),m=u(m,g,h,_,p,e[13],1352829926,7),h=i(h,10),p=u(p,m,g,h,_,e[6],1352829926,7),g=i(g,10),_=u(_,p,m,g,h,e[15],1352829926,8),m=i(m,10),h=u(h,_,p,m,g,e[8],1352829926,11),p=i(p,10),g=u(g,h,_,p,m,e[1],1352829926,14),_=i(_,10),m=u(m,g,h,_,p,e[10],1352829926,14),h=i(h,10),p=u(p,m,g,h,_,e[3],1352829926,12),g=i(g,10),_=u(_,p,m,g,h,e[12],1352829926,6),m=i(m,10),h=c(h,_,p,m,g,e[6],1548603684,9),p=i(p,10),g=c(g,h,_,p,m,e[11],1548603684,13),_=i(_,10),m=c(m,g,h,_,p,e[3],1548603684,15),h=i(h,10),p=c(p,m,g,h,_,e[7],1548603684,7),g=i(g,10),_=c(_,p,m,g,h,e[0],1548603684,12),m=i(m,10),h=c(h,_,p,m,g,e[13],1548603684,8),p=i(p,10),g=c(g,h,_,p,m,e[5],1548603684,9),_=i(_,10),m=c(m,g,h,_,p,e[10],1548603684,11),h=i(h,10),p=c(p,m,g,h,_,e[14],1548603684,7),g=i(g,10),_=c(_,p,m,g,h,e[15],1548603684,7),m=i(m,10),h=c(h,_,p,m,g,e[8],1548603684,12),p=i(p,10),g=c(g,h,_,p,m,e[12],1548603684,7),_=i(_,10),m=c(m,g,h,_,p,e[4],1548603684,6),h=i(h,10),p=c(p,m,g,h,_,e[9],1548603684,15),g=i(g,10),_=c(_,p,m,g,h,e[1],1548603684,13),m=i(m,10),h=c(h,_,p,m,g,e[2],1548603684,11),p=i(p,10),g=s(g,h,_,p,m,e[15],1836072691,9),_=i(_,10),m=s(m,g,h,_,p,e[5],1836072691,7),h=i(h,10),p=s(p,m,g,h,_,e[1],1836072691,15),g=i(g,10),_=s(_,p,m,g,h,e[3],1836072691,11),m=i(m,10),h=s(h,_,p,m,g,e[7],1836072691,8),p=i(p,10),g=s(g,h,_,p,m,e[14],1836072691,6),_=i(_,10),m=s(m,g,h,_,p,e[6],1836072691,6),h=i(h,10),p=s(p,m,g,h,_,e[9],1836072691,14),g=i(g,10),_=s(_,p,m,g,h,e[11],1836072691,12),m=i(m,10),h=s(h,_,p,m,g,e[8],1836072691,13),p=i(p,10),g=s(g,h,_,p,m,e[12],1836072691,5),_=i(_,10),m=s(m,g,h,_,p,e[2],1836072691,14),h=i(h,10),p=s(p,m,g,h,_,e[10],1836072691,13),g=i(g,10),_=s(_,p,m,g,h,e[0],1836072691,13),m=i(m,10),h=s(h,_,p,m,g,e[4],1836072691,7),p=i(p,10),g=s(g,h,_,p,m,e[13],1836072691,5),_=i(_,10),m=o(m,g,h,_,p,e[8],2053994217,15),h=i(h,10),p=o(p,m,g,h,_,e[6],2053994217,5),g=i(g,10),_=o(_,p,m,g,h,e[4],2053994217,8),m=i(m,10),h=o(h,_,p,m,g,e[1],2053994217,11),p=i(p,10),g=o(g,h,_,p,m,e[3],2053994217,14),_=i(_,10),m=o(m,g,h,_,p,e[11],2053994217,14),h=i(h,10),p=o(p,m,g,h,_,e[15],2053994217,6),g=i(g,10),_=o(_,p,m,g,h,e[0],2053994217,14),m=i(m,10),h=o(h,_,p,m,g,e[5],2053994217,6),p=i(p,10),g=o(g,h,_,p,m,e[12],2053994217,9),_=i(_,10),m=o(m,g,h,_,p,e[2],2053994217,12),h=i(h,10),p=o(p,m,g,h,_,e[13],2053994217,9),g=i(g,10),_=o(_,p,m,g,h,e[9],2053994217,12),m=i(m,10),h=o(h,_,p,m,g,e[7],2053994217,5),p=i(p,10),g=o(g,h,_,p,m,e[10],2053994217,15),_=i(_,10),m=o(m,g,h,_,p,e[14],2053994217,8),h=i(h,10),p=a(p,m,g,h,_,e[12],0,8),g=i(g,10),_=a(_,p,m,g,h,e[15],0,5),m=i(m,10),h=a(h,_,p,m,g,e[10],0,12),p=i(p,10),g=a(g,h,_,p,m,e[4],0,9),_=i(_,10),m=a(m,g,h,_,p,e[1],0,12),h=i(h,10),p=a(p,m,g,h,_,e[5],0,5),g=i(g,10),_=a(_,p,m,g,h,e[8],0,14),m=i(m,10),h=a(h,_,p,m,g,e[7],0,6),p=i(p,10),g=a(g,h,_,p,m,e[6],0,8),_=i(_,10),m=a(m,g,h,_,p,e[2],0,13),h=i(h,10),p=a(p,m,g,h,_,e[13],0,6),g=i(g,10),_=a(_,p,m,g,h,e[14],0,5),m=i(m,10),h=a(h,_,p,m,g,e[0],0,15),p=i(p,10),g=a(g,h,_,p,m,e[3],0,13),_=i(_,10),m=a(m,g,h,_,p,e[9],0,11),h=i(h,10),p=a(p,m,g,h,_,e[11],0,11),g=i(g,10);var y=this._b+l+g|0;this._b=this._c+d+h|0,this._c=this._d+f+_|0,this._d=this._e+n+p|0,this._e=this._a+r+m|0,this._a=y},r.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=r}).call(t,n(2).Buffer)},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"number"==typeof e}function a(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!i(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,i,s,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(n=this._events[e],o(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(a(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),i=u.length,c=0;c0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,o,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],o=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=o;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){t=e.exports=n(41),t.Stream=t,t.Readable=t,t.Writable=n(30),t.Duplex=n(10),t.Transform=n(45),t.PassThrough=n(88)},function(e,t,n){"use strict";(function(t,r,i){function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){E(t,e)}}function o(e){return F.from(e)}function s(e){return F.isBuffer(e)||e instanceof M}function c(){}function u(e,t){A=A||n(10),e=e||{},this.objectMode=!!e.objectMode,t instanceof A&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){y(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function l(e){if(A=A||n(10),!(L.call(l,this)||this instanceof A))return new l(e);this._writableState=new u(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),I.call(this)}function d(e,t){var n=new Error("write after end");e.emit("error",n),w(t,n)}function f(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),w(r,a),i=!1),i}function _(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=F.from(t,n)),t}function p(e,t,n,r,i,a){if(!n){var o=_(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length-1?r:w;l.WritableState=u;var P=n(14);P.inherits=n(0);var O={deprecate:n(87)},I=n(42),F=n(1).Buffer,M=i.Uint8Array||function(){},R=n(43);P.inherits(l,I),u.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(u.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var L;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value:function(e){return!!L.call(this,e)||e&&e._writableState instanceof u}})):L=function(e){return e instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=s(e)&&!r.objectMode;return a&&!F.isBuffer(e)&&(e=o(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=c),r.ended?d(this,n):(a||f(this,r,e,n))&&(r.pendingcb++,i=p(this,r,a,e,t,n)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||x(this,e))},l.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},l.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||T(this,r,n)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),l.prototype.destroy=R.destroy,l.prototype._undestroy=R.undestroy,l.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,n(8),n(44).setImmediate,n(6))},function(e,t,n){"use strict";function r(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function i(e){var t=r(e);if("string"!=typeof t&&(y.isEncoding===v||!v(e)))throw new Error("Unknown encoding: "+e);return t||e}function a(e){this.encoding=i(e);var t;switch(this.encoding){case"utf16le":this.text=f,this.end=_,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=p,this.end=m,t=3;break;default:return this.write=g,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function s(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0)}function c(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(n);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(n+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(n+2)}}function u(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t}function f(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function _(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function p(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function m(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}var y=n(1).Buffer,v=y.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0||!n.umod(e.prime1)||!n.umod(e.prime2);)n=new o(s(t));return n}var o=n(3),s=n(11);e.exports=i,i.getr=a}).call(t,n(2).Buffer)},function(e,t,n){var r=t;r.utils=n(7),r.common=n(16),r.sha=n(134),r.ripemd=n(138),r.hmac=n(139),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){(function(t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function i(e){return!0===e}function a(e){return!1===e}function o(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Object]"===Ni.call(e)}function u(e){return"[object RegExp]"===Ni.call(e)}function l(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function _(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}function m(e,t){return Ii.call(e,t)}function g(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}function h(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function y(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function v(e,t){for(var n in t)e[n]=t[n];return e}function b(e){for(var t={},n=0;n0&&(me((s=ge(s,(n||"")+"_"+a))[0])&&me(u)&&(l[c]=P(u.text+s[0].text),s.shift()),l.push.apply(l,s)):o(s)?me(u)?l[c]=P(u.text+s):""!==s&&l.push(P(s)):me(s)&&me(u)?l[c]=P(u.text+s.text):(i(t._isVList)&&r(s.tag)&&e(s.key)&&r(n)&&(s.key="__vlist"+n+"_"+a+"__"),l.push(s)));return l}function he(e,t){return(e.__esModule||ua&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function ye(e,t,n,r,i){var a=ga();return a.asyncFactory=e,a.asyncMeta={data:t,context:n,children:r,tag:i},a}function ve(t,n,a){if(i(t.error)&&r(t.errorComp))return t.errorComp;if(r(t.resolved))return t.resolved;if(i(t.loading)&&r(t.loadingComp))return t.loadingComp;if(!r(t.contexts)){var o=t.contexts=[a],c=!0,u=function(){for(var e=0,t=o.length;eJa&&Ra[n].id>e.id;)n--;Ra.splice(n+1,0,e)}else Ra.push(e);ja||(ja=!0,ae(Le))}}function Ue(e,t,n){qa.get=function(){return this[t][n]},qa.set=function(e){this[t][n]=e},Object.defineProperty(e,n,qa)}function Ke(e){e._watchers=[];var t=e.$options;t.props&&qe(e,t.props),t.methods&&Xe(e,t.methods),t.data?Ve(e):R(e._data={},!0),t.computed&&He(e,t.computed),t.watch&&t.watch!==na&&Ye(e,t.watch)}function qe(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],a=!e.$parent;ba.shouldConvert=a;for(var o in t)!function(a){i.push(a);var o=X(a,t,n,e);L(r,a,o),a in e||Ue(e,"_props",a)}(o);ba.shouldConvert=!0}function Ve(e){var t=e.$options.data;c(t=e._data="function"==typeof t?We(t,e):t||{})||(t={});for(var n=Object.keys(t),r=e.$options.props,i=n.length;i--;){var a=n[i];r&&m(r,a)||D(a)||Ue(e,"_data",a)}R(t,!0)}function We(e,t){try{return e.call(t,t)}catch(e){return ee(e,t,"data()"),{}}}function He(e,t){var n=e._computedWatchers=Object.create(null),r=sa();for(var i in t){var a=t[i],o="function"==typeof a?a:a.get;r||(n[i]=new Ka(e,o||x,x,Va)),i in e||Ge(e,i,a)}}function Ge(e,t,n){var r=!sa();"function"==typeof n?(qa.get=r?$e(t):n,qa.set=x):(qa.get=n.get?r&&!1!==n.cache?$e(t):n.get:x,qa.set=n.set?n.set:x),Object.defineProperty(e,t,qa)}function $e(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),fa.target&&t.depend(),t.value}}function Xe(e,t){for(var n in t)e[n]=null==t[n]?x:h(t[n],e)}function Ye(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(e[i])<0)&&r.push(e[i]);return r}return e}function At(e){this._init(e)}function Nt(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=y(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}function Pt(e){e.mixin=function(e){return this.options=G(this.options,e),this}}function Ot(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var a=e.name||n.options.name,o=function(e){this._init(e)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=t++,o.options=G(n.options,e),o.super=n,o.options.props&&It(o),o.options.computed&&Ft(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,Ui.forEach(function(e){o[e]=n[e]}),a&&(o.options.components[a]=o),o.superOptions=n.options,o.extendOptions=e,o.sealedOptions=v({},o.options),i[r]=o,o}}function It(e){var t=e.options.props;for(var n in t)Ue(e.prototype,"_props",n)}function Ft(e){var t=e.options.computed;for(var n in t)Ge(e.prototype,n,t[n])}function Mt(e){Ui.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}function Rt(e){return e&&(e.Ctor.options.name||e.tag)}function Lt(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!u(e)&&e.test(t)}function Bt(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o=n[a];if(o){var s=Rt(o.componentOptions);s&&!t(s)&&jt(n,a,r,i)}}}function jt(e,t,n,r){var i=e[t];i&&i!==r&&i.componentInstance.$destroy(),e[t]=null,p(n,t)}function zt(e){for(var t=e.data,n=e,i=e;r(i.componentInstance);)(i=i.componentInstance._vnode).data&&(t=Jt(i.data,t));for(;r(n=n.parent);)n.data&&(t=Jt(t,n.data));return Ut(t.staticClass,t.class)}function Jt(e,t){return{staticClass:Kt(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Ut(e,t){return r(e)||r(t)?Kt(e,qt(t)):""}function Kt(e,t){return e?t?e+" "+t:e:t||""}function qt(e){return Array.isArray(e)?Vt(e):s(e)?Wt(e):"string"==typeof e?e:""}function Vt(e){for(var t,n="",i=0,a=e.length;i=0&&" "===(g=e.charAt(m));m--);g&&Oo.test(g)||(l=!0)}}else void 0===a?(p=i+1,a=e.slice(0,i).trim()):t();if(void 0===a?a=e.slice(0,i).trim():0!==p&&t(),o)for(i=0;i-1?{exp:e.slice(0,no),key:'"'+e.slice(no+1)+'"'}:{exp:e,key:null};for(eo=e,no=ro=io=0;!kn();)Sn(to=xn())?Dn(to):91===to&&Cn(to);return{exp:e.slice(0,ro),key:e.slice(ro+1,io)}}function xn(){return eo.charCodeAt(++no)}function kn(){return no>=Za}function Sn(e){return 34===e||39===e}function Cn(e){var t=1;for(ro=no;!kn();)if(e=xn(),Sn(e))Dn(e);else if(91===e&&t++,93===e&&t--,0===t){io=no;break}}function Dn(e){for(var t=e;!kn()&&(e=xn())!==t;);}function Tn(e,t,n){var r=n&&n.number,i=gn(e,"value")||"null",a=gn(e,"true-value")||"true",o=gn(e,"false-value")||"false";fn(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===a?":("+t+")":":_q("+t+","+a+")")),mn(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+t+"=$$a.concat([$$v]))}else{$$i>-1&&("+t+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+vn(t,"$$c")+"}",null,!0)}function En(e,t,n){var r=n&&n.number,i=gn(e,"value")||"null";fn(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),mn(e,"change",vn(t,i),null,!0)}function wn(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";mn(e,"change",r=r+" "+vn(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}function An(e,t,n){var r=e.attrsMap.type,i=n||{},a=i.lazy,o=i.number,s=i.trim,c=!a&&"range"!==r,u=a?"change":"range"===r?Io:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),o&&(l="_n("+l+")");var d=vn(t,l);c&&(d="if($event.target.composing)return;"+d),fn(e,"value","("+t+")"),mn(e,u,d,null,!0),(s||o)&&mn(e,"blur","$forceUpdate()")}function Nn(e){if(r(e[Io])){var t=Yi?"change":"input";e[t]=[].concat(e[Io],e[t]||[]),delete e[Io]}r(e[Fo])&&(e.change=[].concat(e[Fo],e.change||[]),delete e[Fo])}function Pn(e,t,n){var r=ao;return function i(){null!==e.apply(null,arguments)&&In(t,i,n,r)}}function On(e,t,n,r,i){t=ie(t),n&&(t=Pn(t,e,r)),ao.addEventListener(e,t,ra?{capture:r,passive:i}:r)}function In(e,t,n,r){(r||ao).removeEventListener(e,t._withTask||t,n)}function Fn(t,n){if(!e(t.data.on)||!e(n.data.on)){var r=n.data.on||{},i=t.data.on||{};ao=n.elm,Nn(r),ue(r,i,On,In,n.context),ao=void 0}}function Mn(t,n){if(!e(t.data.domProps)||!e(n.data.domProps)){var i,a,o=n.elm,s=t.data.domProps||{},c=n.data.domProps||{};r(c.__ob__)&&(c=n.data.domProps=v({},c));for(i in s)e(c[i])&&(o[i]="");for(i in c){if(a=c[i],"textContent"===i||"innerHTML"===i){if(n.children&&(n.children.length=0),a===s[i])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===i){o._value=a;var u=e(a)?"":String(a);Rn(o,u)&&(o.value=u)}else o[i]=a}}}function Rn(e,t){return!e.composing&&("OPTION"===e.tagName||Ln(e,t)||Bn(e,t))}function Ln(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}function Bn(e,t){var n=e.value,i=e._vModifiers;return r(i)&&i.number?f(n)!==f(t):r(i)&&i.trim?n.trim()!==t.trim():n!==t}function jn(e){var t=zn(e.style);return e.staticStyle?v(e.staticStyle,t):t}function zn(e){return Array.isArray(e)?b(e):"string"==typeof e?Lo(e):e}function Jn(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode).data&&(n=jn(i.data))&&v(r,n);(n=jn(e.data))&&v(r,n);for(var a=e;a=a.parent;)a.data&&(n=jn(a.data))&&v(r,n);return r}function Un(t,n){var i=n.data,a=t.data;if(!(e(i.staticStyle)&&e(i.style)&&e(a.staticStyle)&&e(a.style))){var o,s,c=n.elm,u=a.staticStyle,l=a.normalizedStyle||a.style||{},d=u||l,f=zn(n.data.style)||{};n.data.normalizedStyle=r(f.__ob__)?v({},f):f;var _=Jn(n,!0);for(s in d)e(_[s])&&zo(c,s,"");for(s in _)(o=_[s])!==d[s]&&zo(c,s,null==o?"":o)}}function Kn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function qn(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(/\s+/).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function Vn(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&v(t,qo(e.name||"v")),v(t,e),t}return"string"==typeof e?qo(e):void 0}}function Wn(e){Qo(function(){Qo(e)})}function Hn(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Kn(e,t))}function Gn(e,t){e._transitionClasses&&p(e._transitionClasses,t),qn(e,t)}function $n(e,t,n){var r=Xn(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s=i===Wo?$o:Yo,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=o&&u()};setTimeout(function(){c0&&(n=Wo,l=o,d=a.length):t===Ho?u>0&&(n=Ho,l=u,d=c.length):d=(n=(l=Math.max(o,u))>0?o>u?Wo:Ho:null)?n===Wo?a.length:c.length:0,{type:n,timeout:l,propCount:d,hasTransform:n===Wo&&Zo.test(r[Go+"Property"])}}function Yn(e,t){for(;e.length1}function rr(e,t){!0!==t.data.show&&Zn(t)}function ir(e,t,n){ar(e,t,n),(Yi||Zi)&&setTimeout(function(){ar(e,t,n)},0)}function ar(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var a,o,s=0,c=e.options.length;s-1,o.selected!==a&&(o.selected=a);else if(k(sr(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function or(e,t){return t.every(function(t){return!k(t,e)})}function sr(e){return"_value"in e?e._value:e.value}function cr(e){e.target.composing=!0}function ur(e){e.target.composing&&(e.target.composing=!1,lr(e.target,"input"))}function lr(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function dr(e){return!e.componentInstance||e.data&&e.data.transition?e:dr(e.componentInstance._vnode)}function fr(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?fr(xe(t.children)):e}function _r(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var a in i)t[Mi(a)]=i[a];return t}function pr(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function mr(e){for(;e=e.parent;)if(e.data.transition)return!0}function gr(e,t){return t.key===e.key&&t.tag===e.tag}function hr(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function yr(e){e.data.newPos=e.elm.getBoundingClientRect()}function vr(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}function br(e,t){var n=t?ls(t):cs;if(n.test(e)){for(var r,i,a=[],o=n.lastIndex=0;r=n.exec(e);){(i=r.index)>o&&a.push(JSON.stringify(e.slice(o,i)));var s=cn(r[1].trim());a.push("_s("+s+")"),o=i+r[0].length}return o=0&&o[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var c=o.length-1;c>=i;c--)t.end&&t.end(o[c].tag,n,r);o.length=i,a=i&&o[i-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,r):"p"===s&&(t.start&&t.start(e,[],!1,n,r),t.end&&t.end(e,n,r))}for(var i,a,o=[],s=t.expectHTML,c=t.isUnaryTag||ji,u=t.canBeLeftOpenTag||ji,l=0;e;){if(i=e,a&&Bs(a)){var d=0,f=a.toLowerCase(),_=js[f]||(js[f]=new RegExp("([\\s\\S]*?)(]*>)","i")),p=e.replace(_,function(e,n,r){return d=r.length,Bs(f)||"noscript"===f||(n=n.replace(//g,"$1").replace(//g,"$1")),qs(f,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-p.length,e=p,r(f,l-d,l)}else{var m=e.indexOf("<");if(0===m){if(Cs.test(e)){var g=e.indexOf("--\x3e");if(g>=0){t.shouldKeepComment&&t.comment(e.substring(4,g)),n(g+3);continue}}if(Ds.test(e)){var h=e.indexOf("]>");if(h>=0){n(h+2);continue}}var y=e.match(Ss);if(y){n(y[0].length);continue}var v=e.match(ks);if(v){var b=l;n(v[0].length),r(v[1],b,l);continue}var x=function(){var t=e.match(bs);if(t){var r={tagName:t[1],attrs:[],start:l};n(t[0].length);for(var i,a;!(i=e.match(xs))&&(a=e.match(hs));)n(a[0].length),r.attrs.push(a);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=l,r}}();if(x){!function(e){var n=e.tagName,i=e.unarySlash;s&&("p"===a&&gs(n)&&r(a),u(n)&&a===n&&r(n));for(var l=c(n)||!!i,d=e.attrs.length,f=new Array(d),_=0;_=0){for(S=e.slice(m);!(ks.test(S)||bs.test(S)||Cs.test(S)||Ds.test(S)||(C=S.indexOf("<",1))<0);)m+=C,S=e.slice(m);k=e.substring(0,m),n(m)}m<0&&(k=e,e=""),t.chars&&k&&t.chars(k)}if(e===i){t.chars&&t.chars(e);break}}r()}function Sr(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Jr(t),parent:n,children:[]}}function Cr(e,t){function n(e){e.pre&&(s=!1),Os(e.tag)&&(c=!1)}Es=t.warn||ln,Os=t.isPreTag||ji,Is=t.mustUseProp||ji,Fs=t.getTagNamespace||ji,As=dn(t.modules,"transformNode"),Ns=dn(t.modules,"preTransformNode"),Ps=dn(t.modules,"postTransformNode"),ws=t.delimiters;var r,i,a=[],o=!1!==t.preserveWhitespace,s=!1,c=!1;return kr(e,{warn:Es,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,o,u){var l=i&&i.ns||Fs(e);Yi&&"svg"===l&&(o=qr(o));var d=Sr(e,o,i);l&&(d.ns=l),Kr(d)&&!sa()&&(d.forbidden=!0);for(var f=0;f':'
',Ls.innerHTML.indexOf(" ")>0}function wi(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}var Ai=Object.freeze({}),Ni=Object.prototype.toString,Pi=_("slot,component",!0),Oi=_("key,ref,slot,slot-scope,is"),Ii=Object.prototype.hasOwnProperty,Fi=/-(\w)/g,Mi=g(function(e){return e.replace(Fi,function(e,t){return t?t.toUpperCase():""})}),Ri=g(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Li=/\B([A-Z])/g,Bi=g(function(e){return e.replace(Li,"-$1").toLowerCase()}),ji=function(e,t,n){return!1},zi=function(e){return e},Ji="data-server-rendered",Ui=["component","directive","filter"],Ki=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],qi={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:ji,isReservedAttr:ji,isUnknownElement:ji,getTagNamespace:x,parsePlatformTagName:zi,mustUseProp:ji,_lifecycleHooks:Ki},Vi=/[^\w.$]/,Wi="__proto__"in{},Hi="undefined"!=typeof window,Gi="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,$i=Gi&&WXEnvironment.platform.toLowerCase(),Xi=Hi&&window.navigator.userAgent.toLowerCase(),Yi=Xi&&/msie|trident/.test(Xi),Qi=Xi&&Xi.indexOf("msie 9.0")>0,Zi=Xi&&Xi.indexOf("edge/")>0,ea=Xi&&Xi.indexOf("android")>0||"android"===$i,ta=Xi&&/iphone|ipad|ipod|ios/.test(Xi)||"ios"===$i,na=(Xi&&/chrome\/\d+/.test(Xi),{}.watch),ra=!1;if(Hi)try{var ia={};Object.defineProperty(ia,"passive",{get:function(){ra=!0}}),window.addEventListener("test-passive",null,ia)}catch(e){}var aa,oa,sa=function(){return void 0===aa&&(aa=!Hi&&void 0!==t&&"server"===t.process.env.VUE_ENV),aa},ca=Hi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,ua="undefined"!=typeof Symbol&&w(Symbol)&&"undefined"!=typeof Reflect&&w(Reflect.ownKeys);oa="undefined"!=typeof Set&&w(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var la=x,da=0,fa=function(){this.id=da++,this.subs=[]};fa.prototype.addSub=function(e){this.subs.push(e)},fa.prototype.removeSub=function(e){p(this.subs,e)},fa.prototype.depend=function(){fa.target&&fa.target.addDep(this)},fa.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t1?y(n):n;for(var r=y(arguments,1),i=0,a=n.length;iparseInt(this.max)&&jt(a,o[0],o,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={};t.get=function(){return qi},Object.defineProperty(e,"config",t),e.util={warn:la,extend:v,mergeOptions:G,defineReactive:L},e.set=B,e.delete=j,e.nextTick=ae,e.options=Object.create(null),Ui.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,v(e.options.components,Qa),Nt(e),Pt(e),Ot(e),Mt(e)}(At),Object.defineProperty(At.prototype,"$isServer",{get:sa}),Object.defineProperty(At.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),At.version="2.5.6";var Za,eo,to,no,ro,io,ao,oo,so=_("style,class"),co=_("input,textarea,option,select,progress"),uo=function(e,t,n){return"value"===n&&co(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},lo=_("contenteditable,draggable,spellcheck"),fo=_("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),_o="http://www.w3.org/1999/xlink",po=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},mo=function(e){return po(e)?e.slice(6,e.length):""},go=function(e){return null==e||!1===e},ho={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},yo=_("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),vo=_("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),bo=function(e){return yo(e)||vo(e)},xo=Object.create(null),ko=_("text,number,password,search,email,tel,url"),So=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(ho[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setAttribute:function(e,t,n){e.setAttribute(t,n)}}),Co={create:function(e,t){$t(t)},update:function(e,t){e.data.ref!==t.data.ref&&($t(e,!0),$t(t))},destroy:function(e){$t(e,!0)}},Do=new pa("",{},[]),To=["create","activate","update","remove","destroy"],Eo={create:Zt,update:Zt,destroy:function(e){Zt(e,Do)}},wo=Object.create(null),Ao=[Co,Eo],No={create:an,update:an},Po={create:sn,update:sn},Oo=/[\w).+\-_$\]]/,Io="__r",Fo="__c",Mo={create:Fn,update:Fn},Ro={create:Mn,update:Mn},Lo=g(function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach(function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),Bo=/^--/,jo=/\s*!important$/,zo=function(e,t,n){if(Bo.test(t))e.style.setProperty(t,n);else if(jo.test(n))e.style.setProperty(t,n.replace(jo,""),"important");else{var r=Uo(t);if(Array.isArray(n))for(var i=0,a=n.length;i_?y(t,e(i[g+1])?null:i[g+1].elm,i,f,g,a):f>g&&b(t,n,d,_)}function S(e,t,n,i){for(var a=n;a-1?xo[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:xo[e]=/HTMLUnknownElement/.test(t.toString())},v(At.options.directives,ns),v(At.options.components,os),At.prototype.__patch__=Hi?es:x,At.prototype.$mount=function(e,t){return e=e&&Hi?Gt(e):void 0,Ne(this,e,t)},At.nextTick(function(){qi.devtools&&ca&&ca.emit("init",At)},0);var ss,cs=/\{\{((?:.|\n)+?)\}\}/g,us=/[-.*+?^${}()|[\]\/\\]/g,ls=g(function(e){var t=e[0].replace(us,"\\$&"),n=e[1].replace(us,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),ds={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=hn(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=gn(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},fs={staticKeys:["staticStyle"],transformNode:function(e,t){var n=hn(e,"style");n&&(e.staticStyle=JSON.stringify(Lo(n)));var r=gn(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},_s={decode:function(e){return ss=ss||document.createElement("div"),ss.innerHTML=e,ss.textContent}},ps=_("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ms=_("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),gs=_("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),hs=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ys="[a-zA-Z_][\\w\\-\\.]*",vs="((?:"+ys+"\\:)?"+ys+")",bs=new RegExp("^<"+vs),xs=/^\s*(\/?)>/,ks=new RegExp("^<\\/"+vs+"[^>]*>"),Ss=/^]+>/i,Cs=/^/g,"$1").replace(//g,"$1")),qs(f,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});l+=e.length-p.length,e=p,r(f,l-d,l)}else{var m=e.indexOf("<");if(0===m){if(Cs.test(e)){var g=e.indexOf("--\x3e");if(g>=0){t.shouldKeepComment&&t.comment(e.substring(4,g)),n(g+3);continue}}if(Ds.test(e)){var h=e.indexOf("]>");if(h>=0){n(h+2);continue}}var y=e.match(Ss);if(y){n(y[0].length);continue}var v=e.match(ks);if(v){var b=l;n(v[0].length),r(v[1],b,l);continue}var x=function(){var t=e.match(bs);if(t){var r={tagName:t[1],attrs:[],start:l};n(t[0].length);for(var i,a;!(i=e.match(xs))&&(a=e.match(hs));)n(a[0].length),r.attrs.push(a);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=l,r}}();if(x){!function(e){var n=e.tagName,i=e.unarySlash;s&&("p"===a&&gs(n)&&r(a),u(n)&&a===n&&r(n));for(var l=c(n)||!!i,d=e.attrs.length,f=new Array(d),_=0;_=0){for(S=e.slice(m);!(ks.test(S)||bs.test(S)||Cs.test(S)||Ds.test(S)||(C=S.indexOf("<",1))<0);)m+=C,S=e.slice(m);k=e.substring(0,m),n(m)}m<0&&(k=e,e=""),t.chars&&k&&t.chars(k)}if(e===i){t.chars&&t.chars(e);break}}r()}function Sr(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Jr(t),parent:n,children:[]}}function Cr(e,t){function n(e){e.pre&&(s=!1),Os(e.tag)&&(c=!1)}Es=t.warn||ln,Os=t.isPreTag||ji,Is=t.mustUseProp||ji,Fs=t.getTagNamespace||ji,As=dn(t.modules,"transformNode"),Ns=dn(t.modules,"preTransformNode"),Ps=dn(t.modules,"postTransformNode"),ws=t.delimiters;var r,i,a=[],o=!1!==t.preserveWhitespace,s=!1,c=!1;return kr(e,{warn:Es,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,start:function(e,o,u){var l=i&&i.ns||Fs(e);Yi&&"svg"===l&&(o=qr(o));var d=Sr(e,o,i);l&&(d.ns=l),Kr(d)&&!sa()&&(d.forbidden=!0);for(var f=0;f':'
',Ls.innerHTML.indexOf(" ")>0}function wi(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}var Ai=Object.freeze({}),Ni=Object.prototype.toString,Pi=_("slot,component",!0),Oi=_("key,ref,slot,slot-scope,is"),Ii=Object.prototype.hasOwnProperty,Fi=/-(\w)/g,Mi=g(function(e){return e.replace(Fi,function(e,t){return t?t.toUpperCase():""})}),Ri=g(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Li=/\B([A-Z])/g,Bi=g(function(e){return e.replace(Li,"-$1").toLowerCase()}),ji=function(e,t,n){return!1},zi=function(e){return e},Ji="data-server-rendered",Ui=["component","directive","filter"],Ki=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],qi={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:ji,isReservedAttr:ji,isUnknownElement:ji,getTagNamespace:x,parsePlatformTagName:zi,mustUseProp:ji,_lifecycleHooks:Ki},Vi=/[^\w.$]/,Wi="__proto__"in{},Hi="undefined"!=typeof window,Gi="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,$i=Gi&&WXEnvironment.platform.toLowerCase(),Xi=Hi&&window.navigator.userAgent.toLowerCase(),Yi=Xi&&/msie|trident/.test(Xi),Qi=Xi&&Xi.indexOf("msie 9.0")>0,Zi=Xi&&Xi.indexOf("edge/")>0,ea=Xi&&Xi.indexOf("android")>0||"android"===$i,ta=Xi&&/iphone|ipad|ipod|ios/.test(Xi)||"ios"===$i,na=(Xi&&/chrome\/\d+/.test(Xi),{}.watch),ra=!1;if(Hi)try{var ia={};Object.defineProperty(ia,"passive",{get:function(){ra=!0}}),window.addEventListener("test-passive",null,ia)}catch(e){}var aa,oa,sa=function(){return void 0===aa&&(aa=!Hi&&void 0!==t&&"server"===t.process.env.VUE_ENV),aa},ca=Hi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,ua="undefined"!=typeof Symbol&&w(Symbol)&&"undefined"!=typeof Reflect&&w(Reflect.ownKeys);oa="undefined"!=typeof Set&&w(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var la=x,da=0,fa=function(){this.id=da++,this.subs=[]};fa.prototype.addSub=function(e){this.subs.push(e)},fa.prototype.removeSub=function(e){p(this.subs,e)},fa.prototype.depend=function(){fa.target&&fa.target.addDep(this)},fa.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t1?y(n):n;for(var r=y(arguments,1),i=0,a=n.length;iparseInt(this.max)&&jt(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={};t.get=function(){return qi},Object.defineProperty(e,"config",t),e.util={warn:la,extend:v,mergeOptions:G,defineReactive:L},e.set=B,e.delete=j,e.nextTick=ae,e.options=Object.create(null),Ui.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,v(e.options.components,Qa),Nt(e),Pt(e),Ot(e),Mt(e)}(At),Object.defineProperty(At.prototype,"$isServer",{get:sa}),Object.defineProperty(At.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),At.version="2.5.9";var Za,eo,to,no,ro,io,ao,oo,so=_("style,class"),co=_("input,textarea,option,select,progress"),uo=function(e,t,n){return"value"===n&&co(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},lo=_("contenteditable,draggable,spellcheck"),fo=_("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),_o="http://www.w3.org/1999/xlink",po=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},mo=function(e){return po(e)?e.slice(6,e.length):""},go=function(e){return null==e||!1===e},ho={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},yo=_("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),vo=_("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),bo=function(e){return yo(e)||vo(e)},xo=Object.create(null),ko=_("text,number,password,search,email,tel,url"),So=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(ho[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setAttribute:function(e,t,n){e.setAttribute(t,n)}}),Co={create:function(e,t){$t(t)},update:function(e,t){e.data.ref!==t.data.ref&&($t(e,!0),$t(t))},destroy:function(e){$t(e,!0)}},Do=new pa("",{},[]),To=["create","activate","update","remove","destroy"],Eo={create:Zt,update:Zt,destroy:function(e){Zt(e,Do)}},wo=Object.create(null),Ao=[Co,Eo],No={create:an,update:an},Po={create:sn,update:sn},Oo=/[\w).+\-_$\]]/,Io="__r",Fo="__c",Mo={create:Fn,update:Fn},Ro={create:Mn,update:Mn},Lo=g(function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach(function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),Bo=/^--/,jo=/\s*!important$/,zo=function(e,t,n){if(Bo.test(t))e.style.setProperty(t,n);else if(jo.test(n))e.style.setProperty(t,n.replace(jo,""),"important");else{var r=Uo(t);if(Array.isArray(n))for(var i=0,a=n.length;i_?y(t,e(i[g+1])?null:i[g+1].elm,i,f,g,a):f>g&&b(t,n,d,_)}function S(e,t,n,i){for(var a=n;a-1?xo[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:xo[e]=/HTMLUnknownElement/.test(t.toString())},v(At.options.directives,ns),v(At.options.components,os),At.prototype.__patch__=Hi?es:x,At.prototype.$mount=function(e,t){return e=e&&Hi?Gt(e):void 0,Ne(this,e,t)},At.nextTick(function(){qi.devtools&&ca&&ca.emit("init",At)},0);var ss,cs=/\{\{((?:.|\n)+?)\}\}/g,us=/[-.*+?^${}()|[\]\/\\]/g,ls=g(function(e){var t=e[0].replace(us,"\\$&"),n=e[1].replace(us,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}),ds={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=hn(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=gn(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},fs={staticKeys:["staticStyle"],transformNode:function(e,t){var n=hn(e,"style");n&&(e.staticStyle=JSON.stringify(Lo(n)));var r=gn(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},_s={decode:function(e){return ss=ss||document.createElement("div"),ss.innerHTML=e,ss.textContent}},ps=_("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),ms=_("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),gs=_("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),hs=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ys="[a-zA-Z_][\\w\\-\\.]*",vs="((?:"+ys+"\\:)?"+ys+")",bs=new RegExp("^<"+vs),xs=/^\s*(\/?)>/,ks=new RegExp("^<\\/"+vs+"[^>]*>"),Ss=/^]+>/i,Cs=/^