!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=77)}([function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var n=r(2),i=n.Buffer;function a(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(a(n,t),t.Buffer=o),a(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
var n=r(82),i=r(83),a=r(39);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,r){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,r)}function u(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=_(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!c.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),i=(e=s(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(c.isBuffer(t)){var r=0|f(t.length);return 0===(e=s(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?s(e,0):_(e,t);if("Buffer"===t.type&&a(t.data))return _(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(l(t),e=s(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function _(e,t){var r=t.length<0?0:0|f(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function f(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(c.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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return J(e).length;default:if(n)return z(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:h(e,t,r,n,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):h(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function h(e,t,r,n,i){var a,o=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===l?0:a-l)){if(-1===l&&(l=a),a-l+1===c)return l*o}else-1!==l&&(a-=a-l),l=-1}else for(r+c>s&&(r=s-c),a=r;a>=0;a--){for(var d=!0,_=0;_<c;_++)if(u(e,a+_)!==u(t,_)){d=!1;break}if(d)return a}return-1}function y(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[r+o]=s}return o}function v(e,t,r,n){return U(z(t,e.length-r),e,r,n)}function b(e,t,r,n){return U(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function x(e,t,r,n){return b(e,t,r,n)}function S(e,t,r,n){return U(J(t),e,r,n)}function D(e,t,r,n){return U(function(e,t){for(var r,n,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}(t,e.length-r),e,r,n)}function k(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function C(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,c,u=e[i],l=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:a=e[i+1],o=e[i+2],128==(192&a)&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=d}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=T));return r}(n)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.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=o(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,r){return u(null,e,t,r)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=c.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return N(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,r,n,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var a=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0),s=Math.min(a,o),u=this.slice(n,i),l=e.slice(t,r),d=0;d<s;++d)if(u[d]!==l[d]){a=u[d],o=l[d];break}return a<o?-1:o<a?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return y(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return x(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function N(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function A(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=j(e[a]);return i}function w(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function P(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,r,n,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function I(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-r,2);i<a;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function M(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-r,4);i<a;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function O(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(e,t,r,n,a){return a||O(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function R(e,t,r,n,a){return a||O(e,0,r,8),i.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;r=new c(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+e]}return r},c.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},c.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||F(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},c.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||F(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},c.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,a=n-r;if(this===e&&r<t&&t<n)for(i=a-1;i>=0;--i)e[i+t]=this[i+r];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+a),t);return a},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var a;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a<r;++a)this[a]=e;else{var o=c.isBuffer(e)?e:z(new c(e,n).toString()),s=o.length;for(a=0;a<r-t;++a)this[a+t]=o[a%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var r;t=t||1/0;for(var n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return a}function J(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(6))},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;"object"==typeof e?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o=r(121).Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),a=t;a<i;a++){var o=e.charCodeAt(a)-48;n<<=4,n|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function c(e,t,r,n){for(var i=0,a=Math.min(e.length,r),o=t;o<a;o++){var s=e.charCodeAt(o)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}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,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initNumber=function(e,t,r){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):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},a.prototype._initArray=function(e,t,r){if(n("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<this.length;i++)this.words[i]=0;var a,o,s=0;if("be"===r)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);else if("le"===r)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>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 r=0;r<this.length;r++)this.words[r]=0;var n,i,a=0;for(r=e.length-6,n=0;r>=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303,(a+=24)>=26&&(a-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<<a&67108863,this.words[n+1]|=i>>>26-a&4194303),this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var a=e.length-r,o=a%n,s=Math.min(a,a-o)+r,u=0,l=r;l<s;l+=n)u=c(e,l,l+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==o){var d=1;for(u=c(e,l,e.length,t),l=0;l<o;l++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},a.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&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?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","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"],l=[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],d=[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];function _(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],a=0|t.words[0],o=i*a,s=67108863&o,c=o/67108864|0;r.words[0]=s;for(var u=1;u<n;u++){for(var l=c>>>26,d=67108863&c,_=Math.min(u,t.length-1),f=Math.max(0,u-e.length+1);f<=_;f++){var p=u-f|0;l+=(o=(i=0|e.words[p])*(a=0|t.words[f])+d)/67108864|0,d=67108863&o}r.words[u]=0|d,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}a.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,a=0,o=0;o<this.length;o++){var s=this.words[o],c=(16777215&(s<<i|a)).toString(16);r=0!==(a=s>>>24-i&16777215)||o!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,o--)}for(0!==a&&(r=a.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var _=l[e],f=d[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?m+r:u[_-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!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&&n(!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 n(void 0!==o),this.toArrayLike(o,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i<=a,"byte array longer than desired length"),n(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<a;s++)u[s]=0}else{for(s=0;s<a-i;s++)u[s]=0;for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),u[a-s-1]=o}return u},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},a.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},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;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},a.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},a.prototype.or=function(e){return this.length>e.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 r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},a.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},a.prototype.and=function(e){return this.length>e.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,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},a.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.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){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},a.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a<n.length;a++)t=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&t,i=t>>>26;for(;0!==i&&a<r.length;a++)t=(0|r.words[a])+i,this.words[a]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.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 r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var a=0,o=0;o<n.length;o++)a=(t=(0|r.words[o])-(0|n.words[o])+a)>>26,this.words[o]=67108863&t;for(;0!==a&&o<r.length;o++)a=(t=(0|r.words[o])+a)>>26,this.words[o]=67108863&t;if(0===a&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,r){var n,i,a,o=e.words,s=t.words,c=r.words,u=0,l=0|o[0],d=8191&l,_=l>>>13,f=0|o[1],p=8191&f,m=f>>>13,g=0|o[2],h=8191&g,y=g>>>13,v=0|o[3],b=8191&v,x=v>>>13,S=0|o[4],D=8191&S,k=S>>>13,C=0|o[5],T=8191&C,E=C>>>13,N=0|o[6],A=8191&N,w=N>>>13,P=0|o[7],F=8191&P,I=P>>>13,M=0|o[8],O=8191&M,L=M>>>13,R=0|o[9],B=8191&R,j=R>>>13,z=0|s[0],J=8191&z,U=z>>>13,q=0|s[1],K=8191&q,V=q>>>13,W=0|s[2],H=8191&W,G=W>>>13,X=0|s[3],Q=8191&X,Y=X>>>13,Z=0|s[4],$=8191&Z,ee=Z>>>13,te=0|s[5],re=8191&te,ne=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,_e=le>>>13,fe=0|s[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(u+(n=Math.imul(d,J))|0)+((8191&(i=(i=Math.imul(d,U))+Math.imul(_,J)|0))<<13)|0;u=((a=Math.imul(_,U))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,J),i=(i=Math.imul(p,U))+Math.imul(m,J)|0,a=Math.imul(m,U);var he=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,V)|0)+Math.imul(_,K)|0))<<13)|0;u=((a=a+Math.imul(_,V)|0)+(i>>>13)|0)+(he>>>26)|0,he&=67108863,n=Math.imul(h,J),i=(i=Math.imul(h,U))+Math.imul(y,J)|0,a=Math.imul(y,U),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,K)|0,a=a+Math.imul(m,V)|0;var ye=(u+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(_,H)|0))<<13)|0;u=((a=a+Math.imul(_,G)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(b,J),i=(i=Math.imul(b,U))+Math.imul(x,J)|0,a=Math.imul(x,U),n=n+Math.imul(h,K)|0,i=(i=i+Math.imul(h,V)|0)+Math.imul(y,K)|0,a=a+Math.imul(y,V)|0,n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,H)|0,a=a+Math.imul(m,G)|0;var ve=(u+(n=n+Math.imul(d,Q)|0)|0)+((8191&(i=(i=i+Math.imul(d,Y)|0)+Math.imul(_,Q)|0))<<13)|0;u=((a=a+Math.imul(_,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(D,J),i=(i=Math.imul(D,U))+Math.imul(k,J)|0,a=Math.imul(k,U),n=n+Math.imul(b,K)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(x,K)|0,a=a+Math.imul(x,V)|0,n=n+Math.imul(h,H)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,Q)|0,a=a+Math.imul(m,Y)|0;var be=(u+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(_,$)|0))<<13)|0;u=((a=a+Math.imul(_,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(T,J),i=(i=Math.imul(T,U))+Math.imul(E,J)|0,a=Math.imul(E,U),n=n+Math.imul(D,K)|0,i=(i=i+Math.imul(D,V)|0)+Math.imul(k,K)|0,a=a+Math.imul(k,V)|0,n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(x,H)|0,a=a+Math.imul(x,G)|0,n=n+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,Y)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,ee)|0;var xe=(u+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(_,re)|0))<<13)|0;u=((a=a+Math.imul(_,ne)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(A,J),i=(i=Math.imul(A,U))+Math.imul(w,J)|0,a=Math.imul(w,U),n=n+Math.imul(T,K)|0,i=(i=i+Math.imul(T,V)|0)+Math.imul(E,K)|0,a=a+Math.imul(E,V)|0,n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(x,Q)|0,a=a+Math.imul(x,Y)|0,n=n+Math.imul(h,$)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,a=a+Math.imul(m,ne)|0;var Se=(u+(n=n+Math.imul(d,ae)|0)|0)+((8191&(i=(i=i+Math.imul(d,oe)|0)+Math.imul(_,ae)|0))<<13)|0;u=((a=a+Math.imul(_,oe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(F,J),i=(i=Math.imul(F,U))+Math.imul(I,J)|0,a=Math.imul(I,U),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(w,K)|0,a=a+Math.imul(w,V)|0,n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(E,H)|0,a=a+Math.imul(E,G)|0,n=n+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(k,Q)|0,a=a+Math.imul(k,Y)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(x,$)|0,a=a+Math.imul(x,ee)|0,n=n+Math.imul(h,re)|0,i=(i=i+Math.imul(h,ne)|0)+Math.imul(y,re)|0,a=a+Math.imul(y,ne)|0,n=n+Math.imul(p,ae)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(m,ae)|0,a=a+Math.imul(m,oe)|0;var De=(u+(n=n+Math.imul(d,ce)|0)|0)+((8191&(i=(i=i+Math.imul(d,ue)|0)+Math.imul(_,ce)|0))<<13)|0;u=((a=a+Math.imul(_,ue)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(O,J),i=(i=Math.imul(O,U))+Math.imul(L,J)|0,a=Math.imul(L,U),n=n+Math.imul(F,K)|0,i=(i=i+Math.imul(F,V)|0)+Math.imul(I,K)|0,a=a+Math.imul(I,V)|0,n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(w,H)|0,a=a+Math.imul(w,G)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(E,Q)|0,a=a+Math.imul(E,Y)|0,n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,ee)|0,n=n+Math.imul(b,re)|0,i=(i=i+Math.imul(b,ne)|0)+Math.imul(x,re)|0,a=a+Math.imul(x,ne)|0,n=n+Math.imul(h,ae)|0,i=(i=i+Math.imul(h,oe)|0)+Math.imul(y,ae)|0,a=a+Math.imul(y,oe)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(m,ce)|0,a=a+Math.imul(m,ue)|0;var ke=(u+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,_e)|0)+Math.imul(_,de)|0))<<13)|0;u=((a=a+Math.imul(_,_e)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,U))+Math.imul(j,J)|0,a=Math.imul(j,U),n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(L,K)|0,a=a+Math.imul(L,V)|0,n=n+Math.imul(F,H)|0,i=(i=i+Math.imul(F,G)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,G)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(w,Q)|0,a=a+Math.imul(w,Y)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(E,$)|0,a=a+Math.imul(E,ee)|0,n=n+Math.imul(D,re)|0,i=(i=i+Math.imul(D,ne)|0)+Math.imul(k,re)|0,a=a+Math.imul(k,ne)|0,n=n+Math.imul(b,ae)|0,i=(i=i+Math.imul(b,oe)|0)+Math.imul(x,ae)|0,a=a+Math.imul(x,oe)|0,n=n+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,ue)|0)+Math.imul(y,ce)|0,a=a+Math.imul(y,ue)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,_e)|0)+Math.imul(m,de)|0,a=a+Math.imul(m,_e)|0;var Ce=(u+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(_,pe)|0))<<13)|0;u=((a=a+Math.imul(_,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(B,K),i=(i=Math.imul(B,V))+Math.imul(j,K)|0,a=Math.imul(j,V),n=n+Math.imul(O,H)|0,i=(i=i+Math.imul(O,G)|0)+Math.imul(L,H)|0,a=a+Math.imul(L,G)|0,n=n+Math.imul(F,Q)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,Y)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(w,$)|0,a=a+Math.imul(w,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(E,re)|0,a=a+Math.imul(E,ne)|0,n=n+Math.imul(D,ae)|0,i=(i=i+Math.imul(D,oe)|0)+Math.imul(k,ae)|0,a=a+Math.imul(k,oe)|0,n=n+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,ue)|0)+Math.imul(x,ce)|0,a=a+Math.imul(x,ue)|0,n=n+Math.imul(h,de)|0,i=(i=i+Math.imul(h,_e)|0)+Math.imul(y,de)|0,a=a+Math.imul(y,_e)|0;var Te=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;u=((a=a+Math.imul(m,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,G))+Math.imul(j,H)|0,a=Math.imul(j,G),n=n+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(L,Q)|0,a=a+Math.imul(L,Y)|0,n=n+Math.imul(F,$)|0,i=(i=i+Math.imul(F,ee)|0)+Math.imul(I,$)|0,a=a+Math.imul(I,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(w,re)|0,a=a+Math.imul(w,ne)|0,n=n+Math.imul(T,ae)|0,i=(i=i+Math.imul(T,oe)|0)+Math.imul(E,ae)|0,a=a+Math.imul(E,oe)|0,n=n+Math.imul(D,ce)|0,i=(i=i+Math.imul(D,ue)|0)+Math.imul(k,ce)|0,a=a+Math.imul(k,ue)|0,n=n+Math.imul(b,de)|0,i=(i=i+Math.imul(b,_e)|0)+Math.imul(x,de)|0,a=a+Math.imul(x,_e)|0;var Ee=(u+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(y,pe)|0))<<13)|0;u=((a=a+Math.imul(y,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(j,Q)|0,a=Math.imul(j,Y),n=n+Math.imul(O,$)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,ee)|0,n=n+Math.imul(F,re)|0,i=(i=i+Math.imul(F,ne)|0)+Math.imul(I,re)|0,a=a+Math.imul(I,ne)|0,n=n+Math.imul(A,ae)|0,i=(i=i+Math.imul(A,oe)|0)+Math.imul(w,ae)|0,a=a+Math.imul(w,oe)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,ue)|0)+Math.imul(E,ce)|0,a=a+Math.imul(E,ue)|0,n=n+Math.imul(D,de)|0,i=(i=i+Math.imul(D,_e)|0)+Math.imul(k,de)|0,a=a+Math.imul(k,_e)|0;var Ne=(u+(n=n+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(x,pe)|0))<<13)|0;u=((a=a+Math.imul(x,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,ee))+Math.imul(j,$)|0,a=Math.imul(j,ee),n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(L,re)|0,a=a+Math.imul(L,ne)|0,n=n+Math.imul(F,ae)|0,i=(i=i+Math.imul(F,oe)|0)+Math.imul(I,ae)|0,a=a+Math.imul(I,oe)|0,n=n+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,a=a+Math.imul(w,ue)|0,n=n+Math.imul(T,de)|0,i=(i=i+Math.imul(T,_e)|0)+Math.imul(E,de)|0,a=a+Math.imul(E,_e)|0;var Ae=(u+(n=n+Math.imul(D,pe)|0)|0)+((8191&(i=(i=i+Math.imul(D,me)|0)+Math.imul(k,pe)|0))<<13)|0;u=((a=a+Math.imul(k,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(B,re),i=(i=Math.imul(B,ne))+Math.imul(j,re)|0,a=Math.imul(j,ne),n=n+Math.imul(O,ae)|0,i=(i=i+Math.imul(O,oe)|0)+Math.imul(L,ae)|0,a=a+Math.imul(L,oe)|0,n=n+Math.imul(F,ce)|0,i=(i=i+Math.imul(F,ue)|0)+Math.imul(I,ce)|0,a=a+Math.imul(I,ue)|0,n=n+Math.imul(A,de)|0,i=(i=i+Math.imul(A,_e)|0)+Math.imul(w,de)|0,a=a+Math.imul(w,_e)|0;var we=(u+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(E,pe)|0))<<13)|0;u=((a=a+Math.imul(E,me)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(B,ae),i=(i=Math.imul(B,oe))+Math.imul(j,ae)|0,a=Math.imul(j,oe),n=n+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,ue)|0)+Math.imul(L,ce)|0,a=a+Math.imul(L,ue)|0,n=n+Math.imul(F,de)|0,i=(i=i+Math.imul(F,_e)|0)+Math.imul(I,de)|0,a=a+Math.imul(I,_e)|0;var Pe=(u+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(w,pe)|0))<<13)|0;u=((a=a+Math.imul(w,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(B,ce),i=(i=Math.imul(B,ue))+Math.imul(j,ce)|0,a=Math.imul(j,ue),n=n+Math.imul(O,de)|0,i=(i=i+Math.imul(O,_e)|0)+Math.imul(L,de)|0,a=a+Math.imul(L,_e)|0;var Fe=(u+(n=n+Math.imul(F,pe)|0)|0)+((8191&(i=(i=i+Math.imul(F,me)|0)+Math.imul(I,pe)|0))<<13)|0;u=((a=a+Math.imul(I,me)|0)+(i>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,n=Math.imul(B,de),i=(i=Math.imul(B,_e))+Math.imul(j,de)|0,a=Math.imul(j,_e);var Ie=(u+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(L,pe)|0))<<13)|0;u=((a=a+Math.imul(L,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Me=(u+(n=Math.imul(B,pe))|0)+((8191&(i=(i=Math.imul(B,me))+Math.imul(j,pe)|0))<<13)|0;return u=((a=Math.imul(j,me))+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,c[0]=ge,c[1]=he,c[2]=ye,c[3]=ve,c[4]=be,c[5]=xe,c[6]=Se,c[7]=De,c[8]=ke,c[9]=Ce,c[10]=Te,c[11]=Ee,c[12]=Ne,c[13]=Ae,c[14]=we,c[15]=Pe,c[16]=Fe,c[17]=Ie,c[18]=Me,0!==u&&(c[19]=u,r.length++),r};function p(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(f=_),a.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):r<63?_(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,a=0;a<r.length-1;a++){var o=i;i=0;for(var s=67108863&n,c=Math.min(a,t.length-1),u=Math.max(0,a-e.length+1);u<=c;u++){var l=a-u,d=(0|e.words[l])*(0|t.words[u]),_=67108863&d;s=67108863&(_=_+s|0),i+=(o=(o=o+(d/67108864|0)|0)+(_>>>26)|0)>>>26,o&=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=a.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},m.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},m.prototype.permute=function(e,t,r,n,i,a){for(var o=0;o<a;o++)n[o]=t[e[o]],i[o]=r[e[o]]},m.prototype.transform=function(e,t,r,n,i,a){this.permute(a,e,t,r,n,i);for(var o=1;o<i;o<<=1)for(var s=o<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var d=c,_=u,f=0;f<o;f++){var p=r[l+f],m=n[l+f],g=r[l+f+o],h=n[l+f+o],y=d*g-_*h;h=d*h+_*g,g=y,r[l+f]=p+g,n[l+f]=m+h,r[l+f+o]=p-g,n[l+f+o]=m-h,f!==s&&(y=c*d-u*_,_=c*_+u*d,d=y)}},m.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},m.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},m.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,r,i){for(var a=0,o=0;o<t;o++)a+=0|e[o],r[2*o]=8191&a,a>>>=13,r[2*o+1]=8191&a,a>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===a),n(0==(-8192&a))},m.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},m.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),c=new Array(n),u=new Array(n),l=new Array(n),d=new Array(n),_=r.words;_.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,u,n),this.transform(o,a,s,c,n,i),this.transform(u,a,l,d,n,i);for(var f=0;f<n;f++){var p=s[f]*l[f]-c[f]*d[f];c[f]=s[f]*d[f]+c[f]*l[f],s[f]=p}return this.conjugate(s,c,n),this.transform(s,c,_,a,n,i),this.conjugate(_,a,n),this.normalize13b(_,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},a.prototype.mul=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},a.prototype.mulf=function(e){var t=new a(null);return t.words=new Array(this.length+e.length),p(this,e,t)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,a=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=a>>>26,this.words[r]=67108863&a}return 0!==t&&(this.words[r]=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=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new a(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},a.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,a=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&a,c=(0|this.words[t])-s<<r;this.words[t]=c|o,o=s>>>26-r}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<i;t++)this.words[t]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},a.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var a=e%26,o=Math.min((e-a)/26,this.length),s=67108863^67108863>>>a<<a,c=r;if(i-=o,i=Math.max(0,i),c){for(var u=0;u<o;u++)c.words[u]=this.words[u];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;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,r){return n(0===this.negative),this.iushrn(e,t,r)},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){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},a.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[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(n("number"==typeof e),n(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<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,t,r){var i,a,o=e.length+r;this._expand(o);var s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+r])+s;var c=(0|e.words[i])*t;s=((a-=67108863&c)>>26)-(c/67108864|0),this.words[i+r]=67108863&a}for(;i<this.length-r;i++)s=(a=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new a(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var l=n.clone()._ishlnsubmul(i,1,c);0===l.negative&&(n=l,s&&(s.words[c]=1));for(var d=c-1;d>=0;d--){var _=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);for(_=Math.min(_/o|0,67108863),n._ishlnsubmul(i,_,d);0!==n.negative;)_--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=_)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(o=s.mod.neg(),r&&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(),r&&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);var i,o,s},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 r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),a=r.cmp(n);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){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},a.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=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()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),d=t.clone();!t.isZero();){for(var _=0,f=1;0==(t.words[0]&f)&&_<26;++_,f<<=1);if(_>0)for(t.iushrn(_);_-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(l),o.isub(d)),i.iushrn(1),o.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),o.isub(c)):(r.isub(t),s.isub(i),c.isub(o))}return{a:s,b:c,gcd:r.iushln(u)}},a.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new a(1),s=new a(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,_=1;0==(r.words[0]&_)&&d<26;++d,_<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s)):(r.isub(t),s.isub(o))}return(i=0===t.cmpn(1)?o:s).cmpn(0)<0&&i.iadd(e),i},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var a=t;t=r,r=a}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},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){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&&o<this.length;o++){var s=0|this.words[o];a=(s+=a)>>>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,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},a.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(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 S(e)},a.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return n(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 n(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function h(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 y(){h.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){h.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){h.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){h.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function D(e){S.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)}h.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},h.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},h.prototype.split=function(e,t){e.iushrn(this.n,0,t)},h.prototype.imulK=function(e){return e.imul(this.k)},i(y,h),y.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var a=0|e.words[n];e.words[n-10]=(4194303&a)<<4|i>>>22,i=a}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(v,h),i(b,h),i(x,h),x.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new v;else if("p192"===e)t=new b;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return g[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!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),_=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=o;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var h=this.pow(d,new a(1).iushln(p-g-1));_=_.redMul(h),d=h.redSqr(),f=f.redMul(d),p=g}return _},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new a(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var d=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==d||0!==o?(o<<=1,o|=d,(4===++s||0===n&&0===l)&&(i=this.mul(i,r[o]),s=0,o=0)):s=0}c=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new D(e)},i(D,S),D.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},D.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},D.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).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)},D.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).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)},D.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(120)(e))},function(e,t,r){"use strict";var n=t;n.version=r(127).version,n.utils=r(128),n.rand=r(61),n.curve=r(23),n.curves=r(133),n.ec=r(141),n.eddsa=r(145)},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){var r,n,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var c,u=[],l=!1,d=-1;function _(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&f())}function f(){if(!l){var e=s(_);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d<t;)c&&c[d].run();d=-1,t=u.length}c=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||l||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(5),i=r(0);function a(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?r[n++]=o:o<2048?(r[n++]=o>>6|192,r[n++]=63&o|128):a(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),r[n++]=o>>18|240,r[n++]=o>>12&63|128,r[n++]=o>>6&63|128,r[n++]=63&o|128):(r[n++]=o>>12|224,r[n++]=o>>6&63|128,r[n++]=63&o|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=c(i.toString(16))}return r},t.zero2=s,t.zero8=c,t.join32=function(e,t,r,i){var a=r-t;n(a%4==0);for(var o=new Array(a/4),s=0,c=t;s<o.length;s++,c+=4){var u;u="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[s]=u>>>0}return o},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var a=e[n];"big"===t?(r[i]=a>>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=255&a):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=255&a)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],a=n+e[t+1]>>>0,o=(a<n?1:0)+r+i;e[t]=o>>>0,e[t+1]=a},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,a,o,s){var c=0,u=t;return c+=(u=u+n>>>0)<t?1:0,c+=(u=u+a>>>0)<a?1:0,e+r+i+o+(c+=(u=u+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,a,o,s){return t+n+a+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,a,o,s,c,u){var l=0,d=t;return l+=(d=d+n>>>0)<t?1:0,l+=(d=d+a>>>0)<a?1:0,l+=(d=d+s>>>0)<s?1:0,e+r+i+o+c+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,a,o,s,c,u){return t+n+a+s+u>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){var n=r(1).Buffer,i=r(26).Transform,a=r(30).StringDecoder;function o(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(0)(o,i),o.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=o},function(e,t,r){"use strict";var n=r(20),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=d;var a=r(14);a.inherits=r(0);var o=r(41),s=r(29);a.inherits(d,o);for(var c=i(s.prototype),u=0;u<c.length;u++){var l=c[u];d.prototype[l]||(d.prototype[l]=s.prototype[l])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",_)}function _(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t,r){"use strict";(function(t,n){var i=r(1).Buffer,a=t.crypto||t.msCrypto;a&&a.getRandomValues?e.exports=function(e,r){if(e>65536)throw new Error("requested too many random bytes");var o=new t.Uint8Array(e);e>0&&a.getRandomValues(o);var s=i.from(o.buffer);if("function"==typeof r)return n.nextTick(function(){r(null,s)});return s}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r(6),r(7))},function(e,t,r){var n=r(1).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var c=o%i,u=Math.min(a-s,i-c),l=0;l<u;l++)r[c+l]=e[s+l];s+=u,(o+=u)%i==0&&this._update(r)}return this._len+=a,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){"use strict";var n=r(0),i=r(25),a=r(31),o=r(32),s=r(9);function c(e){s.call(this,"digest"),this._hash=e}n(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new a:new c(o(e))}},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,r(2).Buffer)},function(e,t,r){(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),i=new t(n),a=0;a<n;++a)i[a]=e[a]^r[a];return i}}).call(this,r(2).Buffer)},function(e,t,r){"use strict";var n=r(8),i=r(5);function a(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=a,a.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},a.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,a=8;a<this.padLength;a++)n[i++]=0;return n}},function(e,t,r){var n=t;n.bignum=r(3),n.define=r(149).define,n.base=r(18),n.constants=r(67),n.decoders=r(155),n.encoders=r(157)},function(e,t,r){var n=t;n.Reporter=r(152).Reporter,n.DecoderBuffer=r(66).DecoderBuffer,n.EncoderBuffer=r(66).EncoderBuffer,n.Node=r(153)},function(e,t){t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),u=0,l=c.length-1;l>=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function l(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?u:function(e){return l(e)?"$"+e:e},t.fromSetString=c?u:function(e){return l(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=d(e.source,t.source);return 0!==n?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)||r?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!=(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)||r?n:0!==(n=d(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!==(r=d(e.source,t.source))?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var a,o,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(a=new Array(s-1),o=0;o<a.length;)a[o++]=arguments[o];return t.nextTick(function(){e.apply(null,a)})}}}:e.exports=t}).call(this,r(7))},function(e,t,r){var n=r(1).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function a(e){for(;0<e.length;e++)e[0]=0}function o(e,t,r,n,i){for(var a,o,s,c,u=r[0],l=r[1],d=r[2],_=r[3],f=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],h=4,y=1;y<i;y++)a=u[f>>>24]^l[p>>>16&255]^d[m>>>8&255]^_[255&g]^t[h++],o=u[p>>>24]^l[m>>>16&255]^d[g>>>8&255]^_[255&f]^t[h++],s=u[m>>>24]^l[g>>>16&255]^d[f>>>8&255]^_[255&p]^t[h++],c=u[g>>>24]^l[f>>>16&255]^d[p>>>8&255]^_[255&m]^t[h++],f=a,p=o,m=s,g=c;return a=(n[f>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[h++],o=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&f])^t[h++],s=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[f>>>8&255]<<8|n[255&p])^t[h++],c=(n[g>>>24]<<24|n[f>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[h++],[a>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],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,r[o]=u,n[u]=o;var l=e[o],d=e[l],_=e[d],f=257*e[u]^16843008*u;i[0][o]=f<<24|f>>>8,i[1][o]=f<<16|f>>>16,i[2][o]=f<<8|f>>>24,i[3][o]=f,f=16843009*_^65537*d^257*l^16843008*o,a[0][u]=f<<24|f>>>8,a[1][u]=f<<16|f>>>16,a[2][u]=f<<8|f>>>24,a[3][u]=f,0===o?o=s=1:(o=l^e[e[e[_^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:a}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],a=0;a<t;a++)i[a]=e[a];for(a=t;a<n;a++){var o=i[a-1];a%t==0?(o=o<<8|o>>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[a/t|0]<<24):t>6&&a%t==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),i[a]=i[a-t]^o}for(var u=[],l=0;l<n;l++){var d=n-l,_=i[d-(l%4?0:4)];u[l]=l<4||d<=4?_:c.INV_SUB_MIX[0][c.SBOX[_>>>24]]^c.INV_SUB_MIX[1][c.SBOX[_>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[_>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&_]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),a=n.allocUnsafe(16);return a.writeUInt32BE(r[0],0),a.writeUInt32BE(r[3],4),a.writeUInt32BE(r[2],8),a.writeUInt32BE(r[1],12),a},u.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},e.exports.AES=u},function(e,t,r){var n=r(1).Buffer,i=r(25);e.exports=function(e,t,r,a){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=r/8,s=n.alloc(o),c=n.alloc(a||0),u=n.alloc(0);o>0||a>0;){var l=new i;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var d=0;if(o>0){var _=s.length-o;d=Math.min(o,u.length),u.copy(s,_,0,d),o-=d}if(d<u.length&&a>0){var f=c.length-a,p=Math.min(a,u.length-d);u.copy(c,f,d,d+p),a-=p}}return u.fill(0),{key:s,iv:c}}},function(e,t,r){"use strict";var n=t;n.base=r(129),n.short=r(130),n.mont=r(131),n.edwards=r(132)},function(e,t,r){(function(t){var n=r(148),i=r(160),a=r(161),o=r(34),s=r(50);function c(e){var r;"object"!=typeof e||t.isBuffer(e)||(r=e.passphrase,e=e.key),"string"==typeof e&&(e=new t(e));var c,u,l=a(e,r),d=l.tag,_=l.data;switch(d){case"CERTIFICATE":u=n.certificate.decode(_,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=n.PublicKey.decode(_,"der")),c=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=n.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+c)}throw new Error("unknown key type "+d);case"ENCRYPTED PRIVATE KEY":_=function(e,r){var n=e.algorithm.decrypt.kde.kdeparams.salt,a=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),c=i[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,d=parseInt(c.split("-")[1],10)/8,_=s.pbkdf2Sync(r,n,a,d),f=o.createDecipheriv(c,_,u),p=[];return p.push(f.update(l)),p.push(f.final()),t.concat(p)}(_=n.EncryptedPrivateKey.decode(_,"der"),r);case"PRIVATE KEY":switch(c=(u=n.PrivateKey.decode(_,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:n.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=n.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+c)}throw new Error("unknown key type "+d);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(_,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(_,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(_,"der")};case"EC PRIVATE KEY":return{curve:(_=n.ECPrivateKey.decode(_,"der")).parameters.value,privateKey:_.privateKey};default:throw new Error("unknown key type "+d)}}e.exports=c,c.signature=n.signature}).call(this,r(2).Buffer)},function(e,t,r){"use strict";var n=r(0),i=r(40),a=r(1).Buffer,o=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function u(e,t,r,n,i,a,o){return c(e+(t&r|~t&n)+i+a|0,o)+t|0}function l(e,t,r,n,i,a,o){return c(e+(t&n|r&~n)+i+a|0,o)+t|0}function d(e,t,r,n,i,a,o){return c(e+(t^r^n)+i+a|0,o)+t|0}function _(e,t,r,n,i,a,o){return c(e+(r^(t|~n))+i+a|0,o)+t|0}n(s,i),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,a=this._d;r=u(r,n,i,a,e[0],3614090360,7),a=u(a,r,n,i,e[1],3905402710,12),i=u(i,a,r,n,e[2],606105819,17),n=u(n,i,a,r,e[3],3250441966,22),r=u(r,n,i,a,e[4],4118548399,7),a=u(a,r,n,i,e[5],1200080426,12),i=u(i,a,r,n,e[6],2821735955,17),n=u(n,i,a,r,e[7],4249261313,22),r=u(r,n,i,a,e[8],1770035416,7),a=u(a,r,n,i,e[9],2336552879,12),i=u(i,a,r,n,e[10],4294925233,17),n=u(n,i,a,r,e[11],2304563134,22),r=u(r,n,i,a,e[12],1804603682,7),a=u(a,r,n,i,e[13],4254626195,12),i=u(i,a,r,n,e[14],2792965006,17),r=l(r,n=u(n,i,a,r,e[15],1236535329,22),i,a,e[1],4129170786,5),a=l(a,r,n,i,e[6],3225465664,9),i=l(i,a,r,n,e[11],643717713,14),n=l(n,i,a,r,e[0],3921069994,20),r=l(r,n,i,a,e[5],3593408605,5),a=l(a,r,n,i,e[10],38016083,9),i=l(i,a,r,n,e[15],3634488961,14),n=l(n,i,a,r,e[4],3889429448,20),r=l(r,n,i,a,e[9],568446438,5),a=l(a,r,n,i,e[14],3275163606,9),i=l(i,a,r,n,e[3],4107603335,14),n=l(n,i,a,r,e[8],1163531501,20),r=l(r,n,i,a,e[13],2850285829,5),a=l(a,r,n,i,e[2],4243563512,9),i=l(i,a,r,n,e[7],1735328473,14),r=d(r,n=l(n,i,a,r,e[12],2368359562,20),i,a,e[5],4294588738,4),a=d(a,r,n,i,e[8],2272392833,11),i=d(i,a,r,n,e[11],1839030562,16),n=d(n,i,a,r,e[14],4259657740,23),r=d(r,n,i,a,e[1],2763975236,4),a=d(a,r,n,i,e[4],1272893353,11),i=d(i,a,r,n,e[7],4139469664,16),n=d(n,i,a,r,e[10],3200236656,23),r=d(r,n,i,a,e[13],681279174,4),a=d(a,r,n,i,e[0],3936430074,11),i=d(i,a,r,n,e[3],3572445317,16),n=d(n,i,a,r,e[6],76029189,23),r=d(r,n,i,a,e[9],3654602809,4),a=d(a,r,n,i,e[12],3873151461,11),i=d(i,a,r,n,e[15],530742520,16),r=_(r,n=d(n,i,a,r,e[2],3299628645,23),i,a,e[0],4096336452,6),a=_(a,r,n,i,e[7],1126891415,10),i=_(i,a,r,n,e[14],2878612391,15),n=_(n,i,a,r,e[5],4237533241,21),r=_(r,n,i,a,e[12],1700485571,6),a=_(a,r,n,i,e[3],2399980690,10),i=_(i,a,r,n,e[10],4293915773,15),n=_(n,i,a,r,e[1],2240044497,21),r=_(r,n,i,a,e[8],1873313359,6),a=_(a,r,n,i,e[15],4264355552,10),i=_(i,a,r,n,e[6],2734768916,15),n=_(n,i,a,r,e[13],1309151649,21),r=_(r,n,i,a,e[4],4149444226,6),a=_(a,r,n,i,e[11],3174756917,10),i=_(i,a,r,n,e[2],718787259,15),n=_(n,i,a,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+a|0},s.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=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,r){e.exports=i;var n=r(27).EventEmitter;function i(){n.call(this)}r(0)(i,n),i.Readable=r(28),i.Writable=r(91),i.Duplex=r(92),i.Transform=r(93),i.PassThrough=r(94),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function a(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,o,s,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(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(a(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(i(r))for(s=Array.prototype.slice.call(arguments,1),o=(u=r.slice()).length,c=0;c<o;c++)u[c].apply(this,s);return!0},r.prototype.addListener=function(e,t){var o;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(o=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[e].length>o&&(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},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function i(){this.removeListener(e,i),r||(r=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},r.prototype.removeListener=function(e,t){var r,a,o,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(r=this._events[e]).length,a=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(s=o;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){a=s;break}if(a<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;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(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){(t=e.exports=r(41)).Stream=t,t.Readable=t,t.Writable=r(29),t.Duplex=r(10),t.Transform=r(44),t.PassThrough=r(90)},function(e,t,r){"use strict";(function(t,n,i){var a=r(20);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:a.nextTick;y.WritableState=h;var u=r(14);u.inherits=r(0);var l={deprecate:r(89)},d=r(42),_=r(1).Buffer,f=i.Uint8Array||function(){};var p,m=r(43);function g(){}function h(e,t){s=s||r(10),e=e||{};var n=t instanceof s;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(u||0===u)?u:l,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 d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(a.nextTick(i,n),a.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),k(e,t))}(e,r,n,t,i);else{var o=S(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||x(e,r),n?c(b,e,r,o,i):b(e,r,o,i)}}(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 o(this)}function y(e){if(s=s||r(10),!(p.call(y,this)||this instanceof s))return new y(e);this._writableState=new h(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)),d.call(this)}function v(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function b(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function x(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)i[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;i.allBuffers=c,v(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,d=r.callback;if(v(e,t,!1,t.objectMode?1:u.length,u,l,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function D(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),k(e,t)})}function k(e,t){var r=S(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,a.nextTick(D,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(y,d),h.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(h.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===y&&(e&&e._writableState instanceof h)}})):p=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=e,_.isBuffer(n)||n instanceof f);return s&&!_.isBuffer(e)&&(e=function(e){return _.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),a.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),a.nextTick(n,o),i=!1),i}(this,i,e,r))&&(i.pendingcb++,o=function(e,t,r,n,i,a){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=_.from(t,r));return t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,n,i,a);return c}(this,i,s,e,t,r)),o},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||x(this,e))},y.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},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?a.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(7),r(87).setImmediate,r(6))},function(e,t,r){"use strict";var n=r(1).Buffer,i=n.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}};function a(e){var t;switch(this.encoding=function(e){var t=function(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}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=d,t=3;break;default:return this.write=_,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r: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 c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?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-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function _(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},a.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=o(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=o(t[n]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=o(t[n]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict";var n=r(2).Buffer,i=r(0),a=r(40),o=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],_=[1352829926,1548603684,1836072691,2053994217,0];function f(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,r,n,i,a,o,s){return p(e+(t^r^n)+a+o|0,s)+i|0}function g(e,t,r,n,i,a,o,s){return p(e+(t&r|~t&n)+a+o|0,s)+i|0}function h(e,t,r,n,i,a,o,s){return p(e+((t|~r)^n)+a+o|0,s)+i|0}function y(e,t,r,n,i,a,o,s){return p(e+(t&n|r&~n)+a+o|0,s)+i|0}function v(e,t,r,n,i,a,o,s){return p(e+(t^(r|~n))+a+o|0,s)+i|0}i(f,a),f.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,a=0|this._d,f=0|this._e,b=0|this._a,x=0|this._b,S=0|this._c,D=0|this._d,k=0|this._e,C=0;C<80;C+=1){var T,E;C<16?(T=m(r,n,i,a,f,e[s[C]],d[0],u[C]),E=v(b,x,S,D,k,e[c[C]],_[0],l[C])):C<32?(T=g(r,n,i,a,f,e[s[C]],d[1],u[C]),E=y(b,x,S,D,k,e[c[C]],_[1],l[C])):C<48?(T=h(r,n,i,a,f,e[s[C]],d[2],u[C]),E=h(b,x,S,D,k,e[c[C]],_[2],l[C])):C<64?(T=y(r,n,i,a,f,e[s[C]],d[3],u[C]),E=g(b,x,S,D,k,e[c[C]],_[3],l[C])):(T=v(r,n,i,a,f,e[s[C]],d[4],u[C]),E=m(b,x,S,D,k,e[c[C]],_[4],l[C])),r=f,f=a,a=p(i,10),i=n,n=T,b=k,k=D,D=p(S,10),S=x,x=E}var N=this._b+i+D|0;this._b=this._c+a+k|0,this._c=this._d+f+b|0,this._d=this._e+r+x|0,this._e=this._a+n+S|0,this._a=N},f.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=n.alloc?n.alloc(20):new n(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=f},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(95),t.sha1=r(96),t.sha224=r(97),t.sha256=r(45),t.sha384=r(98),t.sha512=r(46)},function(e,t,r){"use strict";t.utils=r(104),t.Cipher=r(105),t.DES=r(106),t.CBC=r(107),t.EDE=r(108)},function(e,t,r){var n=r(109),i=r(117),a=r(56);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(a)}},function(e,t,r){var n={ECB:r(110),CBC:r(111),CFB:r(112),CFB8:r(113),CFB1:r(114),OFB:r(115),CTR:r(54),GCM:r(54)},i=r(56);for(var a in i)i[a].module=n[i[a].mode];e.exports=i},function(e,t,r){(function(t){var n=r(3),i=r(11);function a(e,r){var i=function(e){var t=o(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),a=r.modulus.byteLength(),s=(n.mont(r.modulus),new n(e).mul(i.blinder).umod(r.modulus)),c=s.toRed(n.mont(r.prime1)),u=s.toRed(n.mont(r.prime2)),l=r.coefficient,d=r.prime1,_=r.prime2,f=c.redPow(r.exponent1),p=u.redPow(r.exponent2);f=f.fromRed(),p=p.fromRed();var m=f.isub(p).imul(l).umod(d);return m.imul(_),p.iadd(m),new t(p.imul(i.unblinder).umod(r.modulus).toArray(!1,a))}function o(e){for(var t=e.modulus.byteLength(),r=new n(i(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(i(t));return r}e.exports=a,a.getr=o}).call(this,r(2).Buffer)},function(e,t,r){var n=t;n.utils=r(8),n.common=r(16),n.sha=r(134),n.ripemd=r(138),n.hmac=r(139),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";(function(t,n,i,a){
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved. 
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0  
 
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 
MERCHANTABLITY OR NON-INFRINGEMENT. 
 
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var o,s=this&&this.__assign||function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},c=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},u=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},l=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});!function(e){e.versionMajorMinor="3.2",e.version=e.versionMajorMinor+".2"}(d||(d={})),function(e){!function(e){e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan"}(e.Comparison||(e.Comparison={}))}(d||(d={})),function(e){function t(){var e=Object.create(null);return e.__=void 0,delete e.__,e}function r(){return new e.MapCtr}var n;function i(e,t,r){if(void 0===r&&(r=w),e)for(var n=0,i=e;n<i.length;n++){if(r(i[n],t))return!0}return!1}function a(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r}function o(e,t){if(e){if(!t)return e.length>0;for(var r=0,n=e;r<n.length;r++){if(t(n[r]))return!0}}return!1}function s(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function c(e,t){return t<0?e.length+t:t}function u(e,t,r,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(r,n);r=void 0===r?0:c(t,r),n=void 0===n?t.length:c(t,n);for(var i=r;i<n&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function l(e,t,r){return!i(e,t,r)&&(e.push(t),!0)}function d(e,t,r){t.sort(function(t,n){return r(e[t],e[n])||F(t,n)})}function _(e,t){return 0===e.length?e:e.slice().sort(t)}function f(e){var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:{value:e[++t-1],done:!1}}}}function p(e,t,r,n,i){return m(e,r(t),r,n,i)}function m(e,t,r,n,i){if(!o(e))return-1;for(var a=i||0,s=e.length-1;a<=s;){var c=a+(s-a>>1);switch(n(r(e[c]),t)){case-1:a=c+1;break;case 0:return c;case 1:s=c-1}}return~a}function g(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.emptyArray=[],e.createMap=r,e.createMapFromEntries=function(e){for(var t=r(),n=0,i=e;n<i.length;n++){var a=i[n],o=a[0],s=a[1];t.set(o,s)}return t},e.createMapFromTemplate=function(t){var r=new e.MapCtr;for(var n in t)y.call(t,n)&&r.set(n,t[n]);return r},e.MapCtr="undefined"!=typeof Map&&"entries"in Map.prototype?Map:(n=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<this.keys.length?(this.index++,{value:this.selector(this.data,this.keys[e]),done:!1}):{value:void 0,done:!0}},e}(),function(){function e(){this.data=t(),this.size=0}return e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.has(e)||this.size++,this.data[e]=t,this},e.prototype.has=function(e){return e in this.data},e.prototype.delete=function(e){return!!this.has(e)&&(this.size--,delete this.data[e],!0)},e.prototype.clear=function(){this.data=t(),this.size=0},e.prototype.keys=function(){return new n(this.data,function(e,t){return t})},e.prototype.values=function(){return new n(this.data,function(e,t){return e[t]})},e.prototype.entries=function(){return new n(this.data,function(e,t){return[t,e[t]]})},e.prototype.forEach=function(e){for(var t in this.data)e(this.data[t],t)},e}()),e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}},e.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},e.firstDefinedIterator=function(e,t){for(;;){var r=e.next(),n=r.value;if(r.done)return;var i=t(n);if(void 0!==i)return i}},e.zipWith=function(e,t,r){var n=[];h.assertEqual(e.length,t.length);for(var i=0;i<e.length;i++)n.push(r(e[i],t[i],i));return n},e.zipToIterator=function(e,t){h.assertEqual(e.length,t.length);var r=0;return{next:function(){return r===e.length?{value:void 0,done:!0}:{value:[e[++r-1],t[r-1]],done:!1}}}},e.zipToMap=function(e,t){h.assert(e.length===t.length);for(var n=r(),i=0;i<e.length;++i)n.set(e[i],t[i]);return n},e.every=function(e,t){if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},e.find=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}},e.findLast=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n<e.length;n++)if(t(e[n],n))return n;return-1},e.findLastIndex=function(e,t,r){for(var n=void 0===r?e.length-1:r;n>=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(e,t){for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}return h.fail()},e.contains=i,e.arraysEqual=function(e,t,r){return void 0===r&&(r=w),e.length===t.length&&e.every(function(e,n){return r(e,t[n])})},e.indexOfAnyCharCode=function(e,t,r){for(var n=r||0;n<e.length;n++)if(i(t,e.charCodeAt(n)))return n;return-1},e.countWhere=function(e,t){var r=0;if(e)for(var n=0;n<e.length;n++)t(e[n],n)&&r++;return r},e.filter=function(e,t){if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},e.filterMutate=function(e,t){for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},e.clear=function(e){e.length=0},e.map=a,e.mapIterator=function(e,t){return{next:function(){var r=e.next();return r.done?r:{value:t(r.value),done:!1}}}},e.sameMap=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},e.flatten=function(e){var t;if(e){t=[];for(var r=0,n=e;r<n.length;r++){var i=n[r];i&&(C(i)?u(t,i):t.push(i))}}return t},e.flatMap=function(t,r){var n;if(t)for(var i=0;i<t.length;i++){var a=r(t[i],i);a&&(n=C(a)?u(n,a):s(n,a))}return n||e.emptyArray},e.flatMapToMutable=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(C(i)?u(r,i):r.push(i))}return r},e.flatMapIterator=function(t,r){var n=t.next();if(n.done)return e.emptyIterator;var i=a(n.value);return{next:function(){for(;;){var e=i.next();if(!e.done)return e;var r=t.next();if(r.done)return r;i=a(r.value)}}};function a(t){var n=r(t);return void 0===n?e.emptyIterator:C(n)?f(n):n}},e.sameFlatMap=function(e,t){var r;if(e)for(var n=0;n<e.length;n++){var i=e[n],a=t(i,n);(r||i!==a||C(a))&&(r||(r=e.slice(0,n)),C(a)?u(r,a):r.push(a))}return r||e},e.mapAllOrFail=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);if(void 0===i)return;r.push(i)}return r},e.mapDefined=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);void 0!==i&&r.push(i)}return r},e.mapDefinedIterator=function(e,t){return{next:function(){for(;;){var r=e.next();if(r.done)return r;var n=t(r.value);if(void 0!==n)return{value:n,done:!1}}}}},e.emptyIterator={next:function(){return{value:void 0,done:!0}}},e.singleIterator=function(e){var t=!1;return{next:function(){var r=t;return t=!0,r?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=function(e,t,r){var n;if(e){n=[];for(var i=e.length,a=void 0,o=void 0,s=0,c=0;s<i;){for(;c<i;){if(o=t(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){var u=r(e.slice(s,c),a,s,c);u&&n.push(u),s=c}a=o,c++}}return n},e.mapEntries=function(e,t){if(e){var n=r();return e.forEach(function(e,r){var i=t(r,e),a=i[0],o=i[1];n.set(a,o)}),n}},e.some=o,e.getRangesWhere=function(e,t,r){for(var n,i=0;i<e.length;i++)t(e[i])?n=void 0===n?i:n:void 0!==n&&(r(n,i),n=void 0);void 0!==n&&r(n,e.length)},e.concatenate=function(e,t){return o(t)?o(e)?e.concat(t):t:e},e.deduplicate=function(e,t,r){return 0===e.length?[]:1===e.length?e.slice():r?function(e,t,r){var n=e.map(function(e,t){return t});d(e,n,r);for(var i=e[n[0]],a=[n[0]],o=1;o<n.length;o++){var s=n[o],c=e[s];t(i,c)||(a.push(s),i=c)}return a.sort(),a.map(function(t){return e[t]})}(e,t,r):function(e,t){for(var r=[],n=0,i=e;n<i.length;n++)l(r,i[n],t);return r}(e,t)},e.insertSorted=function(e,t,r){if(0!==e.length){var n=p(e,t,E,r);n<0&&e.splice(~n,0,t)}else e.push(t)},e.sortAndDeduplicate=function(t,r,n){return function(t,r){if(0===t.length)return e.emptyArray;for(var n=t[0],i=[n],a=1;a<t.length;a++){var o=t[a];switch(r(o,n)){case!0:case 0:continue;case-1:return h.fail("Array is unsorted.")}i.push(n=o)}return i}(_(t,r),n||r||M)},e.arrayIsEqualTo=function(e,t,r){if(void 0===r&&(r=w),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0},e.compact=function(e){var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t||(t=e.slice(0,r)),n&&t.push(n))}return t||e},e.relativeComplement=function(e,t,r){if(!t||!e||0===t.length||0===e.length)return t;var n=[];e:for(var i=0,a=0;a<t.length;a++){a>0&&h.assertGreaterThanOrEqual(r(t[a],t[a-1]),0);t:for(var o=i;i<e.length;i++)switch(i>o&&h.assertGreaterThanOrEqual(r(e[i],e[i-1]),0),r(t[a],e[i])){case-1:n.push(t[a]);continue e;case 0:continue e;case 1:continue t}}return n},e.sum=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++)r+=i[n][t];return r},e.append=s,e.addRange=u,e.pushIfUnique=l,e.appendIfUnique=function(e,t,r){return e?(l(e,t,r),e):[t]},e.sort=_,e.arrayIterator=f,e.stableSort=function(e,t){var r=e.map(function(e,t){return t});return d(e,r,t),r.map(function(t){return e[t]})},e.rangeEquals=function(e,t,r,n){for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},e.elementAt=function(e,t){if(e&&(t=c(e,t))<e.length)return e[t]},e.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},e.first=function(e){return h.assert(0!==e.length),e[0]},e.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},e.last=function(e){return h.assert(0!==e.length),e[e.length-1]},e.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},e.singleOrMany=function(e){return e&&1===e.length?e[0]:e},e.replaceElement=function(e,t,r){var n=e.slice(0);return n[t]=r,n},e.binarySearch=p,e.binarySearchKey=m,e.reduceLeft=g;var h,y=Object.prototype.hasOwnProperty;function v(e,t){return y.call(e,t)}function b(e,t){for(var r,n=[],i=e.next(),a=i.value,o=i.done;!o;a=(r=e.next()).value,o=r.done,r)n.push(t?t(a):a);return n}function x(e,t,r){void 0===r&&(r=E);for(var n=S(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function S(){var e=r();return e.add=D,e.remove=k,e}function D(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function k(e,t){var r=this.get(e);r&&(q(r,t),r.length||this.delete(e))}function C(e){return Array.isArray?Array.isArray(e):e instanceof Array}function T(e){}function E(e){return e}function N(e){return e.toLowerCase()}function A(e,t,r,n,i){if(i){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return g(a,function(e,t){return t(e)},e)}}return n?function(i){return n(r(t(e(i))))}:r?function(n){return r(t(e(n)))}:t?function(r){return t(e(r))}:e?function(t){return e(t)}:function(e){return e}}function w(e,t){return e===t}function P(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function F(e,t){return P(e,t)}function I(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function M(e,t){return P(e,t)}e.hasProperty=v,e.getProperty=function(e,t){return y.call(e,t)?e[t]:void 0},e.getOwnKeys=function(e){var t=[];for(var r in e)y.call(e,r)&&t.push(r);return t},e.getOwnValues=function(e){var t=[];for(var r in e)y.call(e,r)&&t.push(e[r]);return t},e.arrayFrom=b,e.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];for(var o in a)v(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=function(e,t,r){if(void 0===r&&(r=w),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(y.call(e,n)){if(!y.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(y.call(t,n)&&!y.call(e,n))return!1;return!0},e.arrayToMap=function(e,t,n){void 0===n&&(n=E);for(var i=r(),a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);void 0!==c&&i.set(c,n(s))}return i},e.arrayToNumericMap=function(e,t,r){void 0===r&&(r=E);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},e.arrayToMultiMap=x,e.group=function(e,t){return b(x(e,t).values())},e.clone=function(e){var t={};for(var r in e)y.call(e,r)&&(t[r]=e[r]);return t},e.extend=function(e,t){var r={};for(var n in t)y.call(t,n)&&(r[n]=t[n]);for(var n in e)y.call(e,n)&&(r[n]=e[n]);return r},e.createMultiMap=S,e.isArray=C,e.toArray=function(e){return C(e)?e:[e]},e.isString=function(e){return"string"==typeof e},e.isNumber=function(e){return"number"==typeof e},e.tryCast=function(e,t){return void 0!==e&&t(e)?e:void 0},e.cast=function(e,t){return void 0!==e&&t(e)?e:h.fail("Invalid cast. The supplied value "+e+" did not pass the test '"+h.getFunctionName(t)+"'.")},e.noop=T,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.identity=E,e.toLowerCase=N,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.chain=function(e,t,r,n,i){if(i){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return function(e){return A.apply(void 0,a(o,function(t){return t(e)}))}}return n?function(i){return A(e(i),t(i),r(i),n(i))}:r?function(n){return A(e(n),t(n),r(n))}:t?function(r){return A(e(r),t(r))}:e?function(t){return A(e(t))}:function(e){return function(e){return e}}},e.compose=A,function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={})),function(e){function t(e,r){var n=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,r||t),n}function r(e,r){return null==e?t(r):e}e.currentAssertionLevel=0,e.isDebugging=!1,e.shouldAssert=function(t){return e.currentAssertionLevel>=t},e.assert=function e(r,n,i,a){r||(i&&(n+="\r\nVerbose Debug Information: "+("string"==typeof i?i:i())),t(n?"False expression: "+n:"False expression.",a||e))},e.assertEqual=function(e,r,n,i){e!==r&&t("Expected "+e+" === "+r+". "+(n?i?n+" "+i:n:""))},e.assertLessThan=function(e,r,n){e>=r&&t("Expected "+e+" < "+r+". "+(n||""))},e.assertLessThanOrEqual=function(e,r){e>r&&t("Expected "+e+" <= "+r)},e.assertGreaterThanOrEqual=function(e,r){e<r&&t("Expected "+e+" >= "+r)},e.fail=t,e.assertDefined=r,e.assertEachDefined=function(e,t){for(var n=0,i=e;n<i.length;n++)r(i[n],t);return e},e.assertNever=function r(n,i,a){return void 0===i&&(i="Illegal value:"),t(i+" "+("kind"in n&&"pos"in n?"SyntaxKind: "+e.showSyntaxKind(n):JSON.stringify(n)),a||r)},e.getFunctionName=function(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""}}(h=e.Debug||(e.Debug={})),e.equateValues=w,e.equateStringsCaseInsensitive=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()},e.equateStringsCaseSensitive=function(e,t){return w(e,t)},e.compareValues=F,e.min=function(e,t,r){return-1===r(e,t)?e:t},e.compareStringsCaseInsensitive=I,e.compareStringsCaseSensitive=M,e.getStringComparer=function(e){return e?I:M};var O,L,R=function(){var e,t,r=function(){if("object"==typeof Intl&&"function"==typeof Intl.Collator)return i;if("function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0)return a;return o}();return function(n){return void 0===n?e||(e=r(n)):"en-US"===n?t||(t=r(n)):r(n)};function n(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=r(e,t);return n<0?-1:n>0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return e<t?-1:e>t?1:0}}}();function B(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+1,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=o>r?o-r:1,u=t.length>r+o?r+o:t.length;i[0]=o;for(var l=o,d=1;d<c;d++)i[d]=a;for(d=c;d<=u;d++){var _=s===t.charCodeAt(d-1)?n[d-1]:Math.min(n[d]+1,i[d-1]+1,n[d-1]+2);i[d]=_,l=Math.min(l,_)}for(d=u+1;d<=t.length;d++)i[d]=a;if(l>r)return;var f=n;n=i,i=f}var p=n[t.length];return p>r?void 0:p}function j(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function z(e,t){return e.length>t.length&&j(e,t)}function J(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function U(e,t){e[t]=e[e.length-1],e.pop()}function q(e,t){return function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return U(e,r),!0;return!1}(e,function(e){return e===t})}function K(e,t){return 0===e.lastIndexOf(t,0)}function V(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&K(t,r)&&j(t,n)}e.getUILocale=function(){return L},e.setUILocale=function(e){L!==e&&(L=e,O=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return(O||(O=R(L)))(e,t)},e.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},e.compareBooleans=function(e,t){return F(e?1:0,t?1:0)},e.getSpellingSuggestion=function(e,t,r){for(var n,i=Math.min(2,Math.floor(.34*e.length)),a=Math.floor(.4*e.length)+1,o=!1,s=e.toLowerCase(),c=0,u=t;c<u.length;c++){var l=u[c],d=r(l);if(void 0!==d&&Math.abs(d.length-s.length)<=i){var _=d.toLowerCase();if(_===s){if(d===e)continue;return l}if(o)continue;if(d.length<3)continue;var f=B(s,_,a-1);if(void 0===f)continue;f<3?(o=!0,n=l):(h.assert(f<a),a=f,n=l)}}return n},e.endsWith=j,e.removeSuffix=function(e,t){return j(e,t)?e.slice(0,e.length-t.length):e},e.tryRemoveSuffix=function(e,t){return j(e,t)?e.slice(0,e.length-t.length):void 0},e.stringContains=function(e,t){return-1!==e.indexOf(t)},e.fileExtensionIs=z,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r<n.length;r++)if(z(e,n[r]))return!0;return!1},e.removeMinAndVersionNumbers=function(e){var t=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(t,"").replace(t,"")},e.orderedRemoveItem=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return J(e,r),!0;return!1},e.orderedRemoveItemAt=J,e.unorderedRemoveItemAt=U,e.unorderedRemoveItem=q,e.createGetCanonicalFileName=function(e){return e?E:N},e.patternText=function(e){return e.prefix+"*"+e.suffix},e.matchedText=function(e,t){return h.assert(V(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)},e.findBestPatternMatch=function(e,t,r){for(var n,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);V(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},e.startsWith=K,e.removePrefix=function(e,t){return K(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=E),K(r(e),r(t))?e.substring(t.length):void 0},e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(e,t){return function(r){return e(r)||t(r)}},e.assertType=function(e){},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||T;for(var o=0,s=0,c=e.length,u=t.length;o<c&&s<u;){var l=e[o],d=t[s],_=r(l,d);-1===_?(n(l),o++):1===_?(i(d),s++):(a(d,l),o++,s++)}for(;o<c;)n(e[o++]);for(;s<u;)i(t[s++])},e.fill=function(e,t){return new Array(e).fill(0).map(function(e,r){return t(r)})}}(d||(d={})),function(e){e.timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date}}(d||(d={})),function(e){!function(t){var r,n,i,a="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},o=!1,s=0;function c(t,r,n){var i=0;return{enter:function(){1==++i&&u(r)},exit:function(){0==--i?(u(n),l(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}function u(t){o&&(n.set(t,e.timestamp()),r.set(t,(r.get(t)||0)+1),a(t))}function l(t,r,a){if(o){var c=a&&n.get(a)||e.timestamp(),u=r&&n.get(r)||s;i.set(t,(i.get(t)||0)+(c-u))}}t.createTimerIf=function(e,r,n,i){return e?c(r,n,i):t.nullTimer},t.createTimer=c,t.nullTimer={enter:e.noop,exit:e.noop},t.mark=u,t.measure=l,t.getCount=function(e){return r&&r.get(e)||0},t.getDuration=function(e){return i&&i.get(e)||0},t.forEachMeasure=function(e){i.forEach(function(t,r){e(r,t)})},t.enable=function(){r=e.createMap(),n=e.createMap(),i=e.createMap(),o=!0,s=e.timestamp()},t.disable=function(){o=!1}}(e.performance||(e.performance={}))}(d||(d={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function t(t,i,a,s,c){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof t){var u=e.Debug.assertDefined(o(t),"Invalid version");t=u.major,i=u.minor,a=u.patch,s=u.prerelease,c=u.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=function(e){var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a<n;a++){var o=t[a],s=r[a];if(o!==s){var c=i.test(o),u=i.test(s);if(c||u){if(c!==u)return c?-1:1;var l=e.compareValues(+o,+s);if(l)return l}else{var l=e.compareStringsCaseSensitive(o,s);if(l)return l}}}return e.compareValues(t.length,r.length)}(this.prerelease,t.prerelease)},t.prototype.increment=function(r){switch(r){case"major":return new t(this.major+1,0,0);case"minor":return new t(this.major,this.minor+1,0);case"patch":return new t(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(r)}},t.prototype.toString=function(){var t=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(t+="-"+this.prerelease.join(".")),e.some(this.build)&&(t+="+"+this.build.join(".")),t},t.zero=new t(0,0,0),t}();function o(e){var i=t.exec(e);if(i){var a=i[1],o=i[2],s=void 0===o?"0":o,c=i[3],u=void 0===c?"0":c,l=i[4],d=void 0===l?"":l,_=i[5],f=void 0===_?"":_;if((!d||r.test(d))&&(!f||n.test(f)))return{major:parseInt(a,10),minor:parseInt(s,10),patch:parseInt(u,10),prerelease:d,build:f}}}e.Version=a;var s=function(){function t(t){this._alternatives=t?e.Debug.assertDefined(f(t),"Invalid range spec."):e.emptyArray}return t.tryParse=function(e){var r=f(e);if(r){var n=new t("");return n._alternatives=r,n}},t.prototype.test=function(e){return"string"==typeof e&&(e=new a(e)),function(e,t){if(0===t.length)return!0;for(var r=0,n=t;r<n.length;r++){var i=n[r];if(v(e,i))return!0}return!1}(e,this._alternatives)},t.prototype.toString=function(){return t=this._alternatives,e.map(t,x).join(" || ")||"*";var t},t}();e.VersionRange=s;var c=/\s*\|\|\s*/g,u=/\s+/g,l=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,d=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,_=/^\s*(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function f(e){for(var t=[],r=0,n=e.trim().split(c);r<n.length;r++){var i=n[r];if(i){var a=[],o=d.exec(i);if(o){if(!m(o[1],o[2],a))return}else for(var s=0,l=i.split(u);s<l.length;s++){var f=l[s],p=_.exec(f);if(!p||!g(p[1],p[2],a))return}t.push(a)}}return t}function p(e){var t=l.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"*":n,o=t[3],s=void 0===o?"*":o,c=t[4],u=t[5];return{version:new a(h(r)?0:parseInt(r,10),h(r)||h(i)?0:parseInt(i,10),h(r)||h(i)||h(s)?0:parseInt(s,10),c,u),major:r,minor:i,patch:s}}}function m(e,t,r){var n=p(e);if(!n)return!1;var i=p(t);return!!i&&(h(n.major)||r.push(y(">=",n.version)),h(i.major)||r.push(h(i.minor)?y("<",i.version.increment("major")):h(i.patch)?y("<",i.version.increment("minor")):y("<=",i.version)),!0)}function g(e,t,r){var n=p(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(h(o))"<"!==e&&">"!==e||r.push(y("<",a.zero));else switch(e){case"~":r.push(y(">=",i)),r.push(y("<",i.increment(h(s)?"major":"minor")));break;case"^":r.push(y(">=",i)),r.push(y("<",i.increment(i.major>0||h(s)?"major":i.minor>0||h(c)?"minor":"patch")));break;case"<":case">=":r.push(y(e,i));break;case"<=":case">":r.push(h(s)?y("<="===e?"<":">=",i.increment("major")):h(c)?y("<="===e?"<":">=",i.increment("minor")):y(e,i));break;case"=":case void 0:h(s)||h(c)?(r.push(y(">=",i)),r.push(y("<",i.increment(h(s)?"major":"minor")))):r.push(y("=",i));break;default:return!1}return!0}function h(e){return"*"===e||"x"===e||"X"===e}function y(e,t){return{operator:e,operand:t}}function v(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!b(e,i.operator,i.operand))return!1}return!0}function b(t,r,n){var i=t.compareTo(n);switch(r){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function x(t){return e.map(t,S).join(" ")}function S(e){return""+e.operator+e.operand}}(d||(d={})),function(e){!function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.LessThanToken=28]="LessThanToken",e[e.LessThanSlashToken=29]="LessThanSlashToken",e[e.GreaterThanToken=30]="GreaterThanToken",e[e.LessThanEqualsToken=31]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=32]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=33]="EqualsEqualsToken",e[e.ExclamationEqualsToken=34]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=35]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=36]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=37]="EqualsGreaterThanToken",e[e.PlusToken=38]="PlusToken",e[e.MinusToken=39]="MinusToken",e[e.AsteriskToken=40]="AsteriskToken",e[e.AsteriskAsteriskToken=41]="AsteriskAsteriskToken",e[e.SlashToken=42]="SlashToken",e[e.PercentToken=43]="PercentToken",e[e.PlusPlusToken=44]="PlusPlusToken",e[e.MinusMinusToken=45]="MinusMinusToken",e[e.LessThanLessThanToken=46]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=47]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=48]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=49]="AmpersandToken",e[e.BarToken=50]="BarToken",e[e.CaretToken=51]="CaretToken",e[e.ExclamationToken=52]="ExclamationToken",e[e.TildeToken=53]="TildeToken",e[e.AmpersandAmpersandToken=54]="AmpersandAmpersandToken",e[e.BarBarToken=55]="BarBarToken",e[e.QuestionToken=56]="QuestionToken",e[e.ColonToken=57]="ColonToken",e[e.AtToken=58]="AtToken",e[e.EqualsToken=59]="EqualsToken",e[e.PlusEqualsToken=60]="PlusEqualsToken",e[e.MinusEqualsToken=61]="MinusEqualsToken",e[e.AsteriskEqualsToken=62]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=63]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=64]="SlashEqualsToken",e[e.PercentEqualsToken=65]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=66]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=67]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=68]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=69]="AmpersandEqualsToken",e[e.BarEqualsToken=70]="BarEqualsToken",e[e.CaretEqualsToken=71]="CaretEqualsToken",e[e.Identifier=72]="Identifier",e[e.BreakKeyword=73]="BreakKeyword",e[e.CaseKeyword=74]="CaseKeyword",e[e.CatchKeyword=75]="CatchKeyword",e[e.ClassKeyword=76]="ClassKeyword",e[e.ConstKeyword=77]="ConstKeyword",e[e.ContinueKeyword=78]="ContinueKeyword",e[e.DebuggerKeyword=79]="DebuggerKeyword",e[e.DefaultKeyword=80]="DefaultKeyword",e[e.DeleteKeyword=81]="DeleteKeyword",e[e.DoKeyword=82]="DoKeyword",e[e.ElseKeyword=83]="ElseKeyword",e[e.EnumKeyword=84]="EnumKeyword",e[e.ExportKeyword=85]="ExportKeyword",e[e.ExtendsKeyword=86]="ExtendsKeyword",e[e.FalseKeyword=87]="FalseKeyword",e[e.FinallyKeyword=88]="FinallyKeyword",e[e.ForKeyword=89]="ForKeyword",e[e.FunctionKeyword=90]="FunctionKeyword",e[e.IfKeyword=91]="IfKeyword",e[e.ImportKeyword=92]="ImportKeyword",e[e.InKeyword=93]="InKeyword",e[e.InstanceOfKeyword=94]="InstanceOfKeyword",e[e.NewKeyword=95]="NewKeyword",e[e.NullKeyword=96]="NullKeyword",e[e.ReturnKeyword=97]="ReturnKeyword",e[e.SuperKeyword=98]="SuperKeyword",e[e.SwitchKeyword=99]="SwitchKeyword",e[e.ThisKeyword=100]="ThisKeyword",e[e.ThrowKeyword=101]="ThrowKeyword",e[e.TrueKeyword=102]="TrueKeyword",e[e.TryKeyword=103]="TryKeyword",e[e.TypeOfKeyword=104]="TypeOfKeyword",e[e.VarKeyword=105]="VarKeyword",e[e.VoidKeyword=106]="VoidKeyword",e[e.WhileKeyword=107]="WhileKeyword",e[e.WithKeyword=108]="WithKeyword",e[e.ImplementsKeyword=109]="ImplementsKeyword",e[e.InterfaceKeyword=110]="InterfaceKeyword",e[e.LetKeyword=111]="LetKeyword",e[e.PackageKeyword=112]="PackageKeyword",e[e.PrivateKeyword=113]="PrivateKeyword",e[e.ProtectedKeyword=114]="ProtectedKeyword",e[e.PublicKeyword=115]="PublicKeyword",e[e.StaticKeyword=116]="StaticKeyword",e[e.YieldKeyword=117]="YieldKeyword",e[e.AbstractKeyword=118]="AbstractKeyword",e[e.AsKeyword=119]="AsKeyword",e[e.AnyKeyword=120]="AnyKeyword",e[e.AsyncKeyword=121]="AsyncKeyword",e[e.AwaitKeyword=122]="AwaitKeyword",e[e.BooleanKeyword=123]="BooleanKeyword",e[e.ConstructorKeyword=124]="ConstructorKeyword",e[e.DeclareKeyword=125]="DeclareKeyword",e[e.GetKeyword=126]="GetKeyword",e[e.InferKeyword=127]="InferKeyword",e[e.IsKeyword=128]="IsKeyword",e[e.KeyOfKeyword=129]="KeyOfKeyword",e[e.ModuleKeyword=130]="ModuleKeyword",e[e.NamespaceKeyword=131]="NamespaceKeyword",e[e.NeverKeyword=132]="NeverKeyword",e[e.ReadonlyKeyword=133]="ReadonlyKeyword",e[e.RequireKeyword=134]="RequireKeyword",e[e.NumberKeyword=135]="NumberKeyword",e[e.ObjectKeyword=136]="ObjectKeyword",e[e.SetKeyword=137]="SetKeyword",e[e.StringKeyword=138]="StringKeyword",e[e.SymbolKeyword=139]="SymbolKeyword",e[e.TypeKeyword=140]="TypeKeyword",e[e.UndefinedKeyword=141]="UndefinedKeyword",e[e.UniqueKeyword=142]="UniqueKeyword",e[e.UnknownKeyword=143]="UnknownKeyword",e[e.FromKeyword=144]="FromKeyword",e[e.GlobalKeyword=145]="GlobalKeyword",e[e.BigIntKeyword=146]="BigIntKeyword",e[e.OfKeyword=147]="OfKeyword",e[e.QualifiedName=148]="QualifiedName",e[e.ComputedPropertyName=149]="ComputedPropertyName",e[e.TypeParameter=150]="TypeParameter",e[e.Parameter=151]="Parameter",e[e.Decorator=152]="Decorator",e[e.PropertySignature=153]="PropertySignature",e[e.PropertyDeclaration=154]="PropertyDeclaration",e[e.MethodSignature=155]="MethodSignature",e[e.MethodDeclaration=156]="MethodDeclaration",e[e.Constructor=157]="Constructor",e[e.GetAccessor=158]="GetAccessor",e[e.SetAccessor=159]="SetAccessor",e[e.CallSignature=160]="CallSignature",e[e.ConstructSignature=161]="ConstructSignature",e[e.IndexSignature=162]="IndexSignature",e[e.TypePredicate=163]="TypePredicate",e[e.TypeReference=164]="TypeReference",e[e.FunctionType=165]="FunctionType",e[e.ConstructorType=166]="ConstructorType",e[e.TypeQuery=167]="TypeQuery",e[e.TypeLiteral=168]="TypeLiteral",e[e.ArrayType=169]="ArrayType",e[e.TupleType=170]="TupleType",e[e.OptionalType=171]="OptionalType",e[e.RestType=172]="RestType",e[e.UnionType=173]="UnionType",e[e.IntersectionType=174]="IntersectionType",e[e.ConditionalType=175]="ConditionalType",e[e.InferType=176]="InferType",e[e.ParenthesizedType=177]="ParenthesizedType",e[e.ThisType=178]="ThisType",e[e.TypeOperator=179]="TypeOperator",e[e.IndexedAccessType=180]="IndexedAccessType",e[e.MappedType=181]="MappedType",e[e.LiteralType=182]="LiteralType",e[e.ImportType=183]="ImportType",e[e.ObjectBindingPattern=184]="ObjectBindingPattern",e[e.ArrayBindingPattern=185]="ArrayBindingPattern",e[e.BindingElement=186]="BindingElement",e[e.ArrayLiteralExpression=187]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=188]="ObjectLiteralExpression",e[e.PropertyAccessExpression=189]="PropertyAccessExpression",e[e.ElementAccessExpression=190]="ElementAccessExpression",e[e.CallExpression=191]="CallExpression",e[e.NewExpression=192]="NewExpression",e[e.TaggedTemplateExpression=193]="TaggedTemplateExpression",e[e.TypeAssertionExpression=194]="TypeAssertionExpression",e[e.ParenthesizedExpression=195]="ParenthesizedExpression",e[e.FunctionExpression=196]="FunctionExpression",e[e.ArrowFunction=197]="ArrowFunction",e[e.DeleteExpression=198]="DeleteExpression",e[e.TypeOfExpression=199]="TypeOfExpression",e[e.VoidExpression=200]="VoidExpression",e[e.AwaitExpression=201]="AwaitExpression",e[e.PrefixUnaryExpression=202]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=203]="PostfixUnaryExpression",e[e.BinaryExpression=204]="BinaryExpression",e[e.ConditionalExpression=205]="ConditionalExpression",e[e.TemplateExpression=206]="TemplateExpression",e[e.YieldExpression=207]="YieldExpression",e[e.SpreadElement=208]="SpreadElement",e[e.ClassExpression=209]="ClassExpression",e[e.OmittedExpression=210]="OmittedExpression",e[e.ExpressionWithTypeArguments=211]="ExpressionWithTypeArguments",e[e.AsExpression=212]="AsExpression",e[e.NonNullExpression=213]="NonNullExpression",e[e.MetaProperty=214]="MetaProperty",e[e.SyntheticExpression=215]="SyntheticExpression",e[e.TemplateSpan=216]="TemplateSpan",e[e.SemicolonClassElement=217]="SemicolonClassElement",e[e.Block=218]="Block",e[e.VariableStatement=219]="VariableStatement",e[e.EmptyStatement=220]="EmptyStatement",e[e.ExpressionStatement=221]="ExpressionStatement",e[e.IfStatement=222]="IfStatement",e[e.DoStatement=223]="DoStatement",e[e.WhileStatement=224]="WhileStatement",e[e.ForStatement=225]="ForStatement",e[e.ForInStatement=226]="ForInStatement",e[e.ForOfStatement=227]="ForOfStatement",e[e.ContinueStatement=228]="ContinueStatement",e[e.BreakStatement=229]="BreakStatement",e[e.ReturnStatement=230]="ReturnStatement",e[e.WithStatement=231]="WithStatement",e[e.SwitchStatement=232]="SwitchStatement",e[e.LabeledStatement=233]="LabeledStatement",e[e.ThrowStatement=234]="ThrowStatement",e[e.TryStatement=235]="TryStatement",e[e.DebuggerStatement=236]="DebuggerStatement",e[e.VariableDeclaration=237]="VariableDeclaration",e[e.VariableDeclarationList=238]="VariableDeclarationList",e[e.FunctionDeclaration=239]="FunctionDeclaration",e[e.ClassDeclaration=240]="ClassDeclaration",e[e.InterfaceDeclaration=241]="InterfaceDeclaration",e[e.TypeAliasDeclaration=242]="TypeAliasDeclaration",e[e.EnumDeclaration=243]="EnumDeclaration",e[e.ModuleDeclaration=244]="ModuleDeclaration",e[e.ModuleBlock=245]="ModuleBlock",e[e.CaseBlock=246]="CaseBlock",e[e.NamespaceExportDeclaration=247]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=248]="ImportEqualsDeclaration",e[e.ImportDeclaration=249]="ImportDeclaration",e[e.ImportClause=250]="ImportClause",e[e.NamespaceImport=251]="NamespaceImport",e[e.NamedImports=252]="NamedImports",e[e.ImportSpecifier=253]="ImportSpecifier",e[e.ExportAssignment=254]="ExportAssignment",e[e.ExportDeclaration=255]="ExportDeclaration",e[e.NamedExports=256]="NamedExports",e[e.ExportSpecifier=257]="ExportSpecifier",e[e.MissingDeclaration=258]="MissingDeclaration",e[e.ExternalModuleReference=259]="ExternalModuleReference",e[e.JsxElement=260]="JsxElement",e[e.JsxSelfClosingElement=261]="JsxSelfClosingElement",e[e.JsxOpeningElement=262]="JsxOpeningElement",e[e.JsxClosingElement=263]="JsxClosingElement",e[e.JsxFragment=264]="JsxFragment",e[e.JsxOpeningFragment=265]="JsxOpeningFragment",e[e.JsxClosingFragment=266]="JsxClosingFragment",e[e.JsxAttribute=267]="JsxAttribute",e[e.JsxAttributes=268]="JsxAttributes",e[e.JsxSpreadAttribute=269]="JsxSpreadAttribute",e[e.JsxExpression=270]="JsxExpression",e[e.CaseClause=271]="CaseClause",e[e.DefaultClause=272]="DefaultClause",e[e.HeritageClause=273]="HeritageClause",e[e.CatchClause=274]="CatchClause",e[e.PropertyAssignment=275]="PropertyAssignment",e[e.ShorthandPropertyAssignment=276]="ShorthandPropertyAssignment",e[e.SpreadAssignment=277]="SpreadAssignment",e[e.EnumMember=278]="EnumMember",e[e.SourceFile=279]="SourceFile",e[e.Bundle=280]="Bundle",e[e.UnparsedSource=281]="UnparsedSource",e[e.InputFiles=282]="InputFiles",e[e.JSDocTypeExpression=283]="JSDocTypeExpression",e[e.JSDocAllType=284]="JSDocAllType",e[e.JSDocUnknownType=285]="JSDocUnknownType",e[e.JSDocNullableType=286]="JSDocNullableType",e[e.JSDocNonNullableType=287]="JSDocNonNullableType",e[e.JSDocOptionalType=288]="JSDocOptionalType",e[e.JSDocFunctionType=289]="JSDocFunctionType",e[e.JSDocVariadicType=290]="JSDocVariadicType",e[e.JSDocComment=291]="JSDocComment",e[e.JSDocTypeLiteral=292]="JSDocTypeLiteral",e[e.JSDocSignature=293]="JSDocSignature",e[e.JSDocTag=294]="JSDocTag",e[e.JSDocAugmentsTag=295]="JSDocAugmentsTag",e[e.JSDocClassTag=296]="JSDocClassTag",e[e.JSDocCallbackTag=297]="JSDocCallbackTag",e[e.JSDocEnumTag=298]="JSDocEnumTag",e[e.JSDocParameterTag=299]="JSDocParameterTag",e[e.JSDocReturnTag=300]="JSDocReturnTag",e[e.JSDocThisTag=301]="JSDocThisTag",e[e.JSDocTypeTag=302]="JSDocTypeTag",e[e.JSDocTemplateTag=303]="JSDocTemplateTag",e[e.JSDocTypedefTag=304]="JSDocTypedefTag",e[e.JSDocPropertyTag=305]="JSDocPropertyTag",e[e.SyntaxList=306]="SyntaxList",e[e.NotEmittedStatement=307]="NotEmittedStatement",e[e.PartiallyEmittedExpression=308]="PartiallyEmittedExpression",e[e.CommaListExpression=309]="CommaListExpression",e[e.MergeDeclarationMarker=310]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=311]="EndOfDeclarationMarker",e[e.Count=312]="Count",e[e.FirstAssignment=59]="FirstAssignment",e[e.LastAssignment=71]="LastAssignment",e[e.FirstCompoundAssignment=60]="FirstCompoundAssignment",e[e.LastCompoundAssignment=71]="LastCompoundAssignment",e[e.FirstReservedWord=73]="FirstReservedWord",e[e.LastReservedWord=108]="LastReservedWord",e[e.FirstKeyword=73]="FirstKeyword",e[e.LastKeyword=147]="LastKeyword",e[e.FirstFutureReservedWord=109]="FirstFutureReservedWord",e[e.LastFutureReservedWord=117]="LastFutureReservedWord",e[e.FirstTypeNode=163]="FirstTypeNode",e[e.LastTypeNode=183]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=71]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=147]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=28]="FirstBinaryOperator",e[e.LastBinaryOperator=71]="LastBinaryOperator",e[e.FirstNode=148]="FirstNode",e[e.FirstJSDocNode=283]="FirstJSDocNode",e[e.LastJSDocNode=305]="LastJSDocNode",e[e.FirstJSDocTagNode=294]="FirstJSDocTagNode",e[e.LastJSDocTagNode=305]="LastJSDocTagNode",e[e.FirstContextualKeyword=118]="FirstContextualKeyword",e[e.LastContextualKeyword=147]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.ExportContext=32]="ExportContext",e[e.ContainsThis=64]="ContainsThis",e[e.HasImplicitReturn=128]="HasImplicitReturn",e[e.HasExplicitReturn=256]="HasExplicitReturn",e[e.GlobalAugmentation=512]="GlobalAugmentation",e[e.HasAsyncFunctions=1024]="HasAsyncFunctions",e[e.DisallowInContext=2048]="DisallowInContext",e[e.YieldContext=4096]="YieldContext",e[e.DecoratorContext=8192]="DecoratorContext",e[e.AwaitContext=16384]="AwaitContext",e[e.ThisNodeHasError=32768]="ThisNodeHasError",e[e.JavaScriptFile=65536]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=262144]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=1048576]="PossiblyContainsImportMeta",e[e.JSDoc=2097152]="JSDoc",e[e.Ambient=4194304]="Ambient",e[e.InWithStatement=8388608]="InWithStatement",e[e.JsonFile=16777216]="JsonFile",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=384]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=1408]="ReachabilityAndEmitFlags",e[e.ContextFlags=12679168]="ContextFlags",e[e.TypeExcludesFlags=20480]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=1572864]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Abstract=128]="Abstract",e[e.Async=256]="Async",e[e.Default=512]="Default",e[e.Const=2048]="Const",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=92]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=2270]="TypeScriptModifier",e[e.ExportDefault=513]="ExportDefault",e[e.All=3071]="All"}(e.ModifierFlags||(e.ModifierFlags={})),function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.FailedAndReported=3]="FailedAndReported"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags"}(e.TokenFlags||(e.TokenFlags={})),function(e){e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Referenced=512]="Referenced",e[e.Shared=1024]="Shared",e[e.PreFinally=2048]="PreFinally",e[e.AfterFinally=4096]="AfterFinally",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={}));var t,r=function(){return function(){}}();e.OperationCanceledException=r,function(e){e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated"}(e.ExitStatus||(e.ExitStatus={})),function(e){e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e[e.InReverseMappedType=33554432]="InReverseMappedType"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",e[e.NodeBuilderFlagsMask=9469291]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=67220415]="Value",e[e.Type=67897832]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=67220414]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=67220415]="BlockScopedVariableExcludes",e[e.ParameterExcludes=67220415]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=68008959]="EnumMemberExcludes",e[e.FunctionExcludes=67219887]="FunctionExcludes",e[e.ClassExcludes=68008383]="ClassExcludes",e[e.InterfaceExcludes=67897736]="InterfaceExcludes",e[e.RegularEnumExcludes=68008191]="RegularEnumExcludes",e[e.ConstEnumExcludes=68008831]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=67212223]="MethodExcludes",e[e.GetAccessorExcludes=67154879]="GetAccessorExcludes",e[e.SetAccessorExcludes=67187647]="SetAccessorExcludes",e[e.TypeParameterExcludes=67635688]="TypeParameterExcludes",e[e.TypeAliasExcludes=67897832]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6240]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(e){e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.Partial=16]="Partial",e[e.HasNonUniformType=32]="HasNonUniformType",e[e.ContainsPublic=64]="ContainsPublic",e[e.ContainsProtected=128]="ContainsProtected",e[e.ContainsPrivate=256]="ContainsPrivate",e[e.ContainsStatic=512]="ContainsStatic",e[e.Late=1024]="Late",e[e.ReverseMapped=2048]="ReverseMapped",e[e.OptionalParameter=4096]="OptionalParameter",e[e.RestParameter=8192]="RestParameter",e[e.Synthetic=6]="Synthetic"}(e.CheckFlags||(e.CheckFlags={})),function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=256]="SuperInstance",e[e.SuperStatic=512]="SuperStatic",e[e.ContextChecked=1024]="ContextChecked",e[e.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",e[e.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",e[e.CaptureArguments=8192]="CaptureArguments",e[e.EnumValuesComputed=16384]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",e[e.AssignmentsMarked=8388608]="AssignmentsMarked",e[e.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(e){e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.ContainsWideningType=134217728]="ContainsWideningType",e[e.ContainsObjectLiteral=268435456]="ContainsObjectLiteral",e[e.ContainsAnyFunctionType=536870912]="ContainsAnyFunctionType",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109440]="Unit",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=131068]="Primitive",e[e.StringLike=132]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DisjointDomains=67238908]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=4194304]="InstantiablePrimitive",e[e.Instantiable=63176704]="Instantiable",e[e.StructuredOrInstantiable=66846720]="StructuredOrInstantiable",e[e.Narrowable=133970943]="Narrowable",e[e.NotUnionOrUnit=67637251]="NotUnionOrUnit",e[e.NotPrimitiveUnion=66994211]="NotPrimitiveUnion",e[e.RequiresWidening=402653184]="RequiresWidening",e[e.PropagatingFlags=939524096]="PropagatingFlags",e[e.NonWideningType=134217728]="NonWideningType",e[e.Wildcard=268435456]="Wildcard",e[e.EmptyObject=536870912]="EmptyObject",e[e.ConstructionFlags=939524096]="ConstructionFlags",e[e.GenericMappedType=134217728]="GenericMappedType"}(e.TypeFlags||(e.TypeFlags={})),function(e){e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ContainsSpread=1024]="ContainsSpread",e[e.ReverseMapped=2048]="ReverseMapped",e[e.JsxAttributes=4096]="JsxAttributes",e[e.MarkerType=8192]="MarkerType",e[e.JSLiteral=16384]="JSLiteral",e[e.FreshLiteral=32768]="FreshLiteral",e[e.ClassOrInterface=3]="ClassOrInterface"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent"}(e.Variance||(e.Variance={})),function(e){e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.HomomorphicMappedType=2]="HomomorphicMappedType",e[e.MappedTypeConstraint=4]="MappedTypeConstraint",e[e.ReturnType=8]="ReturnType",e[e.LiteralKeyof=16]="LiteralKeyof",e[e.NoConstraints=32]="NoConstraints",e[e.AlwaysStrict=64]="AlwaysStrict",e[e.PriorityImpliesCombination=28]="PriorityImpliesCombination"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(e){e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(t=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,r){void 0===r&&(r=!0);var n=t[e.category];return r?n.toLowerCase():n},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=6]="ESNext"}(e.ModuleKind||(e.ModuleKind={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative"}(e.JsxEmit||(e.JsxEmit={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred"}(e.ScriptKind||(e.ScriptKind={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ESNext=6]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=6]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(e){e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json"}(e.Extension||(e.Extension={})),function(e){e[e.None=0]="None",e[e.TypeScript=1]="TypeScript",e[e.ContainsTypeScript=2]="ContainsTypeScript",e[e.ContainsJsx=4]="ContainsJsx",e[e.ContainsESNext=8]="ContainsESNext",e[e.ContainsES2017=16]="ContainsES2017",e[e.ContainsES2016=32]="ContainsES2016",e[e.ES2015=64]="ES2015",e[e.ContainsES2015=128]="ContainsES2015",e[e.Generator=256]="Generator",e[e.ContainsGenerator=512]="ContainsGenerator",e[e.DestructuringAssignment=1024]="DestructuringAssignment",e[e.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=8192]="ContainsLexicalThis",e[e.ContainsCapturedLexicalThis=16384]="ContainsCapturedLexicalThis",e[e.ContainsLexicalThisInComputedPropertyName=32768]="ContainsLexicalThisInComputedPropertyName",e[e.ContainsDefaultValueAssignments=65536]="ContainsDefaultValueAssignments",e[e.ContainsRestOrSpread=131072]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=262144]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=524288]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=1048576]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=2097152]="ContainsBindingPattern",e[e.ContainsYield=4194304]="ContainsYield",e[e.ContainsHoistedDeclarationOrCompletion=8388608]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=16777216]="ContainsDynamicImport",e[e.Super=33554432]="Super",e[e.ContainsSuper=67108864]="ContainsSuper",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AssertTypeScript=3]="AssertTypeScript",e[e.AssertJsx=4]="AssertJsx",e[e.AssertESNext=8]="AssertESNext",e[e.AssertES2017=16]="AssertES2017",e[e.AssertES2016=32]="AssertES2016",e[e.AssertES2015=192]="AssertES2015",e[e.AssertGenerator=768]="AssertGenerator",e[e.AssertDestructuringAssignment=3072]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=536872257]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=570426689]="PropertyAccessExcludes",e[e.NodeExcludes=637535553]="NodeExcludes",e[e.ArrowFunctionExcludes=653604161]="ArrowFunctionExcludes",e[e.FunctionExcludes=653620545]="FunctionExcludes",e[e.ConstructorExcludes=653616449]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=653616449]="MethodOrAccessorExcludes",e[e.ClassExcludes=638121281]="ClassExcludes",e[e.ModuleExcludes=647001409]="ModuleExcludes",e[e.TypeExcludes=-3]="TypeExcludes",e[e.ObjectLiteralExcludes=638358849]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=637666625]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=639894849]="VariableDeclarationListExcludes",e[e.ParameterExcludes=637535553]="ParameterExcludes",e[e.CatchClauseExcludes=637797697]="CatchClauseExcludes",e[e.BindingPatternExcludes=637666625]="BindingPatternExcludes",e[e.ES2015FunctionSyntaxMask=81920]="ES2015FunctionSyntaxMask"}(e.TransformFlags||(e.TransformFlags={})),function(e){e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.AdviseOnEmitNode=2]="AdviseOnEmitNode",e[e.NoSubstitution=4]="NoSubstitution",e[e.CapturesThis=8]="CapturesThis",e[e.NoLeadingSourceMap=16]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=32]="NoTrailingSourceMap",e[e.NoSourceMap=48]="NoSourceMap",e[e.NoNestedSourceMaps=64]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=384]="NoTokenSourceMaps",e[e.NoLeadingComments=512]="NoLeadingComments",e[e.NoTrailingComments=1024]="NoTrailingComments",e[e.NoComments=1536]="NoComments",e[e.NoNestedComments=2048]="NoNestedComments",e[e.HelperName=4096]="HelperName",e[e.ExportName=8192]="ExportName",e[e.LocalName=16384]="LocalName",e[e.InternalName=32768]="InternalName",e[e.Indented=65536]="Indented",e[e.NoIndentation=131072]="NoIndentation",e[e.AsyncFunctionBody=262144]="AsyncFunctionBody",e[e.ReuseTempVariableScope=524288]="ReuseTempVariableScope",e[e.CustomPrologue=1048576]="CustomPrologue",e[e.NoHoisting=2097152]="NoHoisting",e[e.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e[e.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=67108864]="NeverApplyImportHelper"}(e.EmitFlags||(e.EmitFlags={})),function(e){e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.Spread=1024]="Spread",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.MakeTemplateObject=65536]="MakeTemplateObject",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=65536]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement"}(e.EmitHint||(e.EmitHint={})),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.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.Modifiers=262656]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=528]="TupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=49153]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(e){e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4}}}(d||(d={})),function(e){var a,o;function c(e){var t;return(t={})[o.Low]=e.Low,t[o.Medium]=e.Medium,t[o.High]=e.High,t}e.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(a=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),function(e){e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"}(o=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);var u={Low:32,Medium:64,High:256},l=c(u);function d(t){if(t.getEnvironmentVariable){var r=function(e,t){var r=n(e);if(r)return i("Low"),i("Medium"),i("High"),!0;return!1;function i(e){t[e]=r[e]||t[e]}}("TSC_WATCH_POLLINGINTERVAL",o);l=i("TSC_WATCH_POLLINGCHUNKSIZE",u)||l,e.unchangedPollThresholds=i("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",u)||e.unchangedPollThresholds}function n(e){var r;return n("Low"),n("Medium"),n("High"),r;function n(n){var i=function(e,r){return t.getEnvironmentVariable(e+"_"+r.toUpperCase())}(e,n);i&&((r||(r={}))[n]=Number(i))}}function i(e,t){var i=n(e);return(r||i)&&c(i?s({},t,i):t)}}function _(t){var r=[],n=[],i=c(o.Low),a=c(o.Medium),s=c(o.High);return function(t,n,i){var a={fileName:t,callback:n,unchangedPolls:0,mtime:v(t)};return r.push(a),m(a,i),{close:function(){a.isClosed=!0,e.unorderedRemoveItem(r,a)}}};function c(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function u(t){t.pollIndex=_(t,t.pollingInterval,t.pollIndex,l[t.pollingInterval]),t.length?y(t.pollingInterval):(e.Debug.assert(0===t.pollIndex),t.pollScheduled=!1)}function d(e){_(n,o.Low,0,n.length),u(e),!e.pollScheduled&&n.length&&y(o.Low)}function _(t,r,i,a){for(var s=t.length,c=i,u=0;u<a&&s>0;_(),s--){var l=t[i];if(l)if(l.isClosed)t[i]=void 0;else{u++;var d=f(l,v(l.fileName));l.isClosed?t[i]=void 0:d?(l.unchangedPolls=0,t!==n&&(t[i]=void 0,g(l))):l.unchangedPolls!==e.unchangedPollThresholds[r]?l.unchangedPolls++:t===n?(l.unchangedPolls=1,t[i]=void 0,m(l,o.Low)):r!==o.High&&(l.unchangedPolls++,t[i]=void 0,m(l,r===o.Low?o.Medium:o.High)),t[i]&&(c<i&&(t[c]=l,t[i]=void 0),c++)}}return i;function _(){++i===t.length&&(c<i&&(t.length=c),i=0,c=0)}}function p(e){switch(e){case o.Low:return i;case o.Medium:return a;case o.High:return s}}function m(e,t){p(t).push(e),h(t)}function g(e){n.push(e),h(o.Low)}function h(e){p(e).pollScheduled||y(e)}function y(e){p(e).pollScheduled=t.setTimeout(e===o.Low?d:u,e,p(e))}function v(r){return t.getModifiedTime(r)||e.missingFileModifiedTime}}function f(e,t){var r=e.mtime.getTime(),n=t.getTime();return r!==n&&(e.mtime=t,e.callback(e.fileName,p(r,n)),!0)}function p(e,t){return 0===e?a.Created:0===t?a.Deleted:a.Changed}function m(t){var r=e.createMap(),n=e.createMultiMap(),i=e.getStringComparer(!t.useCaseSensitiveFileNames),a=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames);return o;function o(i,o){var c=a(i),u=r.get(c);return u?u.refCount++:(u={watcher:t.watchDirectory(i,function(t){n.forEach(function(r,n){(n===c||e.startsWith(c,n)&&c[n.length]===e.directorySeparator)&&r.forEach(function(e){return e(t)})}),s(i,c)}),refCount:1,childWatches:e.emptyArray},r.set(c,u),s(i,c)),o&&n.add(c,o),{dirName:i,close:function(){var t=e.Debug.assertDefined(r.get(c));o&&n.remove(c,o),t.refCount--,t.refCount||(r.delete(c),e.closeFileWatcherOf(t),t.childWatches.forEach(e.closeFileWatcher))}}}function s(n,a){var s=r.get(a);s&&(s.childWatches=function(r,n){var a;return e.enumerateInsertsAndDeletes(t.directoryExists(r)?e.mapDefined(t.getAccessibleSortedChildDirectories(r),function(n){var a=e.getNormalizedAbsolutePath(n,r);return 0===i(a,e.normalizePath(t.realpath(a)))?a:void 0}):e.emptyArray,n,function(e,t){return i(e,t.dirName)},function(e){s(o(e))},e.closeFileWatcher,s),a||e.emptyArray;function s(e){(a||(a=[])).push(e)}}(n,s.childWatches))}}function g(){if(void 0!==t){var e=t.version;if(e){var r=e.indexOf(".");if(-1!==r)return parseInt(e.substring(1,r))}}}e.unchangedPollThresholds=c(u),e.setCustomPollingValues=d,e.createDynamicPriorityPollingWatchFile=_,e.onWatchedFileStat=f,e.getFileWatcherEventKind=p,e.createRecursiveDirectoryWatcher=m,e.getNodeMajorVersion=g,e.sys=function(){var s,c,u="\ufeff";if("undefined"!=typeof ChakraHost?(c=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)},s={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,r){r&&(t=u+t),ChakraHost.writeFile(e,t)},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,deleteFile:ChakraHost.deleteFile,getModifiedTime:ChakraHost.getModifiedTime,setModifiedTime:ChakraHost.setModifiedTime,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,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,r,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:c}):void 0!==t&&t.nextTick&&!t.browser&&(s=function(){var s,c=r(78),l=r(79),d=r(80);try{s=r(81)}catch(e){s=void 0}var f,p=r(2).Buffer,h=g()>=4,y=d.platform(),v="win32"!==y&&"win64"!==y&&!R((b=n,b.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})));var b;!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(f||(f={}));var x,S=t.env.TSC_NONPOLLING_WATCHER,D=t.env.TSC_WATCHFILE,k=t.env.TSC_WATCHDIRECTORY,C={args:t.argv.slice(2),newLine:d.EOL,useCaseSensitiveFileNames:v,write:function(e){t.stdout.write(e)},writeOutputIsTTY:function(){return t.stdout.isTTY},readFile:function(e,t){if(R(e)){var r=c.readFileSync(e),n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i<n;i+=2){var a=r[i];r[i]=r[i+1],r[i+1]=a}return r.toString("utf16le",2)}return n>=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}},writeFile:function(e,t,r){var n;r&&(t=u+t);try{n=c.openSync(e,"w"),c.writeSync(n,t,void 0,"utf8")}finally{void 0!==n&&c.closeSync(n)}},watchFile:function(){switch(D){case"PriorityPollingInterval":return N;case"DynamicPriorityPolling":return _({getModifiedTime:z,setTimeout:setTimeout});case"UseFsEvents":return P;case"UseFsEventsWithFallbackDynamicPolling":return x=_({getModifiedTime:z,setTimeout:setTimeout}),e=x,function(t,r,n){return w(t,0,A(t,r),!1,e,n)};case"UseFsEventsOnParentDirectory":return E()}var e;return S?E():function(e,t){return N(e,t)}}(),watchDirectory:function(){if(h&&("win32"===t.platform||"darwin"===t.platform))return I;var e="RecursiveDirectoryUsingFsWatchFile"===k?M(N):"RecursiveDirectoryUsingDynamicPriorityPolling"===k?M(x||_({getModifiedTime:z,setTimeout:setTimeout})):I,r=m({useCaseSensitiveFileNames:v,directoryExists:B,getAccessibleSortedChildDirectories:function(e){return O(e).directories},watchDirectory:e,realpath:j});return function(t,n,i){return i?r(t,n):e(t,n)}}(),resolvePath:function(e){return l.resolve(e)},fileExists:R,directoryExists:B,createDirectory:function(e){C.directoryExists(e)||c.mkdirSync(e)},getExecutingFilePath:function(){return n},getCurrentDirectory:function(){return t.cwd()},getDirectories:function(t){return e.filter(c.readdirSync(t),function(r){return L(e.combinePaths(t,r),1)})},getEnvironmentVariable:function(e){return t.env[e]||""},readDirectory:function(r,n,i,a,o){return e.matchFiles(r,n,i,a,v,t.cwd(),o,O)},getModifiedTime:z,setModifiedTime:function(e,t){try{c.utimesSync(e,t,t)}catch(e){return}},deleteFile:function(e){try{return c.unlinkSync(e)}catch(e){return}},createHash:s?function(e){var t=s.createHash("md5");return t.update(e),t.digest("hex")}:function(e){return""+e.split("").map(function(e){return e.charCodeAt(0)}).reduce(function(e,t){return(e<<5)+e+t},5381)},createSHA256Hash:s?function(e){var t=s.createHash("sha256");return t.update(e),t.digest("hex")}:void 0,getMemoryUsage:function(){return i.gc&&i.gc(),t.memoryUsage().heapUsed},getFileSize:function(e){try{var t=c.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){t.exit(e)},realpath:j,debugMode:e.some(t.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{r(168).install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){t.stdout.write("c")},setBlocking:function(){t.stdout&&t.stdout._handle&&t.stdout._handle.setBlocking&&t.stdout._handle.setBlocking(!0)},bufferFrom:T,base64decode:function(e){return T(e,"base64").toString("utf8")},base64encode:function(e){return T(e).toString("base64")}};return C;function T(e,t){return p.from&&p.from!==Int8Array.from?p.from(e,t):new p(e,t)}function E(){var t=e.createMultiMap(),r=e.createMap(),n=e.createGetCanonicalFileName(v);return function(i,o){var s=n(i);t.add(s,o);var c=e.getDirectoryPath(s)||".",u=r.get(c)||function(i,o){var s=F(i,function(r,o){if(e.isString(o)){var s=e.getNormalizedAbsolutePath(o,i),c=s&&t.get(n(s));if(c)for(var u=0,l=c;u<l.length;u++){var d=l[u];d(s,a.Changed)}}});return s.referenceCount=0,r.set(o,s),s}(e.getDirectoryPath(i)||".",c);return u.referenceCount++,{close:function(){1===u.referenceCount?(u.close(),r.delete(c)):u.referenceCount--,t.remove(s,o)}}}}function N(e,t,r){var n;return c.watchFile(e,{persistent:!0,interval:r||250},i),{close:function(){return c.unwatchFile(e,i)}};function i(r,i){var o=0==+i.mtime||n===a.Deleted;if(0==+r.mtime){if(o)return;n=a.Deleted}else if(o)n=a.Created;else{if(+r.mtime==+i.mtime)return;n=a.Changed}t(e,n)}}function A(e,t){return function(r){t(e,"rename"===r?R(e)?a.Created:a.Deleted:a.Changed)}}function w(e,r,n,i,o,s){var u,l=L(e,r)?_():f();return{close:function(){l.close(),l=void 0}};function d(e){n("rename",""),l&&(l.close(),l=e())}function _(){void 0===u&&(u=!h||"win32"!==t.platform&&"darwin"!==t.platform?{persistent:!0}:{persistent:!0,recursive:!!i});try{var r=c.watch(e,u,n);return r.on("error",function(){return d(f)}),r}catch(t){return o(e,function(e){return function(t,r){return e(r===a.Changed?"change":"rename","")}}(n),s)}}function f(){return o(e,function(t,n){n===a.Created&&L(e,r)&&d(_)},s)}}function P(e,t,r){return w(e,0,A(e,t),!1,N,r)}function F(e,t,r){return w(e,1,t,!!r,N)}function I(t,r,n){return F(t,function(t,r){return function(n,i){"rename"===n&&r(i?e.normalizePath(e.combinePaths(t,i)):t)}}(t,r),n)}function M(e){return function(t,r){return e(t,function(){return r(t)},o.Medium)}}function O(t){try{for(var r=c.readdirSync(t||".").sort(),n=[],i=[],a=0,o=r;a<o.length;a++){var s=o[a];if("."!==s&&".."!==s){var u=e.combinePaths(t,s),l=void 0;try{l=c.statSync(u)}catch(e){continue}l.isFile()?n.push(s):l.isDirectory()&&i.push(s)}}return{files:n,directories:i}}catch(t){return e.emptyFileSystemEntries}}function L(e,t){try{var r=c.statSync(e);switch(t){case 0:return r.isFile();case 1:return r.isDirectory();default:return!1}}catch(e){return!1}}function R(e){return L(e,0)}function B(e){return L(e,1)}function j(e){try{return c.realpathSync(e)}catch(t){return e}}function z(e){try{return c.statSync(e).mtime}catch(e){return}}}()),s){var l=s.writeFile;s.writeFile=function(t,r,n){var i=e.getDirectoryPath(e.normalizeSlashes(t));i&&!s.directoryExists(i)&&function t(r,n){var i=e.getDirectoryPath(r),a=""!==i&&r!==i&&!n.directoryExists(i);a&&t(i,n),!a&&n.directoryExists(r)||n.createDirectory(r)}(i,s),l.call(s,t,r,n)}}return s}(),e.sys&&e.sys.getEnvironmentVariable&&(d(e.sys),e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(d||(d={})),function(e){function t(e,t,r,n,i){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i}}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."),An_element_access_expression_should_take_an_argument:t(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:t(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),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<T> 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."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),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."),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<T>()' 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_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),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_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_rest_element_must_be_last_in_a_tuple_type:t(1256,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_tuple_type_1256","A rest element must be last in a tuple type."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),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_is_only_supported_when_module_flag_is_commonjs_or_esNext:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext_1323","Dynamic import is only supported when '--module' flag is 'commonjs' or 'esNext'."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_options:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_option_1343","The 'import.meta' meta-property is only allowed using 'ESNext' for the 'target' and 'module' compiler options."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness"),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),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_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_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."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_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_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_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_but_here_has_type_0:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_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}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_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_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_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_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),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."),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_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2568,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators_2568","Type '{0}' is not an array type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:t(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await:t(2570,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await_2570","Property '{0}' does not exist on type '{1}'. Did you forget to use 'await'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:t(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:t(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_is_a_static_member_of_type_1:t(2576,e.DiagnosticCategory.Error,"Property_0_is_a_static_member_of_type_1_2576","Property '{0}' is a static member of type '{1}'"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_th_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node` and then add `node` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_an_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery` and then add `jquery` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashje_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`  and then add `jest` or `mocha` to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the `lib` compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later."),Enum_type_0_circularly_references_itself:t(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:t(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),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.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a delete operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a delete operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type.  Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_declaration_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_declaration_0_2718","Duplicate declaration '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension"),It_is_highly_likely_that_you_are_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"It_is_highly_likely_that_you_are_missing_a_semicolon_2734","It is highly likely that you are missing a semicolon."),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ESNext:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ESNext_2737","BigInt literals are not available when targeting lower than ESNext."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),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_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),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."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(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."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' 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."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. 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:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_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_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(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."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Found_package_json_at_0_Package_ID_is_1:t(6190,e.DiagnosticCategory.Message,"Found_package_json_at_0_Package_ID_is_1_6190","Found 'package.json' at '{0}'. Package ID is '{1}'."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused"),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Projects_to_reference:t(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern_6307","File '{0}' is not in project file list. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:t(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:t(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_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.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}`"),The_containing_arrow_function_captures_the_global_value_of_this_which_implicitly_has_type_any:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_which_implicitly_has_type_any_7041","The containing arrow function captures the global value of 'this' which implicitly has type 'any'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),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."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),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."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:t(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:t(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),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}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_destructuring:t(90009,e.DiagnosticCategory.Message,"Remove_destructuring_90009","Remove destructuring"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:t(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:t(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),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_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Generate_types_for_0:t(95067,e.DiagnosticCategory.Message,"Generate_types_for_0_95067","Generate types for '{0}'"),Generate_types_for_all_packages_without_types:t(95068,e.DiagnosticCategory.Message,"Generate_types_for_all_packages_without_types_95068","Generate types for all packages without types"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names")}}(d||(d={})),function(e){var t;function r(e){return e>=72}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 30===e||r(e)};var n=((t={abstract:118,any:120,as:119,bigint:146,boolean:123,break:73,case:74,catch:75,class:76,continue:78,const:77}).constructor=124,t.debugger=79,t.declare=125,t.default=80,t.delete=81,t.do=82,t.else=83,t.enum=84,t.export=85,t.extends=86,t.false=87,t.finally=88,t.for=89,t.from=144,t.function=90,t.get=126,t.if=91,t.implements=109,t.import=92,t.in=93,t.infer=127,t.instanceof=94,t.interface=110,t.is=128,t.keyof=129,t.let=111,t.module=130,t.namespace=131,t.never=132,t.new=95,t.null=96,t.number=135,t.object=136,t.package=112,t.private=113,t.protected=114,t.public=115,t.readonly=133,t.require=134,t.global=145,t.return=97,t.set=137,t.static=116,t.string=138,t.super=98,t.switch=99,t.symbol=139,t.this=100,t.throw=101,t.true=102,t.try=103,t.type=140,t.typeof=104,t.undefined=141,t.unique=142,t.unknown=143,t.var=105,t.void=106,t.while=107,t.with=108,t.yield=117,t.async=121,t.await=122,t.of=147,t),i=e.createMapFromTemplate(n),a=e.createMapFromTemplate(s({},n,{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":28,">":30,"<=":31,">=":32,"==":33,"!=":34,"===":35,"!==":36,"=>":37,"+":38,"-":39,"**":41,"*":40,"/":42,"%":43,"++":44,"--":45,"<<":46,"</":29,">>":47,">>>":48,"&":49,"|":50,"^":51,"!":52,"~":53,"&&":54,"||":55,"?":56,":":57,"=":59,"+=":60,"-=":61,"*=":62,"**=":63,"/=":64,"%=":65,"<<=":66,">>=":67,">>>=":68,"&=":69,"|=":70,"^=":71,"@":58})),o=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],c=[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],u=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],l=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];function d(e,t){if(e<t[0])return!1;for(var r,n=0,i=t.length;n+1<i;){if(r=n+(i-n)/2,t[r-=r%2]<=e&&e<=t[r+1])return!0;e<t[r]?i=r:n=r+2}return!1}function _(e,t){return d(e,t>=1?u:o)}e.isUnicodeIdentifierStart=_;var f,p=(f=[],a.forEach(function(e,t){f[e]=t}),f);function m(e){for(var t=new Array,r=0,n=0;r<e.length;){var i=e.charCodeAt(r);switch(r++,i){case 13:10===e.charCodeAt(r)&&r++;case 10:t.push(n),n=r;break;default:i>127&&x(i)&&(t.push(n),n=r)}}return t.push(n),t}function g(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: "+r+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,m(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r<t.length-1?e.Debug.assert(o<t[r+1]):void 0!==i&&e.Debug.assert(o<=i.length),o)}function h(e){return e.lineMap||(e.lineMap=m(e.text))}function y(t,r){var n=e.binarySearch(t,r,e.identity,e.compareValues);return n<0&&(n=~n-1,e.Debug.assert(-1!==n,"position cannot precede the beginning of the file")),{line:n,character:r-t[n]}}function v(e){return b(e)||x(e)}function b(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function x(e){return 10===e||13===e||8232===e||8233===e}function S(e){return e>=48&&e<=57}function D(e){return e>=48&&e<=55}e.tokenToString=function(e){return p[e]},e.stringToToken=function(e){return a.get(e)},e.computeLineStarts=m,e.getPositionOfLineAndCharacter=function(e,t,r){return g(h(e),t,r,e.text)},e.getPositionOfLineAndCharacterWithEdits=function(e,t,r){return g(h(e),t,r,e.text,!0)},e.computePositionOfLineAndCharacter=g,e.getLineStarts=h,e.computeLineAndCharacterOfPosition=y,e.getLineAndCharacterOfPosition=function(e,t){return y(h(e),t)},e.isWhiteSpaceLike=v,e.isWhiteSpaceSingleLine=b,e.isLineBreak=x,e.isOctalDigit=D,e.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return r>127}},e.skipTrivia=function(t,r,n,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(r))return r;for(;;){var a=t.charCodeAt(r);switch(a){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r<t.length&&!x(t.charCodeAt(r));)r++;continue}if(42===t.charCodeAt(r+1)){for(r+=2;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}continue}break;case 60:case 124:case 61:case 62:if(C(t,r)){r=T(t,r);continue}break;case 35:if(0===r&&N(t,r)){r=A(t,r);continue}break;default:if(a>127&&v(a)){r++;continue}}return r}};var k="<<<<<<<".length;function C(t,r){if(e.Debug.assert(r>=0),0===r||x(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+k<t.length){for(var i=0;i<k;i++)if(t.charCodeAt(r+i)!==n)return!1;return 61===n||32===t.charCodeAt(r+k)}}return!1}function T(t,r,n){n&&n(e.Diagnostics.Merge_conflict_marker_encountered,r,k);var i=t.charCodeAt(r),a=t.length;if(60===i||62===i)for(;r<a&&!x(t.charCodeAt(r));)r++;else for(e.Debug.assert(124===i||61===i);r<a;){var o=t.charCodeAt(r);if((61===o||62===o)&&o!==i&&C(t,r))break;r++}return r}var E=/^#!.*/;function N(t,r){return e.Debug.assert(0===r),E.test(t)}function A(e,t){return t+=E.exec(e)[0].length}function w(e,t,r,n,i,a,o){var s,c,u,l,d=!1,_=n||0===r,f=o;e:for(;r>=0&&r<t.length;){var p=t.charCodeAt(r);switch(p){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;_=!0,d&&(l=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var m=t.charCodeAt(r+1),g=!1;if(47===m||42===m){var h=47===m?2:3,y=r;if(r+=2,47===m)for(;r<t.length;){if(x(t.charCodeAt(r))){g=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(_){if(d&&(f=i(s,c,u,l,a,f),!e&&f))return f;s=y,c=r,u=h,l=g,d=!0}continue}break e;default:if(p>127&&v(p)){d&&x(p)&&(l=!0),r++;continue}break e}}return d&&(f=i(s,c,u,l,a,f)),f}function P(e,t,r,n,i){return w(!0,e,t,!1,r,n,i)}function F(e,t,r,n,i){return w(!0,e,t,!0,r,n,i)}function I(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function M(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&_(e,t)}function O(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&function(e,t){return d(e,t>=1?l:c)}(e,t)}e.forEachLeadingCommentRange=function(e,t,r,n){return w(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return w(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=P,e.reduceEachTrailingCommentRange=F,e.getLeadingCommentRanges=function(e,t){return P(e,t,I,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return F(e,t,I,void 0,void 0)},e.getShebang=function(e){var t=E.exec(e);if(t)return t[0]},e.isIdentifierStart=M,e.isIdentifierPart=O,e.isIdentifierText=function(e,t){if(!M(e.charCodeAt(0),t))return!1;for(var r=1;r<e.length;r++)if(!O(e.charCodeAt(r),t))return!1;return!0},e.createScanner=function(t,n,a,o,s,c,u){void 0===a&&(a=0);var l,d,_,f,p,m,g,h=o,y=0;return X(h,c,u),{getStartPos:function(){return _},getTextPos:function(){return l},getToken:function(){return p},getTokenPos:function(){return f},getTokenText:function(){return h.substring(f,l)},getTokenValue:function(){return m},hasExtendedUnicodeEscape:function(){return 0!=(8&g)},hasPrecedingLineBreak:function(){return 0!=(1&g)},isIdentifier:function(){return 72===p||p>108},isReservedWord:function(){return p>=73&&p<=108},isUnterminated:function(){return 0!=(4&g)},getTokenFlags:function(){return g},reScanGreaterToken:function(){if(30===p){if(62===h.charCodeAt(l))return 62===h.charCodeAt(l+1)?61===h.charCodeAt(l+2)?(l+=3,p=68):(l+=2,p=48):61===h.charCodeAt(l+1)?(l+=2,p=67):(l++,p=47);if(61===h.charCodeAt(l))return l++,p=32}return p},reScanSlashToken:function(){if(42===p||64===p){for(var r=f+1,n=!1,i=!1;;){if(r>=d){g|=4,k(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=h.charCodeAt(r);if(x(a)){g|=4,k(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r<d&&O(h.charCodeAt(r),t);)r++;l=r,m=h.substring(f,l),p=13}return p},reScanTemplateToken:function(){return e.Debug.assert(19===p,"'reScanTemplateToken' should only be called on a '}'"),l=f,p=B()},scanJsxIdentifier:function(){if(r(p)){for(var e=l;l<d;){var n=h.charCodeAt(l);if(45!==n&&(e===l?!M(n,t):!O(n,t)))break;l++}m+=h.substring(e,l)}return p},scanJsxAttributeValue:function(){switch(_=l,h.charCodeAt(l)){case 34:case 39:return m=R(!0),p=10;default:return W()}},reScanJsxToken:function(){return l=f=_,p=H()},scanJsxToken:H,scanJSDocToken:function(){if(_=f=l,g=0,l>=d)return p=1;var e=h.charCodeAt(l);switch(l++,e){case 9:case 11:case 12:case 32:for(;l<d&&b(h.charCodeAt(l));)l++;return p=5;case 64:return p=58;case 10:case 13:return g|=1,p=4;case 42:return p=40;case 123:return p=18;case 125:return p=19;case 91:return p=22;case 93:return p=23;case 60:return p=28;case 61:return p=59;case 44:return p=27;case 46:return p=24;case 96:for(;l<d&&96!==h.charCodeAt(l);)l++;return m=h.substring(f+1,l),l++,p=14}if(M(e,6)){for(;O(h.charCodeAt(l),6)&&l<d;)l++;return m=h.substring(f,l),p=q()}return p=0},scan:W,getText:function(){return h},setText:X,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:Q,setInJSDocType:function(e){y+=e?1:-1},tryScan:function(e){return G(e,!1)},lookAhead:function(e){return G(e,!0)},scanRange:function(e,t,r){var n=d,i=l,a=_,o=f,s=p,c=m,u=g;X(h,e,t);var y=r();return d=n,l=i,_=a,f=o,p=s,m=c,g=u,y}};function k(e,t,r){if(void 0===t&&(t=l),s){var n=l;l=t,s(e,r||0),l=n}}function E(){for(var t=l,r=!1,n=!1,i="";;){var a=h.charCodeAt(l);if(95!==a){if(!S(a))break;r=!0,n=!1,l++}else g|=512,r?(r=!1,n=!0,i+=h.substring(t,l)):k(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===h.charCodeAt(l-1)&&k(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+h.substring(t,l)}function w(){var t,r,n=l,i=E();46===h.charCodeAt(l)&&(l++,t=E());var a,o=l;if(69===h.charCodeAt(l)||101===h.charCodeAt(l)){l++,g|=16,43!==h.charCodeAt(l)&&45!==h.charCodeAt(l)||l++;var s=l,c=E();c?(r=h.substring(o,s)+c,o=l):k(e.Diagnostics.Digit_expected)}return 512&g?(a=i,t&&(a+="."+t),r&&(a+=r)):a=h.substring(n,o),void 0!==t||16&g?{type:8,value:""+ +a}:(m=a,{type:V(),value:m})}function P(){for(var e=l;D(h.charCodeAt(l));)l++;return+h.substring(e,l)}function F(e,t){var r=L(e,!1,t);return r?parseInt(r,16):-1}function I(e,t){return L(e,!0,t)}function L(t,r,n){for(var i=[],a=!1,o=!1;i.length<t||r;){var s=h.charCodeAt(l);if(n&&95===s)g|=512,a?(a=!1,o=!0):k(o?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++;else{if(a=n,s>=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),l++,o=!1}}return i.length<t&&(i=[]),95===h.charCodeAt(l-1)&&k(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),String.fromCharCode.apply(String,i)}function R(t){void 0===t&&(t=!1);for(var r=h.charCodeAt(l),n="",i=++l;;){if(l>=d){n+=h.substring(i,l),g|=4,k(e.Diagnostics.Unterminated_string_literal);break}var a=h.charCodeAt(l);if(a===r){n+=h.substring(i,l),l++;break}if(92!==a||t){if(x(a)&&!t){n+=h.substring(i,l),g|=4,k(e.Diagnostics.Unterminated_string_literal);break}l++}else n+=h.substring(i,l),n+=j(),i=l}return n}function B(){for(var t,r=96===h.charCodeAt(l),n=++l,i="";;){if(l>=d){i+=h.substring(n,l),g|=4,k(e.Diagnostics.Unterminated_template_literal),t=r?14:17;break}var a=h.charCodeAt(l);if(96===a){i+=h.substring(n,l),l++,t=r?14:17;break}if(36===a&&l+1<d&&123===h.charCodeAt(l+1)){i+=h.substring(n,l),l+=2,t=r?15:16;break}92!==a?13!==a?l++:(i+=h.substring(n,l),++l<d&&10===h.charCodeAt(l)&&l++,i+="\n",n=l):(i+=h.substring(n,l),i+=j(),n=l)}return e.Debug.assert(void 0!==t),m=i,t}function j(){if(++l>=d)return k(e.Diagnostics.Unexpected_end_of_text),"";var t,r,n,i=h.charCodeAt(l);switch(l++,i){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 l<d&&123===h.charCodeAt(l)?(g|=8,l++,t=I(1,!1),r=t?parseInt(t,16):-1,n=!1,r<0?(k(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(k(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),l>=d?(k(e.Diagnostics.Unexpected_end_of_text),n=!0):125===h.charCodeAt(l)?l++:(k(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)}(r)):z(4);case 120:return z(2);case 13:l<d&&10===h.charCodeAt(l)&&l++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(i)}}function z(t){var r=F(t,!1);return r>=0?String.fromCharCode(r):(k(e.Diagnostics.Hexadecimal_digit_expected),"")}function J(){if(l+5<d&&117===h.charCodeAt(l+1)){var e=l;l+=2;var t=F(4,!1);return l=e,t}return-1}function U(){for(var e="",r=l;l<d;){var n=h.charCodeAt(l);if(O(n,t))l++;else{if(92!==n)break;if(!((n=J())>=0&&O(n,t)))break;e+=h.substring(r,l),e+=String.fromCharCode(n),r=l+=6}}return e+=h.substring(r,l)}function q(){var e=m.length;if(e>=2&&e<=11){var t=m.charCodeAt(0);if(t>=97&&t<=122){var r=i.get(m);if(void 0!==r)return p=r}}return p=72}function K(t){for(var r="",n=!1,i=!1;;){var a=h.charCodeAt(l);if(95!==a){if(n=!0,!S(a)||a-48>=t)break;r+=h[l],l++,i=!1}else g|=512,n?(n=!1,i=!0):k(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 95===h.charCodeAt(l-1)&&k(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),r}function V(){if(110===h.charCodeAt(l))return m+="n",384&g&&(m=e.parsePseudoBigInt(m)+"n"),l++,9;var t=128&g?parseInt(m.slice(2),2):256&g?parseInt(m.slice(2),8):+m;return m=""+t,8}function W(){var r;_=l,g=0;for(var i=!1;;){if(f=l,l>=d)return p=1;var o=h.charCodeAt(l);if(35===o&&0===l&&N(h,l)){if(l=A(h,l),n)continue;return p=6}switch(o){case 10:case 13:if(g|=1,n){l++;continue}return 13===o&&l+1<d&&10===h.charCodeAt(l+1)?l+=2:l++,p=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(n){l++;continue}for(;l<d&&b(h.charCodeAt(l));)l++;return p=5;case 33:return 61===h.charCodeAt(l+1)?61===h.charCodeAt(l+2)?(l+=3,p=36):(l+=2,p=34):(l++,p=52);case 34:case 39:return m=R(),p=10;case 96:return p=B();case 37:return 61===h.charCodeAt(l+1)?(l+=2,p=65):(l++,p=43);case 38:return 38===h.charCodeAt(l+1)?(l+=2,p=54):61===h.charCodeAt(l+1)?(l+=2,p=69):(l++,p=49);case 40:return l++,p=20;case 41:return l++,p=21;case 42:if(61===h.charCodeAt(l+1))return l+=2,p=62;if(42===h.charCodeAt(l+1))return 61===h.charCodeAt(l+2)?(l+=3,p=63):(l+=2,p=41);if(l++,y&&!i&&1&g){i=!0;continue}return p=40;case 43:return 43===h.charCodeAt(l+1)?(l+=2,p=44):61===h.charCodeAt(l+1)?(l+=2,p=60):(l++,p=38);case 44:return l++,p=27;case 45:return 45===h.charCodeAt(l+1)?(l+=2,p=45):61===h.charCodeAt(l+1)?(l+=2,p=61):(l++,p=39);case 46:return S(h.charCodeAt(l+1))?(m=w().value,p=8):46===h.charCodeAt(l+1)&&46===h.charCodeAt(l+2)?(l+=3,p=25):(l++,p=24);case 47:if(47===h.charCodeAt(l+1)){for(l+=2;l<d&&!x(h.charCodeAt(l));)l++;if(n)continue;return p=2}if(42===h.charCodeAt(l+1)){l+=2,42===h.charCodeAt(l)&&47!==h.charCodeAt(l+1)&&(g|=2);for(var s=!1;l<d;){var c=h.charCodeAt(l);if(42===c&&47===h.charCodeAt(l+1)){l+=2,s=!0;break}x(c)&&(g|=1),l++}if(s||k(e.Diagnostics.Asterisk_Slash_expected),n)continue;return s||(g|=4),p=3}return 61===h.charCodeAt(l+1)?(l+=2,p=64):(l++,p=42);case 48:if(l+2<d&&(88===h.charCodeAt(l+1)||120===h.charCodeAt(l+1)))return l+=2,(m=I(1,!0))||(k(e.Diagnostics.Hexadecimal_digit_expected),m="0"),m="0x"+m,g|=64,p=V();if(l+2<d&&(66===h.charCodeAt(l+1)||98===h.charCodeAt(l+1)))return l+=2,(m=K(2))||(k(e.Diagnostics.Binary_digit_expected),m="0"),m="0b"+m,g|=128,p=V();if(l+2<d&&(79===h.charCodeAt(l+1)||111===h.charCodeAt(l+1)))return l+=2,(m=K(8))||(k(e.Diagnostics.Octal_digit_expected),m="0"),m="0o"+m,g|=256,p=V();if(l+1<d&&D(h.charCodeAt(l+1)))return m=""+P(),g|=32,p=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r=w(),p=r.type,m=r.value,p;case 58:return l++,p=57;case 59:return l++,p=26;case 60:if(C(h,l)){if(l=T(h,l,k),n)continue;return p=7}return 60===h.charCodeAt(l+1)?61===h.charCodeAt(l+2)?(l+=3,p=66):(l+=2,p=46):61===h.charCodeAt(l+1)?(l+=2,p=31):1===a&&47===h.charCodeAt(l+1)&&42!==h.charCodeAt(l+2)?(l+=2,p=29):(l++,p=28);case 61:if(C(h,l)){if(l=T(h,l,k),n)continue;return p=7}return 61===h.charCodeAt(l+1)?61===h.charCodeAt(l+2)?(l+=3,p=35):(l+=2,p=33):62===h.charCodeAt(l+1)?(l+=2,p=37):(l++,p=59);case 62:if(C(h,l)){if(l=T(h,l,k),n)continue;return p=7}return l++,p=30;case 63:return l++,p=56;case 91:return l++,p=22;case 93:return l++,p=23;case 94:return 61===h.charCodeAt(l+1)?(l+=2,p=71):(l++,p=51);case 123:return l++,p=18;case 124:if(C(h,l)){if(l=T(h,l,k),n)continue;return p=7}return 124===h.charCodeAt(l+1)?(l+=2,p=55):61===h.charCodeAt(l+1)?(l+=2,p=70):(l++,p=50);case 125:return l++,p=19;case 126:return l++,p=53;case 64:return l++,p=58;case 92:var u=J();return u>=0&&M(u,t)?(l+=6,m=String.fromCharCode(u)+U(),p=q()):(k(e.Diagnostics.Invalid_character),l++,p=0);default:if(M(o,t)){for(l++;l<d&&O(o=h.charCodeAt(l),t);)l++;return m=h.substring(f,l),92===o&&(m+=U()),p=q()}if(b(o)){l++;continue}if(x(o)){g|=1,l++;continue}return k(e.Diagnostics.Invalid_character),l++,p=0}}}function H(){if(_=f=l,l>=d)return p=1;var e=h.charCodeAt(l);if(60===e)return 47===h.charCodeAt(l+1)?(l+=2,p=29):(l++,p=28);if(123===e)return l++,p=18;for(var t=0;l<d&&123!==(e=h.charCodeAt(l));){if(60===e){if(C(h,l))return l=T(h,l,k),p=7;break}x(e)&&0===t?t=-1:v(e)||(t=l),l++}return-1===t?12:11}function G(e,t){var r=l,n=_,i=f,a=p,o=m,s=g,c=e();return c&&!t||(l=r,_=n,f=i,p=a,m=o,g=s),c}function X(e,t,r){h=e||"",d=void 0===r?h.length:t+r,Q(t||0)}function Q(t){e.Debug.assert(t>=0),l=t,_=t,f=t,p=0,m=void 0,g=0}}}(d||(d={})),function(e){e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)}}(d||(d={})),function(e){e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.getDeclarationOfKind=function(e,t){var r=e.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(a.kind===t)return a}},e.createUnderscoreEscapedMap=function(){return new e.MapCtr},e.hasEntries=function(e){return!!e&&!!e.size},e.createSymbolTable=function(t){var r=e.createMap();if(t)for(var n=0,i=t;n<i.length;n++){var a=i[n];r.set(a.escapedName,a)}return r};var t,r,n=(t="",{getText:function(){return t},write:r=function(e){return t+=e},rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:function(e,t){return r(e)},writeTrailingSemicolon:r,writeComment:r,getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},writeLine:function(){return t+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return t=""},trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function i(t,r,n){return n(e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,r))}function a(e,t){for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}}function o(e,t){e.forEach(function(e,r){t.set(r,e)})}function c(e){return e.end-e.pos}function u(t){return function(t){if(!(262144&t.flags)){var r=0!=(32768&t.flags)||e.forEachChild(t,u);r&&(t.flags|=131072),t.flags|=262144}}(t),0!=(131072&t.flags)}function l(e){for(;e&&279!==e.kind;)e=e.parent;return e}function d(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function _(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function f(e){return!_(e)}function p(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function m(t,r,n){return _(t)?t.pos:e.isJSDocNode(t)?e.skipTrivia((r||l(t)).text,t.pos,!1,!0):n&&e.hasJSDocNodes(t)?m(t.jsDoc[0]):306===t.kind&&t._children.length>0?m(t._children[0],r,n):e.skipTrivia((r||l(t)).text,t.pos)}function g(e,t,r){return void 0===r&&(r=!1),h(e.text,t,r)}function h(t,r,n){if(void 0===n&&(n=!1),_(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function e(t){return 283===t.kind||t.parent&&e(t.parent)}(r)&&(i=i.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),i}function y(e,t){return void 0===t&&(t=!1),g(l(e),e,t)}function v(e){return e.pos}function b(e){var t=e.emitNode;return t&&t.flags||0}function x(e){var t=Ke(e);return 237===t.kind&&274===t.parent.kind}function S(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||D(t))}function D(e){return!!(512&e.flags)}function k(e){return S(e)&&C(e)}function C(t){switch(t.parent.kind){case 279:return e.isExternalModule(t.parent);case 245:return S(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function T(t,r){switch(t.kind){case 279:case 246:case 274:case 244:case 225:case 226:case 227:case 157:case 156:case 158:case 159:case 239:case 196:case 197:return!0;case 218:return!e.isFunctionLike(r)}return!1}function E(t){switch(t.kind){case 160:case 161:case 155:case 162:case 165:case 166:case 289:case 240:case 209:case 241:case 242:case 303:case 239:case 156:case 157:case 158:case 159:case 196:case 197:return!0;default:return e.assertType(t),!1}}function N(e){switch(e.kind){case 249:case 248:return!0;default:return!1}}function A(e){return e&&0!==c(e)?y(e):"(Missing)"}function w(t){switch(t.kind){case 72:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 149:return Re(t.expression)?e.escapeLeadingUnderscores(t.expression.text):void 0;default:return e.Debug.assertNever(t)}}function P(t,r,n,i,a,o,s){var c=I(t,r);return e.createFileDiagnostic(t,c.start,c.length,n,i,a,o,s)}function F(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function I(t,r){var n=r;switch(r.kind){case 279:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):F(t,i);case 237:case 186:case 240:case 209:case 241:case 244:case 243:case 278:case 239:case 196:case 156:case 158:case 159:case 242:case 154:case 153:n=r.name;break;case 197:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&218===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i<e.getLineAndCharacterOfPosition(t,r.body.end).line)return e.createTextSpan(n,d(i,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)}(t,r)}if(void 0===n)return F(t,r.pos);var a=_(n),o=a?n.pos:e.skipTrivia(t.text,n.pos);return a?(e.Debug.assert(o===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(o>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(o<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(o,n.end)}function M(t){return!!(2&e.getCombinedNodeFlags(t))}function O(e){return 191===e.kind&&92===e.expression.kind}function L(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function R(e){return 221===e.kind&&10===e.expression.kind}e.toPath=i,e.changesAffectModuleResolution=function(t,r){return t.configFilePath!==r.configFilePath||e.moduleResolutionOptionDeclarations.some(function(n){return!e.isJsonEqual(e.getCompilerOptionValue(t,n),e.getCompilerOptionValue(r,n))})},e.findAncestor=a,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r,n=e.entries(),i=n.next(),a=i.value,o=i.done;!o;a=(r=n.next()).value,o=r.done,r){var s=a[0],c=t(a[1],s);if(c)return c}},e.forEachKey=function(e,t){for(var r,n=e.keys(),i=n.next(),a=i.value,o=i.done;!o;a=(r=n.next()).value,o=r.done,r){var s=t(a);if(s)return s}},e.copyEntries=o,e.arrayToSet=function(t,r){return e.arrayToMap(t,r||function(e){return e},function(){return!0})},e.cloneMap=function(t){var r=e.createMap();return o(t,r),r},e.usingSingleLineStringWriter=function(e){var t=n.getText();try{return e(n),n.getText()}finally{n.clear(),n.writeKeyword(t)}},e.getFullWidth=c,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,r,n){t.resolvedModules||(t.resolvedModules=e.createMap()),t.resolvedModules.set(r,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createMap()),t.resolvedTypeReferenceDirectiveNames.set(r,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&(r=e.packageId,n=t.packageId,r===n||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToString=function(e){var t=e.name,r=e.subModuleName;return(r?t+"/"+r:t)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},e.hasChangesInResolutions=function(t,r,n,i){e.Debug.assert(t.length===r.length);for(var a=0;a<t.length;a++){var o=r[a],s=n&&n.get(t[a]);if(s?!o||!i(s,o):o)return!0}return!1},e.containsParseError=u,e.getSourceFileOfNode=l,e.isStatementWithLocals=function(e){switch(e.kind){case 218:case 246:case 225:case 226:case 227:return!0}return!1},e.getStartPositionOfLine=function(t,r){return e.Debug.assert(t>=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=l(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"},e.getEndLinePosition=d,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=_,e.nodeIsPresent=f,e.addStatementsAfterPrologue=function(e,t){if(void 0===t||0===t.length)return e;for(var r=0;r<e.length&&R(e[r]);++r);return e.splice.apply(e,[r,0].concat(t)),e},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2<n&&47===t.charCodeAt(r+2)){var i=t.substring(r,n);return!!(i.match(e.fullTripleSlashReferencePathRegEx)||i.match(e.fullTripleSlashAMDReferencePathRegEx)||i.match(B)||i.match(j))}return!1},e.isPinnedComment=p,e.getTokenPosOfNode=m,e.getNonDecoratorTokenPosOfNode=function(t,r){return _(t)||!t.decorators?m(t,r):e.skipTrivia((r||l(t)).text,t.decorators.end)},e.getSourceTextOfNodeFromSourceFile=g,e.getTextOfNodeFromSourceText=h,e.getTextOfNode=y,e.indexOfNode=function(t,r){return e.binarySearch(t,r,v,e.compareValues)},e.getEmitFlags=b,e.getLiteralText=function(t,r,n){if(!Ve(t)&&t.parent&&!(e.isNumericLiteral(t)&&512&t.numericLiteralFlags||e.isBigIntLiteral(t)))return g(r,t);var i=n||16777216&b(t)?et:it;switch(t.kind){case 10:return t.singleQuote?"'"+i(t.text,39)+"'":'"'+i(t.text,34)+'"';case 14:return"`"+i(t.text,96)+"`";case 15:return"`"+i(t.text,96)+"${";case 16:return"}"+i(t.text,96)+"${";case 17:return"}"+i(t.text,96)+"`";case 8:case 9:case 13:return t.text}return e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")},e.getTextOfConstantValue=function(t){return e.isString(t)?'"'+it(t)+'"':""+t},e.makeIdentifierFromModuleName=function(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},e.isBlockOrCatchScoped=function(t){return 0!=(3&e.getCombinedNodeFlags(t))||x(t)},e.isCatchClauseVariableDeclarationOrBindingElement=x,e.isAmbientModule=S,e.isModuleWithStringLiteralName=function(t){return e.isModuleDeclaration(t)&&10===t.name.kind},e.isNonGlobalAmbientModule=function(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)},e.isEffectiveModuleDeclaration=function(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)},e.isShorthandAmbientModuleSymbol=function(e){return(t=e.valueDeclaration)&&244===t.kind&&!t.body;var t},e.isBlockScopedContainerTopLevel=function(t){return 279===t.kind||244===t.kind||e.isFunctionLike(t)},e.isGlobalScopeAugmentation=D,e.isExternalModuleAugmentation=k,e.isModuleAugmentationExternal=C,e.getNonAugmentationDeclaration=function(t){return e.find(t.declarations,function(t){return!(k(t)||e.isModuleDeclaration(t)&&D(t))})},e.isEffectiveExternalModule=function(t,r){return e.isExternalModule(t)||r.isolatedModules||e.getEmitModuleKind(r)===e.ModuleKind.CommonJS&&!!t.commonJsModuleIndicator},e.isBlockScope=T,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 297:case 304:case 293:return!0;default:return e.assertType(t),E(t)}},e.isDeclarationWithTypeParameterChildren=E,e.isAnyImportSyntax=N,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 249:case 248:case 219:case 240:case 239:case 244:case 242:case 241:case 243:return!0;default:return!1}},e.isAnyImportOrReExport=function(t){return N(t)||e.isExportDeclaration(t)},e.getEnclosingBlockScopeContainer=function(e){return a(e.parent,function(e){return T(e,e.parent)})},e.declarationNameToString=A,e.getNameFromIndexInfo=function(e){return e.declaration?A(e.declaration.parameters[0].name):void 0},e.getTextOfPropertyName=w,e.entityNameToString=function t(r){switch(r.kind){case 72:return 0===c(r)?e.idText(r):y(r);case 148:return t(r.left)+"."+t(r.right);case 189:return t(r.expression)+"."+t(r.name);default:throw e.Debug.assertNever(r)}},e.createDiagnosticForNode=function(e,t,r,n,i,a){return P(l(e),e,t,r,n,i,a)},e.createDiagnosticForNodeArray=function(t,r,n,i,a,o,s){var c=e.skipTrivia(t.text,r.pos);return e.createFileDiagnostic(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=P,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=l(e),i=I(n,e);return{file:n,start:i.start,length:i.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.getSpanOfTokenAtPosition=F,e.getErrorSpanForNode=I,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=function(e){return 6===e.scriptKind},e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t))},e.isVarConst=M,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 191===e.kind&&98===e.expression.kind},e.isImportCall=O,e.isLiteralImportTypeNode=L,e.isPrologueDirective=R,e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,r){var n=151===t.kind||150===t.kind||196===t.kind||197===t.kind||195===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)})},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var B=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var j=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function z(t){if(163<=t.kind&&t.kind<=183)return!0;switch(t.kind){case 120:case 143:case 135:case 146:case 138:case 123:case 139:case 136:case 141:case 132:return!0;case 106:return 200!==t.parent.kind;case 211:return!Rt(t);case 150:return 181===t.parent.kind||176===t.parent.kind;case 72:148===t.parent.kind&&t.parent.right===t?t=t.parent:189===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(72===t.kind||148===t.kind||189===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 148:case 189:case 100:var r=t.parent;if(167===r.kind)return!1;if(183===r.kind)return!r.isTypeOf;if(163<=r.kind&&r.kind<=183)return!0;switch(r.kind){case 211:return!Rt(r);case 150:case 303:return t===r.constraint;case 154:case 153:case 151:case 237:return t===r.type;case 239:case 196:case 197:case 157:case 156:case 155:case 158:case 159:return t===r.type;case 160:case 161:case 162:case 194:return t===r.type;case 191:case 192:return e.contains(r.typeArguments,t);case 193:return!1}}return!1}function J(e){if(e)switch(e.kind){case 186:case 278:case 151:case 275:case 154:case 153:case 276:case 237:return!0}return!1}function U(e){return 238===e.parent.kind&&219===e.parent.parent.kind}function q(e,t,r){return e.properties.filter(function(e){if(275===e.kind){var n=w(e.name);return t===n||!!r&&r===n}return!1})}function K(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function V(t,r){var n=K(t);return n?q(n,r):e.emptyArray}function W(t,r){for(e.Debug.assert(279!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 149:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 152:151===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 197:if(!r)continue;case 239:case 196:case 244:case 154:case 153:case 156:case 155:case 157:case 158:case 159:case 160:case 161:case 162:case 243:case 279:return t}}}function H(e,t,r){switch(e.kind){case 240:return!0;case 154:return 240===t.kind;case 158:case 159:case 156:return void 0!==e.body&&240===t.kind;case 151:return void 0!==t.body&&(157===t.kind||156===t.kind||159===t.kind)&&240===r.kind}return!1}function G(e,t,r){return void 0!==e.decorators&&H(e,t,r)}function X(e,t,r){return G(e,t,r)||Q(e,t)}function Q(t,r){switch(t.kind){case 240:return e.some(t.members,function(e){return X(e,t,r)});case 156:case 159:return e.some(t.parameters,function(e){return G(e,t,r)});default:return!1}}function Y(e){var t=e.parent;return(262===t.kind||261===t.kind||263===t.kind)&&t.tagName===e}function Z(e){switch(e.kind){case 98:case 96:case 102:case 87:case 13:case 187:case 188:case 189:case 190:case 191:case 192:case 193:case 212:case 194:case 213:case 195:case 196:case 209:case 197:case 200:case 198:case 199:case 202:case 203:case 204:case 205:case 208:case 206:case 14:case 210:case 260:case 261:case 264:case 207:case 201:case 214:return!0;case 148:for(;148===e.parent.kind;)e=e.parent;return 167===e.parent.kind||Y(e);case 72:if(167===e.parent.kind||Y(e))return!0;case 8:case 9:case 10:case 100:return $(e);default:return!1}}function $(e){var t=e.parent;switch(t.kind){case 237:case 151:case 154:case 153:case 278:case 275:case 186:return t.initializer===e;case 221:case 222:case 223:case 224:case 230:case 231:case 232:case 271:case 234:return t.expression===e;case 225:var r=t;return r.initializer===e&&238!==r.initializer.kind||r.condition===e||r.incrementor===e;case 226:case 227:var n=t;return n.initializer===e&&238!==n.initializer.kind||n.expression===e;case 194:case 212:case 216:case 149:return e===t.expression;case 152:case 270:case 269:case 277:return!0;case 211:return t.expression===e&&Rt(t);case 276:return t.objectAssignmentInitializer===e;default:return Z(t)}}function ee(e){return 248===e.kind&&259===e.moduleReference.kind}function te(e){return re(e)}function re(e){return!!e&&!!(65536&e.flags)}function ne(t,r){if(191!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(72!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function ie(t){return re(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&55===t.initializer.operatorToken.kind&&t.name&&Bt(t.name)&&oe(t.name,t.initializer.left)?t.initializer.right:t.initializer}function ae(t,r){if(e.isCallExpression(t)){var n=Ee(t.expression);return 196===n.kind||197===n.kind?t:void 0}return 196===t.kind||209===t.kind||197===t.kind?t:e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function oe(t,r){return e.isIdentifier(t)&&e.isIdentifier(r)?t.escapedText===r.escapedText:e.isIdentifier(t)&&e.isPropertyAccessExpression(r)?(100===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))&&oe(t,r.name):!(!e.isPropertyAccessExpression(t)||!e.isPropertyAccessExpression(r))&&(t.name.escapedText===r.name.escapedText&&oe(t.expression,r.expression))}function se(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function ce(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText}function ue(t){var r=function(t){if(e.isCallExpression(t)){if(!le(t))return 0;var r=t.arguments[0];return se(r)||ce(r)?8:e.isPropertyAccessExpression(r)&&"prototype"===r.name.escapedText&&Bt(r.expression)?9:7}if(59!==t.operatorToken.kind||!e.isPropertyAccessExpression(t.left))return 0;var n=t.left;if(Bt(n.expression)&&"prototype"===n.name.escapedText&&e.isObjectLiteralExpression(_e(t)))return 6;return de(n)}(t);return 5===r||re(t)?r:0}function le(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&Re(t.arguments[1])&&Bt(t.arguments[0])}function de(t){if(100===t.expression.kind)return 4;if(ce(t))return 2;if(Bt(t.expression)){if(zt(t.expression))return 3;for(var r=t;e.isPropertyAccessExpression(r.expression);)r=r.expression;e.Debug.assert(e.isIdentifier(r.expression));var n=r.expression;return"exports"===n.escapedText||"module"===n.escapedText&&"exports"===r.name.escapedText?1:5}return 0}function _e(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function fe(t){switch(t.parent.kind){case 249:case 255:return t.parent;case 259:return t.parent.parent;case 191:return O(t.parent)||ne(t.parent,!1)?t.parent:void 0;case 182:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function pe(e){return 304===e.kind||297===e.kind}function me(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==ue(t.expression)&&e.isBinaryExpression(t.expression.right)&&55===t.expression.right.operatorToken.kind?t.expression.right.right:void 0}function ge(e){switch(e.kind){case 219:var t=he(e);return t&&t.initializer;case 154:case 275:return e.initializer}}function he(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function ye(t){return e.isModuleDeclaration(t)&&t.body&&244===t.body.kind?t.body:void 0}function ve(t){var r=t.parent;return 275===r.kind||154===r.kind||221===r.kind&&189===t.kind||ye(r)||e.isBinaryExpression(t)&&59===t.operatorToken.kind?r:r.parent&&(he(r.parent)===t||e.isBinaryExpression(r)&&59===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(he(r.parent.parent)||ge(r.parent.parent)===t||me(r.parent.parent))?r.parent.parent:void 0}function be(e){return xe(Se(e))}function xe(t){var r,n=me(t)||(r=t,e.isExpressionStatement(r)&&r.expression&&e.isBinaryExpression(r.expression)&&59===r.expression.operatorToken.kind?r.expression.right:void 0)||ge(t)||he(t)||ye(t)||t;return n&&e.isFunctionLike(n)?n:void 0}function Se(t){return e.Debug.assertDefined(a(t.parent,e.isJSDoc)).parent}function De(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&290===r.kind}function ke(e){for(var t=e.parent;;){switch(t.kind){case 204:var r=t.operatorToken.kind;return It(r)&&t.left===e?59===r?1:2:0;case 202:case 203:var n=t.operator;return 44===n||45===n?2:0;case 226:case 227:return t.initializer===e?1:0;case 195:case 187:case 208:case 213:e=t;break;case 276:if(t.name!==e)return 0;e=t.parent;break;case 275:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function Ce(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function Te(e){return Ce(e,195)}function Ee(e){for(;195===e.kind;)e=e.expression;return e}function Ne(t){var r=e.isExportAssignment(t)?t.expression:t.right;return Bt(r)||e.isClassExpression(r)}function Ae(t){if(re(t)){var r=e.getJSDocAugmentsTag(t);if(r)return r.class}return we(t)}function we(e){var t=Ie(e.heritageClauses,86);return t&&t.types.length>0?t.types[0]:void 0}function Pe(e){var t=Ie(e.heritageClauses,109);return t?t.types:void 0}function Fe(e){var t=Ie(e.heritageClauses,86);return t?t.types:void 0}function Ie(e,t){if(e)for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.token===t)return i}}function Me(e){return 73<=e&&e<=147}function Oe(e){return 118<=e&&e<=147}function Le(e){return Me(e)&&!Oe(e)}function Re(t){return e.isStringLiteralLike(t)||e.isNumericLiteral(t)}function Be(t){var r=e.getNameOfDeclaration(t);return!!r&&je(r)}function je(e){return 149===e.kind&&!Re(e.expression)&&!ze(e.expression)}function ze(t){return e.isPropertyAccessExpression(t)&&qe(t.expression)}function Je(t){switch(t.kind){case 72:return t.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(t.text);case 149:var r=t.expression;return ze(r)?Ue(e.idText(r.name)):Re(r)?e.escapeLeadingUnderscores(r.text):void 0;default:return e.Debug.assertNever(t)}}function Ue(e){return"__@"+e}function qe(e){return 72===e.kind&&"Symbol"===e.escapedText}function Ke(e){for(;186===e.kind;)e=e.parent.parent;return e}function Ve(t){return e.positionIsSynthesized(t.pos)||e.positionIsSynthesized(t.end)}function We(e,t,r){switch(e){case 192:return r?0:1;case 202:case 199:case 200:case 198:case 201:case 205:case 207:return 1;case 204:switch(t){case 41:case 59:case 60:case 61:case 63:case 62:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 70:return 1}}return 0}function He(e){return 204===e.kind?e.operatorToken.kind:202===e.kind||203===e.kind?e.operator:e.kind}function Ge(e,t,r){switch(e){case 309:return 0;case 208:return 1;case 207:return 2;case 205:return 4;case 204:switch(t){case 27:return 0;case 59:case 60:case 61:case 63:case 62:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 70:return 3;default:return Xe(t)}case 202:case 199:case 200:case 198:case 201:return 16;case 203:return 17;case 191:return 18;case 192:return r?19:18;case 193:case 189:case 190:return 19;case 100:case 98:case 72:case 96:case 102:case 87:case 8:case 9:case 10:case 187:case 188:case 196:case 197:case 209:case 260:case 261:case 264:case 13:case 14:case 206:case 195:case 210:return 20;default:return-1}}function Xe(e){switch(e){case 55:return 5;case 54:return 6;case 50:return 7;case 51:return 8;case 49:return 9;case 33:case 34:case 35:case 36:return 10;case 28:case 30:case 31:case 32:case 94:case 93:case 119:return 11;case 46:case 47:case 48:return 12;case 38:case 39:return 13;case 40:case 42:case 43:return 14;case 41:return 15}return-1}e.isPartOfTypeNode=z,e.isChildOfNodeWithKind=function(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},e.forEachReturnStatement=function(t,r){return function t(n){switch(n.kind){case 230:return r(n);case 246:case 218:case 222:case 223:case 224:case 225:case 226:case 227:case 231:case 232:case 271:case 272:case 233:case 235:case 274:return e.forEachChild(n,t)}}(t)},e.forEachYieldExpression=function(t,r){return function t(n){switch(n.kind){case 207:r(n);var i=n.expression;return void(i&&t(i));case 243:case 241:case 244:case 242:case 240:case 209:return;default:if(e.isFunctionLike(n)){if(n.name&&149===n.name.kind)return void t(n.name.expression)}else z(n)||e.forEachChild(n,t)}}(t)},e.getRestParameterElementType=function(t){return t&&169===t.kind?t.elementType:t&&164===t.kind?e.singleOrUndefined(t.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 241:case 240:case 209:case 168:return e.members;case 188:return e.properties}},e.isVariableLike=J,e.isVariableLikeOrAccessor=function(t){return J(t)||e.isAccessor(t)},e.isVariableDeclarationInVariableStatement=U,e.isValidESSymbolDeclaration=function(t){return e.isVariableDeclaration(t)?M(t)&&e.isIdentifier(t.name)&&U(t):e.isPropertyDeclaration(t)?Nt(t)&&Et(t):e.isPropertySignature(t)&&Nt(t)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 156:case 155:case 157:case 158:case 159:case 239:case 196:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),233!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(t){return t&&218===t.kind&&e.isFunctionLike(t.parent)},e.isObjectLiteralMethod=function(e){return e&&156===e.kind&&188===e.parent.kind},e.isObjectLiteralOrClassExpressionMethod=function(e){return 156===e.kind&&(188===e.parent.kind||209===e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=q,e.getTsConfigObjectLiteralExpression=K,e.getTsConfigPropArrayElementValue=function(t,r,n){return e.firstDefined(V(t,r),function(t){return e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,function(t){return e.isStringLiteral(t)&&t.text===n}):void 0})},e.getTsConfigPropArray=V,e.getContainingFunction=function(t){return a(t.parent,e.isFunctionLike)},e.getContainingClass=function(t){return a(t.parent,e.isClassLike)},e.getThisContainer=W,e.getNewTargetContainer=function(e){var t=W(e,!1);if(t)switch(t.kind){case 157:case 239:case 196:return t}},e.getSuperContainer=function(t,r){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 149:t=t.parent;break;case 239:case 196:case 197:if(!r)continue;case 154:case 153:case 156:case 155:case 157:case 158:case 159:return t;case 152:151===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(196===e.kind||197===e.kind){for(var t=e,r=e.parent;195===r.kind;)t=r,r=r.parent;if(191===r.kind&&r.expression===t)return r}},e.isSuperProperty=function(e){var t=e.kind;return(189===t||190===t)&&98===e.expression.kind},e.isThisProperty=function(e){var t=e.kind;return(189===t||190===t)&&100===e.expression.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 164:return e.typeName;case 211:return Bt(e.expression)?e.expression:void 0;case 72:case 148:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 193:return e.tag;case 262:case 261:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=H,e.nodeIsDecorated=G,e.nodeOrChildIsDecorated=X,e.childIsDecorated=Q,e.isJSXTagName=Y,e.isExpressionNode=Z,e.isInExpressionContext=$,e.isExternalModuleImportEqualsDeclaration=ee,e.getExternalModuleImportEqualsDeclarationExpression=function(t){return e.Debug.assert(ee(t)),t.moduleReference.expression},e.isInternalModuleImportEqualsDeclaration=function(e){return 248===e.kind&&259!==e.moduleReference.kind},e.isSourceFileJS=te,e.isSourceFileNotJS=function(e){return!re(e)},e.isInJSFile=re,e.isInJsonFile=function(e){return!!e&&!!(16777216&e.flags)},e.isInJSDoc=function(e){return!!e&&!!(2097152&e.flags)},e.isJSDocIndexSignature=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&t.typeArguments&&2===t.typeArguments.length&&(138===t.typeArguments[0].kind||135===t.typeArguments[0].kind)},e.isRequireCall=ne,e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===g(t,e).charCodeAt(0)},e.getDeclarationOfExpando=function(t){if(t.parent){var r,n;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!re(t)&&!M(t.parent))return;r=t.parent.name,n=t.parent}else if(e.isBinaryExpression(t.parent)&&59===t.parent.operatorToken.kind&&t.parent.right===t)n=r=t.parent.left;else if(e.isBinaryExpression(t.parent)&&55===t.parent.operatorToken.kind&&(e.isVariableDeclaration(t.parent.parent)&&t.parent.parent.initializer===t.parent?(r=t.parent.parent.name,n=t.parent.parent):e.isBinaryExpression(t.parent.parent)&&59===t.parent.parent.operatorToken.kind&&t.parent.parent.right===t.parent&&(n=r=t.parent.parent.left),!r||!Bt(r)||!oe(r,t.parent.left)))return;if(r&&ae(t,zt(r)))return n}},e.isAssignmentDeclaration=function(t){return e.isBinaryExpression(t)||e.isPropertyAccessExpression(t)||e.isIdentifier(t)||e.isCallExpression(t)},e.getEffectiveInitializer=ie,e.getDeclaredExpandoInitializer=function(e){var t=ie(e);return t&&ae(t,zt(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&59===t.parent.operatorToken.kind){var r=zt(t.parent.left);return ae(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&55===r.operatorToken.kind&&ae(r.right,n);if(i&&oe(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&le(t)){var n=function(t,r){return e.forEach(t.properties,function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&ae(t.initializer,r)})}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=ae,e.isDefaultedExpandoInitializer=function(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&59===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&ae(t.right,zt(r))&&Bt(r)&&oe(r,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var r=55===t.parent.operatorToken.kind&&e.isBinaryExpression(t.parent.parent)?t.parent.parent:t.parent;if(59===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.getRightMostAssignedExpression=function(e){for(;Lt(e,!0);)e=e.right;return e},e.isExportsIdentifier=se,e.isModuleExportsPropertyAccessExpression=ce,e.getAssignmentDeclarationKind=ue,e.isBindableObjectDefinePropertyCall=le,e.getAssignmentDeclarationPropertyAccessKind=de,e.getInitializerOfBinaryExpression=_e,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===ue(t)},e.isSpecialPropertyDeclaration=function(t){return re(t)&&t.parent&&221===t.parent.kind&&!!e.getJSDocTypeTag(t.parent)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 239===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.importFromModuleSpecifier=function(t){return fe(t)||e.Debug.fail(e.Debug.showSyntaxKind(t.parent))},e.tryGetImportFromModuleSpecifier=fe,e.getExternalModuleName=function(t){switch(t.kind){case 249:case 255:return t.moduleSpecifier;case 248:return 259===t.moduleReference.kind?t.moduleReference.expression:void 0;case 183:return L(t)?t.argument.literal:void 0;default:return e.Debug.assertNever(t)}},e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 249:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 248:return t;case 255:return;default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 249===e.kind&&!!e.importClause&&!!e.importClause.name},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 151:case 156:case 155:case 276:case 275:case 154:case 153:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(t){var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&"new"===n.escapedText},e.isJSDocTypeAlias=pe,e.isTypeAlias=function(t){return pe(t)||e.isTypeAliasDeclaration(t)},e.getJSDocCommentsAndTags=function(t){var r;J(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(r=e.addRange(r,t.initializer.jsDoc));for(var n=t;n&&n.parent;){if(e.hasJSDocNodes(n)&&(r=e.addRange(r,n.jsDoc)),151===n.kind){r=e.addRange(r,e.getJSDocParameterTags(n));break}if(150===n.kind){r=e.addRange(r,e.getJSDocTypeParameterTags(n));break}n=ve(n)}return r||e.emptyArray},e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=be(t);if(n){var i=e.find(n.parameters,function(e){return 72===e.name.kind&&e.name.escapedText===r});return i&&i.symbol}}},e.getHostSignatureFromJSDoc=be,e.getHostSignatureFromJSDocHost=xe,e.getJSDocHost=Se,e.getTypeParameterFromJsDoc=function(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return e.find(n,function(e){return e.name.escapedText===r})},e.hasRestParameter=function(t){var r=e.lastOrUndefined(t.parameters);return!!r&&De(r)},e.isRestParameter=De,function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=ke,e.isAssignmentTarget=function(e){return 0!==ke(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 218:case 219:case 231:case 222:case 232:case 246:case 271:case 272:case 233:case 225:case 226:case 227:case 223:case 224:case 235:case 274:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return Ce(e,177)},e.walkUpParenthesizedExpressions=Te,e.skipParentheses=Ee,e.isDeleteTarget=function(e){return(189===e.kind||190===e.kind)&&(e=Te(e.parent))&&198===e.kind},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.getDeclarationFromName=function(t){var r=t.parent;switch(t.kind){case 10:case 8:if(e.isComputedPropertyName(r))return r.parent;case 72:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==ue(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return(10===t.kind||8===t.kind)&&149===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 154:case 153:case 156:case 155:case 158:case 159:case 278:case 275:case 189:return t.name===e;case 148:if(t.right===e){for(;148===t.kind;)t=t.parent;return 167===t.kind||164===t.kind}return!1;case 186:case 253:return t.propertyName===e;case 257:case 267:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return 248===t.kind||247===t.kind||250===t.kind&&!!t.name||251===t.kind||253===t.kind||257===t.kind||254===t.kind&&Ne(t)||e.isBinaryExpression(t)&&2===ue(t)&&Ne(t)},e.exportAssignmentIsAlias=Ne,e.getEffectiveBaseTypeNode=Ae,e.getClassExtendsHeritageElement=we,e.getClassImplementsHeritageClauseElements=Pe,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?Fe(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(Ae(t)),Pe(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=Fe,e.getHeritageClause=Ie,e.tryResolveScriptReference=function(t,r,n){if(!t.getCompilerOptions().noResolve){var i=e.isRootedDiskPath(n.fileName)?n.fileName:e.combinePaths(e.getDirectoryPath(r.fileName),n.fileName);return t.getSourceFile(i)}},e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=Me,e.isContextualKeyword=Oe,e.isNonContextualKeyword=Le,e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&Le(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!Oe(t)},e.isTrivia=function(e){return 2<=e&&e<=7},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=function(e){if(!e)return 4;var t=0;switch(e.kind){case 239:case 196:case 156:e.asteriskToken&&(t|=1);case 197:Tt(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 239:case 196:case 197:case 156:return void 0!==e.body&&void 0===e.asteriskToken&&Tt(e,256)}return!1},e.isStringOrNumericLiteralLike=Re,e.hasDynamicName=Be,e.isDynamicName=je,e.isWellKnownSymbolSyntactically=ze,e.getPropertyNameForPropertyNameNode=Je,e.isPropertyNameLiteral=function(e){switch(e.kind){case 72:case 10:case 14:case 8:return!0;default:return!1}},e.getTextOfIdentifierOrLiteral=function(t){return 72===t.kind?e.idText(t):t.text},e.getEscapedTextOfIdentifierOrLiteral=function(t){return 72===t.kind?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForKnownSymbolName=Ue,e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isESSymbolIdentifier=qe,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 151===Ke(e).kind},e.getRootDeclaration=Ke,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 157===t||196===t||239===t||197===t||156===t||158===t||159===t||244===t||279===t},e.nodeIsSynthesized=Ve,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var t=He(e),r=192===e.kind&&void 0!==e.arguments;return We(e.kind,t,r)},e.getOperatorAssociativity=We,e.getExpressionPrecedence=function(e){var t=He(e),r=192===e.kind&&void 0!==e.arguments;return Ge(e.kind,t,r)},e.getOperator=He,e.getOperatorPrecedence=Ge,e.getBinaryOperatorPrecedence=Xe,e.createDiagnosticCollection=function(){var t=[],r=[],n=e.createMap(),i=!1;return{add:function(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t),e.insertSorted(o,a,e.compareDiagnostics)},lookup:function(r){var i;if(i=r.file?n.get(r.file.fileName):t){var a=e.binarySearch(i,r,e.identity,e.compareDiagnosticsSkipRelatedInformation);return a>=0?i[a]:void 0}},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,function(e){return n.get(e)});return t.length?(a.unshift.apply(a,t),a):a},reattachFileDiagnostics:function(t){e.forEach(n.get(t.fileName),function(e){return e.file=t})}}};var Qe=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ye=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ze=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,$e=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","":"\\u0085"});function et(e,t){var r=96===t?Ze:39===t?Ye:Qe;return e.replace(r,tt)}function tt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return $e.get(e)||rt(e.charCodeAt(0))}function rt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}e.escapeString=et,e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")};var nt=/[^\u0000-\u007F]/g;function it(e,t){return e=et(e,t),nt.test(e)?e.replace(nt,function(e){return rt(e.charCodeAt(0))}):e}e.escapeNonAsciiString=it;var at=["","    "];function ot(e){return void 0===at[e]&&(at[e]=ot(e-1)+at[1]),at[e]}function st(){return at[1].length}function ct(e,t,r){return t.moduleName||ut(e,t.fileName,r&&r.fileName)}function ut(t,r,n){var a=function(e){return t.getCanonicalFileName(e)},o=i(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),a),s=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),c=e.getRelativePathToDirectoryOrUrl(o,s,o,a,!1),u=e.removeFileExtension(c);return n?e.ensurePathIsNonModuleName(u):u}function lt(t,r,n,i,a){var o=r.declarationDir||r.outDir,s=o?ft(t,o,n,i,a):t;return e.removeFileExtension(s)+".d.ts"}function dt(e,t,r){return!(t.noEmitForJsFiles&&te(e)||e.isDeclarationFile||r(e))}function _t(e,t,r){return ft(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}function ft(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function pt(t,r){return e.getLineAndCharacterOfPosition(t,r).line}function mt(t,r){return e.computeLineAndCharacterOfPosition(t,r).line}function gt(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&ht(e.parameters[0]);return e.parameters[t?1:0]}}function ht(e){return yt(e.name)}function yt(e){return!!e&&72===e.kind&&vt(e)}function vt(e){return 100===e.originalKeywordKind}function bt(t){var r=t.type;return r||!re(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}function xt(e,t,r,n){St(e,t,r.pos,n)}function St(e,t,r,n){n&&n.length&&r!==n[0].pos&&mt(e,r)!==mt(e,n[0].pos)&&t.writeLine()}function Dt(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,u=0,l=n;u<l.length;u++){var d=l[u];c&&(r.writeSpace(" "),c=!1),s(e,t,r,d.pos,d.end,o),d.hasTrailingNewLine?r.writeLine():c=!0}c&&a&&r.writeSpace(" ")}}function kt(e,t,r,n,i,a){var o=Math.min(t,a-1),s=e.substring(i,o).replace(/^\s+|\s+$/g,"");s?(r.writeComment(s),o!==t&&r.writeLine()):r.rawWrite(n)}function Ct(t,r,n){for(var i=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?i+=st()-i%st():i++;return i}function Tt(e,t){return!!At(e,t)}function Et(e){return Tt(e,32)}function Nt(e){return Tt(e,64)}function At(e,t){return wt(e)&t}function wt(e){if(536870912&e.modifierFlagsCache)return-536870913&e.modifierFlagsCache;var t=Pt(e);return e.modifierFlagsCache=536870912|t,t}function Pt(e){var t=0;if(e.modifiers)for(var r=0,n=e.modifiers;r<n.length;r++){t|=Ft(n[r].kind)}return(4&e.flags||72===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function Ft(e){switch(e){case 116:return 32;case 115:return 4;case 114:return 16;case 113:return 8;case 118:return 128;case 85:return 1;case 125:return 2;case 77:return 2048;case 80:return 512;case 121:return 256;case 133:return 64}return 0}function It(e){return e>=59&&e<=71}function Mt(e){var t=Ot(e);return t&&!t.isImplements?t.class:void 0}function Ot(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:109===t.parent.token}:void 0}function Lt(t,r){return e.isBinaryExpression(t)&&(r?59===t.operatorToken.kind:It(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Rt(e){return void 0!==Mt(e)}function Bt(e){return 72===e.kind||jt(e)}function jt(t){return e.isPropertyAccessExpression(t)&&Bt(t.expression)}function zt(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText}e.getIndentString=ot,e.getIndentSize=st,e.createTextWriter=function(t){var r,n,i,a,o;function s(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function c(e){e&&e.length&&(i&&(e=ot(n)+e,i=!1),r+=e,s(e))}function u(){r="",n=0,i=!0,a=0,o=0}return u(),{write:c,rawWrite:function(e){void 0!==e&&(r+=e,s(e))},writeLiteral:function(e){e&&e.length&&c(e)},writeLine:function(){i||(a++,o=(r+=t).length,i=!0)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*st():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},clear:u,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:c,writeOperator:c,writeParameter:c,writeProperty:c,writePunctuation:c,writeSpace:c,writeStringLiteral:c,writeSymbol:function(e,t){return c(e)},writeTrailingSemicolon:c,writeComment:c}},e.getTrailingSemicolonOmittingWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return s({},e,{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.getResolvedExternalModuleName=ct,e.getExternalModuleNameFromDeclaration=function(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return ct(e,n)},e.getExternalModuleNameFromPath=ut,e.getOwnEmitOutputFilePath=function(t,r,n){var i=r.getCompilerOptions();return(i.outDir?e.removeFileExtension(_t(t,r,i.outDir)):e.removeFileExtension(t))+n},e.getDeclarationEmitOutputFilePath=function(e,t){return lt(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})},e.getDeclarationEmitOutputFilePathWorker=lt,e.getSourceFilesToEmit=function(t,r){var n=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(n.outFile||n.out){var a=e.getEmitModuleKind(n),o=n.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&dt(t,n,i)})}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,function(e){return dt(e,n,i)})},e.sourceFileMayBeEmitted=dt,e.getSourceFilePathInNewDir=_t,e.getSourceFilePathInNewDirWorker=ft,e.writeFile=function(t,r,n,i,a,o){t.writeFile(n,i,a,function(t){r.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))},o)},e.getLineOfLocalPosition=pt,e.getLineOfLocalPositionFromLineMap=mt,e.getFirstConstructorWithBody=function(t){return e.find(t.members,function(t){return e.isConstructorDeclaration(t)&&f(t.body)})},e.getSetAccessorTypeAnnotationNode=function(e){var t=gt(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(ht(r))return r}},e.parameterIsThisKeyword=ht,e.isThisIdentifier=yt,e.identifierIsThisKeyword=vt,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return Be(r)?(n=r,158===r.kind?a=r:159===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(t){e.isAccessor(t)&&Tt(t,32)===Tt(r,32)&&Je(t.name)===Je(r.name)&&(n?i||(i=t):n=t,158!==t.kind||a||(a=t),159!==t.kind||o||(o=t))}),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=bt,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(re(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(291===t.parent.kind&&t.parent.tags.some(pe))}(t)?t.typeParameters:void 0})},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=gt(e);return t&&bt(t)},e.emitNewLineBeforeLeadingComments=xt,e.emitNewLineBeforeLeadingCommentsOfPosition=St,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&mt(e,r)!==mt(e,n)&&t.writeLine()},e.emitComments=Dt,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,u;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),function(e){return p(t,e.pos)})):c=e.getLeadingCommentRanges(t,a.pos),c){for(var l=[],d=void 0,_=0,f=c;_<f.length;_++){var m=f[_];if(d){var g=mt(r,d.end);if(mt(r,m.pos)>=g+2)break}l.push(m),d=m}l.length&&(g=mt(r,e.last(l).end),mt(r,e.skipTrivia(t,a.pos))>=g+2&&(xt(r,n,a,c),Dt(t,r,n,l,!1,!0,o,i),u={nodePos:a.pos,detachedCommentEndPos:e.last(l).end}))}return u},e.writeCommentRange=function(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,u=void 0,l=i,d=s.line;l<a;d++){var _=d+1===c?t.length+1:r[d+1];if(l!==i){void 0===u&&(u=Ct(t,r[s.line],i));var f=n.getIndent()*st()-u+Ct(t,l,_);if(f>0){var p=f%st(),m=ot((f-p)/st());for(n.rawWrite(m);p;)n.rawWrite(" "),p--}else n.rawWrite("")}kt(t,a,n,o,l,_),l=_}else n.writeComment(t.substring(i,a))},e.hasModifiers=function(e){return 0!==wt(e)},e.hasModifier=Tt,e.hasStaticModifier=Et,e.hasReadonlyModifier=Nt,e.getSelectedModifierFlags=At,e.getModifierFlags=wt,e.getModifierFlagsNoCache=Pt,e.modifierToFlag=Ft,e.isLogicalOperator=function(e){return 55===e||54===e||52===e},e.isAssignmentOperator=It,e.tryGetClassExtendingExpressionWithTypeArguments=Mt,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Ot,e.isAssignmentExpression=Lt,e.isDestructuringAssignment=function(e){if(Lt(e,!0)){var t=e.left.kind;return 188===t||187===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Rt,e.isEntityNameExpression=Bt,e.isPropertyAccessEntityNameExpression=jt,e.isPrototypeAccess=zt,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 148===e.parent.kind&&e.parent.right===e||189===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 188===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 187===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){return function(t){return t&&e.length(t.declarations)>0&&Tt(t.declarations[0],512)}(t)?t.declarations[0].localSymbol:void 0},e.tryExtractTSExtension=function(t){return e.find(e.supportedTSExtensionsForExtractExtension,function(r){return e.fileExtensionIs(t,r)})};var Jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ut(t){for(var r,n,i,a,o="",s=function(t){for(var r=[],n=t.length,i=0;i<n;i++){var a=t.charCodeAt(i);a<128?r.push(a):a<2048?(r.push(a>>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),c=0,u=s.length;c<u;)r=s[c]>>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=u?i=a=64:c+2>=u&&(a=64),o+=Jt.charAt(r)+Jt.charAt(n)+Jt.charAt(i)+Jt.charAt(a),c+=3;return o}e.convertToBase64=Ut,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Ut(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i<r&&t.charCodeAt(i)!==Jt.charCodeAt(64);){var a=Jt.indexOf(t[i]),o=Jt.indexOf(t[i+1]),s=Jt.indexOf(t[i+2]),c=Jt.indexOf(t[i+3]),u=(63&a)<<2|o>>4&3,l=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===l&&0!==s?n.push(u):0===d&&0!==c?n.push(u,l):n.push(u,l,d),i+=4}return function(e){for(var t="",r=0,n=e.length;r<n;){var i=e[r];if(i<128)t+=String.fromCharCode(i),r++;else if(192==(192&i)){for(var a=63&i,o=e[++r];128==(192&o);)a=a<<6|63&o,o=e[++r];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),r++}return t}(n)},e.readJson=function(t,r){try{var n=r.readFile(t);if(!n)return{};var i=e.parseConfigFileTextToJson(t,n);return i.error?{}:i.config}catch(e){return{}}},e.directoryProbablyExists=function(e,t){return!t.directoryExists||t.directoryExists(e)};var qt,Kt="\r\n",Vt="\n";function Wt(t,r,n){void 0===t&&(t=0);var i=function(t){var r=[];for(var n in t){var i=t[n];"number"==typeof i&&r.push([i,n])}return e.stableSort(r,function(t,r){return e.compareValues(t[0],r[0])})}(r);if(0===t)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=i.length-1;s>=0&&0!==o;s--){var c=i[s],u=c[0],l=c[1];0!==u&&(o&u)===u&&(o&=~u,a=l+(a?", ":"")+a)}if(0===o)return a}else for(var d=0,_=i;d<_.length;d++){var f=_[d];u=f[0],l=f[1];if(u===t)return l}return t.toString()}function Ht(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t||-1===r),{pos:t,end:r}}function Gt(e,t){return Ht(t,e.end)}function Xt(e){return e.decorators&&e.decorators.length>0?Gt(e,e.decorators.end):e}function Qt(e,t,r){return Yt(Zt(e,r),t.end,r)}function Yt(e,t,r){return e===t||pt(r,e)===pt(r,t)}function Zt(t,r){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos)}function $t(e){return void 0!==e.initializer}function er(e){return 33554432&e.flags?e.checkFlags:0}function tr(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 195:return tr(r);case 203:case 202:var n=r.operator;return 44===n||45===n?c():0;case 204:var i=r,a=i.left,o=i.operatorToken;return a===t&&It(o.kind)?59===o.kind?1:c():0;case 189:return r.name!==t?0:tr(r);case 275:var s=tr(r.parent);return t===r.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(s):s;case 276:return t===r.objectAssignmentInitializer?0:tr(r.parent);case 187:return tr(r);default:return 0}function c(){return r.parent&&221===function(e){for(;195===e.kind;)e=e.parent;return e}(r.parent).kind?1:2}}function rr(t,r){for(;;){var n=r(t);if(void 0!==n)return n;var i=e.getDirectoryPath(t);if(i===t)return;t=i}}function nr(e){if(32&e.flags){var t=ir(e);return!!t&&Tt(t,128)}return!1}function ir(t){return e.find(t.declarations,e.isClassLike)}function ar(e){return 524288&e.flags?e.objectFlags:0}e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return Kt;case 1:return Vt}return r?r():e.sys?e.sys.newLine:Kt},e.formatSyntaxKind=function(t){return Wt(t,e.SyntaxKind,!1)},e.formatModifierFlags=function(t){return Wt(t,e.ModifierFlags,!0)},e.formatTransformFlags=function(t){return Wt(t,e.TransformFlags,!0)},e.formatEmitFlags=function(t){return Wt(t,e.EmitFlags,!0)},e.formatSymbolFlags=function(t){return Wt(t,e.SymbolFlags,!0)},e.formatTypeFlags=function(t){return Wt(t,e.TypeFlags,!0)},e.formatObjectFlags=function(t){return Wt(t,e.ObjectFlags,!0)},e.createRange=Ht,e.moveRangeEnd=function(e,t){return Ht(e.pos,t)},e.moveRangePos=Gt,e.moveRangePastDecorators=Xt,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?Gt(e,e.modifiers.end):Xt(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return Ht(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return Qt(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return Yt(Zt(e,r),Zt(t,r),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return Yt(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=Qt,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return Yt(e.end,Zt(t,r),r)},e.positionsAreOnSameLine=Yt,e.getStartPositionOfRange=Zt,e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 243:case 244:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,$t)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=er,e.getDeclarationModifierFlagsFromSymbol=function(t){if(t.valueDeclaration){var r=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?r:-29&r}if(6&er(t)){var n=t.checkFlags;return(256&n?8:64&n?4:16)|(512&n?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===tr(e)},e.isWriteAccess=function(e){return 0!==tr(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(qt||(qt={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMap=function(e,t,r){var n=r.createNewValue,i=r.onDeleteValue,a=r.onExistingValue;e.forEach(function(r,n){var o=t.get(n);void 0===o?(e.delete(n),i(r,n)):a&&a(r,o,n)}),t.forEach(function(t,r){e.has(r)||e.set(r,n(r,t))})},e.forEachAncestorDirectory=rr,e.isAbstractConstructorType=function(e){return!!(16&ar(e))&&!!e.symbol&&nr(e.symbol)},e.isAbstractConstructorSymbol=nr,e.getClassLikeDeclarationOfSymbol=ir,e.getObjectFlags=ar,e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(e,t){return!!rr(e,function(e){return!!t(e)||void 0})},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:y(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,function(e){f(e)&&(r=e)},function(e){for(var t=e.length-1;t>=0;t--)if(f(e[t])){r=e[t];break}}),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),t=String(t),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=163&&e<=183||120===e||143===e||135===e||146===e||136===e||123===e||138===e||139===e||100===e||106===e||141===e||96===e||132===e||211===e||284===e||285===e||286===e||287===e||288===e||289===e||290===e}}(d||(d={})),function(e){function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function u(t){return!!e.isBindingPattern(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function d(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function _(t,r){e.isBindingElement(t)&&(t=d(t));var n=r(t);return 237===t.kind&&(t=t.parent),t&&238===t.kind&&(n|=r(t),t=t.parent),t&&219===t.kind&&(n|=r(t)),n}function f(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function p(e){return 0==(8&e.flags)}function m(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function g(t){var r=v(t);return r&&e.isIdentifier(r)?r:void 0}function h(t){return t.name||function(t){var r=t.parent.parent;if(r){if(e.isDeclaration(r))return g(r);switch(r.kind){case 219:if(r.declarationList&&r.declarationList.declarations[0])return g(r.declarationList.declarations[0]);break;case 221:var n=r.expression;switch(n.kind){case 189:return n.name;case 190:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 195:return g(r.expression);case 233:if(e.isDeclaration(r.statement)||e.isExpression(r.statement))return g(r.statement)}}}(t)}function y(t){switch(t.kind){case 72:return t;case 305:case 299:var r=t.name;if(148===r.kind)return r.right;break;case 191:case 204:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return n.left.name;case 7:case 8:case 9:return n.arguments[1];default:return}case 304:return h(t);case 254:var i=t.expression;return e.isIdentifier(i)?i:void 0}return t.name}function v(t){if(void 0!==t)return y(t)||(e.isFunctionExpression(t)||e.isClassExpression(t)?function(t){if(!t.parent)return;if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isPropertyAccessExpression(t.parent.left))return t.parent.left.name}}(t):void 0)}function b(t){if(t.name){if(e.isIdentifier(t.name)){var r=t.name.escapedText;return k(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===r})}var n=t.parent.parameters.indexOf(t);e.Debug.assert(n>-1,"Parameters should always be in their parents' parameter list");var i=k(t.parent).filter(e.isJSDocParameterTag);if(n<i.length)return[i[n]]}return e.emptyArray}function x(t){return C(t,e.isJSDocReturnTag)}function S(t){var r=C(t,e.isJSDocTypeTag);if(r&&r.typeExpression&&r.typeExpression.type)return r}function D(t){var r=C(t,e.isJSDocTypeTag);return!r&&e.isParameter(t)&&(r=e.find(b(t),function(e){return!!e.typeExpression})),r&&r.typeExpression&&r.typeExpression.type}function k(t){var r=t.jsDocCache;if(void 0===r){var n=e.getJSDocCommentsAndTags(t);e.Debug.assert(n.length<2||n[0]!==n[1]),t.jsDocCache=r=e.flatMap(n,function(t){return e.isJSDoc(t)?t.tags:t})}return r}function C(t,r){return e.find(k(t),r)}e.getDefaultLibFileName=function(e){switch(e.target){case 6:return"lib.esnext.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=r,e.textSpanContainsPosition=function(e,r){return r>=e.start&&r<t(e)},e.textRangeContainsPositionInclusive=function(e,t){return t>=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,u=1;u<r.length;u++){var l=r[u],d=i,_=a,f=o,p=l.span.start,m=t(l.span),g=p+l.newLength;i=Math.min(d,p),a=Math.max(_,_+(m-f)),o=Math.max(g,g+(f-m))}return c(s(i,a),o-i)},e.getTypeParameterOwner=function(t){if(t&&150===t.kind)for(var r=t;r;r=r.parent)if(e.isFunctionLike(r)||e.isClassLike(r)||241===r.kind)return r},e.isParameterPropertyDeclaration=function(t){return e.hasModifier(t,92)&&157===t.parent.kind},e.isEmptyBindingPattern=u,e.isEmptyBindingElement=l,e.walkUpBindingElementsAndPatterns=d,e.getCombinedModifierFlags=function(t){return _(t,e.getModifierFlags)},e.getCombinedNodeFlags=function(e){return _(e,function(e){return e.flags})},e.validateLocaleAndSetLanguage=function(t,r,n){var i=/^([a-z]+)([_\-]([a-z]+))?$/.exec(t.toLowerCase());if(i){var a=i[1];o(a,i[3],n)||o(a,void 0,n),e.setUILocale(t)}else n&&n.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function o(t,n,i){var a=e.normalizePath(r.getExecutingFilePath()),o=e.getDirectoryPath(a),s=e.combinePaths(o,t);if(n&&(s=s+"-"+n),s=r.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!r.fileExists(s))return!1;var c="";try{c=r.readFile(s)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.localizedDiagnosticMessages=JSON.parse(c)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=f,e.isParseTreeNode=p,e.getParseTreeNode=function(e,t){return void 0===e||p(e)?e:!p(e=f(e))||t&&!t(e)?void 0:e},e.escapeLeadingUnderscores=function(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=m,e.idText=function(e){return m(e.escapedText)},e.symbolName=function(e){return m(e.escapedName)},e.getNameOfJSDocTypedef=h,e.isNamedDeclaration=function(e){return!!e.name},e.getNonAssignedNameOfDeclaration=y,e.getNameOfDeclaration=v,e.getJSDocParameterTags=b,e.getJSDocTypeParameterTags=function(t){var r=t.name.escapedText;return k(t.parent).filter(function(t){return e.isJSDocTemplateTag(t)&&t.typeParameters.some(function(e){return e.name.escapedText===r})})},e.hasJSDocParameterTags=function(t){return!!C(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return C(t,e.isJSDocAugmentsTag)},e.getJSDocClassTag=function(t){return C(t,e.isJSDocClassTag)},e.getJSDocEnumTag=function(t){return C(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return C(t,e.isJSDocThisTag)},e.getJSDocReturnTag=x,e.getJSDocTemplateTag=function(t){return C(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=S,e.getJSDocType=D,e.getJSDocReturnType=function(t){var r=x(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=S(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i))return i.type}},e.getJSDocTags=k,e.getAllJSDocTagsOfKind=function(e,t){return k(e).filter(function(e){return e.kind===t})},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(291===t.parent.kind),e.flatMap(t.parent.tags,function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0});if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=D(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}}(d||(d={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isIdentifier=function(e){return 72===e.kind},e.isQualifiedName=function(e){return 148===e.kind},e.isComputedPropertyName=function(e){return 149===e.kind},e.isTypeParameterDeclaration=function(e){return 150===e.kind},e.isParameter=function(e){return 151===e.kind},e.isDecorator=function(e){return 152===e.kind},e.isPropertySignature=function(e){return 153===e.kind},e.isPropertyDeclaration=function(e){return 154===e.kind},e.isMethodSignature=function(e){return 155===e.kind},e.isMethodDeclaration=function(e){return 156===e.kind},e.isConstructorDeclaration=function(e){return 157===e.kind},e.isGetAccessorDeclaration=function(e){return 158===e.kind},e.isSetAccessorDeclaration=function(e){return 159===e.kind},e.isCallSignatureDeclaration=function(e){return 160===e.kind},e.isConstructSignatureDeclaration=function(e){return 161===e.kind},e.isIndexSignatureDeclaration=function(e){return 162===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 159===e.kind||158===e.kind},e.isTypePredicateNode=function(e){return 163===e.kind},e.isTypeReferenceNode=function(e){return 164===e.kind},e.isFunctionTypeNode=function(e){return 165===e.kind},e.isConstructorTypeNode=function(e){return 166===e.kind},e.isTypeQueryNode=function(e){return 167===e.kind},e.isTypeLiteralNode=function(e){return 168===e.kind},e.isArrayTypeNode=function(e){return 169===e.kind},e.isTupleTypeNode=function(e){return 170===e.kind},e.isUnionTypeNode=function(e){return 173===e.kind},e.isIntersectionTypeNode=function(e){return 174===e.kind},e.isConditionalTypeNode=function(e){return 175===e.kind},e.isInferTypeNode=function(e){return 176===e.kind},e.isParenthesizedTypeNode=function(e){return 177===e.kind},e.isThisTypeNode=function(e){return 178===e.kind},e.isTypeOperatorNode=function(e){return 179===e.kind},e.isIndexedAccessTypeNode=function(e){return 180===e.kind},e.isMappedTypeNode=function(e){return 181===e.kind},e.isLiteralTypeNode=function(e){return 182===e.kind},e.isImportTypeNode=function(e){return 183===e.kind},e.isObjectBindingPattern=function(e){return 184===e.kind},e.isArrayBindingPattern=function(e){return 185===e.kind},e.isBindingElement=function(e){return 186===e.kind},e.isArrayLiteralExpression=function(e){return 187===e.kind},e.isObjectLiteralExpression=function(e){return 188===e.kind},e.isPropertyAccessExpression=function(e){return 189===e.kind},e.isElementAccessExpression=function(e){return 190===e.kind},e.isCallExpression=function(e){return 191===e.kind},e.isNewExpression=function(e){return 192===e.kind},e.isTaggedTemplateExpression=function(e){return 193===e.kind},e.isTypeAssertion=function(e){return 194===e.kind},e.isParenthesizedExpression=function(e){return 195===e.kind},e.skipPartiallyEmittedExpressions=function(e){for(;308===e.kind;)e=e.expression;return e},e.isFunctionExpression=function(e){return 196===e.kind},e.isArrowFunction=function(e){return 197===e.kind},e.isDeleteExpression=function(e){return 198===e.kind},e.isTypeOfExpression=function(e){return 199===e.kind},e.isVoidExpression=function(e){return 200===e.kind},e.isAwaitExpression=function(e){return 201===e.kind},e.isPrefixUnaryExpression=function(e){return 202===e.kind},e.isPostfixUnaryExpression=function(e){return 203===e.kind},e.isBinaryExpression=function(e){return 204===e.kind},e.isConditionalExpression=function(e){return 205===e.kind},e.isTemplateExpression=function(e){return 206===e.kind},e.isYieldExpression=function(e){return 207===e.kind},e.isSpreadElement=function(e){return 208===e.kind},e.isClassExpression=function(e){return 209===e.kind},e.isOmittedExpression=function(e){return 210===e.kind},e.isExpressionWithTypeArguments=function(e){return 211===e.kind},e.isAsExpression=function(e){return 212===e.kind},e.isNonNullExpression=function(e){return 213===e.kind},e.isMetaProperty=function(e){return 214===e.kind},e.isTemplateSpan=function(e){return 216===e.kind},e.isSemicolonClassElement=function(e){return 217===e.kind},e.isBlock=function(e){return 218===e.kind},e.isVariableStatement=function(e){return 219===e.kind},e.isEmptyStatement=function(e){return 220===e.kind},e.isExpressionStatement=function(e){return 221===e.kind},e.isIfStatement=function(e){return 222===e.kind},e.isDoStatement=function(e){return 223===e.kind},e.isWhileStatement=function(e){return 224===e.kind},e.isForStatement=function(e){return 225===e.kind},e.isForInStatement=function(e){return 226===e.kind},e.isForOfStatement=function(e){return 227===e.kind},e.isContinueStatement=function(e){return 228===e.kind},e.isBreakStatement=function(e){return 229===e.kind},e.isBreakOrContinueStatement=function(e){return 229===e.kind||228===e.kind},e.isReturnStatement=function(e){return 230===e.kind},e.isWithStatement=function(e){return 231===e.kind},e.isSwitchStatement=function(e){return 232===e.kind},e.isLabeledStatement=function(e){return 233===e.kind},e.isThrowStatement=function(e){return 234===e.kind},e.isTryStatement=function(e){return 235===e.kind},e.isDebuggerStatement=function(e){return 236===e.kind},e.isVariableDeclaration=function(e){return 237===e.kind},e.isVariableDeclarationList=function(e){return 238===e.kind},e.isFunctionDeclaration=function(e){return 239===e.kind},e.isClassDeclaration=function(e){return 240===e.kind},e.isInterfaceDeclaration=function(e){return 241===e.kind},e.isTypeAliasDeclaration=function(e){return 242===e.kind},e.isEnumDeclaration=function(e){return 243===e.kind},e.isModuleDeclaration=function(e){return 244===e.kind},e.isModuleBlock=function(e){return 245===e.kind},e.isCaseBlock=function(e){return 246===e.kind},e.isNamespaceExportDeclaration=function(e){return 247===e.kind},e.isImportEqualsDeclaration=function(e){return 248===e.kind},e.isImportDeclaration=function(e){return 249===e.kind},e.isImportClause=function(e){return 250===e.kind},e.isNamespaceImport=function(e){return 251===e.kind},e.isNamedImports=function(e){return 252===e.kind},e.isImportSpecifier=function(e){return 253===e.kind},e.isExportAssignment=function(e){return 254===e.kind},e.isExportDeclaration=function(e){return 255===e.kind},e.isNamedExports=function(e){return 256===e.kind},e.isExportSpecifier=function(e){return 257===e.kind},e.isMissingDeclaration=function(e){return 258===e.kind},e.isExternalModuleReference=function(e){return 259===e.kind},e.isJsxElement=function(e){return 260===e.kind},e.isJsxSelfClosingElement=function(e){return 261===e.kind},e.isJsxOpeningElement=function(e){return 262===e.kind},e.isJsxClosingElement=function(e){return 263===e.kind},e.isJsxFragment=function(e){return 264===e.kind},e.isJsxOpeningFragment=function(e){return 265===e.kind},e.isJsxClosingFragment=function(e){return 266===e.kind},e.isJsxAttribute=function(e){return 267===e.kind},e.isJsxAttributes=function(e){return 268===e.kind},e.isJsxSpreadAttribute=function(e){return 269===e.kind},e.isJsxExpression=function(e){return 270===e.kind},e.isCaseClause=function(e){return 271===e.kind},e.isDefaultClause=function(e){return 272===e.kind},e.isHeritageClause=function(e){return 273===e.kind},e.isCatchClause=function(e){return 274===e.kind},e.isPropertyAssignment=function(e){return 275===e.kind},e.isShorthandPropertyAssignment=function(e){return 276===e.kind},e.isSpreadAssignment=function(e){return 277===e.kind},e.isEnumMember=function(e){return 278===e.kind},e.isSourceFile=function(e){return 279===e.kind},e.isBundle=function(e){return 280===e.kind},e.isUnparsedSource=function(e){return 281===e.kind},e.isJSDocTypeExpression=function(e){return 283===e.kind},e.isJSDocAllType=function(e){return 284===e.kind},e.isJSDocUnknownType=function(e){return 285===e.kind},e.isJSDocNullableType=function(e){return 286===e.kind},e.isJSDocNonNullableType=function(e){return 287===e.kind},e.isJSDocOptionalType=function(e){return 288===e.kind},e.isJSDocFunctionType=function(e){return 289===e.kind},e.isJSDocVariadicType=function(e){return 290===e.kind},e.isJSDoc=function(e){return 291===e.kind},e.isJSDocAugmentsTag=function(e){return 295===e.kind},e.isJSDocClassTag=function(e){return 296===e.kind},e.isJSDocEnumTag=function(e){return 298===e.kind},e.isJSDocThisTag=function(e){return 301===e.kind},e.isJSDocParameterTag=function(e){return 299===e.kind},e.isJSDocReturnTag=function(e){return 300===e.kind},e.isJSDocTypeTag=function(e){return 302===e.kind},e.isJSDocTemplateTag=function(e){return 303===e.kind},e.isJSDocTypedefTag=function(e){return 304===e.kind},e.isJSDocPropertyTag=function(e){return 305===e.kind},e.isJSDocPropertyLikeTag=function(e){return 305===e.kind||299===e.kind},e.isJSDocTypeLiteral=function(e){return 292===e.kind},e.isJSDocCallbackTag=function(e){return 297===e.kind},e.isJSDocSignature=function(e){return 293===e.kind}}(d||(d={})),function(e){function t(e){return e>=148}function r(e){return 8<=e&&e<=14}function n(e){return 14<=e&&e<=17}function i(e){switch(e){case 118:case 121:case 77:case 125:case 80:case 85:case 115:case 113:case 114:case 133:case 116:return!0}return!1}function a(t){return!!(92&e.modifierToFlag(t))}function o(e){return e&&c(e.kind)}function s(e){switch(e){case 239:case 156:case 157:case 158:case 159:case 196:case 197:return!0;default:return!1}}function c(e){switch(e){case 155:case 160:case 293:case 161:case 162:case 165:case 289:case 166:return!0;default:return s(e)}}function u(e){var t=e.kind;return 157===t||154===t||156===t||158===t||159===t||162===t||217===t}function l(e){var t=e.kind;return 161===t||160===t||153===t||155===t||162===t}function d(e){var t=e.kind;return 275===t||276===t||277===t||156===t||158===t||159===t}function _(e){switch(e.kind){case 184:case 188:return!0}return!1}function f(e){switch(e.kind){case 185:case 187:return!0}return!1}function p(e){switch(e){case 189:case 190:case 192:case 191:case 260:case 261:case 264:case 193:case 187:case 195:case 188:case 209:case 196:case 72:case 13:case 8:case 9:case 10:case 14:case 206:case 87:case 96:case 100:case 102:case 98:case 213:case 214:case 92:return!0;default:return!1}}function m(e){switch(e){case 202:case 203:case 198:case 199:case 200:case 201:case 194:return!0;default:return p(e)}}function g(t){return function(e){switch(e){case 205:case 207:case 197:case 204:case 208:case 212:case 210:case 309:case 308:return!0;default:return m(e)}}(e.skipPartiallyEmittedExpressions(t).kind)}function h(e){return 308===e.kind}function y(e){return 307===e.kind}function v(e){return 239===e||258===e||240===e||241===e||242===e||243===e||244===e||249===e||248===e||255===e||254===e||247===e}function b(e){return 229===e||228===e||236===e||223===e||221===e||220===e||226===e||227===e||225===e||222===e||233===e||230===e||232===e||234===e||235===e||219===e||224===e||231===e||307===e||311===e||310===e}function x(e){return e.kind>=294&&e.kind<=305}function S(e){return!!e.initializer}e.isSyntaxList=function(e){return 306===e.kind},e.isNode=function(e){return t(e.kind)},e.isNodeKind=t,e.isToken=function(e){return e.kind>=0&&e.kind<=147},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=r,e.isLiteralExpression=function(e){return r(e.kind)},e.isTemplateLiteralKind=n,e.isTemplateLiteralToken=function(e){return n(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isStringTextContainingNode=function(e){return 10===e.kind||n(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isModifierKind=i,e.isParameterPropertyModifier=a,e.isClassMemberModifier=function(e){return a(e)||116===e},e.isModifier=function(e){return i(e.kind)},e.isEntityName=function(e){var t=e.kind;return 148===t||72===t},e.isPropertyName=function(e){var t=e.kind;return 72===t||10===t||8===t||149===t},e.isBindingName=function(e){var t=e.kind;return 72===t||184===t||185===t},e.isFunctionLike=o,e.isFunctionLikeDeclaration=function(e){return e&&s(e.kind)},e.isFunctionLikeKind=c,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&o(t.parent)},e.isClassElement=u,e.isClassLike=function(e){return e&&(240===e.kind||209===e.kind)},e.isAccessor=function(e){return e&&(158===e.kind||159===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 156:case 158:case 159:return!0;default:return!1}},e.isTypeElement=l,e.isClassOrTypeElement=function(e){return l(e)||u(e)},e.isObjectLiteralElementLike=d,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 165:case 166:return!0}return!1},e.isBindingPattern=function(e){if(e){var t=e.kind;return 185===t||184===t}return!1},e.isAssignmentPattern=function(e){var t=e.kind;return 187===t||188===t},e.isArrayBindingElement=function(e){var t=e.kind;return 186===t||210===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 237:case 151:case 186:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return _(e)||f(e)},e.isObjectBindingOrAssignmentPattern=_,e.isArrayBindingOrAssignmentPattern=f,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 189===t||148===t||183===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 189===t||148===t},e.isCallLikeExpression=function(e){switch(e.kind){case 262:case 261:case 191:case 192:case 193:case 152:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 191===e.kind||192===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 206===t||14===t},e.isLeftHandSideExpression=function(t){return p(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpression=function(t){return m(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 203:return!0;case 202:return 44===e.operator||45===e.operator;default:return!1}},e.isExpression=g,e.isAssertionExpression=function(e){var t=e.kind;return 194===t||212===t},e.isPartiallyEmittedExpression=h,e.isNotEmittedStatement=y,e.isNotEmittedOrPartiallyEmittedNode=function(e){return y(e)||h(e)},e.isIterationStatement=function e(t,r){switch(t.kind){case 225:case 226:case 227:case 223:case 224:return!0;case 233:return r&&e(t.statement,r)}return!1},e.isForInOrOfStatement=function(e){return 226===e.kind||227===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||g(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||g(t)},e.isModuleBody=function(e){var t=e.kind;return 245===t||244===t||72===t},e.isNamespaceBody=function(e){var t=e.kind;return 245===t||244===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 72===t||244===t},e.isNamedImportBindings=function(e){var t=e.kind;return 252===t||251===t},e.isModuleOrEnumDeclaration=function(e){return 244===e.kind||243===e.kind},e.isDeclaration=function(t){return 150===t.kind?303!==t.parent.kind||e.isInJSFile(t):197===(r=t.kind)||186===r||240===r||209===r||157===r||243===r||278===r||257===r||239===r||196===r||158===r||250===r||248===r||253===r||241===r||267===r||156===r||155===r||244===r||247===r||251===r||151===r||275===r||154===r||153===r||159===r||276===r||242===r||150===r||237===r||304===r||297===r||305===r;var r},e.isDeclarationStatement=function(e){return v(e.kind)},e.isStatementButNotDeclaration=function(e){return b(e.kind)},e.isStatement=function(t){var r=t.kind;return b(r)||v(r)||function(t){return 218===t.kind&&((void 0===t.parent||235!==t.parent.kind&&274!==t.parent.kind)&&!e.isFunctionBlock(t))}(t)},e.isModuleReference=function(e){var t=e.kind;return 259===t||148===t||72===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 100===t||72===t||189===t},e.isJsxChild=function(e){var t=e.kind;return 260===t||270===t||261===t||11===t||264===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 267===t||269===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||270===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 262===t||261===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 271===t||272===t},e.isJSDocNode=function(e){return e.kind>=283&&e.kind<=305},e.isJSDocCommentContainingNode=function(t){return 291===t.kind||x(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=x,e.isSetAccessor=function(e){return 159===e.kind},e.isGetAccessor=function(e){return 158===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=S,e.hasOnlyExpressionInitializer=function(t){return S(t)&&!e.isForStatement(t)&&!e.isForInStatement(t)&&!e.isForOfStatement(t)&&!e.isJsxAttribute(t)},e.isObjectLiteralElement=function(e){return 267===e.kind||269===e.kind||d(e)},e.isTypeReferenceType=function(e){return 164===e.kind||211===e.kind};var D=1073741823;e.guessIndentation=function(t){for(var r=D,n=0,i=t;n<i.length;n++){var a=i[n];if(a.length){for(var o=0;o<a.length&&o<r&&e.isWhiteSpaceLike(a.charCodeAt(o));o++);if(o<r&&(r=o),0===r)return 0}}return r===D?void 0:r},e.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind}}(d||(d={})),function(e){function t(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function r(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function n(){}function i(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function a(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function o(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,function(t,i){return""+e.Debug.assertDefined(r[+i+n])})}function s(t){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[t.key]||t.message}function c(e){return e.file?e.file.path:void 0}function u(t,r){return l(t,r)||function(t,r){if(!t.relatedInformation&&!r.relatedInformation)return 0;if(t.relatedInformation&&r.relatedInformation)return e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,function(e,t){var n=r.relatedInformation[t];return u(e,n)})||0;return t.relatedInformation?-1:1}(t,r)||0}function l(t,r){return e.compareStringsCaseSensitive(c(t),c(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||function(t,r){var n=t,i=r;for(;n&&i;){var a=e.isString(n)?n:n.messageText,o=e.isString(i)?i:i.messageText,s=e.compareStringsCaseSensitive(a,o);if(s)return s;n=e.isString(n)?void 0:n.next,i=e.isString(i)?void 0:i.next}if(!n&&!i)return 0;return n?1:-1}(t.messageText,r.messageText)||0}function d(e){return e.target||0}function _(t){return"number"==typeof t.module?t.module:d(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function f(e){return!(!e.declaration&&!e.composite)}function p(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function m(e,t){return t.strictFlag?p(e,t.name):e[t.name]}e.isNamedImportsOrExports=function(e){return 252===e.kind||256===e.kind},e.objectAllocator={getNodeConstructor:function(){return i},getTokenConstructor:function(){return i},getIdentifierConstructor:function(){return i},getSourceFileConstructor:function(){return i},getSymbolConstructor:function(){return t},getTypeConstructor:function(){return r},getSignatureConstructor:function(){return n},getSourceMapSourceConstructor:function(){return a}},e.formatStringFromArgs=o,e.getLocaleSpecificMessage=s,e.createFileDiagnostic=function(t,r,n,i){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length));var a=s(i);return arguments.length>4&&(a=o(a,arguments,4)),{file:t,start:r,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary}},e.formatMessage=function(e,t){var r=s(t);return arguments.length>2&&(r=o(r,arguments,2)),r},e.createCompilerDiagnostic=function(e){var t=s(e);return arguments.length>1&&(t=o(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}},e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,t){var r=s(t);return arguments.length>2&&(r=o(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next;return r.next=t,e},e.compareDiagnostics=u,e.compareDiagnosticsSkipRelatedInformation=l,e.getEmitScriptTarget=d,e.getEmitModuleKind=_,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;return void 0===r&&(r=_(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r},e.hasJsonModuleEmitEnabled=function(t){switch(_(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!f(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(t){var r=_(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:t.esModuleInterop||r===e.ModuleKind.System},e.getEmitDeclarations=f,e.getStrictOptionValue=p,e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return r!==t&&e.semanticDiagnosticsOptionDeclarations.some(function(n){return!e.isJsonEqual(m(r,n),m(t,n))})},e.getCompilerOptionValue=m,e.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0},e.directorySeparator="/";var g="\\",h="://",y=/\\/g;function v(t){return t.replace(y,e.directorySeparator)}function b(e){return e>=97&&e<=122||e>=65&&e<=90}function x(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:g,2);return n<0?t.length:n+1}if(b(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf(h);if(-1!==a){var o=a+h.length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),u=t.slice(o,s);if("file"===c&&(""===u||"localhost"===u)&&b(t.charCodeAt(s+1))){var l=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(t,s+2);if(-1!==l){if(47===t.charCodeAt(l))return~(l+1);if(l===t.length)return~l}}return~(s+1)}return~t.length}return 0}function S(e){var t=x(e);return t<0?~t:t}function D(e){return x(e)>0}function k(t,r){return void 0===r&&(r=""),function(t,r){var n=t.substring(0,r),i=t.substring(r).split(e.directorySeparator);return i.length&&!e.lastOrUndefined(i)&&i.pop(),[n].concat(i)}(t=e.combinePaths(r,t),S(t))}function C(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n<t.length;n++){var i=t[n];if(i&&"."!==i){if(".."===i)if(r.length>1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function T(e,t){return C(k(e,t))}function E(t){return 0===t.length?"":(t[0]&&e.ensureTrailingDirectorySeparator(t[0]))+t.slice(1).join(e.directorySeparator)}e.normalizeSlashes=v,e.getRootLength=S,e.normalizePath=function(t){return e.resolvePath(t)},e.normalizePathAndParts=function(t){var r=C(k(t=v(t))),n=r[0],i=r.slice(1);if(i.length){var a=n+i.join(e.directorySeparator);return{path:e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(a):a,parts:i}}return{path:n,parts:i}},e.getDirectoryPath=function(t){var r=S(t=v(t));return r===t.length?t:(t=e.removeTrailingDirectorySeparator(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))},e.startsWithDirectory=function(t,r,n){var i=n(t),a=n(r);return e.startsWith(i,a+"/")||e.startsWith(i,a+"\\")},e.isUrl=function(e){return x(e)<0},e.pathIsRelative=function(e){return/^\.\.?($|[\\\/])/.test(e)},e.isRootedDiskPath=D,e.isDiskPathRoot=function(e){var t=x(e);return t>0&&t===e.length},e.convertToRelativePath=function(t,r,n){return D(t)?e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1):t},e.getPathComponents=k,e.reducePathComponents=C,e.getNormalizedPathComponents=T,e.getNormalizedAbsolutePath=function(e,t){return E(T(e,t))},e.getPathFromPathComponents=E}(d||(d={})),function(e){function t(t,r,n,i){var a,o=e.reducePathComponents(e.getPathComponents(t)),s=e.reducePathComponents(e.getPathComponents(r));for(a=0;a<o.length&&a<s.length;a++){var c=i(o[a]),u=i(s[a]);if(!(0===a?e.equateStringsCaseInsensitive:n)(c,u))break}if(0===a)return s;for(var l=s.slice(a),d=[];a<o.length;a++)d.push("..");return[""].concat(d,l)}function r(r,n,i){O.assert(e.getRootLength(r)>0==e.getRootLength(n)>0,"Paths must either both be absolute or both be relative");var a="function"==typeof i?i:e.identity,o=t(r,n,"boolean"==typeof i&&i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,a);return e.getPathFromPathComponents(o)}function n(t){return 0!==e.getRootLength(t)||e.pathIsRelative(t)?t:"./"+t}function i(t,r,n){if(t=e.normalizeSlashes(t),e.getRootLength(t)===t.length)return"";var i=(t=c(t)).slice(Math.max(e.getRootLength(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?q(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function a(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];t&&(t=e.normalizeSlashes(t));for(var i=0,a=r;i<a.length;i++){var o=a[i];o&&(o=e.normalizeSlashes(o),t=t&&0===e.getRootLength(o)?u(t)+o:o)}return t}function o(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=e.some(r)?a.apply(void 0,[t].concat(r)):e.normalizeSlashes(t),o=e.getPathFromPathComponents(e.reducePathComponents(e.getPathComponents(i)));return o&&s(i)?u(o):o}function s(e){if(0===e.length)return!1;var t=e.charCodeAt(e.length-1);return 47===t||92===t}function c(e){return s(e)?e.substr(0,e.length-1):e}function u(t){return s(t)?t:t+e.directorySeparator}function l(t,r,n){if(t===r)return 0;if(void 0===t)return-1;if(void 0===r)return 1;for(var i=e.reducePathComponents(e.getPathComponents(t)),a=e.reducePathComponents(e.getPathComponents(r)),o=Math.min(i.length,a.length),s=0;s<o;s++){var c=(0===s?e.compareStringsCaseInsensitive:n)(i[s],a[s]);if(0!==c)return c}return e.compareValues(i.length,a.length)}function d(t,r,n,i){if("string"==typeof n?(t=a(n,t),r=a(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var o=e.reducePathComponents(e.getPathComponents(t)),s=e.reducePathComponents(e.getPathComponents(r));if(s.length<o.length)return!1;for(var c=i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,u=0;u<o.length;u++){if(!(0===u?e.equateStringsCaseInsensitive:c)(o[u],s[u]))return!1}return!0}e.getPathComponentsRelativeTo=t,e.getRelativePathFromFile=function(t,i,a){return n(r(e.getDirectoryPath(t),i,a))},e.getRelativePathFromDirectory=r,e.getRelativePathToDirectoryOrUrl=function(r,n,i,a,s){var c=t(o(i,r),o(i,n),e.equateStringsCaseSensitive,a),u=c[0];if(s&&e.isRootedDiskPath(u)){var l=u.charAt(0)===e.directorySeparator?"file://":"file:///";c[0]=l+u}return e.getPathFromPathComponents(c)},e.ensurePathIsNonModuleName=n,e.getBaseFileName=i,e.combinePaths=a,e.resolvePath=o,e.hasTrailingDirectorySeparator=s,e.removeTrailingDirectorySeparator=c,e.ensureTrailingDirectorySeparator=u,e.comparePathsCaseSensitive=function(t,r){return l(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return l(t,r,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,r,n,i){return"string"==typeof n?(t=a(n,t),r=a(n,r)):"boolean"==typeof n&&(i=n),l(t,r,e.getStringComparer(i))},e.containsPath=d,e.tryRemoveDirectoryPrefix=function(t,r,n){var i,a,o=e.tryRemovePrefix(t,r,n);return void 0===o?void 0:47===(a=(i=o).charCodeAt(0))||92===a?i.slice(1):void 0};var _=/[^\w\s\/]/g;function f(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(_,f)};var p=[42,63];function m(t){return e.stringContains(i(t),".")}e.hasExtension=m,e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var g="(?!("+e.commonPackageFolders.join("|")+")(/|$))",h={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+g+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return k(e,h.singleAsteriskRegexFragment)}},y={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+g+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return k(e,y.singleAsteriskRegexFragment)}},v={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return k(e,v.singleAsteriskRegexFragment)}},b={files:h,directories:y,exclude:v};function x(e,t,r){var n=S(e,t,r);if(n&&n.length)return"^("+n.map(function(e){return"("+e+")"}).join("|")+")"+("exclude"===r?"($|/)":"$")}function S(t,r,n){if(void 0!==t&&0!==t.length)return e.flatMap(t,function(t){return t&&function(t,r,n,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,u="",l=!1,d=e.getNormalizedPathComponents(t,r),f=e.last(d);if("exclude"!==n&&"**"===f)return;d[0]=c(d[0]),D(f)&&d.push("**","*");for(var p=0,m=0,h=d;m<h.length;m++){var y=h[m];if("**"===y)u+=o;else if("directories"===n&&(u+="(",p++),l&&(u+=e.directorySeparator),"exclude"!==n){var v="";42===y.charCodeAt(0)?(v+="([^./]"+a+")?",y=y.substr(1)):63===y.charCodeAt(0)&&(v+="[^./]",y=y.substr(1)),(v+=y.replace(_,s))!==y&&(u+=g),u+=v}else u+=y.replace(_,s);l=!0}for(;p>0;)u+=")?",p--;return u}(t,r,n,b[n])})}function D(e){return!/[.*?]/.test(e)}function k(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function C(t,r,n,i,o){t=e.normalizePath(t);var s=a(o=e.normalizePath(o),t);return{includeFilePatterns:e.map(S(n,s,"files"),function(e){return"^"+e+"$"}),includeFilePattern:x(n,s,"files"),includeDirectoryPattern:x(n,s,"directories"),excludePattern:x(r,s,"exclude"),basePaths:E(t,n,i)}}function T(e,t){return new RegExp(e,t?"":"i")}function E(t,r,n){var i=[t];if(r){for(var o=[],s=0,c=r;s<c.length;s++){var u=c[s],l=e.isRootedDiskPath(u)?u:e.normalizePath(a(t,u));o.push(N(l))}o.sort(e.getStringComparer(!n));for(var _=function(r){e.every(i,function(e){return!d(e,r,t,!n)})&&i.push(r)},f=0,p=o;f<p.length;f++){_(p[f])}}return i}function N(t){var r=e.indexOfAnyCharCode(t,p);return r<0?m(t)?c(e.getDirectoryPath(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function A(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":return 1;case".jsx":return 2;case".ts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getRegularExpressionForWildcard=x,e.getRegularExpressionsForWildcards=S,e.isImplicitGlob=D,e.getFileMatcherPatterns=C,e.getRegexFromPattern=T,e.matchFiles=function(t,r,n,i,o,s,c,u){t=e.normalizePath(t),s=e.normalizePath(s);for(var l=C(t,n,i,o,s),d=l.includeFilePatterns&&l.includeFilePatterns.map(function(e){return T(e,o)}),_=l.includeDirectoryPattern&&T(l.includeDirectoryPattern,o),f=l.excludePattern&&T(l.excludePattern,o),p=d?d.map(function(){return[]}):[[]],m=0,g=l.basePaths;m<g.length;m++){var h=g[m];y(h,a(s,h),c)}return e.flatten(p);function y(t,n,i){for(var o=u(t),s=o.files,c=o.directories,l=function(i){var o=a(t,i),s=a(n,i);if(r&&!e.fileExtensionIsOneOf(o,r))return"continue";if(f&&f.test(s))return"continue";if(d){var c=e.findIndex(d,function(e){return e.test(s)});-1!==c&&p[c].push(o)}else p[0].push(o)},m=0,g=e.sort(s,e.compareStringsCaseSensitive);m<g.length;m++)l(b=g[m]);if(void 0===i||0!=--i)for(var h=0,v=e.sort(c,e.compareStringsCaseSensitive);h<v.length;h++){var b=v[h],x=a(t,b),S=a(n,b);_&&!_.test(S)||f&&f.test(S)||y(x,S,i)}}},e.ensureScriptKind=function(e,t){return t||A(e)||3},e.getScriptKindFromFileName=A,e.supportedTSExtensions=[".ts",".tsx",".d.ts"],e.supportedTSExtensionsWithJson=[".ts",".tsx",".d.ts",".json"],e.supportedTSExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJSExtensions=[".js",".jsx"],e.supportedJSAndJsonExtensions=[".js",".jsx",".json"];var w=e.supportedTSExtensions.concat(e.supportedJSExtensions),P=e.supportedTSExtensions.concat(e.supportedJSExtensions,[".json"]);function F(t,r){var n=t&&t.allowJs;if(!r||0===r.length)return n?w:e.supportedTSExtensions;var i=(n?w:e.supportedTSExtensions).concat(e.mapDefined(r,function(e){return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)?e.extension:void 0;var t}));return e.deduplicate(i,e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function I(t,r){return t&&t.resolveJsonModule?r===w?P:r===e.supportedTSExtensions?e.supportedTSExtensionsWithJson:r.concat([".json"]):r}function M(e,t){return e<2?0:e<t.length?2:t.length}e.getSupportedExtensions=F,e.getSuppoertedExtensionsWithJsonIfResolveJsonModule=I,e.hasJSFileExtension=function(t){return e.some(e.supportedJSExtensions,function(r){return e.fileExtensionIs(t,r)})},e.hasJSOrJsonFileExtension=function(t){return e.supportedJSAndJsonExtensions.some(function(r){return e.fileExtensionIs(t,r)})},e.hasTSFileExtension=function(t){return e.some(e.supportedTSExtensions,function(r){return e.fileExtensionIs(t,r)})},e.isSupportedSourceFileName=function(t,r,n){if(!t)return!1;for(var i=0,a=I(r,F(r,n));i<a.length;i++){var o=a[i];if(e.fileExtensionIs(t,o))return!0}return!1},function(e){e[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest"}(e.ExtensionPriority||(e.ExtensionPriority={})),e.getExtensionPriority=function(t,r){for(var n=r.length-1;n>=0;n--)if(e.fileExtensionIs(t,r[n]))return M(n,r);return 0},e.adjustExtensionPriority=M,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var O,L=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function R(t,r){return e.fileExtensionIs(t,r)?B(t,r):void 0}function B(e,t){return e.substring(0,e.length-t.length)}function j(t,r,n,i){var a=void 0!==n&&void 0!==i?q(t,n,i):q(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t}function z(t){O.assert(e.hasZeroOrOneAsteriskCharacter(t));var r=t.indexOf("*");return-1===r?void 0:{prefix:t.substr(0,r),suffix:t.substr(r+1)}}function J(e){return".ts"===e||".tsx"===e||".d.ts"===e}function U(t){return e.find(L,function(r){return e.fileExtensionIs(t,r)})}function q(t,r,n){if(r)return function(t,r,n){"string"==typeof r&&(r=[r]);for(var i=0,a=r;i<a.length;i++){var o=a[i];if(e.startsWith(o,".")||(o="."+o),t.length>=o.length&&"."===t.charAt(t.length-o.length)){var s=t.slice(t.length-o.length);if(n(s,o))return s}}return""}(t,r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var a=i(t),o=a.lastIndexOf(".");return o>=0?a.substring(o):""}e.removeFileExtension=function(e){for(var t=0,r=L;t<r.length;t++){var n=R(e,r[t]);if(void 0!==n)return n}return e},e.tryRemoveExtension=R,e.removeExtension=B,e.changeExtension=function(e,t){return j(e,t,L,!1)},e.changeAnyExtension=j,function(t){function r(t){var r=e.SyntaxKind;return r?r[t.kind]:t.kind.toString()}t.showSymbol=function(t){var n=e.SymbolFlags;return"{ flags: "+(n?function(e,t){for(var r=[],n=0;n<=30;n++){var i=1<<n;e&i&&r.push(t[i])}return r.join("|")}(t.flags,n):t.flags)+"; declarations: "+e.map(t.declarations,r)+" }"},t.showSyntaxKind=r}(O=e.Debug||(e.Debug={})),e.tryParsePattern=z,e.positionIsSynthesized=function(e){return!(e>=0)},e.extensionIsTS=J,e.resolutionExtensionIsTSOrJson=function(e){return J(e)||".json"===e},e.extensionFromPath=function(e){var t=U(e);return void 0!==t?t:O.fail("File "+e+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==U(e)},e.tryGetExtensionFromPath=U,e.getAnyExtensionFromPath=q,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=z(o);if(s)n.push(s);else if(o===r)return o}return e.findBestPatternMatch(n,function(e){return e},r)},e.sliceAfter=function(e,t){var r=e.indexOf(t);return O.assert(-1!==r),e.slice(r)},e.minAndMax=function(e,t){O.assert(0!==e.length);for(var r=t(e[0]),n=r,i=1;i<e.length;i++){var a=t(e[i]);a<r?r=a:a>n&&(n=a)}return{min:r,max:n}};var K=function(){function t(){this.map=e.createMap()}return t.prototype.add=function(t){this.map.set(String(e.getNodeId(t)),t)},t.prototype.tryAdd=function(e){return!this.has(e)&&(this.add(e),!0)},t.prototype.has=function(t){return this.map.has(String(e.getNodeId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.some=function(t){return e.forEachEntry(this.map,t)||!1},t}();e.NodeSet=K;var V=function(){function t(){this.map=e.createMap()}return t.prototype.get=function(t){var r=this.map.get(String(e.getNodeId(t)));return r&&r.value},t.prototype.getOrUpdate=function(e,t){var r=this.get(e);if(r)return r;var n=t();return this.set(e,n),n},t.prototype.set=function(t,r){this.map.set(String(e.getNodeId(t)),{node:t,value:r})},t.prototype.has=function(t){return this.map.has(String(e.getNodeId(t)))},t.prototype.forEach=function(e){this.map.forEach(function(t){var r=t.node,n=t.value;return e(n,r)})},t}();e.NodeMap=V,e.rangeOfNode=function(t){return{pos:e.getTokenPosOfNode(t),end:t.end}},e.rangeOfTypeParameters=function(e){return{pos:e.pos-1,end:e.end+1}},e.skipTypeChecking=function(e,t){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib},e.isJsonEqual=function t(r,n){return r===n||"object"==typeof r&&null!==r&&"object"==typeof n&&null!==n&&e.equalOwnProperties(r,n,t)},e.getOrUpdate=function(e,t,r){var n=e.get(t);if(void 0===n){var i=r();return e.set(t,i),i}return n},e.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var u=c>>>4,l=e.charCodeAt(s),d=(l<=57?l-48:10+l-(l<=70?65:97))<<(15&c);o[u]|=d;var _=d>>>16;_&&(o[u+1]|=_)}for(var f="",p=o.length-1,m=!0;m;){var g=0;for(m=!1,u=p;u>=0;u--){var h=g<<16|o[u],y=h/10|0;o[u]=y,g=h-10*y,y&&!m&&(p=u,m=!0)}f=g+f}return f},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r}}(d||(d={})),function(e){var t,r,n,i,a,o,s;function c(e,t){return t&&e(t)}function u(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;n<i.length;n++){var a=e(i[n]);if(a)return a}}}function l(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function d(t,r,n){if(t&&!(t.kind<=147))switch(t.kind){case 148:return c(r,t.left)||c(r,t.right);case 150:return c(r,t.name)||c(r,t.constraint)||c(r,t.default)||c(r,t.expression);case 276:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.questionToken)||c(r,t.exclamationToken)||c(r,t.equalsToken)||c(r,t.objectAssignmentInitializer);case 277:return c(r,t.expression);case 151:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.dotDotDotToken)||c(r,t.name)||c(r,t.questionToken)||c(r,t.type)||c(r,t.initializer);case 154:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.questionToken)||c(r,t.exclamationToken)||c(r,t.type)||c(r,t.initializer);case 153:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.questionToken)||c(r,t.type)||c(r,t.initializer);case 275:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.questionToken)||c(r,t.initializer);case 237:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.exclamationToken)||c(r,t.type)||c(r,t.initializer);case 186:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.dotDotDotToken)||c(r,t.propertyName)||c(r,t.name)||c(r,t.initializer);case 165:case 166:case 160:case 161:case 162:return u(r,n,t.decorators)||u(r,n,t.modifiers)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||c(r,t.type);case 156:case 155:case 157:case 158:case 159:case 196:case 239:case 197:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.asteriskToken)||c(r,t.name)||c(r,t.questionToken)||c(r,t.exclamationToken)||u(r,n,t.typeParameters)||u(r,n,t.parameters)||c(r,t.type)||c(r,t.equalsGreaterThanToken)||c(r,t.body);case 164:return c(r,t.typeName)||u(r,n,t.typeArguments);case 163:return c(r,t.parameterName)||c(r,t.type);case 167:return c(r,t.exprName);case 168:return u(r,n,t.members);case 169:return c(r,t.elementType);case 170:return u(r,n,t.elementTypes);case 173:case 174:return u(r,n,t.types);case 175:return c(r,t.checkType)||c(r,t.extendsType)||c(r,t.trueType)||c(r,t.falseType);case 176:return c(r,t.typeParameter);case 183:return c(r,t.argument)||c(r,t.qualifier)||u(r,n,t.typeArguments);case 177:case 179:return c(r,t.type);case 180:return c(r,t.objectType)||c(r,t.indexType);case 181:return c(r,t.readonlyToken)||c(r,t.typeParameter)||c(r,t.questionToken)||c(r,t.type);case 182:return c(r,t.literal);case 184:case 185:case 187:return u(r,n,t.elements);case 188:return u(r,n,t.properties);case 189:return c(r,t.expression)||c(r,t.name);case 190:return c(r,t.expression)||c(r,t.argumentExpression);case 191:case 192:return c(r,t.expression)||u(r,n,t.typeArguments)||u(r,n,t.arguments);case 193:return c(r,t.tag)||u(r,n,t.typeArguments)||c(r,t.template);case 194:return c(r,t.type)||c(r,t.expression);case 195:case 198:case 199:case 200:return c(r,t.expression);case 202:return c(r,t.operand);case 207:return c(r,t.asteriskToken)||c(r,t.expression);case 201:return c(r,t.expression);case 203:return c(r,t.operand);case 204:return c(r,t.left)||c(r,t.operatorToken)||c(r,t.right);case 212:return c(r,t.expression)||c(r,t.type);case 213:return c(r,t.expression);case 214:return c(r,t.name);case 205:return c(r,t.condition)||c(r,t.questionToken)||c(r,t.whenTrue)||c(r,t.colonToken)||c(r,t.whenFalse);case 208:return c(r,t.expression);case 218:case 245:return u(r,n,t.statements);case 279:return u(r,n,t.statements)||c(r,t.endOfFileToken);case 219:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.declarationList);case 238:return u(r,n,t.declarations);case 221:return c(r,t.expression);case 222:return c(r,t.expression)||c(r,t.thenStatement)||c(r,t.elseStatement);case 223:return c(r,t.statement)||c(r,t.expression);case 224:return c(r,t.expression)||c(r,t.statement);case 225:return c(r,t.initializer)||c(r,t.condition)||c(r,t.incrementor)||c(r,t.statement);case 226:return c(r,t.initializer)||c(r,t.expression)||c(r,t.statement);case 227:return c(r,t.awaitModifier)||c(r,t.initializer)||c(r,t.expression)||c(r,t.statement);case 228:case 229:return c(r,t.label);case 230:return c(r,t.expression);case 231:return c(r,t.expression)||c(r,t.statement);case 232:return c(r,t.expression)||c(r,t.caseBlock);case 246:return u(r,n,t.clauses);case 271:return c(r,t.expression)||u(r,n,t.statements);case 272:return u(r,n,t.statements);case 233:return c(r,t.label)||c(r,t.statement);case 234:return c(r,t.expression);case 235:return c(r,t.tryBlock)||c(r,t.catchClause)||c(r,t.finallyBlock);case 274:return c(r,t.variableDeclaration)||c(r,t.block);case 152:return c(r,t.expression);case 240:case 209:case 241:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||u(r,n,t.typeParameters)||u(r,n,t.heritageClauses)||u(r,n,t.members);case 242:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||u(r,n,t.typeParameters)||c(r,t.type);case 243:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||u(r,n,t.members);case 278:return c(r,t.name)||c(r,t.initializer);case 244:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.body);case 248:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.name)||c(r,t.moduleReference);case 249:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.importClause)||c(r,t.moduleSpecifier);case 250:return c(r,t.name)||c(r,t.namedBindings);case 247:case 251:return c(r,t.name);case 252:case 256:return u(r,n,t.elements);case 255:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.exportClause)||c(r,t.moduleSpecifier);case 253:case 257:return c(r,t.propertyName)||c(r,t.name);case 254:return u(r,n,t.decorators)||u(r,n,t.modifiers)||c(r,t.expression);case 206:return c(r,t.head)||u(r,n,t.templateSpans);case 216:return c(r,t.expression)||c(r,t.literal);case 149:return c(r,t.expression);case 273:return u(r,n,t.types);case 211:return c(r,t.expression)||u(r,n,t.typeArguments);case 259:return c(r,t.expression);case 258:return u(r,n,t.decorators);case 309:return u(r,n,t.elements);case 260:return c(r,t.openingElement)||u(r,n,t.children)||c(r,t.closingElement);case 264:return c(r,t.openingFragment)||u(r,n,t.children)||c(r,t.closingFragment);case 261:case 262:return c(r,t.tagName)||u(r,n,t.typeArguments)||c(r,t.attributes);case 268:return u(r,n,t.properties);case 267:return c(r,t.name)||c(r,t.initializer);case 269:return c(r,t.expression);case 270:return c(r,t.dotDotDotToken)||c(r,t.expression);case 263:return c(r,t.tagName);case 171:case 172:case 283:case 287:case 286:case 288:case 290:return c(r,t.type);case 289:return u(r,n,t.parameters)||c(r,t.type);case 291:return u(r,n,t.tags);case 299:case 305:return c(r,t.tagName)||(t.isNameFirst?c(r,t.name)||c(r,t.typeExpression):c(r,t.typeExpression)||c(r,t.name));case 295:return c(r,t.tagName)||c(r,t.class);case 303:return c(r,t.tagName)||c(r,t.constraint)||u(r,n,t.typeParameters);case 304:return c(r,t.tagName)||(t.typeExpression&&283===t.typeExpression.kind?c(r,t.typeExpression)||c(r,t.fullName):c(r,t.fullName)||c(r,t.typeExpression));case 297:return c(r,t.tagName)||c(r,t.fullName)||c(r,t.typeExpression);case 300:case 302:case 301:case 298:return c(r,t.tagName)||c(r,t.typeExpression);case 293:return e.forEach(t.typeParameters,r)||e.forEach(t.parameters,r)||c(r,t.type);case 292:return e.forEach(t.jsDocPropertyTags,r);case 294:case 296:return c(r,t.tagName);case 308:return c(r,t.expression)}}function _(t){return e.fileExtensionIs(t,".d.ts")}function f(t,r){for(var n=e.createScanner(t.languageVersion,!1,0,r),i=[];;){var a=n.scan();if(!e.isTrivia(a))break;var o={kind:n.getToken(),pos:n.getTokenPos(),end:n.getTextPos()};v(i,o,r.substring(o.pos,o.end))}t.pragmas=e.createMap();for(var s=0,c=i;s<c.length;s++){var u=c[s];if(t.pragmas.has(u.name)){var l=t.pragmas.get(u.name);l instanceof Array?l.push(u.args):t.pragmas.set(u.name,[l,u.args])}else t.pragmas.set(u.name,u.args)}}function p(t,r){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach(function(n,i){switch(i){case"reference":var a=t.referencedFiles,o=t.typeReferenceDirectives,s=t.libReferenceDirectives;e.forEach(e.toArray(n),function(n){n.arguments["no-default-lib"]?t.hasNoDefaultLib=!0:n.arguments.types?o.push({pos:n.arguments.types.pos,end:n.arguments.types.end,fileName:n.arguments.types.value}):n.arguments.lib?s.push({pos:n.arguments.lib.pos,end:n.arguments.lib.end,fileName:n.arguments.lib.value}):n.arguments.path?a.push({pos:n.arguments.path.pos,end:n.arguments.path.end,fileName:n.arguments.path.value}):r(n.range.pos,n.range.end-n.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break;case"amd-dependency":t.amdDependencies=e.map(e.toArray(n),function(e){return{name:e.arguments.name,path:e.arguments.path}});break;case"amd-module":if(n instanceof Array)for(var c=0,u=n;c<u.length;c++){var l=u[c];t.moduleName&&r(l.range.pos,l.range.end-l.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=l.arguments.name}else t.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":e.forEach(e.toArray(n),function(e){(!t.checkJsDirective||e.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})});break;case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}})}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),e.createNode=function(t,o,s){return 279===t?new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,o,s):72===t?new(i||(i=e.objectAllocator.getIdentifierConstructor()))(t,o,s):e.isNodeKind(t)?new(r||(r=e.objectAllocator.getNodeConstructor()))(t,o,s):new(n||(n=e.objectAllocator.getTokenConstructor()))(t,o,s)},e.isJSDocLikeText=l,e.forEachChild=d,e.createSourceFile=function(t,r,n,i,a){var s;return void 0===i&&(i=!1),e.performance.mark("beforeParse"),s=100===n?o.parseSourceFile(t,r,n,void 0,i,6):o.parseSourceFile(t,r,n,void 0,i,a),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),s},e.parseIsolatedEntityName=function(e,t){return o.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return o.parseJsonText(e,t)},e.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},e.updateSourceFile=function(e,t,r,n){void 0===n&&(n=!1);var i=s.updateSourceFile(e,t,r,n);return i.flags|=1572864&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=o.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&o.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return o.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,i,a,o,s,c,u,m,g,h,y,v,b,S,D,k,C=e.createScanner(6,!0),T=10240,E=!1;function N(t,r,n,i,a){void 0===n&&(n=2),w(r,n,i,6),(o=O(t,2,6,!1)).flags=b,ne();var c=te();if(1===re())o.statements=be([],c,c),o.endOfFileToken=me();else{var u=ye(221);switch(re()){case 22:u.expression=Nr();break;case 102:case 87:case 96:u.expression=me();break;case 39:ce(function(){return 8===ne()&&57!==ne()})?u.expression=cr():u.expression=wr();break;case 8:case 10:if(ce(function(){return 57!==ne()})){u.expression=rt();break}default:u.expression=wr()}xe(u),o.statements=be([u],c),o.endOfFileToken=pe(1,e.Diagnostics.Unexpected_token)}a&&M(o),o.parseDiagnostics=s;var l=o;return P(),l}function A(e){return 4===e||2===e||1===e||6===e?1:0}function w(t,o,u,l){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getSourceFileConstructor(),m=t,c=u,s=[],v=0,h=e.createMap(),y=0,g=0,l){case 1:case 2:b=65536;break;case 6:b=16842752;break;default:b=0}E=!1,C.setText(m),C.setOnError(ee),C.setScriptTarget(o),C.setLanguageVariant(A(l))}function P(){C.setText(""),C.setOnError(void 0),s=void 0,o=void 0,h=void 0,c=void 0,m=void 0}function F(t,r,n,i){var a=_(t);return a&&(b|=4194304),(o=O(t,r,i,a)).flags=b,ne(),f(o,m),p(o,function(t,r,n){s.push(e.createFileDiagnostic(o,t,r,n))}),o.statements=Ke(0,Hr),e.Debug.assert(1===re()),o.endOfFileToken=I(me()),function(t){t.externalModuleIndicator=e.forEach(t.statements,On)||function(e){return 1048576&e.flags?Ln(e):void 0}(t)}(o),o.nodeCount=g,o.identifierCount=y,o.identifiers=h,o.parseDiagnostics=s,n&&M(o),o}function I(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,o.text),function(e){return k.parseJSDocComment(t,e.pos,e.end-e.pos)});return r.length&&(t.jsDoc=r),t}function M(t){var r=t;return void d(t,function t(n){if(n.parent!==r){n.parent=r;var i=r;if(r=n,d(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++){var s=o[a];s.parent=n,r=s,d(s,t)}r=i}})}function O(t,r,n,i){var o=new a(279,0,m.length);return g++,o.text=m,o.bindDiagnostics=[],o.bindSuggestionDiagnostics=void 0,o.languageVersion=r,o.fileName=e.normalizePath(t),o.languageVariant=A(n),o.isDeclarationFile=i,o.scriptKind=n,o}function L(e,t){e?b|=t:b&=~t}function R(e){L(e,2048)}function B(e){L(e,4096)}function j(e){L(e,8192)}function z(e){L(e,16384)}function J(e,t){var r=e&b;if(r){L(!1,r);var n=t();return L(!0,r),n}return t()}function U(e,t){var r=e&~b;if(r){L(!0,r);var n=t();return L(!1,r),n}return t()}function q(e){return J(2048,e)}function K(e){return U(16384,e)}function V(e){return 0!=(b&e)}function W(){return V(4096)}function H(){return V(2048)}function G(){return V(8192)}function X(){return V(16384)}function Q(e,t){Z(C.getTokenPos(),C.getTextPos(),e,t)}function Y(t,r,n,i){var a=e.lastOrUndefined(s);a&&t===a.start||s.push(e.createFileDiagnostic(o,t,r,n,i)),E=!0}function Z(e,t,r,n){Y(e,t-e,r,n)}function $(e,t,r){Z(e.pos,e.end,t,r)}function ee(e,t){Y(C.getTextPos(),t,e)}function te(){return C.getStartPos()}function re(){return u}function ne(){return u=C.scan()}function ie(){return u=C.reScanGreaterToken()}function ae(){return u=C.scanJsxIdentifier()}function oe(){return u=C.scanJsxToken()}function se(t,r){var n=u,i=s.length,a=E,o=b,c=r?C.lookAhead(t):C.tryScan(t);return e.Debug.assert(o===b),c&&!r||(u=n,s.length=i,E=a),c}function ce(e){return se(e,!0)}function ue(e){return se(e,!1)}function le(){return 72===re()||(117!==re()||!W())&&((122!==re()||!X())&&re()>108)}function de(t,r,n){return void 0===n&&(n=!0),re()===t?(n&&ne(),!0):(r?Q(r):Q(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function _e(e){return re()===e&&(ne(),!0)}function fe(e){if(re()===e)return me()}function pe(t,r,n){return fe(t)||Se(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function me(){var e=ye(re());return ne(),xe(e)}function ge(){return 26===re()||(19===re()||1===re()||C.hasPrecedingLineBreak())}function he(){return ge()?(26===re()&&ne(),!0):de(26)}function ye(t,a){g++;var o=a>=0?a:C.getStartPos();return e.isNodeKind(t)||0===t?new r(t,o,o):72===t?new i(t,o,o):new n(t,o,o)}function ve(e,t){var r=ye(e,t);return 2&C.getTokenFlags()&&I(r),r}function be(e,t,r){var n=e.length,i=n>=1&&n<=4?e.slice():e;return i.pos=t,i.end=void 0===r?C.getStartPos():r,i}function xe(e,t){return e.end=void 0===t?C.getStartPos():t,b&&(e.flags|=b),E&&(E=!1,e.flags|=32768),e}function Se(t,r,n,i){r?Y(C.getStartPos(),0,n,i):n&&Q(n,i);var a=ye(t);return 72===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),xe(a)}function De(e){var t=h.get(e);return void 0===t&&h.set(e,t=e),t}function ke(t,r){if(y++,t){var n=ye(72);return 72!==re()&&(n.originalKeywordKind=re()),n.escapedText=e.escapeLeadingUnderscores(De(C.getTokenValue())),ne(),xe(n)}return Se(72,1===re(),r||e.Diagnostics.Identifier_expected)}function Ce(e){return ke(le(),e)}function Te(t){return ke(e.tokenIsIdentifierOrKeyword(re()),t)}function Ee(){return e.tokenIsIdentifierOrKeyword(re())||10===re()||8===re()}function Ne(e){if(10===re()||8===re()){var t=rt();return t.text=De(t.text),t}return e&&22===re()?function(){var e=ye(149);return de(22),e.expression=q(Gt),de(23),xe(e)}():Te()}function Ae(){return Ne(!0)}function we(e){return re()===e&&ue(Fe)}function Pe(){return ne(),!C.hasPrecedingLineBreak()&&Ie()}function Fe(){switch(re()){case 77:return 84===ne();case 85:return ne(),80===re()?ce(Me):40!==re()&&119!==re()&&18!==re()&&Ie();case 80:return Me();case 116:case 126:case 137:return ne(),Ie();default:return Pe()}}function Ie(){return 22===re()||18===re()||40===re()||25===re()||Ee()}function Me(){return ne(),76===re()||90===re()||110===re()||118===re()&&ce(zr)||121===re()&&ce(Jr)}function Oe(t,r){if(We(t))return!0;switch(t){case 0:case 1:case 3:return!(26===re()&&r)&&Vr();case 2:return 74===re()||80===re();case 4:return ce(vt);case 5:return ce(fn)||26===re()&&!r;case 6:return 22===re()||Ee();case 12:switch(re()){case 22:case 40:case 25:case 24:return!0;default:return Ee()}case 18:return Ee();case 9:return 22===re()||25===re()||Ee();case 7:return 18===re()?ce(Le):r?le()&&!ze():Wt()&&!ze();case 8:return tn();case 10:return 27===re()||25===re()||tn();case 19:return le();case 15:switch(re()){case 27:case 24:return!0}case 11:return 25===re()||Ht();case 16:return dt(!1);case 17:return dt(!0);case 20:case 21:return 27===re()||Mt();case 22:return kn();case 23:return e.tokenIsIdentifierOrKeyword(re());case 13:return e.tokenIsIdentifierOrKeyword(re())||18===re();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Le(){if(e.Debug.assert(18===re()),19===ne()){var t=ne();return 27===t||18===t||86===t||109===t}return!0}function Re(){return ne(),le()}function Be(){return ne(),e.tokenIsIdentifierOrKeyword(re())}function je(){return ne(),e.tokenIsIdentifierOrKeywordOrGreaterThan(re())}function ze(){return(109===re()||86===re())&&ce(Je)}function Je(){return ne(),Ht()}function Ue(){return ne(),Mt()}function qe(e){if(1===re())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===re();case 3:return 19===re()||74===re()||80===re();case 7:return 18===re()||86===re()||109===re();case 8:return function(){if(ge())return!0;if(ir(re()))return!0;if(37===re())return!0;return!1}();case 19:return 30===re()||20===re()||18===re()||86===re()||109===re();case 11:return 21===re()||26===re();case 15:case 21:case 10:return 23===re();case 17:case 16:case 18:return 21===re()||23===re();case 20:return 27!==re();case 22:return 18===re()||19===re();case 13:return 30===re()||42===re();case 14:return 28===re()&&ce(An);default:return!1}}function Ke(e,t){var r=v;v|=1<<e;for(var n=[],i=te();!qe(e);)if(Oe(e,!1)){var a=Ve(e,t);n.push(a)}else if(He(e))break;return v=r,be(n,i)}function Ve(e,t){var r=We(e);return r?function(e){return C.setTextPos(e.end),ne(),e}(r):t()}function We(t){if(!E&&c){var r=c.currentNode(C.getStartPos());if(!e.nodeIsMissing(r))if(!r.intersectsChange)if(!e.containsParseError(r))if((12679168&r.flags)===b&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 157:case 162:case 158:case 159:case 154:case 217:return!0;case 156:var t=e,r=72===t.name.kind&&124===t.name.originalKeywordKind;return!r}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 271:case 272:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 239:case 219:case 218:case 222:case 221:case 234:case 230:case 232:case 229:case 228:case 226:case 227:case 225:case 224:case 231:case 220:case 235:case 233:case 223:case 236:case 249:case 248:case 255:case 254:case 244:case 240:case 241:case 243:case 242:return!0}return!1}(e);case 6:return function(e){return 278===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 161:case 155:case 162:case 153:case 160:return!0}return!1}(e);case 8:return function(e){if(237!==e.kind)return!1;return void 0===e.initializer}(e);case 17:case 16:return function(e){if(151!==e.kind)return!1;return void 0===e.initializer}(e);case 18:return!1}return!1}(r,t))return r.jsDocCache&&(r.jsDocCache=void 0),r}}function He(t){return Q(function(t){switch(t){case 0:case 1:return e.Diagnostics.Declaration_or_statement_expected;case 2:return e.Diagnostics.case_or_default_expected;case 3:return e.Diagnostics.Statement_expected;case 18:case 4:return e.Diagnostics.Property_or_signature_expected;case 5:return e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return e.Diagnostics.Enum_member_expected;case 7:return e.Diagnostics.Expression_expected;case 8:return e.Diagnostics.Variable_declaration_expected;case 9:return e.Diagnostics.Property_destructuring_pattern_expected;case 10:return e.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return e.Diagnostics.Argument_expression_expected;case 12:return e.Diagnostics.Property_assignment_expected;case 15:return e.Diagnostics.Expression_or_comma_expected;case 17:case 16:return e.Diagnostics.Parameter_declaration_expected;case 19:return e.Diagnostics.Type_parameter_declaration_expected;case 20:return e.Diagnostics.Type_argument_expected;case 21:return e.Diagnostics.Type_expected;case 22:return e.Diagnostics.Unexpected_token_expected;case 23:case 13:case 14:return e.Diagnostics.Identifier_expected;default:return}}(t)),!!function(){for(var e=0;e<24;e++)if(v&1<<e&&(Oe(e,!0)||qe(e)))return!0;return!1}()||(ne(),!1)}function Ge(e,t,r){var n=v;v|=1<<e;for(var i=[],a=te(),o=-1;;)if(Oe(e,!1)){var s=C.getStartPos();if(i.push(Ve(e,t)),o=C.getTokenPos(),_e(27))continue;if(o=-1,qe(e))break;de(27),r&&26===re()&&!C.hasPrecedingLineBreak()&&ne(),s===C.getStartPos()&&ne()}else{if(qe(e))break;if(He(e))break}v=n;var c=be(i,a);return o>=0&&(c.hasTrailingComma=!0),c}function Xe(){var e=be([],te());return e.isMissingList=!0,e}function Qe(e,t,r,n){if(de(r)){var i=Ge(e,t);return de(n),i}return Xe()}function Ye(e,t){for(var r=e?Te(t):Ce(t),n=C.getStartPos();_e(24);){if(28===re()){r.jsdocDotPos=n;break}n=C.getStartPos(),r=Ze(r,$e(e))}return r}function Ze(e,t){var r=ye(148,e.pos);return r.left=e,r.right=t,xe(r)}function $e(t){if(C.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(re())&&ce(jr))return Se(72,!0,e.Diagnostics.Identifier_expected);return t?Te():Ce()}function et(){var t,r=ye(206);r.head=(t=nt(re()),e.Debug.assert(15===t.kind,"Template head has wrong token kind"),t),e.Debug.assert(15===r.head.kind,"Template head has wrong token kind");var n=[],i=te();do{n.push(tt())}while(16===e.last(n).literal.kind);return r.templateSpans=be(n,i),xe(r)}function tt(){var t,r,n=ye(216);return n.expression=q(Gt),19===re()?(u=C.reScanTemplateToken(),r=nt(re()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),t=r):t=pe(17,e.Diagnostics._0_expected,e.tokenToString(19)),n.literal=t,xe(n)}function rt(){return nt(re())}function nt(e){var t=ye(e);return t.text=C.getTokenValue(),C.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),C.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&C.getTokenFlags()),ne(),xe(t),t}function it(){var t=ye(164);return t.typeName=Ye(!0,e.Diagnostics.Type_expected),C.hasPrecedingLineBreak()||28!==re()||(t.typeArguments=Qe(20,qt,28,30)),xe(t)}function at(e){var t=ye(284);return e?Lt(288,t):(ne(),xe(t))}function ot(){var e=ye(151);return 100!==re()&&95!==re()||(e.name=Te(),de(57)),e.type=st(),xe(e)}function st(){C.setInJSDocType(!0);var e=fe(25),t=Jt();if(C.setInJSDocType(!1),e){var r=ye(290,e.pos);r.type=t,t=xe(r)}return 59===re()?Lt(288,t):t}function ct(){var e=ye(150);return e.name=Ce(),_e(86)&&(Mt()||!Ht()?e.constraint=qt():e.expression=ur()),_e(59)&&(e.default=qt()),xe(e)}function ut(){if(28===re())return Qe(19,ct,28,30)}function lt(){if(_e(57))return qt()}function dt(t){return 25===re()||tn()||e.isModifierKind(re())||58===re()||Mt(!t)}function _t(){var t=ve(151);return 100===re()?(t.name=ke(!0),t.type=lt(),xe(t)):(t.decorators=pn(),t.modifiers=mn(),t.dotDotDotToken=fe(25),t.name=rn(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(re())&&ne(),t.questionToken=fe(56),t.type=lt(),t.initializer=Xt(),xe(t))}function ft(t,r,n){32&r||(n.typeParameters=ut());var i=function(e,t){if(!de(20))return e.parameters=Xe(),!1;var r=W(),n=X();return B(!!(1&t)),z(!!(2&t)),e.parameters=32&t?Ge(17,ot):Ge(16,_t),B(r),z(n),de(21)}(n,r);return(!function(t,r){if(37===t)return de(t),!0;if(_e(57))return!0;if(r&&37===re())return Q(e.Diagnostics._0_expected,e.tokenToString(57)),ne(),!0;return!1}(t,!!(4&r))||(n.type=Jt(),!function t(r){switch(r.kind){case 164:return e.nodeIsMissing(r.typeName);case 165:case 166:var n=r,i=n.parameters,a=n.type;return!!i.isMissingList||t(a);case 177:return t(r.type);default:return!1}}(n.type)))&&i}function pt(){_e(27)||he()}function mt(e){var t=ve(e);return 161===e&&de(95),ft(57,4,t),pt(),xe(t)}function gt(){return 22===re()&&ce(ht)}function ht(){if(ne(),25===re()||23===re())return!0;if(e.isModifierKind(re())){if(ne(),le())return!0}else{if(!le())return!1;ne()}return 57===re()||27===re()||56===re()&&(ne(),57===re()||27===re()||23===re())}function yt(e){return e.kind=162,e.parameters=Qe(16,_t,22,23),e.type=Vt(),pt(),xe(e)}function vt(){if(20===re()||28===re())return!0;for(var t=!1;e.isModifierKind(re());)t=!0,ne();return 22===re()||(Ee()&&(t=!0,ne()),!!t&&(20===re()||28===re()||56===re()||57===re()||27===re()||ge()))}function bt(){if(20===re()||28===re())return mt(160);if(95===re()&&ce(xt))return mt(161);var e=ve(0);return e.modifiers=mn(),gt()?yt(e):function(e){return e.name=Ae(),e.questionToken=fe(56),20===re()||28===re()?(e.kind=155,ft(57,4,e)):(e.kind=153,e.type=Vt(),59===re()&&(e.initializer=Xt())),pt(),xe(e)}(e)}function xt(){return ne(),20===re()||28===re()}function St(){return 24===ne()}function Dt(){switch(ne()){case 20:case 28:case 24:return!0}return!1}function kt(){var e;return de(18)?(e=Ke(4,bt),de(19)):e=Xe(),e}function Ct(){return ne(),38===re()||39===re()?133===ne():(133===re()&&ne(),22===re()&&Re()&&93===ne())}function Tt(){var e=ye(181);return de(18),133!==re()&&38!==re()&&39!==re()||(e.readonlyToken=me(),133!==e.readonlyToken.kind&&pe(133)),de(22),e.typeParameter=function(){var e=ye(150);return e.name=Ce(),de(93),e.constraint=qt(),xe(e)}(),de(23),56!==re()&&38!==re()&&39!==re()||(e.questionToken=me(),56!==e.questionToken.kind&&pe(56)),e.type=Vt(),he(),de(19),xe(e)}function Et(){var e=te();if(_e(25)){var t=ye(172,e);return t.type=qt(),xe(t)}var r=qt();return 2097152&b||286!==r.kind||r.pos!==r.type.pos||(r.kind=171),r}function Nt(){var e=me();return 24===re()?void 0:e}function At(e){var t,r=ye(182);e&&((t=ye(202)).operator=39,ne());var n=102===re()||87===re()?me():nt(re());return e&&(t.operand=n,xe(t),n=t),r.literal=n,xe(r)}function wt(){return ne(),92===re()}function Pt(){o.flags|=524288;var t=ye(183);return _e(104)&&(t.isTypeOf=!0),de(92),de(20),t.argument=qt(),de(21),_e(24)&&(t.qualifier=Ye(!0,e.Diagnostics.Type_expected)),t.typeArguments=Dn(),xe(t)}function Ft(){return ne(),8===re()||9===re()}function It(){switch(re()){case 120:case 143:case 138:case 135:case 146:case 139:case 123:case 141:case 132:case 136:return ue(Nt)||it();case 40:return at(!1);case 62:return at(!0);case 56:return n=C.getStartPos(),ne(),27===re()||19===re()||21===re()||30===re()||59===re()||50===re()?xe(r=ye(285,n)):((r=ye(286,n)).type=qt(),xe(r));case 90:return function(){if(ce(Nn)){var e=ve(289);return ne(),ft(57,36,e),xe(e)}var t=ye(164);return t.typeName=Te(),xe(t)}();case 52:return function(){var e=ye(287);return ne(),e.type=It(),xe(e)}();case 14:case 10:case 8:case 9:case 102:case 87:return At();case 39:return ce(Ft)?At(!0):it();case 106:case 96:return me();case 100:var e=(t=ye(178),ne(),xe(t));return 128!==re()||C.hasPrecedingLineBreak()?e:function(e){ne();var t=ye(163,e.pos);return t.parameterName=e,t.type=qt(),xe(t)}(e);case 104:return ce(wt)?Pt():function(){var e=ye(167);return de(104),e.exprName=Ye(!0),xe(e)}();case 18:return ce(Ct)?Tt():function(){var e=ye(168);return e.members=kt(),xe(e)}();case 22:return function(){var e=ye(170);return e.elementTypes=Qe(21,Et,22,23),xe(e)}();case 20:return function(){var e=ye(177);return de(20),e.type=qt(),de(21),xe(e)}();case 92:return Pt();default:return it()}var t,r,n}function Mt(e){switch(re()){case 120:case 143:case 138:case 135:case 146:case 123:case 139:case 142:case 106:case 141:case 96:case 100:case 104:case 132:case 18:case 22:case 28:case 50:case 49:case 95:case 10:case 8:case 9:case 102:case 87:case 136:case 40:case 56:case 52:case 25:case 127:case 92:return!0;case 90:return!e;case 39:return!e&&ce(Ft);case 20:return!e&&ce(Ot);default:return le()}}function Ot(){return ne(),21===re()||dt(!1)||Mt()}function Lt(e,t){ne();var r=ye(e,t.pos);return r.type=t,xe(r)}function Rt(){var e=re();switch(e){case 129:case 142:return function(e){var t=ye(179);return de(e),t.operator=e,t.type=Rt(),xe(t)}(e);case 127:return function(){var e=ye(176);de(127);var t=ye(150);return t.name=Ce(),e.typeParameter=xe(t),xe(e)}()}return function(){for(var e=It();!C.hasPrecedingLineBreak();)switch(re()){case 52:e=Lt(287,e);break;case 56:if(!(2097152&b)&&ce(Ue))return e;e=Lt(286,e);break;case 22:var t;de(22),Mt()?((t=ye(180,e.pos)).objectType=e,t.indexType=qt(),de(23),e=xe(t)):((t=ye(169,e.pos)).elementType=e,de(23),e=xe(t));break;default:return e}return e}()}function Bt(e,t,r){_e(r);var n=t();if(re()===r){for(var i=[n];_e(r);)i.push(t());var a=ye(e,n.pos);a.types=be(i,n.pos),n=xe(a)}return n}function jt(){return Bt(174,Rt,49)}function zt(){if(ne(),21===re()||25===re())return!0;if(function(){if(e.isModifierKind(re())&&mn(),le()||100===re())return ne(),!0;if(22===re()||18===re()){var t=s.length;return rn(),t===s.length}return!1}()){if(57===re()||27===re()||56===re()||59===re())return!0;if(21===re()&&(ne(),37===re()))return!0}return!1}function Jt(){var e=le()&&ue(Ut),t=qt();if(e){var r=ye(163,e.pos);return r.parameterName=e,r.type=t,xe(r)}return t}function Ut(){var e=Ce();if(128===re()&&!C.hasPrecedingLineBreak())return ne(),e}function qt(){return J(20480,Kt)}function Kt(e){if(28===re()||20===re()&&ce(zt)||95===re())return function(){var e=te(),t=ve(_e(95)?166:165,e);return ft(37,4,t),xe(t)}();var t=Bt(173,jt,50);if(!e&&!C.hasPrecedingLineBreak()&&_e(86)){var r=ye(175,t.pos);return r.checkType=t,r.extendsType=Kt(!0),de(56),r.trueType=Kt(),de(57),r.falseType=Kt(),xe(r)}return t}function Vt(){return _e(57)?qt():void 0}function Wt(){switch(re()){case 100:case 98:case 96:case 102:case 87:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 90:case 76:case 95:case 42:case 64:case 72:return!0;case 92:return ce(Dt);default:return le()}}function Ht(){if(Wt())return!0;switch(re()){case 38:case 39:case 53:case 52:case 81:case 104:case 106:case 44:case 45:case 28:case 122:case 117:return!0;default:return!!function(){if(H()&&93===re())return!1;return e.getBinaryOperatorPrecedence(re())>0}()||le()}}function Gt(){var e=G();e&&j(!1);for(var t,r=Qt();t=fe(27);)r=or(r,t,Qt());return e&&j(!0),r}function Xt(){return _e(59)?Qt():void 0}function Qt(){if(function(){if(117===re())return!!W()||ce(Ur);return!1}())return t=ye(207),ne(),C.hasPrecedingLineBreak()||40!==re()&&!Ht()?xe(t):(t.asteriskToken=fe(40),t.expression=Qt(),xe(t));var t,r=function(){var t=function(){if(20===re()||28===re()||121===re())return ce(Zt);if(37===re())return 1;return 0}();if(0===t)return;var r=1===t?tr(!0):ue($t);if(!r)return;var n=e.hasModifier(r,256),i=re();return r.equalsGreaterThanToken=pe(37),r.body=37===i||18===i?rr(n):Ce(),xe(r)}()||function(){if(121===re()&&1===ce(er)){var e=gn(),t=nr(0);return Yt(t,e)}return}();if(r)return r;var n=nr(0);return 72===n.kind&&37===re()?Yt(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(ie())?or(n,me(),Qt()):function(t){var r=fe(56);if(!r)return t;var n=ye(205,t.pos);return n.condition=t,n.questionToken=r,n.whenTrue=J(T,Qt),n.colonToken=pe(57),n.whenFalse=e.nodeIsPresent(n.colonToken)?Qt():Se(72,!1,e.Diagnostics._0_expected,e.tokenToString(57)),xe(n)}(n)}function Yt(t,r){var n;e.Debug.assert(37===re(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),r?(n=ye(197,r.pos)).modifiers=r:n=ye(197,t.pos);var i=ye(151,t.pos);return i.name=t,xe(i),n.parameters=be([i],i.pos,i.end),n.equalsGreaterThanToken=pe(37),n.body=rr(!!r),I(xe(n))}function Zt(){if(121===re()){if(ne(),C.hasPrecedingLineBreak())return 0;if(20!==re()&&28!==re())return 0}var t=re(),r=ne();if(20===t){if(21===r)switch(ne()){case 37:case 57:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&121!==r&&ce(Re))return 1;if(!le()&&100!==r)return 0;switch(ne()){case 57:return 1;case 56:return ne(),57===re()||27===re()||59===re()||21===re()?1:0;case 27:case 59:case 21:return 2}return 0}return e.Debug.assert(28===t),le()?1===o.languageVariant?ce(function(){var e=ne();if(86===e)switch(ne()){case 59:case 30:return!1;default:return!0}else if(27===e)return!0;return!1})?1:0:2:0}function $t(){return tr(!1)}function er(){if(121===re()){if(ne(),C.hasPrecedingLineBreak()||37===re())return 0;var e=nr(0);if(!C.hasPrecedingLineBreak()&&72===e.kind&&37===re())return 1}return 0}function tr(t){var r=ve(197);if(r.modifiers=gn(),(ft(57,e.hasModifier(r,256)?2:0,r)||t)&&(t||37===re()||18===re()))return r}function rr(e){return 18===re()?Mr(e?2:0):26===re()||90===re()||76===re()||!Vr()||18!==re()&&90!==re()&&76!==re()&&58!==re()&&Ht()?e?K(Qt):J(16384,Qt):Mr(16|(e?2:0))}function nr(e){return ar(e,ur())}function ir(e){return 93===e||147===e}function ar(t,r){for(;;){ie();var n=e.getBinaryOperatorPrecedence(re());if(!(41===re()?n>=t:n>t))break;if(93===re()&&H())break;if(119===re()){if(C.hasPrecedingLineBreak())break;ne(),r=sr(r,qt())}else r=or(r,me(),nr(n))}return r}function or(e,t,r){var n=ye(204,e.pos);return n.left=e,n.operatorToken=t,n.right=r,xe(n)}function sr(e,t){var r=ye(212,e.pos);return r.expression=e,r.type=t,xe(r)}function cr(){var e=ye(202);return e.operator=re(),ne(),e.operand=lr(),xe(e)}function ur(){if(function(){switch(re()){case 38:case 39:case 53:case 52:case 81:case 104:case 106:case 122:return!1;case 28:if(1!==o.languageVariant)return!1;default:return!0}}()){var t=dr();return 41===re()?ar(e.getBinaryOperatorPrecedence(re()),t):t}var r=re(),n=lr();if(41===re()){var i=e.skipTrivia(m,n.pos),a=n.end;194===n.kind?Z(i,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Z(i,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(r))}return n}function lr(){switch(re()){case 38:case 39:case 53:case 52:return cr();case 81:return e=ye(198),ne(),e.expression=lr(),xe(e);case 104:return function(){var e=ye(199);return ne(),e.expression=lr(),xe(e)}();case 106:return function(){var e=ye(200);return ne(),e.expression=lr(),xe(e)}();case 28:return function(){var e=ye(194);return de(28),e.type=qt(),de(30),e.expression=lr(),xe(e)}();case 122:if(122===re()&&(X()||ce(Ur)))return function(){var e=ye(201);return ne(),e.expression=lr(),xe(e)}();default:return dr()}var e}function dr(){if(44===re()||45===re())return(t=ye(202)).operator=re(),ne(),t.operand=_r(),xe(t);if(1===o.languageVariant&&28===re()&&ce(je))return pr(!0);var t,r=_r();return e.Debug.assert(e.isLeftHandSideExpression(r)),44!==re()&&45!==re()||C.hasPrecedingLineBreak()?r:((t=ye(203,r.pos)).operand=r,t.operator=re(),ne(),xe(t))}function _r(){var t;if(92===re())if(ce(xt))o.flags|=524288,t=me();else if(ce(St)){var r=C.getStartPos();ne(),ne();var n=ye(214,r);n.keywordToken=92,n.name=Te(),t=xe(n),o.flags|=1048576}else t=fr();else t=98===re()?function(){var t=me();if(20===re()||24===re()||22===re())return t;var r=ye(189,t.pos);return r.expression=t,pe(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),r.name=$e(!0),xe(r)}():fr();return function(e){for(;;)if(e=br(e),28!==re()){if(20!==re())return e;var t=ye(191,e.pos);t.expression=e,t.arguments=Dr(),e=xe(t)}else{var r=ue(kr);if(!r)return e;if(xr()){e=Sr(e,r);continue}var t=ye(191,e.pos);t.expression=e,t.typeArguments=r,t.arguments=Dr(),e=xe(t)}}(t)}function fr(){return br(Cr())}function pr(t){var r,n=function(e){var t=C.getStartPos();if(de(28),30===re()){var r=ye(265,t);return oe(),xe(r)}var n,i=hr(),a=Dn(),o=(s=ye(268),s.properties=Ke(13,vr),xe(s));var s;30===re()?(n=ye(262,t),oe()):(de(42),e?de(30):(de(30,void 0,!1),oe()),n=ye(261,t));return n.tagName=i,n.typeArguments=a,n.attributes=o,xe(n)}(t);if(262===n.kind)(i=ye(260,n.pos)).openingElement=n,i.children=gr(i.openingElement),i.closingElement=function(e){var t=ye(263);de(29),t.tagName=hr(),e?de(30):(de(30,void 0,!1),oe());return xe(t)}(t),x(i.openingElement.tagName,i.closingElement.tagName)||$(i.closingElement,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(m,i.openingElement.tagName)),r=xe(i);else if(265===n.kind){var i;(i=ye(264,n.pos)).openingFragment=n,i.children=gr(i.openingFragment),i.closingFragment=function(t){var r=ye(266);de(29),e.tokenIsIdentifierOrKeyword(re())&&$(hr(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);t?de(30):(de(30,void 0,!1),oe());return xe(r)}(t),r=xe(i)}else e.Debug.assert(261===n.kind),r=n;if(t&&28===re()){var a=ue(function(){return pr(!0)});if(a){Q(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=ye(204,r.pos);return o.end=a.end,o.left=r,o.right=a,o.operatorToken=Se(27,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return r}function mr(t,r){switch(r){case 1:return void(e.isJsxOpeningFragment(t)?$(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):$(t.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(m,t.tagName)));case 29:case 7:return;case 11:case 12:return(n=ye(11)).containsOnlyWhiteSpaces=12===u,u=C.scanJsxToken(),xe(n);case 18:return yr(!1);case 28:return pr(!1);default:return e.Debug.assertNever(r)}var n}function gr(e){var t=[],r=te(),n=v;for(v|=16384;;){var i=mr(e,u=C.reScanJsxToken());if(!i)break;t.push(i)}return v=n,be(t,r)}function hr(){ae();for(var e=100===re()?me():Te();_e(24);){var t=ye(189,e.pos);t.expression=e,t.name=$e(!0),e=xe(t)}return e}function yr(e){var t=ye(270);if(de(18))return 19!==re()&&(t.dotDotDotToken=fe(25),t.expression=Qt()),e?de(19):(de(19,void 0,!1),oe()),xe(t)}function vr(){if(18===re())return function(){var e=ye(269);return de(18),de(25),e.expression=Gt(),de(19),xe(e)}();ae();var e=ye(267);if(e.name=Te(),59===re())switch(u=C.scanJsxAttributeValue()){case 10:e.initializer=rt();break;default:e.initializer=yr(!0)}return xe(e)}function br(t){for(;;){if(fe(24)){var r=ye(189,t.pos);r.expression=t,r.name=$e(!0),t=xe(r)}else if(52!==re()||C.hasPrecedingLineBreak())if(G()||!_e(22)){if(!xr())return t;t=Sr(t,void 0)}else{var n=ye(190,t.pos);if(n.expression=t,23===re())n.argumentExpression=Se(72,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var i=q(Gt);e.isStringOrNumericLiteralLike(i)&&(i.text=De(i.text)),n.argumentExpression=i}de(23),t=xe(n)}else{ne();var a=ye(213,t.pos);a.expression=t,t=xe(a)}}}function xr(){return 14===re()||15===re()}function Sr(e,t){var r=ye(193,e.pos);return r.tag=e,r.typeArguments=t,r.template=14===re()?rt():et(),xe(r)}function Dr(){de(20);var e=Ge(11,Er);return de(21),e}function kr(){if(_e(28)){var e=Ge(20,qt);if(de(30))return e&&function(){switch(re()){case 20:case 14:case 15:case 24:case 21:case 23:case 57:case 26:case 56:case 33:case 35:case 34:case 36:case 54:case 55:case 51:case 49:case 50:case 19:case 1:return!0;case 27:case 18:default:return!1}}()?e:void 0}}function Cr(){switch(re()){case 8:case 9:case 10:case 14:return rt();case 100:case 98:case 96:case 102:case 87:return me();case 20:return t=ve(195),de(20),t.expression=q(Gt),de(21),xe(t);case 22:return Nr();case 18:return wr();case 121:if(!ce(Jr))break;return Pr();case 76:return vn(ve(0),209);case 90:return Pr();case 95:return function(){var t=C.getStartPos();if(de(95),_e(24)){var r=ye(214,t);return r.keywordToken=95,r.name=Te(),xe(r)}var n,i=Cr();for(;;){i=br(i),n=ue(kr),xr()&&(e.Debug.assert(!!n,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),i=Sr(i,n),n=void 0);break}var a=ye(192,t);a.expression=i,a.typeArguments=n,(a.typeArguments||20===re())&&(a.arguments=Dr());return xe(a)}();case 42:case 64:if(13===(u=C.reScanSlashToken()))return rt();break;case 15:return et()}var t;return Ce(e.Diagnostics.Expression_expected)}function Tr(){return 25===re()?(e=ye(208),de(25),e.expression=Qt(),xe(e)):27===re()?ye(210):Qt();var e}function Er(){return J(T,Tr)}function Nr(){var e=ye(187);return de(22),C.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ge(15,Tr),de(23),xe(e)}function Ar(){var e=ve(0);if(fe(25))return e.kind=277,e.expression=Qt(),xe(e);if(e.decorators=pn(),e.modifiers=mn(),we(126))return _n(e,158);if(we(137))return _n(e,159);var t=fe(40),r=le();if(e.name=Ae(),e.questionToken=fe(56),e.exclamationToken=fe(52),t||20===re()||28===re())return ln(e,t);if(r&&57!==re()){e.kind=276;var n=fe(59);n&&(e.equalsToken=n,e.objectAssignmentInitializer=q(Qt))}else e.kind=275,de(57),e.initializer=q(Qt);return xe(e)}function wr(){var e=ye(188);return de(18),C.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ge(12,Ar,!0),de(19),xe(e)}function Pr(){var t=G();t&&j(!1);var r=ve(196);r.modifiers=mn(),de(90),r.asteriskToken=fe(40);var n=r.asteriskToken?1:0,i=e.hasModifier(r,256)?2:0;return r.name=n&&i?U(20480,Fr):n?function(e){return U(4096,e)}(Fr):i?K(Fr):Fr(),ft(57,n|i,r),r.body=Mr(n|i),t&&j(!0),xe(r)}function Fr(){return le()?Ce():void 0}function Ir(e,t){var r=ye(218);return de(18,t)||e?(C.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=Ke(1,Hr),de(19)):r.statements=Xe(),xe(r)}function Mr(e,t){var r=W();B(!!(1&e));var n=X();z(!!(2&e));var i=G();i&&j(!1);var a=Ir(!!(16&e),t);return i&&j(!0),B(r),z(n),a}function Or(){var e=te();de(89);var t,r,n=fe(122);if(de(20),26!==re()&&(t=105===re()||111===re()||77===re()?on(!0):U(2048,Gt)),n?de(147):_e(147)){var i=ye(227,e);i.awaitModifier=n,i.initializer=t,i.expression=q(Qt),de(21),r=i}else if(_e(93)){var a=ye(226,e);a.initializer=t,a.expression=q(Gt),de(21),r=a}else{var o=ye(225,e);o.initializer=t,de(26),26!==re()&&21!==re()&&(o.condition=q(Gt)),de(26),21!==re()&&(o.incrementor=q(Gt)),de(21),r=o}return r.statement=Hr(),xe(r)}function Lr(e){var t=ye(e);return de(229===e?73:78),ge()||(t.label=Ce()),he(),xe(t)}function Rr(){return 74===re()?(e=ye(271),de(74),e.expression=q(Gt),de(57),e.statements=Ke(3,Hr),xe(e)):function(){var e=ye(272);return de(80),de(57),e.statements=Ke(3,Hr),xe(e)}();var e}function Br(){var e=ye(235);return de(103),e.tryBlock=Ir(!1),e.catchClause=75===re()?function(){var e=ye(274);de(75),_e(20)?(e.variableDeclaration=an(),de(21)):e.variableDeclaration=void 0;return e.block=Ir(!1),xe(e)}():void 0,e.catchClause&&88!==re()||(de(88),e.finallyBlock=Ir(!1)),xe(e)}function jr(){return ne(),e.tokenIsIdentifierOrKeyword(re())&&!C.hasPrecedingLineBreak()}function zr(){return ne(),76===re()&&!C.hasPrecedingLineBreak()}function Jr(){return ne(),90===re()&&!C.hasPrecedingLineBreak()}function Ur(){return ne(),(e.tokenIsIdentifierOrKeyword(re())||8===re()||9===re()||10===re())&&!C.hasPrecedingLineBreak()}function qr(){for(;;)switch(re()){case 105:case 111:case 77:case 90:case 76:case 84:return!0;case 110:case 140:return ne(),!C.hasPrecedingLineBreak()&&le();case 130:case 131:return Yr();case 118:case 121:case 125:case 113:case 114:case 115:case 133:if(ne(),C.hasPrecedingLineBreak())return!1;continue;case 145:return ne(),18===re()||72===re()||85===re();case 92:return ne(),10===re()||40===re()||18===re()||e.tokenIsIdentifierOrKeyword(re());case 85:if(ne(),59===re()||40===re()||18===re()||80===re()||119===re())return!0;continue;case 116:ne();continue;default:return!1}}function Kr(){return ce(qr)}function Vr(){switch(re()){case 58:case 26:case 18:case 105:case 111:case 90:case 76:case 84:case 91:case 82:case 107:case 89:case 78:case 73:case 97:case 108:case 99:case 101:case 103:case 79:case 75:case 88:return!0;case 92:return Kr()||ce(Dt);case 77:case 85:return Kr();case 121:case 125:case 110:case 130:case 131:case 140:case 145:return!0;case 115:case 113:case 114:case 116:case 133:return Kr()||!ce(jr);default:return Ht()}}function Wr(){return ne(),le()||18===re()||22===re()}function Hr(){switch(re()){case 26:return e=ye(220),de(26),xe(e);case 18:return Ir(!1);case 105:return cn(ve(237));case 111:if(ce(Wr))return cn(ve(237));break;case 90:return un(ve(239));case 76:return yn(ve(240));case 91:return function(){var e=ye(222);return de(91),de(20),e.expression=q(Gt),de(21),e.thenStatement=Hr(),e.elseStatement=_e(83)?Hr():void 0,xe(e)}();case 82:return function(){var e=ye(223);return de(82),e.statement=Hr(),de(107),de(20),e.expression=q(Gt),de(21),_e(26),xe(e)}();case 107:return function(){var e=ye(224);return de(107),de(20),e.expression=q(Gt),de(21),e.statement=Hr(),xe(e)}();case 89:return Or();case 78:return Lr(228);case 73:return Lr(229);case 97:return function(){var e=ye(230);return de(97),ge()||(e.expression=q(Gt)),he(),xe(e)}();case 108:return function(){var e=ye(231);return de(108),de(20),e.expression=q(Gt),de(21),e.statement=U(8388608,Hr),xe(e)}();case 99:return function(){var e=ye(232);de(99),de(20),e.expression=q(Gt),de(21);var t=ye(246);return de(18),t.clauses=Ke(2,Rr),de(19),e.caseBlock=xe(t),xe(e)}();case 101:return function(){var e=ye(234);return de(101),e.expression=C.hasPrecedingLineBreak()?void 0:q(Gt),he(),xe(e)}();case 103:case 75:case 88:return Br();case 79:return function(){var e=ye(236);return de(79),he(),xe(e)}();case 58:return Xr();case 121:case 110:case 140:case 130:case 131:case 125:case 77:case 84:case 85:case 92:case 113:case 114:case 115:case 118:case 116:case 133:case 145:if(Kr())return Xr()}var e;return function(){var e=ve(0),t=q(Gt);return 72===t.kind&&_e(57)?(e.kind=233,e.label=t,e.statement=Hr()):(e.kind=221,e.expression=t,he()),xe(e)}()}function Gr(e){return 125===e.kind}function Xr(){var t=ve(0);if(t.decorators=pn(),t.modifiers=mn(),e.some(t.modifiers,Gr)){for(var r=0,n=t.modifiers;r<n.length;r++){n[r].flags|=4194304}return U(4194304,function(){return Qr(t)})}return Qr(t)}function Qr(t){switch(re()){case 105:case 111:case 77:return cn(t);case 90:return un(t);case 76:return yn(t);case 110:return function(e){return e.kind=241,de(110),e.name=Ce(),e.typeParameters=ut(),e.heritageClauses=bn(),e.members=kt(),xe(e)}(t);case 140:return function(e){return e.kind=242,de(140),e.name=Ce(),e.typeParameters=ut(),de(59),e.type=qt(),he(),xe(e)}(t);case 84:return function(e){e.kind=243,de(84),e.name=Ce(),de(18)?(e.members=Ge(6,Cn),de(19)):e.members=Xe();return xe(e)}(t);case 145:case 130:case 131:return function(e){var t=0;if(145===re())return En(e);if(_e(131))t|=16;else if(de(130),10===re())return En(e);return function e(t,r){t.kind=244;var n=16&r;t.flags|=r;t.name=Ce();t.body=_e(24)?e(ye(0),4|n):Tn();return xe(t)}(e,t)}(t);case 92:return function(e){de(92);var t,r=C.getStartPos();if(le()&&(t=Ce(),27!==re()&&144!==re()))return function(e,t){return e.kind=248,e.name=t,de(59),e.moduleReference=function(){return 134===re()&&ce(Nn)?(e=ye(259),de(134),de(20),e.expression=wn(),de(21),xe(e)):Ye(!1);var e}(),he(),xe(e)}(e,t);e.kind=249,(t||40===re()||18===re())&&(e.importClause=function(e,t){var r=ye(250,t);e&&(r.name=e);r.name&&!_e(27)||(r.namedBindings=40===re()?(n=ye(251),de(40),de(119),n.name=Ce(),xe(n)):Pn(252));var n;return xe(r)}(t,r),de(144));return e.moduleSpecifier=wn(),he(),xe(e)}(t);case 85:switch(ne(),re()){case 80:case 59:return function(e){e.kind=254,_e(59)?e.isExportEquals=!0:de(80);return e.expression=Qt(),he(),xe(e)}(t);case 119:return function(e){return e.kind=247,de(119),de(131),e.name=Ce(),he(),xe(e)}(t);default:return function(e){e.kind=255,_e(40)?(de(144),e.moduleSpecifier=wn()):(e.exportClause=Pn(256),(144===re()||10===re()&&!C.hasPrecedingLineBreak())&&(de(144),e.moduleSpecifier=wn()));return he(),xe(e)}(t)}default:if(t.decorators||t.modifiers){var r=Se(258,!0,e.Diagnostics.Declaration_expected);return r.pos=t.pos,r.decorators=t.decorators,r.modifiers=t.modifiers,xe(r)}return}}function Yr(){return ne(),!C.hasPrecedingLineBreak()&&(le()||10===re())}function Zr(e,t){if(18===re()||!ge())return Mr(e,t);he()}function $r(){if(27===re())return ye(210);var e=ye(186);return e.dotDotDotToken=fe(25),e.name=rn(),e.initializer=Xt(),xe(e)}function en(){var e=ye(186);e.dotDotDotToken=fe(25);var t=le(),r=Ae();return t&&57!==re()?e.name=r:(de(57),e.propertyName=r,e.name=rn()),e.initializer=Xt(),xe(e)}function tn(){return 18===re()||22===re()||le()}function rn(){return 22===re()?(e=ye(185),de(22),e.elements=Ge(10,$r),de(23),xe(e)):18===re()?function(){var e=ye(184);return de(18),e.elements=Ge(9,en),de(19),xe(e)}():Ce();var e}function nn(){return an(!0)}function an(e){var t=ye(237);return t.name=rn(),e&&72===t.name.kind&&52===re()&&!C.hasPrecedingLineBreak()&&(t.exclamationToken=me()),t.type=Vt(),ir(re())||(t.initializer=Xt()),xe(t)}function on(t){var r=ye(238);switch(re()){case 105:break;case 111:r.flags|=1;break;case 77:r.flags|=2;break;default:e.Debug.fail()}if(ne(),147===re()&&ce(sn))r.declarations=Xe();else{var n=H();R(t),r.declarations=Ge(8,t?an:nn),R(n)}return xe(r)}function sn(){return Re()&&21===ne()}function cn(e){return e.kind=219,e.declarationList=on(!1),he(),xe(e)}function un(t){t.kind=239,de(90),t.asteriskToken=fe(40),t.name=e.hasModifier(t,512)?Fr():Ce();var r=t.asteriskToken?1:0,n=e.hasModifier(t,256)?2:0;return ft(57,r|n,t),t.body=Zr(r|n,e.Diagnostics.or_expected),xe(t)}function ln(t,r,n){t.kind=156,t.asteriskToken=r;var i=r?1:0,a=e.hasModifier(t,256)?2:0;return ft(57,i|a,t),t.body=Zr(i|a,n),xe(t)}function dn(t){return t.kind=154,t.questionToken||52!==re()||C.hasPrecedingLineBreak()||(t.exclamationToken=me()),t.type=Vt(),t.initializer=e.hasModifier(t,32)?q(Xt):J(6144,Xt),he(),xe(t)}function _n(e,t){return e.kind=t,e.name=Ae(),ft(57,0,e),e.body=Zr(0),xe(e)}function fn(){var t;if(58===re())return!0;for(;e.isModifierKind(re());){if(t=re(),e.isClassMemberModifier(t))return!0;ne()}if(40===re())return!0;if(Ee()&&(t=re(),ne()),22===re())return!0;if(void 0!==t){if(!e.isKeyword(t)||137===t||126===t)return!0;switch(re()){case 20:case 28:case 52:case 57:case 59:case 56:return!0;default:return ge()}}return!1}function pn(){for(var e,t=te();;){var r=te();if(!_e(58))break;var n=ye(152,r);n.expression=U(8192,_r),xe(n),(e||(e=[])).push(n)}return e&&be(e,t)}function mn(t){for(var r,n=te();;){var i=C.getStartPos(),a=re();if(77===re()&&t){if(!ue(Pe))break}else if(!e.isModifierKind(re())||!ue(Fe))break;var o=xe(ye(a,i));(r||(r=[])).push(o)}return r&&be(r,n)}function gn(){var e;if(121===re()){var t=C.getStartPos(),r=re();ne(),e=be([xe(ye(r,t))],t)}return e}function hn(){if(26===re()){var t=ye(217);return ne(),xe(t)}var r=ve(0);return r.decorators=pn(),r.modifiers=mn(!0),we(126)?_n(r,158):we(137)?_n(r,159):124===re()?function(t){return t.kind=157,de(124),ft(57,0,t),t.body=Zr(0,e.Diagnostics.or_expected),xe(t)}(r):gt()?yt(r):e.tokenIsIdentifierOrKeyword(re())||10===re()||8===re()||40===re()||22===re()?function(t){var r=fe(40);return t.name=Ae(),t.questionToken=fe(56),r||20===re()||28===re()?ln(t,r,e.Diagnostics.or_expected):dn(t)}(r):r.decorators||r.modifiers?(r.name=Se(72,!0,e.Diagnostics.Declaration_expected),dn(r)):e.Debug.fail("Should not have attempted to parse class member declaration.")}function yn(e){return vn(e,240)}function vn(e,t){return e.kind=t,de(76),e.name=!le()||109===re()&&ce(Be)?void 0:Ce(),e.typeParameters=ut(),e.heritageClauses=bn(),de(18)?(e.members=Ke(5,hn),de(19)):e.members=Xe(),xe(e)}function bn(){if(kn())return Ke(22,xn)}function xn(){var t=re();e.Debug.assert(86===t||109===t);var r=ye(273);return r.token=t,ne(),r.types=Ge(7,Sn),xe(r)}function Sn(){var e=ye(211);return e.expression=_r(),e.typeArguments=Dn(),xe(e)}function Dn(){return 28===re()?Qe(20,qt,28,30):void 0}function kn(){return 86===re()||109===re()}function Cn(){var e=ve(278);return e.name=Ae(),e.initializer=q(Xt),xe(e)}function Tn(){var e=ye(245);return de(18)?(e.statements=Ke(1,Hr),de(19)):e.statements=Xe(),xe(e)}function En(e){return e.kind=244,145===re()?(e.name=Ce(),e.flags|=512):(e.name=rt(),e.name.text=De(e.name.text)),18===re()?e.body=Tn():he(),xe(e)}function Nn(){return 20===ne()}function An(){return 42===ne()}function wn(){if(10===re()){var e=rt();return e.text=De(e.text),e}return Gt()}function Pn(e){var t=ye(e);return t.elements=Qe(23,252===e?In:Fn,18,19),xe(t)}function Fn(){return Mn(257)}function In(){return Mn(253)}function Mn(t){var r=ye(t),n=e.isKeyword(re())&&!le(),i=C.getTokenPos(),a=C.getTextPos(),o=Te();return 119===re()?(r.propertyName=o,de(119),n=e.isKeyword(re())&&!le(),i=C.getTokenPos(),a=C.getTextPos(),r.name=Te()):r.name=o,253===t&&n&&Z(i,a,e.Diagnostics.Identifier_expected),xe(r)}function On(t){return e.hasModifier(t,1)||248===t.kind&&259===t.moduleReference.kind||249===t.kind||254===t.kind||255===t.kind?t:void 0}function Ln(t){return function(t){return e.isMetaProperty(t)&&92===t.keywordToken&&"meta"===t.name.escapedText}(t)?t:d(t,Ln)}t.parseSourceFile=function(t,r,n,i,a,o){if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var s=N(t,r,n,i,a);return e.convertToObjectWorker(s,s.parseDiagnostics,!1,void 0,void 0),s.referencedFiles=e.emptyArray,s.typeReferenceDirectives=e.emptyArray,s.libReferenceDirectives=e.emptyArray,s.amdDependencies=e.emptyArray,s.hasNoDefaultLib=!1,s.pragmas=e.emptyMap,s}w(r,n,i,o);var c=F(t,n,a,o);return P(),c},t.parseIsolatedEntityName=function(e,t){w(e,t,void 0,1),ne();var r=Ye(!0),n=1===re()&&!s.length;return P(),n?r:void 0},t.parseJsonText=N,t.fixupParentReferences=M,function(e){e[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.JSDocParameters=17]="JSDocParameters",e[e.RestProperties=18]="RestProperties",e[e.TypeParameters=19]="TypeParameters",e[e.TypeArguments=20]="TypeArguments",e[e.TupleElementTypes=21]="TupleElementTypes",e[e.HeritageClauses=22]="HeritageClauses",e[e.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",e[e.Count=24]="Count"}(S||(S={})),function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(D||(D={})),function(t){function r(e){var t=ye(283),r=(e?_e:de)(18);return t.type=U(2097152,st),e&&!r||de(19),M(t),xe(t)}var n,i;function a(t,n){void 0===t&&(t=0);var i=m,a=void 0===n?i.length:t+n;if(n=a-t,e.Debug.assert(t>=0),e.Debug.assert(t<=a),e.Debug.assert(a<=i.length),l(i,t)){var o,s,c,d=[];return C.scanRange(t+3,n-5,function(){var e,r,n=1,u=t-Math.max(i.lastIndexOf("\n",t),0)+4;function l(t){e||(e=u),d.push(t),u+=t.length}for(I();M(5););M(4)&&(n=0,u=0);e:for(;;){switch(re()){case 58:0===n||1===n?(f(d),b(y(u)),n=0,e=void 0,u++):l(C.getTokenText());break;case 4:d.push(C.getTokenText()),n=0,u=0;break;case 40:var p=C.getTokenText();1===n||2===n?(n=2,l(p)):(n=1,u+=p.length);break;case 5:var m=C.getTokenText();2===n?d.push(m):void 0!==e&&u+m.length>e&&d.push(m.slice(e-u-1)),u+=m.length;break;case 1:break e;default:n=2,l(C.getTokenText())}I()}return _(d),f(d),(r=ye(291,t)).tags=o&&be(o,s,c),r.comment=d.length?d.join(""):void 0,xe(r,a)})}function _(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function f(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function p(){for(;;){if(I(),1===re())return!0;if(5!==re()&&4!==re())return!1}}function g(){if(5!==re()&&4!==re()||!ce(p))for(;5===re()||4===re();)I()}function h(){if(5!==re()&&4!==re()||!ce(p))for(var e=C.hasPrecedingLineBreak();e&&40===re()||5===re()||4===re();)4===re()?e=!0:40===re()&&(e=!1),I()}function y(t){e.Debug.assert(58===re());var n=C.getTokenPos();I();var i,a=O(void 0);switch(h(),a.escapedText){case"augments":case"extends":i=function(e,t){var r=ye(295,e);return r.tagName=t,r.class=function(){var e=_e(18),t=ye(211);t.expression=function(){for(var e=O();_e(24);){var t=ye(189,e.pos);t.expression=e,t.name=O(),e=xe(t)}return e}(),t.typeArguments=Dn();var r=xe(t);return e&&de(19),r}(),xe(r)}(n,a);break;case"class":case"constructor":i=function(e,t){var r=ye(296,e);return r.tagName=t,xe(r)}(n,a);break;case"this":i=function(e,t){var n=ye(301,e);return n.tagName=t,n.typeExpression=r(!0),g(),xe(n)}(n,a);break;case"enum":i=function(e,t){var n=ye(298,e);return n.tagName=t,n.typeExpression=r(!0),g(),xe(n)}(n,a);break;case"arg":case"argument":case"param":return k(n,a,2,t);case"return":case"returns":i=function(t,r){e.forEach(o,function(e){return 300===e.kind})&&Z(r.pos,C.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var n=ye(300,t);return n.tagName=r,n.typeExpression=x(),xe(n)}(n,a);break;case"template":i=function(t,n){var i;18===re()&&(i=r());var a=[],o=te();do{g();var s=ye(150);s.name=O(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),xe(s),g(),a.push(s)}while(M(27));var c=ye(303,t);return c.tagName=n,c.constraint=i,c.typeParameters=be(a,o),xe(c),c}(n,a);break;case"type":i=T(n,a);break;case"typedef":i=function(t,r,n){var i=x();h();var a,o=ye(304,t);if(o.tagName=r,o.fullName=E(),o.name=N(o.fullName),g(),o.comment=v(n),o.typeExpression=i,!i||D(i.type)){for(var s=void 0,c=void 0,u=void 0;s=ue(function(){return w(n)});)if(c||(c=ye(292,t)),302===s.kind){if(u)break;u=s}else c.jsDocPropertyTags=e.append(c.jsDocPropertyTags,s);c&&(i&&169===i.type.kind&&(c.isArrayType=!0),o.typeExpression=u&&u.typeExpression&&!D(u.typeExpression.type)?u.typeExpression:xe(c),a=o.typeExpression.end)}return xe(o,a||void 0!==o.comment?C.getStartPos():(o.fullName||o.typeExpression||o.tagName).end)}(n,a,t);break;case"callback":i=function(t,r,n){var i,a=ye(297,t);a.tagName=r,a.fullName=E(),a.name=N(a.fullName),g(),a.comment=v(n);var o=ye(293,t);o.parameters=[];for(;i=ue(function(){return P(4,n)});)o.parameters=e.append(o.parameters,i);var s=ue(function(){if(M(58)){var e=y(n);if(e&&300===e.kind)return e}});s&&(o.type=s);return a.typeExpression=xe(o),xe(a)}(n,a,t);break;default:i=function(e,t){var r=ye(294,e);return r.tagName=t,xe(r)}(n,a)}return i.comment||(i.comment=v(t+i.end-i.pos)),i}function v(t){var r,n=[],i=0;function a(e){r||(r=t),n.push(e),t+=e.length}var o=re();e:for(;;){switch(o){case 4:i>=1&&(i=0,n.push(C.getTokenText())),t=0;break;case 58:C.setTextPos(C.getTextPos()-1);case 1:break e;case 5:if(2===i)a(C.getTokenText());else{var s=C.getTokenText();void 0!==r&&t+s.length>r&&n.push(s.slice(r-t-1)),t+=s.length}break;case 18:i=2,ce(function(){return 58===I()&&e.tokenIsIdentifierOrKeyword(I())&&"link"===C.getTokenText()})&&(a(C.getTokenText()),I(),a(C.getTokenText()),I()),a(C.getTokenText());break;case 40:if(0===i){i=1,t+=1;break}default:i=2,a(C.getTokenText())}o=I()}return _(n),f(n),0===n.length?void 0:n.join("")}function b(e){e&&(o?o.push(e):(o=[e],s=e.pos),c=e.end)}function x(){return h(),18===re()?r():void 0}function S(){if(14===re())return{name:ke(!0),isBracketed:!1};var e=_e(22),t=function(){var e=O();_e(22)&&de(23);for(;_e(24);){var t=O();_e(22)&&de(23),e=Ze(e,t)}return e}();return e&&(g(),fe(59)&&Gt(),de(23)),{name:t,isBracketed:e}}function D(t){switch(t.kind){case 136:return!0;case 169:return D(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function k(t,r,n,i){var a=x(),o=!a;h();var s=S(),c=s.name,u=s.isBracketed;g(),o&&(a=x());var l=ye(1===n?305:299,t),d=v(i+C.getStartPos()-t),_=4!==n&&function(t,r,n,i){if(t&&D(t.type)){for(var a=ye(283,C.getTokenPos()),o=void 0,s=void 0,c=C.getStartPos(),u=void 0;o=ue(function(){return P(n,i,r)});)299!==o.kind&&305!==o.kind||(u=e.append(u,o));if(u)return(s=ye(292,c)).jsDocPropertyTags=u,169===t.type.kind&&(s.isArrayType=!0),a.type=xe(s),xe(a)}}(a,c,n,i);return _&&(a=_,o=!0),l.tagName=r,l.typeExpression=a,l.name=c,l.isNameFirst=o,l.isBracketed=u,l.comment=d,xe(l)}function T(t,n){e.forEach(o,function(e){return 302===e.kind})&&Z(n.pos,C.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var i=ye(302,t);return i.tagName=n,i.typeExpression=r(!0),xe(i)}function E(t){var r=C.getTokenPos();if(e.tokenIsIdentifierOrKeyword(re())){var n=O();if(_e(24)){var i=ye(244,r);return t&&(i.flags|=4),i.name=n,i.body=E(!0),xe(i)}return t&&(n.isInJSDocNamespace=!0),n}}function N(t){if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}}function A(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function w(e){return P(1,e)}function P(t,r,n){for(var i=!0,a=!1;;)switch(I()){case 58:if(i){var o=F(t,r);return!(o&&(299===o.kind||305===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!A(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 40:a&&(i=!1),a=!0;break;case 72:i=!1;break;case 1:return!1}}function F(t,r){e.Debug.assert(58===re());var n=C.getStartPos();I();var i,a=O();switch(g(),a.escapedText){case"type":return 1===t&&T(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&k(n,a,t,r)}function I(){return u=C.scanJSDocToken()}function M(e){return re()===e&&(I(),!0)}function O(t){if(!e.tokenIsIdentifierOrKeyword(re()))return Se(72,!t,t||e.Diagnostics.Identifier_expected);var r=C.getTokenPos(),n=C.getTextPos(),i=ye(72,r);return i.escapedText=e.escapeLeadingUnderscores(C.getTokenText()),xe(i,n),I(),i}}t.parseJSDocTypeExpressionForTests=function(e,t,n){w(e,6,void 0,1),o=O("file.js",6,1,!1),C.setText(e,t,n),u=C.scan();var i=r(),a=s;return P(),i?{jsDocTypeExpression:i,diagnostics:a}:void 0},t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=function(e,t,r){w(e,6,void 0,1),o={languageVariant:0,text:e};var n=a(t,r),i=s;return P(),n?{jsDoc:n,diagnostics:i}:void 0},t.parseJSDocComment=function(e,t,r){var n,i=u,c=s.length,l=E,d=a(t,r);return d&&(d.parent=e),65536&b&&(o.jsDocDiagnostics||(o.jsDocDiagnostics=[]),(n=o.jsDocDiagnostics).push.apply(n,s)),u=i,s.length=c,E=l,d},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(n||(n={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(i||(i={})),t.parseJSDocCommentWorker=a}(k=t.JSDocParser||(t.JSDocParser={}))}(o||(o={})),function(t){function r(t,r,i,o,s,c){return void(r?l(t):u(t));function u(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=i,t.end+=i,c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),d(t,u,l),e.hasJSDocNodes(t))for(var _=0,f=t.jsDoc;_<f.length;_++){u(f[_])}a(t,c)}function l(e){e._children=void 0,e.pos+=i,e.end+=i;for(var t=0,r=e;t<r.length;t++){u(r[t])}}}function n(e){switch(e.kind){case 10:case 8:case 72:return!0}return!1}function i(t,r,n,i,a){e.Debug.assert(t.end>=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=n?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 a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;a<o.length;a++){i(o[a])}d(t,i),e.Debug.assert(n<=t.end)}}function s(t,r){var n,i=t;if(d(t,function t(a){if(e.nodeIsMissing(a))return;if(!(a.pos<=r))return e.Debug.assert(a.pos>r),!0;if(a.pos>=i.pos&&(i=a),r<a.end)return d(a,t),!0;e.Debug.assert(a.end<=r),n=a}),n){var a=function(t){for(;;){var r=e.getLastChild(t);if(!r)return t;t=r}}(n);a.pos>i.pos&&(i=a)}return i}function c(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}var u;t.updateSourceFile=function(t,n,u,l){if(c(t,n,u,l=l||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(u))return t;if(0===t.statements.length)return o.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var _=t;e.Debug.assert(!_.hasBeenIncrementallyParsed),_.hasBeenIncrementallyParsed=!0;var f=t.text,p=function(t){var r=t.statements,n=0;e.Debug.assert(n<r.length);var i=r[n],a=-1;return{currentNode:function(o){return o!==a&&(i&&i.end===o&&n<r.length-1&&(i=r[++n]),i&&i.pos===o||function(e){return r=void 0,n=-1,i=void 0,void d(t,a,o);function a(t){return e>=t.pos&&e<t.end&&(d(t,a,o),!0)}function o(t){if(e>=t.pos&&e<t.end)for(var s=0;s<t.length;s++){var c=t[s];if(c){if(c.pos===e)return r=t,n=s,i=c,!0;if(c.pos<e&&e<c.end)return d(c,a,o),!0}}return!1}}(o)),a=o,e.Debug.assert(!i||i.pos===o),i}}}(t),m=function(t,r){for(var n=r.span.start,i=0;n>0&&i<=1;i++){var a=s(t,n);e.Debug.assert(a.pos<=n);var o=a.pos;n=Math.max(0,o-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),u=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,u)}(t,u);c(t,n,m,l),e.Debug.assert(m.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var g=e.textChangeRangeNewSpan(m).length-m.span.length;return function(t,n,o,s,c,u,l,_){return void f(t);function f(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,u,l,_);else{var m=t.end;if(m>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),d(t,f,p),e.hasJSDocNodes(t))for(var g=0,h=t.jsDoc;g<h.length;g++){var y=h[g];f(y)}a(t,_)}else e.Debug.assert(m<n)}}function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!0,c,u,l,_);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var d=0,p=t;d<p.length;d++){var m=p[d];f(m)}}else e.Debug.assert(a<n)}}}(_,m.span.start,e.textSpanEnd(m.span),e.textSpanEnd(e.textChangeRangeNewSpan(m)),g,f,n,l),o.parseSourceFile(t.fileName,n,t.languageVersion,p,!0,t.scriptKind)},function(e){e[e.Value=-1]="Value"}(u||(u={}))}(s||(s={})),e.isDeclarationFileName=_,e.processCommentPragmas=f,e.processPragmasIntoFields=p;var m=e.createMap();function g(e){if(m.has(e))return m.get(e);var t=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return m.set(e,t),t}var h=/^\/\/\/\s*<(\S+)\s.*?\/>/im,y=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function v(t,r,n){var i=2===r.kind&&h.exec(n);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,u=o.args;c<u.length;c++){var l=u[c],d=g(l.name).exec(n);if(!d&&!l.optional)return;if(d)if(l.captureSpan){var _=r.pos+d.index+d[1].length+d[2].length;s[l.name]={value:d[3],pos:_,end:_+d[3].length}}else s[l.name]=d[3]}t.push({name:a,args:{arguments:s,range:r}})}else t.push({name:a,args:{arguments:{},range:r}})}else{var f=2===r.kind&&y.exec(n);if(f)return b(t,r,2,f);if(3===r.kind)for(var p=/\s*@(\S+)\s*(.*)\s*$/gim,m=void 0;m=p.exec(n);)b(t,r,4,m)}}function b(t,r,n,i){if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(o&&o.kind&n){var s=function(t,r){if(!r)return{};if(!t.args)return{};for(var n=r.split(/\s+/),i={},a=0;a<t.args.length;a++){var o=t.args[a];if(!n[a]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=n[a]}return i}(o,i[2]);"fail"!==s&&t.push({name:a,args:{arguments:s,range:r}})}}}function x(e,t){return e.kind===t.kind&&(72===e.kind?e.escapedText===t.escapedText:100===e.kind||e.name.escapedText===t.name.escapedText&&x(e.expression,t.expression))}e.tagNamesAreEquivalent=x}(d||(d={})),function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var t,r,n=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.symbol","lib.esnext.symbol.d.ts"],["esnext.asynciterable","lib.esnext.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.esnext.bigint.d.ts"]];function i(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function a(){return t||(t=o(e.optionDeclarations))}function o(t){var r=e.createMap(),n=e.createMap();return e.forEach(t,function(e){r.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)}),{optionNameMap:r,shortOptionNames:n}}function c(t){return u(t,e.createCompilerDiagnostic)}function u(t,r){var n=e.arrayFrom(t.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return r(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,n)}function l(e,t,r){return V(e,W(t||""),r)}function d(t,r,n){if(void 0===r&&(r=""),r=W(r),!e.startsWith(r,"-")){if(""===r)return[];var i=r.split(",");switch(t.element.type){case"number":return e.map(i,parseInt);case"string":return e.map(i,function(e){return e||""});default:return e.mapDefined(i,function(e){return l(t.element,e,n)})}}}function _(t,r,n,i){var a=r[0],o=r[1],s={},c=[],u=[];return _(n),{options:s,fileNames:c,errors:u};function _(r){for(var n=0;n<r.length;){var i=r[n];if(n++,64===i.charCodeAt(0))f(i.slice(1));else if(45===i.charCodeAt(0)){var _=p(t,i.slice(45===i.charCodeAt(1)?2:1),!0);if(_)if(_.isTSConfigOnly)u.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,_.name));else switch(r[n]||"boolean"===_.type||u.push(e.createCompilerDiagnostic(o,_.name)),_.type){case"number":s[_.name]=parseInt(r[n]),n++;break;case"boolean":var m=r[n];s[_.name]="false"!==m,"false"!==m&&"true"!==m||n++;break;case"string":s[_.name]=r[n]||"",n++;break;case"list":var g=d(_,r[n],u);s[_.name]=g||[],g&&n++;break;default:s[_.name]=l(_,r[n],u),n++}else u.push(e.createCompilerDiagnostic(a,i))}else c.push(i)}}function f(t){var r=i?i(t):e.sys.readFile(t);if(r){for(var n=[],a=0;;){for(;a<r.length&&r.charCodeAt(a)<=32;)a++;if(a>=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a<r.length&&34!==r.charCodeAt(a);)a++;a<r.length?(n.push(r.substring(o+1,a)),a++):u.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;r.charCodeAt(a)>32;)a++;n.push(r.substring(o,a))}}_(n)}else u.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t))}}function f(e,t){return p(a,e,t)}function p(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function m(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.createCompilerDiagnostic.apply(void 0,arguments).messageText}function g(t,r){var n=e.parseJsonText(t,r);return{config:b(n,n.parseDiagnostics),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function h(t,r){var n=y(t,r);return e.isString(n)?e.parseJsonText(t,n):{parseDiagnostics:[n]}}function y(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):n}function v(t){return e.arrayToMap(t,function(e){return e.name})}function b(e,t){return x(e,t,!0,void 0,void 0)}function x(t,r,n,i,a){return t.statements.length?c(t.statements[0].expression,i):n?{}:void 0;function o(e){return i&&i.elementOptions===e}function s(i,s,u,d){for(var _=n?{}:void 0,f=0,p=i.properties;f<p.length;f++){var m=p[f];if(275===m.kind){m.questionToken&&r.push(e.createDiagnosticForNodeInSourceFile(t,m.questionToken,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?")),l(m.name)||r.push(e.createDiagnosticForNodeInSourceFile(t,m.name,e.Diagnostics.String_literal_with_double_quotes_expected));var g=e.getTextOfPropertyName(m.name),h=g&&e.unescapeLeadingUnderscores(g),y=h&&s?s.get(h):void 0;h&&u&&!y&&r.push(e.createDiagnosticForNodeInSourceFile(t,m.name,u,h));var v=c(m.initializer,y);if(void 0!==h&&(n&&(_[h]=v),a&&(d||o(s)))){var b=D(y,v);d?b&&a.onSetValidOptionKeyValueInParent(d,y,v):o(s)&&(b?a.onSetValidOptionKeyValueInRoot(h,m.name,v,m.initializer):y||a.onSetUnknownOptionKeyValueInRoot(h,m.name,v,m.initializer))}}else r.push(e.createDiagnosticForNodeInSourceFile(t,m,e.Diagnostics.Property_assignment_expected))}return _}function c(i,a){switch(i.kind){case 102:return g(a&&"boolean"!==a.type),!0;case 87:return g(a&&"boolean"!==a.type),!1;case 96:return g(a&&"extends"===a.name),null;case 10:l(i)||r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.String_literal_with_double_quotes_expected)),g(a&&e.isString(a.type)&&"string"!==a.type);var o=i.text;if(a&&!e.isString(a.type)){var d=a;d.type.has(o.toLowerCase())||r.push(u(d,function(r,n,a){return e.createDiagnosticForNodeInSourceFile(t,i,r,n,a)}))}return o;case 8:return g(a&&"number"!==a.type),Number(i.text);case 202:if(39!==i.operator||8!==i.operand.kind)break;return g(a&&"number"!==a.type),-Number(i.operand.text);case 188:g(a&&"object"!==a.type);var _=i;if(a){var f=a;return s(_,f.elementOptions,f.extraKeyDiagnosticMessage,f.name)}return s(_,void 0,void 0,void 0);case 187:return g(a&&"list"!==a.type),p=i.elements,m=a&&a.element,n?e.filter(p.map(function(e){return c(e,m)}),function(e){return void 0!==e}):p.forEach(function(e){return c(e,m)})}var p,m;return void(a?g(!0):r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function g(n){n&&r.push(e.createDiagnosticForNodeInSourceFile(t,i,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,a.name,S(a)))}}function l(r){return e.isStringLiteral(r)&&e.isStringDoubleQuoted(r,t)}}function S(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function D(t,r){return!!t&&(!!A(r)||("list"===t.type?e.isArray(r):typeof r===(e.isString(t.type)?t.type:"string")))}function k(t){if(e.length(t)){if(1!==e.length(t))return t;if("**/*"!==t[0])return t}}function C(t,r){return e.forEachEntry(r,function(e,r){if(e===t)return r})}function T(t,r){var n=e.createMap(),i=a().optionNameMap,o=r&&e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),s=function(a){if(e.hasProperty(t,a)){if(i.has(a)&&i.get(a).category===e.Diagnostics.Command_line_Options)return"continue";var s=t[a],c=i.get(a.toLowerCase());if(c){var u=function e(t){return"string"===t.type||"number"===t.type||"boolean"===t.type?void 0:"list"===t.type?e(t.element):t.type}(c);u?"list"===c.type?n.set(a,s.map(function(e){return C(e,u)})):n.set(a,C(s,u)):r&&c.isFilePath?n.set(a,e.getRelativePathFromFile(r.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(r.configFilePath)),o)):n.set(a,s)}}};for(var c in t)s(c);return n}function E(e,t,r,n,i,a,o){return P(void 0,e,t,r,n,i,a,o)}function N(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function A(e){return null==e}function w(t,r){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r))}function P(t,r,n,i,a,o,s,c){void 0===a&&(a={}),void 0===s&&(s=[]),void 0===c&&(c=[]),e.Debug.assert(void 0===t&&void 0!==r||void 0!==t&&void 0===r);var u,l=[],d=L(t,r,n,i,o,s,l),_=d.raw,f=e.extend(a,d.options||{});f.configFilePath=o&&e.normalizeSlashes(o),N(f,r);var p=function(){var t,a,d;if(e.hasProperty(_,"files")&&!A(_.files))if(e.isArray(_.files)){t=_.files;var p=e.hasProperty(_,"references")&&!A(_.references),m=!p||0===_.references.length,g=e.hasProperty(_,"extends");if(0===t.length&&m&&!g)if(r){var h=o||"tsconfig.json",v=e.Diagnostics.The_files_list_in_config_file_0_is_empty,b=e.firstDefined(e.getTsConfigPropArray(r,"files"),function(e){return e.initializer}),x=b?e.createDiagnosticForNodeInSourceFile(r,b,v,h):e.createCompilerDiagnostic(v,h);l.push(x)}else y(e.Diagnostics.The_files_list_in_config_file_0_is_empty,o||"tsconfig.json")}else y(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array");e.hasProperty(_,"include")&&!A(_.include)&&(e.isArray(_.include)?a=_.include:y(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array"));if(e.hasProperty(_,"exclude")&&!A(_.exclude))e.isArray(_.exclude)?d=_.exclude:y(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array");else if(_.compilerOptions){var S=_.compilerOptions.outDir,D=_.compilerOptions.declarationDir;(S||D)&&(d=[S,D].filter(function(e){return!!e}))}void 0===t&&void 0===a&&(a=["**/*"]);var k=function(t,r,n,i,a,o,s,c,u){var l,d;i=e.normalizePath(i),r&&(l=Z(r,s,!1,u,"include"));n&&(d=Z(n,s,!0,u,"exclude"));var _=function(t,r,n,i){var a=e.getRegularExpressionForWildcard(r,n,"exclude"),o=a&&new RegExp(a,i?"":"i"),s={};if(void 0!==t){for(var c=[],u=0,l=t;u<l.length;u++){var d=l[u],_=e.normalizePath(e.combinePaths(n,d));if(!o||!o.test(_)){var f=$(_,i);if(f){var p=f.key,m=f.flags,g=s[p];(void 0===g||g<m)&&(s[p]=m,1===m&&c.push(p))}}}for(var p in s)if(e.hasProperty(s,p))for(var h=0,y=c;h<y.length;h++){var v=y[h];p!==v&&e.containsPath(v,p,n,!i)&&delete s[p]}}return s}(l,d,i,o.useCaseSensitiveFileNames);return Y({filesSpecs:t,includeSpecs:r,excludeSpecs:n,validatedIncludeSpecs:l,validatedExcludeSpecs:d,wildcardDirectories:_},i,a,o,c)}(t,a,d,o?w(o,i):i,f,n,l,c,r);I(k,M(_),s)&&l.push(F(k.spec,o));if(e.hasProperty(_,"references")&&!A(_.references))if(e.isArray(_.references))for(var C=0,T=_.references;C<T.length;C++){var E=T[C];"string"!=typeof E.path?y(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(u||(u=[])).push({path:e.getNormalizedAbsolutePath(E.path,i),originalPath:E.path,prepend:E.prepend,circular:E.circular})}else y(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"references","Array");return k}(),m=p.fileNames,g=p.wildcardDirectories,h=p.spec;return{options:f,fileNames:m,projectReferences:u,typeAcquisition:d.typeAcquisition||z(),raw:_,errors:l,wildcardDirectories:g,compileOnSave:!!_.compileOnSave,configFileSpecs:h};function y(t,n,i){r||l.push(e.createCompilerDiagnostic(t,n,i))}}function F(t,r){var n=t.includeSpecs,i=t.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(n||[]),JSON.stringify(i||[]))}function I(e,t,r){return 0===e.fileNames.length&&t&&(!r||0===r.length)}function M(t){return!e.hasProperty(t,"files")&&!e.hasProperty(t,"references")}function O(e){return!!e.options}function L(t,n,i,a,o,s,c){a=e.normalizeSlashes(a);var u=e.getNormalizedAbsolutePath(o||"",a);if(s.indexOf(u)>=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,s.concat([u]).join(" -> "))),{raw:t||b(n,c)};var l=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=j(t.compilerOptions,n,a,i),c=J(t.typeAcquisition||t.typingOptions,n,a,i);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=q(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?w(i,n):n;o=R(t.extends,r,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,typeAcquisition:c,extendedConfigPath:o}}(t,i,a,o,c):function(t,n,i,a,o){var s,c,u,l=B(a),d={onSetValidOptionKeyValueInParent:function(t,r,n){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t);var o="compilerOptions"===t?l:"typeAcquisition"===t?s||(s=z(a)):c||(c=z(a));o[r.name]=function t(r,n,i){if(A(i))return;if("list"===r.type){var a=r;return a.element.isFilePath||!e.isString(a.element.type)?e.filter(e.map(i,function(e){return t(a.element,n,e)}),function(e){return!!e}):i}if(!e.isString(r.type))return r.type.get(e.isString(i)?i.toLowerCase():i);return K(r,n,i)}(r,i,n)},onSetValidOptionKeyValueInRoot:function(r,s,c,l){switch(r){case"extends":var d=a?w(a,i):i;return void(u=R(c,n,d,o,function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)}))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,a){"excludes"===r&&o.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},_=x(t,o,!0,(void 0===r&&(r={name:void 0,type:"object",elementOptions:v([{name:"compilerOptions",type:"object",elementOptions:v(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:v(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:v(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{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])}),r),d);s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:z(a));return{raw:_,options:l,typeAcquisition:s,extendedConfigPath:u}}(n,i,a,o,c);if(l.extendedConfigPath){s=s.concat([u]);var d=function(t,r,n,i,a,o){var s,c=h(r,function(e){return n.readFile(e)});t&&(t.extendedSourceFiles=[c.fileName]);if(c.parseDiagnostics.length)return void o.push.apply(o,c.parseDiagnostics);var u=e.getDirectoryPath(r),l=L(void 0,c,n,u,e.getBaseFileName(r),a,o);t&&c.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,c.extendedSourceFiles);if(O(l)){var d=e.convertToRelativePath(u,i,e.identity),_=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(d,t)},f=function(t){p[t]&&(p[t]=e.map(p[t],_))},p=l.raw;f("include"),f("exclude"),f("files")}return l}(n,l.extendedConfigPath,i,a,s,c);if(d&&O(d)){var _=d.raw,f=l.raw,p=function(e){var t=f[e]||_[e];t&&(f[e]=t)};p("include"),p("exclude"),p("files"),void 0===f.compileOnSave&&(f.compileOnSave=_.compileOnSave),l.options=e.assign({},d.options,l.options)}}return l}function R(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o+=".json",r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_does_not_exist,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_does_not_exist,t))}function B(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function j(t,r,n,i){var a=B(i);return U(e.optionDeclarations,t,r,a,e.Diagnostics.Unknown_compiler_option_0,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function z(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function J(t,r,n,a){var o=z(a),s=i(t);return U(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,n),o}function U(t,r,n,i,a,o){if(r){var s=v(t);for(var c in r){var u=s.get(c);u?i[u.name]=q(u,r[c],n,o):o.push(e.createCompilerDiagnostic(a,c))}}}function q(t,r,n,i){if(D(t,r)){var a=t.type;return"list"===a&&e.isArray(r)?function(t,r,n,i){return e.filter(e.map(r,function(e){return q(t.element,e,n,i)}),function(e){return!!e})}(t,r,n,i):e.isString(a)?K(t,n,r):V(t,r,i)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,S(t)))}function K(t,r,n){return t.isFilePath&&""===(n=e.normalizePath(e.combinePaths(r,n)))&&(n="."),n}function V(e,t,r){if(!A(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return i;r.push(c(e))}}function W(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.libs=n.map(function(e){return e[0]}),e.libMap=e.createMapFromEntries(n),e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information}],e.optionDeclarations=e.commonOptionsWithBuild.concat([{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"target",shortName:"t",type:e.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,esnext:6}),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT},{name:"module",shortName:"m",type:e.createMapFromTemplate({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,esnext:e.ModuleKind.ESNext}),affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:e.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file},{name:"declarationMap",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file},{name:"emitDeclarationOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files},{name:"sourceMap",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file},{name:"outDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation},{name:"removeComments",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs},{name:"importHelpers",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:e.createMapFromTemplate({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic}),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"sourceRoot",type:"string",paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"resolveJsonModule",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file},{name:"reactNamespace",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us},{name:"newLine",type:e.createMapFromTemplate({crlf:0,lf:1}),paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files},{name:"stripInternal",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"preserveConstEnums",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsSemanticDiagnostics}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(e){return!!e.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics}),e.buildOpts=e.commonOptionsWithBuild.concat([{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}}],e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0},e.convertEnableAutoDiscoveryToEnable=i,e.createOptionNameMap=o,e.createCompilerDiagnosticForInvalidCustomType=c,e.parseCustomTypeOption=l,e.parseListTypeOption=d,e.parseCommandLine=function(t,r){return _(a,[e.Diagnostics.Unknown_compiler_option_0,e.Diagnostics.Compiler_option_0_expects_an_argument],t,r)},e.getOptionFromName=f,e.parseBuildCommand=function(t){var r,n=_(function(){return r||(r=o(e.buildOpts))},[e.Diagnostics.Unknown_build_option_0,e.Diagnostics.Build_option_0_requires_a_value_of_type_1],t),i=n.options,a=n.fileNames,s=n.errors,c=i;return 0===a.length&&a.push("."),c.clean&&c.force&&s.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),c.clean&&c.verbose&&s.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),c.clean&&c.watch&&s.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),c.watch&&c.dry&&s.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:c,projects:a,errors:s}},e.printVersion=function(){e.sys.write(m(e.Diagnostics.Version_0,e.version)+e.sys.newLine)},e.printHelp=function(t,r){void 0===r&&(r="");var n=[],i=m(e.Diagnostics.Syntax_Colon_0,"").length,a=m(e.Diagnostics.Examples_Colon_0,"").length,o=Math.max(i,a),s=w(o-i);s+="tsc "+r+"["+m(e.Diagnostics.options)+"] ["+m(e.Diagnostics.file)+"...]",n.push(m(e.Diagnostics.Syntax_Colon_0,s)),n.push(e.sys.newLine+e.sys.newLine);var c=w(o);n.push(m(e.Diagnostics.Examples_Colon_0,w(o-a)+"tsc hello.ts")+e.sys.newLine),n.push(c+"tsc --outFile file.js file.ts"+e.sys.newLine),n.push(c+"tsc @args.txt"+e.sys.newLine),n.push(c+"tsc --build tsconfig.json"+e.sys.newLine),n.push(e.sys.newLine),n.push(m(e.Diagnostics.Options_Colon)+e.sys.newLine),o=0;for(var u=[],l=[],d=e.createMap(),_=0,f=t;_<f.length;_++){var p=f[_];if(p.description){var g=" ";p.shortName&&(g+="-"+p.shortName,g+=A(p),g+=", "),g+="--"+p.name,g+=A(p),u.push(g);var h=void 0;if("lib"===p.name){h=m(p.description);var y=p.element.type;d.set(h,e.arrayFrom(y.keys()).map(function(e){return"'"+e+"'"}))}else h=m(p.description);l.push(h),o=Math.max(g.length,o)}}var v=" @<"+m(e.Diagnostics.file)+">";u.push(v),l.push(m(e.Diagnostics.Insert_command_line_options_and_files_from_a_file)),o=Math.max(v.length,o);for(var b=0;b<u.length;b++){var x=u[b],S=(h=l[b],d.get(h));if(n.push(x+w(o-x.length+2)+h+e.sys.newLine),S){n.push(w(o+4));for(var D=0,k=S;D<k.length;D++){var C=k[D];n.push(C+" ")}n.push(e.sys.newLine)}}for(var T=0,E=n;T<E.length;T++){var N=E[T];e.sys.write(N)}return;function A(e){return void 0!==e.paramType?" "+m(e.paramType):""}function w(e){return Array(e+1).join(" ")}},e.getParsedCommandLineOfConfigFile=function(t,r,n){var i;try{i=n.readFile(t)}catch(r){var a=e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message);return void n.onUnRecoverableConfigFileDiagnostic(a)}if(i){var o=e.parseJsonText(t,i),s=n.getCurrentDirectory();return o.path=e.toPath(t,s,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames)),o.resolvedPath=o.path,o.originalFileName=o.fileName,E(o,n,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),s),r,e.getNormalizedAbsolutePath(t,s))}a=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t),n.onUnRecoverableConfigFileDiagnostic(a)},e.readConfigFile=function(t,r){var n=y(t,r);return e.isString(n)?g(t,n):{config:{},error:n}},e.parseConfigFileTextToJson=g,e.readJsonConfigFile=h,e.convertToObject=b,e.convertToObjectWorker=x,e.convertToTSConfig=function(t,r,n){var i=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),a=e.map(e.filter(t.fileNames,t.configFileSpecs&&t.configFileSpecs.validatedIncludeSpecs?function(t,r,n){if(!r)return function(e){return!0};var i=e.getFileMatcherPatterns(t,n,r,e.sys.useCaseSensitiveFileNames,e.sys.getCurrentDirectory()),a=i.excludePattern&&e.getRegexFromPattern(i.excludePattern,e.sys.useCaseSensitiveFileNames),o=i.includeFilePattern&&e.getRegexFromPattern(i.includeFilePattern,e.sys.useCaseSensitiveFileNames);return o?a?function(e){return!(o.test(e)&&!a.test(e))}:function(e){return!o.test(e)}:a?function(e){return a.test(e)}:function(e){return!0}}(r,t.configFileSpecs.validatedIncludeSpecs,t.configFileSpecs.validatedExcludeSpecs):function(e){return!0}),function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),i)}),o=T(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames});return s({compilerOptions:s({},e.arrayFrom(o.entries()).reduce(function(e,t){var r;return s({},e,((r={})[t[0]]=t[1],r))},{}),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0}),references:e.map(t.projectReferences,function(e){return s({},e,{path:e.originalPath,originalPath:void 0})}),files:e.length(a)?a:void 0},t.configFileSpecs?{include:k(t.configFileSpecs.validatedIncludeSpecs),exclude:t.configFileSpecs.validatedExcludeSpecs}:{},{compilerOnSave:!!t.compileOnSave||void 0})},e.generateTSConfig=function(t,r,n){var i=T(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),c=0,u=e.optionDeclarations;c<u.length;c++){var l=u[c],d=l.category;s(l)&&t.add(e.getLocaleSpecificMessage(d),l)}var _=0,f=0,p=[],m=[];t.forEach(function(t,r){0!==p.length&&(p.push(""),m.push("")),p.push("/* "+r+" */"),m.push("");for(var n=0,o=t;n<o.length;n++){var s=o[n],c=void 0;c=i.has(s.name)?'"'+s.name+'": '+JSON.stringify(i.get(s.name))+((f+=1)===i.size?"":","):'// "'+s.name+'": '+JSON.stringify(a(s))+",",p.push(c),m.push("/* "+(s.description&&e.getLocaleSpecificMessage(s.description)||s.name)+" */"),_=Math.max(c.length,_)}});var g=o(2),h=[];h.push("{"),h.push(g+'"compilerOptions": {');for(var y=0;y<p.length;y++){var v=p[y],b=m[y];h.push(v&&""+g+g+v+(b&&o(_-v.length+2)+b))}if(r.length){h.push(g+"},"),h.push(g+'"files": [');for(var y=0;y<r.length;y++)h.push(""+g+g+JSON.stringify(r[y])+(y===r.length-1?"":","));h.push(g+"]")}else h.push(g+"}");return h.push("}"),h.join(n)}();function a(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 o(e){return Array(e+1).join(" ")}function s(t){var r=t.category,n=t.name;return void 0!==r&&r!==e.Diagnostics.Command_line_Options&&(r!==e.Diagnostics.Advanced_Options||i.has(n))}},e.parseJsonConfigFileContent=function(e,t,r,n,i,a,o){return P(e,void 0,t,r,n,i,a,o)},e.parseJsonSourceFileConfigFileContent=E,e.setConfigFileInOptions=N,e.canJsonReportNoInutFiles=M,e.updateErrorForNoInputFiles=function(t,r,n,i,a){var o=i.length;return I(t,a)?i.push(F(n,r)):e.filterMutate(i,function(t){return!function(t){return t.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(t)}),o!==i.length},e.convertCompilerOptionsFromJson=function(e,t,r){var n=[];return{options:j(e,t,n,r),errors:n}},e.convertTypeAcquisitionFromJson=function(e,t,r){var n=[];return{options:J(e,t,n,r),errors:n}};var H=/(^|\/)\*\*\/?$/,G=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,X=/\/[^\/]*?[*?][^\/]*\//,Q=/^[^*?]*(?=\/[^\/]*[*?])/;function Y(t,r,n,i,a){void 0===a&&(a=[]),r=e.normalizePath(r);var o,s=i.useCaseSensitiveFileNames?e.identity:e.toLowerCase,c=e.createMap(),u=e.createMap(),l=e.createMap(),d=t.filesSpecs,_=t.validatedIncludeSpecs,f=t.validatedExcludeSpecs,p=t.wildcardDirectories,m=e.getSupportedExtensions(n,a),g=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(n,m);if(d)for(var h=0,y=d;h<y.length;h++){var v=y[h],b=e.getNormalizedAbsolutePath(v,r);c.set(s(b),b)}if(_&&_.length>0)for(var x=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=_.filter(function(t){return e.endsWith(t,".json")}),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),function(e){return"^"+e+"$"});o=a?a.map(function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)}):e.emptyArray}if(-1!==e.findIndex(o,function(e){return e.test(t)})){var d=s(t);c.has(d)||l.has(d)||l.set(d,t)}return"continue"}if(function(t,r,n,i,a){for(var o=e.getExtensionPriority(t,i),s=e.adjustExtensionPriority(o,i),c=0;c<s;c++){var u=i[c],l=a(e.changeExtension(t,u));if(r.has(l)||n.has(l))return!0}return!1}(t,c,u,m,s))return"continue";!function(t,r,n,i){for(var a=e.getExtensionPriority(t,n),o=e.getNextLowestExtensionPriority(a,n);o<n.length;o++){var s=n[o],c=i(e.changeExtension(t,s));r.delete(c)}}(t,u,m,s);var f=s(t);c.has(f)||u.has(f)||u.set(f,t)},S=0,D=i.readDirectory(r,g,f,_,void 0);S<D.length;S++){x(b=D[S])}var k=e.arrayFrom(c.values()),C=e.arrayFrom(u.values());return{fileNames:k.concat(C,e.arrayFrom(l.values())),wildcardDirectories:p,spec:t}}function Z(t,r,n,i,a){return t.filter(function(t){var o=function(t,r){if(!r&&H.test(t))return e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(G.test(t))return e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}(t,n);return void 0!==o&&r.push(function(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}(o,t)),void 0===o})}function $(t,r){var n=Q.exec(t);return n?{key:r?n[0]:n[0].toLowerCase(),flags:X.test(t)?1:0}:e.isImplicitGlob(t)?{key:t,flags:1}:void 0}function ee(t,r){switch(r.type){case"object":case"string":return"";case"number":return"number"==typeof t?t:"";case"boolean":return"boolean"==typeof t?t:"";case"list":var n=r.element;return e.isArray(t)?t.map(function(e){return ee(e,n)}):"";default:return e.forEachEntry(r.type,function(e,r){if(e===t)return r})}}e.getFileNamesFromConfigSpecs=Y,e.convertCompilerOptionsForTelemetry=function(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=f(r);void 0!==n&&(t[r]=ee(e[r],n))}return t}}(d||(d={})),function(e){function t(t){t.trace(e.formatMessage.apply(void 0,arguments))}function r(e,t){return!!e.traceResolution&&void 0!==t.trace}function n(e,t){return t&&{path:t.path,extension:t.ext,packageId:e}}function i(e){return n(void 0,e)}function a(t){if(t)return e.Debug.assert(void 0===t.packageId),{path:t.path,ext:t.extension}}var o,c;function u(t){if(t)return e.Debug.assert(e.extensionIsTS(t.extension)),{fileName:t.path,packageId:t.packageId}}function l(e,t,r){return{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r}}function d(r,n,i,a){if(e.hasProperty(r,n)){var o=r[n];if(typeof o===i&&null!==o)return o;a.traceEnabled&&t(a.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,i,null===o?"null":typeof o)}else a.traceEnabled&&t(a.host,e.Diagnostics.package_json_does_not_have_a_0_field,n)}function _(r,n,i,a){var o=d(r,n,"string",a);if(void 0!==o){var s=e.normalizePath(e.combinePaths(i,o));return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,n,o,s),s}}function f(e,t,r){return _(e,"typings",t,r)||_(e,"types",t,r)}function p(e,t,r){return _(e,"main",t,r)}function m(r,n){var i=function(r,n){var i=d(r,"typesVersions","object",n);if(void 0!==i)return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),i}(r,n);if(void 0!==i){if(n.traceEnabled)for(var a in i)e.hasProperty(i,a)&&!e.VersionRange.tryParse(a)&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,a);var o=g(i);if(o){var s=o.version,c=o.paths;if("object"==typeof c)return o;n.traceEnabled&&t(n.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+s+"']","object",typeof c)}else n.traceEnabled&&t(n.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}}function g(t){for(var r in c||(c=new e.Version(e.version)),t)if(e.hasProperty(t,r)){var n=e.VersionRange.tryParse(r);if(void 0!==n&&n.test(c))return{version:r,paths:t[r]}}}function h(t,r){return t.typeRoots?t.typeRoots:(t.configFilePath?n=e.getDirectoryPath(t.configFilePath):r.getCurrentDirectory&&(n=r.getCurrentDirectory()),void 0!==n?function(t,r){if(!r.directoryExists)return[e.combinePaths(t,y)];var n;return e.forEachAncestorDirectory(e.normalizePath(t),function(t){var i=e.combinePaths(t,y);r.directoryExists(i)&&(n||(n=[])).push(i)}),n}(n,r):void 0);var n}e.trace=t,e.isTraceEnabled=r,function(e){e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly"}(o||(o={})),e.getPackageJsonTypesVersionsPaths=g,e.getEffectiveTypeRoots=h;var y=e.combinePaths("node_modules","@types");function v(){var t=e.createMap(),r=e.createMap();return{ownMap:t,redirectsMap:r,getOrCreateMapOfCacheRedirects:function(n){if(!n)return t;var i=n.sourceFile.path,a=r.get(i);a||(a=e.createMap(),r.set(i,a));return a},clear:function(){t.clear(),r.clear()}}}function b(t,r,n,i){return{getOrCreateCacheForDirectory:function(r,o){var s=e.toPath(r,n,i);return a(t,o,s,e.createMap)},getOrCreateCacheForModuleName:function(t,n){return e.Debug.assert(!e.isExternalModuleNameRelative(t)),a(r,n,t,o)}};function a(e,t,r,n){var i=e.getOrCreateMapOfCacheRedirects(t),a=i.get(r);return a||(a=n(),i.set(r,a)),a}function o(){var t=e.createMap();return{get:function(r){return t.get(e.toPath(r,n,i))},set:function(r,a){var o=e.toPath(r,n,i);if(t.has(o))return;t.set(o,a);var s=a.resolvedModule&&(a.resolvedModule.originalPath||a.resolvedModule.resolvedFileName),c=s&&function(t,r){var a=e.toPath(e.getDirectoryPath(r),n,i),o=0,s=Math.min(t.length,a.length);for(;o<s&&t.charCodeAt(o)===a.charCodeAt(o);)o++;if(o===t.length&&(a.length===o||a[o]===e.directorySeparator))return t;var c=e.getRootLength(t);if(o<c)return;var u=t.lastIndexOf(e.directorySeparator,o-1);if(-1===u)return;return t.substr(0,Math.max(u,c))}(o,s),u=o;for(;u!==c;){var l=e.getDirectoryPath(u);if(l===u||t.has(l))break;t.set(l,a),u=l}}}}}function x(r,n,i,a,o){var s=function(r,n,i,a){var o=a.compilerOptions,s=o.baseUrl,c=o.paths;if(s&&c&&!e.pathIsRelative(n))return a.traceEnabled&&(t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),W(r,n,s,c,i,!1,a)}(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?function(r,n,i,a,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,u=e.normalizePath(e.combinePaths(i,n)),l=0,d=o.compilerOptions.rootDirs;l<d.length;l++){var _=d[l],f=e.normalizePath(_);e.endsWith(f,e.directorySeparator)||(f+=e.directorySeparator);var p=e.startsWith(u,f)&&(void 0===c||c.length<f.length);o.traceEnabled&&t(o.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,f,u,p),p&&(c=f,s=_)}if(c){o.traceEnabled&&t(o.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,u,c);var m=u.substr(c.length);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,c,u);var g=a(r,u,!e.directoryProbablyExists(i,o.host),o);if(g)return g;o.traceEnabled&&t(o.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var h=0,y=o.compilerOptions.rootDirs;h<y.length;h++){var _=y[h];if(_!==s){var v=e.combinePaths(e.normalizePath(_),m);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,_,v);var b=e.getDirectoryPath(v),x=a(r,v,!e.directoryProbablyExists(b,o.host),o);if(x)return x}}o.traceEnabled&&t(o.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}(r,n,i,a,o):function(r,n,i,a){var o=a.compilerOptions.baseUrl;if(!o)return;a.traceEnabled&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,n);var s=e.normalizePath(e.combinePaths(o,n));a.traceEnabled&&t(a.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,n,o,s);return i(r,s,!e.directoryProbablyExists(e.getDirectoryPath(s),a.host),a)}(r,n,a,o)}e.resolveTypeReferenceDirective=function(n,i,a,s,c){var l=r(a,s);c&&(a=c.commandLine.options);var d=[],_={compilerOptions:a,host:s,traceEnabled:l,failedLookupLocations:d},f=h(a,s);l&&(void 0===i?void 0===f?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,n):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,n,f):void 0===f?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,n,i):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,n,i,f),c&&t(s,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var p,m=function(){if(f&&f.length)return l&&t(s,e.Diagnostics.Resolving_with_primary_search_path_0,f.join(", ")),e.firstDefined(f,function(r){var i=e.combinePaths(r,n),a=e.getDirectoryPath(i),c=e.directoryProbablyExists(a,s);return!c&&l&&t(s,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),u(B(o.DtsOnly,i,!c,_))});l&&t(s,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),g=!0;if(m||(m=function(){var r=i&&e.getDirectoryPath(i);if(void 0!==r){l&&t(s,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,r);var a=void 0;if(e.isExternalModuleNameRelative(n)){var c=e.normalizePathAndParts(e.combinePaths(r,n)).path;a=w(o.DtsOnly,c,!1,_,!0)}else{var d=U(o.DtsOnly,n,r,_,void 0,void 0);a=d&&d.value}var f=u(a);return!f&&l&&t(s,e.Diagnostics.Type_reference_directive_0_was_not_resolved,n),f}l&&t(s,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),g=!1),m){var y=m.fileName,v=m.packageId,b=a.preserveSymlinks?y:A(y,s,l);l&&t(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,n,b,g),p={primary:g,resolvedFileName:b,packageId:v,isExternalLibraryImport:P(y)}}return{resolvedTypeReferenceDirective:p,failedLookupLocations:d}},e.getAutomaticTypeDirectiveNames=function(t,r){if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var i=h(t,r);if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];if(r.directoryExists(s))for(var c=0,u=r.getDirectories(s);c<u.length;c++){var l=u[c],d=e.normalizePath(l),_=e.combinePaths(s,d,"package.json");if(!r.fileExists(_)||null!==e.readJson(_,r).typings){var f=e.getBaseFileName(d);46!==f.charCodeAt(0)&&n.push(f)}}}}return n},e.createModuleResolutionCache=function(e,t){return b(v(),v(),e,t)},e.createCacheWithRedirects=v,e.createModuleResolutionCacheWithMaps=b,e.resolveModuleNameFromCache=function(t,r,n){var i=e.getDirectoryPath(r),a=n&&n.getOrCreateCacheForDirectory(i);return a&&a.get(t)},e.resolveModuleName=function(n,i,a,o,s,c){var u=r(a,o);c&&(a=c.commandLine.options),u&&(t(o,e.Diagnostics.Resolving_module_0_from_1,n,i),c&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var l=e.getDirectoryPath(i),d=s&&s.getOrCreateCacheForDirectory(l,c),_=d&&d.get(n);if(_)u&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,l);else{var f=a.moduleResolution;switch(void 0===f?(f=e.getEmitModuleKind(a)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic,u&&t(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[f])):u&&t(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[f]),f){case e.ModuleResolutionKind.NodeJs:_=E(n,i,a,o,s,c);break;case e.ModuleResolutionKind.Classic:_=Y(n,i,a,o,s,c);break;default:return e.Debug.fail("Unexpected moduleResolution: "+f)}d&&(d.set(n,_),e.isExternalModuleNameRelative(n)||s.getOrCreateCacheForModuleName(n,c).set(l,_))}return u&&(_.resolvedModule?t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,n,_.resolvedModule.resolvedFileName):t(o,e.Diagnostics.Module_name_0_was_not_resolved,n)),_},e.resolveJSModule=function(e,t,r){var n=T(e,t,r),i=n.resolvedModule,a=n.failedLookupLocations;if(!i)throw new Error("Could not resolve JS module '"+e+"' starting at '"+t+"'. Looked in: "+a.join(", "));return i.resolvedFileName},e.tryResolveJSModule=function(e,t,r){var n=T(e,t,r).resolvedModule;return n&&n.resolvedFileName};var S=[o.JavaScript],D=[o.TypeScript,o.JavaScript],k=D.concat([o.Json]),C=[o.TSConfig];function T(t,r,n){return N(t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},n,void 0,S,void 0)}function E(t,r,n,i,a,o,s){return N(t,e.getDirectoryPath(r),n,i,a,s?C:n.resolveJsonModule?k:D,o)}function N(n,i,a,c,u,d,_){var f=r(a,c),p=[],m={compilerOptions:a,host:c,traceEnabled:f,failedLookupLocations:p},g=e.forEach(d,function(r){return function(r){var l=x(r,n,i,function(e,t,r,n){return w(e,t,r,n,!0)},m);if(l)return Z({resolved:l,isExternalLibraryImport:P(l.path)});if(e.isExternalModuleNameRelative(n)){var d=e.normalizePathAndParts(e.combinePaths(i,n)),p=d.path,g=d.parts,h=w(r,p,!1,m,!0);return h&&Z({resolved:h,isExternalLibraryImport:e.contains(g,"node_modules")})}f&&t(c,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,n,o[r]);var y=U(r,n,i,m,u,_);if(!y)return;var v=y.value;if(!a.preserveSymlinks&&v&&!v.originalPath){var b=A(v.path,c,f),S=b===v.path?void 0:v.path;v=s({},v,{path:b,originalPath:S})}return{value:v&&{resolved:v,isExternalLibraryImport:!0}}}(r)});if(g&&g.value){var h=g.value;return l(h.resolved,h.isExternalLibraryImport,p)}return{resolvedModule:void 0,failedLookupLocations:p}}function A(r,n,i){if(!n.realpath)return r;var a=e.normalizePath(n.realpath(r));return i&&t(n,e.Diagnostics.Resolving_real_path_for_0_result_1,r,a),e.Debug.assert(n.fileExists(a),r+" linked to nonexistent file "+a),a}function w(r,i,a,s,c){if(s.traceEnabled&&t(s.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,o[r]),!e.hasTrailingDirectorySeparator(i)){if(!a){var u=e.getDirectoryPath(i);e.directoryProbablyExists(u,s.host)||(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),a=!0)}var l=O(r,i,a,s);if(l){var d=c?function(t){var r=e.normalizePath(t.path),n=r.lastIndexOf(e.nodeModulesPathPart);if(-1===n)return;var i=n+e.nodeModulesPathPart.length,a=F(r,i);64===r.charCodeAt(i)&&(a=F(r,a));var o=r.slice(0,a),s=e.removeExtension(r.slice(a+1),t.ext)+".d.ts";return{packageDirectory:o,subModuleName:s}}(l):void 0,_=d&&j(d.packageDirectory,d.subModuleName,!1,s);return n(_&&_.packageId,l)}}a||(e.directoryProbablyExists(i,s.host)||(s.traceEnabled&&t(s.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),a=!0));return B(r,i,a,s,c)}function P(t){return e.stringContains(t,e.nodeModulesPathPart)}function F(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function I(t){return""===t?"index.d.ts":e.endsWith(t,".d.ts")?t:"index"===t||e.endsWith(t,"/index")?t+".d.ts":t+"/index.d.ts"}function M(e,t,r,n){return i(O(e,t,r,n))}function O(r,n,i,a){if(r===o.Json||r===o.TSConfig){var s=e.tryRemoveExtension(n,".json");return void 0===s&&r===o.Json?void 0:L(s||n,r,i,a)}var c=L(n,r,i,a);if(c)return c;if(e.hasJSFileExtension(n)){var u=e.removeFileExtension(n);if(a.traceEnabled){var l=n.substring(u.length);t(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,l)}return L(u,r,i,a)}}function L(t,r,n,i){if(!n){var a=e.getDirectoryPath(t);a&&(n=!e.directoryProbablyExists(a,i.host))}switch(r){case o.DtsOnly:return s(".d.ts");case o.TypeScript:return s(".ts")||s(".tsx")||s(".d.ts");case o.JavaScript:return s(".js")||s(".jsx");case o.TSConfig:case o.Json:return s(".json")}function s(e){var r=R(t+e,n,i);return void 0===r?void 0:{path:r,ext:e}}}function R(r,n,i){if(!n){if(i.host.fileExists(r))return i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r;i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,r)}i.failedLookupLocations.push(r)}function B(e,t,r,i,a){void 0===a&&(a=!0);var o=a?j(t,"",r,i):void 0,s=o&&o.packageId,c=o&&o.packageJsonContent;return n(s,z(e,t,r,i,c,c&&m(c,i)))}function j(r,n,i,a){var o=a.host,s=a.traceEnabled,c=!i&&e.directoryProbablyExists(r,o),u=e.combinePaths(r,"package.json");if(c&&o.fileExists(u)){var l=e.readJson(u,o);if(""===n){var d=f(l,r,a);if("string"==typeof d)n=I(d.substring(r.length+1));else{var _=p(l,r,a);if("string"==typeof _&&_.length>r.length){var g=_.substring(r.length+1);n=(e.forEach(e.supportedJSExtensions,function(t){return e.tryRemoveExtension(g,t)})||g)+".d.ts"}else n="index.d.ts"}}e.endsWith(n,".d.ts")||(n=I(n));var h=m(l,a),y="string"==typeof l.name&&"string"==typeof l.version?{name:l.name,subModuleName:n,version:l.version}:void 0;return s&&(y?t(o,e.Diagnostics.Found_package_json_at_0_Package_ID_is_1,u,e.packageIdToString(y)):t(o,e.Diagnostics.Found_package_json_at_0,u)),{packageJsonContent:l,packageId:y,versionPaths:h}}c&&s&&t(o,e.Diagnostics.File_0_does_not_exist,u),a.failedLookupLocations.push(u)}function z(r,n,s,c,u,l){var d;if(u)switch(r){case o.JavaScript:case o.Json:d=p(u,n,c);break;case o.TypeScript:d=f(u,n,c)||p(u,n,c);break;case o.DtsOnly:d=f(u,n,c);break;case o.TSConfig:d=function(e,t,r){return _(e,"tsconfig",t,r)}(u,n,c);break;default:return e.Debug.assertNever(r)}var m=function(r,n,a,s){var c=R(n,a,s);if(c){var u=function(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&function(e,t){switch(e){case o.JavaScript:return".js"===t||".jsx"===t;case o.TSConfig:case o.Json:return".json"===t;case o.TypeScript:return".ts"===t||".tsx"===t||".d.ts"===t;case o.DtsOnly:return".d.ts"===t}}(t,n)?{path:r,ext:n}:void 0}(r,c);if(u)return i(u);s.traceEnabled&&t(s.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,c)}return w(r===o.DtsOnly?o.TypeScript:r,n,a,s,!1)},g=d?!e.directoryProbablyExists(e.getDirectoryPath(d),c.host):void 0,h=s||!e.directoryProbablyExists(n,c.host),y=e.combinePaths(n,r===o.TSConfig?"tsconfig":"index");if(l&&(!d||e.containsPath(n,d))){var v=e.getRelativePathFromDirectory(n,d||y,!1);c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,l.version,e.version,v);var b=W(r,v,n,l.paths,m,g||h,c);if(b)return a(b.value)}var x=d&&a(m(r,d,g,c));return x||O(r,y,h,c)}function J(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),-1===r?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function U(e,t,r,n,i,a){return q(e,t,r,n,!1,i,a)}function q(t,r,n,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(r,s);return e.forEachAncestorDirectory(e.normalizeSlashes(n),function(n){if("node_modules"!==e.getBaseFileName(n)){var o=Q(c,r,n,i);return o||Z(K(t,r,n,i,a))}})}function K(r,n,i,a,s){var c=e.combinePaths(i,"node_modules"),u=e.directoryProbablyExists(c,a.host);!u&&a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c);var l=s?void 0:V(r,n,c,u,a);if(l)return l;if(r===o.TypeScript||r===o.DtsOnly){var d=e.combinePaths(c,"@types"),_=u;return u&&!e.directoryProbablyExists(d,a.host)&&(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),_=!1),V(o.DtsOnly,function(r,n){var i=G(r);n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i);return i}(n,a),d,_,a)}}function V(r,a,o,s,c){var u,l,d,_=e.normalizePath(e.combinePaths(o,a)),f=j(_,"",!s,c);if(f){u=f.packageJsonContent,l=f.packageId,d=f.versionPaths;var p=O(r,_,!s,c);if(p)return i(p);var m=z(r,_,!s,c,u,d);return n(l,m)}var g=function(e,t,r,i){var a=O(e,t,r,i)||z(e,t,r,i,u,d);return n(l,a)},h=J(a),y=h.packageName,v=h.rest;if(""!==v){var b=e.combinePaths(o,y),x=j(b,v,!s,c);if(x&&(l=x.packageId,d=x.versionPaths),d){c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,d.version,e.version,v);var S=s&&e.directoryProbablyExists(b,c.host),D=W(r,v,b,d.paths,g,!S,c);if(D)return D.value}}return g(r,_,!s,c)}function W(r,n,a,o,s,c,u){var l=e.matchPatternOrExact(e.getOwnKeys(o),n);if(l){var d=e.isString(l)?void 0:e.matchedText(l,n),_=e.isString(l)?l:e.patternText(l);return u.traceEnabled&&t(u.host,e.Diagnostics.Module_name_0_matched_pattern_1,n,_),{value:e.forEach(o[_],function(n){var o=d?n.replace("*",d):n,l=e.normalizePath(e.combinePaths(a,o));u.traceEnabled&&t(u.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,n,o);var _=e.tryGetExtensionFromPath(l);if(void 0!==_){var f=R(l,c,u);if(void 0!==f)return i({path:f,ext:_})}return s(r,l,c||!e.directoryProbablyExists(e.getDirectoryPath(l),u.host),u)})}}}e.nodeModuleNameResolver=E,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=P,e.parsePackageName=J;var H="__";function G(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,H);if(r!==t)return r.slice(1)}return t}function X(t){return e.stringContains(t,H)?"@"+t.replace(H,e.directorySeparator):t}function Q(r,n,i,a){var o,s=r&&r.get(i);if(s)return a.traceEnabled&&t(a.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,i),(o=a.failedLookupLocations).push.apply(o,s.failedLookupLocations),{value:s.resolvedModule&&{path:s.resolvedModule.resolvedFileName,originalPath:s.resolvedModule.originalPath||!0,extension:s.resolvedModule.extension,packageId:s.resolvedModule.packageId}}}function Y(t,n,i,a,s,c){var u=[],d={compilerOptions:i,host:a,traceEnabled:r(i,a),failedLookupLocations:u},_=e.getDirectoryPath(n),f=p(o.TypeScript)||p(o.JavaScript);return l(f&&f.value,!1,u);function p(r){var n=x(r,t,_,M,d);if(n)return{value:n};if(e.isExternalModuleNameRelative(t)){var i=e.normalizePath(e.combinePaths(_,t));return Z(M(r,i,!1,d))}var a=s&&s.getOrCreateCacheForModuleName(t,c),u=e.forEachAncestorDirectory(_,function(n){var i=Q(a,t,n,d);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return Z(M(r,o,!1,d))});return u||(r===o.TypeScript?function(e,t,r){return q(o.DtsOnly,e,t,r,!0,void 0,void 0)}(t,_,d):void 0)}}function Z(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/"+G(e)},e.mangleScopedPackageName=G,e.getPackageNameFromTypesPackageName=function(t){var r=e.removePrefix(t,"@types/");return r!==t?X(r):t},e.unmangleScopedPackageName=X,e.classicNameResolver=Y,e.loadModuleFromGlobalCache=function(n,i,a,s,c){var u=r(a,s);u&&t(s,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,c);var d=[],_={compilerOptions:a,host:s,traceEnabled:u,failedLookupLocations:d};return l(K(o.DtsOnly,n,c,_,!1),!0,d)}}(d||(d={})),function(e){var t;function r(t){return t.body?function t(n){switch(n.kind){case 241:case 242:return 0;case 243:if(e.isEnumConst(n))return 2;break;case 249:case 248:if(!e.hasModifier(n,1))return 0;break;case 245:var i=0;return e.forEachChild(n,function(r){var n=t(r);switch(n){case 0:return;case 2:return void(i=2);case 1:return i=1,!0;default:e.Debug.assertNever(n)}}),i;case 244:return r(n);case 72:if(n.isInJSDocNamespace)return 0}return 1}(t.body):1}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=r,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"}(t||(t={}));var n=function(){var t,n,_,f,p,m,g,h,y,v,b,x,S,D,k,C,T,E,N,A,w,P,F,I,M=0,O={flags:1},L={flags:1},R=0;function B(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(r,i){t=r,n=i,_=e.getEmitScriptTarget(n),w=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,i),F=e.createUnderscoreEscapedMap(),M=0,I=t.isDeclarationFile,P=e.objectAllocator.getSymbolConstructor(),t.locals||(Ae(t),t.symbolCount=M,t.classifiableNames=F,function(){if(!y)return;for(var r=p,n=h,i=g,a=f,o=b,s=0,c=y;s<c.length;s++){var u=c[s],l=e.getJSDocHost(u);p=e.findAncestor(l.parent,function(e){return!!(1&ge(e))})||t,g=e.getEnclosingBlockScopeContainer(l)||t,b={flags:2},f=u,Ae(u.typeExpression),u.fullName&&72!==u.fullName.kind?Ae(u.fullName):(f=u.parent,Se(u,524288,67897832))}p=r,h=n,g=i,f=a,b=o}());t=void 0,n=void 0,_=void 0,f=void 0,p=void 0,m=void 0,g=void 0,h=void 0,y=void 0,v=!1,b=void 0,x=void 0,S=void 0,D=void 0,k=void 0,C=void 0,E=void 0,N=!1,A=0,R=0};function j(e,t){return M++,new P(e,t)}function z(t,r,n){t.flags|=n,r.symbol=t,t.declarations=e.append(t.declarations,r),1955&n&&!t.exports&&(t.exports=e.createSymbolTable()),6240&n&&!t.members&&(t.members=e.createSymbolTable()),67220415&n&&J(t,r)}function J(t,r){var n=t.valueDeclaration;(!n||e.isAssignmentDeclaration(n)&&!e.isAssignmentDeclaration(r)||n.kind!==r.kind&&e.isEffectiveModuleDeclaration(n))&&(t.valueDeclaration=r)}function U(t){if(254===t.kind)return t.isExportEquals?"export=":"default";var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t)){var n=e.getTextOfIdentifierOrLiteral(r);return e.isGlobalScopeAugmentation(t)?"__global":'"'+n+'"'}if(149===r.kind){var i=r.expression;return e.isStringOrNumericLiteralLike(i)?e.escapeLeadingUnderscores(i.text):(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.idText(i.name)))}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 157:return"__constructor";case 165:case 160:case 293:return"__call";case 166:case 161:return"__new";case 162:return"__index";case 255:return"__export";case 279:return"export=";case 204:if(2===e.getAssignmentDeclarationKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 289:return e.isJSDocConstructSignature(t)?"__new":"__call";case 151:e.Debug.assert(289===t.parent.kind,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind)+", expected JSDocFunctionType"});var a=t.parent,o=a.parameters.indexOf(t);return"arg"+o}}function q(r,n,i,a,o,s){e.Debug.assert(!e.hasDynamicName(i));var c,u=e.hasModifier(i,512),l=u&&n?"default":U(i);if(void 0===l)c=j(0,"__missing");else if(c=r.get(l),2885600&a&&F.set(l,!0),c){if(s&&!c.isReplaceableByMethod)return c;if(c.flags&o)if(c.isReplaceableByMethod)r.set(l,c=j(0,l));else if(!(3&a&&67108864&c.flags)){e.isNamedDeclaration(i)&&(i.name.parent=i);var d=2&c.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,_=!0;(384&c.flags||384&a)&&(d=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,_=!1),c.declarations&&c.declarations.length&&(u?(d=e.Diagnostics.A_module_cannot_have_multiple_default_exports,_=!1):c.declarations&&c.declarations.length&&254===i.kind&&!i.isExportEquals&&(d=e.Diagnostics.A_module_cannot_have_multiple_default_exports,_=!1));var f=function(r){var n;t.bindDiagnostics.push(B(e.getNameOfDeclaration(r)||r,d,_?(n=r,e.isNamedDeclaration(n)?e.declarationNameToString(n.name):e.unescapeLeadingUnderscores(e.Debug.assertDefined(U(n)))):void 0))};e.forEach(c.declarations,f),f(i),c=j(0,l)}}else r.set(l,c=j(0,l)),s&&(c.isReplaceableByMethod=!0);return z(c,i,a),c.parent?e.Debug.assert(c.parent===n,"Existing symbol parent should match new one"):c.parent=n,c}function K(t,r,n){var i=1&e.getCombinedModifierFlags(t);if(2097152&r)return 257===t.kind||248===t.kind&&i?q(p.symbol.exports,p.symbol,t,r,n):q(p.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJSFile(t)),!e.isAmbientModule(t)&&(i||32&p.flags)||e.isJSDocTypeAlias(t)){if(e.hasModifier(t,512)&&!U(t))return q(p.symbol.exports,p.symbol,t,r,n);var a=67220415&r?1048576:0,o=q(p.locals,void 0,t,a,n);return o.exportSymbol=q(p.symbol.exports,p.symbol,t,r,n),t.localSymbol=o,o}return q(p.locals,void 0,t,r,n)}function V(e){if(I)X(e);else if(536870912&e.transformFlags)I=!0,X(e),I=!1,R|=e.transformFlags&~l(e.kind);else{var t=R;R=0,X(e),R=t|u(e,R)}}function W(e){H(e,function(e){return 239===e.kind?Ae(e):void 0}),H(e,function(e){return 239!==e.kind?Ae(e):void 0})}function H(t,r){if(void 0===r&&(r=Ae),void 0!==t)if(I)e.forEach(t,r);else{var n=R;R=0;for(var i=0,a=0,o=t;a<o.length;a++){var s=o[a];r(s),i|=-536870913&s.transformFlags}t.transformFlags=536870912|i,R|=n}}function G(t){e.forEachChild(t,Ae,H)}function X(t){if(function(t){if(!(1&b.flags))return!1;if(b===O){var a=e.isStatementButNotDeclaration(t)&&220!==t.kind||240===t.kind||244===t.kind&&function(e){var t=r(e);return 1===t||2===t&&!!n.preserveConstEnums}(t);if(a&&(b=L,!n.allowUnreachableCode)){var o=e.unreachableCodeIsError(n)&&!(4194304&t.flags)&&(!e.isVariableStatement(t)||!!(3&e.getCombinedNodeFlags(t.declarationList))||t.declarationList.declarations.some(function(e){return!!e.initializer}));!function(t,r){if(e.isStatement(t)&&i(t)&&e.isBlock(t.parent)){var n=t.parent.statements,a=e.sliceAfter(n,t);e.getRangesWhere(a,i,function(e,t){return r(a[e],a[t-1])})}else r(t,t)}(t,function(t,r){return Ne(o,t,r,e.Diagnostics.Unreachable_code_detected)})}}return!0}(t))return G(t),void we(t);switch(t.kind){case 224:!function(e){var t=te(),r=ee(),n=ee();ne(t,b),b=t,le(e.expression,r,n),b=ce(r),de(e.statement,n,t),ne(t,b),b=ce(n)}(t);break;case 223:!function(t){var r=te(),n=233===t.parent.kind?e.lastOrUndefined(E):void 0,i=n?n.continueTarget:ee(),a=n?n.breakTarget:ee();ne(r,b),b=r,de(t.statement,a,i),ne(i,b),b=ce(i),le(t.expression,r,a),b=ce(a)}(t);break;case 225:!function(e){var t=te(),r=ee(),n=ee();Ae(e.initializer),ne(t,b),b=t,le(e.condition,r,n),b=ce(r),de(e.statement,n,t),Ae(e.incrementor),ne(t,b),b=ce(n)}(t);break;case 226:case 227:!function(e){var t=te(),r=ee();ne(t,b),b=t,227===e.kind&&Ae(e.awaitModifier);Ae(e.expression),ne(r,b),Ae(e.initializer),238!==e.initializer.kind&&pe(e.initializer);de(e.statement,r,t),ne(t,b),b=ce(r)}(t);break;case 222:!function(e){var t=ee(),r=ee(),n=ee();le(e.expression,t,r),b=ce(t),Ae(e.thenStatement),ne(n,b),b=ce(r),Ae(e.elseStatement),ne(n,b),b=ce(n)}(t);break;case 230:case 234:!function(e){Ae(e.expression),230===e.kind&&(N=!0,D&&ne(D,b));b=O}(t);break;case 229:case 228:!function(e){if(Ae(e.label),e.label){var t=function(e){if(E)for(var t=0,r=E;t<r.length;t++){var n=r[t];if(n.name===e)return n}return}(e.label.escapedText);t&&(t.referenced=!0,_e(e,t.breakTarget,t.continueTarget))}else _e(e,x,S)}(t);break;case 235:!function(e){var t=ee(),r=b;Ae(e.tryBlock),ne(t,b);var n=b,i=O;e.catchClause&&(b=r,Ae(e.catchClause),ne(t,b),i=b);if(e.finallyBlock){var a={flags:2048,antecedent:r,lock:{}};if(ne(t,a),b=ce(t),Ae(e.finallyBlock),1&b.flags||1&n.flags&&1&i.flags&&(b=n===L||i===L?L:O),!(1&b.flags)){var o={flags:4096,antecedent:b};a.lock=o,b=o}}else b=ce(t)}(t);break;case 232:!function(t){var r=ee();Ae(t.expression);var n=x,i=T;x=r,T=b,Ae(t.caseBlock),ne(r,b);var a=e.forEach(t.caseBlock.clauses,function(e){return 272===e.kind});t.possiblyExhaustive=!a&&!r.antecedents,a||ne(r,ae(T,t,0,0));x=n,T=i,b=ce(r)}(t);break;case 246:!function(t){var r=R;R=0;for(var i=t.clauses,a=O,o=0;o<i.length;o++){for(var s=o;!i[o].statements.length&&o+1<i.length;)Ae(i[o]),o++;var c=ee();ne(c,ae(T,t.parent,s,o+1)),ne(c,a),b=ce(c);var u=i[o];Ae(u),a=b,1&b.flags||o===i.length-1||!n.noFallthroughCasesInSwitch||Ee(u,e.Diagnostics.Fallthrough_case_in_switch)}i.transformFlags=536870912|R,R|=r}(t);break;case 271:!function(e){var t=b;b=T,Ae(e.expression),b=t,H(e.statements)}(t);break;case 233:!function(t){var r=te(),i=ee();Ae(t.label),ne(r,b);var a=function(e,t,r){var n={name:e,breakTarget:t,continueTarget:r,referenced:!1};return(E||(E=[])).push(n),n}(t.label.escapedText,i,r);Ae(t.statement),E.pop(),a.referenced||n.allowUnusedLabels||function(e,t,r){Ne(e,t,t,r)}(e.unusedLabelIsError(n),t.label,e.Diagnostics.Unused_label);t.statement&&223===t.statement.kind||(ne(i,b),b=ce(i))}(t);break;case 202:!function(e){if(52===e.operator){var t=k;k=C,C=t,G(e),C=k,k=t}else G(e),44!==e.operator&&45!==e.operator||pe(e.operand)}(t);break;case 203:!function(e){G(e),(44===e.operator||45===e.operator)&&pe(e.operand)}(t);break;case 204:!function(t){var r=t.operatorToken.kind;if(54===r||55===r)if(function(e){for(;195===e.parent.kind||202===e.parent.kind&&52===e.parent.operator;)e=e.parent;return!function(e){var t=e.parent;switch(t.kind){case 222:case 224:case 223:return t.expression===e;case 225:case 205:return t.condition===e}return!1}(e)&&!ue(e.parent)}(t)){var n=ee();me(t,n,n),b=ce(n)}else me(t,k,C);else if(G(t),e.isAssignmentOperator(r)&&!e.isAssignmentTarget(t)&&(pe(t.left),59===r&&190===t.left.kind)){var i=t.left;$(i.expression)&&(b=se(b,t))}}(t);break;case 198:!function(e){G(e),189===e.expression.kind&&pe(e.expression)}(t);break;case 205:!function(e){var t=ee(),r=ee(),n=ee();le(e.condition,t,r),b=ce(t),Ae(e.questionToken),Ae(e.whenTrue),ne(n,b),b=ce(r),Ae(e.colonToken),Ae(e.whenFalse),ne(n,b),b=ce(n)}(t);break;case 237:!function(t){G(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&function t(r){var n=e.isOmittedExpression(r)?void 0:r.name;if(e.isBindingPattern(n))for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];t(o)}else b=oe(b,r)}(t)}(t);break;case 191:!function(t){var r=t.expression;for(;195===r.kind;)r=r.expression;196===r.kind||197===r.kind?(H(t.typeArguments),H(t.arguments),Ae(t.expression)):G(t);if(189===t.expression.kind){var n=t.expression;$(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(b=se(b,t))}}(t);break;case 304:case 297:!function(e){e.tagName.parent=e,e.fullName&&d(e,e.fullName)}(t);break;case 279:W(t.statements),Ae(t.endOfFileToken);break;case 218:case 245:W(t.statements);break;default:G(t)}we(t)}function Q(t){switch(t.kind){case 72:case 100:case 189:case 190:return Y(t);case 191:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++){var n=r[t];if(Y(n))return!0}if(189===e.expression.kind&&Y(e.expression.expression))return!0;return!1}(t);case 195:return Q(t.expression);case 204:return function(t){switch(t.operatorToken.kind){case 59:return Y(t.left);case 33:case 34:case 35:case 36:return $(t.left)||$(t.right)||Z(t.right,t.left)||Z(t.left,t.right);case 94:return $(t.left);case 93:return r=t.left,n=t.right,e.isStringLiteralLike(r)&&Q(n);case 27:return Q(t.right)}var r,n;return!1}(t);case 202:return 52===t.operator&&Q(t.operand);case 199:return Q(t.expression)}return!1}function Y(t){return 72===t.kind||100===t.kind||98===t.kind||e.isPropertyAccessExpression(t)&&Y(t.expression)||e.isElementAccessExpression(t)&&t.argumentExpression&&(e.isStringLiteral(t.argumentExpression)||e.isNumericLiteral(t.argumentExpression))&&Y(t.expression)}function Z(t,r){return e.isTypeOfExpression(t)&&$(t.expression)&&e.isStringLiteralLike(r)}function $(e){switch(e.kind){case 195:return $(e.expression);case 204:switch(e.operatorToken.kind){case 59:return $(e.left);case 27:return $(e.right)}}return Y(e)}function ee(){return{flags:4,antecedents:void 0}}function te(){return{flags:8,antecedents:void 0}}function re(e){e.flags|=512&e.flags?1024:512}function ne(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),re(r))}function ie(e,t,r){return 1&t.flags?t:r?102===r.kind&&64&e||87===r.kind&&32&e?O:Q(r)?(re(t),{flags:e,expression:r,antecedent:t}):t:32&e?t:O}function ae(e,t,r,n){return Q(t.expression)?(re(e),{flags:128,switchStatement:t,clauseStart:r,clauseEnd:n,antecedent:e}):e}function oe(e,t){return re(e),{flags:16,antecedent:e,node:t}}function se(e,t){re(e);var r={flags:256,antecedent:e,node:t};return r}function ce(e){var t=e.antecedents;return t?1===t.length?t[0]:e:O}function ue(e){for(;;)if(195===e.kind)e=e.expression;else{if(202!==e.kind||52!==e.operator)return 204===e.kind&&(54===e.operatorToken.kind||55===e.operatorToken.kind);e=e.operand}}function le(e,t,r){var n=k,i=C;k=t,C=r,Ae(e),k=n,C=i,e&&ue(e)||(ne(t,ie(32,b,e)),ne(r,ie(64,b,e)))}function de(e,t,r){var n=x,i=S;x=t,S=r,Ae(e),x=n,S=i}function _e(e,t,r){var n=229===e.kind?t:r;n&&(ne(n,b),b=O)}function fe(e){204===e.kind&&59===e.operatorToken.kind?pe(e.left):pe(e)}function pe(e){if(Y(e))b=oe(b,e);else if(187===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];208===n.kind?pe(n.expression):fe(n)}else if(188===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];275===o.kind?fe(o.initializer):276===o.kind?pe(o.name):277===o.kind&&pe(o.expression)}}function me(e,t,r){var n=ee();54===e.operatorToken.kind?le(e.left,n,r):le(e.left,t,n),b=ce(n),Ae(e.operatorToken),le(e.right,t,r)}function ge(t){switch(t.kind){case 209:case 240:case 243:case 188:case 168:case 292:case 268:return 1;case 241:return 65;case 244:case 242:case 181:return 33;case 279:return 37;case 156:if(e.isObjectLiteralOrClassExpressionMethod(t))return 173;case 157:case 239:case 155:case 158:case 159:case 160:case 293:case 289:case 165:case 161:case 162:case 166:return 45;case 196:case 197:return 61;case 245:return 4;case 154:return t.initializer?4:0;case 274:case 225:case 226:case 227:case 246:return 2;case 218:return e.isFunctionLike(t.parent)?0:2}return 0}function he(e){h&&(h.nextContainer=e),h=e}function ye(r,n,i){switch(p.kind){case 244:return K(r,n,i);case 279:return function(r,n,i){return e.isExternalModule(t)?K(r,n,i):q(t.locals,void 0,r,n,i)}(r,n,i);case 209:case 240:return function(t,r,n){return e.hasModifier(t,32)?q(p.symbol.exports,p.symbol,t,r,n):q(p.symbol.members,p.symbol,t,r,n)}(r,n,i);case 243:return q(p.symbol.exports,p.symbol,r,n,i);case 168:case 292:case 188:case 241:case 268:return q(p.symbol.members,p.symbol,r,n,i);case 165:case 166:case 160:case 161:case 293:case 162:case 156:case 155:case 157:case 158:case 159:case 239:case 196:case 197:case 289:case 304:case 297:case 242:case 181:return q(p.locals,void 0,r,n,i)}}function ve(e){4194304&e.flags&&!function(e){var t=279===e.kind?e:e.body;if(t&&(279===t.kind||245===t.kind))for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(255===i.kind||254===i.kind)return!0}return!1}(e)?e.flags|=32:e.flags&=-33}function be(e){var t=r(e),n=0!==t;return ye(e,n?512:1024,n?110735:0),t}function xe(e,t,r){var n=j(t,r);return 106508&t&&(n.parent=p.symbol),z(n,e,t),n}function Se(t,r,n){switch(g.kind){case 244:K(t,r,n);break;case 279:if(e.isExternalOrCommonJsModule(p)){K(t,r,n);break}default:g.locals||(g.locals=e.createSymbolTable(),he(g)),q(g.locals,void 0,t,r,n)}}function De(r){!(w&&r.originalKeywordKind>=109&&r.originalKeywordKind<=117)||e.isIdentifierName(r)||4194304&r.flags||t.parseDiagnostics.length||t.bindDiagnostics.push(B(r,function(r){if(e.getContainingClass(r))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(r),e.declarationNameToString(r)))}function ke(r,n){if(n&&72===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(r),e.idText(i)))}}var o}function Ce(e){w&&ke(e,e.name)}function Te(r){if(_<2&&279!==g.kind&&244!==g.kind&&!e.isFunctionLike(g)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){if(e.getContainingClass(r))return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode;if(t.externalModuleIndicator)return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(r)))}}function Ee(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Ne(r,n,i,a){!function(r,n,i){var a=e.createFileDiagnostic(t,n.pos,n.end-n.pos,i);r?t.bindDiagnostics.push(a):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,s({},a,{category:e.DiagnosticCategory.Suggestion}))}(r,{pos:e.getTokenPosOfNode(n,t),end:i.end},a)}function Ae(r){if(r){r.parent=f;var i=w;if(function(r){switch(r.kind){case 72:if(r.isInJSDocNamespace){for(var i=r.parent;i&&!e.isJSDocTypeAlias(i);)i=i.parent;Se(i,524288,67897832);break}case 100:return b&&(e.isExpression(r)||276===f.kind)&&(r.flowNode=b),De(r);case 189:case 190:b&&Y(r)&&(r.flowNode=b),e.isSpecialPropertyDeclaration(r)&&function(t){100===t.expression.kind?Oe(t):e.isPropertyAccessEntityNameExpression(t)&&279===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?Le(t,t.parent):Re(t))}(r),e.isInJSFile(r)&&t.commonJsModuleIndicator&&e.isModuleExportsPropertyAccessExpression(r)&&!c(g,"module")&&q(t.locals,void 0,r.expression,134217729,67220414);break;case 204:var s=e.getAssignmentDeclarationKind(r);switch(s){case 1:Me(r);break;case 2:!function(r){if(!Ie(r))return;var n=e.getRightMostAssignedExpression(r.right);if(e.isEmptyObjectLiteral(n)||p===t&&a(t,n))return;var i=e.exportAssignmentIsAlias(r)?2097152:1049092;q(t.symbol.exports,t.symbol,r,67108864|i,0)}(r);break;case 3:Le(r.left,r);break;case 6:!function(e){e.left.parent=e,e.right.parent=e;var t=e.left;ze(t.expression,t,!1)}(r);break;case 4:Oe(r);break;case 5:!function(r){var n=r.left,i=Je(n.expression);if(!e.isInJSFile(r)&&!e.isFunctionSymbol(i))return;r.left.parent=r,r.right.parent=r,e.isIdentifier(n.expression)&&p===t&&o(t,n.expression)?Me(r):Re(n)}(r);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(t){w&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&ke(t,t.left)}(r);case 274:return function(e){w&&e.variableDeclaration&&ke(e,e.variableDeclaration.name)}(r);case 198:return function(r){if(w&&72===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(r);case 8:return function(r){w&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(B(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(r);case 203:return function(e){w&&ke(e,e.operand)}(r);case 202:return function(e){w&&(44!==e.operator&&45!==e.operator||ke(e,e.operand))}(r);case 231:return function(t){w&&Ee(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(r);case 233:return function(t){w&&n.target>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Ee(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(r);case 178:return void(v=!0);case 163:break;case 150:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.find(t.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),q(r.locals,void 0,t,262144,67635688)):ye(t,262144,67635688)}else if(176===t.parent.kind){var n=function(t){var r=e.findAncestor(t,function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t});return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),q(n.locals,void 0,t,262144,67635688)):xe(t,262144,U(t))}else ye(t,262144,67635688)}(r);case 151:return Ke(r);case 237:return qe(r);case 186:return r.flowNode=b,qe(r);case 154:case 153:return function(e){return Ve(e,4|(e.questionToken?16777216:0),0)}(r);case 275:case 276:return Ve(r,4,0);case 278:return Ve(r,8,68008959);case 160:case 161:case 162:return ye(r,131072,0);case 156:case 155:return Ve(r,8192|(r.questionToken?16777216:0),e.isObjectLiteralMethod(r)?0:67212223);case 239:return function(r){t.isDeclarationFile||4194304&r.flags||e.isAsyncFunction(r)&&(A|=1024);Ce(r),w?(Te(r),Se(r,16,67219887)):ye(r,16,67219887)}(r);case 157:return ye(r,16384,0);case 158:return Ve(r,32768,67154879);case 159:return Ve(r,65536,67187647);case 165:case 289:case 293:case 166:return function(t){var r=j(131072,U(t));z(r,t,131072);var n=j(2048,"__type");z(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(r);case 168:case 292:case 181:return function(e){return xe(e,2048,"__type")}(r);case 188:return function(r){var n;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(n||(n={})),w)for(var i=e.createUnderscoreEscapedMap(),a=0,o=r.properties;a<o.length;a++){var s=o[a];if(277!==s.kind&&72===s.name.kind){var c=s.name,u=275===s.kind||276===s.kind||156===s.kind?1:2,l=i.get(c.escapedText);if(l){if(1===u&&1===l){var d=e.getErrorSpanForNode(t,c);t.bindDiagnostics.push(e.createFileDiagnostic(t,d.start,d.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else i.set(c.escapedText,u)}}return xe(r,4096,"__object")}(r);case 196:case 197:return function(r){t.isDeclarationFile||4194304&r.flags||e.isAsyncFunction(r)&&(A|=1024);b&&(r.flowNode=b);Ce(r);var n=r.name?r.name.escapedText:"__function";return xe(r,16,n)}(r);case 191:var u=e.getAssignmentDeclarationKind(r);switch(u){case 7:return function(e){var t=Je(e.arguments[0]),r=279===e.parent.parent.kind;t=Be(t,e.arguments[0],r,!1),je(e,t,!1)}(r);case 8:return function(e){if(!Ie(e))return;var t=Ue(e.arguments[0],void 0,function(e,t){return t&&z(t,e,67110400),t});if(t){q(t.exports,t,e,1048580,0)}}(r);case 9:return function(e){var t=Je(e.arguments[0].expression);je(e,t,!0)}(r);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(r)&&function(r){!t.commonJsModuleIndicator&&e.isRequireCall(r,!1)&&Ie(r)}(r);break;case 209:case 240:return w=!0,function(r){if(240===r.kind)Se(r,32,68008383);else{var n=r.name?r.name.escapedText:"__class";xe(r,32,n),r.name&&F.set(r.name.escapedText,!0)}var i=r.symbol,a=j(4194308,"prototype"),o=i.exports.get(a.escapedName);o&&(r.name&&(r.name.parent=r),t.bindDiagnostics.push(B(o.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(a))));i.exports.set(a.escapedName,a),a.parent=i}(r);case 241:return Se(r,64,67897736);case 242:return Se(r,524288,67897832);case 243:return function(t){return e.isEnumConst(t)?Se(t,128,68008831):Se(t,256,68008191)}(r);case 244:return function(r){if(ve(r),e.isAmbientModule(r))if(e.hasModifier(r,1)&&Ee(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))be(r);else{var n=void 0;if(10===r.name.kind){var i=r.name.text;e.hasZeroOrOneAsteriskCharacter(i)?n=e.tryParsePattern(i):Ee(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=ye(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&{pattern:n,symbol:a})}else{var o=be(r);if(0!==o){var a=r.symbol;a.constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule}}}(r);case 268:return function(e){return xe(e,4096,"__jsxAttributes")}(r);case 267:return function(e,t,r){return ye(e,t,r)}(r,4,0);case 248:case 251:case 253:case 257:return ye(r,2097152,2097152);case 247:return function(r){r.modifiers&&r.modifiers.length&&t.bindDiagnostics.push(B(r,e.Diagnostics.Modifiers_cannot_appear_here));var n=e.isSourceFile(r.parent)?e.isExternalModule(r.parent)?r.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;n?t.bindDiagnostics.push(B(r,n)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),q(t.symbol.globalExports,t.symbol,r,2097152,2097152))}(r);case 250:return function(e){e.name&&ye(e,2097152,2097152)}(r);case 255:return function(e){p.symbol&&p.symbol.exports?e.exportClause||q(p.symbol.exports,p.symbol,e,8388608,0):xe(e,8388608,U(e))}(r);case 254:return function(t){if(p.symbol&&p.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=q(p.symbol.exports,p.symbol,t,r,67108863);t.isExportEquals&&J(n,t)}else xe(t,2097152,U(t))}(r);case 279:return Pe(r.statements),function(){if(ve(t),e.isExternalModule(t))Fe();else if(e.isJsonSourceFile(t)){Fe();var r=t.symbol;q(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=r}}();case 218:if(!e.isFunctionLike(r.parent))return;case 245:return Pe(r.statements);case 299:if(293===r.parent.kind)return Ke(r);if(292!==r.parent.kind)break;case 305:var l=r,d=l.isBracketed||l.typeExpression&&288===l.typeExpression.type.kind?16777220:4;return ye(l,d,0);case 304:case 297:(y||(y=[])).push(r)}}(r),r.kind>147){var s=f;f=r;var l=ge(r);0===l?V(r):function(t,r){var n=p,i=m,a=g;1&r?(197!==t.kind&&(m=p),p=g=t,32&r&&(p.locals=e.createSymbolTable()),he(p)):2&r&&((g=t).locals=void 0);if(4&r){var o=b,s=x,c=S,u=D,l=E,d=N,_=16&r&&!e.hasModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t);_||(b={flags:2},144&r&&(b.container=t)),D=_||157===t.kind?ee():void 0,x=void 0,S=void 0,E=void 0,N=!1,V(t),t.flags&=-1409,!(1&b.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=128,N&&(t.flags|=256)),279===t.kind&&(t.flags|=A),D&&(ne(D,b),b=ce(D),157===t.kind&&(t.returnFlowNode=b)),_||(b=o),x=s,S=c,D=u,E=l,N=d}else 64&r?(v=!1,V(t),t.flags=v?64|t.flags:-65&t.flags):V(t);p=n,m=i,g=a}(r,l),f=s}else if(!I&&0==(536870912&r.transformFlags)){R|=u(r,0);var s=f;1===r.kind&&(f=r),we(r),f=s}w=i}}function we(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r<n.length;r++){var i=n[r];Ae(i)}else for(var a=0,o=t.jsDoc;a<o.length;a++){var i=o[a];d(t,i)}}function Pe(r){if(!w)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))return;if(o=a,s=void 0,'"use strict"'===(s=e.getSourceTextOfNodeFromSourceFile(t,o.expression))||"'use strict'"===s)return void(w=!0)}var o,s}function Fe(){xe(t,512,'"'+e.removeFileExtension(t.fileName)+'"')}function Ie(e){return!t.externalModuleIndicator&&(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,Fe()),!0)}function Me(t){if(Ie(t)){var r=t.left,n=Ue(r.expression,void 0,function(e,t){return t&&z(t,e,67110400),t});if(n){var i=e.isClassExpression(t.right)?1048612:1048580;q(n.exports,n,r,i,0)}}}function Oe(t){e.Debug.assert(e.isInJSFile(t));var r=e.getThisContainer(t,!1);switch(r.kind){case 239:case 196:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&59===r.parent.operatorToken.kind){var i=r.parent.left;e.isPropertyAccessEntityNameExpression(i)&&e.isPrototypeAccess(i.expression)&&(n=Je(i.expression.expression,m))}n&&(n.members=n.members||e.createSymbolTable(),q(n.members,n,t,4,0));break;case 157:case 154:case 156:case 158:case 159:var a=r.parent,o=e.hasModifier(r,32)?a.symbol.exports:a.symbol.members;q(o,a.symbol,t,4,0,!0);break;case 279:break;default:e.Debug.fail(e.Debug.showSyntaxKind(r))}}function Le(e,t){var r=e.expression,n=r.expression;e.parent=t,n.parent=r,r.parent=e,ze(n,e,!0)}function Re(e){e.expression.parent=e,ze(e.expression,e,!1)}function Be(r,n,i,a){if(i&&!a&&(!r||!(1920&r.flags))){r=Ue(n,r,function(r,n,i){if(n)return z(n,r,67110400),n;var a=i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable());return q(a,i,r,67110400,110735)})}return r}function je(t,r,n){if(r&&function(t){if(1072&t.flags)return!0;var r=t.valueDeclaration;if(r&&e.isCallExpression(r))return!!e.getAssignedExpandoInitializer(r);var n=r?e.isVariableDeclaration(r)?r.initializer:e.isBinaryExpression(r)?r.right:e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)?r.parent.right:void 0:void 0;if(n=n&&e.getRightMostAssignedExpression(n)){var i=e.isPrototypeAccess(e.isVariableDeclaration(r)?r.name:e.isBinaryExpression(r)?r.left:r);return!!e.getExpandoInitializer(e.isBinaryExpression(n)&&55===n.operatorToken.kind?n.right:n,i)}return!1}(r)){var i=n?r.members||(r.members=e.createSymbolTable()):r.exports||(r.exports=e.createSymbolTable()),a=e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t)),o=a?8192:4,s=a?67212223:0;q(i,r,t,67108864|o,-67108865&s)}}function ze(t,r,n){var i=Je(t),a=e.isBinaryExpression(r.parent)?279===function(t){for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent}(r.parent).parent.kind:279===r.parent.parent.kind;i=Be(i,r.expression,a,n),je(r,i,n)}function Je(t,r){if(void 0===r&&(r=p),e.isIdentifier(t))return c(r,t.escapedText);var n=Je(t.expression);return n&&n.exports&&n.exports.get(t.name.escapedText)}function Ue(r,n,i){if(a(t,r))return t.symbol;if(e.isIdentifier(r))return i(r,Je(r),n);var o=Ue(r.expression,n,i);return o&&o.exports?i(r.name,o.exports.get(r.name.escapedText),o):e.Debug.fail()}function qe(t){if(w&&ke(t,t.name),!e.isBindingPattern(t.name)){var r=e.isInJSFile(t)&&!!e.getJSDocEnumTag(t),n=r?256:0,i=r?68008191:0;e.isBlockOrCatchScoped(t)?Se(t,2|n,67220415|i):e.isParameterDeclaration(t)?ye(t,1,67220415):ye(t,1|n,67220414|i)}}function Ke(t){if((299!==t.kind||293===p.kind)&&(!w||4194304&t.flags||ke(t,t.name),e.isBindingPattern(t.name)?xe(t,1,"__"+t.parent.parameters.indexOf(t)):ye(t,1,67220415),e.isParameterPropertyDeclaration(t))){var r=t.parent.parent;q(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function Ve(r,n,i){return t.isDeclarationFile||4194304&r.flags||!e.isAsyncFunction(r)||(A|=1024),b&&e.isObjectLiteralOrClassExpressionMethod(r)&&(r.flowNode=b),e.hasDynamicName(r)?xe(r,n,"__computed"):ye(r,n,i)}}();function i(t){return!(e.isFunctionDeclaration(t)||function(t){switch(t.kind){case 241:case 242:return!0;case 244:return 1!==r(t);case 243:return e.hasModifier(t,2048);default:return!1}}(t)||e.isEnumDeclaration(t)||e.isVariableStatement(t)&&!(3&e.getCombinedNodeFlags(t))&&t.declarationList.declarations.some(function(e){return!e.initializer}))}function a(t,r){return e.isExportsIdentifier(r)||e.isModuleExportsPropertyAccessExpression(r)||e.isIdentifier(r)&&o(t,r)}function o(t,r){var n=c(t,r.escapedText);return!!n&&!!n.valueDeclaration&&e.isVariableDeclaration(n.valueDeclaration)&&!!n.valueDeclaration.initializer&&function t(r,n){return a(r,n)||e.isAssignmentExpression(n,!0)&&(t(r,n.left)||t(r,n.right))}(t,n.valueDeclaration.initializer)}function c(t,r){var n=t.locals&&t.locals.get(r);return n?n.exportSymbol||n:e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r)?t.jsGlobalAugmentations.get(r):t.symbol&&t.symbol.exports&&t.symbol.exports.get(r)}function u(t,r){var n=t.kind;switch(n){case 191:return function(e,t){var r=t,n=e.expression;e.typeArguments&&(r|=3);(131072&t||100663296&n.transformFlags)&&(r|=192,67108864&n.transformFlags&&(r|=8192));92===n.kind&&(r|=16777216,8192&t&&(r|=16384));return e.transformFlags=536870912|r,-637666626&r}(t,r);case 192:return function(e,t){var r=t;e.typeArguments&&(r|=3);131072&t&&(r|=192);return e.transformFlags=536870912|r,-637666626&r}(t,r);case 244:return function(t,r){var n=3;0==(2&e.getModifierFlags(t))&&(n|=r);return t.transformFlags=536870912|n,-647001410&n}(t,r);case 195:return function(e,t){var r=t,n=e.expression,i=n.kind,a=n.transformFlags;212!==i&&194!==i||(r|=3);1024&a&&(r|=1024);return e.transformFlags=536870912|r,-536872258&r}(t,r);case 204:return function(e,t){var r=t,n=e.operatorToken.kind,i=e.left.kind;59===n&&188===i?r|=3272:59===n&&187===i?r|=3264:41!==n&&63!==n||(r|=32);return e.transformFlags=536870912|r,-637535554&r}(t,r);case 221:return function(e,t){var r=t;1024&e.expression.transformFlags&&(r|=192);return e.transformFlags=536870912|r,-637535554&r}(t,r);case 151:return function(t,r){var n=r,i=t.name,a=t.initializer,o=t.dotDotDotToken;(t.questionToken||t.type||4096&r&&e.some(t.decorators)||e.isThisIdentifier(i))&&(n|=3);e.hasModifier(t,92)&&(n|=4099);262144&r&&(n|=8);(2097152&r||a||o)&&(n|=65728);return t.transformFlags=536870912|n,-637535554&n}(t,r);case 197:return function(t,r){var n=192|r;(e.hasModifier(t,2270)||t.typeParameters||t.type)&&(n|=3);e.hasModifier(t,256)&&(n|=16);262144&r&&(n|=8);8192&r&&(n|=16384);return t.transformFlags=536870912|n,-653604162&n}(t,r);case 196:return function(t,r){var n=r;(e.hasModifier(t,2270)||t.typeParameters||t.type)&&(n|=3);e.hasModifier(t,256)&&(n|=t.asteriskToken?8:16);262144&r&&(n|=8);81920&r&&(n|=192);t.asteriskToken&&(n|=768);return t.transformFlags=536870912|n,-653620546&n}(t,r);case 239:return function(t,r){var n,i=e.getModifierFlags(t);!t.body||2&i?n=3:(n=8388608|r,(2270&i||t.typeParameters||t.type)&&(n|=3),256&i&&(n|=t.asteriskToken?8:16),262144&r&&(n|=8),81920&r&&(n|=192),t.asteriskToken&&(n|=768));return t.transformFlags=536870912|n,-653620546&n}(t,r);case 237:return function(e,t){var r=t;r|=2097344,262144&t&&(r|=8);e.type&&(r|=3);return e.transformFlags=536870912|r,-637535554&r}(t,r);case 238:return function(e,t){var r=8388608|t;2097152&t&&(r|=192);3&e.flags&&(r|=1048768);return e.transformFlags=536870912|r,-639894850&r}(t,r);case 219:return function(t,r){var n,i=t.declarationList.transformFlags;e.hasModifier(t,2)?n=3:(n=r,2097152&i&&(n|=192));return t.transformFlags=536870912|n,-637535554&n}(t,r);case 233:return function(t,r){var n=r;1048576&r&&e.isIterationStatement(t,!0)&&(n|=192);return t.transformFlags=536870912|n,-637535554&n}(t,r);case 240:return function(t,r){var n;e.hasModifier(t,2)?n=3:(n=192|r,(4096&r||t.typeParameters)&&(n|=3),32768&r&&(n|=8192));return t.transformFlags=536870912|n,-638121282&n}(t,r);case 209:return function(e,t){var r=192|t;(4096&t||e.typeParameters)&&(r|=3);32768&t&&(r|=8192);return e.transformFlags=536870912|r,-638121282&r}(t,r);case 273:return function(t,r){var n=r;switch(t.token){case 86:n|=192;break;case 109:n|=3;break;default:e.Debug.fail("Unexpected token for heritage clause")}return t.transformFlags=536870912|n,-637535554&n}(t,r);case 274:return function(t,r){var n=r;t.variableDeclaration?e.isBindingPattern(t.variableDeclaration.name)&&(n|=192):n|=8;return t.transformFlags=536870912|n,-637797698&n}(t,r);case 211:return function(e,t){var r=192|t;e.typeArguments&&(r|=3);return e.transformFlags=536870912|r,-637535554&r}(t,r);case 157:return function(t,r){var n=r;!e.hasModifier(t,2270)&&t.body||(n|=3);262144&r&&(n|=8);return t.transformFlags=536870912|n,-653616450&n}(t,r);case 154:return function(t,r){var n=3|r;(t.initializer||e.isComputedPropertyName(t.name))&&(n|=4096);return t.transformFlags=536870912|n,-637535554&n}(t,r);case 156:return function(t,r){var n=192|r;(t.decorators||e.hasModifier(t,2270)||t.typeParameters||t.type||t.name&&e.isComputedPropertyName(t.name)||!t.body)&&(n|=3);262144&r&&(n|=8);e.hasModifier(t,256)&&(n|=t.asteriskToken?8:16);t.asteriskToken&&(n|=768);return t.transformFlags=536870912|n,-653616450&n}(t,r);case 158:case 159:return function(t,r){var n=r;(t.decorators||e.hasModifier(t,2270)||t.type||t.name&&e.isComputedPropertyName(t.name)||!t.body)&&(n|=3);262144&r&&(n|=8);return t.transformFlags=536870912|n,-653616450&n}(t,r);case 248:return function(t,r){var n=r;e.isExternalModuleImportEqualsDeclaration(t)||(n|=3);return t.transformFlags=536870912|n,-637535554&n}(t,r);case 189:return function(e,t){var r=t;33554432&r&&(r^=33554432,r|=67108888);return e.transformFlags=536870912|r,-570426690&r}(t,r);case 190:return function(e,t){var r=t;33554432&e.expression.transformFlags&&(r&=-33554433,r|=67108888);return e.transformFlags=536870912|r,-570426690&r}(t,r);default:return function(e,t,r){var n=r,i=637535553;switch(t){case 121:case 201:n|=24;break;case 194:case 212:case 308:n|=3,i=536872257;break;case 115:case 113:case 114:case 118:case 125:case 77:case 243:case 278:case 213:case 133:n|=3;break;case 260:case 261:case 262:case 11:case 263:case 264:case 265:case 266:case 267:case 268:case 269:case 270:n|=4;break;case 14:case 15:case 16:case 17:case 206:case 193:case 276:case 116:case 214:n|=192;break;case 10:e.hasExtendedUnicodeEscape&&(n|=192);break;case 8:384&e.numericLiteralFlags&&(n|=192);break;case 9:n|=8;break;case 227:e.awaitModifier&&(n|=8),n|=192;break;case 207:n|=4194504;break;case 120:case 135:case 146:case 132:case 136:case 138:case 123:case 139:case 106:case 150:case 153:case 155:case 160:case 161:case 162:case 163:case 164:case 165:case 166:case 167:case 168:case 169:case 170:case 171:case 172:case 173:case 174:case 175:case 176:case 177:case 241:case 242:case 178:case 179:case 180:case 181:case 182:case 247:n=3,i=-3;break;case 149:n|=524288,8192&r&&(n|=32768);break;case 208:n|=131264;break;case 277:n|=262152;break;case 98:n|=33554624,i=536872257;break;case 100:n|=8192;break;case 184:n|=2097344,131072&r&&(n|=262152),i=637666625;break;case 185:n|=2097344,i=637666625;break;case 186:n|=192,e.dotDotDotToken&&(n|=131072);break;case 152:n|=4099;break;case 188:i=638358849,524288&r&&(n|=192),32768&r&&(n|=8192),262144&r&&(n|=8);break;case 187:case 192:i=637666625,131072&r&&(n|=192);break;case 223:case 224:case 225:case 226:1048576&r&&(n|=192);break;case 279:16384&r&&(n|=192);break;case 230:n|=8388616;break;case 228:case 229:n|=8388608}return e.transformFlags=536870912|n,n&~i}(t,n,r)}}function l(e){if(e>=163&&e<=183)return-3;switch(e){case 191:case 192:case 187:return 637666625;case 244:return 647001409;case 151:return 637535553;case 197:return 653604161;case 196:case 239:return 653620545;case 238:return 639894849;case 240:case 209:return 638121281;case 157:return 653616449;case 156:case 158:case 159:return 653616449;case 120:case 135:case 146:case 132:case 138:case 136:case 123:case 139:case 106:case 150:case 153:case 155:case 160:case 161:case 162:case 241:case 242:return-3;case 188:return 638358849;case 274:return 637797697;case 184:case 185:return 637666625;case 194:case 212:case 308:case 195:case 98:return 536872257;case 189:case 190:return 570426689;default:return 637535553}}function d(t,r){r.parent=t,e.forEachChild(r,function(e){return d(r,e)})}e.bindSourceFile=function(t,r){e.performance.mark("beforeBind"),n(t,r),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=a,e.computeTransformFlagsForNode=u,e.getTransformFlagsSubtreeExclusions=l}(d||(d={})),function(e){e.createGetSymbolWalker=function(t,r,n,i,a,o,s,c,u,l){return function(d){void 0===d&&(d=function(){return!0});var _=[],f=[];return{walkType:function(t){try{return p(t),{visitedTypes:e.getOwnValues(_),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(_),e.clear(f)}},walkSymbol:function(t){try{return h(t),{visitedTypes:e.getOwnValues(_),visitedSymbols:e.getOwnValues(f)}}finally{e.clear(_),e.clear(f)}}};function p(t){if(t&&!_[t.id]){_[t.id]=t;var r=h(t.symbol);if(!r){if(524288&t.flags){var n=t,a=n.objectFlags;4&a&&function(t){p(t.target),e.forEach(t.typeArguments,p)}(t),32&a&&function(e){p(e.typeParameter),p(e.constraintType),p(e.templateType),p(e.modifiersType)}(t),3&a&&(g(o=t),e.forEach(o.typeParameters,p),e.forEach(i(o),p),p(o.thisType)),24&a&&g(n)}var o;262144&t.flags&&function(e){p(u(e))}(t),3145728&t.flags&&function(t){e.forEach(t.types,p)}(t),4194304&t.flags&&function(e){p(e.type)}(t),8388608&t.flags&&function(e){p(e.objectType),p(e.indexType),p(e.constraint)}(t)}}}function m(i){var a=r(i);a&&p(a.type),e.forEach(i.typeParameters,p);for(var o=0,s=i.parameters;o<s.length;o++){var c=s[o];h(c)}p(t(i)),p(n(i))}function g(e){var t=c(e,0);p(t);var r=c(e,1);p(r);for(var n=a(e),i=0,o=n.callSignatures;i<o.length;i++){var s=o[i];m(s)}for(var u=0,l=n.constructSignatures;u<l.length;u++){var s=l[u];m(s)}for(var d=0,_=n.properties;d<_.length;d++){var f=_[d];h(f)}}function h(t){if(!t)return!1;var r=e.getSymbolId(t);if(f[r])return!1;if(f[r]=t,!d(t))return!0;var n=o(t);return p(n),t.exports&&t.exports.forEach(h),e.forEach(t.declarations,function(e){if(e.type&&167===e.type.kind){var t=e.type,r=s(l(t.exprName));h(r)}}),!1}}}}(d||(d={})),function(e){var t,r=/^".+"$/,n=1,i=1,a=1,o=1;function u(e){return e.id||(e.id=i,i++),e.id}function l(e){return e.id||(e.id=n,n++),e.id}function d(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function _(t){switch(t.parent.kind){case 253:case 257:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function f(e){switch(e.kind){case 250:case 248:case 251:case 253:return!0;case 72:return 253===e.parent.kind;default:return!1}}e.getNodeId=u,e.getSymbolId=l,e.isInstantiatedModule=d,e.createTypeChecker=function(n,i){var p,m,g,h=e.memoize(function(){var t=e.createMap();return n.getSourceFiles().forEach(function(r){r.resolvedModules&&e.forEachEntry(r.resolvedModules,function(e){e&&e.packageId&&t.set(e.packageId.name,!0)})}),t}),y=e.objectAllocator.getSymbolConstructor(),v=e.objectAllocator.getTypeConstructor(),b=e.objectAllocator.getSignatureConstructor(),x=0,S=0,D=0,k=0,C=0,T=e.createSymbolTable(),E=e.identity,N=n.getCompilerOptions(),A=e.getEmitScriptTarget(N),w=e.getEmitModuleKind(N),P=e.getAllowSyntheticDefaultImports(N),F=e.getStrictOptionValue(N,"strictNullChecks"),I=e.getStrictOptionValue(N,"strictFunctionTypes"),M=e.getStrictOptionValue(N,"strictBindCallApply"),O=e.getStrictOptionValue(N,"strictPropertyInitialization"),L=e.getStrictOptionValue(N,"noImplicitAny"),R=e.getStrictOptionValue(N,"noImplicitThis"),B=!!N.keyofStringsOnly,j=N.suppressExcessPropertyErrors?0:32768,z=function(){var t,r=n.getResolvedTypeReferenceDirectives();return r&&(t=e.createMap(),r.forEach(function(e,r){if(e&&e.resolvedFileName){var i=n.getSourceFile(e.resolvedFileName);t.set(i.path,r)}})),{getReferencedExportContainer:_y,getReferencedImportDeclaration:fy,getReferencedDeclarationWithCollidingName:my,isDeclarationWithCollidingName:gy,isValueAliasDeclaration:function(t){return!(t=e.getParseTreeNode(t))||hy(t)},hasGlobalName:My,isReferencedAliasDeclaration:function(t,r){return!(t=e.getParseTreeNode(t))||function t(r,n){if(e.isAliasSymbolDeclaration(r)){var i=Pn(r);if(i&&Jr(i).referenced)return!0;var a=Jr(i).target;if(a&&1&e.getModifierFlags(r)&&67220415&a.flags&&(N.preserveConstEnums||!by(a)))return!0}return!!n&&!!e.forEachChild(r,function(e){return t(e,n)})}(t,r)},getNodeCheckFlags:function(t){return(t=e.getParseTreeNode(t))?Ty(t):0},isTopLevelValueImportEqualsWithEntityName:yy,isDeclarationVisible:fi,isImplementationOfOverload:xy,isRequiredInitializedParameter:Sy,isOptionalUninitializedParameterProperty:Dy,isExpandoFunctionDeclaration:ky,getPropertiesOfContainerFunction:Cy,createTypeOfDeclaration:Py,createReturnTypeOfSignatureDeclaration:Fy,createTypeOfExpression:Iy,createLiteralConstValue:By,isSymbolAccessible:Zn,isEntityNameVisible:ni,getConstantValue:function(t){var r=e.getParseTreeNode(t,Ny);return r?Ay(r):void 0},collectLinkedAliases:pi,getReferencedValueDeclaration:Ly,getTypeReferenceSerializationKind:wy,isOptionalParameter:Jo,moduleExportsSomeValue:dy,isArgumentsLocalBinding:ly,getExternalModuleFileFromDeclaration:jy,getTypeReferenceDirectivesForEntityName:function(e){if(t){var r=67899368;(72===e.kind&&Ed(e)||189===e.kind&&!function(e){return e.parent&&211===e.parent.kind&&e.parent.parent&&273===e.parent.parent.kind}(e))&&(r=68268991);var n=mn(e,r,!0);return n&&n!==te?i(n,r):void 0}},getTypeReferenceDirectivesForSymbol:i,isLiteralConstDeclaration:Ry,isLateBound:function(t){var r=e.getParseTreeNode(t,e.isDeclaration),n=r&&Pn(r);return!!(n&&1024&e.getCheckFlags(n))},getJsxFactoryEntity:function(t){return t?(Er(t),e.getSourceFileOfNode(t).localJsxFactory||sr):sr},getAllAccessorDeclarations:function(t){var r=159===(t=e.getParseTreeNode(t,e.isGetOrSetAccessorDeclaration)).kind?158:159,n=e.getDeclarationOfKind(Pn(t),r),i=n&&n.pos<t.pos?n:t,a=n&&n.pos<t.pos?t:n,o=159===t.kind?t:n,s=158===t.kind?t:n;return{firstAccessor:i,secondAccessor:a,setAccessor:o,getAccessor:s}},getSymbolOfExternalModuleSpecifier:function(e){return yn(e,e,void 0)},isBindingCapturedByNode:function(t,r){var n=e.getParseTreeNode(t),i=e.getParseTreeNode(r);return!!n&&!!i&&(e.isVariableDeclaration(i)||e.isBindingElement(i))&&function(t,r){var n=Ur(t);return!!n&&e.contains(n.capturedBlockScopeBindings,Pn(r))}(n,i)}};function i(r,n){if(t&&function(r){if(!r.declarations)return!1;for(var n=r;;){var i=Fn(n);if(!i)break;n=i}if(n.valueDeclaration&&279===n.valueDeclaration.kind&&512&n.flags)return!1;for(var a=0,o=r.declarations;a<o.length;a++){var s=o[a],c=e.getSourceFileOfNode(s);if(t.has(c.path))return!0}return!1}(r)){for(var i,a=0,o=r.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&n){var c=e.getSourceFileOfNode(s),u=t.get(c.path);if(!u)return;(i||(i=[])).push(u)}}return i}}}(),J=function(){return{typeToTypeNode:function(e,r,n,i){return t(r,n,i,function(t){return a(e,t)})},indexInfoToIndexSignatureDeclaration:function(e,r,n,i,a){return t(n,i,a,function(t){return d(e,r,t)})},signatureToSignatureDeclaration:function(e,r,n,i,a){return t(n,i,a,function(t){return _(e,r,t)})},symbolToEntityName:function(e,r,n,i,a){return t(n,i,a,function(t){return k(e,t,r,!1)})},symbolToExpression:function(r,n,i,a,o){return t(i,a,o,function(t){return function(t,r,n){var i=v(t,r,n);return function t(n,i){var a=x(n,i,r),o=n[i];if(e.some(o.declarations,ti))return e.createLiteral(S(o,r));0===i&&(r.flags|=16777216);var s=_i(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0),u=e.isIdentifierStart(c,A);if(0===i||u){var l=e.setEmitFlags(e.createIdentifier(s,a),16777216);return l.symbol=o,i>0?e.createPropertyAccess(t(n,i-1),l):l}91===c&&(s=s.substring(1,s.length-1),c=s.charCodeAt(0));var d=void 0;return e.isSingleOrDoubleQuote(c)?(d=e.createLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===c:""+ +s===s&&(d=e.createLiteral(+s)),d||((d=e.setEmitFlags(e.createIdentifier(s,a),16777216)).symbol=o),e.createElementAccess(t(n,i-1),d)}(i,i.length-1)}(r,t,n)})},symbolToTypeParameterDeclarations:function(e,r,n,i){return t(r,n,i,function(t){return b(e,t)})},symbolToParameterDeclaration:function(e,r,n,i){return t(r,n,i,function(t){return h(e,t)})},typeParameterToDeclaration:function(e,r,n,i){return t(r,n,i,function(t){return g(e,t)})}};function t(t,r,i,a){e.Debug.assert(void 0===t||0==(8&t.flags));var o={enclosingDeclaration:t,flags:r||0,tracker:i&&i.trackSymbol?i:{trackSymbol:e.noop,moduleResolverHost:134217728&r?{getCommonSourceDirectory:n.getCommonSourceDirectory?function(){return n.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return n.getSourceFiles()},getCurrentDirectory:n.getCurrentDirectory&&function(){return n.getCurrentDirectory()}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},s=a(o);return o.encounteredError?void 0:s}function i(t){return t.truncating?t.truncating:t.truncating=!(1&t.flags)&&t.approximateLength>e.defaultMaximumTruncationLength}function a(t,r){p&&p.throwIfCancellationRequested&&p.throwIfCancellationRequested();var n=8388608&r.flags;if(r.flags&=-8388609,t){if(1&t.flags)return r.approximateLength+=3,e.createKeywordTypeNode(120);if(2&t.flags)return e.createKeywordTypeNode(143);if(4&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(138);if(8&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(135);if(64&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(146);if(16&t.flags)return r.approximateLength+=7,e.createKeywordTypeNode(123);if(1024&t.flags&&!(1048576&t.flags)){var s=Fn(t.symbol),g=D(s,r,67897832),h=va(s)===t?g:O(g,e.createTypeReferenceNode(e.symbolName(t.symbol),void 0));return h}if(1056&t.flags)return D(t.symbol,r,67897832);if(128&t.flags)return r.approximateLength+=t.value.length+2,e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(t.value),16777216));if(256&t.flags)return r.approximateLength+=(""+t.value).length,e.createLiteralTypeNode(e.createLiteral(t.value));if(2048&t.flags)return r.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.createLiteralTypeNode(e.createLiteral(t.value));if(512&t.flags)return r.approximateLength+=t.intrinsicName.length,"true"===t.intrinsicName?e.createTrue():e.createFalse();if(8192&t.flags){if(!(1048576&r.flags)){if(Yn(t.symbol,r.enclosingDeclaration))return r.approximateLength+=6,D(t.symbol,r,67220415);r.tracker.reportInaccessibleUniqueSymbolError&&r.tracker.reportInaccessibleUniqueSymbolError()}return r.approximateLength+=13,e.createTypeOperatorNode(142,e.createKeywordTypeNode(139))}if(16384&t.flags)return r.approximateLength+=4,e.createKeywordTypeNode(106);if(32768&t.flags)return r.approximateLength+=9,e.createKeywordTypeNode(141);if(65536&t.flags)return r.approximateLength+=4,e.createKeywordTypeNode(96);if(131072&t.flags)return r.approximateLength+=5,e.createKeywordTypeNode(132);if(4096&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(139);if(67108864&t.flags)return r.approximateLength+=6,e.createKeywordTypeNode(136);if(262144&t.flags&&t.isThisType)return 4194304&r.flags&&(r.encounteredError||32768&r.flags||(r.encounteredError=!0),r.tracker.reportInaccessibleThisError&&r.tracker.reportInaccessibleThisError()),r.approximateLength+=4,e.createThis();var y=e.getObjectFlags(t);if(4&y)return e.Debug.assert(!!(524288&t.flags)),function(t){var n=t.typeArguments||e.emptyArray;if(t.target===He){if(2&r.flags){var i=a(n[0],r);return e.createTypeReferenceNode("Array",[i])}var o=a(n[0],r);return e.createArrayTypeNode(o)}if(8&t.target.objectFlags){if(n.length>0){var s=xs(t),c=u(n.slice(0,s),r),l=t.target.hasRestElement;if(c){for(var d=t.target.minLength;d<Math.min(s,c.length);d++)c[d]=l&&d===s-1?e.createRestTypeNode(e.createArrayTypeNode(c[d])):e.createOptionalTypeNode(c[d]);return e.createTupleTypeNode(c)}}return r.encounteredError||524288&r.flags?e.createTupleTypeNode([]):void(r.encounteredError=!0)}if(2048&r.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!Yn(t.symbol,r.enclosingDeclaration))return I(t);var _=t.target.outerTypeParameters,d=0,f=void 0;if(_)for(var p=_.length;d<p;){var m=d,g=gs(_[d]);do{d++}while(d<p&&gs(_[d])===g);if(!e.rangeEquals(_,n,m,d)){var h=u(n.slice(m,d),r),y=r.flags;r.flags|=16;var v=D(g,r,67897832,h);r.flags=y,f=f?O(f,v):v}}var b=void 0;if(n.length>0){var x=(t.target.typeParameters||e.emptyArray).length;b=u(n.slice(d,x),r)}var S=r.flags;r.flags|=16;var k=D(t.symbol,r,67897832,b);return r.flags=S,f?O(f,k):k}(t);if(262144&t.flags||3&y){if(262144&t.flags&&e.contains(r.inferTypeParameters,t))return r.approximateLength+=e.symbolName(t.symbol).length+6,e.createInferTypeNode(m(t,r,void 0));if(4&r.flags&&262144&t.flags&&e.length(t.symbol.declarations)&&e.isTypeParameterDeclaration(t.symbol.declarations[0])&&f(t,r)&&!Qn(t.symbol,r.enclosingDeclaration)){var v=t.symbol.declarations[0].name;return r.approximateLength+=e.idText(v).length,e.createTypeReferenceNode(e.getGeneratedNameForNode(v,24),void 0)}return t.symbol?D(t.symbol,r,67897832):e.createTypeReferenceNode(e.createIdentifier("?"),void 0)}if(!n&&t.aliasSymbol&&(16384&r.flags||Qn(t.aliasSymbol,r.enclosingDeclaration))){var b=u(t.aliasTypeArguments,r);return!Un(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?D(t.aliasSymbol,r,67897832,b):e.createTypeReferenceNode(e.createIdentifier(""),b)}if(!(3145728&t.flags)){if(48&y)return e.Debug.assert(!!(524288&t.flags)),I(t);if(4194304&t.flags){var x=t.type;r.approximateLength+=6;var S=a(x,r);return e.createTypeOperatorNode(S)}if(8388608&t.flags){var k=a(t.objectType,r),S=a(t.indexType,r);return r.approximateLength+=2,e.createIndexedAccessTypeNode(k,S)}if(16777216&t.flags){var C=a(t.checkType,r),T=r.inferTypeParameters;r.inferTypeParameters=t.root.inferTypeParameters;var E=a(t.extendsType,r);r.inferTypeParameters=T;var N=a(Jc(t),r),A=a(Uc(t),r);return r.approximateLength+=15,e.createConditionalTypeNode(C,E,N,A)}return 33554432&t.flags?a(t.typeVariable,r):e.Debug.fail("Should be unreachable.")}var w=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e[n];if(r|=i.flags,!(98304&i.flags)){if(1536&i.flags){var a=512&i.flags?ve:ma(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&nu(e[n+o-1])===nu(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}return 65536&r&&t.push(le),32768&r&&t.push(ce),t||e}(t.types):t.types;if(1===e.length(w))return a(w[0],r);var P=u(w,r,!0);if(P&&P.length>0){var F=e.createUnionOrIntersectionTypeNode(1048576&t.flags?173:174,P);return F}r.encounteredError||262144&r.flags||(r.encounteredError=!0)}else r.encounteredError=!0;function I(t){var n,i=""+t.id,a=t.symbol;if(a){var s=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags;if(n=(s?"+":"")+l(a),Up(a.valueDeclaration)){var c=t===Wp(a)?67897832:67220415;return D(a,r,c)}if(32&a.flags&&!Wi(a)&&!(209===a.valueDeclaration.kind&&2048&r.flags)||896&a.flags||function(){var t=!!(8192&a.flags)&&e.some(a.declarations,function(t){return e.hasModifier(t,32)}),n=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,function(e){return 279===e.parent.kind||245===e.parent.kind}));if(t||n)return(!!(4096&r.flags)||r.visitedTypes&&r.visitedTypes.has(i))&&(!(8&r.flags)||Yn(a,r.enclosingDeclaration))}())return D(a,r,67220415);if(r.visitedTypes&&r.visitedTypes.has(i)){var u=function(t){if(t.symbol&&2048&t.symbol.flags){var r=e.findAncestor(t.symbol.declarations[0].parent,function(e){return 177!==e.kind});if(242===r.kind)return Pn(r)}}(t);return u?D(u,r,67897832):o(r)}r.visitedTypes||(r.visitedTypes=e.createMap()),r.symbolDepth||(r.symbolDepth=e.createMap());var d=r.symbolDepth.get(n)||0;if(d>10)return o(r);r.symbolDepth.set(n,d+1),r.visitedTypes.set(i,!0);var _=M(t);return r.visitedTypes.delete(i),r.symbolDepth.set(n,d),_}return M(t)}function M(t){if(oo(t))return function(t){e.Debug.assert(!!(524288&t.flags));var n,i=t.declaration.readonlyToken?e.createToken(t.declaration.readonlyToken.kind):void 0,o=t.declaration.questionToken?e.createToken(t.declaration.questionToken.kind):void 0;n=to(t)?e.createTypeOperatorNode(a(ro(t),r)):a(Za(t),r);var s=m(Ya(t),r,n),c=a($a(t),r),u=e.createMappedTypeNode(i,s,o,c);return r.approximateLength+=10,e.setEmitFlags(u,1)}(t);var n=so(t);if(!n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo){if(!n.callSignatures.length&&!n.constructSignatures.length)return r.approximateLength+=2,e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length){var s=n.callSignatures[0],u=_(s,165,r);return u}if(1===n.constructSignatures.length&&!n.callSignatures.length){var s=n.constructSignatures[0],u=_(s,166,r);return u}}var l=r.flags;r.flags|=4194304;var f=function(t){if(i(r))return[e.createPropertySignature(void 0,"...",void 0,void 0,void 0)];for(var n=[],a=0,s=t.callSignatures;a<s.length;a++){var u=s[a];n.push(_(u,160,r))}for(var l=0,f=t.constructSignatures;l<f.length;l++){var u=f[l];n.push(_(u,161,r))}if(t.stringIndexInfo){var p=void 0;2048&t.objectFlags?(p=d(fs(ne,t.stringIndexInfo.isReadonly,t.stringIndexInfo.declaration),0,r)).type=o(r):p=d(t.stringIndexInfo,0,r),n.push(p)}t.numberIndexInfo&&n.push(d(t.numberIndexInfo,1,r));var m=t.properties;if(!m)return n;for(var g=0,h=0,y=m;h<y.length;h++){var v=y[h];if(g++,2048&r.flags){if(4194304&v.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(v)&&r.tracker.reportPrivateInBaseOfClassExpression&&r.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(v.escapedName))}if(i(r)&&g+2<m.length-1){n.push(e.createPropertySignature(void 0,"... "+(m.length-g)+" more ...",void 0,void 0,void 0)),c(m[m.length-1],r,n);break}c(v,r,n)}return n.length?n:void 0}(n);r.flags=l;var p=e.createTypeLiteralNode(f);return r.approximateLength+=2,e.setEmitFlags(p,1024&r.flags?0:1)}function O(t,r){if(e.isImportTypeNode(t)){var n=t.typeArguments;t.qualifier&&((e.isIdentifier(t.qualifier)?t.qualifier:t.qualifier.right).typeArguments=n),t.typeArguments=r.typeArguments;for(var i=L(r),a=0,o=i;a<o.length;a++){var s=o[a];t.qualifier=t.qualifier?e.createQualifiedName(t.qualifier,s):s}return t}var n=t.typeArguments;(e.isIdentifier(t.typeName)?t.typeName:t.typeName.right).typeArguments=n,t.typeArguments=r.typeArguments;for(var i=L(r),c=0,u=i;c<u.length;c++){var s=u[c];t.typeName=e.createQualifiedName(t.typeName,s)}return t}function L(t){for(var r=t.typeName,n=[];!e.isIdentifier(r);)n.unshift(r.right),r=r.left;return n.unshift(r),n}}function o(t){return t.approximateLength+=3,1&t.flags?e.createKeywordTypeNode(120):e.createTypeReferenceNode(e.createIdentifier("..."),void 0)}function c(t,r,n){var i=!!(2048&e.getCheckFlags(t)),s=i&&33554432&r.flags?ne:Qi(t),c=r.enclosingDeclaration;if(r.enclosingDeclaration=void 0,r.tracker.trackSymbol&&1024&e.getCheckFlags(t)){var u=e.first(t.declarations);Pa(u)&&y(u.name,c,r)}var l=k(t,r,67220415,!0);r.approximateLength+=e.symbolName(t).length+1,r.enclosingDeclaration=c;var d=16777216&t.flags?e.createToken(56):void 0;if(8208&t.flags&&!co(s).length)for(var f=Po(s,0),p=0,m=f;p<m.length;p++){var g=m[p],h=_(g,155,r);h.name=l,h.questionToken=d,t.valueDeclaration&&e.setCommentRange(h,t.valueDeclaration),n.push(h)}else{var v=r.flags;r.flags|=i?33554432:0;var b=void 0;b=i&&33554432&v?o(r):s?a(s,r):e.createKeywordTypeNode(120),r.flags=v;var x=Em(t)?[e.createToken(133)]:void 0;x&&(r.approximateLength+=9);var S=e.createPropertySignature(x,l,d,b,void 0);t.valueDeclaration&&e.setCommentRange(S,t.valueDeclaration),n.push(S)}}function u(t,r,n){if(e.some(t)){if(i(r)){if(!n)return[e.createTypeReferenceNode("...",void 0)];if(t.length>2)return[a(t[0],r),e.createTypeReferenceNode("... "+(t.length-2)+" more ...",void 0),a(t[t.length-1],r)]}for(var o=[],s=0,c=0,u=t;c<u.length;c++){var l=u[c];if(s++,i(r)&&s+2<t.length-1){o.push(e.createTypeReferenceNode("... "+(t.length-s)+" more ...",void 0));var d=a(t[t.length-1],r);d&&o.push(d);break}r.approximateLength+=2;var _=a(l,r);_&&o.push(_)}return o}}function d(t,r,n){var i=e.getNameFromIndexInfo(t)||"x",o=e.createKeywordTypeNode(0===r?138:135),s=e.createParameter(void 0,void 0,void 0,i,void 0,o,void 0),c=a(t.type||ne,n);return t.type||2097152&n.flags||(n.encounteredError=!0),n.approximateLength+=i.length+4,e.createIndexSignature(void 0,t.isReadonly?[e.createToken(133)]:void 0,[s],c)}function _(t,r,n){var i,o;32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?o=t.target.typeParameters.map(function(e){return a(Eu(e,t.mapper),n)}):i=t.typeParameters&&t.typeParameters.map(function(e){return g(e,n)});var s,c=function(t){if(t.hasRestParameter){var r=t.parameters.length-1,n=t.parameters[r],i=Qi(n);if(Ll(i)){var a=i.typeArguments||e.emptyArray,o=i.target.minLength,s=i.target.hasRestElement?a.length-1:-1,c=e.map(a,function(e,n){var i=rm(t,r+n),a=n===s?8192:n>=o?4096:0,c=Pr(1,i,a);return c.type=n===s?nc(e):e,c});return e.concatenate(t.parameters.slice(0,r),c)}}return t.parameters}(t).map(function(e){return h(e,n,157===r)});if(t.thisParameter){var u=h(t.thisParameter,n);c.unshift(u)}var l=$o(t);if(l){var d=1===l.kind?e.setEmitFlags(e.createIdentifier(l.parameterName),16777216):e.createThisTypeNode(),_=a(l.type,n);s=e.createTypePredicateNode(d,_)}else{var f=es(t);s=f&&a(f,n)}return 256&n.flags?s&&120===s.kind&&(s=void 0):s||(s=e.createKeywordTypeNode(120)),n.approximateLength+=3,e.createSignatureDeclaration(r,i,c,s,o)}function f(e,t){return!!Wr(t.enclosingDeclaration,e.symbol.escapedName,67897832,void 0,e.symbol.escapedName,!1)}function m(t,r,n){var i=r.flags;r.flags&=-513;var o=4&r.flags&&t.symbol.declarations[0]&&e.isTypeParameterDeclaration(t.symbol.declarations[0])&&f(t,r),s=o?e.getGeneratedNameForNode(t.symbol.declarations[0].name,24):k(t.symbol,r,67897832,!0),c=Do(t),u=c&&a(c,r);return r.flags=i,e.createTypeParameterDeclaration(s,n,u)}function g(e,t,r){void 0===r&&(r=po(e));var n=r&&a(r,t);return m(e,t,n)}function h(t,r,n){var i=e.getDeclarationOfKind(t,151);i||Fr(t)||(i=e.getDeclarationOfKind(t,299));var o=Qi(t);i&&Sy(i)&&(o=Vl(o));var s=a(o,r),c=!(8192&r.flags)&&n&&i&&i.modifiers?i.modifiers.map(e.getSynthesizedClone):void 0,u=i&&e.isRestParameter(i)||8192&e.getCheckFlags(t),l=u?e.createToken(25):void 0,d=i&&i.name?72===i.name.kind?e.setEmitFlags(e.getSynthesizedClone(i.name),16777216):148===i.name.kind?e.setEmitFlags(e.getSynthesizedClone(i.name.right),16777216):function t(n){r.tracker.trackSymbol&&e.isComputedPropertyName(n)&&Aa(n)&&y(n,r.enclosingDeclaration,r);var i=e.visitEachChild(n,t,e.nullTransformationContext,void 0,t),a=e.nodeIsSynthesized(i)?i:e.getSynthesizedClone(i);return 186===a.kind&&(a.initializer=void 0),e.setEmitFlags(a,16777217)}(i.name):e.symbolName(t),_=i&&Jo(i)||4096&e.getCheckFlags(t),f=_?e.createToken(56):void 0,p=e.createParameter(void 0,c,l,d,f,s,void 0);return r.approximateLength+=e.symbolName(t).length+3,p}function y(e,t,r){if(r.tracker.trackSymbol){var n=Mh(e.expression),i=Wr(n,n.escapedText,68268991,void 0,void 0,!0);i&&r.tracker.trackSymbol(i,t,67220415)}}function v(t,r,n,i){var a;r.tracker.trackSymbol(t,r.enclosingDeclaration,n);var o=262144&t.flags;return o||!(r.enclosingDeclaration||64&r.flags)||134217728&r.flags?a=[t]:(a=e.Debug.assertDefined(function t(n,a,o){var s,c=Gn(n,r.enclosingDeclaration,a,!!(128&r.flags));if(!c||Xn(c[0],r.enclosingDeclaration,1===c.length?a:Hn(a))){var u=In(c?c[0]:n,r.enclosingDeclaration);if(e.length(u)){s=u.map(function(t){return e.some(t.declarations,ti)?S(t,r):void 0});var l=u.map(function(e,t){return t});l.sort(function(t,r){var n=s[t],i=s[r];if(n&&i){var a=e.pathIsRelative(i);return e.pathIsRelative(n)===a?e.moduleSpecifiers.countPathComponents(n)-e.moduleSpecifiers.countPathComponents(i):a?-1:1}return 0});for(var d=l.map(function(e){return u[e]}),_=0,f=d;_<f.length;_++){var p=f[_],m=t(p,Hn(a),!1);if(m){c=m.concat(c||[Mn(p,n)||n]);break}}}}if(c)return c;if(o||!(6144&n.flags)){if(!o&&!i&&e.forEach(n.declarations,ti))return;return[n]}}(t,n,!0)),e.Debug.assert(a&&a.length>0)),a}function b(t,r){var n,i=Th(t);return 524384&i.flags&&(n=e.createNodeArray(e.map(na(t),function(e){return g(e,r)}))),n}function x(t,r,n){e.Debug.assert(t&&0<=r&&r<t.length);var i,a=t[r];if(512&n.flags&&r<t.length-1){var o=a,s=t[r+1];if(1&e.getCheckFlags(s)){var c=function(t){return e.concatenate(ra(t),na(t))}(2097152&o.flags?ln(o):o);i=u(e.map(c,s.mapper),n)}else i=b(a,n)}return i}function S(t,i){var a=e.getDeclarationOfKind(t,279);if(a&&void 0!==a.moduleName)return a.moduleName;if(!a){if(i.tracker.trackReferencedAmbientModule){var o=e.filter(t.declarations,e.isAmbientModule);if(e.length(o))for(var c=0,u=o;c<u.length;c++){var l=u[c];i.tracker.trackReferencedAmbientModule(l,t)}}if(r.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!i.enclosingDeclaration||!i.tracker.moduleResolverHost)return r.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(t)).fileName;var d=e.getSourceFileOfNode(e.getOriginalNode(i.enclosingDeclaration)),_=Jr(t),f=_.specifierCache&&_.specifierCache.get(d.path);if(!f){var p=N.out||N.outFile,m=i.tracker.moduleResolverHost,g=p?s({},N,{baseUrl:m.getCommonSourceDirectory()}):N;f=e.first(e.moduleSpecifiers.getModuleSpecifiers(t,g,d,m,n.getSourceFiles(),{importModuleSpecifierPreference:p?"non-relative":"relative"},n.redirectTargetsMap)),_.specifierCache=_.specifierCache||e.createMap(),_.specifierCache.set(d.path,f)}return f}function D(t,r,n,i){var a=v(t,r,n,!(16384&r.flags)),o=67220415===n;if(e.some(a[0].declarations,ti)){var s=a.length>1?g(a,a.length-1,1):void 0,c=i||x(a,0,r),u=S(a[0],r);!(67108864&r.flags)&&e.getEmitModuleResolutionKind(N)===e.ModuleResolutionKind.NodeJs&&u.indexOf("/node_modules/")>=0&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(u));var l=e.createLiteralTypeNode(e.createLiteral(u));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),r.approximateLength+=u.length+10,!s||e.isEntityName(s)){if(s){var d=e.isIdentifier(s)?s:s.right;d.typeArguments=void 0}return e.createImportTypeNode(l,s,c,o)}var _=function t(r){return e.isIndexedAccessTypeNode(r.objectType)?t(r.objectType):r}(s),f=_.objectType.typeName;return e.createIndexedAccessTypeNode(e.createImportTypeNode(l,f,c,o),_.indexType)}var p=g(a,a.length-1,0);if(e.isIndexedAccessTypeNode(p))return p;if(o)return e.createTypeQueryNode(p);var d=e.isIdentifier(p)?p:p.right,m=d.typeArguments;return d.typeArguments=void 0,e.createTypeReferenceNode(p,m);function g(t,n,a){var o=n===t.length-1?i:x(t,n,r),s=t[n];0===n&&(r.flags|=16777216);var c=_i(s,r);r.approximateLength+=c.length+1,0===n&&(r.flags^=16777216);var u=t[n-1];if(!(16&r.flags)&&u&&La(u)&&La(u).get(s.escapedName)===s){var l=g(t,n-1,a);return e.isIndexedAccessTypeNode(l)?e.createIndexedAccessTypeNode(l,e.createLiteralTypeNode(e.createLiteral(c))):e.createIndexedAccessTypeNode(e.createTypeReferenceNode(l,o),e.createLiteralTypeNode(e.createLiteral(c)))}var d=e.setEmitFlags(e.createIdentifier(c,o),16777216);if(d.symbol=s,n>a){var l=g(t,n-1,a);return e.isEntityName(l)?e.createQualifiedName(l,d):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return d}}function k(t,r,n,i){var a=v(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=x(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=_i(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}}(),U=Pr(4,"undefined");U.declarations=[];var q,K=Pr(4,"arguments"),V=Pr(4,"require"),W={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+S},getTypeCount:function(){return x},isUndefinedSymbol:function(e){return e===U},isArgumentsSymbol:function(e){return e===K},isUnknownSymbol:function(e){return e===te},getMergedSymbol:wn,getDiagnostics:Xh,getGlobalDiagnostics:function(){return Qh(),ir.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(t,r){return(r=e.getParseTreeNode(r))?function(t,r){if(t=t.exportSymbol||t,72===r.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&!e.isAssignmentTarget(r))){var n=Zm(r);if(On(Ur(r).resolvedSymbol)===t)return n}return Qi(t)}(t,r):oe},getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,r){var n=t.parent,i=t.parent.parent,a=Kr(n.locals,r,67220415),o=Kr(La(i.symbol),r,67220415);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:va,getPropertiesOfType:_o,getPropertyOfType:function(t,r){return Ao(t,e.escapeLeadingUnderscores(r))},getTypeOfPropertyOfType:function(t,r){return bi(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:Mo,getSignaturesOfType:Po,getIndexTypeOfType:Oo,getBaseTypes:la,getBaseTypeOfLiteralType:Fl,getWidenedType:ed,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?cu(r):oe},getParameterType:nm,getPromisedTypeOfPromise:Sg,getReturnTypeOfSignature:es,getNullableType:Kl,getNonNullableType:Wl,typeToTypeNode:J.typeToTypeNode,indexInfoToIndexSignatureDeclaration:J.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:J.signatureToSignatureDeclaration,symbolToEntityName:J.symbolToEntityName,symbolToExpression:J.symbolToExpression,symbolToTypeParameterDeclarations:J.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:J.symbolToParameterDeclaration,typeParameterToDeclaration:J.typeParameterToDeclaration,getSymbolsInScope:function(t,r){return(t=e.getParseTreeNode(t))?function(t,r){if(8388608&t.flags)return[];var n=e.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!qr(t)&&o(t.locals,r),t.kind){case 279:if(!e.isExternalOrCommonJsModule(t))break;case 244:o(Pn(t).exports,2623475&r);break;case 243:o(Pn(t).exports,8&r);break;case 209:var n=t.name;n&&a(t.symbol,r);case 240:case 241:i||o(La(Pn(t)),67897832&r);break;case 196:var s=t.name;s&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(K,r),i=e.hasModifier(t,32),t=t.parent}o(Pt,r)}(),n.delete("this"),Bo(n);function a(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function o(e,t){t&&e.forEach(function(e){a(e,t)})}}(t,r):[]},getSymbolAtLocation:function(t){return(t=e.getParseTreeNode(t))?ny(t):void 0},getShorthandAssignmentValueSymbol:function(t){return(t=e.getParseTreeNode(t))?function(e){if(e&&276===e.kind)return mn(e.name,69317567)}(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?function(e){return e.parent.parent.moduleSpecifier?an(e.parent.parent,e):mn(e.propertyName||e.name,70107135)}(r):void 0},getExportSymbolOfSymbol:function(e){return wn(e.exportSymbol||e)},getTypeAtLocation:function(t){return(t=e.getParseTreeNode(t))?iy(t):oe},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?function(t){var r=function t(r){if(e.Debug.assert(188===r.kind||187===r.kind),227===r.parent.kind){var n=lh(r.parent.expression,r.parent.awaitModifier);return jm(r,n||oe)}if(204===r.parent.kind){var n=Zm(r.parent.right);return jm(r,n||oe)}if(275===r.parent.kind){var i=t(r.parent.parent);return Rm(i||oe,r.parent)}e.Debug.assert(187===r.parent.kind);var a=t(r.parent),o=dh(a||oe,r.parent,!1,!1)||oe;return Bm(r.parent,a,r.parent.elements.indexOf(r),o||oe)}(t.parent.parent);return r&&Ao(r,t.escapedText)}(r):void 0},signatureToString:function(t,r,n,i){return ai(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return oi(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return ii(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return ci(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return ai(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return oi(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return ii(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return ci(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:cy,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(Jr(t).containingType.types,function(e){return Ao(e,t.escapedName)});if(33554432&t.flags){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray(function(e){for(var t,r=e;r=Jr(r).target;)t=r;return t}(t))}}(r);return n?e.flatMap(n,t):[r]},getContextualType:function(t){var r=e.getParseTreeNode(t,e.isExpression);return r?tf(r):void 0},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?X_(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&V_(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&Z_(r)},isContextSensitive:wu,getFullyQualifiedName:pn,getResolvedSignature:function(e,t,r){return H(e,t,r,!1)},getResolvedSignatureForSignatureHelp:function(e,t,r){return H(e,t,r,!0)},getConstantValue:function(t){var r=e.getParseTreeNode(t,Ny);return r?Ay(r):void 0},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 189:return np(e,98===e.expression.kind,t,ed(eg(e.expression)));case 148:return np(e,!1,t,ed(eg(e.left)));case 183:return np(e,!1,t,cu(e))}}(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&function(t,r,n){return np(t,183!==t.kind&&98===t.expression.kind,n.escapedName,r)&&(!(8192&n.flags)||(a=Po(Wl(bi(i=r,n.escapedName)),0),e.Debug.assert(0!==a.length),a.some(function(e){var t=Yo(e);return!t||zu(i,function(e,t,r){if(!e.typeParameters)return t;var n=ad(e.typeParameters,e,0);return gd(n.inferences,r,t),Eu(t,os(e,kd(n)))}(e,t,i))})));var i,a}(i,r,n)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?Ho(r):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?xy(r):void 0},getImmediateAliasedSymbol:vf,getAliasedSymbol:ln,getEmitResolver:function(e,t){return Xh(e,t),z},getExportsOfModule:kn,getExportsAndPropertiesOfModule:function(t){var r=kn(t),n=xn(t);return n!==t&&e.addRange(r,_o(Qi(n))),r},getSymbolWalker:e.createGetSymbolWalker(function(e){return rs(e)||ne},$o,es,la,so,Qi,Td,Io,po,Mh),getAmbientModules:function(){return Je||(Je=[],Pt.forEach(function(e,t){r.test(t)&&Je.push(e)})),Je},getJsxIntrinsicTagNamesAt:function(r){var n=Ef(t.IntrinsicElements,r);return n?_o(n):e.emptyArray},isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&Jo(r)},tryGetMemberInModuleExports:function(t,r){return Cn(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(e,t){var r=Cn(e,t);if(r)return r;var n=xn(t);if(n!==t){var i=Qi(n);return 131068&i.flags?void 0:Ao(i,e)}}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModuleWithoutAugmentations:function(e){return zo(e,!1)},getApparentType:Co,getUnionType:mc,createAnonymousType:Vn,createSignature:za,createSymbol:Pr,createIndexInfo:fs,getAnyType:function(){return ne},getStringType:function(){return _e},getNumberType:function(){return fe},createPromiseType:pm,createArrayType:nc,getElementTypeOfArrayType:function(e){return Dl(e)&&e.typeArguments?e.typeArguments[0]:void 0},getBooleanType:function(){return ve},getFalseType:function(e){return e?me:ge},getTrueType:function(e){return e?he:ye},getVoidType:function(){return xe},getUndefinedType:function(){return ce},getNullType:function(){return le},getESSymbolType:function(){return be},getNeverType:function(){return Se},isSymbolAccessible:Zn,getObjectFlags:e.getObjectFlags,isArrayLikeType:Cl,isTypeInvalidDueToUnionDiscriminant:function(t,r){return r.properties.some(function(r){var n=r.name&&e.getTextOfPropertyName(r.name),i=void 0===n?void 0:bi(t,n);return!!i&&!!(2944&i.flags)&&!Ou(iy(r),i)})},getAllPossiblePropertiesOfTypes:function(t){var r=mc(t);if(!(1048576&r.flags))return cy(r);for(var n=e.createSymbolTable(),i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=cy(o);s<c.length;s++){var u=c[s].escapedName;if(!n.has(u)){var l=To(r,u);l&&n.set(u,l)}}return e.arrayFrom(n.values())},getSuggestionForNonexistentProperty:function(e,t){return Zf(e,t)},getSuggestionForNonexistentSymbol:function(t,r,n){return function(t,r,n){var i=$f(t,r,n);return i&&e.symbolName(i)}(t,e.escapeLeadingUnderscores(r),n)},getSuggestionForNonexistentExport:function(t,r){return(n=ep(t,r))&&e.symbolName(n);var n},getBaseConstraintOfType:yo,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?Do(e):void 0},resolveName:function(t,r,n,i){return Wr(r,e.escapeLeadingUnderscores(t),n,void 0,void 0,!1,i)},getJsxNamespace:function(t){return e.unescapeLeadingUnderscores(Er(t))},getAccessibleSymbolChain:Gn,getTypePredicateOfSignature:$o,resolveExternalModuleSymbol:xn,tryGetThisTypeAt:function(t){return(t=e.getParseTreeNode(t))&&O_(t)},getTypeArgumentConstraint:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r&&function(t){var r=e.tryCast(t.parent,e.isTypeReferenceType);if(r){var n=fg(r),i=po(n[r.typeArguments.indexOf(t)]);return i&&Eu(i,fu(n,dg(r,n)))}}(r)},getSuggestionDiagnostics:function(t,r){if(e.skipTypeChecking(t,N))return e.emptyArray;var n;try{return p=r,Wh(t),e.Debug.assert(!!(1&Ur(t).flags)),n=e.addRange(n,ar.get(t.fileName)),t.isDeclarationFile||Hh(0)&&Hh(1)||Og(Gh(t),function(t,r,i){e.containsParseError(t)||Hh(r)||(n||(n=[])).push(s({},i,{category:e.DiagnosticCategory.Suggestion}))}),n||e.emptyArray}finally{p=void 0}},runWithCancellationToken:function(e,t){try{return p=e,t(W)}finally{p=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:na};function H(t,r,n,i){var a=e.getParseTreeNode(t,e.isCallLikeExpression);q=n;var o=a?Jp(a,r,i):void 0;return q=void 0,o}var G=e.createMap(),X=e.createMap(),Q=e.createMap(),Y=e.createMap(),Z=e.createMap(),$=[],ee=e.createMap(),te=Pr(4,"unknown"),re=Pr(0,"__resolving__"),ne=jn(1,"any"),ie=jn(1,"any"),ae=jn(1,"any"),oe=jn(1,"error"),se=jn(2,"unknown"),ce=jn(32768,"undefined"),ue=F?ce:jn(134250496,"undefined"),le=jn(65536,"null"),de=F?le:jn(134283264,"null"),_e=jn(4,"string"),fe=jn(8,"number"),pe=jn(64,"bigint"),me=jn(512,"false"),ge=jn(512,"false"),he=jn(512,"true"),ye=jn(512,"true");he.regularType=ye,he.freshType=he,ye.regularType=ye,ye.freshType=he,me.regularType=ge,me.freshType=me,ge.regularType=ge,ge.freshType=me;var ve=zn([ge,ye]);zn([ge,he]),zn([me,ye]),zn([me,he]);var be=jn(4096,"symbol"),xe=jn(16384,"void"),Se=jn(131072,"never"),De=jn(131072,"never"),ke=jn(131072,"never"),Ce=jn(67108864,"object"),Te=mc([_e,fe,be]),Ee=B?_e:Te,Ne=mc([fe,pe]),Ae=Vn(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0),we=Vn(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0);we.objectFlags|=4096;var Pe=Pr(2048,"__type");Pe.members=e.createSymbolTable();var Fe=Vn(Pe,T,e.emptyArray,e.emptyArray,void 0,void 0),Ie=Vn(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0);Ie.instantiations=e.createMap();var Me=Vn(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0);Me.flags|=536870912;var Oe=Vn(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0),Le=Vn(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0),Re=Vn(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0),Be=Bn(262144),je=Bn(262144);je.constraint=Be;var ze,Je,Ue,qe,Ke,Ve,We,He,Ge,Xe,Qe,Ye,Ze,$e,et,tt,rt,nt,it,at,ot,st,ct,ut,lt,dt,_t,ft,pt,mt,gt,ht,yt,vt,bt,xt,St,Dt,kt=Bn(262144),Ct=qo("<<unresolved>>",0,ne),Tt=za(void 0,void 0,void 0,e.emptyArray,ne,void 0,0,!1,!1),Et=za(void 0,void 0,void 0,e.emptyArray,oe,void 0,0,!1,!1),Nt=za(void 0,void 0,void 0,e.emptyArray,ne,void 0,0,!1,!1),At=za(void 0,void 0,void 0,e.emptyArray,De,void 0,0,!1,!1),wt=fs(_e,!0),Pt=e.createSymbolTable(),Ft=e.createMap(),It=e.createMap(),Mt=0,Ot=0,Lt=0,Rt=!1,Bt=au(""),jt=au(0),zt=au({negative:!1,base10Value:"0"}),Jt=[],Ut=[],qt=[],Kt=0,Vt=10,Wt=[],Ht=[],Gt=[],Xt=[],Qt=[],Yt=[],Zt=[],$t=[],er=[],tr=[],rr=[],nr=[],ir=e.createDiagnosticCollection(),ar=e.createMultiMap();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.All=16777215]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.UndefinedFacts=9830144]="UndefinedFacts",e[e.NullFacts=9363232]="NullFacts",e[e.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=16777215]="EmptyObjectFacts"}(Dt||(Dt={}));var or,sr,cr,ur,lr,dr,_r,fr,pr,mr=e.createMapFromTemplate({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64}),gr=e.createMapFromTemplate({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}),hr=e.createMapFromTemplate({string:_e,number:fe,bigint:pe,boolean:ve,symbol:be,undefined:ce}),yr=mc(e.arrayFrom(mr.keys(),au)),vr=e.createMap(),br=e.createMap(),xr=e.createMap(),Sr=e.createMap(),Dr=e.createMap(),kr=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",e[e.EnumTagType=5]="EnumTagType",e[e.JSDocTypeReference=6]="JSDocTypeReference"}(cr||(cr={})),function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential",e[e.Contextual=3]="Contextual"}(ur||(ur={})),function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(lr||(lr={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(dr||(dr={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(_r||(_r={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(fr||(fr={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(pr||(pr={}));var Cr=e.createSymbolTable();Cr.set(U.escapedName,U);var Tr=e.and(Jh,function(t){return!e.isAccessor(t)});return function(){for(var t=0,r=n.getSourceFiles();t<r.length;t++){var i=r[t];e.bindSourceFile(i,N)}var a;ze=e.createMap();for(var o=0,s=n.getSourceFiles();o<s.length;o++){var i=s[o];if(!i.redirectInfo&&(e.isExternalOrCommonJsModule(i)||jr(Pt,i.locals),i.jsGlobalAugmentations&&jr(Pt,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(Ue=e.concatenate(Ue,i.patternAmbientModules)),i.moduleAugmentations.length&&(a||(a=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports)){var c=i.symbol.globalExports;c.forEach(function(e,t){Pt.has(t)||Pt.set(t,e)})}}if(a)for(var u=0,l=a;u<l.length;u++)for(var d=l[u],_=0,f=d;_<f.length;_++){var p=f[_];e.isGlobalScopeAugmentation(p.parent)&&zr(p)}if(function(t,r,n){r.forEach(function(r,i){var a=t.get(i);a?e.forEach(a.declarations,function(t,r){return function(n){return ir.add(e.createDiagnosticForNode(n,r,t))}}(e.unescapeLeadingUnderscores(i),n)):t.set(i,r)})}(Pt,Cr,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),Jr(U).type=ue,Jr(K).type=zs("IArguments",0,!0),Jr(te).type=oe,He=zs("Array",1,!0),qe=zs("Object",0,!0),Ke=zs("Function",0,!0),Ve=M&&zs("CallableFunction",0,!0)||Ke,We=M&&zs("NewableFunction",0,!0)||Ke,Xe=zs("String",0,!0),Qe=zs("Number",0,!0),Ye=zs("Boolean",0,!0),Ze=zs("RegExp",0,!0),et=nc(ne),(tt=nc(ie))===Ae&&(tt=Vn(void 0,T,e.emptyArray,e.emptyArray,void 0,void 0)),Ge=Ys("ReadonlyArray",1),rt=Ge?Zs(Ge,[ne]):et,$e=Ys("ThisType",1),a)for(var m=0,g=a;m<g.length;m++)for(var d=g[m],h=0,y=d;h<y.length;h++){var p=y[h];e.isGlobalScopeAugmentation(p.parent)||zr(p)}ze.forEach(function(t){var r=t.firstFile,n=t.secondFile,i=t.conflictingSymbols;if(i.size<8)i.forEach(function(t,r){for(var n=t.isBlockScoped,i=t.firstFileLocations,a=t.secondFileLocations,o=n?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,s=0,c=i;s<c.length;s++){var u=c[s];Br(u,o,r,a)}for(var l=0,d=a;l<d.length;l++){var u=d[l];Br(u,o,r,i)}});else{var a=e.arrayFrom(i.keys()).join(", ");ir.add(Nr(e.createDiagnosticForNode(r,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(n,e.Diagnostics.Conflicts_are_in_this_file))),ir.add(Nr(e.createDiagnosticForNode(n,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(r,e.Diagnostics.Conflicts_are_in_this_file)))}}),ze=void 0}(),W;function Er(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxNamespace)return r.localJsxNamespace;var n=r.pragmas.get("jsx");if(n){var i=e.isArray(n)?n[0]:n;if(r.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,A),r.localJsxFactory)return r.localJsxNamespace=Mh(r.localJsxFactory).escapedText}}}return or||(or="React",N.jsxFactory?(sr=e.parseIsolatedEntityName(N.jsxFactory,A))&&(or=Mh(sr).escapedText):N.reactNamespace&&(or=e.escapeLeadingUnderscores(N.reactNamespace))),or}function Nr(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return e.relatedInformation||(e.relatedInformation=[]),(t=e.relatedInformation).push.apply(t,r),e}function Ar(t,r,n,i,a,o){var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);return ir.add(s),s}function wr(t,r,n,i,a,o,c){!function(t,r){t?ir.add(r):ar.add(r.file.fileName,s({},r,{category:e.DiagnosticCategory.Suggestion}))}(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,o,c):e.createDiagnosticForNodeFromMessageChain(r,n))}function Pr(e,t,r){S++;var n=new y(33554432|e,t);return n.checkFlags=r||0,n}function Fr(e){return 0!=(33554432&e.flags)}function Ir(e){var t=0;return 2&e&&(t|=67220415),1&e&&(t|=67220414),4&e&&(t|=0),8&e&&(t|=68008959),16&e&&(t|=67219887),32&e&&(t|=68008383),64&e&&(t|=67897736),256&e&&(t|=68008191),128&e&&(t|=68008831),512&e&&(t|=110735),8192&e&&(t|=67212223),32768&e&&(t|=67154879),65536&e&&(t|=67187647),262144&e&&(t|=67635688),524288&e&&(t|=67897832),2097152&e&&(t|=2097152),t}function Mr(e,t){t.mergeId||(t.mergeId=a,a++),Wt[t.mergeId]=e}function Or(t){var r=Pr(t.flags,t.escapedName);return r.declarations=t.declarations?t.declarations.slice():[],r.parent=t.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),t.members&&(r.members=e.cloneMap(t.members)),t.exports&&(r.exports=e.cloneMap(t.exports)),Mr(r,t),r}function Lr(t,r){if(!(t.flags&Ir(r.flags))||67108864&(r.flags|t.flags)){if(e.Debug.assert(r!==t),!(33554432&t.flags)){var n=un(t);if(n===te)return r;t=Or(n)}512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&(!t.valueDeclaration||e.isAssignmentDeclaration(t.valueDeclaration)&&!e.isAssignmentDeclaration(r.valueDeclaration)||e.isEffectiveModuleDeclaration(t.valueDeclaration)&&!e.isEffectiveModuleDeclaration(r.valueDeclaration))&&(t.valueDeclaration=r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createSymbolTable()),jr(t.members,r.members)),r.exports&&(t.exports||(t.exports=e.createSymbolTable()),jr(t.exports,r.exports)),Mr(t,r)}else if(1024&t.flags)Ar(e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ii(t));else{var i=!!(384&t.flags||384&r.flags),a=!!(2&t.flags||2&r.flags),o=i?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:a?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,s=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),c=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),u=ii(r);if(s&&c&&ze&&!i&&s!==c){var l=-1===e.comparePaths(s.path,c.path)?s:c,d=l===s?c:s,_=e.getOrUpdate(ze,l.path+"|"+d.path,function(){return{firstFile:l,secondFile:d,conflictingSymbols:e.createMap()}}),f=e.getOrUpdate(_.conflictingSymbols,u,function(){return{isBlockScoped:a,firstFileLocations:[],secondFileLocations:[]}});p(f.firstFileLocations,r),p(f.secondFileLocations,t)}else Rr(r,o,u,t),Rr(t,o,u,r)}return t;function p(t,r){for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];e.pushIfUnique(t,(e.getExpandoInitializer(a,!1)?e.getNameOfExpando(a):e.getNameOfDeclaration(a))||a)}}}function Rr(t,r,n,i){e.forEach(t.declarations,function(t){Br((e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t,r,n,i.declarations)})}function Br(t,r,n,i){for(var a=function(t,r,n,i,a,o){var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o),c=ir.lookup(s);return c||(ir.add(s),s)}(t,r,n),o=0,s=i||e.emptyArray;o<s.length;o++){var c=s[o];a.relatedInformation=a.relatedInformation||[],e.length(a.relatedInformation)>=5||Nr(a,e.length(a.relatedInformation)?e.createDiagnosticForNode(c,e.Diagnostics.and_here):e.createDiagnosticForNode(c,e.Diagnostics._0_was_also_declared_here,n))}}function jr(e,t){t.forEach(function(t,r){var n=e.get(r);e.set(r,n?Lr(n,t):t)})}function zr(t){var r=t.parent;if(r.symbol.declarations[0]===r)if(e.isGlobalScopeAugmentation(r))jr(Pt,r.symbol.exports);else{var n=yn(t,t,4194304&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!n)return;1920&(n=xn(n)).flags?n=Lr(n,r.symbol):Ar(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(r.symbol.declarations.length>1)}function Jr(e){if(33554432&e.flags)return e;var t=l(e);return Ht[t]||(Ht[t]={})}function Ur(e){var t=u(e);return Gt[t]||(Gt[t]={flags:0})}function qr(t){return 279===t.kind&&!e.isExternalOrCommonJsModule(t)}function Kr(t,r,n){if(n){var i=t.get(r);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=ln(i);if(a===te||a.flags&n)return i}}}}function Vr(t,r){var i=e.getSourceFileOfNode(t),a=e.getSourceFileOfNode(r);if(i!==a){if(w&&(i.externalModuleIndicator||a.externalModuleIndicator)||!N.outFile&&!N.out||Ed(r)||4194304&t.flags)return!0;if(u(r,t))return!0;var o=n.getSourceFiles();return o.indexOf(i)<=o.indexOf(a)}if(t.pos<=r.pos){if(186===t.kind){var s=e.getAncestor(r,186);return s?e.findAncestor(s,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos<s.pos:Vr(e.getAncestor(t,237),r)}return 237===t.kind?!function(t,r){var n=e.getEnclosingBlockScopeContainer(t);switch(t.parent.parent.kind){case 219:case 225:case 227:if(Zr(r,t,n))return!0}var i=t.parent.parent;return e.isForInOrOfStatement(i)&&Zr(r,i.expression,n)}(t,r):!e.isClassDeclaration(t)||!e.findAncestor(r,function(r){return e.isComputedPropertyName(r)&&r.parent.parent===t})}if(257===r.parent.kind||254===r.parent.kind&&r.parent.isExportEquals)return!0;if(254===r.kind&&r.isExportEquals)return!0;var c=e.getEnclosingBlockScopeContainer(t);return!!(2097152&r.flags)||Ed(r)||u(r,t,c);function u(t,r,n){return!!e.findAncestor(t,function(i){if(i===n)return"quit";if(e.isFunctionLike(i))return!0;if(i.parent&&154===i.parent.kind&&i.parent.initializer===i)if(e.hasModifier(i.parent,32)){if(156===r.kind)return!0}else if(154!==r.kind||e.hasModifier(r,32)||e.getContainingClass(t)!==e.getContainingClass(r))return!0;return!1})}}function Wr(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),Hr(e,t,r,n,i,a,o,Kr,s)}function Hr(t,r,n,i,a,o,s,c,u){var l,d,_,f,p,m=t,g=t,h=!1;e:for(;t;){if(t.locals&&!qr(t)&&(l=c(t.locals,r,n))){var y=!0;if(e.isFunctionLike(t)&&d&&d!==t.body){if(n&l.flags&67897832&&291!==d.kind&&(y=!!(262144&l.flags)&&(d===t.type||151===d.kind||150===d.kind)),n&l.flags&3){var v=t;N.target&&N.target>=2&&e.isParameter(d)&&v.body&&l.valueDeclaration.pos>=v.body.pos&&l.valueDeclaration.end<=v.body.end?y=!1:1&l.flags&&(y=151===d.kind||d===t.type&&!!e.findAncestor(l.valueDeclaration,e.isParameter))}}else 175===t.kind&&(y=d===t.trueType);if(y)break e;l=void 0}switch(t.kind){case 279:if(!e.isExternalOrCommonJsModule(t))break;h=!0;case 244:var b=Pn(t).exports;if(279===t.kind||e.isAmbientModule(t)){if(l=b.get("default")){var x=e.getLocalSymbolForExportDefault(l);if(x&&l.flags&n&&x.escapedName===r)break e;l=void 0}var S=b.get(r);if(S&&2097152===S.flags&&e.getDeclarationOfKind(S,257))break}if("default"!==r&&(l=c(b,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||l.declarations.some(e.isJSDocTypeAlias))break e;l=void 0}break;case 243:if(l=c(Pn(t).exports,r,8&n))break e;break;case 154:case 153:if(e.isClassLike(t.parent)&&!e.hasModifier(t,32)){var D=Rn(t.parent);D&&D.locals&&c(D.locals,r,67220415&n)&&(f=t)}break;case 240:case 209:case 241:if(l=c(Pn(t).members||T,r,67897832&n)){if(!Qr(l,t)){l=void 0;break}if(d&&e.hasModifier(d,32))return void Ar(g,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(209===t.kind&&32&n){var k=t.name;if(k&&r===k.escapedText){l=t.symbol;break e}}break;case 211:if(d===t.expression&&86===t.parent.token){var C=t.parent.parent;if(e.isClassLike(C)&&(l=c(Pn(C).members,r,67897832&n)))return void(i&&Ar(g,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 149:if(p=t.parent.parent,(e.isClassLike(p)||241===p.kind)&&(l=c(Pn(p).members,r,67897832&n)))return void Ar(g,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 156:case 155:case 157:case 158:case 159:case 239:case 197:if(3&n&&"arguments"===r){l=K;break e}break;case 196:if(3&n&&"arguments"===r){l=K;break e}if(16&n){var E=t.name;if(E&&r===E.escapedText){l=t.symbol;break e}}break;case 152:t.parent&&151===t.parent.kind&&(t=t.parent),t.parent&&e.isClassElement(t.parent)&&(t=t.parent);break;case 304:case 297:t=e.getJSDocHost(t)}Gr(t)&&(_=t),d=t,t=t.parent}if(!o||!l||_&&l===_.symbol||(l.isReferenced|=n),!l){if(d&&(e.Debug.assert(279===d.kind),d.commonJsModuleIndicator&&"exports"===r&&n&d.symbol.flags))return d.symbol;s||(l=c(Pt,r,n))}if(!l&&m&&e.isInJSFile(m)&&m.parent&&e.isRequireCall(m.parent,!1))return V;if(l){if(i){if(f){var A=f.name;return void Ar(g,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(A),Xr(a))}if(g&&(2&n||(32&n||384&n)&&67220415==(67220415&n))){var w=On(l);(2&w.flags||32&w.flags||384&w.flags)&&function(t,r){e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags));var n=e.find(t.declarations,function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||243===t.kind||e.isInJSFile(t)&&!!e.getJSDocEnumTag(t)});if(void 0===n)return e.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");if(!(4194304&n.flags||Vr(n,r))){var i=void 0,a=e.declarationNameToString(e.getNameOfDeclaration(n));2&t.flags?i=Ar(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,a):32&t.flags?i=Ar(r,e.Diagnostics.Class_0_used_before_its_declaration,a):256&t.flags?i=Ar(r,e.Diagnostics.Enum_0_used_before_its_declaration,a):(e.Debug.assert(!!(128&t.flags)),N.preserveConstEnums&&(i=Ar(r,e.Diagnostics.Class_0_used_before_its_declaration,a))),i&&Nr(i,e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_here,a))}}(w,g)}!l||!h||67220415!=(67220415&n)||2097152&m.flags||e.some(l.declarations,function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports})&&Ar(g,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}return l}if(i&&(!g||!(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||Zh(t)||Ed(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=Pn(a.parent);if(!o)break;var s=Qi(o);if(Ao(s,r))return Ar(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Xr(n),ii(o)),!0;if(a===i&&!e.hasModifier(a,32)){var c=va(o).thisType;if(Ao(c,r))return Ar(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Xr(n)),!0}}a=a.parent}return!1}(g,r,a)||Yr(g)||function(t,r,n){var i=1920|(e.isInJSFile(t)?67220415:0);if(n===i){var a=un(Wr(t,r,67897832&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText,c=Ao(va(a),s);if(c)return Ar(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return Ar(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(g,r,n)||function(t,r,n){if(67220415&n){if("any"===r||"string"===r||"number"===r||"boolean"===r||"never"===r)return Ar(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=un(Wr(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a="Promise"===r||"Symbol"===r?e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here;return Ar(t,a,e.unescapeLeadingUnderscores(r)),!0}}return!1}(g,r,n)||function(t,r,n){if(111127&n){var i=un(Wr(t,r,1024,void 0,void 0,!1));if(i)return Ar(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n){var i=un(Wr(t,r,1536,void 0,void 0,!1));if(i)return Ar(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0}return!1}(g,r,n)))){var P=void 0;if(u&&Kt<Vt&&(P=$f(m,r,n))){var F=ii(P),I=Ar(g,u,Xr(a),F);P.valueDeclaration&&Nr(I,e.createDiagnosticForNode(P.valueDeclaration,e.Diagnostics._0_is_declared_here,F))}P||Ar(g,i,Xr(a)),Kt++}}function Gr(e){switch(e.kind){case 239:case 240:case 241:case 243:case 242:case 244:return!0;default:return!1}}function Xr(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function Qr(t,r){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(150===a.kind&&(e.isJSDocTemplateTag(a.parent)?e.getJSDocHost(a.parent):a.parent)===r)return!(e.isJSDocTemplateTag(a.parent)&&e.find(a.parent.parent.tags,e.isJSDocTypeAlias))}return!1}function Yr(t){var r=function t(r){switch(r.kind){case 72:case 189:return r.parent?t(r.parent):void 0;case 211:if(e.isEntityNameExpression(r.expression))return r.expression;default:return}}(t);return!(!r||!mn(r,64,!0)||(Ar(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),0))}function Zr(t,r,n){return!!r&&!!e.findAncestor(t,function(t){return t===n||e.isFunctionLike(t)?"quit":t===r})}function $r(e){switch(e.kind){case 248:return e;case 250:return e.parent;case 251:return e.parent.parent;case 253:return e.parent.parent.parent;default:return}}function en(t){return e.find(t.declarations,e.isAliasSymbolDeclaration)}function tn(e,t,r){var n=e.exports.get("export=");return n?Ao(Qi(n),t):un(e.exports.get(t),r)}function rn(t){return e.isExportAssignment(t)&&!t.isExportEquals||e.hasModifier(t,512)||e.isExportSpecifier(t)}function nn(t,r,n){if(!P)return!1;if(!t||t.isDeclarationFile){var i=tn(r,"default",!0);return!(i&&e.some(i.declarations,rn)||tn(r,e.escapeLeadingUnderscores("__esModule"),n))}return e.isSourceFileJS(t)?!t.externalModuleIndicator&&!tn(r,e.escapeLeadingUnderscores("__esModule"),n):Dn(r)}function an(t,r,n){void 0===n&&(n=!1);var i=hn(t,t.moduleSpecifier),a=Sn(i,t.moduleSpecifier,n);if(a){var o=r.propertyName||r.name;if(o.escapedText){if(e.isShorthandAmbientModuleSymbol(i))return i;var s=void 0;s=i&&i.exports&&i.exports.get("export=")?Ao(Qi(a),o.escapedText):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return un(Ao(cu(r),t))}}(a,o.escapedText),s=un(s,n);var c=function(e,t,r){if(1536&e.flags)return un(Tn(e).get(t),r)}(a,o.escapedText,n);!c&&P&&"default"===o.escapedText&&(c=xn(i,n)||un(i,n));var u=c&&s&&c!==s?function(t,r){if(t===te&&r===te)return te;if(67899368&t.flags)return t;var n=Pr(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=r.members),t.exports&&(n.exports=t.exports),n}(s,c):c||s;if(!u){var l=pn(i,t),d=e.declarationNameToString(o),_=ep(o,a);if(void 0!==_){var f=ii(_),p=Ar(o,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,l,d,f);_.valueDeclaration&&Nr(p,e.createDiagnosticForNode(_.valueDeclaration,e.Diagnostics._0_is_declared_here,f))}else Ar(o,e.Diagnostics.Module_0_has_no_exported_member_1,l,d)}return u}}}function on(e,t,r){return e.parent.parent.moduleSpecifier?an(e.parent.parent,e,r):mn(e.propertyName||e.name,t,!1,r)}function sn(t,r){switch(void 0===r&&(r=!1),t.kind){case 248:return function(t,r){return 259===t.moduleReference.kind?xn(hn(t,e.getExternalModuleImportEqualsDeclarationExpression(t))):fn(t.moduleReference,r)}(t,r);case 250:return function(t,r){var n=hn(t,t.parent.moduleSpecifier);if(n){var i=void 0;i=e.isShorthandAmbientModuleSymbol(n)?n:tn(n,"default",r);var a=nn(e.find(n.declarations,e.isSourceFile),n,r);if(i||a){if(a)return xn(n,r)||un(n,r)}else Ar(t.name,e.Diagnostics.Module_0_has_no_default_export,ii(n));return i}}(t,r);case 251:return function(e,t){var r=e.parent.parent.moduleSpecifier;return Sn(hn(e,r),r,t)}(t,r);case 253:return function(e,t){return an(e.parent.parent.parent,e,t)}(t,r);case 257:return on(t,68009983,r);case 254:case 204:return function(t,r){var n=e.isExportAssignment(t)?t.expression:t.right;if(e.isClassExpression(n))return eg(n).symbol;var i=mn(n,68009983,!0,r);return i||(eg(n),Ur(n).resolvedSymbol)}(t,r);case 247:return function(e,t){return xn(e.parent.symbol,t)}(t,r);default:return e.Debug.fail()}}function cn(e,t){return void 0===t&&(t=68009983),!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function un(e,t){return!t&&cn(e)?ln(e):e}function ln(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=Jr(t);if(r.target)r.target===re&&(r.target=te);else{r.target=re;var n=en(t);if(!n)return e.Debug.fail();var i=sn(n);r.target===re?r.target=i||te:Ar(n,e.Diagnostics.Circular_definition_of_import_alias_0,ii(t))}return r.target}function dn(e){var t=Pn(e),r=ln(t);r&&(r===te||67220415&r.flags&&!by(r))&&_n(t)}function _n(t){var r=Jr(t);if(!r.referenced){r.referenced=!0;var n=en(t);if(!n)return e.Debug.fail();254===n.kind?Vm(n.expression):257===n.kind?Vm(n.propertyName||n.name):e.isInternalModuleImportEqualsDeclaration(n)&&Vm(n.moduleReference)}}function fn(t,r){return 72===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),72===t.kind||148===t.parent.kind?mn(t,1920,!1,r):(e.Debug.assert(248===t.parent.kind),mn(t,68009983,!1,r))}function pn(e,t){return e.parent?pn(e.parent,t)+"."+ii(e):ii(e,t,void 0,20)}function mn(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?67220415&r:0);if(72===t.kind){var c=r===s?e.Diagnostics.Cannot_find_namespace_0:Cd(Mh(t).escapedText),u=e.isInJSFile(t)?function(t,r){if(Fs(t.parent)){var n=function(t){if(!e.findAncestor(t,function(t){return e.isJSDocNode(t)||2097152&t.flags?e.isJSDocTypeAlias(t):"quit"})){var r=e.getJSDocHost(t);if(e.isExpressionStatement(r)&&e.isBinaryExpression(r.expression)&&3===e.getAssignmentDeclarationKind(r.expression)){var n=Pn(r.expression.left);if(n)return gn(n)}if((e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)){var n=Pn(r.parent.parent.left);if(n)return gn(n)}var i=e.getHostSignatureFromJSDocHost(r);if(i){var n=Pn(i);return n&&n.valueDeclaration}}}(t.parent);if(n)return Wr(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=Wr(a||t,t.escapedText,r,n||u?void 0:c,t,!0)))return u}else{if(148!==t.kind&&189!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var l=148===t.kind?t.left:t.expression,d=148===t.kind?t.right:t.name,_=mn(l,s,n,!1,a);if(!_||e.nodeIsMissing(d))return;if(_===te)return _;if(e.isInJSFile(t)&&_.valueDeclaration&&e.isVariableDeclaration(_.valueDeclaration)&&_.valueDeclaration.initializer&&Zp(_.valueDeclaration.initializer)){var f=_.valueDeclaration.initializer.arguments[0],p=hn(f,f);if(p){var m=xn(p);m&&(_=m)}}if(!(o=Kr(Tn(_),d.escapedText,r)))return void(n||Ar(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,pn(_),e.declarationNameToString(d)))}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),o.flags&r||i?o:ln(o)}}function gn(t){var r=t.parent.valueDeclaration;if(r)return(e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0)||r}function hn(t,r,n){return yn(t,r,n?void 0:e.Diagnostics.Cannot_find_module_0)}function yn(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?vn(t,r.text,n,r,i):void 0}function vn(t,r,i,a,o){if(void 0===o&&(o=!1),void 0!==r){e.startsWith(r,"@types/")&&Ar(a,e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(r,"@types/"),r);var s=zo(r,!0);if(s)return s;var c=e.getSourceFileOfNode(t),u=e.getResolvedModule(c,r),l=u&&e.getResolutionDiagnostic(N,u),d=u&&!l&&n.getSourceFile(u.resolvedFileName);if(d)return d.symbol?(u.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(u.extension)&&bn(!1,a,u,r),wn(d.symbol)):void(i&&Ar(a,e.Diagnostics.File_0_is_not_a_module,d.fileName));if(Ue){var _=e.findBestPatternMatch(Ue,function(e){return e.pattern},r);if(_)return wn(_.symbol)}if(u&&!e.resolutionExtensionIsTSOrJson(u.extension)&&void 0===l||l===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?Ar(a,e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,r,u.resolvedFileName):bn(L&&!!i,a,u,r);else if(i){if(e.pathIsRelative(r)){var f=e.getSourceFileOfNode(t),p=f.redirectedReferences;if(p)for(var m=e.getNormalizedAbsolutePath(r,e.getDirectoryPath(f.fileName)),g=0,h=[".ts",".tsx"];g<h.length;g++){var y=m+h[g];if(p.indexOf(y)>=0)return void Ar(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,r,y)}}if(l)Ar(a,l,r,u.resolvedFileName);else{var v=e.tryExtractTSExtension(r);v?Ar(a,e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,v,e.removeExtension(r,v)):!N.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(N)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(N)?Ar(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r):Ar(a,i,r)}}}}function bn(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,h().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;wr(t,r,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function xn(t,r){if(t)return wn(function(t,r){if(!t||t===te||t===r||1===r.exports.size||2097152&t.flags)return t;var n=Or(t);return void 0===n.exports&&(n.flags=512|n.flags,n.exports=e.createSymbolTable()),r.exports.forEach(function(e,t){"export="!==t&&n.exports.set(t,n.exports.has(t)?Lr(n.exports.get(t),e):e)}),n}(un(t.exports.get("export="),r),t))||t}function Sn(t,r,n){var i=xn(t,n);if(!n&&i){if(!(1539&i.flags||e.getDeclarationOfKind(i,279)))return Ar(r,e.Diagnostics.Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct,ii(t)),i;if(N.esModuleInterop){var a=r.parent;if(e.isImportDeclaration(a)&&e.getNamespaceDeclarationNode(a)||e.isImportCall(a)){var o=Qi(i),s=wo(o,0);if(s&&s.length||(s=wo(o,1)),s&&s.length){var c=Yp(o,i,t),u=Pr(i.flags,i.escapedName);u.declarations=i.declarations?i.declarations.slice():[],u.parent=i.parent,u.target=i,u.originatingImport=a,i.valueDeclaration&&(u.valueDeclaration=i.valueDeclaration),i.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),i.members&&(u.members=e.cloneMap(i.members)),i.exports&&(u.exports=e.cloneMap(i.exports));var l=so(c);return u.type=Vn(u,l.members,e.emptyArray,e.emptyArray,l.stringIndexInfo,l.numberIndexInfo),u}}}}return i}function Dn(e){return void 0!==e.exports.get("export=")}function kn(e){return Bo(En(e))}function Cn(e,t){var r=En(t);if(r)return r.get(e)}function Tn(e){return 32&e.flags?Oa(e,"resolvedExports"):1536&e.flags?En(e):e.exports||T}function En(e){var t=Jr(e);return t.resolvedExports||(t.resolvedExports=An(e))}function Nn(t,r,n,i){r&&r.forEach(function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&un(o)!==un(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}})}function An(t){var r=[];return function t(n){if(n&&n.exports&&e.pushIfUnique(r,n)){var i=e.cloneMap(n.exports),a=n.exports.get("__export");if(a){for(var o=e.createSymbolTable(),s=e.createMap(),c=0,u=a.declarations;c<u.length;c++){var l=u[c],d=hn(l,l.moduleSpecifier),_=t(d);Nn(o,_,s,l)}s.forEach(function(t,r){var n=t.exportsWithDuplicate;if("export="!==r&&n&&n.length&&!i.has(r))for(var a=0,o=n;a<o.length;a++){var c=o[a];ir.add(e.createDiagnosticForNode(c,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(r).specifierText,e.unescapeLeadingUnderscores(r)))}}),Nn(i,o)}return i}}(t=xn(t))||T}function wn(e){var t;return e&&e.mergeId&&(t=Wt[e.mergeId])?t:e}function Pn(e){return wn(e.symbol&&Ra(e.symbol))}function Fn(e){return wn(e.parent&&Ra(e.parent))}function In(t,r){var i=Fn(t);if(i){var a=e.mapDefined(i.declarations,function(e){var t=$n(e);return un(t&&t.exports&&t.exports.get("export="))===un(i)?t:void 0}),o=r&&function(t,r){var i,a=e.getSourceFileOfNode(r),o=""+u(a),s=Jr(t);if(s.extendedContainersByFile&&(i=s.extendedContainersByFile.get(o)))return i;if(a&&a.imports){for(var c=0,l=a.imports;c<l.length;c++){var d=l[c];if(!e.nodeIsSynthesized(d)){var _=hn(r,d,!0);_&&Mn(_,t)&&(i=e.append(i,_))}}if(e.length(i))return(s.extendedContainersByFile||(s.extendedContainersByFile=e.createMap())).set(o,i),i}if(s.extendedContainers)return s.extendedContainers;for(var f=0,p=n.getSourceFiles();f<p.length;f++){var m=p[f];if(e.isExternalModule(m)){var g=Pn(m);Mn(g,t)&&(i=e.append(i,g))}}return s.extendedContainers=i||e.emptyArray}(t,r);if(r&&Gn(i,r,1920,!1))return e.concatenate(e.concatenate([i],a),o);var s=e.append(a,i);return e.concatenate(s,o)}var c=e.mapDefined(t.declarations,function(t){return!e.isAmbientModule(t)&&t.parent&&ti(t.parent)?Pn(t.parent):void 0});if(e.length(c))return e.mapDefined(c,function(e){return Mn(e,t)?e:void 0})}function Mn(t,r){if(t===Fn(r))return r;var n=Tn(t),i=n.get(r.escapedName);return i&&a(i)?i:e.forEachEntry(n,function(e){if(a(e))return e});function a(e){if(e===r||un(e)===r||un(e)===un(r))return e}}function On(e){return wn(e&&0!=(1048576&e.flags)?e.exportSymbol:e)}function Ln(e){return!!(67220415&e.flags||2097152&e.flags&&67220415&ln(e).flags)}function Rn(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];if(157===i.kind&&e.nodeIsPresent(i.body))return i}}function Bn(e){var t=new v(W,e);return x++,t.id=x,t}function jn(e,t){var r=Bn(e);return r.intrinsicName=t,r}function zn(e){var t=mc(e);return t.flags|=16,t.intrinsicName="boolean",t}function Jn(e,t){var r=Bn(524288);return r.objectFlags=e,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.stringIndexInfo=void 0,r.numberIndexInfo=void 0,r}function Un(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)}function qn(t){var r;return t.forEach(function(e,t){!Un(t)&&Ln(e)&&(r||(r=[])).push(e)}),r||e.emptyArray}function Kn(t,r,n,i,a,o){return t.members=r,t.properties=r===T?e.emptyArray:qn(r),t.callSignatures=n,t.constructSignatures=i,t.stringIndexInfo=a,t.numberIndexInfo=o,t}function Vn(e,t,r,n,i,a){return Kn(Jn(16,e),t,r,n,i,a)}function Wn(t,r){for(var n,i=t;i;i=i.parent){if(i.locals&&!qr(i)&&(n=r(i.locals)))return n;switch(i.kind){case 279:if(!e.isExternalOrCommonJsModule(i))break;case 244:if(n=r(Pn(i).exports))return n}}return r(Pt)}function Hn(e){return 67220415===e?67220415:1920}function Gn(t,r,n,i,a){if(void 0===a&&(a=e.createMap()),t&&!function(e){if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 154:case 156:case 158:case 159:continue;default:return!1}}return!0}return!1}(t)){var o=""+l(t),s=a.get(o);return s||a.set(o,s=[]),Wn(r,c)}function c(a,o){if(e.pushIfUnique(s,a)){var l=function(a,o){return d(a.get(t.escapedName),void 0,o)?[t]:e.forEachEntry(a,function(a){if(2097152&a.flags&&"export="!==a.escapedName&&"default"!==a.escapedName&&!(e.isUMDExportSymbol(a)&&r&&e.isExternalModule(e.getSourceFileOfNode(r)))&&(!i||e.some(a.declarations,e.isExternalModuleImportEqualsDeclaration))&&(o||!e.getDeclarationOfKind(a,257))){var s=ln(a);if(d(a,s,o))return[a];var l=Tn(s),_=l&&c(l,!0);if(_&&u(a,Hn(n)))return[a].concat(_)}if(a.escapedName===t.escapedName&&a.exportSymbol&&d(wn(a.exportSymbol),void 0,o))return[t]})}(a,o);return s.pop(),l}}function u(e,t){return!Xn(e,r,t)||!!Gn(e.parent,r,Hn(t),i,a)}function d(r,i,a){return t===(i||r)&&!e.some(r.declarations,ti)&&(a||u(r,n))}}function Xn(t,r,n){var i=!1;return Wn(r,function(r){var a=wn(r.get(t.escapedName));return!!a&&(a===t||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,257)?ln(a):a).flags&n)&&(i=!0,!0))}),i}function Qn(e,t){return 0===Zn(e,t,67897832,!1).accessibility}function Yn(e,t){return 0===Zn(e,t,67220415,!1).accessibility}function Zn(t,r,n,i){if(t&&r){var a=function t(r,n,i,a,o){if(e.length(r)){for(var s,c=0,u=r;c<u.length;c++){var l=u[c],d=Gn(l,n,a,!1);if(d){s=l;var _=ri(d[0],o);if(_)return _}else if(e.some(l.declarations,ti))return{accessibility:0};var f=In(l,n),p=e.first(l.declarations);!e.length(f)&&67220415&a&&p&&e.isObjectLiteralExpression(p)&&p.parent&&e.isVariableDeclaration(p.parent)&&p===p.parent.initializer&&(f=[Pn(p.parent)]);var m=t(f,n,i,i===l?Hn(a):a,o);if(m)return m}return s?{accessibility:1,errorSymbolName:ii(i,n,a),errorModuleName:s!==i?ii(s,n,1920):void 0}:void 0}}([t],r,t,n,i);if(a)return a;var o=e.forEach(t.declarations,$n);return o&&o!==$n(r)?{accessibility:2,errorSymbolName:ii(t,r,n),errorModuleName:ii(o)}:{accessibility:1,errorSymbolName:ii(t,r,n)}}return{accessibility:0}}function $n(t){var r=e.findAncestor(t,ei);return r&&Pn(r)}function ei(t){return e.isAmbientModule(t)||279===t.kind&&e.isExternalOrCommonJsModule(t)}function ti(t){return e.isModuleWithStringLiteralName(t)||279===t.kind&&e.isExternalOrCommonJsModule(t)}function ri(t,r){var n;if(e.every(t.declarations,function(t){if(!fi(t)){var r=$r(t);return r&&!e.hasModifier(r,1)&&fi(r.parent)?i(t,r):e.isVariableDeclaration(t)&&e.isVariableStatement(t.parent.parent)&&!e.hasModifier(t.parent.parent,1)&&fi(t.parent.parent.parent)?i(t,t.parent.parent):!(!e.isLateVisibilityPaintedStatement(t)||e.hasModifier(t,1)||!fi(t.parent))&&i(t,t)}return!0}))return{accessibility:0,aliasesToMakeVisible:n};function i(t,i){return r&&(Ur(t).isVisible=!0,n=e.appendIfUnique(n,i)),!0}}function ni(t,r){var n;n=167===t.parent.kind||e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)||149===t.parent.kind?68268991:148===t.kind||189===t.kind||248===t.parent.kind?1920:67897832;var i=Mh(t),a=Wr(r,i.escapedText,n,void 0,void 0,!1);return a&&ri(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function ii(t,r,n,i,a){void 0===i&&(i=4);var o=70221824;2&i&&(o|=128),1&i&&(o|=512),8&i&&(o|=16384),16&i&&(o|=134217728);var s=4&i?J.symbolToExpression:J.symbolToEntityName;return a?c(a).getText():e.usingSingleLineStringWriter(c);function c(i){var a=s(t,n,r,o),c=e.createPrinter({removeComments:!0}),u=r&&e.getSourceFileOfNode(r);return c.writeNode(4,a,u,i),i}}function ai(t,r,n,i,a){return void 0===n&&(n=0),a?o(a).getText():e.usingSingleLineStringWriter(o);function o(a){var o;o=262144&n?1===i?166:165:1===i?161:160;var s=J.signatureToSignatureDeclaration(t,o,r,70222336|si(n)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),u=r&&e.getSourceFileOfNode(r);return c.writeNode(4,s,u,e.getTrailingSemicolonOmittingWriter(a)),a}}function oi(t,r,n,i){void 0===n&&(n=1064960),void 0===i&&(i=e.createTextWriter(""));var a=N.noErrorTruncation||1&n,o=J.typeToTypeNode(t,r,70221824|si(n)|(a?1:0),i);if(void 0===o)return e.Debug.fail("should always get typenode");var s=e.createPrinter({removeComments:!0}),c=r&&e.getSourceFileOfNode(r);s.writeNode(4,o,c,i);var u=i.getText(),l=a?void 0:2*e.defaultMaximumTruncationLength;return l&&u&&u.length>=l?u.substr(0,l-"...".length)+"...":u}function si(e){return void 0===e&&(e=0),9469291&e}function ci(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.createTypePredicateNode(1===t.kind?e.createIdentifier(t.parameterName):e.createThisTypeNode(),J.typeToTypeNode(t.type,r,70222336|si(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function ui(e){return 8===e?"private":16===e?"protected":"public"}function li(t){return t&&t.parent&&245===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function di(t){return 279===t.kind||e.isAmbientModule(t)}function _i(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],di)!==e.findAncestor(r.enclosingDeclaration,di)))return"default";if(t.declarations&&t.declarations.length){var n=t.declarations[0],i=e.getNameOfDeclaration(n);if(i)return e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)?e.symbolName(t):e.declarationNameToString(i);if(n.parent&&237===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 209:case 196:case 197:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),209===n.kind?"(Anonymous class)":"(Anonymous function)"}}var a=t.nameType;if(a){if(128&a.flags&&!e.isIdentifierText(a.value,N.target))return'"'+e.escapeString(a.value,34)+'"';if(a&&8192&a.flags)return"["+_i(a.symbol,r)+"]"}return e.symbolName(t)}function fi(t){if(t){var r=Ur(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 297:case 304:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 186:return fi(t.parent.parent);case 237:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 244:case 240:case 241:case 242:case 239:case 243:case 248:if(e.isExternalModuleAugmentation(t))return!0;var r=vi(t);return 1&e.getCombinedModifierFlags(t)||248!==t.kind&&279!==r.kind&&4194304&r.flags?fi(r):qr(r);case 154:case 153:case 158:case 159:case 156:case 155:if(e.hasModifier(t,24))return!1;case 157:case 161:case 160:case 162:case 151:case 245:case 165:case 166:case 168:case 164:case 169:case 170:case 173:case 174:case 177:return fi(t.parent);case 250:case 251:case 253:return!1;case 150:case 279:case 247:return!0;case 254:default:return!1}}()),r.isVisible}return!1}function pi(t,r){var n,i;return t.parent&&254===t.parent.kind?n=Wr(t,t.escapedText,70107135,void 0,t,!1):257===t.parent.kind&&(n=on(t.parent,70107135)),n&&function t(n){e.forEach(n,function(n){var a=$r(n)||n;if(r?Ur(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,a)),e.isInternalModuleImportEqualsDeclaration(n)){var o=n.moduleReference,s=Mh(o),c=Wr(n,s.escapedText,68009983,void 0,void 0,!1);c&&t(c.declarations)}})}(n.declarations),i}function mi(e,t){var r=gi(e,t);if(r>=0){for(var n=Jt.length,i=r;i<n;i++)Ut[i]=!1;return!1}return Jt.push(e),Ut.push(!0),qt.push(t),!0}function gi(e,t){for(var r=Jt.length-1;r>=0;r--){if(hi(Jt[r],qt[r]))return-1;if(Jt[r]===e&&qt[r]===t)return r}return-1}function hi(t,r){switch(r){case 0:return!!Jr(t).type;case 5:return!!Ur(t).resolvedEnumType;case 2:return!!Jr(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!Jr(t).resolvedJSDocType}return e.Debug.assertNever(r)}function yi(){return Jt.pop(),qt.pop(),Ut.pop()}function vi(t){return e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 237:case 238:case 253:case 252:case 251:case 250:return!1;default:return!0}}).parent}function bi(e,t){var r=Ao(e,t);return r?Qi(r):void 0}function xi(e){return e&&0!=(1&e.flags)}function Si(e){var t=Pn(e);return t&&Jr(t).type||Ai(e,!1)}function Di(t){return 149===t.kind&&!e.isStringOrNumericLiteralLike(t.expression)}function ki(t,r,n){if(131072&(t=i_(t,function(e){return!(98304&e.flags)})).flags)return Ae;if(1048576&t.flags)return a_(t,function(e){return ki(e,r,n)});var i=mc(e.map(r,Dc));if(Pc(t)||Fc(i)){if(131072&i.flags)return t;var a=xt||(xt=js("Pick",524288,e.Diagnostics.Cannot_find_global_type_0)),o=bt||(bt=js("Exclude",524288,e.Diagnostics.Cannot_find_global_type_0));if(!a||!o)return oe;var s=Ds(o,[Tc(t),i]);return Ds(a,[t,s])}for(var c=e.createSymbolTable(),u=0,l=_o(t);u<l.length;u++){var d=l[u];zu(kc(d,8576),i)||24&e.getDeclarationModifierFlagsFromSymbol(d)||!Zc(d)||c.set(d.escapedName,$c(d))}var _=Mo(t,0),f=Mo(t,1);return Vn(n,c,e.emptyArray,e.emptyArray,_,f)}function Ci(t){var r,n=t.parent,i=Si(n.parent);if(i===oe)return oe;if(!i)return t.initializer?Hm(t):i;if(xi(i))return i;if(F&&4194304&t.flags&&e.isParameterDeclaration(t)&&(i=Wl(i)),184===n.kind)if(t.dotDotDotToken){if(2&i.flags||!xf(i))return Ar(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),oe;for(var a=[],o=0,s=n.elements;o<s.length;o++){var c=s[o];c.dotDotDotToken||a.push(c.propertyName||c.name)}r=ki(i,a,t.symbol)}else{var u=t.propertyName||t.name;r=v_(t,T_(mg(Lc(i,Dc(u),u),u),t.name))}else{var l=dh(i,n,!1,!1),d=n.elements.indexOf(t);if(t.dotDotDotToken)r=n_(i,Ll)?a_(i,function(e){return sc(e,d)}):nc(l);else{var _=n.elements.indexOf(t);if(!(r=n_(i,El)?Nl(i,_)||t.initializer&&Hm(t):l))return Ll(i)?Ar(t,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,oi(i),xs(i),n.elements.length):Ar(t,e.Diagnostics.Type_0_has_no_property_1,oi(i),""+_),oe}}return!F||!t.initializer||32768&Jl(Hm(t))||(r=zd(r,524288)),t.initializer&&!e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(t))?mc([r,Hm(t)],2):r}function Ti(t){var r=e.getJSDocType(t);if(r)return cu(r)}function Ei(t){var r=e.skipParentheses(t);return 187===r.kind&&0===r.elements.length}function Ni(e,t){return void 0===t&&(t=!0),F&&t?Vl(e):e}function Ai(t,r){if(e.isVariableDeclaration(t)&&226===t.parent.parent.kind){var n=Tc(Kf(eg(t.parent.parent.expression)));return 4456448&n.flags?Ec(n):_e}if(e.isVariableDeclaration(t)&&227===t.parent.parent.kind){var i=t.parent.parent;return lh(i.expression,i.awaitModifier)||ne}if(e.isBindingPattern(t.parent))return Ci(t);var a,o,s=r&&(e.isParameter(t)&&jo(t)||!e.isBindingElement(t)&&!e.isVariableDeclaration(t)&&!!t.questionToken),c=zi(t);if(c)return Ni(c,s);if((L||e.isInJSFile(t))&&237===t.kind&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!(4194304&t.flags)){if(!(2&e.getCombinedNodeFlags(t)||t.initializer&&(a=t.initializer,o=e.skipParentheses(a),96!==o.kind&&(72!==o.kind||Td(o)!==U))))return ie;if(t.initializer&&Ei(t.initializer))return tt}if(151===t.kind){var u,l=t.parent;if(159===l.kind&&!Fa(l)){var d=e.getDeclarationOfKind(Pn(t.parent),158);if(d){var _=Ho(d),f=nv(l);return f&&t===f?(e.Debug.assert(!f.type),Qi(_.thisParameter)):es(_)}}if(e.isInJSFile(t)){var p=e.getJSDocType(l);if(p&&e.isFunctionTypeNode(p))return nm(Ho(p),l.parameters.indexOf(t))}if(u="this"===t.symbol.escapedName?z_(l):J_(t))return Ni(u,s)}else if(e.isInJSFile(t)){var m=Pi(t,Pn(t),e.getDeclaredExpandoInitializer(t));if(m)return m}return t.initializer?Ni(u=Hm(t),s):e.isJsxAttribute(t)?he:e.isBindingPattern(t.name)?Li(t.name,!1,!0):void 0}function wi(t,r){var n=e.getAssignedExpandoInitializer(t.valueDeclaration);if(n){var i=e.getJSDocTypeTag(n);return i&&i.typeExpression?cu(i.typeExpression):Pi(t.valueDeclaration,t,n)||Il(Vm(n))}for(var a,o,s=!1,c=!1,u=0,l=t.declarations;u<l.length;u++){var d=l[u],_=e.isBinaryExpression(d)||e.isCallExpression(d)?d:e.isPropertyAccessExpression(d)?e.isBinaryExpression(d.parent)?d.parent:d:void 0;if(!_)return oe;var f=e.isPropertyAccessExpression(_)?e.getAssignmentDeclarationPropertyAccessKind(_):e.getAssignmentDeclarationKind(_);4===f&&(Mi(_)?s=!0:c=!0),e.isCallExpression(_)||(a=Fi(a,_,0,d)),a||(o||(o=[])).push(e.isBinaryExpression(_)||e.isCallExpression(_)?Ii(t,r,_,f):Se)}var p=a;if(!p){var m=s?function(t,r){return e.Debug.assert(t.length===r.length),t.filter(function(t,n){var i=r[n],a=e.isBinaryExpression(i)?i:e.isBinaryExpression(i.parent)?i.parent:void 0;return a&&Mi(a)})}(o,t.declarations):void 0;if(c){var g=function(t){var r=e.forEach(t.declarations,function(t){var r=e.getThisContainer(t,!1).parent;return e.isClassLike(r)&&r});if(r){var n=va(Pn(r)),i=n&&la(n)[0];if(i)return bi(i,t.escapedName)}}(t);g&&((m||(m=[])).push(g),s=!0)}p=mc(e.some(m,function(e){return!!(-134316033&e.flags)})?m:o,2)}var h=ed(Ni(p,c&&!s));return i_(h,function(e){return!!(-98305&e.flags)})===Se?(rd(t.valueDeclaration,ne),ne):h}function Pi(t,r,n){if(e.isInJSFile(t)&&n&&e.isObjectLiteralExpression(n)&&!n.properties.length){for(var i=e.createSymbolTable();e.isBinaryExpression(t)||e.isPropertyAccessExpression(t);){var a=Pn(t);a&&e.hasEntries(a.exports)&&jr(i,a.exports),t=e.isBinaryExpression(t)?t.parent:t.parent.parent}var o=Pn(t);o&&e.hasEntries(o.exports)&&jr(i,o.exports);var s=Vn(r,i,e.emptyArray,e.emptyArray,void 0,void 0);return s.objectFlags|=16384,s}}function Fi(t,r,n,i){var a=e.getJSDocType(r.parent);if(a){var o=ed(cu(a));if(!t)return o;t===oe||o===oe||Ou(t,o)||rh(t,i,o)}return t}function Ii(t,r,n,i){if(e.isCallExpression(n)){if(r)return Qi(r);var a=Vm(n.arguments[2]),o=bi(a,"value");if(o)return o;var s=bi(a,"get");if(s){var c=mp(s);if(c)return es(c)}var u=bi(a,"set");if(u){var l=mp(u);if(l)return dm(l)}return ne}var d=r?Qi(r):Il(Vm(n.right));if(524288&d.flags&&2===i&&"export="===t.escapedName){var _=so(d),f=e.createSymbolTable();e.copyEntries(_.members,f),r&&!r.exports&&(r.exports=e.createSymbolTable()),(r||t).exports.forEach(function(e,t){if(f.has(t)){var r=_.members.get(t),n=Pr(e.flags|r.flags,t);n.type=mc([Qi(e),Qi(r)]),f.set(t,n)}else f.set(t,e)});var p=Vn(_.symbol,f,_.callSignatures,_.constructSignatures,_.stringIndexInfo,_.numberIndexInfo);return p.objectFlags|=16384&e.getObjectFlags(d),p}return Tl(d)?(rd(n,et),et):d}function Mi(t){var r=e.getThisContainer(t,!1);return 157===r.kind||239===r.kind||196===r.kind&&!e.isPrototypePropertyAssignment(r.parent)}function Oi(t,r,n){return t.initializer?Ni(Hm(t)):e.isBindingPattern(t.name)?Li(t.name,r,n):(n&&!ji(t)&&rd(t,ne),ne)}function Li(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),184===t.kind?function(t,r,n){var i,a=e.createSymbolTable(),o=128;e.forEach(t.elements,function(t){var s=t.propertyName||t.name;if(Di(s))o|=512;else if(t.dotDotDotToken)i=fs(ne,!1);else{var c=e.getTextOfPropertyName(s),u=Pr(4|(t.initializer?16777216:0),c);u.type=Oi(t,r,n),u.bindingElement=t,a.set(u.escapedName,u)}});var s=Vn(void 0,a,e.emptyArray,e.emptyArray,i,void 0);return s.flags|=268435456,s.objectFlags|=o,r&&(s.pattern=t),s}(t,r,n):function(t,r,n){var i=t.elements,a=e.lastOrUndefined(i),o=!(!a||186!==a.kind||!a.dotDotDotToken);if(0===i.length||1===i.length&&o)return A>=2?tc(ne):et;var s=oc(e.map(i,function(t){return e.isOmittedExpression(t)?ne:Oi(t,r,n)}),e.findLastIndex(i,function(t){return!e.isOmittedExpression(t)&&!df(t)},i.length-(o?2:1))+1,o);return r&&((s=bs(s)).pattern=t),s}(t,r,n)}function Ri(e,t){return Bi(Ai(e,!0),e,t)}function Bi(t,r,n){return t?(n&&nd(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==Pn(r)&&(t=be),ed(t)):(t=e.isParameter(r)&&r.dotDotDotToken?et:ne,n&&(ji(r)||rd(r,t)),t)}function ji(t){var r=e.getRootDeclaration(t);return hg(151===r.kind?r.parent:r)}function zi(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return cu(r)}function Ji(t){var r=Jr(t);return r.type||(r.type=function(t){if(4194304&t.flags)return(r=va(Fn(t))).typeParameters?vs(r,e.map(r.typeParameters,function(e){return ne})):r;var r;if(t===V)return ne;if(134217728&t.flags){var n=Pn(e.getSourceFileOfNode(t.valueDeclaration)),i=e.createSymbolTable();return i.set("exports",n),Vn(t,i,e.emptyArray,e.emptyArray,void 0,void 0)}var a,o=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(o))return ne;if(e.isSourceFile(o)){var s=e.cast(o,e.isJsonSourceFile);if(!s.statements.length)return Ae;var c=Il(eg(s.statements[0].expression));return 524288&c.flags?Xl(c):c}if(254===o.kind)return Bi(Vm(o.expression),o);if(!mi(t,0))return oe;if(e.isInJSFile(o)&&(e.isCallExpression(o)||e.isBinaryExpression(o)||e.isPropertyAccessExpression(o)&&e.isBinaryExpression(o.parent)))a=wi(t);else if(e.isJSDocPropertyLikeTag(o)||e.isPropertyAccessExpression(o)||e.isIdentifier(o)||e.isClassDeclaration(o)||e.isFunctionDeclaration(o)||e.isMethodDeclaration(o)&&!e.isObjectLiteralMethod(o)||e.isMethodSignature(o)){if(9136&t.flags)return Hi(t);a=e.isBinaryExpression(o.parent)?wi(t):zi(o)||ne}else if(e.isPropertyAssignment(o))a=zi(o)||Xm(o);else if(e.isJsxAttribute(o))a=zi(o)||kf(o);else if(e.isShorthandPropertyAssignment(o))a=zi(o)||Gm(o.name,0);else if(e.isObjectLiteralMethod(o))a=zi(o)||Qm(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o))a=Ri(o,!0);else if(e.isEnumDeclaration(o))a=Hi(t);else{if(!e.isEnumMember(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.showSyntaxKind(o)+" for "+e.Debug.showSymbol(t));a=Gi(t)}return yi()||(a=Xi(t)),a}(t))}function Ui(t){if(t)return 158===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function qi(e){var t=Ui(e);return t&&cu(t)}function Ki(e){return Yo(Ho(e))}function Vi(t){var r=Jr(t);return r.type||(r.type=function(t){var r,n=e.getDeclarationOfKind(t,158),i=e.getDeclarationOfKind(t,159);if(n&&e.isInJSFile(n)){var a=Ti(n);if(a)return a}if(!mi(t,0))return oe;var o=qi(n);if(o)r=o;else{var s=qi(i);s?r=s:n&&n.body?r=hm(n):(i?wr(L,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ii(t)):(e.Debug.assert(!!n,"there must existed getter as we are current checking either setter or getter in this function"),wr(L,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ii(t))),r=ne)}if(!yi()&&(r=ne,L)){var c=e.getDeclarationOfKind(t,158);Ar(c,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,ii(t))}return r}(t))}function Wi(e){var t=ua(_a(e));return 8650752&t.flags?t:void 0}function Hi(t){var r=Jr(t),n=r;if(!r.type){var i=e.getDeclarationOfExpando(t.valueDeclaration);if(i){var a=Pn(i);a&&(e.hasEntries(a.exports)||e.hasEntries(a.members))&&(r=t=Or(t),e.hasEntries(a.exports)&&(t.exports=t.exports||e.createSymbolTable(),jr(t.exports,a.exports)),e.hasEntries(a.members)&&(t.members=t.members||e.createSymbolTable(),jr(t.members,a.members)))}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return ne;if(204===r.kind||189===r.kind&&204===r.parent.kind)return wi(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=xn(t);if(n!==t){if(!mi(t,0))return oe;var i=wn(t.exports.get("export=")),a=wi(i,i===n?void 0:n);return yi()?a:Xi(t)}}var o=Jn(16,t);if(32&t.flags){var s=Wi(t);return s?xc([o,s]):o}return F&&16777216&t.flags?Vl(o):o}(t)}return r.type}function Gi(e){var t=Jr(e);return t.type||(t.type=ha(e))}function Xi(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(Ar(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ii(t)),oe):(L&&Ar(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,ii(t)),ne)}function Qi(t){return 1&e.getCheckFlags(t)?function(e){var t=Jr(e);if(!t.type){if(!mi(e,0))return t.type=oe;var r=Eu(Qi(t.target),t.mapper);yi()||(r=Xi(e)),t.type=r}return t.type}(t):2048&e.getCheckFlags(t)?function(e){return dd(e.propertyType,e.mappedType,e.constraintType)}(t):7&t.flags?Ji(t):9136&t.flags?Hi(t):8&t.flags?Gi(t):98304&t.flags?Vi(t):2097152&t.flags?function(e){var t=Jr(e);if(!t.type){var r=ln(e);t.type=67220415&r.flags?Qi(r):oe}return t.type}(t):oe}function Yi(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function Zi(t){return 4&e.getObjectFlags(t)?t.target:t}function $i(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=Zi(n);return i===r||e.some(la(i),t)}return!!(2097152&n.flags)&&e.some(n.types,t)}(t)}function ea(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=e.appendIfUnique(t,ya(Pn(a)))}return t}function ta(t,r){for(;;){if(!(t=t.parent))return;switch(t.kind){case 240:case 209:case 241:case 160:case 161:case 155:case 165:case 166:case 289:case 239:case 156:case 196:case 197:case 242:case 303:case 304:case 297:case 181:case 175:var n=ta(t,r);if(181===t.kind)return e.append(n,ya(Pn(t.typeParameter)));if(175===t.kind)return e.concatenate(n,qc(t));var i=ea(n,e.getEffectiveTypeParameterDeclarations(t)),a=r&&(240===t.kind||209===t.kind||241===t.kind)&&_a(Pn(t)).thisType;return a?e.append(i,a):i}}}function ra(t){return ta(32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,241))}function na(t){for(var r,n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(241===a.kind||240===a.kind||209===a.kind||e.isTypeAlias(a)){var o=a;r=ea(r,e.getEffectiveTypeParameterDeclarations(o))}}return r}function ia(e){var t=Po(e,1);if(1===t.length){var r=t[0];return!r.typeParameters&&1===r.parameters.length&&r.hasRestParameter&&tm(r.parameters[0])===et}return!1}function aa(e){if(da(e)&&Po(e,1).length>0)return!0;if(8650752&e.flags){var t=yo(e);return!!t&&da(t)&&ia(t)}return qp(e)}function oa(t){return e.getEffectiveBaseTypeNode(t.symbol.valueDeclaration)}function sa(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(Po(t,1),function(t){return(a||i>=Vo(t.typeParameters))&&i<=e.length(t.typeParameters)})}function ca(t,r,n){var i=sa(t,r,n),a=e.map(r,cu);return e.sameMap(i,function(t){return e.some(t.typeParameters)?ns(t,a,e.isInJSFile(n)):t})}function ua(t){if(!t.resolvedBaseConstructorType){var r=t.symbol.valueDeclaration,n=e.getEffectiveBaseTypeNode(r),i=oa(t);if(!i)return t.resolvedBaseConstructorType=ce;if(!mi(t,1))return oe;var a=eg(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),eg(n.expression)),2621440&a.flags&&so(a),!yi())return Ar(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ii(t.symbol)),t.resolvedBaseConstructorType=oe;if(!(1&a.flags||a===de||aa(a))){var o=Ar(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,oi(a));if(262144&a.flags){var s=ms(a),c=se;if(s){var u=Po(s,1);u[0]&&(c=es(u[0]))}Nr(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ii(a.symbol),oi(c)))}return t.resolvedBaseConstructorType=oe}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function la(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[nc(mc(t.typeParameters||e.emptyArray))]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=Co(ua(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=oa(t),a=Os(i),o=qp(r)?r:r.symbol?va(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=e.typeArguments;return t[r].symbol!==n[r].symbol}return!0}(o))n=Ss(i,r.symbol,a);else if(1&r.flags)n=r;else if(qp(r))n=!i.typeArguments&&Kp(r.symbol)||ne;else{var s=ca(r,i.typeArguments,i);if(!s.length)return Ar(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=es(s[0])}n===oe?t.resolvedBaseTypes=e.emptyArray:da(n)?t===n||$i(n,t)?(Ar(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,oi(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray):(t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[n]):(Ar(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,oi(n)),t.resolvedBaseTypes=e.emptyArray)}(t),64&t.symbol.flags&&function(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];if(241===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=cu(s);c!==oe&&(da(c)?t===c||$i(c,t)?Ar(i,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,oi(t,void 0,2)):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):Ar(s,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function da(t){return!!(67633153&t.flags)&&!oo(t)||!!(2097152&t.flags)&&e.every(t.types,da)}function _a(t){var r=Jr(t);if(!r.declaredType){var n=32&t.flags?1:2,i=r.declaredType=Jn(n,t),a=ra(t),o=na(t);(a||o||1===n||!function(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(241===i.kind){if(64&i.flags)return!1;var a=e.getInterfaceBaseTypeNodes(i);if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];if(e.isEntityNameExpression(c.expression)){var u=mn(c.expression,67897832,!0);if(!u||!(64&u.flags)||_a(u).thisType)return!1}}}}return!0}(t))&&(i.objectFlags|=4,i.typeParameters=e.concatenate(a,o),i.outerTypeParameters=a,i.localTypeParameters=o,i.instantiations=e.createMap(),i.instantiations.set(hs(i.typeParameters),i),i.target=i,i.typeArguments=i.typeParameters,i.thisType=Bn(262144),i.thisType.isThisType=!0,i.thisType.symbol=t,i.thisType.constraint=i)}return r.declaredType}function fa(t){var r=t.initializer;if(!r)return!(4194304&t.flags);switch(r.kind){case 10:case 8:return!0;case 202:return 39===r.operator&&8===r.operand.kind;case 72:return e.nodeIsMissing(r)||!!Pn(t.parent).exports.get(r.escapedText);case 204:return function e(t){return 10===t.kind||204===t.kind&&e(t.left)&&e(t.right)}(r);default:return!1}}function pa(e){var t=Jr(e);if(void 0!==t.enumKind)return t.enumKind;for(var r=!1,n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(243===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o];if(c.initializer&&10===c.initializer.kind)return t.enumKind=1;fa(c)||(r=!0)}}return t.enumKind=r?0:1}function ma(e){return 1024&e.flags&&!(1048576&e.flags)?va(Fn(e.symbol)):e}function ga(e){var t=Jr(e);if(t.declaredType)return t.declaredType;if(1===pa(e)){D++;for(var r=[],n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(243===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],u=ru(au(Ey(c),D,Pn(c)));Jr(Pn(c)).declaredType=u,r.push(nu(u))}}if(r.length){var l=mc(r,1,e,void 0);return 1048576&l.flags&&(l.flags|=1024,l.symbol=e),t.declaredType=l}}var d=Bn(32);return d.symbol=e,t.declaredType=d}function ha(e){var t=Jr(e);if(!t.declaredType){var r=ga(Fn(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function ya(e){var t=Jr(e);if(!t.declaredType){var r=Bn(262144);r.symbol=e,t.declaredType=r}return t.declaredType}function va(e){return ba(e)||oe}function ba(t){return 96&t.flags?_a(t):524288&t.flags?function(t){var r=Jr(t);if(!r.declaredType){if(!mi(t,2))return oe;var n=e.find(t.declarations,function(t){return e.isJSDocTypeAlias(t)||242===t.kind}),i=e.isJSDocTypeAlias(n)?n.typeExpression:n.type,a=i?cu(i):oe;if(yi()){var o=na(t);o&&(r.typeParameters=o,r.instantiations=e.createMap(),r.instantiations.set(hs(o),a))}else a=oe,Ar(n.name,e.Diagnostics.Type_alias_0_circularly_references_itself,ii(t));r.declaredType=a}return r.declaredType}(t):262144&t.flags?ya(t):384&t.flags?ga(t):8&t.flags?ha(t):2097152&t.flags?function(e){var t=Jr(e);return t.declaredType||(t.declaredType=va(ln(e))),t.declaredType}(t):void 0}function xa(e){switch(e.kind){case 120:case 143:case 138:case 135:case 146:case 123:case 139:case 136:case 106:case 141:case 96:case 132:case 182:return!0;case 169:return xa(e.elementType);case 164:return!e.typeArguments||e.typeArguments.every(xa)}return!1}function Sa(t){var r=e.getEffectiveConstraintOfTypeParameter(t);return!r||xa(r)}function Da(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?xa(r):!e.hasInitializer(t)}function ka(t){if(t.declarations&&1===t.declarations.length){var r=t.declarations[0];if(r)switch(r.kind){case 154:case 153:return Da(r);case 156:case 155:case 157:return n=r,i=e.getEffectiveReturnTypeNode(n),a=e.getEffectiveTypeParameterDeclarations(n),(157===n.kind||!!i&&xa(i))&&n.parameters.every(Da)&&a.every(Sa)}}var n,i,a;return!1}function Ca(t,r,n){for(var i=e.createSymbolTable(),a=0,o=t;a<o.length;a++){var s=o[a];i.set(s.escapedName,n&&ka(s)?s:bu(s,r))}return i}function Ta(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||e.set(i.escapedName,i)}}function Ea(t){if(!t.declaredProperties){var r=t.symbol,n=La(r);t.declaredProperties=qn(n),t.declaredCallSignatures=e.emptyArray,t.declaredConstructSignatures=e.emptyArray,t.declaredCallSignatures=Qo(n.get("__call")),t.declaredConstructSignatures=Qo(n.get("__new")),t.declaredStringIndexInfo=ps(r,0),t.declaredNumberIndexInfo=ps(r,1)}return t}function Na(e){return!!(8576&e.flags)}function Aa(t){return e.isComputedPropertyName(t)&&e.isEntityNameExpression(t.expression)&&Na(hf(t))}function wa(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Pa(t){var r=e.getNameOfDeclaration(t);return!!r&&Aa(r)}function Fa(t){return e.hasDynamicName(t)&&!Pa(t)}function Ia(t){return 8192&t.flags?"__@"+t.symbol.escapedName+"@"+l(t.symbol):384&t.flags?e.escapeLeadingUnderscores(""+t.value):e.Debug.fail()}function Ma(t,r,n,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=Ur(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=hf(i.name);if(Na(o)){var s=Ia(o),c=i.symbol.flags,u=n.get(s);u||n.set(s,u=Pr(0,s,1024));var l=r&&r.get(s);if(u.flags&Ir(c)||l){var d=l?e.concatenate(l.declarations,u.declarations):u.declarations,_=e.declarationNameToString(i.name);e.forEach(d,function(t){return Ar(e.getNameOfDeclaration(t)||t,e.Diagnostics.Duplicate_declaration_0,_)}),Ar(i.name||i,e.Diagnostics.Duplicate_declaration_0,_),u=Pr(0,s,1024)}return u.nameType=o,function(t,r,n){e.Debug.assert(!!(1024&e.getCheckFlags(t)),"Expected a late-bound symbol."),t.flags|=n,Jr(r.symbol).lateSymbol=t,t.declarations?t.declarations.push(r):t.declarations=[r],67220415&n&&(t.valueDeclaration&&t.valueDeclaration.kind===r.kind||(t.valueDeclaration=r))}(u,i,c),u.parent?e.Debug.assert(u.parent===t,"Existing symbol parent should match new one"):u.parent=t,a.resolvedSymbol=u}}return a.resolvedSymbol}function Oa(t,r){var n=Jr(t);if(!n[r]){var i="resolvedExports"===r,a=i?1536&t.flags?An(t):t.exports:t.members;n[r]=a||T;for(var o=e.createSymbolTable(),s=0,c=t.declarations;s<c.length;s++){var u=c[s],l=e.getMembersOfDeclaration(u);if(l)for(var d=0,_=l;d<_.length;d++){var f=_[d];i===e.hasStaticModifier(f)&&Pa(f)&&Ma(t,a,o,f)}}n[r]=function(t,r){if(!e.hasEntries(t))return r;if(!e.hasEntries(r))return t;var n=e.createSymbolTable();return jr(n,t),jr(n,r),n}(a,o)||T}return n[r]}function La(e){return 6240&e.flags?Oa(e,"resolvedMembers"):e.members||T}function Ra(t){if(106500&t.flags&&"__computed"===t.escapedName){var r=Jr(t);return!r.lateSymbol&&e.some(t.declarations,Pa)&&(e.some(t.declarations,e.hasStaticModifier)?Tn(t.parent):La(t.parent)),r.lateSymbol||(r.lateSymbol=t)}return t}function Ba(t,r,n){if(4&e.getObjectFlags(t)){var i=t.target,a=t.typeArguments;if(e.length(i.typeParameters)===e.length(a)){var o=vs(i,e.concatenate(a,[r||i.thisType]));return n?Co(o):o}}else if(2097152&t.flags)return xc(e.map(t.types,function(e){return Ba(e,r,n)}));return n?Co(t):t}function ja(t,r,n,i){var a,o,s,c,u,l;e.rangeEquals(n,i,0,n.length)?(a=E,o=r.symbol?La(r.symbol):e.createSymbolTable(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,u=r.declaredStringIndexInfo,l=r.declaredNumberIndexInfo):(a=fu(n,i),o=Ca(r.declaredProperties,a,1===n.length),s=du(r.declaredCallSignatures,a),c=du(r.declaredConstructSignatures,a),u=Au(r.declaredStringIndexInfo,a),l=Au(r.declaredNumberIndexInfo,a));var d=la(r);if(d.length){r.symbol&&o===La(r.symbol)&&(o=e.createSymbolTable(r.declaredProperties)),Kn(t,o,s,c,u,l);for(var _=e.lastOrUndefined(i),f=0,p=d;f<p.length;f++){var m=p[f],g=_?Ba(Eu(m,a),_):m;Ta(o,_o(g)),s=e.concatenate(s,Po(g,0)),c=e.concatenate(c,Po(g,1)),u||(u=g===ne?fs(ne,!1):Mo(g,0)),l=l||Mo(g,1)}}Kn(t,o,s,c,u,l)}function za(e,t,r,n,i,a,o,s,c){var u=new b(W);return u.declaration=e,u.typeParameters=t,u.parameters=n,u.thisParameter=r,u.resolvedReturnType=i,u.resolvedTypePredicate=a,u.minArgumentCount=o,u.hasRestParameter=s,u.hasLiteralTypes=c,u.target=void 0,u.mapper=void 0,u}function Ja(e){return za(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes)}function Ua(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(xl(s,t,r,n,i,r?Bu:Lu))return s}}function qa(t,r,n){if(r.typeParameters){if(n>0)return;for(var i=1;i<t.length;i++)if(!Ua(t[i],r,!1,!1,!1))return;return[r]}var a;for(i=0;i<t.length;i++){var o=i===n?r:Ua(t[i],r,!0,!0,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function Ka(t){for(var r,n=0;n<t.length;n++)for(var i=0,a=t[n];i<a.length;i++){var o=a[i];if(!r||!Ua(r,o,!1,!0,!0)){var s=qa(t,o,n);if(s){var c=o;if(s.length>1){var u=o.thisParameter;if(e.forEach(s,function(e){return e.thisParameter})){var l=mc(e.map(s,function(e){return e.thisParameter?Qi(e.thisParameter):ne}),2);u=Gl(o.thisParameter,l)}(c=Ja(o)).thisParameter=u,c.unionSignatures=s}(r||(r=[])).push(c)}}}return r||e.emptyArray}function Va(e,t){for(var r=[],n=!1,i=0,a=e;i<a.length;i++){var o=Mo(a[i],t);if(!o)return;r.push(o.type),n=n||o.isReadonly}return fs(mc(r,2),n)}function Wa(e,t){return e?t?xc([e,t]):e:t}function Ha(e,t){return e?t?fs(xc([e.type,t.type]),e.isReadonly&&t.isReadonly):e:t}function Ga(e,t){return e&&t&&fs(mc([e.type,t.type]),e.isReadonly||t.isReadonly)}function Xa(t){for(var r,n,i=e.emptyArray,a=e.emptyArray,o=t.types,s=e.countWhere(o,ia),c=function(c){var u=t.types[c];if(0===s||s===o.length&&0===c||!ia(u)){var l=Po(u,1);l.length&&s>0&&(l=e.map(l,function(e){var t=Ja(e);return t.resolvedReturnType=function(e,t,r){for(var n=[],i=0;i<t.length;i++)i===r?n.push(e):ia(t[i])&&n.push(es(Po(t[i],1)[0]));return xc(n)}(es(e),o,c),t})),a=e.concatenate(a,l)}i=e.concatenate(i,Po(u,0)),r=Ha(r,Mo(u,0)),n=Ha(n,Mo(u,1))},u=0;u<o.length;u++)c(u);Kn(t,T,i,a,r,n)}function Qa(t){var r=t.symbol;if(t.target)Kn(t,T,e.emptyArray,e.emptyArray,void 0,void 0),Kn(t,a=Ca(co(t.target),t.mapper,!1),n=du(Po(t.target,0),t.mapper),i=du(Po(t.target,1),t.mapper),o=Au(Mo(t.target,0),t.mapper),c=Au(Mo(t.target,1),t.mapper));else if(2048&r.flags){Kn(t,T,e.emptyArray,e.emptyArray,void 0,void 0);var n=Qo((a=La(r)).get("__call")),i=Qo(a.get("__new"));Kn(t,a,n,i,o=ps(r,0),c=ps(r,1))}else{var a=T,o=void 0;if(r.exports&&(a=Tn(r)),Kn(t,a,e.emptyArray,e.emptyArray,void 0,void 0),32&r.flags){var s=ua(u=_a(r));11272192&s.flags?Ta(a=e.createSymbolTable(qn(a)),_o(s)):s===ne&&(o=fs(ne,!1))}var c=384&r.flags?wt:void 0;if(Kn(t,a,e.emptyArray,e.emptyArray,o,c),8208&r.flags&&(t.callSignatures=Qo(r),t.constructSignatures=e.filter(t.callSignatures,function(e){return Up(e.declaration)})),32&r.flags){var u=_a(r);(i=Qo(r.members.get("__constructor"))).length||(i=function(t){var r=Po(ua(t),1);if(0===r.length)return[za(void 0,t.localTypeParameters,void 0,e.emptyArray,t,void 0,0,!1,!1)];for(var n=oa(t),i=e.isInJSFile(n),a=Os(n),o=e.length(a),s=[],c=0,u=r;c<u.length;c++){var l=u[c],d=Vo(l.typeParameters),_=e.length(l.typeParameters);if(i||o>=d&&o<=_){var f=_?as(l,Wo(a,l.typeParameters,d,i)):Ja(l);f.typeParameters=t.localTypeParameters,f.resolvedReturnType=t,s.push(f)}}return s}(u)),t.constructSignatures=i}}}function Ya(e){return e.typeParameter||(e.typeParameter=ya(Pn(e.declaration.typeParameter)))}function Za(e){return e.constraintType||(e.constraintType=po(Ya(e))||oe)}function $a(e){return e.templateType||(e.templateType=e.declaration.type?Eu(Ni(cu(e.declaration.type),!!(4&no(e))),e.mapper||E):oe)}function eo(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function to(e){var t=eo(e);return 179===t.kind&&129===t.operator}function ro(e){if(!e.modifiersType)if(to(e))e.modifiersType=Eu(cu(eo(e).type),e.mapper||E);else{var t=Za(Bc(e.declaration)),r=t&&262144&t.flags?po(t):t;e.modifiersType=r&&4194304&r.flags?Eu(r.type,e.mapper||E):Ae}return e.modifiersType}function no(e){var t=e.declaration;return(t.readonlyToken?39===t.readonlyToken.kind?2:1:0)|(t.questionToken?39===t.questionToken.kind?8:4:0)}function io(e){var t=no(e);return 8&t?-1:4&t?1:0}function ao(e){var t=io(e),r=ro(e);return t||(oo(r)?io(r):0)}function oo(t){return!!(32&e.getObjectFlags(t))&&Fc(Za(t))}function so(t){return t.members||(524288&t.flags?4&t.objectFlags?function(t){var r=Ea(t.target),n=e.concatenate(r.typeParameters,[r.thisType]);ja(t,r,n,t.typeArguments&&t.typeArguments.length===n.length?t.typeArguments:e.concatenate(t.typeArguments,[t]))}(t):3&t.objectFlags?function(t){ja(t,Ea(t),e.emptyArray,e.emptyArray)}(t):2048&t.objectFlags?function(t){for(var r=Mo(t.source,0),n=no(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r&&fs(dd(r.type,t.mappedType,t.constraintType),i&&r.isReadonly),s=e.createSymbolTable(),c=0,u=_o(t.source);c<u.length;c++){var l=u[c],d=2048|(i&&Em(l)?8:0),_=Pr(4|l.flags&a,l.escapedName,d);_.declarations=l.declarations,_.nameType=l.nameType,_.propertyType=Qi(l),_.mappedType=t.mappedType,_.constraintType=t.constraintType,s.set(l.escapedName,_)}Kn(t,s,e.emptyArray,e.emptyArray,o,void 0)}(t):16&t.objectFlags?Qa(t):32&t.objectFlags&&function(t){var r,n,i=e.createSymbolTable();Kn(t,T,e.emptyArray,e.emptyArray,void 0,void 0);var a=Ya(t),o=Za(t),s=$a(t.target||t),c=Co(ro(t)),u=no(t),l=B?128:8576;if(to(t)){for(var d=0,_=_o(c);d<_.length;d++)f(kc(_[d],l));(1&c.flags||Mo(c,0))&&f(_e),!B&&Mo(c,1)&&f(fe)}else r_(4194304&o.flags?Tc(Co(o.type)):o,f);function f(e){var o=mu(t.mapper,fu([a],[e])),l=Eu(s,o);if(8576&e.flags){var d=Ia(e),_=Ao(c,d),f=!!(4&u||!(8&u)&&_&&16777216&_.flags),p=Pr(4|(f?16777216:0),d,1&u||!(2&u)&&_&&Em(_)?8:0);p.type=F&&f&&!zu(ce,l)?Vl(l):F&&!f&&_&&16777216&_.flags?zd(l,524288):l,_&&(p.syntheticOrigin=_,p.declarations=_.declarations),p.nameType=e,i.set(d,p)}else 5&e.flags?r=fs(l,!!(1&u)):8&e.flags&&(n=fs(l,!!(1&u)))}Kn(t,i,e.emptyArray,e.emptyArray,r,n)}(t):1048576&t.flags?function(t){var r=Ka(e.map(t.types,function(e){return Po(e,0)})),n=Ka(e.map(t.types,function(e){return Po(e,1)})),i=Va(t.types,0),a=Va(t.types,1);Kn(t,T,r,n,i,a)}(t):2097152&t.flags&&Xa(t)),t}function co(t){return 524288&t.flags?so(t).properties:e.emptyArray}function uo(e,t){if(524288&e.flags){var r=so(e).members.get(t);if(r&&Ln(r))return r}}function lo(t){if(!t.resolvedProperties){for(var r=e.createSymbolTable(),n=0,i=t.types;n<i.length;n++){for(var a=0,o=_o(i[n]);a<o.length;a++){var s=o[a];if(!r.has(s.escapedName)){var c=No(t,s.escapedName);c&&r.set(s.escapedName,c)}}if(1048576&t.flags)break}t.resolvedProperties=qn(r)}return t.resolvedProperties}function _o(e){return 3145728&(e=Co(e)).flags?lo(e):co(e)}function fo(e){return 262144&e.flags?po(e):8388608&e.flags?function(e){var t=fo(e.objectType)||e.objectType;if(t!==e.objectType){var r=Lc(t,e.indexType,void 0,oe);if(r&&r!==oe)return r}var n=yo(e);return n&&n!==e?n:void 0}(e):16777216&e.flags?ho(e):yo(e)}function po(e){return bo(e)?ms(e):void 0}function mo(e){if(!e.resolvedDefaultConstraint){var t=e.root.trueType,r=33554432&t.flags?3&t.substitute.flags?t.typeVariable:xc([t.substitute,t.typeVariable]):t;e.resolvedDefaultConstraint=mc([Eu(r,e.combinedMapper||e.mapper),Uc(e)])}return e.resolvedDefaultConstraint}function go(e){if(e.root.isDistributive){var t=Ic(e.checkType),r=t===e.checkType?fo(t):t;if(r){var n=Tu(e,mu(_u(e.root.checkType,r),e.mapper));if(!(131072&n.flags))return n}}}function ho(e){return go(e)||mo(e)}function yo(e){if(62128128&e.flags){var t=xo(e);return t!==Oe&&t!==Le?t:void 0}return 4194304&e.flags?Ee:void 0}function vo(e){return yo(e)||e}function bo(e){return xo(e)!==Le}function xo(e){var t=!1;return e.resolvedBaseConstraint||(e.resolvedBaseConstraint=Ba(r(e),e));function r(e){if(!e.immediateBaseConstraint){if(!mi(e,4))return Le;if(50===C)return t=!0,e.immediateBaseConstraint=Oe;C++;var r=function(e){if(262144&e.flags){var t=ms(e);return e.isThisType||!t?t:n(t)}if(3145728&e.flags){for(var r=e.types,i=[],a=0,o=r;a<o.length;a++){var s=o[a],c=n(s);c&&i.push(c)}return 1048576&e.flags&&i.length===r.length?mc(i):2097152&e.flags&&i.length?xc(i):void 0}if(4194304&e.flags)return Ee;if(8388608&e.flags){var u=n(e.objectType),l=n(e.indexType),d=u&&l?Lc(u,l,void 0,oe):void 0;return d&&d!==oe?n(d):void 0}if(16777216&e.flags){var t=ho(e);return t&&n(t)}return 33554432&e.flags?n(e.substitute):e}(Ic(e));C--,yi()&&!t||(r=Le),e.immediateBaseConstraint=r||Oe}return e.immediateBaseConstraint}function n(e){var t=r(e);return t!==Oe&&t!==Le?t:void 0}}function So(t){if(t.default)t.default===Re&&(t.default=Le);else if(t.target){var r=So(t.target);t.default=r?Eu(r,t.mapper):Oe}else{t.default=Re;var n=t.symbol&&e.forEach(t.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default}),i=n?cu(n):Oe;t.default===Re&&(t.default=i)}return t.default}function Do(e){var t=So(e);return t!==Oe&&t!==Le?t:void 0}function ko(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t=Du(e);if(t){var r=po(t);if(r&&(Dl(r)||kl(r)||Ll(r))){var n=_u(t,r);return Eu(e,mu(n,e.mapper))}}return e}(e))}function Co(t){var r,n=63176704&t.flags?yo(t)||Ae:t;return 32&e.getObjectFlags(n)?ko(n):2097152&n.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=Ba(e,e,!0))}(n):132&n.flags?Xe:296&n.flags?Qe:2112&n.flags?(r=A>=6,St||(St=zs("BigInt",0,r))||Ae):528&n.flags?Ye:12288&n.flags?Us(A>=2):67108864&n.flags?Ae:4194304&n.flags?Ee:n}function To(t,r){for(var n,i,a=1048576&t.flags,o=a?24:0,s=a?0:16777216,c=4,u=0,l=0,d=t.types;l<d.length;l++)if((k=Co(d[l]))!==oe){var _=(D=Ao(k,r))?e.getDeclarationModifierFlagsFromSymbol(D):0;if(!D||_&o){if(a){var f=!wa(r)&&(gf(r)&&Mo(k,1)||Mo(k,0));f?(u|=f.isReadonly?8:0,i=e.append(i,Ll(k)?Rl(k)||ce:f.type)):u|=16}}else s&=D.flags,n=e.appendIfUnique(n,D),u|=(Em(D)?8:0)|(24&_?0:64)|(16&_?128:0)|(8&_?256:0)|(32&_?512:0),zf(D)||(c=2)}if(n){if(!(1!==n.length||16&u||i))return n[0];for(var p,m,g,h,y=[],v=!0,b=!1,x=0,S=n;x<S.length;x++){var D=S[x];h?D.valueDeclaration!==h&&(b=!0):h=D.valueDeclaration,p=e.addRange(p,D.declarations);var k=Qi(D);v?(m=k,g=D.nameType,v=!1):k!==m&&(u|=32),y.push(k)}e.addRange(y,i);var C=Pr(4|s,r,c|u);return C.containingType=t,!b&&h&&(C.valueDeclaration=h),C.declarations=p,C.nameType=g,C.type=a?mc(y):xc(y),C}}function Eo(t,r){var n=t.propertyCache||(t.propertyCache=e.createSymbolTable()),i=n.get(r);return i||(i=To(t,r))&&n.set(r,i),i}function No(t,r){var n=Eo(t,r);return!n||16&e.getCheckFlags(n)?void 0:n}function Ao(e,t){if(524288&(e=Co(e)).flags){var r=so(e),n=r.members.get(t);if(n&&Ln(n))return n;var i=r===Me?Ke:r.callSignatures.length?Ve:r.constructSignatures.length?We:void 0;if(i){var a=uo(i,t);if(a)return a}return uo(qe,t)}if(3145728&e.flags)return No(e,t)}function wo(t,r){if(3670016&t.flags){var n=so(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function Po(e,t){return wo(Co(e),t)}function Fo(e,t){if(3670016&e.flags){var r=so(e);return 0===t?r.stringIndexInfo:r.numberIndexInfo}}function Io(e,t){var r=Fo(e,t);return r&&r.type}function Mo(e,t){return Fo(Co(e),t)}function Oo(e,t){return Io(Co(e),t)}function Lo(e,t){if(Hl(e)){for(var r=[],n=0,i=_o(e);n<i.length;n++){var a=i[n];(0===t||gf(a.escapedName))&&r.push(Qi(a))}if(r.length)return mc(r,2)}}function Ro(t){for(var r,n=0,i=e.getEffectiveTypeParameterDeclarations(t);n<i.length;n++){var a=i[n];r=e.appendIfUnique(r,ya(a.symbol))}return r}function Bo(e){var t=[];return e.forEach(function(e,r){Un(r)||t.push(e)}),t}function jo(t){return e.isInJSFile(t)&&(t.type&&288===t.type.kind||e.getJSDocParameterTags(t).some(function(e){var t=e.isBracketed,r=e.typeExpression;return t||!!r&&288===r.type.kind}))}function zo(t,r){if(!e.isExternalModuleNameRelative(t)){var n=Kr(Pt,'"'+t+'"',512);return n&&r?wn(n):n}}function Jo(t){if(e.hasQuestionToken(t)||Uo(t)||jo(t))return!0;if(t.initializer){var r=Ho(t.parent),n=t.parent.parameters.indexOf(t);return e.Debug.assert(n>=0),n>=sm(r)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function Uo(t){if(!e.isJSDocParameterTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&288===n.type.kind}function qo(e,t,r){return{kind:1,parameterName:e,parameterIndex:t,type:r}}function Ko(e){return{kind:0,type:e}}function Vo(t){var r,n=0;if(t)for(var i=0;i<t.length;i++)(r=t[i]).symbol&&e.forEach(r.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default})||(n=i+1);return n}function Wo(t,r,n,i){var a=e.length(r);if(!a)return[];var o=e.length(t);if(i||o>=n&&o<=a){for(var s=t?t.slice():[],c=Dd(i),u=fu(r,e.map(r,function(){return c})),l=o;l<a;l++)s[l]=Eu(ms(r[l])||c,u);for(l=o;l<a;l++){var d=fu(r,s),_=Do(r[l]);i&&_&&Ou(_,Ae)&&(_=ne),s[l]=_?Eu(_,d):c}return s.length=r.length,s}return t&&t.slice()}function Ho(t){var r,n=Ur(t);if(!n.resolvedSignature){for(var i=[],a=!1,o=0,s=void 0,c=!1,u=e.getImmediatelyInvokedFunctionExpression(t),l=e.isJSDocConstructSignature(t),d=!u&&e.isInJSFile(t)&&e.isValueSignatureDeclaration(t)&&!e.hasJSDocParameterTags(t)&&!e.getJSDocType(t),_=l?1:0;_<t.parameters.length;_++){var f=t.parameters[_],p=f.symbol,m=e.isJSDocParameterTag(f)?f.typeExpression&&f.typeExpression.type:f.type;p&&4&p.flags&&!e.isBindingPattern(f.name)&&(p=Wr(f,p.escapedName,67220415,void 0,void 0,!1)),0===_&&"this"===p.escapedName?(c=!0,s=f.symbol):i.push(p),m&&182===m.kind&&(a=!0),Uo(f)||f.initializer||f.questionToken||f.dotDotDotToken||u&&i.length>u.arguments.length&&!m||d||jo(f)||(o=i.length)}if(!(158!==t.kind&&159!==t.kind||Fa(t)||c&&s)){var g=158===t.kind?159:158,h=e.getDeclarationOfKind(Pn(t),g);h&&(s=(r=nv(h))&&r.symbol)}var y=157===t.kind?_a(wn(t.parent.symbol)):void 0,v=y?y.localTypeParameters:Ro(t),b=e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!Xo(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0}),o=Pr(3,"args",8192);return o.type=a?nc(cu(a.type)):et,a&&r.pop(),r.push(o),!0}(t,i);n.resolvedSignature=za(t,v,s,i,void 0,void 0,o,b,a)}return n.resolvedSignature}function Go(t){var r=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0,n=r&&r.typeExpression&&mp(cu(r.typeExpression));return n&&ss(n)}function Xo(t){var r=Ur(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 72:return"arguments"===r.escapedText&&e.isExpressionNode(r);case 154:case 156:case 158:case 159:return 149===r.name.kind&&t(r.name);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function Qo(t){if(!t)return e.emptyArray;for(var r=[],n=0;n<t.declarations.length;n++){var i=t.declarations[n];if(e.isFunctionLike(i)){if(n>0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(Ho(i))}}return r}function Yo(e){if(e.thisParameter)return Qi(e.thisParameter)}function Zo(e){return void 0!==$o(e)}function $o(t){if(!t.resolvedTypePredicate){if(t.target){var r=$o(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,e.isIdentifierTypePredicate(o)?{kind:1,parameterName:o.parameterName,parameterIndex:o.parameterIndex,type:Eu(o.type,s)}:{kind:0,type:Eu(o.type,s)}):Ct}else if(t.unionSignatures)t.resolvedTypePredicate=function(t){for(var r,n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=$o(o);if(s){if(r){if(!gc(r,s))return}else r=s;n.push(s.type)}}if(r){var c=mc(n);return e.isIdentifierTypePredicate(r)?qo(r.parameterName,r.parameterIndex,c):Ko(c)}}(t.unionSignatures)||Ct;else{var n=t.declaration&&e.getEffectiveReturnTypeNode(t.declaration),i=void 0;if(!n&&e.isInJSFile(t.declaration)){var a=Go(t.declaration);a&&t!==a&&(i=$o(a))}t.resolvedTypePredicate=n&&e.isTypePredicateNode(n)?function(e,t){var r=e.parameterName,n=cu(e.type);return 72===r.kind?qo(r.escapedText,function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(72===n.name.kind&&n.name.escapedText===t.escapedText)return r}return-1}(t.parameters,r),n):Ko(n)}(n,t.declaration):i||Ct}e.Debug.assert(!!t.resolvedTypePredicate)}var o,s;return t.resolvedTypePredicate===Ct?void 0:t.resolvedTypePredicate}function es(t){if(!t.resolvedReturnType){if(!mi(t,3))return oe;var r=t.target?Eu(es(t.target),t.mapper):t.unionSignatures?mc(e.map(t.unionSignatures,es),2):ts(t.declaration)||Up(t.declaration)&&Kp(Pn(t.declaration))||(e.nodeIsMissing(t.declaration.body)?ne:hm(t.declaration));if(!yi()){if(t.declaration){var n=e.getEffectiveReturnTypeNode(t.declaration);if(n)Ar(n,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(L){var i=t.declaration,a=e.getNameOfDeclaration(i);a?Ar(a,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(a)):Ar(i,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)}}r=ne}t.resolvedReturnType=r}return t.resolvedReturnType}function ts(t){if(157===t.kind)return _a(wn(t.parent.symbol));if(e.isJSDocConstructSignature(t))return cu(t.parameters[0].type);var r,n=e.getEffectiveReturnTypeNode(t);if(n)return cu(n);if(158===t.kind&&!Fa(t)){var i=e.isInJSFile(t)&&Ti(t);if(i)return i;var a=qi(e.getDeclarationOfKind(Pn(t),159));if(a)return a}return(r=Go(t))&&es(r)}function rs(e){if(e.hasRestParameter){var t=Qi(e.parameters[e.parameters.length-1]),r=Ll(t)?Rl(t):t;return r&&Oo(r,1)}}function ns(e,t,r){return is(e,Wo(t,e.typeParameters,Vo(e.typeParameters),r))}function is(t,r){var n=t.instantiations||(t.instantiations=e.createMap()),i=hs(r),a=n.get(i);return a||n.set(i,a=as(t,r)),a}function as(e,t){return vu(e,os(e,t),!0)}function os(e,t){return fu(e.typeParameters,t)}function ss(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return vu(e,pu(e.typeParameters),!0)}(e)):e}function cs(t){return t.typeParameters?t.canonicalSignatureCache||(t.canonicalSignatureCache=function(t){return ns(t,e.map(t.typeParameters,function(e){return e.target&&!po(e.target)?e.target:e}),e.isInJSFile(t.declaration))}(t)):t}function us(t){var r=t.typeParameters;if(r){var n=pu(r);return vu(t,fu(r,e.map(r,function(e){return Eu(yo(e),n)||Ae})),!0)}return t}function ls(t){if(!t.isolatedSignatureType){var r=157===t.declaration.kind||161===t.declaration.kind,n=Jn(16);n.members=T,n.properties=e.emptyArray,n.callSignatures=r?e.emptyArray:[t],n.constructSignatures=r?[t]:e.emptyArray,t.isolatedSignatureType=n}return t.isolatedSignatureType}function ds(e){return e.members.get("__index")}function _s(t,r){var n=1===r?135:138,i=ds(t);if(i)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.cast(s,e.isIndexSignatureDeclaration);if(1===c.parameters.length){var u=c.parameters[0];if(u.type&&u.type.kind===n)return c}}}function fs(e,t,r){return{type:e,isReadonly:t,declaration:r}}function ps(t,r){var n=_s(t,r);if(n)return fs(n.type?cu(n.type):ne,e.hasModifier(n,64),n)}function ms(t){if(!t.constraint)if(t.target){var r=po(t.target);t.constraint=r?Eu(r,t.mapper):Oe}else{var n=(a=(i=t).symbol&&e.getDeclarationOfKind(i.symbol,150))&&e.getEffectiveConstraintOfTypeParameter(a);t.constraint=n?cu(n):function(t){var r;if(t.symbol)for(var n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n];if(176===a.parent.kind){var o=a.parent.parent;if(164===o.kind){var s=o,c=fg(s);if(c){var u=s.typeArguments.indexOf(a.parent);if(u<c.length){var l=po(c[u]);if(l){var d=Eu(l,fu(c,dg(s,c)));d!==t&&(r=e.append(r,d))}}}}else 151===o.kind&&o.dotDotDotToken&&(r=e.append(r,nc(se)))}}return r&&xc(r)}(t)||Oe}var i,a;return t.constraint===Oe?void 0:t.constraint}function gs(t){var r=e.getDeclarationOfKind(t.symbol,150),n=e.isJSDocTemplateTag(r.parent)?e.getHostSignatureFromJSDoc(r.parent):r.parent;return n&&Pn(n)}function hs(e){var t="";if(e)for(var r=e.length,n=0;n<r;){for(var i=e[n].id,a=1;n+a<r&&e[n+a].id===i+a;)a++;t.length&&(t+=","),t+=i,a>1&&(t+=":"+a),n+=a}return t}function ys(e,t){for(var r=0,n=0,i=e;n<i.length;n++){var a=i[n];a.flags&t||(r|=a.flags)}return 939524096&r}function vs(e,t){var r=hs(t),n=e.instantiations.get(r);return n||(n=Jn(4,e.symbol),e.instantiations.set(r,n),n.flags|=t?ys(t,0):0,n.target=e,n.typeArguments=t),n}function bs(e){var t=Bn(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.typeArguments=e.typeArguments,t}function xs(t){return e.length(t.target.typeParameters)}function Ss(t,r,n){var i=va(wn(r)),a=i.localTypeParameters;if(a){var o=e.length(t.typeArguments),s=Vo(a),c=e.isInJSFile(t);if((L||!c)&&(o<s||o>a.length)){var u=c&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Ar(t,s===a.length?u?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:u?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,oi(i,void 0,2),s,a.length),!c)return oe}return vs(i,e.concatenate(i.outerTypeParameters,Wo(n,a,s,c)))}return Is(t,r)?i:oe}function Ds(t,r){var n=va(t),i=Jr(t),a=i.typeParameters,o=hs(r),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=Eu(n,fu(a,Wo(r,a,Vo(a),e.isInJSFile(t.valueDeclaration))))),s}function ks(t){switch(t.kind){case 164:return t.typeName;case 211:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function Cs(e,t){return e&&mn(e,t)||te}function Ts(t,r){var n=Os(t);if(r===te)return oe;var i=Ns(t,r,n);if(i)return i;var a=e.isInJSFile(t)&&r.valueDeclaration&&e.getJSDocEnumTag(r.valueDeclaration);if(a){var o=Ur(a);if(!mi(a,5))return oe;var s=a.typeExpression?cu(a.typeExpression):oe;return yi()||(s=oe,Ar(t,e.Diagnostics.Enum_type_0_circularly_references_itself,ii(r))),o.resolvedEnumType=s}var c=ba(r);if(c)return Is(t,r)?262144&c.flags?Ps(c,t):nu(c):oe;if(!(67220415&r.flags&&Fs(t)))return oe;var u=Es(t,r,n);return u||(Cs(ks(t),67897832),Qi(r))}function Es(t,r,n){if(!mi(r,6))return oe;var i=Vp(r),a=Qi(r),o=a.symbol&&a.symbol!==r&&!Hp(a)&&Ns(t,a.symbol,n);if(!yi())return Jr(r).resolvedJSDocType=oe,Ar(t,e.Diagnostics.JSDoc_type_0_circularly_references_itself,ii(r)),oe;if(o||i){var s=o&&i?xc([i,o]):o||i;return Jr(r).resolvedJSDocType=s}}function Ns(t,r,n){if(96&r.flags){if(r.valueDeclaration&&e.isBinaryExpression(r.valueDeclaration.parent)){var i=Es(t,r,n);if(i)return i}return Ss(t,r,n)}return 524288&r.flags?function(t,r,n){var i=va(r),a=Jr(r).typeParameters;if(a){var o=e.length(t.typeArguments),s=Vo(a);return o<s||o>a.length?(Ar(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,ii(r),s,a.length),oe):Ds(r,n)}return Is(t,r)?i:oe}(t,r,n):16&r.flags&&Fs(t)&&(r.members||e.getJSDocClassTag(r.valueDeclaration))?Wp(r):void 0}function As(e){return 170===e.kind&&1===e.elementTypes.length}function ws(e,t,r){return As(t)&&As(r)?ws(e,t.elementTypes[0],r.elementTypes[0]):jc(cu(t))===e?cu(r):void 0}function Ps(t,r){for(var n;r&&!e.isStatement(r)&&291!==r.kind;){var i=r.parent;if(175===i.kind&&r===i.trueType){var a=ws(t,i.checkType,i.extendsType);a&&(n=e.append(n,a))}r=i}return n?function(e,t){var r=Bn(33554432);return r.typeVariable=e,r.substitute=t,r}(t,xc(e.append(n,t))):t}function Fs(e){return!!(2097152&e.flags)&&(164===e.kind||183===e.kind)}function Is(t,r){return!t.typeArguments||(Ar(t,e.Diagnostics.Type_0_is_not_generic,r?ii(r):t.typeName?e.declarationNameToString(t.typeName):"(anonymous)"),!1)}function Ms(t){var r=Ur(t);if(!r.resolvedType){var n=void 0,i=void 0,a=67897832;Fs(t)&&(i=function(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return Is(t),_e;case"Number":return Is(t),fe;case"Boolean":return Is(t),ve;case"Void":return Is(t),xe;case"Undefined":return Is(t),ce;case"Null":return Is(t),le;case"Function":case"function":return Is(t),Ke;case"Array":case"array":return r&&r.length?void 0:et;case"Promise":case"promise":return r&&r.length?void 0:pm(ne);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=cu(r[0]),i=fs(cu(r[1]),!1);return Vn(void 0,T,e.emptyArray,e.emptyArray,n===_e?i:void 0,n===fe?i:void 0)}return ne}return Is(t),ne}}}(t),a|=67220415),i||(i=Ts(t,n=Cs(ks(t),a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function Os(t){return e.map(t.typeArguments,cu)}function Ls(e){var t=Ur(e);return t.resolvedType||(t.resolvedType=nu(ed(eg(e.exprName)))),t.resolvedType}function Rs(t,r){function n(e){for(var t=0,r=e.declarations;t<r.length;t++){var n=r[t];switch(n.kind){case 240:case 241:case 243:return n}}}if(!t)return r?Ie:Ae;var i=va(t);return 524288&i.flags?e.length(i.typeParameters)!==r?(Ar(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),r),r?Ie:Ae):i:(Ar(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t)),r?Ie:Ae)}function Bs(t,r){return js(t,67220415,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function js(e,t,r){return Wr(void 0,e,t,r,e,!1)}function zs(t,r,n){var i=function(t,r){return js(t,67897832,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}(t,n);return i||n?Rs(i,r):void 0}function Js(e){return it||(it=Bs("Symbol",e))}function Us(e){return at||(at=zs("Symbol",0,e))||Ae}function qs(e){return st||(st=zs("Promise",1,e))||Ie}function Ks(e){return ut||(ut=Bs("Promise",e))}function Vs(e){return pt||(pt=zs("AsyncIterable",1,e))||Ie}function Ws(e){return mt||(mt=zs("AsyncIterator",1,e))||Ie}function Hs(e){return gt||(gt=zs("AsyncIterableIterator",1,e))||Ie}function Gs(e){return dt||(dt=zs("Iterable",1,e))||Ie}function Xs(e){return _t||(_t=zs("Iterator",1,e))||Ie}function Qs(e){return ft||(ft=zs("IterableIterator",1,e))||Ie}function Ys(e,t){void 0===t&&(t=0);var r=js(e,67897832,void 0);return r&&Rs(r,t)}function Zs(e,t){return e!==Ie?vs(e,t):Ae}function $s(e){return Zs(ot||(ot=zs("TypedPropertyDescriptor",1,!0))||Ie,[e])}function ec(e){return Zs(Hs(!0),[e])}function tc(e){return Zs(Gs(!0),[e])}function rc(e){return Zs(Qs(!0),[e])}function nc(e){return Zs(He,[e])}function ic(e){return Zs(Ge,[e])}function ac(t,r,n,i){var a=t+(n?"+":",")+r+(i&&i.length?","+i.join(","):""),o=G.get(a);return o||G.set(a,o=function(t,r,n,i){var a,o=[],s=n?t-1:t;if(t){a=new Array(t);for(var c=0;c<t;c++){var u=a[c]=Bn(262144);if(c<s){var l=Pr(4|(c>=r?16777216:0),""+c);l.type=u,o.push(l)}}}var d=[];for(c=r;c<=s;c++)d.push(au(c));var _=Pr(4,"length");_.type=n?fe:mc(d),o.push(_);var f=Jn(12);return f.typeParameters=a,f.outerTypeParameters=void 0,f.localTypeParameters=a,f.instantiations=e.createMap(),f.instantiations.set(hs(f.typeParameters),f),f.target=f,f.typeArguments=f.typeParameters,f.thisType=Bn(262144),f.thisType.isThisType=!0,f.thisType.constraint=f,f.declaredProperties=o,f.declaredCallSignatures=e.emptyArray,f.declaredConstructSignatures=e.emptyArray,f.declaredStringIndexInfo=void 0,f.declaredNumberIndexInfo=void 0,f.minLength=r,f.hasRestElement=n,f.associatedNames=i,f}(t,r,n,i)),o}function oc(e,t,r,n){void 0===t&&(t=e.length),void 0===r&&(r=!1);var i=e.length;if(1===i&&r)return nc(e[0]);var a=ac(i,t,i>0&&r,n);return e.length?vs(a,e):a}function sc(t,r){var n=t.target;return n.hasRestElement&&(r=Math.min(r,xs(t)-1)),oc((t.typeArguments||e.emptyArray).slice(r),Math.max(0,n.minLength-r),n.hasRestElement,n.associatedNames&&n.associatedNames.slice(r))}function cc(e){return e.id}function uc(t,r){return e.binarySearch(t,r,cc,e.compareValues)>=0}function lc(t,r){var n=e.binarySearch(t,r,cc,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function dc(t,r,n){var i=n.flags;if(1048576&i)return _c(t,r,n.types);if(!(131072&i||2097152&i&&function(e){for(var t=0,r=0,n=e.types;r<n.length;r++){var i=n[r];if(109440&i.flags&&109440&t)return!0;if(98304&(t|=i.flags)&&67633152&t||67108864&t&&130044&t||132&t&&67238776&t||296&t&&67238612&t||2112&t&&67236796&t||12288&t&&67226620&t||49152&t&&67189756&t)return!0}return!1}(n)))if(r|=-939524097&i,n===ae&&(r|=268435456),!F&&98304&i)134217728&i||(r|=134217728);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,cc,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function _c(e,t,r){for(var n=0,i=r;n<i.length;n++)t=dc(e,t,i[n]);return t}function fc(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];if(t!==a&&ju(t,a)&&(!(1&e.getObjectFlags(Zi(t)))||!(1&e.getObjectFlags(Zi(a)))||Ju(t,a)))return!0}return!1}function pc(t){if(0!==t.length&&!function(e){var t=e[0];if(1024&t.flags){for(var r=Fn(t.symbol),n=1;n<e.length;n++){var i=e[n];if(!(1024&i.flags)||r!==Fn(i.symbol))return!1}return!0}return!1}(t))for(var r=t.length;r>0;)fc(t[--r],t)&&e.orderedRemoveItemAt(t,r)}function mc(t,r,n,i){if(void 0===r&&(r=1),0===t.length)return Se;if(1===t.length)return t[0];var a=[],o=_c(a,0,t);if(0!==r){if(3&o)return 1&o?268435456&o?ae:ne:se;switch(r){case 1:8576&o|512&&function(t,r){for(var n=t.length;n>0;){var i=t[--n];(128&i.flags&&4&r||256&i.flags&&8&r||2048&i.flags&&64&r||8192&i.flags&&4096&r||iu(i)&&uc(t,i.regularType))&&e.orderedRemoveItemAt(t,n)}}(a,o);break;case 2:pc(a)}if(0===a.length)return 65536&o?134217728&o?le:de:32768&o?134217728&o?ce:ue:Se}return hc(a,!(66994211&o),n,i)}function gc(t,r){return e.isIdentifierTypePredicate(t)?e.isIdentifierTypePredicate(r)&&t.parameterIndex===r.parameterIndex:!e.isIdentifierTypePredicate(r)}function hc(e,t,r,n){if(0===e.length)return Se;if(1===e.length)return e[0];var i=hs(e),a=X.get(i);return a||(a=Bn(1048576|ys(e,98304)),X.set(i,a),a.types=e,a.primitiveTypesOnly=t,a.aliasSymbol=r,a.aliasTypeArguments=n),a}function yc(t,r,n){var i=n.flags;return 2097152&i?vc(t,r,n.types):(tl(n)?536870912&r||(r|=536870912,t.push(n)):(r|=-939524097&i,3&i?n===ae&&(r|=268435456):!F&&98304&i||e.contains(t,n)||t.push(n)),r)}function vc(e,t,r){for(var n=0,i=r;n<i.length;n++)t=yc(e,t,nu(i[n]));return t}function bc(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!uc(i.types,t)){var a=128&t.flags?_e:256&t.flags?fe:2048&t.flags?pe:8192&t.flags?be:void 0;if(!a||!uc(i.types,a))return!1}}return!0}function xc(t,r,n){var i=[],a=vc(i,0,t);if(131072&a)return Se;if(1&a)return 268435456&a?ae:ne;if(!F&&98304&a)return 32768&a?ce:le;if((4&a&&128&a||8&a&&256&a||64&a&&2048&a||4096&a&&8192&a)&&function(t,r){for(var n=t.length;n>0;){var i=t[--n];(4&i.flags&&128&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}}(i,a),536870912&a&&524288&a&&e.orderedRemoveItemAt(i,e.findIndex(i,tl)),0===i.length)return se;if(1===i.length)return i[0];if(1048576&a){if(function(t){var r,n=e.findIndex(t,function(e){return!!(1048576&e.flags)&&e.primitiveTypesOnly});if(n<0)return!1;for(var i=n+1;i<t.length;)1048576&(d=t[i]).flags&&d.primitiveTypesOnly?((r||(r=[t[n]])).push(d),e.orderedRemoveItemAt(t,i)):i++;if(!r)return!1;for(var a=[],o=[],s=0,c=r;s<c.length;s++)for(var u=0,l=c[s].types;u<l.length;u++){var d;lc(a,d=l[u])&&bc(r,d)&&lc(o,d)}return t[n]=hc(o,!0),!0}(i))return xc(i,r,n);var o=e.findIndex(i,function(e){return 0!=(1048576&e.flags)}),s=i[o];return mc(e.map(s.types,function(t){return xc(e.replaceElement(i,o,t))}),1,r,n)}var c=hs(i),u=Q.get(c);return u||(u=Bn(2097152|ys(i,98304)),Q.set(c,u),u.types=i,u.aliasSymbol=r,u.aliasTypeArguments=n),u}function Sc(e,t){var r=Bn(4194304);return r.type=e,r.stringsOnly=t,r}function Dc(t){return e.isIdentifier(t)?au(e.unescapeLeadingUnderscores(t.escapedText)):nu(e.isComputedPropertyName(t)?hf(t):eg(t))}function kc(t,r){if(!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var n=Ra(t).nameType;if(!n&&!e.isKnownSymbol(t))if("default"===t.escapedName)n=au("default");else{var i=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);n=i&&Dc(i)||au(e.symbolName(t))}if(n&&n.flags&r)return n}return Se}function Cc(t,r){return mc(e.map(_o(t),function(e){return kc(e,r)}))}function Tc(t,r){return void 0===r&&(r=B),1048576&t.flags?xc(e.map(t.types,function(e){return Tc(e,r)})):2097152&t.flags?mc(e.map(t.types,function(e){return Tc(e,r)})):Fm(t,58982400)?function(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Sc(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=Sc(e,!1))}(t,r):32&e.getObjectFlags(t)?Za(t):t===ae?ae:1&t.flags?Ee:r?Mo(t,0)?_e:Cc(t,128):Mo(t,0)?mc([_e,fe,Cc(t,8192)]):function(e){var t=Mo(e,1);return t!==wt?t:void 0}(t)?mc([fe,Cc(t,8320)]):Cc(t,8576)}function Ec(t){if(B)return t;var r=vt||(vt=js("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return r?Ds(r,[t,_e]):_e}function Nc(t){return!L&&(!!(16384&e.getObjectFlags(t))||(1048576&t.flags?e.every(t.types,Nc):2097152&t.flags?e.some(t.types,Nc):!!(63176704&t.flags)&&Nc(xo(t))))}function Ac(t,r,n,i,a){var o=n&&190===n.kind?n:void 0,s=Na(r)?Ia(r):o&&op(o.argumentExpression,r,!1)?e.getPropertyNameForKnownSymbolName(e.idText(o.argumentExpression.name)):n&&e.isPropertyName(n)?e.getPropertyNameForPropertyNameNode(n):void 0;if(void 0!==s){var c=Ao(t,s);if(c){if(o){if(rp(c,o,100===o.expression.kind),e.isAssignmentTarget(o)&&(Nm(o,c)||Am(o)))return Ar(o.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ii(c)),a;i&&(Ur(n).resolvedSymbol=c)}var u=Qi(c);return o&&1!==e.getAssignmentTargetKind(o)?v_(o,u):u}if(n_(t,Ll)&&gf(s)&&+s>=0)return n&&n_(t,function(e){return!e.target.hasRestElement})&&Ar(_=wc(n),e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(s),oi(t)),a_(t,function(e){return Rl(e)||ce})}if(!(98304&r.flags)&&Im(r,12716)){if(131073&t.flags)return t;var l=Im(r,296)&&Mo(t,1)||Mo(t,0)||void 0;if(l)return n&&!Im(r,12)?Ar(_=wc(n),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,oi(r)):o&&l.isReadonly&&(e.isAssignmentTarget(o)||e.isDeleteTarget(o))&&Ar(o,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,oi(t)),l.type;if(131072&r.flags)return Se;if(Nc(t))return ne;if(o&&!Om(t)){if(L&&!N.suppressImplicitAnyIndexErrors)if(void 0!==s&&Qf(s,t))Ar(o,e.Diagnostics.Property_0_is_a_static_member_of_type_1,s,oi(t));else if(Oo(t,1))Ar(o.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var d=void 0;void 0!==s&&(d=Zf(s,t))?void 0!==d&&Ar(o.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,oi(t),d):Ar(o,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,oi(t))}return a}}if(Nc(t))return ne;if(n){var _=wc(n);384&r.flags?Ar(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,oi(t)):12&r.flags?Ar(_,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,oi(t),oi(r)):Ar(_,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,oi(r))}return xi(r)?r:a}function wc(e){return 190===e.kind?e.argumentExpression:180===e.kind?e.indexType:149===e.kind?e.expression:e}function Pc(e){return Fm(e,193200128)}function Fc(e){return Fm(e,63176704)}function Ic(e){return 8388608&e.flags?function(e){if(e.simplified)return e.simplified===Le?e:e.simplified;e.simplified=Le;var t=Ic(e.objectType),r=Ic(e.indexType);if(1048576&r.flags)return e.simplified=a_(r,function(e){return Ic(Lc(t,e))});if(!(63176704&r.flags)){var n=Mc(t,r);if(n)return e.simplified=n}if(oo(t))return e.simplified=Oc(t,e);if(262144&t.flags){var i=po(t);if(i&&oo(i))return e.simplified=Oc(i,e)}return e.simplified=e}(e):e}function Mc(t,r){return 1048576&t.flags?a_(t,function(e){return Ic(Lc(e,r))}):2097152&t.flags?xc(e.map(t.types,function(e){return Ic(Lc(e,r))})):void 0}function Oc(e,t){var r=fu([Ya(e)],[t.indexType]),n=mu(e.mapper,r);return Eu($a(e),n)}function Lc(e,t,r,n){if(void 0===n&&(n=r?oe:se),e===ae||t===ae)return ae;if(Fc(t)||(!r||180===r.kind)&&Pc(e)){if(3&e.flags)return e;var i=e.id+","+t.id,a=Z.get(i);return a||Z.set(i,a=function(e,t){var r=Bn(8388608);return r.objectType=e,r.indexType=t,r}(e,t)),a}var o=Co(e);if(1048576&t.flags&&!(16&t.flags)){for(var s=[],c=!1,u=0,l=t.types;u<l.length;u++){var d=Ac(o,l[u],r,!1,n);if(d===n){if(!r)return n;c=!0}s.push(d)}return c?n:mc(s)}return Ac(o,t,r,!0,n)}function Rc(e){var t=Ur(e);if(!t.resolvedType){var r=cu(e.objectType),n=cu(e.indexType),i=Lc(r,n,e);t.resolvedType=8388608&i.flags&&i.objectType===r&&i.indexType===n?Ps(i,e):i}return t.resolvedType}function Bc(e){var t=Ur(e);if(!t.resolvedType){var r=Jn(32,e.symbol);r.declaration=e,r.aliasSymbol=Gc(e),r.aliasTypeArguments=Xc(r.aliasSymbol),t.resolvedType=r,Za(r)}return t.resolvedType}function jc(e){return 33554432&e.flags?e.typeVariable:e}function zc(e,t){var r=Eu(e.checkType,t),n=Eu(e.extendsType,t);if(r===ae||n===ae)return ae;var i,a=e.isDistributive&&Fm(r,63176704);if(e.inferTypeParameters){var o=ad(e.inferTypeParameters,void 0,0);a||gd(o.inferences,r,n,96),i=mu(t,o)}if(!a){if(3&n.flags)return Eu(e.trueType,t);if(1&r.flags)return mc([Eu(e.trueType,i||t),Eu(e.falseType,t)]);var s=i?Eu(e.extendsType,i):n;if(!zu(Nu(r),Nu(s)))return Eu(e.falseType,t);if(ol(r,s,xr,void 0))return Eu(e.trueType,i||t)}var c=jc(r),u=Bn(16777216);return u.root=e,u.checkType=c,u.extendsType=n,u.mapper=t,u.combinedMapper=i,u.aliasSymbol=e.aliasSymbol,u.aliasTypeArguments=lu(e.aliasTypeArguments,t),u}function Jc(e){return e.resolvedTrueType||(e.resolvedTrueType=Eu(e.root.trueType,e.mapper))}function Uc(e){return e.resolvedFalseType||(e.resolvedFalseType=Eu(e.root.falseType,e.mapper))}function qc(t){var r;return t.locals&&t.locals.forEach(function(t){262144&t.flags&&(r=e.append(r,va(t)))}),r}function Kc(t){var r=Ur(t);if(!r.resolvedType){var n=cu(t.checkType),i=Gc(t),a=Xc(i),o=ta(t,!0),s=a?o:e.filter(o,function(e){return function(e,t){if(Su(e,t))return!0;for(;t;){if(175===t.kind&&Su(e,t.extendsType))return!0;t=t.parent}return!1}(e,t)}),c={node:t,checkType:n,extendsType:cu(t.extendsType),trueType:cu(t.trueType),falseType:cu(t.falseType),isDistributive:!!(262144&n.flags),inferTypeParameters:qc(t),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=zc(c,void 0),s&&(c.instantiations=e.createMap(),c.instantiations.set(hs(s),r.resolvedType))}return r.resolvedType}function Vc(t){var r=Ur(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments)return Ar(t,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=te,r.resolvedType=oe;if(!e.isLiteralImportTypeNode(t))return Ar(t.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=te,r.resolvedType=oe;var n=t.isTypeOf?67220415:2097152&t.flags?68008959:67897832,i=hn(t,t.argument.literal);if(!i)return r.resolvedSymbol=te,r.resolvedType=oe;var a=xn(i,!1);if(e.nodeIsMissing(t.qualifier))a.flags&n?Wc(t,r,a,n):(Ar(t,67220415===n?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,t.argument.literal.text),r.resolvedSymbol=te,r.resolvedType=oe);else{for(var o=function t(r){return e.isIdentifier(r)?[r]:e.append(t(r.left),r.right)}(t.qualifier),s=a,c=void 0;c=o.shift();){var u=o.length?1920:n,l=Kr(Tn(wn(un(s))),c.escapedText,u);if(!l)return Ar(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,pn(s),e.declarationNameToString(c)),r.resolvedType=oe;Ur(c).resolvedSymbol=l,Ur(c.parent).resolvedSymbol=l,s=l}Wc(t,r,s,n)}}return r.resolvedType}function Wc(e,t,r,n){var i=un(r);return t.resolvedSymbol=i,t.resolvedType=67220415===n?Qi(r):Ts(e,i)}function Hc(t){var r=Ur(t);if(!r.resolvedType){var n=Gc(t);if(0!==La(t.symbol).size||n){var i=Jn(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=Xc(n),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=nc(i)),r.resolvedType=i}else r.resolvedType=Fe}return r.resolvedType}function Gc(t){return e.isTypeAlias(t.parent)?Pn(t.parent):void 0}function Xc(e){return e?na(e):void 0}function Qc(e){return!!(524288&e.flags)&&!oo(e)}function Yc(t,r,n,i,a){if(1&t.flags||1&r.flags)return ne;if(2&t.flags||2&r.flags)return se;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&t.flags)return a_(t,function(e){return Yc(e,r,n,i,a)});if(1048576&r.flags)return a_(r,function(e){return Yc(t,e,n,i,a)});if(71307260&r.flags)return t;if(Pc(t)||Pc(r)){if(el(t))return r;if(2097152&t.flags){var o=t.types,s=o[o.length-1];if(Qc(s)&&Qc(r))return xc(e.concatenate(o.slice(0,o.length-1),[Yc(s,r,n,i,a)]))}return xc([t,r])}var c,u,l=e.createSymbolTable(),d=e.createUnderscoreEscapedMap();t===Ae?(c=Mo(r,0),u=Mo(r,1)):(c=Ga(Mo(t,0),Mo(r,0)),u=Ga(Mo(t,1),Mo(r,1)));for(var _=0,f=_o(r);_<f.length;_++){var p=f[_];24&e.getDeclarationModifierFlagsFromSymbol(p)?d.set(p.escapedName,!0):Zc(p)&&l.set(p.escapedName,$c(p))}for(var m=0,g=_o(t);m<g.length;m++){var h=g[m];if(!d.has(h.escapedName)&&Zc(h))if(l.has(h.escapedName)){var y=Qi(p=l.get(h.escapedName));if(16777216&p.flags){var v=e.concatenate(h.declarations,p.declarations),b=Pr(4|16777216&h.flags,h.escapedName);b.type=mc([Qi(h),zd(y,524288)]),b.leftSpread=h,b.rightSpread=p,b.declarations=v,b.nameType=h.nameType,l.set(h.escapedName,b)}}else l.set(h.escapedName,$c(h))}var x=Vn(n,l,e.emptyArray,e.emptyArray,eu(c),eu(u));return x.flags|=268435456|i,x.objectFlags|=1152|a,x}function Zc(t){return!(106496&t.flags&&t.declarations.some(function(t){return e.isClassLike(t.parent)}))}function $c(e){var t=Em(e),r=65536&e.flags&&!(32768&e.flags);if(!t&&!r)return e;var n=Pr(4|16777216&e.flags,e.escapedName);return n.type=r?ce:Qi(e),n.declarations=e.declarations,n.nameType=e.nameType,n.syntheticOrigin=e,n}function eu(e){return e&&e.isReadonly?fs(e.type,!1,e.declaration):e}function tu(e,t,r){var n=Bn(e);return n.symbol=r,n.value=t,n}function ru(e){if(2944&e.flags){if(!e.freshType){var t=tu(e.flags,e.value,e.symbol);t.regularType=e,t.freshType=t,e.freshType=t}return e.freshType}return e}function nu(t){return 2944&t.flags?t.regularType:1048576&t.flags?mc(e.sameMap(t.types,nu)):t}function iu(e){return!!(2944&e.flags)&&e.freshType===e}function au(t,r,n){var i=(r||"")+("number"==typeof t?"#":"string"==typeof t?"@":"n")+("object"==typeof t?e.pseudoBigIntToString(t):t),a=Y.get(i);if(!a){var o=("number"==typeof t?256:"string"==typeof t?128:2048)|(r?1024:0);Y.set(i,a=tu(o,t,n)),a.regularType=a}return a}function ou(t){if(e.isValidESSymbolDeclaration(t)){var r=Pn(t),n=Jr(r);return n.uniqueESSymbolType||(n.uniqueESSymbolType=function(e){var t=Bn(8192);return t.symbol=e,t}(r))}return be}function su(t){var r=Ur(t);return r.resolvedType||(r.resolvedType=function(t){var r=e.getThisContainer(t,!1),n=r&&r.parent;return!n||!e.isClassLike(n)&&241!==n.kind||e.hasModifier(r,32)||157===r.kind&&!e.isNodeDescendantOf(t,r.body)?(Ar(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),oe):_a(Pn(n)).thisType}(t)),r.resolvedType}function cu(t){switch(t.kind){case 120:case 284:case 285:return ne;case 143:return se;case 138:return _e;case 135:return fe;case 146:return pe;case 123:return ve;case 139:return be;case 106:return xe;case 141:return ce;case 96:return le;case 132:return Se;case 136:return 65536&t.flags?ne:Ce;case 178:case 100:return su(t);case 182:return function(e){var t=Ur(e);return t.resolvedType||(t.resolvedType=nu(eg(e.literal))),t.resolvedType}(t);case 164:return Ms(t);case 163:return ve;case 211:return Ms(t);case 167:return Ls(t);case 169:return function(e){var t=Ur(e);return t.resolvedType||(t.resolvedType=nc(cu(e.elementType))),t.resolvedType}(t);case 170:return function(t){var r=Ur(t);if(!r.resolvedType){var n=e.lastOrUndefined(t.elementTypes),i=n&&172===n.kind?n:void 0,a=e.findLastIndex(t.elementTypes,function(e){return 171!==e.kind&&e!==i})+1,o=e.map(t.elementTypes,function(e){var t=cu(e);return e===i&&Oo(t,1)||t});r.resolvedType=oc(o,a,!!i)}return r.resolvedType}(t);case 171:return function(e){var t=cu(e.type);return F?Vl(t):t}(t);case 173:return function(t){var r=Ur(t);if(!r.resolvedType){var n=Gc(t);r.resolvedType=mc(e.map(t.types,cu),1,n,Xc(n))}return r.resolvedType}(t);case 174:return function(t){var r=Ur(t);if(!r.resolvedType){var n=Gc(t);r.resolvedType=xc(e.map(t.types,cu),n,Xc(n))}return r.resolvedType}(t);case 286:return function(e){var t=cu(e.type);return F?Kl(t,65536):t}(t);case 288:return Ni(cu(t.type));case 177:case 172:case 287:case 283:return cu(t.type);case 290:return function(t){var r=cu(t.type),n=t.parent,i=t.parent.parent;if(e.isJSDocTypeExpression(t.parent)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i);if(a){var o=e.lastOrUndefined(a.parameters),s=e.getParameterSymbolFromJSDoc(i);if(!o||s&&o.symbol===s&&e.isRestParameter(o))return nc(r)}}return e.isParameter(n)&&e.isJSDocFunctionType(n.parent)?nc(r):Ni(r)}(t);case 165:case 166:case 168:case 292:case 289:case 293:return Hc(t);case 179:return function(t){var r=Ur(t);if(!r.resolvedType)switch(t.operator){case 129:r.resolvedType=Tc(cu(t.type));break;case 142:r.resolvedType=139===t.type.kind?ou(e.walkUpParenthesizedTypes(t.parent)):oe}return r.resolvedType}(t);case 180:return Rc(t);case 181:return Bc(t);case 175:return Kc(t);case 176:return function(e){var t=Ur(e);return t.resolvedType||(t.resolvedType=ya(Pn(e.typeParameter))),t.resolvedType}(t);case 183:return Vc(t);case 72:case 148:var r=ny(t);return r?va(r):oe;default:return oe}}function uu(e,t,r){if(e&&e.length)for(var n=0;n<e.length;n++){var i=e[n],a=r(i,t);if(i!==a){var o=0===n?[]:e.slice(0,n);for(o.push(a),n++;n<e.length;n++)o.push(r(e[n],t));return o}}return e}function lu(e,t){return uu(e,t,Eu)}function du(e,t){return uu(e,t,vu)}function _u(e,t){return function(r){return r===e?t:r}}function fu(t,r){return e.Debug.assert(void 0===r||t.length===r.length),1===t.length?_u(t[0],r?r[0]:ne):2===t.length?(n=t[0],i=r?r[0]:ne,a=t[1],o=r?r[1]:ne,function(e){return e===n?i:e===a?o:e}):function(e,t){return function(r){for(var n=0;n<e.length;n++)if(r===e[n])return t?t[n]:ne;return r}}(t,r);var n,i,a,o}function pu(e){return fu(e,void 0)}function mu(e,t){return e?t?function(r){return Eu(e(r),t)}:e:t}function gu(e,t,r){return function(n){return n===e?t:r(n)}}function hu(e){return 262144&e.flags?ae:e}function yu(e){var t=Bn(262144);return t.symbol=e.symbol,t.target=e,t}function vu(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,yu),r=mu(fu(t.typeParameters,i),r);for(var a=0,o=i;a<o.length;a++)o[a].mapper=r}var s=za(t.declaration,i,t.thisParameter&&bu(t.thisParameter,r),uu(t.parameters,r,bu),void 0,void 0,t.minArgumentCount,t.hasRestParameter,t.hasLiteralTypes);return s.target=t,s.mapper=r,s}function bu(t,r){var n=Jr(t);if(n.type&&!Fm(n.type,63700992))return t;1&e.getCheckFlags(t)&&(t=n.target,r=mu(n.mapper,r));var i=Pr(t.flags,t.escapedName,1|13312&e.getCheckFlags(t));return i.declarations=t.declarations,i.parent=t.parent,i.target=t,i.mapper=r,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.nameType&&(i.nameType=t.nameType),i}function xu(t,r){var n=64&t.objectFlags?t.target:t,i=n.symbol,a=Jr(i),o=a.outerTypeParameters;if(!o){var s=i.declarations[0];if(e.isInJSFile(s)){var c=e.findAncestor(s,e.isJSDocParameterTag);if(c){var u=e.getParameterSymbolFromJSDoc(c);u&&(s=u.valueDeclaration)}}var l=ta(s,!0);if(Up(s)){var d=Ro(s);l=e.addRange(l,d)}o=l||e.emptyArray,o=2048&i.flags&&!n.aliasTypeArguments?e.filter(o,function(e){return Su(e,s)}):o,a.outerTypeParameters=o,o.length&&(a.instantiations=e.createMap(),a.instantiations.set(hs(o),n))}if(o.length){var _=64&t.objectFlags?mu(t.mapper,r):r,f=e.map(o,_),p=hs(f),m=a.instantiations.get(p);if(!m){var g=fu(o,f);m=32&n.objectFlags?function(t,r){var n=Du(t);if(n){var i=Eu(n,r);if(n!==i){if(t.instantiating)return oe;t.instantiating=!0;var a=a_(i,function(i){if(61603843&i.flags&&i!==ae){var a=gu(n,i,r);return Dl(i)?nc(ku(t,fe,!0,a)):kl(i)?ic(ku(t,fe,!0,a)):Ll(i)?function(t,r,n){var i=t.target.minLength,a=e.map(t.typeArguments||e.emptyArray,function(e,t){return ku(r,au(""+t),t>=i,n)}),o=no(r),s=4&o?0:8&o?xs(t)-(t.target.hasRestElement?1:0):i;return oc(a,s,t.target.hasRestElement,t.target.associatedNames)}(i,t,a):Cu(t,a)}return i});return t.instantiating=!1,a}}return Cu(t,r)}(n,g):Cu(n,g),a.instantiations.set(p,m)}return m}return t}function Su(t,r){if(t.symbol&&t.symbol.declarations&&1===t.symbol.declarations.length){var n=t.symbol.declarations[0].parent;if(e.findAncestor(r,function(e){return 218===e.kind?"quit":e===n}))return!!e.forEachChild(r,function r(n){switch(n.kind){case 178:return!!t.isThisType;case 72:return!t.isThisType&&e.isPartOfTypeNode(n)&&function(e){return!(148===e.kind||164===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName)}(n)&&cu(n)===t;case 167:return!0}return!!e.forEachChild(n,r)})}return!0}function Du(e){var t=Za(e);if(4194304&t.flags){var r=t.type;if(262144&r.flags)return r}}function ku(e,t,r,n){var i=mu(n,fu([Ya(e)],[t])),a=Eu($a(e.target||e),i),o=no(e);return F&&4&o&&!zu(ce,a)?Vl(a):F&&8&o&&r?zd(a,524288):a}function Cu(e,t){var r=Jn(64|e.objectFlags,e.symbol);if(32&e.objectFlags){r.declaration=e.declaration;var n=Ya(e),i=yu(n);r.typeParameter=i,t=mu(_u(n,i),t),i.mapper=t}return r.target=e,r.mapper=t,r.aliasSymbol=e.aliasSymbol,r.aliasTypeArguments=lu(e.aliasTypeArguments,t),r}function Tu(t,r){var n=t.root;if(n.outerTypeParameters){var i=e.map(n.outerTypeParameters,r),a=hs(i),o=n.instantiations.get(a);return o||(o=function(e,t){if(e.isDistributive){var r=e.checkType,n=t(r);if(r!==n&&1179648&n.flags)return a_(n,function(n){return zc(e,gu(r,n,t))})}return zc(e,t)}(n,fu(n.outerTypeParameters,i)),n.instantiations.set(a,o)),o}return t}function Eu(e,t){if(!e||!t||t===E)return e;if(50===k)return oe;k++;var r=function(e,t){var r=e.flags;if(262144&r)return t(e);if(524288&r){var n=e.objectFlags;if(16&n)return e.symbol&&14384&e.symbol.flags&&e.symbol.declarations?xu(e,t):e;if(32&n)return xu(e,t);if(4&n){var i=e.typeArguments,a=lu(i,t);return a!==i?vs(e.target,a):e}return e}if(1048576&r&&!(131068&r)){var o=e.types,s=lu(o,t);return s!==o?mc(s,1,e.aliasSymbol,lu(e.aliasTypeArguments,t)):e}if(2097152&r){var o=e.types,s=lu(o,t);return s!==o?xc(s,e.aliasSymbol,lu(e.aliasTypeArguments,t)):e}return 4194304&r?Tc(Eu(e.type,t)):8388608&r?Lc(Eu(e.objectType,t),Eu(e.indexType,t)):16777216&r?Tu(e,mu(e.mapper,t)):33554432&r?Eu(e.typeVariable,t):e}(e,t);return k--,r}function Nu(e){return 262143&e.flags?e:e.wildcardInstantiation||(e.wildcardInstantiation=Eu(e,hu))}function Au(e,t){return e&&fs(Eu(e.type,t),e.isReadonly,e.declaration)}function wu(t){switch(e.Debug.assert(156!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 196:case 197:case 156:return Pu(t);case 188:return e.some(t.properties,wu);case 187:return e.some(t.elements,wu);case 205:return wu(t.whenTrue)||wu(t.whenFalse);case 204:return 55===t.operatorToken.kind&&(wu(t.left)||wu(t.right));case 275:return wu(t.initializer);case 195:return wu(t.expression);case 268:return e.some(t.properties,wu)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,wu);case 267:var r=t.initializer;return!!r&&wu(r);case 270:var n=t.expression;return!!n&&wu(n)}return!1}function Pu(t){if(t.typeParameters)return!1;if(e.some(t.parameters,function(t){return!e.getEffectiveTypeAnnotationNode(t)}))return!0;if(197!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!e.parameterIsThisKeyword(r))return!0}return Fu(t)}function Fu(e){var t=e.body;return 218!==t.kind&&wu(t)}function Iu(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||sf(t)||e.isObjectLiteralMethod(t))&&Pu(t)}function Mu(t){if(524288&t.flags){var r=so(t);if(r.constructSignatures.length||r.callSignatures.length){var n=Jn(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n}}else if(2097152&t.flags)return xc(e.map(t.types,Mu));return t}function Ou(e,t){return il(e,t,Dr)}function Lu(e,t){return il(e,t,Dr)?-1:0}function Ru(e,t){return il(e,t,br)?-1:0}function Bu(e,t){return il(e,t,vr)?-1:0}function ju(e,t){return il(e,t,vr)}function zu(e,t){return il(e,t,br)}function Ju(t,r){return 1048576&t.flags?e.every(t.types,function(e){return Ju(e,r)}):1048576&r.flags?e.some(r.types,function(e){return Ju(t,e)}):58982400&t.flags?Ju(yo(t)||Ae,r):r===qe?!!(67633152&t.flags):r===Ke?!!(524288&t.flags)&&Bd(t):$i(t,Zi(r))}function Uu(e,t){return il(e,t,Sr)}function qu(e,t){return Uu(e,t)||Uu(t,e)}function Ku(e,t,r,n,i,a){return ol(e,t,br,r,n,i,a)}function Vu(e,t,r,n,i,a){return Wu(e,t,br,r,n,i,a)}function Wu(e,t,r,n,i,a,o){return!!il(e,t,r)||(!n||!Gu(i,e,t,r,a))&&ol(e,t,r,n,a,o)}function Hu(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,Hu))}function Gu(t,r,n,i,a){if(!t||Hu(n))return!1;if(!ol(r,n,i,void 0)&&function(t,r,n,i,a){for(var o=Po(r,0),s=Po(r,1),c=0,u=[s,o];c<u.length;c++){var l=u[c];if(e.some(l,function(e){var t=es(e);return!(131073&t.flags)&&ol(t,n,i,void 0)})){var d={};Ku(r,n,t,a,void 0,d);var _=d.error;return Nr(_,e.createDiagnosticForNode(t,l===s?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(t,r,n,i,a))return!0;switch(t.kind){case 270:case 195:return Gu(t.expression,r,n,i,a);case 204:switch(t.operatorToken.kind){case 59:case 27:return Gu(t.right,r,n,i,a)}break;case 188:return function(t,r,n,i){return Xu(function(t){var r,n,i,a;return c(this,function(o){switch(o.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,o.label=1;case 1:if(!(r<n.length))return[3,8];if(i=n[r],e.isSpreadAssignment(i))return[3,7];if(!(a=kc(Pn(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 159:case 158:case 156:case 276:return[3,2];case 275:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:void 0,nameType:a}];case 3:return o.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:a,errorMessage:Di(i.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return o.sent(),[3,7];case 6:e.Debug.assertNever(i),o.label=7;case 7:return r++,[3,1];case 8:return[2]}})}(t),r,n,i)}(t,r,n,i);case 187:return function(e,t,r,n){if(El(t))return Xu(Qu(e,r),t,r,n);var i=_f(e,3,!0);return!!El(i)&&Xu(Qu(e,r),i,r,n)}(t,r,n,i);case 268:return function(t,r,n,i){return Xu(function(t){var r,n,i;return c(this,function(a){switch(a.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,a.label=1;case 1:return r<n.length?(i=n[r],e.isJsxSpreadAttribute(i)?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:au(e.idText(i.name))}]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}})}(t),r,n,i)}(t,r,n,i);case 197:return function(t,r,n,i){if(e.isBlock(t.body))return!1;if(e.some(t.parameters,e.hasType))return!1;var a=mp(r);if(!a)return!1;var o=Po(n,0);if(!e.length(o))return!1;var s=t.body,c=es(a),u=mc(e.map(o,es));if(!ol(c,u,i,void 0)){var l=s&&Gu(s,c,u,i,void 0);if(l)return l;var d={};if(ol(c,u,i,s,void 0,void 0,d),d.error)return n.symbol&&e.length(n.symbol.declarations)&&Nr(d.error,e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),!0}return!1}(t,r,n,i)}return!1}function Xu(t,r,n,i){for(var a=!1,o=t.next();!o.done;o=t.next()){var s=o.value,c=s.errorNode,u=s.innerExpression,l=s.nameType,d=s.errorMessage,_=Lc(n,l,void 0,oe);if(!(_===oe||8388608&_.flags)){var f=Lc(r,l,void 0,oe);if(f!==oe&&_!==oe&&!ol(f,_,i,void 0))if(u&&Gu(u,f,_,i,void 0))a=!0;else{var p={},m=u?Gm(u,0,f):f;if(ol(m,_,i,c,d,void 0,p)&&m!==f&&ol(f,_,i,c,d,void 0,p),p.error){var g=p.error,h=Na(l)?Ia(l):void 0,y=void 0!==h?Ao(n,h):void 0,v=!1;if(!y){var b=Im(l,296)&&Mo(n,1)||Mo(n,0)||void 0;b&&b.declaration&&!e.getSourceFileOfNode(b.declaration).hasNoDefaultLib&&(v=!0,Nr(g,e.createDiagnosticForNode(b.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!v&&(y&&e.length(y.declarations)||n.symbol&&e.length(n.symbol.declarations))){var x=y&&e.length(y.declarations)?y.declarations[0]:n.symbol.declarations[0];e.getSourceFileOfNode(x).hasNoDefaultLib||Nr(g,e.createDiagnosticForNode(x,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!h||8192&l.flags?oi(l):e.unescapeLeadingUnderscores(h),oi(n)))}}a=!0}}}return a}function Qu(t,r){var n,i,a,o;return c(this,function(s){switch(s.label){case 0:if(!(n=e.length(t.elements)))return[2];i=0,s.label=1;case 1:return i<n?El(r)&&!Ao(r,""+i)?[3,3]:(a=t.elements[i],e.isOmittedExpression(a)?[3,3]:(o=au(i),[4,{errorNode:a,innerExpression:a,nameType:o}])):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}})}function Yu(e,t,r,n,i){return ol(e,t,Sr,r,n,i)}function Zu(t,r,n,i,a,o,s){if(t===r)return-1;var c=om(r);if(!cm(r)&&sm(t)>c)return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=gp(t,r=cs(r),void 0,s));var u=om(t),l=lm(t),d=lm(r);if(l&&d&&u!==c)return 0;var _=r.declaration?r.declaration.kind:0,f=!n&&I&&156!==_&&155!==_&&157!==_,p=-1,m=Yo(t);if(m&&m!==xe){var g=Yo(r);if(g){if(!(b=!f&&s(m,g,!1)||s(g,m,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;p&=b}}for(var h=l||d?Math.min(u,c):Math.max(u,c),y=l||d?h-1:-1,v=0;v<h;v++){var b,x=v===y?am(t,v):nm(t,v),S=v===y?am(r,v):nm(r,v),D=n?void 0:mp(Wl(x)),k=n?void 0:mp(Wl(S));if(!(b=D&&k&&!Zo(D)&&!Zo(k)&&(98304&Jl(x))==(98304&Jl(S))?Zu(k,D,f?2:1,!1,a,o,s):!n&&!f&&s(x,S,!1)||s(S,x,a)))return a&&o(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(rm(t,v)),e.unescapeLeadingUnderscores(rm(r,v))),0;p&=b}if(!i){var C=r.declaration&&Up(r.declaration)?Kp(r.declaration.symbol):es(r);if(C===xe)return p;var T=t.declaration&&Up(t.declaration)?Kp(t.declaration.symbol):es(t),E=$o(r);if(E){var N=$o(t);if(N)p&=function(t,r,n,i,a,o,s){if(t.kind!==r.kind)return a&&(o(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ci(t),ci(r))),0;if(1===t.kind){var c=r,u=t.parameterIndex-(e.getThisParameter(n)?1:0),l=c.parameterIndex-(e.getThisParameter(i)?1:0);if(u!==l)return a&&(o(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,t.parameterName,c.parameterName),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ci(t),ci(r))),0}var d=s(t.type,r.type,a);return 0===d&&a&&o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ci(t),ci(r)),d}(N,E,t.declaration,r.declaration,a,o,s);else if(e.isIdentifierTypePredicate(E))return a&&o(e.Diagnostics.Signature_0_must_be_a_type_predicate,ai(t)),0}else p&=1===n&&s(C,T,!1)||s(T,C,a)}return p}function $u(e,t){var r=ss(e),n=ss(t),i=es(r),a=es(n);return!(a!==xe&&!il(a,i,br)&&!il(i,a,br))&&0!==Zu(r,n,0,!0,!1,void 0,Ru)}function el(t){return 524288&t.flags?0===(r=so(t)).properties.length&&0===r.callSignatures.length&&0===r.constructSignatures.length&&!r.stringIndexInfo&&!r.numberIndexInfo:!!(67108864&t.flags)||(1048576&t.flags?e.some(t.types,el):!!(2097152&t.flags)&&e.every(t.types,el));var r}function tl(t){return!!(16&e.getObjectFlags(t))&&el(t)}function rl(t,r,n){if(t===r)return!0;var i=l(t)+","+l(r),a=kr.get(i);if(void 0!==a&&(2!==a||!n))return 1===a;if(!(t.escapedName===r.escapedName&&256&t.flags&&256&r.flags))return kr.set(i,3),!1;for(var o=Qi(r),s=0,c=_o(Qi(t));s<c.length;s++){var u=c[s];if(8&u.flags){var d=Ao(o,u.escapedName);if(!(d&&8&d.flags))return n?(n(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(u),oi(va(r),void 0,64)),kr.set(i,3)):kr.set(i,2),!1}}return kr.set(i,1),!0}function nl(e,t,r,n){var i=e.flags,a=t.flags;if(3&a||131072&i||e===ae)return!0;if(131072&a)return!1;if(132&i&&4&a)return!0;if(128&i&&1024&i&&128&a&&!(1024&a)&&e.value===t.value)return!0;if(296&i&&8&a)return!0;if(256&i&&1024&i&&256&a&&!(1024&a)&&e.value===t.value)return!0;if(2112&i&&64&a)return!0;if(528&i&&16&a)return!0;if(12288&i&&4096&a)return!0;if(32&i&&32&a&&rl(e.symbol,t.symbol,n))return!0;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&rl(e.symbol,t.symbol,n))return!0;if(2944&i&&2944&a&&e.value===t.value&&rl(Fn(e.symbol),Fn(t.symbol),n))return!0}if(32768&i&&(!F||49152&a))return!0;if(65536&i&&(!F||65536&a))return!0;if(524288&i&&67108864&a)return!0;if(8192&i||8192&a)return!1;if(r===br||r===xr||r===Sr){if(1&i)return!0;if(264&i&&!(1024&i)&&(32&a||256&a&&1024&a))return!0}return!1}function il(e,t,r){if(iu(e)&&(e=e.regularType),iu(t)&&(t=t.regularType),e===t||r===Sr&&!(131072&t.flags)&&nl(t,e,r)||r!==Dr&&nl(e,t,r))return!0;if(524288&e.flags&&524288&t.flags){var n=r.get(ml(e,t,r));if(void 0!==n)return 1===n}return!!(66846720&e.flags||66846720&t.flags)&&ol(e,t,r,void 0)}function al(t,r,n){return 4096&e.getObjectFlags(t)&&!(Sf(r.escapedName)||n)}function ol(r,n,i,a,o,s,c){var u,l,d,_,f,p=0,m=0,g=0,h=!1,y=!1;e.Debug.assert(i!==Dr||!a,"no error reporting in identity checking");var v=E(r,n,!!a,o);if(h)Ar(a,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,oi(r),oi(n));else if(u){if(s){var b=s();b&&(u=e.concatenateDiagnosticMessageChains(b,u))}var x=void 0;if(o&&a&&!v&&r.symbol){var S=Jr(r.symbol);if(S.originatingImport&&!e.isImportCall(S.originatingImport)&&ol(Qi(S.target),n,i,void 0)){var D=e.createDiagnosticForNode(S.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);x=e.append(x,D)}}var k=e.createDiagnosticForNodeFromMessageChain(a,u,x);l&&Nr.apply(void 0,[k].concat(l)),c&&(c.error=k),ir.add(k)}return 0!==v;function C(t,r,n,i,o){e.Debug.assert(!!a),u=e.chainDiagnosticMessages(u,t,r,n,i,o)}function T(t,r,n){var a=oi(r),o=oi(n);a===o&&(a=oi(r,void 0,64),o=oi(n,void 0,64)),t||(t=i===Sr?e.Diagnostics.Type_0_is_not_comparable_to_type_1:a===o?e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:e.Diagnostics.Type_0_is_not_assignable_to_type_1),C(t,a,o)}function E(r,n,o,s,c){if(void 0===o&&(o=!1),iu(r)&&(r=r.regularType),iu(n)&&(n=n.regularType),33554432&r.flags&&(r=i===xr?r.typeVariable:r.substitute),33554432&n.flags&&(n=n.typeVariable),8388608&r.flags&&(r=Ic(r)),8388608&n.flags&&(n=Ic(n)),1048576&n.flags&&524288&r.flags&&n.types.length<=3&&Fm(n,98304)){var l=o_(n,-98305);1179648&l.flags||(n=l)}if(r===n)return-1;if(i===Dr)return function(e,t){var r,n=e.flags&t.flags;return 524288&n||8388608&n||16777216&n||4194304&n||33554432&n?M(e,t,!1,!1):3145728&n&&(r=A(e,t))&&(r&=A(t,e))?r:0}(r,n);if(i===Sr&&!(131072&n.flags)&&nl(n,r,i)||nl(r,n,i,o?C:void 0))return-1;var d=!!(4096&e.getObjectFlags(r));if(vd(r)&&32768&e.getObjectFlags(r)){var _=1048576&n.flags?P(r,n):void 0;if(function t(r,n,o,s){if(!L&&16384&e.getObjectFlags(n))return!1;if(Fm(n,524288)&&!(512&e.getObjectFlags(n))){var c=!!(4096&e.getObjectFlags(r));if((i===br||i===xr||i===Sr)&&(t_(qe,n)||!c&&el(n)))return!1;if(o)return t(r,o,void 0,s);for(var u=function(t){if(function(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}(t,r.symbol)&&!Bf(n,t.escapedName,c)){if(s){if(!a)return{value:e.Debug.fail()};if(e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a)||e.isJsxOpeningLikeElement(a.parent))C(e.Diagnostics.Property_0_does_not_exist_on_type_1,ii(t),oi(n));else{var i=r.symbol&&e.firstOrUndefined(r.symbol.declarations),o=void 0;if(t.valueDeclaration&&e.findAncestor(t.valueDeclaration,function(e){return e===i})){var u=t.valueDeclaration;e.Debug.assertNode(u,e.isObjectLiteralElementLike),a=u;var l=u.name;e.isIdentifier(l)&&(o=Zf(l,n))}void 0!==o?C(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ii(t),oi(n),o):C(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ii(t),oi(n))}}return{value:!0}}},l=0,d=co(r);l<d.length;l++){var _=d[l],f=u(_);if("object"==typeof f)return f.value}}return!1}(r,n,_,o))return o&&T(s,r,n),0;(function(e){if(!(3145728&e.flags))return!1;for(var t=!1,r=0,n=e.types;r<n.length;r++)if(!(98304&n[r].flags)){if(t)return!0;t=!0}return!1})(n)&&!_&&(r=Xl(r))}if(i!==Sr&&!c&&2752508&r.flags&&r!==qe&&2621440&n.flags&&cl(n)&&(_o(r).length>0||uy(r))&&!function(e,t,r){for(var n=0,i=_o(e);n<i.length;n++){var a=i[n];if(Bf(t,a.escapedName,r))return!0}return!1}(r,n,d)){if(o){var f=Po(r,0),p=Po(r,1);f.length>0&&E(es(f[0]),n,!1)||p.length>0&&E(es(p[0]),n,!1)?C(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,oi(r),oi(n)):C(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,oi(r),oi(n))}return 0}var m=0,g=u,h=!!c;if(1048576&r.flags?m=i===Sr?F(r,n,o&&!(131068&r.flags)):function(e,t,r){for(var n=-1,i=e.types,a=0,o=i;a<o.length;a++){var s=o[a],c=E(s,t,r);if(!c)return 0;n&=c}return n}(r,n,o&&!(131068&r.flags)):(1048576&n.flags?m=w(r,n,o&&!(131068&r.flags)&&!(131068&n.flags)):2097152&n.flags?(h=!0,m=function(e,t,r){for(var n=-1,i=t.types,a=0,o=i;a<o.length;a++){var s=o[a],c=E(e,s,r,void 0,!0);if(!c)return 0;n&=c}return n}(r,n,o)):2097152&r.flags&&(m=F(r,n,!1)),!m&&(66846720&r.flags||66846720&n.flags)&&(m=M(r,n,o,h))&&(u=g)),!m&&2097152&r.flags){var v=function(t,r){for(var n,i=!1,a=0,o=t.types;a<o.length;a++)if(63176704&(l=o[a]).flags){for(var s=fo(l);s&&21233664&s.flags;)s=fo(s);if(s){if(!(1048576&s.flags))return;n=e.append(n,s)}}else 67238908&l.flags&&(i=!0);if(n&&(r||i)){if(i)for(var c=0,u=t.types;c<u.length;c++){var l;67238908&(l=u[c]).flags&&(n=e.append(n,l))}return xc(n)}}(r,!!(1048576&n.flags));v&&(m=E(v,n,o,void 0,h))&&(u=g)}if(!m&&o){var b=y;if(y=!1,524288&r.flags&&131068&n.flags)!function(t,r){var n=oi(t),i=oi(r);(Xe===t&&_e===r||Qe===t&&fe===r||Ye===t&&ve===r||Us(!1)===t&&be===r)&&C(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(r,n);else if(r.symbol&&524288&r.flags&&qe===r)C(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(d&&2097152&n.flags){var x=n.types,S=Ef(t.IntrinsicAttributes,a),D=Ef(t.IntrinsicClassAttributes,a);if(S!==oe&&D!==oe&&(e.contains(x,S)||e.contains(x,D)))return m}if(!s&&b)return m;T(s,r,n)}return m}function A(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=w(i[n],t,!1);if(!a)return 0;r&=a}return r}function w(t,r,n){var i=r.types;if(1048576&r.flags&&uc(i,t))return-1;for(var a=0,o=i;a<o.length;a++){var s=E(t,o[a],!1);if(s)return s}return n&&E(t,P(t,r)||function(t,r){var n=e.getObjectFlags(t);if(20&n&&1048576&r.flags)return e.find(r.types,function(r){if(524288&r.flags){var i=n&e.getObjectFlags(r);if(4&i)return t.target===r.target;if(16&i)return!!t.aliasSymbol&&t.aliasSymbol===r.aliasSymbol}return!1})}(t,r)||function(t,r){if(128&e.getObjectFlags(t)&&r_(r,Cl))return e.find(r.types,function(e){return!Cl(e)})}(t,r)||function(t,r){var n=0;if(Po(t,n).length>0||Po(t,n=1).length>0)return e.find(r.types,function(e){return Po(e,n).length>0})}(t,r)||function(t,r){for(var n,i=0,a=0,o=r.types;a<o.length;a++){var s=o[a],c=xc([Tc(t),Tc(s)]);if(4194304&c.flags)n=s,i=1/0;else if(1048576&c.flags){var u=e.length(c.types);u>=i&&(n=s,i=u)}else!(131072&c.flags)&&1>=i&&(n=s,i=1)}return n}(t,r)||i[i.length-1],!0),0}function P(t,r){if(1048576&r.flags){var n=co(t);if(n){var i=function(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(Md(t,a.escapedName)){if(r){r.push(a);continue}r=[a]}}return r}(n,r);if(i)return sl(r,e.map(i,function(e){return[function(){return Qi(e)},e.escapedName]}),E)}}}function F(e,t,r){var n=e.types;if(1048576&e.flags&&uc(n,t))return-1;for(var i=n.length,a=0;a<i;a++){var o=E(n[a],t,r&&a===i-1);if(o)return o}return 0}function I(t,r,n,a){if(void 0===t&&(t=e.emptyArray),void 0===r&&(r=e.emptyArray),void 0===n&&(n=e.emptyArray),t.length!==r.length&&i===Dr)return 0;for(var o=t.length<=r.length?t.length:r.length,s=-1,c=0;c<o;c++){var u=c<n.length?n[c]:1;if(4!==u){var l=t[c],d=r[c],_=-1;if(1===u?_=E(l,d,a):2===u?_=E(d,l,a):3===u?(_=E(d,l,!1))||(_=E(l,d,a)):(_=E(l,d,a))&&(_&=E(d,l,a)),!_)return 0;s&=_}}return s}function M(t,r,n,a){if(h)return 0;var s=ml(t,r,i),c=i.get(s);if(void 0!==c&&(!n||2!==c))return 1===c?-1:0;if(d){for(var v=0;v<p;v++)if(s===d[v])return 1;if(100===m)return h=!0,0}else d=[],_=[],f=[];var b=p;d[p]=s,p++,_[m]=t,f[m]=r,m++;var x=g;1&g||!vl(t,_,m)||(g|=1),2&g||!vl(r,f,m)||(g|=2);var S=3!==g?function(t,r,n,a){var s,c,d=t.flags&r.flags;if(i===Dr&&!(524288&d)){if(4194304&d)return E(t.type,r.type,!1);var _=0;return 8388608&d&&(_=E(t.objectType,r.objectType,!1))&&(_&=E(t.indexType,r.indexType,!1))?_:16777216&d&&t.root.isDistributive===r.root.isDistributive&&(_=E(t.checkType,r.checkType,!1))&&(_&=E(t.extendsType,r.extendsType,!1))&&(_&=E(Jc(t),Jc(r),!1))&&(_&=E(Uc(t),Uc(r),!1))?_:33554432&d?E(t.substitute,r.substitute,!1):0}var f,p,m,g=u;if(17301504&t.flags&&t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol&&!t.aliasTypeArgumentsContainsMarker&&!r.aliasTypeArgumentsContainsMarker){var h=(f=t.aliasSymbol,ll((p=Jr(f)).typeParameters,p,function(e,t,r){var n=Ds(f,lu(p.typeParameters,_u(t,r)));return n.aliasTypeArgumentsContainsMarker=!0,n}));if(s=I(t.aliasTypeArguments,r.aliasTypeArguments,h,n))return s;c=u,u=g}if(262144&r.flags){if(32&e.getObjectFlags(t)&&E(Tc(r),Za(t))&&!(4&no(t))){var v=$a(t),b=Lc(r,Ya(t));if(s=E(v,b,n))return s}}else if(4194304&r.flags){if(4194304&t.flags&&(s=E(r.type,t.type,!1)))return s;if(i!==xr){var x=Ic(r.type),S=x!==r.type?x:fo(r.type);if(S&&-1===E(t,Tc(S,r.stringsOnly),n))return-1}}else if(8388608&r.flags){if(!(i===Dr||Pc(r.objectType)&&Fc(r.indexType))){var S=yo(r);if(S&&S!==r&&(s=E(t,S,n)))return s}}else if(oo(r)){var D=$a(r),k=no(r);if(!(8&k)){if(8388608&D.flags&&D.objectType===t&&D.indexType===Ya(r))return-1;if(!oo(t)&&E(Za(r),Tc(t))){var b=Lc(t,Ya(r)),v=$a(r);if(s=E(b,v,n))return s}c=u,u=g}}if(8650752&t.flags){if(8388608&t.flags&&8388608&r.flags&&((s=E(t.objectType,r.objectType,n))&&(s&=E(t.indexType,r.indexType,n)),s))return u=g,s;var S=(m=t,i===xr?void 0:fo(m));if(!S||262144&t.flags&&3&S.flags){if(s=E(Ae,o_(r,-67108865)))return u=g,s}else{if(s=E(S,r,!1,void 0,a))return u=g,s;if(s=E(Ba(S,t),r,n,void 0,a))return u=g,s}}else if(4194304&t.flags){if(s=E(Ee,r,n))return u=g,s}else if(16777216&t.flags){if(16777216&r.flags){if(Ou(t.extendsType,r.extendsType)&&(E(t.checkType,r.checkType)||E(r.checkType,t.checkType))&&((s=E(Jc(t),Jc(r),n))&&(s&=E(Uc(t),Uc(r),n)),s))return u=g,s}else if(i!==xr){var T=go(t);if(T&&(s=E(T,r,n)))return u=g,s;var N=mo(t);if(N&&(s=E(N,r,n)))return u=g,s}}else{if(function(t){return!!(32&e.getObjectFlags(t)&&4&no(t))}(r)&&!oo(t)&&el(t))return-1;if(oo(r))return oo(t)&&(s=function(e,t,r){var n;if((i===Sr||(i===Dr?no(e)===no(t):ao(e)<=ao(t)))&&(n=E(Za(t),Za(e),r))){var a=fu([Ya(e)],[Ya(t)]);return n&E(Eu($a(e),a),$a(t),r)}return 0}(t,r,n))?(u=g,s):0;if(i===xr&&oo(t))return 0;var A=!!(131068&t.flags);if(i!==Dr&&(t=Co(t)),4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&t.target===r.target&&!(8192&e.getObjectFlags(t)||8192&e.getObjectFlags(r))){var h=dl(t.target);if(s=I(t.typeArguments,r.typeArguments,h,n))return s;if(h!==e.emptyArray&&!function(e,t){for(var r=0;r<t.length;r++)if(1===t[r]&&16384&e.typeArguments[r].flags)return!0;return!1}(r,h)){if(!n||!e.some(h,function(e){return 0===e}))return 0;c=u,u=g}}else if(Ll(t)&&(Dl(r)||kl(r))||Dl(t)&&kl(r))return E(Oo(t,1)||ne,Oo(r,1)||ne,n);if(2621440&t.flags&&524288&r.flags){var w=n&&u===g&&!A;if((s=function(t,r,n){if(i===Dr)return function(e,t){if(!(524288&e.flags&&524288&t.flags))return 0;var r=co(e),n=co(t);if(r.length!==n.length)return 0;for(var i=-1,a=0,o=r;a<o.length;a++){var s=o[a],c=uo(t,s.escapedName);if(!c)return 0;var u=bl(s,c,E);if(!u)return 0;i&=u}return i}(t,r);var a,s=i===vr&&!vd(t)&&!Tl(t)&&!Ll(t),c=fd(t,r,s);if(c){if(n){var d=e.arrayFrom(_d(t,r,s));if((!o||o.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&o.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(y=!0),1===d.length){var _=ii(c);C(e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,_,oi(t),oi(r)),e.length(c.declarations)&&(a=e.createDiagnosticForNode(c.declarations[0],e.Diagnostics._0_is_declared_here,_),e.Debug.assert(!!u),l?l.push(a):l=[a])}else d.length>5?C(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,oi(t),oi(r),e.map(d.slice(0,4),function(e){return ii(e)}).join(", "),d.length-4):C(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,oi(t),oi(r),e.map(d,function(e){return ii(e)}).join(", "))}return 0}if(vd(r))for(var f=0,p=_o(t);f<p.length;f++){var m=p[f];if(!uo(r,m.escapedName)){var g=Qi(m);if(g!==ce&&g!==ue)return n&&C(e.Diagnostics.Property_0_does_not_exist_on_type_1,ii(m),oi(r)),0}}var h=-1;if(Ll(r)){var v=Rl(r);if(v){if(!Ll(t))return 0;var b=Rl(t);if(b&&!E(b,v,n))return n&&C(e.Diagnostics.Rest_signatures_are_incompatible),0;for(var x=xs(r)-1,S=xs(t)-(b?1:0),D=x;D<S;D++){var k=E(t.typeArguments[D],v,n);if(!k)return n&&C(e.Diagnostics.Property_0_is_incompatible_with_rest_element_type,""+D),0;h&=k}}}for(var T=co(r),N=0,A=T;N<A.length;N++){var w=A[N];if(!(4194304&w.flags)){var m=Ao(t,w.escapedName);if(m&&m!==w){if(al(t,m,Qi(w)))continue;var P=e.getDeclarationModifierFlagsFromSymbol(m),F=e.getDeclarationModifierFlagsFromSymbol(w);if(8&P||8&F){var I=m.valueDeclaration!==w.valueDeclaration;if(256&e.getCheckFlags(m)&&I)return n&&C(e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,ii(m),oi(t)),0;if(I)return n&&(8&P&&8&F?C(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,ii(w)):C(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,ii(w),oi(8&P?t:r),oi(8&P?r:t))),0}else if(16&F){if(!yl(m,w))return n&&C(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,ii(w),oi(hl(m)||t),oi(hl(w)||r)),0}else if(16&P)return n&&C(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,ii(w),oi(t),oi(r)),0;var k=E(Qi(m),Qi(w),n);if(!k)return n&&C(e.Diagnostics.Types_of_property_0_are_incompatible,ii(w)),0;if(h&=k,i!==Sr&&16777216&m.flags&&!(16777216&w.flags))return n&&C(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,ii(w),oi(t),oi(r)),0}}}return h}(t,r,w))&&(s&=O(t,r,0,w))&&(s&=O(t,r,1,w))&&(s&=j(t,r,0,A,w))&&(s&=j(t,r,1,A,w)),s){if(!c)return u=g,s;u=c}}}return 0}(t,r,n,a):1;if(g=x,m--,S){if(-1===S||0===m){for(v=b;v<p;v++)i.set(d[v],1);p=b}}else i.set(s,n?3:2),p=b;return S}function O(t,r,n,a){if(i===Dr)return function(e,t,r){var n=Po(e,r),i=Po(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=xl(n[o],i[o],!1,!1,!1,E);if(!s)return 0;a&=s}return a}(t,r,n);if(r===Me||t===Me)return-1;var o=t.symbol&&Up(t.symbol.valueDeclaration),s=r.symbol&&Up(r.symbol.valueDeclaration),c=Po(t,o&&1===n?0:n),l=Po(r,s&&1===n?0:n);if(1===n&&c.length&&l.length){if(e.isAbstractConstructorType(t)&&!e.isAbstractConstructorType(r))return a&&C(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(t,r,n){if(!t.declaration||!r.declaration)return!0;var i=e.getSelectedModifierFlags(t.declaration,24),a=e.getSelectedModifierFlags(r.declaration,24);return 8===a||(16===a&&8!==i||(16!==a&&!i||(n&&C(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,ui(i),ui(a)),!1)))}(c[0],l[0],a))return 0}var d=-1,_=u;if(64&e.getObjectFlags(t)&&64&e.getObjectFlags(r)&&t.symbol===r.symbol)for(var f=0;f<l.length;f++){if(!(x=R(c[f],l[f],!0,a)))return 0;d&=x}else if(1===c.length&&1===l.length){var p=i===Sr||!!N.noStrictGenericChecks;d=R(c[0],l[0],p,a)}else e:for(var m=0,g=l;m<g.length;m++){for(var h=g[m],y=a,v=0,b=c;v<b.length;v++){var x;if(x=R(b[v],h,!0,y)){d&=x,u=_;continue e}y=!1}return y&&C(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,oi(t),ai(h,void 0,void 0,n)),0}return d}function R(e,t,r,n){return Zu(r?ss(e):e,r?ss(t):t,0,!1,n,C,E)}function B(t,r,n){var i=E(t.type,r.type,n);return!i&&n&&C(e.Diagnostics.Index_signatures_are_incompatible),i}function j(t,r,n,a,o){if(i===Dr)return function(e,t,r){var n=Mo(t,r),i=Mo(e,r);return i||n?i&&n&&i.isReadonly===n.isReadonly?E(i.type,n.type):0:-1}(t,r,n);var s=Mo(r,n);if(!s||3&s.type.flags&&!a)return-1;var c=Mo(t,n)||1===n&&Mo(t,0);if(c)return B(c,s,o);if(oo(t))return 0===n&&E($a(t),s.type,o);if(Hl(t)){var u=-1;if(0===n){var l=Mo(t,1);l&&(u=B(l,s,o))}return u&&(u&=function(t,r,n,i){for(var a=-1,o=0,s=co(t);o<s.length;o++){var c=s[o];if(!al(t,c,void 0)&&!(c.nameType&&8192&c.nameType.flags)&&(0===n||gf(c.escapedName))){var u=E(Qi(c),r,i);if(!u)return i&&C(e.Diagnostics.Property_0_is_incompatible_with_index_signature,ii(c)),0;a&=u}}return a}(t,s.type,n,o)),u}return o&&C(e.Diagnostics.Index_signature_is_missing_in_type_0,oi(t)),0}}function sl(e,t,r,n){for(var i,a=0,o=t;a<o.length;a++)for(var s=o[a],c=s[0],u=s[1],l=0,d=e.types;l<d.length;l++){var _=d[l],f=bi(_,u);if(f&&r(c(),f)){if(i){if(_===i)continue;return n}i=_}}return i||n}function cl(t){if(524288&t.flags){var r=so(t);return 0===r.callSignatures.length&&0===r.constructSignatures.length&&!r.stringIndexInfo&&!r.numberIndexInfo&&r.properties.length>0&&e.every(r.properties,function(e){return!!(16777216&e.flags)})}return!!(2097152&t.flags)&&e.every(t.types,cl)}function ul(t,r,n){var i=vs(t,e.map(t.typeParameters,function(e){return e===r?n:e}));return i.objectFlags|=8192,i}function ll(t,r,n){void 0===t&&(t=e.emptyArray);var i=r.variances;if(!i){r.variances=e.emptyArray,i=[];for(var a=0,o=t;a<o.length;a++){var s=o[a],c=n(r,s,Be),u=n(r,s,je),l=(zu(u,c)?1:0)|(zu(c,u)?2:0);3===l&&zu(n(r,s,kt),c)&&(l=4),i.push(l)}r.variances=i}return i}function dl(t){return I?t===He||t===Ge?e.emptyArray:ll(t.typeParameters,t,ul):e.emptyArray}function _l(e){return 262144&e.flags&&!po(e)}function fl(t){return!!(4&e.getObjectFlags(t))&&e.some(t.typeArguments,function(e){return _l(e)||fl(e)})}function pl(e,t,r){void 0===r&&(r=0);for(var n=""+e.target.id,i=0,a=e.typeArguments;i<a.length;i++){var o=a[i];if(_l(o)){var s=t.indexOf(o);s<0&&(s=t.length,t.push(o)),n+="="+s}else r<4&&fl(o)?n+="<"+pl(o,t,r+1)+">":n+="-"+o.id}return n}function ml(e,t,r){if(r===Dr&&e.id>t.id){var n=e;e=t,t=n}if(fl(e)&&fl(t)){var i=[];return pl(e,i)+","+pl(t,i)}return e.id+","+t.id}function gl(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n<i.length;n++){var a=Ao(i[n],t.escapedName),o=a&&gl(a,r);if(o)return o}}function hl(e){return e.parent&&32&e.parent.flags?va(Fn(e)):void 0}function yl(t,r){return!gl(r,function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&(n=t,i=hl(r),!gl(n,function(e){var t=hl(e);return!!t&&$i(t,i)}));var n,i})}function vl(e,t,r){if(r>=5&&524288&e.flags){var n=e.symbol;if(n)for(var i=0,a=0;a<r;a++){var o=t[a];if(524288&o.flags&&o.symbol===n&&++i>=5)return!0}}return!1}function bl(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(Th(t)!==Th(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return Em(t)!==Em(r)?0:n(Qi(t),Qi(r))}function xl(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=om(e),i=om(t),a=sm(e),o=sm(t),s=cm(e),c=cm(t);return n===i&&a===o&&s===c||!!(r&&a<=o)}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;t=ss(t),r=ss(r);var s=-1;if(!i){var c=Yo(t);if(c){var u=Yo(r);if(u){if(!(_=o(c,u)))return 0;s&=_}}}for(var l=om(r),d=0;d<l;d++){var _,f=nm(t,d);if(!(_=o(nm(r,d),f)))return 0;s&=_}if(!a){var p=$o(t),m=$o(r);s&=void 0!==p||void 0!==m?function(e,t,r){return void 0!==e&&void 0!==t&&gc(e,t)?r(e.type,t.type):0}(p,m,o):o(es(t),es(r))}return s}function Sl(t){return function(e){for(var t,r=0,n=e;r<n.length;r++){var i=n[r],a=Fl(i);if(t||(t=a),a===i||a!==t)return!1}return!0}(t)?mc(t):e.reduceLeft(t,function(e,t){return ju(e,t)?t:e})}function Dl(t){return!!(4&e.getObjectFlags(t))&&t.target===He}function kl(t){return!!(4&e.getObjectFlags(t))&&t.target===Ge}function Cl(t){return 4&e.getObjectFlags(t)&&(t.target===He||t.target===Ge)||!(98304&t.flags)&&zu(t,rt)}function Tl(e){var t=Dl(e)?e.typeArguments[0]:void 0;return t===ue||t===ke}function El(e){return Ll(e)||!!Ao(e,"0")}function Nl(e,t){var r=bi(e,""+t);return r||(n_(e,Ll)&&!n_(e,function(e){return!e.target.hasRestElement})?a_(e,function(e){return Rl(e)||ce}):void 0)}function Al(e){return!(240512&e.flags)}function wl(e){return!!(109440&e.flags)}function Pl(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,wl):wl(t))}function Fl(t){return 1024&t.flags?ma(t):128&t.flags?_e:256&t.flags?fe:2048&t.flags?pe:512&t.flags?ve:1048576&t.flags?mc(e.sameMap(t.types,Fl)):t}function Il(t){return 1024&t.flags&&iu(t)?ma(t):128&t.flags&&iu(t)?_e:256&t.flags&&iu(t)?fe:2048&t.flags&&iu(t)?pe:512&t.flags&&iu(t)?ve:1048576&t.flags?mc(e.sameMap(t.types,Il)):t}function Ml(t){return 8192&t.flags?be:1048576&t.flags?mc(e.sameMap(t.types,Ml)):t}function Ol(t,r){return function t(r,n){if(n){if(3145728&n.flags){var i=n.types;return e.some(i,function(e){return t(r,e)})}if(58982400&n.flags){var a=yo(n)||Ae;return Fm(a,4)&&Fm(r,128)||Fm(a,8)&&Fm(r,256)||Fm(a,64)&&Fm(r,2048)||Fm(a,4096)&&Fm(r,8192)||t(r,a)}return!!(4194432&n.flags&&Fm(r,128)||256&n.flags&&Fm(r,256)||2048&n.flags&&Fm(r,2048)||512&n.flags&&Fm(r,512)||8192&n.flags&&Fm(r,8192))}return!1}(t,r)||(t=Ml(Il(t))),t}function Ll(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function Rl(e){return e.target.hasRestElement?e.typeArguments[e.target.typeParameters.length-1]:void 0}function Bl(e){return xs(e)-(e.target.hasRestElement?1:0)}function jl(e){return"0"===e.value.base10Value}function zl(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=Jl(n[r]);return t}function Jl(e){return 1048576&e.flags?zl(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?jl(e)?2048:0:512&e.flags?e===me||e===ge?512:0:117724&e.flags}function Ul(e){return 117632&Jl(e)?i_(e,function(e){return!(117632&Jl(e))}):e}function ql(e){return 4&e.flags?Bt:8&e.flags?jt:64&e.flags?zt:e===ge||e===me||114688&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&jl(e)?e:Se}function Kl(e,t){var r=t&~e.flags&98304;return 0===r?e:mc(32768===r?[e,ce]:65536===r?[e,le]:[e,ce,le])}function Vl(t){return e.Debug.assert(F),32768&t.flags?t:mc([t,ce])}function Wl(e){return F?function(e){return nt||(nt=js("NonNullable",524288,void 0)||te),nt!==te?Ds(nt,[e]):zd(e,2097152)}(e):e}function Hl(e){return e.symbol&&0!=(6656&e.symbol.flags)&&!uy(e)}function Gl(e,t){var r=Pr(e.flags,e.escapedName);return r.declarations=e.declarations,r.parent=e.parent,r.type=t,r.target=e,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.nameType&&(r.nameType=e.nameType),r}function Xl(t){if(!(vd(t)&&32768&e.getObjectFlags(t)))return t;var r=t.regularType;if(r)return r;var n=t,i=function(t,r){for(var n=e.createSymbolTable(),i=0,a=co(t);i<a.length;i++){var o=a[i],s=Qi(o),c=r(s);n.set(o.escapedName,c===s?o:Gl(o,c))}return n}(t,Xl),a=Vn(n.symbol,i,n.callSignatures,n.constructSignatures,n.stringIndexInfo,n.numberIndexInfo);return a.flags=n.flags,a.objectFlags|=128|16384&e.getObjectFlags(n),t.regularType=a,a}function Ql(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function Yl(t){if(!t.resolvedProperties){for(var r=e.createMap(),n=0,i=function e(t){if(!t.siblings){for(var r=[],n=0,i=e(t.parent);n<i.length;n++){var a=i[n];if(vd(a)){var o=uo(a,t.propertyName);o&&r_(Qi(o),function(e){r.push(e)})}}t.siblings=r}return t.siblings}(t);n<i.length;n++){var a=i[n];if(vd(a)&&!(1024&e.getObjectFlags(a)))for(var o=0,s=_o(a);o<s.length;o++){var c=s[o];r.set(c.escapedName,c)}}t.resolvedProperties=e.arrayFrom(r.values())}return t.resolvedProperties}function Zl(e,t){if(!(4&e.flags))return e;var r=Qi(e),n=td(r,t&&Ql(t,e.escapedName,void 0));return n===r?e:Gl(e,n)}function $l(e){var t=ee.get(e.escapedName);if(t)return t;var r=Gl(e,ce);return r.flags|=16777216,ee.set(e.escapedName,r),r}function ed(e){return td(e,void 0)}function td(t,r){if(402653184&t.flags){if(98304&t.flags)return ne;if(vd(t))return function(t,r){for(var n=e.createSymbolTable(),i=0,a=co(t);i<a.length;i++){var o=a[i];n.set(o.escapedName,Zl(o,r))}if(r)for(var s=0,c=Yl(r);s<c.length;s++)o=c[s],n.has(o.escapedName)||n.set(o.escapedName,$l(o));var u=Mo(t,0),l=Mo(t,1),d=Vn(t.symbol,n,e.emptyArray,e.emptyArray,u&&fs(ed(u.type),u.isReadonly),l&&fs(ed(l.type),l.isReadonly));return d.objectFlags|=16384&e.getObjectFlags(t),d}(t,r);if(1048576&t.flags){var n=r||Ql(void 0,void 0,t.types),i=e.sameMap(t.types,function(e){return 98304&e.flags?e:td(e,n)});return mc(i,e.some(i,el)?2:1)}if(Dl(t)||Ll(t))return vs(t.target,e.sameMap(t.typeArguments,ed))}return t}function rd(t,r){var n=oi(ed(r));if(!e.isInJSFile(t)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(t),N)){var i;switch(t.kind){case 204:case 154:case 153:i=L?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 151:var a=t;if(e.isIdentifier(a.name)&&(e.isCallSignatureDeclaration(a.parent)||e.isMethodSignature(a.parent)||e.isFunctionTypeNode(a.parent))&&a.parent.parameters.indexOf(a)>-1&&(Wr(a,a.name.escapedText,67897832,void 0,a.name.escapedText,!0)||a.name.originalKeywordKind&&e.isTypeNodeKind(a.name.originalKeywordKind))){var o="arg"+a.parent.parameters.indexOf(a);return void wr(L,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,o,e.declarationNameToString(a.name))}i=t.dotDotDotToken?L?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:L?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 186:i=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type;break;case 289:return void Ar(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,n);case 239:case 156:case 155:case 158:case 159:case 196:case 197:if(L&&!t.name)return void Ar(t,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,n);i=L?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 181:return void(L&&Ar(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:i=L?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}wr(L,t,i,e.declarationNameToString(e.getNameOfDeclaration(t)),n)}}function nd(t,r){i&&L&&134217728&r.flags&&(function t(r){var n=!1;if(134217728&r.flags){if(1048576&r.flags)if(e.some(r.types,el))n=!0;else for(var i=0,a=r.types;i<a.length;i++)t(l=a[i])&&(n=!0);if(Dl(r)||Ll(r))for(var o=0,s=r.typeArguments;o<s.length;o++)t(l=s[o])&&(n=!0);if(vd(r))for(var c=0,u=co(r);c<u.length;c++){var l,d=u[c];134217728&(l=Qi(d)).flags&&(t(l)||Ar(d.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,ii(d),oi(ed(l))),n=!0)}}return n}(r)||rd(t,r))}function id(e,t,r){var n=om(e),i=om(t),a=um(e),o=um(t),s=o?i-1:i,c=a?s:Math.min(n,s),u=Yo(e);if(u){var l=Yo(t);l&&r(u,l)}for(var d=0;d<c;d++)r(nm(e,d),nm(t,d));o&&r(am(e,c),o)}function ad(e,t,r,n,i){var a=i?i.map(sd):e.map(od),o=function(e){for(var t=0;t<a.length;t++)if(e===a[t].typeParameter)return a[t].isFixed=!0,Sd(o,t);return e};return o.typeParameters=e,o.signature=t,o.inferences=a,o.flags=r,o.compareTypes=n||Ru,o}function od(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function sd(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed}}function cd(t){var r=e.getObjectFlags(t);return!!(63176704&t.flags||4&r&&e.forEach(t.typeArguments,cd)||16&r&&t.symbol&&10288&t.symbol.flags||32&r||3145728&t.flags&&function(t){return void 0===t.couldContainTypeVariables&&(t.couldContainTypeVariables=e.some(t.types,cd)),t.couldContainTypeVariables}(t))}function ud(t,r){return t===r||!!(3145728&t.flags)&&e.some(t.types,function(e){return ud(e,r)})}function ld(t,r,n){var i=t.id+","+r.id+","+n.id;if(Ft.has(i))return Ft.get(i);Ft.set(i,void 0);var a=function(t,r,n){var i=_o(t);if(0!==i.length||Mo(t,0)){for(var a=0,o=i;a<o.length;a++){var s=o[a];if(536870912&Qi(s).flags)return}if(Dl(t))return nc(dd(t.typeArguments[0],r,n));if(kl(t))return ic(dd(t.typeArguments[0],r,n));if(Ll(t)){var c=e.map(t.typeArguments||e.emptyArray,function(e){return dd(e,r,n)}),u=4&no(r)?xs(t)-(t.target.hasRestElement?1:0):t.target.minLength;return oc(c,u,t.target.hasRestElement,t.target.associatedNames)}var l=Jn(2064,void 0);return l.source=t,l.mappedType=r,l.constraintType=n,l}}(t,r,n);return Ft.set(i,a),a}function dd(e,t,r){var n=Lc(r.type,Ya(t)),i=$a(t),a=od(n);return gd([a],e,i),md(a)}function _d(e,t,r){var n,i,a,o;return c(this,function(s){switch(s.label){case 0:n=2097152&t.flags?lo(t):co(t),i=0,a=n,s.label=1;case 1:return i<a.length?(o=a[i],!r&&16777216&o.flags?[3,3]:Ao(e,o.escapedName)?[3,3]:[4,o]):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}})}function fd(e,t,r){return _d(e,t,r).next().value}function pd(e,t){return Ll(e)&&Ll(t)&&function(e,t){return t.target.minLength>e.target.minLength||!Rl(t)&&(!!Rl(e)||Bl(t)<Bl(e))}(e,t)||!!fd(e,t,!1)&&!!fd(t,e,!1)}function md(e){return e.candidates?mc(e.candidates,2):e.contraCandidates?xc(e.contraCandidates):Ae}function gd(t,r,n,i){var a,o;void 0===i&&(i=0);var s,c=!1,u=!1,l=!0;function d(t,r){if(cd(r)){if(t===ae){var m=s;return s=t,d(r,r),void(s=m)}if(t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol)for(var g=t.aliasTypeArguments,h=r.aliasTypeArguments,y=0;y<g.length;y++)d(g[y],h[y]);else{if(1048576&t.flags&&1048576&r.flags&&!(1024&t.flags&&1024&r.flags)||2097152&t.flags&&2097152&r.flags){if(t===r){for(var v=0,b=t.types;v<b.length;v++)d(B=b[v],B);return}for(var x=void 0,S=0,D=t.types;S<D.length;S++)if(hd(B=D[S],r.types))(x||(x=[])).push(B),d(B,B);else if(384&B.flags){var k=Fl(B);hd(k,r.types)&&(x||(x=[])).push(B,k)}x&&(t=yd(t,x),r=yd(r,x))}if(8650752&r.flags){if(536870912&t.flags||t===De||8&i&&(t===ie||t===tt))return;var C=f(r);if(C){if(!C.isFixed){if((void 0===C.priority||i<C.priority)&&(C.candidates=void 0,C.contraCandidates=void 0,C.priority=i),i===C.priority){var T=s||t;c&&!u?C.contraCandidates=e.appendIfUnique(C.contraCandidates,T):C.candidates=e.appendIfUnique(C.candidates,T)}8&i||!(262144&r.flags)||ud(n,r)||(C.topLevel=!1)}return}var E=Ic(r);if(E!==r)K(t,E);else if(8388608&r.flags){var N=Ic(r.indexType);if(63176704&N.flags){var A=Mc(Ic(r.objectType),N);A&&A!==r&&K(t,A)}}}if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&t.target===r.target){g=t.typeArguments||e.emptyArray,h=r.typeArguments||e.emptyArray;var w=g.length<h.length?g.length:h.length,P=dl(t.target);for(y=0;y<w;y++)y<P.length&&2===P[y]?_(g[y],h[y]):d(g[y],h[y])}else if(4194304&t.flags&&4194304&r.flags)c=!c,d(t.type,r.type),c=!c;else if((Pl(t)||4&t.flags)&&4194304&r.flags){var F=function(t){var r=e.createSymbolTable();r_(t,function(t){if(128&t.flags){var n=e.escapeLeadingUnderscores(t.value),i=Pr(4,n);i.type=ne,t.symbol&&(i.declarations=t.symbol.declarations,i.valueDeclaration=t.symbol.valueDeclaration),r.set(n,i)}});var n=4&t.flags?fs(Ae,!1):void 0;return Vn(void 0,r,e.emptyArray,e.emptyArray,n,void 0)}(t);c=!c;var I=i;i|=16,d(F,r.type),i=I,c=!c}else if(8388608&t.flags&&8388608&r.flags)d(t.objectType,r.objectType),d(t.indexType,r.indexType);else if(16777216&t.flags&&16777216&r.flags)d(t.checkType,r.checkType),d(t.extendsType,r.extendsType),d(Jc(t),Jc(r)),d(Uc(t),Uc(r));else if(16777216&r.flags)d(t,mc([Jc(r),Uc(r)]));else if(3145728&r.flags){for(var M=0,O=void 0,L=0,R=h=r.types;L<R.length;L++){var B;f(B=R[L])?(O=B,M++):d(t,B)}1===M&&(I=i,i|=1,d(t,O),i=I)}else if(1048576&t.flags)for(var j=0,z=g=t.types;j<z.length;j++)d(z[j],r);else{if(!(32&i&&65273856&t.flags)){var J=Co(t);if(J!==t&&l&&!(2621440&J.flags))return l=!1,d(J,r);t=J}if(2621440&t.flags){var U=t.id+","+r.id;if(o&&o.get(U))return;(o||(o=e.createMap())).set(U,!0);var q=524288&r.flags&&!(16&e.getObjectFlags(r)&&r.symbol&&32&r.symbol.flags)?r.symbol:void 0;if(q){if(e.contains(a,q))return;(a||(a=[])).push(q),p(t,r),a.pop()}else p(t,r)}}}}function K(t,r){var n=t.id+","+r.id;o&&o.get(n)||((o||(o=e.createMap())).set(n,!0),d(t,r))}}function _(e,t){I||64&i?(c=!c,d(e,t),c=!c):d(e,t)}function f(e){if(8650752&e.flags)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e===i.typeParameter)return i}}function p(t,r){oo(t)&&oo(r)&&(d(Za(t),Za(r)),d($a(t),$a(r))),32&e.getObjectFlags(r)&&function t(r,n,a){if(1048576&a.flags){for(var o=!1,s=0,c=a.types;s<c.length;s++)o=t(r,n,c[s])||o;return o}if(4194304&a.flags){var u=f(a.type);if(u&&!u.isFixed){var l=ld(r,n,a);if(l){var _=i;i|=2,d(l,u.typeParameter),i=_}}return!0}return!!(262144&a.flags)&&(_=i,i|=4,d(Tc(r),a),i=_,d(mc(e.map(_o(r),Qi)),$a(n)),!0)}(t,r,Za(r))||pd(t,r)||(function(e,t){if(Ll(e)){if(Ll(t)){for(var r=Bl(e),n=Bl(t),i=Rl(e),a=Rl(t),o=n<r||i?n:r,s=0;s<o;s++)d(s<r?e.typeArguments[s]:i,t.typeArguments[s]);if(a){var c=o<r?e.typeArguments.slice(o,r):[];i&&c.push(i),c.length&&d(mc(c),a)}return}if(Dl(t))return void h(e,t)}for(var u=co(t),l=0,_=u;l<_.length;l++){var f=_[l],p=Ao(e,f.escapedName);p&&d(Qi(p),Qi(f))}}(t,r),m(t,r,0),m(t,r,1),h(t,r))}function m(e,t,r){for(var n=Po(e,r),i=Po(t,r),a=n.length,o=i.length,s=a<o?a:o,c=!!(536870912&e.flags),u=0;u<s;u++)g(us(n[a-s+u]),us(i[o-s+u]),c)}function g(e,t,r){if(!r){var n=u,i=t.declaration?t.declaration.kind:0;u=u||156===i||155===i||157===i,id(e,t,_),u=n}var a=$o(e),o=$o(t);a&&o&&a.kind===o.kind?d(a.type,o.type):d(es(e),es(t))}function h(e,t){var r=Oo(t,0);r&&(n=Oo(e,0)||Lo(e,0))&&d(n,r);var n,i=Oo(t,1);i&&(n=Oo(e,1)||Oo(e,0)||Lo(e,1))&&d(n,i)}d(r,n)}function hd(e,t){for(var r=0,n=t;r<n.length;r++)if(Ou(n[r],e))return!0;return!1}function yd(e,t){for(var r=[],n=0,i=e.types;n<i.length;n++){var a=i[n];hd(a,t)||r.push(a)}return 1048576&e.flags?mc(r):xc(r)}function vd(t){return!!(128&e.getObjectFlags(t))}function bd(t){return 28&t.priority?xc(t.contraCandidates):(r=t.contraCandidates,e.reduceLeft(r,function(e,t){return ju(t,e)?t:e}));var r}function xd(t,r){var n,i,a=function(t){if(t.length>1){var r=e.filter(t,vd);if(r.length){var n=ed(mc(r,2));return e.concatenate(e.filter(t,function(e){return!vd(e)}),[n])}}return t}(t.candidates),o=(n=t.typeParameter,!!(i=po(n))&&Fm(16777216&i.flags?mo(i):i,4325372)),s=!o&&t.topLevel&&(t.isFixed||!ud(es(r),t.typeParameter)),c=o?e.sameMap(a,nu):s?e.sameMap(a,Il):a;return ed(28&t.priority?mc(c,2):function(t){if(!F)return Sl(t);var r=e.filter(t,function(e){return!(98304&e.flags)});return r.length?Kl(Sl(r),98304&zl(t)):mc(t,2)}(c))}function Sd(e,t){var r=e.inferences[t],n=r.inferredType;if(!n){var i=e.signature;if(i){var a=r.candidates?xd(r,i):void 0;if(r.contraCandidates){var o=bd(r);n=!a||131072&a.flags||!ju(a,o)?o:a}else if(a)n=a;else if(1&e.flags)n=De;else{var s=Do(r.typeParameter);n=s?Eu(s,mu(function(e,t){return function(r){return e.indexOf(r)>=t?Ae:r}}(e.signature.typeParameters,t),e)):Dd(!!(2&e.flags))}}else n=md(r);r.inferredType=n;var c=po(r.typeParameter);if(c){var u=Eu(c,e);e.compareTypes(n,Ba(u,n))||(r.inferredType=n=u)}}return n}function Dd(e){return e?ne:Ae}function kd(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(Sd(e,r));return t}function Cd(t){switch(t){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig;case"describe":case"suite":case"it":case"test":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_types_Slashjest_or_npm_i_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig;case"process":case"require":case"Buffer":case"module":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later;default:return e.Diagnostics.Cannot_find_name_0}}function Td(t){var r=Ur(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&Wr(t,t.escapedText,68268991,Cd(t.escapedText),t,!e.isWriteOnlyAccess(t),!1,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||te),r.resolvedSymbol}function Ed(t){return!!e.findAncestor(t,function(e){return 167===e.kind||72!==e.kind&&148!==e.kind&&"quit"})}function Nd(t){var r=t.parent;if(184!==r.kind)return""+r.elements.indexOf(t);var n=t.propertyName||t.name;switch(n.kind){case 72:return e.idText(n);case 149:return e.isStringOrNumericLiteralLike(n.expression)?n.expression.text:void 0;case 10:case 8:return n.text;default:e.Debug.fail("Unexpected name kind for binding element name")}}function Ad(t,r){switch(t.kind){case 72:return 72===r.kind&&Td(t)===Td(r)||(237===r.kind||186===r.kind)&&On(Td(t))===Pn(r);case 100:return 100===r.kind;case 98:return 98===r.kind;case 189:case 190:return(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))&&wd(t)===wd(r)&&Ad(t.expression,r.expression);case 186:if(189!==r.kind)return!1;var n=r;if(n.name.escapedText!==Nd(t))return!1;if(186===t.parent.parent.kind&&Ad(t.parent.parent,n.expression))return!0;if(237===t.parent.parent.kind){var i=t.parent.parent.initializer;return!!i&&Ad(i,n.expression)}}return!1}function wd(t){return e.isPropertyAccessExpression(t)?t.name.escapedText:e.isStringLiteral(t.argumentExpression)||e.isNumericLiteral(t.argumentExpression)?e.escapeLeadingUnderscores(t.argumentExpression.text):void 0}function Pd(e,t){for(;189===e.kind;)if(Ad(e=e.expression,t))return!0;return!1}function Fd(e,t){return 189===t.kind&&Pd(e,t.expression)&&Md(Id(t.expression),t.name.escapedText)}function Id(e){if(72===e.kind)return Qi(Td(e));if(189===e.kind){var t=Id(e.expression);return t&&bi(t,e.name.escapedText)}}function Md(t,r){if(t&&1048576&t.flags){var n=Eo(t,r);if(n&&2&e.getCheckFlags(n))return void 0===n.isDiscriminantProperty&&(n.isDiscriminantProperty=!!(32&n.checkFlags)&&function(e){if(1048576&e.flags){if(1040&e.flags)return!0;for(var t=0,r=0,n=e.types;r<n.length;r++)t|=n[r].flags;if(109440&t&&!(63176704&t))return!0}return!1}(Qi(n))),!!n.isDiscriminantProperty}return!1}function Od(e){var t=Id(e);return!!(t&&1048576&t.flags)}function Ld(e,t){return Ad(e,t)||Pd(e,t)}function Rd(e,t){if(e!==t){if(131072&t.flags)return t;var r=i_(e,function(e){return function(e,t){if(!(1048576&e.flags))return zu(e,t);for(var r=0,n=e.types;r<n.length;r++)if(zu(n[r],t))return!0;return!1}(t,e)});if(512&t.flags&&iu(t)&&(r=a_(r,ru)),zu(t,r))return r}return e}function Bd(e){var t=so(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&ju(e,Ke))}function jd(t){var r=t.flags;if(4&r)return F?16317953:16776705;if(128&r){var n=""===t.value;return F?n?12123649:7929345:n?12582401:16776705}if(40&r)return F?16317698:16776450;if(256&r){var i=0===t.value;return F?i?12123394:7929090:i?12582146:16776450}return 64&r?F?16317188:16775940:2048&r?(i=jl(t),F?i?12122884:7928580:i?12581636:16775940):16&r?F?16316168:16774920:528&r?F?t===me||t===ge?12121864:7927560:t===me||t===ge?12580616:16774920:524288&r?16&e.getObjectFlags(t)&&el(t)?F?16318463:16777215:Bd(t)?F?7880640:16728e3:F?7888800:16736160:49152&r?9830144:65536&r?9363232:12288&r?F?7925520:16772880:67108864&r?F?7888800:16736160:63176704&r?jd(yo(t)||Ae):3145728&r?function(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=jd(n[r]);return t}(t.types):16777215}function zd(e,t){return i_(e,function(e){return 0!=(jd(e)&t)})}function Jd(e,t){if(t){var r=Zm(t);return mc([zd(e,524288),r])}return e}function Ud(t,r){var n=e.getTextOfPropertyName(r);return T_(bi(t,n),r)||gf(n)&&Oo(t,1)||Oo(t,0)||oe}function qd(e,t){return n_(e,El)&&Nl(e,t)||dh(e,void 0,!1,!1)||oe}function Kd(e){return nc(dh(e,void 0,!1,!1)||oe)}function Vd(e){return 204===e.parent.kind&&e.parent.left===e||227===e.parent.kind&&e.parent.initializer===e}function Wd(e){return Ud(Hd(e.parent),e.name)}function Hd(e){var t=e.parent;switch(t.kind){case 226:return _e;case 227:return lh(t.expression,t.awaitModifier)||oe;case 204:return function(e){return 187===e.parent.kind&&Vd(e.parent)||275===e.parent.kind&&Vd(e.parent.parent)?Jd(Hd(e),e.right):Zm(e.right)}(t);case 198:return ce;case 187:return function(e,t){return qd(Hd(e),e.elements.indexOf(t))}(t,e);case 208:return function(e){return Kd(Hd(e.parent))}(t);case 275:return Wd(t);case 276:return function(e){return Jd(Wd(e),e.objectAssignmentInitializer)}(t)}return oe}function Gd(e){return e.initializer?function(e){return Ur(e).resolvedType||Zm(e)}(e.initializer):226===e.parent.parent.kind?_e:227===e.parent.parent.kind&&lh(e.parent.parent.expression,e.parent.parent.awaitModifier)||oe}function Xd(e){return 237===e.kind?Gd(e):function(e){var t=e.parent,r=Xd(t.parent);return Jd(184===t.kind?Ud(r,e.propertyName||e.name):e.dotDotDotToken?Kd(r):qd(r,t.elements.indexOf(e)),e.initializer)}(e)}function Qd(e,t){return T_(237===e.kind||186===e.kind?Xd(e):Hd(e),t)}function Yd(e){switch(e.kind){case 195:return Yd(e.expression);case 204:switch(e.operatorToken.kind){case 59:return Yd(e.left);case 27:return Yd(e.right)}}return e}function Zd(e){return 271===e.kind?nu(Zm(e.expression)):Se}function $d(e){var t=Ur(e);if(!t.switchTypes){t.switchTypes=[];for(var r=0,n=e.caseBlock.clauses;r<n.length;r++){var i=n[r];t.switchTypes.push(Zd(i))}}return t.switchTypes}function e_(t){for(var r=[],n=0,i=t.caseBlock.clauses;n<i.length;n++){var a=i[n];if(271===a.kind){if(10===a.expression.kind){r.push(a.expression.text);continue}return e.emptyArray}r.push(void 0)}return r}function t_(e,t){return e===t||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(!uc(t.types,i))return!1}return!0}return!!(1024&e.flags&&ma(e)===t)||uc(t.types,e)}(e,t)}function r_(t,r){return 1048576&t.flags?e.forEach(t.types,r):r(t)}function n_(t,r){return 1048576&t.flags?e.every(t.types,r):r(t)}function i_(t,r){if(1048576&t.flags){var n=t.types,i=e.filter(n,r);return i===n?t:hc(i,t.primitiveTypesOnly)}return r(t)?t:Se}function a_(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var n,i,a=0,o=e.types;a<o.length;a++){var s=t(o[a]);s&&(n?i?i.push(s):i=[n,s]:n=s)}return i?mc(i,r?0:1):n}function o_(e,t){return i_(e,function(e){return 0!=(e.flags&t)})}function s_(e,t){return t_(_e,e)&&Fm(t,128)||t_(fe,e)&&Fm(t,256)||t_(pe,e)&&Fm(t,2048)?a_(e,function(e){return 4&e.flags?o_(t,132):8&e.flags?o_(t,264):64&e.flags?o_(t,2112):e}):e}function c_(e){return 0===e.flags}function u_(e){return 0===e.flags?e.type:e}function l_(e,t){return t?{flags:0,type:e}:e}function d_(e){return $[e.id]||($[e.id]=function(e){var t=Jn(256);return t.elementType=e,t}(e))}function __(e,t){var r=Fl($m(t));return t_(r,e.elementType)?e:d_(mc([e.elementType,r]))}function f_(e){return e.finalArrayType||(e.finalArrayType=131072&(t=e.elementType).flags?tt:nc(1048576&t.flags?mc(t.types,2):t));var t}function p_(t){return 256&e.getObjectFlags(t)?f_(t):t}function m_(t){return 256&e.getObjectFlags(t)?t.elementType:Se}function g_(t,r){return function(t){for(var r=!1,n=0,i=t;n<i.length;n++){var a=i[n];if(!(131072&a.flags)){if(!(256&e.getObjectFlags(a)))return!1;r=!0}}return r}(t)?d_(mc(e.map(t,m_))):mc(e.sameMap(t,p_),r)}function h_(t){var r=function e(t){var r=t.parent;return 195===r.kind||204===r.kind&&59===r.operatorToken.kind&&r.left===t||204===r.kind&&27===r.operatorToken.kind&&r.right===t?e(r):t}(t),n=r.parent,i=189===n.kind&&("length"===n.name.escapedText||191===n.parent.kind&&e.isPushOrUnshiftIdentifier(n.name)),a=190===n.kind&&n.expression===r&&204===n.parent.kind&&59===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&Im(Zm(n.argumentExpression),296);return i||a}function y_(t){var r=Ur(t);return void 0===r.maybeTypePredicate&&(r.maybeTypePredicate=function(t){if(98!==t.expression.kind){var r=qf(t.expression);if(r!==De){var n=Co(r);return n!==oe&&e.some(Po(n,0),Zo)}}return!1}(t)),r.maybeTypePredicate}function v_(t,r,n,i,a){var s;void 0===n&&(n=r);var c=0;if(Rt)return oe;if(!t.flowNode||!a&&!(133970943&r.flags))return r;var u=Lt,d=u_(f(t.flowNode));Lt=u;var _=256&e.getObjectFlags(d)&&h_(t)?tt:p_(d);return t.parent&&213===t.parent.kind&&131072&zd(_,2097152).flags?r:_;function f(a){if(2e3===c)return Rt=!0,o=t,s=e.findAncestor(o,e.isFunctionOrModuleBlock),l=e.getSourceFileOfNode(o),d=e.getSpanOfTokenAtPosition(l,s.statements.pos),ir.add(e.createFileDiagnostic(l,d.start,d.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),oe;var o,s,l,d;for(c++;;){var _=a.flags;if(1024&_)for(var b=u;b<Lt;b++)if($t[b]===a)return c--,er[b];var x=void 0;if(4096&_)a.locked=!0,x=f(a.antecedent),a.locked=!1;else{if(2048&_){a=a.antecedent;continue}if(16&_){if(!(x=p(a))){a=a.antecedent;continue}}else if(96&_)x=g(a);else if(128&_)x=h(a);else if(12&_){if(1===a.antecedents.length){a=a.antecedents[0];continue}x=4&_?y(a):v(a)}else if(256&_){if(!(x=m(a))){a=a.antecedent;continue}}else if(2&_){var S=a.container;if(S&&S!==i&&189!==t.kind&&190!==t.kind&&100!==t.kind){a=S.flowNode;continue}x=n}else x=eh(r)}return 1024&_&&($t[Lt]=a,er[Lt]=x,Lt++),c--,x}}function p(n){var i=n.node;if(Ad(t,i)){if(2===e.getAssignmentTargetKind(i)){var a=f(n.antecedent);return l_(Fl(u_(a)),c_(a))}if(r===ie||r===tt){if(function(e){return 237===e.kind&&e.initializer&&Ei(e.initializer)||186!==e.kind&&204===e.parent.kind&&Ei(e.parent.right)}(i))return d_(Se);var o=Fl(Qd(i,t));return zu(o,r)?o:et}return 1048576&r.flags?Rd(r,Qd(i,t)):r}if(Pd(t,i)){if(e.isVariableDeclaration(i)&&(e.isInJSFile(i)||e.isVarConst(i))){var s=e.getDeclaredExpandoInitializer(i);if(s&&(196===s.kind||197===s.kind))return f(n.antecedent)}return r}if(e.isVariableDeclaration(i)&&226===i.parent.parent.kind&&Ad(t,i.parent.parent.expression))return Kf(u_(f(n.antecedent)))}function m(n){if(r===ie||r===tt){var i=n.node,a=191===i.kind?i.expression.expression:i.left.expression;if(Ad(t,Yd(a))){var o=f(n.antecedent),s=u_(o);if(256&e.getObjectFlags(s)){var c=s;if(191===i.kind)for(var u=0,l=i.arguments;u<l.length;u++)c=__(c,l[u]);else Im($m(i.left.argumentExpression),296)&&(c=__(c,i.right));return c===s?o:l_(c,c_(o))}return o}}}function g(e){var t=f(e.antecedent),r=u_(t);if(131072&r.flags)return t;var n=0!=(32&e.flags),i=p_(r),a=w(i,e.expression,n);if(a===i)return t;var o=c_(t);return l_(o&&131072&a.flags?De:a,o)}function h(n){var i=n.switchStatement.expression;if(Fd(t,i))return r;var a=f(n.antecedent),o=u_(a);return Ad(t,i)?o=E(o,n.switchStatement,n.clauseStart,n.clauseEnd):b(i,o)?o=x(o,i,function(e){return E(e,n.switchStatement,n.clauseStart,n.clauseEnd)}):199===i.kind&&Ad(t,i.expression)&&(o=function(t,r,n,i){var a=e_(r);if(!a.length)return t;var o,s,c=e.findIndex(a,function(e){return void 0===e}),u=n===i||c>=n&&c<i;if(c>-1){var l=a.filter(function(e){return void 0!==e}),d=c<n?n-1:n,_=c<i?i-1:i;o=l.slice(d,_),s=vm(d,_,l,u)}else o=a.slice(n,i),s=vm(n,i,a,u);if(u)return i_(t,function(e){return(jd(e)&s)===s});var f,p=zd(mc(o.map(function(e){return function(e,t){switch(t){case"function":return 1&e.flags?e:Ke;case"object":return 2&e.flags?mc([Ce,le]):e;default:return hr.get(t)||e}}(t,e)})),s);return 1048576&p.flags&&(p=Rd(p,vo(t))),zd(a_(t,(f=p,function(e){if(ju(f,e))return f;if(63176704&e.flags){var t=yo(e)||ne;if(ju(f,t))return xc([e,f])}return e})),s)}(o,n.switchStatement,n.clauseStart,n.clauseEnd)),l_(o,c_(a))}function y(t){for(var i=[],a=!1,o=!1,s=0,c=t.antecedents;s<c.length;s++){var u=c[s];if(!(2048&u.flags&&u.lock.locked)){var l=f(u),d=u_(l);if(d===r&&r===n)return d;e.pushIfUnique(i,d),t_(d,r)||(a=!0),c_(l)&&(o=!0)}}return l_(g_(i,a?2:1),o)}function v(n){var i=function(e){return e.id||(e.id=o,o++),e.id}(n),a=Xt[i]||(Xt[i]=e.createMap());if(!s&&!(s=function t(r){if(72===r.kind){var n=Td(r);return n!==te?(k_(r)?"@":"")+l(n):void 0}if(100===r.kind)return"0";if(189===r.kind)return(a=t(r.expression))&&a+"."+e.idText(r.name);if(186===r.kind){var i=r.parent.parent,a=186===i.kind?t(i):i.initializer&&t(i.initializer),o=Nd(r);return a&&o&&a+"."+o}}(t)))return r;var c=a.get(s);if(c)return c;for(var u=Mt;u<Ot;u++)if(Qt[u]===n&&Yt[u]===s&&Zt[u].length)return l_(g_(Zt[u],1),!0);var d,_=[],p=!1;Qt[Ot]=n,Yt[Ot]=s,Zt[Ot]=_;for(var m=0,g=n.antecedents;m<g.length;m++){var h=g[m];Ot++;var y=f(h);Ot--,d||(d=y);var v=u_(y),b=a.get(s);if(b)return b;if(e.pushIfUnique(_,v),t_(v,r)||(p=!0),v===r)break}var x=g_(_,p?2:1);return c_(d)?l_(x,!0):(a.set(s,x),x)}function b(e,r){if(!(1048576&r.flags)||189!==e.kind&&190!==e.kind)return!1;var n=e,i=wd(n);return!!i&&Ad(t,n.expression)&&Md(r,i)}function x(e,t,r){var n=wd(t);if(!n)return e;var i=bi(e,n),a=i&&r(i);return i===a?e:i_(e,function(e){return Uu(bi(e,n),a)})}function S(e,n,i){return Ad(t,n)?zd(e,i?4194304:8388608):b(n,r)?x(e,n,function(e){return zd(e,i?4194304:8388608)}):Fd(t,n)?r:e}function D(t,r,n){if(1572864&t.flags||262144&t.flags&&t.isThisType){var i=e.escapeLeadingUnderscores(r.text);return i_(t,function(e){return function(e,t,r){if(Mo(e,0))return!0;var n=Ao(e,t);return n?!!(16777216&n.flags)||r:!r}(e,i,n)})}return t}function k(n,i,a){switch(i.operatorToken.kind){case 59:return S(n,i.left,a);case 33:case 34:case 35:case 36:var o=i.operatorToken.kind,s=Yd(i.left),c=Yd(i.right);if(199===s.kind&&e.isStringLiteralLike(c))return T(n,s,o,c,a);if(199===c.kind&&e.isStringLiteralLike(s))return T(n,c,o,s,a);if(Ad(t,s))return C(n,o,c,a);if(Ad(t,c))return C(n,o,s,a);if(b(s,r))return x(n,s,function(e){return C(e,o,c,a)});if(b(c,r))return x(n,c,function(e){return C(e,o,s,a)});if(Fd(t,s)||Fd(t,c))return r;break;case 94:return function(n,i,a){var o=Yd(i.left);if(!Ad(t,o))return Pd(t,o)&&Od(o)?r:n;var s,c=Zm(i.right);if(!Ju(c,Ke))return n;var u=Ao(c,"prototype");if(u){var l=Qi(u);xi(l)||(s=l)}if(xi(n)&&(s===qe||s===Ke))return n;if(!s){var d=Po(c,1);s=d.length?mc(e.map(d,function(e){return es(ss(e))})):Ae}return N(n,s,a,Ju)}(n,i,a);case 93:var u=Yd(i.right);if(e.isStringLiteralLike(i.left)&&Ad(t,u))return D(n,i.left,a);break;case 27:return w(n,i.right,a)}return n}function C(e,t,r,n){if(1&e.flags)return e;34!==t&&36!==t||(n=!n);var i=Zm(r);if(98304&i.flags)return F?zd(e,33===t||34===t?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288):e;if(67637251&e.flags)return e;if(n){var a=i_(e,function(e){return qu(e,i)});return 131072&a.flags?e:s_(a,i)}if(wl(i)){var o=nu(i);return i_(e,function(e){return nu(e)!==o})}return e}function T(e,n,i,a,o){var s=Yd(n.expression);if(!Ad(t,s))return Pd(t,s)&&Od(s)?r:e;if(34!==i&&36!==i||(o=!o),1&e.flags&&"function"===a.text)return e;var c=o?mr.get(a.text)||128:gr.get(a.text)||32768;return zd(o?a_(e,function(e){if(2&e.flags&&"object"===a.text)return mc([Ce,le]);var t="function"===a.text?Ke:hr.get(a.text);if(t){if(ju(e,t))return e;if(ju(t,e))return t;if(63176704&e.flags){var r=yo(e)||ne;if(ju(t,r))return xc([e,t])}}return e}):e,c)}function E(t,r,n,i){var a=$d(r);if(!a.length)return t;var o=a.slice(n,i),s=n===i||e.contains(o,Se),c=mc(o),u=131072&c.flags?Se:s_(i_(t,function(e){return qu(c,e)}),c);if(!s)return u;var l=i_(t,function(t){return!(wl(t)&&e.contains(a,nu(t)))});return 131072&u.flags?l:mc([u,l])}function N(e,t,r,n){if(!r)return i_(e,function(e){return!n(e,t)});if(1048576&e.flags){var i=i_(e,function(e){return n(e,t)});if(!(131072&i.flags))return i}return ju(t,e)?t:zu(e,t)?e:zu(t,e)?t:xc([e,t])}function A(n,i,a){if(!function(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++)if(Ld(t,n[r]))return!0;return!(189!==e.expression.kind||!Ld(t,e.expression.expression))}(i,t)||!y_(i))return n;var o=Jp(i),s=$o(o);if(!s)return n;if(xi(n)&&(s.type===qe||s.type===Ke))return n;if(e.isIdentifierTypePredicate(s)){var c=i.arguments[s.parameterIndex-(o.thisParameter?1:0)];if(c){if(Ad(t,c))return N(n,s.type,a,ju);if(Pd(t,c))return r}}else{var u=e.skipParentheses(i.expression);if(190===u.kind||189===u.kind){var l=u,d=e.skipParentheses(l.expression);if(Ad(t,d))return N(n,s.type,a,ju);if(Pd(t,d))return r}}return n}function w(e,t,r){switch(t.kind){case 72:case 100:case 98:case 189:case 190:return S(e,t,r);case 191:return A(e,t,r);case 195:return w(e,t.expression,r);case 204:return k(e,t,r);case 202:if(52===t.operator)return w(e,t.operand,!r)}return e}}function b_(t){return e.findAncestor(t.parent,function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||245===t.kind||279===t.kind||154===t.kind})}function x_(t){var r,n=e.getRootDeclaration(t.valueDeclaration).parent,i=Ur(n);return 8388608&i.flags||(i.flags|=8388608,r=n,e.findAncestor(r.parent,function(t){return e.isFunctionLike(t)&&!!(8388608&Ur(t).flags)})||S_(n)),t.isAssigned||!1}function S_(t){if(72===t.kind){if(e.isAssignmentTarget(t)){var r=Td(t);r.valueDeclaration&&151===e.getRootDeclaration(r.valueDeclaration).kind&&(r.isAssigned=!0)}}else e.forEachChild(t,S_)}function D_(e){return 3&e.flags&&0!=(2&jf(e))&&Qi(e)!==tt}function k_(e){var t=e.parent;return 189===t.kind||191===t.kind&&t.expression===e||190===t.kind&&t.expression===e||186===t.kind&&t.name===e&&!!t.initializer}function C_(e){return 58982400&e.flags&&Fm(yo(e)||Ae,98304)}function T_(e,t){return e&&k_(t)&&r_(e,C_)?a_(ed(e),vo):e}function E_(e,t){!cn(e,67220415)||Ed(t)||by(ln(e))||_n(e)}function N_(t){var r=Td(t);if(r===te)return oe;if(r===K){var n=e.getContainingFunction(t);return A<2&&(197===n.kind?Ar(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasModifier(n,256)&&Ar(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Ur(n).flags|=8192,Qi(r)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||E_(r,t);var i=On(r),a=i.valueDeclaration;if(32&i.flags)if(240===a.kind&&e.nodeIsDecorated(a))for(n=e.getContainingClass(t);void 0!==n;){if(n===a&&n.name!==t){Ur(a).flags|=16777216,Ur(t).flags|=33554432;break}n=e.getContainingClass(n)}else if(209===a.kind)for(n=e.getThisContainer(t,!1);279!==n.kind;){if(n.parent===a){154===n.kind&&e.hasModifier(n,32)&&(Ur(a).flags|=16777216,Ur(t).flags|=33554432);break}n=e.getThisContainer(n,!1)}!function(t,r){if(!(A>=2||0==(34&r.flags)||274===r.valueDeclaration.parent.kind)){for(var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,function(t){return t===r?"quit":e.isFunctionLike(t)})}(t.parent,n),a=n,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}if(o){if(i){var s=!0;if(e.isForStatement(n)&&e.getAncestor(r.valueDeclaration,238).parent===n){var c=function(t,r){return e.findAncestor(t,function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement})}(t.parent,n);if(c){var u=Ur(c);u.flags|=131072;var l=u.capturedBlockScopeBindings||(u.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),c===n.initializer&&(s=!1)}}s&&(Ur(a).flags|=65536)}225===n.kind&&e.getAncestor(r.valueDeclaration,238).parent===n&&function(t,r){for(var n=t;195===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(202===n.parent.kind||203===n.parent.kind){var a=n.parent;i=44===a.operator||45===a.operator}return!!i&&!!e.findAncestor(n,function(e){return e===r?"quit":e===r.statement})}(t,n)&&(Ur(r.valueDeclaration).flags|=4194304),Ur(r.valueDeclaration).flags|=524288}i&&(Ur(r.valueDeclaration).flags|=262144)}}(t,r);var o=T_(Qi(i),t),s=e.getAssignmentTargetKind(t);if(s){if(!(3&i.flags||e.isInJSFile(t)&&512&i.flags))return Ar(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,ii(r)),oe;if(Em(i))return 3&i.flags?Ar(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,ii(r)):Ar(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ii(r)),oe}var c=2097152&i.flags;if(3&i.flags){if(1===s)return o}else{if(!c)return o;a=e.find(r.declarations,f)}if(!a)return o;for(var u=151===e.getRootDeclaration(a).kind,l=b_(a),d=b_(t),_=d!==l,p=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&Vd(t.parent.parent),m=134217728&r.flags;d!==l&&(196===d.kind||197===d.kind||e.isObjectLiteralOrClassExpressionMethod(d))&&(D_(i)||u&&!x_(i));)d=b_(d);var g=u||c||_||p||m||o!==ie&&o!==tt&&(!F||0!=(3&o.flags)||Ed(t)||257===t.parent.kind)||213===t.parent.kind||237===a.kind&&a.exclamationToken||4194304&a.flags,h=v_(t,o,g?u?function(e,t){return F&&151===t.kind&&t.initializer&&32768&Jl(e)&&!(32768&Jl(eg(t.initializer)))?zd(e,524288):e}(o,a):o:o===ie||o===tt?ce:Vl(o),d,!g);if(h_(t)||o!==ie&&o!==tt){if(!g&&!(32768&Jl(o))&&32768&Jl(h))return Ar(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,ii(r)),o}else if(h===ie||h===tt)return L&&(Ar(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ii(r),oi(h)),Ar(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,ii(r),oi(h))),eh(h);return s?Fl(h):h}function A_(e,t){Ur(e).flags|=2,154===t.kind||157===t.kind?Ur(t.parent).flags|=4:Ur(t).flags|=4}function w_(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,w_)}function P_(e){var t=Ur(e);return void 0===t.hasSuperCall&&(t.superCall=w_(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function F_(e){return ua(va(Pn(e)))===de}function I_(t,r,n){var i=r.parent;if(e.getEffectiveBaseTypeNode(i)&&!F_(i)){var a=P_(r);(!a||a.end>t.pos)&&Ar(t,n)}}function M_(t){var r=e.getThisContainer(t,!0),n=!1;switch(157===r.kind&&I_(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),197===r.kind&&(r=e.getThisContainer(r,!1),n=!0),r.kind){case 244:Ar(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 243:Ar(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 157:L_(t,r)&&Ar(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 154:case 153:e.hasModifier(r,32)&&Ar(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 149:Ar(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}n&&A<2&&A_(t,r);var i=O_(t,r);if(!i&&R){var a=Ar(t,n&&279===r.kind?e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this_which_implicitly_has_type_any:e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);e.isSourceFile(r)||O_(r)&&Nr(a,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}return i||ne}function O_(t,r){void 0===r&&(r=e.getThisContainer(t,!1));var n=e.isInJSFile(t);if(e.isFunctionLike(r)&&(!U_(t)||e.getThisParameter(r))){var i=function(t){return 196===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:156===t.kind&&188===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:196===t.kind&&275===t.parent.kind&&188===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:196===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.arguments[0].expression:void 0}(r);if(n&&i){var a=eg(i).symbol;if(a&&a.members&&16&a.flags&&(o=Kp(a)))return v_(t,o)}else if(n&&(196===r.kind||239===r.kind)&&e.getJSDocClassTag(r)){var o;if(o=Kp(r.symbol))return v_(t,o)}var s=Ki(r)||z_(r);if(s)return v_(t,s)}if(e.isClassLike(r.parent)){var c,u=Pn(r.parent);return v_(t,c=e.hasModifier(r,32)?Qi(u):va(u).thisType)}if(n&&(c=function(t){var r=e.getJSDocType(t);if(r&&289===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return cu(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return cu(i.typeExpression)}(r))&&c!==oe)return v_(t,c)}function L_(t,r){return!!e.findAncestor(t,function(e){return e===r?"quit":151===e.kind})}function R_(t){var r=191===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=!1;if(!r)for(;n&&197===n.kind;)n=e.getSuperContainer(n,!0),i=A<2;var a=0;if(!function(t){return!!t&&(r?157===t.kind:!(!e.isClassLike(t.parent)&&188!==t.parent.kind)&&(e.hasModifier(t,32)?156===t.kind||155===t.kind||158===t.kind||159===t.kind:156===t.kind||155===t.kind||158===t.kind||159===t.kind||154===t.kind||153===t.kind||157===t.kind))}(n)){var o=e.findAncestor(t,function(e){return e===n?"quit":149===e.kind});return o&&149===o.kind?Ar(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Ar(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):n&&n.parent&&(e.isClassLike(n.parent)||188===n.parent.kind)?Ar(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Ar(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),oe}if(r||157!==n.kind||I_(t,n,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),a=e.hasModifier(n,32)||r?512:256,Ur(t).flags|=a,156===n.kind&&e.hasModifier(n,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?Ur(n).flags|=4096:Ur(n).flags|=2048),i&&A_(t.parent,n),188===n.parent.kind)return A<2?(Ar(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),oe):ne;var s=n.parent;if(!e.getEffectiveBaseTypeNode(s))return Ar(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),oe;var c=va(Pn(s)),u=c&&la(c)[0];return u?157===n.kind&&L_(t,n)?(Ar(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),oe):512===a?ua(c):Ba(u,c.thisType):oe}function B_(t){return 4&e.getObjectFlags(t)&&t.target===$e?t.typeArguments[0]:void 0}function j_(t){return a_(t,function(t){return 2097152&t.flags?e.forEach(t.types,B_):B_(t)})}function z_(t){if(197!==t.kind){if(Iu(t)){var r=lf(t);if(r){var n=r.thisParameter;if(n)return Qi(n)}}var i=e.isInJSFile(t);if(R||i){var a=function(e){return 156!==e.kind&&158!==e.kind&&159!==e.kind||188!==e.parent.kind?196===e.kind&&275===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=ef(a),s=a,c=o;c;){var u=j_(c);if(u)return Eu(u,rf(a));if(275!==s.parent.kind)break;c=ef(s=s.parent.parent)}return o?Wl(o):Vm(a)}var l=t.parent;if(204===l.kind&&59===l.operatorToken.kind){var d=l.left;if(189===d.kind||190===d.kind){var _=d.expression;if(i&&e.isIdentifier(_)){var f=e.getSourceFileOfNode(l);if(f.commonJsModuleIndicator&&Td(_)===f.symbol)return}return Vm(_)}}}}}function J_(t){var r=t.parent;if(Iu(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=kp(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return yp(i,a,i.length,ne,void 0);var o=Ur(n),s=o.resolvedSignature;o.resolvedSignature=Tt;var c=a<i.length?Il(eg(i[a])):t.initializer?void 0:ue;return o.resolvedSignature=s,c}var u=lf(r);if(u){var l=r.parameters.indexOf(t)-(e.getThisParameter(r)?1:0);return t.dotDotDotToken&&e.lastOrUndefined(r.parameters)===t?am(u,l):im(u,l)}}}function U_(t){for(var r=!1;t.parent&&!e.isFunctionLike(t.parent);){if(e.isParameter(t.parent)&&(r||t.parent.initializer===t))return!0;e.isBindingElement(t.parent)&&t.parent.initializer===t&&(r=!0),t=t.parent}return!1}function q_(e){var t=ts(e);if(t)return t;var r=cf(e);return r&&!function(e){return!e.resolvedReturnType&&gi(e,3)>=0}(r)?es(r):void 0}function K_(e,t){var r=kp(e).indexOf(t);return-1===r?void 0:V_(e,r)}function V_(t,r){var n=Ur(t).resolvedSignature===Nt?Nt:Jp(t);return e.isJsxOpeningLikeElement(t)&&0===r?nf(n,t):nm(n,r)}function W_(t){var r=t.parent,n=r.left,i=r.operatorToken,a=r.right;switch(i.kind){case 59:if(t!==a)return;var o=function(t){var r=e.getAssignmentDeclarationKind(t);switch(r){case 0:return!0;case 5:case 1:case 6:case 3:if(t.left.symbol){var n=t.left.symbol.valueDeclaration;if(!n)return!1;var i=t.left,a=e.getEffectiveTypeAnnotationNode(n);if(a)return cu(a);if(e.isIdentifier(i.expression)){var o=i.expression,s=Wr(o,o.escapedText,67220415,void 0,o.escapedText,!0);if(s){var c=e.getEffectiveTypeAnnotationNode(s.valueDeclaration);if(c){var u=H_(cu(c),i.name.escapedText);return u||!1}return!1}}return!e.isInJSFile(n)}return!0;case 2:case 4:if(!t.symbol)return!0;if(t.symbol.valueDeclaration){var c=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(c){var u=cu(c);if(u)return u}}if(2===r)return!1;var l=t.left;if(!e.isObjectLiteralMethod(e.getThisContainer(l.expression,!1)))return!1;var d=M_(l.expression);return d&&H_(d,l.name.escapedText)||!1;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(r)}}(r);if(!o)return;return!0===o?Zm(n):o;case 55:var s=tf(r);return s||t!==a||e.isDefaultedExpandoInitializer(r)?s:Zm(n);case 54:case 27:return t===a?tf(r):void 0;default:return}}function H_(e,t){return a_(e,function(e){if(3670016&e.flags){var r=Ao(e,t);if(r)return Qi(r);if(Ll(e)){var n=Rl(e);if(n&&gf(t)&&+t>=0)return n}return gf(t)&&G_(e,1)||G_(e,0)}},!0)}function G_(e,t){return a_(e,function(e){return Io(e,t)},!0)}function X_(e){var t=ef(e.parent);if(t){if(!Fa(e)){var r=H_(t,Pn(e).escapedName);if(r)return r}return pf(e.name)&&G_(t,1)||G_(t,0)}}function Q_(e,t){return e&&(H_(e,""+t)||_h(e,void 0,!1,!1,!1))}function Y_(t){var r=t.parent;return e.isJsxAttributeLike(r)?tf(t):e.isJsxElement(r)?function(e){var t=ef(e.openingElement.tagName),r=Pf(Af(e));return t&&!xi(t)&&r&&""!==r?H_(t,r):void 0}(r):void 0}function Z_(t){if(e.isJsxAttribute(t)){var r=ef(t.parent);if(!r||xi(r))return;return H_(r,t.name.escapedText)}return tf(t.parent)}function $_(e){switch(e.kind){case 10:case 8:case 9:case 14:case 102:case 87:case 96:case 72:case 141:return!0;case 189:case 195:return $_(e.expression);case 270:return!e.expression||$_(e.expression)}return!1}function ef(t){var r=tf(t);if((r=r&&a_(r,Co))&&1048576&r.flags){if(e.isObjectLiteralExpression(t))return function(t,r){return sl(r,e.map(e.filter(t.properties,function(e){return!!e.symbol&&275===e.kind&&$_(e.initializer)&&Md(r,e.symbol.escapedName)}),function(e){return[function(){return eg(e.initializer)},e.symbol.escapedName]}),zu,r)}(t,r);if(e.isJsxAttributes(t))return function(t,r){return sl(r,e.map(e.filter(t.properties,function(e){return!!e.symbol&&267===e.kind&&Md(r,e.symbol.escapedName)&&(!e.initializer||$_(e.initializer))}),function(e){return[e.initializer?function(){return eg(e.initializer)}:function(){return he},e.symbol.escapedName]}),zu,r)}(t,r)}return r}function tf(t){if(!(8388608&t.flags)){if(t.contextualType)return t.contextualType;var r=t.parent;switch(r.kind){case 237:case 151:case 154:case 153:case 186:return function(t){var r=t.parent;if(e.hasInitializer(r)&&t===r.initializer){var n=e.getEffectiveTypeAnnotationNode(r);if(n)return cu(n);if(151===r.kind){var i=J_(r);if(i)return i}if(e.isBindingPattern(r.name))return Li(r.name,!0,!1);if(e.isBindingPattern(r.parent)){var a=r.parent.parent,o=r.propertyName||r.name;if(186!==a.kind){var s=e.getEffectiveTypeAnnotationNode(a);if(s&&!e.isBindingPattern(o)){var c=e.getTextOfPropertyName(o);if(c)return bi(cu(s),c)}}}}}(t);case 197:case 230:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r);if(1&n)return;var i=q_(r);if(i){if(2&n){var a=xg(i);return a&&mc([a,mm(a)])}return i}}}(t);case 207:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=q_(r);if(i)return t.asteriskToken?i:gh(i,0!=(2&n))}}(r);case 201:return function(e){var t=tf(e);if(t){var r=kg(t);return r&&mc([r,mm(r)])}}(r);case 191:case 192:return K_(r,t);case 194:case 212:return cu(r.type);case 204:return W_(t);case 275:case 276:return X_(r);case 277:return ef(r.parent);case 187:var n=r;return Q_(ef(n),e.indexOfNode(n.elements,t));case 205:return function(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?tf(t):void 0}(t);case 216:return e.Debug.assert(206===r.parent.kind),function(e,t){if(193===e.parent.kind)return K_(e.parent,t)}(r.parent,t);case 195:var i=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return i?cu(i.typeExpression.type):tf(r);case 270:return Y_(r);case 267:case 269:return Z_(r);case 262:case 261:return function(t){return e.isJsxOpeningElement(t)&&t.parent.contextualType?t.parent.contextualType:V_(t,0)}(r)}}}function rf(t){var r=e.findAncestor(t,function(e){return!!e.contextualMapper});return r?r.contextualMapper:E}function nf(r,n){return 0!==bp(n)?function(e,r){var n=_m(e,Ae);n=af(r,Af(r),n);var i=Ef(t.IntrinsicAttributes,r);return i!==oe&&(n=Wa(i,n)),n}(r,n):function(r,n){var i,a=Af(n),o=(i=a,wf(t.ElementAttributesPropertyNameContainer,i)),s=void 0===o?_m(r,Ae):""===o?es(r):function(e,t){var r=es(e);return xi(r)?r:bi(r,t)}(r,o);if(!s)return o&&e.length(n.attributes.properties)&&Ar(n,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(o)),Ae;if(xi(s=af(n,a,s)))return s;var c=s,u=Ef(t.IntrinsicClassAttributes,n);if(u!==oe){var l=na(u.symbol),d=es(r);c=Wa(l?vs(u,Wo([d],l,Vo(l),e.isInJSFile(n))):u,c)}var _=Ef(t.IntrinsicAttributes,n);return _!==oe&&(c=Wa(_,c)),c}(r,n)}function af(r,n,i){var a,o=(a=n)&&Kr(a.exports,t.LibraryManagedAttributes,67897832);if(o){var s=va(o),c=function(e){if(Df(e.tagName))return ls(Bp(e,t=If(e)));var t,r=Vm(e.tagName);return 128&r.flags?(t=Ff(r,e))?ls(Bp(e,t)):oe:r}(r);if(e.length(s.typeParameters)>=2)return vs(s,u=Wo([c,i],s.typeParameters,2,e.isInJSFile(r)));if(e.length(s.aliasTypeArguments)>=2){var u=Wo([c,i],s.aliasTypeArguments,2,e.isInJSFile(r));return Ds(s.aliasSymbol,u)}}return i}function of(t,r){var n=Po(t,0);if(1===n.length){var i=n[0];if(!function(t,r){for(var n=0;n<r.parameters.length;n++){var i=r.parameters[n];if(i.initializer||i.questionToken||i.dotDotDotToken||jo(i))break}return r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&n--,!cm(t)&&om(t)<n}(i,r))return i}}function sf(e){return 196===e.kind||197===e.kind}function cf(t){return sf(t)||e.isObjectLiteralMethod(t)?lf(t):void 0}function uf(t){return e.isObjectLiteralMethod(t)?function(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(8388608&t.flags))return X_(t)}(t):ef(t)}function lf(t){e.Debug.assert(156!==t.kind||e.isObjectLiteralMethod(t));var r=Go(t);if(r)return r;var n=uf(t);if(n){if(!(1048576&n.flags))return of(n,t);for(var i,a,o=0,s=n.types;o<s.length;o++){var c=of(s[o],t);if(c)if(i){if(!xl(i[0],c,!1,!0,!0,Lu))return;i.push(c)}else i=[c]}return i&&((a=Ja(i[0])).unionSignatures=i),a}}function df(e){return 186===e.kind&&!!e.initializer||204===e.kind&&59===e.operatorToken.kind}function _f(t,r,n){for(var i=t.elements,a=i.length,o=!1,s=[],c=e.isAssignmentTarget(t),u=ef(t),l=0;l<a;l++){var d=i[l];if(c&&208===d.kind){var _=eg(d.expression,r,n),f=Oo(_,1)||_h(_,void 0,!1,!1,!1);f&&s.push(f)}else{var p=Gm(d,r,Q_(u,l),n);s.push(p)}l<a-1&&208===d.kind&&(o=!0)}if(!o){var m=a>0&&208===i[a-1].kind,g=a-(m?1:0),h=void 0;if(c&&g>0)return(p=bs(oc(s,g,m))).pattern=t,p;if(h=ff(s,u,m,a))return h;if(n)return oc(s,g,m)}return function(e,t){return void 0===t&&(t=1),nc(e.length?mc(e,t):F?ke:ue)}(s,2)}function ff(t,r,n,i){if(void 0===i&&(i=t.length),r&&r_(r,El)){var a=i-(n?1:0),o=r.pattern;if(!n&&o&&(185===o.kind||187===o.kind))for(var s=o.elements,c=i;c<s.length;c++){var u=s[c];df(u)?t.push(r.typeArguments[c]):(c<s.length-1||!(186===u.kind&&u.dotDotDotToken||208===u.kind))&&(210!==u.kind&&Ar(u,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),t.push(F?ke:ue))}return oc(t,a,n)}}function pf(e){switch(e.kind){case 149:return function(e){return Im(hf(e),296)}(e);case 72:return gf(e.escapedText);case 8:case 10:return gf(e.text);default:return!1}}function mf(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function gf(e){return(+e).toString()===e}function hf(t){var r=Ur(t.expression);return r.resolvedType||(r.resolvedType=eg(t.expression),98304&r.resolvedType.flags||!Im(r.resolvedType,12716)&&!zu(r.resolvedType,Te)?Ar(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):op(t.expression,r.resolvedType,!0)),r.resolvedType}function yf(e,t,r,n){for(var i=[],a=0;a<r.length;a++)(0===n||pf(e[a+t].name))&&i.push(Qi(r[a]));return fs(i.length?mc(i,2):ce,!1)}function vf(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=Jr(t);if(!r.immediateTarget){var n=en(t);if(!n)return e.Debug.fail();r.immediateTarget=sn(n,!0)}return r.immediateTarget}function bf(t,r){var n,i=e.isAssignmentTarget(t);!function(t,r){var n;!function(e){e[e.Property=1]="Property",e[e.GetAccessor=2]="GetAccessor",e[e.SetAccessor=4]="SetAccessor",e[e.GetOrSetAccessor=6]="GetOrSetAccessor"}(n||(n={}));for(var i=e.createUnderscoreEscapedMap(),a=0,o=t.properties;a<o.length;a++){var s=o[a];if(277!==s.kind){var c=s.name;if(149===c.kind&&Zy(c),276===s.kind&&!r&&s.objectAssignmentInitializer)return _v(s.equalsToken,e.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(s.modifiers)for(var u=0,l=s.modifiers;u<l.length;u++){var d=l[u];121===d.kind&&156===s.kind||_v(d,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(d))}var _=void 0;switch(s.kind){case 276:tv(s.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 275:ev(s.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===c.kind&&pv(c);case 156:_=1;break;case 158:_=2;break;case 159:_=4;break;default:throw e.Debug.assertNever(s,"Unexpected syntax kind:"+s.kind)}var f=e.getPropertyNameForPropertyNameNode(c);if(void 0!==f){var p=i.get(f);if(p)if(1===_&&1===p)_v(c,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(c));else{if(!(6&_&&6&p))return _v(c,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(6===p||_===p)return _v(c,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);i.set(f,_|p)}else i.set(f,_)}}}}(t,i);var a=[],o=Ae,s=0,c=ef(t),u=c&&c.pattern&&(184===c.pattern.kind||188===c.pattern.kind),l=e.isInJSFile(t)&&!e.isInJsonFile(t),d=e.getJSDocEnumTag(t),_=!c&&l&&!d,f=0,p=!1,m=!1,g=!1;n=e.createSymbolTable();for(var h=0,y=0;y<t.properties.length;y++){var v=t.properties[y],b=Pn(v),x=v.name&&149===v.name.kind&&!e.isWellKnownSymbolSyntactically(v.name.expression)?hf(v.name):void 0;if(275===v.kind||276===v.kind||e.isObjectLiteralMethod(v)){var S=275===v.kind?Xm(v,r):276===v.kind?Gm(v.name,r):Qm(v,r);if(l){var D=Ti(v);D?(Ku(S,D,v),S=D):d&&d.typeExpression&&Ku(S,cu(d.typeExpression),v)}f|=S.flags;var k=x&&8576&x.flags?x:void 0,C=k?Pr(4|b.flags,Ia(k),1024):Pr(4|b.flags,b.escapedName);if(k&&(C.nameType=k),i)(275===v.kind&&df(v.initializer)||276===v.kind&&v.objectAssignmentInitializer)&&(C.flags|=16777216);else if(u&&!(512&e.getObjectFlags(c))){var T=Ao(c,b.escapedName);T?C.flags|=16777216&T.flags:N.suppressExcessPropertyErrors||Mo(c,0)||Ar(v.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ii(b),oi(c))}C.declarations=b.declarations,C.parent=b.parent,b.valueDeclaration&&(C.valueDeclaration=b.valueDeclaration),C.type=S,C.target=b,b=C}else{if(277===v.kind){if(A<2&&zy(v,2),a.length>0&&(o=Yc(o,P(),t.symbol,s,32768),a=[],n=e.createSymbolTable(),m=!1,g=!1,f=0),!xf(S=eg(v.expression)))return Ar(v,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),oe;o=Yc(o,S,t.symbol,s,32768),h=y+1;continue}e.Debug.assert(158===v.kind||159===v.kind),Kh(v)}!x||8576&x.flags?n.set(b.escapedName,b):zu(x,Te)&&(zu(x,fe)?g=!0:m=!0,i&&(p=!0)),a.push(b)}if(u)for(var E=0,w=_o(c);E<w.length;E++)C=w[E],n.get(C.escapedName)||o&&Ao(o,C.escapedName)||(16777216&C.flags||Ar(C.valueDeclaration||C.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),n.set(C.escapedName,C),a.push(C));return o!==Ae?(a.length>0&&(o=Yc(o,P(),t.symbol,s,32768)),o):P();function P(){var r=m?yf(t.properties,h,a,0):void 0,o=g?yf(t.properties,h,a,1):void 0,c=Vn(t.symbol,n,e.emptyArray,e.emptyArray,r,o);return c.flags|=268435456|939524096&f,c.objectFlags|=128|j,_&&(c.objectFlags|=16384),p&&(c.objectFlags|=512),i&&(c.pattern=t),s|=939524096&c.flags,c}}function xf(t){return!!(126615555&t.flags||117632&Jl(t)&&xf(Ul(t))||3145728&t.flags&&e.every(t.types,xf))}function Sf(t){return!e.stringContains(t,"-")}function Df(t){return 72===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function kf(e,t){return e.initializer?Gm(e.initializer,t):he}function Cf(e,t){for(var r=[],n=0,i=e.children;n<i.length;n++){var a=i[n];11===a.kind?a.containsOnlyWhiteSpaces||r.push(_e):r.push(Gm(a,t))}return r}function Tf(t,r){return function(t,r){for(var n,i=t.attributes,a=e.createSymbolTable(),o=we,s=!1,c=!1,u=0,l=4096,d=Pf(Af(t)),_=0,f=i.properties;_<f.length;_++){var p=f[_],m=p.symbol;if(e.isJsxAttribute(p)){var g=kf(p,r);u|=939524096&g.flags;var h=Pr(33554436|m.flags,m.escapedName);h.declarations=m.declarations,h.parent=m.parent,m.valueDeclaration&&(h.valueDeclaration=m.valueDeclaration),h.type=g,h.target=m,a.set(h.escapedName,h),p.name.escapedText===d&&(c=!0)}else e.Debug.assert(269===p.kind),a.size>0&&(o=Yc(o,k(),i.symbol,u,l),a=e.createSymbolTable()),xi(g=Vm(p.expression,r))&&(s=!0),xf(g)?o=Yc(o,g,i.symbol,u,l):n=n?xc([n,g]):g}s||a.size>0&&(o=Yc(o,k(),i.symbol,u,l));var y=260===t.parent.kind?t.parent:void 0;if(y&&y.openingElement===t&&y.children.length>0){var v=Cf(y,r);if(!s&&d&&""!==d){c&&Ar(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var b=ef(t.attributes),x=b&&H_(b,d),S=Pr(33554436,d);S.type=1===v.length?v[0]:ff(v,x,!1)||nc(mc(v));var D=e.createSymbolTable();D.set(d,S),o=Yc(o,Vn(i.symbol,D,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,u,l)}}return s?ne:n&&o!==we?xc([n,o]):n||(o===we?k():o);function k(){l|=j;var t=Vn(i.symbol,a,e.emptyArray,e.emptyArray,void 0,void 0);return t.flags|=268435456|u,t.objectFlags|=128|l,t}}(t.parent,r)}function Ef(e,t){var r=Af(t),n=r&&Tn(r),i=n&&Kr(n,e,67897832);return i?va(i):oe}function Nf(r){var n=Ur(r);if(!n.resolvedSymbol){var i=Ef(t.IntrinsicElements,r);if(i!==oe){if(!e.isIdentifier(r.tagName))return e.Debug.fail();var a=Ao(i,r.tagName.escapedText);return a?(n.jsxFlags|=1,n.resolvedSymbol=a):Oo(i,0)?(n.jsxFlags|=2,n.resolvedSymbol=i.symbol):(Ar(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(r.tagName),"JSX."+t.IntrinsicElements),n.resolvedSymbol=te)}return L&&Ar(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(t.IntrinsicElements)),n.resolvedSymbol=te}return n.resolvedSymbol}function Af(e){var r=e&&Ur(e);if(r&&r.jsxNamespace)return r.jsxNamespace;if(!r||!1!==r.jsxNamespace){var n=Er(e),i=Wr(e,n,1920,void 0,n,!1);if(i){var a=Kr(Tn(un(i)),t.JSX,1920);if(a)return r&&(r.jsxNamespace=a),a;r&&(r.jsxNamespace=!1)}}return js(t.JSX,1920,void 0)}function wf(t,r){var n=r&&Kr(r.exports,t,67897832),i=n&&va(n),a=i&&_o(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&Ar(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Pf(e){return wf(t.ElementChildrenAttributeNameContainer,e)}function Ff(r,n){var i=Ef(t.IntrinsicElements,n);if(i!==oe){var a=r.value,o=Ao(i,e.escapeLeadingUnderscores(a));if(o)return Qi(o);var s=Oo(i,0);return s||void 0}return ne}function If(t){e.Debug.assert(Df(t.tagName));var r=Ur(t);if(!r.resolvedJsxElementAttributesType){var n=Nf(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=Qi(n):2&r.jsxFlags?r.resolvedJsxElementAttributesType=ps(n,0).type:r.resolvedJsxElementAttributesType=oe}return r.resolvedJsxElementAttributesType}function Mf(e){var r=Ef(t.ElementClass,e);if(r!==oe)return r}function Of(e){return Ef(t.Element,e)}function Lf(e){var t=Of(e);if(t)return mc([t,le])}function Rf(t){var r,n=e.isJsxOpeningLikeElement(t);n&&function(t){Gy(t,t.typeArguments);for(var r=e.createUnderscoreEscapedMap(),n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(269!==a.kind){var o=a.name,s=a.initializer;if(r.get(o.escapedText))return _v(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(r.set(o.escapedText,!0),s&&270===s.kind&&!s.expression)return _v(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(t),r=t,0===(N.jsx||0)&&Ar(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===Of(r)&&L&&Ar(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);var i=ir&&2===N.jsx?e.Diagnostics.Cannot_find_name_0:void 0,a=Er(t),o=Wr(n?t.tagName:t,a,67220415,i,a,!0);if(o&&(o.isReferenced=67108863,2097152&o.flags&&!by(ln(o))&&_n(o)),n){var s=Jp(t);!function(t,r,n){if(1===t)(i=Lf(n))&&ol(r,i,br,n,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements);else if(0===t)(a=Mf(n))&&ol(r,a,br,n,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements);else{var i=Lf(n),a=Mf(n);if(!i||!a)return;ol(r,mc([i,a]),br,n,e.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements)}}(bp(t),es(s),t)}}function Bf(e,t,r){if(524288&e.flags){var n=so(e);if(n.stringIndexInfo||n.numberIndexInfo&&gf(t)||uo(e,t)||r&&!Sf(t))return!0}else if(3145728&e.flags){for(var i=0,a=e.types;i<a.length;i++)if(Bf(a[i],t,r))return!0}else if(16777216&e.flags)return Bf(e.root.trueType,t,r)||Bf(e.root.falseType,t,r);return!1}function jf(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function zf(t){if(8192&t.flags||4&e.getCheckFlags(t))return!0;if(e.isInJSFile(t.valueDeclaration)){var r=t.valueDeclaration.parent;return r&&e.isBinaryExpression(r)&&3===e.getAssignmentDeclarationKind(r)}}function Jf(t,r,n,i){var a,o=e.getDeclarationModifierFlagsFromSymbol(i),s=148===t.kind?t.right:183===t.kind?t:t.name;if(256&e.getCheckFlags(i))return Ar(s,e.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,ii(i),oi(n)),!1;if(r){if(A<2&&Uf(i))return Ar(s,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&o)return Ar(s,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ii(i),oi(hl(i))),!1}if(128&o&&e.isThisProperty(t)&&Uf(i)&&(a=e.getClassLikeDeclarationOfSymbol(Fn(i)))&&function(t){return!!e.findAncestor(t,function(t){return!!(e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t))||!(!e.isClassLike(t)&&!e.isFunctionLikeDeclaration(t))&&"quit"})}(t))return Ar(s,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ii(i),e.getTextOfIdentifierOrLiteral(a.name)),!1;if(!(24&o))return!0;if(8&o)return!!ey(t,a=e.getClassLikeDeclarationOfSymbol(Fn(i)))||(Ar(s,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,ii(i),oi(hl(i))),!1);if(r)return!0;var c=$h(t,function(t){var r=va(Pn(t));return function(t,r){return gl(r,function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&!$i(t,hl(r))})?void 0:t}(r,i)?r:void 0});if(!c){var u=void 0;if(32&o||!(u=function(t){var r=e.getThisContainer(t,!1);return r&&e.isFunctionLike(r)?e.getThisParameter(r):void 0}(t))||!u.type)return Ar(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ii(i),oi(hl(i)||n)),!1;var l=cu(u.type);c=262144&l.flags?po(l):l}return!!(32&o)||(262144&n.flags&&(n=n.isThisType?po(n):yo(n)),!(!n||!$i(n,c))||(Ar(s,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,ii(i),oi(c)),!1))}function Uf(e){return!!gl(e,function(e){return!(8192&e.flags)})}function qf(e,t,r,n){return Vf(eg(e),e,t,r,n)}function Kf(e){return 98304&(F?Jl(e):e.flags)?Wl(e):e}function Vf(t,r,n,i,a){if(2&t.flags)return Ar(r,e.Diagnostics.Object_is_of_type_unknown),oe;var o=98304&(F?Jl(t):t.flags);if(o){Ar(r,32768&o?65536&o?a||e.Diagnostics.Object_is_possibly_null_or_undefined:i||e.Diagnostics.Object_is_possibly_undefined:n||e.Diagnostics.Object_is_possibly_null);var s=Wl(t);return 229376&s.flags?oe:s}return t}function Wf(e){return Gf(e,e.expression,e.name)}function Hf(e){return Gf(e,e.left,e.right)}function Gf(t,r,n){var i,a=qf(r),o=Ur(r).resolvedSymbol,s=Co(ed(a));if(xi(s)||s===De)return e.isIdentifier(r)&&o&&E_(o,t),s;var c=e.getAssignmentTargetKind(t),u=Ao(s,n.escapedText);if(!e.isIdentifier(r)||!o||u&&by(u)||E_(o,t),u){if(function(t,r,n){var i,a=t.valueDeclaration;if(a){var o=e.idText(n);!function(t){return!!e.findAncestor(t,function(t){switch(t.kind){case 154:return!0;case 275:return!1;default:return!e.isExpressionNode(t)&&"quit"}})}(r)||Vr(a,n)||function(e){if(!(32&e.parent.flags))return!1;for(var t=Qi(e.parent);;){if(!(t=t.symbol&&Xf(t)))return!1;var r=Ao(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(t)?240!==a.kind||164===r.parent.kind||4194304&a.flags||Vr(a,n)||(i=Ar(n,e.Diagnostics.Class_0_used_before_its_declaration,o)):i=Ar(n,e.Diagnostics.Property_0_is_used_before_its_initialization,o),i&&Nr(i,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,o))}}(u,t,n),rp(u,t,100===r.kind),Ur(t).resolvedSymbol=u,Jf(t,98===r.kind,s,u),c&&(Nm(t,u)||Am(t)))return Ar(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(n)),oe;i=T_(Qi(u),t)}else{var l=Mo(s,0);if(!l||!l.type)return Nc(a)?ne:(n.escapedText&&!Yr(t)&&function(t,r){var n,i;if(1048576&r.flags&&!(131068&r.flags))for(var a=0,o=r.types;a<o.length;a++){var s=o[a];if(!Ao(s,t.escapedText)){n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),oi(s));break}}if(Qf(t.escapedText,r))n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_is_a_static_member_of_type_1,e.declarationNameToString(t),oi(r));else{var c=Sg(r);if(c&&Ao(c,t.escapedText))n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await,e.declarationNameToString(t),oi(r));else{var u=Yf(t,r);if(void 0!==u){var l=e.symbolName(u);n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e.declarationNameToString(t),oi(r),l),i=u.valueDeclaration&&e.createDiagnosticForNode(u.valueDeclaration,e.Diagnostics._0_is_declared_here,l)}else n=e.chainDiagnosticMessages(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),oi(r))}}var d=e.createDiagnosticForNodeFromMessageChain(t,n);i&&Nr(d,i),ir.add(d)}(n,262144&a.flags&&a.isThisType?s:a),oe);l.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))&&Ar(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,oi(s)),i=l.type}if(189!==t.kind||1===c||u&&!(98311&u.flags)&&!(8192&u.flags&&1048576&i.flags))return i;var d=!1;if(F&&O&&100===r.kind){var _=u&&u.valueDeclaration;if(_&&Eh(_)){var f=b_(t);157===f.kind&&f.parent===_.parent&&(d=!0)}}else F&&u&&u.valueDeclaration&&e.isPropertyAccessExpression(u.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(u.valueDeclaration)&&b_(t)===b_(u.valueDeclaration)&&(d=!0);var p=v_(t,i,d?Vl(i):i);return d&&!(32768&Jl(i))&&32768&Jl(p)?(Ar(n,e.Diagnostics.Property_0_is_used_before_being_assigned,ii(u)),i):c?Fl(p):p}function Xf(e){var t=la(e);if(0!==t.length)return xc(t)}function Qf(t,r){var n=r.symbol&&Ao(Qi(r.symbol),t);return void 0!==n&&n.valueDeclaration&&e.hasModifier(n.valueDeclaration,32)}function Yf(t,r){return tp(e.isString(t)?t:e.idText(t),_o(r),67220415)}function Zf(t,r){var n=Yf(t,r);return n&&e.symbolName(n)}function $f(t,r,n){return e.Debug.assert(void 0!==r,"outername should always be defined"),Hr(t,r,n,void 0,r,!1,!1,function(t,n,i){return e.Debug.assertEqual(r,n,"name should equal outerName"),Kr(t,n,i)||tp(e.unescapeLeadingUnderscores(n),e.arrayFrom(t.values()),i)})}function ep(t,r){return r.exports&&tp(e.idText(t),kn(r),2623475)}function tp(t,r,n){return e.getSpellingSuggestion(t,r,function(t){var r=e.symbolName(t);return!e.startsWith(r,'"')&&t.flags&n?r:void 0})}function rp(t,r,n){if(t&&106500&t.flags&&t.valueDeclaration&&e.hasModifier(t.valueDeclaration,8)&&(!r||!e.isWriteOnlyAccess(r)||65536&t.flags&&!(32768&t.flags))){if(n){var i=e.findAncestor(r,e.isFunctionLikeDeclaration);if(i&&i.symbol===t)return}(1&e.getCheckFlags(t)?Jr(t).target:t).isReferenced=67108863}}function np(t,r,n,i){if(i===oe||xi(i))return!0;var a=Ao(i,n);return a?Jf(t,r,i,a):e.isInJSFile(t)&&0!=(1048576&i.flags)&&i.types.some(function(e){return np(t,r,n,e)})}function ip(t){var r=t.initializer;if(238===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return Pn(n)}else if(72===r.kind)return Td(r)}function ap(t){var r=qf(t.expression),n=t.argumentExpression;if(!n){var i,a=e.getSourceFileOfNode(t);return 192===t.parent.kind&&t.parent.expression===t?dv(a,i=e.skipTrivia(a.text,t.expression.end),t.end-i,e.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead):dv(a,i=t.end-"]".length,t.end-i,e.Diagnostics.Expression_expected),oe}var o=eg(n);return r===oe||r===De?r:Om(r)&&10!==n.kind?(Ar(n,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),oe):mg(Lc(r,function(t){var r,n=e.skipParentheses(t);if(72===n.kind){var i=Td(n);if(3&i.flags)for(var a=t,o=t.parent;o;){if(226===o.kind&&a===o.statement&&ip(o)===i&&Oo(r=Zm(o.expression),1)&&!Oo(r,0))return!0;a=o,o=o.parent}}return!1}(n)?fe:o,t),t)}function op(t,r,n){if(r===oe)return!1;if(!e.isWellKnownSymbolSyntactically(t))return!1;if(0==(12288&r.flags))return n&&Ar(t,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(t)),!1;var i=t.expression,a=Td(i);if(!a)return!1;var o=Js(!0);return!(!o||a!==o&&(n&&Ar(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),1))}function sp(t){return e.isCallOrNewExpression(t)||e.isTaggedTemplateExpression(t)||e.isJsxOpeningLikeElement(t)}function cp(t){return sp(t)&&e.forEach(t.typeArguments,Uh),193===t.kind?eg(t.template):e.isJsxOpeningLikeElement(t)?eg(t.attributes):152!==t.kind&&e.forEach(t.arguments,function(e){eg(e)}),Tt}function up(e){return cp(e),Et}function lp(e){return!!e&&(208===e.kind||215===e.kind&&e.isSpread)}function dp(t){return e.findIndex(t,lp)}function _p(e){return!!(16384&e.flags)}function fp(t,r,n,i){var a;void 0===i&&(i=!1);var o=!1,s=om(n),c=sm(n);if(193===t.kind)if(a=r.length,206===t.template.kind){var u=e.last(t.template.templateSpans);o=e.nodeIsMissing(u.literal)||!!u.literal.isUnterminated}else{var l=t.template;e.Debug.assert(14===l.kind),o=!!l.isUnterminated}else if(152===t.kind)a=Cp(t,n);else if(e.isJsxOpeningLikeElement(t)){if(o=t.attributes.end===t.end)return!0;a=0===c?r.length:1,s=0===r.length?s:1,c=Math.min(c,1)}else{if(!t.arguments)return e.Debug.assert(192===t.kind),0===sm(n);a=i?r.length+1:r.length,o=t.arguments.end===t.end;var d=dp(r);if(d>=0)return d>=sm(n)&&(cm(n)||d<om(n))}if(!cm(n)&&a>s)return!1;if(o||a>=c)return!0;for(var _=a;_<c;_++)if(131072&i_(nm(n,_),_p).flags)return!1;return!0}function pp(t,r){var n=e.length(t.typeParameters),i=Vo(t.typeParameters);return!r||r.length>=i&&r.length<=n}function mp(e){if(524288&e.flags){var t=so(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function gp(t,r,n,i){var a=ad(t.typeParameters,t,0,i);return id(n?vu(r,n):r,t,function(e,t){gd(a.inferences,e,t)}),n||gd(a.inferences,es(r),es(t),8),ns(t,kd(a),e.isInJSFile(r.declaration))}function hp(t,r,n,i,a){for(var o=0,s=a.inferences;o<s.length;o++){var c=s[o];c.isFixed||(c.inferredType=void 0)}if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=nf(t,e),a=Km(e.attributes,i,r&&void 0!==r[0]?E:n);return gd(n.inferences,a,i),kd(n)}(t,r,i,a);if(152!==t.kind){var u=tf(t);if(u){var l=Eu(u,function(e){return e&&function(e){return!!e.typeParameters}(e)?ad(e.typeParameters,e.signature,1|e.flags,e.compareTypes,e.inferences):e}(rf(t))),d=mp(l),_=d&&d.typeParameters?ls(is(d,d.typeParameters)):l,f=es(r);gd(a.inferences,_,f,8)}}var p=Yo(r);if(p){var m=Sp(t),g=m?eg(m):xe;gd(a.inferences,g,p)}for(var h=lm(r),y=h?Math.min(om(r)-1,n.length):n.length,v=0;v<y;v++){var b=n[v];if(210!==b.kind){var x=nm(r,v),S=Km(b,x,i&&void 0!==i[v]?E:a);gd(a.inferences,S,x)}}if(h){var D=yp(n,y,n.length,h,a);gd(a.inferences,D,h)}return kd(a)}function yp(t,r,n,i,a){if(r>=n-1){var o=t[n-1];if(lp(o))return 215===o.kind?nc(o.type):r_(s=Km(o.expression,i,a),function(e){return!(63176705&e.flags||Dl(e)||Ll(e))})?nc(Oo(s,1)||oe):s}for(var s,c=Oo(i,1)||ne,u=Fm(c,4325372),l=[],d=-1,_=r;_<n;_++){var f=Km(t[_],c,a);d<0&&lp(t[_])&&(d=_-r),l.push(u?nu(f):Il(f))}return d<0?oc(l):oc(e.append(l.slice(0,d),mc(l.slice(d))),d,!0)}function vp(t,r,n,i){for(var a,o=e.isInJSFile(t.declaration),s=t.typeParameters,c=Wo(e.map(r,cu),s,Vo(s),o),u=0;u<r.length;u++){e.Debug.assert(void 0!==s[u],"Should not call checkTypeArguments with too many type arguments");var l=po(s[u]);if(l){var d=n&&i?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,_=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=fu(s,c));var f=c[u];if(!Ku(f,Ba(Eu(l,a),f),n?r[u]:void 0,_,d))return}}return c}function bp(t){if(Df(t.tagName))return 2;var r=Co(eg(t.tagName));return e.length(Po(r,1))?0:e.length(Po(r,0))?1:2}function xp(t,r,n,i,a,o){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n,i){var a=nf(t,e);return Wu(Km(e.attributes,a,n&&n[0]?E:void 0),a,r,i?e.tagName:void 0,e.attributes)}(t,n,i,a,o);var s=Yo(n);if(s&&s!==xe&&192!==t.kind){var c=Sp(t);if(!ol(c?eg(c):xe,s,i,o?c||t:void 0,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1))return!1}for(var u=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,l=lm(n),d=l?Math.min(om(n)-1,r.length):r.length,_=0;_<d;_++){var f=r[_];if(210!==f.kind){var p=nm(n,_),m=Km(f,p,a&&a[_]?E:void 0);if(!Wu(a?Xl(m):m,p,i,o?f:void 0,f,u))return!1}}return!l||ol(yp(r,d,r.length,l,void 0),l,i,o?d<r.length?r[d]:t:void 0,u)}function Sp(t){if(191===t.kind){var r=e.skipOuterExpressions(t.expression);if(189===r.kind||190===r.kind)return r.expression}}function Dp(t,r,n){var i=e.createNode(215,t.pos,t.end);return i.parent=t,i.type=r,i.isSpread=n||!1,i}function kp(t){if(193===t.kind){var r=t.template,n=[Dp(r,ht||(ht=zs("TemplateStringsArray",0,!0))||Ae)];return 206===r.kind&&e.forEach(r.templateSpans,function(e){n.push(e.expression)}),n}if(152===t.kind)return function(t){var r=t.parent,n=t.expression;switch(r.kind){case 240:case 209:return[Dp(n,Qi(Pn(r)))];case 151:var i=r.parent;return[Dp(n,157===r.parent.kind?Qi(Pn(i)):oe),Dp(n,ne),Dp(n,fe)];case 154:case 156:case 158:case 159:var a=154!==r.kind&&0!==A;return[Dp(n,oy(r)),Dp(n,sy(r)),Dp(n,a?$s(iy(r)):ne)]}return e.Debug.fail()}(t);if(e.isJsxOpeningLikeElement(t))return t.attributes.properties.length>0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=i.length;if(a&&lp(i[a-1])&&dp(i)===a-1){var o=i[a-1],s=Vm(o.expression);if(Ll(s)){var c=s.typeArguments||e.emptyArray,u=s.target.hasRestElement?c.length-1:-1,l=e.map(c,function(e,t){return Dp(o,e,t===u)});return e.concatenate(i.slice(0,a-1),l)}}return i}function Cp(t,r){switch(t.parent.kind){case 240:case 209:return 1;case 154:return 2;case 156:case 158:case 159:return 0===A||r.parameters.length<=2?2:3;case 151:return 3;default:return e.Debug.fail()}}function Tp(t,r,n){for(var i,a=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY,u=n.length,l=0,d=r;l<d.length;l++){var _=d[l],f=sm(_),p=om(_);f<u&&f>s&&(s=f),u<p&&p<c&&(c=p),f<a&&(a=f,i=_),o=Math.max(o,p)}var m,g=e.some(r,cm),h=g?a:a<o?a+"-"+o:a,y=dp(n)>-1;if(u<=o&&y&&u--,i&&sm(i)>u&&i.declaration){var v=i.declaration.parameters[i.thisParameter?u+1:u];v&&(m=e.createDiagnosticForNode(v,e.isBindingPattern(v.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,v.name?e.isBindingPattern(v.name)?void 0:e.idText(Mh(v.name)):u))}if(g||y){var b=g&&y?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:g?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more,x=e.createDiagnosticForNode(t,b,h,u);return m?Nr(x,m):x}if(a<u&&u<o)return e.createDiagnosticForNode(t,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,u,s,c);var S=e.createDiagnosticForNode(t,e.Diagnostics.Expected_0_arguments_but_got_1,h,u);return m?Nr(S,m):S}function Ep(t,r,n,a,o){var s,c=193===t.kind,u=152===t.kind,l=e.isJsxOpeningLikeElement(t),d=!n;u||(s=t.typeArguments,(c||l||98!==t.expression.kind)&&e.forEach(s,Uh));var _=n||[];if(function(t,r){var n,i,a,o,s=0,c=-1;e.Debug.assert(!r.length);for(var u=0,l=t;u<l.length;u++){var d=l[u],_=d.declaration&&Pn(d.declaration),f=d.declaration&&d.declaration.parent;i&&_!==i?(a=s=r.length,n=f):n&&f===n?a+=1:(n=f,a=s),i=_,d.hasLiteralTypes?(o=++c,s++):o=a,r.splice(o,0,d)}}(r,_),!_.length)return d&&ir.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),up(t);var f,p,m,g,h=kp(t),y=1===_.length&&!_[0].typeParameters,v=u||y?void 0:Np(h),b=a&&191===t.kind&&t.arguments.hasTrailingComma;if(_.length>1&&(g=S(_,vr,b)),g||(g=S(_,br,b)),g)return g;if(d)if(f)xp(t,h,f,br,void 0,!0);else if(p)ir.add(Tp(t,[p],h));else if(m)vp(m,t.typeArguments,!0,o);else{var x=e.filter(r,function(e){return pp(e,s)});0===x.length?ir.add(function(t,r,n){for(var i=1/0,a=-1/0,o=0,s=r;o<s.length;o++){var c=s[o];i=Math.min(i,Vo(c.typeParameters)),a=Math.max(a,e.length(c.typeParameters))}var u=i===a?i:i+"-"+a;return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,u,n.length)}(t,r,s)):u?o&&ir.add(e.createDiagnosticForNode(t,o)):ir.add(Tp(t,x,h))}return i||!h?up(t):function(t,r,n,i){return e.Debug.assert(r.length>0),i||1===r.length||r.some(function(e){return!!e.typeParameters})?function(t,r,n){var i=function(e,t){for(var r=-1,n=-1,i=0;i<e.length;i++){var a=e[i],o=om(a);if(cm(a)||o>=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===q?n.length:q),a=r[i],o=a.typeParameters;if(!o)return a;var s=sp(t)?t.typeArguments:void 0,c=s?as(a,function(e,t,r){for(var n=e.map(iy);n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(po(t[n.length])||Dd(r));return n}(s,o,e.isInJSFile(t))):function(t,r,n,i){var a=ad(r,n,e.isInJSFile(t)?2:0),o=hp(t,n,i,Np(i),a);return as(n,o)}(t,o,a,n);return r[i]=c,c}(t,r,n):function(t){var r,n=e.mapDefined(t,function(e){return e.thisParameter});n.length&&(r=wp(n,n.map(tm)));for(var i=e.minAndMax(t,Ap),a=i.min,o=i.max,s=[],c=function(r){var n=e.mapDefined(t,function(t){var n=t.parameters,i=t.hasRestParameter;return i?r<n.length-1?n[r]:e.last(n):r<n.length?n[r]:void 0});e.Debug.assert(0!==n.length),s.push(wp(n,e.mapDefined(t,function(e){return im(e,r)})))},u=0;u<o;u++)c(u);var l=e.mapDefined(t,function(t){return t.hasRestParameter?e.last(t.parameters):void 0}),d=0!==l.length;if(d){var _=nc(mc(e.mapDefined(t,rs),2));s.push(Pp(l,_))}return za(t[0].declaration,void 0,r,s,xc(t.map(es)),void 0,a,d,t.some(function(e){return e.hasLiteralTypes}))}(r)}(t,_,h,!!n);function S(r,n,i){if(void 0===i&&(i=!1),f=void 0,p=void 0,m=void 0,y){var a=r[0];if(s||!fp(t,h,a,i))return;return xp(t,h,a,n,v,!1)?a:void(f=a)}for(var o=0;o<r.length;o++)if(pp(a=r[o],s)&&fp(t,h,a,i)){var c=void 0,u=void 0;if(a.typeParameters){var l=void 0;if(s){if(!(l=vp(a,s,!1))){m=a;continue}}else u=ad(a.typeParameters,a,e.isInJSFile(t)?2:0),l=hp(t,a,h,v,u);if(c=ns(a,l,e.isInJSFile(a.declaration)),lm(a)&&!fp(t,h,c,i)){p=c;continue}}else c=a;if(xp(t,h,c,n,v,!1)){if(v&&(v=void 0,u&&(c=ns(a,l=hp(t,a,h,v,u),e.isInJSFile(a.declaration))),!xp(t,h,c,n,v,!1))){f&&!um(f)&&um(c)||(f=c);continue}return r[o]=c,c}f&&!um(f)&&um(c)||(f=c)}}}function Np(e){for(var t,r=0;r<e.length;r++)wu(e[r])&&(t||(t=new Array(e.length)),t[r]=!0);return t}function Ap(e){var t=e.parameters.length;return e.hasRestParameter?t-1:t}function wp(e,t){return Pp(e,mc(t,2))}function Pp(t,r){return Gl(e.first(t),r)}function Fp(e,t,r,n){return xi(e)||xi(t)&&262144&e.flags||!r&&!n&&!(1179648&t.flags)&&zu(e,Ke)}function Ip(t,r,n){if(t.arguments&&A<1){var i=dp(t.arguments);i>=0&&Ar(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=qf(t.expression);if(a===De)return At;if((a=Co(a))===oe)return up(t);if(xi(a))return t.typeArguments&&Ar(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),cp(t);var o=Po(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedModifierFlags(n,24);if(!i)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=va(n.parent.symbol);if(!ey(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=iy(s);if(function t(r,n){var i=la(n);if(!e.length(i))return!1;var a=i[0];if(2097152&a.flags){for(var o=a.types,s=e.countWhere(o,ia),c=0,u=0,l=a.types;u<l.length;u++){var d=l[u];if(c++,(0===s||s===o.length&&0===c||!ia(d))&&3&e.getObjectFlags(d)){if(d.symbol===r)return!0;if(t(r,d))return!0}}return!1}return a.symbol===r||t(r,a)}(n.parent.symbol,c))return!0}return 8&i&&Ar(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,oi(o)),16&i&&Ar(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,oi(o)),!1}return!0}(t,o[0]))return up(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasModifier(s,128)?(Ar(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),up(t)):Ep(t,o,r,n)}var c=Po(a,0);if(c.length){var u=Ep(t,c,r,n);return L||(u.declaration&&!Up(u.declaration)&&es(u)!==xe&&Ar(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Yo(u)===xe&&Ar(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),u}return Mp(t,a,1),up(t)}function Mp(t,r,n,i){var a=Ar(t,0===n?e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature,oi(r));Op(r,n,i?Nr(a,i):a)}function Op(t,r,n){if(t.symbol){var i=Jr(t.symbol).originatingImport;if(i&&!e.isImportCall(i)){var a=Po(Qi(Jr(t.symbol).target),r);if(!a||!a.length)return;Nr(n,e.createDiagnosticForNode(i,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}function Lp(t){switch(t.parent.kind){case 240:case 209:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 151:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 154:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 156:case 158:case 159:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function Rp(t,r,n){var i=eg(t.expression),a=Co(i);if(a===oe)return up(t);var o,s,c=Po(a,0),u=Po(a,1).length;if(Fp(i,a,c.length,u))return cp(t);if(o=t,(s=c).length&&e.every(s,function(e){return 0===e.minArgumentCount&&!e.hasRestParameter&&e.parameters.length<Cp(o,e)})){var l=e.getTextOfNode(t.expression,!1);return Ar(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,l),up(t)}var d=Lp(t);if(!c.length){var _=e.chainDiagnosticMessages(void 0,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,oi(a));_=e.chainDiagnosticMessages(_,d);var f=e.createDiagnosticForNodeFromMessageChain(t,_);return ir.add(f),Op(a,0,f),up(t)}return Ep(t,c,r,n,d)}function Bp(r,n){var i=Af(r),a=i&&Tn(i),o=a&&Kr(a,t.Element,67897832),s=o&&J.symbolToEntityName(o,67897832,r),c=e.createFunctionTypeNode(void 0,[e.createParameter(void 0,void 0,void 0,"props",void 0,J.typeToTypeNode(n,r))],s?e.createTypeReferenceNode(s,void 0):e.createKeywordTypeNode(120)),u=Pr(1,"props");return u.type=n,za(c,void 0,void 0,[u],o?va(o):oe,void 0,1,!1,!1)}function jp(r,n,i){if(Df(r.tagName)){var a=If(r),o=Bp(r,a);return Vu(Km(r.attributes,nf(o,r),void 0),a,r.tagName,r.attributes),o}var s=eg(r.tagName),c=Co(s);if(c===oe)return up(r);var u=function r(n,i){if(4&n.flags)return[Tt];if(128&n.flags){var a=Ff(n,i);return a?[Bp(i,a)]:(Ar(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,"JSX."+t.IntrinsicElements),e.emptyArray)}var o=Co(n),s=Po(o,1);return 0===s.length&&(s=Po(o,0)),0===s.length&&1048576&o.flags&&(s=Ka(e.map(o.types,function(e){return r(e,i)}))),s}(s,r);return Fp(s,c,u.length,0)?cp(r):0===u.length?(Ar(r.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(r.tagName)),up(r)):Ep(r,u,n,i)}function zp(t,r,n){switch(t.kind){case 191:return function(t,r,n){if(98===t.expression.kind){var i=R_(t.expression);if(xi(i)){for(var a=0,o=t.arguments;a<o.length;a++)eg(o[a]);return Tt}if(i!==oe){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(t));if(s)return Ep(t,ca(i,s.typeArguments,s),r,n)}return cp(t)}var c=qf(t.expression,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined);if(c===De)return At;var u=Co(c);if(u===oe)return up(t);var l=Po(u,0),d=Po(u,1).length;if(Fp(c,u,l.length,d))return c!==oe&&t.typeArguments&&Ar(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),cp(t);if(!l.length){if(d)Ar(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,oi(c));else{var _=void 0;if(1===t.arguments.length){var f=e.getSourceFileOfNode(t).text;e.isLineBreak(f.charCodeAt(e.skipTrivia(f,t.expression.end,!0)-1))&&(_=e.createDiagnosticForNode(t.expression,e.Diagnostics.It_is_highly_likely_that_you_are_missing_a_semicolon))}Mp(t,u,0,_)}return up(t)}return l.some(function(t){return e.isInJSFile(t.declaration)&&!!e.getJSDocClassTag(t.declaration)})?(Ar(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,oi(c)),up(t)):Ep(t,l,r,n)}(t,r,n);case 192:return Ip(t,r,n);case 193:return function(e,t,r){var n=eg(e.tag),i=Co(n);if(i===oe)return up(e);var a=Po(i,0),o=Po(i,1).length;return Fp(n,i,a.length,o)?cp(e):a.length?Ep(e,a,t,r):(Mp(e,i,0),up(e))}(t,r,n);case 152:return Rp(t,r,n);case 262:case 261:return jp(t,r,n)}throw e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function Jp(e,t,r){void 0===r&&(r=!1);var n=Ur(e),i=n.resolvedSignature;if(i&&i!==Nt&&!t)return i;n.resolvedSignature=Nt;var a=zp(e,t,r);return n.resolvedSignature=Mt===Ot?a:i,a}function Up(t){if(!t||!e.isInJSFile(t))return!1;var r=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?t:e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?t.initializer:void 0;if(r){if(e.getJSDocClassTag(t))return!0;var n=Pn(r);return!!n&&void 0!==n.members}return!1}function qp(e){if(524288&e.flags){var t=so(e);return 1===t.callSignatures.length&&Up(t.callSignatures[0].declaration)}return!1}function Kp(e){var t;Up(e.valueDeclaration)&&(t=Wp(e));var r=Vp(e),n=Qi(e);return n.symbol&&!Hp(n)&&Up(n.symbol.valueDeclaration)&&(t=Wp(n.symbol)),r&&t?xc([t,r]):r||t}function Vp(t){var r=t.valueDeclaration,n=r&&r.parent&&(e.isFunctionDeclaration(r)&&Pn(r)||e.isBinaryExpression(r.parent)&&Pn(r.parent.left)||e.isVariableDeclaration(r.parent)&&Pn(r.parent)),i=n&&n.exports&&n.exports.get("prototype"),a=i&&i.valueDeclaration&&function(t){if(!t.parent)return!1;for(var r=t.parent;r&&189===r.kind;)r=r.parent;if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&59===r.operatorToken.kind){var n=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(n)&&n}}(i.valueDeclaration);return a?eg(a):void 0}function Wp(t){var r=Jr(t);return r.inferredClassType||(r.inferredClassType=Vn(t,La(t)||T,e.emptyArray,e.emptyArray,void 0,void 0)),r.inferredClassType}function Hp(t){return t.symbol&&16&e.getObjectFlags(t)&&Jr(t.symbol).inferredClassType===t}function Gp(t){Gy(t,t.typeArguments)||Xy(t.arguments);var r=Jp(t);if(98===t.expression.kind)return xe;if(192===t.kind){var n=r.declaration;if(n&&157!==n.kind&&161!==n.kind&&166!==n.kind&&!e.isJSDocConstructSignature(n)){var i=eg(t.expression).symbol;i||72!==t.expression.kind||(i=Td(t.expression));var a=i&&Kp(i);return a?r.target?Eu(a,r.mapper):a:(L&&Ar(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),ne)}}if(e.isInJSFile(t)&&Zp(t))return function(e){var t=hn(e,e);if(t){var r=xn(t);if(r)return Qi(r)}return ne}(t.arguments[0]);var o,s=es(r);if(12288&s.flags&&Xp(t))return ou(e.walkUpParenthesizedExpressions(t.parent));if(e.isInJSFile(t)){var c=e.getDeclarationOfExpando(t);if(c){var u=Pn(c);u&&e.hasEntries(u.exports)&&((o=Vn(u,u.exports,e.emptyArray,e.emptyArray,void 0,void 0)).objectFlags|=16384)}}return o?xc([s,o]):s}function Xp(t){if(!e.isCallExpression(t))return!1;var r=t.expression;if(e.isPropertyAccessExpression(r)&&"for"===r.name.escapedText&&(r=r.expression),!e.isIdentifier(r)||"Symbol"!==r.escapedText)return!1;var n=Js(!1);return!!n&&n===Wr(r,"Symbol",67220415,void 0,void 0,!1)}function Qp(t){if(Xy(t.arguments)||function(t){if(w===e.ModuleKind.ES2015)return _v(t,e.Diagnostics.Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext);if(t.typeArguments)return _v(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;1!==r.length?_v(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(r[0])&&_v(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return gm(t,ne);for(var r=t.arguments[0],n=Vm(r),i=1;i<t.arguments.length;++i)Vm(t.arguments[i]);(32768&n.flags||65536&n.flags||!zu(n,_e))&&Ar(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,oi(n));var a=hn(t,r);if(a){var o=Sn(a,r,!0);if(o)return gm(t,Yp(Qi(o),o,a))}return gm(t,ne)}function Yp(t,r,n){if(P&&t&&t!==oe){var i=t;if(!i.syntheticType)if(nn(e.find(n.declarations,e.isSourceFile),n,!1)){var a=e.createSymbolTable(),o=Pr(2097152,"default");o.nameType=au("default"),o.target=un(r),a.set("default",o);var s=Pr(2048,"__type"),c=Vn(s,a,e.emptyArray,e.emptyArray,void 0,void 0);s.type=c,i.syntheticType=xf(t)?Yc(t,c,s,0,0):c}else i.syntheticType=t;return i.syntheticType}return t}function Zp(t){if(!e.isRequireCall(t,!0))return!1;if(!e.isIdentifier(t.expression))return e.Debug.fail();var r=Wr(t.expression,t.expression.escapedText,67220415,void 0,void 0,!0);if(r===V)return!0;if(2097152&r.flags)return!1;var n=16&r.flags?239:3&r.flags?237:0;if(0!==n){var i=e.getDeclarationOfKind(r,n);return!!i&&!!(4194304&i.flags)}return!1}function $p(t,r,n,a){var o=Xl(Fl(eg(n,a)));Uh(r);var s=cu(r);return i&&s!==oe&&(Uu(s,ed(o))||Yu(o,s,t,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)),s}function em(t){return function(t){var r=t.name.escapedText;switch(t.keywordToken){case 95:if("target"!==r)return _v(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"target");break;case 92:"meta"!==r&&_v(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"meta")}}(t),95===t.keywordToken?function(t){var r=e.getNewTargetContainer(t);if(r){if(157===r.kind){var n=Pn(r.parent);return Qi(n)}var n=Pn(r);return Qi(n)}return Ar(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),oe}(t):92===t.keywordToken?function(t){(A<6||w<e.ModuleKind.ESNext)&&Ar(t,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_options);var r=e.getSourceFileOfNode(t);return e.Debug.assert(!!(1048576&r.flags),"Containing file is missing import meta node flag."),e.Debug.assert(!!r.externalModuleIndicator,"Containing file should be a module."),"meta"===t.name.escapedText?yt||(yt=zs("ImportMeta",0,!0))||Ae:oe}(t):e.Debug.assertNever(t.keywordToken)}function tm(t){var r=Qi(t);if(F){var n=t.valueDeclaration;if(n&&e.hasInitializer(n))return Vl(r)}return r}function rm(e,t){var r=e.parameters.length-(e.hasRestParameter?1:0);if(t<r)return e.parameters[t].escapedName;var n=e.parameters[r]||te,i=Qi(n);if(Ll(i)){var a=i.target.associatedNames,o=t-r;return a?a[o]:n.escapedName+"_"+o}return n.escapedName}function nm(e,t){return im(e,t)||ne}function im(e,t){var r=e.parameters.length-(e.hasRestParameter?1:0);if(t<r)return tm(e.parameters[t]);if(e.hasRestParameter){var n=Qi(e.parameters[r]);return Ll(n)?t-r<Bl(n)?n.typeArguments[t-r]:Rl(n):Oo(n,1)}}function am(e,t){var r=om(e),n=um(e);if(n&&t===r-1)return n;for(var i=n?Math.min(t,r-1):t,a=[],o=[],s=i;s<r;s++)a.push(nm(e,s)),o.push(rm(e,s));var c=sm(e);return oc(a,c<i?0:c-i,!!n,o)}function om(t){var r=t.parameters.length;if(t.hasRestParameter){var n=Qi(t.parameters[r-1]);if(Ll(n))return r+(n.typeArguments||e.emptyArray).length-1}return r}function sm(e){if(e.hasRestParameter){var t=Qi(e.parameters[e.parameters.length-1]);if(Ll(t)){var r=t.target.minLength;if(r>0)return e.parameters.length-1+r}}return e.minArgumentCount}function cm(e){if(e.hasRestParameter){var t=Qi(e.parameters[e.parameters.length-1]);return!Ll(t)||t.target.hasRestElement}return!1}function um(e){if(e.hasRestParameter){var t=Qi(e.parameters[e.parameters.length-1]);return Ll(t)?function(e){var t=Rl(e);return t&&nc(t)}(t):t}}function lm(e){var t=um(e);return!t||Dl(t)||xi(t)?void 0:t}function dm(e){return _m(e,Se)}function _m(e,t){return e.parameters.length>0?nm(e,0):t}function fm(t,r){var n=Jr(t);if(!n.type){n.type=r;var i=t.valueDeclaration;72!==i.name.kind&&(n.type===Ae&&(n.type=Li(i.name)),function t(r){for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||(72===a.name.kind?Jr(Pn(a)).type=Ci(a):t(a.name))}}(i.name))}}function pm(e){var t=qs(!0);return t!==Ie?vs(t,[e=kg(e)||Ae]):Ae}function mm(e){var t,r=(t=!0,ct||(ct=zs("PromiseLike",1,t))||Ie);return r!==Ie?vs(r,[e=kg(e)||Ae]):Ae}function gm(t,r){var n=pm(r);return n===Ae?(Ar(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),oe):(Ks(!0)||Ar(t,e.isImportCall(t)?e.Diagnostics.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: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)}function hm(t,r){if(!t.body)return oe;var n,i=e.getFunctionFlags(t);if(218!==t.body.kind)n=Vm(t.body,r),2&i&&(n=Dg(n,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else{var a=function(t,r){var n=e.getFunctionFlags(t),i=[],a=xm(t),o=!1;if(e.forEachReturnStatement(t.body,function(s){var c=s.expression;if(c){var u=Vm(c,r);2&n&&(u=Dg(u,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),131072&u.flags&&(o=!0),e.pushIfUnique(i,u)}else a=!0}),0!==i.length||a||!o&&!function(e){switch(e.kind){case 196:case 197:return!0;case 156:return 188===e.parent.kind;default:return!1}}(t))return!(F&&i.length&&a)||Up(t)&&i.some(function(e){return e.symbol===t.symbol})||e.pushIfUnique(i,ce),i}(t,r);if(1&i){if(!(a=e.concatenate(function(t,r){var n=[],i=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,function(t){e.pushIfUnique(n,ym(t,i,r))}),n}(t,r),a))||0===a.length){var o=2&i?ec(ne):rc(ne);return L&&Ar(t.asteriskToken,e.Diagnostics.Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type,oi(o)),o}}else{if(!a)return 2&i?gm(t,Se):Se;if(0===a.length)return 2&i?gm(t,xe):xe}n=mc(a,2)}var s=cf(t);if(s||nd(t,n),wl(n)){var c=s?s===Ho(t)?n:es(s):void 0;if(c)switch(3&i){case 3:c=gh(c,!0);break;case 1:c=gh(c,!1);break;case 2:c=Sg(c)}n=Ol(n,c)}var u=ed(n);switch(3&i){case 3:return ec(u);case 1:return rc(u);case 2:return pm(u);default:return u}}function ym(t,r,n){var i=t.expression||t,a=t.expression?eg(t.expression,n):ue,o=t.asteriskToken?dh(a,i,!1,r):a;return r?kg(o,i,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function vm(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++)i|=gr.get(r[a])||32768;for(a=e;a<t;a++)i&=~(gr.get(r[a])||0);for(a=0;a<e;a++)i|=gr.get(r[a])||32768}else{for(a=e;a<t;a++)i|=mr.get(r[a])||128;for(a=0;a<e;a++)i&=~(mr.get(r[a])||0)}return i}function bm(t){if(!t.possiblyExhaustive)return!1;if(199===t.expression.kind){var r=Zm(t.expression.expression),n=vm(0,0,e_(t),!0);return!!(131072&i_(yo(r)||r,function(e){return(jd(e)&n)===n}).flags)}var i=Zm(t.expression);if(!Pl(i))return!1;var a,o,s=$d(t);return!(!s.length||e.some(s,Al))&&(a=a_(i,nu),o=s,1048576&a.flags?!e.forEach(a.types,function(t){return!e.contains(o,t)}):e.contains(o,a))}function xm(t){return!!(128&t.flags)&&!e.some(t.body.statements,function(e){return 232===e.kind&&bm(e)})}function Sm(t,r){if(i&&(!r||!Fm(r,16385))&&155!==t.kind&&!e.nodeIsMissing(t.body)&&218===t.body.kind&&xm(t)){var n=256&t.flags;if(r&&131072&r.flags)Ar(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!n)Ar(e.getEffectiveReturnTypeNode(t),e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(r&&F&&!zu(ce,r))Ar(e.getEffectiveReturnTypeNode(t),e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(N.noImplicitReturns){if(!r){if(!n)return;if(yh(t,es(Ho(t))))return}Ar(e.getEffectiveReturnTypeNode(t)||t,e.Diagnostics.Not_all_code_paths_return_a_value)}}}function Dm(t,r){if(e.Debug.assert(156!==t.kind||e.isObjectLiteralMethod(t)),Kh(t),1===r&&wu(t)){if(!e.getEffectiveReturnTypeNode(t)&&Fu(t)){var n=Ur(t);if(n.contextFreeType)return n.contextFreeType;var i=hm(t,r),a=za(void 0,void 0,void 0,e.emptyArray,i,void 0,0,!1,!1),o=Vn(t.symbol,T,[a],e.emptyArray,void 0,void 0);return o.flags|=536870912,n.contextFreeType=o}return Me}Hy(t)||196!==t.kind||$y(t);var s=Ur(t),c=Qi(wn(t.symbol));if(xi(c))return c;if(!(1024&s.flags)){var u=lf(t);if(!(1024&s.flags)){if(s.flags|=1024,u){var l=Po(c,0)[0];if(wu(t)){var d=rf(t);2===r&&function(t,r,n){for(var i=t.parameters.length-(t.hasRestParameter?1:0),a=0;a<i;a++){var o=t.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&gd(n.inferences,cu(s),nm(r,a))}}}(l,u,d),function(t,r){t.typeParameters=r.typeParameters,r.thisParameter&&(!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=Gl(r.thisParameter,void 0)),fm(t.thisParameter,Qi(r.thisParameter)));for(var n=t.parameters.length-(t.hasRestParameter?1:0),i=0;i<n;i++){var a=t.parameters[i];e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||fm(a,nm(r,i))}t.hasRestParameter&&(!Fr(a=e.last(t.parameters))&&e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||fm(a,am(r,n)))}(l,d===E?u:vu(u,d))}ts(t)||l.resolvedReturnType||(i=hm(t,r),l.resolvedReturnType||(l.resolvedReturnType=i))}ig(t)}}return c}function km(e,t){var r=ts(e);return r&&2==(3&t)?kg(r)||oe:r}function Cm(e,t,r){return!!zu(t,Ne)||(Ar(e,r),!1)}function Tm(t){if(!e.isCallExpression(t))return!1;if(!e.isBindableObjectDefinePropertyCall(t))return!1;var r=Vm(t.arguments[2]);if(bi(r,"value")){var n=Ao(r,"writable"),i=n&&Qi(n);if(!i||i===me||i===ge)return!0;if(n&&n.valueDeclaration&&e.isPropertyAssignment(n.valueDeclaration)){var a=eg(n.valueDeclaration.initializer);if(a===me||a===ge)return!0}return!1}return!Ao(r,"set")}function Em(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&jf(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags||e.some(t.declarations,Tm))}function Nm(t,r){if(Em(r)){if(4&r.flags&&(189===t.kind||190===t.kind)&&100===t.expression.kind){var n=e.getContainingFunction(t);return!n||157!==n.kind||!r.valueDeclaration||!(n.parent===r.valueDeclaration.parent||n===r.valueDeclaration.parent)}return!0}return!1}function Am(t){if(189===t.kind||190===t.kind){var r=e.skipParentheses(t.expression);if(72===r.kind){var n=Ur(r).resolvedSymbol;if(2097152&n.flags){var i=en(n);return!!i&&251===i.kind}}}return!1}function wm(t,r){var n=e.skipOuterExpressions(t,3);return 72===n.kind||189===n.kind||190===n.kind||(Ar(t,r),!1)}function Pm(e){return Fm(e,2112)?Im(e,3)||Fm(e,296)?Ne:pe:fe}function Fm(e,t){if(e.flags&t&-134217729||134217728&t&&oo(e))return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++)if(Fm(n[r],t))return!0;return!1}function Im(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&zu(e,fe)||!!(2112&t)&&zu(e,pe)||!!(132&t)&&zu(e,_e)||!!(528&t)&&zu(e,ve)||!!(16384&t)&&zu(e,xe)||!!(131072&t)&&zu(e,Se)||!!(65536&t)&&zu(e,le)||!!(32768&t)&&zu(e,ce)||!!(4096&t)&&zu(e,be)||!!(67108864&t)&&zu(e,Ce))}function Mm(t,r,n){return 1048576&t.flags?e.every(t.types,function(e){return Mm(e,r,n)}):Im(t,r,n)}function Om(t){return!!(16&e.getObjectFlags(t))&&!!t.symbol&&Lm(t.symbol)}function Lm(e){return 0!=(128&e.flags)}function Rm(t,r,n,i){if(void 0===i&&(i=!1),275===r.kind||276===r.kind){var a=r.name;if(149===a.kind&&hf(a),Di(a))return;if(c=function(t,r,n,i){if(xi(t))return t;var a,o=e.getTextOfPropertyName(r);if(o){var s=Ao(t,o);s&&(rp(s,n,i),Jf(n,!1,t,s),a=Qi(s)),a=a||(gf(o)?Oo(t,1):void 0)}return a||Oo(t,0)}(t,a,r,i))return jm(276===r.kind?r:r.initializer,c);Ar(a,e.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,oi(t),e.declarationNameToString(a))}else{if(277===r.kind){A<6&&zy(r,4);var o=[];if(n)for(var s=0;s<n.length-1;s++)o.push(n[s].name);var c=ki(t,o,t.symbol);return Ky(n,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),jm(r.expression,c)}Ar(r,e.Diagnostics.Property_assignment_expected)}}function Bm(t,r,n,i,a){var o=t.elements,s=o[n];if(210!==s.kind)if(208!==s.kind){var c=""+n;if(u=xi(r)?r:n_(r,El)?Nl(r,n):i)return jm(s,u,a);eg(s),Ll(r)?Ar(s,e.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,oi(r),xs(r),o.length):Ar(s,e.Diagnostics.Type_0_has_no_property_1,oi(r),c)}else if(n<o.length-1)Ar(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var u,l=s.expression;if(204!==l.kind||59!==l.operatorToken.kind)return Ky(t.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),jm(l,u=n_(r,Ll)?a_(r,function(e){return sc(e,n)}):nc(i),a);Ar(l.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function jm(t,r,n,i){var a;if(276===t.kind){var o=t;o.objectAssignmentInitializer&&(!F||32768&Jl(eg(o.objectAssignmentInitializer))||(r=zd(r,524288)),Um(o.name,o.equalsToken,o.objectAssignmentInitializer,n)),a=t.name}else a=t;return 204===a.kind&&59===a.operatorToken.kind&&(Jm(a,n),a=a.left),188===a.kind?function(e,t,r){var n=e.properties;if(F&&0===n.length)return Vf(t,e);for(var i=0,a=n;i<a.length;i++)Rm(t,a[i],n,r);return t}(a,r,i):187===a.kind?function(e,t,r){var n=e.elements;A<2&&N.downlevelIteration&&zy(e,512);for(var i=dh(t,e,!1,!1)||oe,a=0;a<n.length;a++)Bm(e,t,a,i,r);return t}(a,r,n):function(t,r,n){var i=eg(t,n),a=277===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access;return wm(t,a)&&Vu(r,i,t,t),r}(a,r,n)}function zm(e,t){return 0!=(98304&t.flags)||Uu(e,t)}function Jm(t,r){return e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)?eg(t.right,r):Um(t.left,t.operatorToken,t.right,r,t)}function Um(t,r,n,a,o){var s,c=r.kind;if(59===c&&(188===t.kind||187===t.kind))return jm(t,eg(n,a),a,100===n.kind);s=54===c||55===c?sh(t,a):eg(t,a);var u,l,d=eg(n,a);switch(c){case 40:case 41:case 62:case 63:case 42:case 64:case 43:case 65:case 39:case 61:case 46:case 66:case 47:case 67:case 48:case 68:case 50:case 70:case 51:case 71:case 49:case 69:if(s===De||d===De)return De;s=Vf(s,t),d=Vf(d,n);var _=void 0;if(528&s.flags&&528&d.flags&&void 0!==(_=function(e){switch(e){case 50:case 70:return 55;case 51:case 71:return 36;case 49:case 69:return 54;default:return}}(r.kind)))return Ar(o||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(_)),fe;var f,p=Cm(t,s,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type),m=Cm(n,d,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type);if(Im(s,3)&&Im(d,3)||!Fm(s,2112)&&!Fm(d,2112))f=fe;else if(Im(s,2112)&&Im(d,2112)){switch(c){case 48:case 68:S()}f=pe}else S(),f=oe;return p&&m&&x(f),f;case 38:case 60:if(s===De||d===De)return De;Im(s,132)||Im(d,132)||(s=Vf(s,t),d=Vf(d,n));var g=void 0;return Im(s,296,!0)&&Im(d,296,!0)?g=fe:Im(s,2112,!0)&&Im(d,2112,!0)?g=pe:Im(s,132,!0)||Im(d,132,!0)?g=_e:(xi(s)||xi(d))&&(g=s===oe||d===oe?oe:ne),g&&!b(c)?g:g?(60===c&&x(g),g):(S(),ne);case 28:case 30:case 31:case 32:return b(c)&&(s=Fl(Vf(s,t)),d=Fl(Vf(d,n)),Uu(s,d)||Uu(d,s)||zu(s,Ne)&&zu(d,Ne)||S()),ve;case 33:case 34:case 35:case 36:var h=Pl(s),y=Pl(d);return h&&y||(s=h?Fl(s):s,d=y?Fl(d):d),zm(s,d)||zm(d,s)||S(),ve;case 94:return function(t,r,n,i){return n===De||i===De?De:(!xi(n)&&Mm(n,131068)&&Ar(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),xi(i)||uy(i)||ju(i,Ke)||Ar(r,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),ve)}(t,n,s,d);case 93:return function(t,r,n,i){return n===De||i===De?De:(n=Vf(n,t),i=Vf(i,r),Uu(n,_e)||Im(n,12584)||Ar(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),Im(i,126091264)||Ar(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),ve)}(t,n,s,d);case 54:return 4194304&jd(s)?mc([(l=F?s:Fl(d),a_(l,ql)),d]):s;case 55:return 8388608&jd(s)?mc([Ul(s),d],2):s;case 59:var v=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;return function(t,r){if(2===t)for(var n=0,i=co(r);n<i.length;n++){var a=i[n],o=Qi(a);if(o.symbol&&32&o.symbol.flags){var s=a.escapedName,c=Wr(a.valueDeclaration,s,67897832,void 0,s,!1);if(c&&c.declarations.some(e.isJSDocTypedefTag))return _v(c.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s)),_v(a.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s))}}}(v,d),function(r){switch(r){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var i=Pn(t),a=e.getAssignedExpandoInitializer(n);return a&&e.isObjectLiteralExpression(a)&&i&&e.hasEntries(i.exports);default:return!1}}(v)?(524288&d.flags&&(2===v||6===v||el(d)||Bd(d)||1&e.getObjectFlags(d))||x(d),s):(x(d),Xl(d));case 27:return!N.allowUnreachableCode&&function t(r){switch((r=e.skipParentheses(r)).kind){case 72:case 10:case 13:case 193:case 206:case 14:case 8:case 9:case 102:case 87:case 96:case 141:case 196:case 209:case 197:case 187:case 188:case 199:case 213:case 261:case 260:return!0;case 205:return t(r.whenTrue)&&t(r.whenFalse);case 204:return!e.isAssignmentOperator(r.operatorToken.kind)&&t(r.left)&&t(r.right);case 202:case 203:switch(r.operator){case 52:case 38:case 39:case 53:return!0}return!1;case 200:case 194:case 212:default:return!1}}(t)&&(72!==(u=n).kind||"eval"!==u.escapedText)&&Ar(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),d;default:return e.Debug.fail()}function b(r){var i=Fm(s,12288)?t:Fm(d,12288)?n:void 0;return!i||(Ar(i,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function x(r){i&&e.isAssignmentOperator(c)&&(!wm(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)||e.isIdentifier(t)&&"exports"===e.unescapeLeadingUnderscores(t.escapedText)||Vu(r,s,t,n))}function S(){var t=oi(s),n=oi(d),i=o||r;(function(t,n,i){switch(r.kind){case 35:case 33:return Ar(t,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,"false",n,i);case 36:case 34:return Ar(t,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,"true",n,i)}})(i,t,n)||Ar(i,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),t,n)}}function qm(t){i&&(4096&t.flags&&!function(t){for(var r=t,n=t.parent;n;){if(e.isFunctionLike(n)&&r===n.body)return!1;if(e.isClassLike(r))return!0;r=n,n=n.parent}return!1}(t)||lv(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),U_(t)&&Ar(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var r=e.getContainingFunction(t);if(!r)return ne;var n=e.getFunctionFlags(r);if(!(1&n))return ne;t.asteriskToken&&(3==(3&n)&&A<6&&zy(t,26624),1==(3&n)&&A<2&&N.downlevelIteration&&zy(t,256));var a=0!=(2&n),o=ym(t,a),s=ts(r);return s&&Vu(o,gh(s,a)||ne,t.expression||t,t.expression),ne}function Km(t,r,n){var i=function(t){return 268!==t.kind||e.isJsxSelfClosingElement(t.parent)?t:t.parent.parent}(t),a=i.contextualType,o=i.contextualMapper;i.contextualType=r,i.contextualMapper=n;var s=eg(t,n===E?1:n?2:3);return i.contextualType=a,i.contextualMapper=o,s}function Vm(e,t){var r=Ur(e);if(!r.resolvedType){if(t)return eg(e,t);var n=Mt;Mt=Ot,r.resolvedType=eg(e,t),Mt=n}return r.resolvedType}function Wm(t){return 194===(t=e.skipParentheses(t)).kind||212===t.kind}function Hm(t){var r=e.getEffectiveInitializer(t),n=Zm(r,!0),i=2&e.getCombinedNodeFlags(t)||e.isDeclarationReadonly(t)||Wm(r)?n:Il(n);if(e.isInJSFile(t)){if(98304&i.flags)return rd(t,ne),ne;if(Tl(i))return rd(t,et),et}return i}function Gm(e,t,r,n){2===arguments.length&&(r=tf(e));var i=eg(e,t,n);return Wm(e)?i:Ol(i,r)}function Xm(e,t){return 149===e.name.kind&&hf(e.name),Gm(e.initializer,t)}function Qm(e,t){return av(e),149===e.name.kind&&hf(e.name),Ym(e,Dm(e,t),t)}function Ym(e,t,r){if(2===r){var n=mp(t);if(n&&n.typeParameters){var i=ef(e);if(i){var a=mp(Wl(i));if(a&&!a.typeParameters)return ls(gp(n,a,rf(e)))}}}return t}function Zm(t,r){var n=e.skipParentheses(t);if(191!==n.kind||98===n.expression.kind||e.isRequireCall(n,!0)||Xp(n)){if(194===n.kind||212===n.kind)return cu(n.type)}else{var i=mp(qf(n.expression));if(i&&!i.typeParameters)return es(i)}return r?Vm(t):eg(t)}function $m(e){var t=Ur(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=ne;var n=t.contextFreeType=eg(e,1);return e.contextualType=r,n}function eg(t,r,n){var a;return Om(a=148===t.kind?Hf(t):Ym(t,function(t,r,n){switch(t.kind){case 72:return N_(t);case 100:return M_(t);case 98:return R_(t);case 96:return de;case 14:case 10:return ru(au(t.text));case 8:return pv(t),ru(au(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&A<6&&_v(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ESNext));}(t),ru(function(t){return au({negative:!1,base10Value:e.parsePseudoBigInt(t.text)})}(t));case 102:return he;case 87:return me;case 206:return function(t){return e.forEach(t.templateSpans,function(t){Fm(eg(t.expression),12288)&&Ar(t.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)}),_e}(t);case 13:return Ze;case 187:return _f(t,r,n);case 188:return bf(t,r);case 189:return Wf(t);case 190:return ap(t);case 191:if(92===t.expression.kind)return Qp(t);case 192:return Gp(t);case 193:return function(e){return Gy(e,e.typeArguments),A<2&&zy(e,65536),es(Jp(e))}(t);case 195:return function(t,r){var n=e.isInJSFile(t)?e.getJSDocTypeTag(t):void 0;return n?$p(n,n.typeExpression.type,t.expression,r):eg(t.expression,r)}(t,r);case 209:return function(e){return kh(e),Kh(e),Qi(Pn(e))}(t);case 196:case 197:return Dm(t,r);case 199:return function(e){return eg(e.expression),yr}(t);case 194:case 212:return function(e){return $p(e,e.type,e.expression)}(t);case 213:return function(e){return Wl(eg(e.expression))}(t);case 214:return em(t);case 198:return function(t){eg(t.expression);var r=e.skipParentheses(t.expression);if(189!==r.kind&&190!==r.kind)return Ar(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),ve;var n=On(Ur(r).resolvedSymbol);return n&&Em(n)&&Ar(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),ve}(t);case 200:return function(e){return eg(e.expression),ue}(t);case 201:return function(t){return i&&(16384&t.flags||lv(t,e.Diagnostics.await_expression_is_only_allowed_within_an_async_function),U_(t)&&Ar(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)),Dg(eg(t.expression),t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t);case 202:return function(t){var r=eg(t.operand);if(r===De)return De;switch(t.operand.kind){case 8:switch(t.operator){case 39:return ru(au(-t.operand.text));case 38:return ru(au(+t.operand.text))}break;case 9:if(39===t.operator)return ru(au({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 38:case 39:case 53:return Vf(r,t.operand),Fm(r,12288)&&Ar(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),38===t.operator?(Fm(r,2112)&&Ar(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),oi(r)),fe):Pm(r);case 52:sh(t.operand);var n=12582912&jd(r);return 4194304===n?me:8388608===n?he:ve;case 44:case 45:return Cm(t.operand,Vf(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&wm(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),Pm(r)}return oe}(t);case 203:return function(t){var r=eg(t.operand);return r===De?De:(Cm(t.operand,Vf(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&wm(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),Pm(r))}(t);case 204:return Jm(t,r);case 205:return function(e,t){return sh(e.condition),mc([eg(e.whenTrue,t),eg(e.whenFalse,t)],2)}(t,r);case 208:return function(e,t){return A<2&&N.downlevelIteration&&zy(e,1536),dh(eg(e.expression,t),e.expression,!1,!1)}(t,r);case 210:return ue;case 207:return qm(t);case 215:return t.type;case 270:return function(t,r){if(t.expression){var n=eg(t.expression,r);return t.dotDotDotToken&&n!==ne&&!Dl(n)&&Ar(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return oe}(t,r);case 260:case 261:return function(e,t){return Kh(e),Of(e)||ne}(t);case 264:return function(t){return Rf(t.openingFragment),2===N.jsx&&(N.jsxFactory||e.getSourceFileOfNode(t).pragmas.has("jsx"))&&Ar(t,N.jsxFactory?e.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:e.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),Cf(t),Of(t)||ne}(t);case 268:return Tf(t,r);case 262:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return oe}(t,r,n),r))&&(189===t.parent.kind&&t.parent.expression===t||190===t.parent.kind&&t.parent.expression===t||(72===t.kind||148===t.kind)&&ty(t)||167===t.parent.kind&&t.parent.exprName===t||Ar(t,e.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query)),a}function tg(t){t.expression&&lv(t.expression,e.Diagnostics.Type_expected),Uh(t.constraint),Uh(t.default);var r=ya(Pn(t));bo(r)||Ar(e.getEffectiveConstraintOfTypeParameter(t),e.Diagnostics.Type_parameter_0_has_a_circular_constraint,oi(r)),function(e){return So(e)!==Le}(r)||Ar(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,oi(r));var n=po(r),a=Do(r);n&&a&&Ku(a,Ba(n,a),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),i&&xh(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function rg(t){Uy(t),th(t);var r=e.getContainingFunction(t);e.hasModifier(t,92)&&(157===r.kind&&e.nodeIsPresent(r.body)||Ar(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&Ar(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&Ar(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),157!==r.kind&&161!==r.kind&&166!==r.kind||Ar(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),197===r.kind&&Ar(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter)),!t.dotDotDotToken||e.isBindingPattern(t.name)||zu(Qi(t.symbol),et)||Ar(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function ng(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){var s=o.name;if(72===s.kind&&s.escapedText===n)return Ar(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((185===s.kind||184===s.kind)&&ng(s,r,n))return!0}}}function ig(t){162===t.kind?function(t){Uy(t)||function(t){var r=t.parameters[0];if(1!==t.parameters.length)return _v(r?r.name:t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(r.dotDotDotToken)return _v(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasModifiers(r))return _v(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return _v(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return _v(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return _v(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(138!==r.type.kind&&135!==r.type.kind){var n=cu(r.type);return 4&n.flags||8&n.flags?_v(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,e.getTextOfNode(r.name),oi(n),oi(cu(t.type))):1048576&n.flags&&Mm(n,128,!0)?_v(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):_v(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number)}t.type||_v(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}(t)}(t):165!==t.kind&&239!==t.kind&&166!==t.kind&&160!==t.kind&&157!==t.kind&&161!==t.kind||Hy(t);var r=e.getFunctionFlags(t);if(4&r||(3==(3&r)&&A<6&&zy(t,6144),2==(3&r)&&A<4&&zy(t,64),0!=(3&r)&&A<2&&zy(t,128)),Sh(t.typeParameters),e.forEach(t.parameters,rg),t.type&&Uh(t.type),i){!function(t){A>=2||N.noEmit||!e.hasRestParameter(t)||4194304&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===K.escapedName&&Ar(t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(t);var n=e.getEffectiveReturnTypeNode(t);if(L&&!n)switch(t.kind){case 161:Ar(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 160:Ar(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n){var a=e.getFunctionFlags(t);if(1==(5&a)){var o=cu(n);if(o===xe)Ar(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=gh(o,0!=(2&a))||ne;Ku(2&a?ec(s):rc(s),o,n)}}else 2==(3&a)&&function(t,r){var n,i=cu(r);if(A>=2){if(i===oe)return;var a=qs(!0);if(a!==Ie&&!Yi(i,a))return void Ar(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)}else{if(function(t){Tg(t&&e.getEntityNameFromTypeNode(t))}(r),i===oe)return;var o=e.getEntityNameFromTypeNode(r);if(void 0===o)return void Ar(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,oi(i));var s=mn(o,67220415,!0),c=s?Qi(s):oe;if(c===oe)return void(72===o.kind&&"Promise"===o.escapedText&&Zi(i)===qs(!1)?Ar(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Ar(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(o)));var u=(n=!0,lt||(lt=zs("PromiseConstructorLike",0,n))||Ae);if(u===Ae)return void Ar(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(o));if(!Ku(c,u,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var l=o&&Mh(o),d=Kr(t.locals,l.escapedText,67220415);if(d)return void Ar(d.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(o))}Dg(i,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t,n)}162!==t.kind&&289!==t.kind&&Mg(t)}}function ag(t){for(var r=e.createMap(),n=0,i=t.members;n<i.length;n++){var a=i[n];if(153===a.kind){var o=void 0,s=a.name;switch(s.kind){case 10:case 8:o=s.text;break;case 72:o=e.idText(s);break;default:continue}r.get(o)?(Ar(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),Ar(a.name,e.Diagnostics.Duplicate_identifier_0,o)):r.set(o,!0)}}}function og(t){if(241===t.kind){var r=Pn(t);if(r.declarations.length>0&&r.declarations[0]!==t)return}var n=ds(Pn(t));if(n)for(var i=!1,a=!1,o=0,s=n.declarations;o<s.length;o++){var c=s[o];if(1===c.parameters.length&&c.parameters[0].type)switch(c.parameters[0].type.kind){case 138:a?Ar(c,e.Diagnostics.Duplicate_string_index_signature):a=!0;break;case 135:i?Ar(c,e.Diagnostics.Duplicate_number_index_signature):i=!0}}}function sg(t){Uy(t)||function(t){if(e.isClassLike(t.parent)){if(iv(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0}else if(241===t.parent.kind){if(iv(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return _v(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(168===t.parent.kind){if(iv(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(t.initializer)return _v(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(4194304&t.flags&&sv(t),e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||4194304&t.flags||e.hasModifier(t,160)))return _v(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)}(t)||Zy(t.name),th(t)}function cg(t){ig(t),function(t){var r=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):void 0,n=t.typeParameters||r&&e.firstOrUndefined(r);if(n){var i=n.pos===n.end?n.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,n.pos);return dv(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(t)||function(t){var r=e.getEffectiveReturnTypeNode(t);r&&_v(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),Uh(t.body);var r=Pn(t);if(t===e.getDeclarationOfKind(r,t.kind)&&vg(r),!e.nodeIsMissing(t.body)&&i){var n=t.parent;if(e.getEffectiveBaseTypeNode(n)){A_(t.parent,n);var a=F_(n),o=P_(t);if(o){if(a&&Ar(o,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),e.some(t.parent.members,function(t){return 154===t.kind&&!e.hasModifier(t,32)&&!!t.initializer})||e.some(t.parameters,function(t){return e.hasModifier(t,92)})){for(var s=void 0,c=0,u=t.body.statements;c<u.length;c++){var l=u[c];if(221===l.kind&&e.isSuperCall(l.expression)){s=l;break}if(!e.isPrologueDirective(l))break}s||Ar(t,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties)}}else a||Ar(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function ug(t){if(i){if(Hy(t)||function(t){var r=t.kind;if(A<1)return _v(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(4194304&t.flags)return _v(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===t.body&&!e.hasModifier(t,128))return dv(t,t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&e.hasModifier(t,128))return _v(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return _v(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return nv(e)||e.parameters.length===(158===e.kind?0:1)}(t))return _v(t.name,158===r?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(159===r){if(t.type)return _v(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var n=t.parameters[0];if(n.dotDotDotToken)return _v(n.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(n.questionToken)return _v(n.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(n.initializer)return _v(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(t)||Zy(t.name),Pg(t),ig(t),158===t.kind&&!(4194304&t.flags)&&e.nodeIsPresent(t.body)&&128&t.flags&&(256&t.flags||Ar(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),149===t.name.kind&&hf(t.name),!Fa(t)){var r=158===t.kind?159:158,n=e.getDeclarationOfKind(Pn(t),r);if(n){var a=e.getModifierFlags(t),o=e.getModifierFlags(n);(28&a)!=(28&o)&&Ar(t.name,e.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&a)!=(128&o)&&Ar(t.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),lg(t,n,qi,e.Diagnostics.get_and_set_accessor_must_have_the_same_type),lg(t,n,Ki,e.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var s=Vi(Pn(t));158===t.kind&&Sm(t,s)}Uh(t.body)}function lg(e,t,r,n){var i=r(e),a=r(t);i&&a&&!Ou(i,a)&&Ar(e,n)}function dg(t,r){return Wo(e.map(t.typeArguments,cu),r,Vo(r),e.isInJSFile(t))}function _g(t,r){for(var n,i,a=!0,o=0;o<r.length;o++){var s=po(r[o]);s&&(n||(i=fu(r,n=dg(t,r))),a=a&&Ku(n[o],Eu(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function fg(t){var r=Ms(t);if(r!==oe){var n=Ur(t).resolvedSymbol;if(n)return 524288&n.flags&&Jr(n).typeParameters||(4&e.getObjectFlags(r)?r.target.localTypeParameters:void 0)}}function pg(t){Gy(t,t.typeArguments),164!==t.kind||void 0===t.typeName.jsdocDotPos||e.isInJSFile(t)||e.isInJSDoc(t)||dv(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments);var r=Ms(t);if(r!==oe){if(t.typeArguments&&(e.forEach(t.typeArguments,Uh),i)){var n=fg(t);n&&_g(t,n)}32&r.flags&&8&Ur(t).resolvedSymbol.flags&&Ar(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,oi(r))}}function mg(t,r){if(!(8388608&t.flags))return t;var n=t.objectType,i=t.indexType;return zu(i,Tc(n,!1))?(190===r.kind&&e.isAssignmentTarget(r)&&32&e.getObjectFlags(n)&&1&no(n)&&Ar(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,oi(n)),t):Mo(Co(n),1)&&Im(i,296)?t:(Ar(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,oi(i),oi(n)),t)}function gg(t){!function(t){if(142===t.operator){if(139!==t.type.kind)return _v(t.type,e.Diagnostics._0_expected,e.tokenToString(139));var r=e.walkUpParenthesizedTypes(t.parent);switch(r.kind){case 237:var n=r;if(72!==n.name.kind)return _v(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(n))return _v(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return _v(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 154:if(!e.hasModifier(r,32)||!e.hasModifier(r,64))return _v(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 153:if(!e.hasModifier(r,64))return _v(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:_v(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}}(t),Uh(t.type)}function hg(t){return e.hasModifier(t,8)&&!!(4194304&t.flags)}function yg(t,r){var n=e.getCombinedModifierFlags(t);return 241!==t.parent.kind&&240!==t.parent.kind&&209!==t.parent.kind&&4194304&t.flags&&(2&n||e.isModuleBlock(t.parent)&&e.isModuleDeclaration(t.parent.parent)&&e.isGlobalScopeAugmentation(t.parent.parent)||(n|=1),n|=2),n&r}function vg(t){if(i){for(var r,n,a,o=0,s=155,c=!1,u=!0,l=!1,d=t.declarations,_=0!=(16384&t.flags),f=!1,p=!1,m=0,g=d;m<g.length;m++){var h=g[m],y=4194304&h.flags,v=241===h.parent.kind||168===h.parent.kind||y;if(v&&(a=void 0),239===h.kind||156===h.kind||155===h.kind||157===h.kind){var b=yg(h,155);o|=b,s&=b,c=c||e.hasQuestionToken(h),u=u&&e.hasQuestionToken(h),e.nodeIsPresent(h.body)&&r?_?p=!0:f=!0:a&&a.parent===h.parent&&a.end!==h.pos&&E(a),e.nodeIsPresent(h.body)?r||(r=h):l=!0,a=h,v||(n=h)}}if(p&&e.forEach(d,function(t){Ar(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),f&&e.forEach(d,function(t){Ar(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_function_implementation)}),!n||n.body||e.hasModifier(n,128)||n.questionToken||E(n),l&&(function(t,r,n,i,a){if(0!=(i^a)){var o=yg(T(t,r),n);e.forEach(t,function(t){var r=yg(t,n)^o;1&r?Ar(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?Ar(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?Ar(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&Ar(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}(d,r,155,o,s),function(t,r,n,i){if(n!==i){var a=e.hasQuestionToken(T(t,r));e.forEach(t,function(t){e.hasQuestionToken(t)!==a&&Ar(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}(d,r,c,u),r))for(var x=Qo(t),S=Ho(r),D=0,k=x;D<k.length;D++){var C=k[D];if(!$u(S,C)){Ar(C.declaration,e.Diagnostics.Overload_signature_is_not_compatible_with_function_implementation);break}}}function T(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}function E(t){if(!t.name||!e.nodeIsMissing(t.name)){var r=!1,n=e.forEachChild(t.parent,function(e){if(r)return e;r=e===t});if(n&&n.pos===t.end&&n.kind===t.kind){var i=n.name||n,a=n.name;if(t.name&&a&&(e.isComputedPropertyName(t.name)&&e.isComputedPropertyName(a)||!e.isComputedPropertyName(t.name)&&!e.isComputedPropertyName(a)&&e.getEscapedTextOfIdentifierOrLiteral(t.name)===e.getEscapedTextOfIdentifierOrLiteral(a)))return void(156!==t.kind&&155!==t.kind||e.hasModifier(t,32)===e.hasModifier(n,32)||Ar(i,e.hasModifier(t,32)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static));if(e.nodeIsPresent(n.body))return void Ar(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var o=t.name||t;_?Ar(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasModifier(t,128)?Ar(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Ar(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function bg(t){if(i){var r=t.localSymbol;if((r||(r=Pn(t)).exportSymbol)&&e.getDeclarationOfKind(r,t.kind)===t){for(var n=0,a=0,o=0,s=0,c=r.declarations;s<c.length;s++){var u=h(m=c[s]),l=yg(m,513);1&l?512&l?o|=u:n|=u:a|=u}var d=n&a,_=o&(n|a);if(d||_)for(var f=0,p=r.declarations;f<p.length;f++){u=h(m=p[f]);var m,g=e.getNameOfDeclaration(m);u&_?Ar(g,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(g)):u&d&&Ar(g,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(g))}}}function h(t){var r=t;switch(r.kind){case 241:case 242:case 304:case 297:return 2;case 244:return e.isAmbientModule(r)||0!==e.getModuleInstanceState(r)?5:4;case 240:case 243:return 3;case 279:return 7;case 254:if(!e.isEntityNameExpression(r.expression))return 1;r=r.expression;case 248:case 251:case 250:var n=0,i=ln(Pn(r));return e.forEach(i.declarations,function(e){n|=h(e)}),n;case 237:case 186:case 239:case 253:return 1;default:return e.Debug.fail(e.Debug.showSyntaxKind(r))}}}function xg(e,t,r){var n=Sg(e,t);return n&&kg(n,t,r)}function Sg(t,r){if(!xi(t)){var n=t;if(n.promisedTypeOfPromise)return n.promisedTypeOfPromise;if(Yi(t,qs(!1)))return n.promisedTypeOfPromise=t.typeArguments[0];var i=bi(t,"then");if(!xi(i)){var a=i?Po(i,0):e.emptyArray;if(0!==a.length){var o=zd(mc(e.map(a,dm)),2097152);if(!xi(o)){var s=Po(o,0);if(0!==s.length)return n.promisedTypeOfPromise=mc(e.map(s,dm),2);r&&Ar(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else r&&Ar(r,e.Diagnostics.A_promise_must_have_a_then_method)}}}function Dg(e,t,r){return kg(e,t,r)||oe}function kg(t,r,n){var i=t;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(xi(t))return i.awaitedTypeOfType=t;if(1048576&t.flags){for(var a=void 0,o=0,s=t.types;o<s.length;o++){var c=s[o];a=e.append(a,kg(c,r,n))}if(!a)return;return i.awaitedTypeOfType=mc(a)}var u=Sg(t);if(u){if(t.id===u.id||nr.indexOf(u.id)>=0)return void(r&&Ar(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));nr.push(t.id);var l=kg(u,r,n);if(nr.pop(),!l)return;return i.awaitedTypeOfType=l}var d=bi(t,"then");if(!(d&&Po(d,0).length>0))return i.awaitedTypeOfType=t;if(r){if(!n)return e.Debug.fail();Ar(r,n)}}function Cg(t){var r=es(Jp(t));if(!(1&r.flags)){var n,i,a=Lp(t);switch(t.parent.kind){case 240:n=mc([Qi(Pn(t.parent)),xe]);break;case 151:n=xe,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 154:n=xe,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 156:case 158:case 159:n=mc([$s(iy(t.parent)),xe]);break;default:return e.Debug.fail()}Ku(r,n,t,a,function(){return i})}}function Tg(e){if(e){var t=Mh(e),r=2097152|(72===e.kind?67897832:1920),n=Wr(t,t.escapedText,r,void 0,void 0,!0);n&&2097152&n.flags&&Ln(n)&&!by(ln(n))&&_n(n)}}function Eg(t){var r=Ng(t);r&&e.isEntityName(r)&&Tg(r)}function Ng(e){if(e)switch(e.kind){case 174:case 173:return Ag(e.types);case 175:return Ag([e.trueType,e.falseType]);case 177:return Ng(e.type);case 164:return e.typeName}}function Ag(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];177===a.kind;)a=a.type;if(132!==a.kind&&(F||96!==a.kind&&141!==a.kind)){var o=Ng(a);if(!o)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return}else r=o}}return r}function wg(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function Pg(t){if(t.decorators&&e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){N.experimentalDecorators||Ar(t,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);var r=t.decorators[0];if(zy(r,8),151===t.kind&&zy(r,32),N.emitDecoratorMetadata)switch(zy(r,16),t.kind){case 240:var n=e.getFirstConstructorWithBody(t);if(n)for(var i=0,a=n.parameters;i<a.length;i++)Eg(wg(a[i]));break;case 158:case 159:var o=158===t.kind?159:158,s=e.getDeclarationOfKind(Pn(t),o);Eg(Ui(t)||s&&Ui(s));break;case 156:for(var c=0,u=t.parameters;c<u.length;c++)Eg(wg(u[c]));Eg(e.getEffectiveReturnTypeNode(t));break;case 154:Eg(e.getEffectiveTypeAnnotationNode(t));break;case 151:Eg(wg(t));for(var l=0,d=t.parent.parameters;l<d.length;l++)Eg(wg(d[l]))}e.forEach(t.decorators,Cg)}}function Fg(e){switch(e.kind){case 72:return e;case 189:return e.name;default:return}}function Ig(t){Pg(t),ig(t);var r=e.getFunctionFlags(t);if(t.name&&149===t.name.kind&&hf(t.name),!Fa(t)){var n=Pn(t),a=t.localSymbol||n,o=e.find(a.declarations,function(e){return e.kind===t.kind&&!(65536&e.flags)});t===o&&vg(a),n.parent&&e.getDeclarationOfKind(n,t.kind)===t&&vg(n)}var s=155===t.kind?void 0:t.body;if(Uh(s),0==(1&r)){var c=km(t,r);Sm(t,c)}if(i&&!e.getEffectiveReturnTypeNode(t)&&(e.nodeIsMissing(s)&&!hg(t)&&rd(t,ne),1&r&&e.nodeIsPresent(s)&&es(Ho(t))),e.isInJSFile(t)){var u=e.getJSDocTypeTag(t);u&&u.typeExpression&&!of(cu(u.typeExpression),t)&&Ar(u,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function Mg(t){if(i&&!(4194304&t.flags)){var r=e.getSourceFileOfNode(t),n=It.get(r.path);n||(n=[],It.set(r.path,n)),n.push(t)}}function Og(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];switch(a.kind){case 240:case 209:Bg(a,r),zg(a,r);break;case 279:case 244:case 218:case 246:case 225:case 226:case 227:Kg(a,r);break;case 157:case 196:case 239:case 197:case 156:case 158:case 159:a.body&&Kg(a,r),zg(a,r);break;case 155:case 160:case 161:case 165:case 166:case 242:case 241:zg(a,r);break;case 176:jg(a,r);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function Lg(t,r,n){var i=e.getNameOfDeclaration(t)||t,a=Yh(t)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;n(t,0,e.createDiagnosticForNode(i,a,r))}function Rg(t){return e.isIdentifier(t)&&95===e.idText(t).charCodeAt(0)}function Bg(t,r){for(var n=0,i=t.members;n<i.length;n++){var a=i[n];switch(a.kind){case 156:case 154:case 158:case 159:if(159===a.kind&&32768&a.symbol.flags)break;var o=Pn(a);!o.isReferenced&&e.hasModifier(a,8)&&r(a,0,e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,ii(o)));break;case 157:for(var s=0,c=a.parameters;s<c.length;s++){var u=c[s];!u.symbol.isReferenced&&e.hasModifier(u,8)&&r(u,0,e.createDiagnosticForNode(u.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(u.symbol)))}break;case 162:case 217:break;default:e.Debug.fail()}}}function jg(t,r){var n=t.typeParameter;Jg(n)&&r(t,1,e.createDiagnosticForNode(t,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(n.name)))}function zg(t,r){if(e.last(Pn(t).declarations)===t)for(var n=e.getEffectiveTypeParameterDeclarations(t),i=new e.NodeSet,a=0,o=n;a<o.length;a++){var s=o[a];if(Jg(s)){var c=e.idText(s.name),u=s.parent;if(176!==u.kind&&u.typeParameters.every(Jg)){if(i.tryAdd(u)){var l=e.isJSDocTemplateTag(u)?e.rangeOfNode(u):e.rangeOfTypeParameters(u.typeParameters),d=1===n.length,_=d?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,f=d?c:void 0;r(s,1,e.createFileDiagnostic(e.getSourceFileOfNode(u),l.pos,l.end-l.pos,_,f))}}else r(s,1,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,c))}}}function Jg(e){return!(262144&wn(e.symbol).isReferenced||Rg(e.name))}function Ug(e,t,r,n){var i=String(n(t)),a=e.get(i);a?a[1].push(r):e.set(i,[t,[r]])}function qg(t){return e.tryCast(e.getRootDeclaration(t),e.isParameter)}function Kg(t,r){if(!(4194304&t.flags)){var n=e.createMap(),i=e.createMap(),a=e.createMap();t.locals.forEach(function(t){var o;if(262144&t.flags?3&t.flags&&!(3&t.isReferenced):!t.isReferenced&&!t.exportSymbol)for(var s=0,c=t.declarations;s<c.length;s++){var l=c[s];if(!(e.isAmbientModule(l)||(e.isVariableDeclaration(l)&&e.isForInOrOfStatement(l.parent.parent)||Wg(l))&&Rg(l.name)))if(Wg(l))Ug(n,250===(o=l).kind?o:251===o.kind?o.parent:o.parent.parent,l,u);else if(e.isBindingElement(l)&&e.isObjectBindingPattern(l.parent))l!==e.last(l.parent.elements)&&e.last(l.parent.elements).dotDotDotToken||Ug(i,l.parent,l,u);else if(e.isVariableDeclaration(l))Ug(a,l.parent,l,u);else{var d=t.valueDeclaration&&qg(t.valueDeclaration),_=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);d&&_?e.isParameterPropertyDeclaration(d)||e.parameterIsThisKeyword(d)||Rg(_)||r(d,1,e.createDiagnosticForNode(_,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t))):Lg(l,e.symbolName(t),r)}}}),n.forEach(function(t){var n=t[0],i=t[1],a=n.parent;if((n.name?1:0)+(n.namedBindings?251===n.namedBindings.kind?1:n.namedBindings.elements.length:0)===i.length)r(a,0,1===i.length?e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(i).name)):e.createDiagnosticForNode(a,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var o=0,s=i;o<s.length;o++){var c=s[o];Lg(c,e.idText(c.name),r)}}),i.forEach(function(t){var n=t[0],i=t[1],o=qg(n.parent)?1:0;if(n.elements.length===i.length)1===i.length&&237===n.parent.kind&&238===n.parent.parent.kind?Ug(a,n.parent.parent,n.parent,u):r(n,o,1===i.length?e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Vg(e.first(i).name)):e.createDiagnosticForNode(n,e.Diagnostics.All_destructured_elements_are_unused));else for(var s=0,c=i;s<c.length;s++){var l=c[s];r(l,o,e.createDiagnosticForNode(l,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Vg(l.name)))}}),a.forEach(function(t){var n=t[0],i=t[1];if(n.declarations.length===i.length)r(n,0,1===i.length?e.createDiagnosticForNode(e.first(i).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Vg(e.first(i).name)):e.createDiagnosticForNode(219===n.parent.kind?n.parent:n,e.Diagnostics.All_variables_are_unused));else for(var a=0,o=i;a<o.length;a++){var s=o[a];r(s,0,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Vg(s.name)))}})}}function Vg(t){switch(t.kind){case 72:return e.idText(t);case 185:case 184:return Vg(e.cast(e.first(t.elements),e.isBindingElement).name);default:return e.Debug.assertNever(t)}}function Wg(e){return 250===e.kind||253===e.kind||251===e.kind}function Hg(t){if(218===t.kind&&fv(t),e.isFunctionOrModuleBlock(t)){var r=Rt;e.forEach(t.statements,Uh),Rt=r}else e.forEach(t.statements,Uh);t.locals&&Mg(t)}function Gg(t,r,n){if(!r||r.escapedText!==n)return!1;if(154===t.kind||153===t.kind||156===t.kind||155===t.kind||158===t.kind||159===t.kind)return!1;if(4194304&t.flags)return!1;var i=e.getRootDeclaration(t);return 151!==i.kind||!e.nodeIsMissing(i.parent.body)}function Xg(t){e.findAncestor(t,function(r){return!!(4&Ty(r))&&(72!==t.kind?Ar(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Ar(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)})}function Qg(t){e.findAncestor(t,function(r){return!!(8&Ty(r))&&(72!==t.kind?Ar(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Ar(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)})}function Yg(t,r){if(!(w>=e.ModuleKind.ES2015||N.noEmit)&&(Gg(t,r,"require")||Gg(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=vi(t);279===n.kind&&e.isExternalOrCommonJsModule(n)&&Ar(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function Zg(t,r){if(!(A>=4||N.noEmit)&&Gg(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=vi(t);279===n.kind&&e.isExternalOrCommonJsModule(n)&&1024&n.flags&&Ar(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function $g(t){if(151===e.getRootDeclaration(t).kind){var r=e.getContainingFunction(t);!function n(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(189===i.kind)return n(i.expression);if(72!==i.kind)return e.forEachChild(i,n);var a=Wr(i,i.escapedText,69317567,void 0,void 0,!1);if(a&&a!==te&&a.valueDeclaration)if(a.valueDeclaration!==t){var o=e.getEnclosingBlockScopeContainer(a.valueDeclaration);if(o===r){if(151===a.valueDeclaration.kind||186===a.valueDeclaration.kind){if(a.valueDeclaration.pos<t.pos)return;if(e.findAncestor(i,function(r){return r===t.initializer?"quit":e.isFunctionLike(r.parent)||154===r.parent.kind&&!e.hasModifier(r.parent,32)&&e.isClassLike(r.parent.parent)}))return}Ar(i,e.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(t.name),e.declarationNameToString(i))}}else Ar(i,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(t.name))}}(t.initializer)}}function eh(e){return e===ie?ne:e===tt?et:e}function th(t){if(Pg(t),e.isBindingElement(t)||Uh(t.type),t.name){if(149===t.name.kind&&(hf(t.name),t.initializer&&Vm(t.initializer)),186===t.kind){184===t.parent.kind&&A<6&&zy(t,4),t.propertyName&&149===t.propertyName.kind&&hf(t.propertyName);var r=t.parent.parent,n=Si(r),i=t.propertyName||t.name;if(!e.isBindingPattern(i)){var a=e.getTextOfPropertyName(i);if(a){var o=Ao(n,a);o&&(rp(o,void 0,!1),Jf(r,!!r.initializer&&98===r.initializer.kind,n,o))}}}if(e.isBindingPattern(t.name)&&(185===t.name.kind&&A<2&&N.downlevelIteration&&zy(t,512),e.forEach(t.name.elements,Uh)),t.initializer&&151===e.getRootDeclaration(t).kind&&e.nodeIsMissing(e.getContainingFunction(t).body))Ar(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){if(t.initializer&&226!==t.parent.parent.kind){var s=Vm(t.initializer);F&&0===t.name.elements.length?Vf(s,t):Vu(s,Ri(t),t,t.initializer),$g(t)}}else{var c=Pn(t),u=eh(Qi(c));if(t===c.valueDeclaration){var l=e.getEffectiveInitializer(t);l&&(e.isInJSFile(t)&&e.isObjectLiteralExpression(l)&&(0===l.properties.length||e.isPrototypeAccess(t.name))&&e.hasEntries(c.exports)||226===t.parent.parent.kind||(Vu(Vm(l),u,t,l,void 0),$g(t))),c.declarations.length>1&&e.some(c.declarations,function(r){return r!==t&&e.isVariableLike(r)&&!nh(r,t)})&&Ar(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var d=eh(Ri(t));u===oe||d===oe||Ou(u,d)||67108864&c.flags||rh(u,t,d),t.initializer&&Vu(Vm(t.initializer),d,t,t.initializer,void 0),nh(t,c.valueDeclaration)||Ar(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}154!==t.kind&&153!==t.kind&&(bg(t),237!==t.kind&&186!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(237!==t.kind||t.initializer)){var r=Pn(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=Wr(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&jf(n)){var i=e.getAncestor(n.valueDeclaration,238),a=219===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(218===a.kind&&e.isFunctionLike(a.parent)||245===a.kind||244===a.kind||279===a.kind)){var o=ii(n);Ar(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),Yg(t,t.name),Zg(t,t.name))}}}function rh(t,r,n){var i=e.getNameOfDeclaration(r);Ar(i,154===r.kind||153===r.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,e.declarationNameToString(i),oi(t),oi(n))}function nh(t,r){return 151===t.kind&&237===r.kind||237===t.kind&&151===r.kind||e.hasQuestionToken(t)===e.hasQuestionToken(r)&&e.getSelectedModifierFlags(t,504)===e.getSelectedModifierFlags(r,504)}function ih(t){return function(t){if(226!==t.parent.parent.kind&&227!==t.parent.parent.kind)if(4194304&t.flags)sv(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return _v(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return _v(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(219!==t.parent.parent.kind||!t.type||t.initializer||4194304&t.flags))return _v(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);N.module===e.ModuleKind.ES2015||N.module===e.ModuleKind.ESNext||N.module===e.ModuleKind.System||N.noEmit||4194304&t.parent.parent.flags||!e.hasModifier(t.parent.parent,1)||function t(r){if(72===r.kind){if("__esModule"===e.idText(r))return _v(r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=r.elements,i=0,a=n;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o))return t(o.name)}return!1}(t.name),(e.isLet(t)||e.isVarConst(t))&&function t(r){if(72===r.kind){if(111===r.originalKeywordKind)return _v(r,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var n=r.elements,i=0,a=n;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||t(o.name)}return!1}(t.name)}(t),th(t)}function ah(t){return function(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r))return _v(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(Ky(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),t.propertyName)return _v(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name);t.initializer&&dv(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}(t),th(t)}function oh(t){Uy(t)||cv(t.declarationList)||function(t){if(!function e(t){switch(t.kind){case 222:case 223:case 224:case 231:case 225:case 226:case 227:return!1;case 233:return e(t.parent)}return!0}(t.parent)){if(e.isLet(t.declarationList))return _v(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);e.isVarConst(t.declarationList)&&_v(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(t),e.forEach(t.declarationList.declarations,Uh)}function sh(t,r){var n=eg(t,r);return 16384&n.flags&&Ar(t,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function ch(t){rv(t);var r,n=Kf(eg(t.expression));if(238===t.initializer.kind){var i=t.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&Ar(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),uh(t)}else{var a=t.initializer,o=eg(a);187===a.kind||188===a.kind?Ar(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):zu(131072&(r=Ec(Tc(n))).flags?_e:r,o)?wm(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):Ar(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}n!==Se&&Im(n,126091264)||Ar(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_but_here_has_type_0,oi(n)),Uh(t.statement),t.locals&&Mg(t)}function uh(e){var t=e.initializer;t.declarations.length>=1&&ih(t.declarations[0])}function lh(e,t){return dh(qf(e),e,!0,void 0!==t)}function dh(e,t,r,n){return xi(e)?e:_h(e,t,r,n,!0)||ne}function _h(t,r,n,i,a){if(t!==Se){var o=A>=2,s=!o&&N.downlevelIteration;if(o||s||i){var c=fh(t,o?r:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,d=!1;if(n){if(1048576&u.flags){var _=t.types,f=e.filter(_,function(e){return!(132&e.flags)});f!==_&&(u=mc(f,2))}else 132&u.flags&&(u=Se);if((d=u!==t)&&(A<1&&r&&(Ar(r,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),131072&u.flags))return _e}if(!Cl(u)){if(r&&!l){var p=!!fh(t,void 0,i,!0,a);Ar(r,!n||d?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:p?e.Diagnostics.Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators: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:p?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,oi(u))}return d?_e:void 0}var m=Oo(u,1);return d&&m?132&m.flags?_e:mc([m,_e],2):m}ph(r,t,i)}function fh(t,r,n,i,a){if(!xi(t))return a_(t,function(t){var o=t;if(n){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(Yi(t,Vs(!1))||Yi(t,Hs(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return n?o.iteratedTypeOfAsyncIterable=kg(o.iteratedTypeOfIterable):o.iteratedTypeOfIterable;if(Yi(t,Gs(!1))||Yi(t,Qs(!1)))return n?o.iteratedTypeOfAsyncIterable=kg(t.typeArguments[0]):o.iteratedTypeOfIterable=t.typeArguments[0]}var s=n&&bi(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||(i?bi(t,e.getPropertyNameForKnownSymbolName("iterator")):void 0);if(!xi(c)){var u=c?Po(c,0):void 0;if(e.some(u)){var l=mh(mc(e.map(u,es),2),r,!!s);return a&&r&&l&&Ku(t,s?function(e){return Zs(Vs(!0),[e])}(l):tc(l),r),l?n?o.iteratedTypeOfAsyncIterable=s?l:kg(l):o.iteratedTypeOfIterable=l:void 0}r&&(ph(r,t,n),r=void 0)}})}function ph(t,r,n){Ar(t,n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,oi(r))}function mh(t,r,n){if(!xi(t)){var i=t;if(n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return n?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(Yi(t,(n?Ws:Xs)(!1)))return n?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=bi(t,"next");if(!xi(a)){var o=a?Po(a,0):e.emptyArray;if(0!==o.length){var s=mc(e.map(o,es),2);if(!(xi(s)||n&&xi(s=xg(s,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)))){var c=s&&bi(s,"value");if(c)return n?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c;r&&Ar(r,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:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property)}}else r&&Ar(r,n?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method)}}}function gh(e,t){if(!xi(e))return fh(e,void 0,t,!t,!1)||mh(e,void 0,t)}function hh(t){fv(t)||function(t){for(var r=t;r;){if(e.isFunctionLike(r))return _v(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 233:if(t.label&&r.label.escapedText===t.label.escapedText){var n=228===t.kind&&!e.isIterationStatement(r.statement,!0);return!!n&&_v(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 232:if(229===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}if(t.label){var i=229===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 _v(t,i)}var i=229===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;_v(t,i)}(t)}function yh(t,r){var n=2==(3&e.getFunctionFlags(t))?Sg(r):r;return!!n&&Fm(n,16387)}function vh(t){fv(t)||void 0===t.expression&&function(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!uv(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);ir.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,i,a))}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&eg(t.expression)}function bh(t){var r,n=_s(t.symbol,1),i=_s(t.symbol,0),a=Oo(t,0),o=Oo(t,1);if(a||o){e.forEach(co(t),function(e){var r=Qi(e);f(e,r,t,i,a,0),f(e,r,t,n,o,1)});var s=t.symbol.valueDeclaration;if(1&e.getObjectFlags(t)&&e.isClassLike(s))for(var c=0,u=s.members;c<u.length;c++){var l=u[c];if(!e.hasModifier(l,32)&&Fa(l)){var d=Pn(l),_=Qi(d);f(d,_,t,i,a,0),f(d,_,t,n,o,1)}}}function f(t,r,n,i,a,o){if(a&&!e.isKnownSymbol(t)){var s,c=t.valueDeclaration,u=c&&e.getNameOfDeclaration(c);if(1!==o||(u?pf(u):gf(t.escapedName)))c&&u&&(204===c.kind||149===u.kind||t.parent===n.symbol)?s=c:i?s=i:2&e.getObjectFlags(n)&&(s=e.forEach(la(n),function(e){return uo(e,t.escapedName)&&Oo(e,o)})?void 0:n.symbol.declarations[0]),s&&!zu(r,a)&&Ar(s,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,ii(t),oi(r),oi(a))}}a&&o&&!(r=n||i)&&2&e.getObjectFlags(t)&&(r=e.forEach(la(t),function(e){return Oo(e,0)&&Oo(e,1)})?void 0:t.symbol.declarations[0]),r&&!zu(o,a)&&Ar(r,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,oi(o),oi(a))}function xh(e,t){switch(e.escapedText){case"any":case"unknown":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Ar(e,t,e.escapedText)}}function Sh(t){if(t)for(var r=!1,n=0;n<t.length;n++){var a=t[n];if(tg(a),i){a.default?r=!0:r&&Ar(a,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var o=0;o<n;o++)t[o].symbol===a.symbol&&Ar(a.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(a.name))}}}function Dh(t){if(1!==t.declarations.length){var r=Jr(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=function(t){return e.filter(t.declarations,function(e){return 240===e.kind||241===e.kind})}(t);if(n.length<=1)return;if(!function(t,r){for(var n=e.length(r),i=Vo(r),a=0,o=t;a<o.length;a++){var s=o[a],c=e.getEffectiveTypeParameterDeclarations(s),u=c.length;if(u<i||u>n)return!1;for(var l=0;l<u;l++){var d=c[l],_=r[l];if(d.name.escapedText!==_.symbol.escapedName)return!1;var f=e.getEffectiveConstraintOfTypeParameter(d),p=f&&cu(f),m=po(_);if(p&&(!m||!Ou(p,m)))return!1;var g=d.default&&cu(d.default),h=Do(_);if(g&&h&&!Ou(g,h))return!1}}return!0}(n,va(t).localTypeParameters))for(var i=ii(t),a=0,o=n;a<o.length;a++)Ar(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}function kh(t){var r;!function(t){var r=e.getSourceFileOfNode(t);(function(t){var r=!1,n=!1;if(!Uy(t)&&t.heritageClauses)for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(86===o.token){if(r)return lv(o,e.Diagnostics.extends_clause_already_seen);if(n)return lv(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return lv(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(109===o.token),n)return lv(o,e.Diagnostics.implements_clause_already_seen);n=!0}Qy(o)}})(t)||Vy(t.typeParameters,r)}(t),Pg(t),t.name&&(xh(t.name,e.Diagnostics.Class_name_cannot_be_0),Yg(t,t.name),Zg(t,t.name),4194304&t.flags||(r=t.name,1===A&&"Object"===r.escapedText&&w!==e.ModuleKind.ES2015&&w!==e.ModuleKind.ESNext&&Ar(r,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[w]))),Sh(e.getEffectiveTypeParameterDeclarations(t)),bg(t);var n=Pn(t),a=va(n),o=Ba(a),s=Qi(n);Dh(n),function(t){var r;!function(e){e[e.Getter=1]="Getter",e[e.Setter=2]="Setter",e[e.Method=4]="Method",e[e.Property=3]="Property"}(r||(r={}));for(var n=e.createUnderscoreEscapedMap(),i=e.createUnderscoreEscapedMap(),a=0,o=t.members;a<o.length;a++){var s=o[a];if(157===s.kind)for(var c=0,u=s.parameters;c<u.length;c++){var l=u[c];e.isParameterPropertyDeclaration(l)&&!e.isBindingPattern(l.name)&&p(n,l.name,l.name.escapedText,3)}else{var d=e.hasModifier(s,32)?i:n,_=s.name,f=_&&e.getPropertyNameForPropertyNameNode(_);if(_&&f)switch(s.kind){case 158:p(d,_,f,1);break;case 159:p(d,_,f,2);break;case 154:p(d,_,f,3);break;case 156:p(d,_,f,4)}}}function p(t,r,n,i){var a=t.get(n);a?4&a?4!==i&&Ar(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):a&i?Ar(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):t.set(n,a|i):t.set(n,i)}}(t),4194304&t.flags||function(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r],a=i.name;if(e.hasModifier(i,32)&&a){var o=e.getPropertyNameForPropertyNameNode(a);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":Ar(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,_i(Pn(t)))}}}}(t);var c=e.getEffectiveBaseTypeNode(t);if(c){A<2&&zy(c.parent,1);var u=la(a);if(u.length&&i){var l=u[0],d=ua(a),_=Co(d);!function(t,r){var n=Po(t,1);if(n.length){var i=n[0].declaration;if(i&&e.hasModifier(i,8)){var a=e.getClassLikeDeclarationOfSymbol(t.symbol);ey(r,a)||Ar(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,pn(t.symbol))}}}(_,c),Uh(c.expression);var f=e.getClassExtendsHeritageElement(t);if(f&&f!==c&&eg(f.expression),e.some(c.typeArguments)){e.forEach(c.typeArguments,Uh);for(var p=0,m=sa(_,c.typeArguments,c);p<m.length&&_g(c,m[p].typeParameters);p++);}if(Ku(o,S=Ba(l,a.thisType),void 0)?Ku(s,Mu(_),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):Ch(t,o,S,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&d.flags&&!ia(s)&&Ar(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(_.symbol&&32&_.symbol.flags||8650752&d.flags)){var g=ca(_,c.typeArguments,c);e.forEach(g,function(e){return!Up(e.declaration)&&es(e)!==l})&&Ar(c.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(t,r){for(var n=_o(r),i=0,a=n;i<a.length;i++){var o=a[i],s=Th(o);if(!(4194304&s.flags)){var c=Th(uo(t,s.escapedName)),u=e.getDeclarationModifierFlagsFromSymbol(s);if(e.Debug.assert(!!c,"derived should point to something, even if it is the base class' declaration."),c)if(c===s){var l=e.getClassLikeDeclarationOfSymbol(t.symbol);!(128&u)||l&&e.hasModifier(l,128)||(209===l.kind?Ar(l,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ii(o),oi(r)):Ar(l,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,oi(t),ii(o),oi(r)))}else{var d=e.getDeclarationModifierFlagsFromSymbol(c);if(8&u||8&d)continue;if(zf(s)||98308&s.flags&&98308&c.flags)continue;var _=void 0;_=zf(s)?98304&c.flags?e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:98304&s.flags?e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function,Ar(e.getNameOfDeclaration(c.valueDeclaration)||c.valueDeclaration,_,oi(r),ii(s),oi(t))}}}}(a,l)}}var h=e.getClassImplementsHeritageClauseElements(t);if(h)for(var y=0,v=h;y<v.length;y++){var b=v[y];if(e.isEntityNameExpression(b.expression)||Ar(b.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),pg(b),i){var x=cu(b);if(x!==oe)if(da(x)){var S,D=x.symbol&&32&x.symbol.flags?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1;Ku(o,S=Ba(x,a.thisType),void 0)||Ch(t,o,S,D)}else Ar(b,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}i&&(bh(a),og(t),function(t){if(F&&O&&!(4194304&t.flags))for(var r=Rn(t),n=0,i=t.members;n<i.length;n++){var a=i[n];if(Eh(a)){var o=a.name;if(e.isIdentifier(o)){var s=Qi(Pn(a));3&s.flags||32768&Jl(s)||r&&Nh(o,s,r)||Ar(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(t))}function Ch(t,r,n,i){for(var a=!1,o=function(t){if(e.hasStaticModifier(t))return"continue";var i=t.name&&ny(t.name)||ny(t);if(i){var o=Ao(r,i.escapedName),s=Ao(n,i.escapedName);o&&s&&(Ku(Qi(o),Qi(s),t.name||t,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ii(i),oi(r),oi(n))})||(a=!0))}},s=0,c=t.members;s<c.length;s++)o(c[s]);a||Ku(r,n,t.name||t,i)}function Th(t){return 1&e.getCheckFlags(t)?t.target:t}function Eh(t){return 154===t.kind&&!e.hasModifier(t,160)&&!t.exclamationToken&&!t.initializer}function Nh(t,r,n){var i=e.createPropertyAccess(e.createThis(),t);return i.expression.parent=i,i.parent=n,i.flowNode=n.returnFlowNode,!(32768&Jl(v_(i,r,Vl(r))))}function Ah(t){if(Uy(t)||function(t){var r=!1;if(t.heritageClauses)for(var n=0,i=t.heritageClauses;n<i.length;n++){var a=i[n];if(86!==a.token)return e.Debug.assert(109===a.token),lv(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return lv(a,e.Diagnostics.extends_clause_already_seen);r=!0,Qy(a)}}(t),Sh(t.typeParameters),i){xh(t.name,e.Diagnostics.Interface_name_cannot_be_0),bg(t);var r=Pn(t);if(Dh(r),t===e.getDeclarationOfKind(r,241)){var n=va(r),a=Ba(n);if(function(t,r){var n=la(t);if(n.length<2)return!0;var i=e.createUnderscoreEscapedMap();e.forEach(Ea(t).declaredProperties,function(e){i.set(e.escapedName,{prop:e,containingType:t})});for(var a=!0,o=0,s=n;o<s.length;o++)for(var c=s[o],u=0,l=_o(Ba(c,t.thisType));u<l.length;u++){var d=l[u],_=i.get(d.escapedName);if(_){if(_.containingType!==t&&0===bl(_.prop,d,Lu)){a=!1;var f=oi(_.containingType),p=oi(c),m=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,ii(d),f,p);m=e.chainDiagnosticMessages(m,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,oi(t),f,p),ir.add(e.createDiagnosticForNodeFromMessageChain(r,m))}}else i.set(d.escapedName,{prop:d,containingType:c})}return a}(n,t.name)){for(var o=0,s=la(n);o<s.length;o++)Ku(a,Ba(s[o],n.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1);bh(n)}}ag(t)}e.forEach(e.getInterfaceBaseTypeNodes(t),function(t){e.isEntityNameExpression(t.expression)||Ar(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),pg(t)}),e.forEach(t.members,Uh),i&&(og(t),Mg(t))}function wh(e){var t=Ur(e);if(!(16384&t.flags)){t.flags|=16384;for(var r=0,n=0,i=e.members;n<i.length;n++){var a=i[n],o=Ph(a,r);Ur(a).enumMemberValue=o,r="number"==typeof o?o+1:void 0}}}function Ph(t,r){if(Di(t.name))Ar(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var n=e.getTextOfPropertyName(t.name);gf(n)&&!mf(n)&&Ar(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return t.initializer?function(t){var r=pa(Pn(t.parent)),n=e.isEnumConst(t.parent),i=t.initializer,a=1!==r||fa(t)?function r(n){switch(n.kind){case 202:var i=r(n.operand);if("number"==typeof i)switch(n.operator){case 38:return i;case 39:return-i;case 53:return~i}break;case 204:var a=r(n.left),s=r(n.right);if("number"==typeof a&&"number"==typeof s)switch(n.operatorToken.kind){case 50:return a|s;case 49:return a&s;case 47:return a>>s;case 48:return a>>>s;case 46:return a<<s;case 51:return a^s;case 40:return a*s;case 42:return a/s;case 38:return a+s;case 39:return a-s;case 43:return a%s;case 41:return Math.pow(a,s)}else if("string"==typeof a&&"string"==typeof s&&38===n.operatorToken.kind)return a+s;break;case 10:return n.text;case 8:return pv(n),+n.text;case 195:return r(n.expression);case 72:var c=n;return mf(c.escapedText)?+c.escapedText:e.nodeIsMissing(n)?0:o(n,Pn(t.parent),c.escapedText);case 190:case 189:var u=n;if(function e(t){return 72===t.kind||189===t.kind&&e(t.expression)||190===t.kind&&e(t.expression)&&10===t.argumentExpression.kind}(u)){var l=Zm(u.expression);if(l.symbol&&384&l.symbol.flags){var d=void 0;if(189===u.kind)d=u.name.escapedText;else{var _=u.argumentExpression;e.Debug.assert(e.isLiteralExpression(_)),d=e.escapeLeadingUnderscores(_.text)}return o(n,l.symbol,d)}}}}(i):void 0;if(void 0!==a)n&&"number"==typeof a&&!isFinite(a)&&Ar(i,isNaN(a)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===r)return Ar(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;n?Ar(i,e.Diagnostics.In_const_enum_declarations_member_initializer_must_be_constant_expression):4194304&t.parent.flags?Ar(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Ku(eg(i),va(Pn(t.parent)),i,void 0)}return a;function o(r,n,i){var a=n.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t)return Vr(o,t)?Ey(o):(Ar(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}}}(t):4194304&t.parent.flags&&!e.isEnumConst(t.parent)?void 0:void 0!==r?r:void Ar(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function Fh(t){if(i){var r=e.isGlobalScopeAugmentation(t),n=4194304&t.flags;r&&!n&&Ar(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var a=e.isAmbientModule(t);if(Bh(t,a?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;Uy(t)||n||10!==t.name.kind||_v(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&(Yg(t,t.name),Zg(t,t.name)),bg(t);var o=Pn(t);if(512&o.flags&&o.declarations.length>1&&!n&&d(t,!!N.preserveConstEnums||!!N.isolatedModules)){var s=function(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if((240===i.kind||239===i.kind&&e.nodeIsPresent(i.body))&&!(4194304&i.flags))return i}}(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?Ar(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<s.pos&&Ar(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var c=e.getDeclarationOfKind(o,240);c&&(_=t,f=c,p=e.getEnclosingBlockScopeContainer(_),m=e.getEnclosingBlockScopeContainer(f),qr(p)?qr(m):!qr(m)&&p===m)&&(Ur(t).flags|=32768)}if(a)if(e.isExternalModuleAugmentation(t)){if((r||33554432&Pn(t).flags)&&t.body)for(var u=0,l=t.body.statements;u<l.length;u++)Ih(l[u],r)}else qr(t.parent)?r?Ar(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name))&&Ar(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):Ar(t.name,r?e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}var _,f,p,m;t.body&&(Uh(t.body),e.isGlobalScopeAugmentation(t)||Mg(t))}function Ih(t,r){switch(t.kind){case 219:for(var n=0,i=t.declarationList.declarations;n<i.length;n++)Ih(i[n],r);break;case 254:case 255:lv(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 248:case 249:lv(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 186:case 237:var a=t.name;if(e.isBindingPattern(a)){for(var o=0,s=a.elements;o<s.length;o++)Ih(s[o],r);break}case 240:case 243:case 239:case 241:case 244:case 242:if(r)return;var c=Pn(t);if(c){var u=!(33554432&c.flags);u||(u=!!c.parent&&e.isExternalModuleAugmentation(c.parent.declarations[0]))}}}function Mh(e){switch(e.kind){case 72:return e;case 148:do{e=e.left}while(72!==e.kind);return e;case 189:do{e=e.expression}while(72!==e.kind);return e}}function Oh(t){var r=e.getExternalModuleName(t);if(!r||e.nodeIsMissing(r))return!1;if(!e.isStringLiteral(r))return Ar(r,e.Diagnostics.String_literal_expected),!1;var n=245===t.parent.kind&&e.isAmbientModule(t.parent.parent);return 279===t.parent.kind||n?!(n&&e.isExternalModuleNameRelative(r.text)&&!li(t)&&(Ar(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),1)):(Ar(r,255===t.kind?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1)}function Lh(t){var r=Pn(t),n=ln(r);if(n!==te){var i=(68268991&r.flags?67220415:0)|(67897832&r.flags?67897832:0)|(1920&r.flags?1920:0);n.flags&i&&Ar(t,257===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,ii(r)),!N.isolatedModules||257!==t.kind||67220415&n.flags||4194304&t.flags||Ar(t,e.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided)}}function Rh(e){Yg(e,e.name),Zg(e,e.name),Lh(e)}function Bh(e,t){var r=279===e.parent.kind||245===e.parent.kind||244===e.parent.kind;return r||lv(e,t),!r}function jh(t){if(Lh(t),e.getEmitDeclarations(N)&&pi(t.propertyName||t.name,!0),!t.parent.parent.moduleSpecifier){var r=t.propertyName||t.name,n=Wr(r,r.escapedText,70107135,void 0,void 0,!0);n&&(n===U||qr(vi(n.declarations[0])))?Ar(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r)):dn(t)}}function zh(t){var r=Pn(t),n=Jr(r);if(!n.exportsChecked){var i=r.exports.get("export=");if(i&&function(t){return e.forEachEntry(t.exports,function(e,t){return"export="!==t})}(r)){var a=en(i)||i.valueDeclaration;li(a)||e.isInJSFile(a)||Ar(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=En(r);o&&o.forEach(function(t,r){var n=t.declarations,i=t.flags;if("__export"!==r&&!(1984&i)){var a=e.countWhere(n,Tr);if(!(524288&i&&a<=2)&&a>1)for(var o=0,s=n;o<s.length;o++){var c=s[o];Jh(c)&&ir.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(r)))}}}),n.exportsChecked=!0}}function Jh(e){return 239!==e.kind&&156!==e.kind||!!e.body}function Uh(t){if(t){e.isInJSFile(t)&&e.forEach(t.jsDoc,function(t){var r=t.tags;return e.forEach(r,Uh)});var r=t.kind;if(p)switch(r){case 244:case 240:case 241:case 239:p.throwIfCancellationRequested()}switch(r){case 150:return tg(t);case 151:return rg(t);case 154:case 153:return sg(t);case 165:case 166:case 160:case 161:case 162:return ig(t);case 156:case 155:return function(t){av(t)||Zy(t.name),Ig(t),e.hasModifier(t,128)&&156===t.kind&&t.body&&Ar(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name))}(t);case 157:return cg(t);case 158:case 159:return ug(t);case 164:return pg(t);case 163:return function(t){var r=function(e){switch(e.parent.kind){case 197:case 160:case 239:case 196:case 165:case 156:case 155:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=$o(Ho(r));if(n){Uh(t.type);var i=t.parameterName;if(e.isThisTypePredicate(n))su(i);else if(n.parameterIndex>=0)r.parameters[n.parameterIndex].dotDotDotToken?Ar(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):Ku(n.type,iy(r.parameters[n.parameterIndex]),t.type,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(i){for(var a=!1,o=0,s=r.parameters;o<s.length;o++){var c=s[o].name;if(e.isBindingPattern(c)&&ng(c,i,n.parameterName)){a=!0;break}}a||Ar(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,n.parameterName)}}}else Ar(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(t);case 167:return function(e){Ls(e)}(t);case 168:return function(t){e.forEach(t.members,Uh),i&&(bh(Hc(t)),og(t),ag(t))}(t);case 169:return function(e){Uh(e.elementType)}(t);case 170:return function(t){for(var r=t.elementTypes,n=!1,i=0;i<r.length;i++){var a=r[i];if(172===a.kind){if(i!==r.length-1){_v(a,e.Diagnostics.A_rest_element_must_be_last_in_a_tuple_type);break}Dl(cu(a))||Ar(a,e.Diagnostics.A_rest_element_type_must_be_an_array_type)}else if(171===a.kind)n=!0;else if(n){_v(a,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}Ky(t.elementTypes),e.forEach(t.elementTypes,Uh)}(t);case 173:case 174:return function(t){e.forEach(t.types,Uh)}(t);case 177:case 171:case 172:return Uh(t.type);case 178:return function(e){su(e)}(t);case 179:return gg(t);case 175:return function(t){e.forEachChild(t,Uh)}(t);case 176:return function(t){e.findAncestor(t,function(e){return e.parent&&175===e.parent.kind&&e.parent.extendsType===e})||_v(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Uh(t.typeParameter),Mg(t)}(t);case 183:return function(e){Uh(e.argument),cu(e)}(t);case 295:return function(t){var r=e.getJSDocHost(t);if(e.isClassDeclaration(r)||e.isClassExpression(r)){var n=e.getJSDocTags(r).filter(e.isJSDocAugmentsTag);e.Debug.assert(n.length>0),n.length>1&&Ar(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Fg(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=Fg(a.expression);o&&i.escapedText!==o.escapedText&&Ar(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Ar(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 304:case 297:return function(t){t.typeExpression||Ar(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&xh(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Uh(t.typeExpression)}(t);case 303:return function(e){Uh(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++)Uh(r[t])}(t);case 302:return function(e){Uh(e.typeExpression)}(t);case 299:return function(t){if(Uh(t.typeExpression),!e.getParameterSymbolFromJSDoc(t)){var r=e.getHostSignatureFromJSDoc(t);if(r){var n=e.getJSDocTags(r).filter(e.isJSDocParameterTag).indexOf(t);if(n>-1&&n<r.parameters.length&&e.isBindingPattern(r.parameters[n].name))return;Xo(r)?e.findLast(e.getJSDocTags(r),e.isJSDocParameterTag)===t&&t.typeExpression&&t.typeExpression.type&&!Dl(cu(t.typeExpression.type))&&Ar(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(148===t.name.kind?t.name.right:t.name)):Ar(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(148===t.name.kind?t.name.right:t.name))}}}(t);case 289:!function(t){!i||t.type||e.isJSDocConstructSignature(t)||rd(t,ne),ig(t)}(t);case 287:case 286:case 284:case 285:case 292:return qh(t),void e.forEachChild(t,Uh);case 290:return void function(t){qh(t),Uh(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent))e.last(r.parent.parameters)!==r&&Ar(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);else{e.isJSDocTypeExpression(r)||Ar(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var n=t.parent.parent;if(e.isJSDocParameterTag(n)){var i=e.getParameterSymbolFromJSDoc(n);if(i){var a=e.getHostSignatureFromJSDoc(n);a&&e.last(a.parameters).symbol===i||Ar(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else Ar(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}}(t);case 283:return Uh(t.type);case 180:return function(e){Uh(e.objectType),Uh(e.indexType),mg(Rc(e),e)}(t);case 181:return function(t){Uh(t.typeParameter),Uh(t.type),t.type||rd(t,ne),Ku(Za(Bc(t)),Ee,e.getEffectiveConstraintOfTypeParameter(t.typeParameter))}(t);case 239:return function(e){i&&(Ig(e),$y(e),Yg(e,e.name),Zg(e,e.name))}(t);case 218:case 245:return Hg(t);case 219:return oh(t);case 221:return function(e){fv(e),eg(e.expression)}(t);case 222:return function(t){fv(t),sh(t.expression),Uh(t.thenStatement),220===t.thenStatement.kind&&Ar(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Uh(t.elseStatement)}(t);case 223:return function(e){fv(e),Uh(e.statement),sh(e.expression)}(t);case 224:return function(e){fv(e),sh(e.expression),Uh(e.statement)}(t);case 225:return function(t){fv(t)||t.initializer&&238===t.initializer.kind&&cv(t.initializer),t.initializer&&(238===t.initializer.kind?e.forEach(t.initializer.declarations,ih):eg(t.initializer)),t.condition&&sh(t.condition),t.incrementor&&eg(t.incrementor),Uh(t.statement),t.locals&&Mg(t)}(t);case 226:return ch(t);case 227:return function(t){if(rv(t),t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&A<6&&zy(t,16384):N.downlevelIteration&&A<2&&zy(t,256),238===t.initializer.kind)uh(t);else{var r=t.initializer,n=lh(t.expression,t.awaitModifier);if(187===r.kind||188===r.kind)jm(r,n||oe);else{var i=eg(r);wm(r,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),n&&Vu(n,i,r,t.expression)}}Uh(t.statement),t.locals&&Mg(t)}(t);case 228:case 229:return hh(t);case 230:return function(t){if(!fv(t)){var r=e.getContainingFunction(t);if(r){var n=es(Ho(r)),i=e.getFunctionFlags(r),a=1&i;if(F||t.expression||131072&n.flags){var o=t.expression?Vm(t.expression):ce;if(a)return;if(159===r.kind)t.expression&&Ar(t,e.Diagnostics.Setters_cannot_return_a_value);else if(157===r.kind)t.expression&&!Vu(o,n,t,t.expression)&&Ar(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(ts(r))if(2&i){var s=Sg(n),c=Dg(o,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&&Ku(c,s,t)}else Vu(o,n,t,t.expression)}else 157===r.kind||!N.noImplicitReturns||yh(r,n)||a||Ar(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else lv(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(t);case 231:return function(t){fv(t)||16384&t.flags&&lv(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),eg(t.expression);var r=e.getSourceFileOfNode(t);if(!uv(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;dv(r,n,t.statement.pos-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(t);case 232:return function(t){var r;fv(t);var n=!1,a=eg(t.expression),o=Pl(a);e.forEach(t.caseBlock.clauses,function(s){if(272===s.kind&&!n)if(void 0===r)r=s;else{var c=e.getSourceFileOfNode(t),u=e.skipTrivia(c.text,s.pos);dv(c,u,(s.statements.length>0?s.statements[0].pos:s.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0}if(i&&271===s.kind){var l=eg(s.expression),d=Pl(l),_=a;d&&o||(l=d?Fl(l):l,_=Fl(a)),zm(_,l)||Yu(l,_,s.expression,void 0)}e.forEach(s.statements,Uh)}),t.caseBlock.locals&&Mg(t.caseBlock)}(t);case 233:return function(t){fv(t)||e.findAncestor(t.parent,function(r){return e.isFunctionLike(r)?"quit":233===r.kind&&r.label.escapedText===t.label.escapedText&&(_v(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0)}),Uh(t.statement)}(t);case 234:return vh(t);case 235:return function(t){fv(t),Hg(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type)lv(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(r.variableDeclaration.initializer)lv(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var n=r.block.locals;n&&e.forEachKey(r.locals,function(t){var r=n.get(t);r&&0!=(2&r.flags)&&_v(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}Hg(r.block)}t.finallyBlock&&Hg(t.finallyBlock)}(t);case 237:return ih(t);case 186:return ah(t);case 240:return function(t){t.name||e.hasModifier(t,512)||lv(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),kh(t),e.forEach(t.members,Uh),Mg(t)}(t);case 241:return Ah(t);case 242:return function(t){Uy(t),xh(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Sh(t.typeParameters),Uh(t.type),Mg(t)}(t);case 243:return function(t){if(i){Uy(t),xh(t.name,e.Diagnostics.Enum_name_cannot_be_0),Yg(t,t.name),Zg(t,t.name),bg(t),wh(t);var r=e.isEnumConst(t);N.isolatedModules&&r&&4194304&t.flags&&Ar(t.name,e.Diagnostics.Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided);var n=Pn(t);if(t===e.getDeclarationOfKind(n,t.kind)){n.declarations.length>1&&e.forEach(n.declarations,function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==r&&Ar(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var a=!1;e.forEach(n.declarations,function(t){if(243!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(a?Ar(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)})}}}(t);case 244:return Fh(t);case 249:return function(t){if(!Bh(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!Uy(t)&&e.hasModifiers(t)&&lv(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),Oh(t))){var r=t.importClause;r&&(r.name&&Rh(r),r.namedBindings&&(251===r.namedBindings.kind?Rh(r.namedBindings):hn(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,Rh)))}}(t);case 248:return function(t){if(!Bh(t,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(Uy(t),e.isInternalModuleImportEqualsDeclaration(t)||Oh(t)))if(Rh(t),e.hasModifier(t,1)&&dn(t),259!==t.moduleReference.kind){var r=ln(Pn(t));if(r!==te){if(67220415&r.flags){var n=Mh(t.moduleReference);1920&mn(n,67221439).flags||Ar(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}67897832&r.flags&&xh(t.name,e.Diagnostics.Import_name_cannot_be_0)}}else w>=e.ModuleKind.ES2015&&!(4194304&t.flags)&&_v(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(t);case 255:return function(t){if(!Bh(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!Uy(t)&&e.hasModifiers(t)&&lv(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||Oh(t)))if(t.exportClause){e.forEach(t.exportClause.elements,jh);var r=245===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&245===t.parent.kind&&!t.moduleSpecifier&&4194304&t.flags;279===t.parent.kind||r||n||Ar(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=hn(t,t.moduleSpecifier);i&&Dn(i)&&Ar(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ii(i)),w!==e.ModuleKind.System&&w!==e.ModuleKind.ES2015&&w!==e.ModuleKind.ESNext&&zy(t,32768)}}(t);case 254:return function(t){if(!Bh(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var r=279===t.parent.kind?t.parent:t.parent.parent;244!==r.kind||e.isAmbientModule(r)?(!Uy(t)&&e.hasModifiers(t)&&lv(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),72===t.expression.kind?(dn(t),e.getEmitDeclarations(N)&&pi(t.expression,!0)):Vm(t.expression),zh(r),4194304&t.flags&&!e.isEntityNameExpression(t.expression)&&_v(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||4194304&t.flags||(w>=e.ModuleKind.ES2015?_v(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):w===e.ModuleKind.System&&_v(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):t.isExportEquals?Ar(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Ar(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 220:case 236:return void fv(t);case 258:return function(e){Pg(e)}(t)}}}function qh(t){e.isInJSFile(t)||_v(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Kh(t){var r=Ur(e.getSourceFileOfNode(t));if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||e.createMap();var n=""+u(t);r.deferredNodes.set(n,t)}}function Vh(t){var r=Ur(t);r.deferredNodes&&r.deferredNodes.forEach(function(t){switch(t.kind){case 196:case 197:case 156:case 155:!function(t){e.Debug.assert(156!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=km(t,r);if(0==(1&r)&&Sm(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||es(Ho(t)),218===t.body.kind)Uh(t.body);else{var i=eg(t.body);n&&Vu(2==(3&r)?Dg(i,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,n,t.body,t.body)}}(t);break;case 158:case 159:ug(t);break;case 209:!function(t){e.forEach(t.members,Uh),Mg(t)}(t);break;case 261:!function(e){Rf(e)}(t);break;case 260:!function(e){Rf(e.openingElement),Df(e.closingElement.tagName)?Nf(e.closingElement):eg(e.closingElement.tagName),Cf(e)}(t)}})}function Wh(t){e.performance.mark("beforeCheck"),function(t){var r=Ur(t);if(!(1&r.flags)){if(e.skipTypeChecking(t,N))return;!function(t){4194304&t.flags&&function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if((e.isDeclaration(i)||219===i.kind)&&(241!==(a=i).kind&&242!==a.kind&&249!==a.kind&&248!==a.kind&&255!==a.kind&&254!==a.kind&&247!==a.kind&&!e.hasModifier(a,515)&&lv(a,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)))return!0}var a}(t)}(t),e.clear(tr),e.clear(rr),e.forEach(t.statements,Uh),Uh(t.endOfFileToken),Vh(t),e.isExternalOrCommonJsModule(t)&&Mg(t),t.isDeclarationFile||!N.noUnusedLocals&&!N.noUnusedParameters||Og(Gh(t),function(t,r,n){!e.containsParseError(t)&&Hh(r)&&ir.add(n)}),e.isExternalOrCommonJsModule(t)&&zh(t),tr.length&&(e.forEach(tr,Xg),e.clear(tr)),rr.length&&(e.forEach(rr,Qg),e.clear(rr)),r.flags|=1}}(t),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck")}function Hh(t){switch(t){case 0:return!!N.noUnusedLocals;case 1:return!!N.noUnusedParameters;default:return e.Debug.assertNever(t)}}function Gh(t){return It.get(t.path)||e.emptyArray}function Xh(t,r){try{return p=r,function(t){if(Qh(),t){var r=ir.getGlobalDiagnostics(),i=r.length;Wh(t);var a=ir.getDiagnostics(t.fileName),o=ir.getGlobalDiagnostics();if(o!==r){var s=e.relativeComplement(r,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(n.getSourceFiles(),Wh),ir.getDiagnostics()}(t)}finally{p=void 0}}function Qh(){if(!i)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Yh(e){switch(e.kind){case 150:case 240:case 241:case 242:case 243:return!0;default:return!1}}function Zh(e){for(;148===e.parent.kind;)e=e.parent;return 164===e.parent.kind}function $h(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function ey(e,t){return!!$h(e,function(e){return e===t})}function ty(e){return void 0!==function(e){for(;148===e.parent.kind;)e=e.parent;return 248===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:254===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function ry(t){if(e.isDeclarationName(t))return Pn(t.parent);if(e.isInJSFile(t)&&189===t.parent.kind&&t.parent===t.parent.parent.left){var r=function(t){switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return Pn(t.parent);case 4:case 2:case 5:return Pn(t.parent.parent)}}(t);if(r)return r}if(254===t.parent.kind&&e.isEntityNameExpression(t)){var n=mn(t,70107135,!0);if(n&&n!==te)return n}else if(!e.isPropertyAccessExpression(t)&&ty(t)){var i=e.getAncestor(t,248);return e.Debug.assert(void 0!==i),fn(t,!0)}if(!e.isPropertyAccessExpression(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&183===r.kind&&r.qualifier===t)return r}(t);if(a){cu(a);var o=Ur(t).resolvedSymbol;return o===te?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;if(function(e){for(;189===e.parent.kind;)e=e.parent;return 211===e.parent.kind}(t)){var s=0;211===t.parent.kind?(s=67897832,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=67220415)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?mn(t,s):void 0;if(c)return c}if(299===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(150===t.parent.kind&&303===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var u=e.getTypeParameterFromJsDoc(t.parent);return u&&u.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(72===t.kind){if(e.isJSXTagName(t)&&Df(t)){var l=Nf(t.parent);return l===te?void 0:l}return mn(t,67220415,!1,!0)}if(189===t.kind||148===t.kind){var d=Ur(t);return d.resolvedSymbol?d.resolvedSymbol:(189===t.kind?Wf(t):Hf(t),d.resolvedSymbol)}}else if(Zh(t))return mn(t,s=164===t.parent.kind?67897832:1920,!1,!0);return 163===t.parent.kind?mn(t,1):void 0}function ny(t){if(279===t.kind)return e.isExternalModule(t)?wn(t.symbol):void 0;var r=t.parent,n=r.parent;if(!(8388608&t.flags)){if(_(t)){var i=Pn(r);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?vf(i):i}if(e.isLiteralComputedPropertyDeclarationName(t))return Pn(r.parent);if(72===t.kind){if(ty(t))return ry(t);if(186===r.kind&&184===n.kind&&t===r.propertyName){var a=Ao(iy(n),t.escapedText);if(a)return a}}switch(t.kind){case 72:case 189:case 148:return ry(t);case 100:var o=e.getThisContainer(t,!1);if(e.isFunctionLike(o)){var s=Ho(o);if(s.thisParameter)return s.thisParameter}if(e.isInExpressionContext(t))return eg(t).symbol;case 178:return su(t).symbol;case 98:return eg(t).symbol;case 124:var c=t.parent;return c&&157===c.kind?c.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(249===t.parent.kind||255===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJSFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return hn(t,t);if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===t)return Pn(r);case 8:var u=e.isElementAccessExpression(r)?r.argumentExpression===t?Zm(r.expression):void 0:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(n)?cu(n.objectType):void 0;return u&&Ao(u,e.escapeLeadingUnderscores(t.text));case 80:case 90:case 37:case 76:return Pn(t.parent);case 183:return e.isLiteralImportTypeNode(t)?ny(t.argument.literal):void 0;case 85:return e.isExportAssignment(t.parent)?e.Debug.assertDefined(t.parent.symbol):void 0;default:return}}}function iy(t){if(8388608&t.flags)return oe;var r,n,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&_a(Pn(i.class));if(e.isPartOfTypeNode(t)){var o=cu(t);return a?Ba(o,a.thisType):o}if(e.isExpressionNode(t))return ay(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(la(a));return s?Ba(s,a.thisType):oe}if(Yh(t))return va(n=Pn(t));if(72===(r=t).kind&&Yh(r.parent)&&r.parent.name===r)return(n=ny(t))?va(n):oe;if(e.isDeclaration(t))return Qi(n=Pn(t));if(_(t))return(n=ny(t))?Qi(n):oe;if(e.isBindingPattern(t))return Ai(t.parent,!0)||oe;if(ty(t)&&(n=ny(t))){var c=va(n);return c!==oe?c:Qi(n)}return oe}function ay(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),nu(Zm(t))}function oy(t){var r=Pn(t.parent);return e.hasModifier(t,32)?Qi(r):va(r)}function sy(t){var r=t.name;switch(r.kind){case 72:return au(e.idText(r));case 8:case 10:return au(r.text);case 149:var n=hf(r);return Im(n,12288)?n:_e;default:return e.Debug.fail("Unsupported property name."),oe}}function cy(t){t=Co(t);var r=e.createSymbolTable(_o(t)),n=Po(t,0).length?Ve:Po(t,1).length?We:void 0;return n&&e.forEach(_o(n),function(e){r.has(e.escapedName)||r.set(e.escapedName,e)}),qn(r)}function uy(t){return e.typeHasCallOrConstructSignatures(t,W)}function ly(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r)return!(189===r.parent.kind&&r.parent.name===r)&&Oy(r)===K}return!1}function dy(t){var r=hn(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=Dn(r),i=Jr(r=xn(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(67220415&r.flags):e.forEachEntry(En(r),function(e){return(e=un(e))&&!!(67220415&e.flags)})),i.exportsSomeValue}function _y(t,r){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var i=Oy(n,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(n));if(i){if(1048576&i.flags){var a=wn(i.exportSymbol);if(!r&&944&a.flags&&!(3&a.flags))return;i=a}var o=Fn(i);if(o){if(512&o.flags&&279===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==e.getSourceFileOfNode(n)?void 0:s}return e.findAncestor(n.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&Pn(t)===o})}}}}function fy(t){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=Oy(r);if(cn(n,67220415))return en(n)}}function py(t){if(418&t.flags){var r=Jr(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)){var i=Ur(t.valueDeclaration);if(Wr(n.parent,t.escapedName,67220415,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(n,!1),s=218===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function my(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=Oy(r);if(n&&py(n))return n.valueDeclaration}}}function gy(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=Pn(r);if(n)return py(n)}return!1}function hy(t){switch(t.kind){case 248:case 250:case 251:case 253:case 257:return vy(Pn(t)||te);case 255:var r=t.exportClause;return!!r&&e.some(r.elements,hy);case 254:return!t.expression||72!==t.expression.kind||vy(Pn(t)||te)}return!1}function yy(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||279!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&vy(Pn(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function vy(e){var t=ln(e);return t===te||!!(67220415&t.flags)&&(N.preserveConstEnums||!by(t))}function by(e){return Lm(e)||!!e.constEnumOnlyModule}function xy(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=Qo(Pn(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function Sy(t){return!(!F||Jo(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasModifier(t,92))}function Dy(t){return F&&Jo(t)&&!t.initializer&&e.hasModifier(t,92)}function ky(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=Pn(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(Tn(n),function(t){return 67220415&t.flags&&e.isPropertyAccessExpression(t.valueDeclaration)})}function Cy(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=Pn(r);return n&&_o(Qi(n))||e.emptyArray}function Ty(e){return Ur(e).flags||0}function Ey(e){return wh(e.parent),Ur(e).enumMemberValue}function Ny(e){switch(e.kind){case 278:case 189:case 190:return!0}return!1}function Ay(t){if(278===t.kind)return Ey(t);var r=Ur(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return Ey(n)}}function wy(t,r){var n=e.getParseTreeNode(t,e.isEntityName);if(!n)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var i=mn(n,67220415,!0,!1,r),a=mn(n,67897832,!0,!1,r);if(i&&i===a){var o=Ks(!1);if(o&&i===o)return e.TypeReferenceSerializationKind.Promise;var s=Qi(i);if(s&&aa(s))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!a)return e.TypeReferenceSerializationKind.Unknown;var c=va(a);return c===oe?e.TypeReferenceSerializationKind.Unknown:3&c.flags?e.TypeReferenceSerializationKind.ObjectType:Im(c,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Im(c,528)?e.TypeReferenceSerializationKind.BooleanType:Im(c,296)?e.TypeReferenceSerializationKind.NumberLikeType:Im(c,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:Im(c,132)?e.TypeReferenceSerializationKind.StringLikeType:Ll(c)?e.TypeReferenceSerializationKind.ArrayLikeType:Im(c,12288)?e.TypeReferenceSerializationKind.ESSymbolType:function(e){return!!(524288&e.flags)&&Po(e,0).length>0}(c)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Dl(c)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function Py(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.createToken(120);var s=Pn(o),c=!s||133120&s.flags?oe:Il(Qi(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=Vl(c)),J.typeToTypeNode(c,r,1024|n,i)}function Fy(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.createToken(120);var o=Ho(a);return J.typeToTypeNode(es(o),r,1024|n,i)}function Iy(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.createToken(120);var o=ed(ay(a));return J.typeToTypeNode(o,r,1024|n,i)}function My(t){return Pt.has(e.escapeLeadingUnderscores(t))}function Oy(t,r){var n=Ur(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=vi(a))}return Wr(i,t.escapedText,70366143,void 0,void 0,!0)}function Ly(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=Oy(r);if(n)return On(n).valueDeclaration}}}function Ry(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&iu(Qi(Pn(t)))}function By(t,r){return function(t,r,n){return(1024&t.flags?J.symbolToExpression(t.symbol,67220415,r,void 0,n):t===he?e.createTrue():t===me&&e.createFalse())||e.createLiteral(t.value)}(Qi(Pn(t)),t,r)}function jy(t){var r=244===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=yn(r,r,void 0);if(n)return e.getDeclarationOfKind(n,279)}function zy(t,r){if((m&r)!==r&&N.importHelpers){var n=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(n,N)&&!(4194304&t.flags)){var i=(c=n,u=t,g||(g=vn(c,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,u)||te),g);if(i!==te)for(var a=r&~m,o=1;o<=65536;o<<=1)if(a&o){var s=Jy(o);Kr(i.exports,e.escapeLeadingUnderscores(s),67220415)||Ar(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}m|=r}}var c,u}function Jy(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:return e.Debug.fail("Unrecognized helper")}}function Uy(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 156!==t.kind||e.nodeIsPresent(t.body)?lv(t,e.Diagnostics.Decorators_are_not_valid_here):lv(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(158===t.kind||159===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return lv(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||function(t){var r,n,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 158:case 159:case 157:case 154:case 153:case 156:case 155:case 162:case 244:case 249:case 248:case 255:case 254:case 196:case 197:case 151:return!1;default:if(245===t.parent.kind||279===t.parent.kind)return!1;switch(t.kind){case 239:return qy(t,121);case 240:return qy(t,118);case 241:case 219:case 242:return!0;case 243:return qy(t,77);default:return e.Debug.fail(),!1}}}(t)?lv(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,u=t.modifiers;c<u.length;c++){var l=u[c];if(133!==l.kind){if(153===t.kind||155===t.kind)return _v(l,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(l.kind));if(162===t.kind)return _v(l,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(l.kind))}switch(l.kind){case 77:if(243!==t.kind)return _v(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(77));break;case 115:case 114:case 113:var d=ui(e.modifierToFlag(l.kind));if(28&s)return _v(l,e.Diagnostics.Accessibility_modifier_already_seen);if(32&s)return _v(l,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"static");if(64&s)return _v(l,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"readonly");if(256&s)return _v(l,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"async");if(245===t.parent.kind||279===t.parent.kind)return _v(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(128&s)return 113===l.kind?_v(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):_v(l,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"abstract");s|=e.modifierToFlag(l.kind);break;case 116:if(32&s)return _v(l,e.Diagnostics._0_modifier_already_seen,"static");if(64&s)return _v(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return _v(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(245===t.parent.kind||279===t.parent.kind)return _v(l,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(151===t.kind)return _v(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return _v(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");s|=32,r=l;break;case 133:if(64&s)return _v(l,e.Diagnostics._0_modifier_already_seen,"readonly");if(154!==t.kind&&153!==t.kind&&162!==t.kind&&151!==t.kind)return _v(l,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64,a=l;break;case 85:if(1&s)return _v(l,e.Diagnostics._0_modifier_already_seen,"export");if(2&s)return _v(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return _v(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return _v(l,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(240===t.parent.kind)return _v(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(151===t.kind)return _v(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 80:var _=279===t.parent.kind?t.parent:t.parent.parent;if(244===_.kind&&!e.isAmbientModule(_))return _v(l,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);s|=512;break;case 125:if(2&s)return _v(l,e.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return _v(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(240===t.parent.kind)return _v(l,e.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(151===t.kind)return _v(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(4194304&t.parent.flags&&245===t.parent.kind)return _v(l,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);s|=2,n=l;break;case 118:if(128&s)return _v(l,e.Diagnostics._0_modifier_already_seen,"abstract");if(240!==t.kind){if(156!==t.kind&&154!==t.kind&&158!==t.kind&&159!==t.kind)return _v(l,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(240!==t.parent.kind||!e.hasModifier(t.parent,128))return _v(l,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return _v(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return _v(l,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}s|=128;break;case 121:if(256&s)return _v(l,e.Diagnostics._0_modifier_already_seen,"async");if(2&s||4194304&t.parent.flags)return _v(l,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(151===t.kind)return _v(l,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");s|=256,i=l}}return 157===t.kind?32&s?_v(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&s?_v(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&s?_v(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&s)&&_v(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):(249===t.kind||248===t.kind)&&2&s?_v(n,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):151===t.kind&&92&s&&e.isBindingPattern(t.name)?_v(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):151===t.kind&&92&s&&t.dotDotDotToken?_v(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(256&s)&&function(t,r){switch(t.kind){case 156:case 239:case 196:case 197:return!1}return _v(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(t,i)}(t)}function qy(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function Ky(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&dv(t[0],t.end-",".length,",".length,r)}function Vy(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return dv(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function Wy(t){if(A>=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(a=t.parameters,e.filter(a,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)}));if(e.length(n)){e.forEach(n,function(t){Nr(Ar(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))});var i=n.map(function(t,r){return 0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)});return Nr.apply(void 0,[Ar(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)].concat(i)),!0}}}var a;return!1}function Hy(t){var r=e.getSourceFileOfNode(t);return Uy(t)||Vy(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i<n;i++){var a=t[i];if(a.dotDotDotToken){if(i!==n-1)return _v(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(4194304&a.flags||Ky(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.isBindingPattern(a.name))return _v(a.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(a.questionToken)return _v(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return _v(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(a.questionToken){if(r=!0,a.initializer)return _v(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!a.initializer)return _v(a.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(t.parameters)||function(t,r){if(!e.isArrowFunction(t))return!1;var n=t.equalsGreaterThanToken,i=e.getLineAndCharacterOfPosition(r,n.pos).line,a=e.getLineAndCharacterOfPosition(r,n.end).line;return i!==a&&_v(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)||e.isFunctionLikeDeclaration(t)&&Wy(t)}function Gy(t,r){return Ky(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return dv(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function Xy(t){return function(t){if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(210===i.kind)return dv(i,i.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}(t)}function Qy(t){var r=t.types;if(Ky(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return dv(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,Yy)}function Yy(e){return Gy(e,e.typeArguments)}function Zy(t){if(149!==t.kind)return!1;var r=t;return 204===r.expression.kind&&27===r.expression.operatorToken.kind&&_v(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function $y(t){if(t.asteriskToken){if(e.Debug.assert(239===t.kind||196===t.kind||156===t.kind),4194304&t.flags)return _v(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return _v(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function ev(e,t){return!!e&&_v(e,t)}function tv(e,t){return!!e&&_v(e,t)}function rv(t){if(fv(t))return!0;if(227===t.kind&&t.awaitModifier&&0==(16384&t.flags))return _v(t.awaitModifier,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator);if(238===t.initializer.kind){var r=t.initializer;if(!cv(r)){var n=r.declarations;if(!n.length)return!1;if(n.length>1){var i=226===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 lv(r.declarations[1],i)}var a=n[0];if(a.initializer){var i=226===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 _v(a.name,i)}if(a.type)return _v(a,i=226===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function nv(t){if(t.parameters.length===(158===t.kind?1:2))return e.getThisParameter(t)}function iv(t,r){if(function(t){return e.isDynamicName(t)&&!Aa(t)}(t))return _v(t,r)}function av(t){if(Hy(t))return!0;if(156===t.kind){if(188===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||121!==e.first(t.modifiers).kind))return lv(t,e.Diagnostics.Modifiers_cannot_appear_here);if(ev(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(tv(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return dv(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if($y(t))return!0}if(e.isClassLike(t.parent)){if(4194304&t.flags)return iv(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(156===t.kind&&!t.body)return iv(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(241===t.parent.kind)return iv(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(168===t.parent.kind)return iv(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function ov(e){return 10===e.kind||8===e.kind||202===e.kind&&39===e.operator&&8===e.operand.kind}function sv(t){var r,n=t.initializer;if(n){var i=!(ov(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&ov(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&Vm(t).flags)}(n)||102===n.kind||87===n.kind||(r=n,9===r.kind||202===r.kind&&39===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return _v(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return _v(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return _v(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function cv(t){var r=t.declarations;return!!Ky(t.declarations)||!t.declarations.length&&dv(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function uv(e){return e.parseDiagnostics.length>0}function lv(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!uv(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return ir.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function dv(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!uv(c)&&(ir.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function _v(t,r,n,i,a){return!uv(e.getSourceFileOfNode(t))&&(ir.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function fv(t){if(4194304&t.flags){if(e.isAccessor(t.parent))return Ur(t).hasReportedStatementInAmbientContext=!0;if(!Ur(t).hasReportedStatementInAmbientContext&&e.isFunctionLike(t.parent))return Ur(t).hasReportedStatementInAmbientContext=lv(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(218===t.parent.kind||245===t.parent.kind||279===t.parent.kind){var r=Ur(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=lv(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function pv(t){if(32&t.numericLiteralFlags){var r=void 0;if(A>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,182)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,278)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&39===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return _v(n?t.parent:t,r,i)}}return!1}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(t||(t={}))}(d||(d={})),function(e){function t(t){var r=e.createNode(t,-1,-1);return r.flags|=8,r}function r(t,r){return t!==r&&(Kt(t,r),Bt(t,r),e.aggregateTransformFlags(t)),t}function n(t,r){if(t&&t!==e.emptyArray){if(e.isNodeArray(t))return t}else t=[];var n=t;return n.pos=-1,n.end=-1,n.hasTrailingComma=r,n}function i(e){if(void 0===e)return e;var r=t(e.kind);for(var n in r.flags|=e.flags,Kt(r,e),e)!r.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function a(t,r){if("number"==typeof t)return o(t+"");if("object"==typeof t&&"base10Value"in t)return s(e.pseudoBigIntToString(t)+"n");if("boolean"==typeof t)return t?p():m();if(e.isString(t)){var n=c(t);return r&&(n.singleQuote=!0),n}return i=t,(a=c(e.getTextOfIdentifierOrLiteral(i))).textSourceNode=i,a;var i,a}function o(e){var r=t(8);return r.text=e,r.numericLiteralFlags=0,r}function s(e){var r=t(9);return r.text=e,r}function c(e){var r=t(10);return r.text=e,r}function u(r,i){var a=t(72);return a.escapedText=e.escapeLeadingUnderscores(r),a.originalKeywordKind=r?e.stringToToken(r):0,a.autoGenerateFlags=0,a.autoGenerateId=0,i&&(a.typeArguments=n(i)),a}e.updateNode=r,e.createNodeArray=n,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createBigIntLiteral=s,e.createStringLiteral=c,e.createRegularExpressionLiteral=function(e){var r=t(13);return r.text=e,r},e.createIdentifier=u,e.updateIdentifier=function(t,n){return t.typeArguments!==n?r(u(e.idText(t),n),t):t};var l,d=0;function _(e){var t=u(e);return t.autoGenerateFlags=19,t.autoGenerateId=d,d++,t}function f(e){return t(e)}function p(){return t(102)}function m(){return t(87)}function g(e){return f(e)}function h(e,r){var n=t(148);return n.left=e,n.right=Ot(r),n}function y(r){var n=t(149);return n.expression=function(t){return e.isCommaSequence(t)?se(t):t}(r),n}function v(e,r,n){var i=t(150);return i.name=Ot(e),i.constraint=r,i.default=n,i}function b(r,n,i,a,o,s,c){var u=t(151);return u.decorators=Lt(r),u.modifiers=Lt(n),u.dotDotDotToken=i,u.name=Ot(a),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function x(r){var n=t(152);return n.expression=e.parenthesizeForAccess(r),n}function S(e,r,n,i,a){var o=t(153);return o.modifiers=Lt(e),o.name=Ot(r),o.questionToken=n,o.type=i,o.initializer=a,o}function D(e,r,n,i,a,o){var s=t(154);return s.decorators=Lt(e),s.modifiers=Lt(r),s.name=Ot(n),s.questionToken=void 0!==i&&56===i.kind?i:void 0,s.exclamationToken=void 0!==i&&52===i.kind?i:void 0,s.type=a,s.initializer=o,s}function k(e,t,r,n,i){var a=w(155,e,t,r);return a.name=Ot(n),a.questionToken=i,a}function C(e,r,i,a,o,s,c,u,l){var d=t(156);return d.decorators=Lt(e),d.modifiers=Lt(r),d.asteriskToken=i,d.name=Ot(a),d.questionToken=o,d.typeParameters=Lt(s),d.parameters=n(c),d.type=u,d.body=l,d}function T(e,r,i,a){var o=t(157);return o.decorators=Lt(e),o.modifiers=Lt(r),o.typeParameters=void 0,o.parameters=n(i),o.type=void 0,o.body=a,o}function E(e,r,i,a,o,s){var c=t(158);return c.decorators=Lt(e),c.modifiers=Lt(r),c.name=Ot(i),c.typeParameters=void 0,c.parameters=n(a),c.type=o,c.body=s,c}function N(e,r,i,a,o){var s=t(159);return s.decorators=Lt(e),s.modifiers=Lt(r),s.name=Ot(i),s.typeParameters=void 0,s.parameters=n(a),s.body=o,s}function A(e,r,i,a){var o=t(162);return o.decorators=Lt(e),o.modifiers=Lt(r),o.parameters=n(i),o.type=a,o}function w(e,r,n,i,a){var o=t(e);return o.typeParameters=Lt(r),o.parameters=Lt(n),o.type=i,o.typeArguments=Lt(a),o}function P(e,t,n,i){return e.typeParameters!==t||e.parameters!==n||e.type!==i?r(w(e.kind,t,n,i),e):e}function F(e,r){var n=t(163);return n.parameterName=Ot(e),n.type=r,n}function I(r,n){var i=t(164);return i.typeName=Ot(r),i.typeArguments=n&&e.parenthesizeTypeParameters(n),i}function M(e){var r=t(167);return r.exprName=e,r}function O(e){var r=t(168);return r.members=n(e),r}function L(r){var n=t(169);return n.elementType=e.parenthesizeArrayTypeMember(r),n}function R(e){var r=t(170);return r.elementTypes=n(e),r}function B(r){var n=t(171);return n.type=e.parenthesizeArrayTypeMember(r),n}function j(e){var r=t(172);return r.type=e,r}function z(r,n){var i=t(r);return i.types=e.parenthesizeElementTypeMembers(n),i}function J(e,t){return e.types!==t?r(z(e.kind,t),e):e}function U(r,n,i,a){var o=t(175);return o.checkType=e.parenthesizeConditionalTypeMember(r),o.extendsType=e.parenthesizeConditionalTypeMember(n),o.trueType=i,o.falseType=a,o}function q(e){var r=t(176);return r.typeParameter=e,r}function K(e,r,n,i){var a=t(183);return a.argument=e,a.qualifier=r,a.typeArguments=Lt(n),a.isTypeOf=i,a}function V(e){var r=t(177);return r.type=e,r}function W(r,n){var i=t(179);return i.operator="number"==typeof r?r:129,i.type=e.parenthesizeElementTypeMember("number"==typeof r?n:r),i}function H(r,n){var i=t(180);return i.objectType=e.parenthesizeElementTypeMember(r),i.indexType=n,i}function G(e,r,n,i){var a=t(181);return a.readonlyToken=e,a.typeParameter=r,a.questionToken=n,a.type=i,a}function X(e){var r=t(182);return r.literal=e,r}function Q(e){var r=t(184);return r.elements=n(e),r}function Y(e){var r=t(185);return r.elements=n(e),r}function Z(e,r,n,i){var a=t(186);return a.dotDotDotToken=e,a.propertyName=Ot(r),a.name=Ot(n),a.initializer=i,a}function $(r,i){var a=t(187);return a.elements=e.parenthesizeListElements(n(r)),i&&(a.multiLine=!0),a}function ee(e,r){var i=t(188);return i.properties=n(e),r&&(i.multiLine=!0),i}function te(r,n){var i=t(189);return i.expression=e.parenthesizeForAccess(r),i.name=Ot(n),jt(i,131072),i}function re(r,n){var i,o=t(190);return o.expression=e.parenthesizeForAccess(r),o.argumentExpression=(i=n,e.isString(i)||"number"==typeof i?a(i):i),o}function ne(r,i,a){var o=t(191);return o.expression=e.parenthesizeForAccess(r),o.typeArguments=Lt(i),o.arguments=e.parenthesizeListElements(n(a)),o}function ie(r,i,a){var o=t(192);return o.expression=e.parenthesizeForNew(r),o.typeArguments=Lt(i),o.arguments=a?e.parenthesizeListElements(n(a)):void 0,o}function ae(r,n,i){var a=t(193);return a.tag=e.parenthesizeForAccess(r),i?(a.typeArguments=Lt(n),a.template=i):(a.typeArguments=void 0,a.template=n),a}function oe(r,n){var i=t(194);return i.type=r,i.expression=e.parenthesizePrefixOperand(n),i}function se(e){var r=t(195);return r.expression=e,r}function ce(e,r,i,a,o,s,c){var u=t(196);return u.modifiers=Lt(e),u.asteriskToken=r,u.name=Ot(i),u.typeParameters=Lt(a),u.parameters=n(o),u.type=s,u.body=c,u}function ue(r,i,a,o,s,c){var u=t(197);return u.modifiers=Lt(r),u.typeParameters=Lt(i),u.parameters=n(a),u.type=o,u.equalsGreaterThanToken=s||f(37),u.body=e.parenthesizeConciseBody(c),u}function le(r){var n=t(198);return n.expression=e.parenthesizePrefixOperand(r),n}function de(r){var n=t(199);return n.expression=e.parenthesizePrefixOperand(r),n}function _e(r){var n=t(200);return n.expression=e.parenthesizePrefixOperand(r),n}function fe(r){var n=t(201);return n.expression=e.parenthesizePrefixOperand(r),n}function pe(r,n){var i=t(202);return i.operator=r,i.operand=e.parenthesizePrefixOperand(n),i}function me(r,n){var i=t(203);return i.operand=e.parenthesizePostfixOperand(r),i.operator=n,i}function ge(r,n,i){var a,o=t(204),s="number"==typeof(a=n)?f(a):a,c=s.kind;return o.left=e.parenthesizeBinaryOperand(c,r,!0,void 0),o.operatorToken=s,o.right=e.parenthesizeBinaryOperand(c,i,!1,o.left),o}function he(r,n,i,a,o){var s=t(205);return s.condition=e.parenthesizeForConditionalHead(r),s.questionToken=o?n:f(56),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?i:n),s.colonToken=o?a:f(57),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||i),s}function ye(e,r){var i=t(206);return i.head=e,i.templateSpans=n(r),i}function ve(e,r){var n=t(207);return n.asteriskToken=e&&40===e.kind?e:void 0,n.expression=e&&40!==e.kind?e:r,n}function be(r){var n=t(208);return n.expression=e.parenthesizeExpressionForList(r),n}function xe(e,r,i,a,o){var s=t(209);return s.decorators=void 0,s.modifiers=Lt(e),s.name=Ot(r),s.typeParameters=Lt(i),s.heritageClauses=Lt(a),s.members=n(o),s}function Se(r,n){var i=t(211);return i.expression=e.parenthesizeForAccess(n),i.typeArguments=Lt(r),i}function De(e,r){var n=t(212);return n.expression=e,n.type=r,n}function ke(r){var n=t(213);return n.expression=e.parenthesizeForAccess(r),n}function Ce(e,r){var n=t(214);return n.keywordToken=e,n.name=r,n}function Te(e,r){var n=t(216);return n.expression=e,n.literal=r,n}function Ee(e,r){var i=t(218);return i.statements=n(e),r&&(i.multiLine=r),i}function Ne(r,n){var i=t(219);return i.decorators=void 0,i.modifiers=Lt(r),i.declarationList=e.isArray(n)?We(n):n,i}function Ae(r){var n=t(221);return n.expression=e.parenthesizeExpressionForExpressionStatement(r),n}function we(e,t){return e.expression!==t?r(Ae(t),e):e}function Pe(e,r,n){var i=t(222);return i.expression=e,i.thenStatement=r,i.elseStatement=n,i}function Fe(e,r){var n=t(223);return n.statement=e,n.expression=r,n}function Ie(e,r){var n=t(224);return n.expression=e,n.statement=r,n}function Me(e,r,n,i){var a=t(225);return a.initializer=e,a.condition=r,a.incrementor=n,a.statement=i,a}function Oe(e,r,n){var i=t(226);return i.initializer=e,i.expression=r,i.statement=n,i}function Le(e,r,n,i){var a=t(227);return a.awaitModifier=e,a.initializer=r,a.expression=n,a.statement=i,a}function Re(e){var r=t(228);return r.label=Ot(e),r}function Be(e){var r=t(229);return r.label=Ot(e),r}function je(e){var r=t(230);return r.expression=e,r}function ze(e,r){var n=t(231);return n.expression=e,n.statement=r,n}function Je(r,n){var i=t(232);return i.expression=e.parenthesizeExpressionForList(r),i.caseBlock=n,i}function Ue(e,r){var n=t(233);return n.label=Ot(e),n.statement=r,n}function qe(e){var r=t(234);return r.expression=e,r}function Ke(e,r,n){var i=t(235);return i.tryBlock=e,i.catchClause=r,i.finallyBlock=n,i}function Ve(r,n,i){var a=t(237);return a.name=Ot(r),a.type=n,a.initializer=void 0!==i?e.parenthesizeExpressionForList(i):void 0,a}function We(e,r){void 0===r&&(r=0);var i=t(238);return i.flags|=3&r,i.declarations=n(e),i}function He(e,r,i,a,o,s,c,u){var l=t(239);return l.decorators=Lt(e),l.modifiers=Lt(r),l.asteriskToken=i,l.name=Ot(a),l.typeParameters=Lt(o),l.parameters=n(s),l.type=c,l.body=u,l}function Ge(e,r,i,a,o,s){var c=t(240);return c.decorators=Lt(e),c.modifiers=Lt(r),c.name=Ot(i),c.typeParameters=Lt(a),c.heritageClauses=Lt(o),c.members=n(s),c}function Xe(e,r,i,a,o,s){var c=t(241);return c.decorators=Lt(e),c.modifiers=Lt(r),c.name=Ot(i),c.typeParameters=Lt(a),c.heritageClauses=Lt(o),c.members=n(s),c}function Qe(e,r,n,i,a){var o=t(242);return o.decorators=Lt(e),o.modifiers=Lt(r),o.name=Ot(n),o.typeParameters=Lt(i),o.type=a,o}function Ye(e,r,i,a){var o=t(243);return o.decorators=Lt(e),o.modifiers=Lt(r),o.name=Ot(i),o.members=n(a),o}function Ze(e,r,n,i,a){void 0===a&&(a=0);var o=t(244);return o.flags|=532&a,o.decorators=Lt(e),o.modifiers=Lt(r),o.name=n,o.body=i,o}function $e(e){var r=t(245);return r.statements=n(e),r}function et(e){var r=t(246);return r.clauses=n(e),r}function tt(e){var r=t(247);return r.name=Ot(e),r}function rt(e,r,n,i){var a=t(248);return a.decorators=Lt(e),a.modifiers=Lt(r),a.name=Ot(n),a.moduleReference=i,a}function nt(e,r,n,i){var a=t(249);return a.decorators=Lt(e),a.modifiers=Lt(r),a.importClause=n,a.moduleSpecifier=i,a}function it(e,r){var n=t(250);return n.name=e,n.namedBindings=r,n}function at(e){var r=t(251);return r.name=e,r}function ot(e){var r=t(252);return r.elements=n(e),r}function st(e,r){var n=t(253);return n.propertyName=e,n.name=r,n}function ct(r,n,i,a){var o=t(254);return o.decorators=Lt(r),o.modifiers=Lt(n),o.isExportEquals=i,o.expression=i?e.parenthesizeBinaryOperand(59,a,!1,void 0):e.parenthesizeDefaultExpression(a),o}function ut(e,r,n,i){var a=t(255);return a.decorators=Lt(e),a.modifiers=Lt(r),a.exportClause=n,a.moduleSpecifier=i,a}function lt(e){var r=t(256);return r.elements=n(e),r}function dt(e,r){var n=t(257);return n.propertyName=Ot(e),n.name=Ot(r),n}function _t(e){var r=t(259);return r.expression=e,r}function ft(e,r){var n=t(e);return n.tagName=u(r),n}function pt(e,r,i){var a=t(260);return a.openingElement=e,a.children=n(r),a.closingElement=i,a}function mt(e,r,n){var i=t(261);return i.tagName=e,i.typeArguments=Lt(r),i.attributes=n,i}function gt(e,r,n){var i=t(262);return i.tagName=e,i.typeArguments=Lt(r),i.attributes=n,i}function ht(e){var r=t(263);return r.tagName=e,r}function yt(e,r,i){var a=t(264);return a.openingFragment=e,a.children=n(r),a.closingFragment=i,a}function vt(e,r){var n=t(267);return n.name=e,n.initializer=r,n}function bt(e){var r=t(268);return r.properties=n(e),r}function xt(e){var r=t(269);return r.expression=e,r}function St(e,r){var n=t(270);return n.dotDotDotToken=e,n.expression=r,n}function Dt(r,i){var a=t(271);return a.expression=e.parenthesizeExpressionForList(r),a.statements=n(i),a}function kt(e){var r=t(272);return r.statements=n(e),r}function Ct(e,r){var i=t(273);return i.token=e,i.types=n(r),i}function Tt(r,n){var i=t(274);return i.variableDeclaration=e.isString(r)?Ve(r):r,i.block=n,i}function Et(r,n){var i=t(275);return i.name=Ot(r),i.questionToken=void 0,i.initializer=e.parenthesizeExpressionForList(n),i}function Nt(r,n){var i=t(276);return i.name=Ot(r),i.objectAssignmentInitializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,i}function At(r){var n=t(277);return n.expression=void 0!==r?e.parenthesizeExpressionForList(r):void 0,n}function wt(r,n){var i=t(278);return i.name=Ot(r),i.initializer=n&&e.parenthesizeExpressionForList(n),i}function Pt(e,r){var n=t(308);return n.expression=e,n.original=r,Bt(n,r),n}function Ft(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(309===t.kind)return t.elements;if(e.isBinaryExpression(t)&&27===t.operatorToken.kind)return[t.left,t.right]}return t}function It(r){var i=t(309);return i.elements=n(e.sameFlatMap(r,Ft)),i}function Mt(t,r){void 0===r&&(r=e.emptyArray);var n=e.createNode(280);return n.prepends=r,n.sourceFiles=t,n}function Ot(t){return e.isString(t)?u(t):t}function Lt(e){return e?n(e):void 0}function Rt(t){if(!t.emitNode){if(e.isParseTreeNode(t)){if(279===t.kind)return t.emitNode={annotatedNodes:[t]};Rt(e.getSourceFileOfNode(t)).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function Bt(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function jt(e,t){return Rt(e).flags=t,e}function zt(e){var t=e.emitNode;return t&&t.leadingComments}function Jt(e,t){return Rt(e).leadingComments=t,e}function Ut(e){var t=e.emitNode;return t&&t.trailingComments}function qt(e,t){return Rt(e).trailingComments=t,e}function Kt(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=function(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers,d=t.startsOnNewLine;r||(r={});i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments));a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments));n&&(r.flags=n);o&&(r.commentRange=o);s&&(r.sourceMapRange=s);c&&(r.tokenSourceMapRanges=function(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges));void 0!==u&&(r.constantValue=u);l&&(r.helpers=e.addRange(r.helpers,l));void 0!==d&&(r.startsOnNewLine=d);return r}(n,t.emitNode))}return t}e.createTempVariable=function(e,t){var r=u("");return r.autoGenerateFlags=1,r.autoGenerateId=d,d++,e&&e(r),t&&(r.autoGenerateFlags|=8),r},e.createLoopVariable=function(){var e=u("");return e.autoGenerateFlags=2,e.autoGenerateId=d,d++,e},e.createUniqueName=function(e){var t=u(e);return t.autoGenerateFlags=3,t.autoGenerateId=d,d++,t},e.createOptimisticUniqueName=_,e.createFileLevelUniqueName=function(e){var t=_(e);return t.autoGenerateFlags|=32,t},e.getGeneratedNameForNode=function(t,r){var n=u(t&&e.isIdentifier(t)?e.idText(t):"");return n.autoGenerateFlags=4|r,n.autoGenerateId=d,n.original=t,d++,n},e.createToken=f,e.createSuper=function(){return t(98)},e.createThis=function(){return t(100)},e.createNull=function(){return t(96)},e.createTrue=p,e.createFalse=m,e.createModifier=g,e.createModifiersFromModifierFlags=function(e){var t=[];return 1&e&&t.push(g(85)),2&e&&t.push(g(125)),512&e&&t.push(g(80)),2048&e&&t.push(g(77)),4&e&&t.push(g(115)),8&e&&t.push(g(113)),16&e&&t.push(g(114)),128&e&&t.push(g(118)),32&e&&t.push(g(116)),64&e&&t.push(g(133)),256&e&&t.push(g(121)),t},e.createQualifiedName=h,e.updateQualifiedName=function(e,t,n){return e.left!==t||e.right!==n?r(h(t,n),e):e},e.createComputedPropertyName=y,e.updateComputedPropertyName=function(e,t){return e.expression!==t?r(y(t),e):e},e.createTypeParameterDeclaration=v,e.updateTypeParameterDeclaration=function(e,t,n,i){return e.name!==t||e.constraint!==n||e.default!==i?r(v(t,n,i),e):e},e.createParameter=b,e.updateParameter=function(e,t,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==i||e.name!==a||e.questionToken!==o||e.type!==s||e.initializer!==c?r(b(t,n,i,a,o,s,c),e):e},e.createDecorator=x,e.updateDecorator=function(e,t){return e.expression!==t?r(x(t),e):e},e.createPropertySignature=S,e.updatePropertySignature=function(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.questionToken!==i||e.type!==a||e.initializer!==o?r(S(t,n,i,a,o),e):e},e.createProperty=D,e.updateProperty=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.questionToken!==(void 0!==a&&56===a.kind?a:void 0)||e.exclamationToken!==(void 0!==a&&52===a.kind?a:void 0)||e.type!==o||e.initializer!==s?r(D(t,n,i,a,o,s),e):e},e.createMethodSignature=k,e.updateMethodSignature=function(e,t,n,i,a,o){return e.typeParameters!==t||e.parameters!==n||e.type!==i||e.name!==a||e.questionToken!==o?r(k(t,n,i,a,o),e):e},e.createMethod=C,e.updateMethod=function(e,t,n,i,a,o,s,c,u,l){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.questionToken!==o||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==l?r(C(t,n,i,a,o,s,c,u,l),e):e},e.createConstructor=T,e.updateConstructor=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.parameters!==i||e.body!==a?r(T(t,n,i,a),e):e},e.createGetAccessor=E,e.updateGetAccessor=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.type!==o||e.body!==s?r(E(t,n,i,a,o,s),e):e},e.createSetAccessor=N,e.updateSetAccessor=function(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.parameters!==a||e.body!==o?r(N(t,n,i,a,o),e):e},e.createCallSignature=function(e,t,r){return w(160,e,t,r)},e.updateCallSignature=function(e,t,r,n){return P(e,t,r,n)},e.createConstructSignature=function(e,t,r){return w(161,e,t,r)},e.updateConstructSignature=function(e,t,r,n){return P(e,t,r,n)},e.createIndexSignature=A,e.updateIndexSignature=function(e,t,n,i,a){return e.parameters!==i||e.type!==a||e.decorators!==t||e.modifiers!==n?r(A(t,n,i,a),e):e},e.createSignatureDeclaration=w,e.createKeywordTypeNode=function(e){return t(e)},e.createTypePredicateNode=F,e.updateTypePredicateNode=function(e,t,n){return e.parameterName!==t||e.type!==n?r(F(t,n),e):e},e.createTypeReferenceNode=I,e.updateTypeReferenceNode=function(e,t,n){return e.typeName!==t||e.typeArguments!==n?r(I(t,n),e):e},e.createFunctionTypeNode=function(e,t,r){return w(165,e,t,r)},e.updateFunctionTypeNode=function(e,t,r,n){return P(e,t,r,n)},e.createConstructorTypeNode=function(e,t,r){return w(166,e,t,r)},e.updateConstructorTypeNode=function(e,t,r,n){return P(e,t,r,n)},e.createTypeQueryNode=M,e.updateTypeQueryNode=function(e,t){return e.exprName!==t?r(M(t),e):e},e.createTypeLiteralNode=O,e.updateTypeLiteralNode=function(e,t){return e.members!==t?r(O(t),e):e},e.createArrayTypeNode=L,e.updateArrayTypeNode=function(e,t){return e.elementType!==t?r(L(t),e):e},e.createTupleTypeNode=R,e.updateTupleTypeNode=function(e,t){return e.elementTypes!==t?r(R(t),e):e},e.createOptionalTypeNode=B,e.updateOptionalTypeNode=function(e,t){return e.type!==t?r(B(t),e):e},e.createRestTypeNode=j,e.updateRestTypeNode=function(e,t){return e.type!==t?r(j(t),e):e},e.createUnionTypeNode=function(e){return z(173,e)},e.updateUnionTypeNode=function(e,t){return J(e,t)},e.createIntersectionTypeNode=function(e){return z(174,e)},e.updateIntersectionTypeNode=function(e,t){return J(e,t)},e.createUnionOrIntersectionTypeNode=z,e.createConditionalTypeNode=U,e.updateConditionalTypeNode=function(e,t,n,i,a){return e.checkType!==t||e.extendsType!==n||e.trueType!==i||e.falseType!==a?r(U(t,n,i,a),e):e},e.createInferTypeNode=q,e.updateInferTypeNode=function(e,t){return e.typeParameter!==t?r(q(t),e):e},e.createImportTypeNode=K,e.updateImportTypeNode=function(e,t,n,i,a){return e.argument!==t||e.qualifier!==n||e.typeArguments!==i||e.isTypeOf!==a?r(K(t,n,i,a),e):e},e.createParenthesizedType=V,e.updateParenthesizedType=function(e,t){return e.type!==t?r(V(t),e):e},e.createThisTypeNode=function(){return t(178)},e.createTypeOperatorNode=W,e.updateTypeOperatorNode=function(e,t){return e.type!==t?r(W(e.operator,t),e):e},e.createIndexedAccessTypeNode=H,e.updateIndexedAccessTypeNode=function(e,t,n){return e.objectType!==t||e.indexType!==n?r(H(t,n),e):e},e.createMappedTypeNode=G,e.updateMappedTypeNode=function(e,t,n,i,a){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==i||e.type!==a?r(G(t,n,i,a),e):e},e.createLiteralTypeNode=X,e.updateLiteralTypeNode=function(e,t){return e.literal!==t?r(X(t),e):e},e.createObjectBindingPattern=Q,e.updateObjectBindingPattern=function(e,t){return e.elements!==t?r(Q(t),e):e},e.createArrayBindingPattern=Y,e.updateArrayBindingPattern=function(e,t){return e.elements!==t?r(Y(t),e):e},e.createBindingElement=Z,e.updateBindingElement=function(e,t,n,i,a){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==i||e.initializer!==a?r(Z(t,n,i,a),e):e},e.createArrayLiteral=$,e.updateArrayLiteral=function(e,t){return e.elements!==t?r($(t,e.multiLine),e):e},e.createObjectLiteral=ee,e.updateObjectLiteral=function(e,t){return e.properties!==t?r(ee(t,e.multiLine),e):e},e.createPropertyAccess=te,e.updatePropertyAccess=function(t,n,i){return t.expression!==n||t.name!==i?r(jt(te(n,i),e.getEmitFlags(t)),t):t},e.createElementAccess=re,e.updateElementAccess=function(e,t,n){return e.expression!==t||e.argumentExpression!==n?r(re(t,n),e):e},e.createCall=ne,e.updateCall=function(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(ne(t,n,i),e):e},e.createNew=ie,e.updateNew=function(e,t,n,i){return e.expression!==t||e.typeArguments!==n||e.arguments!==i?r(ie(t,n,i),e):e},e.createTaggedTemplate=ae,e.updateTaggedTemplate=function(e,t,n,i){return e.tag!==t||(i?e.typeArguments!==n||e.template!==i:void 0!==e.typeArguments||e.template!==n)?r(ae(t,n,i),e):e},e.createTypeAssertion=oe,e.updateTypeAssertion=function(e,t,n){return e.type!==t||e.expression!==n?r(oe(t,n),e):e},e.createParen=se,e.updateParen=function(e,t){return e.expression!==t?r(se(t),e):e},e.createFunctionExpression=ce,e.updateFunctionExpression=function(e,t,n,i,a,o,s,c){return e.name!==i||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?r(ce(t,n,i,a,o,s,c),e):e},e.createArrowFunction=ue,e.updateArrowFunction=function(e,t,n,i,a,o,s){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==i||e.type!==a||e.equalsGreaterThanToken!==o||e.body!==s?r(ue(t,n,i,a,o,s),e):e},e.createDelete=le,e.updateDelete=function(e,t){return e.expression!==t?r(le(t),e):e},e.createTypeOf=de,e.updateTypeOf=function(e,t){return e.expression!==t?r(de(t),e):e},e.createVoid=_e,e.updateVoid=function(e,t){return e.expression!==t?r(_e(t),e):e},e.createAwait=fe,e.updateAwait=function(e,t){return e.expression!==t?r(fe(t),e):e},e.createPrefix=pe,e.updatePrefix=function(e,t){return e.operand!==t?r(pe(e.operator,t),e):e},e.createPostfix=me,e.updatePostfix=function(e,t){return e.operand!==t?r(me(t,e.operator),e):e},e.createBinary=ge,e.updateBinary=function(e,t,n,i){return e.left!==t||e.right!==n?r(ge(t,i||e.operatorToken,n),e):e},e.createConditional=he,e.updateConditional=function(e,t,n,i,a,o){return e.condition!==t||e.questionToken!==n||e.whenTrue!==i||e.colonToken!==a||e.whenFalse!==o?r(he(t,n,i,a,o),e):e},e.createTemplateExpression=ye,e.updateTemplateExpression=function(e,t,n){return e.head!==t||e.templateSpans!==n?r(ye(t,n),e):e},e.createTemplateHead=function(e){var r=t(15);return r.text=e,r},e.createTemplateMiddle=function(e){var r=t(16);return r.text=e,r},e.createTemplateTail=function(e){var r=t(17);return r.text=e,r},e.createNoSubstitutionTemplateLiteral=function(e){var r=t(14);return r.text=e,r},e.createYield=ve,e.updateYield=function(e,t,n){return e.expression!==n||e.asteriskToken!==t?r(ve(t,n),e):e},e.createSpread=be,e.updateSpread=function(e,t){return e.expression!==t?r(be(t),e):e},e.createClassExpression=xe,e.updateClassExpression=function(e,t,n,i,a,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?r(xe(t,n,i,a,o),e):e},e.createOmittedExpression=function(){return t(210)},e.createExpressionWithTypeArguments=Se,e.updateExpressionWithTypeArguments=function(e,t,n){return e.typeArguments!==t||e.expression!==n?r(Se(t,n),e):e},e.createAsExpression=De,e.updateAsExpression=function(e,t,n){return e.expression!==t||e.type!==n?r(De(t,n),e):e},e.createNonNullExpression=ke,e.updateNonNullExpression=function(e,t){return e.expression!==t?r(ke(t),e):e},e.createMetaProperty=Ce,e.updateMetaProperty=function(e,t){return e.name!==t?r(Ce(e.keywordToken,t),e):e},e.createTemplateSpan=Te,e.updateTemplateSpan=function(e,t,n){return e.expression!==t||e.literal!==n?r(Te(t,n),e):e},e.createSemicolonClassElement=function(){return t(217)},e.createBlock=Ee,e.updateBlock=function(e,t){return e.statements!==t?r(Ee(t,e.multiLine),e):e},e.createVariableStatement=Ne,e.updateVariableStatement=function(e,t,n){return e.modifiers!==t||e.declarationList!==n?r(Ne(t,n),e):e},e.createEmptyStatement=function(){return t(220)},e.createExpressionStatement=Ae,e.updateExpressionStatement=we,e.createStatement=Ae,e.updateStatement=we,e.createIf=Pe,e.updateIf=function(e,t,n,i){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==i?r(Pe(t,n,i),e):e},e.createDo=Fe,e.updateDo=function(e,t,n){return e.statement!==t||e.expression!==n?r(Fe(t,n),e):e},e.createWhile=Ie,e.updateWhile=function(e,t,n){return e.expression!==t||e.statement!==n?r(Ie(t,n),e):e},e.createFor=Me,e.updateFor=function(e,t,n,i,a){return e.initializer!==t||e.condition!==n||e.incrementor!==i||e.statement!==a?r(Me(t,n,i,a),e):e},e.createForIn=Oe,e.updateForIn=function(e,t,n,i){return e.initializer!==t||e.expression!==n||e.statement!==i?r(Oe(t,n,i),e):e},e.createForOf=Le,e.updateForOf=function(e,t,n,i,a){return e.awaitModifier!==t||e.initializer!==n||e.expression!==i||e.statement!==a?r(Le(t,n,i,a),e):e},e.createContinue=Re,e.updateContinue=function(e,t){return e.label!==t?r(Re(t),e):e},e.createBreak=Be,e.updateBreak=function(e,t){return e.label!==t?r(Be(t),e):e},e.createReturn=je,e.updateReturn=function(e,t){return e.expression!==t?r(je(t),e):e},e.createWith=ze,e.updateWith=function(e,t,n){return e.expression!==t||e.statement!==n?r(ze(t,n),e):e},e.createSwitch=Je,e.updateSwitch=function(e,t,n){return e.expression!==t||e.caseBlock!==n?r(Je(t,n),e):e},e.createLabel=Ue,e.updateLabel=function(e,t,n){return e.label!==t||e.statement!==n?r(Ue(t,n),e):e},e.createThrow=qe,e.updateThrow=function(e,t){return e.expression!==t?r(qe(t),e):e},e.createTry=Ke,e.updateTry=function(e,t,n,i){return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==i?r(Ke(t,n,i),e):e},e.createDebuggerStatement=function(){return t(236)},e.createVariableDeclaration=Ve,e.updateVariableDeclaration=function(e,t,n,i){return e.name!==t||e.type!==n||e.initializer!==i?r(Ve(t,n,i),e):e},e.createVariableDeclarationList=We,e.updateVariableDeclarationList=function(e,t){return e.declarations!==t?r(We(t,e.flags),e):e},e.createFunctionDeclaration=He,e.updateFunctionDeclaration=function(e,t,n,i,a,o,s,c,u){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==i||e.name!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?r(He(t,n,i,a,o,s,c,u),e):e},e.createClassDeclaration=Ge,e.updateClassDeclaration=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?r(Ge(t,n,i,a,o,s),e):e},e.createInterfaceDeclaration=Xe,e.updateInterfaceDeclaration=function(e,t,n,i,a,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.heritageClauses!==o||e.members!==s?r(Xe(t,n,i,a,o,s),e):e},e.createTypeAliasDeclaration=Qe,e.updateTypeAliasDeclaration=function(e,t,n,i,a,o){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.typeParameters!==a||e.type!==o?r(Qe(t,n,i,a,o),e):e},e.createEnumDeclaration=Ye,e.updateEnumDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.members!==a?r(Ye(t,n,i,a),e):e},e.createModuleDeclaration=Ze,e.updateModuleDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.body!==a?r(Ze(t,n,i,a,e.flags),e):e},e.createModuleBlock=$e,e.updateModuleBlock=function(e,t){return e.statements!==t?r($e(t),e):e},e.createCaseBlock=et,e.updateCaseBlock=function(e,t){return e.clauses!==t?r(et(t),e):e},e.createNamespaceExportDeclaration=tt,e.updateNamespaceExportDeclaration=function(e,t){return e.name!==t?r(tt(t),e):e},e.createImportEqualsDeclaration=rt,e.updateImportEqualsDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.name!==i||e.moduleReference!==a?r(rt(t,n,i,a),e):e},e.createImportDeclaration=nt,e.updateImportDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.importClause!==i||e.moduleSpecifier!==a?r(nt(t,n,i,a),e):e},e.createImportClause=it,e.updateImportClause=function(e,t,n){return e.name!==t||e.namedBindings!==n?r(it(t,n),e):e},e.createNamespaceImport=at,e.updateNamespaceImport=function(e,t){return e.name!==t?r(at(t),e):e},e.createNamedImports=ot,e.updateNamedImports=function(e,t){return e.elements!==t?r(ot(t),e):e},e.createImportSpecifier=st,e.updateImportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?r(st(t,n),e):e},e.createExportAssignment=ct,e.updateExportAssignment=function(e,t,n,i){return e.decorators!==t||e.modifiers!==n||e.expression!==i?r(ct(t,n,e.isExportEquals,i),e):e},e.createExportDeclaration=ut,e.updateExportDeclaration=function(e,t,n,i,a){return e.decorators!==t||e.modifiers!==n||e.exportClause!==i||e.moduleSpecifier!==a?r(ut(t,n,i,a),e):e},e.createNamedExports=lt,e.updateNamedExports=function(e,t){return e.elements!==t?r(lt(t),e):e},e.createExportSpecifier=dt,e.updateExportSpecifier=function(e,t,n){return e.propertyName!==t||e.name!==n?r(dt(t,n),e):e},e.createExternalModuleReference=_t,e.updateExternalModuleReference=function(e,t){return e.expression!==t?r(_t(t),e):e},e.createJSDocTypeExpression=function(e){var r=t(283);return r.type=e,r},e.createJSDocTypeTag=function(e,t){var r=ft(302,"type");return r.typeExpression=e,r.comment=t,r},e.createJSDocReturnTag=function(e,t){var r=ft(300,"returns");return r.typeExpression=e,r.comment=t,r},e.createJSDocParamTag=function(e,t,r,n){var i=ft(299,"param");return i.typeExpression=r,i.name=e,i.isBracketed=t,i.comment=n,i},e.createJSDocComment=function(e,r){var n=t(291);return n.comment=e,n.tags=r,n},e.createJsxElement=pt,e.updateJsxElement=function(e,t,n,i){return e.openingElement!==t||e.children!==n||e.closingElement!==i?r(pt(t,n,i),e):e},e.createJsxSelfClosingElement=mt,e.updateJsxSelfClosingElement=function(e,t,n,i){return e.tagName!==t||e.typeArguments!==n||e.attributes!==i?r(mt(t,n,i),e):e},e.createJsxOpeningElement=gt,e.updateJsxOpeningElement=function(e,t,n,i){return e.tagName!==t||e.typeArguments!==n||e.attributes!==i?r(gt(t,n,i),e):e},e.createJsxClosingElement=ht,e.updateJsxClosingElement=function(e,t){return e.tagName!==t?r(ht(t),e):e},e.createJsxFragment=yt,e.updateJsxFragment=function(e,t,n,i){return e.openingFragment!==t||e.children!==n||e.closingFragment!==i?r(yt(t,n,i),e):e},e.createJsxAttribute=vt,e.updateJsxAttribute=function(e,t,n){return e.name!==t||e.initializer!==n?r(vt(t,n),e):e},e.createJsxAttributes=bt,e.updateJsxAttributes=function(e,t){return e.properties!==t?r(bt(t),e):e},e.createJsxSpreadAttribute=xt,e.updateJsxSpreadAttribute=function(e,t){return e.expression!==t?r(xt(t),e):e},e.createJsxExpression=St,e.updateJsxExpression=function(e,t){return e.expression!==t?r(St(e.dotDotDotToken,t),e):e},e.createCaseClause=Dt,e.updateCaseClause=function(e,t,n){return e.expression!==t||e.statements!==n?r(Dt(t,n),e):e},e.createDefaultClause=kt,e.updateDefaultClause=function(e,t){return e.statements!==t?r(kt(t),e):e},e.createHeritageClause=Ct,e.updateHeritageClause=function(e,t){return e.types!==t?r(Ct(e.token,t),e):e},e.createCatchClause=Tt,e.updateCatchClause=function(e,t,n){return e.variableDeclaration!==t||e.block!==n?r(Tt(t,n),e):e},e.createPropertyAssignment=Et,e.updatePropertyAssignment=function(e,t,n){return e.name!==t||e.initializer!==n?r(Et(t,n),e):e},e.createShorthandPropertyAssignment=Nt,e.updateShorthandPropertyAssignment=function(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?r(Nt(t,n),e):e},e.createSpreadAssignment=At,e.updateSpreadAssignment=function(e,t){return e.expression!==t?r(At(t),e):e},e.createEnumMember=wt,e.updateEnumMember=function(e,t,n){return e.name!==t||e.initializer!==n?r(wt(t,n),e):e},e.updateSourceFileNode=function(e,i,a,o,s,c,u){if(e.statements!==i||void 0!==a&&e.isDeclarationFile!==a||void 0!==o&&e.referencedFiles!==o||void 0!==s&&e.typeReferenceDirectives!==s||void 0!==u&&e.libReferenceDirectives!==u||void 0!==c&&e.hasNoDefaultLib!==c){var l=t(279);return l.flags|=e.flags,l.statements=n(i),l.endOfFileToken=e.endOfFileToken,l.fileName=e.fileName,l.path=e.path,l.text=e.text,l.isDeclarationFile=void 0===a?e.isDeclarationFile:a,l.referencedFiles=void 0===o?e.referencedFiles:o,l.typeReferenceDirectives=void 0===s?e.typeReferenceDirectives:s,l.hasNoDefaultLib=void 0===c?e.hasNoDefaultLib:c,l.libReferenceDirectives=void 0===u?e.libReferenceDirectives:u,void 0!==e.amdDependencies&&(l.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(l.moduleName=e.moduleName),void 0!==e.languageVariant&&(l.languageVariant=e.languageVariant),void 0!==e.renamedDependencies&&(l.renamedDependencies=e.renamedDependencies),void 0!==e.languageVersion&&(l.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(l.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(l.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(l.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(l.identifiers=e.identifiers),void 0!==e.nodeCount&&(l.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(l.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(l.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(l.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(l.bindDiagnostics=e.bindDiagnostics),void 0!==e.bindSuggestionDiagnostics&&(l.bindSuggestionDiagnostics=e.bindSuggestionDiagnostics),void 0!==e.lineMap&&(l.lineMap=e.lineMap),void 0!==e.classifiableNames&&(l.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(l.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(l.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(l.imports=e.imports),void 0!==e.moduleAugmentations&&(l.moduleAugmentations=e.moduleAugmentations),void 0!==e.pragmas&&(l.pragmas=e.pragmas),void 0!==e.localJsxFactory&&(l.localJsxFactory=e.localJsxFactory),void 0!==e.localJsxNamespace&&(l.localJsxNamespace=e.localJsxNamespace),r(l,e)}return e},e.getMutableClone=function(e){var t=i(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t},e.createNotEmittedStatement=function(e){var r=t(307);return r.original=e,Bt(r,e),r},e.createEndOfDeclarationMarker=function(e){var r=t(311);return r.emitNode={},r.original=e,r},e.createMergeDeclarationMarker=function(e){var r=t(310);return r.emitNode={},r.original=e,r},e.createPartiallyEmittedExpression=Pt,e.updatePartiallyEmittedExpression=function(e,t){return e.expression!==t?r(Pt(t,e.original),e):e},e.createCommaList=It,e.updateCommaList=function(e,t){return e.elements!==t?r(It(t),e):e},e.createBundle=Mt,e.createUnparsedSourceFile=function(t,r,n){var i=e.createNode(281);return i.text=t,i.sourceMapPath=r,i.sourceMapText=n,i},e.createInputFiles=function(t,r,n,i,a,o){var s=e.createNode(282);return s.javascriptText=t,s.javascriptMapPath=n,s.javascriptMapText=i,s.declarationText=r,s.declarationMapPath=a,s.declarationMapText=o,s},e.updateBundle=function(t,r,n){return void 0===n&&(n=e.emptyArray),t.sourceFiles!==r||t.prepends!==n?Mt(r,n):t},e.createImmediatelyInvokedFunctionExpression=function(e,t,r){return ne(ce(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Ee(e,!0)),void 0,r?[r]:[])},e.createImmediatelyInvokedArrowFunction=function(e,t,r){return ne(ue(void 0,void 0,t?[t]:[],void 0,void 0,Ee(e,!0)),void 0,r?[r]:[])},e.createComma=function(e,t){return ge(e,27,t)},e.createLessThan=function(e,t){return ge(e,28,t)},e.createAssignment=function(e,t){return ge(e,59,t)},e.createStrictEquality=function(e,t){return ge(e,35,t)},e.createStrictInequality=function(e,t){return ge(e,36,t)},e.createAdd=function(e,t){return ge(e,38,t)},e.createSubtract=function(e,t){return ge(e,39,t)},e.createPostfixIncrement=function(e){return me(e,44)},e.createLogicalAnd=function(e,t){return ge(e,54,t)},e.createLogicalOr=function(e,t){return ge(e,55,t)},e.createLogicalNot=function(e){return pe(52,e)},e.createVoidZero=function(){return _e(a(0))},e.createExportDefault=function(e){return ct(void 0,void 0,!1,e)},e.createExternalModuleExport=function(e){return ut(void 0,void 0,lt([dt(void 0,e)]))},e.disposeEmitNodes=function(t){var r=(t=e.getSourceFileOfNode(e.getParseTreeNode(t)))&&t.emitNode,n=r&&r.annotatedNodes;if(n)for(var i=0,a=n;i<a.length;i++)a[i].emitNode=void 0},e.getOrCreateEmitNode=Rt,e.setTextRange=Bt,e.setEmitFlags=jt,e.addEmitFlags=function(e,t){var r=Rt(e);return r.flags=r.flags|t,e},e.getSourceMapRange=function(e){var t=e.emitNode;return t&&t.sourceMapRange||e},e.setSourceMapRange=function(e,t){return Rt(e).sourceMapRange=t,e},e.createSourceMapSource=function(t,r,n){return new(l||(l=e.objectAllocator.getSourceMapSourceConstructor()))(t,r,n)},e.getTokenSourceMapRange=function(e,t){var r=e.emitNode,n=r&&r.tokenSourceMapRanges;return n&&n[t]},e.setTokenSourceMapRange=function(e,t,r){var n=Rt(e);return(n.tokenSourceMapRanges||(n.tokenSourceMapRanges=[]))[t]=r,e},e.getStartsOnNewLine=function(e){var t=e.emitNode;return t&&t.startsOnNewLine},e.setStartsOnNewLine=function(e,t){return Rt(e).startsOnNewLine=t,e},e.getCommentRange=function(e){var t=e.emitNode;return t&&t.commentRange||e},e.setCommentRange=function(e,t){return Rt(e).commentRange=t,e},e.getSyntheticLeadingComments=zt,e.setSyntheticLeadingComments=Jt,e.addSyntheticLeadingComment=function(t,r,n,i){return Jt(t,e.append(zt(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))},e.getSyntheticTrailingComments=Ut,e.setSyntheticTrailingComments=qt,e.addSyntheticTrailingComment=function(t,r,n,i){return qt(t,e.append(Ut(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))},e.moveSyntheticComments=function(e,t){Jt(e,zt(t)),qt(e,Ut(t));var r=Rt(t);return r.leadingComments=void 0,r.trailingComments=void 0,e},e.getConstantValue=function(e){var t=e.emitNode;return t&&t.constantValue},e.setConstantValue=function(e,t){return Rt(e).constantValue=t,e},e.addEmitHelper=function(t,r){var n=Rt(t);return n.helpers=e.append(n.helpers,r),t},e.addEmitHelpers=function(t,r){if(e.some(r))for(var n=Rt(t),i=0,a=r;i<a.length;i++){var o=a[i];n.helpers=e.appendIfUnique(n.helpers,o)}return t},e.removeEmitHelper=function(t,r){var n=t.emitNode;if(n){var i=n.helpers;if(i)return e.orderedRemoveItem(i,r)}return!1},e.getEmitHelpers=function(e){var t=e.emitNode;return t&&t.helpers},e.moveEmitHelpers=function(t,r,n){var i=t.emitNode,a=i&&i.helpers;if(e.some(a)){for(var o=Rt(r),s=0,c=0;c<a.length;c++){var u=a[c];n(u)?(s++,o.helpers=e.appendIfUnique(o.helpers,u)):s>0&&(a[c-s]=u)}s>0&&(a.length-=s)}},e.compareEmitHelpers=function(t,r){return t===r?0:t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)},e.setOriginalNode=Kt}(d||(d={})),function(e){function t(t,r,n){if(e.isComputedPropertyName(r))return e.setTextRange(e.createElementAccess(t,r.expression),n);var i=e.setTextRange(e.isIdentifier(r)?e.createPropertyAccess(t,r):e.createElementAccess(t,r),r);return e.getOrCreateEmitNode(i).flags|=64,i}function r(t,r){var n=e.createIdentifier(t||"React");return n.flags&=-9,n.parent=e.getParseTreeNode(r),n}function n(t,n,i){return t?function t(n,i){if(e.isQualifiedName(n)){var a=t(n.left,i),o=e.createIdentifier(e.idText(n.right));return o.escapedText=n.right.escapedText,e.createPropertyAccess(a,o)}return r(e.idText(n),i)}(t,i):e.createPropertyAccess(r(n,i),"createElement")}function i(t){return e.setEmitFlags(e.createIdentifier(t),4098)}e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:function(){},getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,addDiagnostic:e.noop},e.createTypeCheck=function(t,r){return"undefined"===r?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(r))},e.createMemberAccessForPropertyName=t,e.createFunctionCall=function(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[r].concat(n)),i)},e.createFunctionApply=function(t,r,n,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[r,n]),i)},e.createArraySlice=function(t,r){var n=[];return void 0!==r&&n.push("number"==typeof r?e.createLiteral(r):r),e.createCall(e.createPropertyAccess(t,"slice"),void 0,n)},e.createArrayConcat=function(t,r){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,r)},e.createMathPow=function(t,r,n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,r]),n)},e.createExpressionForJsxElement=function(t,r,i,a,o,s,c){var u=[i];if(a&&u.push(a),o&&o.length>0)if(a||u.push(e.createNull()),o.length>1)for(var l=0,d=o;l<d.length;l++){var _=d[l];N(_),u.push(_)}else u.push(o[0]);return e.setTextRange(e.createCall(n(t,r,s),void 0,u),c)},e.createExpressionForJsxFragment=function(t,i,a,o,s){var c=[e.createPropertyAccess(r(i,o),"Fragment")];if(c.push(e.createNull()),a&&a.length>0)if(a.length>1)for(var u=0,l=a;u<l.length;u++){var d=l[u];N(d),c.push(d)}else c.push(a[0]);return e.setTextRange(e.createCall(n(t,i,o),void 0,c),s)},e.getHelperName=i;var a={name:"typescript:values",scoped:!1,text:'\n            var __values = (this && this.__values) || function (o) {\n                var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;\n                if (m) return m.call(o);\n                return {\n                    next: function () {\n                        if (o && i >= o.length) o = void 0;\n                        return { value: o && o[i++], done: !o };\n                    }\n                };\n            };'};e.createValuesHelper=function(t,r,n){return t.requestEmitHelper(a),e.setTextRange(e.createCall(i("__values"),void 0,[r]),n)};var o={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            };'};e.createReadHelper=function(t,r,n,a){return t.requestEmitHelper(o),e.setTextRange(e.createCall(i("__read"),void 0,void 0!==n?[r,e.createLiteral(n)]:[r]),a)};var s={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            };"};function c(t,r){var n=e.skipParentheses(t);switch(n.kind){case 72:return r;case 100:case 8:case 9:case 10:return!1;case 187:return 0!==n.elements.length;case 188:return n.properties.length>0;default:return!0}}function u(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function l(e,t,r){return d(e,t,r,8192)}function d(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function _(t,r,n,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function f(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function p(t,r,n){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=r.length;a<o;){var s=r[a];if(!e.isPrologueDirective(s))break;f(s)&&(i=!0),t.push(s),a++}return n&&!i&&t.push(N(e.createStatement(e.createLiteral("use strict")))),a}function m(t,r,n,i){for(var a=r.length;void 0!==n&&n<a;){var o=r[n];if(!(1048576&e.getEmitFlags(o)))break;e.append(t,i?e.visitNode(o,i,e.isStatement):o),n++}return n}function g(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i))break;if(f(i))return i}}function h(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(204===t.kind&&38===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var r=h(t.left),n=e.isLiteralKind(r)&&r===h(t.right)?r:0;return t.cachedLiteralKind=n,n}return 0}function y(t){var r=e.skipPartiallyEmittedExpressions(t);return e.isLeftHandSideExpression(r)&&(192!==r.kind||r.arguments)?t:e.setTextRange(e.createParen(t),t)}function v(t){var r=e.skipPartiallyEmittedExpressions(t);return e.getExpressionPrecedence(r)>e.getOperatorPrecedence(204,27)?t:e.setTextRange(e.createParen(t),t)}function b(t){return 175===t.kind?e.createParenthesizedType(t):t}function x(t){switch(t.kind){case 173:case 174:case 165:case 166:return e.createParenthesizedType(t)}return b(t)}function S(e,t){for(;;){switch(e.kind){case 203:e=e.operand;continue;case 204:e=e.left;continue;case 205:e=e.condition;continue;case 193:e=e.tag;continue;case 191:if(t)return e;case 212:case 190:case 189:case 213:case 308:e=e.expression;continue}return e}}function D(e){return 204===e.kind&&27===e.operatorToken.kind||309===e.kind}function k(e,t){switch(void 0===t&&(t=7),e.kind){case 195:return 0!=(1&t);case 194:case 212:case 213:return 0!=(2&t);case 308:return 0!=(4&t)}return!1}function C(t,r){var n;void 0===r&&(r=7);do{n=t,1&r&&(t=e.skipParentheses(t)),2&r&&(t=T(t)),4&r&&(t=e.skipPartiallyEmittedExpressions(t))}while(n!==t);return t}function T(t){for(;e.isAssertionExpression(t)||213===t.kind;)t=t.expression;return t}function E(t,r,n){return void 0===n&&(n=7),t&&k(t,n)&&(!(195===(i=t).kind&&e.nodeIsSynthesized(i)&&e.nodeIsSynthesized(e.getSourceMapRange(i))&&e.nodeIsSynthesized(e.getCommentRange(i)))||e.some(e.getSyntheticLeadingComments(i))||e.some(e.getSyntheticTrailingComments(i)))?function(t,r){switch(t.kind){case 195:return e.updateParen(t,r);case 194:return e.updateTypeAssertion(t,t.type,r);case 212:return e.updateAsExpression(t,r,t.type);case 213:return e.updateNonNullExpression(t,r);case 308:return e.updatePartiallyEmittedExpression(t,r)}}(t,E(t.expression,r)):r;var i}function N(t){return e.setStartsOnNewLine(t,!0)}function A(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function w(t,r,n){if(t)return t.moduleName?e.createLiteral(t.moduleName):t.isDeclarationFile||!n.out&&!n.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(r,t.fileName))}function P(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?P(t.left):e.isSpreadElement(t)?P(t.expression):t;switch(t.kind){case 275:return P(t.initializer);case 276:return t.name;case 277:return P(t.expression)}}function F(e){var t=e.kind;return 10===t||8===t}function I(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(t.name),t),t);var r=B(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(r,t.initializer),t),t):r}return e.Debug.assertNode(t,e.isExpression),t}function M(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){var r=B(t.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(r,t.initializer):r),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.Debug.assertNode(t,e.isObjectLiteralElementLike),t}function O(e){switch(e.kind){case 185:case 187:return R(e);case 184:case 188:return L(e)}}function L(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(t.elements,M)),t),t):(e.Debug.assertNode(t,e.isObjectLiteralExpression),t)}function R(t){return e.isArrayBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(t.elements,I)),t),t):(e.Debug.assertNode(t,e.isArrayLiteralExpression),t)}function B(t){return e.isBindingPattern(t)?O(t):(e.Debug.assertNode(t,e.isExpression),t)}e.createSpreadHelper=function(t,r,n){return t.requestEmitHelper(o),t.requestEmitHelper(s),e.setTextRange(e.createCall(i("__spread"),void 0,r),n)},e.createForOfBindingStatement=function(t,r){if(e.isVariableDeclarationList(t)){var n=e.first(t.declarations),i=e.updateVariableDeclaration(n,n.name,void 0,r);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,r),t);return e.setTextRange(e.createStatement(a),t)},e.insertLeadingStatement=function(t,r){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([r].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)},e.restoreEnclosingLabel=function t(r,n,i){if(!n)return r;var a=e.updateLabel(n,n.label,233===n.statement.kind?t(r,n.statement):r);return i&&i(n),a},e.createCallBinding=function(t,r,n,i){void 0===i&&(i=!1);var a,o,s=C(t,7);if(e.isSuperProperty(s))a=e.createThis(),o=s;else if(98===s.kind)a=e.createThis(),o=n<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=y(s);else switch(s.kind){case 189:c(s.expression,i)?(a=e.createTempVariable(r),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 190:c(s.expression,i)?(a=e.createTempVariable(r),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=y(t)}return{target:o,thisArg:a}},e.inlineExpressions=function(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)},e.createExpressionFromEntityName=function t(r){if(e.isQualifiedName(r)){var n=t(r.left),i=e.getMutableClone(r.right);return e.setTextRange(e.createPropertyAccess(n,i),r)}return e.getMutableClone(r)},e.createExpressionForPropertyName=u,e.createExpressionForObjectLiteralElementLike=function(r,n,i){switch(n.kind){case 158:case 159:return function(t,r,n,i){var a=e.getAllAccessorDeclarations(t,r),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(r===o){var l=[];if(s){var d=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(d,s),e.setOriginalNode(d,s);var _=e.createPropertyAssignment("get",d);l.push(_)}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 p=e.createPropertyAssignment("set",f);l.push(p)}l.push(e.createPropertyAssignment("enumerable",e.createTrue())),l.push(e.createPropertyAssignment("configurable",e.createTrue()));var m=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[n,u(r.name),e.createObjectLiteral(l,i)]),o);return e.aggregateTransformFlags(m)}}(r.properties,n,i,!!r.multiLine);case 275:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),r.initializer),r),r))}(n,i);case 276:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),e.getSynthesizedClone(r.name)),r),r))}(n,i);case 156:return function(r,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(n,r.name,r.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,void 0,r.parameters,void 0,r.body),r),r)),r),r))}(n,i)}},e.getInternalName=function(e,t,r){return d(e,t,r,49152)},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.getLocalName=function(e,t,r){return d(e,t,r,16384)},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.getExportName=l,e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.getDeclarationName=function(e,t,r){return d(e,t,r)},e.getExternalModuleOrNamespaceExportName=function(t,r,n,i){return t&&e.hasModifier(r,1)?_(t,d(r),n,i):l(r,n,i)},e.getNamespaceMemberName=_,e.convertToFunctionBody=function(t,r){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],r),t)},e.convertFunctionDeclarationToExpression=function(t){if(!t.body)return e.Debug.fail();var r=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(r,t),e.setTextRange(r,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(r,!0),e.aggregateTransformFlags(r),r},e.addPrologue=function(e,t,r,n){return m(e,t,p(e,t,r),n)},e.addStandardPrologue=p,e.addCustomPrologue=m,e.findUseStrictPrologue=g,e.startsWithUseStrict=function(t){var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&f(r)},e.ensureUseStrict=function(t){return g(t)?t:e.setTextRange(e.createNodeArray([N(e.createStatement(e.createLiteral("use strict")))].concat(t)),t)},e.parenthesizeBinaryOperand=function(t,r,n,i){return 195===e.skipPartiallyEmittedExpressions(r).kind?r:function(t,r,n,i){var a=e.getOperatorPrecedence(204,t),o=e.getOperatorAssociativity(204,t),s=e.skipPartiallyEmittedExpressions(r);if(!n&&197===r.kind&&a>4)return!0;var c=e.getExpressionPrecedence(s);switch(e.compareValues(c,a)){case-1:return!(!n&&1===o&&207===r.kind);case 1:return!1;case 0:if(n)return 1===o;if(e.isBinaryExpression(s)&&s.operatorToken.kind===t){if(function(e){return 40===e||50===e||49===e||51===e}(t))return!1;if(38===t){var u=i?h(i):0;if(e.isLiteralKind(u)&&u===h(s))return!1}}var l=e.getExpressionAssociativity(s);return 0===l}}(t,r,n,i)?e.createParen(r):r},e.parenthesizeForConditionalHead=function(t){var r=e.getOperatorPrecedence(205,56),n=e.skipPartiallyEmittedExpressions(t),i=e.getExpressionPrecedence(n);return-1===e.compareValues(i,r)?e.createParen(t):t},e.parenthesizeSubexpressionOfConditionalExpression=function(t){return D(e.skipPartiallyEmittedExpressions(t))?e.createParen(t):t},e.parenthesizeDefaultExpression=function(t){var r=e.skipPartiallyEmittedExpressions(t),n=D(r);if(!n)switch(S(r,!1).kind){case 209:case 196:n=!0}return n?e.createParen(t):t},e.parenthesizeForNew=function(t){var r=S(t,!0);switch(r.kind){case 191:return e.createParen(t);case 192:return r.arguments?t:e.createParen(t)}return y(t)},e.parenthesizeForAccess=y,e.parenthesizePostfixOperand=function(t){return e.isLeftHandSideExpression(t)?t:e.setTextRange(e.createParen(t),t)},e.parenthesizePrefixOperand=function(t){return e.isUnaryExpression(t)?t:e.setTextRange(e.createParen(t),t)},e.parenthesizeListElements=function(t){for(var r,n=0;n<t.length;n++){var i=v(t[n]);void 0===r&&i===t[n]||(void 0===r&&(r=t.slice(0,n)),r.push(i))}return void 0!==r?e.setTextRange(e.createNodeArray(r,t.hasTrailingComma),t):t},e.parenthesizeExpressionForList=v,e.parenthesizeExpressionForExpressionStatement=function(t){var r=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(r)){var n=r.expression,i=e.skipPartiallyEmittedExpressions(n).kind;if(196===i||197===i){var a=e.getMutableClone(r);return a.expression=e.setTextRange(e.createParen(n),n),E(t,a,4)}}var o=S(r,!1).kind;return 188===o||196===o?e.setTextRange(e.createParen(t),t):t},e.parenthesizeConditionalTypeMember=b,e.parenthesizeElementTypeMember=x,e.parenthesizeArrayTypeMember=function(t){switch(t.kind){case 167:case 179:case 176:return e.createParenthesizedType(t)}return x(t)},e.parenthesizeElementTypeMembers=function(t){return e.createNodeArray(e.sameMap(t,x))},e.parenthesizeTypeParameters=function(t){if(e.some(t)){for(var r=[],n=0;n<t.length;++n){var i=t[n];r.push(0===n&&e.isFunctionOrConstructorTypeNode(i)&&i.typeParameters?e.createParenthesizedType(i):i)}return e.createNodeArray(r)}},e.parenthesizeConciseBody=function(t){return e.isBlock(t)||!D(t)&&188!==S(t,!1).kind?t:e.setTextRange(e.createParen(t),t)},e.isCommaSequence=D,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=k,e.skipOuterExpressions=C,e.skipAssertions=T,e.recreateOuterExpressions=E,e.startOnNewLine=N,e.getExternalHelpersModuleName=A,e.getOrCreateExternalHelpersModuleNameIfNeeded=function(t,r,n,i){if(r.importHelpers&&e.isEffectiveExternalModule(t,r)){var a=A(t);if(a)return a;var o=e.getEmitModuleKind(r),s=(n||r.esModuleInterop&&i)&&o!==e.ModuleKind.System&&o!==e.ModuleKind.ES2015&&o!==e.ModuleKind.ESNext;if(!s){var c=e.getEmitHelpers(t);if(c)for(var u=0,l=c;u<l.length;u++)if(!l[u].scoped){s=!0;break}}if(s){var d=e.getOriginalNode(t,e.isSourceFile),_=e.getOrCreateEmitNode(d);return _.externalHelpersModuleName||(_.externalHelpersModuleName=e.createUniqueName(e.externalHelpersModuleNameText))}}},e.getLocalNameForExternalImport=function(t,r){var n=e.getNamespaceDeclarationNode(t);if(n&&!e.isDefaultImport(t)){var i=n.name;return e.isGeneratedIdentifier(i)?i:e.createIdentifier(e.getSourceTextOfNodeFromSourceFile(r,i)||e.idText(i))}return 249===t.kind&&t.importClause?e.getGeneratedNameForNode(t):255===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0},e.getExternalModuleNameLiteral=function(t,r,n,i,a){var o=e.getExternalModuleName(t);if(10===o.kind)return function(e,t,r,n){return w(r.getExternalModuleFileFromDeclaration(e),t,n)}(t,n,i,a)||function(t,r){var n=r.renamedDependencies&&r.renamedDependencies.get(t.text);return n&&e.createLiteral(n)}(o,r)||e.getSynthesizedClone(o)},e.tryGetModuleNameFromFile=w,e.getInitializerOfBindingOrAssignmentElement=function t(r){if(e.isDeclarationBindingElement(r))return r.initializer;if(e.isPropertyAssignment(r)){var n=r.initializer;return e.isAssignmentExpression(n,!0)?n.right:void 0}return e.isShorthandPropertyAssignment(r)?r.objectAssignmentInitializer:e.isAssignmentExpression(r,!0)?r.right:e.isSpreadElement(r)?t(r.expression):void 0},e.getTargetOfBindingOrAssignmentElement=P,e.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 151:case 186:return e.dotDotDotToken;case 208:case 277:return e}},e.getPropertyNameOfBindingOrAssignmentElement=function(t){switch(t.kind){case 186:if(t.propertyName){var r=t.propertyName;return e.isComputedPropertyName(r)&&F(r.expression)?r.expression:r}break;case 275:if(t.name)return r=t.name,e.isComputedPropertyName(r)&&F(r.expression)?r.expression:r;break;case 277:return t.name}var n=P(t);if(n&&e.isPropertyName(n))return e.isComputedPropertyName(n)&&F(n.expression)?n.expression:n;e.Debug.fail("Invalid property name for binding element.")},e.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 184:case 185:case 187:return e.elements;case 188:return e.properties}},e.convertToArrayAssignmentElement=I,e.convertToObjectAssignmentElement=M,e.convertToAssignmentPattern=O,e.convertToObjectAssignmentPattern=L,e.convertToArrayAssignmentPattern=R,e.convertToAssignmentElementTarget=B}(d||(d={})),function(e){var t=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function r(t,r,n,i){if(void 0===t||void 0===r)return t;e.aggregateTransformFlags(t);var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||function(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)})(o):o,e.Debug.assertNode(a,n),e.aggregateTransformFlags(a),a):void 0}function n(t,r,n,i,a){if(void 0===t||void 0===r)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||a<s)&&(o=e.createNodeArray([],t.hasTrailingComma&&i+a===s));for(var c=0;c<a;c++){var u=t[c+i];e.aggregateTransformFlags(u);var l=void 0!==u?r(u):void 0;if((void 0!==o||void 0===l||l!==u)&&(void 0===o&&(o=e.createNodeArray(t.slice(0,c),t.hasTrailingComma),e.setTextRange(o,t)),l))if(e.isArray(l))for(var d=0,_=l;d<_.length;d++){var f=_[d];e.Debug.assertNode(f,n),e.aggregateTransformFlags(f),o.push(f)}else e.Debug.assertNode(l,n),e.aggregateTransformFlags(l),o.push(l)}return o||t}function i(t,r,i,a,o){i.startLexicalEnvironment(),t=n(t,r,e.isStatement,a),o&&!e.startsWithUseStrict(t)&&(t=e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createLiteral("use strict"))].concat(t)),t));var s=i.endLexicalEnvironment();return e.setTextRange(e.createNodeArray(e.concatenate(s,t)),t)}function a(t,r,i,a){void 0===a&&(a=n),i.startLexicalEnvironment();var o=a(t,r,e.isParameterDeclaration);return i.suspendLexicalEnvironment(),o}function o(t,n,i){i.resumeLexicalEnvironment();var a=r(t,n,e.isConciseBody),o=i.endLexicalEnvironment();if(e.some(o)){var s=e.convertToFunctionBody(a),c=e.mergeLexicalEnvironment(s.statements,o);return e.updateBlock(s,c)}return a}e.visitNode=r,e.visitNodes=n,e.visitLexicalEnvironment=i,e.visitParameterList=a,e.visitFunctionBody=o,e.visitEachChild=function(s,c,u,l,d){if(void 0===l&&(l=n),void 0!==s){var _=s.kind;if(_>0&&_<=147||178===_)return s;switch(_){case 72:return e.updateIdentifier(s,l(s.typeArguments,c,t));case 148:return e.updateQualifiedName(s,r(s.left,c,e.isEntityName),r(s.right,c,e.isIdentifier));case 149:return e.updateComputedPropertyName(s,r(s.expression,c,e.isExpression));case 150:return e.updateTypeParameterDeclaration(s,r(s.name,c,e.isIdentifier),r(s.constraint,c,e.isTypeNode),r(s.default,c,e.isTypeNode));case 151:return e.updateParameter(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.dotDotDotToken,d,e.isToken),r(s.name,c,e.isBindingName),r(s.questionToken,d,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 152:return e.updateDecorator(s,r(s.expression,c,e.isExpression));case 153:return e.updatePropertySignature(s,l(s.modifiers,c,e.isToken),r(s.name,c,e.isPropertyName),r(s.questionToken,d,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 154:return e.updateProperty(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),r(s.questionToken,d,e.isToken),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 155:return e.updateMethodSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode),r(s.name,c,e.isPropertyName),r(s.questionToken,d,e.isToken));case 156:return e.updateMethod(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.asteriskToken,d,e.isToken),r(s.name,c,e.isPropertyName),r(s.questionToken,d,e.isToken),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 157:return e.updateConstructor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),a(s.parameters,c,u,l),o(s.body,c,u));case 158:return e.updateGetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 159:return e.updateSetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),o(s.body,c,u));case 160:return e.updateCallSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 161:return e.updateConstructSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 162:return e.updateIndexSignature(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 163:return e.updateTypePredicateNode(s,r(s.parameterName,c),r(s.type,c,e.isTypeNode));case 164:return e.updateTypeReferenceNode(s,r(s.typeName,c,e.isEntityName),l(s.typeArguments,c,e.isTypeNode));case 165:return e.updateFunctionTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 166:return e.updateConstructorTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),r(s.type,c,e.isTypeNode));case 167:return e.updateTypeQueryNode(s,r(s.exprName,c,e.isEntityName));case 168:return e.updateTypeLiteralNode(s,l(s.members,c,e.isTypeElement));case 169:return e.updateArrayTypeNode(s,r(s.elementType,c,e.isTypeNode));case 170:return e.updateTupleTypeNode(s,l(s.elementTypes,c,e.isTypeNode));case 171:return e.updateOptionalTypeNode(s,r(s.type,c,e.isTypeNode));case 172:return e.updateRestTypeNode(s,r(s.type,c,e.isTypeNode));case 173:return e.updateUnionTypeNode(s,l(s.types,c,e.isTypeNode));case 174:return e.updateIntersectionTypeNode(s,l(s.types,c,e.isTypeNode));case 175:return e.updateConditionalTypeNode(s,r(s.checkType,c,e.isTypeNode),r(s.extendsType,c,e.isTypeNode),r(s.trueType,c,e.isTypeNode),r(s.falseType,c,e.isTypeNode));case 176:return e.updateInferTypeNode(s,r(s.typeParameter,c,e.isTypeParameterDeclaration));case 183:return e.updateImportTypeNode(s,r(s.argument,c,e.isTypeNode),r(s.qualifier,c,e.isEntityName),n(s.typeArguments,c,e.isTypeNode),s.isTypeOf);case 177:return e.updateParenthesizedType(s,r(s.type,c,e.isTypeNode));case 179:return e.updateTypeOperatorNode(s,r(s.type,c,e.isTypeNode));case 180:return e.updateIndexedAccessTypeNode(s,r(s.objectType,c,e.isTypeNode),r(s.indexType,c,e.isTypeNode));case 181:return e.updateMappedTypeNode(s,r(s.readonlyToken,d,e.isToken),r(s.typeParameter,c,e.isTypeParameterDeclaration),r(s.questionToken,d,e.isToken),r(s.type,c,e.isTypeNode));case 182:return e.updateLiteralTypeNode(s,r(s.literal,c,e.isExpression));case 184:return e.updateObjectBindingPattern(s,l(s.elements,c,e.isBindingElement));case 185:return e.updateArrayBindingPattern(s,l(s.elements,c,e.isArrayBindingElement));case 186:return e.updateBindingElement(s,r(s.dotDotDotToken,d,e.isToken),r(s.propertyName,c,e.isPropertyName),r(s.name,c,e.isBindingName),r(s.initializer,c,e.isExpression));case 187:return e.updateArrayLiteral(s,l(s.elements,c,e.isExpression));case 188:return e.updateObjectLiteral(s,l(s.properties,c,e.isObjectLiteralElementLike));case 189:return e.updatePropertyAccess(s,r(s.expression,c,e.isExpression),r(s.name,c,e.isIdentifier));case 190:return e.updateElementAccess(s,r(s.expression,c,e.isExpression),r(s.argumentExpression,c,e.isExpression));case 191:return e.updateCall(s,r(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 192:return e.updateNew(s,r(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 193:return e.updateTaggedTemplate(s,r(s.tag,c,e.isExpression),n(s.typeArguments,c,e.isExpression),r(s.template,c,e.isTemplateLiteral));case 194:return e.updateTypeAssertion(s,r(s.type,c,e.isTypeNode),r(s.expression,c,e.isExpression));case 195:return e.updateParen(s,r(s.expression,c,e.isExpression));case 196:return e.updateFunctionExpression(s,l(s.modifiers,c,e.isModifier),r(s.asteriskToken,d,e.isToken),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 197:return e.updateArrowFunction(s,l(s.modifiers,c,e.isModifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),r(s.equalsGreaterThanToken,c,e.isToken),o(s.body,c,u));case 198:return e.updateDelete(s,r(s.expression,c,e.isExpression));case 199:return e.updateTypeOf(s,r(s.expression,c,e.isExpression));case 200:return e.updateVoid(s,r(s.expression,c,e.isExpression));case 201:return e.updateAwait(s,r(s.expression,c,e.isExpression));case 202:return e.updatePrefix(s,r(s.operand,c,e.isExpression));case 203:return e.updatePostfix(s,r(s.operand,c,e.isExpression));case 204:return e.updateBinary(s,r(s.left,c,e.isExpression),r(s.right,c,e.isExpression),r(s.operatorToken,c,e.isToken));case 205:return e.updateConditional(s,r(s.condition,c,e.isExpression),r(s.questionToken,c,e.isToken),r(s.whenTrue,c,e.isExpression),r(s.colonToken,c,e.isToken),r(s.whenFalse,c,e.isExpression));case 206:return e.updateTemplateExpression(s,r(s.head,c,e.isTemplateHead),l(s.templateSpans,c,e.isTemplateSpan));case 207:return e.updateYield(s,r(s.asteriskToken,d,e.isToken),r(s.expression,c,e.isExpression));case 208:return e.updateSpread(s,r(s.expression,c,e.isExpression));case 209:return e.updateClassExpression(s,l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 211:return e.updateExpressionWithTypeArguments(s,l(s.typeArguments,c,e.isTypeNode),r(s.expression,c,e.isExpression));case 212:return e.updateAsExpression(s,r(s.expression,c,e.isExpression),r(s.type,c,e.isTypeNode));case 213:return e.updateNonNullExpression(s,r(s.expression,c,e.isExpression));case 214:return e.updateMetaProperty(s,r(s.name,c,e.isIdentifier));case 216:return e.updateTemplateSpan(s,r(s.expression,c,e.isExpression),r(s.literal,c,e.isTemplateMiddleOrTemplateTail));case 218:return e.updateBlock(s,l(s.statements,c,e.isStatement));case 219:return e.updateVariableStatement(s,l(s.modifiers,c,e.isModifier),r(s.declarationList,c,e.isVariableDeclarationList));case 221:return e.updateExpressionStatement(s,r(s.expression,c,e.isExpression));case 222:return e.updateIf(s,r(s.expression,c,e.isExpression),r(s.thenStatement,c,e.isStatement,e.liftToBlock),r(s.elseStatement,c,e.isStatement,e.liftToBlock));case 223:return e.updateDo(s,r(s.statement,c,e.isStatement,e.liftToBlock),r(s.expression,c,e.isExpression));case 224:return e.updateWhile(s,r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 225:return e.updateFor(s,r(s.initializer,c,e.isForInitializer),r(s.condition,c,e.isExpression),r(s.incrementor,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 226:return e.updateForIn(s,r(s.initializer,c,e.isForInitializer),r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 227:return e.updateForOf(s,r(s.awaitModifier,c,e.isToken),r(s.initializer,c,e.isForInitializer),r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 228:return e.updateContinue(s,r(s.label,c,e.isIdentifier));case 229:return e.updateBreak(s,r(s.label,c,e.isIdentifier));case 230:return e.updateReturn(s,r(s.expression,c,e.isExpression));case 231:return e.updateWith(s,r(s.expression,c,e.isExpression),r(s.statement,c,e.isStatement,e.liftToBlock));case 232:return e.updateSwitch(s,r(s.expression,c,e.isExpression),r(s.caseBlock,c,e.isCaseBlock));case 233:return e.updateLabel(s,r(s.label,c,e.isIdentifier),r(s.statement,c,e.isStatement,e.liftToBlock));case 234:return e.updateThrow(s,r(s.expression,c,e.isExpression));case 235:return e.updateTry(s,r(s.tryBlock,c,e.isBlock),r(s.catchClause,c,e.isCatchClause),r(s.finallyBlock,c,e.isBlock));case 237:return e.updateVariableDeclaration(s,r(s.name,c,e.isBindingName),r(s.type,c,e.isTypeNode),r(s.initializer,c,e.isExpression));case 238:return e.updateVariableDeclarationList(s,l(s.declarations,c,e.isVariableDeclaration));case 239:return e.updateFunctionDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.asteriskToken,d,e.isToken),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),r(s.type,c,e.isTypeNode),o(s.body,c,u));case 240:return e.updateClassDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 241:return e.updateInterfaceDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isTypeElement));case 242:return e.updateTypeAliasDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),r(s.type,c,e.isTypeNode));case 243:return e.updateEnumDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),l(s.members,c,e.isEnumMember));case 244:return e.updateModuleDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),r(s.body,c,e.isModuleBody));case 245:return e.updateModuleBlock(s,l(s.statements,c,e.isStatement));case 246:return e.updateCaseBlock(s,l(s.clauses,c,e.isCaseOrDefaultClause));case 247:return e.updateNamespaceExportDeclaration(s,r(s.name,c,e.isIdentifier));case 248:return e.updateImportEqualsDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.name,c,e.isIdentifier),r(s.moduleReference,c,e.isModuleReference));case 249:return e.updateImportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.importClause,c,e.isImportClause),r(s.moduleSpecifier,c,e.isExpression));case 250:return e.updateImportClause(s,r(s.name,c,e.isIdentifier),r(s.namedBindings,c,e.isNamedImportBindings));case 251:return e.updateNamespaceImport(s,r(s.name,c,e.isIdentifier));case 252:return e.updateNamedImports(s,l(s.elements,c,e.isImportSpecifier));case 253:return e.updateImportSpecifier(s,r(s.propertyName,c,e.isIdentifier),r(s.name,c,e.isIdentifier));case 254:return e.updateExportAssignment(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.expression,c,e.isExpression));case 255:return e.updateExportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),r(s.exportClause,c,e.isNamedExports),r(s.moduleSpecifier,c,e.isExpression));case 256:return e.updateNamedExports(s,l(s.elements,c,e.isExportSpecifier));case 257:return e.updateExportSpecifier(s,r(s.propertyName,c,e.isIdentifier),r(s.name,c,e.isIdentifier));case 259:return e.updateExternalModuleReference(s,r(s.expression,c,e.isExpression));case 260:return e.updateJsxElement(s,r(s.openingElement,c,e.isJsxOpeningElement),l(s.children,c,e.isJsxChild),r(s.closingElement,c,e.isJsxClosingElement));case 261:return e.updateJsxSelfClosingElement(s,r(s.tagName,c,e.isJsxTagNameExpression),l(s.typeArguments,c,e.isTypeNode),r(s.attributes,c,e.isJsxAttributes));case 262:return e.updateJsxOpeningElement(s,r(s.tagName,c,e.isJsxTagNameExpression),l(s.typeArguments,c,e.isTypeNode),r(s.attributes,c,e.isJsxAttributes));case 263:return e.updateJsxClosingElement(s,r(s.tagName,c,e.isJsxTagNameExpression));case 264:return e.updateJsxFragment(s,r(s.openingFragment,c,e.isJsxOpeningFragment),l(s.children,c,e.isJsxChild),r(s.closingFragment,c,e.isJsxClosingFragment));case 267:return e.updateJsxAttribute(s,r(s.name,c,e.isIdentifier),r(s.initializer,c,e.isStringLiteralOrJsxExpression));case 268:return e.updateJsxAttributes(s,l(s.properties,c,e.isJsxAttributeLike));case 269:return e.updateJsxSpreadAttribute(s,r(s.expression,c,e.isExpression));case 270:return e.updateJsxExpression(s,r(s.expression,c,e.isExpression));case 271:return e.updateCaseClause(s,r(s.expression,c,e.isExpression),l(s.statements,c,e.isStatement));case 272:return e.updateDefaultClause(s,l(s.statements,c,e.isStatement));case 273:return e.updateHeritageClause(s,l(s.types,c,e.isExpressionWithTypeArguments));case 274:return e.updateCatchClause(s,r(s.variableDeclaration,c,e.isVariableDeclaration),r(s.block,c,e.isBlock));case 275:return e.updatePropertyAssignment(s,r(s.name,c,e.isPropertyName),r(s.initializer,c,e.isExpression));case 276:return e.updateShorthandPropertyAssignment(s,r(s.name,c,e.isIdentifier),r(s.objectAssignmentInitializer,c,e.isExpression));case 277:return e.updateSpreadAssignment(s,r(s.expression,c,e.isExpression));case 278:return e.updateEnumMember(s,r(s.name,c,e.isPropertyName),r(s.initializer,c,e.isExpression));case 279:return e.updateSourceFileNode(s,i(s.statements,c,u));case 308:return e.updatePartiallyEmittedExpression(s,r(s.expression,c,e.isExpression));case 309:return e.updateCommaList(s,l(s.elements,c,e.isExpression));default:return s}}}}(d||(d={})),function(e){function t(e,t,r){return e?t(r,e):r}function r(e,t,r){return e?t(r,e):r}function n(n,i,a,o){if(void 0===n)return i;var s=o?r:e.reduceLeft,c=o||a,u=n.kind;if(u>0&&u<=147)return i;if(u>=163&&u<=182)return i;var l=i;switch(n.kind){case 217:case 220:case 210:case 236:case 307:break;case 148:l=t(n.left,a,l),l=t(n.right,a,l);break;case 149:l=t(n.expression,a,l);break;case 151:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 152:l=t(n.expression,a,l);break;case 153:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.questionToken,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 154:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 156:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 157:l=s(n.modifiers,c,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 158:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 159:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.parameters,c,l),l=t(n.body,a,l);break;case 184:case 185:l=s(n.elements,c,l);break;case 186:l=t(n.propertyName,a,l),l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 187:l=s(n.elements,c,l);break;case 188:l=s(n.properties,c,l);break;case 189:l=t(n.expression,a,l),l=t(n.name,a,l);break;case 190:l=t(n.expression,a,l),l=t(n.argumentExpression,a,l);break;case 191:case 192:l=t(n.expression,a,l),l=s(n.typeArguments,c,l),l=s(n.arguments,c,l);break;case 193:l=t(n.tag,a,l),l=s(n.typeArguments,c,l),l=t(n.template,a,l);break;case 194:l=t(n.type,a,l),l=t(n.expression,a,l);break;case 196:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 197:l=s(n.modifiers,c,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 195:case 198:case 199:case 200:case 201:case 207:case 208:case 213:l=t(n.expression,a,l);break;case 202:case 203:l=t(n.operand,a,l);break;case 204:l=t(n.left,a,l),l=t(n.right,a,l);break;case 205:l=t(n.condition,a,l),l=t(n.whenTrue,a,l),l=t(n.whenFalse,a,l);break;case 206:l=t(n.head,a,l),l=s(n.templateSpans,c,l);break;case 209:l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 211:l=t(n.expression,a,l),l=s(n.typeArguments,c,l);break;case 212:l=t(n.expression,a,l),l=t(n.type,a,l);break;case 216:l=t(n.expression,a,l),l=t(n.literal,a,l);break;case 218:l=s(n.statements,c,l);break;case 219:l=s(n.modifiers,c,l),l=t(n.declarationList,a,l);break;case 221:l=t(n.expression,a,l);break;case 222:l=t(n.expression,a,l),l=t(n.thenStatement,a,l),l=t(n.elseStatement,a,l);break;case 223:l=t(n.statement,a,l),l=t(n.expression,a,l);break;case 224:case 231:l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 225:l=t(n.initializer,a,l),l=t(n.condition,a,l),l=t(n.incrementor,a,l),l=t(n.statement,a,l);break;case 226:case 227:l=t(n.initializer,a,l),l=t(n.expression,a,l),l=t(n.statement,a,l);break;case 230:case 234:l=t(n.expression,a,l);break;case 232:l=t(n.expression,a,l),l=t(n.caseBlock,a,l);break;case 233:l=t(n.label,a,l),l=t(n.statement,a,l);break;case 235:l=t(n.tryBlock,a,l),l=t(n.catchClause,a,l),l=t(n.finallyBlock,a,l);break;case 237:l=t(n.name,a,l),l=t(n.type,a,l),l=t(n.initializer,a,l);break;case 238:l=s(n.declarations,c,l);break;case 239:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.parameters,c,l),l=t(n.type,a,l),l=t(n.body,a,l);break;case 240:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.typeParameters,c,l),l=s(n.heritageClauses,c,l),l=s(n.members,c,l);break;case 243:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=s(n.members,c,l);break;case 244:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.body,a,l);break;case 245:l=s(n.statements,c,l);break;case 246:l=s(n.clauses,c,l);break;case 248:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.name,a,l),l=t(n.moduleReference,a,l);break;case 249:l=s(n.decorators,c,l),l=s(n.modifiers,c,l),l=t(n.importClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 250:l=t(n.name,a,l),l=t(n.namedBindings,a,l);break;case 251:l=t(n.name,a,l);break;case 252:case 256:l=s(n.elements,c,l);break;case 253:case 257:l=t(n.propertyName,a,l),l=t(n.name,a,l);break;case 254:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.expression,a,l);break;case 255:l=e.reduceLeft(n.decorators,a,l),l=e.reduceLeft(n.modifiers,a,l),l=t(n.exportClause,a,l),l=t(n.moduleSpecifier,a,l);break;case 259:l=t(n.expression,a,l);break;case 260:l=t(n.openingElement,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingElement,a,l);break;case 264:l=t(n.openingFragment,a,l),l=e.reduceLeft(n.children,a,l),l=t(n.closingFragment,a,l);break;case 261:case 262:l=t(n.tagName,a,l),l=s(n.typeArguments,a,l),l=t(n.attributes,a,l);break;case 268:l=s(n.properties,c,l);break;case 263:l=t(n.tagName,a,l);break;case 267:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 269:case 270:l=t(n.expression,a,l);break;case 271:l=t(n.expression,a,l);case 272:l=s(n.statements,c,l);break;case 273:l=s(n.types,c,l);break;case 274:l=t(n.variableDeclaration,a,l),l=t(n.block,a,l);break;case 275:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 276:l=t(n.name,a,l),l=t(n.objectAssignmentInitializer,a,l);break;case 277:l=t(n.expression,a,l);break;case 278:l=t(n.name,a,l),l=t(n.initializer,a,l);break;case 279:l=s(n.statements,c,l);break;case 308:l=t(n.expression,a,l);break;case 309:l=s(n.elements,c,l)}return l}function i(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var r=function(t){if(e.hasModifier(t,2)||e.isTypeNode(t)&&211!==t.kind)return 0;return n(t,0,a,o)}(t);return e.computeTransformFlagsForNode(t,r)}function a(e,t){return e|i(t)}function o(e,t){return e|function(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,a=e;n<a.length;n++){var o=a[n];t|=i(o),r|=-536870913&o.transformFlags}return e.transformFlags=536870912|r,t}(t)}var s;e.reduceEachChild=n,e.mergeLexicalEnvironment=function(t,r){return e.some(r)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.addStatementsAfterPrologue(t.slice(),r)),t):e.addStatementsAfterPrologue(t,r):t},e.liftToBlock=function(t){return s.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)},e.aggregateTransformFlags=function(e){return i(e),e},function(t){var r=!1;t.failBadSyntaxKind=function r(n,i){return t.fail((i||"Unexpected node.")+"\r\nNode "+e.formatSyntaxKind(n.kind)+" was unexpected.",r)},t.assertEachNode=t.shouldAssert(1)?function(r,n,i){return t.assert(void 0===n||e.every(r,n),i||"Unexpected node.",function(){return"Node array did not pass test '"+t.getFunctionName(n)+"'."},t.assertEachNode)}:e.noop,t.assertNode=t.shouldAssert(1)?function(r,n,i){return t.assert(void 0===n||n(r),i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" did not pass test '"+t.getFunctionName(n)+"'."},t.assertNode)}:e.noop,t.assertOptionalNode=t.shouldAssert(1)?function(r,n,i){return t.assert(void 0===n||void 0===r||n(r),i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" did not pass test '"+t.getFunctionName(n)+"'."},t.assertOptionalNode)}:e.noop,t.assertOptionalToken=t.shouldAssert(1)?function(r,n,i){return t.assert(void 0===n||void 0===r||r.kind===n,i||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" was not a '"+e.formatSyntaxKind(n)+"' token."},t.assertOptionalToken)}:e.noop,t.assertMissingNode=t.shouldAssert(1)?function(r,n){return t.assert(void 0===r,n||"Unexpected node.",function(){return"Node "+e.formatSyntaxKind(r.kind)+" was unexpected'."},t.assertMissingNode)}:e.noop,t.enableDebugInfo=function(){if(!r){Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return e.formatSymbolFlags(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return e.formatTypeFlags(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?e.formatObjectFlags(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var t=0,n=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];t<n.length;t++){var i=n[t];i.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(i.prototype,{__debugKind:{get:function(){return e.formatSyntaxKind(this.kind)}},__debugModifierFlags:{get:function(){return e.formatModifierFlags(e.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return e.formatTransformFlags(this.transformFlags)}},__debugEmitFlags:{get:function(){return e.formatEmitFlags(e.getEmitFlags(this))}},__debugGetText:{value:function(t){if(e.nodeIsSynthesized(this))return"";var r=e.getParseTreeNode(this),n=r&&e.getSourceFileOfNode(r);return n?e.getSourceTextOfNodeFromSourceFile(n,r,t):""}}})}r=!0}}}(s=e.Debug||(e.Debug={}))}(d||(d={})),function(e){e.createSourceMapGenerator=function(t,r,n,i,o){var c,u,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,d=l.enter,_=l.exit,f=[],p=[],m=e.createMap(),g=[],h="",y=0,v=0,b=0,x=0,S=0,D=0,k=!1,C=0,T=0,E=0,N=0,A=0,w=0,P=!1,F=!1,I=!1;return{getSources:function(){return f},addSource:M,setSourceContent:O,addName:L,addMapping:R,appendSourceMap:function(t,r,n,i){var o;e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),d();for(var s,c=[],u=a(n.mappings),l=u.next(),f=l.value,p=l.done;!p;o=u.next(),f=o.value,p=o.done,o){var m=void 0,g=void 0,h=void 0,y=void 0;if(void 0!==f.sourceIndex){if(void 0===(m=c[f.sourceIndex])){var v=n.sources[f.sourceIndex],b=n.sourceRoot?e.combinePaths(n.sourceRoot,v):v,x=e.combinePaths(e.getDirectoryPath(i),b);c[f.sourceIndex]=m=M(x),n.sourcesContent&&"string"==typeof n.sourcesContent[f.sourceIndex]&&O(m,n.sourcesContent[f.sourceIndex])}g=f.sourceLine,h=f.sourceCharacter,n.names&&void 0!==f.nameIndex&&(s||(s=[]),void 0===(y=s[f.nameIndex])&&(s[f.nameIndex]=y=L(n.names[f.nameIndex])))}var S=f.generatedLine+t,D=0===f.generatedLine?f.generatedCharacter+r:f.generatedCharacter;R(S,D,m,g,h,y)}_()},toJSON:j,toString:function(){return JSON.stringify(j())}};function M(r){d();var n=e.getRelativePathToDirectoryOrUrl(i,r,t.getCurrentDirectory(),t.getCanonicalFileName,!0),a=m.get(n);return void 0===a&&(a=p.length,p.push(n),f.push(r),m.set(n,a)),_(),a}function O(e,t){if(d(),null!==t){for(c||(c=[]);c.length<e;)c.push(null);c[e]=t}_()}function L(t){d(),u||(u=e.createMap());var r=u.get(t);return void 0===r&&(r=g.length,g.push(t),u.set(t,r)),_(),r}function R(t,r,n,i,a,o){e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),d(),(function(e,t){return!P||C!==e||T!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&E===e&&(N>t||N===t&&A>r)}(n,i,a))&&(B(),C=t,T=r,F=!1,I=!1,P=!0),void 0!==n&&void 0!==i&&void 0!==a&&(E=n,N=i,A=a,F=!0,void 0!==o&&(w=o,I=!0)),_()}function B(){if(P&&(!k||y!==C||v!==T||b!==E||x!==N||S!==A||D!==w)){if(d(),y<C)do{h+=";",y++,v=0}while(y<C);else e.Debug.assertEqual(y,C,"generatedLine cannot backtrack"),k&&(h+=",");h+=s(T-v),v=T,F&&(h+=s(E-b),b=E,h+=s(N-x),x=N,h+=s(A-S),S=A,I&&(h+=s(w-D),D=w)),k=!0,_()}}function j(){return B(),{version:3,file:r,sourceRoot:n,sources:p,names:g,mappings:h,sourcesContent:c}}};var t=/^\/\/[@#] source[M]appingURL=(.+)\s*$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,u=0;return{get pos(){return n},get error(){return t},get state(){return l(!0,!0)},next:function(){for(;!r&&n<e.length;){var t=e.charCodeAt(n);if(59!==t){if(44!==t){var _=!1,h=!1;if(a+=g(),p())return d();if(a<0)return f("Invalid generatedCharacter found");if(!m()){if(_=!0,o+=g(),p())return d();if(o<0)return f("Invalid sourceIndex found");if(m())return f("Unsupported Format: No entries after sourceIndex");if(s+=g(),p())return d();if(s<0)return f("Invalid sourceLine found");if(m())return f("Unsupported Format: No entries after sourceLine");if(c+=g(),p())return d();if(c<0)return f("Invalid sourceCharacter found");if(!m()){if(h=!0,u+=g(),p())return d();if(u<0)return f("Invalid nameIndex found");if(!m())return f("Unsupported Error Format: Entries after nameIndex")}}return{value:l(_,h),done:r}}n++}else i++,a=0,n++}return d()}};function l(e,t){return{generatedLine:i,generatedCharacter:a,sourceIndex:e?o:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:t?u:void 0}}function d(){return r=!0,{value:void 0,done:!0}}function _(e){void 0===t&&(t=e)}function f(e){return _(e),d()}function p(){return void 0!==t}function m(){return n===e.length||44===e.charCodeAt(n)||59===e.charCodeAt(n)}function g(){for(var t,r=!0,i=0,a=0;r;n++){if(n>=e.length)return _("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return _("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<<i,i+=5}return 0==(1&a)?a>>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(t){t<0?t=1+(-t<<1):t<<=1;var r,n="";do{var i=31&t;(t>>=5)>0&&(i|=32),n+=String.fromCharCode((r=i)>=0&&r<26?65+r:r>=26&&r<52?97+r-26:r>=52&&r<62?48+r-52:62===r?43:63===r?47:e.Debug.fail(r+": not a base64 value"))}while(t>0);return n}function c(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function u(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.compareValues(t.sourceIndex,r.sourceIndex)}function d(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function _(e){return e.sourcePosition}function f(e){return e.generatedPosition}e.tryGetSourceMappingURL=function(n,i){void 0===i&&(i=e.computeLineStarts(n));for(var a=i.length-1;a>=0;a--){var o=n.substring(i[a],i[a+1]),s=t.exec(o);if(s)return s[1];if(!o.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,s,p,m=e.getDirectoryPath(n),g=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,m):m,h=e.getNormalizedAbsolutePath(r.file,m),y=t.getCanonicalFileName(h),v=t.getSourceFileLike(y),b=r.sources.map(function(t){return e.getNormalizedAbsolutePath(t,g)}),x=b.map(function(e){return t.getCanonicalFileName(e)}),S=e.createMapFromEntries(x.map(function(e,t){return[e,t]}));return{getSourcePosition:function(t){var r=T();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,f,e.compareValues);n<0&&(n=~n);var i=r[n];return void 0!==i&&c(i)?{fileName:b[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition:function(r){var n=S.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=C(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,_,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==n?r:{fileName:h,pos:o.generatedPosition}}};function D(n){var i,a,s=void 0!==v?e.getPositionOfLineAndCharacterWithEdits(v,n.generatedLine,n.generatedCharacter):-1;if(o(n)){var c=x[n.sourceIndex],u=t.getSourceFileLike(c);i=r.sources[n.sourceIndex],a=void 0!==u?e.getPositionOfLineAndCharacterWithEdits(u,n.sourceLine,n.sourceCharacter):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function k(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,D);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: "+n.error),i=e.emptyArray):i=o}return i}function C(t){if(void 0===p){for(var r=[],n=0,i=k();n<i.length;n++){var a=i[n];if(c(a)){var o=r[a.sourceIndex];o||(r[a.sourceIndex]=o=[]),o.push(a)}}p=r.map(function(t){return e.sortAndDeduplicate(t,l,u)})}return p[t]}function T(){if(void 0===s){for(var t=[],r=0,n=k();r<n.length;r++){var i=n[r];t.push(i)}s=e.sortAndDeduplicate(t,d,u)}return s}},e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}}(d||(d={})),function(e){function t(t){return(t=e.getOriginalNode(t))?e.getNodeId(t):0}function r(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function n(t){if(e.getNamespaceDeclarationNode(t))return!0;var n=t.importClause&&t.importClause.namedBindings;if(!n)return!1;if(!e.isNamedImports(n))return!1;for(var i=0,a=0,o=n.elements;a<o.length;a++){r(o[a])&&i++}return i>0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r)}(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||(n=a(s,r,n))}else if(!e.isGeneratedIdentifier(t.name)){var c=e.idText(t.name);r.get(c)||(r.set(c,!0),n=e.append(n,t.name))}return n}function o(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}e.getOriginalNodeId=t,e.chainBundle=function(t){return function(r){return 279===r.kind?t(r):function(r){return e.createBundle(e.map(r.sourceFiles,t),r.prepends)}(r)}},e.getImportNeedsImportStarHelper=n,e.getImportNeedsImportDefaultHelper=i,e.collectExternalModuleInfo=function(r,s,c){for(var u,l,d=[],_=e.createMultiMap(),f=[],p=e.createMap(),m=!1,g=!1,h=!1,y=0,v=r.statements;y<v.length;y++){var b=v[y];switch(b.kind){case 249:d.push(b),h=h||n(b)||i(b);break;case 248:259===b.moduleReference.kind&&d.push(b);break;case 255:if(b.moduleSpecifier)b.exportClause?d.push(b):(d.push(b),g=!0);else for(var x=0,S=b.exportClause.elements;x<S.length;x++){var D=S[x];if(!p.get(e.idText(D.name))){var k=D.propertyName||D.name;_.add(e.idText(k),D),(E=s.getReferencedImportDeclaration(k)||s.getReferencedValueDeclaration(k))&&o(f,t(E),D.name),p.set(e.idText(D.name),!0),u=e.append(u,D.name)}}break;case 254:b.isExportEquals&&!l&&(l=b);break;case 219:if(e.hasModifier(b,1))for(var C=0,T=b.declarationList.declarations;C<T.length;C++){var E;u=a(E=T[C],p,u)}break;case 239:e.hasModifier(b,1)&&(e.hasModifier(b,512)?m||(o(f,t(b),e.getDeclarationName(b)),m=!0):(k=b.name,p.get(e.idText(k))||(o(f,t(b),k),p.set(e.idText(k),!0),u=e.append(u,k))));break;case 240:e.hasModifier(b,1)&&(e.hasModifier(b,512)?m||(o(f,t(b),e.getDeclarationName(b)),m=!0):(k=b.name)&&!p.get(e.idText(k))&&(o(f,t(b),k),p.set(e.idText(k),!0),u=e.append(u,k)))}}var N=e.getOrCreateExternalHelpersModuleNameIfNeeded(r,c,g,h),A=N&&e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(N)),e.createLiteral(e.externalHelpersModuleNameText));return A&&(e.addEmitFlags(A,67108864),d.unshift(A)),{externalImports:d,exportSpecifiers:_,exportEquals:l,hasExportStarsToExportValues:g,exportedBindings:f,exportedNames:u,externalHelpersImportDeclaration:A}},e.isSimpleCopiableExpression=function(t){return e.isStringLiteralLike(t)||8===t.kind||e.isKeyword(t.kind)||e.isIdentifier(t)},e.helperString=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(r){for(var n="",i=0;i<t.length;i++)n+=e[i],n+=r(t[i]);return n+=e[e.length-1]}}}(d||(d={})),function(e){function t(r,n){var i=e.getTargetOfBindingOrAssignmentElement(r);return e.isBindingOrAssignmentPattern(i)?function(r,n){for(var i=e.getElementsOfBindingOrAssignmentPattern(r),a=0,o=i;a<o.length;a++){var s=o[a];if(t(s,n))return!0}return!1}(i,n):!!e.isIdentifier(i)&&i.escapedText===n}function r(t,a,o,s,c){if(!c){var u=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(a),t.visitor,e.isExpression);u?o=o?function(t,r,n,a){return r=i(t,r,!0,a),e.createConditional(e.createTypeCheck(r,"undefined"),n,r)}(t,o,u,s):u:o||(o=e.createVoidZero())}var l=e.getTargetOfBindingOrAssignmentElement(a);e.isObjectBindingOrAssignmentPattern(l)?function(t,a,o,s,c){var u,l,d=e.getElementsOfBindingOrAssignmentPattern(o),f=d.length;if(1!==f){var p=!e.isDeclarationBindingElement(a)||0!==f;s=i(t,s,p,c)}for(var m=0;m<f;m++){var g=d[m];if(e.getRestIndicatorOfBindingOrAssignmentElement(g)){if(m===f-1){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var h=_(t.context,s,d,l,o);r(t,g,h,g)}}else{var y=e.getPropertyNameOfBindingOrAssignmentElement(g);if(!(t.level>=1)||393216&g.transformFlags||393216&e.getTargetOfBindingOrAssignmentElement(g).transformFlags||e.isComputedPropertyName(y)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var h=n(t,s,y);e.isComputedPropertyName(y)&&(l=e.append(l,h.argumentExpression)),r(t,g,h,g)}else u=e.append(u,g)}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o)}(t,a,l,o,s):e.isArrayBindingOrAssignmentPattern(l)?function(t,n,a,o,s){var c,u,l=e.getElementsOfBindingOrAssignmentPattern(a),d=l.length;if(t.level<1&&t.downlevelIteration)o=i(t,e.createReadHelper(t.context,o,d>0&&e.getRestIndicatorOfBindingOrAssignmentElement(l[d-1])?void 0:d,s),!1,s);else if(1!==d&&(t.level<1||0===d)||e.every(l,e.isOmittedExpression)){var _=!e.isDeclarationBindingElement(n)||0!==d;o=i(t,o,_,s)}for(var f=0;f<d;f++){var p=l[f];if(t.level>=1)if(262144&p.transformFlags){var m=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),u=e.append(u,[m,p]),c=e.append(c,t.createArrayBindingOrAssignmentElement(m))}else c=e.append(c,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p)){if(f===d-1){var g=e.createArraySlice(o,f);r(t,p,g,p)}}else{var g=e.createElementAccess(o,f);r(t,p,g,p)}}}c&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(c),o,s,a);if(u)for(var h=0,y=u;h<y.length;h++){var v=y[h],b=v[0],p=v[1];r(t,p,b,p)}}(t,a,l,o,s):t.emitBindingOrAssignment(l,o,s,a)}function n(t,r,n){if(e.isComputedPropertyName(n)){var a=i(t,e.visitNode(n.expression,t.visitor),!1,n);return e.createElementAccess(r,a)}if(e.isStringOrNumericLiteralLike(n))return(a=e.getSynthesizedClone(n)).text=a.text,e.createElementAccess(r,a);var o=e.createIdentifier(e.idText(n));return e.createPropertyAccess(r,o)}function i(t,r,n,i){if(e.isIdentifier(r)&&n)return r;var a=e.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(a),t.emitExpression(e.setTextRange(e.createAssignment(a,r),i))):t.emitBindingOrAssignment(a,r,i,void 0),a}function a(t){return e.Debug.assertEachNode(t,e.isArrayBindingElement),e.createArrayBindingPattern(t)}function o(t){return e.createArrayLiteral(e.map(t,e.convertToArrayAssignmentElement))}function s(t){return e.Debug.assertEachNode(t,e.isBindingElement),e.createObjectBindingPattern(t)}function c(t){return e.createObjectLiteral(e.map(t,e.convertToObjectAssignmentElement))}function u(t){return e.createBindingElement(void 0,void 0,t)}function l(e){return e}!function(e){e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest"}(e.FlattenLevel||(e.FlattenLevel={})),e.flattenDestructuringAssignment=function(n,a,s,u,d,_){var f,p,m=n;if(e.isDestructuringAssignment(n))for(f=n.right;e.isEmptyArrayLiteral(n.left)||e.isEmptyObjectLiteral(n.left);){if(!e.isDestructuringAssignment(f))return e.visitNode(f,a,e.isExpression);m=n=f,f=n.right}var g={context:s,level:u,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:h,emitBindingOrAssignment:function(t,r,n,i){e.Debug.assertNode(t,_?e.isIdentifier:e.isExpression);var o=_?_(t,r,n):e.setTextRange(e.createAssignment(e.visitNode(t,a,e.isExpression),r),n);o.original=i,h(o)},createArrayBindingOrAssignmentPattern:o,createObjectBindingOrAssignmentPattern:c,createArrayBindingOrAssignmentElement:l,visitor:a};if(f&&(f=e.visitNode(f,a,e.isExpression),e.isIdentifier(f)&&t(n,f.escapedText)?f=i(g,f,!1,m):d?f=i(g,f,!0,m):e.nodeIsSynthesized(n)&&(m=f)),r(g,n,f,m,e.isDestructuringAssignment(n)),f&&d){if(!e.some(p))return f;p.push(f)}return e.aggregateTransformFlags(e.inlineExpressions(p))||e.createOmittedExpression();function h(t){e.setEmitFlags(t,64),e.aggregateTransformFlags(t),p=e.append(p,t)}},e.flattenDestructuringBinding=function(n,o,c,l,d,_,f){var p;void 0===_&&(_=!1);var m=[],g=[],h={context:c,level:l,downlevelIteration:!!c.getCompilerOptions().downlevelIteration,hoistTempVariables:_,emitExpression:function(t){p=e.append(p,t)},emitBindingOrAssignment:w,createArrayBindingOrAssignmentPattern:a,createObjectBindingOrAssignmentPattern:s,createArrayBindingOrAssignmentElement:u,visitor:o};if(e.isVariableDeclaration(n)){var y=e.getInitializerOfBindingOrAssignmentElement(n);y&&e.isIdentifier(y)&&t(n,y.escapedText)&&(y=i(h,y,!1,y),n=e.updateVariableDeclaration(n,n.name,n.type,y))}if(r(h,n,d,n,f),p){var v=e.createTempVariable(void 0);if(_){var b=e.inlineExpressions(p);p=void 0,w(v,b,void 0,void 0)}else{c.hoistVariableDeclaration(v);var x=e.last(m);x.pendingExpressions=e.append(x.pendingExpressions,e.createAssignment(v,x.value)),e.addRange(x.pendingExpressions,p),x.value=v}}for(var S=0,D=m;S<D.length;S++){var k=D[S],C=k.pendingExpressions,T=k.name,E=(b=k.value,k.location),N=k.original,A=e.createVariableDeclaration(T,void 0,C?e.inlineExpressions(e.append(C,b)):b);A.original=N,e.setTextRange(A,E),e.isIdentifier(T)&&e.setEmitFlags(A,64),e.aggregateTransformFlags(A),g.push(A)}return g;function w(t,r,n,i){e.Debug.assertNode(t,e.isBindingName),p&&(r=e.inlineExpressions(e.append(p,r)),p=void 0),m.push({pendingExpressions:p,name:t,value:r,location:n,original:i})}};var d={name:"typescript:rest",scoped:!1,text:'\n            var __rest = (this && this.__rest) || function (s, e) {\n                var t = {};\n                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n                    t[p] = s[p];\n                if (s != null && typeof Object.getOwnPropertySymbols === "function")\n                    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\n                        t[p[i]] = s[p[i]];\n                return t;\n            };'};function _(t,r,n,i,a){t.requestEmitHelper(d);for(var o=[],s=0,c=0;c<n.length-1;c++){var u=e.getPropertyNameOfBindingOrAssignmentElement(n[c]);if(u)if(e.isComputedPropertyName(u)){var l=i[s];s++,o.push(e.createConditional(e.createTypeCheck(l,"symbol"),l,e.createAdd(l,e.createLiteral(""))))}else o.push(e.createLiteral(u))}return e.createCall(e.getHelperName("__rest"),void 0,[r,e.setTextRange(e.createArrayLiteral(o),a)])}}(d||(d={})),function(e){var t,r,n=!1;function i(t,r,n,i,o,s){var c=[];return c.push(e.createArrayLiteral(r,!0)),c.push(n),i&&(c.push(i),o&&c.push(o)),t.requestEmitHelper(a),e.setTextRange(e.createCall(e.getHelperName("__decorate"),void 0,c),s)}!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",e[e.HasConstructorDecorators=2]="HasConstructorDecorators",e[e.HasMemberDecorators=4]="HasMemberDecorators",e[e.IsExportOfNamespace=8]="IsExportOfNamespace",e[e.IsNamedExternalExport=16]="IsNamedExternalExport",e[e.IsDefaultExternalExport=32]="IsDefaultExternalExport",e[e.IsDerivedClass=64]="IsDerivedClass",e[e.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",e[e.HasAnyDecorators=6]="HasAnyDecorators",e[e.NeedsName=5]="NeedsName",e[e.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",e[e.IsExported=56]="IsExported"}(r||(r={})),e.transformTypeScript=function(t){var r,a,s,u,l,d,_,f,p,m,g=t.startLexicalEnvironment,h=t.resumeLexicalEnvironment,y=t.endLexicalEnvironment,v=t.hoistVariableDeclaration,b=t.getEmitResolver(),x=t.getCompilerOptions(),S=e.getStrictOptionValue(x,"strictNullChecks"),D=e.getEmitScriptTarget(x),k=e.getEmitModuleKind(x),C=t.onEmitNode,T=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){var a=p,o=r;e.isSourceFile(n)&&(r=n),2&_&&function(t){return 244===e.getOriginalNode(t).kind}(n)&&(p|=2),8&_&&function(t){return 243===e.getOriginalNode(t).kind}(n)&&(p|=8),C(t,n,i),p=a,r=o},t.onSubstituteNode=function(t,r){return r=T(t,r),1===t?function(t){switch(t.kind){case 72:return function(t){return function(t){if(1&_&&33554432&b.getNodeCheckFlags(t)){var r=b.getReferencedValueDeclaration(t);if(r){var n=f[r.id];if(n){var i=e.getSynthesizedClone(n);return e.setSourceMapRange(i,t),e.setCommentRange(i,t),i}}}}(t)||We(t)||t}(t);case 189:case 190:return function(e){return He(e)}(t)}return t}(r):e.isShorthandPropertyAssignment(r)?function(t){if(2&_){var r=t.name,n=We(r);if(n){if(t.objectAssignmentInitializer){var i=e.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(r,i),t)}return e.setTextRange(e.createPropertyAssignment(r,n),t)}}return t}(r):r},t.enableSubstitution(189),t.enableSubstitution(190),function(t){return 280===t.kind?function(t){return e.createBundle(t.sourceFiles.map(E),e.mapDefined(t.prepends,function(t){return 282===t.kind?e.createUnparsedSourceFile(t.javascriptText,t.javascriptMapPath,t.javascriptMapText):t}))}(t):E(t)};function E(n){if(n.isDeclarationFile)return n;r=n;var i=N(n,j);return e.addEmitHelpers(i,t.readEmitHelpers()),r=void 0,i}function N(t,r){var n=u,i=l,a=d;!function(t){switch(t.kind){case 279:case 246:case 245:case 218:u=t,l=void 0,d=void 0;break;case 240:case 239:if(e.hasModifier(t,2))break;t.name?Te(t):e.Debug.assert(240===t.kind||e.hasModifier(t,512)),e.isClassDeclaration(t)&&(l=t)}}(t);var o=r(t);return u!==n&&(d=a),u=n,l=i,o}function A(e){return N(e,w)}function w(r){return 1&r.transformFlags?B(r):2&r.transformFlags?e.visitEachChild(r,A,t):r}function P(e){return N(e,F)}function F(r){switch(r.kind){case 249:case 248:case 254:case 255:return function(r){if(e.getParseTreeNode(r)!==r)return 2&r.transformFlags?e.visitEachChild(r,A,t):r;switch(r.kind){case 249:return function(t){if(!t.importClause)return t;var r=e.visitNode(t.importClause,we,e.isImportClause);return r?e.updateImportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}(r);case 248:return Oe(r);case 254:return function(r){return b.isValueAliasDeclaration(r)?e.visitEachChild(r,A,t):void 0}(r);case 255:return function(t){if(!t.exportClause)return x.isolatedModules||b.moduleExportsSomeValue(t.moduleSpecifier)?t:void 0;if(b.isValueAliasDeclaration(t)){var r=e.visitNode(t.exportClause,Ie,e.isNamedExports);return r?e.updateExportDeclaration(t,void 0,void 0,r,t.moduleSpecifier):void 0}}(r);default:e.Debug.fail("Unhandled ellided statement")}}(r);default:return w(r)}}function I(e){return N(e,M)}function M(r){if(255!==r.kind&&249!==r.kind&&250!==r.kind&&(248!==r.kind||259!==r.moduleReference.kind))return 1&r.transformFlags||e.hasModifier(r,1)?B(r):2&r.transformFlags?e.visitEachChild(r,A,t):r}function O(e){return N(e,L)}function L(t){switch(t.kind){case 157:return;case 154:case 162:case 158:case 159:case 156:return w(t);case 217:return t;default:return e.Debug.failBadSyntaxKind(t)}}function R(t){if(!(2270&e.modifierToFlag(t.kind)||a&&85===t.kind))return t}function B(n){if(e.hasModifier(n,2)&&e.isStatement(n))return e.createNotEmittedStatement(n);switch(n.kind){case 85:case 80:return a?void 0:n;case 115:case 113:case 114:case 118:case 77:case 125:case 133:case 169:case 170:case 171:case 172:case 168:case 163:case 150:case 120:case 143:case 123:case 138:case 135:case 132:case 106:case 139:case 166:case 165:case 167:case 164:case 173:case 174:case 175:case 177:case 178:case 179:case 180:case 181:case 182:case 162:case 152:case 242:return;case 154:return function(t){var r=ve(t.name,e.some(t.decorators)||!!t.initializer,!0);r&&!he(r)&&(m||(m=[])).push(r)}(n);case 247:return;case 157:return function(r){if(xe(r))return e.updateConstructor(r,e.visitNodes(r.decorators,A,e.isDecorator),e.visitNodes(r.modifiers,A,e.isModifier),e.visitParameterList(r.parameters,A,t),e.visitFunctionBody(r.body,A,t))}(n);case 241:return e.createNotEmittedStatement(n);case 240:return function(n){var a=m;m=void 0;var o=K(n,!0),s=function(t,r){var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);return i&&96!==e.skipOuterExpressions(i.expression).kind&&(n|=64),function(t){if(t.decorators&&t.decorators.length>0)return!0;var r=e.getFirstConstructorWithBody(t);return!!r&&e.forEach(r.parameters,z)}(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),Le(t)?n|=8:function(t){return Re(t)&&e.hasModifier(t,512)}(t)?n|=32:Be(t)&&(n|=16),D<=1&&7&n&&(n|=128),n}(n,o);128&s&&t.startLexicalEnvironment();var c=n.name||(5&s?e.getGeneratedNameForNode(n):void 0),u=2&s?function(t,r,n){var i=e.moveRangePastDecorators(t),a=function(t){if(16777216&b.getNodeCheckFlags(t)){Ve();var r=e.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return f[e.getOriginalNodeId(t)]=r,v(r),r}}(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,A,e.isHeritageClause),c=J(t,0!=(64&n)),u=e.createClassExpression(void 0,r,void 0,s,c);e.setOriginalNode(u,t),e.setTextRange(u,i);var l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,u):u)],1));return e.setOriginalNode(l,t),e.setTextRange(l,i),e.setCommentRange(l,t),l}(n,c,s):function(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,R,e.isModifier),a=e.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,A,e.isHeritageClause),J(t,0!=(64&n))),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(n,c,s),l=[u];if(e.some(m)&&l.push(e.createExpressionStatement(e.inlineExpressions(m))),m=a,1&s&&G(l,o,128&s?e.getInternalName(n):e.getLocalName(n)),te(l,n,!1),te(l,n,!0),function(r,n){var a=function(r){var n=function(t){var r=t.decorators,n=Z(e.getFirstConstructorWithBody(t));if(r||n)return{decorators:r,parameters:n}}(r),a=ee(r,r,n);if(a){var o=f&&f[e.getOriginalNodeId(r)],s=e.getLocalName(r,!1,!0),c=i(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}}(n);a&&r.push(e.setOriginalNode(e.createExpressionStatement(a),n))}(l,n),128&s){var d=e.createTokenRange(e.skipTrivia(r.text,n.members.end),19),_=e.getInternalName(n),p=e.createPartiallyEmittedExpression(_);p.end=d.end,e.setEmitFlags(p,1536);var g=e.createReturn(p);g.pos=d.pos,e.setEmitFlags(g,1920),l.push(g),e.addStatementsAfterPrologue(l,t.endLexicalEnvironment());var h=e.createImmediatelyInvokedArrowFunction(l);e.setEmitFlags(h,33554432);var y=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,h)]));e.setOriginalNode(y,n),e.setCommentRange(y,n),e.setSourceMapRange(y,e.moveRangePastDecorators(n)),e.startOnNewLine(y),l=[y]}return 8&s?ze(l,n):(128&s||2&s)&&(32&s?l.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&s&&l.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0)))),l.length>1&&(l.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(u,4194304|e.getEmitFlags(u))),e.singleOrMany(l)}(n);case 209:return function(t){var r=m;m=void 0;var n=K(t,!0),i=e.visitNodes(t.heritageClauses,A,e.isHeritageClause),a=J(t,e.some(i,function(e){return 86===e.token})),o=e.createClassExpression(void 0,t.name,void 0,i,a);if(e.setOriginalNode(o,t),e.setTextRange(o,t),e.some(n)||e.some(m)){var s=[],c=16777216&b.getNodeCheckFlags(t),u=e.createTempVariable(v,!!c);if(c){Ve();var l=e.getSynthesizedClone(u);l.autoGenerateFlags&=-9,f[e.getOriginalNodeId(t)]=l}return e.setEmitFlags(o,65536|e.getEmitFlags(o)),s.push(e.startOnNewLine(e.createAssignment(u,o))),e.addRange(s,e.map(m,e.startOnNewLine)),m=r,e.addRange(s,function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=X(o,r);e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),n.push(s)}return n}(n,u)),s.push(e.startOnNewLine(u)),e.inlineExpressions(s)}return m=r,o}(n);case 273:return function(t){if(86===t.token){var r=e.visitNodes(t.types,A,e.isExpressionWithTypeArguments,0,1);return e.setTextRange(e.createHeritageClause(86,r),t)}}(n);case 211:return function(t){return e.updateExpressionWithTypeArguments(t,void 0,e.visitNode(t.expression,A,e.isLeftHandSideExpression))}(n);case 156:return function(r){if(xe(r)){var n=e.updateMethod(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),r.asteriskToken,be(r),void 0,void 0,e.visitParameterList(r.parameters,A,t),void 0,e.visitFunctionBody(r.body,A,t));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(n);case 158:return function(r){if(Se(r)){var n=e.updateGetAccessor(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),be(r),e.visitParameterList(r.parameters,A,t),void 0,e.visitFunctionBody(r.body,A,t)||e.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(n);case 159:return function(r){if(Se(r)){var n=e.updateSetAccessor(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),be(r),e.visitParameterList(r.parameters,A,t),e.visitFunctionBody(r.body,A,t)||e.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(n);case 239:return function(r){if(!xe(r))return e.createNotEmittedStatement(r);var n=e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,A,t),void 0,e.visitFunctionBody(r.body,A,t)||e.createBlock([]));if(Le(r)){var i=[n];return ze(i,r),i}return n}(n);case 196:return function(r){return xe(r)?e.updateFunctionExpression(r,e.visitNodes(r.modifiers,R,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,A,t),void 0,e.visitFunctionBody(r.body,A,t)||e.createBlock([])):e.createOmittedExpression()}(n);case 197:return function(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,R,e.isModifier),void 0,e.visitParameterList(r.parameters,A,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,A,t))}(n);case 151:return function(t){if(!e.parameterIsThisKeyword(t)){var r=e.createParameter(void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,A,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,A,e.isExpression));return e.setOriginalNode(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32),r}}(n);case 195:return function(n){var i=e.skipOuterExpressions(n.expression,-3);if(e.isAssertionExpression(i)){var a=e.visitNode(n.expression,A,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(a,r))?e.updateParen(n,a):e.createPartiallyEmittedExpression(a,n)}return e.visitEachChild(n,A,t)}(n);case 194:case 212:return function(t){var r=e.visitNode(t.expression,A,e.isExpression);return e.createPartiallyEmittedExpression(r,t)}(n);case 191:return function(t){return e.updateCall(t,e.visitNode(t.expression,A,e.isExpression),void 0,e.visitNodes(t.arguments,A,e.isExpression))}(n);case 192:return function(t){return e.updateNew(t,e.visitNode(t.expression,A,e.isExpression),void 0,e.visitNodes(t.arguments,A,e.isExpression))}(n);case 193:return function(t){return e.updateTaggedTemplate(t,e.visitNode(t.tag,A,e.isExpression),void 0,e.visitNode(t.template,A,e.isExpression))}(n);case 213:return function(t){var r=e.visitNode(t.expression,A,e.isLeftHandSideExpression);return e.createPartiallyEmittedExpression(r,t)}(n);case 243:return function(t){if(function(t){return!e.isEnumConst(t)||x.preserveConstEnums||x.isolatedModules}(t)){var n=[],i=2,a=Ne(n,t);a&&(k===e.ModuleKind.System&&u===r||(i|=512));var o=qe(t),c=Ke(t),l=e.hasModifier(t,1)?e.getExternalModuleOrNamespaceExportName(s,t,!1,!0):e.getLocalName(t,!1,!0),d=e.createLogicalOr(l,e.createAssignment(l,e.createObjectLiteral()));if(Ce(t)){var _=e.getLocalName(t,!1,!0);d=e.createAssignment(_,d)}var f=e.createExpressionStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,o)],void 0,function(t,r){var n=s;s=r;var i=[];g();var a=e.map(t.members,ke);return e.addStatementsAfterPrologue(i,y()),e.addRange(i,a),s=n,e.createBlock(e.setTextRange(e.createNodeArray(i),t.members),!0)}(t,c)),void 0,[d]));return e.setOriginalNode(f,t),a&&(e.setSyntheticLeadingComments(f,void 0),e.setSyntheticTrailingComments(f,void 0)),e.setTextRange(f,t),e.addEmitFlags(f,i),n.push(f),n.push(e.createEndOfDeclarationMarker(t)),n}}(n);case 219:return function(r){if(Le(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(e.createExpressionStatement(e.inlineExpressions(e.map(n,De))),r)}return e.visitEachChild(r,A,t)}(n);case 237:return function(t){return e.updateVariableDeclaration(t,e.visitNode(t.name,A,e.isBindingName),void 0,e.visitNode(t.initializer,A,e.isExpression))}(n);case 244:return Ae(n);case 248:return Oe(n);default:return e.Debug.failBadSyntaxKind(n)}}function j(r){var n=e.getStrictOptionValue(x,"alwaysStrict")&&!(e.isExternalModule(r)&&k>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return e.updateSourceFileNode(r,e.visitLexicalEnvironment(r.statements,P,t,0,n))}function z(e){return void 0!==e.decorators&&e.decorators.length>0}function J(r,n){var i=[],a=function(r,n){var i=e.getFirstConstructorWithBody(r),a=e.forEach(r.members,W),o=i&&4096&i.transformFlags&&e.forEach(i.parameters,U);if(!a&&!o)return e.visitEachChild(i,A,t);var s=function(r){return e.visitParameterList(r&&r.parameters,A,t)||[]}(i),c=function(t,r,n){var i=[],a=0;if(h(),r){a=function(t,r){if(t.body){var n=t.body.statements,i=e.addPrologue(r,n,!1,A);if(i===n.length)return i;var a=n[i];return 221===a.kind&&e.isSuperCall(a.expression)?(r.push(e.visitNode(a,A,e.isStatement)),i+1):i}return 0}(r,i);var o=function(t){return e.filter(t.parameters,U)}(r);e.addRange(i,e.map(o,q))}else n&&i.push(e.createExpressionStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));var s=K(t,!1);return G(i,s,e.createThis()),r&&e.addRange(i,e.visitNodes(r.body.statements,A,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,y()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),r?r.body.statements:t.members),!0),r?r.body:void 0)}(r,i,n);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),i||r),i))}(r,n);return a&&i.push(a),e.addRange(i,e.visitNodes(r.members,O,e.isClassElement)),e.setTextRange(e.createNodeArray(i),r.members)}function U(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function q(t){e.Debug.assert(e.isIdentifier(t.name));var r=t.name,n=e.getMutableClone(r);e.setEmitFlags(n,1584);var i=e.getMutableClone(r);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setEmitFlags(e.setTextRange(e.createExpressionStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),n),t.name),i)),e.moveRangePos(t,-1)),1536))}function K(t,r){return e.filter(t.members,r?V:W)}function V(e){return H(e,!0)}function W(e){return H(e,!1)}function H(t,r){return 154===t.kind&&r===e.hasModifier(t,32)&&void 0!==t.initializer}function G(t,r,n){for(var i=0,a=r;i<a.length;i++){var o=a[i],s=e.createExpressionStatement(X(o,n));e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),t.push(s)}}function X(t,r){var n=e.isComputedPropertyName(t.name)&&!he(t.name.expression)?e.updateComputedPropertyName(t.name,e.getGeneratedNameForNode(t.name)):t.name,i=e.visitNode(t.initializer,A,e.isExpression),a=e.createMemberAccessForPropertyName(r,n,n);return e.createAssignment(a,i)}function Q(t,r){return e.filter(t.members,r?function(e){return Y(e,!0,t)}:function(e){return Y(e,!1,t)})}function Y(t,r,n){return e.nodeOrChildIsDecorated(t,n)&&r===e.hasModifier(t,32)}function Z(e){var t;if(e)for(var r=e.parameters,n=0;n<r.length;n++){var i=r[n];(t||i.decorators)&&(t||(t=new Array(r.length)),t[n]=i.decorators)}return t}function $(t,r){switch(r.kind){case 158:case 159:return function(t,r){if(r.body){var n=e.getAllAccessorDeclarations(t.members,r),i=n.firstAccessor,a=n.secondAccessor,o=n.setAccessor,s=i.decorators?i:a&&a.decorators?a:void 0;if(s&&r===s){var c=s.decorators,u=Z(o);if(c||u)return{decorators:c,parameters:u}}}}(t,r);case 156:return function(e){if(e.body){var t=e.decorators,r=Z(e);if(t||r)return{decorators:t,parameters:r}}}(r);case 154:return function(e){var t=e.decorators;if(t)return{decorators:t}}(r);default:return}}function ee(r,i,a){if(a){var s=[];return e.addRange(s,e.map(a.decorators,ne)),e.addRange(s,e.flatMap(a.parameters,ie)),function(r,i,a){n?function(r,n,i){if(x.emitDecoratorMetadata){var a=void 0;ae(r)&&(a||(a=[])).push(e.createPropertyAssignment("type",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(37),ce(r)))),se(r)&&(a||(a=[])).push(e.createPropertyAssignment("paramTypes",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(37),ue(r,n)))),oe(r)&&(a||(a=[])).push(e.createPropertyAssignment("returnType",e.createArrowFunction(void 0,void 0,[],void 0,e.createToken(37),le(r)))),a&&i.push(o(t,"design:typeinfo",e.createObjectLiteral(a,!0)))}}(r,i,a):function(e,r,n){x.emitDecoratorMetadata&&(ae(e)&&n.push(o(t,"design:type",ce(e))),se(e)&&n.push(o(t,"design:paramtypes",ue(e,r))),oe(e)&&n.push(o(t,"design:returntype",le(e))))}(r,i,a)}(r,i,s),s}}function te(t,r,n){e.addRange(t,e.map(function(e,t){for(var r,n=Q(e,t),i=0,a=n;i<a.length;i++){var o=a[i],s=re(e,o);s&&(r?r.push(s):r=[s])}return r}(r,n),je))}function re(r,n){var a=ee(n,r,$(r,n));if(a){var o=function(t,r){return e.hasModifier(r,32)?e.getDeclarationName(t):function(t){return e.createPropertyAccess(e.getDeclarationName(t),"prototype")}(t)}(r,n),s=ye(n,!0),c=D>0?154===n.kind?e.createVoidZero():e.createNull():void 0,u=i(t,a,o,s,c,e.moveRangePastDecorators(n));return e.setEmitFlags(u,1536),u}}function ne(t){return e.visitNode(t.expression,A,e.isExpression)}function ie(r,n){var i;if(r){i=[];for(var a=0,o=r;a<o.length;a++){var s=o[a],u=c(t,ne(s),n,s.expression);e.setEmitFlags(u,1536),i.push(u)}}return i}function ae(e){var t=e.kind;return 156===t||158===t||159===t||154===t}function oe(e){return 156===e.kind}function se(t){switch(t.kind){case 240:case 209:return void 0!==e.getFirstConstructorWithBody(t);case 156:case 158:case 159:return!0}return!1}function ce(t){switch(t.kind){case 154:case 151:return de(t.type);case 159:case 158:return de(function(t){var r=b.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)}(t));case 240:case 209:case 156:return e.createIdentifier("Function");default:return e.createVoidZero()}}function ue(t,r){var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(n)for(var a=function(t,r){if(r&&158===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters}(n,r),o=a.length,s=0;s<o;s++){var c=a[s];0===s&&e.isIdentifier(c.name)&&"this"===c.name.escapedText||(c.dotDotDotToken?i.push(de(e.getRestParameterElementType(c.type))):i.push(ce(c)))}return e.createArrayLiteral(i)}function le(t){return e.isFunctionLike(t)&&t.type?de(t.type):e.isAsyncFunction(t)?e.createIdentifier("Promise"):e.createVoidZero()}function de(t){if(void 0===t)return e.createIdentifier("Object");switch(t.kind){case 106:case 141:case 96:case 132:return e.createVoidZero();case 177:return de(t.type);case 165:case 166:return e.createIdentifier("Function");case 169:case 170:return e.createIdentifier("Array");case 163:case 123:return e.createIdentifier("Boolean");case 138:return e.createIdentifier("String");case 136:return e.createIdentifier("Object");case 182:switch(t.literal.kind){case 10:return e.createIdentifier("String");case 8:return e.createIdentifier("Number");case 9:return ge();case 102:case 87:return e.createIdentifier("Boolean");default:return e.Debug.failBadSyntaxKind(t.literal)}case 135:return e.createIdentifier("Number");case 146:return ge();case 139:return D<2?me():e.createIdentifier("Symbol");case 164:return function(t){var r=b.getTypeReferenceSerializationKind(t.typeName,l||u);switch(r){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(t,function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&(t.parent.trueType===t||t.parent.falseType===t)}))return e.createIdentifier("Object");var n=function t(r){if(72===r.kind){var n=pe(r);return fe(n,n)}if(72===r.left.kind)return fe(pe(r.left),pe(r));var i=t(r.left),a=e.createTempVariable(v);return e.createLogicalAnd(e.createLogicalAnd(i.left,e.createStrictInequality(e.createAssignment(a,i.right),e.createVoidZero())),e.createPropertyAccess(a,r.right))}(t.typeName),i=e.createTempVariable(v);return e.createConditional(e.createTypeCheck(e.createAssignment(i,n),"function"),i,e.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return pe(t.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return e.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return ge();case e.TypeReferenceSerializationKind.BooleanType:return e.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return e.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return e.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return e.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return D<2?me():e.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return e.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return e.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return e.createIdentifier("Object");default:return e.Debug.assertNever(r)}}(t);case 174:case 173:return _e(t.types);case 175:return _e([t.trueType,t.falseType]);case 167:case 179:case 180:case 181:case 168:case 120:case 143:case 178:case 183:break;default:return e.Debug.failBadSyntaxKind(t)}return e.createIdentifier("Object")}function _e(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];177===a.kind;)a=a.type;if(132!==a.kind&&(S||96!==a.kind&&141!==a.kind)){var o=de(a);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return e.createIdentifier("Object")}else r=o}}return r||e.createVoidZero()}function fe(t,r){return e.createLogicalAnd(e.createStrictInequality(e.createTypeOf(t),e.createLiteral("undefined")),r)}function pe(t){switch(t.kind){case 72:var r=e.getMutableClone(t);return r.flags&=-9,r.original=void 0,r.parent=e.getParseTreeNode(u),r;case 148:return function(t){return e.createPropertyAccess(pe(t.left),t.right)}(t)}}function me(){return e.createConditional(e.createTypeCheck(e.createIdentifier("Symbol"),"function"),e.createIdentifier("Symbol"),e.createIdentifier("Object"))}function ge(){return D<6?e.createConditional(e.createTypeCheck(e.createIdentifier("BigInt"),"function"),e.createIdentifier("BigInt"),e.createIdentifier("Object")):e.createIdentifier("BigInt")}function he(t){return!e.isIdentifier(t)&&e.isSimpleCopiableExpression(t)||e.isWellKnownSymbolSyntactically(t)}function ye(t,r){var n=t.name;return e.isComputedPropertyName(n)?r&&!he(n.expression)?e.getGeneratedNameForNode(n):n.expression:e.isIdentifier(n)?e.createLiteral(e.idText(n)):e.getSynthesizedClone(n)}function ve(t,r,n){if(e.isComputedPropertyName(t)){var i=e.visitNode(t.expression,A,e.isExpression),a=e.skipPartiallyEmittedExpressions(i),o=he(a);if(!o&&r){var s=e.getGeneratedNameForNode(t);return v(s),e.createAssignment(s,i)}return n&&(o||e.isIdentifier(a))?void 0:i}}function be(t){var r=t.name,n=ve(r,e.some(t.decorators),!1);return n?(e.some(m)&&(n=e.inlineExpressions(m.concat([n])),m.length=0),e.updateComputedPropertyName(r,n)):r}function xe(t){return!e.nodeIsMissing(t.body)}function Se(t){return!(e.nodeIsMissing(t.body)&&e.hasModifier(t,128))}function De(r){var n=r.name;return e.isBindingPattern(n)?e.flattenDestructuringAssignment(r,A,t,0,!1,Je):e.setTextRange(e.createAssignment(Ue(n),e.visitNode(r.initializer,A,e.isExpression)),r)}function ke(r){var n=ye(r,!1),i=function(r){var n=b.getConstantValue(r);return void 0!==n?e.createLiteral(n):(0==(8&_)&&(_|=8,t.enableSubstitution(72)),r.initializer?e.visitNode(r.initializer,A,e.isExpression):e.createVoidZero())}(r),a=e.createAssignment(e.createElementAccess(s,n),i),o=10===i.kind?a:e.createAssignment(e.createElementAccess(s,a),n);return e.setTextRange(e.createExpressionStatement(e.setTextRange(o,r)),r)}function Ce(t){return Le(t)||Re(t)&&k!==e.ModuleKind.ES2015&&k!==e.ModuleKind.ESNext&&k!==e.ModuleKind.System}function Te(t){d||(d=e.createUnderscoreEscapedMap());var r=Ee(t);d.has(r)||d.set(r,t)}function Ee(t){return e.Debug.assertNode(t.name,e.isIdentifier),t.name.escapedText}function Ne(t,r){var n=e.createVariableStatement(e.visitNodes(r.modifiers,R,e.isModifier),e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,!1,!0))],279===u.kind?0:1));if(e.setOriginalNode(n,r),Te(r),function(e){if(d){var t=Ee(e);return d.get(t)===e}return!0}(r))return 243===r.kind?e.setSourceMapRange(n.declarationList,r):e.setSourceMapRange(n,r),e.setCommentRange(n,r),e.addEmitFlags(n,4195328),t.push(n),!0;var i=e.createMergeDeclarationMarker(n);return e.setEmitFlags(i,4195840),t.push(i),!1}function Ae(n){if(!function(t){return e.isInstantiatedModule(t,!!x.preserveConstEnums||!!x.isolatedModules)}(n))return e.createNotEmittedStatement(n);e.Debug.assertNode(n.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&_)&&(_|=2,t.enableSubstitution(72),t.enableSubstitution(276),t.enableEmitNotification(244));var i=[],o=2,c=Ne(i,n);c&&(k===e.ModuleKind.System&&u===r||(o|=512));var l=qe(n),f=Ke(n),p=e.hasModifier(n,1)?e.getExternalModuleOrNamespaceExportName(s,n,!1,!0):e.getLocalName(n,!1,!0),m=e.createLogicalOr(p,e.createAssignment(p,e.createObjectLiteral()));if(Ce(n)){var h=e.getLocalName(n,!1,!0);m=e.createAssignment(h,m)}var v=e.createExpressionStatement(e.createCall(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,l)],void 0,function(t,r){var n=s,i=a,o=d;s=r,a=t,d=void 0;var c,u,l=[];g();var _=t.body;if(245===_.kind)N(_,function(t){return e.addRange(l,e.visitNodes(t.statements,I,e.isStatement))}),c=_.statements,u=_;else{var f=Ae(_);f&&(e.isArray(f)?e.addRange(l,f):l.push(f));var p=function e(t){if(244===t.body.kind){var r=e(t.body);return r||t.body}}(t).body;c=e.moveRangePos(p.statements,-1)}e.addStatementsAfterPrologue(l,y()),s=n,a=i,d=o;var m=e.createBlock(e.setTextRange(e.createNodeArray(l),c),!0);return e.setTextRange(m,u),245!==_.kind&&e.setEmitFlags(m,1536|e.getEmitFlags(m)),m}(n,f)),void 0,[m]));return e.setOriginalNode(v,n),c&&(e.setSyntheticLeadingComments(v,void 0),e.setSyntheticTrailingComments(v,void 0)),e.setTextRange(v,n),e.addEmitFlags(v,o),i.push(v),i.push(e.createEndOfDeclarationMarker(n)),i}function we(t){var r=b.isReferencedAliasDeclaration(t)?t.name:void 0,n=e.visitNode(t.namedBindings,Pe,e.isNamedImportBindings);return r||n?e.updateImportClause(t,r,n):void 0}function Pe(t){if(251===t.kind)return b.isReferencedAliasDeclaration(t)?t:void 0;var r=e.visitNodes(t.elements,Fe,e.isImportSpecifier);return e.some(r)?e.updateNamedImports(t,r):void 0}function Fe(e){return b.isReferencedAliasDeclaration(e)?e:void 0}function Ie(t){var r=e.visitNodes(t.elements,Me,e.isExportSpecifier);return e.some(r)?e.updateNamedExports(t,r):void 0}function Me(e){return b.isValueAliasDeclaration(e)?e:void 0}function Oe(n){if(e.isExternalModuleImportEqualsDeclaration(n))return b.isReferencedAliasDeclaration(n)?e.visitEachChild(n,A,t):void 0;if(function(t){return b.isReferencedAliasDeclaration(t)||!e.isExternalModule(r)&&b.isTopLevelValueImportEqualsWithEntityName(t)}(n)){var i,a,o,c=e.createExpressionFromEntityName(n.moduleReference);return e.setEmitFlags(c,3584),Be(n)||!Le(n)?e.setOriginalNode(e.setTextRange(e.createVariableStatement(e.visitNodes(n.modifiers,R,e.isModifier),e.createVariableDeclarationList([e.setOriginalNode(e.createVariableDeclaration(n.name,void 0,c),n)])),n),n):e.setOriginalNode((i=n.name,a=c,o=n,e.setTextRange(e.createExpressionStatement(e.createAssignment(e.getNamespaceMemberName(s,i,!1,!0),a)),o)),n)}}function Le(t){return void 0!==a&&e.hasModifier(t,1)}function Re(t){return void 0===a&&e.hasModifier(t,1)}function Be(t){return Re(t)&&!e.hasModifier(t,512)}function je(t){return e.createExpressionStatement(t)}function ze(t,r){var n=e.createAssignment(e.getExternalModuleOrNamespaceExportName(s,r,!1,!0),e.getLocalName(r));e.setSourceMapRange(n,e.createRange(r.name?r.name.pos:r.pos,r.end));var i=e.createExpressionStatement(n);e.setSourceMapRange(i,e.createRange(-1,r.end)),t.push(i)}function Je(t,r,n){return e.setTextRange(e.createAssignment(Ue(t),r),n)}function Ue(t){return e.getNamespaceMemberName(s,t,!1,!0)}function qe(t){var r=e.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function Ke(t){return e.getGeneratedNameForNode(t)}function Ve(){0==(1&_)&&(_|=1,t.enableSubstitution(72),f=[])}function We(t){if(_&p&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=b.getReferencedExportContainer(t,!1);if(r&&279!==r.kind&&(2&p&&244===r.kind||8&p&&243===r.kind))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(r),t),t)}}function He(t){var r=function(t){if(!x.isolatedModules)return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?b.getConstantValue(t):void 0}(t);if(void 0!==r){e.setConstantValue(t,r);var n=e.createLiteral(r);if(!x.removeComments){var i=e.isPropertyAccessExpression(t)?e.declarationNameToString(t.name):e.getTextOfNode(t.argumentExpression);e.addSyntheticTrailingComment(n,3," "+i+" ")}return n}return t}};var a={name:"typescript:decorate",scoped:!1,priority:2,text:'\n            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n                else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n                return c > 3 && r && Object.defineProperty(target, key, r), r;\n            };'};function o(t,r,n){return t.requestEmitHelper(s),e.createCall(e.getHelperName("__metadata"),void 0,[e.createLiteral(r),n])}var s={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            };'};function c(t,r,n,i){return t.requestEmitHelper(u),e.setTextRange(e.createCall(e.getHelperName("__param"),void 0,[e.createLiteral(n),r]),i)}var u={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            };"}}(d||(d={})),function(e){var t;function r(t,r,n){var i=0!=(4096&t.getNodeCheckFlags(r)),a=[];return n.forEach(function(t,r){var n=e.unescapeLeadingUnderscores(r),o=[];o.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,e.createPropertyAccess(e.createSuper(),n)))),i&&o.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameter(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(e.createPropertyAccess(e.createSuper(),n),e.createIdentifier("v"))))),a.push(e.createPropertyAssignment(n,e.createObjectLiteral(o)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_super"),void 0,e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteral(a,!0)]))],2))}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformES2017=function(t){var n,a,o,s,c=t.resumeLexicalEnvironment,u=t.endLexicalEnvironment,l=t.hoistVariableDeclaration,d=t.getEmitResolver(),_=t.getCompilerOptions(),f=e.getEmitScriptTarget(_),p=0,m=[],g=t.onEmitNode,h=t.onSubstituteNode;return t.onEmitNode=function(t,r,i){if(1&n&&function(e){var t=e.kind;return 240===t||157===t||156===t||158===t||159===t}(r)){var a=6144&d.getNodeCheckFlags(r);if(a!==p){var o=p;return p=a,g(t,r,i),void(p=o)}}else if(n&&m[e.getNodeId(r)]){var o=p;return p=0,g(t,r,i),void(p=o)}g(t,r,i)},t.onSubstituteNode=function(t,r){return r=h(t,r),1===t&&p?function(t){switch(t.kind){case 189:return N(t);case 190:return A(t);case 191:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?N(r):A(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(r):r},e.chainBundle(function(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,y,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function y(r){if(0==(16&r.transformFlags))return r;switch(r.kind){case 121:return;case 201:return function(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,y,e.isExpression)),t),t)}(r);case 156:return function(r){return e.updateMethod(r,void 0,e.visitNodes(r.modifiers,y,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,y,t),void 0,2&e.getFunctionFlags(r)?T(r):e.visitFunctionBody(r.body,y,t))}(r);case 239:return function(r){return e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,y,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,y,t),void 0,2&e.getFunctionFlags(r)?T(r):e.visitFunctionBody(r.body,y,t))}(r);case 196:return function(r){return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,y,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,y,t),void 0,2&e.getFunctionFlags(r)?T(r):e.visitFunctionBody(r.body,y,t))}(r);case 197:return function(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,y,e.isModifier),void 0,e.visitParameterList(r.parameters,y,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?T(r):e.visitFunctionBody(r.body,y,t))}(r);case 189:return o&&e.isPropertyAccessExpression(r)&&98===r.expression.kind&&o.set(r.name.escapedText,!0),e.visitEachChild(r,y,t);case 190:return o&&98===r.expression.kind&&(s=!0),e.visitEachChild(r,y,t);default:return e.visitEachChild(r,y,t)}}function v(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 219:return function(r){if(x(r.declarationList)){var n=S(r.declarationList,!1);return n?e.createExpressionStatement(n):void 0}return e.visitEachChild(r,y,t)}(r);case 225:return function(t){var r=t.initializer;return e.updateFor(t,x(r)?S(r,!1):e.visitNode(t.initializer,y,e.isForInitializer),e.visitNode(t.condition,y,e.isExpression),e.visitNode(t.incrementor,y,e.isExpression),e.visitNode(t.statement,v,e.isStatement,e.liftToBlock))}(r);case 226:return function(t){return e.updateForIn(t,x(t.initializer)?S(t.initializer,!0):e.visitNode(t.initializer,y,e.isForInitializer),e.visitNode(t.expression,y,e.isExpression),e.visitNode(t.statement,v,e.isStatement,e.liftToBlock))}(r);case 227:return function(t){return e.updateForOf(t,e.visitNode(t.awaitModifier,y,e.isToken),x(t.initializer)?S(t.initializer,!0):e.visitNode(t.initializer,y,e.isForInitializer),e.visitNode(t.expression,y,e.isExpression),e.visitNode(t.statement,v,e.isStatement,e.liftToBlock))}(r);case 274:return function(r){var n,i=e.createUnderscoreEscapedMap();if(b(r.variableDeclaration,i),i.forEach(function(t,r){a.has(r)&&(n||(n=e.cloneMap(a)),n.delete(r))}),n){var o=a;a=n;var s=e.visitEachChild(r,v,t);return a=o,s}return e.visitEachChild(r,v,t)}(r);case 218:case 232:case 246:case 271:case 272:case 235:case 223:case 224:case 222:case 231:case 233:return e.visitEachChild(r,v,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return y(r)}function b(t,r){var n=t.name;if(e.isIdentifier(n))r.set(n.escapedText,!0);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||b(o,r)}}function x(t){return!!t&&e.isVariableDeclarationList(t)&&!(3&t.flags)&&t.declarations.some(C)}function S(t,r){!function(t){e.forEach(t.declarations,D)}(t);var n=e.getInitializedVariables(t);return 0===n.length?r?e.visitNode(e.convertToAssignmentElementTarget(t.declarations[0].name),y,e.isExpression):void 0:e.inlineExpressions(e.map(n,k))}function D(t){var r=t.name;if(e.isIdentifier(r))l(r);else for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||D(a)}}function k(t){var r=e.setSourceMapRange(e.createAssignment(e.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(r,y,e.isExpression)}function C(t){var r=t.name;if(e.isIdentifier(r))return a.has(r.escapedText);for(var n=0,i=r.elements;n<i.length;n++){var o=i[n];if(!e.isOmittedExpression(o)&&C(o))return!0}return!1}function T(l){c();var _=e.getOriginalNode(l,e.isFunctionLike).type,p=f<2?function(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=d.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}}(_):void 0,g=197===l.kind,h=0!=(8192&d.getNodeCheckFlags(l)),v=a;a=e.createUnderscoreEscapedMap();for(var x=0,S=l.parameters;x<S.length;x++)b(S[x],a);var D,k=o,C=s;if(o=e.createUnderscoreEscapedMap(),s=!1,g){var T=i(t,h,p,E(l.body)),N=u();e.some(N)?(I=e.convertToFunctionBody(T),D=e.updateBlock(I,e.setTextRange(e.createNodeArray(e.concatenate(N,I.statements)),I.statements))):D=T}else{var A=[],w=e.addPrologue(A,l.body.statements,!1,y);A.push(e.createReturn(i(t,h,p,E(l.body,w)))),e.addStatementsAfterPrologue(A,u());var P=f>=2&&6144&d.getNodeCheckFlags(l);if(P){0==(1&n)&&(n|=1,t.enableSubstitution(191),t.enableSubstitution(189),t.enableSubstitution(190),t.enableEmitNotification(240),t.enableEmitNotification(156),t.enableEmitNotification(158),t.enableEmitNotification(159),t.enableEmitNotification(157),t.enableEmitNotification(219));var F=r(d,l,o);m[e.getNodeId(F)]=!0,e.addStatementsAfterPrologue(A,[F])}var I=e.createBlock(A,!0);e.setTextRange(I,l.body),P&&s&&(4096&d.getNodeCheckFlags(l)?e.addEmitHelper(I,e.advancedAsyncSuperHelper):2048&d.getNodeCheckFlags(l)&&e.addEmitHelper(I,e.asyncSuperHelper)),D=I}return a=v,o=k,s=C,D}function E(t,r){return e.isBlock(t)?e.updateBlock(t,e.visitNodes(t.statements,v,e.isStatement,r)):e.convertToFunctionBody(e.visitNode(t,v,e.isConciseBody))}function N(t){return 98===t.expression.kind?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),t.name),t):t}function A(t){return 98===t.expression.kind?(r=t.argumentExpression,n=t,4096&p?e.setTextRange(e.createPropertyAccess(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[r]),"value"),n):e.setTextRange(e.createCall(e.createFileLevelUniqueName("_superIndex"),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=r;var n={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            };'};function i(t,r,i,a){t.requestEmitHelper(n);var o=e.createFunctionExpression(void 0,e.createToken(40),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),r?e.createIdentifier("arguments"):e.createVoidZero(),i?e.createExpressionFromEntityName(i):e.createVoidZero(),o])}e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:e.helperString(u(["\n            const "," = name => super[name];"],["\n            const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:e.helperString(u(["\n            const "," = (function (geti, seti) {\n                const cache = Object.create(null);\n                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n            })(name => super[name], (name, value) => super[name] = value);"],["\n            const "," = (function (geti, seti) {\n                const cache = Object.create(null);\n                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n            })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")}}(d||(d={})),function(e){var t;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformESNext=function(t){var r=t.resumeLexicalEnvironment,c=t.endLexicalEnvironment,l=t.hoistVariableDeclaration,d=t.getEmitResolver(),_=t.getCompilerOptions(),f=e.getEmitScriptTarget(_),p=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&m&&function(e){var t=e.kind;return 240===t||157===t||156===t||158===t||159===t}(r)){var i=6144&d.getNodeCheckFlags(r);if(i!==b){var a=b;return b=i,p(t,r,n),void(b=a)}}else if(m&&x[e.getNodeId(r)]){var a=b;return b=0,p(t,r,n),void(b=a)}p(t,r,n)};var m,g,h=t.onSubstituteNode;t.onSubstituteNode=function(t,r){return r=h(t,r),1===t&&b?function(t){switch(t.kind){case 189:return P(t);case 190:return F(t);case 191:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?P(r):F(r);return e.createCall(e.createPropertyAccess(n,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(r):r};var y,v,b=0,x=[];return e.chainBundle(function(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,S,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function S(e){return C(e,!1)}function D(e){return C(e,!0)}function k(e){if(121!==e.kind)return e}function C(r,o){if(0==(8&r.transformFlags))return r;switch(r.kind){case 201:return function(r){return 2&g&&1&g?e.setOriginalNode(e.setTextRange(e.createYield(a(t,e.visitNode(r.expression,S,e.isExpression))),r),r):e.visitEachChild(r,S,t)}(r);case 207:return function(r){if(2&g&&1&g){if(r.asteriskToken){var n=e.visitNode(r.expression,S,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(a(t,e.updateYield(r,r.asteriskToken,function(t,r,n){return t.requestEmitHelper(i),t.requestEmitHelper(s),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[r]),n)}(t,u(t,n,n),n)))),r),r)}return e.setOriginalNode(e.setTextRange(e.createYield(E(r.expression?e.visitNode(r.expression,S,e.isExpression):e.createVoidZero())),r),r)}return e.visitEachChild(r,S,t)}(r);case 230:return function(r){return 2&g&&1&g?e.updateReturn(r,E(r.expression?e.visitNode(r.expression,S,e.isExpression):e.createVoidZero())):e.visitEachChild(r,S,t)}(r);case 233:return function(r){if(2&g){var n=e.unwrapInnermostStatementOfLabel(r);return 227===n.kind&&n.awaitModifier?T(n,r):e.restoreEnclosingLabel(e.visitEachChild(n,S,t),r)}return e.visitEachChild(r,S,t)}(r);case 188:return function(r){if(262144&r.transformFlags){var i=function(t){for(var r,n=[],i=0,a=t;i<a.length;i++){var o=a[i];if(277===o.kind){r&&(n.push(e.createObjectLiteral(r)),r=void 0);var s=o.expression;n.push(e.visitNode(s,S,e.isExpression))}else r=e.append(r,275===o.kind?e.createPropertyAssignment(o.name,e.visitNode(o.initializer,S,e.isExpression)):e.visitNode(o,S,e.isObjectLiteralElementLike))}return r&&n.push(e.createObjectLiteral(r)),n}(r.properties);return i.length&&188!==i[0].kind&&i.unshift(e.createObjectLiteral()),n(t,i)}return e.visitEachChild(r,S,t)}(r);case 204:return function(r,n){return e.isDestructuringAssignment(r)&&262144&r.left.transformFlags?e.flattenDestructuringAssignment(r,S,t,1,!n):27===r.operatorToken.kind?e.updateBinary(r,e.visitNode(r.left,D,e.isExpression),e.visitNode(r.right,n?D:S,e.isExpression)):e.visitEachChild(r,S,t)}(r,o);case 237:return function(r){return e.isBindingPattern(r.name)&&262144&r.name.transformFlags?e.flattenDestructuringBinding(r,S,t,1):e.visitEachChild(r,S,t)}(r);case 227:return T(r,void 0);case 225:return function(t){return e.updateFor(t,e.visitNode(t.initializer,D,e.isForInitializer),e.visitNode(t.condition,S,e.isExpression),e.visitNode(t.incrementor,S,e.isExpression),e.visitNode(t.statement,S,e.isStatement))}(r);case 200:return function(r){return e.visitEachChild(r,D,t)}(r);case 157:return function(r){var n=g;g=0;var i=e.updateConstructor(r,void 0,r.modifiers,e.visitParameterList(r.parameters,S,t),A(r));return g=n,i}(r);case 156:return function(r){var n=g;g=e.getFunctionFlags(r);var i=e.updateMethod(r,void 0,1&g?e.visitNodes(r.modifiers,k,e.isModifier):r.modifiers,2&g?void 0:r.asteriskToken,e.visitNode(r.name,S,e.isPropertyName),e.visitNode(void 0,S,e.isToken),void 0,e.visitParameterList(r.parameters,S,t),void 0,2&g&&1&g?N(r):A(r));return g=n,i}(r);case 158:return function(r){var n=g;g=0;var i=e.updateGetAccessor(r,void 0,r.modifiers,e.visitNode(r.name,S,e.isPropertyName),e.visitParameterList(r.parameters,S,t),void 0,A(r));return g=n,i}(r);case 159:return function(r){var n=g;g=0;var i=e.updateSetAccessor(r,void 0,r.modifiers,e.visitNode(r.name,S,e.isPropertyName),e.visitParameterList(r.parameters,S,t),A(r));return g=n,i}(r);case 239:return function(r){var n=g;g=e.getFunctionFlags(r);var i=e.updateFunctionDeclaration(r,void 0,1&g?e.visitNodes(r.modifiers,k,e.isModifier):r.modifiers,2&g?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,S,t),void 0,2&g&&1&g?N(r):A(r));return g=n,i}(r);case 196:return function(r){var n=g;g=e.getFunctionFlags(r);var i=e.updateFunctionExpression(r,1&g?e.visitNodes(r.modifiers,k,e.isModifier):r.modifiers,2&g?void 0:r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,S,t),void 0,2&g&&1&g?N(r):A(r));return g=n,i}(r);case 197:return function(r){var n=g;g=e.getFunctionFlags(r);var i=e.updateArrowFunction(r,r.modifiers,void 0,e.visitParameterList(r.parameters,S,t),void 0,r.equalsGreaterThanToken,A(r));return g=n,i}(r);case 151:return function(r){return 262144&r.transformFlags?e.updateParameter(r,void 0,void 0,r.dotDotDotToken,e.getGeneratedNameForNode(r),void 0,void 0,e.visitNode(r.initializer,S,e.isExpression)):e.visitEachChild(r,S,t)}(r);case 221:return function(r){return e.visitEachChild(r,D,t)}(r);case 195:return function(r,n){return e.visitEachChild(r,n?D:S,t)}(r,o);case 274:return function(r){return r.variableDeclaration?e.visitEachChild(r,S,t):e.updateCatchClause(r,e.createVariableDeclaration(e.createTempVariable(void 0)),e.visitNode(r.block,S,e.isBlock))}(r);case 189:return y&&e.isPropertyAccessExpression(r)&&98===r.expression.kind&&y.set(r.name.escapedText,!0),e.visitEachChild(r,S,t);case 190:return y&&98===r.expression.kind&&(v=!0),e.visitEachChild(r,S,t);default:return e.visitEachChild(r,S,t)}}function T(r,n){return 262144&r.initializer.transformFlags&&(r=function(t){var r=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(r)||e.isAssignmentPattern(r)){var n=void 0,i=void 0,a=e.createTempVariable(void 0),o=[e.createForOfBindingStatement(r,a)];return e.isBlock(t.statement)?(e.addRange(o,t.statement.statements),n=t.statement,i=t.statement.statements):t.statement&&(e.append(o,t.statement),n=t.statement,i=t.statement),e.updateForOf(t,t.awaitModifier,e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a),t.initializer)],1),t.initializer),t.expression,e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),i),!0),n))}return t}(r)),r.awaitModifier?function(r,n){var i=e.visitNode(r.expression,S,e.isExpression),a=e.isIdentifier(i)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0),o=e.isIdentifier(i)?e.getGeneratedNameForNode(a):e.createTempVariable(void 0),s=e.createUniqueName("e"),c=e.getGeneratedNameForNode(s),d=e.createTempVariable(void 0),_=u(t,i,r.expression),f=e.createCall(e.createPropertyAccess(a,"next"),void 0,[]),p=e.createPropertyAccess(o,"done"),m=e.createPropertyAccess(o,"value"),g=e.createFunctionCall(d,a,[]);l(s),l(d);var h=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a,void 0,_),r.expression),e.createVariableDeclaration(o)]),r.expression),2097152),e.createComma(e.createAssignment(o,E(f)),e.createLogicalNot(p)),void 0,function(t,r){var n,i,a=e.createForOfBindingStatement(t.initializer,r),o=[e.visitNode(a,S,e.isStatement)],s=e.visitNode(t.statement,S,e.isStatement);return e.isBlock(s)?(e.addRange(o,s.statements),n=s,i=s.statements):o.push(s),e.setEmitFlags(e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(o),i),!0),n),432)}(r,m)),r),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(h,n)]),e.createCatchClause(e.createVariableDeclaration(c),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(s,e.createObjectLiteral([e.createPropertyAssignment("error",c)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(o,e.createLogicalNot(p)),e.createAssignment(d,e.createPropertyAccess(a,"return"))),e.createExpressionStatement(E(g))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(s,e.createThrow(e.createPropertyAccess(s,"error"))),1)]),1))]))}(r,n):e.restoreEnclosingLabel(e.visitEachChild(r,S,t),n)}function E(r){return 1&g?e.createYield(void 0,a(t,r)):e.createAwait(r)}function N(n){r();var a=[],s=e.addPrologue(a,n.body.statements,!1,S);w(a,n);var u=y,l=v;y=e.createUnderscoreEscapedMap(),v=!1;var _=e.createReturn(function(t,r){return t.requestEmitHelper(i),t.requestEmitHelper(o),(r.emitNode||(r.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),r])}(t,e.createFunctionExpression(void 0,e.createToken(40),n.name&&e.getGeneratedNameForNode(n.name),void 0,[],void 0,e.updateBlock(n.body,e.visitLexicalEnvironment(n.body.statements,S,t,s))))),p=f>=2&&6144&d.getNodeCheckFlags(n);if(p){0==(1&m)&&(m|=1,t.enableSubstitution(191),t.enableSubstitution(189),t.enableSubstitution(190),t.enableEmitNotification(240),t.enableEmitNotification(156),t.enableEmitNotification(158),t.enableEmitNotification(159),t.enableEmitNotification(157),t.enableEmitNotification(219));var g=e.createSuperAccessVariableStatement(d,n,y);x[e.getNodeId(g)]=!0,e.addStatementsAfterPrologue(a,[g])}a.push(_),e.addStatementsAfterPrologue(a,c());var h=e.updateBlock(n.body,a);return p&&v&&(4096&d.getNodeCheckFlags(n)?e.addEmitHelper(h,e.advancedAsyncSuperHelper):2048&d.getNodeCheckFlags(n)&&e.addEmitHelper(h,e.asyncSuperHelper)),y=u,v=l,h}function A(t){r();var n=0,i=[],a=e.visitNode(t.body,S,e.isConciseBody);e.isBlock(a)&&(n=e.addPrologue(i,a.statements,!1,S)),e.addRange(i,w(void 0,t));var o=c();if(n>0||e.some(i)||e.some(o)){var s=e.convertToFunctionBody(a,!0);return e.addStatementsAfterPrologue(i,o),e.addRange(i,s.statements.slice(n)),e.updateBlock(s,e.setTextRange(e.createNodeArray(i),s.statements))}return a}function w(r,n){for(var i=0,a=n.parameters;i<a.length;i++){var o=a[i];if(262144&o.transformFlags){var s=e.getGeneratedNameForNode(o),c=e.flattenDestructuringBinding(o,S,t,1,s,!1,!0);if(e.some(c)){var u=e.createVariableStatement(void 0,e.createVariableDeclarationList(c));e.setEmitFlags(u,1048576),r=e.append(r,u)}}}return r}function P(t){return 98===t.expression.kind?e.setTextRange(e.createPropertyAccess(e.createFileLevelUniqueName("_super"),t.name),t):t}function F(t){return 98===t.expression.kind?(r=t.argumentExpression,n=t,4096&b?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_superIndex"),void 0,[r]),"value"),n):e.setTextRange(e.createCall(e.createIdentifier("_superIndex"),void 0,[r]),n)):t;var r,n}};var r={name:"typescript:assign",scoped:!1,priority:1,text:"\n            var __assign = (this && this.__assign) || function () {\n                __assign = Object.assign || function(t) {\n                    for (var s, i = 1, n = arguments.length; i < n; i++) {\n                        s = arguments[i];\n                        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n                            t[p] = s[p];\n                    }\n                    return t;\n                };\n                return __assign.apply(this, arguments);\n            };"};function n(t,n){return t.getCompilerOptions().target>=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(r),e.createCall(e.getHelperName("__assign"),void 0,n))}e.createAssignHelper=n;var i={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); }"};function a(t,r){return t.requestEmitHelper(i),e.createCall(e.getHelperName("__await"),void 0,[r])}var o={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            };'};var s={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) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n            };'};var c={name:"typescript:asyncValues",scoped:!1,text:'\n            var __asyncValues = (this && this.__asyncValues) || function (o) {\n                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n                var m = o[Symbol.asyncIterator], i;\n                return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n                function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n                function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n            };'};function u(t,r,n){return t.requestEmitHelper(c),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[r]),n)}}(d||(d={})),function(e){e.transformJsx=function(r){var n,i=r.getCompilerOptions();return e.chainBundle(function(t){if(t.isDeclarationFile)return t;n=t;var i=e.visitEachChild(t,a,r);return e.addEmitHelpers(i,r.readEmitHelpers()),i});function a(t){return 4&t.transformFlags?function(t){switch(t.kind){case 260:return s(t,!1);case 261:return c(t,!1);case 264:return u(t,!1);case 270:return m(t);default:return e.visitEachChild(t,a,r)}}(t):t}function o(t){switch(t.kind){case 11:return function(t){var r=function(t){for(var r,n=0,i=-1,a=0;a<t.length;a++){var o=t.charCodeAt(a);e.isLineBreak(o)?(-1!==n&&-1!==i&&(r=f(r,t.substr(n,i-n+1))),n=-1):e.isWhiteSpaceSingleLine(o)||(i=a,-1===n&&(n=a))}return-1!==n?f(r,t.substr(n)):r}(e.getTextOfNode(t,!0));return void 0===r?void 0:e.createLiteral(r)}(t);case 270:return m(t);case 260:return s(t,!0);case 261:return c(t,!0);case 264:return u(t,!0);default:return e.Debug.failBadSyntaxKind(t)}}function s(e,t){return l(e.openingElement,e.children,t,e)}function c(e,t){return l(e,void 0,t,e)}function u(t,a){return function(t,a,s,c){var u=e.createExpressionForJsxFragment(r.getEmitResolver().getJsxFactoryEntity(n),i.reactNamespace,e.mapDefined(a,o),t,c);return s&&e.startOnNewLine(u),u}(t.openingFragment,t.children,a,t)}function l(t,a,s,c){var u,l=function t(r){if(260===r.kind)return t(r.openingElement);var n=r.tagName;return e.isIdentifier(n)&&e.isIntrinsicJsxName(n.escapedText)?e.createLiteral(e.idText(n)):e.createExpressionFromEntityName(n)}(t),f=t.attributes.properties;if(0===f.length)u=e.createNull();else{var p=e.flatten(e.spanMap(f,e.isJsxSpreadAttribute,function(t,r){return r?e.map(t,d):e.createObjectLiteral(e.map(t,_))}));e.isJsxSpreadAttribute(f[0])&&p.unshift(e.createObjectLiteral()),(u=e.singleOrUndefined(p))||(u=e.createAssignHelper(r,p))}var m=e.createExpressionForJsxElement(r.getEmitResolver().getJsxFactoryEntity(n),i.reactNamespace,l,u,e.mapDefined(a,o),t,c);return s&&e.startOnNewLine(m),m}function d(t){return e.visitNode(t.expression,a,e.isExpression)}function _(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:e.createLiteral(n)}(t),i=function(t){if(void 0===t)return e.createTrue();if(10===t.kind){var r=e.createLiteral((i=t.text,((a=p(i))===i?void 0:a)||t.text));return r.singleQuote=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),e.setTextRange(r,t)}return 270===t.kind?void 0===t.expression?e.createTrue():m(t):e.Debug.failBadSyntaxKind(t);var i,a}(t.initializer);return e.createPropertyAssignment(r,i)}function f(e,t){var r=p(t);return void 0===e?r:e+" "+r}function p(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,r,n,i,a,o,s){if(a)return String.fromCharCode(parseInt(a,10));if(o)return String.fromCharCode(parseInt(o,16));var c=t.get(s);return c?String.fromCharCode(c):e})}function m(t){return e.visitNode(t.expression,a,e.isExpression)}};var t=e.createMapFromTemplate({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830})}(d||(d={})),function(e){e.transformES2016=function(t){var r=t.hoistVariableDeclaration;return e.chainBundle(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,n,t)});function n(i){if(0==(32&i.transformFlags))return i;switch(i.kind){case 204:return function(i){switch(i.operatorToken.kind){case 63:return function(t){var i,a,o=e.visitNode(t.left,n,e.isExpression),s=e.visitNode(t.right,n,e.isExpression);if(e.isElementAccessExpression(o)){var c=e.createTempVariable(r),u=e.createTempVariable(r);i=e.setTextRange(e.createElementAccess(e.setTextRange(e.createAssignment(c,o.expression),o.expression),e.setTextRange(e.createAssignment(u,o.argumentExpression),o.argumentExpression)),o),a=e.setTextRange(e.createElementAccess(c,u),o)}else if(e.isPropertyAccessExpression(o)){var c=e.createTempVariable(r);i=e.setTextRange(e.createPropertyAccess(e.setTextRange(e.createAssignment(c,o.expression),o.expression),o.name),o),a=e.setTextRange(e.createPropertyAccess(c,o.name),o)}else i=o,a=o;return e.setTextRange(e.createAssignment(i,e.createMathPow(a,s,t)),t)}(i);case 41:return function(t){var r=e.visitNode(t.left,n,e.isExpression),i=e.visitNode(t.right,n,e.isExpression);return e.createMathPow(r,i,t)}(i);default:return e.visitEachChild(i,n,t)}}(i);default:return e.visitEachChild(i,n,t)}}}}(d||(d={})),function(e){var t,r,n,i,a,o;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(t||(t={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(r||(r={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(n||(n={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(i||(i={})),function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.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"}(o||(o={})),e.transformES2015=function(t){var r,n,i,a,o,u,l=t.startLexicalEnvironment,d=t.resumeLexicalEnvironment,_=t.endLexicalEnvironment,f=t.hoistVariableDeclaration,p=t.getCompilerOptions(),m=t.getEmitResolver(),g=t.onSubstituteNode,h=t.onEmitNode;return t.onEmitNode=function(t,r,n){if(1&u&&e.isFunctionLike(r)){var i=y(16286,8&e.getEmitFlags(r)?81:65);return h(t,r,n),void v(i,0,0)}h(t,r,n)},t.onSubstituteNode=function(t,r){return r=g(t,r),1===t?function(t){switch(t.kind){case 72:return function(t){if(2&u&&!e.isInternalName(t)){var r=m.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!function(t,r){var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}(r,t)))return e.setTextRange(e.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 100:return function(t){return 1&u&&16&i?e.setTextRange(e.createFileLevelUniqueName("_this"),t):t}(t)}return t}(r):e.isIdentifier(r)?function(t){if(2&u&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 186:case 240:case 243:case 237:return e.parent.name===e&&m.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(e.getGeneratedNameForNode(r),t)}return t}(r):r},e.chainBundle(function(o){if(o.isDeclarationFile)return o;r=o,n=o.text;var s=function(t){var r=y(3968,64),n=[];l();var i=e.addStandardPrologue(n,t.statements,!1);return I(n,t),i=e.addCustomPrologue(n,t.statements,i,S),e.addRange(n,e.visitNodes(t.statements,S,e.isStatement,i)),a&&n.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(a))),e.addStatementsAfterPrologue(n,_()),v(r,0,0),e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(n),t.statements))}(o);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,a=void 0,i=0,s});function y(e,t){var r=i;return i=16383&(i&~e|t),r}function v(e,t,r){i=-16384&(i&~t|r)|e}function b(e){return 0!=(4096&i)&&230===e.kind&&!e.expression}function x(t){return 0!=(128&t.transformFlags)||void 0!==o||4096&i&&(e.isStatement(t)||218===t.kind)||e.isIterationStatement(t,!1)&&ce(t)||0!=(33554432&e.getEmitFlags(t))}function S(n){return x(n)?function(n){switch(n.kind){case 116:return;case 240:return function(t){var r=e.createVariableDeclaration(e.getLocalName(t,!0),void 0,T(t));e.setOriginalNode(r,t);var n=[],i=e.createVariableStatement(void 0,e.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasModifier(t,1)){var a=e.hasModifier(t,512)?e.createExportDefault(e.getLocalName(t)):e.createExternalModuleExport(e.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)}(n);case 209:return function(e){return T(e)}(n);case 151:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 239:return function(r){var n=o;o=void 0;var a=y(16286,65),s=e.visitParameterList(r.parameters,S,t),c=64&r.transformFlags?J(r):U(r),u=16384&i?e.getLocalName(r):r.name;return v(a,49152,0),o=n,e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,S,e.isModifier),r.asteriskToken,u,void 0,s,void 0,c)}(n);case 197:return function(r){8192&r.transformFlags&&we();var n=o;o=void 0;var i=y(16256,66),a=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,S,t),void 0,J(r));return e.setTextRange(a,r),e.setOriginalNode(a,r),e.setEmitFlags(a,8),v(i,0,0),o=n,a}(n);case 196:return function(r){var n=262144&e.getEmitFlags(r)?y(16278,69):y(16286,65),a=o;o=void 0;var s=e.visitParameterList(r.parameters,S,t),c=64&r.transformFlags?J(r):U(r),u=16384&i?e.getLocalName(r):r.name;return v(n,49152,0),o=a,e.updateFunctionExpression(r,void 0,r.asteriskToken,u,void 0,s,void 0,c)}(n);case 237:return H(n);case 72:return function(t){return o?e.isGeneratedIdentifier(t)?t:"arguments"===t.escapedText&&m.isArgumentsLocalBinding(t)?o.argumentsName||(o.argumentsName=e.createUniqueName("arguments")):t:t}(n);case 238:return function(r){if(64&r.transformFlags){3&r.flags&&Ae();var n=e.flatMap(r.declarations,1&r.flags?W:H),i=e.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),2097152&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i<a.length;i++){var o=a[i];r=-1===r?o.pos:-1===o.pos?r:Math.min(r,o.pos),n=Math.max(n,o.end)}return e.createRange(r,n)}(n)),i}return e.visitEachChild(r,S,t)}(n);case 232:return function(r){if(void 0!==o){var n=o.allowedNonLabeledJumps;o.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,S,t);return o.allowedNonLabeledJumps=n,i}return e.visitEachChild(r,S,t)}(n);case 246:return function(r){var n=y(4032,0),i=e.visitEachChild(r,S,t);return v(n,0,0),i}(n);case 218:return q(n,!1);case 229:case 228:return function(r){if(o){var n=229===r.kind?2:4,i=r.label&&o.labels&&o.labels.get(e.idText(r.label))||!r.label&&o.allowedNonLabeledJumps&n;if(!i){var a=void 0,s=r.label;s?229===r.kind?(a="break-"+s.escapedText,me(o,!0,e.idText(s),a)):(a="continue-"+s.escapedText,me(o,!1,e.idText(s),a)):229===r.kind?(o.nonLocalJumps|=2,a="break"):(o.nonLocalJumps|=4,a="continue");var c=e.createLiteral(a);if(o.loopOutParameters.length){for(var u=o.loopOutParameters,l=void 0,d=0;d<u.length;d++){var _=fe(u[d],1);l=0===d?_:e.createBinary(l,27,_)}c=e.createBinary(l,27,c)}return e.createReturn(c)}}return e.visitEachChild(r,S,t)}(n);case 233:return function(t){o&&!o.labels&&(o.labels=e.createMap());var r=e.unwrapInnermostStatementOfLabel(t,o&&G);return e.isIterationStatement(r,!1)?function(e,t){switch(e.kind){case 223:case 224:return Y(e,t);case 225:return Z(e,t);case 226:return $(e,t);case 227:return ee(e,t)}}(r,t):e.restoreEnclosingLabel(e.visitNode(r,S,e.isStatement,e.liftToBlock),t,o&&X)}(n);case 223:case 224:return Y(n,void 0);case 225:return Z(n,void 0);case 226:return $(n,void 0);case 227:return ee(n,void 0);case 221:return function(r){switch(r.expression.kind){case 195:return e.updateExpressionStatement(r,K(r.expression,!1));case 204:return e.updateExpressionStatement(r,V(r.expression,!1))}return e.visitEachChild(r,S,t)}(n);case 188:return function(r){for(var n=r.properties,a=n.length,o=a,s=a,c=0;c<a;c++){var u=n[c];if(4194304&u.transformFlags&&4&i&&c<s&&(s=c),149===u.name.kind){o=c;break}}if(o!==a){s<o&&(o=s);var l=e.createTempVariable(f),d=[],_=e.createAssignment(l,e.setEmitFlags(e.createObjectLiteral(e.visitNodes(n,S,e.isObjectLiteralElementLike,0,o),r.multiLine),65536));return r.multiLine&&e.startOnNewLine(_),d.push(_),function(t,r,n,i){for(var a=r.properties,o=a.length,s=i;s<o;s++){var c=a[s];switch(c.kind){case 158:case 159:var u=e.getAllAccessorDeclarations(r.properties,c);c===u.firstAccessor&&t.push(j(n,u,r,!!r.multiLine));break;case 156:t.push(be(c,n,r,r.multiLine));break;case 275:t.push(ye(c,n,r.multiLine));break;case 276:t.push(ve(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}}(d,r,l,o),d.push(r.multiLine?e.startOnNewLine(e.getMutableClone(l)):l),e.inlineExpressions(d)}return e.visitEachChild(r,S,t)}(n);case 274:return function(r){var n,i,a,o,s=y(4032,0);if(e.Debug.assert(!!r.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(r.variableDeclaration.name)){var c=e.createTempVariable(void 0),u=e.createVariableDeclaration(c);e.setTextRange(u,r.variableDeclaration);var l=e.flattenDestructuringBinding(r.variableDeclaration,S,t,0,c),d=e.createVariableDeclarationList(l);e.setTextRange(d,r.variableDeclaration);var _=e.createVariableStatement(void 0,d);n=e.updateCatchClause(r,u,(i=r.block,a=_,o=e.visitNodes(i.statements,S,e.isStatement),e.updateBlock(i,[a].concat(o))))}else n=e.visitEachChild(r,S,t);return v(s,0,0),n}(n);case 276:return function(t){return e.setTextRange(e.createPropertyAssignment(t.name,e.getSynthesizedClone(t.name)),t)}(n);case 149:return function(r){var n=y(0,8192),a=e.visitEachChild(r,S,t);return v(n,49152,49152&i?32768:0),a}(n);case 187:return function(r){return 64&r.transformFlags?Se(r.elements,!0,!!r.multiLine,!!r.elements.hasTrailingComma):e.visitEachChild(r,S,t)}(n);case 191:return function(t){return 33554432&e.getEmitFlags(t)?function(t){var r=e.cast(e.cast(e.skipOuterExpressions(t.expression),e.isArrowFunction).body,e.isBlock),n=function(t){return e.isVariableStatement(t)&&!!e.first(t.declarationList.declarations).initializer},i=e.visitNodes(r.statements,S,e.isStatement),a=e.filter(i,n),o=e.filter(i,function(e){return!n(e)}),s=e.cast(e.first(a),e.isVariableStatement).declarationList.declarations[0],c=e.skipOuterExpressions(s.initializer),u=e.tryCast(c,e.isAssignmentExpression),l=e.cast(u?e.skipOuterExpressions(u.right):c,e.isCallExpression),d=e.cast(e.skipOuterExpressions(l.expression),e.isFunctionExpression),_=d.body.statements,f=0,p=-1,m=[];if(u){var g=e.tryCast(_[f],e.isExpressionStatement);g&&(m.push(g),f++),m.push(_[f]),f++,m.push(e.createExpressionStatement(e.createAssignment(u.left,e.cast(s.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(_,p));)p--;return e.addRange(m,_,f,p),p<-1&&e.addRange(m,_,p+1),e.addRange(m,o),e.addRange(m,a,1),e.recreateOuterExpressions(t.expression,e.recreateOuterExpressions(s.initializer,e.recreateOuterExpressions(u&&u.right,e.updateCall(l,e.recreateOuterExpressions(l.expression,e.updateFunctionExpression(d,void 0,void 0,void 0,void 0,d.parameters,void 0,e.updateBlock(d.body,m))),void 0,l.arguments))))}(t):64&t.transformFlags?xe(t,!0):e.updateCall(t,e.visitNode(t.expression,k,e.isExpression),void 0,e.visitNodes(t.arguments,S,e.isExpression))}(n);case 192:return function(r){if(131072&r.transformFlags){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),f),i=n.target,a=n.thisArg;return e.createNew(e.createFunctionApply(e.visitNode(i,S,e.isExpression),a,Se(e.createNodeArray([e.createVoidZero()].concat(r.arguments)),!1,!1,!1)),void 0,[])}return e.visitEachChild(r,S,t)}(n);case 195:return K(n,!0);case 204:return V(n,!0);case 14:case 15:case 16:case 17:return function(t){return e.setTextRange(e.createLiteral(t.text),t)}(n);case 10:return function(t){return t.hasExtendedUnicodeEscape?e.setTextRange(e.createLiteral(t.text),t):t}(n);case 8:return function(t){return 384&t.numericLiteralFlags?e.setTextRange(e.createNumericLiteral(t.text),t):t}(n);case 193:return function(n){var i=e.visitNode(n.tag,S,e.isExpression),o=[void 0],s=[],u=[],l=n.template;if(e.isNoSubstitutionTemplateLiteral(l))s.push(e.createLiteral(l.text)),u.push(Ee(l));else{s.push(e.createLiteral(l.head.text)),u.push(Ee(l.head));for(var d=0,_=l.templateSpans;d<_.length;d++){var f=_[d];s.push(e.createLiteral(f.literal.text)),u.push(Ee(f.literal)),o.push(e.visitNode(f.expression,S,e.isExpression))}}var p,m=function(t,r,n){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__makeTemplateObject"),void 0,[r,n])}(t,e.createArrayLiteral(s),e.createArrayLiteral(u));if(e.isExternalModule(r)){var g=e.createUniqueName("templateObject");p=g,a=e.append(a,e.createVariableDeclaration(p)),o[0]=e.createLogicalOr(g,e.createAssignment(g,m))}else o[0]=m;return e.createCall(i,void 0,o)}(n);case 206:return function(t){var r=[];(function(t,r){(function(t){return e.Debug.assert(0!==t.templateSpans.length),0!==t.head.text.length||0===t.templateSpans[0].literal.text.length})(r)&&t.push(e.createLiteral(r.head.text))})(r,t),function(t,r){for(var n=0,i=r.templateSpans;n<i.length;n++){var a=i[n];t.push(e.visitNode(a.expression,S,e.isExpression)),0!==a.literal.text.length&&t.push(e.createLiteral(a.literal.text))}}(r,t);var n=e.reduceLeft(r,e.createAdd);return e.nodeIsSynthesized(n)&&(n.pos=t.pos,n.end=t.end),n}(n);case 207:return function(r){return e.visitEachChild(r,S,t)}(n);case 208:return function(t){return e.visitNode(t.expression,S,e.isExpression)}(n);case 98:return Ne(!1);case 100:return function(t){return o?2&i?(o.containsLexicalThis=!0,t):o.thisName||(o.thisName=e.createUniqueName("this")):t}(n);case 214:return function(t){return 95===t.keywordToken&&"target"===t.name.escapedText?(i|=8192&i?32768:16384,e.createFileLevelUniqueName("_newTarget")):t}(n);case 156:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=z(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(e.createPropertyAssignment(t.name,r),t)}(n);case 158:case 159:return function(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=o;o=void 0;var i,a=y(16286,65),s=e.visitParameterList(r.parameters,S,t),c=16512&r.transformFlags?J(r):U(r);return i=158===r.kind?e.updateGetAccessor(r,r.decorators,r.modifiers,r.name,s,r.type,c):e.updateSetAccessor(r,r.decorators,r.modifiers,r.name,s,c),v(a,49152,0),o=n,i}(n);case 219:return function(r){var n,i=y(0,e.hasModifier(r,1)?32:0);if(o&&0==(3&r.declarationList.flags)){for(var a=void 0,s=0,c=r.declarationList.declarations;s<c.length;s++){var u=c[s];if(le(o,u),u.initializer){var l=void 0;e.isBindingPattern(u.name)?l=e.flattenDestructuringAssignment(u,S,t,0):(l=e.createBinary(u.name,59,e.visitNode(u.initializer,S,e.isExpression)),e.setTextRange(l,u)),a=e.append(a,l)}}n=a?e.setTextRange(e.createExpressionStatement(e.inlineExpressions(a)),r):void 0}else n=e.visitEachChild(r,S,t);return v(i,0,0),n}(n);case 230:return function(r){return o?(o.nonLocalJumps|=8,b(r)&&(r=C(r)),e.createReturn(e.createObjectLiteral([e.createPropertyAssignment(e.createIdentifier("value"),r.expression?e.visitNode(r.expression,S,e.isExpression):e.createVoidZero())]))):b(r)?C(r):e.visitEachChild(r,S,t)}(n);default:return e.visitEachChild(n,S,t)}}(n):n}function D(e){return x(e)?q(e,!0):e}function k(e){return 98===e.kind?Ne(!0):S(e)}function C(t){return e.setOriginalNode(e.createReturn(e.createFileLevelUniqueName("_this")),t)}function T(r){r.name&&Ae();var a=e.getEffectiveBaseTypeNode(r),c=e.createFunctionExpression(void 0,void 0,void 0,void 0,a?[e.createParameter(void 0,void 0,void 0,e.createFileLevelUniqueName("_super"))]:[],void 0,function(r,a){var c=[];l(),function(r,n,i){i&&r.push(e.setTextRange(e.createExpressionStatement(function(t,r){return t.requestEmitHelper(s),e.createCall(e.getHelperName("__extends"),void 0,[r,e.createFileLevelUniqueName("_super")])}(t,e.getInternalName(n))),i))}(c,r,a),function(r,n,a){var s=o;o=void 0;var c=y(16278,73),u=e.getFirstConstructorWithBody(n),l=function(t,r){if(!t||!r)return!1;if(e.some(t.parameters))return!1;var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||221!==n.kind)return!1;var i=n.expression;if(!e.nodeIsSynthesized(i)||191!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||98!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||208!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}(u,void 0!==a),f=e.createFunctionDeclaration(void 0,void 0,void 0,e.getInternalName(n),void 0,function(r,n){return e.visitParameterList(r&&!n?r.parameters:void 0,S,t)||[]}(u,l),void 0,function(t,r,n,a){var o=[];d();var s=-1;a?s=0:t&&(s=e.addStandardPrologue(o,t.body.statements,!1)),t&&(A(o,t),F(o,t,a),a||(s=e.addCustomPrologue(o,t.body.statements,s,S)),e.Debug.assert(s>=0,"statementOffset not initialized correctly!"));var c=!!n&&96!==e.skipOuterExpressions(n.expression).kind,u=function(t,r,n,i,a){if(!n)return r&&I(t,r),0;if(!r)return t.push(e.createReturn(N())),2;if(i)return M(t,r,N()),we(),1;var o,s,c,u=r.body.statements;if(a<u.length&&221===(o=u[a]).kind&&e.isSuperCall(o.expression)&&(c=o.expression,s=xe(c,!1)),s&&a===u.length-1&&!(24576&r.transformFlags)){var l=e.createReturn(s);return 204===s.kind&&191===s.left.kind||e.Debug.fail("Assumed generated super call would have form 'super.call(...) || this'."),e.setCommentRange(l,e.getCommentRange(e.setEmitFlags(s.left,1536))),t.push(l),2}return M(t,r,s||E()),s?1:0}(o,t,c,a,s);1!==u&&2!==u||s++,t&&(1===u&&(i|=4096),e.addRange(o,e.visitNodes(t.body.statements,S,e.isStatement,s))),!c||2===u||t&&function t(r){if(230===r.kind)return!0;if(222===r.kind){var n=r;if(n.elseStatement)return t(n.thenStatement)&&t(n.elseStatement)}else if(218===r.kind){var i=e.lastOrUndefined(r.statements);if(i&&t(i))return!0}return!1}(t.body)||o.push(e.createReturn(e.createFileLevelUniqueName("_this"))),e.addStatementsAfterPrologue(o,_()),t&&O(o,t,!1);var l=e.createBlock(e.setTextRange(e.createNodeArray(o),t?t.body.statements:r.members),!0);return e.setTextRange(l,t?t.body:r),t||e.setEmitFlags(l,1536),l}(u,n,a,l));e.setTextRange(f,u||n),a&&e.setEmitFlags(f,8),r.push(f),v(c,49152,0),o=s}(c,r,a),function(t,r){for(var n=0,i=r.members;n<i.length;n++){var a=i[n];switch(a.kind){case 217:t.push(L(a));break;case 156:t.push(R(Pe(r,a),a,r));break;case 158:case 159:var o=e.getAllAccessorDeclarations(r.members,a);a===o.firstAccessor&&t.push(B(Pe(r,a),o,r));break;case 157:break;default:e.Debug.failBadSyntaxKind(r)}}}(c,r);var u=e.createTokenRange(e.skipTrivia(n,r.members.end),19),f=e.getInternalName(r),p=e.createPartiallyEmittedExpression(f);p.end=u.end,e.setEmitFlags(p,1536);var m=e.createReturn(p);m.pos=u.pos,e.setEmitFlags(m,1920),c.push(m),e.addStatementsAfterPrologue(c,_());var g=e.createBlock(e.setTextRange(e.createNodeArray(c),r.members),!0);return e.setEmitFlags(g,1536),g}(r,a));e.setEmitFlags(c,65536&e.getEmitFlags(r)|524288);var u=e.createPartiallyEmittedExpression(c);u.end=r.end,e.setEmitFlags(u,1536);var f=e.createPartiallyEmittedExpression(u);f.end=e.skipTrivia(n,r.pos),e.setEmitFlags(f,1536);var p=e.createParen(e.createCall(f,void 0,a?[e.visitNode(a.expression,S,e.isExpression)]:[]));return e.addSyntheticLeadingComment(p,3,"* @class "),p}function E(){return e.setEmitFlags(e.createThis(),4)}function N(){return e.createLogicalOr(e.createLogicalAnd(e.createStrictInequality(e.createFileLevelUniqueName("_super"),e.createNull()),e.createFunctionApply(e.createFileLevelUniqueName("_super"),E(),e.createIdentifier("arguments"))),E())}function A(t,r){if(function(e){return 0!=(65536&e.transformFlags)}(r))for(var n=0,i=r.parameters;n<i.length;n++){var a=i[n],o=a.name,s=a.initializer;a.dotDotDotToken||(e.isBindingPattern(o)?w(t,a,o,s):s&&P(t,a,o,s))}}function w(r,n,i,a){var o=e.getGeneratedNameForNode(n);i.elements.length>0?r.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,S,t,0,o))),1048576)):a&&r.push(e.setEmitFlags(e.createExpressionStatement(e.createAssignment(o,e.visitNode(a,S,e.isExpression))),1048576))}function P(t,r,n,i){i=e.visitNode(i,S,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(n),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createExpressionStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(n),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),t.push(a)}function F(t,r,n){var i=e.lastOrUndefined(r.parameters);if(function(e,t){return e&&e.dotDotDotToken&&72===e.name.kind&&!t}(i,n)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=r.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.createExpressionStatement(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 I(t,r){16384&r.transformFlags&&197!==r.kind&&M(t,r,e.createThis())}function M(t,r,n){we();var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_this"),void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),t.push(i)}function O(t,r,n){if(16384&i){var a=void 0;switch(r.kind){case 197:return t;case 156:case 158:case 159:a=e.createVoidZero();break;case 157:a=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 239:case 196:a=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),94,e.getLocalName(r))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createFileLevelUniqueName("_newTarget"),void 0,a)]));if(n)return[o].concat(t);t.unshift(o)}return t}function L(t){return e.setTextRange(e.createEmptyStatement(),t)}function R(t,r,n){var a=y(0,0),o=e.getCommentRange(r),s=e.getSourceMapRange(r),c=e.createMemberAccessForPropertyName(t,e.visitNode(r.name,S,e.isPropertyName),r.name),u=z(r,r,void 0,n);e.setEmitFlags(u,1536),e.setSourceMapRange(u,s);var l=e.setTextRange(e.createExpressionStatement(e.createAssignment(c,u)),r);return e.setOriginalNode(l,r),e.setCommentRange(l,o),e.setEmitFlags(l,48),v(a,49152,49152&i?16384:0),l}function B(t,r,n){var i=e.createExpressionStatement(j(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function j(t,r,n,a){var o=r.firstAccessor,s=r.getAccessor,c=r.setAccessor,u=y(0,0),l=e.getMutableClone(t);e.setEmitFlags(l,1568),e.setSourceMapRange(l,o.name);var d=e.createExpressionForPropertyName(e.visitNode(o.name,S,e.isPropertyName));e.setEmitFlags(d,1552),e.setSourceMapRange(d,o.name);var _=[];if(s){var f=z(s,void 0,void 0,n);e.setSourceMapRange(f,e.getSourceMapRange(s)),e.setEmitFlags(f,512);var p=e.createPropertyAssignment("get",f);e.setCommentRange(p,e.getCommentRange(s)),_.push(p)}if(c){var m=z(c,void 0,void 0,n);e.setSourceMapRange(m,e.getSourceMapRange(c)),e.setEmitFlags(m,512);var g=e.createPropertyAssignment("set",m);e.setCommentRange(g,e.getCommentRange(c)),_.push(g)}_.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var h=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[l,d,e.createObjectLiteral(_,!0)]);return a&&e.startOnNewLine(h),v(u,49152,49152&i?16384:0),h}function z(r,n,a,s){var c=o;o=void 0;var u=s&&e.isClassLike(s)&&!e.hasModifier(r,32)?y(16286,73):y(16286,65),l=e.visitParameterList(r.parameters,S,t),d=J(r);return 16384&i&&!a&&(239===r.kind||196===r.kind)&&(a=e.getGeneratedNameForNode(r)),v(u,49152,0),o=c,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,r.asteriskToken,a,void 0,l,void 0,d),n),r)}function J(n){var i,a,o,s=!1,c=!1,u=[],l=[],_=n.body;if(d(),e.isBlock(_)&&(o=e.addStandardPrologue(u,_.statements,!1)),I(u,n),A(u,n),F(u,n,!1),e.isBlock(_))o=e.addCustomPrologue(u,_.statements,o,S),i=_.statements,e.addRange(l,e.visitNodes(_.statements,S,e.isStatement,o)),!s&&_.multiLine&&(s=!0);else{e.Debug.assert(197===n.kind),i=e.moveRangeEnd(_,-1);var f=n.equalsGreaterThanToken;e.nodeIsSynthesized(f)||e.nodeIsSynthesized(_)||(e.rangeEndIsOnSameLineAsRangeStart(f,_,r)?c=!0:s=!0);var p=e.visitNode(_,S,e.isExpression),m=e.createReturn(p);e.setTextRange(m,_),e.moveSyntheticComments(m,_),e.setEmitFlags(m,1440),l.push(m),a=_}var g=t.endLexicalEnvironment();e.addStatementsAfterPrologue(l,g),O(l,n,!1),(e.some(u)||e.some(g))&&(s=!0);var h=e.createBlock(e.setTextRange(e.createNodeArray(u.concat(l)),i),s);return e.setTextRange(h,n.body),!s&&c&&e.setEmitFlags(h,1),a&&e.setTokenSourceMapRange(h,19,a),e.setOriginalNode(h,n.body),h}function U(r){var n=e.visitFunctionBody(r.body,D,t);return e.updateBlock(n,e.setTextRange(e.createNodeArray(O(n.statements,r,!0)),n.statements))}function q(r,n){if(n)return e.visitEachChild(r,S,t);var a=256&i?y(4032,512):y(3904,128),o=e.visitEachChild(r,S,t);return v(a,0,0),o}function K(r,n){if(!n)switch(r.expression.kind){case 195:return e.updateParen(r,K(r.expression,!1));case 204:return e.updateParen(r,V(r.expression,!1))}return e.visitEachChild(r,S,t)}function V(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,S,t,0,n):e.visitEachChild(r,S,t)}function W(r){var n=r.name;if(e.isBindingPattern(n))return H(r);if(!r.initializer&&function(e){var t=m.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&i)||r&&n&&0!=(512&i))&&0==(2048&i)&&(!m.isDeclarationWithCollidingName(e)||n&&!r&&0==(3072&i))}(r)){var a=e.getMutableClone(r);return a.initializer=e.createVoidZero(),a}return e.visitEachChild(r,S,t)}function H(r){var n,i=y(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,S,t,0,void 0,0!=(32&i)):e.visitEachChild(r,S,t),v(i,0,0),n}function G(t){o.labels.set(e.idText(t.label),!0)}function X(t){o.labels.set(e.idText(t.label),!1)}function Q(r,n,a,s,c){var u=y(r,n),d=function(r,n,a){if(!ce(r)){var s=void 0;o&&(s=o.allowedNonLabeledJumps,o.allowedNonLabeledJumps=6);var c=a?a(r,n,void 0):e.restoreEnclosingLabel(e.visitEachChild(r,S,t),n,o&&X);return o&&(o.allowedNonLabeledJumps=s),c}var u=function(t){var r;switch(t.kind){case 225:case 226:case 227:var n=t.initializer;n&&238===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var s=oe(t),c=0,u=r.declarations;c<u.length;c++){var l=u[c];he(t,l,i,a,s)}var d={loopParameters:i,loopOutParameters:a};return o&&(o.argumentsName&&(d.argumentsName=o.argumentsName),o.thisName&&(d.thisName=o.thisName),o.hoistedLocalVariables&&(d.hoistedLocalVariables=o.hoistedLocalVariables)),d}(r),d=[],f=o;o=u;var p,m,g,h,y,v=oe(r)?function(t,r){var n=e.createUniqueName("_loop_init"),a=0!=(4194304&t.initializer.transformFlags),o=0;r.containsLexicalThis&&(o|=8),a&&4&i&&(o|=262144);var s=[];s.push(e.createVariableStatement(void 0,t.initializer)),pe(r.loopOutParameters,2,1,s);var c=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(n,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,a?e.createToken(40):void 0,void 0,void 0,void 0,void 0,e.visitNode(e.createBlock(s,!0),S,e.isBlock)),o))]),2097152)),u=e.createVariableDeclarationList(e.map(r.loopOutParameters,_e));return{functionName:n,containsYield:a,functionDeclaration:c,part:u}}(r,u):void 0,b=ue(r)?function(t,r,n){var a=e.createUniqueName("_loop");l();var o=e.visitNode(t.statement,S,e.isStatement,e.liftToBlock),s=_(),c=[];(se(t)||function(t){return e.isForStatement(t)&&!!t.incrementor&&ae(t.incrementor)}(t))&&(r.conditionVariable=e.createUniqueName("inc"),c.push(e.createIf(r.conditionVariable,e.createStatement(e.visitNode(t.incrementor,S,e.isExpression)),e.createStatement(e.createAssignment(r.conditionVariable,e.createTrue())))),se(t)&&c.push(e.createIf(e.createPrefix(52,e.visitNode(t.condition,S,e.isExpression)),e.visitNode(e.createBreak(),S,e.isStatement)))),e.isBlock(o)?e.addRange(c,o.statements):c.push(o),pe(r.loopOutParameters,1,1,c),e.addStatementsAfterPrologue(c,s);var u=e.createBlock(c,!0);e.isBlock(o)&&e.setOriginalNode(u,o);var d=0!=(4194304&t.statement.transformFlags),f=0;r.containsLexicalThis&&(f|=8),d&&0!=(4&i)&&(f|=262144);var p=e.createVariableStatement(void 0,e.setEmitFlags(e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.setEmitFlags(e.createFunctionExpression(void 0,d?e.createToken(40):void 0,void 0,void 0,r.loopParameters,void 0,u),f))]),2097152)),m=function(t,r,n,i){var a=[],o=!(-5&r.nonLocalJumps||r.labeledNonLocalBreaks||r.labeledNonLocalContinues),s=e.createCall(t,void 0,e.map(r.loopParameters,function(e){return e.name})),c=i?e.createYield(e.createToken(40),e.setEmitFlags(s,8388608)):s;if(o)a.push(e.createExpressionStatement(c)),pe(r.loopOutParameters,1,0,a);else{var u=e.createUniqueName("state"),l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(u,void 0,c)]));if(a.push(l),pe(r.loopOutParameters,1,0,a),8&r.nonLocalJumps){var d=void 0;n?(n.nonLocalJumps|=8,d=e.createReturn(u)):d=e.createReturn(e.createPropertyAccess(u,"value")),a.push(e.createIf(e.createBinary(e.createTypeOf(u),35,e.createLiteral("object")),d))}if(2&r.nonLocalJumps&&a.push(e.createIf(e.createBinary(u,35,e.createLiteral("break")),e.createBreak())),r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var _=[];ge(r.labeledNonLocalBreaks,!0,u,n,_),ge(r.labeledNonLocalContinues,!1,u,n,_),a.push(e.createSwitch(u,e.createCaseBlock(_)))}}return a}(a,r,n,d);return{functionName:a,containsYield:d,functionDeclaration:p,part:m}}(r,u,f):void 0;if(o=f,v&&d.push(v.functionDeclaration),b&&d.push(b.functionDeclaration),function(t,r,n){var i;if(r.argumentsName&&(n?n.argumentsName=r.argumentsName:(i||(i=[])).push(e.createVariableDeclaration(r.argumentsName,void 0,e.createIdentifier("arguments")))),r.thisName&&(n?n.thisName=r.thisName:(i||(i=[])).push(e.createVariableDeclaration(r.thisName,void 0,e.createIdentifier("this")))),r.hoistedLocalVariables)if(n)n.hoistedLocalVariables=r.hoistedLocalVariables;else{i||(i=[]);for(var a=0,o=r.hoistedLocalVariables;a<o.length;a++){var s=o[a];i.push(e.createVariableDeclaration(s))}}if(r.loopOutParameters.length){i||(i=[]);for(var c=0,u=r.loopOutParameters;c<u.length;c++){var l=u[c];i.push(e.createVariableDeclaration(l.outParamName))}}r.conditionVariable&&(i||(i=[]),i.push(e.createVariableDeclaration(r.conditionVariable,void 0,e.createFalse()))),i&&t.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(i)))}(d,u,f),v&&d.push((m=v.functionName,g=v.containsYield,h=e.createCall(m,void 0,[]),y=g?e.createYield(e.createToken(40),e.setEmitFlags(h,8388608)):h,e.createStatement(y))),b)if(a)p=a(r,n,b.part);else{var x=de(r,v,e.createBlock(b.part,!0));e.aggregateTransformFlags(x),p=e.restoreEnclosingLabel(x,n,o&&X)}else{var D=de(r,v,e.visitNode(r.statement,S,e.isStatement,e.liftToBlock));e.aggregateTransformFlags(D),p=e.restoreEnclosingLabel(D,n,o&&X)}return d.push(p),d}(a,s,c);return v(u,0,0),d}function Y(e,t){return Q(0,256,e,t)}function Z(e,t){return Q(3008,1280,e,t)}function $(e,t){return Q(1984,2304,e,t)}function ee(e,t){return Q(1984,2304,e,t,p.downlevelIteration?ie:ne)}function te(r,n,i){var a=[],o=r.initializer;if(e.isVariableDeclarationList(o)){3&r.initializer.flags&&Ae();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var c=e.flattenDestructuringBinding(s,S,t,0,n),u=e.setTextRange(e.createVariableDeclarationList(c),r.initializer);e.setOriginalNode(u,r.initializer),e.setSourceMapRange(u,e.createRange(c[0].pos,e.last(c).end)),a.push(e.createVariableStatement(void 0,u))}else a.push(e.setTextRange(e.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(s?s.name:e.createTempVariable(void 0),void 0,n)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}else{var l=e.createAssignment(o,n);e.isDestructuringAssignment(l)?(e.aggregateTransformFlags(l),a.push(e.createExpressionStatement(V(l,!1)))):(l.end=o.end,a.push(e.setTextRange(e.createExpressionStatement(e.visitNode(l,S,e.isExpression)),e.moveRangeEnd(o,-1))))}if(i)return re(e.addRange(a,i));var d=e.visitNode(r.statement,S,e.isStatement,e.liftToBlock);return e.isBlock(d)?e.updateBlock(d,e.setTextRange(e.createNodeArray(e.concatenate(a,d.statements)),d.statements)):(a.push(d),re(a))}function re(t){return e.setEmitFlags(e.createBlock(e.createNodeArray(t),!0),432)}function ne(t,r,n){var i=e.visitNode(t.expression,S,e.isExpression),a=e.createLoopVariable(),s=e.isIdentifier(i)?e.getGeneratedNameForNode(i):e.createTempVariable(void 0);e.setEmitFlags(i,48|e.getEmitFlags(i));var c=e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(a,void 0,e.createLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(e.createVariableDeclaration(s,void 0,i),t.expression)]),t.expression),2097152),e.setTextRange(e.createLessThan(a,e.createPropertyAccess(s,"length")),t.expression),e.setTextRange(e.createPostfixIncrement(a),t.expression),te(t,e.createElementAccess(s,a),n)),t);return e.setEmitFlags(c,256),e.setTextRange(c,t),e.restoreEnclosingLabel(c,r,o&&X)}function ie(r,n,i){var a=e.visitNode(r.expression,S,e.isExpression),s=e.isIdentifier(a)?e.getGeneratedNameForNode(a):e.createTempVariable(void 0),c=e.isIdentifier(a)?e.getGeneratedNameForNode(s):e.createTempVariable(void 0),u=e.createUniqueName("e"),l=e.getGeneratedNameForNode(u),d=e.createTempVariable(void 0),_=e.createValuesHelper(t,a,r.expression),p=e.createCall(e.createPropertyAccess(s,"next"),void 0,[]);f(u),f(d);var m=e.setEmitFlags(e.setTextRange(e.createFor(e.setEmitFlags(e.setTextRange(e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(s,void 0,_),r.expression),e.createVariableDeclaration(c,void 0,p)]),r.expression),2097152),e.createLogicalNot(e.createPropertyAccess(c,"done")),e.createAssignment(c,p),te(r,e.createPropertyAccess(c,"value"),i)),r),256);return e.createTry(e.createBlock([e.restoreEnclosingLabel(m,n,o&&X)]),e.createCatchClause(e.createVariableDeclaration(l),e.setEmitFlags(e.createBlock([e.createExpressionStatement(e.createAssignment(u,e.createObjectLiteral([e.createPropertyAssignment("error",l)])))]),1)),e.createBlock([e.createTry(e.createBlock([e.setEmitFlags(e.createIf(e.createLogicalAnd(e.createLogicalAnd(c,e.createLogicalNot(e.createPropertyAccess(c,"done"))),e.createAssignment(d,e.createPropertyAccess(s,"return"))),e.createExpressionStatement(e.createFunctionCall(d,s,[]))),1)]),void 0,e.setEmitFlags(e.createBlock([e.setEmitFlags(e.createIf(u,e.createThrow(e.createPropertyAccess(u,"error"))),1)]),1))]))}function ae(e){return 0!=(131072&m.getNodeCheckFlags(e))}function oe(t){return e.isForStatement(t)&&!!t.initializer&&ae(t.initializer)}function se(t){return e.isForStatement(t)&&!!t.condition&&ae(t.condition)}function ce(e){return ue(e)||oe(e)}function ue(e){return 0!=(65536&m.getNodeCheckFlags(e))}function le(t,r){t.hoistedLocalVariables||(t.hoistedLocalVariables=[]),function r(n){if(72===n.kind)t.hoistedLocalVariables.push(n);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||r(o.name)}}(r.name)}function de(t,r,n){switch(t.kind){case 225:return function(t,r,n){var i=t.condition&&ae(t.condition),a=i||t.incrementor&&ae(t.incrementor);return e.updateFor(t,e.visitNode(r?r.part:t.initializer,S,e.isForInitializer),e.visitNode(i?void 0:t.condition,S,e.isExpression),e.visitNode(a?void 0:t.incrementor,S,e.isExpression),n)}(t,r,n);case 226:return function(t,r){return e.updateForIn(t,e.visitNode(t.initializer,S,e.isForInitializer),e.visitNode(t.expression,S,e.isExpression),r)}(t,n);case 227:return function(t,r){return e.updateForOf(t,void 0,e.visitNode(t.initializer,S,e.isForInitializer),e.visitNode(t.expression,S,e.isExpression),r)}(t,n);case 223:return function(t,r){return e.updateDo(t,r,e.visitNode(t.expression,S,e.isExpression))}(t,n);case 224:return function(t,r){return e.updateWhile(t,e.visitNode(t.expression,S,e.isExpression),r)}(t,n);default:return e.Debug.failBadSyntaxKind(t,"IterationStatement expected")}}function _e(t){return e.createVariableDeclaration(t.originalName,void 0,t.outParamName)}function fe(t,r){var n=0===r?t.outParamName:t.originalName,i=0===r?t.originalName:t.outParamName;return e.createBinary(i,59,n)}function pe(t,r,n,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];s.flags&r&&i.push(e.createExpressionStatement(fe(s,n)))}}function me(t,r,n,i){r?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=e.createMap()),t.labeledNonLocalBreaks.set(n,i)):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=e.createMap()),t.labeledNonLocalContinues.set(n,i))}function ge(t,r,n,i,a){t&&t.forEach(function(t,o){var s=[];if(!i||i.labels&&i.labels.get(o)){var c=e.createIdentifier(o);s.push(r?e.createBreak(c):e.createContinue(c))}else me(i,r,o,t),s.push(e.createReturn(n));a.push(e.createCaseClause(e.createLiteral(t),s))})}function he(t,r,n,i,a){var o=r.name;if(e.isBindingPattern(o))for(var s=0,c=o.elements;s<c.length;s++){var u=c[s];e.isOmittedExpression(u)||he(t,u,n,i,a)}else{n.push(e.createParameter(void 0,void 0,void 0,o));var l=m.getNodeCheckFlags(r);if(4194304&l||a){var d=e.createUniqueName("out_"+e.idText(o)),_=0;4194304&l&&(_|=1),e.isForStatement(t)&&t.initializer&&m.isBindingCapturedByNode(t.initializer,r)&&(_|=2),i.push({flags:_,originalName:o,outParamName:d})}}}function ye(t,r,n){var i=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,S,e.isPropertyName)),e.visitNode(t.initializer,S,e.isExpression));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function ve(t,r,n){var i=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,S,e.isPropertyName)),e.getSynthesizedClone(t.name));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function be(t,r,n,a){var o=y(0,0),s=e.createAssignment(e.createMemberAccessForPropertyName(r,e.visitNode(t.name,S,e.isPropertyName)),z(t,t,void 0,n));return e.setTextRange(s,t),a&&e.startOnNewLine(s),v(o,49152,49152&i?16384:0),s}function xe(r,n){if(131072&r.transformFlags||98===r.expression.kind||e.isSuperProperty(e.skipOuterExpressions(r.expression))){var i=e.createCallBinding(r.expression,f),a=i.target,o=i.thisArg;98===r.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=131072&r.transformFlags?e.createFunctionApply(e.visitNode(a,k,e.isExpression),e.visitNode(o,S,e.isExpression),Se(r.arguments,!1,!1,!1)):e.createFunctionCall(e.visitNode(a,k,e.isExpression),e.visitNode(o,S,e.isExpression),e.visitNodes(r.arguments,S,e.isExpression),r),98===r.expression.kind){var c=e.createThis();e.setEmitFlags(c,4);var u=e.createLogicalOr(s,c);s=n?e.createAssignment(e.createFileLevelUniqueName("_this"),u):u}return e.setOriginalNode(s,r)}return e.visitEachChild(r,S,t)}function Se(r,n,i,a){var o=r.length,s=e.flatten(e.spanMap(r,De,function(e,t,r,n){return t(e,i,a&&n===o)}));if(p.downlevelIteration){if(1===s.length){var c=s[0];if(e.isCallExpression(c)&&e.isIdentifier(c.expression)&&4096&e.getEmitFlags(c.expression)&&"___spread"===c.expression.escapedText)return s[0]}return e.createSpreadHelper(t,s)}if(1===s.length){var u=r[0];return n&&e.isSpreadElement(u)&&187!==u.expression.kind?e.createArraySlice(s[0]):s[0]}return e.createArrayConcat(s.shift(),s)}function De(t){return e.isSpreadElement(t)?ke:Ce}function ke(t){return e.map(t,Te)}function Ce(t,r,n){return e.createArrayLiteral(e.visitNodes(e.createNodeArray(t,n),S,e.isExpression),r)}function Te(t){return e.visitNode(t.expression,S,e.isExpression)}function Ee(t){var n=e.getSourceTextOfNodeFromSourceFile(r,t),i=14===t.kind||17===t.kind;return n=(n=n.substring(1,n.length-(i?1:2))).replace(/\r\n?/g,"\n"),e.setTextRange(e.createLiteral(n),t)}function Ne(t){return 8&i&&!t?e.createPropertyAccess(e.createFileLevelUniqueName("_super"),"prototype"):e.createFileLevelUniqueName("_super")}function Ae(){0==(2&u)&&(u|=2,t.enableSubstitution(72))}function we(){0==(1&u)&&(u|=1,t.enableSubstitution(100),t.enableEmitNotification(157),t.enableEmitNotification(156),t.enableEmitNotification(158),t.enableEmitNotification(159),t.enableEmitNotification(197),t.enableEmitNotification(196),t.enableEmitNotification(239))}function Pe(t,r){return e.hasModifier(r,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}};var s={name:"typescript:extends",scoped:!1,priority:0,text:"\n            var __extends = (this && this.__extends) || (function () {\n                var extendStatics = function (d, b) {\n                    extendStatics = Object.setPrototypeOf ||\n                        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n                        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n                    return extendStatics(d, b);\n                };\n\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            })();"},c={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            };'}}(d||(d={})),function(e){e.transformES5=function(t){var r,n,i=t.getCompilerOptions();1!==i.jsx&&3!==i.jsx||(r=t.onEmitNode,t.onEmitNode=function(t,i,a){switch(i.kind){case 262:case 263:case 261:var o=i.tagName;n[e.getOriginalNodeId(o)]=!0}r(t,i,a)},t.enableEmitNotification(262),t.enableEmitNotification(263),t.enableEmitNotification(261),n=[]);var a=t.onSubstituteNode;return t.onSubstituteNode=function(t,r){return r.id&&n&&n[r.id]?a(t,r):(r=a(t,r),e.isPropertyAccessExpression(r)?function(t){var r=o(t.name);return r?e.setTextRange(e.createElementAccess(t.expression,r),t):t}(r):e.isPropertyAssignment(r)?function(t){var r=e.isIdentifier(t.name)&&o(t.name);return r?e.updatePropertyAssignment(t,r,t.initializer):t}(r):r)},t.enableSubstitution(189),t.enableSubstitution(275),e.chainBundle(function(e){return e});function o(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(void 0!==r&&r>=73&&r<=108)return e.setTextRange(e.createLiteral(t),t)}}}(d||(d={})),function(e){var t,r,n,i,a;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(r||(r={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(n||(n={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(i||(i={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(a||(a={})),e.transformGenerators=function(t){var r,n,i,a,s,c,u,l,d,_,f=t.resumeLexicalEnvironment,p=t.endLexicalEnvironment,m=t.hoistFunctionDeclaration,g=t.hoistVariableDeclaration,h=t.getCompilerOptions(),y=e.getEmitScriptTarget(h),v=t.getEmitResolver(),b=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=b(t,i),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=v.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.getMutableClone(o);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(i):i};var x,S,D,k,C,T,E,N,A,w,P,F,I=1,M=0,O=0;return e.chainBundle(function(r){if(r.isDeclarationFile||0==(512&r.transformFlags))return r;var n=e.visitEachChild(r,L,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n});function L(r){var n=r.transformFlags;return a?function(r){switch(r.kind){case 223:case 224:return function(r){return a?(ne(),r=e.visitEachChild(r,L,t),ae(),r):e.visitEachChild(r,L,t)}(r);case 232:return function(r){return a&&$({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,L,t),a&&oe(),r}(r);case 233:return function(r){return a&&$({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,L,t),a&&se(),r}(r);default:return R(r)}}(r):i?R(r):256&n?function(t){switch(t.kind){case 239:return B(t);case 196:return j(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):512&n?e.visitEachChild(r,L,t):r}function R(r){switch(r.kind){case 239:return B(r);case 196:return j(r);case 158:case 159:return function(r){var n=i,o=a;return i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o,r}(r);case 219:return function(t){if(4194304&t.transformFlags)V(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var i=n[r];g(i.name)}var a=e.getInitializedVariables(t.declarationList);if(0!==a.length)return e.setSourceMapRange(e.createExpressionStatement(e.inlineExpressions(e.map(a,W))),t)}}(r);case 225:return function(r){a&&ne();var n=r.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];g(s.name)}var c=e.getInitializedVariables(n);r=e.updateFor(r,c.length>0?e.inlineExpressions(e.map(c,W)):void 0,e.visitNode(r.condition,L,e.isExpression),e.visitNode(r.incrementor,L,e.isExpression),e.visitNode(r.statement,L,e.isStatement,e.liftToBlock))}else r=e.visitEachChild(r,L,t);return a&&ae(),r}(r);case 226:return function(r){a&&ne();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,o=n.declarations;i<o.length;i++){var s=o[i];g(s.name)}r=e.updateForIn(r,n.declarations[0].name,e.visitNode(r.expression,L,e.isExpression),e.visitNode(r.statement,L,e.isStatement,e.liftToBlock))}else r=e.visitEachChild(r,L,t);return a&&ae(),r}(r);case 229:return function(r){if(a){var n=_e(r.label&&e.idText(r.label));if(n>0)return ge(n,r)}return e.visitEachChild(r,L,t)}(r);case 228:return function(r){if(a){var n=fe(r.label&&e.idText(r.label));if(n>0)return ge(n,r)}return e.visitEachChild(r,L,t)}(r);case 230:return function(t){return r=e.visitNode(t.expression,L,e.isExpression),n=t,e.setTextRange(e.createReturn(e.createArrayLiteral(r?[me(2),r]:[me(2)])),n);var r,n}(r);default:return 4194304&r.transformFlags?function(r){switch(r.kind){case 204:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){if(H(r.right)){if(e.isLogicalOperator(r.operatorToken.kind))return function(t){var r=Y(),n=Q();return ve(n,e.visitNode(t.left,L,e.isExpression),t.left),54===t.operatorToken.kind?Se(r,n,t.left):xe(r,n,t.left),ve(n,e.visitNode(t.right,L,e.isExpression),t.right),Z(r),n}(r);if(27===r.operatorToken.kind)return function(t){var r=[];return n(t.left),n(t.right),e.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(H(t)&&r.length>0&&(De(1,[e.createExpressionStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,L,e.isExpression)))}}(r);var n=e.getMutableClone(r);return n.left=X(e.visitNode(r.left,L,e.isExpression)),n.right=e.visitNode(r.right,L,e.isExpression),n}return e.visitEachChild(r,L,t)}(r);case 1:return function(r){var n,i=r.left,a=r.right;if(H(a)){var o=void 0;switch(i.kind){case 189:o=e.updatePropertyAccess(i,X(e.visitNode(i.expression,L,e.isLeftHandSideExpression)),i.name);break;case 190:o=e.updateElementAccess(i,X(e.visitNode(i.expression,L,e.isLeftHandSideExpression)),X(e.visitNode(i.argumentExpression,L,e.isExpression)));break;default:o=e.visitNode(i,L,e.isExpression)}var s=r.operatorToken.kind;return(n=s)>=60&&n<=71?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(X(o),function(e){switch(e){case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 43;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50;case 71:return 51}}(s),e.visitNode(a,L,e.isExpression)),r)),r):e.updateBinary(r,o,e.visitNode(a,L,e.isExpression))}return e.visitEachChild(r,L,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 205:return function(r){if(H(r.whenTrue)||H(r.whenFalse)){var n=Y(),i=Y(),a=Q();return Se(n,e.visitNode(r.condition,L,e.isExpression),r.condition),ve(a,e.visitNode(r.whenTrue,L,e.isExpression),r.whenTrue),be(i),Z(n),ve(a,e.visitNode(r.whenFalse,L,e.isExpression),r.whenFalse),Z(i),a}return e.visitEachChild(r,L,t)}(r);case 207:return function(r){var n,i=Y(),a=e.visitNode(r.expression,L,e.isExpression);if(r.asteriskToken){var o=0==(8388608&e.getEmitFlags(r.expression))?e.createValuesHelper(t,a,r):a;!function(e,t){De(7,[e],t)}(o,r)}else!function(e,t){De(6,[e],t)}(a,r);return Z(i),n=r,e.setTextRange(e.createCall(e.createPropertyAccess(k,"sent"),void 0,[]),n)}(r);case 187:return function(e){return J(e.elements,void 0,void 0,e.multiLine)}(r);case 188:return function(t){var r=t.properties,n=t.multiLine,i=G(r),a=Q();ve(a,e.createObjectLiteral(e.visitNodes(r,L,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,function(r,i){H(i)&&r.length>0&&(ye(e.createExpressionStatement(e.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(t,i,a),s=e.visitNode(o,L,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r},[],i);return o.push(n?e.startOnNewLine(e.getMutableClone(a)):a),e.inlineExpressions(o)}(r);case 190:return function(r){if(H(r.argumentExpression)){var n=e.getMutableClone(r);return n.expression=X(e.visitNode(r.expression,L,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(r.argumentExpression,L,e.isExpression),n}return e.visitEachChild(r,L,t)}(r);case 191:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,H)){var n=e.createCallBinding(r.expression,g,y,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.createFunctionApply(X(e.visitNode(i,L,e.isLeftHandSideExpression)),a,J(r.arguments),r),r)}return e.visitEachChild(r,L,t)}(r);case 192:return function(r){if(e.forEach(r.arguments,H)){var n=e.createCallBinding(e.createPropertyAccess(r.expression,"bind"),g),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(X(e.visitNode(i,L,e.isExpression)),a,J(r.arguments,e.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,L,t)}(r);default:return e.visitEachChild(r,L,t)}}(r):8389120&r.transformFlags?e.visitEachChild(r,L,t):r}}function B(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,L,t),void 0,z(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o}return i?void m(r):r}function j(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,L,t),void 0,z(r.body)),r),r);else{var n=i,o=a;i=!1,a=!1,r=e.visitEachChild(r,L,t),i=n,a=o}return r}function z(t){var r=[],n=i,o=a,m=s,g=c,h=u,y=l,v=d,b=_,C=I,T=x,E=S,N=D,A=k;i=!0,a=!1,s=void 0,c=void 0,u=void 0,l=void 0,d=void 0,_=void 0,I=1,x=void 0,S=void 0,D=void 0,k=e.createTempVariable(void 0),f();var w=e.addPrologue(r,t.statements,!1,L);U(t.statements,w);var P=ke();return e.addStatementsAfterPrologue(r,p()),r.push(e.createReturn(P)),i=n,a=o,s=m,c=g,u=h,l=y,d=v,_=b,I=C,x=T,S=E,D=N,k=A,e.setTextRange(e.createBlock(r,t.multiLine),t)}function J(t,r,n,i){var a,o=G(t);if(o>0){a=Q();var s=e.visitNodes(t,L,e.isExpression,0,o);ve(a,e.createArrayLiteral(r?[r].concat(s):s)),r=void 0}var c=e.reduceLeft(t,function(t,n){if(H(n)&&t.length>0){var o=void 0!==a;a||(a=Q()),ve(a,o?e.createArrayConcat(a,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(r?[r].concat(t):t,i)),r=void 0,t=[]}return t.push(e.visitNode(n,L,e.isExpression)),t},[],o);return a?e.createArrayConcat(a,[e.createArrayLiteral(c,i)]):e.setTextRange(e.createArrayLiteral(r?[r].concat(c):c,i),n)}function U(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)K(e[n])}function q(t){e.isBlock(t)?U(t.statements):K(t)}function K(i){var o=a;a||(a=H(i)),function(i){switch(i.kind){case 218:return function(t){H(t)?U(t.statements):ye(e.visitNode(t,L,e.isStatement))}(i);case 221:return function(t){ye(e.visitNode(t,L,e.isStatement))}(i);case 222:return function(t){if(H(t))if(H(t.thenStatement)||H(t.elseStatement)){var r=Y(),n=t.elseStatement?Y():void 0;Se(t.elseStatement?n:r,e.visitNode(t.expression,L,e.isExpression),t.expression),q(t.thenStatement),t.elseStatement&&(be(r),Z(n),q(t.elseStatement)),Z(r)}else ye(e.visitNode(t,L,e.isStatement));else ye(e.visitNode(t,L,e.isStatement))}(i);case 223:return function(t){if(H(t)){var r=Y(),n=Y();ie(r),Z(n),q(t.statement),Z(r),xe(n,e.visitNode(t.expression,L,e.isExpression)),ae()}else ye(e.visitNode(t,L,e.isStatement))}(i);case 224:return function(t){if(H(t)){var r=Y(),n=ie(r);Z(r),Se(n,e.visitNode(t.expression,L,e.isExpression)),q(t.statement),be(r),ae()}else ye(e.visitNode(t,L,e.isStatement))}(i);case 225:return function(t){if(H(t)){var r=Y(),n=Y(),i=ie(n);if(t.initializer){var a=t.initializer;e.isVariableDeclarationList(a)?V(a):ye(e.setTextRange(e.createExpressionStatement(e.visitNode(a,L,e.isExpression)),a))}Z(r),t.condition&&Se(i,e.visitNode(t.condition,L,e.isExpression)),q(t.statement),Z(n),t.incrementor&&ye(e.setTextRange(e.createExpressionStatement(e.visitNode(t.incrementor,L,e.isExpression)),t.incrementor)),be(r),ae()}else ye(e.visitNode(t,L,e.isStatement))}(i);case 226:return function(t){if(H(t)){var r=Q(),n=Q(),i=e.createLoopVariable(),a=t.initializer;g(i),ve(r,e.createArrayLiteral()),ye(e.createForIn(n,e.visitNode(t.expression,L,e.isExpression),e.createExpressionStatement(e.createCall(e.createPropertyAccess(r,"push"),void 0,[n])))),ve(i,e.createLiteral(0));var o=Y(),s=Y(),c=ie(s);Z(o),Se(c,e.createLessThan(i,e.createPropertyAccess(r,"length")));var u=void 0;if(e.isVariableDeclarationList(a)){for(var l=0,d=a.declarations;l<d.length;l++){var _=d[l];g(_.name)}u=e.getSynthesizedClone(a.declarations[0].name)}else u=e.visitNode(a,L,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(u));ve(u,e.createElementAccess(r,i)),q(t.statement),Z(s),ye(e.createExpressionStatement(e.createPostfixIncrement(i))),be(o),ae()}else ye(e.visitNode(t,L,e.isStatement))}(i);case 228:return function(t){var r=fe(t.label?e.idText(t.label):void 0);r>0?be(r,t):ye(t)}(i);case 229:return function(t){var r=_e(t.label?e.idText(t.label):void 0);r>0?be(r,t):ye(t)}(i);case 230:return function(t){De(8,[e.visitNode(t.expression,L,e.isExpression)],t)}(i);case 231:return function(t){var r,n,i;H(t)?(r=X(e.visitNode(t.expression,L,e.isExpression)),n=Y(),i=Y(),Z(n),$({kind:1,expression:r,startLabel:n,endLabel:i}),q(t.statement),e.Debug.assert(1===re()),Z(ee().endLabel)):ye(e.visitNode(t,L,e.isStatement))}(i);case 232:return function(t){if(H(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=($({kind:2,isScript:!1,breakLabel:f=Y()}),f),a=X(e.visitNode(t.expression,L,e.isExpression)),o=[],s=-1,c=0;c<n;c++){var u=r.clauses[c];o.push(Y()),272===u.kind&&-1===s&&(s=c)}for(var l=0,d=[];l<n;){for(var _=0,c=l;c<n;c++){var u=r.clauses[c];if(271===u.kind){if(H(u.expression)&&d.length>0)break;d.push(e.createCaseClause(e.visitNode(u.expression,L,e.isExpression),[ge(o[c],u.expression)]))}else _++}d.length&&(ye(e.createSwitch(a,e.createCaseBlock(d))),l+=d.length,d=[]),_>0&&(l+=_,_=0)}be(s>=0?o[s]:i);for(var c=0;c<n;c++)Z(o[c]),U(r.clauses[c].statements);oe()}else ye(e.visitNode(t,L,e.isStatement));var f}(i);case 233:return function(t){var r,n;H(t)?(r=e.idText(t.label),n=Y(),$({kind:4,isScript:!1,labelText:r,breakLabel:n}),q(t.statement),se()):ye(e.visitNode(t,L,e.isStatement))}(i);case 234:return function(t){De(9,[e.visitNode(t.expression,L,e.isExpression)],t)}(i);case 235:return function(i){var a,o;H(i)?(a=Y(),o=Y(),Z(a),$({kind:0,state:0,startLabel:a,endLabel:o}),he(),q(i.tryBlock),i.catchClause&&(function(i){var a;if(e.Debug.assert(0===re()),e.isGeneratedIdentifier(i.name))a=i.name,g(i.name);else{var o=e.idText(i.name);a=Q(o),r||(r=e.createMap(),n=[],t.enableSubstitution(72)),r.set(o,!0),n[e.getOriginalNodeId(i)]=a}var s=te();e.Debug.assert(s.state<1),be(s.endLabel);var c=Y();Z(c),s.state=1,s.catchVariable=a,s.catchLabel=c,ve(a,e.createCall(e.createPropertyAccess(k,"sent"),void 0,[])),he()}(i.catchClause.variableDeclaration),q(i.catchClause.block)),i.finallyBlock&&(function(){e.Debug.assert(0===re());var t=te();e.Debug.assert(t.state<2),be(t.endLabel);var r=Y();Z(r),t.state=2,t.finallyLabel=r}(),q(i.finallyBlock)),function(){e.Debug.assert(0===re());var t=ee();t.state<2?be(t.endLabel):De(10),Z(t.endLabel),he(),t.state=3}()):ye(e.visitEachChild(i,L,t))}(i);default:ye(e.visitNode(i,L,e.isStatement))}}(i),a=o}function V(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=e.getSynthesizedClone(i.name);e.setCommentRange(a,i.name),g(a)}for(var o=e.getInitializedVariables(t),s=o.length,c=0,u=[];c<s;){for(var l=c;l<s&&!(H((i=o[l]).initializer)&&u.length>0);l++)u.push(W(i));u.length&&(ye(e.createExpressionStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function W(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,L,e.isExpression)),t)}function H(e){return!!e&&0!=(4194304&e.transformFlags)}function G(e){for(var t=e.length,r=0;r<t;r++)if(H(e[r]))return r;return-1}function X(t){var r;return e.isGeneratedIdentifier(t)||4096&e.getEmitFlags(t)?t:(ve(r=e.createTempVariable(g),t,t),r)}function Q(t){var r=t?e.createUniqueName(t):e.createTempVariable(void 0);return g(r),r}function Y(){d||(d=[]);var e=I;return I++,d[e]=-1,e}function Z(t){e.Debug.assert(void 0!==d,"No labels were defined."),d[t]=x?x.length:0}function $(e){s||(s=[],u=[],c=[],l=[]);var t=u.length;return u[t]=0,c[t]=x?x.length:0,s[t]=e,l.push(e),t}function ee(){var t=te();if(void 0===t)return e.Debug.fail("beginBlock was never called.");var r=u.length;return u[r]=1,c[r]=x?x.length:0,s[r]=t,l.pop(),t}function te(){return e.lastOrUndefined(l)}function re(){var e=te();return e&&e.kind}function ne(){$({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ie(e){var t=Y();return $({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ae(){e.Debug.assert(3===re());var t=ee(),r=t.breakLabel;t.isScript||Z(r)}function oe(){e.Debug.assert(2===re());var t=ee(),r=t.breakLabel;t.isScript||Z(r)}function se(){e.Debug.assert(4===re());var t=ee();t.isScript||Z(t.breakLabel)}function ce(e){return 2===e.kind||3===e.kind}function ue(e){return 4===e.kind}function le(e){return 3===e.kind}function de(e,t){for(var r=t;r>=0;r--){var n=l[r];if(!ue(n))break;if(n.labelText===e)return!0}return!1}function _e(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(ue(r=l[t])&&r.labelText===e)return r.breakLabel;if(ce(r)&&de(e,t-1))return r.breakLabel}else for(t=l.length-1;t>=0;t--){var r;if(ce(r=l[t]))return r.breakLabel}return 0}function fe(e){if(l)if(e){for(var t=l.length-1;t>=0;t--)if(le(r=l[t])&&de(e,t-1))return r.continueLabel}else for(t=l.length-1;t>=0;t--){var r;if(le(r=l[t]))return r.continueLabel}return 0}function pe(t){if(void 0!==t&&t>0){void 0===_&&(_=[]);var r=e.createLiteral(-1);return void 0===_[t]?_[t]=[r]:_[t].push(r),r}return e.createOmittedExpression()}function me(t){var r=e.createLiteral(t);return e.addSyntheticTrailingComment(r,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(t)),r}function ge(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),pe(t)])),r)}function he(){De(0)}function ye(e){e?De(1,[e]):he()}function ve(e,t,r){De(2,[e,t],r)}function be(e,t){De(3,[e],t)}function xe(e,t,r){De(4,[e,t],r)}function Se(e,t,r){De(5,[e,t],r)}function De(e,t,r){void 0===x&&(x=[],S=[],D=[]),void 0===d&&Z(Y());var n=x.length;x[n]=e,S[n]=t,D[n]=r}function ke(){M=0,O=0,C=void 0,T=!1,E=!1,N=void 0,A=void 0,w=void 0,P=void 0,F=void 0;var r=function(){if(x){for(var t=0;t<x.length;t++)Ne(t);Ce(x.length)}else Ce(0);if(N){var r=e.createPropertyAccess(k,"label"),n=e.createSwitch(r,e.createCaseBlock(N));return[e.startOnNewLine(n)]}return A||[]}();return function(t,r){return t.requestEmitHelper(o),e.createCall(e.getHelperName("__generator"),void 0,[e.createThis(),r])}(t,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,k)],void 0,e.createBlock(r,r.length>0)),524288))}function Ce(e){(function(e){if(!E)return!0;if(!d||!_)return!1;for(var t=0;t<d.length;t++)if(d[t]===e&&_[t])return!0;return!1})(e)&&(Ee(e),F=void 0,we(void 0,void 0)),A&&N&&Te(!1),function(){if(void 0!==_&&void 0!==C)for(var e=0;e<C.length;e++){var t=C[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],a=_[i];if(void 0!==a)for(var o=0,s=a;o<s.length;o++){var c=s[o];c.text=String(e)}}}}()}function Te(t){if(N||(N=[]),A){if(F)for(var r=F.length-1;r>=0;r--){var n=F[r];A=[e.createWith(n.expression,e.createBlock(A))]}if(P){var i=P.startLabel,a=P.catchLabel,o=P.finallyLabel,s=P.endLabel;A.unshift(e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(k,"trys"),"push"),void 0,[e.createArrayLiteral([pe(i),pe(a),pe(o),pe(s)])]))),P=void 0}t&&A.push(e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(k,"label"),e.createLiteral(O+1))))}N.push(e.createCaseClause(e.createLiteral(O),A||[])),A=void 0}function Ee(e){if(d)for(var t=0;t<d.length;t++)d[t]===e&&(A&&(Te(!T),T=!1,E=!1,O++),void 0===C&&(C=[]),void 0===C[O]?C[O]=[t]:C[O].push(t))}function Ne(t){if(Ee(t),function(e){if(s)for(;M<u.length&&c[M]<=e;M++){var t=s[M],r=u[M];switch(t.kind){case 0:0===r?(w||(w=[]),A||(A=[]),w.push(P),P=t):1===r&&(P=w.pop());break;case 1:0===r?(F||(F=[]),F.push(t)):1===r&&F.pop()}}}(t),!T){T=!1,E=!1;var r=x[t];if(0!==r){if(10===r)return T=!0,void Ae(e.createReturn(e.createArrayLiteral([me(7)])));var n=S[t];if(1===r)return Ae(n[0]);var i,a,o,l=D[t];switch(r){case 2:return i=n[0],a=n[1],o=l,void Ae(e.setTextRange(e.createExpressionStatement(e.createAssignment(i,a)),o));case 3:return function(t,r){T=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),pe(t)])),r),384))}(n[0],l);case 4:return function(t,r,n){Ae(e.setEmitFlags(e.createIf(r,e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),pe(t)])),n),384)),1))}(n[0],n[1],l);case 5:return function(t,r,n){Ae(e.setEmitFlags(e.createIf(e.createLogicalNot(r),e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),pe(t)])),n),384)),1))}(n[0],n[1],l);case 6:return function(t,r){T=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[me(4),t]:[me(4)])),r),384))}(n[0],l);case 7:return function(t,r){T=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral([me(5),t])),r),384))}(n[0],l);case 8:return we(n[0],l);case 9:return function(t,r){T=!0,E=!0,Ae(e.setTextRange(e.createThrow(t),r))}(n[0],l)}}}}function Ae(e){e&&(A?A.push(e):A=[e])}function we(t,r){T=!0,E=!0,Ae(e.setEmitFlags(e.setTextRange(e.createReturn(e.createArrayLiteral(t?[me(2),t]:[me(2)])),r),384))}};var o={name:"typescript:generator",scoped:!1,priority:6,text:'\n            var __generator = (this && this.__generator) || function (thisArg, body) {\n                var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n                return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n                function verb(n) { return function (v) { return step([n, v]); }; }\n                function step(op) {\n                    if (f) throw new TypeError("Generator is already executing.");\n                    while (_) try {\n                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n                        if (y = 0, t) op = [op[0] & 2, t.value];\n                        switch (op[0]) {\n                            case 0: case 1: t = op; break;\n                            case 4: _.label++; return { value: op[1], done: false };\n                            case 5: _.label++; y = op[1]; op = [0]; continue;\n                            case 7: op = _.ops.pop(); _.trys.pop(); continue;\n                            default:\n                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n                                if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n                                if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n                                if (t[2]) _.ops.pop();\n                                _.trys.pop(); continue;\n                        }\n                        op = body.call(thisArg, _);\n                    } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n                    if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n                }\n            };'}}(d||(d={})),function(e){e.transformModule=function(a){var o=a.startLexicalEnvironment,s=a.endLexicalEnvironment,c=a.hoistVariableDeclaration,u=a.getCompilerOptions(),l=a.getEmitResolver(),d=a.getEmitHost(),_=e.getEmitScriptTarget(u),f=e.getEmitModuleKind(u),p=a.onSubstituteNode,m=a.onEmitNode;a.onSubstituteNode=function(t,r){return(r=p(t,r)).id&&y[r.id]?r:1===t?function(t){switch(t.kind){case 72:return X(t);case 204:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=Q(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];y[e.getNodeId(n)]=!0,n=H(o,n,t)}return n}}return t}(t);case 203:case 202:return function(t){if((44===t.operator||45===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var r=Q(t.operand);if(r){for(var n=203===t.kind?e.setTextRange(e.createBinary(t.operand,e.createToken(44===t.operator?60:61),e.createLiteral(1)),t):t,i=0,a=r;i<a.length;i++){var o=a[i];y[e.getNodeId(n)]=!0,n=H(o,n)}return n}}return t}(t)}return t}(r):e.isShorthandPropertyAssignment(r)?function(t){var r=t.name,n=X(r);if(n!==r){if(t.objectAssignmentInitializer){var i=e.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(e.createPropertyAssignment(r,i),t)}return e.setTextRange(e.createPropertyAssignment(r,n),t)}return t}(r):r},a.onEmitNode=function(t,r,n){279===r.kind?(g=r,h=b[e.getOriginalNodeId(g)],y=[],m(t,r,n),g=void 0,h=void 0,y=void 0):m(t,r,n)},a.enableSubstitution(72),a.enableSubstitution(204),a.enableSubstitution(202),a.enableSubstitution(203),a.enableSubstitution(276),a.enableEmitNotification(279);var g,h,y,v,b=[],x=[];return e.chainBundle(function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,u)||16777216&t.transformFlags||e.isJsonSourceFile(t)&&e.hasJsonModuleEmitEnabled(u)&&(u.out||u.outFile)))return t;g=t,h=e.collectExternalModuleInfo(t,l,u),b[e.getOriginalNodeId(t)]=h;var r=function(t){switch(t){case e.ModuleKind.AMD:return k;case e.ModuleKind.UMD:return C;default:return D}}(f)(t);return g=void 0,h=void 0,v=!1,e.aggregateTransformFlags(r)});function S(){return!(h.exportEquals||!e.isExternalModule(g))}function D(r){o();var n=[],i=e.getStrictOptionValue(u,"alwaysStrict")||!u.noImplicitUseStrict&&e.isExternalModule(g),c=e.addPrologue(n,r.statements,i,w);S()&&e.append(n,W()),e.append(n,e.visitNode(h.externalHelpersImportDeclaration,w,e.isStatement)),e.addRange(n,e.visitNodes(r.statements,w,e.isStatement,c)),A(n,!1),e.addStatementsAfterPrologue(n,s());var l=e.updateSourceFileNode(r,e.setTextRange(e.createNodeArray(n),r.statements));return h.hasExportStarsToExportValues&&!u.importHelpers&&e.addEmitHelper(l,t),e.addEmitHelpers(l,a.readEmitHelpers()),l}function k(t){var r=e.createIdentifier("define"),n=e.tryGetModuleNameFromFile(t,d,u),i=e.isJsonSourceFile(t)&&t,o=T(t,!0),s=o.aliasedModuleNames,c=o.unaliasedModuleNames,l=o.importAliasNames,_=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(r,void 0,(n?[n]:[]).concat([e.createArrayLiteral(i?e.emptyArray:[e.createLiteral("require"),e.createLiteral("exports")].concat(s,c)),i?i.statements.length?i.statements[0].expression:e.createObjectLiteral():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(l),void 0,N(t))])))]),t.statements));return e.addEmitHelpers(_,a.readEmitHelpers()),_}function C(t){var r=T(t,!1),n=r.aliasedModuleNames,i=r.unaliasedModuleNames,o=r.importAliasNames,s=e.tryGetModuleNameFromFile(t,d,u),c=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.createExpressionStatement(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.createExpressionStatement(e.createCall(e.createIdentifier("define"),void 0,(s?[s]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(n,i)),e.createIdentifier("factory")])))])))],!0),void 0)),l=e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(c,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(o),void 0,N(t))]))]),t.statements));return e.addEmitHelpers(l,a.readEmitHelpers()),l}function T(t,r){for(var n=[],i=[],a=[],o=0,s=t.amdDependencies;o<s.length;o++){var c=s[o];c.name?(n.push(e.createLiteral(c.path)),a.push(e.createParameter(void 0,void 0,void 0,c.name))):i.push(e.createLiteral(c.path))}for(var _=0,f=h.externalImports;_<f.length;_++){var p=f[_],m=e.getExternalModuleNameLiteral(p,g,d,l,u),y=e.getLocalNameForExternalImport(p,g);m&&(r&&y?(e.setEmitFlags(y,4),n.push(m),a.push(e.createParameter(void 0,void 0,void 0,y))):i.push(m))}return{aliasedModuleNames:n,unaliasedModuleNames:i,importAliasNames:a}}function E(t){if(!e.isImportEqualsDeclaration(t)&&!e.isExportDeclaration(t)&&e.getExternalModuleNameLiteral(t,g,d,l,u)){var r=e.getLocalNameForExternalImport(t,g),n=M(t,r);if(n!==r)return e.createExpressionStatement(e.createAssignment(r,n))}}function N(n){o();var i=[],a=e.addPrologue(i,n.statements,!u.noImplicitUseStrict,w);S()&&e.append(i,W()),e.append(i,e.visitNode(h.externalHelpersImportDeclaration,w,e.isStatement)),f===e.ModuleKind.AMD&&e.addRange(i,e.mapDefined(h.externalImports,E)),e.addRange(i,e.visitNodes(n.statements,w,e.isStatement,a)),A(i,!0),e.addStatementsAfterPrologue(i,s());var c=e.createBlock(i,!0);return h.hasExportStarsToExportValues&&!u.importHelpers&&e.addEmitHelper(c,t),v&&e.addEmitHelper(c,r),c}function A(t,r){if(h.exportEquals){var n=e.visitNode(h.exportEquals.expression,P);if(n)if(r){var i=e.createReturn(n);e.setTextRange(i,h.exportEquals),e.setEmitFlags(i,1920),t.push(i)}else i=e.createExpressionStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),n)),e.setTextRange(i,h.exportEquals),e.setEmitFlags(i,1536),t.push(i)}}function w(t){switch(t.kind){case 249:return function(t){var r,n=e.getNamespaceDeclarationNode(t);if(f!==e.ModuleKind.AMD){if(!t.importClause)return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(O(t)),t),t);var i=[];n&&!e.isDefaultImport(t)?i.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,M(t,O(t)))):(i.push(e.createVariableDeclaration(e.getGeneratedNameForNode(t),void 0,M(t,O(t)))),n&&e.isDefaultImport(t)&&i.push(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)))),r=e.append(r,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList(i,_>=2?2:0)),t),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)),t),t)],_>=2?2:0))));if(B(t)){var a=e.getOriginalNodeId(t);x[a]=j(x[a],t)}else r=j(r,t);return e.singleOrMany(r)}(t);case 248:return function(t){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),f!==e.ModuleKind.AMD?r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(H(t.name,O(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,O(t))],_>=2?2:0)),t),t)):e.hasModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(H(e.getExportName(t),e.getLocalName(t))),t),t))),B(t)){var n=e.getOriginalNodeId(t);x[n]=z(x[n],t)}else r=z(r,t);return e.singleOrMany(r)}(t);case 255:return function(t){if(t.moduleSpecifier){var r=e.getGeneratedNameForNode(t);if(t.exportClause){var n=[];f!==e.ModuleKind.AMD&&n.push(e.setOriginalNode(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,O(t))])),t),t));for(var i=0,o=t.exportClause.elements;i<o.length;i++){var s=o[i],c=e.createPropertyAccess(r,s.propertyName||s.name);n.push(e.setOriginalNode(e.setTextRange(e.createExpressionStatement(H(e.getExportName(s),c)),s),s))}return e.singleOrMany(n)}return e.setOriginalNode(e.setTextRange(e.createExpressionStatement(function(t,r){return t.getCompilerOptions().importHelpers?e.createCall(e.getHelperName("__exportStar"),void 0,[r,e.createIdentifier("exports")]):e.createCall(e.createIdentifier("__export"),void 0,[r])}(a,f!==e.ModuleKind.AMD?O(t):r)),t),t)}}(t);case 254:return function(t){if(!t.isExportEquals){var r,n=t.original;if(n&&B(n)){var i=e.getOriginalNodeId(t);x[i]=V(x[i],e.createIdentifier("default"),e.visitNode(t.expression,P),t,!0)}else r=V(r,e.createIdentifier("default"),e.visitNode(t.expression,P),t,!0);return e.singleOrMany(r)}}(t);case 219:return function(t){var r,n,i;if(e.hasModifier(t,1)){for(var o=void 0,s=0,c=t.declarationList.declarations;s<c.length;s++){var u=c[s];e.isIdentifier(u.name)&&e.isLocalName(u.name)?(o||(o=e.visitNodes(t.modifiers,G,e.isModifier)),n=e.append(n,u)):u.initializer&&(i=e.append(i,R(u)))}n&&(r=e.append(r,e.updateVariableStatement(t,o,e.updateVariableDeclarationList(t.declarationList,n)))),i&&(r=e.append(r,e.setOriginalNode(e.setTextRange(e.createExpressionStatement(e.inlineExpressions(i)),t),t)))}else r=e.append(r,e.visitEachChild(t,P,a));if(B(t)){var l=e.getOriginalNodeId(t);x[l]=J(x[l],t)}else r=J(r,t);return e.singleOrMany(r)}(t);case 239:return function(t){var r;if(r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,e.visitNodes(t.modifiers,G,e.isModifier),t.asteriskToken,e.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,P),void 0,e.visitEachChild(t.body,P,a)),t),t)):e.append(r,e.visitEachChild(t,P,a)),B(t)){var n=e.getOriginalNodeId(t);x[n]=q(x[n],t)}else r=q(r,t);return e.singleOrMany(r)}(t);case 240:return function(t){var r;if(r=e.hasModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(e.createClassDeclaration(void 0,e.visitNodes(t.modifiers,G,e.isModifier),e.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.heritageClauses,P),e.visitNodes(t.members,P)),t),t)):e.append(r,e.visitEachChild(t,P,a)),B(t)){var n=e.getOriginalNodeId(t);x[n]=q(x[n],t)}else r=q(r,t);return e.singleOrMany(r)}(t);case 310:return function(t){if(B(t)&&219===t.original.kind){var r=e.getOriginalNodeId(t);x[r]=J(x[r],t.original)}return t}(t);case 311:return function(t){var r=e.getOriginalNodeId(t),n=x[r];return n?(delete x[r],e.append(n,t)):t}(t);default:return e.visitEachChild(t,P,a)}}function P(t){return 16777216&t.transformFlags||2048&t.transformFlags?e.isImportCall(t)?function(t){var r=e.visitNode(e.firstOrUndefined(t.arguments),P),n=!!(8192&t.transformFlags);switch(u.module){case e.ModuleKind.AMD:return F(r,n);case e.ModuleKind.UMD:return function(t,r){if(v=!0,e.isSimpleCopiableExpression(t)){var n=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?e.createLiteral(t):e.setEmitFlags(e.setTextRange(e.getSynthesizedClone(t),t),1536);return e.createConditional(e.createIdentifier("__syncRequire"),I(t,r),F(n,r))}var i=e.createTempVariable(c);return e.createComma(e.createAssignment(i,t),e.createConditional(e.createIdentifier("__syncRequire"),I(i,r),F(i,r)))}(r,n);case e.ModuleKind.CommonJS:default:return I(r,n)}}(t):1024&t.transformFlags&&e.isBinaryExpression(t)?function(t){return function t(r){if(e.isObjectLiteralExpression(r))for(var n=0,i=r.properties;n<i.length;n++){var a=i[n];switch(a.kind){case 275:if(t(a.initializer))return!0;break;case 276:if(t(a.name))return!0;break;case 277:if(t(a.expression))return!0;break;case 156:case 158:case 159:return!1;default:e.Debug.assertNever(a,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(r))for(var o=0,s=r.elements;o<s.length;o++){var a=s[o];if(e.isSpreadElement(a)){if(t(a.expression))return!0}else if(t(a))return!0}else if(e.isIdentifier(r))return e.length(Q(r))>(e.isExportName(r)?1:0);return!1}(t.left)?e.flattenDestructuringAssignment(t,P,a,0,!1,L):e.visitEachChild(t,P,a)}(t):e.visitEachChild(t,P,a):t}function F(t,r){var i,o=e.createUniqueName("resolve"),s=e.createUniqueName("reject"),c=[e.createParameter(void 0,void 0,void 0,o),e.createParameter(void 0,void 0,void 0,s)],l=e.createBlock([e.createExpressionStatement(e.createCall(e.createIdentifier("require"),void 0,[e.createArrayLiteral([t||e.createOmittedExpression()]),o,s]))]);_>=2?i=e.createArrowFunction(void 0,void 0,c,void 0,void 0,l):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,l),r&&e.setEmitFlags(i,8));var d=e.createNew(e.createIdentifier("Promise"),void 0,[i]);return u.esModuleInterop?(a.requestEmitHelper(n),e.createCall(e.createPropertyAccess(d,e.createIdentifier("then")),void 0,[e.getHelperName("__importStar")])):d}function I(t,r){var i,o=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),s=e.createCall(e.createIdentifier("require"),void 0,t?[t]:[]);return u.esModuleInterop&&(a.requestEmitHelper(n),s=e.createCall(e.getHelperName("__importStar"),void 0,[s])),_>=2?i=e.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(s)])),r&&e.setEmitFlags(i,8)),e.createCall(e.createPropertyAccess(o,"then"),void 0,[i])}function M(t,r){return!u.esModuleInterop||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?(a.requestEmitHelper(n),e.createCall(e.getHelperName("__importStar"),void 0,[r])):e.getImportNeedsImportDefaultHelper(t)?(a.requestEmitHelper(i),e.createCall(e.getHelperName("__importDefault"),void 0,[r])):r}function O(t){var r=e.getExternalModuleNameLiteral(t,g,d,l,u),n=[];return r&&n.push(r),e.createCall(e.createIdentifier("require"),void 0,n)}function L(t,r,n){var i=Q(t);if(i){for(var a=e.isExportName(t)?r:e.createAssignment(t,r),o=0,s=i;o<s.length;o++){var c=s[o];e.setEmitFlags(a,4),a=H(c,a,n)}return a}return e.createAssignment(t,r)}function R(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,P),void 0,a,0,!1,L):e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),t.name),t.name),e.visitNode(t.initializer,P))}function B(t){return 0!=(4194304&e.getEmitFlags(t))}function j(e,t){if(h.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=K(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 251:e=K(e,n);break;case 252:for(var i=0,a=n.elements;i<a.length;i++)e=K(e,a[i])}return e}function z(e,t){return h.exportEquals?e:K(e,t)}function J(e,t){if(h.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++)e=U(e,n[r]);return e}function U(t,r){if(h.exportEquals)return t;if(e.isBindingPattern(r.name))for(var n=0,i=r.name.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||(t=U(t,a))}else e.isGeneratedIdentifier(r.name)||(t=K(t,r));return t}function q(t,r){return h.exportEquals?t:(e.hasModifier(r,1)&&(t=V(t,e.hasModifier(r,512)?e.createIdentifier("default"):e.getDeclarationName(r),e.getLocalName(r),r)),r.name&&(t=K(t,r)),t)}function K(t,r){var n=e.getDeclarationName(r),i=h.exportSpecifiers.get(e.idText(n));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];t=V(t,s.name,n,s.name)}return t}function V(t,r,n,i,a){return t=e.append(t,function(t,r,n,i){var a=e.setTextRange(e.createExpressionStatement(H(t,r)),n);return e.startOnNewLine(a),i||e.setEmitFlags(a,1536),a}(r,n,i,a))}function W(){var t;return t=0===_?e.createExpressionStatement(H(e.createIdentifier("__esModule"),e.createLiteral(!0))):e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[e.createIdentifier("exports"),e.createLiteral("__esModule"),e.createObjectLiteral([e.createPropertyAssignment("value",e.createLiteral(!0))])])),e.setEmitFlags(t,1048576),t}function H(t,r,n){return e.setTextRange(e.createAssignment(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),r),n)}function G(e){switch(e.kind){case 85:case 80:return}return e}function X(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(g);return r?e.createPropertyAccess(r,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=l.getReferencedExportContainer(t,e.isExportName(t));if(n&&279===n.kind)return e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),e.getSynthesizedClone(t)),t);var i=l.getReferencedImportDeclaration(t);if(i){if(e.isImportClause(i))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(i.parent),e.createIdentifier("default")),t);if(e.isImportSpecifier(i)){var a=i.propertyName||i.name;return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(i.parent.parent.parent),e.getSynthesizedClone(a)),t)}}}return t}function Q(t){if(!e.isGeneratedIdentifier(t)){var r=l.getReferencedImportDeclaration(t)||l.getReferencedValueDeclaration(t);if(r)return h&&h.exportedBindings[e.getOriginalNodeId(r)]}}};var t={name:"typescript:export-star",scoped:!0,text:"\n            function __export(m) {\n                for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n            }"};var r={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n            var __syncRequire = typeof module === "object" && typeof module.exports === "object";'},n={name:"typescript:commonjsimportstar",scoped:!1,text:'\nvar __importStar = (this && this.__importStar) || function (mod) {\n    if (mod && mod.__esModule) return mod;\n    var result = {};\n    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n    result["default"] = mod;\n    return result;\n};'},i={name:"typescript:commonjsimportdefault",scoped:!1,text:'\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { "default": mod };\n};'}}(d||(d={})),function(e){e.transformSystemModule=function(t){var r=t.startLexicalEnvironment,n=t.endLexicalEnvironment,i=t.hoistVariableDeclaration,a=t.getCompilerOptions(),o=t.getEmitResolver(),s=t.getEmitHost(),c=t.onSubstituteNode,u=t.onEmitNode;t.onSubstituteNode=function(t,r){return function(e){return g&&e.id&&g[e.id]}(r=c(t,r))?r:1===t?function(t){switch(t.kind){case 72:return function(t){if(4096&e.getEmitFlags(t)){var r=e.getExternalHelpersModuleName(l);return r?e.createPropertyAccess(r,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var n=o.getReferencedImportDeclaration(t);if(n){if(e.isImportClause(n))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(n.parent),e.createIdentifier("default")),t);if(e.isImportSpecifier(n))return e.setTextRange(e.createPropertyAccess(e.getGeneratedNameForNode(n.parent.parent.parent),e.getSynthesizedClone(n.propertyName||n.name)),t)}}return t}(t);case 204:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var r=V(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];n=j(o,W(n))}return n}}return t}(t);case 202:case 203:return function(t){if((44===t.operator||45===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var r=V(t.operand);if(r){for(var n=203===t.kind?e.setTextRange(e.createPrefix(t.operator,t.operand),t):t,i=0,a=r;i<a.length;i++){var o=a[i];n=j(o,W(n))}return 203===t.kind&&(n=44===t.operator?e.createSubtract(W(n),e.createLiteral(1)):e.createAdd(W(n),e.createLiteral(1))),n}}return t}(t)}return t}(r):4===t?function(t){switch(t.kind){case 276:return function(t){var r=t.name;if(!e.isGeneratedIdentifier(r)&&!e.isLocalName(r)){var n=o.getReferencedImportDeclaration(r);if(n){if(e.isImportClause(n))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(r),e.createPropertyAccess(e.getGeneratedNameForNode(n.parent),e.createIdentifier("default"))),t);if(e.isImportSpecifier(n))return e.setTextRange(e.createPropertyAssignment(e.getSynthesizedClone(r),e.createPropertyAccess(e.getGeneratedNameForNode(n.parent.parent.parent),e.getSynthesizedClone(n.propertyName||n.name))),t)}}return t}(t)}return t}(r):r},t.onEmitNode=function(t,r,n){if(279===r.kind){var i=e.getOriginalNodeId(r);l=r,d=h[i],_=v[i],(g=b[i])&&delete b[i],u(t,r,n),l=void 0,d=void 0,_=void 0,g=void 0}else u(t,r,n)},t.enableSubstitution(72),t.enableSubstitution(276),t.enableSubstitution(204),t.enableSubstitution(202),t.enableSubstitution(203),t.enableEmitNotification(279);var l,d,_,f,p,m,g,h=[],y=[],v=[],b=[];return e.chainBundle(function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,a)||16777216&t.transformFlags))return t;var i=e.getOriginalNodeId(t);l=t,m=t,d=h[i]=e.collectExternalModuleInfo(t,o,a),_=e.createUniqueName("exports"),v[i]=_,f=e.createUniqueName("context");var c=function(t){for(var r=e.createMap(),n=[],i=0,c=t;i<c.length;i++){var u=c[i],d=e.getExternalModuleNameLiteral(u,l,s,o,a);if(d){var _=d.text,f=r.get(_);void 0!==f?n[f].externalImports.push(u):(r.set(_,n.length),n.push({name:d,externalImports:[u]}))}}return n}(d.externalImports),u=function(t,i){var o=[];r();var s=e.getStrictOptionValue(a,"alwaysStrict")||!a.noImplicitUseStrict&&e.isExternalModule(l),c=e.addPrologue(o,t.statements,s,D);o.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("__moduleName",void 0,e.createLogicalAnd(f,e.createPropertyAccess(f,"id")))]))),e.visitNode(d.externalHelpersImportDeclaration,D,e.isStatement);var u=e.visitNodes(t.statements,D,e.isStatement,c);e.addRange(o,p),e.addStatementsAfterPrologue(o,n());var _=function(t){if(d.hasExportStarsToExportValues){if(!d.exportedNames&&0===d.exportSpecifiers.size){for(var r=!1,n=0,i=d.externalImports;n<i.length;n++){var a=i[n];if(255===a.kind&&a.exportClause){r=!0;break}}if(!r){var o=x(void 0);return t.push(o),o.name}}var s=[];if(d.exportedNames)for(var c=0,u=d.exportedNames;c<u.length;c++){var l=u[c];"default"!==l.escapedText&&s.push(e.createPropertyAssignment(e.createLiteral(l),e.createTrue()))}for(var _=0,f=d.externalImports;_<f.length;_++){var a=f[_];if(255===a.kind&&a.exportClause)for(var p=0,m=a.exportClause.elements;p<m.length;p++){var g=m[p];s.push(e.createPropertyAssignment(e.createLiteral(e.idText(g.name||g.propertyName)),e.createTrue()))}}var h=e.createUniqueName("exportedNames");t.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(h,void 0,e.createObjectLiteral(s,!0))])));var y=x(h);return t.push(y),y.name}}(o),m=e.createObjectLiteral([e.createPropertyAssignment("setters",S(_,i)),e.createPropertyAssignment("execute",e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock(u,!0)))]);return m.multiLine=!0,o.push(e.createReturn(m)),e.createBlock(o,!0)}(t,c),y=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,_),e.createParameter(void 0,void 0,void 0,f)],void 0,u),k=e.tryGetModuleNameFromFile(t,s,a),C=e.createArrayLiteral(e.map(c,function(e){return e.name})),T=e.setEmitFlags(e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createExpressionStatement(e.createCall(e.createPropertyAccess(e.createIdentifier("System"),"register"),void 0,k?[k,C,y]:[C,y]))]),t.statements)),1024);return a.outFile||a.out||e.moveEmitHelpers(T,u,function(e){return!e.scoped}),g&&(b[i]=g,g=void 0),l=void 0,d=void 0,_=void 0,f=void 0,p=void 0,m=void 0,e.aggregateTransformFlags(T)});function x(t){var r=e.createUniqueName("exportStar"),n=e.createIdentifier("m"),i=e.createIdentifier("n"),a=e.createIdentifier("exports"),o=e.createStrictInequality(i,e.createLiteral("default"));return t&&(o=e.createLogicalAnd(o,e.createLogicalNot(e.createCall(e.createPropertyAccess(t,"hasOwnProperty"),void 0,[i])))),e.createFunctionDeclaration(void 0,void 0,void 0,r,void 0,[e.createParameter(void 0,void 0,void 0,n)],void 0,e.createBlock([e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createObjectLiteral([]))])),e.createForIn(e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0)]),n,e.createBlock([e.setEmitFlags(e.createIf(o,e.createExpressionStatement(e.createAssignment(e.createElementAccess(a,i),e.createElementAccess(n,i)))),1)])),e.createExpressionStatement(e.createCall(_,void 0,[a]))],!0))}function S(t,r){for(var n=[],i=0,a=r;i<a.length;i++){for(var o=a[i],s=e.forEach(o.externalImports,function(t){return e.getLocalNameForExternalImport(t,l)}),c=s?e.getGeneratedNameForNode(s):e.createUniqueName(""),u=[],d=0,f=o.externalImports;d<f.length;d++){var p=f[d],m=e.getLocalNameForExternalImport(p,l);switch(p.kind){case 249:if(!p.importClause)break;case 248:e.Debug.assert(void 0!==m),u.push(e.createExpressionStatement(e.createAssignment(m,c)));break;case 255:if(e.Debug.assert(void 0!==m),p.exportClause){for(var g=[],h=0,y=p.exportClause.elements;h<y.length;h++){var v=y[h];g.push(e.createPropertyAssignment(e.createLiteral(e.idText(v.name)),e.createElementAccess(c,e.createLiteral(e.idText(v.propertyName||v.name)))))}u.push(e.createExpressionStatement(e.createCall(_,void 0,[e.createObjectLiteral(g,!0)])))}else u.push(e.createExpressionStatement(e.createCall(t,void 0,[c])))}}n.push(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,c)],void 0,e.createBlock(u,!0)))}return e.createArrayLiteral(n,!0)}function D(t){switch(t.kind){case 249:return function(t){var r;if(t.importClause&&i(e.getLocalNameForExternalImport(t,l)),w(t)){var n=e.getOriginalNodeId(t);y[n]=P(y[n],t)}else r=P(r,t);return e.singleOrMany(r)}(t);case 248:return function(t){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),i(e.getLocalNameForExternalImport(t,l)),w(t)){var n=e.getOriginalNodeId(t);y[n]=F(y[n],t)}else r=F(r,t);return e.singleOrMany(r)}(t);case 255:return;case 254:return function(t){if(!t.isExportEquals){var r=e.visitNode(t.expression,U,e.isExpression),n=t.original;if(!n||!w(n))return B(e.createIdentifier("default"),r,!0);var i=e.getOriginalNodeId(t);y[i]=R(y[i],e.createIdentifier("default"),r,!0)}}(t);default:return z(t)}}function k(t){if(e.isBindingPattern(t.name))for(var r=0,n=t.name.elements;r<n.length;r++){var a=n[r];e.isOmittedExpression(a)||k(a)}else i(e.getSynthesizedClone(t.name))}function C(t){return 0==(2097152&e.getEmitFlags(t))&&(279===m.kind||0==(3&e.getOriginalNode(t).flags))}function T(r,n){var i=n?E:N;return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,U,t,0,!1,i):r.initializer?i(r.name,e.visitNode(r.initializer,U,e.isExpression)):r.name}function E(e,t,r){return A(e,t,r,!0)}function N(e,t,r){return A(e,t,r,!1)}function A(t,r,n,a){return i(e.getSynthesizedClone(t)),a?j(t,W(e.setTextRange(e.createAssignment(t,r),n))):W(e.setTextRange(e.createAssignment(t,r),n))}function w(t){return 0!=(4194304&e.getEmitFlags(t))}function P(e,t){if(d.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=L(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 251:e=L(e,n);break;case 252:for(var i=0,a=n.elements;i<a.length;i++)e=L(e,a[i])}return e}function F(e,t){return d.exportEquals?e:L(e,t)}function I(e,t,r){if(d.exportEquals)return e;for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];(a.initializer||r)&&(e=M(e,a,r))}return e}function M(t,r,n){if(d.exportEquals)return t;if(e.isBindingPattern(r.name))for(var i=0,a=r.name.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||(t=M(t,o,n))}else if(!e.isGeneratedIdentifier(r.name)){var s=void 0;n&&(t=R(t,r.name,e.getLocalName(r)),s=e.idText(r.name)),t=L(t,r,s)}return t}function O(t,r){if(d.exportEquals)return t;var n;if(e.hasModifier(r,1)){var i=e.hasModifier(r,512)?e.createLiteral("default"):r.name;t=R(t,i,e.getLocalName(r)),n=e.getTextOfIdentifierOrLiteral(i)}return r.name&&(t=L(t,r,n)),t}function L(t,r,n){if(d.exportEquals)return t;var i=e.getDeclarationName(r),a=d.exportSpecifiers.get(e.idText(i));if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];c.name.escapedText!==n&&(t=R(t,c.name,i))}return t}function R(t,r,n,i){return t=e.append(t,B(r,n,i))}function B(t,r,n){var i=e.createExpressionStatement(j(t,r));return e.startOnNewLine(i),n||e.setEmitFlags(i,1536),i}function j(t,r){var n=e.isIdentifier(t)?e.createLiteral(t):t;return e.setEmitFlags(r,1536|e.getEmitFlags(r)),e.setCommentRange(e.createCall(_,void 0,[n,r]),r)}function z(r){switch(r.kind){case 219:return function(t){if(!C(t.declarationList))return e.visitNode(t,U,e.isStatement);for(var r,n,i=e.hasModifier(t,1),a=w(t),o=0,s=t.declarationList.declarations;o<s.length;o++){var c=s[o];c.initializer?r=e.append(r,T(c,i&&!a)):k(c)}if(r&&(n=e.append(n,e.setTextRange(e.createExpressionStatement(e.inlineExpressions(r)),t))),a){var u=e.getOriginalNodeId(t);y[u]=I(y[u],t,i)}else n=I(n,t,!1);return e.singleOrMany(n)}(r);case 239:return function(r){if(p=e.hasModifier(r,1)?e.append(p,e.updateFunctionDeclaration(r,r.decorators,e.visitNodes(r.modifiers,K,e.isModifier),r.asteriskToken,e.getDeclarationName(r,!0,!0),void 0,e.visitNodes(r.parameters,U,e.isParameterDeclaration),void 0,e.visitNode(r.body,U,e.isBlock))):e.append(p,e.visitEachChild(r,U,t)),w(r)){var n=e.getOriginalNodeId(r);y[n]=O(y[n],r)}else p=O(p,r)}(r);case 240:return function(t){var r,n=e.getLocalName(t);if(i(n),r=e.append(r,e.setTextRange(e.createExpressionStatement(e.createAssignment(n,e.setTextRange(e.createClassExpression(void 0,t.name,void 0,e.visitNodes(t.heritageClauses,U,e.isHeritageClause),e.visitNodes(t.members,U,e.isClassElement)),t))),t)),w(t)){var a=e.getOriginalNodeId(t);y[a]=O(y[a],t)}else r=O(r,t);return e.singleOrMany(r)}(r);case 225:return function(t){var r=m;return m=t,t=e.updateFor(t,t.initializer&&J(t.initializer),e.visitNode(t.condition,U,e.isExpression),e.visitNode(t.incrementor,U,e.isExpression),e.visitNode(t.statement,z,e.isStatement)),m=r,t}(r);case 226:return function(t){var r=m;return m=t,t=e.updateForIn(t,J(t.initializer),e.visitNode(t.expression,U,e.isExpression),e.visitNode(t.statement,z,e.isStatement,e.liftToBlock)),m=r,t}(r);case 227:return function(t){var r=m;return m=t,t=e.updateForOf(t,t.awaitModifier,J(t.initializer),e.visitNode(t.expression,U,e.isExpression),e.visitNode(t.statement,z,e.isStatement,e.liftToBlock)),m=r,t}(r);case 223:return function(t){return e.updateDo(t,e.visitNode(t.statement,z,e.isStatement,e.liftToBlock),e.visitNode(t.expression,U,e.isExpression))}(r);case 224:return function(t){return e.updateWhile(t,e.visitNode(t.expression,U,e.isExpression),e.visitNode(t.statement,z,e.isStatement,e.liftToBlock))}(r);case 233:return function(t){return e.updateLabel(t,t.label,e.visitNode(t.statement,z,e.isStatement,e.liftToBlock))}(r);case 231:return function(t){return e.updateWith(t,e.visitNode(t.expression,U,e.isExpression),e.visitNode(t.statement,z,e.isStatement,e.liftToBlock))}(r);case 232:return function(t){return e.updateSwitch(t,e.visitNode(t.expression,U,e.isExpression),e.visitNode(t.caseBlock,z,e.isCaseBlock))}(r);case 246:return function(t){var r=m;return m=t,t=e.updateCaseBlock(t,e.visitNodes(t.clauses,z,e.isCaseOrDefaultClause)),m=r,t}(r);case 271:return function(t){return e.updateCaseClause(t,e.visitNode(t.expression,U,e.isExpression),e.visitNodes(t.statements,z,e.isStatement))}(r);case 272:case 235:return function(r){return e.visitEachChild(r,z,t)}(r);case 274:return function(t){var r=m;return m=t,t=e.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,z,e.isBlock)),m=r,t}(r);case 218:return function(r){var n=m;return m=r,r=e.visitEachChild(r,z,t),m=n,r}(r);case 310:return function(t){if(w(t)&&219===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasModifier(t.original,1);y[r]=I(y[r],t.original,n)}return t}(r);case 311:return function(t){var r=e.getOriginalNodeId(t),n=y[r];if(n)return delete y[r],e.append(n,t);var i=e.getOriginalNode(t);return e.isModuleOrEnumDeclaration(i)?e.append(L(n,i),t):t}(r);default:return U(r)}}function J(r){if(function(t){return e.isVariableDeclarationList(t)&&C(t)}(r)){for(var n=void 0,i=0,a=r.declarations;i<a.length;i++){var o=a[i];n=e.append(n,T(o,!1)),o.initializer||k(o)}return n?e.inlineExpressions(n):e.createOmittedExpression()}return e.visitEachChild(r,z,t)}function U(r){return 1024&r.transformFlags&&204===r.kind?function(r){return q(r.left)?e.flattenDestructuringAssignment(r,U,t,0,!0):e.visitEachChild(r,U,t)}(r):e.isImportCall(r)?function(t){return e.createCall(e.createPropertyAccess(f,e.createIdentifier("import")),void 0,e.some(t.arguments)?[e.visitNode(t.arguments[0],U)]:[])}(r):2048&r.transformFlags||16777216&r.transformFlags?e.visitEachChild(r,U,t):r}function q(t){if(e.isAssignmentExpression(t,!0))return q(t.left);if(e.isSpreadElement(t))return q(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,q);if(e.isArrayLiteralExpression(t))return e.some(t.elements,q);if(e.isShorthandPropertyAssignment(t))return q(t.name);if(e.isPropertyAssignment(t))return q(t.initializer);if(e.isIdentifier(t)){var r=o.getReferencedExportContainer(t);return void 0!==r&&279===r.kind}return!1}function K(e){switch(e.kind){case 85:case 80:return}return e}function V(t){var r;if(!e.isGeneratedIdentifier(t)){var n=o.getReferencedImportDeclaration(t)||o.getReferencedValueDeclaration(t);if(n){var i=o.getReferencedExportContainer(t,!1);i&&279===i.kind&&(r=e.append(r,e.getDeclarationName(n))),r=e.addRange(r,d&&d.exportedBindings[e.getOriginalNodeId(n)])}}return r}function W(t){return void 0===g&&(g=[]),g[e.getNodeId(t)]=!0,t}}}(d||(d={})),function(e){e.transformES2015Module=function(t){var r,n=t.getCompilerOptions(),i=t.onEmitNode,a=t.onSubstituteNode;return t.onEmitNode=function(t,n,a){e.isSourceFile(n)?(r=n,i(t,n,a),r=void 0):i(t,n,a)},t.onSubstituteNode=function(t,n){return n=a(t,n),e.isIdentifier(n)&&1===t?function(t){if(4096&e.getEmitFlags(t)){var n=e.getExternalHelpersModuleName(r);if(n)return e.createPropertyAccess(n,t)}return t}(n):n},t.enableEmitNotification(279),t.enableSubstitution(72),e.chainBundle(function(r){if(r.isDeclarationFile)return r;if(e.isExternalModule(r)||n.isolatedModules){var i=e.getOrCreateExternalHelpersModuleNameIfNeeded(r,n);if(i){var a=[],s=e.addPrologue(a,r.statements),c=e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(i)),e.createLiteral(e.externalHelpersModuleNameText));return e.addEmitFlags(c,67108864),e.append(a,c),e.addRange(a,e.visitNodes(r.statements,o,e.isStatement,s)),e.updateSourceFileNode(r,e.setTextRange(e.createNodeArray(a),r.statements))}return e.visitEachChild(r,o,t)}return r});function o(e){switch(e.kind){case 248:return;case 254:return function(e){return e.isExportEquals?void 0:e}(e)}return e}}}(d||(d={})),function(e){function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?r:e.isSetAccessor(t)||e.isGetAccessor(t)?function(r){var n;n=159===t.kind?e.hasModifier(t,32)?r.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.hasModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:n,errorNode:t.name,typeName:t.name}}:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?function(r){var n;switch(t.kind){case 161:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 160:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 162:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 156:case 155:n=e.hasModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:240===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 239:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t)&&e.hasModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 157:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 161:case 166:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 160:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 162:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 156:case 155:return e.hasModifier(t.parent,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:240===t.parent.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 239:case 165:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: "+e.SyntaxKind[t.parent.kind])}}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?function(){var r;switch(t.parent.kind){case 240:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 241:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 161:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 160:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 156:case 155:r=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:240===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 239:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 242:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){var r;r=240===t.parent.parent.kind?e.isHeritageClause(t.parent)&&109===t.parent.token?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;return{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[t.kind]);function r(r){var n=function(r){return 237===t.kind||186===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:154===t.kind||153===t.kind||151===t.kind&&e.hasModifier(t.parent,8)?e.hasModifier(t,32)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:240===t.parent.kind||151===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.hasModifier(r,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:240===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?function(t){var n=function(t){return e.hasModifier(r,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:240===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(d||(d={})),function(e){e.getDeclarationDiagnostics=function(t,n,i){if(i&&e.isSourceFileJS(i))return[];var a=t.getCompilerOptions();return e.transformNodes(n,t,a,i?[i]:e.filter(t.getSourceFiles(),e.isSourceFileNotJS),[r],!1).diagnostics};var t=531469;function r(r){var o,s,c,u,l,d,_,f,p,m,g=function(){return e.Debug.fail("Diagnostic emitted without context")},h=g,y=!0,v=!1,b=!1,x=!1,S=!1,D=r.getEmitHost(),k={trackSymbol:function(e,t,r){if(262144&e.flags)return;P(C.isSymbolAccessible(e,t,r,!0)),w(C.getTypeReferenceDirectivesForSymbol(e,r))},reportInaccessibleThisError:function(){_&&r.addDiagnostic(e.createDiagnosticForNode(_,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(_),"this"))},reportInaccessibleUniqueSymbolError:function(){_&&r.addDiagnostic(e.createDiagnosticForNode(_,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(_),"unique symbol"))},reportPrivateInBaseOfClassExpression:function(t){_&&r.addDiagnostic(e.createDiagnosticForNode(_,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){_&&r.addDiagnostic(e.createDiagnosticForNode(_,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,e.declarationNameToString(_),t))},moduleResolverHost:D,trackReferencedAmbientModule:function(t,r){var n=C.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return w(n);var i=e.getSourceFileOfNode(t);p.set(""+e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){v||(d||(d=[])).push(e)}},C=r.getEmitResolver(),T=r.getCompilerOptions(),E=e.getNewLineCharacter(T),N=T.noResolve,A=T.stripInternal;return function(t){if(279===t.kind&&(t.isDeclarationFile||e.isSourceFileJS(t)))return t;if(280===t.kind){v=!0,p=e.createMap(),m=e.createMap();var n=!1,i=e.createBundle(e.map(t.sourceFiles,function(t){if(!t.isDeclarationFile&&!e.isSourceFileJS(t)){if(n=n||t.hasNoDefaultLib,f=t,o=t,c=void 0,l=!1,u=e.createMap(),h=g,x=!1,S=!1,F(t,p),I(t,m),e.isExternalModule(t)){b=!1,y=!1;var i=e.visitNodes(t.statements,Q),a=e.updateSourceFileNode(t,[e.createModuleDeclaration([],[e.createModifier(125)],e.createLiteral(e.getResolvedExternalModuleName(r.getEmitHost(),t)),e.createModuleBlock(e.setTextRange(e.createNodeArray(W(i)),t.statements)))],!0,[],[],!1,[]);return a}y=!0;var s=e.visitNodes(t.statements,Q);return e.updateSourceFileNode(t,W(s),!0,[],[],!1,[])}}),e.mapDefined(t.prepends,function(t){if(282===t.kind)return e.createUnparsedSourceFile(t.declarationText,t.declarationMapPath,t.declarationMapText)}));i.syntheticFileReferences=[],i.syntheticTypeReferences=M(),i.syntheticLibReferences=P(),i.hasNoDefaultLib=n;var a=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,D,!0).declarationFilePath)),_=L(i.syntheticFileReferences,a);return p.forEach(_),i}y=!0,x=!1,S=!1,o=t,f=t,h=g,v=!1,b=!1,l=!1,c=void 0,u=e.createMap(),s=void 0,p=F(f,e.createMap()),m=I(f,e.createMap());var k=[],C=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(t,D,!0).declarationFilePath)),T=L(k,C),E=e.visitNodes(t.statements,Q),N=e.setTextRange(e.createNodeArray(W(E)),t.statements);p.forEach(T);var A=e.filter(N,e.isAnyImportSyntax);e.isExternalModule(t)&&(!b||x&&!S)&&(N=e.setTextRange(e.createNodeArray(N.concat([e.createExportDeclaration(void 0,void 0,e.createNamedExports([]),void 0)])),N));var w=e.updateSourceFileNode(t,N,!0,k,M(),t.hasNoDefaultLib,P());return w.exportedModulesFromDeclarationEmit=d,w;function P(){return e.map(e.arrayFrom(m.keys()),function(e){return{fileName:e,pos:-1,end:-1}})}function M(){return s?e.mapDefined(e.arrayFrom(s.keys()),O):[]}function O(t){if(A)for(var r=0,n=A;r<n.length;r++){var i=n[r];if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference)){var a=i.moduleReference.expression;if(e.isStringLiteralLike(a)&&a.text===t)return}else if(e.isImportDeclaration(i)&&e.isStringLiteral(i.moduleSpecifier)&&i.moduleSpecifier.text===t)return}return{fileName:t,pos:-1,end:-1}}function L(r,n){return function(i){var a;if(i.isDeclarationFile)a=i.fileName;else{if(v&&e.contains(t.sourceFiles,i))return;var o=e.getOutputPathsFor(i,D,!0);a=o.declarationFilePath||o.jsFilePath||i.fileName}if(a){var s=e.getRelativePathToDirectoryOrUrl(n,a,D.getCurrentDirectory(),D.getCanonicalFileName,!1);if(e.startsWith(s,"./")&&e.hasExtension(s)&&(s=s.substring(2)),e.startsWith(s,"node_modules/")||-1!==s.indexOf("/node_modules/"))return;r.push({pos:-1,end:-1,fileName:s})}}}};function w(t){if(t){s=s||e.createMap();for(var r=0,n=t;r<n.length;r++){var i=n[r];s.set(i,!0)}}}function P(t){if(0===t.accessibility){if(t&&t.aliasesToMakeVisible)if(c)for(var n=0,i=t.aliasesToMakeVisible;n<i.length;n++){var a=i[n];e.pushIfUnique(c,a)}else c=t.aliasesToMakeVisible}else{var o=h(t);o&&(o.typeName?r.addDiagnostic(e.createDiagnosticForNode(t.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),t.errorSymbolName,t.errorModuleName)):r.addDiagnostic(e.createDiagnosticForNode(t.errorNode||o.errorNode,o.diagnosticMessage,t.errorSymbolName,t.errorModuleName)))}}function F(t,r){return N||e.isSourceFileJS(t)?r:(e.forEach(t.referencedFiles,function(n){var i=e.tryResolveScriptReference(D,t,n);i&&r.set(""+e.getOriginalNodeId(i),i)}),r)}function I(t,r){return e.forEach(t.libReferenceDirectives,function(e){D.getLibFileFromReference(e)&&r.set(e.fileName.toLocaleLowerCase(),!0)}),r}function M(t,r){var i;l||(i=h,h=e.createGetSymbolAccessibilityDiagnosticForNode(t));var a=e.updateParameter(t,void 0,n(t,r),t.dotDotDotToken,function t(r){return 72===r.kind?r:185===r.kind?e.updateArrayBindingPattern(r,e.visitNodes(r.elements,n)):e.updateObjectBindingPattern(r,e.visitNodes(r.elements,n));function n(r){return 210===r.kind?r:e.updateBindingElement(r,r.dotDotDotToken,r.propertyName,t(r.name),O(r)?r.initializer:void 0)}}(t.name),C.isOptionalParameter(t)?t.questionToken||e.createToken(56):void 0,R(t,t.type,!0),L(t));return l||(h=i),a}function O(t){return function(t){switch(t.kind){case 154:case 153:return!e.hasModifier(t,8);case 151:case 237:return!0}return!1}(t)&&C.isLiteralConstDeclaration(e.getParseTreeNode(t))}function L(t){if(O(t))return C.createLiteralConstValue(e.getParseTreeNode(t),k)}function R(r,n,i){if((i||!e.hasModifier(r,8))&&!O(r)){var a,s=151===r.kind&&(C.isRequiredInitializedParameter(r)||C.isOptionalUninitializedParameterProperty(r));return n&&!s?e.visitNode(n,X):e.getParseTreeNode(r)?159===r.kind?e.createKeywordTypeNode(120):(_=r.name,l||(a=h,h=e.createGetSymbolAccessibilityDiagnosticForNode(r)),237===r.kind||186===r.kind?c(C.createTypeOfDeclaration(r,o,t,k)):151===r.kind||154===r.kind||153===r.kind?r.initializer?c(C.createTypeOfDeclaration(r,o,t,k,s)||C.createTypeOfExpression(r.initializer,o,t,k)):c(C.createTypeOfDeclaration(r,o,t,k,s)):c(C.createReturnTypeOfSignatureDeclaration(r,o,t,k))):n?e.visitNode(n,X):e.createKeywordTypeNode(120)}function c(t){return _=void 0,l||(h=a),t||e.createKeywordTypeNode(120)}}function B(t){switch((t=e.getParseTreeNode(t)).kind){case 239:case 244:case 241:case 240:case 242:case 243:return!C.isDeclarationVisible(t);case 237:return!j(t);case 248:case 249:case 255:case 254:return!1}return!1}function j(t){return!e.isOmittedExpression(t)&&(e.isBindingPattern(t.name)?e.some(t.name.elements,j):C.isDeclarationVisible(t))}function z(t,r,n){if(!e.hasModifier(t,8)){var i=e.map(r,function(e){return M(e,n)});if(i)return e.createNodeArray(i,r.hasTrailingComma)}}function J(t,r){return e.hasModifier(t,8)?void 0:e.visitNodes(r,X)}function U(t){return e.isSourceFile(t)||e.isTypeAliasDeclaration(t)||e.isModuleDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionLike(t)||e.isIndexSignatureDeclaration(t)||e.isMappedTypeNode(t)}function q(e,t){P(C.isEntityNameVisible(e,t)),w(C.getTypeReferenceDirectivesForEntityName(e))}function K(t,r){return e.hasJSDocNodes(t)&&e.hasJSDocNodes(r)&&(t.jsDoc=r.jsDoc),e.setCommentRange(t,e.getCommentRange(r))}function V(t,n){if(n){if(b=b||244!==t.kind&&183!==t.kind,e.isStringLiteralLike(n))if(v){var i=e.getExternalModuleNameFromDeclaration(r.getEmitHost(),C,t);if(i)return e.createLiteral(i)}else{var a=C.getSymbolOfExternalModuleSpecifier(n);a&&(d||(d=[])).push(a)}return n}}function W(t){for(;e.length(c);){var r=c.shift();if(!e.isLateVisibilityPaintedStatement(r))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(e.SyntaxKind?e.SyntaxKind[r.kind]:r.kind));var n=Y(r,!0);u.set(""+e.getOriginalNodeId(r),n)}return e.visitNodes(t,function(t){if(e.isLateVisibilityPaintedStatement(t)){var r=""+e.getOriginalNodeId(t);if(u.has(r)){var n=u.get(r);return u.delete(r),n&&e.isSourceFile(t.parent)&&((e.isArray(n)?e.some(n,G):G(n))&&(x=!0),(e.isArray(n)?e.some(n,H):H(n))&&(b=!0)),n}}return t})}function H(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasModifier(t,1)}function G(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasModifier(t,1)||e.isAmbientModule(t))}function X(t){if(!ee(t)){if(e.isDeclaration(t)){if(B(t))return;if(e.hasDynamicName(t)&&!C.isLateBound(e.getParseTreeNode(t)))return}if(!(e.isFunctionLike(t)&&C.isImplementationOfOverload(t)||e.isSemicolonClassElement(t))){var n;U(t)&&(n=o,o=t);var i=h;if((e.isMethodDeclaration(t)||e.isMethodSignature(t))&&e.hasModifier(t,8)){if(t.symbol&&t.symbol.declarations&&t.symbol.declarations[0]!==t)return;return x(e.createProperty(void 0,re(t),t.name,void 0,void 0,void 0))}var a=e.canProduceDiagnostics(t);a&&!l&&(h=e.createGetSymbolAccessibilityDiagnosticForNode(t)),e.isTypeQueryNode(t)&&q(t.exprName,o);var s=l,c=(168===t.kind||181===t.kind)&&242!==t.parent.kind;if(c&&(l=!0),function(e){switch(e.kind){case 161:case 157:case 156:case 158:case 159:case 154:case 153:case 155:case 160:case 162:case 237:case 150:case 211:case 164:case 175:case 165:case 166:case 183:return!0}return!1}(t))switch(t.kind){case 211:(e.isEntityName(t.expression)||e.isEntityNameExpression(t.expression))&&q(t.expression,o);var u=e.visitEachChild(t,X,r);return x(e.updateExpressionWithTypeArguments(u,e.parenthesizeTypeParameters(u.typeArguments),u.expression));case 164:q(t.typeName,o);u=e.visitEachChild(t,X,r);return x(e.updateTypeReferenceNode(u,u.typeName,e.parenthesizeTypeParameters(u.typeArguments)));case 161:return x(e.updateConstructSignature(t,J(t,t.typeParameters),z(t,t.parameters),R(t,t.type)));case 157:var d=e.hasModifier(t,8),f=e.createSignatureDeclaration(157,d?void 0:J(t,t.typeParameters),d?void 0:z(t,t.parameters,0),void 0);return f.modifiers=e.createNodeArray(re(t)),x(f);case 156:var p=e.createSignatureDeclaration(155,J(t,t.typeParameters),z(t,t.parameters),R(t,t.type));return p.name=t.name,p.modifiers=e.createNodeArray(re(t)),p.questionToken=t.questionToken,x(p);case 158:case 159:return x(ne(t));case 154:return x(e.updateProperty(t,void 0,re(t),t.name,t.questionToken,e.hasModifier(t,8)?void 0:R(t,t.type),L(t)));case 153:return x(e.updatePropertySignature(t,re(t),t.name,t.questionToken,e.hasModifier(t,8)?void 0:R(t,t.type),L(t)));case 155:return x(e.updateMethodSignature(t,J(t,t.typeParameters),z(t,t.parameters),R(t,t.type),t.name,t.questionToken));case 160:return x(e.updateCallSignature(t,J(t,t.typeParameters),z(t,t.parameters),R(t,t.type)));case 162:return x(e.updateIndexSignature(t,void 0,re(t),z(t,t.parameters),e.visitNode(t.type,X)||e.createKeywordTypeNode(120)));case 237:return e.isBindingPattern(t.name)?Z(t.name):(c=!0,l=!0,x(e.updateVariableDeclaration(t,t.name,R(t,t.type),L(t))));case 150:return function(t){return 156===t.parent.kind&&e.hasModifier(t.parent,8)}(t)&&(t.default||t.constraint)?x(e.updateTypeParameterDeclaration(t,t.name,void 0,void 0)):x(e.visitEachChild(t,X,r));case 175:var m=e.visitNode(t.checkType,X),g=e.visitNode(t.extendsType,X),y=o;o=t.trueType;var v=e.visitNode(t.trueType,X);o=y;var b=e.visitNode(t.falseType,X);return x(e.updateConditionalTypeNode(t,m,g,v,b));case 165:return x(e.updateFunctionTypeNode(t,e.visitNodes(t.typeParameters,X),z(t,t.parameters),e.visitNode(t.type,X)));case 166:return x(e.updateConstructorTypeNode(t,e.visitNodes(t.typeParameters,X),z(t,t.parameters),e.visitNode(t.type,X)));case 183:return e.isLiteralImportTypeNode(t)?x(e.updateImportTypeNode(t,e.updateLiteralTypeNode(t.argument,V(t,t.argument.literal)),t.qualifier,e.visitNodes(t.typeArguments,X,e.isTypeNode),t.isTypeOf)):x(t);default:e.Debug.assertNever(t,"Attempted to process unhandled node kind: "+e.SyntaxKind[t.kind])}return x(e.visitEachChild(t,X,r))}}function x(r){return r&&a&&e.hasDynamicName(t)&&function(t){var r;l||(r=h,h=e.createGetSymbolAccessibilityDiagnosticForNodeName(t));_=t.name,e.Debug.assert(C.isLateBound(e.getParseTreeNode(t))),q(t.name.expression,o),l||(h=r);_=void 0}(t),U(t)&&(o=n),a&&!l&&(h=i),c&&(l=s),r===t?r:r&&e.setOriginalNode(K(r,t),t)}}function Q(r){if(function(e){switch(e.kind){case 239:case 244:case 248:case 241:case 240:case 242:case 243:case 219:case 249:case 255:case 254:return!0}return!1}(r)&&!ee(r)){switch(r.kind){case 255:return e.isSourceFile(r.parent)&&(b=!0,S=!0),e.updateExportDeclaration(r,void 0,r.modifiers,r.exportClause,V(r,r.moduleSpecifier));case 254:if(e.isSourceFile(r.parent)&&(b=!0,S=!0),72===r.expression.kind)return r;var n=e.createOptimisticUniqueName("_default");h=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:r}};var i=e.createVariableDeclaration(n,C.createTypeOfExpression(r.expression,r,t,k),void 0);return[e.createVariableStatement(y?[e.createModifier(125)]:[],e.createVariableDeclarationList([i],2)),e.updateExportAssignment(r,r.decorators,r.modifiers,n)]}var a=Y(r);return u.set(""+e.getOriginalNodeId(r),a),r}}function Y(r,n){if(!ee(r)){switch(r.kind){case 248:return function(t){if(C.isDeclarationVisible(t)){if(259===t.moduleReference.kind){var r=e.getExternalModuleImportEqualsDeclarationExpression(t);return e.updateImportEqualsDeclaration(t,void 0,t.modifiers,t.name,e.updateExternalModuleReference(t.moduleReference,V(t,r)))}var n=h;return h=e.createGetSymbolAccessibilityDiagnosticForNode(t),q(t.moduleReference,o),h=n,t}}(r);case 249:return function(t){if(!t.importClause)return e.updateImportDeclaration(t,void 0,t.modifiers,t.importClause,V(t,t.moduleSpecifier));var r=t.importClause&&t.importClause.name&&C.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&e.updateImportDeclaration(t,void 0,t.modifiers,e.updateImportClause(t.importClause,r,void 0),V(t,t.moduleSpecifier));if(251===t.importClause.namedBindings.kind){var n=C.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||n?e.updateImportDeclaration(t,void 0,t.modifiers,e.updateImportClause(t.importClause,r,n),V(t,t.moduleSpecifier)):void 0}var i=e.mapDefined(t.importClause.namedBindings.elements,function(e){return C.isDeclarationVisible(e)?e:void 0});return i&&i.length||r?e.updateImportDeclaration(t,void 0,t.modifiers,e.updateImportClause(t.importClause,r,i&&i.length?e.updateNamedImports(t.importClause.namedBindings,i):void 0),V(t,t.moduleSpecifier)):void 0}(r)}if(!(e.isDeclaration(r)&&B(r)||e.isFunctionLike(r)&&C.isImplementationOfOverload(r))){var i;U(r)&&(i=o,o=r);var a=e.canProduceDiagnostics(r),s=h;a&&(h=e.createGetSymbolAccessibilityDiagnosticForNode(r));var c=y;switch(r.kind){case 242:return F(e.updateTypeAliasDeclaration(r,void 0,re(r,n),r.name,e.visitNodes(r.typeParameters,X,e.isTypeParameterDeclaration),e.visitNode(r.type,X,e.isTypeNode)));case 241:return F(e.updateInterfaceDeclaration(r,void 0,re(r,n),r.name,J(r,r.typeParameters),ie(r.heritageClauses),e.visitNodes(r.members,X)));case 239:var l=F(e.updateFunctionDeclaration(r,void 0,re(r,n),void 0,r.name,J(r,r.typeParameters),z(r,r.parameters),R(r,r.type),void 0));if(l&&C.isExpandoFunctionDeclaration(r)){var d=e.mapDefined(C.getPropertiesOfContainerFunction(r),function(r){if(e.isPropertyAccessExpression(r.valueDeclaration)){var n=C.createTypeOfDeclaration(r.valueDeclaration,o,t,k),i=e.createVariableDeclaration(e.unescapeLeadingUnderscores(r.escapedName),n,void 0);return e.createVariableStatement(void 0,e.createVariableDeclarationList([i]))}});return[l,e.createModuleDeclaration(void 0,re(r,n),r.name,e.createModuleBlock(d),16)]}return l;case 244:y=!1;var _=r.body;if(_&&245===_.kind){var f=e.visitNodes(_.statements,Q),p=e.updateModuleBlock(_,W(f));y=c;var m=re(r,n);return F(e.updateModuleDeclaration(r,void 0,m,e.isExternalModuleAugmentation(r)?V(r,r.name):r.name,p))}y=c;m=re(r,n);y=!1,e.visitNode(_,Q);var g=""+e.getOriginalNodeId(_);p=u.get(g);return u.delete(g),F(e.updateModuleDeclaration(r,void 0,m,r.name,p));case 240:var v=e.createNodeArray(re(r,n)),b=J(r,r.typeParameters),x=e.getFirstConstructorWithBody(r),S=void 0;if(x){var D=h;S=e.compact(e.flatMap(x.parameters,function(t){if(e.hasModifier(t,92))return h=e.createGetSymbolAccessibilityDiagnosticForNode(t),72===t.name.kind?K(e.createProperty(void 0,re(t),t.name,t.questionToken,R(t,t.type),L(t)),t):function r(n){var i;for(var a=0,o=n.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(e.isBindingPattern(s.name)&&(i=e.concatenate(i,r(s.name))),(i=i||[]).push(e.createProperty(void 0,re(t),s.name,void 0,R(s,void 0),void 0)))}return i}(t.name)})),h=D}var T=e.createNodeArray(e.concatenate(S,e.visitNodes(r.members,X))),E=e.getEffectiveBaseTypeNode(r);if(E&&!e.isEntityNameExpression(E.expression)&&96!==E.expression.kind){var N=e.createOptimisticUniqueName(e.unescapeLeadingUnderscores(r.name.escapedText)+"_base");h=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:E,typeName:r.name}};var A=e.createVariableDeclaration(N,C.createTypeOfExpression(E.expression,r,t,k),void 0),w=e.createVariableStatement(y?[e.createModifier(125)]:[],e.createVariableDeclarationList([A],2)),P=e.createNodeArray(e.map(r.heritageClauses,function(t){if(86===t.token){var r=h;h=e.createGetSymbolAccessibilityDiagnosticForNode(t.types[0]);var n=e.updateHeritageClause(t,e.map(t.types,function(t){return e.updateExpressionWithTypeArguments(t,e.visitNodes(t.typeArguments,X),N)}));return h=r,n}return e.updateHeritageClause(t,e.visitNodes(e.createNodeArray(e.filter(t.types,function(t){return e.isEntityNameExpression(t.expression)||96===t.expression.kind})),X))}));return[w,F(e.updateClassDeclaration(r,void 0,v,r.name,b,P,T))]}P=ie(r.heritageClauses);return F(e.updateClassDeclaration(r,void 0,v,r.name,b,P,T));case 219:return F(function(t,r){if(!e.forEach(t.declarationList.declarations,j))return;var n=e.visitNodes(t.declarationList.declarations,X);if(!e.length(n))return;return e.updateVariableStatement(t,e.createNodeArray(re(t,r)),e.updateVariableDeclarationList(t.declarationList,n))}(r,n));case 243:return F(e.updateEnumDeclaration(r,void 0,e.createNodeArray(re(r,n)),r.name,e.createNodeArray(e.mapDefined(r.members,function(t){if(!ee(t)){var r=C.getConstantValue(t);return K(e.updateEnumMember(t,t.name,void 0!==r?e.createLiteral(r):void 0),t)}}))))}return e.Debug.assertNever(r,"Unhandled top-level node in declaration emit: "+e.SyntaxKind[r.kind])}}function F(t){return U(r)&&(o=i),a&&(h=s),244===r.kind&&(y=c),t===r?t:t&&e.setOriginalNode(K(t,r),r)}}function Z(t){return e.flatten(e.mapDefined(t.elements,function(t){return function(t){if(210===t.kind)return;if(t.name){if(!j(t))return;return e.isBindingPattern(t.name)?Z(t.name):e.createVariableDeclaration(t.name,R(t,void 0),void 0)}}(t)}))}function $(t){var r=f.text.substring(t.pos,t.end);return e.stringContains(r,"@internal")}function ee(t){if(A&&t){var r=e.getLeadingCommentRangesOfNode(e.getParseTreeNode(t),f);if(e.forEach(r,$))return!0}return!1}function te(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function re(t,r){var n=e.getModifierFlags(t),a=function(t,r){var n=2811,a=y&&!function(e){if(241===e.kind)return!0;return!1}(t)?2:0,o=279===t.parent.kind;(!o||v&&o&&e.isExternalModule(t.parent))&&(n^=2|(r||v&&o||function(t){return!!e.isModuleBlock(t)&&e.some(t.statements,te)}(t.parent)?0:1),a=0);return i(t,n,a)}(t,r);return n===a?t.modifiers:e.createModifiersFromModifierFlags(a)}function ne(t){var r=C.getAllAccessorDeclarations(t);if(t.kind===r.firstAccessor.kind){var i=a(t);!i&&r.secondAccessor&&(i=a(r.secondAccessor),h=e.createGetSymbolAccessibilityDiagnosticForNode(r.secondAccessor));var o=e.createProperty(void 0,n(t,void 0,r.setAccessor?0:64),t.name,t.questionToken,R(t,i),void 0),s=r.secondAccessor&&e.getLeadingCommentRangesOfNode(r.secondAccessor,f);if(s)for(var c=function(t){if(3===t.kind){var r=f.text.slice(t.pos+2,t.end-2),n=r.split(/\r\n?|\n/g);if(n.length>1){var i=n.slice(1),a=e.guessIndentation(i);r=[n[0]].concat(e.map(i,function(e){return e.slice(a)})).join(E)}e.addSyntheticLeadingComment(o,t.kind,r,t.hasTrailingNewLine)}},u=0,l=s;u<l.length;u++){c(l[u])}return o}}function ie(t){return e.createNodeArray(e.filter(e.map(t,function(t){return e.updateHeritageClause(t,e.visitNodes(e.createNodeArray(e.filter(t.types,function(r){return e.isEntityNameExpression(r.expression)||86===t.token&&96===r.expression.kind})),X))}),function(e){return e.types&&!!e.types.length}))}}function n(t,r,n){return e.createModifiersFromModifierFlags(i(t,r,n))}function i(t,r,n){void 0===r&&(r=3067),void 0===n&&(n=0);var i=e.getModifierFlags(t)&r|n;return 512&i&&!(1&i)&&(i^=1),512&i&&2&i&&(i^=2),i}function a(e){if(e)return 158===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=r}(d||(d={})),function(e){var t,r;function n(e,t){return t}function i(e,t,r){r(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.getTransformers=function(t,r){var n=t.jsx,i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&r.before),o.push(e.transformTypeScript),2===n&&o.push(e.transformJsx),i<6&&o.push(e.transformESNext),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2015:return e.transformES2015Module;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&r.after),o},e.noEmitSubstitution=n,e.noEmitNotification=i,e.transformNodes=function(t,r,a,o,s,c){for(var u,l,d,_=new Array(312),f=[],p=[],m=0,g=!1,h=n,y=i,v=0,b=[],x={getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return r},startLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is suspended."),f[m]=u,p[m]=l,m++,u=void 0,l=void 0},suspendLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is already suspended."),g=!0},resumeLexicalEnvironment:function(){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(g,"Lexical environment is not suspended."),g=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!g,"Lexical environment is suspended."),(u||l)&&(l&&(t=l.slice()),u)){var r=e.createVariableStatement(void 0,e.createVariableDeclarationList(u));t?t.push(r):t=[r]}return u=f[--m],l=p[m],0===m&&(f=[],p=[]),t},hoistVariableDeclaration:function(t){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(e.createVariableDeclaration(t),64);u?u.push(r):u=[r]},hoistFunctionDeclaration:function(t){e.Debug.assert(v>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(v<2,"Cannot modify the lexical environment after transformation has completed."),l?l.push(t):l=[t]},requestEmitHelper:function(t){e.Debug.assert(v>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(v<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)},readEmitHelpers:function(){e.Debug.assert(v>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed.");var t=d;return d=void 0,t},enableSubstitution:function(t){e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),_[t]|=1},enableEmitNotification:function(t){e.Debug.assert(v<2,"Cannot modify the transformation context after transformation has completed."),_[t]|=2},isSubstitutionEnabled:E,isEmitNotificationEnabled:N,get onSubstituteNode(){return h},set onSubstituteNode(t){e.Debug.assert(v<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),h=t},get onEmitNode(){return y},set onEmitNode(t){e.Debug.assert(v<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),y=t},addDiagnostic:function(e){b.push(e)}},S=0,D=o;S<D.length;S++){var k=D[S];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(k)))}e.performance.mark("beforeTransform");var C=e.chain.apply(void 0,s)(x);v=1;var T=e.map(o,c?C:function(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:C(t)});return v=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:T,substituteNode:function(t,r){return e.Debug.assert(v<3,"Cannot substitute a node after the result is disposed."),r&&E(r)&&h(t,r)||r},emitNodeWithNotification:function(t,r,n){e.Debug.assert(v<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(N(r)?y(t,r,n):n(t,r))},dispose:function(){if(v<3){for(var t=0,r=o;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}u=void 0,f=void 0,l=void 0,p=void 0,h=void 0,y=void 0,d=void 0,v=3}},diagnostics:b};function E(t){return 0!=(1&_[t.kind])&&0==(4&e.getEmitFlags(t))}function N(t){return 0!=(2&_[t.kind])||0!=(2&e.getEmitFlags(t))}}}(d||(d={})),function(e){var t,r,n=".tsbundleinfo",i=function(){var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}(),a={pos:-1,end:-1};function o(t,r,n,i){void 0===i&&(i=!1);var a=e.isArray(n)?n:e.getSourceFilesToEmit(t,n),o=t.getCompilerOptions();if(o.outFile||o.out){if(a.length){var c=e.createBundle(a,t.getPrependNodes());if(d=r(s(c,t,i),c))return d}}else for(var u=0,l=a;u<l.length;u++){var d,_=l[u];if(d=r(s(_,t,i),_))return d}}function s(t,r,i){var a=r.getCompilerOptions();if(280===t.kind){var o=a.outFile||a.out;return{jsFilePath:s=a.emitDeclarationOnly?void 0:o,sourceMapFilePath:f=s&&c(s,a),declarationFilePath:l=i||e.getEmitDeclarations(a)?e.removeFileExtension(o)+".d.ts":void 0,declarationMapPath:l&&e.getAreDeclarationMapsEnabled(a)?l+".map":void 0,bundleInfoPath:a.references&&s?e.removeFileExtension(s)+n:void 0}}var s,l,d=e.getOwnEmitOutputFilePath(t.fileName,r,u(t,a)),_=e.isJsonSourceFile(t)&&0===e.comparePaths(t.fileName,d,r.getCurrentDirectory(),!r.useCaseSensitiveFileNames()),f=!(s=a.emitDeclarationOnly||_?void 0:d)||e.isJsonSourceFile(t)?void 0:c(s,a),p=e.isSourceFileJS(t);return{jsFilePath:s,sourceMapFilePath:f,declarationFilePath:l=!i&&!e.getEmitDeclarations(a)||p?void 0:e.getDeclarationEmitOutputFilePath(t.fileName,r),declarationMapPath:l&&e.getAreDeclarationMapsEnabled(a)?l+".map":void 0,bundleInfoPath:void 0}}function c(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function u(t,r){if(e.isJsonSourceFile(t))return".json";if(1===r.jsx)if(e.isSourceFileJS(t)){if(e.fileExtensionIs(t.fileName,".jsx"))return".jsx"}else if(1===t.languageVariant)return".jsx";return".js"}function l(t,r){void 0===t&&(t={}),void 0===r&&(r={});var n,o,s,c,u,l,d,_,f,p,m,g,h,y,v,b=r.hasGlobalName,x=r.onEmitNode,S=void 0===x?e.noEmitNotification:x,D=r.substituteNode,k=void 0===D?e.noEmitSubstitution:D,C=r.onBeforeEmitNodeArray,T=r.onAfterEmitNodeArray,E=r.onBeforeEmitToken,N=r.onAfterEmitToken,A=!!t.extendedDiagnostics,w=e.getNewLineCharacter(t),P=e.getEmitModuleKind(t),F=e.createMap(),I=function(e){f.write(e)},M=!0,O=-1,L=-1,R=-1,B=-1,j=!1,z=!!t.removeComments,J=e.performance.createTimerIf(A,"commentTime","beforeComment","afterComment"),U=J.enter,q=J.exit;return te(),{printNode:function(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.")}switch(r.kind){case 279:return V(r);case 280:return K(r);case 281:return function(e,t){var r=f;ee(t,void 0),Z(4,e,void 0),te(),f=r}(r,Q()),Y()}return W(t,r,n,Q()),Y()},printList:function(e,t,r){return H(e,t,r,Q()),Y()},printFile:V,printBundle:K,writeNode:W,writeList:H,writeFile:X,writeBundle:G};function K(e){return G(e,void 0,Q(),void 0),Y()}function V(e){return X(e,Q(),void 0),Y()}function W(e,t,r,n){var i=f;ee(n,void 0),Z(e,t,r),te(),f=i}function H(e,t,r,n){var i=f;ee(n,void 0),r&&$(r),et(a,t,e),te(),f=i}function G(e,t,r,n){m=!1;var i,a=f;ee(r,n),Je(e),ze(e),de(e),Re(!!(i=e).hasNoDefaultLib,i.syntheticFileReferences||[],i.syntheticTypeReferences||[],i.syntheticLibReferences||[]);for(var o=0,s=e.prepends;o<s.length;o++){var c=s[o];ft(),Z(4,c,void 0)}t&&(t.originalOffset=f.getTextPos());for(var u=0,l=e.sourceFiles;u<l.length;u++){var d=l[u];Z(0,d,d)}te(),f=a}function X(e,t,r){m=!0;var n=f;ee(t,r),Je(e),ze(e),Z(0,e,e),te(),f=n}function Q(){return p||(p=e.createTextWriter(w))}function Y(){var e=p.getText();return p.clear(),e}function Z(e,t,r){r&&$(r),oe(0,t)(e,t)}function $(e){n=e,y=void 0,v=void 0,e&&dr(e)}function ee(r,n){r&&t.omitTrailingSemicolon&&(r=e.getTrailingSemicolonOmittingWriter(r)),g=n,M=!(f=r)||!g}function te(){o=[],s=[],c=e.createMap(),u=[],l=0,d=[],n=void 0,y=void 0,v=void 0,ee(void 0,void 0)}function re(){return y||(y=e.getLineStarts(n))}function ne(e){void 0!==e&&oe(0,e)(4,e)}function ie(e){void 0!==e&&oe(0,e)(2,e)}function ae(e){void 0!==e&&oe(0,e)(1,e)}function oe(t,r){switch(t){case 0:if(S!==e.noEmitNotification)return ce;case 1:if(k!==e.noEmitSubstitution)return le;case 2:if(!z&&279!==r.kind)return Vt;case 3:if(!M&&279!==r.kind&&!e.isInJsonFile(r))return sr;case 4:return ue;default:return e.Debug.assertNever(t)}}function se(e,t){return oe(e+1,t)}function ce(e,t){var r=se(0,t);S(e,t,r)}function ue(r,i){if(0===r)return function(t){ft();var r=t.statements;if(Xt){var n=0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0]);if(n)return void Xt(t,r,Be)}Be(t)}(e.cast(i,e.isSourceFile));if(2===r)return fe(e.cast(i,e.isIdentifier));if(3===r)return function(e){ne(e.name),dt(),st("in"),dt(),ne(e.constraint)}(e.cast(i,e.isTypeParameterDeclaration));if(5===r)return e.Debug.assertNode(i,e.isEmptyStatement),ge(!0);if(4===r){if(e.isKeyword(i.kind))return ht(i,st);switch(i.kind){case 15:case 16:case 17:return _e(i);case 281:return s=i,void f.rawWrite(s.text);case 72:return fe(i);case 148:return function(e){(function(e){72===e.kind?ae(e):ne(e)})(e.left),at("."),ne(e.right)}(i);case 149:return function(e){at("["),ae(e.expression),at("]")}(i);case 150:return function(e){ne(e.name),e.constraint&&(dt(),st("extends"),dt(),ne(e.constraint));e.default&&(dt(),ct("="),dt(),ne(e.default))}(i);case 151:return function(e){Xe(e,e.decorators),qe(e,e.modifiers),ne(e.dotDotDotToken),Ue(e.name,ut),ne(e.questionToken),e.parent&&289===e.parent.kind&&!e.name?ne(e.type):Ke(e.type);Ve(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e)}(i);case 152:return o=i,at("@"),void ae(o.expression);case 153:return function(e){Xe(e,e.decorators),qe(e,e.modifiers),Ue(e.name,_t),ne(e.questionToken),Ke(e.type),ot()}(i);case 154:return function(e){Xe(e,e.decorators),qe(e,e.modifiers),ne(e.name),ne(e.questionToken),ne(e.exclamationToken),Ke(e.type),Ve(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),ot()}(i);case 155:return function(e){Ft(e),Xe(e,e.decorators),qe(e,e.modifiers),ne(e.name),ne(e.questionToken),Ye(e,e.typeParameters),Ze(e,e.parameters),Ke(e.type),ot(),It(e)}(i);case 156:return function(e){Xe(e,e.decorators),qe(e,e.modifiers),ne(e.asteriskToken),ne(e.name),ne(e.questionToken),Se(e,De)}(i);case 157:return function(e){qe(e,e.modifiers),st("constructor"),Se(e,De)}(i);case 158:case 159:return function(e){Xe(e,e.decorators),qe(e,e.modifiers),st(158===e.kind?"get":"set"),dt(),ne(e.name),Se(e,De)}(i);case 160:return function(e){Ft(e),Xe(e,e.decorators),qe(e,e.modifiers),Ye(e,e.typeParameters),Ze(e,e.parameters),Ke(e.type),ot(),It(e)}(i);case 161:return function(e){Ft(e),Xe(e,e.decorators),qe(e,e.modifiers),st("new"),dt(),Ye(e,e.typeParameters),Ze(e,e.parameters),Ke(e.type),ot(),It(e)}(i);case 162:return function(e){Xe(e,e.decorators),qe(e,e.modifiers),t=e,r=e.parameters,et(t,r,8848),Ke(e.type),ot();var t,r}(i);case 163:return function(e){ne(e.parameterName),dt(),st("is"),dt(),ne(e.type)}(i);case 164:return function(e){ne(e.typeName),Qe(e,e.typeArguments)}(i);case 165:return function(e){Ft(e),Ye(e,e.typeParameters),$e(e,e.parameters),dt(),at("=>"),dt(),ne(e.type),It(e)}(i);case 289:return function(e){st("function"),Ze(e,e.parameters),at(":"),ne(e.type)}(i);case 166:return function(e){Ft(e),st("new"),dt(),Ye(e,e.typeParameters),Ze(e,e.parameters),dt(),at("=>"),dt(),ne(e.type),It(e)}(i);case 167:return function(e){st("typeof"),dt(),ne(e.exprName)}(i);case 168:return function(t){at("{");var r=1&e.getEmitFlags(t)?768:32897;et(t,t.members,524288|r),at("}")}(i);case 169:return function(e){ne(e.elementType),at("["),at("]")}(i);case 170:return function(e){at("["),et(e,e.elementTypes,528),at("]")}(i);case 171:return function(e){ne(e.type),at("?")}(i);case 173:return function(e){et(e,e.types,516)}(i);case 174:return function(e){et(e,e.types,520)}(i);case 175:return function(e){ne(e.checkType),dt(),st("extends"),dt(),ne(e.extendsType),dt(),at("?"),dt(),ne(e.trueType),dt(),at(":"),dt(),ne(e.falseType)}(i);case 176:return function(e){st("infer"),dt(),ne(e.typeParameter)}(i);case 177:return function(e){at("("),ne(e.type),at(")")}(i);case 211:return function(e){ae(e.expression),Qe(e,e.typeArguments)}(i);case 178:return void st("this");case 179:return function(e){yt(e.operator,st),dt(),ne(e.type)}(i);case 180:return function(e){ne(e.objectType),at("["),ne(e.indexType),at("]")}(i);case 181:return function(t){var r=e.getEmitFlags(t);at("{"),1&r?dt():(ft(),pt());t.readonlyToken&&(ne(t.readonlyToken),133!==t.readonlyToken.kind&&st("readonly"),dt());at("["),oe(0,t.typeParameter)(3,t.typeParameter),at("]"),t.questionToken&&(ne(t.questionToken),56!==t.questionToken.kind&&at("?"));at(":"),dt(),ne(t.type),ot(),1&r?dt():(ft(),mt());at("}")}(i);case 182:return function(e){ae(e.literal)}(i);case 183:return function(e){e.isTypeOf&&(st("typeof"),dt());st("import"),at("("),ne(e.argument),at(")"),e.qualifier&&(at("."),ne(e.qualifier));Qe(e,e.typeArguments)}(i);case 284:return void at("*");case 285:return void at("?");case 286:return function(e){at("?"),ne(e.type)}(i);case 287:return function(e){at("!"),ne(e.type)}(i);case 288:return function(e){ne(e.type),at("=")}(i);case 172:case 290:return function(e){at("..."),ne(e.type)}(i);case 184:return function(e){at("{"),et(e,e.elements,525136),at("}")}(i);case 185:return function(e){at("["),et(e,e.elements,524880),at("]")}(i);case 186:return function(e){ne(e.dotDotDotToken),e.propertyName&&(ne(e.propertyName),at(":"),dt());ne(e.name),Ve(e.initializer,e.name.end,e)}(i);case 216:return function(e){ae(e.expression),ne(e.literal)}(i);case 217:return void ot();case 218:return function(e){me(e,!e.multiLine&&Nt(e))}(i);case 219:return function(e){qe(e,e.modifiers),ne(e.declarationList),ot()}(i);case 220:return ge(!1);case 221:return function(t){ae(t.expression),(!e.isJsonSourceFile(n)||e.nodeIsSynthesized(t.expression))&&ot()}(i);case 222:return function(e){var t=ve(91,e.pos,st,e);dt(),ve(20,t,at,e),ae(e.expression),ve(21,e.expression.end,at,e),Ge(e,e.thenStatement),e.elseStatement&&(vt(e),ve(83,e.thenStatement.end,st,e),222===e.elseStatement.kind?(dt(),ne(e.elseStatement)):Ge(e,e.elseStatement))}(i);case 223:return function(t){ve(82,t.pos,st,t),Ge(t,t.statement),e.isBlock(t.statement)?dt():vt(t);he(t,t.statement.end),at(";")}(i);case 224:return function(e){he(e,e.pos),Ge(e,e.statement)}(i);case 225:return function(e){var t=ve(89,e.pos,st,e);dt();var r=ve(20,t,at,e);ye(e.initializer),r=ve(26,e.initializer?e.initializer.end:r,at,e),He(e.condition),r=ve(26,e.condition?e.condition.end:r,at,e),He(e.incrementor),ve(21,e.incrementor?e.incrementor.end:r,at,e),Ge(e,e.statement)}(i);case 226:return function(e){var t=ve(89,e.pos,st,e);dt(),ve(20,t,at,e),ye(e.initializer),dt(),ve(93,e.initializer.end,st,e),dt(),ae(e.expression),ve(21,e.expression.end,at,e),Ge(e,e.statement)}(i);case 227:return function(e){var t=ve(89,e.pos,st,e);dt(),function(e){e&&(ne(e),dt())}(e.awaitModifier),ve(20,t,at,e),ye(e.initializer),dt(),ve(147,e.initializer.end,st,e),dt(),ae(e.expression),ve(21,e.expression.end,at,e),Ge(e,e.statement)}(i);case 228:return function(e){ve(78,e.pos,st,e),We(e.label),ot()}(i);case 229:return function(e){ve(73,e.pos,st,e),We(e.label),ot()}(i);case 230:return function(e){ve(97,e.pos,st,e),He(e.expression),ot()}(i);case 231:return function(e){var t=ve(108,e.pos,st,e);dt(),ve(20,t,at,e),ae(e.expression),ve(21,e.expression.end,at,e),Ge(e,e.statement)}(i);case 232:return function(e){var t=ve(99,e.pos,st,e);dt(),ve(20,t,at,e),ae(e.expression),ve(21,e.expression.end,at,e),dt(),ne(e.caseBlock)}(i);case 233:return function(e){ne(e.label),ve(57,e.label.end,at,e),dt(),ne(e.statement)}(i);case 234:return function(e){ve(101,e.pos,st,e),He(e.expression),ot()}(i);case 235:return function(e){ve(103,e.pos,st,e),dt(),ne(e.tryBlock),e.catchClause&&(vt(e),ne(e.catchClause));e.finallyBlock&&(vt(e),ve(88,(e.catchClause||e.tryBlock).end,st,e),dt(),ne(e.finallyBlock))}(i);case 236:return function(e){gt(79,e.pos,st),ot()}(i);case 237:return function(e){ne(e.name),Ke(e.type),Ve(e.initializer,e.type?e.type.end:e.name.end,e)}(i);case 238:return function(t){st(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),dt(),et(t,t.declarations,528)}(i);case 239:return function(e){be(e)}(i);case 240:return function(e){Ee(e)}(i);case 241:return function(e){Xe(e,e.decorators),qe(e,e.modifiers),st("interface"),dt(),ne(e.name),Ye(e,e.typeParameters),et(e,e.heritageClauses,512),dt(),at("{"),et(e,e.members,129),at("}")}(i);case 242:return function(e){Xe(e,e.decorators),qe(e,e.modifiers),st("type"),dt(),ne(e.name),Ye(e,e.typeParameters),dt(),at("="),dt(),ne(e.type),ot()}(i);case 243:return function(e){qe(e,e.modifiers),st("enum"),dt(),ne(e.name),dt(),at("{"),et(e,e.members,145),at("}")}(i);case 244:return function(e){qe(e,e.modifiers),512&~e.flags&&(st(16&e.flags?"namespace":"module"),dt());ne(e.name);var t=e.body;if(!t)return ot();for(;244===t.kind;)at("."),ne(t.name),t=t.body;dt(),ne(t)}(i);case 245:return function(t){Ft(t),e.forEach(t.statements,Ot),me(t,Nt(t)),It(t)}(i);case 246:return function(e){ve(18,e.pos,at,e),et(e,e.clauses,129),ve(19,e.clauses.end,at,e,!0)}(i);case 247:return function(e){var t=ve(85,e.pos,st,e);dt(),t=ve(119,t,st,e),dt(),t=ve(131,t,st,e),dt(),ne(e.name),ot()}(i);case 248:return function(e){qe(e,e.modifiers),ve(92,e.modifiers?e.modifiers.end:e.pos,st,e),dt(),ne(e.name),dt(),ve(59,e.name.end,at,e),dt(),function(e){72===e.kind?ae(e):ne(e)}(e.moduleReference),ot()}(i);case 249:return function(e){qe(e,e.modifiers),ve(92,e.modifiers?e.modifiers.end:e.pos,st,e),dt(),e.importClause&&(ne(e.importClause),dt(),ve(144,e.importClause.end,st,e),dt());ae(e.moduleSpecifier),ot()}(i);case 250:return function(e){ne(e.name),e.name&&e.namedBindings&&(ve(27,e.name.end,at,e),dt());ne(e.namedBindings)}(i);case 251:return function(e){var t=ve(40,e.pos,at,e);dt(),ve(119,t,st,e),dt(),ne(e.name)}(i);case 252:return function(e){Ne(e)}(i);case 253:return function(e){Ae(e)}(i);case 254:return function(e){var t=ve(85,e.pos,st,e);dt(),e.isExportEquals?ve(59,t,ct,e):ve(80,t,st,e);dt(),ae(e.expression),ot()}(i);case 255:return function(e){var t=ve(85,e.pos,st,e);dt(),e.exportClause?ne(e.exportClause):t=ve(40,t,at,e);if(e.moduleSpecifier){dt();var r=e.exportClause?e.exportClause.end:t;ve(144,r,st,e),dt(),ae(e.moduleSpecifier)}ot()}(i);case 256:return function(e){Ne(e)}(i);case 257:return function(e){Ae(e)}(i);case 258:return;case 259:return function(e){st("require"),at("("),ae(e.expression),at(")")}(i);case 11:return function(e){f.writeLiteral(wt(e,!0))}(i);case 262:case 265:return function(t){at("<"),e.isJsxOpeningElement(t)&&(we(t.tagName),t.attributes.properties&&t.attributes.properties.length>0&&dt(),ne(t.attributes));at(">")}(i);case 263:case 266:return function(t){at("</"),e.isJsxClosingElement(t)&&we(t.tagName);at(">")}(i);case 267:return function(e){ne(e.name),function(e,t,r,n){r&&(t(e),n(r))}("=",at,e.initializer,ne)}(i);case 268:return function(e){et(e,e.properties,262656)}(i);case 269:return function(e){at("{..."),ae(e.expression),at("}")}(i);case 270:return function(e){e.expression&&(at("{"),ne(e.dotDotDotToken),ae(e.expression),at("}"))}(i);case 271:return function(e){ve(74,e.pos,st,e),dt(),ae(e.expression),Pe(e,e.statements,e.expression.end)}(i);case 272:return function(e){var t=ve(80,e.pos,st,e);Pe(e,e.statements,t)}(i);case 273:return function(e){dt(),yt(e.token,st),dt(),et(e,e.types,528)}(i);case 274:return function(e){var t=ve(75,e.pos,st,e);dt(),e.variableDeclaration&&(ve(20,t,at,e),ne(e.variableDeclaration),ve(21,e.variableDeclaration.end,at,e),dt());ne(e.block)}(i);case 275:return function(t){ne(t.name),at(":"),dt();var r=t.initializer;if(rr&&0==(512&e.getEmitFlags(r))){var n=e.getCommentRange(r);rr(n.pos)}ae(r)}(i);case 276:return function(e){ne(e.name),e.objectAssignmentInitializer&&(dt(),at("="),dt(),ae(e.objectAssignmentInitializer))}(i);case 277:return function(e){e.expression&&(ve(25,e.pos,at,e),ae(e.expression))}(i);case 278:return function(e){ne(e.name),Ve(e.initializer,e.name.end,e)}(i);case 299:case 305:return function(e){Me(e.tagName),Le(e.typeExpression),dt(),e.isBracketed&&at("[");ne(e.name),e.isBracketed&&at("]");Oe(e.comment)}(i);case 300:case 302:case 301:case 298:return Me((a=i).tagName),Le(a.typeExpression),void Oe(a.comment);case 295:return function(e){Me(e.tagName),dt(),at("{"),ne(e.class),at("}"),Oe(e.comment)}(i);case 303:return function(e){Me(e.tagName),Le(e.constraint),dt(),et(e,e.typeParameters,528),Oe(e.comment)}(i);case 304:return function(e){Me(e.tagName),e.typeExpression&&(283===e.typeExpression.kind?Le(e.typeExpression):(dt(),at("{"),I("Object"),e.typeExpression.isArrayType&&(at("["),at("]")),at("}")));e.fullName&&(dt(),ne(e.fullName));Oe(e.comment),e.typeExpression&&292===e.typeExpression.kind&&Fe(e.typeExpression)}(i);case 297:return function(e){Me(e.tagName),e.name&&(dt(),ne(e.name));Oe(e.comment),Ie(e.typeExpression)}(i);case 293:return Ie(i);case 292:return Fe(i);case 296:case 294:return function(e){Me(e.tagName),Oe(e.comment)}(i);case 291:return function(e){if(I("/**"),e.comment)for(var t=e.comment.split(/\r\n?|\n/g),r=0,n=t;r<n.length;r++){var i=n[r];ft(),dt(),at("*"),dt(),I(i)}e.tags&&(1!==e.tags.length||302!==e.tags[0].kind||e.comment?et(e,e.tags,33):(dt(),ne(e.tags[0])));dt(),I("*/")}(i)}if(e.isExpression(i))r=1,k!==e.noEmitSubstitution&&(i=k(r,i));else if(e.isToken(i))return ht(i,at)}var a,o,s;if(1===r)switch(i.kind){case 8:case 9:return function(e){_e(e)}(i);case 10:case 13:case 14:return _e(i);case 72:return fe(i);case 87:case 96:case 98:case 102:case 100:case 92:return void ht(i,st);case 187:return function(e){var t=e.elements,r=e.multiLine?65536:0;tt(e,t,8914|r)}(i);case 188:return function(t){e.forEach(t.properties,Lt);var r=65536&e.getEmitFlags(t);r&&pt();var i=t.multiLine?65536:0,a=n.languageVersion>=1&&!e.isJsonSourceFile(n)?64:0;et(t,t.properties,526226|a|i),r&&mt()}(i);case 189:return function(r){var i=!1,a=!1;if(!(131072&e.getEmitFlags(r))){var o=r.expression.end,s=e.skipTrivia(n.text,r.expression.end)+1,c=e.createToken(24);c.pos=o,c.end=s,i=Et(r,r.expression,c),a=Et(r,c,r.name)}ae(r.expression),xt(i,!1),!i&&function(r){if(r=e.skipPartiallyEmittedExpressions(r),e.isNumericLiteral(r)){var n=Pt(r,!0);return!r.numericLiteralFlags&&!e.stringContains(n,e.tokenToString(24))}if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)){var i=e.getConstantValue(r);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}(r.expression)&&at(".");ve(24,r.expression.end,at,r),xt(a,!1),ne(r.name),St(i,a)}(i);case 190:return function(e){ae(e.expression),ve(22,e.expression.end,at,e),ae(e.argumentExpression),ve(23,e.argumentExpression.end,at,e)}(i);case 191:return function(e){ae(e.expression),Qe(e,e.typeArguments),tt(e,e.arguments,2576)}(i);case 192:return function(e){ve(95,e.pos,st,e),dt(),ae(e.expression),Qe(e,e.typeArguments),tt(e,e.arguments,18960)}(i);case 193:return function(e){ae(e.tag),Qe(e,e.typeArguments),dt(),ae(e.template)}(i);case 194:return function(e){at("<"),ne(e.type),at(">"),ae(e.expression)}(i);case 195:return function(e){var t=ve(20,e.pos,at,e);ae(e.expression),ve(21,e.expression?e.expression.end:t,at,e)}(i);case 196:return function(e){Rt(e.name),be(e)}(i);case 197:return function(e){Xe(e,e.decorators),qe(e,e.modifiers),Se(e,pe)}(i);case 198:return function(e){ve(81,e.pos,st,e),dt(),ae(e.expression)}(i);case 199:return function(e){ve(104,e.pos,st,e),dt(),ae(e.expression)}(i);case 200:return function(e){ve(106,e.pos,st,e),dt(),ae(e.expression)}(i);case 201:return function(e){ve(122,e.pos,st,e),dt(),ae(e.expression)}(i);case 202:return function(e){yt(e.operator,ct),function(e){var t=e.operand;return 202===t.kind&&(38===e.operator&&(38===t.operator||44===t.operator)||39===e.operator&&(39===t.operator||45===t.operator))}(e)&&dt();ae(e.operand)}(i);case 203:return function(e){ae(e.operand),yt(e.operator,ct)}(i);case 204:return function(e){var t=27!==e.operatorToken.kind,r=Et(e,e.left,e.operatorToken),n=Et(e,e.operatorToken,e.right);ae(e.left),xt(r,t),er(e.operatorToken.pos),ht(e.operatorToken,93===e.operatorToken.kind?st:ct),rr(e.operatorToken.end,!0),xt(n,!0),ae(e.right),St(r,n)}(i);case 205:return function(e){var t=Et(e,e.condition,e.questionToken),r=Et(e,e.questionToken,e.whenTrue),n=Et(e,e.whenTrue,e.colonToken),i=Et(e,e.colonToken,e.whenFalse);ae(e.condition),xt(t,!0),ne(e.questionToken),xt(r,!0),ae(e.whenTrue),St(t,r),xt(n,!0),ne(e.colonToken),xt(i,!0),ae(e.whenFalse),St(n,i)}(i);case 206:return function(e){ne(e.head),et(e,e.templateSpans,262144)}(i);case 207:return function(e){ve(117,e.pos,st,e),ne(e.asteriskToken),He(e.expression)}(i);case 208:return function(e){ve(25,e.pos,at,e),ae(e.expression)}(i);case 209:return function(e){Rt(e.name),Ee(e)}(i);case 210:return;case 212:return function(e){ae(e.expression),e.type&&(dt(),st("as"),dt(),ne(e.type))}(i);case 213:return function(e){ae(e.expression),ct("!")}(i);case 214:return function(e){gt(e.keywordToken,e.pos,at),at("."),ne(e.name)}(i);case 260:return function(e){ne(e.openingElement),et(e,e.children,262144),ne(e.closingElement)}(i);case 261:return function(e){at("<"),we(e.tagName),dt(),ne(e.attributes),at("/>")}(i);case 264:return function(e){ne(e.openingFragment),et(e,e.children,262144),ne(e.closingFragment)}(i);case 308:return function(e){ae(e.expression)}(i);case 309:return function(e){tt(e,e.elements,528)}(i)}}function le(e,t){se(1,t)(e,k(e,t))}function de(r){var i=!1,a=280===r.kind?r:void 0;if(!a||P!==e.ModuleKind.None){for(var o=a?a.sourceFiles.length:1,s=0;s<o;s++){var c=a?a.sourceFiles[s]:r,u=e.isSourceFile(c)?c:n,l=t.noEmitHelpers||void 0!==e.getExternalHelpersModuleName(u),d=e.isSourceFile(c)&&!m,_=e.getEmitHelpers(c);if(_)for(var f=0,p=e.stableSort(_,e.compareEmitHelpers);f<p.length;f++){var g=p[f];if(g.scoped){if(a)continue}else{if(l)continue;if(d){if(F.get(g.name))continue;F.set(g.name,!0)}}"string"==typeof g.text?bt(g.text):bt(g.text(Kt)),i=!0}}return i}}function _e(r){var n,i=Pt(r,t.neverAsciiEscape);!t.sourceMap&&!t.inlineSourceMap||10!==r.kind&&!e.isTemplateLiteralKind(r.kind)?function(e){f.writeStringLiteral(e)}(i):(n=i,f.writeLiteral(n))}function fe(e){(e.symbol?it:I)(wt(e,!1),e.symbol),et(e,e.typeArguments,53776)}function pe(e){Ye(e,e.typeParameters),$e(e,e.parameters),Ke(e.type),dt(),ne(e.equalsGreaterThanToken)}function me(t,r){ve(18,t.pos,at,t);var n=r||1&e.getEmitFlags(t)?768:129;et(t,t.statements,n),ve(19,t.statements.end,at,t,!!(1&n))}function ge(e){e?at(";"):ot()}function he(e,t){var r=ve(107,t,st,e);dt(),ve(20,r,at,e),ae(e.expression),ve(21,e.expression.end,at,e)}function ye(e){void 0!==e&&(238===e.kind?ne(e):ae(e))}function ve(t,r,i,a,o){var s=e.getParseTreeNode(a),c=s&&s.kind===a.kind,u=r;if(c&&(r=e.skipTrivia(n.text,r)),er&&c&&a.pos!==u){var l=o&&!e.positionsAreOnSameLine(u,r,n);l&&pt(),er(u),l&&mt()}return r=yt(t,i,r),rr&&c&&a.end!==r&&rr(r,!0),r}function be(e){Xe(e,e.decorators),qe(e,e.modifiers),st("function"),ne(e.asteriskToken),dt(),ie(e.name),Se(e,De)}function xe(e,t){ke(t)}function Se(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=65536&e.getEmitFlags(t);i&&pt(),Ft(t),e.forEach(t.parameters,Ot),Ot(t.body),r(t),S?S(4,n,xe):ke(n),It(t),i&&mt()}else r(t),dt(),ae(n);else r(t),ot()}function De(e){Ye(e,e.typeParameters),Ze(e,e.parameters),Ke(e.type)}function ke(t){dt(),at("{"),pt();var r=function(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,n))return!1;if(Dt(t,t.statements,2)||Ct(t,t.statements,2))return!1;for(var r,i=0,a=t.statements;i<a.length;i++){var o=a[i];if(kt(r,o,2))return!1;r=o}return!0}(t)?Ce:Te;Xt?Xt(t,t.statements,r):r(t),mt(),gt(19,t.statements.end,at,t)}function Ce(e){Te(e,!0)}function Te(e,t){var r=je(e.statements,!0),n=f.getTextPos();de(e),0===r&&n===f.getTextPos()&&t?(mt(),et(e,e.statements,768),pt()):et(e,e.statements,1,r)}function Ee(t){e.forEach(t.members,Lt),Xe(t,t.decorators),qe(t,t.modifiers),st("class"),t.name&&(dt(),ie(t.name));var r=65536&e.getEmitFlags(t);r&&pt(),Ye(t,t.typeParameters),et(t,t.heritageClauses,0),dt(),at("{"),et(t,t.members,129),at("}"),r&&mt()}function Ne(e){at("{"),et(e,e.elements,525136),at("}")}function Ae(e){e.propertyName&&(ne(e.propertyName),dt(),ve(119,e.propertyName.end,st,e),dt()),ne(e.name)}function we(e){72===e.kind?ae(e):ne(e)}function Pe(t,r,i){var a=163969;1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],n))?(gt(57,i,at,t),dt(),a&=-130):ve(57,i,at,t),et(t,r,a)}function Fe(t){et(t,e.createNodeArray(t.jsDocPropertyTags),33)}function Ie(t){t.typeParameters&&et(t,e.createNodeArray(t.typeParameters),33),t.parameters&&et(t,e.createNodeArray(t.parameters),33),t.type&&(ft(),dt(),at("*"),dt(),ne(t.type))}function Me(e){at("@"),ne(e)}function Oe(e){e&&(dt(),I(e))}function Le(e){e&&(dt(),at("{"),ne(e.type),at("}"))}function Re(e,t,r,i){if(e&&(lt('/// <reference no-default-lib="true"/>'),ft()),n&&n.moduleName&&(lt('/// <amd-module name="'+n.moduleName+'" />'),ft()),n&&n.amdDependencies)for(var a=0,o=n.amdDependencies;a<o.length;a++){var s=o[a];s.name?lt('/// <amd-dependency name="'+s.name+'" path="'+s.path+'" />'):lt('/// <amd-dependency path="'+s.path+'" />'),ft()}for(var c=0,u=t;c<u.length;c++){lt('/// <reference path="'+u[c].fileName+'" />'),ft()}for(var l=0,d=r;l<d.length;l++){lt('/// <reference types="'+d[l].fileName+'" />'),ft()}for(var _=0,f=i;_<f.length;_++){lt('/// <reference lib="'+f[_].fileName+'" />'),ft()}}function Be(t){var r=t.statements;Ft(t),e.forEach(t.statements,Ot),de(t);var n=e.findIndex(r,function(t){return!e.isPrologueDirective(t)});!function(e){e.isDeclarationFile&&Re(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),et(t,r,1,-1===n?r.length:n),It(t)}function je(t,r,n){for(var i=0;i<t.length;i++){var a=t[i];if(!e.isPrologueDirective(a))return i;(!n||!n.has(a.expression.text))&&((r||i>0)&&ft(),ne(a),n&&n.set(a.expression.text,!0))}return t.length}function ze(t){if(e.isSourceFile(t))$(t),je(t.statements);else{for(var r=e.createMap(),n=0,i=t.sourceFiles;n<i.length;n++){var a=i[n];$(a),je(a.statements,!0,r)}$(void 0)}}function Je(t){if(e.isSourceFile(t)){var r=e.getShebang(t.text);if(r)return lt(r),ft(),!0}else for(var n=0,i=t.sourceFiles;n<i.length;n++){if(Je(i[n]))break}}function Ue(e,t){if(e){var r=I;I=t,ne(e),I=r}}function qe(e,t){t&&t.length&&(et(e,t,262656),dt())}function Ke(e){e&&(at(":"),dt(),ne(e))}function Ve(e,t,r){e&&(dt(),ve(59,t,ct,r),dt(),ae(e))}function We(e){e&&(dt(),ne(e))}function He(e){e&&(dt(),ae(e))}function Ge(t,r){if(e.isBlock(r)||1&e.getEmitFlags(t))dt(),ne(r);else{if(ft(),pt(),e.isEmptyStatement(r))oe(0,r)(5,r);else ne(r);mt()}}function Xe(e,t){et(e,t,49153)}function Qe(e,t){et(e,t,53776)}function Ye(t,r){if(e.isFunctionLike(t)&&t.typeArguments)return Qe(t,t.typeArguments);et(t,r,53776)}function Ze(e,t){et(e,t,2576)}function $e(t,r){!function(t,r){var n=e.singleOrUndefined(r);return n&&n.pos===t.pos&&e.isArrowFunction(t)&&!t.type&&!e.some(t.decorators)&&!e.some(t.modifiers)&&!e.some(t.typeParameters)&&!e.some(n.decorators)&&!e.some(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&e.isIdentifier(n.name)}(t,r)?Ze(t,r):et(t,r,528)}function et(e,t,r,n,i){nt(ne,e,t,r,n,i)}function tt(e,t,r,n,i){nt(ae,e,t,r,n,i)}function rt(e){switch(60&e){case 0:break;case 16:at(",");break;case 4:dt(),at("|");break;case 32:dt(),at("*"),dt();break;case 8:dt(),at("&")}}function nt(t,r,n,a,o,s){void 0===o&&(o=0),void 0===s&&(s=n?n.length-o:0);var c=void 0===n;if(!(c&&16384&a)){var u=void 0===n||o>=n.length||0===s;if(u&&32768&a)return C&&C(n),void(T&&T(n));if(15360&a&&(at(function(e){return i[15360&e][0]}(a)),u&&!c&&rr(n.pos,!0)),C&&C(n),u)1&a?ft():256&a&&!(524288&a)&&dt();else{var l=0==(262144&a),d=l;Dt(r,n,a)?(ft(),d=!1):256&a&&dt(),128&a&&pt();for(var _=void 0,f=!1,p=0;p<s;p++){var m=n[o+p];if(32&a?(ft(),rt(a)):_&&(60&a&&_.end!==r.end&&er(_.end),rt(a),kt(_,m,a)?(0==(131&a)&&(pt(),f=!0),ft(),d=!1):_&&512&a&&dt()),d){if(rr)rr(e.getCommentRange(m).pos)}else d=l;t(m),f&&(mt(),f=!1),_=m}var g=64&a&&n.hasTrailingComma;16&a&&g&&at(","),_&&60&a&&_.end!==r.end&&!(1024&e.getEmitFlags(_))&&er(_.end),128&a&&mt(),Ct(r,n,a)?ft():256&a&&dt()}T&&T(n),15360&a&&(u&&!c&&er(n.end),at(function(e){return i[15360&e][1]}(a)))}}function it(e,t){f.writeSymbol(e,t)}function at(e){f.writePunctuation(e)}function ot(){f.writeTrailingSemicolon(";")}function st(e){f.writeKeyword(e)}function ct(e){f.writeOperator(e)}function ut(e){f.writeParameter(e)}function lt(e){f.writeComment(e)}function dt(){f.writeSpace(" ")}function _t(e){f.writeProperty(e)}function ft(){f.writeLine()}function pt(){f.increaseIndent()}function mt(){f.decreaseIndent()}function gt(t,r,n,i){return M?yt(t,n,r):function(t,r,n,i,a){if(M||t&&e.isInJsonFile(t))return a(r,n,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r],u=c&&c.source||h;i=cr(u,c?c.pos:i),0==(128&s)&&i>=0&&lr(u,i);i=a(r,n,i),c&&(i=c.end);0==(256&s)&&i>=0&&lr(u,i);return i}(i,t,n,r,yt)}function ht(t,r){E&&E(t),r(e.tokenToString(t.kind)),N&&N(t)}function yt(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function vt(t){1&e.getEmitFlags(t)?dt():ft()}function bt(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i<a.length;i++){var o=a[i],s=n?o.slice(n):o;s.length&&(ft(),I(s),f.rawWrite(w))}}function xt(e,t){e?(pt(),ft()):t&&dt()}function St(e,t){e&&mt(),t&&mt()}function Dt(t,r,i){if(1&i)return!0;if(2&i){if(65536&i)return!0;var a=r[0];return void 0===a?!e.rangeIsOnSingleLine(t,n):e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)?Tt(a,i):!e.rangeStartPositionsAreOnSameLine(t,a,n)}return!1}function kt(t,r,i){return!!(1&i)||(2&i?void 0!==t&&void 0!==r&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)?Tt(t,i)||Tt(r,i):!e.rangeEndIsOnSameLineAsRangeStart(t,r,n)):e.getStartsOnNewLine(r))}function Ct(t,r,i){if(1&i)return 0==(131072&i);if(2&i){if(65536&i)return!0;var a=e.lastOrUndefined(r);return void 0===a?!e.rangeIsOnSingleLine(t,n):e.positionIsSynthesized(t.pos)||e.nodeIsSynthesized(a)?Tt(a,i):!e.rangeEndPositionsAreOnSameLine(t,a,n)}return!1}function Tt(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function Et(t,r,i){return t=At(t),r=At(r),i=At(i),!!e.getStartsOnNewLine(i)||!(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(i)||e.rangeEndIsOnSameLineAsRangeStart(r,i,n))}function Nt(t){return 0===t.statements.length&&e.rangeEndIsOnSameLineAsRangeStart(t,t,n)}function At(t){for(;195===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function wt(t,r){return e.isGeneratedIdentifier(t)?Bt(t):e.isIdentifier(t)&&(e.nodeIsSynthesized(t)||!t.parent||!n||t.parent&&n&&e.getSourceFileOfNode(t)!==e.getOriginalNode(n))?e.idText(t):10===t.kind&&t.textSourceNode?wt(t.textSourceNode,r):!e.isLiteralExpression(t)||!e.nodeIsSynthesized(t)&&t.parent?e.getSourceTextOfNodeFromSourceFile(n,t,r):t.text}function Pt(t,r){if(10===t.kind&&t.textSourceNode){var i=t.textSourceNode;return e.isIdentifier(i)?r||16777216&e.getEmitFlags(t)?'"'+e.escapeString(wt(i))+'"':'"'+e.escapeNonAsciiString(wt(i))+'"':Pt(i,r)}return e.getLiteralText(t,n,r)}function Ft(t){t&&524288&e.getEmitFlags(t)||(u.push(l),l=0,d.push(_))}function It(t){t&&524288&e.getEmitFlags(t)||(l=u.pop(),_=d.pop())}function Mt(t){_&&_!==e.lastOrUndefined(d)||(_=e.createMap()),_.set(t,!0)}function Ot(t){if(t)switch(t.kind){case 218:e.forEach(t.statements,Ot);break;case 233:case 231:case 223:case 224:Ot(t.statement);break;case 222:Ot(t.thenStatement),Ot(t.elseStatement);break;case 225:case 227:case 226:Ot(t.initializer),Ot(t.statement);break;case 232:Ot(t.caseBlock);break;case 246:e.forEach(t.clauses,Ot);break;case 271:case 272:e.forEach(t.statements,Ot);break;case 235:Ot(t.tryBlock),Ot(t.catchClause),Ot(t.finallyBlock);break;case 274:Ot(t.variableDeclaration),Ot(t.block);break;case 219:Ot(t.declarationList);break;case 238:e.forEach(t.declarations,Ot);break;case 237:case 151:case 186:case 240:Rt(t.name);break;case 239:Rt(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,Ot),Ot(t.body));break;case 184:case 185:e.forEach(t.elements,Ot);break;case 249:Ot(t.importClause);break;case 250:Rt(t.name),Ot(t.namedBindings);break;case 251:Rt(t.name);break;case 252:e.forEach(t.elements,Ot);break;case 253:Rt(t.propertyName||t.name)}}function Lt(e){if(e)switch(e.kind){case 275:case 276:case 154:case 156:case 158:case 159:Rt(e.name)}}function Rt(t){t&&(e.isGeneratedIdentifier(t)?Bt(t):e.isBindingPattern(t)&&Ot(t))}function Bt(t){if(4==(7&t.autoGenerateFlags))return jt(function(t){var r=t.autoGenerateId,n=t,i=n.original;for(;i&&(n=i,!(e.isIdentifier(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==r));)i=n.original;return n}(t),t.autoGenerateFlags);var r=t.autoGenerateId;return s[r]||(s[r]=function(t){switch(7&t.autoGenerateFlags){case 1:return Ut(0,!!(8&t.autoGenerateFlags));case 2:return Ut(268435456,!!(8&t.autoGenerateFlags));case 3:return qt(e.idText(t),32&t.autoGenerateFlags?Jt:zt,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(t))}function jt(t,r){var n=e.getNodeId(t);return o[n]||(o[n]=function(t,r){switch(t.kind){case 72:return qt(wt(t),zt,!!(16&r),!!(8&r));case 244:case 243:return function(t){var r=wt(t.name);return function(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&70366143&i.flags)return!1}return!0}(r,t)?r:qt(r)}(t);case 249:case 255:return function(t){var r=e.getExternalModuleName(t);return qt(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")}(t);case 239:case 240:case 254:return qt("default");case 209:return qt("class");case 156:case 158:case 159:return function(t){if(e.isIdentifier(t.name))return jt(t.name);return Ut(0)}(t);default:return Ut(0)}}(t,r))}function zt(e){return Jt(e)&&!c.has(e)&&!(_&&_.has(e))}function Jt(t){return!n||e.isFileLevelUniqueName(n,t,b)}function Ut(e,t){if(e&&!(l&e)&&zt(r=268435456===e?"_i":"_n"))return l|=e,t&&Mt(r),r;for(;;){var r,n=268435455&l;if(l++,8!==n&&13!==n)if(zt(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&Mt(r),r}}function qt(e,t,r,n){if(void 0===t&&(t=zt),r&&t(e))return n?Mt(e):c.set(e,!0),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?Mt(a):c.set(a,!0),a;i++}}function Kt(e){return qt(e,Jt,!0)}function Vt(t,r){U(),j=!1;var n=e.getEmitFlags(r),i=e.getCommentRange(r),a=i.pos,o=i.end,s=307!==r.kind,c=a<0||0!=(512&n)||11===r.kind,u=o<0||0!=(1024&n)||11===r.kind,l=L,d=R,_=B;(a>0||o>0)&&a!==o&&(c||Qt(a,s),(!c||a>=0&&0!=(512&n))&&(L=a),(!u||o>=0&&0!=(1024&n))&&(R=o,238===r.kind&&(B=o))),e.forEach(e.getSyntheticLeadingComments(r),Wt),q();var f=se(2,r);2048&n?(z=!0,f(t,r),z=!1):f(t,r),U(),e.forEach(e.getSyntheticTrailingComments(r),Ht),(a>0||o>0)&&a!==o&&(L=l,R=d,B=_,!u&&s&&function(e){ar(e,tr)}(o)),q()}function Wt(e){2===e.kind&&f.writeLine(),Gt(e),e.hasTrailingNewLine||2===e.kind?f.writeLine():f.writeSpace(" ")}function Ht(e){f.isAtStartOfLine()||f.writeSpace(" "),Gt(e),e.hasTrailingNewLine&&f.writeLine()}function Gt(t){var r=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,f,0,r.length,w)}function Xt(t,r,i){U();var a,o,s=r.pos,c=r.end,u=e.getEmitFlags(t),l=z||c<0||0!=(1024&u);s<0||0!=(512&u)||(a=r,(o=e.emitDetachedComments(n.text,re(),f,or,a,w,z))&&(v?v.push(o):v=[o])),q(),2048&u&&!z?(z=!0,i(t),z=!1):i(t),U(),l||(Qt(r.end,!0),j&&!f.isAtStartOfLine()&&f.writeLine()),q()}function Qt(e,t){j=!1,t?ir(e,$t):0===e&&ir(e,Yt)}function Yt(t,r,i,a,o){(function(t,r){return e.isRecognizedTripleSlashComment(n.text,t,r)})(t,r)&&$t(t,r,i,a,o)}function Zt(r,n){return!t.onlyPrintJsDocStyle||(e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n))}function $t(t,r,i,a,o){Zt(n.text,t)&&(j||(e.emitNewLineBeforeLeadingCommentOfPosition(re(),f,o,t),j=!0),ur(t),e.writeCommentRange(n.text,re(),f,t,r,w),ur(r),a?f.writeLine():3===i&&f.writeSpace(" "))}function er(e){z||-1===e||Qt(e,!0)}function tr(t,r,i,a){Zt(n.text,t)&&(f.isAtStartOfLine()||f.writeSpace(" "),ur(t),e.writeCommentRange(n.text,re(),f,t,r,w),ur(r),a&&f.writeLine())}function rr(e,t){z||(U(),ar(e,t?tr:nr),q())}function nr(t,r,i,a){ur(t),e.writeCommentRange(n.text,re(),f,t,r,w),ur(r),a?f.writeLine():f.writeSpace(" ")}function ir(t,r){!n||-1!==L&&t===L||(function(t){return void 0!==v&&e.last(v).nodePos===t}(t)?function(t){var r=e.last(v).detachedCommentEndPos;v.length-1?v.pop():v=void 0;e.forEachLeadingCommentRange(n.text,r,t,r)}(r):e.forEachLeadingCommentRange(n.text,t,r,t))}function ar(t,r){n&&(-1===R||t!==R&&t!==B)&&e.forEachTrailingCommentRange(n.text,t,r)}function or(t,r,i,a,o,s){Zt(n.text,a)&&(ur(a),e.writeCommentRange(t,r,i,a,o,s),ur(o))}function sr(t,r){var n=se(3,r);if(e.isUnparsedSource(r)&&void 0!==r.sourceMapText){var i=e.tryParseRawSourceMap(r.sourceMapText);i&&g.appendSourceMap(f.getLine(),f.getColumn(),i,r.sourceMapPath),n(t,r)}else{var a=e.getSourceMapRange(r),o=a.pos,s=a.end,c=a.source,u=void 0===c?h:c,l=e.getEmitFlags(r);307!==r.kind&&0==(16&l)&&o>=0&&lr(u,cr(u,o)),64&l?(M=!0,n(t,r),M=!1):n(t,r),307!==r.kind&&0==(32&l)&&s>=0&&lr(u,s)}}function cr(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(h.text,r)}function ur(t){if(!(M||e.positionIsSynthesized(t)||_r(h))){var r=e.getLineAndCharacterOfPosition(n,t),i=r.line,a=r.character;g.addMapping(f.getLine(),f.getColumn(),O,i,a,void 0)}}function lr(e,t){if(e!==h){var r=h;dr(e),ur(t),dr(r)}else ur(t)}function dr(e){M||(h=e,_r(e)||(O=g.addSource(e.fileName),t.inlineSources&&g.setSourceContent(O,e.text)))}function _r(t){return e.fileExtensionIs(t.fileName,".json")}}e.forEachEmittedFile=o,e.getOutputPathsFor=s,e.getOutputExtension=u,e.emitFiles=function(t,r,n,i,a,s){var c,u=r.getCompilerOptions(),d=u.sourceMap||u.inlineSourceMap||e.getAreDeclarationMapsEnabled(u)?[]:void 0,_=u.listEmittedFiles?[]:void 0,f=e.createDiagnosticCollection(),p=e.getNewLineCharacter(u,function(){return r.getNewLine()}),m=e.createTextWriter(p),g=e.performance.createTimer("printTime","beforePrint","afterPrint"),h=g.enter,y=g.exit,v={originalOffset:-1,totalLength:-1},b=!1;return h(),o(r,function(n,o){var d=n.jsFilePath,p=n.sourceMapFilePath,m=n.declarationFilePath,g=n.declarationMapPath,h=n.bundleInfoPath;(function(n,o,s,c){if(!i&&o)if(o&&r.isEmitBlocked(o)||u.noEmit)b=!0;else{var d=e.transformNodes(t,r,u,[n],a,!1),_=l({removeComments:u.removeComments,newLine:u.newLine,noEmitHelpers:u.noEmitHelpers,module:u.module,target:u.target,sourceMap:u.sourceMap,inlineSourceMap:u.inlineSourceMap,inlineSources:u.inlineSources,extendedDiagnostics:u.extendedDiagnostics},{hasGlobalName:t.hasGlobalName,onEmitNode:d.emitNodeWithNotification,substituteNode:d.substituteNode});e.Debug.assert(1===d.transformed.length,"Should only see one output from the transform"),S(o,s,d.transformed[0],c,_,u),d.dispose()}})(o,d,p,h),function(n,a,o){if(a&&!e.isInJSFile(n)){var d=e.isSourceFile(n)?[n]:n.sourceFiles,_=e.filter(d,e.isSourceFileNotJS),p=u.outFile||u.out?[e.createBundle(_,e.isSourceFile(n)?void 0:n.prepends)]:_;i&&!e.getEmitDeclarations(u)&&_.forEach(x);var m=e.transformNodes(t,r,u,p,e.concatenate([e.transformDeclarations],s),!1);if(e.length(m.diagnostics))for(var g=0,h=m.diagnostics;g<h.length;g++){var y=h[g];f.add(y)}var v=l({removeComments:u.removeComments,newLine:u.newLine,noEmitHelpers:!0,module:u.module,target:u.target,sourceMap:u.sourceMap,inlineSourceMap:u.inlineSourceMap,extendedDiagnostics:u.extendedDiagnostics,onlyPrintJsDocStyle:!0},{hasGlobalName:t.hasGlobalName,onEmitNode:m.emitNodeWithNotification,substituteNode:m.substituteNode}),D=!!m.diagnostics&&!!m.diagnostics.length||!!r.isEmitBlocked(a)||!!u.noEmit;if(b=b||D,(!D||i)&&(e.Debug.assert(1===m.transformed.length,"Should only see one output from the decl transform"),S(a,o,m.transformed[0],void 0,v,{sourceMap:u.declarationMap,sourceRoot:u.sourceRoot,mapRoot:u.mapRoot,extendedDiagnostics:u.extendedDiagnostics}),i&&279===m.transformed[0].kind)){var k=m.transformed[0];c=k.exportedModulesFromDeclarationEmit}m.dispose()}}(o,m,g),!b&&_&&(i||(d&&_.push(d),p&&_.push(p),h&&_.push(h)),m&&_.push(m),g&&_.push(g))},e.getSourceFilesToEmit(r,n),i),y(),{emitSkipped:b,diagnostics:f.getDiagnostics(),emittedFiles:_,sourceMaps:d,exportedModulesFromDeclarationEmit:c};function x(r){e.isExportAssignment(r)?72===r.expression.kind&&t.collectLinkedAliases(r.expression,!0):e.isExportSpecifier(r)?t.collectLinkedAliases(r.propertyName||r.name,!0):e.forEachChild(r,x)}function S(t,n,i,a,o,s){var c,l=280===i.kind?i:void 0,_=279===i.kind?i:void 0,g=l?l.sourceFiles:[_];if(function(t,r){return(t.sourceMap||t.inlineSourceMap)&&(279!==r.kind||!e.fileExtensionIs(r.fileName,".json"))}(s,i)&&(c=e.createSourceMapGenerator(r,e.getBaseFileName(e.normalizeSlashes(t)),function(t){var r=e.normalizeSlashes(t.sourceRoot||"");return r?e.ensureTrailingDirectorySeparator(r):r}(s),function(t,n,i){if(t.sourceRoot)return r.getCommonSourceDirectory();if(t.mapRoot){var a=e.normalizeSlashes(t.mapRoot);return i&&(a=e.getDirectoryPath(e.getSourceFilePathInNewDir(i.fileName,r,a))),0===e.getRootLength(a)&&(a=e.combinePaths(r.getCommonSourceDirectory(),a)),a}return e.getDirectoryPath(e.normalizePath(n))}(s,t,_),s)),l?o.writeBundle(l,v,m,c):o.writeFile(_,m,c),c){d&&d.push({inputSourceFileNames:c.getSources(),sourceMap:c.toJSON()});var h=function(t,n,i,a,o){if(t.inlineSourceMap){var s=n.toString(),c=e.base64encode(e.sys,s);return"data:application/json;base64,"+c}var u=e.getBaseFileName(e.normalizeSlashes(e.Debug.assertDefined(a)));if(t.mapRoot){var l=e.normalizeSlashes(t.mapRoot);return o&&(l=e.getDirectoryPath(e.getSourceFilePathInNewDir(o.fileName,r,l))),0===e.getRootLength(l)?(l=e.combinePaths(r.getCommonSourceDirectory(),l),e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(i)),e.combinePaths(l,u),r.getCurrentDirectory(),r.getCanonicalFileName,!0)):e.combinePaths(l,u)}return u}(s,c,t,n,_);if(h&&(m.isAtStartOfLine()||m.rawWrite(p),m.writeComment("//# sourceMappingURL="+h)),n){var y=c.toString();e.writeFile(r,f,n,y,!1,g)}}else m.writeLine();e.writeFile(r,f,t,m.getText(),!!u.emitBOM,g),a&&(v.totalLength=m.getTextPos(),e.writeFile(r,f,a,JSON.stringify(v,void 0,2),!1)),m.clear(),v={originalOffset:-1,totalLength:-1}}},function(e){e[e.Notification=0]="Notification",e[e.Substitution=1]="Substitution",e[e.Comments=2]="Comments",e[e.SourceMaps=3]="SourceMaps",e[e.Emit=4]="Emit"}(t||(t={})),e.createPrinter=l,function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(r||(r={}))}(d||(d={})),function(e){var t;function r(e,t,r,n){return e.watchFile(t,r,n)}function n(e,t,r,n){return e.watchDirectory(t,r,0!=(1&n))}function i(e,r){switch(e){case t.None:return r;case t.TriggerOnly:return s;case t.Verbose:return r===n?o:a}}function a(e,t,r,n,i,a,o,u,l,d,_){l(d+":: Added:: "+c(t,n,a,o,_));var f=s(e,t,r,n,i,a,o,u,l,d,_);return{close:function(){l(d+":: Close:: "+c(t,n,a,o,_)),f.close()}}}function o(t,r,n,i,a,o,u,l,d,_,f){var p=_+":: Added:: "+c(r,i,o,u,f);d(p);var m=e.timestamp(),g=s(t,r,n,i,a,o,u,l,d,_,f),h=e.timestamp()-m;return d("Elapsed:: "+h+"ms "+p),{close:function(){var t=_+":: Close:: "+c(r,i,o,u,f);d(t);var n=e.timestamp();g.close();var a=e.timestamp()-n;d("Elapsed:: "+a+"ms "+t)}}}function s(t,r,n,i,a,o,s,u,l,d,_){return u(t,r,function(t,u){var f=d+":: Triggered with "+t+" "+(void 0!==u?u:"")+":: "+c(r,i,o,s,_);l(f);var p=e.timestamp();n(t,u,a);var m=e.timestamp()-p;l("Elapsed:: "+m+"ms "+f)},i)}function c(e,t,r,n,i){return"WatchInfo: "+e+" "+t+" "+(i?i(r,n):r)}function u(e){e.watcher.close()}e.createCachedDirectoryStructureHost=function(t,r,n){if(t.getDirectories&&t.readDirectory){var i=e.createMap(),a=e.createGetCanonicalFileName(n);return{useCaseSensitiveFileNames:n,fileExists:function(e){var r=c(o(e));return r&&_(r.files,u(e))||t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:t.directoryExists&&function(r){var n=o(r);return i.has(e.ensureTrailingDirectorySeparator(n))||t.directoryExists(r)},getDirectories:function(e){var r=o(e),n=l(e,r);return n?n.directories.slice():t.getDirectories(e)},readDirectory:function(i,a,s,c,u){var d=o(i),_=l(i,d);return _?e.matchFiles(i,a,s,c,n,r,u,function(t){var r=o(t);return r===d?_:l(t,r)||e.emptyFileSystemEntries}):t.readDirectory(i,a,s,c,u)},createDirectory:t.createDirectory&&function(e){var r=c(o(e)),n=u(e);r&&f(r.directories,n,!0),t.createDirectory(e)},writeFile:t.writeFile&&function(e,r,n){var i=c(o(e));return i&&p(i,u(e),!0),t.writeFile(e,r,n)},addOrDeleteFileOrDirectory:function(e,r){if(s(r))m();else{var n=c(r);if(n){if(t.directoryExists){var i=u(e),a={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};return a.directoryExists||_(n.directories,i)?m():p(n,i,a.fileExists),a}m()}}},addOrDeleteFile:function(t,r,n){if(n!==e.FileWatcherEventKind.Changed){var i=c(r);i&&p(i,u(t),n===e.FileWatcherEventKind.Created)}},clearCache:m}}function o(t){return e.toPath(t,r,a)}function s(t){return i.get(e.ensureTrailingDirectorySeparator(t))}function c(t){return s(e.getDirectoryPath(t))}function u(t){return e.getBaseFileName(e.normalizePath(t))}function l(r,n){var a=s(n=e.ensureTrailingDirectorySeparator(n));if(a)return a;try{return function(r,n){var a={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),u)||[],directories:t.getDirectories(r)||[]};return i.set(e.ensureTrailingDirectorySeparator(n),a),a}(r,n)}catch(t){return void e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(n)))}}function d(e,t){return a(e)===a(t)}function _(t,r){return e.some(t,function(e){return d(e,r)})}function f(t,r,n){if(_(t,r)){if(!n)return e.filterMutate(t,function(e){return!d(e,r)})}else if(n)return t.push(r)}function p(e,t,r){f(e.files,t,r)}function m(){i.clear()}},function(e){e[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={})),e.updateMissingFilePathsWatch=function(t,r,n){var i=t.getMissingFilePaths(),a=e.arrayToSet(i);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(t,r,n){function i(e,t){return{watcher:n(e,t),flags:t}}e.mutateMap(t,r,{createNewValue:i,onDeleteValue:u,onExistingValue:function(e,r,n){e.flags!==r&&(e.watcher.close(),t.set(n,i(n,r)))}})},e.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(e,a,o){return function(e,r,n,a,o){var s=i(e,a),c=e===t.None?function(e,t,r,n,i){return a(e,t,function(e,t){return r(e,t,i)},n)}:s,u=i(e,o);return{watchFile:function(e,t,i,o,c,u){return s(e,t,i,o,void 0,c,u,a,r,"FileWatcher",n)},watchFilePath:function(e,t,i,o,s,u,l){return c(e,t,i,o,s,u,l,a,r,"FileWatcher",n)},watchDirectory:function(e,t,i,a,s,c){return u(e,t,i,a,void 0,s,c,o,r,"DirectoryWatcher",n)}}}(e,a,o,r,n)},e.closeFileWatcherOf=u}(d||(d={})),function(e){var t,r=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;function n(t,r){var n=e.getDirectoryPath(r),i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}function i(t,r,n){var i;return e.forEach(t,function(t){var a=e.getNormalizedPathComponents(t,r);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;s<o;s++)if(n(i[s])!==n(a[s])){if(0===s)return!0;i.length=s;break}a.length<i.length&&(i.length=a.length)}else i=a})?"":i?e.getPathFromPathComponents(i):r}function a(e,t){return o(e,t)}function o(t,r,n){void 0===n&&(n=e.sys);var i,a=e.createMap();function o(t){t.length>e.getRootLength(t)&&!function(e){return!!a.has(e)||!!n.directoryExists(e)&&(a.set(e,!0),!0)}(t)&&(o(e.getDirectoryPath(t)),l.createDirectory?l.createDirectory(t):n.createDirectory(t))}function s(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var c=e.getNewLineCharacter(t,function(){return n.newLine}),u=n.realpath&&function(e){return n.realpath(e)},l={getSourceFile:function(t,n,i){var a;try{e.performance.mark("beforeIORead"),a=l.readFile(t),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),a=""}return void 0!==a?e.createSourceFile(t,a,n,r):void 0},getDefaultLibLocation:s,getDefaultLibFileName:function(t){return e.combinePaths(s(),e.getDefaultLibFileName(t))},writeFile:function(r,a,s,c){try{e.performance.mark("beforeIOWrite"),o(e.getDirectoryPath(e.normalizePath(r))),e.isWatchSet(t)&&n.createHash&&n.getModifiedTime?function(t,r,a){i||(i=e.createMap());var o=n.createHash(r),s=n.getModifiedTime(t);if(s){var c=i.get(t);if(c&&c.byteOrderMark===a&&c.hash===o&&c.mtime.getTime()===s.getTime())return}n.writeFile(t,r,a);var u=n.getModifiedTime(t)||e.missingFileModifiedTime;i.set(t,{hash:o,byteOrderMark:a,mtime:u})}(r,a,s):n.writeFile(r,a,s),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){c&&c(e.message)}},getCurrentDirectory:e.memoize(function(){return n.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getCanonicalFileName:function(e){return n.useCaseSensitiveFileNames?e:e.toLowerCase()},getNewLine:function(){return c},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:function(e){return n.write(e+c)},directoryExists:function(e){return n.directoryExists(e)},getEnvironmentVariable:function(e){return n.getEnvironmentVariable?n.getEnvironmentVariable(e):""},getDirectories:function(e){return n.getDirectories(e)},realpath:u,readDirectory:function(e,t,r,i,a){return n.readDirectory(e,t,r,i,a)},createDirectory:function(e){return n.createDirectory(e)}};return l}function c(t,r){var n=e.diagnosticCategoryName(t)+" TS"+t.code+": "+b(t.messageText,r.getNewLine())+r.getNewLine();if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character,s=t.file.fileName;return e.convertToRelativePath(s,r.getCurrentDirectory(),function(e){return r.getCanonicalFileName(e)})+"("+(a+1)+","+(o+1)+"): "+n}return n}e.findConfigFile=function(t,r,n){return void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,function(t){var i=e.combinePaths(t,n);return r(i)?i:void 0})},e.resolveTripleslashReference=n,e.computeCommonSourceDirectoryOfFilenames=i,e.createCompilerHost=a,e.createCompilerHostWorker=o,e.changeCompilerHostToUseCache=function(t,r,n){var i=t.readFile,a=t.fileExists,o=t.directoryExists,s=t.createDirectory,c=t.writeFile,u=t.getSourceFile,l=e.createMap(),d=e.createMap(),_=e.createMap(),f=e.createMap(),p=function(e,r){var n=i.call(t,r);return l.set(e,n||!1),n};return t.readFile=function(n){var a=r(n),o=l.get(a);return void 0!==o?o:e.fileExtensionIs(n,".json")?p(a,n):i.call(t,n)},n&&(t.getSourceFile=function(n,i,a,o){var s=r(n),c=f.get(s);if(c)return c;var l=u.call(t,n,i,a,o);return l&&(e.isDeclarationFileName(n)||e.fileExtensionIs(n,".json"))&&f.set(s,l),l}),t.fileExists=function(e){var n=r(e),i=d.get(n);if(void 0!==i)return i;var o=a.call(t,e);return d.set(n,!!o),o},t.writeFile=function(e,i,a,o,s){var u=r(e);d.delete(u);var _=l.get(u);if(_&&_!==i)l.delete(u),f.delete(u);else if(n){var p=f.get(u);p&&p.text!==i&&f.delete(u)}c.call(t,e,i,a,o,s)},o&&s&&(t.directoryExists=function(e){var n=r(e),i=_.get(n);if(void 0!==i)return i;var a=o.call(t,e);return _.set(n,!!a),a},t.createDirectory=function(e){var n=r(e);_.delete(n),s.call(t,e)}),{originalReadFile:i,originalFileExists:a,originalDirectoryExists:o,originalCreateDirectory:s,originalWriteFile:c,originalGetSourceFile:u,readFileWithCache:function(e){var t=r(e),n=l.get(t);return void 0!==n?n||void 0:p(t,e)}}},e.getPreEmitDiagnostics=function(t,r,n){var i=t.getConfigFileParsingDiagnostics().concat(t.getOptionsDiagnostics(n),t.getSyntacticDiagnostics(r,n),t.getGlobalDiagnostics(n),t.getSemanticDiagnostics(r,n));return e.getEmitDeclarations(t.getCompilerOptions())&&e.addRange(i,t.getDeclarationDiagnostics(r,n)),e.sortAndDeduplicateDiagnostics(i)},e.formatDiagnostics=function(e,t){for(var r="",n=0,i=e;n<i.length;n++)r+=c(i[n],t);return r},e.formatDiagnostic=c,function(e){e.Grey="[90m",e.Red="[91m",e.Yellow="[93m",e.Blue="[94m",e.Cyan="[96m"}(t=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var u="[7m",l=" ",d="[0m",_="...",f="  ",p="    ";function m(r){switch(r){case e.DiagnosticCategory.Error:return t.Red;case e.DiagnosticCategory.Warning:return t.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return t.Blue}}function g(e,t){return t+e+d}function h(e,t){for(;e.length<t;)e=" "+e;return e}function y(t,r,n,i,a,o){var s=e.getLineAndCharacterOfPosition(t,r),c=s.line,f=s.character,p=e.getLineAndCharacterOfPosition(t,r+n),m=p.line,y=p.character,v=e.getLineAndCharacterOfPosition(t,t.text.length).line,b=m-c>=4,x=(m+1+"").length;b&&(x=Math.max(_.length,x));for(var S="",D=c;D<=m;D++){S+=o.getNewLine(),b&&c+1<D&&D<m-1&&(S+=i+g(h(_,x),u)+l+o.getNewLine(),D=m-1);var k=e.getPositionOfLineAndCharacter(t,D,0),C=D<v?e.getPositionOfLineAndCharacter(t,D+1,0):t.text.length,T=t.text.slice(k,C);if(T=(T=T.replace(/\s+$/g,"")).replace("\t"," "),S+=i+g(h(D+1+"",x),u)+l,S+=T+o.getNewLine(),S+=i+g(h("",x),u)+l,S+=a,D===c){var E=D===m?y:void 0;S+=T.slice(0,f).replace(/\S/g," "),S+=T.slice(f,E).replace(/./g,"~")}else S+=D===m?T.slice(0,y).replace(/./g,"~"):T.replace(/./g,"~");S+=d}return S}function v(r,n,i,a){void 0===a&&(a=g);var o=e.getLineAndCharacterOfPosition(r,n),s=o.line,c=o.character,u="";return u+=a(i?e.convertToRelativePath(r.fileName,i.getCurrentDirectory(),function(e){return i.getCanonicalFileName(e)}):r.fileName,t.Cyan),u+=":",u+=a(""+(s+1),t.Yellow),u+=":",u+=a(""+(c+1),t.Yellow)}function b(t,r){if(e.isString(t))return t;for(var n=t,i="",a=0;n;){if(a){i+=r;for(var o=0;o<a;o++)i+="  "}i+=n.messageText,a++,n=n.next}return i}function x(t,r,n,i){if(0===t.length)return[];for(var a=[],o=e.createMap(),s=0,c=t;s<c.length;s++){var u=c[s],l=void 0;o.has(u)?l=o.get(u):o.set(u,l=i(u,r,n)),a.push(l)}return a}function S(t){return{fileExists:function(e){return t.fileExists(e)},readDirectory:function(r,n,i,a,o){return e.Debug.assertDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)},readFile:function(e){return t.readFile(e)},useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return t.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:function(){},trace:t.trace?function(e){return t.trace(e)}:void 0}}function D(t,r){var n=r||t;return e.resolveConfigFileProjectName(n.path)}function k(e){return e.declaration?"declaration":"composite"}function C(t,r){switch(r.extension){case".ts":case".d.ts":return;case".tsx":return n();case".jsx":return n()||i();case".js":return i();case".json":return t.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function n(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return t.allowJs||!e.getStrictOptionValue(t,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function T(e){for(var t=e.imports,r=e.moduleAugmentations,n=t.map(function(e){return e.text}),i=0,a=r;i<a.length;i++){var o=a[i];10===o.kind&&n.push(o.text)}return n}e.formatColorAndReset=g,e.formatLocation=v,e.formatDiagnosticsWithColorAndContext=function(r,n){for(var i="",a=0,o=r;a<o.length;a++){var s=o[a];if(s.file&&(i+=v(d=s.file,_=s.start,n),i+=" - "),i+=g(e.diagnosticCategoryName(s),m(s.category)),i+=g(" TS"+s.code+": ",t.Grey),i+=b(s.messageText,n.getNewLine()),s.file&&(i+=n.getNewLine(),i+=y(s.file,s.start,s.length,"",m(s.category),n),s.relatedInformation)){i+=n.getNewLine();for(var c=0,u=s.relatedInformation;c<u.length;c++){var l=u[c],d=l.file,_=l.start,h=l.length,x=l.messageText;d&&(i+=n.getNewLine(),i+=f+v(d,_,n),i+=y(d,_,h,p,t.Cyan,n)),i+=n.getNewLine(),i+=p+b(x,n.getNewLine())}}i+=n.getNewLine()}return i},e.flattenDiagnosticMessageText=b,e.isProgramUptoDate=function(t,r,n,i,a,o,s,c){if(!t||s)return!1;if(t.getRootFileNames().length!==r.length)return!1;var u;if(!e.arrayIsEqualTo(t.getProjectReferences(),c,function(r,n,i){return!!e.projectReferenceIsEqualTo(r,n)&&function t(r,n){return r?!!e.contains(u,r)||!!d(r.sourceFile)&&((u||(u=[])).push(r),!e.forEach(r.references,function(e,n){return!t(e,r.commandLine.projectReferences[n])})):!a(D(n))}(t.getResolvedProjectReferences()[i],r)}))return!1;if(t.getSourceFiles().some(function(e){return!d(e)||o(e.path)}))return!1;if(t.getMissingFilePaths().some(a))return!1;var l=t.getCompilerOptions();return!(!e.compareDataObjects(l,n)||l.configFile&&n.configFile&&l.configFile.text!==n.configFile.text);function d(e){return e.version===i(e.resolvedPath)}},e.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?e.options.configFile.parseDiagnostics.concat(e.errors):e.errors},e.createProgram=function(t,o,c,u,l){var d,_,f,p,m,g,h,y,v=e.isArray(t)?function(e,t,r,n,i){return{rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}}(t,o,c,u,l):t,b=v.rootNames,E=v.options,N=v.configFileParsingDiagnostics,A=v.projectReferences,w=v.oldProgram,P=e.createMap(),F={},I={},M=e.createMap(),O=e.createDiagnosticCollection(),L="number"==typeof E.maxNodeModuleJsDepth?E.maxNodeModuleJsDepth:0,R=0,B=e.createMap(),j=e.createMap();e.performance.mark("beforeProgram");var z,J,U,q,K=v.host||a(E),V=S(K),W=E.noLib,H=e.memoize(function(){return K.getDefaultLibFileName(E)}),G=K.getDefaultLibLocation?K.getDefaultLibLocation():e.getDirectoryPath(H()),X=e.createDiagnosticCollection(),Q=K.getCurrentDirectory(),Y=e.getSupportedExtensions(E),Z=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(E,Y),$=e.createMap(),ee=K.hasInvalidatedResolution||e.returnFalse;if(K.resolveModuleNames)U=function(t,r,n,i){return K.resolveModuleNames(e.Debug.assertEachDefined(t),r,n,i).map(function(t){if(!t||void 0!==t.extension)return t;var r=e.clone(t);return r.extension=e.extensionFromPath(t.resolvedFileName),r})};else{J=e.createModuleResolutionCache(Q,function(e){return K.getCanonicalFileName(e)});var te=function(t,r,n){return e.resolveModuleName(t,r,E,K,J,n).resolvedModule};U=function(t,r,n,i){return x(e.Debug.assertEachDefined(t),r,i,te)}}if(K.resolveTypeReferenceDirectives)q=function(t,r,n){return K.resolveTypeReferenceDirectives(e.Debug.assertEachDefined(t),r,n)};else{var re=function(t,r,n){return e.resolveTypeReferenceDirective(t,r,E,K,n).resolvedTypeReferenceDirective};q=function(t,r,n){return x(e.Debug.assertEachDefined(t),r,n,re)}}var ne,ie,ae,oe,se=e.createMap(),ce=e.createMap(),ue=e.createMultiMap(),le=e.createMap(),de=K.useCaseSensitiveFileNames()?e.createMap():void 0,_e=function(t,r){if(!t)return!1;var n=t.getCompilerOptions();return!!e.sourceFileAffectingCompilerOptions.some(function(t){return!e.isJsonEqual(e.getCompilerOptionValue(n,t),e.getCompilerOptionValue(r,t))})}(w,E),fe=function(){if(!w)return 0;var t=w.getCompilerOptions();if(e.changesAffectModuleResolution(t,E))return w.structureIsReused=0;e.Debug.assert(!(3&w.structureIsReused));var r=w.getRootFileNames();if(!e.arrayIsEqualTo(r,b))return w.structureIsReused=0;if(!e.arrayIsEqualTo(E.types,t.types))return w.structureIsReused=0;if(ct(w.getProjectReferences(),w.getResolvedProjectReferences(),function(e,t,r){var n=(r?r.commandLine.projectReferences:A)[t],i=yt(n);return e?!i||i.sourceFile!==e.sourceFile:void 0!==i},function(t,r){var n=r?ut(r.sourceFile.path).commandLine.projectReferences:A;return!e.arrayIsEqualTo(t,n,e.projectReferenceIsEqualTo)}))return w.structureIsReused=0;A&&(ie=A.map(yt));var n=[],i=[];if(w.structureIsReused=2,w.getMissingFilePaths().some(function(e){return K.fileExists(e)}))return w.structureIsReused=0;var a,o=w.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}(a||(a={}));for(var s=e.createMap(),c=0,u=o;c<u.length;c++){var l=u[c],d=K.getSourceFileByPath?K.getSourceFileByPath(l.fileName,l.resolvedPath,E.target,void 0,_e):K.getSourceFile(l.fileName,E.target,void 0,_e);if(!d)return w.structureIsReused=0;e.Debug.assert(!d.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var _=void 0;if(l.redirectInfo){if(d!==l.redirectInfo.unredirected)return w.structureIsReused=0;_=!1,d=l}else if(w.redirectTargetsMap.has(l.path)){if(d!==l)return w.structureIsReused=0;_=!1}else _=d!==l;d.path=l.path,d.originalFileName=l.originalFileName,d.resolvedPath=l.resolvedPath,d.fileName=l.fileName;var f=w.sourceFileToPackageName.get(l.path);if(void 0!==f){var m=s.get(f),g=_?1:0;if(void 0!==m&&1===g||1===m)return w.structureIsReused=0;s.set(f,g)}if(_){if(!e.arrayIsEqualTo(l.libReferenceDirectives,d.libReferenceDirectives,Ye))return w.structureIsReused=0;l.hasNoDefaultLib!==d.hasNoDefaultLib&&(w.structureIsReused=1),e.arrayIsEqualTo(l.referencedFiles,d.referencedFiles,Ye)||(w.structureIsReused=1),$e(d),e.arrayIsEqualTo(l.imports,d.imports,Ze)||(w.structureIsReused=1),e.arrayIsEqualTo(l.moduleAugmentations,d.moduleAugmentations,Ze)||(w.structureIsReused=1),(1572864&l.flags)!=(1572864&d.flags)&&(w.structureIsReused=1),e.arrayIsEqualTo(l.typeReferenceDirectives,d.typeReferenceDirectives,Ye)||(w.structureIsReused=1),i.push({oldFile:l,newFile:d})}else ee(l.path)&&(w.structureIsReused=1,i.push({oldFile:l,newFile:d}));n.push(d)}if(2!==w.structureIsReused)return w.structureIsReused;for(var h=i.map(function(e){return e.oldFile}),y=0,v=o;y<v.length;y++){var x=v[y];if(!e.contains(h,x))for(var S=0,D=x.ambientModuleNames;S<D.length;S++){var k=D[S];P.set(k,x.fileName)}}for(var C=0,N=i;C<N.length;C++){var F=N[C],l=F.oldFile,d=F.newFile,I=e.getNormalizedAbsolutePath(d.originalFileName,Q);if(U){var L=T(d),R=Pe(L,I,d),B=e.hasChangesInResolutions(L,R,l.resolvedModules,e.moduleResolutionIsEqualTo);B?(w.structureIsReused=1,d.resolvedModules=e.zipToMap(L,R)):d.resolvedModules=l.resolvedModules}if(q){var z=e.map(d.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),R=q(z,I,ot(d.originalFileName)),B=e.hasChangesInResolutions(z,R,l.resolvedTypeReferenceDirectiveNames,e.typeDirectiveIsEqualTo);B?(w.structureIsReused=1,d.resolvedTypeReferenceDirectiveNames=e.zipToMap(z,R)):d.resolvedTypeReferenceDirectiveNames=l.resolvedTypeReferenceDirectiveNames}}if(2!==w.structureIsReused)return w.structureIsReused;if(K.hasChangedAutomaticTypeDirectiveNames)return w.structureIsReused=1;ne=w.getMissingFilePaths();for(var J=0,V=n;J<V.length;J++){var d=V[J],W=d.path;it(d,W,d.resolvedPath),w.isSourceFileFromExternalLibrary(w.getSourceFileByPath(W))&&j.set(W,!0)}p=n,O=w.getFileProcessingDiagnostics();for(var H=0,G=i;H<G.length;H++){var X=G[H];O.reattachFileDiagnostics(X.newFile)}return M=w.getResolvedTypeReferenceDirectives(),ce=w.sourceFileToPackageName,ue=w.redirectTargetsMap,w.structureIsReused=2}();if(2!==fe){if(_=[],f=[],A&&(ie||(ie=A.map(yt)),b.length))for(var pe=0,me=ie;pe<me.length;pe++){var ge=me[pe];if(ge){var he=ge.commandLine.options.outFile||ge.commandLine.options.out;he&&tt(e.changeExtension(he,".d.ts"),!1,!1,void 0)}}e.forEach(b,function(e){return Qe(e,!1,!1)});var ye=b.length?e.getAutomaticTypeDirectiveNames(E,K):e.emptyArray;if(ye.length)for(var ve=E.configFilePath?e.getDirectoryPath(E.configFilePath):K.getCurrentDirectory(),be=e.combinePaths(ve,"__inferred type names__.ts"),xe=q(ye,be),Se=0;Se<ye.length;Se++)_t(ye[Se],xe[Se]);if(b.length&&!W){var De=H();!E.lib&&De?Qe(De,!0,!1):e.forEach(E.lib,function(t){Qe(e.combinePaths(G,t),!0,!1)})}ne=e.arrayFrom(le.keys(),function(e){return e}).filter(function(e){return!le.get(e)}),p=e.stableSort(_,function(t,r){return e.compareValues(Ne(t),Ne(r))}).concat(f),_=void 0,f=void 0}if(e.Debug.assert(!!ne),w&&K.onReleaseOldSourceFile){for(var ke=0,Ce=w.getSourceFiles();ke<Ce.length;ke++){var Te=Ce[ke],Ee=je(Te.resolvedPath);(_e||!Ee||Te.resolvedPath===Te.path&&Ee.resolvedPath!==Te.path)&&K.onReleaseOldSourceFile(Te,w.getCompilerOptions(),!!je(Te.path))}w.forEachResolvedProjectReference(function(e,t){e&&!ut(t)&&K.onReleaseOldSourceFile(e.sourceFile,w.getCompilerOptions(),!1)})}return w=void 0,d={getRootFileNames:function(){return b},getSourceFile:Be,getSourceFileByPath:je,getSourceFiles:function(){return p},getMissingFilePaths:function(){return ne},getCompilerOptions:function(){return E},getSyntacticDiagnostics:function(e,t){return ze(e,Je,t)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(O.getGlobalDiagnostics(),e.concatenate(X.getGlobalDiagnostics(),function(){if(!E.configFile)return e.emptyArray;var t=X.getDiagnostics(E.configFile.fileName);return st(function(r){r&&(t=e.concatenate(t,X.getDiagnostics(r.sourceFile.fileName)))}),t}())))},getGlobalDiagnostics:function(){return b.length?e.sortAndDeduplicateDiagnostics(Oe().getGlobalDiagnostics().slice()):e.emptyArray},getSemanticDiagnostics:function(e,t){return ze(e,qe,t)},getSuggestionDiagnostics:function(e,t){return Ue(function(){return Oe().getSuggestionDiagnostics(e,t)})},getDeclarationDiagnostics:function(e,t){var r=d.getCompilerOptions();return!e||r.out||r.outFile?We(e,t):ze(e,Xe,t)},getTypeChecker:Le,getClassifiableNames:function(){if(!y){Le(),y=e.createUnderscoreEscapedMap();for(var t=0,r=p;t<r.length;t++){var n=r[t];e.copyEntries(n.classifiableNames,y)}}return y},getDiagnosticsProducingTypeChecker:Oe,getCommonSourceDirectory:we,emit:function(t,r,n,i,a){return Ue(function(){return function(t,r,n,i,a,o){var s=[];if(!a){if(E.noEmit)return{diagnostics:s,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(E.noEmitOnError){var c=t.getOptionsDiagnostics(i).concat(t.getSyntacticDiagnostics(r,i),t.getGlobalDiagnostics(i),t.getSemanticDiagnostics(r,i));if(0===c.length&&e.getEmitDeclarations(t.getCompilerOptions())&&(s=t.getDeclarationDiagnostics(void 0,i)),c.length>0||s.length>0)return{diagnostics:e.concatenate(c,s),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var u=Oe().getEmitResolver(E.outFile||E.out?void 0:r,i);e.performance.mark("beforeEmit");var l=a?[]:e.getTransformers(E,o),d=e.emitFiles(u,Fe(n),r,a,l,o&&o.afterDeclarations);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}(d,t,r,n,i,a)})},getCurrentDirectory:function(){return Q},getNodeCount:function(){return Oe().getNodeCount()},getIdentifierCount:function(){return Oe().getIdentifierCount()},getSymbolCount:function(){return Oe().getSymbolCount()},getTypeCount:function(){return Oe().getTypeCount()},getFileProcessingDiagnostics:function(){return O},getResolvedTypeReferenceDirectives:function(){return M},isSourceFileFromExternalLibrary:Me,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!E.noLib)return!1;var r=K.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return E.lib?e.some(E.lib,function(n){return r(t.fileName,e.combinePaths(G,n))}):r(t.fileName,H())},dropDiagnosticsProducingTypeChecker:function(){g=void 0},getSourceFileFromReference:function(e,t){return et(n(t.fileName,e.fileName),function(e){return le.get(Ae(e))})},getLibFileFromReference:function(t){var r=t.fileName.toLocaleLowerCase(),n=e.libMap.get(r);if(n)return Be(e.combinePaths(G,n))},sourceFileToPackageName:ce,redirectTargetsMap:ue,isEmittedFile:function(t){if(E.noEmit)return!1;var r=Ae(t);if(je(r))return!1;var n=E.outFile||E.out;if(n)return At(r,n)||At(r,e.removeFileExtension(n)+".d.ts");if(E.declarationDir&&e.containsPath(E.declarationDir,r,Q,!K.useCaseSensitiveFileNames()))return!0;if(E.outDir)return e.containsPath(E.outDir,r,Q,!K.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJSExtensions)||e.fileExtensionIs(r,".d.ts")){var i=e.removeFileExtension(r);return!!je(i+".ts")||!!je(i+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return N||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(t,r){return J&&e.resolveModuleNameFromCache(t,r,J)},getProjectReferences:function(){return A},getResolvedProjectReferences:function(){return ie},getProjectReferenceRedirect:at,getResolvedProjectReferenceToRedirect:ot,getResolvedProjectReferenceByPath:ut,forEachResolvedProjectReference:st},function(){if(E.strictPropertyInitialization&&!e.getStrictOptionValue(E,"strictNullChecks")&&St(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),E.isolatedModules&&(e.getEmitDeclarations(E)&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,k(E),"isolatedModules"),E.noEmitOnError&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules"),E.out&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),E.outFile&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),E.inlineSourceMap&&(E.sourceMap&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),E.mapRoot&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),E.paths&&void 0===E.baseUrl&&St(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),E.composite&&!1===E.declaration&&St(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),ct(A,ie,function(t,r,n){var i=(n?n.commandLine.projectReferences:A)[r],a=n&&n.sourceFile;if(t){var o=t.commandLine.options;if(!o.composite){var s=n?n.commandLine.fileNames:b;s.length&&kt(a,r,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,i.path)}if(i.prepend){var c=o.outFile||o.out;c?K.fileExists(c)||kt(a,r,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,i.path):kt(a,r,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,i.path)}}else kt(a,r,e.Diagnostics.File_0_not_found,i.path)}),E.composite){var t=p.filter(function(e){return!e.isDeclarationFile});if(b.length<t.length)for(var r=b.map(function(t){return e.normalizePath(t).toLowerCase()}),n=0,i=t.map(function(t){return e.normalizePath(t.path).toLowerCase()});n<i.length;n++){var a=i[n];-1===r.indexOf(a)&&X.add(e.createCompilerDiagnostic(e.Diagnostics.File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern,a))}}if(E.paths)for(var o in E.paths)if(e.hasProperty(E.paths,o))if(e.hasZeroOrOneAsteriskCharacter(o)||bt(!0,o,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,o),e.isArray(E.paths[o])){var s=E.paths[o].length;0===s&&bt(!1,o,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,o);for(var c=0;c<s;c++){var u=E.paths[o][c],l=typeof u;"string"===l?e.hasZeroOrOneAsteriskCharacter(u)||vt(o,c,e.Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character,u,o):vt(o,c,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,u,o,l)}}else bt(!1,o,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,o);E.sourceMap||E.inlineSourceMap||(E.inlineSources&&St(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),E.sourceRoot&&St(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),E.out&&E.outFile&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!E.mapRoot||E.sourceMap||E.declarationMap||St(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),E.declarationDir&&(e.getEmitDeclarations(E)||St(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),(E.out||E.outFile)&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",E.out?"out":"outFile")),E.declarationMap&&!e.getEmitDeclarations(E)&&St(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),E.lib&&E.noLib&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),E.noImplicitUseStrict&&e.getStrictOptionValue(E,"alwaysStrict")&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var d=E.target||0,_=E.outFile||E.out,f=e.find(p,function(t){return e.isExternalModule(t)&&!t.isDeclarationFile});if(E.isolatedModules){E.module===e.ModuleKind.None&&d<2&&St(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target");var m=e.find(p,function(t){return!e.isExternalModule(t)&&!t.isDeclarationFile&&6!==t.scriptKind});if(m){var g=e.getErrorSpanForNode(m,m);X.add(e.createFileDiagnostic(m,g.start,g.length,e.Diagnostics.Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided))}}else if(f&&d<2&&E.module===e.ModuleKind.None){var g=e.getErrorSpanForNode(f,f.externalModuleIndicator);X.add(e.createFileDiagnostic(f,g.start,g.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(_&&!E.emitDeclarationOnly)if(E.module&&E.module!==e.ModuleKind.AMD&&E.module!==e.ModuleKind.System)St(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,E.out?"out":"outFile","module");else if(void 0===E.module&&f){var g=e.getErrorSpanForNode(f,f.externalModuleIndicator);X.add(e.createFileDiagnostic(f,g.start,g.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,E.out?"out":"outFile"))}if(E.resolveJsonModule&&(e.getEmitModuleResolutionKind(E)!==e.ModuleResolutionKind.NodeJs?St(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(E)||St(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),E.outDir||E.sourceRoot||E.mapRoot){var h=we();E.outDir&&""===h&&p.some(function(t){return e.getRootLength(t.fileName)>1})&&St(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!E.noEmit&&E.allowJs&&e.getEmitDeclarations(E)&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs",k(E)),E.checkJs&&!E.allowJs&&X.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),E.emitDeclarationOnly&&(e.getEmitDeclarations(E)||St(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),E.noEmit&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),E.emitDecoratorMetadata&&!E.experimentalDecorators&&St(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),E.jsxFactory?(E.reactNamespace&&St(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(E.jsxFactory,d)||Dt("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,E.jsxFactory)):E.reactNamespace&&!e.isIdentifierText(E.reactNamespace,d)&&Dt("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,E.reactNamespace),!E.noEmit&&!E.suppressOutputPathCheck){var y=Fe(),v=e.createMap();e.forEachEmittedFile(y,function(e){E.emitDeclarationOnly||x(e.jsFilePath,v),x(e.declarationFilePath,v)})}function x(t,r){if(t){var n,i=Ae(t);le.has(i)&&(E.configFilePath||(n=e.chainDiagnosticMessages(void 0,e.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),n=e.chainDiagnosticMessages(n,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),Nt(t,e.createCompilerDiagnosticFromMessageChain(n)));var a=K.useCaseSensitiveFileNames()?i:i.toLocaleLowerCase();r.has(a)?Nt(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.set(a,!0)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),d;function Ne(t){if(e.containsPath(G,t.fileName,!1)){var r=e.getBaseFileName(t.fileName);if("lib.d.ts"===r||"lib.es6.d.ts"===r)return 0;var n=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts"),i=e.libs.indexOf(n);if(-1!==i)return i+1}return e.libs.length+2}function Ae(t){return e.toPath(t,Q,mt)}function we(){if(void 0===m){var t=e.filter(p,function(t){return e.sourceFileMayBeEmitted(t,E,Me)});E.rootDir&&ht(t,E.rootDir)?m=e.getNormalizedAbsolutePath(E.rootDir,Q):E.composite&&E.configFilePath?ht(t,m=e.getDirectoryPath(e.normalizeSlashes(E.configFilePath))):(r=t,m=i(e.mapDefined(r,function(e){return e.isDeclarationFile?void 0:e.fileName}),Q,mt)),m&&m[m.length-1]!==e.directorySeparator&&(m+=e.directorySeparator)}var r;return m}function Pe(t,r,n){if(0===fe&&!n.ambientModuleNames.length)return U(t,r,void 0,ot(n.originalFileName));var i,a,o,s=w&&w.getSourceFile(r);if(s!==n&&n.resolvedModules){for(var c=[],u=0,l=t;u<l.length;u++){var d=l[u],_=n.resolvedModules.get(d);c.push(_)}return c}for(var f={},p=0;p<t.length;p++){if(d=t[p],n===s&&!ee(s.path)){var m=s&&s.resolvedModules.get(d);if(m){e.isTraceEnabled(E,K)&&e.trace(K,e.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,d,r),(a||(a=new Array(t.length)))[p]=m,(o||(o=[])).push(d);continue}}var g=!1;e.contains(n.ambientModuleNames,d)?(g=!0,e.isTraceEnabled(E,K)&&e.trace(K,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,d,r)):g=v(d),g?(a||(a=new Array(t.length)))[p]=f:(i||(i=[])).push(d)}var h=i&&i.length?U(i,r,o,ot(n.originalFileName)):e.emptyArray;if(!a)return e.Debug.assert(h.length===t.length),h;var y=0;for(p=0;p<a.length;p++)a[p]?a[p]===f&&(a[p]=void 0):(a[p]=h[y],y++);return e.Debug.assert(y===h.length),a;function v(t){var r=e.getResolvedModule(s,t),n=r&&w.getSourceFile(r.resolvedFileName);if(r&&n&&!n.externalModuleIndicator)return!1;var i=P.get(t);return!!i&&(e.isTraceEnabled(E,K)&&e.trace(K,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,i),!0)}}function Fe(t){return s({getPrependNodes:Ie,getCanonicalFileName:mt,getCommonSourceDirectory:d.getCommonSourceDirectory,getCompilerOptions:d.getCompilerOptions,getCurrentDirectory:function(){return Q},getNewLine:function(){return K.getNewLine()},getSourceFile:d.getSourceFile,getSourceFileByPath:d.getSourceFileByPath,getSourceFiles:d.getSourceFiles,getLibFileFromReference:d.getLibFileFromReference,isSourceFileFromExternalLibrary:Me,writeFile:t||function(e,t,r,n,i){return K.writeFile(e,t,r,n,i)},isEmitBlocked:Re,readFile:function(e){return K.readFile(e)},fileExists:function(t){var r=Ae(t);return!!je(r)||!e.contains(ne,r)&&K.fileExists(t)}},K.directoryExists?{directoryExists:function(e){return K.directoryExists(e)}}:{},{useCaseSensitiveFileNames:function(){return K.useCaseSensitiveFileNames()}})}function Ie(){if(!A)return e.emptyArray;for(var t=[],r=0;r<A.length;r++){var n=A[r],i=ie[r].commandLine;if(n.prepend&&i&&i.options){var a=i.options.outFile||i.options.out;if(!a)continue;var o=e.changeExtension(a,".d.ts"),s=K.readFile(a)||"/* Input file "+a+" was missing */\r\n",c=a+".map",u=K.readFile(c),l=K.readFile(o)||"/* Input file "+o+" was missing */\r\n",d=o+".map",_=K.readFile(d),f=e.createInputFiles(s,l,u&&c,u,_&&d,_);t.push(f)}}return t}function Me(e){return!!j.get(e.path)}function Oe(){return g||(g=e.createTypeChecker(d,!0))}function Le(){return h||(h=e.createTypeChecker(d,!1))}function Re(e){return $.has(Ae(e))}function Be(e){return je(Ae(e))}function je(e){return le.get(e)}function ze(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(d.getSourceFiles(),function(e){return n&&n.throwIfCancellationRequested(),r(e,n)}))}function Je(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return Ue(function(){var r=[],n=t;return i(t),r;function i(t){switch(n.kind){case 151:case 154:if(n.questionToken===t)return void r.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 156:case 155:case 157:case 158:case 159:case 196:case 239:case 197:case 237:if(n.type===t)return void r.push(s(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 248:return void r.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 254:if(t.isExportEquals)return void r.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 273:var o=t;if(109===o.token)return void r.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 241:return void r.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 244:return void r.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 242:return void r.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 243:return void r.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 213:return void r.push(s(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 212:return void r.push(s(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 194:e.Debug.fail()}var c=n;n=t,e.forEachChild(t,i,a),n=c}function a(t){switch(n.decorators!==t||E.experimentalDecorators||r.push(s(n,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)),n.kind){case 240:case 156:case 155:case 157:case 158:case 159:case 196:case 239:case 197:if(t===n.typeParameters)return void r.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 219:if(t===n.modifiers)return function(t,n){for(var i=0,a=t;i<a.length;i++){var o=a[i];switch(o.kind){case 77:if(n)continue;case 115:case 113:case 114:case 133:case 125:case 118:r.push(s(o,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(o.kind)))}}}(t,219===n.kind);break;case 154:if(t===n.modifiers){for(var a=0,c=t;a<c.length;a++){var u=c[a];116!==u.kind&&r.push(s(u,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(u.kind)))}return}break;case 151:if(t===n.modifiers)return void r.push(o(t,e.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));break;case 191:case 192:case 211:case 261:case 262:if(t===n.typeArguments)return void r.push(o(t,e.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file))}for(var l=0,d=t;l<d.length;l++){var _=d[l];i(_)}}function o(r,n,i,a,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,i,a,o)}function s(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a,o)}})}(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function Ue(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(h=void 0,g=void 0),t}}function qe(e,t){return Ge(e,t,F,Ke)}function Ke(t,r){return Ue(function(){if(e.skipTypeChecking(t,E))return e.emptyArray;var n=Oe();e.Debug.assert(!!t.bindDiagnostics);for(var i,a=e.isCheckJsEnabledForFile(t,E),o=3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||a||7===t.scriptKind,s=0,c=[o?t.bindDiagnostics:e.emptyArray,o?n.getDiagnostics(t,r):e.emptyArray,O.getDiagnostics(t.fileName),X.getDiagnostics(t.fileName),a?t.jsDocDiagnostics:void 0];s<c.length;s++){var u=c[s];if(u)for(var l=0,d=u;l<d.length;l++){var _=d[l];Ve(_)&&(i=e.append(i,_))}}return i})}function Ve(t){var n=t.file,i=t.start;if(n)for(var a=e.getLineStarts(n),o=e.computeLineAndCharacterOfPosition(a,i).line;o>0;){var s=n.text.slice(a[o-1],a[o]),c=r.exec(s);if(!c)return!0;if(c[3])return!1;o--}return!0}function We(e,t){return Ge(e,t,I,He)}function He(t,r){return Ue(function(){var n=Oe().getEmitResolver(t,r);return e.getDeclarationDiagnostics(Fe(e.noop),n,t)})}function Ge(t,r,n,i){var a=t?n.perFile&&n.perFile.get(t.path):n.allDiagnostics;if(a)return a;var o=i(t,r)||e.emptyArray;return t?(n.perFile||(n.perFile=e.createMap()),n.perFile.set(t.path,o)):n.allDiagnostics=o,o}function Xe(e,t){return e.isDeclarationFile?[]:We(e,t)}function Qe(t,r,n){tt(e.normalizePath(t),r,n,void 0)}function Ye(e,t){return e.fileName===t.fileName}function Ze(e,t){return 72===e.kind?72===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function $e(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if(E.importHelpers&&(E.isolatedModules||o)&&!t.isDeclarationFile){var s=e.createLiteral(e.externalHelpersModuleNameText),c=e.createImportDeclaration(void 0,void 0,void 0,s);e.addEmitFlags(c,67108864),s.parent=c,c.parent=t,r=[s]}for(var u=0,l=t.statements;u<l.length;u++)d(l[u],!1);return(524288&t.flags||a)&&function(t){for(var n=/import|require/g;null!==n.exec(t.text);){var i=_(t,n.lastIndex);e.isRequireCall(i,!0)?r=e.append(r,i.arguments[0]):e.isImportCall(i)&&1===i.arguments.length&&e.isStringLiteralLike(i.arguments[0])?r=e.append(r,i.arguments[0]):e.isLiteralImportTypeNode(i)&&(r=e.append(r,i.argument.literal))}}(t),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function d(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(r=e.append(r,c))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasModifier(a,2)||t.isDeclarationFile)){var u=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(u))(n||(n=[])).push(a.name);else if(!s){t.isDeclarationFile&&(i||(i=[])).push(u);var l=a.body;if(l)for(var _=0,f=l.statements;_<f.length;_++)d(f[_],!0)}}}function _(t,r){for(var n=t,i=function(e){if(e.pos<=r&&(r<e.end||r===e.end&&1===e.kind))return e};;){var o=a&&e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,i)||e.forEachChild(n,i);if(!o)return n;n=o}}}function et(t,r,n,i){if(e.hasExtension(t)){if(!E.allowNonTsExtensions&&!e.forEach(Z,function(r){return e.fileExtensionIs(K.getCanonicalFileName(t),r)}))return void(n&&n(e.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+Y.join("', '")+"'"));var a=r(t);if(n)if(a)i&&K.getCanonicalFileName(t)===K.getCanonicalFileName(i.fileName)&&n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var o=at(t);o?n(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,o,t):n(e.Diagnostics.File_0_not_found,t)}return a}var s=E.allowNonTsExtensions&&r(t);if(s)return s;if(!n||!E.allowNonTsExtensions){var c=e.forEach(Y,function(e){return r(t+e)});return n&&!c&&n(e.Diagnostics.File_0_not_found,t+".ts"),c}n(e.Diagnostics.File_0_not_found,t)}function tt(t,r,n,i,a,o,s){et(t,function(e){return nt(e,Ae(e),r,n,a,o,s,i)},function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];O.add(void 0!==a&&void 0!==s&&void 0!==o?e.createFileDiagnostic.apply(void 0,[a,o,s-o,t].concat(r)):e.createCompilerDiagnostic.apply(void 0,[t].concat(r)))},a)}function rt(t,r,n,i,a){void 0!==n&&void 0!==i&&void 0!==a?O.add(e.createFileDiagnostic(n,i,a-i,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r)):O.add(e.createCompilerDiagnostic(e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,t,r))}function nt(t,r,n,i,a,o,s,c){var u,l=t;if(le.has(r)){var d=le.get(r);if(d&&E.forceConsistentCasingInFileNames){var p=t,m=d.fileName;Ae(m)!==Ae(p)&&(p=at(t)||t),e.getNormalizedAbsolutePath(m,Q)!==e.getNormalizedAbsolutePath(p,Q)&&rt(p,m,a,o,s)}return d&&j.get(d.path)&&0===R?(j.set(d.path,!1),E.noResolve||(lt(d,n),dt(d)),ft(d),B.set(d.path,!1),gt(d)):d&&B.get(d.path)&&R<L&&(B.set(d.path,!1),gt(d)),d}if(a){var g=at(t);g&&((a.redirectedReferences||(a.redirectedReferences=[])).push(t),t=g,u=Ae(g))}var h=K.getSourceFile(t,E.target,function(r){void 0!==a&&void 0!==o&&void 0!==s?O.add(e.createFileDiagnostic(a,o,s-o,e.Diagnostics.Cannot_read_file_0_Colon_1,t,r)):O.add(e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r))},_e);if(c){var y=e.packageIdToString(c),v=se.get(y);if(v){var b=function(e,t,r,n,i,a){var o=Object.create(e);return o.fileName=r,o.path=n,o.resolvedPath=i,o.originalFileName=a,o.redirectInfo={redirectTarget:e,unredirected:t},j.set(n,R>0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(v,h,t,r,Ae(t),l);return ue.add(v.path,t),it(b,r,u),ce.set(r,c.name),f.push(b),b}h&&(se.set(y,h),ce.set(r,c.name))}if(it(h,r,u),h){if(j.set(r,R>0),h.path=r,h.resolvedPath=Ae(t),h.originalFileName=l,K.useCaseSensitiveFileNames()){var x=r.toLowerCase(),S=de.get(x);S?rt(t,S.fileName,a,o,s):de.set(x,h)}W=W||h.hasNoDefaultLib&&!i,E.noResolve||(lt(h,n),dt(h)),ft(h),gt(h),n?_.push(h):f.push(h)}return h}function it(e,t,r){le.set(t,e),r&&le.set(r,e)}function at(t){if(ie&&ie.length&&!e.fileExtensionIs(t,".d.ts")&&e.fileExtensionIsOneOf(t,e.supportedTSExtensions)){var r=ot(t);if(r){var n=r.commandLine.options.outFile||r.commandLine.options.out;return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(t,r.commandLine)}}}function ot(t){void 0===oe&&(oe=e.createMap(),st(function(e,t){e&&Ae(E.configFilePath)!==t&&e.commandLine.fileNames.forEach(function(e){return oe.set(Ae(e),t)})}));var r=oe.get(Ae(t));return r&&ut(r)}function st(e){return ct(A,ie,function(t,r,n){var i=Ae(D((n?n.commandLine.projectReferences:A)[r]));return e(t,i)})}function ct(t,r,n,i){var a;return function t(r,n,i,o,s){if(s){var c=s(r,i);if(c)return c}return e.forEach(n,function(r,n){if(!e.contains(a,r)){var c=o(r,n,i);if(c)return c;if(r)return(a||(a=[])).push(r),t(r.commandLine.projectReferences,r.references,r,o,s)}})}(t,r,void 0,n,i)}function ut(e){if(ae)return ae.get(e)||void 0}function lt(t,r){e.forEach(t.referencedFiles,function(e){tt(n(e.fileName,t.originalFileName),r,!1,void 0,t,e.pos,e.end)})}function dt(t){var r=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()});if(r)for(var n=q(r,t.originalFileName,ot(t.originalFileName)),i=0;i<r.length;i++){var a=t.typeReferenceDirectives[i],o=n[i],s=a.fileName.toLocaleLowerCase();e.setResolvedTypeReferenceDirective(t,s,o),_t(s,o,t,a.pos,a.end)}}function _t(t,r,n,i,a){var o=M.get(t);if(!o||!o.primary){var s=!0;r?(r.isExternalLibraryImport&&R++,r.primary?tt(r.resolvedFileName,!1,!1,r.packageId,n,i,a):o?(r.resolvedFileName!==o.resolvedFileName&&K.readFile(r.resolvedFileName)!==Be(o.resolvedFileName).text&&O.add(pt(n,i,a,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,t,r.resolvedFileName,o.resolvedFileName)),s=!1):tt(r.resolvedFileName,!1,!1,r.packageId,n,i,a),r.isExternalLibraryImport&&R--):O.add(pt(n,i,a,e.Diagnostics.Cannot_find_type_definition_file_for_0,t)),s&&M.set(t,r)}}function ft(t){e.forEach(t.libReferenceDirectives,function(r){var n=r.fileName.toLocaleLowerCase(),i=e.libMap.get(n);if(i)Qe(e.combinePaths(G,i),!0,!0);else{var a=e.removeSuffix(e.removePrefix(n,"lib."),".d.ts"),o=e.getSpellingSuggestion(a,e.libs,e.identity),s=o?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;O.add(pt(t,r.pos,r.end,s,n,o))}})}function pt(t,r,n,i){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];return void 0===t||void 0===r||void 0===n?e.createCompilerDiagnostic.apply(void 0,[i].concat(a)):e.createFileDiagnostic.apply(void 0,[t,r,n-r,i].concat(a))}function mt(e){return K.getCanonicalFileName(e)}function gt(t){if($e(t),t.imports.length||t.moduleAugmentations.length){var r=T(t),n=Pe(r,e.getNormalizedAbsolutePath(t.originalFileName,Q),t);e.Debug.assert(n.length===r.length);for(var i=0;i<r.length;i++){var a=n[i];if(e.setResolvedModule(t,r[i],a),a){var o=a.isExternalLibraryImport,s=!e.resolutionExtensionIsTSOrJson(a.extension),c=o&&s,u=a.resolvedFileName;o&&R++;var l=c&&R>L,d=u&&!C(E,a)&&!E.noResolve&&i<t.imports.length&&!l&&!(s&&!E.allowJs)&&(e.isInJSFile(t.imports[i])||!(2097152&t.imports[i].flags));l?B.set(t.path,!0):d&&nt(u,Ae(u),!1,!1,t,e.skipTrivia(t.text,t.imports[i].pos),t.imports[i].end,a.packageId),o&&R--}}}else t.resolvedModules=void 0}function ht(t,r){for(var n=!0,i=K.getCanonicalFileName(e.getNormalizedAbsolutePath(r,Q)),a=0,o=t;a<o.length;a++){var s=o[a];s.isDeclarationFile||0!==K.getCanonicalFileName(e.getNormalizedAbsolutePath(s.fileName,Q)).indexOf(i)&&(X.add(e.createCompilerDiagnostic(e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,s.fileName,r)),n=!1)}return n}function yt(t){ae||(ae=e.createMap());var r=D(t),n=Ae(r),i=ae.get(n);if(void 0!==i)return i||void 0;var a=e.getNormalizedAbsolutePath(e.getDirectoryPath(r),K.getCurrentDirectory()),o=K.getSourceFile(r,100);if(it(o,n,void 0),void 0!==o){o.path=n,o.resolvedPath=n,o.originalFileName=r;var s=e.parseJsonSourceFileConfigFileContent(o,V,a,void 0,r),c={commandLine:s,sourceFile:o};return ae.set(n,c),s.projectReferences&&(c.references=s.projectReferences.map(yt)),c}ae.set(n,!1)}function vt(t,r,n,i,a,o){for(var s=!0,c=0,u=xt();c<u.length;c++){var l=u[c];if(e.isObjectLiteralExpression(l.initializer))for(var d=0,_=e.getPropertyAssignment(l.initializer,t);d<_.length;d++){var f=_[d].initializer;e.isArrayLiteralExpression(f)&&f.elements.length>r&&(X.add(e.createDiagnosticForNodeInSourceFile(E.configFile,f.elements[r],n,i,a,o)),s=!1)}}s&&X.add(e.createCompilerDiagnostic(n,i,a,o))}function bt(t,r,n,i){for(var a=!0,o=0,s=xt();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&Et(c.initializer,t,r,void 0,n,i)&&(a=!1)}a&&X.add(e.createCompilerDiagnostic(n,i))}function xt(){return function(t){var r=Tt();if(r)return e.getPropertyAssignment(r,t)}("paths")||e.emptyArray}function St(e,t,r,n){Ct(!0,t,r,e,t,r,n)}function Dt(e,t,r){Ct(!1,e,void 0,t,r)}function kt(t,r,n,i,a){var o=e.firstDefined(e.getTsConfigPropArray(t||E.configFile,"references"),function(t){return e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0});o&&o.elements.length>r?X.add(e.createDiagnosticForNodeInSourceFile(t||E.configFile,o.elements[r],n,i,a)):X.add(e.createCompilerDiagnostic(n,i,a))}function Ct(t,r,n,i,a,o,s){var c=Tt();(!c||!Et(c,t,r,n,i,a,o,s))&&X.add(e.createCompilerDiagnostic(i,a,o,s))}function Tt(){if(void 0===z){z=null;var t=e.getTsConfigObjectLiteralExpression(E.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r<n.length;r++){var i=n[r];if(e.isObjectLiteralExpression(i.initializer)){z=i.initializer;break}}}return z}function Et(t,r,n,i,a,o,s,c){for(var u=e.getPropertyAssignment(t,n,i),l=0,d=u;l<d.length;l++){var _=d[l];X.add(e.createDiagnosticForNodeInSourceFile(E.configFile,r?_.name:_.initializer,a,o,s,c))}return!!u.length}function Nt(e,t){$.set(Ae(e),!0),X.add(t)}function At(t,r){return 0===e.comparePaths(t,r,Q,!K.useCaseSensitiveFileNames())}},e.parseConfigHostFromCompilerHost=S,e.resolveProjectReferencePath=D,e.getResolutionDiagnostic=C}(d||(d={})),function(e){e.getFileEmitOutput=function(e,t,r,n,i){var a=[],o=e.emit(t,function(e,t,r){a.push({name:e,writeByteOrderMark:r,text:t})},n,r,i);return{outputFiles:a,emitSkipped:o.emitSkipped,exportedModulesFromDeclarationEmit:o.exportedModulesFromDeclarationEmit}}}(d||(d={})),function(e){!function(t){function r(t){if(t.declarations&&t.declarations[0]){var r=e.getSourceFileOfNode(t.declarations[0]);return r&&r.resolvedPath}}function n(e,t){var n=e.getSymbolAtLocation(t);return n&&r(n)}function i(t,r,n,i){return e.toPath(t.getProjectReferenceRedirect(r)||r,n,i)}function a(t,r,a){var o;if(r.imports&&r.imports.length>0)for(var s=t.getTypeChecker(),c=0,u=r.imports;c<u.length;c++){var l=n(s,u[c]);l&&D(l)}var d=e.getDirectoryPath(r.path);if(r.referencedFiles&&r.referencedFiles.length>0)for(var _=0,f=r.referencedFiles;_<f.length;_++){var p=f[_];D(i(t,p.fileName,d,a))}if(r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach(function(e){if(e){var r=e.resolvedFileName;D(i(t,r,d,a))}}),r.moduleAugmentations.length){s=t.getTypeChecker();for(var m=0,g=r.moduleAugmentations;m<g.length;m++){var h=g[m];if(e.isStringLiteral(h)){var y=s.getSymbolAtLocation(h);y&&S(y)}}}for(var v=0,b=t.getTypeChecker().getAmbientModules();v<b.length;v++){var x=b[v];x.declarations.length>1&&S(x)}return o;function S(t){for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n],o=e.getSourceFileOfNode(a);o&&o!==r&&D(o.resolvedPath)}}function D(t){o||(o=e.createMap()),o.set(t,!0)}}function o(e,t){return t&&!t.referencedMap==!e}function s(e,t){t.forEach(function(t,r){e.fileInfos.get(r).signature=t,e.hasCalledUpdateShapeSignature.set(r,!0)})}function c(t,n,i,a,o,s,c){if(e.Debug.assert(!!i),e.Debug.assert(!c||!!t.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),t.hasCalledUpdateShapeSignature.has(i.path)||a.has(i.path))return!1;var u=t.fileInfos.get(i.path);if(!u)return e.Debug.fail();var l,d=u.signature;if(i.isDeclarationFile){if(l=i.version,c&&l!==d){var _=t.referencedMap?t.referencedMap.get(i.path):void 0;c.set(i.path,_||!1)}}else{var f=e.getFileEmitOutput(n,i,!0,o);f.outputFiles&&f.outputFiles.length>0?(l=s(f.outputFiles[0].text),c&&l!==d&&function(t,n,i){if(!n)return void i.set(t.path,!1);var a;n.forEach(function(t){var n;(n=r(t))&&(a||(a=e.createMap()),a.set(n,!0))}),i.set(t.path,a||!1)}(i,f.exportedModulesFromDeclarationEmit,c)):l=d}return a.set(i.path,l),!d||l!==d}function u(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map(function(e){return e.fileName})}return t.allFileNames}function l(t,r){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),function(e){var t=e[0];return e[1].has(r)?t:void 0}))}function d(t){return function(t){return e.some(t.moduleAugmentations,function(t){return e.isGlobalScopeAugmentation(t.parent)})}(t)||!e.isExternalModule(t)&&!function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(!e.isModuleWithStringLiteralName(i))return!1}return!0}(t)}function _(t,r,n){if(t.allFilesExcludingDefaultLibraryFile)return t.allFilesExcludingDefaultLibraryFile;var i;c(n);for(var a=0,o=r.getSourceFiles();a<o.length;a++){var s=o[a];s!==n&&c(s)}return t.allFilesExcludingDefaultLibraryFile=i||e.emptyArray,t.allFilesExcludingDefaultLibraryFile;function c(e){r.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}t.canReuseOldState=o,t.create=function(t,r,n){for(var i=e.createMap(),s=t.getCompilerOptions().module!==e.ModuleKind.None?e.createMap():void 0,c=s?e.createMap():void 0,u=e.createMap(),l=o(s,n),d=0,_=t.getSourceFiles();d<_.length;d++){var f=_[d],p=f.version,m=l?n.fileInfos.get(f.path):void 0;if(s){var g=a(t,f,r);if(g&&s.set(f.path,g),l){var h=n.exportedModulesMap.get(f.path);h&&c.set(f.path,h)}}i.set(f.path,{version:p,signature:m&&m.signature})}return{fileInfos:i,referencedMap:s,exportedModulesMap:c,hasCalledUpdateShapeSignature:u,allFilesExcludingDefaultLibraryFile:void 0,allFileNames:void 0}},t.getFilesAffectedBy=function(t,r,n,i,a,o,u){var f=o||e.createMap(),p=r.getSourceFileByPath(n);if(!p)return e.emptyArray;if(!c(t,r,p,f,i,a,u))return[p];var m=(t.referencedMap?function(t,r,n,i,a,o,s){if(d(n))return _(t,r,n);var u=r.getCompilerOptions();if(u&&(u.isolatedModules||u.out||u.outFile))return[n];var f=e.createMap();f.set(n.path,n);for(var p=l(t,n.path);p.length>0;){var m=p.pop();if(!f.has(m)){var g=r.getSourceFileByPath(m);f.set(m,g),g&&c(t,r,g,i,a,o,s)&&p.push.apply(p,l(t,m))}}return e.arrayFrom(e.mapDefinedIterator(f.values(),function(e){return e}))}:function(e,t,r){var n=t.getCompilerOptions();return n&&(n.out||n.outFile)?[r]:_(e,t,r)})(t,r,p,f,i,a,u);return o||s(t,f),m},t.updateSignaturesFromCache=s,t.updateExportedFilesMapFromCache=function(t,r){r&&(e.Debug.assert(!!t.exportedModulesMap),r.forEach(function(e,r){e?t.exportedModulesMap.set(r,e):t.exportedModulesMap.delete(r)}))},t.getAllDependencies=function(t,r,n){var i,a=r.getCompilerOptions();if(a.outFile||a.out)return u(t,r);if(!t.referencedMap||d(n))return u(t,r);for(var o=e.createMap(),s=[n.path];s.length;){var c=s.pop();if(!o.has(c)){o.set(c,!0);var l=t.referencedMap.get(c);if(l)for(var _=l.keys(),f=_.next(),p=f.value,m=f.done;!m;p=(i=_.next()).value,m=i.done,i)s.push(p)}}return e.arrayFrom(e.mapDefinedIterator(o.keys(),function(e){var t=r.getSourceFileByPath(e);return t?t.fileName:e}))}}(e.BuilderState||(e.BuilderState={}))}(d||(d={})),function(e){function t(t,r,n){var i=e.BuilderState.create(t,r,n);i.program=t;var a=t.getCompilerOptions();a.outFile||a.out||(i.semanticDiagnosticsPerFile=e.createMap()),i.changedFilesSet=e.createMap();var o=e.BuilderState.canReuseOldState(i.referencedMap,n),s=o?n.program.getCompilerOptions():void 0,c=o&&n.semanticDiagnosticsPerFile&&!!i.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(a,s);o&&(n.currentChangedFilePath||e.Debug.assert(!(n.affectedFiles||n.currentAffectedFilesSignatures&&n.currentAffectedFilesSignatures.size),"Cannot reuse if only few affected files of currentChangedFile were iterated"),c&&e.Debug.assert(!e.forEachKey(n.changedFilesSet,function(e){return n.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),e.copyEntries(n.changedFilesSet,i.changedFilesSet));var u=i.referencedMap,l=o?n.referencedMap:void 0,d=c&&!a.skipLibCheck==!s.skipLibCheck,_=d&&!a.skipDefaultLibCheck==!s.skipDefaultLibCheck;return i.fileInfos.forEach(function(t,r){var a,s,f,p;if(!o||!(a=n.fileInfos.get(r))||a.version!==t.version||(f=s=u&&u.get(r),p=l&&l.get(r),f!==p&&(void 0===f||void 0===p||f.size!==p.size||e.forEachKey(f,function(e){return!p.has(e)})))||s&&e.forEachKey(s,function(e){return!i.fileInfos.has(e)&&n.fileInfos.has(e)}))i.changedFilesSet.set(r,!0);else if(c){var m=i.program.getSourceFileByPath(r);if(m.isDeclarationFile&&!d)return;if(m.hasNoDefaultLib&&!_)return;var g=n.semanticDiagnosticsPerFile.get(r);g&&(i.semanticDiagnosticsPerFile.set(r,g),i.semanticDiagnosticsFromOldState||(i.semanticDiagnosticsFromOldState=e.createMap()),i.semanticDiagnosticsFromOldState.set(r,!0))}}),i}function r(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.path))}function n(t,r,n){for(;;){var a=t.affectedFiles;if(a){for(var o=t.seenAffectedFiles,s=t.affectedFilesIndex;s<a.length;){var c=a[s];if(!o.has(c.path))return t.affectedFilesIndex=s,i(t,c),c;o.set(c.path,!0),s++}t.changedFilesSet.delete(t.currentChangedFilePath),t.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(t,t.currentAffectedFilesSignatures),t.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(t,t.currentAffectedFilesExportedModulesMap),t.affectedFiles=void 0}var u=t.changedFilesSet.keys().next();if(u.done)return;var l=t.program.getCompilerOptions();if(l.outFile||l.out)return e.Debug.assert(!t.semanticDiagnosticsPerFile),t.program;t.currentAffectedFilesSignatures=t.currentAffectedFilesSignatures||e.createMap(),t.exportedModulesMap&&(t.currentAffectedFilesExportedModulesMap=t.currentAffectedFilesExportedModulesMap||e.createMap()),t.affectedFiles=e.BuilderState.getFilesAffectedBy(t,t.program,u.value,r,n,t.currentAffectedFilesSignatures,t.currentAffectedFilesExportedModulesMap),t.currentChangedFilePath=u.value,t.affectedFilesIndex=0,t.seenAffectedFiles=t.seenAffectedFiles||e.createMap()}}function i(t,r){if(!o(t,r.path)){if(t.allFilesExcludingDefaultLibraryFile===t.affectedFiles&&!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var n=t.program.getCompilerOptions();if(e.forEach(t.program.getSourceFiles(),function(r){return t.program.isSourceFileDefaultLibrary(r)&&!e.skipTypeChecking(r,n)&&o(t,r.path)}))return}if(t.exportedModulesMap&&1!==t.affectedFiles.length&&t.changedFilesSet.has(r.path)){e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var i=e.createMap();e.forEachEntry(t.currentAffectedFilesExportedModulesMap,function(e,n){return e&&e.has(r.path)&&a(t,n,i)})||e.forEachEntry(t.exportedModulesMap,function(e,n){return!t.currentAffectedFilesExportedModulesMap.has(n)&&e.has(r.path)&&a(t,n,i)})}}}function a(t,r,n){return e.forEachEntry(t.referencedMap,function(i,a){return i.has(r)&&function t(r,n,i){if(!e.addToSeen(i,n))return!1;if(o(r,n))return!0;e.Debug.assert(!!r.currentAffectedFilesExportedModulesMap);if(e.forEachEntry(r.currentAffectedFilesExportedModulesMap,function(e,a){return e&&e.has(n)&&t(r,a,i)}))return!0;return!!e.forEachEntry(r.exportedModulesMap,function(e,a){return!r.currentAffectedFilesExportedModulesMap.has(a)&&e.has(n)&&t(r,a,i)})}(t,a,n)})}function o(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function s(e,t){t===e.program?e.changedFilesSet.clear():(e.seenAffectedFiles.set(t.path,!0),e.affectedFilesIndex++)}function c(e,t,r){return s(e,r),{result:t,affected:r}}function u(e,t,r){var n=t.path,i=e.semanticDiagnosticsPerFile.get(n);if(i)return i;var a=e.program.getSemanticDiagnostics(t,r);return e.semanticDiagnosticsPerFile.set(n,a),a}var l;!function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(l=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,r,n,i,a,o){var s,c,u;return void 0===t?(e.Debug.assert(void 0===r),s=n,u=i,e.Debug.assert(!!u),c=u.getProgram()):e.isArray(t)?(u=i,c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:u&&u.getProgram(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,u=n,a=i),{host:s,newProgram:c,oldProgram:u,configFileParsingDiagnostics:a||e.emptyArray}},e.createBuilderProgram=function(i,a){var o=a.newProgram,d=a.host,_=a.oldProgram,f=a.configFileParsingDiagnostics,p=_&&_.getState();if(p&&o===p.program&&f===o.getConfigFileParsingDiagnostics())return o=void 0,p=void 0,_;var m=e.createGetCanonicalFileName(d.useCaseSensitiveFileNames()),g=d.createHash||e.identity,h=t(o,m,p);o=void 0,_=void 0,p=void 0;var y={getState:function(){return h},getProgram:function(){return h.program},getCompilerOptions:function(){return h.program.getCompilerOptions()},getSourceFile:function(e){return h.program.getSourceFile(e)},getSourceFiles:function(){return h.program.getSourceFiles()},getOptionsDiagnostics:function(e){return h.program.getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return h.program.getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return f||h.program.getConfigFileParsingDiagnostics()},getSyntacticDiagnostics:function(e,t){return h.program.getSyntacticDiagnostics(e,t)},getSemanticDiagnostics:function(t,a){r(h,t);var o,c=h.program.getCompilerOptions();if(c.outFile||c.out)return e.Debug.assert(!h.semanticDiagnosticsPerFile),h.program.getSemanticDiagnostics(t,a);if(t)return u(h,t,a);if(i===l.SemanticDiagnosticsBuilderProgram)for(var d=void 0;d=n(h,a,g);)s(h,d);for(var _=0,f=h.program.getSourceFiles();_<f.length;_++){var p=f[_];o=e.addRange(o,u(h,p,a))}return o||e.emptyArray},emit:function(t,n,a,o,s){if(i===l.EmitAndSemanticDiagnosticsBuilderProgram&&(r(h,t),!t)){for(var c=[],u=!1,_=void 0,f=[],p=void 0;p=v(n,a,o,s);)u=u||p.result.emitSkipped,_=e.addRange(_,p.result.diagnostics),f=e.addRange(f,p.result.emittedFiles),c=e.addRange(c,p.result.sourceMaps);return{emitSkipped:u,diagnostics:_||e.emptyArray,emittedFiles:f,sourceMaps:c}}return h.program.emit(t,n||d.writeFile,a,o,s)},getAllDependencies:function(t){return e.BuilderState.getAllDependencies(h,h.program,t)},getCurrentDirectory:function(){return h.program.getCurrentDirectory()}};return i===l.SemanticDiagnosticsBuilderProgram?y.getSemanticDiagnosticsOfNextAffectedFile=function(e,t){for(;;){var r=n(h,e,g);if(!r)return;if(r===h.program)return c(h,h.program.getSemanticDiagnostics(void 0,e),r);if(!t||!t(r))return c(h,u(h,r,e),r);s(h,r)}}:i===l.EmitAndSemanticDiagnosticsBuilderProgram?y.emitNextAffectedFile=v:e.notImplemented(),y;function v(e,t,r,i){var a=n(h,t,g);if(a)return c(h,h.program.emit(a===h.program?void 0:a,e||d.writeFile,t,r,i),a)}}}(d||(d={})),function(e){e.createSemanticDiagnosticsBuilderProgram=function(t,r,n,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o))},e.createEmitAndSemanticDiagnosticsBuilderProgram=function(t,r,n,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o))},e.createAbstractBuilder=function(t,r,n,i,a,o){var s=e.getBuilderCreationParameters(t,r,n,i,a,o).newProgram;return{getProgram:function(){return s},getState:e.notImplemented,getCompilerOptions:e.notImplemented,getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented}}}(d||(d={})),function(e){function t(t){return e.stringContains(t,"/node_modules/.")}e.isPathInNodeModulesStartingWithDot=t,e.maxNumberOfFilesToIterateForInvalidation=256,e.createResolutionCache=function(r,n,i){var a,o,s,c=!1,u=e.createMultiMap(),l=e.memoize(function(){return r.getCurrentDirectory()}),d=r.getCachedDirectoryStructureHost(),_=e.createMap(),f=e.createCacheWithRedirects(),p=e.createCacheWithRedirects(),m=e.createModuleResolutionCacheWithMaps(f,p,l(),r.getCanonicalFileName),g=e.createMap(),h=e.createCacheWithRedirects(),y=[".ts",".tsx",".js",".jsx",".json"],v=e.createMap(),b=e.createMap(),x=n&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(n,l())),S=x&&r.toPath(x),D=e.createMap();return{startRecordingFilesWithChangedResolutions:function(){a=[]},finishRecordingFilesWithChangedResolutions:function(){var e=a;return a=void 0,e},startCachingPerDirectoryResolution:N,finishCachingPerDirectoryResolution:function(){c=!1,s=void 0,N(),b.forEach(function(e,t){0===e.refCount&&(b.delete(t),e.watcher.close())})},resolveModuleNames:function(t,r,n,a){return w(t,r,a,_,f,A,k,function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)},n,i)},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t){var n=_.get(r.toPath(t));return n&&n.get(e)},resolveTypeReferenceDirectives:function(t,r,n){return w(t,r,n,g,h,e.resolveTypeReferenceDirective,C,function(e){return void 0===e.resolvedTypeReferenceDirective},void 0,!1)},removeResolutionsFromProjectReferenceRedirects:function(t){if(e.fileExtensionIs(t,".json")){var n=r.getCurrentProgram();if(n){var i=n.getResolvedProjectReferenceByPath(t);i&&i.commandLine.fileNames.forEach(function(e){return W(r.toPath(e))})}}},removeResolutionsOfFile:W,invalidateResolutionOfFile:function(e){W(e),G(function(t,n){var i=n(t);return!!i&&r.toPath(i.resolvedFileName)===e})},setFilesWithInvalidatedNonRelativeUnresolvedImports:function(t){e.Debug.assert(s===t||void 0===s),s=t},createHasInvalidatedResolution:function(t){if(c||t)return o=void 0,e.returnTrue;var r=o;return o=void 0,function(e){return!!r&&r.has(e)||E(e)}},updateTypeRootsWatch:function(){var t=r.getCompilationSettings();if(t.types)Q();else{var n=e.getEffectiveTypeRoots(t,{directoryExists:Z,getCurrentDirectory:l});n?e.mutateMap(D,e.arrayToMap(n,function(e){return r.toPath(e)}),{createNewValue:Y,onDeleteValue:e.closeFileWatcher}):Q()}},closeTypeRootsWatch:Q,clear:function(){e.clearMap(b,e.closeFileWatcherOf),v.clear(),u.clear(),Q(),_.clear(),g.clear(),c=!1,N()}};function k(e){return e.resolvedModule}function C(e){return e.resolvedTypeReferenceDirective}function T(t,r){return!(void 0===t||r.length<=t.length)&&e.startsWith(r,t)&&r[t.length]===e.directorySeparator}function E(e){if(!s)return!1;var t=s.get(e);return!!t&&!!t.length}function N(){f.clear(),p.clear(),h.clear(),u.forEach(z),u.clear()}function A(t,n,i,a,o){var s=e.resolveModuleName(t,n,i,a,m,o);if(!r.getGlobalCache)return s;var c=r.getGlobalCache();if(!(void 0===c||e.isExternalModuleNameRelative(t)||s.resolvedModule&&e.extensionIsTS(s.resolvedModule.extension))){var u=e.loadModuleFromGlobalCache(t,r.projectName,i,a,c),l=u.resolvedModule,d=u.failedLookupLocations;if(l)return{resolvedModule:l,failedLookupLocations:e.addRange(s.failedLookupLocations,d)}}return s}function w(t,n,i,o,s,u,l,d,_,f){var p=r.toPath(n),m=o.get(p)||o.set(p,e.createMap()).get(p),g=e.getDirectoryPath(p),h=s.getOrCreateMapOfCacheRedirects(i),y=h.get(g);y||(y=e.createMap(),h.set(g,y));for(var v=[],b=r.getCompilationSettings(),x=f&&E(p),S=r.getCurrentProgram(),D=S&&S.getResolvedProjectReferenceToRedirect(n),k=D?!i||i.sourceFile.path!==D.sourceFile.path:!!i,C=e.createMap(),T=0,N=t;T<N.length;T++){var A=N[T],w=m.get(A);if(!C.has(A)&&c||k||!w||w.isInvalidated||x&&!e.isExternalModuleNameRelative(A)&&d(w)){var P=w,F=y.get(A);F?w=F:(w=u(A,n,b,r,i),y.set(A,w)),m.set(A,w),R(A,w),P&&U(P),f&&a&&!I(P,w)&&(a.push(p),f=!1)}e.Debug.assert(void 0!==w&&!w.isInvalidated),C.set(A,!0),v.push(l(w))}return m.forEach(function(t,r){C.has(r)||e.contains(_,r)||(U(t),m.delete(r))}),v;function I(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=l(e),n=l(t);return r===n||!(!r||!n)&&r.resolvedFileName===n.resolvedFileName}}function P(t){return e.endsWith(t,"/node_modules")}function F(t){return e.endsWith(t,"/node_modules/@types")}function I(t){var r=e.getRootLength(t);if(t.length===r)return!1;var n=t.indexOf(e.directorySeparator,r);if(-1===n)return!1;if(47!==t.charCodeAt(0)&&-1===t.substr(r,n).search(/users/i))return!0;for(var i=n+1,a=2;a>0;a--)if(0===(i=t.indexOf(e.directorySeparator,i)+1))return!1;return!0}function M(t,r){if(T(S,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,l()),e.Debug.assert(t.length===r.length,"FailedLookup: "+t+" failedLookupLocationPath: "+r);var n=r.indexOf(e.directorySeparator,S.length+1);return-1!==n?{dir:t.substr(0,n),dirPath:r.substr(0,n)}:{dir:x,dirPath:S,nonRecursive:!1}}return O(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,l())),e.getDirectoryPath(r))}function O(t,r){for(;e.pathContainsNodeModules(r);)t=e.getDirectoryPath(t),r=e.getDirectoryPath(r);if(P(r))return I(e.getDirectoryPath(r))?{dir:t,dirPath:r}:void 0;var n,i,a=!0;if(void 0!==S)for(;!T(r,S);){var o=e.getDirectoryPath(r);if(o===r)break;a=!1,n=r,i=t,r=o,t=e.getDirectoryPath(t)}return I(r)?{dir:i||t,dirPath:n||r,nonRecursive:a}:void 0}function L(t){return e.fileExtensionIsOneOf(t,y)}function R(t,r){r.failedLookupLocations&&r.failedLookupLocations.length&&(r.refCount?r.refCount++:(r.refCount=1,e.isExternalModuleNameRelative(t)?B(r):u.add(t,r)))}function B(t){e.Debug.assert(!!t.refCount);for(var n=!1,i=0,a=t.failedLookupLocations;i<a.length;i++){var o=a[i],s=r.toPath(o),c=M(o,s);if(c){var u=c.dir,l=c.dirPath,d=c.nonRecursive;if(!L(s)){var _=v.get(s)||0;v.set(s,_+1)}l===S?(e.Debug.assert(!d),n=!0):J(u,l,d)}}n&&J(x,S,!0)}function j(e){e.refCount=void 0}function z(e,t){var n=r.getCurrentProgram(),i=n&&n.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)?j:B;e.forEach(i)}function J(t,r,n){var i=b.get(r);i?(e.Debug.assert(!!n==!!i.nonRecursive),i.refCount++):b.set(r,{watcher:K(t,r,n),refCount:1,nonRecursive:n})}function U(t){if(t.refCount&&(t.refCount--,!t.refCount)){for(var n=!1,i=0,a=t.failedLookupLocations;i<a.length;i++){var o=a[i],s=r.toPath(o),c=M(o,s);if(c){var u=c.dirPath,l=v.get(s);l&&(1===l?v.delete(s):(e.Debug.assert(l>1),v.set(s,l-1))),u===S?n=!0:q(u)}}n&&q(S)}}function q(e){b.get(e).refCount--}function K(e,t,n){return r.watchDirectoryOfFailedLookupLocation(e,function(e){var n=r.toPath(e);d&&d.addOrDeleteFileOrDirectory(e,n),!c&&X(n,t===n)&&r.onInvalidatedResolution()},n?0:1)}function V(e,t){var r=e.get(t);r&&(r.forEach(U),e.delete(t))}function W(e){V(_,e),V(g,e)}function H(t,r,n){var i=e.createMap();t.forEach(function(t,a){var s=e.getDirectoryPath(a),c=i.get(s);c||(c=e.createMap(),i.set(s,c)),t.forEach(function(t,i){c.has(i)||(c.set(i,!0),!t.isInvalidated&&r(t,n)&&(t.isInvalidated=!0,(o||(o=e.createMap())).set(a,!0)))})})}function G(t){var n;n=r.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation,_.size>n||g.size>n?c=!0:(H(_,t,k),H(g,t,C))}function X(n,i){var a;if(i)a=function(e){return T(n,r.toPath(e))};else{if(t(n))return!1;var s=e.getDirectoryPath(n);if(F(n)||P(n)||F(s)||P(s))a=function(t){return r.toPath(t)===n||e.startsWith(r.toPath(t),n)};else{if(!L(n)&&!v.has(n))return!1;if(e.isEmittedFileOfProgram(r.getCurrentProgram(),n))return!1;a=function(e){return r.toPath(e)===n}}}var u=o&&o.size;return G(function(t){return e.some(t.failedLookupLocations,a)}),c||o&&o.size!==u}function Q(){e.clearMap(D,e.closeFileWatcher)}function Y(e,t){return r.watchTypeRootsDirectory(t,function(n){var i=r.toPath(n);d&&d.addOrDeleteFileOrDirectory(n,i),r.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(!c){if(T(S,t))return S;var r=O(e,t);return r&&b.has(r.dirPath)?r.dirPath:void 0}}(t,e);a&&X(i,a===i)&&r.onInvalidatedResolution()},1)}function Z(t){var n=e.getDirectoryPath(e.getDirectoryPath(t)),i=r.toPath(n);return i===S||I(i)}}}(d||(d={})),function(e){!function(t){var r,n;function i(t,r,n){var i=t.importModuleSpecifierPreference,a=t.importModuleSpecifierEnding;return{relativePreference:"relative"===i?0:"non-relative"===i?1:2,ending:function(){switch(a){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return t=n.imports,e.firstDefined(t,function(t){var r=t.text;return e.pathIsRelative(r)?e.hasJSOrJsonFileExtension(r):void 0})?2:e.getEmitModuleResolutionKind(r)!==e.ModuleResolutionKind.NodeJs?1:0}var t}()}}function a(t,r,n,i,a,c,u){var l=o(r,i),d=_(a,r,n,l.getCanonicalFileName,i,c);return e.firstDefined(d,function(e){return p(e,l,i,t)})||s(n,l,t,u)}function o(t,r){return{getCanonicalFileName:e.createGetCanonicalFileName(!r.useCaseSensitiveFileNames||r.useCaseSensitiveFileNames()),sourceDirectory:e.getDirectoryPath(t)}}function s(t,r,n,i){var a=r.getCanonicalFileName,o=r.sourceDirectory,s=i.ending,u=i.relativePreference,l=n.baseUrl,d=n.paths,_=n.rootDirs,p=_&&function(t,r,n,i){var a=m(r,t,i);if(void 0===a)return;var o=m(n,t,i),s=void 0!==o?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,a,i)):a;return e.removeFileExtension(s)}(_,t,o,a)||g(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(o,t,a)),s,n);if(!l||0===u)return p;var v=h(t,l,a);if(!v)return p;var b=g(v,s,n),x=d&&f(e.removeFileExtension(v),b,d),S=void 0===x?b:x;return 1===u?S:(2!==u&&e.Debug.assertNever(u),y(S)||c(p)<c(S)?p:S)}function c(t){for(var r=0,n=e.startsWith(t,"./")?2:0;n<t.length;n++)47===t.charCodeAt(n)&&r++;return r}function u(e,t,r){return r(e)===r(t)}function l(t,r){return"node_modules"===r(t)||e.startsWith(t,"@")}function d(t,r,n,i){for(var a=e.getPathComponents(e.toPath(t,n,i)),o=e.getPathComponents(e.toPath(r,n,i));!l(a[a.length-2],i)&&!l(o[o.length-2],i)&&u(a[a.length-1],o[o.length-1],i);)a.pop(),o.pop();return[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]}function _(t,r,n,i,a,o){var s=o.get(n),c=s?s.concat([n]):[n],u=a.getCurrentDirectory?a.getCurrentDirectory():"",l=c.map(function(t){return e.getNormalizedAbsolutePath(t,u)}),_=function(t,r,n){for(var i=e.createMap(),a=0,o=e.mapDefined(t,function(t){return t.resolvedModules&&e.firstDefinedIterator(t.resolvedModules.values(),function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:void 0})});a<o.length;a++){var s=o[a],c=d(s[0],s[1],n,r),u=c[0],l=c[1];i.set(l,u)}return i}(t,i,u),f=[],p=!a.useCaseSensitiveFileNames||a.useCaseSensitiveFileNames()?e.compareStringsCaseSensitive:e.compareStringsCaseInsensitive;return _.forEach(function(t,n){if(!e.startsWithDirectory(r,t,i)){var o=l.find(function(e){return 0===p(e.slice(0,t.length+1),t+"/")});if(void 0!==o){var s=e.getRelativePathFromDirectory(t,o,i),c=e.resolvePath(n,s);a.fileExists&&!a.fileExists(c)||f.push(c)}}}),f.push.apply(f,l),f}function f(t,r,n){for(var i in n)for(var a=0,o=n[i];a<o.length;a++){var s=o[a],c=e.removeFileExtension(e.normalizePath(s)),u=c.indexOf("*");if(-1!==u){var l=c.substr(0,u),d=c.substr(u+1);if(r.length>=l.length+d.length&&e.startsWith(r,l)&&e.endsWith(r,d)||!d&&r===e.removeTrailingDirectorySeparator(l)){var _=r.substr(l.length,r.length-d.length);return i.replace("*",_)}}else if(c===r||c===t)return i}}function p(t,r,n,i){var a=r.getCanonicalFileName,o=r.sourceDirectory;if(n.fileExists&&n.readFile){var s=function(t){var r,n=0,i=0,a=0,o=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));var s=0,c=0,u=0;for(;c>=0;)switch(s=c,c=t.indexOf("/",s+1),u){case 0:t.indexOf(e.nodeModulesPathPart,s)===s&&(n=s,i=c,u=1);break;case 1:case 2:1===u&&"@"===t.charAt(s+1)?u=2:(a=c,u=3);break;case 3:u=t.indexOf(e.nodeModulesPathPart,s)===s?1:3}return o=s,u>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}(t);if(s){var c=t.substring(0,s.packageRootIndex),u=e.combinePaths(c,"package.json"),l=n.fileExists(u)?JSON.parse(n.readFile(u)):void 0,d=l&&l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(d){var _=t.slice(s.packageRootIndex+1),p=f(e.removeFileExtension(_),g(_,0,i),d.paths);void 0!==p&&(t=e.combinePaths(t.slice(0,s.packageRootIndex),p))}var m=function(t){if(l){var r=l.typings||l.types||l.main;if(r){var i=e.toPath(r,c,a);if(e.removeFileExtension(i)===e.removeFileExtension(a(t)))return c}}var o=e.removeFileExtension(t);if("/index"===a(o.substring(s.fileNameIndex))&&!function(t,r){if(!t.fileExists)return;for(var n=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),i=0,a=n;i<a.length;i++){var o=a[i],s=r+o;if(t.fileExists(s))return s}}(n,o.substring(0,s.fileNameIndex)))return o.substring(0,s.fileNameIndex);return o}(t);if(e.startsWith(o,a(m.substring(0,s.topLevelNodeModulesIndex)))){var h=m.substring(s.topLevelPackageNameIndex+1),y=e.getPackageNameFromTypesPackageName(h);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&y===h?void 0:y}}}}function m(t,r,n){return e.firstDefined(r,function(e){var r=h(t,e,n);return y(r)?void 0:r})}function g(t,r,n){if(e.fileExtensionIs(t,".json"))return t;var i=e.removeFileExtension(t);switch(r){case 0:return e.removeSuffix(i,"/index");case 1:return i;case 2:return i+function(t,r){var n=e.extensionFromPath(t);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===r.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;default:return e.Debug.assertNever(n)}}(t,n);default:return e.Debug.assertNever(r)}}function h(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1);return e.isRootedDiskPath(i)?void 0:i}function y(t){return e.startsWith(t,"..")}!function(e){e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Auto=2]="Auto"}(r||(r={})),function(e){e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension"}(n||(n={})),t.updateModuleSpecifier=function(t,r,n,i,o,s,c){var u=a(t,r,n,i,o,s,function(t,r){return{relativePreference:e.isExternalModuleNameRelative(r)?0:1,ending:e.hasJSOrJsonFileExtension(r)?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs||e.endsWith(r,"index")?1:0}}(t,c));if(u!==c)return u},t.getModuleSpecifier=function(e,t,r,n,o,s,c,u){return void 0===c&&(c={}),a(e,r,n,o,s,u,i(c,e,t))},t.getModuleSpecifiers=function(t,r,n,a,c,u,l){var d=function(t){var r=e.find(t.declarations,function(t){return e.isNonGlobalAmbientModule(t)&&(!e.isExternalModuleAugmentation(t)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name)))});if(r)return r.name.text}(t);if(d)return[d];var f=o(n.path,a),m=e.getSourceFileOfNode(t.valueDeclaration||e.getNonAugmentationDeclaration(t)),g=_(c,n.path,m.fileName,f.getCanonicalFileName,a,l),h=i(u,r,n),y=e.mapDefined(g,function(e){return p(e,f,a,r)});return y.length?y:g.map(function(e){return s(e,f,r,h)})},t.countPathComponents=c}(e.moduleSpecifiers||(e.moduleSpecifiers={}))}(d||(d={})),function(e){var t=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function r(r,n){var i=r===e.sys?t:{getCurrentDirectory:function(){return r.getCurrentDirectory()},getNewLine:function(){return r.newLine},getCanonicalFileName:e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)};if(!n)return function(t){return r.write(e.formatDiagnostic(t,i))};var a=new Array(1);return function(t){a[0]=t,r.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function n(t,r,n){return!(!t.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!e.contains(e.screenStartingMessageCodes,r.code))&&(t.clearScreen(),!0)}function i(t,r){return r?function(r,i,a){n(t,r,a);var o="["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ";o+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+(i+i),t.write(o)}:function(r,i,a){var o="";n(t,r,a)||(o+=i),o+=(new Date).toLocaleTimeString()+" - ",o+=""+e.flattenDiagnosticMessageText(r.messageText,t.newLine)+function(t,r){return e.contains(e.screenStartingMessageCodes,t.code)?r+r:r}(r,i),t.write(o)}}function a(t){return e.countWhere(t,function(t){return t.category===e.DiagnosticCategory.Error})}function o(t){return 1===t?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function s(t,r,n,i,o){var s=t.getConfigFileParsingDiagnostics().slice(),c=s.length;e.addRange(s,t.getSyntacticDiagnostics());var u=!1;s.length===c&&(e.addRange(s,t.getOptionsDiagnostics()),e.addRange(s,t.getGlobalDiagnostics()),s.length===c&&(u=!0));var l=t.emit(void 0,o),d=l.emittedFiles,_=l.emitSkipped,f=l.diagnostics;if(e.addRange(s,f),u&&e.addRange(s,t.getSemanticDiagnostics()),e.sortAndDeduplicateDiagnostics(s).forEach(r),n){var p=t.getCurrentDirectory();e.forEach(d,function(t){var r=e.getNormalizedAbsolutePath(t,p);n("TSFILE: "+r)}),t.getCompilerOptions().listFiles&&e.forEach(t.getSourceFiles(),function(e){n(e.fileName)})}return i&&i(a(s)),_&&s.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:s.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.createWatchStatusReporter=i,e.parseConfigFileWithSystem=function(t,r,n,i){var a=n;a.onUnRecoverableConfigFileDiagnostic=function(t){return d(e.sys,i,t)};var o=e.getParsedCommandLineOfConfigFile(t,r,a);return a.onUnRecoverableConfigFileDiagnostic=void 0,o},e.getErrorCountForSummary=a,e.getWatchErrorSummaryDiagnosticMessage=o,e.getErrorSummaryText=function(t,r){if(0===t)return"";var n=e.createCompilerDiagnostic(1===t?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,t);return""+r+e.flattenDiagnosticMessageText(n.messageText,r)+r+r},e.emitFilesAndReportErrors=s;var c={close:e.noop};function u(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||i(t),watchFile:t.watchFile?function(e,r,n){return t.watchFile(e,r,n)}:function(){return c},watchDirectory:t.watchDirectory?function(e,r,n){return t.watchDirectory(e,r,n)}:function(){return c},setTimeout:t.setTimeout?function(e,r){for(var n,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return(n=t.setTimeout).call.apply(n,[t,e,r].concat(i))}:e.noop,clearTimeout:t.clearTimeout?function(e){return t.clearTimeout(e)}:e.noop}}function l(t,r,n,i){void 0===t&&(t=e.sys),r||(r=e.createEmitAndSemanticDiagnosticsBuilderProgram);var a=function(e){return t.write(e+t.newLine)},c=u(t,i),l=c.onWatchStatusChange,d=c.watchFile,_=c.watchDirectory,f=c.setTimeout,p=c.clearTimeout;return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:function(){return t.getCurrentDirectory()},getDefaultLibLocation:m,getDefaultLibFileName:function(t){return e.combinePaths(m(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:t.realpath&&function(e){return t.realpath(e)},getEnvironmentVariable:t.getEnvironmentVariable&&function(e){return t.getEnvironmentVariable(e)},watchFile:d,watchDirectory:_,setTimeout:f,clearTimeout:p,trace:function(e){return t.write(e)},onWatchStatusChange:l,createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},onCachedDirectoryStructureHostCreate:function(e){return e||t},createHash:t.createHash&&function(e){return t.createHash(e)},createProgram:r,afterProgramCreate:function(r){var i=r.getCompilerOptions(),c=e.getNewLineCharacter(i,function(){return t.newLine});s(r,n,a,function(t){return l(e.createCompilerDiagnostic(o(t),t),c,i)})}};function m(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}}function d(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createWatchHost=u,e.createWatchCompilerHostOfConfigFile=function(e,t,n,i,a,o){var s=a||r(n),c=l(n,i,s,o);return c.onUnRecoverableConfigFileDiagnostic=function(e){return d(n,s,e)},c.configFileName=e,c.optionsToExtend=t,c},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e,t,n,i,a,o,s){var c=l(n,i,a||r(n),o);return c.rootFiles=e,c.options=t,c.projectReferences=s,c}}(d||(d={})),function(e){e.createWatchCompilerHost=function(t,r,n,i,a,o,s){return e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions(t,r,n,i,a,o,s):e.createWatchCompilerHostOfConfigFile(t,r,n,i,a,o)};var t=1;e.createWatchProgram=function(r){var n,i,a,o,s,c,u,l,d=e.createMap(),_=!1,f=!1,p=r.useCaseSensitiveFileNames(),m=r.getCurrentDirectory(),g=function(){return m},h=function(e,t){return r.readFile(e,t)},y=r.configFileName,v=r.optionsToExtend,b=void 0===v?{}:v,x=r.createProgram,S=r.rootFiles,D=r.options,k=r.projectReferences,C=!1,T=!1,E=void 0===y?void 0:e.createCachedDirectoryStructureHost(r,m,p);E&&r.onCachedDirectoryStructureHostCreate&&r.onCachedDirectoryStructureHostCreate(E);var N=E||r,A={useCaseSensitiveFileNames:p,readDirectory:function(e,t,r,n,i){return N.readDirectory(e,t,r,n,i)},fileExists:function(e){return r.fileExists(e)},readFile:h,getCurrentDirectory:g,onUnRecoverableConfigFileDiagnostic:r.onUnRecoverableConfigFileDiagnostic,trace:r.trace?function(e){return r.trace(e)}:void 0},w=V();y&&r.configFileParsingResult&&(ne(r.configFileParsingResult),w=V()),$(e.Diagnostics.Starting_compilation_in_watch_mode),y&&!r.configFileParsingResult&&(w=e.getNewLineCharacter(b,function(){return r.getNewLine()}),e.Debug.assert(!S),re(),w=V());var P=r.trace&&function(e){r.trace(e+w)},F=P?D.extendedDiagnostics?e.WatchLogLevel.Verbose:D.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,I=F!==e.WatchLogLevel.None?P:e.noop,M=e.getWatchFactory(F,I),O=M.watchFile,L=M.watchFilePath,R=M.watchDirectory,B=e.createGetCanonicalFileName(p);I("Current directory: "+m+" CaseSensitiveFileNames: "+p),y&&O(r,y,function(){e.Debug.assert(!!y),i=e.ConfigFileProgramReloadLevel.Full,ee()},e.PollingInterval.High,"Config file");var j={getSourceFile:function(e,t,r,n){return Q(e,W(e),t,r,n)},getSourceFileByPath:Q,getDefaultLibLocation:r.getDefaultLibLocation&&function(){return r.getDefaultLibLocation()},getDefaultLibFileName:function(e){return r.getDefaultLibFileName(e)},writeFile:function(t,n,i,a){try{e.performance.mark("beforeIOWrite"),function t(n){if(n.length>e.getRootLength(n)&&!r.directoryExists(n)){var i=e.getDirectoryPath(n);t(i),r.createDirectory(n)}}(e.getDirectoryPath(e.normalizePath(t))),r.writeFile(t,n,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:g,useCaseSensitiveFileNames:function(){return p},getCanonicalFileName:B,getNewLine:function(){return w},fileExists:X,readFile:h,trace:P,directoryExists:N.directoryExists&&function(e){return N.directoryExists(e)},getDirectories:N.getDirectories&&function(e){return N.getDirectories(e)},realpath:r.realpath&&function(e){return r.realpath(e)},getEnvironmentVariable:r.getEnvironmentVariable?function(e){return r.getEnvironmentVariable(e)}:function(){return""},onReleaseOldSourceFile:function(e,t,r){var n=d.get(e.resolvedPath);n&&(H(n)?(c||(c=[])).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),d.delete(e.resolvedPath),r||z.removeResolutionsOfFile(e.path)))},createHash:r.createHash&&function(e){return r.createHash(e)},toPath:W,getCompilationSettings:function(){return D},watchDirectoryOfFailedLookupLocation:function(e,t,n){return R(r,e,t,n,"Failed Lookup Locations")},watchTypeRootsDirectory:function(e,t,n){return R(r,e,t,n,"Type roots")},getCachedDirectoryStructureHost:function(){return E},onInvalidatedResolution:ee,onChangedAutomaticTypeDirectiveNames:function(){f=!0,ee()},maxNumberOfFilesToIterateForInvalidation:r.maxNumberOfFilesToIterateForInvalidation,getCurrentProgram:q,writeLog:I,readDirectory:function(e,t,r,n,i){return N.readDirectory(e,t,r,n,i)}},z=e.createResolutionCache(j,y?e.getDirectoryPath(e.getNormalizedAbsolutePath(y,m)):m,!1);j.resolveModuleNames=r.resolveModuleNames?function(e,t,n,i){return r.resolveModuleNames(e,t,n,i)}:function(e,t,r,n){return z.resolveModuleNames(e,t,r,n)},j.resolveTypeReferenceDirectives=r.resolveTypeReferenceDirectives?function(e,t,n){return r.resolveTypeReferenceDirectives(e,t,n)}:function(e,t,r){return z.resolveTypeReferenceDirectives(e,t,r)};var J=!!r.resolveModuleNames||!!r.resolveTypeReferenceDirectives;return K(),ce(),y?{getCurrentProgram:U,getProgram:K}:{getCurrentProgram:U,getProgram:K,updateRootFileNames:function(t){e.Debug.assert(!y,"Cannot update root file names with config file watch mode"),S=t,ee()}};function U(){return n}function q(){return n&&n.getProgram()}function K(){I("Synchronizing program");var t=q();_&&(w=V(),t&&e.changesAffectModuleResolution(t.getCompilerOptions(),D)&&z.clear());var i=z.createHasInvalidatedResolution(J);return e.isProgramUptoDate(q(),S,D,Z,X,i,f,k)?T&&(n=x(void 0,void 0,j,n,l,k),T=!1):function(t,r){F!==e.WatchLogLevel.None&&(I("CreatingProgramWith::"),I("  roots: "+JSON.stringify(S)),I("  options: "+JSON.stringify(D)));var i=_||!t;if(_=!1,T=!1,z.startCachingPerDirectoryResolution(),j.hasInvalidatedResolution=r,j.hasChangedAutomaticTypeDirectiveNames=f,n=x(S,D,j,n,l,k),z.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(n.getProgram(),a||(a=e.createMap()),oe),i&&z.updateTypeRootsWatch(),c){for(var o=0,s=c;o<s.length;o++){var u=s[o];a.has(u)||d.delete(u)}c=void 0}}(t,i),r.afterProgramCreate&&r.afterProgramCreate(n),n}function V(){return e.getNewLineCharacter(D||b,function(){return r.getNewLine()})}function W(t){return e.toPath(t,m,B)}function H(e){return"number"==typeof e}function G(e){return!!e.sourceFile}function X(e){var t=W(e);return!!H(d.get(t))||N.fileExists(e)}function Q(n,i,a,o,s){var c=d.get(i);if(!H(c)){if(!c||s||!G(c)||c.version.toString()!==c.sourceFile.version){var u=function(){var t;try{e.performance.mark("beforeIORead"),t=r.readFile(n,D.charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){o&&o(e.message)}return void 0!==t?e.createSourceFile(n,t,a):void 0}();if(c)s&&c.version++,u?(c.sourceFile=u,u.version=c.version.toString(),c.fileWatcher||(c.fileWatcher=L(r,n,ie,e.PollingInterval.Low,i,"Source file"))):(G(c)&&c.fileWatcher.close(),d.set(i,c.version));else if(u){u.version=t.toString();var l=L(r,n,ie,e.PollingInterval.Low,i,"Source file");d.set(i,{sourceFile:u,version:t,fileWatcher:l})}else d.set(i,t);return u}return c.sourceFile}}function Y(e){var t=d.get(e);void 0!==t&&(H(t)?d.set(e,{version:Number(t)+1}):t.version++)}function Z(e){var t=d.get(e);return!t||H(t)?void 0:t.version.toString()}function $(t){r.onWatchStatusChange&&r.onWatchStatusChange(e.createCompilerDiagnostic(t),w,D||b)}function ee(){r.setTimeout&&r.clearTimeout&&(s&&r.clearTimeout(s),I("Scheduling update"),s=r.setTimeout(te,250))}function te(){switch(s=void 0,$(e.Diagnostics.File_change_detected_Starting_incremental_compilation),i){case e.ConfigFileProgramReloadLevel.Partial:return function(){I("Reloading new file names and options");var t=e.getFileNamesFromConfigSpecs(u,e.getDirectoryPath(y),D,A);e.updateErrorForNoInputFiles(t,y,u,l,C)&&(T=!0),S=t.fileNames,K()}();case e.ConfigFileProgramReloadLevel.Full:return I("Reloading config file: "+y),i=e.ConfigFileProgramReloadLevel.None,E&&E.clearCache(),re(),_=!0,K(),void ce();default:return void K()}}function re(){ne(e.getParsedCommandLineOfConfigFile(y,b,A))}function ne(t){S=t.fileNames,D=t.options,u=t.configFileSpecs,k=t.projectReferences,l=e.getConfigFileParsingDiagnostics(t).slice(),C=e.canJsonReportNoInutFiles(t.raw),T=!0}function ie(t,r,n){ae(t,n,r),r===e.FileWatcherEventKind.Deleted&&d.get(n)&&z.invalidateResolutionOfFile(n),z.removeResolutionsFromProjectReferenceRedirects(n),Y(n),ee()}function ae(e,t,r){E&&E.addOrDeleteFile(e,t,r)}function oe(t){return L(r,t,se,e.PollingInterval.Medium,t,"Missing file")}function se(t,r,n){ae(t,n,r),r===e.FileWatcherEventKind.Created&&a.has(n)&&(a.get(n).close(),a.delete(n),Y(n),ee())}function ce(){u?e.updateWatchingWildcardDirectories(o||(o=e.createMap()),e.createMapFromTemplate(u.wildcardDirectories),ue):o&&e.clearMap(o,e.closeFileWatcherOf)}function ue(t,n){return R(r,t,function(r){e.Debug.assert(!!y);var n=W(r);E&&E.addOrDeleteFileOrDirectory(r,n),Y(n),e.isPathInNodeModulesStartingWithDot(n)||(n===t||!e.hasExtension(n)||e.isSupportedSourceFileName(r,D)?i!==e.ConfigFileProgramReloadLevel.Full&&(i=e.ConfigFileProgramReloadLevel.Partial,ee()):I("Project: "+y+" Detected file add/remove of non supported extension: "+r))},n,"Wild card directories")}}}(d||(d={})),function(e){var t,r,n=new Date(-864e13),i=new Date(864e13);function a(t){var r=e.createMap();return{setValue:function(e,n){r.set(t(e),n)},getValue:function(e){return r.get(t(e))},removeKey:function(e){r.delete(t(e))},forEach:function(e){r.forEach(e)},hasKey:function(e){return r.has(t(e))},getSize:function(){return r.size},clear:function(){r.clear()}}}function o(e,t,r){var n,i=e.getValue(t);return i||(n=r(),e.setValue(t,n)),i||n}function s(t,r){return o(t,r,e.createMap)}function c(t,r){var n=e.getRelativePathFromDirectory(l(r.options,r.options.configFilePath),t,!0),i=e.resolvePath(r.options.declarationDir||r.options.outDir||e.getDirectoryPath(r.options.configFilePath),n);return e.changeExtension(i,".d.ts")}function u(t,r){if(r.options.outFile||r.options.out||e.fileExtensionIs(t,".d.ts"))return e.emptyArray;var n=[],i=function(t,r){var n=e.getRelativePathFromDirectory(l(r.options,r.options.configFilePath),t,!0),i=e.resolvePath(r.options.outDir||e.getDirectoryPath(r.options.configFilePath),n),a=e.fileExtensionIs(t,".json")?".json":e.fileExtensionIs(t,".tsx")&&1===r.options.jsx?".jsx":".js";return e.changeExtension(i,a)}(t,r);if(n.push(i),r.options.sourceMap&&n.push(i+".map"),e.getEmitDeclarations(r.options)&&!e.fileExtensionIs(t,".json")){var a=c(t,r);n.push(a),r.options.declarationMap&&n.push(a+".map")}return n}function l(t,r){return t.rootDir||e.getDirectoryPath(r)}function d(e,t){return t>e?t:e}function _(t){return e.fileExtensionIs(t,".d.ts")}function f(t,r){return function(n){var i=r?"["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ":(new Date).toLocaleTimeString()+" - ";i+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(t.newLine+t.newLine),t.write(i)}}function p(t,r,n){void 0===t&&(t=e.sys);var i=e.createCompilerHostWorker({},void 0,t);return i.getModifiedTime=t.getModifiedTime?function(e){return t.getModifiedTime(e)}:function(){},i.setModifiedTime=t.setModifiedTime?function(e,r){return t.setModifiedTime(e,r)}:e.noop,i.deleteFile=t.deleteFile?function(e){return t.deleteFile(e)}:e.noop,i.reportDiagnostic=r||e.createDiagnosticReporter(t),i.reportSolutionBuilderStatus=n||f(t),i}function m(t){var r={};return e.commonOptionsWithBuild.forEach(function(e){r[e.name]=t[e.name]}),r}function g(t){return e.fileExtensionIs(t,".json")?t:e.combinePaths(t,"tsconfig.json")}function h(t){if(t.options.outFile||t.options.out)return function(t){var r=t.options.outFile||t.options.out;if(!r)return e.Debug.fail("outFile must be set");var n=[];if(n.push(r),t.options.sourceMap&&n.push(r+".map"),e.getEmitDeclarations(t.options)){var i=e.changeExtension(r,".d.ts");n.push(i),t.options.declarationMap&&n.push(i+".map")}return n}(t);for(var r=[],n=0,i=t.fileNames;n<i.length;n++){var a=i[n];r.push.apply(r,u(a,t))}return r}function y(t,n,i,a){switch(n.type){case r.OutOfDateWithSelf:return a(e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,i(t),i(n.outOfDateOutputFileName),i(n.newerInputFileName));case r.OutOfDateWithUpstream:return a(e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,i(t),i(n.outOfDateOutputFileName),i(n.newerProjectName));case r.OutputMissing:return a(e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,i(t),i(n.missingOutputFileName));case r.UpToDate:if(void 0!==n.newestInputFileTime)return a(e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,i(t),i(n.newestInputFileName||""),i(n.oldestOutputFileName||""));break;case r.UpToDateWithUpstreamTypes:return a(e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,i(t));case r.UpstreamOutOfDate:return a(e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,i(t),i(n.upstreamProjectName));case r.UpstreamBlocked:return a(e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,i(t),i(n.upstreamProjectName));case r.Unbuildable:return a(e.Diagnostics.Failed_to_parse_file_0_Colon_1,i(t),n.reason);case r.ContainerOnly:case r.ComputingUpstream:break;default:e.assertType(n)}}!function(e){e[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors"}(t||(t={})),function(e){e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.OutOfDateWithSelf=4]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=5]="OutOfDateWithUpstream",e[e.UpstreamOutOfDate=6]="UpstreamOutOfDate",e[e.UpstreamBlocked=7]="UpstreamBlocked",e[e.ComputingUpstream=8]="ComputingUpstream",e[e.ContainerOnly=9]="ContainerOnly"}(r=e.UpToDateStatusType||(e.UpToDateStatusType={})),e.getOutputDeclarationFileName=c,e.createBuilderStatusReporter=f,e.createSolutionBuilderHost=function(t,r,n,i){void 0===t&&(t=e.sys);var a=p(t,r,n);return a.reportErrorSummary=i,a},e.createSolutionBuilderWithWatchHost=function(t,r,n,i){var a=p(t,r,n),o=e.createWatchHost(t,i);return a.onWatchStatusChange=o.onWatchStatusChange,a.watchFile=o.watchFile,a.watchDirectory=o.watchDirectory,a.setTimeout=o.setTimeout,a.clearTimeout=o.clearTimeout,a},e.createSolutionBuilder=function(c,u,l){var f,p,v=c,b=c.getCurrentDirectory(),x=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),S=e.parseConfigHostFromCompilerHost(c),D=l,k=m(D),C=a(z),T=a(z),E=a(z),N=e.createMap(),A=function(e){return c.trace&&c.trace(e)},w=function(e){return c.readFile(e)},P=a(z),F=a(z),I=a(z),M=[],O=0,L=!1,R=a(z),B=a(z),j=a(z);return{buildAllProjects:function(){D.watch&&q(e.Diagnostics.Starting_compilation_in_watch_mode);var n=e.changeCompilerHostToUseCache(c,z,!0),i=n.originalReadFile,a=n.originalFileExists,o=n.originalDirectoryExists,s=n.originalCreateDirectory,u=n.originalWriteFile,d=n.originalGetSourceFile,_=n.readFileWithCache,f=w;w=_;var p=Q();!function(t){D.verbose&&U(e.Diagnostics.Projects_in_this_build_Colon_0,t.buildQueue.map(function(e){return"\r\n    * "+ue(e)}).join(""))}(p);for(var m=!1,g=0,h=p.buildQueue;g<h.length;g++){var y=h[g],v=J(y);if(void 0===v){oe(y),m=!0;break}var b=v.errors,x=Y(v);le(y,x);var S=v.options.configFilePath;if(x.type!==r.UpToDate||D.force)if(x.type!==r.UpToDateWithUpstreamTypes||D.force)if(x.type!==r.UpstreamBlocked)if(x.type!==r.ContainerOnly){var k=ne(y);m=m||!!(k&t.AnyErrors)}else se(y,b);else se(y,b),D.verbose&&U(e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,S,x.upstreamProjectName);else se(y,b),ie(v);else se(y,b),l.dry&&U(e.Diagnostics.Project_0_is_up_to_date,S)}return re(),c.readFile=i,c.fileExists=a,c.directoryExists=o,c.createDirectory=s,c.writeFile=u,w=f,c.getSourceFile=d,m?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success},getUpToDateStatusOfFile:function(e){return Y(J(e))},cleanAllProjects:function(){var t=function(){for(var e=Q(),t=[],r=0,n=e.buildQueue;r<n.length;r++){var i=n[r],a=J(i);if(void 0!==a)for(var o=h(a),s=0,u=o;s<u.length;s++){var l=u[s];c.fileExists(l)&&t.push(l)}else oe(i)}return t}();if(D.dry)return U(e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,t.map(function(e){return"\r\n * "+e}).join("")),e.ExitStatus.Success;for(var r=0,n=t;r<n.length;r++){var i=n[r];c.deleteFile(i)}return e.ExitStatus.Success},resetBuildContext:function(t){void 0===t&&(t=l),k=m(D=t),C.clear(),T.clear(),E.clear(),N.clear(),f=void 0,P.clear(),F.clear(),I.clear(),M.length=0,O=0,p&&(clearTimeout(p),p=void 0),L=!1,e.clearMap(R,function(t){return e.clearMap(t,e.closeFileWatcherOf)}),e.clearMap(B,function(t){return e.clearMap(t,e.closeFileWatcher)}),e.clearMap(j,e.closeFileWatcher)},getBuildGraph:X,invalidateProject:function(e,t){Z(ae(e),t)},buildInvalidatedProject:te,resolveProjectName:ae,startWatching:function(){for(var e=Q(),t=0,r=e.buildQueue;t<r.length;t++){var n=r[t];K(n);var i=J(n);i&&(V(n,i),W(n,i))}}};function z(t){return e.toPath(t,b,x)}function J(t){var r,n=C.getValue(t);if(n)return n.options?n:void 0;S.onUnRecoverableConfigFileDiagnostic=function(e){return r=e};var i=e.getParsedCommandLineOfConfigFile(t,k,S);return S.onUnRecoverableConfigFileDiagnostic=e.noop,C.setValue(t,i||r),i}function U(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];c.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,[t].concat(r)))}function q(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];v.onWatchStatusChange&&v.onWatchStatusChange(e.createCompilerDiagnostic.apply(void 0,[t].concat(r)),c.getNewLine(),k)}function K(t){D.watch&&!j.hasKey(t)&&j.setValue(t,v.watchFile(t,function(){G(t,e.ConfigFileProgramReloadLevel.Full)}))}function V(t,r){D.watch&&e.updateWatchingWildcardDirectories(s(R,t),e.createMapFromTemplate(r.configFileSpecs.wildcardDirectories),function(n,i){return v.watchDirectory(n,function(i){var a=z(i);a!==z(n)&&e.hasExtension(a)&&!e.isSupportedSourceFileName(i,r.options)||function(t,r){if(r.options.noEmit)return!1;if(!e.fileExtensionIs(t,".d.ts")&&(e.fileExtensionIs(t,".ts")||e.fileExtensionIs(t,".tsx")))return!1;var n=r.options.outFile||r.options.out;return!(!n||!H(t,n)&&!H(t,e.removeFileExtension(n)+".d.ts"))||(!(!r.options.declarationDir||!e.containsPath(r.options.declarationDir,t,b,!c.useCaseSensitiveFileNames()))||(!(!r.options.outDir||!e.containsPath(r.options.outDir,t,b,!c.useCaseSensitiveFileNames()))||!e.forEach(r.fileNames,function(e){return H(t,e)})))}(i,r)||G(t,e.ConfigFileProgramReloadLevel.Partial)},!!(1&i))})}function W(t,r){D.watch&&e.mutateMap(s(B,t),e.arrayToMap(r.fileNames,z),{createNewValue:function(r,n){return v.watchFile(n,function(){G(t,e.ConfigFileProgramReloadLevel.None)})},onDeleteValue:e.closeFileWatcher})}function H(t,r){return 0===e.comparePaths(t,r,b,!c.useCaseSensitiveFileNames())}function G(e,t){L=!0,Z(e,t),ee()}function X(t){return function(t){for(var r=a(z),n=a(z),i=[],s=[],c=a(z),u=0,l=t;u<l.length;u++){var d=l[u];_(d)}return{buildQueue:s,referencingProjectsMap:c};function _(t,u){if(!n.hasKey(t))if(r.hasKey(t))u||U(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join("\r\n"));else{r.setValue(t,!0),i.push(t);var l=J(t);if(l&&l.projectReferences)for(var d=0,f=l.projectReferences;d<f.length;d++){var p=f[d],m=ae(p.path);_(m,u||p.circular);var g=o(c,m,function(){return a(z)});g.setValue(t,!!p.prepend)}i.pop(),n.setValue(t,!0),s.push(t)}}}(function(e){return e.map(ae)}(t))}function Q(){return f||(f=X(u))}function Y(t){if(void 0===t)return{type:r.Unbuildable,reason:"File deleted mid-build"};var a=E.getValue(t.options.configFilePath);if(void 0!==a)return a;var o=function(t){for(var a=void 0,o=n,s=0,u=t.fileNames;s<u.length;s++){var l=u[s];if(!c.fileExists(l))return{type:r.Unbuildable,reason:l+" does not exist"};var f=c.getModifiedTime(l)||e.missingFileModifiedTime;f>o&&(a=l,o=f)}var p=h(t);if(0===p.length)return{type:r.ContainerOnly};for(var m,g="(none)",y=i,v="(none)",b=n,x=n,S=!1,D=0,k=p;D<k.length;D++){var C=k[D];if(!c.fileExists(C)){m=C;break}var N=c.getModifiedTime(C)||e.missingFileModifiedTime;if(N<y&&(y=N,g=C),N<o){S=!0;break}if(N>b&&(b=N,v=C),_(C)){var A=T.getValue(C);if(void 0!==A)x=d(A,x);else{var w=c.getModifiedTime(C)||e.missingFileModifiedTime;x=d(x,w)}}}var P,F=!1,I=!1;if(t.projectReferences){E.setValue(t.options.configFilePath,{type:r.ComputingUpstream});for(var M=0,O=t.projectReferences;M<O.length;M++){var L=O[M];I=I||!!L.prepend;var R=e.resolveProjectReferencePath(L),B=Y(J(R));if(B.type!==r.ComputingUpstream){if(B.type===r.Unbuildable)return{type:r.UpstreamBlocked,upstreamProjectName:L.path};if(B.type!==r.UpToDate)return{type:r.UpstreamOutOfDate,upstreamProjectName:L.path};if(!(B.newestInputFileTime&&B.newestInputFileTime<=y)){if(!(B.newestDeclarationFileContentChangedTime&&B.newestDeclarationFileContentChangedTime<=y))return e.Debug.assert(void 0!==g,"Should have an oldest output filename here"),{type:r.OutOfDateWithUpstream,outOfDateOutputFileName:g,newerProjectName:L.path};F=!0,P=L.path}}}}return void 0!==m?{type:r.OutputMissing,missingOutputFileName:m}:S?{type:r.OutOfDateWithSelf,outOfDateOutputFileName:g,newerInputFileName:a}:I&&F?{type:r.OutOfDateWithUpstream,outOfDateOutputFileName:g,newerProjectName:P}:{type:F?r.UpToDateWithUpstreamTypes:r.UpToDate,newestDeclarationFileContentChangedTime:x,newestInputFileTime:o,newestOutputFileTime:b,newestInputFileName:a,newestOutputFileName:v,oldestOutputFileName:g}}(t);return E.setValue(t.options.configFilePath,o),o}function Z(t,r){r===e.ConfigFileProgramReloadLevel.Full&&(C.removeKey(t),f=void 0),E.removeKey(t),P.removeKey(t),$(t,r)}function $(t,r){var n=F.getValue(t);void 0===n?(F.setValue(t,r||e.ConfigFileProgramReloadLevel.None),M.push(t)):n<(r||e.ConfigFileProgramReloadLevel.None)&&F.setValue(t,r||e.ConfigFileProgramReloadLevel.None)}function ee(){v.setTimeout&&v.clearTimeout&&(p&&v.clearTimeout(p),p=v.setTimeout(te,250))}function te(){p=void 0,L&&(L=!1,I.clear(),q(e.Diagnostics.File_change_detected_Starting_incremental_compilation));var n=function(){if(O<M.length){var e=M[O];O++;var t=F.getValue(e);return F.removeKey(e),F.getSize()||(M.length=0,O=0),{project:e,reloadLevel:t}}}();n&&(function(n,i){var a=J(n);if(a){if(i===e.ConfigFileProgramReloadLevel.Full)K(n),V(n,a),W(n,a);else if(i===e.ConfigFileProgramReloadLevel.Partial){var o=e.getFileNamesFromConfigSpecs(a.configFileSpecs,e.getDirectoryPath(n),a.options,S);e.updateErrorForNoInputFiles(o,n,a.configFileSpecs,a.errors,e.canJsonReportNoInutFiles(a.raw)),a.fileNames=o.fileNames,W(n,a)}var s=Y(a);if(le(n,s),s.type!==r.UpstreamBlocked){var c=ne(n),u=Q(),l=u.referencingProjectsMap.getValue(n);if(l)for(var d=0,_=u.buildQueue;d<_.length;d++){var f=_[d],p=l.getValue(f);!p&&(void 0===p||c&t.DeclarationOutputUnchanged)||$(f)}}else D.verbose&&U(e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,n,s.upstreamProjectName)}else oe(n)}(n.project,n.reloadLevel),F.getSize()?D.watch&&!p&&ee():re())}function re(){if(D.watch||c.reportErrorSummary){Q().buildQueue.forEach(function(t){I.hasKey(t)||ce(P.getValue(t)||e.emptyArray)});var t=0;P.forEach(function(r){return t+=e.getErrorCountForSummary(r)}),D.watch?q(e.getWatchErrorSummaryDiagnosticMessage(t),t):c.reportErrorSummary(t)}}function ne(a){if(D.dry)return U(e.Diagnostics.A_non_dry_build_would_build_project_0,a),t.Success;D.verbose&&U(e.Diagnostics.Building_project_0,a);var o=t.None;o|=t.DeclarationOutputUnchanged;var s=J(a);if(!s)return o|=t.ConfigFileErrors,oe(a),E.setValue(a,{type:r.Unbuildable,reason:"Config file errors"}),o;if(0===s.fileNames.length)return se(a,s.errors),t.None;var u={projectReferences:s.projectReferences,host:c,rootNames:s.fileNames,options:s.options,configFileParsingDiagnostics:s.errors};c.beforeCreateProgram&&c.beforeCreateProgram(D);var l=e.createProgram(u),f=l.getOptionsDiagnostics().concat(l.getConfigFileParsingDiagnostics(),l.getSyntacticDiagnostics());if(f.length)return S(f,t.SyntaxErrors,"Syntactic");var p=l.getSemanticDiagnostics();if(p.length)return S(p,t.TypeErrors,"Semantic");var m,g=n,h=!1,y=[];if(e.emitFilesAndReportErrors(l,function(e){return(m||(m=[])).push(e)},A,void 0,function(e,t,r){return y.push({name:e,text:t,writeByteOrderMark:r})}),m)return S(m,t.DeclarationEmitErrors,"Declaration file");var v=e.createDiagnosticCollection();y.forEach(function(r){var n,i=r.name,a=r.text,s=r.writeByteOrderMark;!h&&_(i)&&(c.fileExists(i)&&w(i)===a?n=c.getModifiedTime(i):(o&=~t.DeclarationOutputUnchanged,h=!0)),e.writeFile(c,v,i,a,s),void 0!==n&&(g=d(n,g),T.setValue(i,n))});var b=v.getDiagnostics();if(b.length)return S(b,t.EmitErrors,"Emit");var x={type:r.UpToDate,newestDeclarationFileContentChangedTime:h?i:g};return P.removeKey(a),E.setValue(a,x),c.afterProgramEmitAndDiagnostics&&c.afterProgramEmitAndDiagnostics(l),o;function S(e,t,n){return o|=t,se(a,e),E.setValue(a,{type:r.Unbuildable,reason:n+" errors"}),c.afterProgramEmitAndDiagnostics&&c.afterProgramEmitAndDiagnostics(l),o}}function ie(t){if(D.dry)return U(e.Diagnostics.A_non_dry_build_would_build_project_0,t.options.configFilePath);D.verbose&&U(e.Diagnostics.Updating_output_timestamps_of_project_0,t.options.configFilePath);for(var i=new Date,a=h(t),o=n,s=0,u=a;s<u.length;s++){var l=u[s];_(l)&&(o=d(o,c.getModifiedTime(l)||e.missingFileModifiedTime)),c.setModifiedTime(l,i)}E.setValue(t.options.configFilePath,{type:r.UpToDate,newestDeclarationFileContentChangedTime:o})}function ae(t){return g(e.resolvePath(c.getCurrentDirectory(),t))}function oe(e){se(e,[C.getValue(e)])}function se(e,t){ce(t),I.setValue(e,!0),P.setValue(e,t)}function ce(e){e.forEach(function(e){return c.reportDiagnostic(e)})}function ue(t){return e.convertToRelativePath(t,c.getCurrentDirectory(),function(e){return c.getCanonicalFileName(e)})}function le(e,t){if(D.verbose)return y(e,t,ue,U)}},e.resolveConfigFileProjectName=g,e.getAllProjectOutputs=h,e.formatUpToDateStatus=y}(d||(d={})),function(e){function t(e,t){return n(e,t,(r=new Set,i=[],function(e,t,n,a){if(r.has(e)||i.length>4)return a(r.has(e),i);r.add(e),i.push(t);var o=n();return i.pop(),r.delete(e),o}));var r,i}function n(t,r,i){return i(r,t,function(){if("function"==typeof r)return function(t,r,i){var a=function(t,r){var i=t.prototype;return"object"!=typeof i||null===i?e.emptyArray:e.mapDefined(c(i),function(e){var t=e.key,i=e.value;return"constructor"===t?void 0:n(t,i,r)})}(t,i),o=e.flatMap(c(t),function(e){var t=e.key,r=e.value;return n(t,r,i)}),s=e.cast(Function.prototype.toString.call(t),e.isString),l=e.stringContains(s,"{ [native code] }")?function(t){return e.tryCast(u(t,"length"),e.isNumber)||0}(t):s;return{kind:2,name:r,source:l,namespaceMembers:o,prototypeMembers:a}}(r,t,i);if("object"==typeof r){var o=function(t,r,i){return e.isArray(r)?{name:t,kind:1,inner:r.length&&n("element",e.first(r),i)||d(t)}:e.forEachEntry(a(),function(e,n){return r instanceof e?{kind:0,name:t,typeName:n}:void 0})}(t,r,i);if(void 0!==o)return o;var s=c(r),_=Object.getPrototypeOf(r)!==Object.prototype,f=e.flatMap(s,function(e){return n(e.key,e.value,i)});return{kind:3,name:t,hasNontrivialPrototype:_,members:f}}return{kind:0,name:t,typeName:l(r)?"any":typeof r}},function(e,r){return d(t," "+(e?"Circular reference":"Too-deep object hierarchy")+" from "+r.join("."))})}!function(e){e[e.Const=0]="Const",e[e.Array=1]="Array",e[e.FunctionOrClass=2]="FunctionOrClass",e[e.Object=3]="Object"}(e.ValueKind||(e.ValueKind={})),e.inspectModule=function(n){return t(e.removeFileExtension(e.getBaseFileName(n)),function(e){try{return r(178)(e)}catch(e){return}}(n))},e.inspectValue=t;var a=e.memoize(function(){for(var t=e.createMap(),r=0,n=c(i);r<n.length;r++){var a=n[r],o=a.key,s=a.value;"function"==typeof s&&"object"==typeof s.prototype&&s!==Object&&t.set(o,s)}return t});var o=new Set(["arguments","caller","constructor","eval","super_"]),s=new Set(Object.getOwnPropertyNames(e.noop));function c(t){for(var r=e.createMap(),n=[],i=t;!l(i)&&i!==Object.prototype&&i!==Function.prototype;){for(var a=0,c=Object.getOwnPropertyNames(i);a<c.length;a++){var d=c[a];if(!_(d)&&!o.has(d)&&("function"!=typeof t||!s.has(d))&&e.addToSeen(r,d)){var f=u(i,d);"toString"===d&&"function"==typeof f&&0===f.length||n.push({key:d,value:f})}}i=Object.getPrototypeOf(i)}return n.sort(function(t,r){return e.compareStringsCaseSensitive(t.key,r.key)})}function u(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return r&&r.value}function l(e){return null==e}function d(e,t){return{kind:0,name:e,typeName:"any",comment:t}}function _(e){return e.startsWith("_")}e.isJsPrivate=_}(d||(d={})),function(e){!function(t){t.ActionSet="action::set",t.ActionInvalidate="action::invalidate",t.ActionPackageInstalled="action::packageInstalled",t.ActionValueInspected="action::valueInspected",t.EventTypesRegistry="event::typesRegistry",t.EventBeginInstallTypes="event::beginInstallTypes",t.EventEndInstallTypes="event::endInstallTypes",t.EventInitializationFailed="event::initializationFailed",function(e){e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation"}(t.Arguments||(t.Arguments={})),t.hasArgument=function(t){return e.sys.args.indexOf(t)>=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&r<e.sys.args.length-1?e.sys.args[r+1]:void 0},t.nowString=function(){var e=new Date;return e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+"."+e.getMilliseconds()}}(e.server||(e.server={}))}(d||(d={})),function(e){!function(t){function r(t,r){return new e.Version(e.getProperty(r,"ts"+e.versionMajorMinor)||e.getProperty(r,"latest")).compareTo(t.version)<=0}t.isTypingUpToDate=r,t.nodeCoreModuleList=["assert","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","http2","inspector","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"],t.nodeCoreModules=e.arrayToSet(t.nodeCoreModuleList),t.loadSafeList=function(t,r){var n=e.readConfigFile(r,function(e){return t.readFile(e)});return e.createMapFromTemplate(n.config)},t.loadTypesMap=function(t,r){var n=e.readConfigFile(r,function(e){return t.readFile(e)});if(n.config)return e.createMapFromTemplate(n.config.simpleMap)},t.discoverTypings=function(n,i,a,o,s,c,u,l,d){if(!u||!u.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var _=e.createMap();a=e.mapDefined(a,function(t){var r=e.normalizePath(t);if(e.hasJSFileExtension(r))return r});var f=[];u.include&&D(u.include,"Explicitly included types");var p=u.exclude||[],m=e.arrayToSet(a,e.getDirectoryPath);m.set(o,!0),m.forEach(function(t,r){k(e.combinePaths(r,"package.json"),f),k(e.combinePaths(r,"bower.json"),f),C(e.combinePaths(r,"bower_components"),f),C(e.combinePaths(r,"node_modules"),f)}),function(t){var r=e.mapDefined(t,function(t){if(e.hasJSFileExtension(t)){var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),n=e.removeMinAndVersionNumbers(r);return s.get(n)}});r.length&&D(r,"Inferred typings from file names"),e.some(t,function(t){return e.fileExtensionIs(t,".jsx")})&&(i&&i("Inferred 'react' typings due to presence of '.jsx' extension"),S("react"))}(a),l&&D(e.deduplicate(l.map(function(e){return t.nodeCoreModules.has(e)?"node":e}),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach(function(e,t){var n=d.get(t);_.has(t)&&void 0===_.get(t)&&void 0!==n&&r(e,n)&&_.set(t,e.typingLocation)});for(var g=0,h=p;g<h.length;g++){var y=h[g];_.delete(y)&&i&&i("Typing for "+y+" is in exclude list, will be ignored.")}var v=[],b=[];_.forEach(function(e,t){void 0!==e?b.push(e):v.push(t)});var x={cachedTypingPaths:b,newTypingNames:v,filesToWatch:f};return i&&i("Result: "+JSON.stringify(x)),x;function S(e){_.has(e)||_.set(e,void 0)}function D(t,r){i&&i(r+": "+JSON.stringify(t)),e.forEach(t,S)}function k(t,r){if(n.fileExists(t)){r.push(t);var i=e.readConfigFile(t,function(e){return n.readFile(e)}).config;D(e.flatMap([i.dependencies,i.devDependencies,i.optionalDependencies,i.peerDependencies],e.getOwnKeys),"Typing names in '"+t+"' dependencies")}}function C(t,r){if(r.push(t),n.directoryExists(t)){var a=n.readDirectory(t,[".json"],void 0,void 0,2);i&&i("Searching for typing names in "+t+"; all files: "+JSON.stringify(a));for(var o=[],s=0,c=a;s<c.length;s++){var u=c[s],l=e.normalizePath(u),d=e.getBaseFileName(l);if("package.json"===d||"bower.json"===d){var f=e.readConfigFile(l,function(e){return n.readFile(e)}).config;if(("package.json"!==d||!f._requiredBy||0!==e.filter(f._requiredBy,function(e){return"#"===e[0]||"/"===e}).length)&&f.name){var p=f.types||f.typings;if(p){var m=e.getNormalizedAbsolutePath(p,e.getDirectoryPath(l));i&&i("    Package '"+f.name+"' provides its own types."),_.set(f.name,m)}else o.push(f.name)}}}D(o,"    Found package names")}}},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 n=214;t.validatePackageName=function(e){return e?e.length>n?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^\/]+\/[^\/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2},t.renderPackageNameValidationFailure=function(t,r){switch(t){case 2:return"Package name '"+r+"' cannot be empty";case 3:return"Package name '"+r+"' should be less than "+n+" characters";case 4:return"Package name '"+r+"' cannot start with '.'";case 5:return"Package name '"+r+"' cannot start with '_'";case 1:return"Package '"+r+"' is scoped and currently is not supported";case 6:return"Package name '"+r+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(t)}}}(e.JsTyping||(e.JsTyping={}))}(d||(d={})),function(e){var t;function r(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:t.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1}}!function(e){var t=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();e.fromString=function(e){return new t(e)}}(e.ScriptSnapshot||(e.ScriptSnapshot={})),e.emptyOptions={},function(e){e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={})),function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(t=e.IndentStyle||(e.IndentStyle={})),e.getDefaultFormatCodeSettings=r,e.testFormatSettings=r("\n"),function(e){e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(e){e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(e){e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(e){e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(e){e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(e){e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(e){e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(e){e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))}(d||(d={})),function(e){function t(t){switch(t.kind){case 237:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 151:case 186:case 154:case 153:case 275:case 276:case 156:case 155:case 157:case 158:case 159:case 239:case 196:case 197:case 274:case 267:return 1;case 150:case 241:case 242:case 168:return 2;case 304:return void 0===t.name?3:2;case 278:case 240:return 3;case 244:return e.isAmbientModule(t)?5:1===e.getModuleInstanceState(t)?5:4;case 243:case 252:case 253:case 248:case 249:case 254:case 255:return 7;case 279:return 5}return 7}function r(t){for(;148===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e,t){var r=i(e);return!!r&&!!r.parent&&t(r.parent)&&r.parent.expression===r}function i(e){return s(e)?e.parent:e}function a(t){return 72===t.kind&&e.isBreakOrContinueStatement(t.parent)&&t.parent.label===t}function o(t){return 72===t.kind&&e.isLabeledStatement(t.parent)&&t.parent.label===t}function s(e){return e&&e.parent&&189===e.parent.kind&&e.parent.name===e}e.scanner=e.createScanner(6,!0),function(e){e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(n){return 279===n.kind?1:254===n.parent.kind||259===n.parent.kind?7:r(n)?function(t){var r=148===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&248===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(n.parent):function(t){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),t.kind){case 100:return!e.isExpressionNode(t);case 178:return!0}switch(t.parent.kind){case 164:return!0;case 183:return!t.parent.isTypeOf;case 211:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(148===t.parent.kind){for(;t.parent&&148===t.parent.kind;)t=t.parent;r=t.right===e}return 164===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(189===t.parent.kind){for(;t.parent&&189===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&211===t.parent.kind&&273===t.parent.parent.kind){var n=t.parent.parent.parent;return 240===n.kind&&109===t.parent.parent.token||241===n.kind&&86===t.parent.parent.token}return!1}(e)}(n)?4:e.isTypeParameterDeclaration(n.parent)?(e.Debug.assert(e.isJSDocTemplateTag(n.parent.parent)),2):e.isLiteralTypeNode(n.parent)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(t){return n(t,e.isCallExpression)},e.isNewExpressionTarget=function(t){return n(t,e.isNewExpression)},e.isCallOrNewExpressionTarget=function(t){return n(t,e.isCallOrNewExpression)},e.climbPastPropertyAccess=i,e.getTargetLabel=function(e,t){for(;e;){if(233===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(t,r){return!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r},e.isJumpStatementTarget=a,e.isLabelOfLabeledStatement=o,e.isLabelName=function(e){return o(e)||a(e)},e.isTagName=function(t){return e.isJSDocTag(t.parent)&&t.parent.tagName===t},e.isRightSideOfQualifiedName=function(e){return 148===e.parent.kind&&e.parent.right===e},e.isRightSideOfPropertyAccess=s,e.isNameOfModuleDeclaration=function(e){return 244===e.parent.kind&&e.parent.name===e},e.isNameOfFunctionDeclaration=function(t){return 72===t.kind&&e.isFunctionLike(t.parent)&&t.parent.name===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 154:case 153:case 275:case 278:case 156:case 155:case 158:case 159:case 244:return e.getNameOfDeclaration(t.parent)===t;case 190:return t.parent.argumentExpression===t;case 149:return!0;case 182:return 180===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(t){for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 279:case 156:case 155:case 239:case 196:case 158:case 159:case 240:case 241:case 243:case 244:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 279:return e.isExternalModule(r)?"module":"script";case 244:return"module";case 240:case 209:return"class";case 241:return"interface";case 242:case 297:case 304:return"type";case 243:return"enum";case 237:return o(r);case 186:return o(e.getRootDeclaration(r));case 197:case 239:case 196:return"function";case 158:return"getter";case 159:return"setter";case 156:case 155:return"method";case 154:case 153:return"property";case 162:return"index";case 161:return"construct";case 160:return"call";case 157:return"constructor";case 150:return"type parameter";case 278:return"enum member";case 151:return e.hasModifier(r,92)?"property":"parameter";case 248:case 253:case 257:case 251:return"alias";case 204:var n=e.getAssignmentDeclarationKind(r),i=r.right;switch(n){case 7:case 8:case 9:case 0:return"";case 1:case 2:var a=t(i);return""===a?"const":a;case 3:return e.isFunctionExpression(i)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(i)?"method":"property";case 6:return"local class";default:return e.assertType(n),""}case 72:return e.isImportClause(r.parent)?"alias":"";default:return""}function o(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 100:return!0;case 72:return e.identifierIsThisKeyword(t)&&151===t.parent.kind;default:return!1}};var c=/^\/\/\/\s*</;function u(e,t){return d(e.pos,e.end,t)}function l(e,t){return e.pos<t&&t<e.end}function d(e,t,r){return e<=r.pos&&t>=r.end}function _(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}function f(t,r,n){var i=t.getChildren(n);if(i.length){var a=e.last(i);if(a.kind===r)return!0;if(26===a.kind&&1!==i.length)return i[i.length-2].kind===r}return!1}function p(e,t,r){return!!m(e,t,r)}function m(t,r,n){return e.find(t.getChildren(n),function(e){return e.kind===r})}function g(t){var r=e.find(t.parent.getChildren(),function(r){return e.isSyntaxList(r)&&u(r,t)});return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function h(e,t,r){return v(e,t,!1,r,!1)}function y(e,t){return v(e,t,!0,void 0,!1)}function v(e,t,r,n,i){var a=e;e:for(;;){for(var o=0,s=a.getChildren(e);o<s.length;o++){var c=s[o];if((r?c.getFullStart():c.getStart(e,!0))>t)break;var u=c.getEnd();if(t<u||t===u&&(1===c.kind||i)){a=c;continue e}if(n&&u===t){var l=b(t,e,c);if(l&&n(l))return l}}return a}}function b(t,r,n,i){var a=function a(o){if(x(o)&&1!==o.kind)return o;var s=o.getChildren(r);for(var c=0;c<s.length;c++){var u=s[c];if(t<u.end){var l=u.getStart(r,!i),d=l>=t||!A(u,r)||k(u);if(d){var _=D(s,c,r);return _&&S(_,r)}return a(u)}}e.Debug.assert(void 0!==n||279===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var f=D(s,s.length,r);return f&&S(f,r)}(n||r);return e.Debug.assert(!(a&&k(a))),a}function x(t){return e.isToken(t)&&!k(t)}function S(e,t){if(x(e))return e;var r=e.getChildren(t),n=D(r,r.length,t);return n&&S(n,t)}function D(t,r,n){for(var i=r-1;i>=0;i--){if(k(t[i]))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(A(t[i],n))return t[i]}}function k(t){return e.isJsxText(t)&&t.containsOnlyWhiteSpaces}function C(e,t,r){for(var n=e.kind,i=0;;){var a=b(e.getFullStart(),r);if(!a)return;if((e=a).kind===t){if(0===i)return e;i--}else e.kind===n&&i++}}function T(t,r,n){var i=n.getTypeAtLocation(t);return(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(function(e){return!!e.typeParameters&&e.typeParameters.length>=r})}function E(t,r){for(var n=t,i=0,a=0;n;){switch(n.kind){case 28:if(!(n=b(n.getFullStart(),r))||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 48:i=3;break;case 47:i=2;break;case 30:i++;break;case 19:if(!(n=C(n,18,r)))return;break;case 21:if(!(n=C(n,20,r)))return;break;case 23:if(!(n=C(n,22,r)))return;break;case 27:a++;break;case 37:case 72:case 10:case 8:case 9:case 102:case 87:case 104:case 86:case 129:case 24:case 50:case 56:case 57:break;default:if(e.isTypeNode(n))break;return}n=b(n.getFullStart(),r)}}function N(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function A(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function w(e,t,r){var n=N(e,t,void 0);return!!n&&r===c.test(e.text.substring(n.pos,n.end))}function P(e,t){return{span:e,newText:t}}function F(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function I(t,r,n,i){return e.createImportDeclaration(void 0,void 0,t||r?e.createImportClause(t,r&&r.length?e.createNamedImports(r):void 0):void 0,"string"==typeof n?M(n,i):n)}function M(t,r){return e.createLiteral(t,0===r)}function O(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function L(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,function(t){var r=e.getNameOfDeclaration(t);return r&&72===r.kind?r.escapedText:void 0})}function R(t,r,n,i){var a=e.createMap();return function t(o){if(!(96&o.flags&&e.addToSeen(a,e.getSymbolId(o))))return;return e.firstDefined(o.declarations,function(a){return e.firstDefined(e.getAllSuperTypeNodes(a),function(a){var o=n.getTypeAtLocation(a),s=o&&o.symbol&&n.getPropertyOfType(o,r);return o&&s&&(e.firstDefined(n.getRootSymbols(s),i)||t(o.symbol))})})}(t)}function B(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function j(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=u,e.rangeContainsRangeExclusive=function(e,t){return l(e,t.pos)&&l(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=l,e.startEndContainsRange=d,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return _(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return _(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=_,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),r<t.end||!function t(r,n){if(void 0===r||e.nodeIsMissing(r))return!1;switch(r.kind){case 240:case 241:case 243:case 188:case 184:case 168:case 218:case 245:case 246:case 252:case 256:return f(r,19,n);case 274:return t(r.block,n);case 192:if(!r.arguments)return!0;case 191:case 195:case 177:return f(r,21,n);case 165:case 166:return t(r.type,n);case 157:case 158:case 159:case 239:case 196:case 156:case 155:case 161:case 160:case 197:return r.body?t(r.body,n):r.type?t(r.type,n):p(r,21,n);case 244:return!!r.body&&t(r.body,n);case 222:return r.elseStatement?t(r.elseStatement,n):t(r.thenStatement,n);case 221:return t(r.expression,n)||p(r,26,n);case 187:case 185:case 190:case 149:case 170:return f(r,23,n);case 162:return r.type?t(r.type,n):p(r,23,n);case 271:case 272:return!1;case 225:case 226:case 227:case 224:return t(r.statement,n);case 223:return p(r,107,n)?f(r,21,n):t(r.statement,n);case 167:return t(r.exprName,n);case 199:case 198:case 200:case 207:case 208:var i=r;return t(i.expression,n);case 193:return t(r.template,n);case 206:var a=e.lastOrUndefined(r.templateSpans);return t(a,n);case 216:return e.nodeIsPresent(r.literal);case 255:case 249:return e.nodeIsPresent(r.moduleSpecifier);case 202:return t(r.operand,n);case 204:return t(r.right,n);case 205:return t(r.whenFalse,n);default:return!0}}(t,n)},e.findListItemInfo=function(t){var r=g(t);if(r){var n=r.getChildren();return{listItemIndex:e.indexOfNode(n,t),list:r}}},e.hasChildOfKind=p,e.findChildOfKind=m,e.findContainingList=g,e.getTouchingPropertyName=function(t,r){return h(t,r,function(t){return e.isPropertyNameLiteral(t)||e.isKeyword(t.kind)})},e.getTouchingToken=h,e.getTokenAtPosition=y,e.findTokenOnLeftOfPosition=function(t,r){var n=y(t,r);return e.isToken(n)&&r>n.getStart(t)&&r<n.getEnd()?n:b(r,t)},e.findNextToken=function(t,r,n){return function r(i){return e.isToken(i)&&i.pos===t.end?i:e.firstDefined(i.getChildren(),function(e){var i=e.pos<=t.pos&&e.end>t.end||e.pos===t.end;return i&&A(e,n)?r(e):void 0})}(r)},e.findPrecedingToken=b,e.isInString=function(t,r,n){if(void 0===n&&(n=b(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(t),a=n.getEnd();if(i<r&&r<a)return!0;if(r===a)return!!n.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=function(e,t){var r=y(e,t);return!!r&&(11===r.kind||28===r.kind&&11===r.parent.kind||28===r.kind&&270===r.parent.kind||!(!r||19!==r.kind||270!==r.parent.kind)||28===r.kind&&263===r.parent.kind)},e.isInTemplateString=function(t,r){var n=y(t,r);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)},e.isInJSXText=function(t,r){var n=y(t,r);return!!e.isJsxText(n)||!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(28!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent))},e.findPrecedingMatchingToken=C,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=E(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==T(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=T,e.getPossibleTypeArgumentsInfo=E,e.isInComment=N,e.hasDocComment=function(t,r){var n=y(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t){var r=e.isDeclaration(t)?e.getCombinedModifierFlags(t):0,n=[];return 8&r&&n.push("private"),16&r&&n.push("protected"),4&r&&n.push("public"),32&r&&n.push("static"),128&r&&n.push("abstract"),1&r&&n.push("export"),4194304&t.flags&&n.push("declare"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 164===t.kind||191===t.kind?t.typeArguments:e.isFunctionLike(t)||240===t.kind||241===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=71},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)<r&&r<t.end||!!t.isUnterminated&&r===t.end},e.isAccessibilityModifier=function(e){switch(e){case 115:case 113:case 114:return!0}return!1},e.cloneCompilerOptions=function(t){var r=e.clone(t);return e.setConfigFileInOptions(r,t&&t.configFile),r},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(t){if(187===t.kind||188===t.kind){if(204===t.parent.kind&&t.parent.left===t&&59===t.parent.operatorToken.kind)return!0;if(227===t.parent.kind&&t.parent.initializer===t)return!0;if(e(275===t.parent.kind?t.parent.parent:t.parent))return!0}return!1},e.isInReferenceComment=function(e,t){return w(e,t,!0)},e.isInNonReferenceComment=function(e,t){return w(e,t,!1)},e.createTextSpanFromNode=function(t,r){return e.createTextSpanFromBounds(t.getStart(r),t.getEnd())},e.createTextRangeFromNode=function(t,r){return e.createRange(t.getStart(r),t.end)},e.createTextSpanFromRange=function(t){return e.createTextSpanFromBounds(t.pos,t.end)},e.createTextRangeFromSpan=function(t){return e.createRange(t.start,t.start+t.length)},e.createTextChangeFromStartLength=function(t,r,n){return P(e.createTextSpan(t,r),n)},e.createTextChange=P,e.typeKeywords=[120,146,123,87,129,132,96,135,136,138,139,102,106,141,142,143],e.isTypeKeyword=function(t){return e.contains(e.typeKeywords,t)},e.isExternalModuleSymbol=function(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)},e.nodeSeenTracker=function(){var t=[];return function(r){var n=e.getNodeId(r);return!t[n]&&(t[n]=!0)}},e.getSnapshotText=function(e){return e.getText(0,e.getLength())},e.repeatString=function(e,t){for(var r="",n=0;n<t;n++)r+=e;return r},e.skipConstraint=function(e){return e.isTypeParameter()&&e.getConstraint()||e},e.getNameFromPropertyName=function(t){return 149===t.kind?e.isStringOrNumericLiteralLike(t.expression)?t.expression.text:void 0:e.getTextOfIdentifierOrLiteral(t)},e.programContainsEs6Modules=function(e){return e.getSourceFiles().some(function(t){return!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator})},e.compilerOptionsIndicateEs6Modules=function(e){return!!e.module||e.target>=2||!!e.noEmit},e.hostUsesCaseSensitiveFileNames=F,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(F(t))},e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?I(e,t,r,n):void 0},e.makeImport=I,e.makeStringLiteral=M,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=O,e.getQuotePreference=function(t,r){if(r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,e.isStringLiteral);return n?O(n,t):1},e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=L(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=L,e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getPropertySymbolsFromBaseTypes=R,e.isMemberSymbolInBaseType=function(e,t){return R(e.parent,e.name,t,function(e){return!0})||!1},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!B(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return t.modifiers&&e.find(t.modifiers,function(e){return e.kind===r})},e.insertImport=function(t,r,n){var i=e.findLast(r.statements,e.isAnyImportSyntax);i?t.insertNodeAfter(r,i,n):t.insertNodeAtTopOfFile(r,n,!0)},e.textSpansEqual=j,e.documentSpansEqual=function(e,t){return e.fileName===t.fileName&&j(e.textSpan,t.textSpan)}}(d||(d={})),function(e){function t(e){return e.declarations&&e.declarations.length>0&&151===e.declarations[0].kind}e.isFirstDeclarationOfSymbolParameter=t;var r=function(){var t,r,a,o,s=10*e.defaultMaximumTruncationLength;_();var u=function(t){return d(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var r=t.length&&t[t.length-1].text;return o>s&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(i(" ",e.SymbolDisplayPartKind.space)),t.push(i("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return d(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return d(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return d(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return d(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return d(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return d(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return d(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return d(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return d(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){if(o>s)return;l(),o+=e.length,t.push(n(e,r))},writeLine:function(){if(o>s)return;o+=1,t.push(c()),r=!0},write:u,writeComment:u,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return a},increaseIndent:function(){a++},decreaseIndent:function(){a--},clear:_,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function l(){if(!(o>s)&&r){var n=e.getIndentString(a);n&&(o+=n.length,t.push(i(n,e.SymbolDisplayPartKind.space))),r=!1}}function d(e,r){o>s||(l(),o+=e.length,t.push(i(e,r)))}function _(){t=[],r=!0,a=0,o=0}}();function n(r,n){return i(r,function(r){var n=r.flags;if(3&n)return t(r)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&n)return e.SymbolDisplayPartKind.propertyName;if(32768&n)return e.SymbolDisplayPartKind.propertyName;if(65536&n)return e.SymbolDisplayPartKind.propertyName;if(8&n)return e.SymbolDisplayPartKind.enumMemberName;if(16&n)return e.SymbolDisplayPartKind.functionName;if(32&n)return e.SymbolDisplayPartKind.className;if(64&n)return e.SymbolDisplayPartKind.interfaceName;if(384&n)return e.SymbolDisplayPartKind.enumName;if(1536&n)return e.SymbolDisplayPartKind.moduleName;if(8192&n)return e.SymbolDisplayPartKind.methodName;if(262144&n)return e.SymbolDisplayPartKind.typeParameterName;if(524288&n)return e.SymbolDisplayPartKind.aliasName;if(2097152&n)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(n))}function i(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function a(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return i(t,e.SymbolDisplayPartKind.text)}e.symbolPart=n,e.displayPart=i,e.spacePart=function(){return i(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=a,e.punctuationPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?o(t):a(r)},e.textPart=o;var s="\r\n";function c(){return i("\n",e.SymbolDisplayPartKind.lineBreak)}function u(e){try{return e(r),r.displayParts()}finally{r.clear()}}function l(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&d(e)?e.substring(1,t-1):e}function d(t){return e.isSingleOrDoubleQuote(t.charCodeAt(0))}function _(t,r){return e.ensureScriptKind(t,r&&r.getScriptKind&&r.getScriptKind(t))}function f(e,t){void 0===t&&(t=!0);var r=e&&m(e);return r&&!t&&g(r),r}function p(t,r,n,i,a){var o;if(void 0===r&&(r=!0),e.isIdentifier(t)&&n&&i){var s=i.getSymbolAtLocation(t),c=s&&n.get(String(e.getSymbolId(s)));c&&(o=e.createIdentifier(c.text))}return o||(o=m(t,n,i,a)),o&&!r&&g(o),a&&o&&a(t,o),o}function m(t,r,n,i){var a=r||n||i?e.visitEachChild(t,function(e){return p(e,!0,r,n,i)},e.nullTransformationContext):e.visitEachChild(t,f,e.nullTransformationContext);if(a===t){var o=e.getSynthesizedClone(t);return e.isStringLiteral(o)?o.textSourceNode=t:e.isNumericLiteral(o)&&(o.numericLiteralFlags=t.numericLiteralFlags),e.setTextRange(o,t)}return a.parent=void 0,a}function g(e){h(e),y(e)}function h(e){v(e,512,b)}function y(t){v(t,1024,e.getLastChild)}function v(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&v(i,r,n)}function b(e){return e.forEachChild(function(e){return e})}function x(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}function S(e){switch(e){case 35:case 33:case 36:case 34:return!0;default:return!1}}function D(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}e.getNewLineOrDefaultFromHost=function(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||s},e.lineBreakPart=c,e.mapToDisplayParts=u,e.typeToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),u(function(i){e.writeType(t,r,17408|n,i)})},e.symbolToDisplayParts=function(e,t,r,n,i){return void 0===i&&(i=0),u(function(a){e.writeSymbol(t,r,n,8|i,a)})},e.signatureToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),n|=25632,u(function(i){e.writeSignature(t,r,n,void 0,i)})},e.isImportOrExportSpecifierName=function(t){return!!t.parent&&e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t},e.stripQuotes=l,e.startsWithQuote=d,e.scriptKindIs=function(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=_(t,r);return e.some(n,function(e){return e===a})},e.getScriptKind=_,e.getUniqueSymbolId=function(t,r){return e.getSymbolId(e.skipAlias(t,r))},e.getFirstNonSpaceCharacterPosition=function(t,r){for(;e.isWhiteSpaceLike(t.charCodeAt(r));)r+=1;return r},e.getPrecedingNonSpaceCharacterPosition=function(t,r){for(;r>-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=f,e.getSynthesizedDeepCloneWithRenames=p,e.getSynthesizedDeepClones=function(t,r){return void 0===r&&(r=!0),t&&e.createNodeArray(t.map(function(e){return f(e,r)}),t.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=g,e.suppressLeadingTrivia=h,e.suppressTrailingTrivia=y,e.getUniqueName=function(t,r){for(var n=t,i=1;!e.isFileLevelUniqueName(r,n);i++)n=t+"_"+i;return n},e.getRenameLocation=function(t,r,n,i){for(var a=0,o=-1,s=0,c=t;s<c.length;s++){var u=c[s],l=u.fileName,d=u.textChanges;e.Debug.assert(l===r);for(var _=0,f=d;_<f.length;_++){var p=f[_],m=p.span,g=p.newText,h=x(g,n);if(-1!==h&&(o=m.start+a+h,!i))return o;a+=g.length-m.length}}return e.Debug.assert(i),e.Debug.assert(o>=0),o},e.copyComments=function(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,function(t,o,s,c){3===s?(t+=2,o-=2):t+=2,e.addSyntheticLeadingComment(r,i||s,n.text.slice(t,o),void 0!==a?a:c)})},e.getContextualTypeFromParent=function(e,t){var r=e.parent;switch(r.kind){case 192:return t.getContextualType(r);case 204:var n=r,i=n.left,a=n.operatorToken,o=n.right;return S(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 271:return r.expression===e?D(r,t):void 0;default:return t.getContextualType(e)}},e.quote=function(t,r){if(/^\d+$/.test(t))return t;var n=JSON.stringify(t);switch(r.quotePreference){case void 0:case"double":return n;case"single":return"'"+l(n).replace("'","\\'").replace('\\"','"')+"'";default:return e.Debug.assertNever(r.quotePreference)}},e.isEqualityOperatorKind=S,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 206:case 193:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=D}(d||(d={})),function(e){e.createClassifier=function(){var o=e.createScanner(6,!1);function s(i,s,c){var u=0,l=0,d=[],_=function(t){switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}}(s),f=_.prefix,p=_.pushTemplate;i=f+i;var m=f.length;p&&d.push(15),o.setText(i);var g=0,h=[],y=0;do{u=o.scan(),e.isTrivia(u)||(x(),l=u);var v=o.getTextPos();if(n(o.getTokenPos(),v,m,a(u),h),v>=i.length){var b=r(o,u,e.lastOrUndefined(d));void 0!==b&&(g=b)}}while(1!==u);function x(){switch(u){case 42:case 64:t[l]||13!==o.reScanSlashToken()||(u=13);break;case 28:72===l&&y++;break;case 30:y>0&&y--;break;case 120:case 138:case 135:case 123:case 139:y>0&&!c&&(u=72);break;case 15:d.push(u);break;case 18:d.length>0&&d.push(u);break;case 19:if(d.length>0){var r=e.lastOrUndefined(d);15===r?17===(u=o.reScanTemplateToken())?d.pop():e.Debug.assertEqual(u,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(u))break;24===l?u=72:e.isKeyword(l)&&e.isKeyword(u)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 126:case 137:case 124:case 116:return!0;default:return!1}}(l,u)&&(u=72)}}return{endOfLineState:g,spans:h}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s<a.length;s+=3){var c=a[s],u=a[s+1],l=a[s+2];if(o>=0){var d=c-o;d>0&&n.push({length:d,classification:e.TokenClass.Whitespace})}n.push({length:u,classification:i(l)}),o=c+u}var _=r.length-o;return _>0&&n.push({length:_,classification:e.TokenClass.Whitespace}),{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([72,10,8,9,13,100,44,45,21,23,19,102,87],function(e){return e},function(){return!0});function r(t,r,n){switch(r){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 40:case 42:case 43:case 38:case 39:case 46:case 47:case 48:case 28:case 30:case 31:case 32:case 94:case 93:case 119:case 33:case 34:case 35:case 36:case 49:case 51:case 50:case 54:case 55:case 70:case 69:case 71:case 66:case 67:case 68:case 60:case 61:case 62:case 64:case 65:case 59:case 27:return!0;default:return!1}}(t)||function(e){switch(e){case 38:case 39:case 53:case 52:case 44:case 45:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=71)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 72:default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 244:case 240:case 241:case 239:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild(function c(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var l=t.getSymbolAtLocation(u),d=l&&function t(r,n,i){var a=r.getFlags();return 0==(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&n||1&n&&function(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)})}(r)?14:void 0:2097152&a?t(i.getAliasedSymbol(r),n,i):2&n?64&a?13:262144&a?15:void 0:void 0}(l,e.getMeaningFromLocation(u),t);d&&function(e,t,r){s.push(e),s.push(t-e),s.push(r)}(u.getStart(n),u.getEnd(),d)}u.forEachChild(c)}}),{spans:s,endOfLineState:0}}function c(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i<r.length;i+=3)n.push({textSpan:e.createTextSpan(r[i],r[i+1]),classificationType:c(r[i+2])});return n}function l(t,r,n){var i=n.start,a=n.length,s=e.createScanner(6,!1,r.languageVariant,r.text),c=e.createScanner(6,!1,r.languageVariant,r.text),u=[];return y(r),{spans:u,endOfLineState:0};function l(e,t,r){u.push(e),u.push(t),u.push(r)}function d(t,n,i,a){if(3===n){var o=e.parseIsolatedJSDocComment(r.text,i,a);if(o&&o.jsDoc)return o.jsDoc.parent=t,void function(e){var t=e.pos;if(e.tags)for(var r=0,n=e.tags;r<n.length;r++){var i=n[r];switch(i.pos!==t&&_(t,i.pos-t),l(i.pos,1,10),l(i.tagName.pos,i.tagName.end-i.tagName.pos,18),t=i.tagName.end,i.kind){case 299:a(i);break;case 303:f(i),t=i.end;break;case 302:case 300:y(i.typeExpression),t=i.end}}t!==e.end&&_(t,e.end-t);return;function a(e){e.isNameFirst&&(_(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end),e.typeExpression&&(_(t,e.typeExpression.pos-t),y(e.typeExpression),t=e.typeExpression.end),e.isNameFirst||(_(t,e.name.pos-t),l(e.name.pos,e.name.end-e.name.pos,17),t=e.name.end)}}(o.jsDoc)}_(i,a)}function _(e,t){l(e,t,1)}function f(e){for(var t=0,r=e.getChildren();t<r.length;t++){y(r[t])}}function p(t,r,n){var i;for(i=r;i<n&&!e.isLineBreak(t.charCodeAt(i));i++);for(l(r,i-r,1),c.setTextPos(i);c.getTextPos()<n;)m()}function m(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos(),n=h(t);n&&l(e,r-e,n)}function g(t){if(e.isJSDoc(t))return!0;if(e.nodeIsMissing(t))return!0;var n=function(e){switch(e.parent&&e.parent.kind){case 262:if(e.parent.tagName===e)return 19;break;case 263:if(e.parent.tagName===e)return 20;break;case 261:if(e.parent.tagName===e)return 21;break;case 267:if(e.parent.name===e)return 22}return}(t);if(!e.isToken(t)&&11!==t.kind&&void 0===n)return!1;var i=11===t.kind?t.pos:function(t){for(s.setTextPos(t.pos);;){var n=s.getTextPos();if(!e.couldStartTrivia(r.text,n))return n;var i=s.scan(),a=s.getTextPos(),o=a-n;if(!e.isTrivia(i))return n;switch(i){case 4:case 5:continue;case 2:case 3:d(t,i,n,o),s.setTextPos(a);continue;case 7:var c=r.text,u=c.charCodeAt(n);if(60===u||62===u){l(n,o,1);continue}e.Debug.assert(124===u||61===u),p(c,n,a);break;case 6:break;default:e.Debug.assertNever(i)}}}(t),a=t.end-i;if(e.Debug.assert(a>=0),a>0){var o=n||h(t.kind,t);o&&l(i,a,o)}return!0}function h(t,r){if(e.isKeyword(t))return 3;if((28===t||30===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(59===t&&(237===n.kind||154===n.kind||151===n.kind||267===n.kind))return 5;if(204===n.kind||202===n.kind||203===n.kind||205===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return 267===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(72===t){if(r)switch(r.parent.kind){case 240:return r.parent.name===r?11:void 0;case 150:return r.parent.name===r?15:void 0;case 241:return r.parent.name===r?13:void 0;case 243:return r.parent.name===r?12:void 0;case 244:return r.parent.name===r?14:void 0;case 151:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}return 2}}function y(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s<c.length;s++){var u=c[s];g(u)||y(u)}}}}e.getSemanticClassifications=function(e,t,r,n,i){return u(s(e,t,r,n,i))},e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=function(e,t,r){return u(l(e,t,r))},e.getEncodedSyntacticClassifications=l}(d||(d={})),function(e){!function(t){!function(r){function n(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(function(e){var t=e.name,r=e.kind,n=e.span;return{name:t,kind:r,kindModifiers:i(e.extension),sortText:"0",replacementSpan:n}})}}function i(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case void 0:return"";default:return e.Debug.assertNever(t)}}var a;function o(t,r,n,i,a,o){var u,l,d=r.parent;switch(d.kind){case 182:switch(d.parent.kind){case 164:return{kind:2,types:c(i.getTypeArgumentConstraint(d)),isNewIdentifier:!1};case 180:return s(i.getTypeFromTypeNode(d.parent.objectType));case 183:return{kind:0,paths:_(t,r,a,o,i)};case 173:if(!e.isTypeReferenceNode(d.parent.parent))return;var f=(u=d.parent,l=d,e.mapDefined(u.types,function(t){return t!==l&&e.isLiteralTypeNode(t)&&e.isStringLiteral(t.literal)?t.literal.text:void 0}));return{kind:2,types:c(i.getTypeArgumentConstraint(d.parent)).filter(function(t){return!e.contains(f,t.value)}),isNewIdentifier:!1};default:return}case 275:return e.isObjectLiteralExpression(d.parent)&&d.name===r?s(i.getContextualType(d.parent)):y();case 190:var p=d,m=p.expression,g=p.argumentExpression;return r===g?s(i.getTypeAtLocation(m)):void 0;case 191:case 192:if(!e.isRequireCall(d,!1)&&!e.isImportCall(d)){var h=e.SignatureHelp.getArgumentInfoForCompletions(r,n,t);return h?function(t,r){var n=!1,i=e.createMap(),a=[];return r.getResolvedSignature(t.invocation,a,t.argumentCount),{kind:2,types:e.flatMap(a,function(e){if(e.hasRestParameter||!(t.argumentCount>e.parameters.length)){var a=r.getParameterType(e,t.argumentIndex);return n=n||!!(4&a.flags),c(a,i)}}),isNewIdentifier:n}}(h,i):y()}case 249:case 255:case 259:return{kind:0,paths:_(t,r,a,o,i)};default:return y()}function y(){return{kind:2,types:c(e.getContextualTypeFromParent(r,i)),isNewIdentifier:!1}}}function s(t){return t&&{kind:1,symbols:t.getApparentProperties(),hasIndexSignature:e.hasIndexSignature(t)}}function c(t,r){return void 0===r&&(r=e.createMap()),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,function(e){return c(e,r)}):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function u(e,t,r){return{name:e,kind:t,extension:r}}function l(e){return u(e,"directory",void 0)}function d(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf("\\")),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),6)?void 0:e.createTextSpan(r+i,a)}(t,r);return n.map(function(e){return{name:e.name,kind:e.kind,extension:e.extension,span:i}})}function _(t,r,n,i,a){return d(r.text,r.getStart(t)+1,function(t,r,n,i,a){var o=e.normalizeSlashes(r.text),s=t.path,c=e.getDirectoryPath(s);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(o)||!n.baseUrl&&(e.isRootedDiskPath(o)||e.isUrl(o))?function(t,r,n,i,a){var o=f(n);return n.rootDirs?function(t,r,n,i,a,o,s){var c=a.project||o.getCurrentDirectory(),u=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),l=function(t,r,n,i){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))});var a=e.firstDefined(t,function(t){return e.containsPath(t,n,r,i)?n.substr(t.length):void 0});return e.deduplicate(t.map(function(t){return e.combinePaths(t,a)}).concat([n]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,c,n,u);return e.flatMap(l,function(e){return m(r,e,i,o,s)})}(n.rootDirs,t,r,o,n,i,a):m(t,r,o,i,a)}(o,c,n,i,s):function(t,r,n,i,a){var o=n.baseUrl,s=n.paths,c=[],l=f(n);if(o){var d=n.project||i.getCurrentDirectory(),_=e.normalizePath(e.combinePaths(d,o));m(t,_,l,i,void 0,c),s&&g(c,t,_,l.extensions,s,i)}for(var p=h(t),y=0,x=function(t,r,n){var i=n.getAmbientModules().map(function(t){return e.stripQuotes(t.name)}).filter(function(r){return e.startsWith(r,t)});if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map(function(t){return e.removePrefix(t,a)})}return i}(t,p,a);y<x.length;y++){var D=x[y];c.push(u(D,"external module name",void 0))}if(v(i,n,r,p,l,c),e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs){var k=!1;if(void 0===p)for(var C=function(e){c.some(function(t){return t.name===e})||(k=!0,c.push(u(e,"external module name",void 0)))},E=0,N=function(t,r){if(!t.readFile||!t.fileExists)return e.emptyArray;for(var n=[],i=0,a=b(r,t);i<a.length;i++)for(var o=a[i],s=e.readJson(o,t),c=0,u=S;c<u.length;c++){var l=u[c],d=s[l];if(d)for(var _ in d)d.hasOwnProperty(_)&&!e.startsWith(_,"@types/")&&n.push(_)}return n}(i,r);E<N.length;E++){var A=N[E];C(A)}k||e.forEachAncestorDirectory(r,function(r){var n=e.combinePaths(r,"node_modules");T(i,n)&&m(t,n,l,i,void 0,c)})}return c}(o,c,n,i,a)}(t,r,n,i,a))}function f(e,t){return void 0===t&&(t=!1),{extensions:p(e),includeExtensions:t}}function p(t){var r=e.getSupportedExtensions(t);return t.resolveJsonModule&&e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs?r.concat(".json"):r}function m(t,r,n,i,a,o){var s=n.extensions,c=n.includeExtensions;void 0===o&&(o=[]),void 0===t&&(t=""),t=e.normalizeSlashes(t),e.hasTrailingDirectorySeparator(t)||(t=e.getDirectoryPath(t)),""===t&&(t="."+e.directorySeparator),t=e.ensureTrailingDirectorySeparator(t);var d=e.resolvePath(r,t),_=e.hasTrailingDirectorySeparator(d)?d:e.getDirectoryPath(d),f=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!T(i,_))return o;var p=k(i,_,s,void 0,["./*"]);if(p){for(var m=e.createMap(),h=0,y=p;h<y.length;h++){var v=y[h];if(v=e.normalizePath(v),!a||0!==e.comparePaths(v,a,r,f)){var b=c||e.fileExtensionIs(v,".json")?e.getBaseFileName(v):e.removeFileExtension(e.getBaseFileName(v));m.set(b,e.tryGetExtensionFromPath(v))}}m.forEach(function(e,t){o.push(u(t,"script",e))})}var x=D(i,_);if(x)for(var S=0,E=x;S<E.length;S++){var N=E[S],A=e.getBaseFileName(e.normalizePath(N));"@types"!==A&&o.push(l(A))}var w=function(t,r){var n;return e.forEachAncestorDirectory(t,function(t){return"node_modules"===t||!!(n=e.findConfigFile(t,function(e){return C(r,e)},"package.json"))||void 0}),n}(_,i);if(w){var P=e.readJson(w,i).typesVersions;if("object"==typeof P){var F=e.getPackageJsonTypesVersionsPaths(P),I=F&&F.paths,M=d.slice(e.ensureTrailingDirectorySeparator(_).length);I&&g(o,M,_,s,I,i)}}return o}function g(t,r,n,i,a,o){for(var s in a)if(e.hasProperty(a,s)){var c=a[s];if(c)for(var l=function(e,r,n){t.some(function(t){return t.name===e})||t.push(u(e,r,n))},d=0,_=y(s,c,r,n,i,o);d<_.length;d++){var f=_[d];l(f.name,f.kind,f.extension)}}}function h(t){return A(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function y(t,r,n,i,a,o){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:d(t);var s=t.slice(0,t.length-1),c=e.tryRemovePrefix(n,s);return void 0===c?d(s):e.flatMap(r,function(t){return function(t,r,n,i,a){if(!a.readDirectory)return;var o=e.hasZeroOrOneAsteriskCharacter(n)?e.tryParsePattern(n):void 0;if(!o)return;var s=e.resolvePath(o.prefix),c=e.hasTrailingDirectorySeparator(o.prefix)?s:e.getDirectoryPath(s),d=e.hasTrailingDirectorySeparator(o.prefix)?"":e.getBaseFileName(s),_=A(t),f=_?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,p=_?e.combinePaths(c,d+f):c,m=e.normalizePath(o.suffix),g=e.normalizePath(e.combinePaths(r,p)),h=_?g:e.ensureTrailingDirectorySeparator(g)+d,y=m?"**/*":"./*",v=e.mapDefined(k(a,g,i,void 0,[y]),function(t){var r=e.tryGetExtensionFromPath(t),n=x(t);return void 0===n?void 0:u(e.removeFileExtension(n),"script",r)}),b=e.mapDefined(D(a,g).map(function(t){return e.combinePaths(g,t)}),function(e){var t=x(e);return void 0===t?void 0:l(t)});return v.concat(b);function x(t){var r,n,i,a=(r=e.normalizePath(t),n=h,i=m,e.startsWith(r,n)&&e.endsWith(r,i)?r.slice(n.length,r.length-i.length):void 0);return void 0===a?void 0:function(t){return t[0]===e.directorySeparator?t.slice(1):t}(a)}}(c,i,t,a,o)});function d(t){return e.startsWith(t,n)?[l(t)]:e.emptyArray}}function v(t,r,n,i,a,o){void 0===o&&(o=[]);for(var s=e.createMap(),c=0,l=N(function(){return e.getEffectiveTypeRoots(r,t)})||e.emptyArray;c<l.length;c++){p(l[c])}for(var d=0,_=b(n,t);d<_.length;d++){var f=_[d];p(e.combinePaths(e.getDirectoryPath(f),"node_modules/@types"))}return o;function p(n){if(T(t,n))for(var c=0,l=D(t,n);c<l.length;c++){var d=l[c],_=e.unmangleScopedPackageName(d);if(!r.types||e.contains(r.types,_))if(void 0===i)s.has(_)||(o.push(u(_,"external module name",void 0)),s.set(_,!0));else{var f=e.combinePaths(n,d),p=e.tryRemoveDirectoryPrefix(i,_,e.hostGetCanonicalFileName(t));void 0!==p&&m(p,f,a,t,void 0,o)}}}}function b(t,r){var n=[];return e.forEachAncestorDirectory(t,function(t){var i=e.findConfigFile(t,function(e){return C(r,e)},"package.json");if(!i)return!0;n.push(i)}),n}r.getStringLiteralCompletions=function(r,i,a,s,c,u,l,_){if(e.isInReferenceComment(r,i)){var p=function(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=e.getLeadingCommentRanges(t.text,a.pos),s=o&&e.find(o,function(e){return r>=e.pos&&r<=e.end});if(s){var c=t.text.slice(s.pos,r),u=x.exec(c);if(u){var l=u[1],_=u[2],p=u[3],g=e.getDirectoryPath(t.path),y="path"===_?m(p,g,f(n,!0),i,t.path):"types"===_?v(i,n,g,h(p),f(n)):e.Debug.fail();return d(p,s.pos+l.length,y)}}}(r,i,c,u);return p&&n(p)}if(e.isInString(r,i,a))return a&&e.isStringLiteralLike(a)?function(r,i,a,o,s){if(void 0!==r)switch(r.kind){case 0:return n(r.paths);case 1:var c=[];return t.getCompletionEntriesFromSymbols(r.symbols,c,i,i,a,6,o,4,s),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,entries:c};case 2:var c=r.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:"0"}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,entries:c};default:return e.Debug.assertNever(r)}}(o(r,a,i,s,c,u),r,s,l,_):void 0},r.getStringLiteralCompletionDetails=function(r,n,a,s,c,u,l,d){if(s&&e.isStringLiteralLike(s)){var _=o(n,s,a,c,u,l);return _&&function(r,n,a,o,s,c){switch(a.kind){case 0:var u=e.find(a.paths,function(e){return e.name===r});return u&&t.createCompletionDetails(r,i(u.extension),u.kind,[e.textPart(r)]);case 1:var u=e.find(a.symbols,function(e){return e.name===r});return u&&t.createCompletionDetailsForSymbol(u,s,o,n,c);case 2:return e.find(a.types,function(e){return e.value===r})?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(a)}}(r,s,_,n,c,d)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(a||(a={}));var x=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,S=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function D(e,t){return E(e,e.getDirectories,t)||[]}function k(t,r,n,i,a){return E(t,t.readDirectory,r,n,i,a)||e.emptyArray}function C(e,t){return E(e,e.fileExists,t)}function T(t,r){return N(function(){return e.directoryProbablyExists(r,t)})||!1}function E(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return N(function(){return t&&t.apply(e,r)})}function N(e){try{return e()}catch(e){return}}function A(t){return e.stringContains(t,e.directorySeparator)}}(t.StringCompletions||(t.StringCompletions={}))}(e.Completions||(e.Completions={}))}(d||(d={})),function(e){!function(t){var r,n,i;function a(e){return 2===e.kind||3===e.kind}function o(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function s(t,r){return e.isSourceFileJS(t)&&!e.isCheckJsEnabledForFile(t,r)}function c(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}!function(e){e[e.ThisType=0]="ThisType",e[e.SymbolMemberNoExport=1]="SymbolMemberNoExport",e[e.SymbolMemberExport=2]="SymbolMemberExport",e[e.Export=3]="Export"}(r||(r={})),function(e){e[e.None=0]="None",e[e.All=1]="All",e[e.ClassElementKeywords=2]="ClassElementKeywords",e[e.InterfaceElementKeywords=3]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",e[e.TypeKeywords=6]="TypeKeywords"}(n||(n={})),function(e){e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"}(i||(i={})),t.getCompletionsAtPosition=function(r,n,i,a,u,l,_){var f=n.getTypeChecker(),p=n.getCompilerOptions(),m=e.findPrecedingToken(u,a);if(!_||function(t,r,n,i){switch(r){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&e.isStringLiteralOrTemplate(n)&&i===n.getStart(t)+1;case"<":return!!n&&28===n.kind&&(!e.isBinaryExpression(n.parent)||I(n.parent));case"/":return!!n&&(e.isStringLiteralLike(n)?!!e.tryGetImportFromModuleSpecifier(n):42===n.kind&&e.isJsxClosingElement(n.parent));default:return e.Debug.assertNever(r)}}(a,_,m,u)){var h=t.StringCompletions.getStringLiteralCompletions(a,u,m,f,p,r,i,l);if(h)return h;if(m&&e.isBreakOrContinueStatement(m.parent)&&(73===m.kind||78===m.kind||72===m.kind))return function(t){var r=function(t){for(var r=[],n=e.createMap(),i=t;i&&!e.isFunctionLike(i);){if(e.isLabeledStatement(i)){var a=i.label.text;n.has(a)||(n.set(a,!0),r.push({name:a,kindModifiers:"",kind:"label",sortText:"0"}))}i=i.parent}return r}(t);if(r.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:r}}(m.parent);var y=D(n,i,a,s(a,p),u,l,void 0);if(y)switch(y.kind){case 0:return function(t,r,n,i,a,o){var u=a.symbols,l=a.completionKind,_=a.isInSnippetScope,f=a.isNewIdentifierLocation,p=a.location,m=a.propertyAccessToConvert,h=a.keywordFilters,y=a.literals,v=a.symbolToOriginInfoMap,b=a.recommendedCompletion,x=a.isJsxInitializer;if(p&&p.parent&&e.isJsxClosingElement(p.parent)){var S=p.parent.parent.openingElement.tagName,D=!!e.findChildOfKind(p.parent,30,t),k={name:S.getFullText(t)+(D?"":">"),kind:"class",kindModifiers:void 0,sortText:"0"};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[k]}}var A=[];if(s(t,n)){var w=g(u,A,p,t,r,n.target,i,l,o,m,x,b,v);!function(t,r,n,i,a){e.getNameTable(t).forEach(function(t,o){if(t!==r){var s=e.unescapeLeadingUnderscores(o);e.addToSeen(n,s)&&e.isIdentifierText(s,i)&&a.push({name:s,kind:"warning",kindModifiers:"",sortText:"1"})}})}(t,p.pos,w,n.target,A)}else{if((!u||0===u.length)&&0===h)return;g(u,A,p,t,r,n.target,i,l,o,m,x,b,v)}if(0!==h)for(var P=e.arrayToSet(A,function(e){return e.name}),F=0,I=function(t){return C[t]||(C[t]=T().filter(function(r){var n=e.stringToToken(r.name);switch(t){case 0:return!1;case 1:return 121===n||122;case 2:return N(n);case 3:return E(n);case 4:return e.isParameterPropertyModifier(n);case 5:return function(t){return 121===t||122===t||!e.isContextualKeyword(t)&&!N(t)}(n);case 6:return e.isTypeKeyword(n);default:return e.Debug.assertNever(t)}}))}(h);F<I.length;F++){var M=I[F];P.has(M.name)||A.push(M)}for(var O=0,L=y;O<L.length;O++){var R=L[O];A.push(d(R))}return{isGlobalCompletion:_,isMemberCompletion:c(l),isNewIdentifierLocation:f,entries:A}}(a,f,p,i,y,l);case 1:return o(e.JsDoc.getJSDocTagNameCompletions());case 2:return o(e.JsDoc.getJSDocTagCompletions());case 3:return o(e.JsDoc.getJSDocParameterNameCompletions(y.tag));default:return e.Debug.assertNever(y)}}};var u,l=function(t){return"object"==typeof t?e.pseudoBigIntToString(t)+"n":JSON.stringify(t)};function d(e){return{name:l(e),kind:"string",kindModifiers:"",sortText:"0"}}function _(t,r,n,i,o,s,c,u,l,d,_){var g=k(t,o,c,s);if(g){var h,y,v=g.name,b=g.needsConvertPropertyAccess;if(c&&0===c.kind)h=b?"this["+e.quote(v,_)+"]":"this."+v;else if((c&&function(e){return 2===e.kind||1===e.kind}(c)||b)&&l){h=b?"["+e.quote(v,_)+"]":"["+v+"]";var x=e.findChildOfKind(l,24,n),S=e.startsWith(v,l.name.text)?l.name.end:x.end;y=e.createTextSpanFromBounds(x.getStart(n),S)}if(d&&(void 0===h&&(h=v),h="{"+h+"}","boolean"!=typeof d&&(y=e.createTextSpanFromNode(d,n))),void 0===h||_.includeCompletionsWithInsertText)return{name:v,kind:e.SymbolDisplay.getSymbolKind(i,t,r),kindModifiers:e.SymbolDisplay.getSymbolModifiers(t),sortText:"0",source:m(c),hasAction:p(!!c&&a(c)),isRecommended:p(f(t,u,i)),insertText:h,replacementSpan:y}}}function f(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function p(e){return!!e||void 0}function m(t){return t&&a(t)?e.stripQuotes(t.moduleSymbol.name):void 0}function g(t,r,n,i,a,o,s,c,u,l,d,f,p){for(var m=e.timestamp(),g=e.createMap(),h=0,y=t;h<y.length;h++){var v=y[h],b=p?p[e.getSymbolId(v)]:void 0,x=_(v,n,i,a,o,c,b,f,l,d,u);if(x){var S=x.name;g.has(S)||(b||void 0===v.parent&&!e.some(v.declarations,function(e){return e.getSourceFile()===n.getSourceFile()})||g.set(S,!0),r.push(x))}}return s("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-m)),g}function h(t,r,n,i,a){var o=t.getCompilerOptions(),c=D(t,r,n,s(n,o),i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},a);if(!c)return{type:"none"};if(0!==c.kind)return{type:"request",request:c};var u=c.symbols,d=c.literals,_=c.location,f=c.completionKind,p=c.symbolToOriginInfoMap,g=c.previousToken,h=c.isJsxInitializer,y=e.find(d,function(e){return l(e)===a.name});return void 0!==y?{type:"literal",literal:y}:e.firstDefined(u,function(t){var r=p[e.getSymbolId(t)],n=k(t,o.target,r,f);return n&&n.name===a.name&&m(r)===a.source?{type:"symbol",symbol:t,location:_,symbolToOriginInfoMap:p,previousToken:g,isJsxInitializer:h}:void 0})||{type:"none"}}function y(t,r,n){return r&&a(r)&&r.isDefaultExport&&"default"===t.escapedName?e.firstDefined(t.declarations,function(t){return e.isExportAssignment(t)&&e.isIdentifier(t.expression)?t.expression.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(r.moduleSymbol,n):t.name}function v(t,r,n){return x(t,"",r,[e.displayPart(t,n)])}function b(t,r,n,i,a,o,s){var c=r.runWithCancellationToken(a,function(r){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7)}),u=c.displayParts,l=c.documentation,d=c.symbolKind,_=c.tags;return x(t.name,e.SymbolDisplay.getSymbolModifiers(t),d,u,l,_,o,s)}function x(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s}}function S(t,r,n){var i=n.getAccessibleSymbolChain(t,r,67108863,!1);return i?e.first(i):t.parent&&(function(e){return e.declarations.some(function(e){return 279===e.kind})}(t.parent)?t:S(t.parent,r,n))}function D(t,r,n,i,a,o,s){var c=t.getTypeChecker(),u=e.timestamp(),l=e.getTokenAtPosition(n,a);r("getCompletionData: Get current token: "+(e.timestamp()-u)),u=e.timestamp();var d=e.isInComment(n,a,l);r("getCompletionData: Is inside comment: "+(e.timestamp()-u));var _=!1,f=!1;if(d){if(e.hasDocComment(n,a)){if(64===n.text.charCodeAt(a-1))return{kind:1};var p=e.getLineStartPositionForPosition(a,n);if(!n.text.substring(p,a).match(/[^\*|\s|(\/\*\*)]/))return{kind:2}}var m=function(t,r){var n=e.findAncestor(t,e.isJSDoc);return n&&n.tags&&(e.rangeContainsPosition(n,r)?e.findLast(n.tags,function(e){return e.pos<r}):void 0)}(l,a);if(m){if(m.tagName.pos<=a&&a<=m.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 299:case 305:case 300:case 302:case 304:return!0;default:return!1}}(m)&&m.typeExpression&&283===m.typeExpression.kind&&((l=e.getTokenAtPosition(n,a))&&(e.isDeclarationName(l)||305===l.parent.kind&&l.parent.name===l)||(_=ne(m.typeExpression))),e.isJSDocParameterTag(m)&&(e.nodeIsMissing(m.name)||m.name.pos<=a&&a<=m.name.end))return{kind:3,tag:m}}if(!_)return void r("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}u=e.timestamp();var g=e.findPrecedingToken(a,n,void 0);r("getCompletionData: Get previous token 1: "+(e.timestamp()-u));var h=g;if(h&&a<=h.end&&(e.isIdentifier(h)||e.isKeyword(h.kind))){var v=e.timestamp();h=e.findPrecedingToken(h.getFullStart(),n,void 0),r("getCompletionData: Get previous token 2: "+(e.timestamp()-v))}var b,x=l,D=!1,k=!1,C=!1,T=!1,M=e.getTouchingPropertyName(n,a);if(h){if(function(t){var n=e.timestamp(),i=function(t){return(e.isRegularExpressionLiteral(t)||e.isStringTextContainingNode(t))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(t)),a)||a===t.end&&(!!t.isUnterminated||e.isRegularExpressionLiteral(t)))}(t)||function(t){var r=t.parent,n=r.kind;switch(t.kind){case 27:return 237===n||238===n||219===n||243===n||re(n)||241===n||185===n||242===n||e.isClassLike(r)&&!!r.typeParameters&&r.typeParameters.end>=t.pos;case 24:return 185===n;case 57:return 186===n;case 22:return 185===n;case 20:return 274===n||re(n);case 18:return 243===n;case 28:return 240===n||209===n||241===n||242===n||e.isFunctionLikeKind(n);case 116:return 154===n&&!e.isClassLike(r.parent);case 25:return 151===n||!!r.parent&&185===r.parent.kind;case 115:case 113:case 114:return 151===n&&!e.isConstructorDeclaration(r.parent);case 119:return 253===n||257===n||251===n;case 126:case 137:return!F(t);case 76:case 84:case 110:case 90:case 105:case 92:case 111:case 77:case 117:case 140:return!0;case 40:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(N(A(t))&&F(t))return!1;if(te(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(A(t))||ne(t)))return!1;switch(A(t)){case 118:case 76:case 77:case 125:case 84:case 90:case 110:case 111:case 113:case 114:case 115:case 116:case 105:case 117:return!0;case 121:return e.isPropertyDeclaration(t.parent)}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==g||a>g.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(30===e.kind&&e.parent){if(262===e.parent.kind)return!0;if(263===e.parent.kind||261===e.parent.kind)return!!e.parent.parent&&260===e.parent.parent.kind}return!1}(t);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-n)),i}(h))return void r("Returning an empty list because completion was requested in an invalid position.");var O=h.parent;if(24===h.kind)switch(D=!0,O.kind){case 189:x=(b=O).expression;break;case 148:x=O.left;break;case 244:x=O.name;break;case 183:case 214:x=O;break;default:return}else if(1===n.languageVariant){if(O&&189===O.kind&&(h=O,O=O.parent),l.parent===M)switch(l.kind){case 30:260!==l.parent.kind&&262!==l.parent.kind||(M=l);break;case 42:261===l.parent.kind&&(M=l)}switch(O.kind){case 263:42===h.kind&&(C=!0,M=h);break;case 204:if(!I(O))break;case 261:case 260:case 262:28===h.kind&&(k=!0,M=h);break;case 267:switch(g.kind){case 59:T=!0;break;case 72:O!==g.parent&&!O.initializer&&e.findChildOfKind(O,59,n)&&(T=g)}}}}var L=e.timestamp(),R=5,B=!1,j=0,z=[],J=[];if(D)!function(){R=2;var t=e.isLiteralImportTypeNode(x),r=_||t&&!x.isTypeOf||e.isPartOfTypeNode(x.parent),i=e.isInRightSideOfInternalImportEqualsDeclaration(x)||!r&&e.isPossiblyTypeArgumentPosition(h,n,c);if(e.isEntityName(x)||t){var a=e.isModuleDeclaration(x.parent);a&&(B=!0);var o=c.getSymbolAtLocation(x);if(o&&1920&(o=e.skipAlias(o,c)).flags){for(var s=e.Debug.assertEachDefined(c.getExportsOfModule(o),"getExportsOfModule() should all be defined"),u=function(e){return c.isValidPropertyAccess(t?x:x.parent,e.name)},l=function(e){return $(e)},d=a?function(e){return!!(1920&e.flags)&&!e.declarations.every(function(e){return e.parent===x.parent})}:i?function(e){return l(e)||u(e)}:r?l:u,f=0,p=s;f<p.length;f++){var m=p[f];d(m)&&z.push(m)}return void(!r&&o.declarations.some(function(e){return 279!==e.kind&&244!==e.kind&&243!==e.kind})&&G(c.getTypeOfSymbolAtLocation(o,x)))}}if(e.isMetaProperty(x)&&(95===x.keywordToken||92===x.keywordToken)){var g=95===x.keywordToken?"target":"meta";return void z.push(c.createSymbol(4,e.escapeLeadingUnderscores(g)))}r||G(c.getTypeAtLocation(x))}();else if(k){var U=e.Debug.assertEachDefined(c.getJsxIntrinsicTagNamesAt(M),"getJsxIntrinsicTagNames() should all be defined");Q(),z=U.concat(z),R=3,j=0}else if(C){var q=h.parent.parent.openingElement.tagName,K=c.getSymbolAtLocation(q);K&&(z=[K]),R=3,j=0}else if(!Q())return;r("getCompletionData: Semantic work: "+(e.timestamp()-L));var V=g&&function(t,r,n,i){var a=t.parent;switch(t.kind){case 72:return e.getContextualTypeFromParent(t,i);case 59:switch(a.kind){case 237:return i.getContextualType(a.initializer);case 204:return i.getTypeAtLocation(a.left);case 267:return i.getContextualTypeForJsxAttribute(a);default:return}case 95:return i.getContextualType(a);case 74:return e.getSwitchedType(e.cast(a,e.isCaseClause),i);case 18:return e.isJsxExpression(a)&&260!==a.parent.kind?i.getContextualTypeForJsxAttribute(a.parent):void 0;default:var o=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return o?i.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(27===t.kind?1:0)):e.isEqualityOperatorKind(t.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}}(g,a,n,c),W=e.mapDefined(V&&(V.isUnion()?V.types:[V]),function(e){return e.isLiteral()?e.value:void 0}),H=g&&V&&function(t,r,n){return e.firstDefined(r&&(r.isUnion()?r.types:[r]),function(r){var i=r&&r.symbol;return i&&424&i.flags&&!e.isAbstractConstructorSymbol(i)?S(i,t,n):void 0})}(g,V,c);return{kind:0,symbols:z,completionKind:R,isInSnippetScope:f,propertyAccessToConvert:b,isNewIdentifierLocation:B,location:M,keywordFilters:j,literals:W,symbolToOriginInfoMap:J,recommendedCompletion:H,previousToken:g,isJsxInitializer:T};function G(e){if(B=!!e.getStringIndexType(),i)z.push.apply(z,P(e,c));else for(var t=0,r=e.getApparentProperties();t<r.length;t++){var n=r[t];c.isValidPropertyAccessForCompletions(183===x.kind?x:x.parent,e,n)&&X(n)}}function X(t){var r=e.firstDefined(t.declarations,function(t){return e.tryCast(e.getNameOfDeclaration(t),e.isComputedPropertyName)});if(r){var n=function t(r){return e.isIdentifier(r)?r:e.isPropertyAccessExpression(r)?t(r.expression):void 0}(r.expression),i=n&&c.getSymbolAtLocation(n),a=i&&S(i,h,c);if(a&&!J[e.getSymbolId(a)]){z.push(a);var o=a.parent;J[e.getSymbolId(a)]=o&&e.isExternalModuleSymbol(o)?{kind:2,moduleSymbol:o,isDefaultExport:!1}:{kind:1}}}else z.push(t)}function Q(){var r,i;return 1===(function(){var t,r,n=function(t){if(t){var r=t.parent;switch(t.kind){case 18:case 27:if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r))return r;break;case 40:return e.isMethodDeclaration(r)?e.tryCast(r.parent,e.isObjectLiteralExpression):void 0;case 72:return"async"===t.text&&e.isShorthandPropertyAssignment(t.parent)?t.parent.parent:void 0}}return}(h);if(!n)return 0;if(R=0,188===n.kind){var i=c.getContextualType(n);if(!i)return 2;B=e.hasIndexSignature(i),t=w(i,n,c),r=n.properties}else{e.Debug.assert(184===n.kind),B=!1;var a=e.getRootDeclaration(n.parent);if(!e.isVariableLike(a))return e.Debug.fail("Root declaration is not variable-like.");var o=e.hasInitializer(a)||e.hasType(a)||227===a.parent.parent.kind;if(o||151!==a.kind||(e.isExpression(a.parent)?o=!!c.getContextualType(a.parent):156!==a.parent.kind&&159!==a.parent.kind||(o=e.isExpression(a.parent.parent)&&!!c.getContextualType(a.parent.parent))),o){var i=c.getTypeAtLocation(n);if(!i)return 2;t=c.getPropertiesOfType(i).filter(function(t){return!(24&e.getDeclarationModifierFlagsFromSymbol(t))}),r=n.elements}}t&&t.length>0&&(z=function(t,r){if(0===r.length)return t;for(var n=e.createUnderscoreEscapedMap(),i=0,a=r;i<a.length;i++){var o=a[i];if((275===o.kind||276===o.kind||186===o.kind||156===o.kind||158===o.kind||159===o.kind)&&!ne(o)){var s=void 0;if(e.isBindingElement(o)&&o.propertyName)72===o.propertyName.kind&&(s=o.propertyName.escapedText);else{var c=e.getNameOfDeclaration(o);s=c&&e.isPropertyNameLiteral(c)?e.getEscapedTextOfIdentifierOrLiteral(c):void 0}n.set(s,!0)}}return t.filter(function(e){return!n.get(e.escapedName)})}(t,e.Debug.assertDefined(r)));return 1}()||function(){var t=!h||18!==h.kind&&27!==h.kind?void 0:e.tryCast(h.parent,e.isNamedImportsOrExports);if(!t)return 0;var r=(252===t.kind?t.parent.parent:t.parent).moduleSpecifier,n=c.getSymbolAtLocation(r);if(!n)return 2;R=3,B=!1;var i=c.getExportsAndPropertiesOfModule(n),a=e.arrayToSet(t.elements,function(e){return ne(e)?void 0:(e.propertyName||e.name).escapedText});return z=i.filter(function(e){return"default"!==e.escapedName&&!a.get(e.escapedName)}),1}()||(function(t){if(t){var r=t.parent;switch(t.kind){case 20:case 27:return e.isConstructorDeclaration(t.parent)?t.parent:void 0;default:if(te(t))return r.parent}}}(h)?(R=5,B=!0,j=4,1):0)||function(){var t=function(t,r,n){switch(n.kind){case 306:return e.tryCast(n.parent,e.isObjectTypeDeclaration);case 1:var i=e.tryCast(e.lastOrUndefined(e.cast(n.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(i&&!e.findChildOfKind(i,19,t))return i}if(!r)return;switch(r.kind){case 26:case 19:return F(n)&&n.parent.name===n?n.parent.parent:e.tryCast(n,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(r.parent,e.isObjectTypeDeclaration);default:if(!F(r))return;var a=e.isClassLike(r.parent.parent)?N:E;return a(r.kind)||40===r.kind||e.isIdentifier(r)&&a(e.stringToToken(r.text))?r.parent.parent:void 0}}(n,h,M);if(!t)return 0;if(R=3,B=!0,j=40===h.kind?0:e.isClassLike(t)?2:3,!e.isClassLike(t))return 1;var r=h.parent,i=e.isClassElement(r)?e.getModifierFlags(r):0;if(72===h.kind&&!ne(h))switch(h.getText()){case"private":i|=8;break;case"static":i|=32}if(!(8&i)){var a=e.flatMap(e.getAllSuperTypeNodes(t),function(e){var r=c.getTypeAtLocation(e);return r&&c.getPropertiesOfType(32&i?c.getTypeOfSymbolAtLocation(r.symbol,t):r)});z=function(t,r,n){for(var i=e.createUnderscoreEscapedMap(),a=0,o=r;a<o.length;a++){var s=o[a];if((154===s.kind||156===s.kind||158===s.kind||159===s.kind)&&(!ne(s)&&!e.hasModifier(s,8)&&e.hasModifier(s,32)===!!(32&n))){var c=e.getPropertyNameForPropertyNameNode(s.name);c&&i.set(c,!0)}}return t.filter(function(t){return!(i.has(t.escapedName)||!t.declarations||8&e.getDeclarationModifierFlagsFromSymbol(t))})}(a,t.members,i)}return 1}()||(r=function(t){if(t){var r=t.parent;switch(t.kind){case 30:case 29:case 42:case 72:case 189:case 268:case 267:case 269:if(r&&(261===r.kind||262===r.kind)){if(30===t.kind){var i=e.findPrecedingToken(t.pos,n,void 0);if(!r.typeArguments||i&&42===i.kind)break}return r}if(267===r.kind)return r.parent.parent;break;case 10:if(r&&(267===r.kind||269===r.kind))return r.parent.parent;break;case 19:if(r&&270===r.kind&&r.parent&&267===r.parent.kind)return r.parent.parent.parent;if(r&&269===r.kind)return r.parent.parent}}return}(h),(i=r&&c.getContextualType(r.attributes))?(z=function(t,r){for(var n=e.createUnderscoreEscapedMap(),i=0,a=r;i<a.length;i++){var o=a[i];ne(o)||267===o.kind&&n.set(o.name.escapedText,!0)}return t.filter(function(e){return!n.get(e.escapedName)})}(w(i,r.attributes,c),r.attributes.properties),R=3,B=!1,1):0)||(function(){j=function(t){if(t){var r,n=e.findAncestor(t.parent,function(t){return e.isClassLike(t)?"quit":!(!e.isFunctionLikeDeclaration(t)||r!==t.body)||(r=t,!1)});return n&&n}}(h)?5:1,R=1,B=function(e){if(e){var t=e.parent.kind;switch(A(e)){case 27:return 191===t||157===t||192===t||187===t||204===t||165===t;case 20:return 191===t||157===t||192===t||195===t||177===t;case 22:return 187===t||162===t||149===t;case 130:case 131:return!0;case 24:return 244===t;case 18:return 240===t;case 59:return 237===t||204===t;case 15:return 206===t;case 16:return 216===t;case 115:case 113:case 114:return 154===t}}return!1}(h),g!==h&&e.Debug.assert(!!g,"Expected 'contextToken' to be defined when different from 'previousToken'.");var r=g!==h?g.getStart():a,i=function(t,r,n){var i=t;for(;i&&!e.positionBelongsToNode(i,r,n);)i=i.parent;return i}(h,r,n)||n;f=function(t){switch(t.kind){case 279:case 206:case 270:case 218:return!0;default:return e.isStatement(t)}}(i);var u=69996520|(Y()?0:67220415);if(z=e.Debug.assertEachDefined(c.getSymbolsInScope(i,u),"getSymbolsInScope() should all be defined"),o.includeCompletionsWithInsertText&&279!==i.kind){var l=c.tryGetThisTypeAt(i);if(l)for(var d=0,_=P(l,c);d<_.length;d++){var p=_[d];J[e.getSymbolId(p)]={kind:0},z.push(p)}}o.includeCompletionsForModuleExports&&(n.externalModuleIndicator||!n.commonJsModuleIndicator&&(e.compilerOptionsIndicateEs6Modules(t.getCompilerOptions())||e.programContainsEs6Modules(t)))&&function(r,i,a){var o=i.toLowerCase(),u=e.createMap();e.codefix.forEachExternalModuleToImportFrom(c,n,t.getSourceFiles(),function(t){if(!s||!s.source||e.stripQuotes(t.name)===s.source){var n=c.resolveExternalModuleSymbol(t);if(e.addToSeen(u,e.getSymbolId(n))){n!==t&&e.some(n.declarations,function(e){return!!e.getSourceFile().externalModuleIndicator})&&(r.push(n),J[e.getSymbolId(n)]={kind:3,moduleSymbol:t,isDefaultExport:!1});for(var i=0,l=c.getExportsOfModule(t);i<l.length;i++){var d=l[i];if(c.getMergedSymbol(d.parent)===n&&!e.some(d.declarations,function(t){return e.isExportSpecifier(t)&&(t.propertyName?e.isIdentifierANonContextualKeyword(t.name):!!t.parent.parent.moduleSpecifier)})){var _="default"===d.escapedName;_&&(d=e.getLocalSymbolForExportDefault(d)||d);var f={kind:3,moduleSymbol:t,isDefaultExport:_};(s||ee(y(d,f,a).toLowerCase(),o))&&(r.push(d),J[e.getSymbolId(d)]=f)}}}}})}(z,g&&e.isIdentifier(g)?g.text:"",t.getCompilerOptions().target);!function(t){var r=Y(),i=r||!Z(h)&&e.isPossiblyTypeArgumentPosition(h,n,c);r&&(j=6);e.filterMutate(t,function(t){if(!e.isSourceFile(M)){if(e.isExportAssignment(M.parent))return!0;if(t=e.skipAlias(t,c),e.isInRightSideOfInternalImportEqualsDeclaration(M))return!!(1920&t.flags);if(i){var n=$(t);if(n||r)return n}}return!!(67220415&e.getCombinedLocalAndExportSymbolFlags(t))})}(z)}(),1))}function Y(){return _||!Z(h)&&(e.isPartOfTypeNode(M)||function(t){if(t){var r=t.parent.kind;switch(t.kind){case 57:return 154===r||153===r||151===r||237===r||e.isFunctionLikeKind(r);case 59:return 242===r;case 119:return 212===r}}return!1}(h))}function Z(t){return t&&104===t.kind&&(167===t.parent.kind||e.isTypeOfExpression(t.parent))}function $(t,r){void 0===r&&(r=e.createMap());var n=e.skipAlias(t.exportSymbol||t,c);return!!(67897832&n.flags)||!!(1536&n.flags)&&e.addToSeen(r,e.getSymbolId(n))&&c.getExportsOfModule(n).some(function(e){return $(e,r)})}function ee(e,t){if(0===t.length)return!0;for(var r=0,n=0;n<e.length;n++)if(e.charCodeAt(n)===t.charCodeAt(r)&&++r===t.length)return!0;return!1}function te(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function re(t){return e.isFunctionLikeKind(t)&&157!==t}function ne(e){return e.getStart(n)<=a&&a<=e.getEnd()}}function k(t,r,n,i){var a=y(t,n,r);if(!(void 0===a||1536&t.flags&&e.startsWithQuote(a)||e.isKnownSymbol(t))){var o={name:a,needsConvertPropertyAccess:!1};if(e.isIdentifierText(a,r))return o;switch(i){case 3:return;case 0:return{name:JSON.stringify(a),needsConvertPropertyAccess:!1};case 2:case 1:return 32===a.charCodeAt(0)?void 0:{name:a,needsConvertPropertyAccess:!0};case 5:case 4:return o;default:e.Debug.assertNever(i)}}}t.getCompletionEntriesFromSymbols=g,t.getCompletionEntryDetails=function(r,n,i,o,s,c,u,d,_){var f=r.getTypeChecker(),p=r.getCompilerOptions(),m=s.name,g=e.findPrecedingToken(o,i);if(e.isInString(i,o,g))return t.StringCompletions.getStringLiteralCompletionDetails(m,i,o,g,f,p,c,_);var x=h(r,n,i,o,s);switch(x.type){case"request":var S=x.request;switch(S.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(m);case 2:return e.JsDoc.getJSDocTagCompletionDetails(m);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(m);default:return e.Debug.assertNever(S)}case"symbol":var D=x.symbol,k=x.location,C=function(t,r,n,i,o,s,c,u,l,d,_){var f=t[e.getSymbolId(r)];if(!f||!a(f))return{codeActions:void 0,sourceDisplay:void 0};var p=f.moduleSymbol,m=i.getMergedSymbol(e.skipAlias(r.exportSymbol||r,i)),g=e.codefix.getImportCompletionAction(m,p,c,y(r,f,s.target),o,n,d,l&&e.isIdentifier(l)?l.getStart(c):u,_),h=g.moduleSpecifier,v=g.codeAction;return{sourceDisplay:[e.textPart(h)],codeActions:[v]}}(x.symbolToOriginInfoMap,D,r,f,c,p,i,o,x.previousToken,u,d);return b(D,f,i,k,_,C.codeActions,C.sourceDisplay);case"literal":var E=x.literal;return v(l(E),"string","string"==typeof E?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return T().some(function(e){return e.name===m})?v(m,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(x)}},t.createCompletionDetailsForSymbol=b,t.createCompletionDetails=x,t.getCompletionEntrySymbol=function(e,t,r,n,i){var a=h(e,t,r,n,i);return"symbol"===a.type?a.symbol:void 0},function(e){e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName"}(u||(u={})),function(e){e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None"}(t.CompletionKind||(t.CompletionKind={}));var C=[],T=e.memoize(function(){for(var t=[],r=73;r<=147;r++)t.push({name:e.tokenToString(r),kind:"keyword",kindModifiers:"",sortText:"0"});return t});function E(e){return 133===e}function N(t){switch(t){case 118:case 124:case 126:case 137:case 121:return!0;default:return e.isClassMemberModifier(t)}}function A(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function w(t,r,n){return t.isUnion()?n.getAllPossiblePropertiesOfTypes(t.types.filter(function(t){return!(131068&t.flags||n.isArrayLikeType(t)||e.typeHasCallOrConstructSignatures(t,n)||n.isTypeInvalidDueToUnionDiscriminant(t,r))})):t.getApparentProperties()}function P(t,r){return t.isUnion()?e.Debug.assertEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.assertEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function F(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function I(t){var r=t.left;return e.nodeIsMissing(r)}}(e.Completions||(e.Completions={}))}(d||(d={})),function(e){!function(t){function r(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:"none"}}function n(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?n(t.catchClause):t.tryBlock&&n(t.tryBlock),t.finallyBlock&&n(t.finallyBlock)):e.isFunctionLike(t)?void 0:a(t,n)}function i(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:a(t,i)}function a(t,r){var n=[];return t.forEachChild(function(t){var i=r(t);void 0!==i&&n.push.apply(n,e.toArray(i))}),n}function o(e,t){var r=s(t);return!!r&&r===e}function s(t){return e.findAncestor(t,function(r){switch(r.kind){case 232:if(228===t.kind)return!1;case 225:case 226:case 227:case 224:case 223:return!t.label||function(t,r){return!!e.findAncestor(t.parent,function(t){return e.isLabeledStatement(t)?t.label.escapedText===r:"quit"})}(r,t.label.escapedText);default:return e.isFunctionLike(r)&&"quit"}})}function c(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return!(!r||!e.contains(n,r.kind))&&(t.push(r),!0)}function u(t){var r=[];if(c(r,t.getFirstToken(),89,107,82)&&223===t.kind)for(var n=t.getChildren(),a=n.length-1;a>=0&&!c(r,n[a],107);a--);return e.forEach(i(t.statement),function(e){o(t,e)&&c(r,e.getFirstToken(),73,78)}),r}function l(e){var t=s(e);if(t)switch(t.kind){case 225:case 226:case 227:case 223:case 224:return u(t);case 232:return d(t)}}function d(t){var r=[];return c(r,t.getFirstToken(),99),e.forEach(t.caseBlock.clauses,function(n){c(r,n.getFirstToken(),74,80),e.forEach(i(n),function(e){o(t,e)&&c(r,e.getFirstToken(),73)})}),r}function _(t,r){var n=[];(c(n,t.getFirstToken(),103),t.catchClause&&c(n,t.catchClause.getFirstToken(),75),t.finallyBlock)&&c(n,e.findChildOfKind(t,88,r),88);return n}function f(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||279===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(i){var a=[];return e.forEach(n(i),function(t){a.push(e.findChildOfKind(t,101,r))}),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,function(t){a.push(e.findChildOfKind(t,97,r))}),a}}function p(t,r){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),function(t){a.push(e.findChildOfKind(t,97,r))}),e.forEach(n(i.body),function(t){a.push(e.findChildOfKind(t,101,r))}),a}}function m(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach(function(e){c(n,e,121)}),e.forEachChild(r,function(t){g(t,function(t){e.isAwaitExpression(t)&&c(n,t.getFirstToken(),122)})}),n}}function g(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,function(e){return g(e,r)})}t.getDocumentHighlights=function(t,n,i,a,o){var s=e.getTouchingPropertyName(i,a);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var h=s.parent.parent,y=[h.openingElement,h.closingElement].map(function(e){return r(e.tagName,i)});return[{fileName:i.fileName,highlightSpans:y}]}return function(t,r,n,i,a){var o=e.arrayToSet(a,function(e){return e.fileName}),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(c.entries(),function(t){var r=t[0],i=t[1];if(!o.has(r)){e.Debug.assert(n.redirectTargetsMap.has(r));var s=n.getSourceFile(r),c=e.find(a,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s});r=c.fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}})}}(a,s,t,n,o)||function(t,n){var i=function(t,n){switch(t.kind){case 91:case 83:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,r){for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);c(n,i[0],91);for(var a=i.length-1;a>=0&&!c(n,i[a],83);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o<i.length;o++){if(83===i[o].kind&&o<i.length-1){for(var s=i[o],u=i[o+1],l=!0,d=u.getStart(n)-1;d>=s.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){l=!1;break}if(l){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),u.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 97:return h(t.parent,e.isReturnStatement,p);case 101:return h(t.parent,e.isThrowStatement,f);case 103:case 75:case 88:var i=75===t.kind?t.parent.parent:t.parent;return h(i,e.isTryStatement,_);case 99:return h(t.parent,e.isSwitchStatement,d);case 74:case 80:return h(t.parent.parent.parent,e.isSwitchStatement,d);case 73:case 78:return h(t.parent,e.isBreakOrContinueStatement,l);case 89:case 107:case 82:return h(t.parent,function(t){return e.isIterationStatement(t,!0)},u);case 124:return s(e.isConstructorDeclaration,[124]);case 126:case 137:return s(e.isAccessor,[126,137]);case 122:return h(t.parent,e.isAwaitExpression,m);case 121:return y(m(t));case 117:return y(function(t){var r=e.getContainingFunction(t);if(r){var n=[];return e.forEachChild(r,function(t){g(t,function(t){e.isYieldExpression(t)&&c(n,t.getFirstToken(),117)})}),n}}(t));default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?y((a=t.kind,o=t.parent,e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 245:case 279:case 218:case 271:case 272:return 128&r&&e.isClassDeclaration(t)?t.members.concat([t]):n.statements;case 157:case 156:case 239:return n.parameters.concat(e.isClassLike(n.parent)?n.parent.members:[]);case 240:case 209:var i=n.members;if(28&r){var a=e.find(n.members,e.isConstructorDeclaration);if(a)return i.concat(a.parameters)}else if(128&r)return i.concat([n]);return i;default:e.Debug.assertNever(n,"Invalid container kind.")}}(o,e.modifierToFlag(a)),function(t){return e.findModifier(t,a)}))):void 0}var a,o;function s(r,i){return h(t.parent,r,function(t){return e.mapDefined(t.symbol.declarations,function(t){return r(t)?e.find(t.getChildren(n),function(t){return e.contains(i,t.kind)}):void 0})})}function h(e,t,r){return t(e)?y(r(e,n)):void 0}function y(e){return e&&e.map(function(e){return r(e,n)})}}(t,n);return i&&[{fileName:n.fileName,highlightSpans:i}]}(s,i)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(d||(d={})),function(e){function t(t,n,i){void 0===n&&(n="");var a=e.createMap(),o=e.createGetCanonicalFileName(!!t);function s(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!0,o)}function c(e,t,r,n,i,a,o){return u(e,t,r,n,i,a,!1,o)}function u(t,r,n,o,s,c,u,l){var d=e.getOrUpdate(a,o,e.createMap),_=d.get(r),f=6===l?100:n.target||1;!_&&i&&((p=i.getDocument(o,r))&&(e.Debug.assert(u),_={sourceFile:p,languageServiceRefCount:0},d.set(r,_)));if(_)_.sourceFile.version!==c&&(_.sourceFile=e.updateLanguageServiceSourceFile(_.sourceFile,s,c,s.getChangeRange(_.sourceFile.scriptSnapshot)),i&&i.setDocument(o,r,_.sourceFile)),u&&_.languageServiceRefCount++;else{var p=e.createLanguageServiceSourceFile(t,s,f,c,!1,l);i&&i.setDocument(o,r,p),_={sourceFile:p,languageServiceRefCount:1},d.set(r,_)}return e.Debug.assert(0!==_.languageServiceRefCount),_.sourceFile}function l(t,r){var n=e.Debug.assertDefined(a.get(r)),i=n.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&n.delete(t)}return{acquireDocument:function(t,i,a,c,u){return s(t,e.toPath(t,n,o),i,r(i),a,c,u)},acquireDocumentWithKey:s,updateDocument:function(t,i,a,s,u){return c(t,e.toPath(t,n,o),i,r(i),a,s,u)},updateDocumentWithKey:c,releaseDocument:function(t,i){return l(e.toPath(t,n,o),r(i))},releaseDocumentWithKey:l,getLanguageServiceRefCounts:function(t){return e.arrayFrom(a.entries(),function(e){var r=e[0],n=e[1].get(t);return[r,n&&n.languageServiceRefCount]})},reportStats:function(){var t=e.arrayFrom(a.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=a.get(e),r=[];return t.forEach(function(e,t){r.push({name:t,refCount:e.languageServiceRefCount})}),r.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:r}});return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:r}}function r(t){return e.sourceFileAffectingCompilerOptions.map(function(r){return e.getCompilerOptionValue(t,r)}).join("|")}e.createDocumentRegistry=function(e,r){return t(e,r)},e.createDocumentRegistryInternal=t}(d||(d={})),function(e){!function(t){function r(t,r){return e.forEach(279===t.kind?t.statements:t.body.statements,function(t){return r(t)||c(t)&&e.forEach(t.body&&t.body.statements,r)})}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i<a.length;i++){var o=a[i];n(e.importFromModuleSpecifier(o),o)}else r(t,function(t){switch(t.kind){case 255:case 249:(r=t).moduleSpecifier&&e.isStringLiteral(r.moduleSpecifier)&&n(r,r.moduleSpecifier);break;case 248:var r;u(r=t)&&n(r,r.moduleReference.expression)}})}function i(t,r,n){var i=t.parent;if(i){var a=n.getMergedSymbol(i);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:r}:void 0}}function a(e,t){return t.getMergedSymbol(o(e).symbol)}function o(t){if(191===t.kind)return t.getSourceFile();var r=t.parent;return 279===r.kind?r:(e.Debug.assert(245===r.kind),e.cast(r.parent,c))}function c(e){return 244===e.kind&&10===e.name.kind}function u(e){return 259===e.moduleReference.kind&&10===e.moduleReference.expression.kind}t.createImportTracker=function(t,i,c,l){var d=function(t,r,i){for(var a=e.createMap(),o=0,s=t;o<s.length;o++){var c=s[o];i&&i.throwIfCancellationRequested(),n(c,function(t,n){var i=r.getSymbolAtLocation(n);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(t)}})}return a}(t,c,l);return function(n,_,f){var p=function(t,n,i,s,c,u){var l=s.exportingModuleSymbol,d=s.exportKind,_=e.nodeSeenTracker(),f=e.nodeSeenTracker(),p=[],m=!!l.globalExports,g=m?void 0:[];return function t(r){var n=v(r);if(n)for(var i=0,s=n;i<s.length;i++){var l=s[i];if(_(l))switch(u&&u.throwIfCancellationRequested(),l.kind){case 191:if(!m){var f=l.parent;if(2===d&&237===f.kind){var g=f.name;if(72===g.kind){p.push(g);break}}y(l.getSourceFile())}break;case 72:break;case 248:h(l,l.name,e.hasModifier(l,1),!1);break;case 249:p.push(l);var b=l.importClause&&l.importClause.namedBindings;b&&251===b.kind?h(l,b.name,!1,!0):!m&&e.isDefaultImport(l)&&y(o(l));break;case 255:l.exportClause?p.push(l):t(a(l,c));break;case 183:p.push(l);break;default:e.Debug.assertNever(l,"Unexpected import kind: "+e.Debug.showSyntaxKind(l))}}}(l),{directImports:p,indirectUsers:function(){if(m)return t;for(var r=0,i=l.declarations;r<i.length;r++){var a=i[r];e.isExternalModuleAugmentation(a)&&n.has(a.getSourceFile().fileName)&&y(a)}return g.map(e.getSourceFileOfNode)}()};function h(t,n,i,a){if(2===d)a||p.push(t);else if(!m){var s=o(t);e.Debug.assert(279===s.kind||244===s.kind),i||function(t,n,i){var a=i.getSymbolAtLocation(n);return!!r(t,function(t){if(e.isExportDeclaration(t)){var r=t.exportClause,n=t.moduleSpecifier;return!n&&r&&r.elements.some(function(e){return i.getExportSpecifierLocalTargetSymbol(e)===a})}})}(s,n,c)?function t(r){if(y(r)){var n=c.getMergedSymbol(r.symbol);e.Debug.assert(!!(1536&n.flags));var i=v(n);if(i)for(var a=0,s=i;a<s.length;a++){var u=s[a];t(o(u))}}}(s):y(s)}}function y(t){e.Debug.assert(!m);var r=f(t);return r&&g.push(t),r}function v(t){return i.get(e.getSymbolId(t).toString())}}(t,i,d,_,c,l),m=p.directImports,g=p.indirectUsers;return s({indirectUsers:g},function(t,r,n,i,a){var o=[],s=[];function c(e,t){o.push([e,t])}if(t)for(var l=0,d=t;l<d.length;l++){var _=d[l];f(_)}return{importSearches:o,singleReferences:s};function f(t){if(248!==t.kind)if(72!==t.kind)if(183!==t.kind){if(10===t.moduleSpecifier.kind)if(255!==t.kind){var o=t.importClause||{name:void 0,namedBindings:void 0},l=o.name,d=o.namedBindings;if(d)switch(d.kind){case 251:p(d.name);break;case 252:0!==n&&1!==n||m(d);break;default:e.Debug.assertNever(d)}if(l&&(1===n||2===n)&&(!a||l.escapedText===e.symbolEscapedNameNoDefault(r))){var _=i.getSymbolAtLocation(l);c(l,_)}}else m(t.exportClause)}else t.qualifier?e.isIdentifier(t.qualifier)&&t.qualifier.escapedText===e.symbolName(r)&&s.push(t.qualifier):2===n&&s.push(t.argument.literal);else p(t);else u(t)&&p(t.name)}function p(e){2!==n||a&&!g(e.escapedText)||c(e,i.getSymbolAtLocation(e))}function m(e){if(e)for(var t=0,n=e.elements;t<n.length;t++){var o=n[t],u=o.name,l=o.propertyName;if(g((l||u).escapedText))if(l)s.push(l),a&&u.escapedText!==r.escapedName||c(u,i.getSymbolAtLocation(u));else{var d=257===o.kind&&o.propertyName?i.getExportSpecifierLocalTargetSymbol(o):i.getSymbolAtLocation(u);c(u,d)}}}function g(e){return e===r.escapedName||0!==n&&"default"===e}}(m,n,_.exportKind,c,f))}},function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals"}(t.ExportKind||(t.ExportKind={})),function(e){e[e.Import=0]="Import",e[e.Export=1]="Export"}(t.ImportExport||(t.ImportExport={})),t.findModuleReferences=function(e,t,r){for(var i=[],a=e.getTypeChecker(),o=0,s=t;o<s.length;o++){var c=s[o],u=r.valueDeclaration;if(279===u.kind){for(var l=0,d=c.referencedFiles;l<d.length;l++){var _=d[l];e.getSourceFileFromReference(c,_)===u&&i.push({kind:"reference",referencingFile:c,ref:_})}for(var f=0,p=c.typeReferenceDirectives;f<p.length;f++){_=p[f];var m=e.getResolvedTypeReferenceDirectives().get(_.fileName);void 0!==m&&m.resolvedFileName===u.fileName&&i.push({kind:"reference",referencingFile:c,ref:_})}}n(c,function(e,t){a.getSymbolAtLocation(t)===r&&i.push({kind:"import",literal:t})})}return i},t.getImportOrExportSymbol=function(t,r,n,a){return a?o():o()||function(){if(function(t){var r=t.parent;switch(r.kind){case 248:return r.name===t&&u(r);case 253:return!r.propertyName;case 250:case 251:return e.Debug.assert(r.name===t),!0;default:return!1}}(t)){var i=n.getImmediateAliasedSymbol(r);if(i){"export="===(i=function(t,r){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(e.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return r.getExportSpecifierLocalTargetSymbol(a)}return t}(i,n)).escapedName&&(i=function(t,r){if(2097152&t.flags)return e.Debug.assertDefined(r.getImmediateAliasedSymbol(t));var n=t.valueDeclaration;return e.isExportAssignment(n)?e.Debug.assertDefined(n.expression.symbol):e.isBinaryExpression(n)?e.Debug.assertDefined(n.right.symbol):e.isSourceFile(n)?e.Debug.assertDefined(n.symbol):e.Debug.fail()}(i,n));var a=e.symbolEscapedNameNoDefault(i);return void 0===a||"default"===a||a===r.escapedName?{kind:0,symbol:i}:void 0}}}();function o(){var i=t.parent,o=i.parent;if(r.exportSymbol)return 189===i.kind?r.declarations.some(function(e){return e===i})&&e.isBinaryExpression(o)?d(o,!1):void 0:s(r.exportSymbol,c(i));var u=function(e,t){if(237===e.kind){var r=e;return r.name!==t?void 0:274===r.parent.kind?void 0:219===r.parent.parent.kind?r.parent.parent:void 0}return e}(i,t);if(u&&e.hasModifier(u,1)){if(e.isImportEqualsDeclaration(u)&&u.moduleReference===t){if(a)return;return{kind:0,symbol:n.getSymbolAtLocation(u.name)}}return s(r,c(u))}if(e.isExportAssignment(i))return l(i);if(e.isExportAssignment(o))return l(o);if(e.isBinaryExpression(i))return d(i,!0);if(e.isBinaryExpression(o))return d(o,!0);if(e.isJSDocTypedefTag(i))return s(r,0);function l(t){var n=e.Debug.assertDefined(t.symbol.parent,"Expected export symbol to have a parent"),i=t.isExportEquals?2:1;return{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:n,exportKind:i}}}function d(t,i){var a;switch(e.getAssignmentDeclarationKind(t)){case 1:a=0;break;case 2:a=2;break;default:return}var o=i?n.getSymbolAtLocation(e.cast(t.left,e.isPropertyAccessExpression).name):r;return!o||1536&n.getMergedSymbol(o.parent).flags||e.Debug.fail("Special property assignment kind does not have a module as its parent. Assignment is "+e.Debug.showSymbol(o)+", parent is "+e.Debug.showSymbol(o.parent)),o&&s(o,a)}}function s(e,t){var r=i(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function c(t){return e.hasModifier(t,512)?1:0}},t.getExportInfo=i}(e.FindAllReferences||(e.FindAllReferences={}))}(d||(d={})),function(e){!function(t){function r(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e}}function n(r,n,a,o,s,c,u){return void 0===c&&(c={}),void 0===u&&(u=e.arrayToSet(o,function(e){return e.fileName})),i(t.Core.getReferencedSymbolsForNode(r,n,a,o,s,c,u))}function i(t){return t&&e.flatMap(t,function(e){return e.references})}function a(r,n,i){var a=t.Core.getIntersectingMeaningFromDeclarations(i,r),o=r.declarations&&e.firstOrUndefined(r.declarations)||i,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,r,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function o(t){var r=c(t),n=r.textSpan,i=r.fileName;if(0===t.kind)return{textSpan:n,fileName:i,isWriteAccess:!1,isDefinition:!1};var a=t.kind,o=t.node;return{textSpan:n,fileName:i,isWriteAccess:l(o),isDefinition:80===o.kind||!!e.getDeclarationFromName(o)||e.isLiteralComputedPropertyDeclarationName(o),isInString:2===a||void 0}}function c(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile();return{textSpan:u(e.node,t),fileName:t.fileName}}function u(t,r){var n=t.getStart(r),i=t.getEnd();return 10===t.kind&&(n+=1,i-=1),e.createTextSpanFromBounds(n,i)}function l(t){var r=e.getDeclarationFromName(t);return!!r&&function(t){if(4194304&t.flags)return!0;switch(t.kind){case 204:case 186:case 240:case 209:case 80:case 243:case 278:case 257:case 250:case 248:case 253:case 241:case 297:case 304:case 267:case 244:case 247:case 251:case 151:case 276:case 242:case 150:return!0;case 275:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 239:case 196:case 157:case 156:case 158:case 159:return!!t.body;case 237:case 154:return!!t.initializer||e.isCatchClause(t.parent);case 155:case 153:case 305:case 299:return!1;default:return e.Debug.failBadSyntaxKind(t)}}(r)||80===t.kind||e.isWriteAccess(t)}!function(e){e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String"}(t.DefinitionKind||(t.DefinitionKind={})),function(e){e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"}(t.EntryKind||(t.EntryKind={})),t.nodeEntry=r,t.findReferencedSymbols=function(r,n,i,s,c){var l=e.getTouchingPropertyName(s,c),d=t.Core.getReferencedSymbolsForNode(c,l,r,i,n),_=r.getTypeChecker();return d&&d.length?e.mapDefined(d,function(t){var r=t.definition,i=t.references;return r&&{definition:_.runWithCancellationToken(n,function(t){return function(t,r,n){var i=function(){switch(t.type){case 0:var i=t.symbol,o=a(i,r,n),s=o.displayParts,c=o.kind,u=s.map(function(e){return e.text}).join("");return{node:i.declarations?e.getNameOfDeclaration(e.first(i.declarations))||e.first(i.declarations):n,name:u,kind:c,displayParts:s};case 1:var l=t.node;return{node:l,name:l.text,kind:"label",displayParts:[e.displayPart(l.text,e.SymbolDisplayPartKind.text)]};case 2:var d=t.node,_=e.tokenToString(d.kind);return{node:d,name:_,kind:"keyword",displayParts:[{text:_,kind:"keyword"}]};case 3:var f=t.node,i=r.getSymbolAtLocation(f),p=i&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,i,f.getSourceFile(),e.getContainerNode(f),f).displayParts||[e.textPart("this")];return{node:f,name:"this",kind:"var",displayParts:p};case 4:var m=t.node;return{node:m,name:m.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(m),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}}(),o=i.node,s=i.name,c=i.kind,l=i.displayParts,d=o.getSourceFile();return{containerKind:"",containerName:"",fileName:d.fileName,kind:c,name:s,textSpan:u(e.isComputedPropertyName(o)?o.expression:o,d),displayParts:l}}(r,t,l)}),references:i.map(o)}}):void 0},t.getImplementationsAtPosition=function(i,o,c,l,d){var _=function(i,a,o,s,c){if(279!==s.kind){var u=i.getTypeChecker();if(276===s.parent.kind){var l=[];return t.Core.getReferenceEntriesForShorthandPropertyAssignment(s,u,function(e){return l.push(r(e))}),l}if(98===s.kind||e.isSuperProperty(s.parent)){var d=u.getSymbolAtLocation(s);return d.valueDeclaration&&[r(d.valueDeclaration)]}return n(c,s,i,o,a,{implementations:!0})}}(i,o,c,e.getTouchingPropertyName(l,d),d),f=i.getTypeChecker();return e.map(_,function(t){return function(t,r){if(0!==t.kind){var n=t.node,i=n.getSourceFile();return s({textSpan:u(n,i),fileName:i.fileName},function(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?a(n,r,t):188===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:209===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}}(n,r))}var o=t.textSpan,c=t.fileName;return{textSpan:o,fileName:c,kind:"",displayParts:[]}}(t,f)})},t.findReferenceOrRenameEntries=function(r,n,a,o,s,c,u){return e.map(i(t.Core.getReferencedSymbolsForNode(s,o,r,a,n,c)),function(e){return u(e,o,r.getTypeChecker())})},t.getReferenceEntriesForNode=n,t.toRenameLocation=function(t,r,n){return s({},c(t),function(t,r,n){if(0!==t.kind&&e.isIdentifier(r)){var i=t.node,a=t.kind,o=r.text,s=e.isShorthandPropertyAssignment(i.parent);if(s||e.isObjectBindingElementWithoutPropertyName(i.parent)){var c={prefixText:o+": "},u={suffixText:": "+o};return 3===a?c:4===a?u:s?u:c}if(e.isImportSpecifier(t.node.parent)&&!t.node.parent.propertyName){var l=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(l.declarations,t.node.parent)?{prefixText:o+" as "}:e.emptyOptions}if(e.isExportSpecifier(t.node.parent)&&!t.node.parent.propertyName)return r===t.node?{prefixText:o+" as "}:{suffixText:" as "+o}}return e.emptyOptions}(t,r,n))},t.toReferenceEntry=o,t.toHighlightSpan=function(e){if(0===e.kind)return{fileName:e.fileName,span:{textSpan:e.textSpan,kind:"reference"}};var t=e.node,r=e.kind,n=t.getSourceFile(),i=l(t),a={textSpan:u(t,n),kind:i?"writtenReference":"reference",isInString:2===r||void 0};return{fileName:n.fileName,span:a}}}(e.FindAllReferences||(e.FindAllReferences={}))}(d||(d={})),function(e){!function(t){!function(r){function n(r,n,i,a,o){e.Debug.assert(!!n.valueDeclaration);for(var s=e.mapDefined(t.findModuleReferences(r,a,n),function(r){if("import"===r.kind){var n=r.literal.parent;if(e.isLiteralTypeNode(n)){var a=e.cast(n.parent,e.isImportTypeNode);if(i&&!a.qualifier)return}return t.nodeEntry(r.literal)}return{kind:0,fileName:r.referencingFile.fileName,textSpan:e.createTextSpanFromRange(r.ref)}}),c=0,u=n.declarations;c<u.length;c++){switch((f=u[c]).kind){case 279:break;case 244:o.has(f.getSourceFile().fileName)&&s.push(t.nodeEntry(f.name));break;default:e.Debug.fail("Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var l=n.exports.get("export=");if(l)for(var d=0,_=l.declarations;d<_.length;d++){var f,p=(f=_[d]).getSourceFile();if(o.has(p.fileName)){var m=e.isBinaryExpression(f)&&e.isPropertyAccessExpression(f.left)?f.left.expression:e.isExportAssignment(f)?e.Debug.assertDefined(e.findChildOfKind(f,85,p)):e.getNameOfDeclaration(f)||f;s.push(t.nodeEntry(m))}}return s.length?[{definition:{type:0,symbol:n},references:s}]:e.emptyArray}var i;r.getReferencedSymbolsForNode=function(r,i,s,c,l,_,p){if(void 0===_&&(_={}),void 0===p&&(p=e.arrayToSet(c,function(e){return e.fileName})),e.isSourceFile(i)){var g=e.GoToDefinition.getReferenceAtPosition(i,r,s),h=g&&s.getTypeChecker().getMergedSymbol(g.file.symbol);return h&&n(s,h,!1,c,p)}if(!_.implementations){var S=function(r,n,i){if(e.isTypeKeyword(r.kind))return function(r,n,i){var a=e.flatMap(r,function(r){return i.throwIfCancellationRequested(),e.mapDefined(d(r,e.tokenToString(n),r),function(e){return e.kind===n?t.nodeEntry(e):void 0})});return a.length?[{definition:{type:2,node:a[0].node},references:a}]:void 0}(n,r.kind,i);if(e.isJumpStatementTarget(r)){var a=e.getTargetLabel(r.parent,r.text);return a&&f(a.parent,a)}return e.isLabelOfLabeledStatement(r)?f(r.parent,r):e.isThis(r)?function(r,n,i){var a=e.getThisContainer(r,!1),o=32;switch(a.kind){case 156:case 155:if(e.isObjectLiteralMethod(a))break;case 154:case 153:case 157:case 158:case 159:o&=e.getModifierFlags(a),a=a.parent;break;case 279:if(e.isExternalModule(a))return;case 239:case 196:break;default:return}var s=e.flatMap(279===a.kind?n:[a.getSourceFile()],function(t){return i.throwIfCancellationRequested(),d(t,"this",e.isSourceFile(a)?t:a).filter(function(t){if(!e.isThis(t))return!1;var r=e.getThisContainer(t,!1);switch(a.kind){case 196:case 239:return a.symbol===r.symbol;case 156:case 155:return e.isObjectLiteralMethod(a)&&a.symbol===r.symbol;case 209:case 240:return r.parent&&a.symbol===r.parent.symbol&&(32&e.getModifierFlags(r))===o;case 279:return 279===r.kind&&!e.isExternalModule(r)}})}).map(function(e){return t.nodeEntry(e)});return[{definition:{type:3,node:e.firstDefined(s,function(t){return e.isParameter(t.node.parent)?t.node:void 0})||r},references:s}]}(r,n,i):98===r.kind?function(r){var n=e.getSuperContainer(r,!1);if(n){var i=32;switch(n.kind){case 154:case 153:case 156:case 155:case 157:case 158:case 159:i&=e.getModifierFlags(n),n=n.parent;break;default:return}var a=n.getSourceFile(),o=e.mapDefined(d(a,"super",n),function(r){if(98===r.kind){var a=e.getSuperContainer(r,!1);return a&&(32&e.getModifierFlags(a))===i&&a.parent.symbol===n.symbol?t.nodeEntry(r):void 0}});return[{definition:{type:0,symbol:n.symbol},references:o}]}}(r):void 0}(i,c,l);if(S)return S}var k=s.getTypeChecker(),C=k.getSymbolAtLocation(i);if(!C)return!_.implementations&&e.isStringLiteral(i)?function(r,n,i){var a=e.flatMap(n,function(n){return i.throwIfCancellationRequested(),e.mapDefined(d(n,r.text),function(n){return e.isStringLiteral(n)&&n.text===r.text?t.nodeEntry(n,2):void 0})});return[{definition:{type:4,node:r},references:a}]}(i,c,l):void 0;if("export="===C.escapedName)return n(s,C.parent,!1,c,p);var T=e.emptyArray,E=function(t){return 1536&t.flags?e.find(t.declarations,e.isSourceFile):void 0}(C),N=i;if(E){var A=C.exports.get("export=");if(T=n(s,C,!!A,c,p),!A||!p.has(E.fileName))return T;C=e.skipAlias(A,k),N=void 0}return e.concatenate(T,function(t,r,n,i,s,c,l){var d=r&&function(t,r,n,i){var a=r.parent;return e.isExportSpecifier(a)&&!i?v(r,t,a,n):e.firstDefined(t.declarations,function(i){return i.parent||e.Debug.fail("Unexpected symbol at "+e.Debug.showSyntaxKind(r)+": "+e.Debug.showSymbol(t)),e.isTypeLiteralNode(i.parent)&&e.isUnionTypeNode(i.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(i.parent.parent),t.name):void 0})}(t,r,s,!!l.isForRename)||t,_=r?D(r,d):7,f=[],p=new a(n,i,r?function(t){switch(t.kind){case 124:return 1;case 72:if(e.isClassLike(t.parent))return e.Debug.assert(t.parent.name===t),2;default:return 0}}(r):0,s,c,_,l,f),g=l.isForRename?e.find(d.declarations,e.isExportSpecifier):void 0;if(g)y(g.name,d,g,p.createSearch(r,t,void 0),p,!0,!0);else if(r&&80===r.kind)b(r,d,p),o(r,d,{exportingModuleSymbol:e.Debug.assertDefined(d.parent,"Expected export symbol to have a parent"),exportKind:1},p);else{var h=p.createSearch(r,d,void 0,{allSearchSymbols:r?x(d,r,s,!!l.isForRename,!!l.implementations):[d]}),S=function(t){var r=t.declarations,n=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(196===a.kind||209===a.kind))return a;if(r){if(8196&n){var o=e.find(r,function(t){return e.hasModifier(t,8)});return o?e.getAncestor(o,240):void 0}if(!r.some(e.isObjectBindingElementWithoutPropertyName)){var s,c=i&&!(262144&t.flags);if(!c||e.isExternalModuleSymbol(i)&&!i.globalExports){for(var u=0,l=r;u<l.length;u++){var d=l[u],_=e.getContainerNode(d);if(s&&s!==_)return;if(!_||279===_.kind&&!e.isExternalOrCommonJsModule(_))return;s=_}return c?s.getSourceFile():s}}}}(d);if(S)m(S,S.getSourceFile(),h,p,!(e.isSourceFile(S)&&!e.contains(n,S)));else for(var k=0,C=p.sourceFiles;k<C.length;k++){var T=C[k];p.cancellationToken.throwIfCancellationRequested(),u(T,h,p)}}return f}(C,N,c,p,k,l,_))},function(e){e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"}(i||(i={}));var a=function(){function r(t,r,n,i,a,o,s,c){this.sourceFiles=t,this.sourceFilesSet=r,this.specialSearchKind=n,this.checker=i,this.cancellationToken=a,this.searchMeaning=o,this.options=s,this.result=c,this.inheritsFromCache=e.createMap(),this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return r.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},r.prototype.getImportSearches=function(e,r){return this.importTracker||(this.importTracker=t.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,r,!!this.options.isForRename)},r.prototype.createSearch=function(t,r,n,i){void 0===i&&(i={});var a=i.text,o=void 0===a?e.stripQuotes(e.unescapeLeadingUnderscores((e.getLocalSymbolForExportDefault(r)||r).escapedName)):a,s=i.allSearchSymbols,c=void 0===s?[r]:s;return{symbol:r,comingFrom:n,text:o,escapedText:e.escapeLeadingUnderscores(o),parents:this.options.implementations&&t?function(t,r,n){var i=e.isRightSideOfPropertyAccess(t)?t.parent:void 0,a=i&&n.getTypeAtLocation(i.expression),o=e.mapDefined(a&&(a.isUnionOrIntersection()?a.types:a.symbol===r.parent?void 0:[a]),function(e){return e.symbol&&96&e.symbol.flags?e.symbol:void 0});return 0===o.length?void 0:o}(t,r,this.checker):void 0,allSearchSymbols:c,includes:function(t){return e.contains(c,t)}}},r.prototype.referenceAdder=function(r){var n=e.getSymbolId(r),i=this.symbolIdToReferences[n];return i||(i=this.symbolIdToReferences[n]=[],this.result.push({definition:{type:0,symbol:r},references:i})),function(e,r){return i.push(t.nodeEntry(e,r))}},r.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})},r.prototype.markSearchedSymbols=function(t,r){for(var n=e.getNodeId(t),i=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=e.createMap()),a=!1,o=0,s=r;o<s.length;o++){var c=s[o];a=e.addToSeen(i,e.getSymbolId(c))||a}return a},r}();function o(e,t,r,n){var i=n.getImportSearches(t,r),a=i.importSearches,o=i.singleReferences,c=i.indirectUsers;if(o.length)for(var l=n.referenceAdder(t),d=0,_=o;d<_.length;d++){var f=_[d];s(f,n)&&l(f)}for(var m=0,g=a;m<g.length;m++){var h=g[m],y=h[0],v=h[1];p(y.getSourceFile(),n.createSearch(y,v,1),n)}if(c.length){var b=void 0;switch(r.exportKind){case 0:b=n.createSearch(e,t,1);break;case 1:b=n.options.isForRename?void 0:n.createSearch(e,t,1,{text:"default"})}if(b)for(var x=0,S=c;x<S.length;x++){u(S[x],b,n)}}}function s(t,r){return!!g(t,r)&&(!r.options.isForRename||!!e.isIdentifier(t)&&!(e.isImportOrExportSpecifier(t.parent)&&"default"===t.escapedText))}function c(e,t){for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();p(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function u(t,r,n){void 0!==e.getNameTable(t).get(r.escapedText)&&p(t,r,n)}function l(t,r,n,i){var a=e.isParameterPropertyDeclaration(t.parent)?e.first(r.getSymbolsOfParameterPropertyDeclaration(t.parent,t.text)):r.getSymbolAtLocation(t);if(a)for(var o=0,s=d(n,a.name);o<s.length;o++){var c=s[o];if(e.isIdentifier(c)&&c!==t&&c.escapedText===t.escapedText){var u=r.getSymbolAtLocation(c);if(u===a||r.getShorthandAssignmentValueSymbol(c.parent)===a||e.isExportSpecifier(c.parent)&&v(c,u,c.parent,r)===a){var l=i(c);if(l)return l}}}}function d(t,r,n){return void 0===n&&(n=t),_(t,r,n).map(function(r){return e.getTouchingPropertyName(t,r)})}function _(t,r,n){void 0===n&&(n=t);var i=[];if(!r||!r.length)return i;for(var a=t.text,o=a.length,s=r.length,c=a.indexOf(r,n.pos);c>=0&&!(c>n.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),6)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),6)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function f(r,n){var i=r.getSourceFile(),a=n.text,o=e.mapDefined(d(i,a,r),function(r){return r===n||e.isJumpStatementTarget(r)&&e.getTargetLabel(r,a)===n?t.nodeEntry(r):void 0});return[{definition:{type:1,node:n},references:o}]}function p(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),m(e,e,t,r,n)}function m(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=_(t,r.text,e);a<o.length;a++){h(t,o[a],r,n,i)}}function g(t,r){return!!(e.getMeaningFromLocation(t)&r.searchMeaning)}function h(r,n,i,a,s){var u=e.getTouchingPropertyName(r,n);if(function(t,r){switch(t.kind){case 72:return t.text.length===r.length;case 10:var n=t;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t)||e.isCallExpression(t.parent)&&e.isBindableObjectDefinePropertyCall(t.parent)&&t.parent.arguments[1]===t)&&n.text.length===r.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;case 80:return"default".length===r.length;default:return!1}}(u,i.text)){if(g(u,a)){var l=a.checker.getSymbolAtLocation(u);if(l){var d=u.parent;if(!e.isImportSpecifier(d)||d.propertyName!==u){if(e.isExportSpecifier(d))return e.Debug.assert(72===u.kind),void y(u,l,d,i,a,s);var _=function(t,r,n,i){var a=i.checker;return S(r,n,a,!1,function(r,n,i,a){return t.includes(i||n||r)?{symbol:!n||6&e.getCheckFlags(r)?r:n,kind:a}:void 0},function(r){return!(t.parents&&!t.parents.some(function(t){return function t(r,n,i,a){if(r===n)return!0;var o=e.getSymbolId(r)+","+e.getSymbolId(n);var s=i.get(o);if(void 0!==s)return s;i.set(o,!1);var c=r.declarations.some(function(r){return e.getAllSuperTypeNodes(r).some(function(e){var r=a.getTypeAtLocation(e);return!!r&&!!r.symbol&&t(r.symbol,n,i,a)})});i.set(o,c);return c}(r.parent,t,i.inheritsFromCache,a)}))})}(i,l,u,a);if(_){switch(a.specialSearchKind){case 0:s&&b(u,_,a);break;case 1:!function(t,r,n,i){e.isNewExpressionTarget(t)&&b(t,n.symbol,i);var a=function(){return i.referenceAdder(n.symbol)};if(e.isClassLike(t.parent))e.Debug.assert(80===t.kind||t.parent.name===t),function(t,r,n){for(var i=0,a=t.members.get("__constructor").declarations;i<a.length;i++){var o=a[i],s=e.findChildOfKind(o,124,r);e.Debug.assert(157===o.kind&&!!s),n(s)}t.exports.forEach(function(t){var r=t.valueDeclaration;if(r&&156===r.kind){var i=r.body;i&&C(i,100,function(t){e.isNewExpressionTarget(t)&&n(t)})}})}(n.symbol,r,a());else{var o=(s=t,e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(s).parent));o&&function(t,r){var n=t.symbol.members.get("__constructor");if(!n)return;for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(157===o.kind);var s=o.body;s&&C(s,98,function(t){e.isCallExpressionTarget(t)&&r(t)})}}(o,a())}var s}(u,r,i,a);break;case 2:!function(t,r,n){b(t,r.symbol,n);var i=t.parent;if(n.options.isForRename||!e.isClassLike(i))return;e.Debug.assert(i.name===t);for(var a=n.referenceAdder(r.symbol),o=0,s=i.members;o<s.length;o++){var c=s[o];e.isMethodOrAccessor(c)&&e.hasModifier(c,32)&&(c.body&&c.body.forEachChild(function t(r){100===r.kind?a(r):e.isFunctionLike(r)||e.isClassLike(r)||r.forEachChild(t)}))}}(u,i,a);break;default:e.Debug.assertNever(a.specialSearchKind)}!function(e,r,n,i){var a=t.getImportOrExportSymbol(e,r,i.checker,1===n.comingFrom);if(!a)return;var s=a.symbol;0===a.kind?i.options.isForRename||c(s,i):o(e,s,a.exportInfo,i)}(u,l,i,a)}else!function(t,r,n){var i=t.flags,a=t.valueDeclaration,o=n.checker.getShorthandAssignmentValueSymbol(a),s=a&&e.getNameOfDeclaration(a);33554432&i||!s||!r.includes(o)||b(s,o,n)}(l,i,a)}}}}else!a.options.implementations&&(a.options.findInStrings&&e.isInString(r,n)||a.options.findInComments&&e.isInNonReferenceComment(r,n))&&a.addStringOrCommentReference(r.fileName,e.createTextSpan(n,i.text.length))}function y(r,n,i,a,s,u,l){var d=i.parent,_=i.propertyName,f=i.name,p=d.parent,m=v(r,n,i,s.checker);if(l||a.includes(m)){if(_?r===_?(p.moduleSpecifier||S(),u&&!s.options.isForRename&&s.markSeenReExportRHS(f)&&b(f,e.Debug.assertDefined(i.symbol),s)):s.markSeenReExportRHS(r)&&S():s.options.isForRename&&"default"===f.escapedText||S(),!s.options.isForRename||l){var g=80===r.originalKeywordKind?1:0,h=e.Debug.assertDefined(i.symbol),y=e.Debug.assertDefined(t.getExportInfo(h,g,s.checker));o(r,h,y,s)}if(1!==a.comingFrom&&p.moduleSpecifier&&!_&&!s.options.isForRename){var x=s.checker.getExportSpecifierLocalTargetSymbol(i);x&&c(x,s)}}function S(){u&&b(r,m,s)}}function v(t,r,n,i){return function(t,r){var n=r.parent,i=r.propertyName,a=r.name;return e.Debug.assert(i===t||a===t),i?i===t:!n.parent.moduleSpecifier}(t,n)&&i.getExportSpecifierLocalTargetSymbol(n)||r}function b(t,r,n){var i="kind"in r?r:{kind:void 0,symbol:r},a=i.kind,o=i.symbol,s=n.referenceAdder(o);n.options.implementations?function(t,r,n){if(e.isDeclarationName(t)&&(i=t.parent,4194304&i.flags||(e.isVariableLike(i)?e.hasInitializer(i):e.isFunctionLikeDeclaration(i)?i.body:e.isClassLike(i)||e.isModuleOrEnumDeclaration(i))))return void r(t);var i;if(72!==t.kind)return;276===t.parent.kind&&k(t,n.checker,r);var a=function t(r){return e.isIdentifier(r)||e.isPropertyAccessExpression(r)?t(r.parent):e.isExpressionWithTypeArguments(r)?e.tryCast(r.parent.parent,e.isClassLike):void 0}(t);if(a)return void r(a);var o=e.findAncestor(t,function(t){return!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)}),s=o.parent;if(e.hasType(s)&&s.type===o&&n.markSeenContainingTypeReference(s))if(e.hasInitializer(s))u(s.initializer);else if(e.isFunctionLike(s)&&s.body){var c=s.body;218===c.kind?e.forEachReturnStatement(c,function(e){e.expression&&u(e.expression)}):u(c)}else e.isAssertionExpression(s)&&u(s.expression);function u(e){(function e(t){switch(t.kind){case 195:return e(t.expression);case 197:case 196:case 188:case 209:case 187:return!0;default:return!1}})(e)&&r(e)}}(t,s,n):s(t,a)}function x(e,t,r,n,i){var a=[];return S(e,t,r,n,function(e,t,r){a.push(r||t||e)},function(){return!i}),a}function S(t,r,n,i,a,o){var s=e.getContainingObjectLiteralElement(r);if(s){var c=n.getShorthandAssignmentValueSymbol(r.parent);if(c&&i)return a(c,void 0,void 0,3);var u=n.getContextualType(s.parent),l=u&&e.firstDefined(e.getPropertySymbolsFromContextualType(s,n,u,!0),function(e){return h(e,4)});if(l)return l;var d=function(t,r){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)?r.getPropertySymbolOfDestructuringAssignment(t):void 0}(r,n),_=d&&a(d,void 0,void 0,4);if(_)return _;var f=c&&a(c,void 0,void 0,3);if(f)return f}var p=h(t);if(p)return p;if(t.valueDeclaration&&e.isParameterPropertyDeclaration(t.valueDeclaration)){var m=n.getSymbolsOfParameterPropertyDeclaration(e.cast(t.valueDeclaration,e.isParameter),t.name);return e.Debug.assert(2===m.length&&!!(1&m[0].flags)&&!!(4&m[1].flags)),h(1&t.flags?m[1]:m[0])}if(!i){var g=e.isObjectBindingElementWithoutPropertyName(r.parent)?e.getPropertySymbolFromBindingElement(n,r.parent):void 0;return g&&h(g,4)}function h(t,r){return e.firstDefined(n.getRootSymbols(t),function(i){return a(t,i,void 0,r)||(i.parent&&96&i.parent.flags&&o(i)?e.getPropertySymbolsFromBaseTypes(i.parent,i.name,n,function(e){return a(t,i,e,r)}):void 0)})}}function D(t,r){var n=e.getMeaningFromLocation(t),i=r.declarations;if(i){var a=void 0;do{a=n;for(var o=0,s=i;o<s.length;o++){var c=s[o],u=e.getMeaningFromDeclaration(c);u&n&&(n|=u)}}while(n!==a)}return n}function k(t,r,n){var i=r.getSymbolAtLocation(t),a=r.getShorthandAssignmentValueSymbol(i.valueDeclaration);if(a)for(var o=0,s=a.getDeclarations();o<s.length;o++){var c=s[o];1&e.getMeaningFromDeclaration(c)&&n(c)}}function C(t,r,n){e.forEachChild(t,function(e){e.kind===r&&n(e),C(e,r,n)})}r.eachExportReference=function(r,n,i,a,o,s,c,u){for(var l=t.createImportTracker(r,e.arrayToSet(r,function(e){return e.fileName}),n,i)(a,{exportKind:c?1:0,exportingModuleSymbol:o},!1),_=l.importSearches,f=l.indirectUsers,p=0,m=_;p<m.length;p++)u(m[p][0]);for(var g=0,h=f;g<h.length;g++)for(var y=0,v=d(h[g],c?"default":s);y<v.length;y++){var b=v[y];e.isIdentifier(b)&&!e.isImportOrExportSpecifier(b.parent)&&n.getSymbolAtLocation(b)===a&&u(b)}},r.isSymbolReferencedInFile=function(e,t,r){return l(e,t,r,function(){return!0})||!1},r.eachSymbolReferenceInFile=l,r.eachSignatureCall=function(t,r,n,i){if(t.name&&e.isIdentifier(t.name))for(var a=e.Debug.assertDefined(n.getSymbolAtLocation(t.name)),o=0,s=r;o<s.length;o++)for(var c=0,u=d(s[o],a.name);c<u.length;c++){var l=u[c];if(e.isIdentifier(l)&&l!==t.name&&l.escapedText===t.name.escapedText){var _=e.climbPastPropertyAccess(l),f=_.parent;if(e.isCallExpression(f)&&f.expression===_){var p=n.getSymbolAtLocation(l);p&&n.getRootSymbols(p).some(function(e){return e===a})&&i(f)}}}},r.getIntersectingMeaningFromDeclarations=D,r.getReferenceEntriesForShorthandPropertyAssignment=k}(t.Core||(t.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(d||(d={})),function(e){function t(t,n,i,a){var o=i(t);return function(t){var s=a&&a.tryGetSourcePosition({fileName:t,pos:0}),c=function(t){if(i(t)===o)return n;var r=e.tryRemoveDirectoryPrefix(t,o,i);return void 0===r?void 0:n+"/"+r}(s?s.fileName:t);return s?void 0===c?void 0:function(t,n,i,a){var o=e.getRelativePathFromFile(t,n,a);return r(e.getDirectoryPath(i),o)}(s.fileName,c,t,i):c}}function r(t,r){return e.ensurePathIsNonModuleName(function(t,r){return e.normalizePath(e.combinePaths(t,r))}(t,r))}function n(t,r,n){return i(function(e){var t=r(e);return void 0!==t&&n.fileExists(t)?{newFileName:t,updated:!0}:void 0})||i(function(e){var t=r(e);return n.fileExists(e)?void 0!==t?{newFileName:t,updated:!0}:{newFileName:e,updated:!1}:void 0});function i(r){return t&&(t.resolvedModule&&r(t.resolvedModule.resolvedFileName)||e.firstDefined(t.failedLookupLocations,r))}}function i(t,r){return e.createRange(t.getStart(r)+1,t.end-1)}function a(t,r){if(e.isObjectLiteralExpression(t))for(var n=0,i=t.properties;n<i.length;n++){var a=i[n];e.isPropertyAssignment(a)&&e.isStringLiteral(a.name)&&r(a,a.name.text)}}e.getEditsForFileRename=function(o,s,c,u,l,d,_){var f=e.hostUsesCaseSensitiveFileNames(u),p=e.createGetCanonicalFileName(f),m=t(s,c,p,_),g=t(c,s,p,_);return e.textChanges.ChangeTracker.with({host:u,formatContext:l},function(t){!function(t,n,o,s,c,u,l){var d=t.getCompilerOptions().configFile;if(d){var _=e.getDirectoryPath(d.fileName),f=e.getTsConfigObjectLiteralExpression(d);f&&a(f,function(t,r){switch(r){case"files":case"include":case"exclude":var i=p(t);if(!i&&"include"===r&&e.isArrayLiteralExpression(t.initializer)){var o=e.mapDefined(t.initializer.elements,function(t){return e.isStringLiteral(t)?t.text:void 0}),f=e.getFileMatcherPatterns(_,[],o,l,u);e.getRegexFromPattern(e.Debug.assertDefined(f.includeFilePattern),l).test(s)&&!e.getRegexFromPattern(e.Debug.assertDefined(f.includeFilePattern),l).test(c)&&n.insertNodeAfter(d,e.last(t.initializer.elements),e.createStringLiteral(g(c)))}break;case"compilerOptions":a(t.initializer,function(t,r){var n=e.getOptionFromName(r);n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?p(t):"paths"===r&&a(t.initializer,function(t){if(e.isArrayLiteralExpression(t.initializer))for(var r=0,n=t.initializer.elements;r<n.length;r++){var i=n[r];m(i)}})})}})}function p(t){for(var r=e.isArrayLiteralExpression(t.initializer)?t.initializer.elements:[t.initializer],n=!1,i=0,a=r;i<a.length;i++){var o=a[i];n=m(o)||n}return n}function m(t){if(!e.isStringLiteral(t))return!1;var a=r(_,t.text),s=o(a);return void 0!==s&&(n.replaceRangeWithText(d,i(t,d),g(s)),!0)}function g(t){return e.getRelativePathFromDirectory(_,t,!l)}}(o,t,m,s,c,u.getCurrentDirectory(),f),function(t,a,o,s,c,u){for(var l=t.getSourceFiles(),d=function(d){var _=o(d.path),f=void 0!==_?_:d.path,p=e.getDirectoryPath(f),m=s(d.fileName),g=m||d.fileName,h=e.getDirectoryPath(g),y=void 0!==_||void 0!==m;!function(t,r,n,a){for(var o=0,s=t.referencedFiles||e.emptyArray;o<s.length;o++){var c=s[o],u=n(c.fileName);void 0!==u&&u!==t.text.slice(c.pos,c.end)&&r.replaceRangeWithText(t,c,u)}for(var l=0,d=t.imports;l<d.length;l++){var _=d[l],u=a(_);void 0!==u&&u!==_.text&&r.replaceRangeWithText(t,i(_,t),u)}}(d,a,function(t){if(e.pathIsRelative(t)){var n=r(h,t),i=o(n);return void 0===i?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(p,i,u))}},function(r){var i=t.getTypeChecker().getSymbolAtLocation(r);if(!i||!i.declarations.some(function(t){return e.isAmbientModule(t)})){var a=void 0!==m?n(e.resolveModuleName(r.text,g,t.getCompilerOptions(),c),o,c):function(t,r,i,a,o,s){if(t){var c=e.find(t.declarations,e.isSourceFile).fileName,u=s(c);return void 0===u?{newFileName:c,updated:!1}:{newFileName:u,updated:!0}}var l=o.resolveModuleNames?o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName):a.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName);return n(l,s,o)}(i,r,d,t,c,o);return void 0!==a&&(a.updated||y&&e.pathIsRelative(r.text))?e.moduleSpecifiers.updateModuleSpecifier(t.getCompilerOptions(),f,a.newFileName,c,l,t.redirectTargetsMap,r.text):void 0}})},_=0,f=l;_<f.length;_++){var p=f[_];d(p)}}(o,t,m,g,u,p)})},e.getPathUpdater=t}(d||(d={})),function(e){!function(t){function r(t,r,i){var u,l,d=n(r,i,t);if(d)return[(u=d.fileName,l=d.file.fileName,{fileName:l,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:u,containerName:void 0,containerKind:void 0})];var _=e.getTouchingPropertyName(r,i);if(_!==r){var f=_.parent;if(e.isJumpStatementTarget(_)){var p=e.getTargetLabel(_.parent,_.text);return p?[s(p,"label",_.text,void 0)]:void 0}var m=t.getTypeChecker(),g=function(e,t){var r=t.getSymbolAtLocation(e);if(r&&2097152&r.flags&&function(e,t){if(72!==e.kind)return!1;if(e.parent===t)return!0;switch(t.kind){case 250:case 248:return!0;case 253:return 252===t.parent.kind;default:return!1}}(e,r.declarations[0])){var n=t.getAliasedSymbol(r);if(n.declarations)return n}return r}(_,m);if(!g)return function(t,r){if(!e.isPropertyAccessExpression(t.parent)||t.parent.name!==t)return;var n=r.getTypeAtLocation(t.parent.expression);return e.mapDefined(n.isUnionOrIntersection()?n.types:[n],function(e){var t=r.getIndexInfoOfType(e,0);return t&&t.declaration&&c(r,t.declaration)})}(_,m);var h=function(t,r){var n=function(t){var r=function t(r){return e.isRightSideOfPropertyAccess(r)?t(r.parent):r}(t),n=r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r?n:void 0}(r),i=n&&t.getResolvedSignature(n);return e.tryCast(i&&i.declaration,function(t){return e.isFunctionLike(t)&&!e.isFunctionTypeNode(t)})}(m,_);if(h&&(!e.isJsxOpeningLikeElement(_.parent)||!function(e){switch(e.kind){case 157:case 166:case 161:return!0;default:return!1}}(h))){var y=c(m,h);if(m.getRootSymbols(g).some(function(t){return function(t,r){return t===r.symbol||t===r.symbol.parent||!e.isCallLikeExpression(r.parent)&&t===r.parent.symbol}(t,h)})||g.declarations&&g.declarations.some(function(t){return e.isVariableDeclaration(t)&&!!t.initializer&&e.isRequireCall(t.initializer,!1)}))return[y];var v=a(m,g,_)||e.emptyArray;return 98===_.kind?[y].concat(v):v.concat([y])}if(276===_.parent.kind){var b=m.getShorthandAssignmentValueSymbol(g.valueDeclaration);return b?b.declarations.map(function(e){return o(e,m,b,_)}):[]}if(e.isPropertyName(_)&&e.isBindingElement(f)&&e.isObjectBindingPattern(f.parent)&&_===(f.propertyName||f.name)){var x=e.getNameFromPropertyName(_),S=m.getTypeAtLocation(f.parent);return void 0===x?e.emptyArray:e.flatMap(S.isUnion()?S.types:[S],function(e){var t=e.getProperty(x);return t&&a(m,t,_)})}var D=e.getContainingObjectLiteralElement(_);if(D){var k=D&&m.getContextualType(D.parent);if(k)return e.flatMap(e.getPropertySymbolsFromContextualType(D,m,k,!1),function(e){return a(m,e,_)})}return a(m,g,_)}}function n(t,r,n){var i=u(t.referencedFiles,r);if(i)return(s=e.tryResolveScriptReference(n,t,i))&&{fileName:i.fileName,file:s};var a=u(t.typeReferenceDirectives,r);if(a){var o=n.getResolvedTypeReferenceDirectives().get(a.fileName);return(s=o&&n.getSourceFile(o.resolvedFileName))&&{fileName:a.fileName,file:s}}var s,c=u(t.libReferenceDirectives,r);return c?(s=n.getLibFileFromReference(c))&&{fileName:c.fileName,file:s}:void 0}function i(t,r,n){return e.flatMap(!t.isUnion()||32&t.flags?[t]:t.types,function(e){return e.symbol&&a(r,e.symbol,n)})}function a(t,r,n){return function(){if(32&r.flags&&(e.isNewExpressionTarget(n)||124===n.kind)){var t=e.find(r.declarations,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return i(t.members,!0)}}()||(e.isCallOrNewExpressionTarget(n)||e.isNameOfFunctionDeclaration(n)?i(r.declarations,!1):void 0)||e.map(r.declarations,function(e){return o(e,t,r,n)});function i(i,a){if(i){var s=i.filter(a?e.isConstructorDeclaration:e.isFunctionLike);return s.length?[o(e.find(s,function(e){return!!e.body})||e.last(s),t,r,n)]:void 0}}}function o(t,r,n,i){var a=r.symbolToString(n);return s(t,e.SymbolDisplay.getSymbolKind(r,n,i),a,n.parent?r.symbolToString(n.parent,i):"")}function s(t,r,n,i){var a=e.getNameOfDeclaration(t)||t,o=a.getSourceFile();return{fileName:o.fileName,textSpan:e.createTextSpanFromNode(a,o),kind:r,name:n,containerKind:void 0,containerName:i}}function c(e,t){return o(t,e,t.symbol,t)}function u(t,r){return e.find(t,function(t){return e.textRangeContainsPositionInclusive(t,r)})}t.getDefinitionAtPosition=r,t.getReferenceAtPosition=n,t.getTypeDefinitionAtPosition=function(t,r,n){var a=e.getTouchingPropertyName(r,n);if(a!==r){var o=t.getSymbolAtLocation(a);if(o){var s=t.getTypeOfSymbolAtLocation(o,a),c=function(t,r,n){if(r.symbol===t||t.valueDeclaration&&r.symbol&&e.isVariableDeclaration(t.valueDeclaration)&&t.valueDeclaration.initializer===r.symbol.valueDeclaration){var i=r.getCallSignatures();if(1===i.length)return n.getReturnTypeOfSignature(e.first(i))}}(o,s,t),u=c&&i(c,t,a);return u&&0!==u.length?u:i(s,t,a)}}},t.getDefinitionAndBoundSpan=function(t,n,i){var a=r(t,n,i);if(a&&0!==a.length){var o=u(n.referencedFiles,i)||u(n.typeReferenceDirectives,i)||u(n.libReferenceDirectives,i);if(o)return{definitions:a,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(n,i);return{definitions:a,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},t.findReferenceInPosition=u}(e.GoToDefinition||(e.GoToDefinition={}))}(d||(d={})),function(e){!function(t){var r,n,i=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function a(e){var t=e.comment;switch(e.kind){case 295:return n(e.class);case 303:return i(e.typeParameters.map(function(e){return e.getText()}).join(", "));case 302:return n(e.typeExpression);case 304:case 297:case 305:case 299:var r=e.name;return r?n(r):t;default:return t}function n(e){return i(e.getText())}function i(e){return void 0===t?e:e+" "+t}}function o(e,t){if(e)for(var r=0;r<e.length;r++)if(e.indexOf(e[r])===r){var n=t(e[r],r);if(n)return n}}function s(t){return{name:t,kind:"",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}function c(t){switch(t.kind){case 239:case 196:case 156:case 157:case 155:return{commentOwner:t,parameters:t.parameters};case 275:return c(t.initializer);case 240:case 241:case 153:case 243:case 278:case 242:return{commentOwner:t};case 219:var r=t.declarationList.declarations;return{commentOwner:t,parameters:1===r.length&&r[0].initializer?function(t){for(;195===t.kind;)t=t.expression;switch(t.kind){case 196:case 197:return t.parameters;case 209:var r=e.find(t.members,e.isConstructorDeclaration);return r?r.parameters:e.emptyArray}return e.emptyArray}(r[0].initializer):void 0};case 279:return"quit";case 244:return 244===t.parent.kind?void 0:{commentOwner:t};case 204:var n=t;return 0===e.getAssignmentDeclarationKind(n)?"quit":{commentOwner:t,parameters:e.isFunctionLike(n.right)?n.right.parameters:e.emptyArray}}}t.getJsDocCommentsFromDeclarations=function(t){var r=[];return o(t,function(t){for(var n=0,i=function(t){switch(t.kind){case 299:case 305:return[t];case 297:case 304:return[t,t.parent];default:return e.getJSDocCommentsAndTags(t)}}(t);n<i.length;n++){var a=i[n].comment;void 0!==a&&(r.length&&r.push(e.lineBreakPart()),r.push(e.textPart(a)))}}),r},t.getJsDocTagsFromDeclarations=function(t){var r=[];return o(t,function(t){for(var n=0,i=e.getJSDocTags(t);n<i.length;n++){var o=i[n];r.push({name:o.tagName.text,text:a(o)})}}),r},t.getJSDocTagNameCompletions=function(){return r||(r=e.map(i,function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},t.getJSDocTagNameCompletionDetails=s,t.getJSDocTagCompletions=function(){return n||(n=e.map(i,function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},t.getJSDocTagCompletionDetails=s,t.getJSDocParameterNameCompletions=function(t){if(!e.isIdentifier(t.name))return e.emptyArray;var r=t.name.text,n=t.parent,i=n.parent;return e.isFunctionLike(i)?e.mapDefined(i.parameters,function(i){if(e.isIdentifier(i.name)){var a=i.name.text;if(!n.tags.some(function(r){return r!==t&&e.isJSDocParameterTag(r)&&e.isIdentifier(r.name)&&r.name.escapedText===a})&&(void 0===r||e.startsWith(a,r)))return{name:a,kind:"parameter",kindModifiers:"",sortText:"0"}}}):[]},t.getJSDocParameterNameCompletionDetails=function(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}},t.getDocCommentTemplateAtPosition=function(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isJSDoc);if(!a||void 0===a.comment&&!e.length(a.tags)){var o=i.getStart(r);if(a||!(o<n)){var s=function(t){return e.forEachAncestor(t,c)}(i);if(s){var u=s.commentOwner,l=s.parameters;if(!(u.getStart(r)<n)){if(!l||0===l.length)return{newText:"/** */",caretOffset:3};var d=function(t,r){for(var n=t.text,i=e.getLineStartPositionForPosition(r,t),a=i;a<=r&&e.isWhiteSpaceSingleLine(n.charCodeAt(a));a++);return n.slice(i,a)}(r,n),_="/**"+t+d+" * ";return{newText:_+t+function(e,t,r,n){return e.map(function(e,i){var a=e.name,o=e.dotDotDotToken,s=72===a.kind?a.text:"param"+i,c=t?o?"{...any} ":"{any} ":"";return r+" * @param "+c+s+n}).join("")}(l,e.hasJSFileExtension(r.fileName),d,t)+d+" */"+(o===n?t+d:""),caretOffset:_.length}}}}}}}(e.JsDoc||(e.JsDoc={}))}(d||(d={})),function(e){!function(t){function r(e,t){switch(e.kind){case 250:case 253:case 248:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}function n(t,r){var n=e.getNameOfDeclaration(t);return!!n&&(a(n,r)||149===n.kind&&i(n.expression,r))}function i(t,r){return a(t,r)||e.isPropertyAccessExpression(t)&&(r.push(t.name.text),!0)&&i(t.expression,r)}function a(t,r){return e.isPropertyNameLiteral(t)&&(r.push(e.getTextOfIdentifierOrLiteral(t)),!0)}function o(t){var r=[],a=e.getNameOfDeclaration(t);if(a&&149===a.kind&&!i(a.expression,r))return e.emptyArray;r.shift();for(var o=e.getContainerNode(t);o;){if(!n(o,r))return e.emptyArray;o=e.getContainerNode(o)}return r.reverse()}function s(t,r){return e.compareValues(t.matchKind,r.matchKind)||e.compareStringsCaseSensitiveUI(t.name,r.name)}function c(t){var r=t.declaration,n=e.getContainerNode(r),i=n&&e.getNameOfDeclaration(n);return{name:t.name,kind:e.getNodeKind(r),kindModifiers:e.getNodeModifiers(r),matchKind:e.PatternMatchKind[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:e.createTextSpanFromNode(r),containerName:i?i.text:"",containerKind:i?e.getNodeKind(n):""}}t.getNavigateToItems=function(t,n,i,a,u,l){var d=e.createPatternMatcher(a);if(!d)return e.emptyArray;for(var _=[],f=function(e){if(i.throwIfCancellationRequested(),l&&e.isDeclarationFile)return"continue";e.getNamedDeclarations().forEach(function(t,i){!function(e,t,n,i,a,s){var c=e.getMatchForLastSegmentOfPattern(t);if(c)for(var u=0,l=n;u<l.length;u++){var d=l[u];if(r(d,i))if(e.patternContainsDots){var _=e.getFullMatch(o(d),t);_&&s.push({name:t,fileName:a,matchKind:_.kind,isCaseSensitive:_.isCaseSensitive,declaration:d})}else s.push({name:t,fileName:a,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:d})}}(d,i,t,n,e.fileName,_)})},p=0,m=t;p<m.length;p++)f(m[p]);return _.sort(s),(void 0===u?_:_.slice(0,u)).map(c)}}(e.NavigateTo||(e.NavigateTo={}))}(d||(d={})),function(e){!function(t){var r,n,i,a=/\s+/g,o=[],s=[];function c(){n=void 0,r=void 0,o=[],i=void 0,s=[]}function u(e){return e.getText(n)}function l(e){return e.node.kind}function d(e,t){e.children?e.children.push(t):e.children=[t]}function _(t){e.Debug.assert(!o.length);var r={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};i=r;for(var n=0,a=t.statements;n<a.length;n++){y(a[n])}return g(),e.Debug.assert(!i&&!o.length),r}function f(e){d(i,p(e))}function p(t){return{node:t,name:e.isDeclaration(t)||e.isExpression(t)?e.getNameOfDeclaration(t):void 0,additionalNodes:void 0,parent:i,children:void 0,indent:i.indent+1}}function m(e){var t=p(e);d(i,t),o.push(i),i=t}function g(){i.children&&(v(i.children,i),S(i.children)),i=o.pop()}function h(e,t){m(e),y(t),g()}function y(t){if(r.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 157:var n=t;h(n,n.body);for(var i=0,a=n.parameters;i<a.length;i++){var o=a[i];e.isParameterPropertyDeclaration(o)&&f(o)}break;case 156:case 158:case 159:case 155:e.hasDynamicName(t)||h(t,t.body);break;case 154:case 153:e.hasDynamicName(t)||f(t);break;case 250:var s=t;s.name&&f(s.name);var c=s.namedBindings;if(c)if(251===c.kind)f(c);else for(var u=0,l=c.elements;u<l.length;u++){f(l[u])}break;case 186:case 237:var d=t,_=d.name,p=d.initializer;e.isBindingPattern(_)?y(_):p&&function(e){switch(e.kind){case 197:case 196:case 209:return!0;default:return!1}}(p)?p.name?y(p):(m(t),e.forEachChild(p,y),g()):h(t,p);break;case 197:case 239:case 196:h(t,t.body);break;case 243:m(t);for(var v=0,b=t.members;v<b.length;v++){w(D=b[v])||f(D)}g();break;case 240:case 209:case 241:m(t);for(var x=0,S=t.members;x<S.length;x++){var D;y(D=S[x])}g();break;case 244:h(t,function t(r){return r.body&&e.isModuleDeclaration(r.body)?t(r.body):r}(t).body);break;case 257:case 248:case 162:case 160:case 161:case 242:f(t);break;case 204:var k=e.getAssignmentDeclarationKind(t);switch(k){case 1:case 2:case 3:case 6:return void h(t,t.right);case 4:case 5:case 0:case 7:case 8:case 9:break;default:e.Debug.assertNever(k)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,function(t){e.forEach(t.tags,function(t){e.isJSDocTypeAlias(t)&&f(t)})}),e.forEachChild(t,y)}}function v(t,r){var n=e.createMap();e.filterMutate(t,function(t){var i=e.getNameOfDeclaration(t.node),a=i&&u(i);if(!a)return!0;var o=n.get(a);if(!o)return n.set(a,t),!0;if(o instanceof Array){for(var s=0,c=o;s<c.length;s++){var l;if(b(l=c[s],t,r))return!1}return o.push(t),!0}return!b(l=o,t,r)&&(n.set(a,[l,t]),!0)})}function b(t,r,n){return!!function(t,r,n){if(t.kind!==r.kind||t.parent!==r.parent&&(!x(t,n)||!x(r,n)))return!1;switch(t.kind){case 154:case 156:case 158:case 159:return e.hasModifier(t,32)===e.hasModifier(r,32);case 244:return function e(t,r){return t.body.kind===r.body.kind&&(244!==t.body.kind||e(t.body,r.body))}(t,r);default:return!0}}(t.node,r.node,n)&&(function(t,r){var n;t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(r.node),r.additionalNodes&&(n=t.additionalNodes).push.apply(n,r.additionalNodes);t.children=e.concatenate(t.children,r.children),t.children&&(v(t.children,t),S(t.children))}(t,r),!0)}function x(t,r){var n=e.isModuleBlock(t.parent)?t.parent.parent:t.parent;return n===r.node||e.contains(r.additionalNodes,n)}function S(e){e.sort(D)}function D(t,r){return e.compareStringsCaseSensitiveUI(k(t.node),k(r.node))||e.compareValues(l(t),l(r))}function k(t){if(244===t.kind)return A(t);var r=e.getNameOfDeclaration(t);if(r&&e.isPropertyName(r))return e.unescapeLeadingUnderscores(e.getPropertyNameForPropertyNameNode(r));switch(t.kind){case 196:case 197:case 209:return I(t);default:return}}function C(t,r){if(244===t.kind)return A(t);if(r){var n=u(r);if(n.length>0)return n}switch(t.kind){case 279:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"<global>";case 197:case 239:case 196:case 240:case 209:return 512&e.getModifierFlags(t)?"default":I(t);case 157:return"constructor";case 161:return"new()";case 160:return"()";case 162:return"[]";default:return"<unknown>"}}function T(t){return{text:C(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:F(t.node),spans:N(t),nameSpan:t.name&&P(t.name),childItems:e.map(t.children,T)}}function E(t){return{text:C(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:F(t.node),spans:N(t),childItems:e.map(t.children,function(t){return{text:C(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:N(t),childItems:s,indent:0,bolded:!1,grayed:!1}})||s,indent:t.indent,bolded:!1,grayed:!1}}function N(e){var t=[P(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(P(i))}return t}function A(t){if(e.isAmbientModule(t))return e.getTextOfNode(t.name);var r=[];for(r.push(e.getTextOfIdentifierOrLiteral(t.name));t.body&&244===t.body.kind;)t=t.body,r.push(e.getTextOfIdentifierOrLiteral(t.name));return r.join(".")}function w(e){return!e.name||149===e.name.kind}function P(t){return 279===t.kind?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,n)}function F(t){return t.parent&&237===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function I(t){var r=t.parent;if(t.name&&e.getFullWidth(t.name)>0)return e.declarationNameToString(t.name);if(e.isVariableDeclaration(r))return e.declarationNameToString(r.name);if(e.isBinaryExpression(r)&&59===r.operatorToken.kind)return u(r.left).replace(a,"");if(e.isPropertyAssignment(r))return u(r.name);if(512&e.getModifierFlags(t))return"default";if(e.isClassLike(t))return"<class>";if(e.isCallExpression(r)){var i=function t(r){if(e.isIdentifier(r))return r.text;if(e.isPropertyAccessExpression(r)){var n=t(r.expression),i=r.name.text;return void 0===n?i:n+"."+i}return}(r.expression);if(void 0!==i)return i+"("+e.mapDefined(r.arguments,function(t){return e.isStringLiteral(t)?t.getText(n):void 0}).join(", ")+") callback"}return"<function>"}t.getNavigationBarItems=function(t,i){r=i,n=t;try{return e.map((a=_(t),o=[],function t(r){if(function(t){switch(l(t)){case 240:case 209:case 243:case 241:case 244:case 279:case 242:case 304:case 297:return!0;case 157:case 156:case 158:case 159:case 237:return r(t);case 197:case 239:case 196:return function(e){if(!e.node.body)return!1;switch(l(e.parent)){case 245:case 279:case 156:case 157:return!0;default:return r(e)}}(t);default:return!1}function r(t){return e.some(t.children,function(e){var t=l(e);return 237!==t&&186!==t})}}(r)&&(o.push(r),r.children))for(var n=0,i=r.children;n<i.length;n++){var a=i[n];t(a)}}(a),o),E)}finally{c()}var a,o},t.getNavigationTree=function(e,t){r=t,n=e;try{return T(_(e))}finally{c()}}}(e.NavigationBar||(e.NavigationBar={}))}(d||(d={})),function(e){!function(t){function r(t){var n=t.body;return n&&!e.isIdentifier(n)?e.isModuleBlock(n)?n:r(n):void 0}function n(t){return void 0!==t&&e.isStringLiteralLike(t)?t.text:void 0}function i(t){if(0===t.length)return t;var r=function(t){for(var r,n=[],i=[],a=[],o=0,s=t;o<s.length;o++){var c=s[o];if(void 0!==c.importClause){var u=c.importClause,l=u.name,d=u.namedBindings;l&&n.push(c),d&&(e.isNamespaceImport(d)?i.push(c):a.push(c))}else r=r||c}return{importWithoutClause:r,defaultImports:n,namespaceImports:i,namedImports:a}}(t),n=r.importWithoutClause,i=r.defaultImports,a=r.namespaceImports,c=r.namedImports,l=[];if(n&&l.push(n),1===i.length&&1===a.length&&0===c.length){var d=i[0];return l.push(o(d,d.importClause.name,a[0].importClause.namedBindings)),l}for(var _,f=0,p=e.stableSort(a,function(e,t){return u(e.importClause.namedBindings.name,t.importClause.namedBindings.name)});f<p.length;f++){var m=p[f];l.push(o(m,void 0,m.importClause.namedBindings))}if(0===i.length&&0===c.length)return l;var g=[];if(1===i.length)_=i[0].importClause.name;else for(var h=0,y=i;h<y.length;h++){d=y[h];g.push(e.createImportSpecifier(e.createIdentifier("default"),d.importClause.name))}g.push.apply(g,e.flatMap(c,function(e){return e.importClause.namedBindings.elements}));var v=s(g),b=i.length>0?i[0]:c[0],x=0===v.length?_?void 0:e.createNamedImports(e.emptyArray):0===c.length?e.createNamedImports(v):e.updateNamedImports(c[0].importClause.namedBindings,v);return l.push(o(b,_,x)),l}function a(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=0,i=e;n<i.length;n++){var a=i[n];void 0===a.exportClause?t=t||a:r.push(a)}return{exportWithoutClause:t,namedExports:r}}(t),n=r.exportWithoutClause,i=r.namedExports,a=[];if(n&&a.push(n),0===i.length)return a;var o=[];o.push.apply(o,e.flatMap(i,function(e){return e.exportClause.elements}));var c=s(o),u=i[0];return a.push(e.updateExportDeclaration(u,u.decorators,u.modifiers,e.updateNamedExports(u.exportClause,c),u.moduleSpecifier)),a}function o(t,r,n){return e.updateImportDeclaration(t,t.decorators,t.modifiers,e.updateImportClause(t.importClause,r,n),t.moduleSpecifier)}function s(t){return e.stableSort(t,function(e,t){return u(e.propertyName||e.name,t.propertyName||t.name)||u(e.name,t.name)})}function c(t,r){var i=n(t),a=n(r);return e.compareBooleans(void 0===i,void 0===a)||e.compareBooleans(e.isExternalModuleNameRelative(i),e.isExternalModuleNameRelative(a))||e.compareStringsCaseInsensitive(i,a)}function u(t,r){return e.compareStringsCaseInsensitive(t.text,r.text)}t.organizeImports=function(t,s,u,l,d){var _=e.textChanges.ChangeTracker.fromContext({host:u,formatContext:s}),f=function(r){return i(function(t,r,n){for(var i=n.getTypeChecker(),a=i.getJsxNamespace(),s=!!(4&r.transformFlags),c=[],u=0,l=t;u<l.length;u++){var d=l[u],_=d.importClause;if(_){var f=_.name,p=_.namedBindings;if(f&&!g(f)&&(f=void 0),p)if(e.isNamespaceImport(p))g(p.name)||(p=void 0);else{var m=p.elements.filter(function(e){return g(e.name)});m.length<p.elements.length&&(p=m.length?e.updateNamedImports(p,m):void 0)}(f||p)&&c.push(o(d,f,p))}else c.push(d)}return c;function g(t){return s&&t.text===a||e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,r)}}(r,t,l))};h(t.statements.filter(e.isImportDeclaration),f),h(t.statements.filter(e.isExportDeclaration),a);for(var p=0,m=t.statements.filter(e.isAmbientModule);p<m.length;p++){var g=r(m[p]);h(g.statements.filter(e.isImportDeclaration),f),h(g.statements.filter(e.isExportDeclaration),a)}return _.getChanges();function h(r,i){if(0!==e.length(r)){e.suppressLeadingTrivia(r[0]);var a=e.group(r,function(e){return n(e.moduleSpecifier)}),o=e.stableSort(a,function(e,t){return c(e[0].moduleSpecifier,t[0].moduleSpecifier)}),l=e.flatMap(o,function(e){return n(e[0].moduleSpecifier)?i(e):e});0===l.length?_.delete(t,r[0]):_.replaceNodeWithNodes(t,r[0],l,{useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!1,suffix:e.getNewLineOrDefaultFromHost(u,s.options)});for(var d=1;d<r.length;d++)_.delete(t,r[d])}}},t.coalesceImports=i,t.coalesceExports=a,t.compareModuleSpecifiers=c}(e.OrganizeImports||(e.OrganizeImports={}))}(d||(d={})),function(e){!function(t){t.collectElements=function(t,r){var s=[];return function(t,r,n){for(var s=40,c=0,u=t.statements,l=u.length;c<l;){for(;c<l&&!e.isAnyImportSyntax(u[c]);)f(u[c]),c++;if(c===l)break;for(var d=c;c<l&&e.isAnyImportSyntax(u[c]);)i(u[c],t,r,n),c++;var _=c-1;_!==d&&n.push(a(e.findChildOfKind(u[d],92,t).getStart(t),u[_].getEnd(),"imports"))}function f(c){if(0!==s){r.throwIfCancellationRequested(),e.isDeclaration(c)&&i(c,t,r,n);var u=function(t,r){switch(t.kind){case 218:if(e.isFunctionBlock(t))return l(t.parent,197!==t.parent.kind);switch(t.parent.kind){case 223:case 226:case 227:case 225:case 222:case 224:case 231:case 274:return l(t.parent);case 235:var n=t.parent;if(n.tryBlock===t)return l(t.parent);if(n.finallyBlock===t)return l(e.findChildOfKind(n,88,r));default:return o(e.createTextSpanFromNode(t,r),"code")}case 245:return l(t.parent);case 240:case 241:case 243:case 246:return l(t);case 188:return u(t);case 187:return u(t,22);case 260:return i=t,s=e.createTextSpanFromBounds(i.openingElement.getStart(r),i.closingElement.getEnd()),c=i.openingElement.tagName.getText(r),o(s,"code",s,!1,"<"+c+">...</"+c+">");case 261:case 262:return function(e){if(0!==e.properties.length)return a(e.getStart(r),e.getEnd(),"code")}(t.attributes)}var i,s,c;function u(t,r){return void 0===r&&(r=18),l(t,!1,!e.isArrayLiteralExpression(t.parent),r)}function l(n,i,a,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===s&&(s=18);var c=e.findChildOfKind(t,s,r),u=18===s?19:23,l=e.findChildOfKind(t,u,r);if(c&&l){var d=e.createTextSpanFromBounds(a?c.getFullStart():c.getStart(r),l.getEnd());return o(d,"code",e.createTextSpanFromNode(n,r),i)}}}(c,t);u&&n.push(u),s--,e.isIfStatement(c)&&c.elseStatement&&e.isIfStatement(c.elseStatement)?(f(c.expression),f(c.thenStatement),s++,f(c.elseStatement),s--):c.forEachChild(f),s++}}}(t,r,s),function(t,r){for(var i=[],a=t.getLineStarts(),s=0;s<a.length;s++){var c=a[s],u=s+1===a.length?t.getEnd():a[s+1]-1,l=t.text.substring(c,u),d=n(l);if(d&&!e.isInComment(t,c))if(d[1]){var _=i.pop();_&&(_.textSpan.length=u-_.textSpan.start,_.hintSpan.length=u-_.textSpan.start,r.push(_))}else{var f=e.createTextSpanFromBounds(t.text.indexOf("//",c),u);i.push(o(f,"region",f,!1,d[2]||"#region"))}}}(t,s),s.sort(function(e,t){return e.textSpan.start-t.textSpan.start})};var r=/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/;function n(e){return r.exec(e)}function i(t,r,i,o){var s=e.getLeadingCommentRangesOfNode(t,r);if(s){for(var c=-1,u=-1,l=0,d=r.getFullText(),_=0,f=s;_<f.length;_++){var p=f[_],m=p.kind,g=p.pos,h=p.end;switch(i.throwIfCancellationRequested(),m){case 2:if(n(d.slice(g,h))){y(),l=0;break}0===l&&(c=g),u=h,l++;break;case 3:y(),o.push(a(g,h,"comment")),l=0;break;default:e.Debug.assertNever(m)}}y()}function y(){l>1&&o.push(a(c,u,"comment"))}}function a(t,r,n){return o(e.createTextSpanFromBounds(t,r),n)}function o(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(d||(d={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=y(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(C(t,function(t,n){return _(e.charCodeAt(n+r))===t}))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var d=0,f=n(i,o);d<f.length;d++){var p=f[d];if(c(i,p,a.text,!0))return r(t.substring,c(i,p,a.text,!1))}if(a.text.length<i.length&&l(i.charCodeAt(s)))return r(t.substring,!1)}else{if(i.indexOf(a.text)>0)return r(t.substring,!0);if(a.characterSpans.length>0){var m=n(i,o),g=!!u(i,m,a,!1)||!u(i,m,a,!0)&&void 0;if(void 0!==g)return r(t.camelCase,g)}}}function a(e,t,r){if(C(t.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s<c.length;s++){a=o(a,i(e,c[s],r))}return a}function o(t,r){return e.min(t,r,s)}function s(t,r){return void 0===t?1:void 0===r?-1:e.compareValues(t.kind,r.kind)||e.compareBooleans(!t.isCaseSensitive,!r.isCaseSensitive)}function c(e,t,r,n,i){return void 0===i&&(i={start:0,length:r.length}),i.length<=t.length&&k(0,i.length,function(a){return function(e,t,r){return r?_(e)===_(t):e===t}(r.charCodeAt(i.start+a),e.charCodeAt(t.start+a),n)})}function u(t,r,n,i){for(var a,o,s=n.characterSpans,u=0,d=0;;){if(d===s.length)return!0;if(u===r.length)return!1;for(var _=r[u],f=!1;d<s.length;d++){var p=s[d];if(f&&(!l(n.text.charCodeAt(s[d-1].start))||!l(n.text.charCodeAt(s[d].start))))break;if(!c(t,_,n.text,i,p))break;f=!0,a=void 0===a?u:a,o=void 0===o||o,_=e.createTextSpan(_.start+p.length,_.length-p.length)}f||void 0===o||(o=!1),u++}}function l(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function d(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function _(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function f(e){return e>=48&&e<=57}function p(e){return l(e)||d(e)||f(e)||95===e||36===e}function m(e){for(var t=[],r=0,n=0,i=0;i<e.length;i++){p(e.charCodeAt(i))?(0===n&&(r=i),n++):n>0&&(t.push(g(e.substr(r,n))),n=0)}return n>0&&t.push(g(e.substr(r,n))),t}function g(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:h(e)}}function h(e){return v(e,!1)}function y(e){return v(e,!0)}function v(t,r){for(var n=[],i=0,a=1;a<t.length;a++){var o=f(t.charCodeAt(a-1)),s=f(t.charCodeAt(a)),c=D(t,r,a),u=r&&S(t,a,i);(b(t.charCodeAt(a-1))||b(t.charCodeAt(a))||o!==s||c||u)&&(x(t,i,a)||n.push(e.createTextSpan(i,a-i)),i=a)}return x(t,i,t.length)||n.push(e.createTextSpan(i,t.length-i)),n}function b(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function x(e,t,r){return C(e,function(e){return b(e)&&95!==e},t,r)}function S(e,t,r){return t!==r&&t+1<e.length&&l(e.charCodeAt(t))&&d(e.charCodeAt(t+1))&&C(e,l,r,t)}function D(e,t,r){var n=l(e.charCodeAt(r-1));return l(e.charCodeAt(r))&&(!t||!n)}function k(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function C(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=e.length),k(r,n,function(r){return t(e.charCodeAt(r),r)})}!function(e){e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"}(t=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=function(t){var r=e.createMap(),n=t.trim().split(".").map(function(e){return{totalTextChunk:g(t=e.trim()),subWordTextChunks:m(t)};var t});if(!n.some(function(e){return!e.subWordTextChunks.length}))return{getFullMatch:function(t,i){return function(t,r,n,i){var s;if(a(r,e.last(n),i)&&!(n.length-1>t.length)){for(var c=n.length-2,u=t.length-1;c>=0;c-=1,u-=1)s=o(s,a(t[u],n[c],i));return s}}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=h,e.breakIntoWordSpans=y}(d||(d={})),function(e){e.preProcessFile=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],u=0,l=!1;function d(){return a=o,18===(o=e.scanner.scan())?u++:19===o&&u--,o}function _(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function f(){c.push(_()),p()}function p(){0===u&&(l=!0)}function m(){var t=e.scanner.getToken();return 125===t&&(130===(t=d())&&10===(t=d())&&(i||(i=[]),i.push({ref:_(),depth:u})),!0)}function g(){if(24===a)return!1;var t=e.scanner.getToken();if(92===t){if(20===(t=d())){if(10===(t=d()))return f(),!0}else{if(10===t)return f(),!0;if(72===t||e.isKeyword(t))if(144===(t=d())){if(10===(t=d()))return f(),!0}else if(59===t){if(y(!0))return!0}else{if(27!==t)return!0;t=d()}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&144===(t=d())&&10===(t=d())&&f()}else 40===t&&119===(t=d())&&(72===(t=d())||e.isKeyword(t))&&144===(t=d())&&10===(t=d())&&f()}return!0}return!1}function h(){var t=e.scanner.getToken();if(85===t){if(p(),18===(t=d())){for(t=d();19!==t&&1!==t;)t=d();19===t&&144===(t=d())&&10===(t=d())&&f()}else if(40===t)144===(t=d())&&10===(t=d())&&f();else if(92===t&&(72===(t=d())||e.isKeyword(t))&&59===(t=d())&&y(!0))return!0;return!0}return!1}function y(t){var r=t?d():e.scanner.getToken();return 134===r&&(20===(r=d())&&10===(r=d())&&f(),!0)}function v(){var t=e.scanner.getToken();if(72===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=d()))return!0;if(10===(t=d())){if(27!==(t=d()))return!0;t=d()}if(22!==t)return!0;for(t=d();23!==t&&1!==t;)10===t&&f(),t=d();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),d();1!==e.scanner.getToken();)m()||g()||h()||n&&(y(!1)||v())||d();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),l){if(i)for(var b=0,x=i;b<x.length;b++){var S=x[b];c.push(S.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:void 0}}var D=void 0;if(i)for(var k=0,C=i;k<C.length;k++)0===(S=C[k]).depth?(D||(D=[]),D.push(S.ref.fileName)):c.push(S.ref);return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:D}}}(d||(d={})),function(e){!function(t){function r(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t)}}function n(t,r){var n=t.getStart(r),i=t.getWidth(r);return 10===t.kind&&(n+=1,i-=2),e.createTextSpan(n,i)}t.getRenameInfo=function(t,i,a){var o=e.getTouchingPropertyName(i,a);return(o&&function(t){switch(t.kind){case 72:case 10:case 100:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}(o)?function(t,i,a,o){var s=i.getSymbolAtLocation(t);if(s){var c=s.declarations;if(c&&0!==c.length){if(c.some(o))return r(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(t)&&80===t.originalKeywordKind&&1536&s.parent.flags)){if(e.isStringLiteralLike(t)&&e.tryGetImportFromModuleSpecifier(t))return function(t,n,i){if(!e.isExternalModuleNameRelative(t.text))return r(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var a=e.find(i.declarations,e.isSourceFile);if(a){var o=t.text.endsWith("/index")||t.text.endsWith("/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(a.fileName),"/index"),s=void 0===o?a.fileName:o,c=void 0===o?"module":"directory",u=t.text.lastIndexOf("/")+1,l=e.createTextSpan(t.getStart(n)+1+u,t.text.length-u);return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:l}}}(t,a,s);var u=e.SymbolDisplay.getSymbolKind(i,s,t),l=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteralLike(t)&&149===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0,d=l||i.symbolToString(s),_=l||i.getFullyQualifiedName(s);return function(e,t,r,i,a,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:n(a,o)}}(d,_,u,e.SymbolDisplay.getSymbolModifiers(s),t,a)}}}}(o,t.getTypeChecker(),i,function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}):void 0)||r(e.Diagnostics.You_cannot_rename_this_element)}}(e.Rename||(e.Rename={}))}(d||(d={})),function(e){!function(t){var r,n;function i(t,r,n){var i=e.Debug.assertDefined(e.findPrecedingToken(t.getFullStart(),r,t.parent,!0));return e.rangeContainsRange(n,i)}function a(t,r){var n=function(t,r){if(28===t.kind||20===t.kind)return{list:d(t.parent,t,r),argumentIndex:0};var n=e.findContainingList(t);return n&&{list:n,argumentIndex:c(n,t)}}(t,r);if(n){var i=n.list,a=n.argumentIndex,o=function(t){var r=t.getChildren(),n=e.countWhere(r,function(e){return 27!==e.kind});r.length>0&&27===e.last(r).kind&&n++;return n}(i);return 0!==a&&e.Debug.assertLessThan(a,o),{list:i,argumentIndex:a,argumentCount:o,argumentsSpan:function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(i,r)}}}function o(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var o=i,s=a(t,n);if(!s)return;var c=s.list,l=s.argumentIndex,d=s.argumentCount,_=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:o},argumentsSpan:_,argumentIndex:l,argumentCount:d}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?u(i,0,n):void 0;if(e.isTemplateHead(t)&&193===i.parent.kind){var f=i,p=f.parent;return e.Debug.assert(206===f.kind),u(p,l=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var m=i;p=i.parent.parent;if(e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return u(p,l=function(t,r,n,i){if(e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r))return e.isInsideTemplateLiteral(r,n,i)?0:t+2;return t+1}(m.parent.templateSpans.indexOf(m),t,r,n),n)}if(e.isJsxOpeningLikeElement(i)){var g=i.attributes.pos,h=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(g,h-g),argumentIndex:0,argumentCount:1}}var y=e.getPossibleTypeArgumentsInfo(t,n);if(y){var v=y.called,b=y.nTypeArguments;return{isTypeParameterList:!0,invocation:o={kind:1,called:v},argumentsSpan:_=e.createTextSpanFromBounds(v.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function s(t){return e.isBinaryExpression(t.left)?s(t.left)+1:2}function c(e,t){for(var r=0,n=0,i=e.getChildren();n<i.length;n++){var a=i[n];if(a===t)break;27!==a.kind&&r++}return r}function u(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:l(t,n),argumentIndex:r,argumentCount:i}}function l(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();206===n.kind&&(0===e.last(n.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1)));return e.createTextSpan(i,a-i)}function d(t,r,n){var i=t.getChildren(n),a=i.indexOf(r);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function _(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function f(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(r||(r={})),t.getSignatureHelpItems=function(t,r,n,c,u){var l=t.getTypeChecker(),d=e.findTokenOnLeftOfPosition(r,n);if(d){var p=!!c&&"characterTyped"===c.kind;if(!p||!e.isInString(r,n,d)&&!e.isInComment(r,n)){var h=!!c&&"invoked"===c.kind,y=function(t,r,n,i,c){for(var u=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",function(){return"Child: "+e.Debug.showSyntaxKind(t)+", parent: "+e.Debug.showSyntaxKind(t.parent)});var c=function(t,r,n,i){return function(t,r,n,i){var o=function(t,r,n){if(20===t.kind||27===t.kind){var i=t.parent;switch(i.kind){case 195:case 156:case 196:case 197:var o=a(t,r);if(!o)return;var c=o.argumentIndex,u=o.argumentCount,l=o.argumentsSpan,d=e.isMethodDeclaration(i)?n.getContextualTypeForObjectLiteralElement(i):n.getContextualType(i);return d&&{contextualType:d,argumentIndex:c,argumentCount:u,argumentsSpan:l};case 204:var _=function t(r){return e.isBinaryExpression(r.parent)?t(r.parent):r}(i),f=n.getContextualType(_),p=20===t.kind?0:s(i)-1,m=s(_);return f&&{contextualType:f,argumentIndex:p,argumentCount:m,argumentsSpan:e.createTextSpanFromNode(i)};default:return}}}(t,n,i);if(o){var c,u=o.contextualType,l=o.argumentIndex,d=o.argumentCount,_=o.argumentsSpan,f=u.getCallSignatures();return 1!==f.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(f),node:t,symbol:(c=u.symbol,"__type"===c.name&&e.firstDefined(c.declarations,function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0})||c)},argumentsSpan:_,argumentIndex:l,argumentCount:d}}}(t,0,n,i)||o(t,r,n)}(t,r,n,i);if(c)return{value:c}},l=t;c||!e.isBlock(l)&&!e.isSourceFile(l);l=l.parent){var d=u(l);if("object"==typeof d)return d.value}}(d,n,r,l,h);if(y){u.throwIfCancellationRequested();var v=function(t,r,n,a,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,r,n){if(!e.isCallOrNewExpression(r))return!1;var a=r.getChildren(n);switch(t.kind){case 20:return e.contains(a,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(a,o);case 28:return i(t,n,r.expression);default:return!1}}(a,s.node,n))return;var u=[],l=r.getResolvedSignatureForSignatureHelp(s.node,u,c);return 0===u.length?void 0:{kind:0,candidates:u,resolvedSignature:l};case 1:var d=s.called;if(o&&!i(a,n,e.isIdentifier(d)?d.parent:d))return;var u=e.getPossibleGenericSignatures(d,c,r);if(0!==u.length)return{kind:0,candidates:u,resolvedSignature:e.first(u)};var _=r.getSymbolAtLocation(d);return _&&{kind:1,symbol:_};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(y,l,r,d,p);return u.throwIfCancellationRequested(),v?l.runWithCancellationToken(u,function(e){return 0===v.kind?m(v.candidates,v.resolvedSignature,y,r,e):function(e,t,r,n){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[g(e,c,n,f(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(v.symbol,y,r,e)}):e.isSourceFileJS(r)?function(t,r,n){if(2!==t.invocation.kind){var i=_(t.invocation),a=e.isIdentifier(i)?i.text:e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),function(r){return e.firstDefined(r.getNamedDeclarations().get(a),function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,function(e){return m(a,a[0],t,r,e)})})})}}(y,t,u):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(n||(n={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=o(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var p=70246400;function m(t,r,n,i,a){var o=n.isTypeParameterList,s=n.argumentCount,c=n.argumentsSpan,u=n.invocation,l=n.argumentIndex,d=f(u),m=2===u.kind?u.symbol:a.getSymbolAtLocation(_(u)),g=m?e.symbolToDisplayParts(a,m,void 0,void 0):e.emptyArray,v=t.map(function(t){return function(t,r,n,i,a,o){var s=(n?function(t,r,n,i){var a=(t.target||t).typeParameters,o=e.createPrinter({removeComments:!0}),s=(a||e.emptyArray).map(function(e){return y(e,r,n,i,o)}),c=e.mapToDisplayParts(function(a){var s=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,n,p)]:[],c=e.createNodeArray(s.concat(t.parameters.map(function(e){return r.symbolToParameterDeclaration(e,n,p)})));o.writeList(2576,c,i,a)});return{isVariadic:!1,parameters:s,prefix:[e.punctuationPart(28)],suffix:[e.punctuationPart(30)].concat(c)}}:function(t,r,n,i){var a=t.hasRestParameter,o=e.createPrinter({removeComments:!0}),s=e.mapToDisplayParts(function(a){if(t.typeParameters&&t.typeParameters.length){var s=e.createNodeArray(t.typeParameters.map(function(e){return r.typeParameterToDeclaration(e,n)}));o.writeList(53776,s,i,a)}}),c=t.parameters.map(function(t){return function(t,r,n,i,a){var o=e.mapToDisplayParts(function(e){var o=r.symbolToParameterDeclaration(t,n,p);a.writeNode(4,o,i,e)}),s=r.isOptionalParameter(t.valueDeclaration);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:o,isOptional:s}}(t,r,n,i,o)});return{isVariadic:a,parameters:c,prefix:s.concat([e.punctuationPart(20)]),suffix:[e.punctuationPart(21)]}})(t,i,a,o),c=s.isVariadic,u=s.parameters,l=s.prefix,d=s.suffix,_=r.concat(l),f=d.concat(function(t,r,n){return e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)})}(t,a,i)),m=t.getDocumentationComment(i),g=t.getJsDocTags();return{isVariadic:c,prefixDisplayParts:_,suffixDisplayParts:f,separatorDisplayParts:h,parameters:u,documentation:m,tags:g}}(t,g,o,a,d,i)});0!==l&&e.Debug.assertLessThan(l,s);var b=t.indexOf(r);return e.Debug.assert(-1!==b),{items:v,applicableSpan:c,selectedItemIndex:b,argumentIndex:l,argumentCount:s}}function g(t,r,n,i,a){var o=e.symbolToDisplayParts(n,t),s=e.createPrinter({removeComments:!0}),c=r.map(function(e){return y(e,n,i,a,s)}),u=t.getDocumentationComment(n),l=t.getJsDocTags();return{isVariadic:!1,prefixDisplayParts:o.concat([e.punctuationPart(28)]),suffixDisplayParts:[e.punctuationPart(30)],separatorDisplayParts:h,parameters:c,documentation:u,tags:l}}var h=[e.punctuationPart(27),e.spacePart()];function y(t,r,n,i,a){var o=e.mapToDisplayParts(function(e){var o=r.typeParameterToDeclaration(t,n);a.writeNode(4,o,i,e)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(d||(d={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;e.getSourceMapper=function(r,n,i,a,o){var s,c=e.createGetCanonicalFileName(r);return{tryGetSourcePosition:function t(r){if(e.isDeclarationFileName(r.fileName)){var n=_(r.fileName);if(n){var i=d(r.fileName,n).getSourcePosition(r);return i===r?void 0:t(i)||i}}},tryGetGeneratedPosition:function(t){var r=o(),i=r.getCompilerOptions(),a=i.outFile||i.out,s=a?e.removeFileExtension(a)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(t.fileName,r.getCompilerOptions(),n,r.getCommonSourceDirectory(),c);if(void 0!==s){var u=_(s);if(u){var l=d(s,u).getGeneratedPosition(t);return l===t?void 0:l}}},toLineColumnOffset:function(e,t){return _(e).getLineAndCharacterOfPosition(t)},clearCache:function(){s=function(t){var r=e.createMap();return{get:function(n){if(r.has(n))return r.get(n);if(t.fileExists&&t.readFile&&t.fileExists(n)){var i=t.readFile(n),a={text:i,lineMap:void 0,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}};return r.set(n,a),a}}}}(a)}};function u(t){return e.toPath(t,n,c)}function l(t,r,n){var a=e.tryParseRawSourceMap(r);if(!(a&&a.sources&&a.file&&a.mappings))return t.sourceMapper=e.identitySourceMapConsumer;var u=o();return t.sourceMapper=e.createDocumentPositionMapper({getSourceFileLike:function(e){var t=u&&u.getSourceFileByPath(e);return void 0===t||t.resolvedPath!==e?s.get(e):t},getCanonicalFileName:c,log:i},a,n)}function d(r,n){if(!a.readFile||!a.fileExists)return n.sourceMapper=e.identitySourceMapConsumer;if(n.sourceMapper)return n.sourceMapper;var i=function(t){var r=s.get(u(t));if(r)return e.tryGetSourceMappingURL(r.text,e.getLineStarts(r))}(r);if(i){var o=t.exec(i);if(o){if(o[1]){var d=o[1];return l(n,e.base64decode(e.sys,d),r)}i=void 0}}var _=[];i&&_.push(i),_.push(r+".map");for(var f=0,p=_;f<p.length;f++){var m=p[f],g=e.toPath(m,e.getDirectoryPath(r),c);if(a.fileExists(g))return l(n,a.readFile(g),g)}return n.sourceMapper=e.identitySourceMapConsumer}function _(e){var t=u(e),r=o().getSourceFileByPath(t);return r&&r.resolvedPath===t?r:s.get(t)}}}(d||(d={})),function(e){function t(t){switch(t.kind){case 249:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&251===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 248:return t.name;default:return}}function r(t){return e.isReturnStatement(t)&&!!t.expression&&n(t.expression)}function n(t){if(!i(t)||!t.arguments.every(a))return!1;for(var r=t.expression;i(r)||e.isPropertyAccessExpression(r);){if(e.isCallExpression(r)&&!r.arguments.every(a))return!1;r=r.expression}return!0}function i(t){return e.isCallExpression(t)&&(e.hasPropertyAccessExpressionWithName(t,"then")||e.hasPropertyAccessExpressionWithName(t,"catch"))}function a(e){switch(e.kind){case 96:case 72:case 239:case 196:case 197:return!0;default:return!1}}e.computeSuggestionDiagnostics=function(n,i,a){i.getSemanticDiagnostics(n,a);var o,s=[],c=i.getTypeChecker();n.commonJsModuleIndicator&&(e.programContainsEs6Modules(i)||e.compilerOptionsIndicateEs6Modules(i.getCompilerOptions()))&&function(t){return t.statements.some(function(t){switch(t.kind){case 219:return t.declarationList.declarations.some(function(t){return!!t.initializer&&e.isRequireCall(function t(r){return e.isPropertyAccessExpression(r)?t(r.expression):r}(t.initializer),!0)});case 221:var r=t.expression;if(!e.isBinaryExpression(r))return e.isRequireCall(r,!0);var n=e.getAssignmentDeclarationKind(r);return 1===n||2===n;default:return!1}})}(n)&&s.push(e.createDiagnosticForNode((o=n.commonJsModuleIndicator,e.isBinaryExpression(o)?o.left:o),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var u=e.isSourceFileJS(n);if(function t(i){if(u)switch(i.kind){case 196:var a=e.getDeclarationOfExpando(i);if(a){var o=a.symbol;if(o&&(o.exports&&o.exports.size||o.members&&o.members.size)){s.push(e.createDiagnosticForNode(e.isVariableDeclaration(i.parent)?i.parent.name:i,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));break}}case 239:var l=i.symbol;l.members&&l.members.size>0&&s.push(e.createDiagnosticForNode(e.isVariableDeclaration(i.parent)?i.parent.name:i,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}else{if(e.isVariableStatement(i)&&i.parent===n&&2&i.declarationList.flags&&1===i.declarationList.declarations.length){var d=i.declarationList.declarations[0].initializer;d&&e.isRequireCall(d,!0)&&s.push(e.createDiagnosticForNode(d,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(i)&&s.push(e.createDiagnosticForNode(i.name||i,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(i)&&function(t,n,i){var a;!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&(a=t.body,e.forEachReturnStatement(a,r))&&function(e,t){var r=t.getTypeAtLocation(e),n=t.getSignaturesOfType(r,0),i=n.length?t.getReturnTypeOfSignature(n[0]):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}(t,n)&&i.push(e.createDiagnosticForNode(!t.name&&e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name)?t.parent.name:t,e.Diagnostics.This_may_be_converted_to_an_async_function))}(i,c,s),i.forEachChild(t)}(n),e.getAllowSyntheticDefaultImports(i.getCompilerOptions()))for(var l=0,d=n.imports;l<d.length;l++){var _=d[l],f=t(e.importFromModuleSpecifier(_));if(f){var p=e.getResolvedModule(n,_.text),m=p&&i.getSourceFile(p.resolvedFileName);m&&m.externalModuleIndicator&&e.isExportAssignment(m.externalModuleIndicator)&&m.externalModuleIndicator.isExportEquals&&s.push(e.createDiagnosticForNode(f,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(s,n.bindSuggestionDiagnostics),e.addRange(s,i.getSuggestionDiagnostics(n,a)),s.sort(function(e,t){return e.start-t.start})},e.isReturnStatementWithFixablePromiseHandler=r,e.isFixablePromiseHandler=n}(d||(d={})),function(e){!function(t){function r(t,r,i){var a=n(t,r,i);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(r);return 32&o?e.getDeclarationOfKind(r,209)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":a}function n(t,r,n){var a=t.getRootSymbols(r);if(1===a.length&&8192&e.first(a).flags&&0!==t.getTypeOfSymbolAtLocation(r,n).getNonNullableType().getCallSignatures().length)return"method";if(t.isUndefinedSymbol(r))return"var";if(t.isArgumentsSymbol(r))return"local var";if(100===n.kind&&e.isExpression(n))return"parameter";var o=e.getCombinedLocalAndExportSymbolFlags(r);if(3&o)return e.isFirstDeclarationOfSymbolParameter(r)?"parameter":r.valueDeclaration&&e.isVarConst(r.valueDeclaration)?"const":e.forEach(r.declarations,e.isLet)?"let":i(r)?"local var":"var";if(16&o)return i(r)?"local function":"function";if(32768&o)return"getter";if(65536&o)return"setter";if(8192&o)return"method";if(16384&o)return"constructor";if(4&o){if(33554432&o&&6&r.checkFlags){var s=e.forEach(t.getRootSymbols(r),function(t){var r=t.getFlags();if(98311&r)return"property";e.Debug.assert(!!(8208&r))});return s||(t.getTypeOfSymbolAtLocation(r,n).getCallSignatures().length?"method":"property")}switch(n.parent&&n.parent.kind){case 262:case 260:case 261:return 72===n.kind?"property":"JSX attribute";case 267:return"JSX attribute";default:return"property"}}return""}function i(t){return!t.parent&&e.forEach(t.declarations,function(t){if(196===t.kind)return!0;if(237!==t.kind&&239!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(279===r.kind||245===r.kind)return!1;return!0})}t.getSymbolKind=r,t.getSymbolModifiers=function(t){var r=t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):"",n=t&&16777216&t.flags?"optional":"";return r&&n?r+","+n:r||n},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(i,a,o,s,c,u,l){void 0===u&&(u=e.getMeaningFromLocation(c));var d,_,f,p,m,g,h=[],y=e.getCombinedLocalAndExportSymbolFlags(a),v=1&u?n(i,a,c):"",b=!1,x=100===c.kind&&e.isInExpressionContext(c);if(100===c.kind&&!x)return{displayParts:[e.keywordPart(100)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==v||32&y||2097152&y){"getter"!==v&&"setter"!==v||(v="property");var S=void 0;if(f=x?i.getTypeAtLocation(c):i.getTypeOfSymbolAtLocation(a.exportSymbol||a,c),c.parent&&189===c.parent.kind){var D=c.parent.name;(D===c||D&&0===D.getFullWidth())&&(c=c.parent)}var k=void 0;if(e.isCallOrNewExpression(c)?k=c:e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)?k=c.parent:c.parent&&e.isJsxOpeningLikeElement(c.parent)&&e.isFunctionLike(a.valueDeclaration)&&(k=c.parent),k){S=i.getResolvedSignature(k,[]);var C=192===k.kind||e.isCallExpression(k)&&98===k.expression.kind,T=C?f.getConstructSignatures():f.getCallSignatures();if(e.contains(T,S.target)||e.contains(T,S)||(S=T.length?T[0]:void 0),S){switch(C&&32&y?(v="constructor",H(f.symbol,v)):2097152&y?(G(v="alias"),h.push(e.spacePart()),C&&(h.push(e.keywordPart(95)),h.push(e.spacePart())),W(a)):H(a,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(e.punctuationPart(57)),h.push(e.spacePart()),16&e.getObjectFlags(f)||!f.symbol||(e.addRange(h,e.symbolToDisplayParts(i,f.symbol,s,void 0,5)),h.push(e.lineBreakPart())),C&&(h.push(e.keywordPart(95)),h.push(e.spacePart())),X(S,T,262144);break;default:X(S,T)}b=!0}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&y)||124===c.kind&&157===c.parent.kind){var E=c.parent;e.find(a.declarations,function(e){return e===(124===c.kind?E.parent:E)})&&(T=157===E.kind?f.getNonNullableType().getConstructSignatures():f.getNonNullableType().getCallSignatures(),S=i.isImplementationOfOverload(E)?T[0]:i.getSignatureFromDeclaration(E),157===E.kind?(v="constructor",H(f.symbol,v)):H(160!==E.kind||2048&f.symbol.flags||4096&f.symbol.flags?a:f.symbol,v),X(S,T),b=!0)}}if(32&y&&!b&&!x&&(K(),e.getDeclarationOfKind(a,209)?G("local class"):h.push(e.keywordPart(76)),h.push(e.spacePart()),W(a),Q(a,o)),64&y&&2&u&&(q(),h.push(e.keywordPart(110)),h.push(e.spacePart()),W(a),Q(a,o)),524288&y&&2&u&&(q(),h.push(e.keywordPart(140)),h.push(e.spacePart()),W(a),Q(a,o),h.push(e.spacePart()),h.push(e.operatorPart(59)),h.push(e.spacePart()),e.addRange(h,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(a),s,8388608))),384&y&&(q(),e.some(a.declarations,function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)})&&(h.push(e.keywordPart(77)),h.push(e.spacePart())),h.push(e.keywordPart(84)),h.push(e.spacePart()),W(a)),1536&y){q();var N=(z=e.getDeclarationOfKind(a,244))&&z.name&&72===z.name.kind;h.push(e.keywordPart(N?131:130)),h.push(e.spacePart()),W(a)}if(262144&y&&2&u)if(q(),h.push(e.punctuationPart(20)),h.push(e.textPart("type parameter")),h.push(e.punctuationPart(21)),h.push(e.spacePart()),W(a),a.parent)V(),W(a.parent,s),Q(a.parent,s);else{var A=e.getDeclarationOfKind(a,150);if(void 0===A)return e.Debug.fail();(z=A.parent)&&(e.isFunctionLikeKind(z.kind)?(V(),S=i.getSignatureFromDeclaration(z),161===z.kind?(h.push(e.keywordPart(95)),h.push(e.spacePart())):160!==z.kind&&z.name&&W(z.symbol),e.addRange(h,e.signatureToDisplayParts(i,S,o,32))):242===z.kind&&(V(),h.push(e.keywordPart(140)),h.push(e.spacePart()),W(z.symbol),Q(z.symbol,o)))}if(8&y&&(v="enum member",H(a,"enum member"),278===(z=a.declarations[0]).kind)){var w=i.getConstantValue(z);void 0!==w&&(h.push(e.spacePart()),h.push(e.operatorPart(59)),h.push(e.spacePart()),h.push(e.displayPart(e.getTextOfConstantValue(w),"number"==typeof w?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&y){if(q(),!b){var P=i.getAliasedSymbol(a);if(P!==a&&P.declarations&&P.declarations.length>0){var F=P.declarations[0],I=e.getNameOfDeclaration(F);if(I){var M=e.isModuleWithStringLiteralName(F)&&e.hasModifier(F,2),O="default"!==a.name&&!M,L=t(i,P,e.getSourceFileOfNode(F),F,I,u,O?a:P);h.push.apply(h,L.displayParts),h.push(e.lineBreakPart()),m=L.documentation,g=L.tags}}}switch(a.declarations[0].kind){case 247:h.push(e.keywordPart(85)),h.push(e.spacePart()),h.push(e.keywordPart(131));break;case 254:h.push(e.keywordPart(85)),h.push(e.spacePart()),h.push(e.keywordPart(a.declarations[0].isExportEquals?59:80));break;case 257:h.push(e.keywordPart(85));break;default:h.push(e.keywordPart(92))}h.push(e.spacePart()),W(a),e.forEach(a.declarations,function(t){if(248===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))h.push(e.spacePart()),h.push(e.operatorPart(59)),h.push(e.spacePart()),h.push(e.keywordPart(134)),h.push(e.punctuationPart(20)),h.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),h.push(e.punctuationPart(21));else{var n=i.getSymbolAtLocation(r.moduleReference);n&&(h.push(e.spacePart()),h.push(e.operatorPart(59)),h.push(e.spacePart()),W(n,s))}return!0}})}if(!b)if(""!==v){if(f)if(x?(q(),h.push(e.keywordPart(100))):H(a,v),"property"===v||"JSX attribute"===v||3&y||"local var"===v||x)if(h.push(e.punctuationPart(57)),h.push(e.spacePart()),f.symbol&&262144&f.symbol.flags){var R=e.mapToDisplayParts(function(t){var r=i.typeParameterToDeclaration(f,s);U().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(s)),t)});e.addRange(h,R)}else e.addRange(h,e.typeToDisplayParts(i,f,s));else(16&y||8192&y||16384&y||131072&y||98304&y||"method"===v)&&(T=f.getNonNullableType().getCallSignatures()).length&&X(T[0],T)}else v=r(i,a,c);if(!d&&(d=a.getDocumentationComment(i),_=a.getJsDocTags(),0===d.length&&4&y&&a.parent&&e.forEach(a.parent.declarations,function(e){return 279===e.kind})))for(var B=0,j=a.declarations;B<j.length;B++){var z;if((z=j[B]).parent&&204===z.parent.kind){var J=i.getSymbolAtLocation(z.parent.right);if(J&&(d=J.getDocumentationComment(i),_=J.getJsDocTags(),d.length>0))break}}return 0===d.length&&m&&(d=m),0===_.length&&g&&(_=g),{displayParts:h,documentation:d,symbolKind:v,tags:0===_.length?void 0:_};function U(){return p||(p=e.createPrinter({removeComments:!0})),p}function q(){h.length&&h.push(e.lineBreakPart()),K()}function K(){l&&(G("alias"),h.push(e.spacePart()))}function V(){h.push(e.spacePart()),h.push(e.keywordPart(93)),h.push(e.spacePart())}function W(t,r){l&&t===a&&(t=l);var n=e.symbolToDisplayParts(i,t,r||o,void 0,7);e.addRange(h,n),16777216&a.flags&&h.push(e.punctuationPart(56))}function H(t,r){q(),r&&(G(r),t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})&&(h.push(e.spacePart()),W(t)))}function G(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void h.push(e.textOrKeywordPart(t));default:return h.push(e.punctuationPart(20)),h.push(e.textOrKeywordPart(t)),void h.push(e.punctuationPart(21))}}function X(t,r,n){void 0===n&&(n=0),e.addRange(h,e.signatureToDisplayParts(i,t,s,32|n)),r.length>1&&(h.push(e.spacePart()),h.push(e.punctuationPart(20)),h.push(e.operatorPart(38)),h.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),h.push(e.spacePart()),h.push(e.textPart(2===r.length?"overload":"overloads")),h.push(e.punctuationPart(21)));var a=t.getDocumentationComment(i);d=0===a.length?void 0:a,_=t.getJsDocTags()}function Q(t,r){var n=e.mapToDisplayParts(function(n){var a=i.symbolToTypeParameterDeclarations(t,r);U().writeList(53776,a,e.getSourceFileOfNode(e.getParseTreeNode(r)),n)});e.addRange(h,n)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(d||(d={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.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.composite=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=r.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);r.moduleName&&(s.moduleName=r.moduleName),r.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(r.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),d={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=r):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=r)},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[]}},_=e.createProgram([o],a,d);return r.reportDiagnostics&&(e.addRange(i,_.getSyntacticDiagnostics(s)),e.addRange(i,_.getOptionsDiagnostics())),_.emit(void 0,void 0,void 0,void 0,r.transformers),void 0===c?e.Debug.fail("Output generation failed"):{outputText:c,diagnostics:i,sourceMapText:u}}var r;function n(t,n){r=r||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 i=function(r){if(!e.hasProperty(t,r.name))return"continue";var i=t[r.name];e.isString(i)?t[r.name]=e.parseCustomTypeOption(r,i,n):e.forEachEntry(r.type,function(e){return e===i})||n.push(e.createCompilerDiagnosticForInvalidCustomType(r))},a=0,o=r;a<o.length;a++){i(o[a])}return t}e.transpileModule=t,e.transpile=function(r,n,i,a,o){var s=t(r,{compilerOptions:n,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText},e.fixupCompilerOptions=n}(d||(d={})),function(e){!function(t){!function(e){e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"}(t.FormattingRequestKind||(t.FormattingRequestKind={}));var r=function(){function t(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}return t.prototype.updateContext=function(t,r,n,i,a){this.currentTokenSpan=e.Debug.assertDefined(t),this.currentTokenParent=e.Debug.assertDefined(r),this.nextTokenSpan=e.Debug.assertDefined(n),this.nextTokenParent=e.Debug.assertDefined(i),this.contextNode=e.Debug.assertDefined(a),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},t.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},t.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},t.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine},t.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},t.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},t.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},t.prototype.BlockIsOnOneLine=function(t){var r=e.findChildOfKind(t,18,this.sourceFile),n=e.findChildOfKind(t,19,this.sourceFile);return!(!r||!n)&&this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line},t}();t.FormattingContext=r}(e.formatting||(e.formatting={}))}(d||(d={})),function(e){!function(t){var r,n=e.createScanner(6,!1,0),i=e.createScanner(6,!1,1);!function(e){e[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText"}(r||(r={})),t.getFormattingScanner=function(t,r,a,o,s){var c=1===r?i:n;c.setText(t),c.setTextPos(a);var u,l,d,_,f,p=!0,m=s({advance:function(){f=void 0,c.getStartPos()!==a?p=!!l&&4===e.last(l).kind:c.scan(),u=void 0,l=void 0;for(var t=c.getStartPos();t<o;){var r=c.getToken();if(!e.isTrivia(r))break;c.scan();var n={pos:t,end:c.getStartPos(),kind:r};t=c.getStartPos(),u=e.append(u,n)}d=c.getStartPos()},readTokenInfo:function(t){e.Debug.assert(g());var r=function(e){switch(e.kind){case 32:case 67:case 68:case 48:case 47:return!0}return!1}(t)?1:13===t.kind?2:function(e){return 16===e.kind||17===e.kind}(t)?3:function(t){if(t.parent)switch(t.parent.kind){case 267:case 262:case 263:case 261:return e.isKeyword(t.kind)||72===t.kind}return!1}(t)?4:11===t.kind?5:0;if(f&&r===_)return h(f,t);c.getStartPos()!==d&&(e.Debug.assert(void 0!==f),c.setTextPos(d),c.scan());var n=function(t,r){var n,i=c.getToken();switch(_=0,r){case 1:if(30===i){_=1;var a=c.reScanGreaterToken();return e.Debug.assert(t.kind===a),a}break;case 2:if(42===(n=i)||64===n){_=2;var a=c.reScanSlashToken();return e.Debug.assert(t.kind===a),a}break;case 3:if(19===i)return _=3,c.reScanTemplateToken();break;case 4:return _=4,c.scanJsxIdentifier();case 5:return _=5,c.reScanJsxToken();case 0:break;default:e.Debug.assertNever(r)}return i}(t,r),i={pos:c.getStartPos(),end:c.getTextPos(),kind:n};for(l&&(l=void 0);c.getStartPos()<o&&(n=c.scan(),e.isTrivia(n));){var a={pos:c.getStartPos(),end:c.getTextPos(),kind:n};if(l||(l=[]),l.push(a),4===n){c.scan();break}}return h(f={leadingTrivia:u,trailingTrivia:l,token:i},t)},isOnToken:g,getCurrentLeadingTrivia:function(){return u},lastTrailingTriviaWasNewLine:function(){return p},skipToEndOf:function(e){c.setTextPos(e.end),d=c.getStartPos(),_=void 0,f=void 0,p=!1,u=void 0,l=void 0}});return f=void 0,c.setText(void 0),m;function g(){var t=f?f.token.kind:c.getToken();return(f?f.token.pos:c.getStartPos())<o&&1!==t&&!e.isTrivia(t)}function h(t,r){return e.isToken(r)&&t.token.kind!==r.kind&&(t.token.kind=r.kind),t}}}(e.formatting||(e.formatting={}))}(d||(d={})),function(e){!function(t){t.anyContext=e.emptyArray,function(e){e[e.Ignore=1]="Ignore",e[e.Space=2]="Space",e[e.NewLine=4]="NewLine",e[e.Delete=8]="Delete"}(t.RuleAction||(t.RuleAction={})),function(e){e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines"}(t.RuleFlags||(t.RuleFlags={}))}(e.formatting||(e.formatting={}))}(d||(d={})),function(e){!function(t){function r(e,t,r,n,a,o){return void 0===o&&(o=0),{leftTokenRange:i(t),rightTokenRange:i(r),rule:{debugName:e,context:n,action:a,flags:o}}}function n(e){return{tokens:e,isSpecific:!0}}function i(t){return"number"==typeof t?n([t]):e.isArray(t)?n(t):t}function a(t,r,i){void 0===i&&(i=[]);for(var a=[],o=t;o<=r;o++)e.contains(i,o)||a.push(o);return n(a)}function o(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!!t.options[e]}}function s(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!t.options[e]}}function c(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]}}function u(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]||t.TokensAreOnSameLine()}}function l(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}}function d(e){return 225===e.contextNode.kind}function _(e){return!d(e)}function f(e){switch(e.contextNode.kind){case 204:case 205:case 175:case 212:case 257:case 253:case 163:case 173:case 174:return!0;case 186:case 242:case 248:case 237:case 151:case 278:case 154:case 153:return 59===e.currentTokenSpan.kind||59===e.nextTokenSpan.kind;case 226:case 150:return 93===e.currentTokenSpan.kind||93===e.nextTokenSpan.kind;case 227:return 147===e.currentTokenSpan.kind||147===e.nextTokenSpan.kind}return!1}function p(e){return!f(e)}function m(e){return!g(e)}function g(t){var r=t.contextNode.kind;return 154===r||153===r||151===r||237===r||e.isFunctionLikeKind(r)}function h(e){return 205===e.contextNode.kind||175===e.contextNode.kind}function y(e){return e.TokensAreOnSameLine()||D(e)}function v(e){return 184===e.contextNode.kind||181===e.contextNode.kind||function(e){return S(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function b(e){return D(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function x(e){return S(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function S(e){return k(e.contextNode)}function D(e){return k(e.nextTokenParent)}function k(e){if(A(e))return!0;switch(e.kind){case 218:case 246:case 188:case 245:return!0}return!1}function C(e){switch(e.contextNode.kind){case 239:case 156:case 155:case 158:case 159:case 160:case 196:case 157:case 197:case 241:return!0}return!1}function T(e){return!C(e)}function E(e){return 239===e.contextNode.kind||196===e.contextNode.kind}function N(e){return A(e.contextNode)}function A(e){switch(e.kind){case 240:case 209:case 241:case 243:case 168:case 244:case 255:case 256:case 249:case 252:return!0}return!1}function w(e){switch(e.currentTokenParent.kind){case 240:case 244:case 243:case 274:case 245:case 232:return!0;case 218:var t=e.currentTokenParent.parent;if(!t||197!==t.kind&&196!==t.kind)return!0}return!1}function P(e){switch(e.contextNode.kind){case 222:case 232:case 225:case 226:case 227:case 224:case 235:case 223:case 231:case 274:return!0;default:return!1}}function F(e){return 188===e.contextNode.kind}function I(e){return function(e){return 191===e.contextNode.kind}(e)||function(e){return 192===e.contextNode.kind}(e)}function M(e){return 27!==e.currentTokenSpan.kind}function O(e){return 23!==e.nextTokenSpan.kind}function L(e){return 197===e.contextNode.kind}function R(e){return 183===e.contextNode.kind}function B(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function j(e){return 260!==e.contextNode.kind&&264!==e.contextNode.kind}function z(e){return 270===e.contextNode.kind||269===e.contextNode.kind}function J(e){return 267===e.nextTokenParent.kind}function U(e){return 267===e.contextNode.kind}function q(e){return 261===e.contextNode.kind}function K(e){return!C(e)&&!D(e)}function V(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&W(e.currentTokenParent)&&!W(e.nextTokenParent)}function W(t){for(;e.isExpressionNode(t);)t=t.parent;return 152===t.kind}function H(e){return 238===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function G(e){return 2!==e.formattingRequestKind}function X(e){return 244===e.contextNode.kind}function Q(e){return 168===e.contextNode.kind}function Y(e){return 161===e.contextNode.kind}function Z(e,t){if(28!==e.kind&&30!==e.kind)return!1;switch(t.kind){case 164:case 194:case 242:case 240:case 209:case 241:case 239:case 196:case 197:case 156:case 155:case 160:case 161:case 191:case 192:case 211:return!0;default:return!1}}function $(e){return Z(e.currentTokenSpan,e.currentTokenParent)||Z(e.nextTokenSpan,e.nextTokenParent)}function ee(e){return 194===e.contextNode.kind}function te(e){return 106===e.currentTokenSpan.kind&&200===e.currentTokenParent.kind}function re(e){return 207===e.contextNode.kind&&void 0!==e.contextNode.expression}function ne(e){return 213===e.contextNode.kind}t.getAllRules=function(){for(var i=[],S=0;S<=147;S++)i.push(S);function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:i.filter(function(t){return!e.some(function(e){return e===t})}),isSpecific:!1}}var A={tokens:i,isSpecific:!1},W=n(i.concat([3])),Z=a(73,147),ie=a(28,71),ae=[93,94,147,119,128],oe=[72].concat(e.typeKeywords),se=W,ce=n([72,3,76,85,92]),ue=n([21,3,82,103,88,83]),le=[r("IgnoreBeforeComment",A,[2,3],t.anyContext,1),r("IgnoreAfterLineComment",2,A,t.anyContext,1),r("NotSpaceBeforeColon",A,57,[B,p,m],8),r("SpaceAfterColon",57,A,[B,p],2),r("NoSpaceBeforeQuestionMark",A,56,[B,p],8),r("SpaceAfterQuestionMarkInConditionalOperator",56,A,[B,h],2),r("NoSpaceAfterQuestionMark",56,A,[B],8),r("NoSpaceBeforeDot",A,24,[B],8),r("NoSpaceAfterDot",24,A,[B],8),r("NoSpaceBetweenImportParenInImportType",92,20,[B,R],8),r("NoSpaceAfterUnaryPrefixOperator",[44,45,53,52],[8,9,72,20,22,18,100,95],[B,p],8),r("NoSpaceAfterUnaryPreincrementOperator",44,[72,20,100,95],[B],8),r("NoSpaceAfterUnaryPredecrementOperator",45,[72,20,100,95],[B],8),r("NoSpaceBeforeUnaryPostincrementOperator",[72,21,23,95],44,[B],8),r("NoSpaceBeforeUnaryPostdecrementOperator",[72,21,23,95],45,[B],8),r("SpaceAfterPostincrementWhenFollowedByAdd",44,38,[B,f],2),r("SpaceAfterAddWhenFollowedByUnaryPlus",38,38,[B,f],2),r("SpaceAfterAddWhenFollowedByPreincrement",38,44,[B,f],2),r("SpaceAfterPostdecrementWhenFollowedBySubtract",45,39,[B,f],2),r("SpaceAfterSubtractWhenFollowedByUnaryMinus",39,39,[B,f],2),r("SpaceAfterSubtractWhenFollowedByPredecrement",39,45,[B,f],2),r("NoSpaceAfterCloseBrace",19,[27,26],[B],8),r("NewLineBeforeCloseBraceInBlockContext",W,19,[x],4),r("SpaceAfterCloseBrace",19,k(21),[B,w],2),r("SpaceBetweenCloseBraceAndElse",19,83,[B],2),r("SpaceBetweenCloseBraceAndWhile",19,107,[B],2),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[B,F],8),r("SpaceAfterConditionalClosingParen",21,22,[P],2),r("NoSpaceBetweenFunctionKeywordAndStar",90,40,[E],8),r("SpaceAfterStarInGeneratorDeclaration",40,[72,20],[E],2),r("SpaceAfterFunctionInFuncDecl",90,A,[C],2),r("NewLineAfterOpenBraceInBlockContext",18,A,[x],4),r("SpaceAfterGetSetInMember",[126,137],72,[C],2),r("NoSpaceBetweenYieldKeywordAndStar",117,40,[B,re],8),r("SpaceBetweenYieldOrYieldStarAndOperand",[117,40],A,[B,re],2),r("NoSpaceBetweenReturnAndSemicolon",97,26,[B],8),r("SpaceAfterCertainKeywords",[105,101,95,81,97,104,122],A,[B],2),r("SpaceAfterLetConstInVariableDeclaration",[111,77],A,[B,H],2),r("NoSpaceBeforeOpenParenInFuncCall",A,20,[B,I,M],8),r("SpaceBeforeBinaryKeywordOperator",A,ae,[B,f],2),r("SpaceAfterBinaryKeywordOperator",ae,A,[B,f],2),r("SpaceAfterVoidOperator",106,A,[B,te],2),r("SpaceBetweenAsyncAndOpenParen",121,20,[L,B],2),r("SpaceBetweenAsyncAndFunctionKeyword",121,90,[B],2),r("NoSpaceBetweenTagAndTemplateString",[72,21],[14,15],[B],8),r("SpaceBeforeJsxAttribute",A,72,[J,B],2),r("SpaceBeforeSlashInJsxOpeningElement",A,42,[q,B],2),r("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",42,30,[q,B],8),r("NoSpaceBeforeEqualInJsxAttribute",A,59,[U,B],8),r("NoSpaceAfterEqualInJsxAttribute",59,A,[U,B],8),r("NoSpaceAfterModuleImport",[130,134],20,[B],8),r("SpaceAfterCertainTypeScriptKeywords",[118,76,125,80,84,85,86,126,109,92,110,130,131,113,115,114,133,137,116,140,144,129,127],A,[B],2),r("SpaceBeforeCertainTypeScriptKeywords",A,[86,109,144],[B],2),r("SpaceAfterModuleName",10,18,[X],2),r("SpaceBeforeArrow",A,37,[B],2),r("SpaceAfterArrow",37,A,[B],2),r("NoSpaceAfterEllipsis",25,72,[B],8),r("NoSpaceAfterOptionalParameters",56,[21,27],[B,p],8),r("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[B,Q],8),r("NoSpaceBeforeOpenAngularBracket",oe,28,[B,$],8),r("NoSpaceBetweenCloseParenAndAngularBracket",21,28,[B,$],8),r("NoSpaceAfterOpenAngularBracket",28,A,[B,$],8),r("NoSpaceBeforeCloseAngularBracket",A,30,[B,$],8),r("NoSpaceAfterCloseAngularBracket",30,[20,22,30,27],[B,$,T],8),r("SpaceBeforeAt",[21,72],58,[B],2),r("NoSpaceAfterAt",58,A,[B],8),r("SpaceAfterDecorator",A,[118,72,85,80,76,116,115,113,114,126,137,22,40],[V],2),r("NoSpaceBeforeNonNullAssertionOperator",A,52,[B,ne],8),r("NoSpaceAfterNewKeywordOnConstructorSignature",95,20,[B,Y],8)],de=[r("SpaceAfterConstructor",124,20,[o("insertSpaceAfterConstructor"),B],2),r("NoSpaceAfterConstructor",124,20,[c("insertSpaceAfterConstructor"),B],8),r("SpaceAfterComma",27,A,[o("insertSpaceAfterCommaDelimiter"),B,j,O],2),r("NoSpaceAfterComma",27,A,[c("insertSpaceAfterCommaDelimiter"),B,j],8),r("SpaceAfterAnonymousFunctionKeyword",90,20,[o("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),C],2),r("NoSpaceAfterAnonymousFunctionKeyword",90,20,[c("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),C],8),r("SpaceAfterKeywordInControl",Z,20,[o("insertSpaceAfterKeywordsInControlFlowStatements"),P],2),r("NoSpaceAfterKeywordInControl",Z,20,[c("insertSpaceAfterKeywordsInControlFlowStatements"),P],8),r("SpaceAfterOpenParen",20,A,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),B],2),r("SpaceBeforeCloseParen",A,21,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),B],2),r("SpaceBetweenOpenParens",20,20,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),B],2),r("NoSpaceBetweenParens",20,21,[B],8),r("NoSpaceAfterOpenParen",20,A,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),B],8),r("NoSpaceBeforeCloseParen",A,21,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),B],8),r("SpaceAfterOpenBracket",22,A,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),B],2),r("SpaceBeforeCloseBracket",A,23,[o("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),B],2),r("NoSpaceBetweenBrackets",22,23,[B],8),r("NoSpaceAfterOpenBracket",22,A,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),B],8),r("NoSpaceBeforeCloseBracket",A,23,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),B],8),r("SpaceAfterOpenBrace",18,A,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),v],2),r("SpaceBeforeCloseBrace",A,19,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),v],2),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[B,F],8),r("NoSpaceAfterOpenBrace",18,A,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),B],8),r("NoSpaceBeforeCloseBrace",A,19,[s("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),B],8),r("SpaceAfterTemplateHeadAndMiddle",[15,16],A,[o("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),B],2),r("SpaceBeforeTemplateMiddleAndTail",A,[16,17],[o("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),B],2),r("NoSpaceAfterTemplateHeadAndMiddle",[15,16],A,[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),B],8),r("NoSpaceBeforeTemplateMiddleAndTail",A,[16,17],[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),B],8),r("SpaceAfterOpenBraceInJsxExpression",18,A,[o("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),B,z],2),r("SpaceBeforeCloseBraceInJsxExpression",A,19,[o("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),B,z],2),r("NoSpaceAfterOpenBraceInJsxExpression",18,A,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),B,z],8),r("NoSpaceBeforeCloseBraceInJsxExpression",A,19,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),B,z],8),r("SpaceAfterSemicolonInFor",26,A,[o("insertSpaceAfterSemicolonInForStatements"),B,d],2),r("NoSpaceAfterSemicolonInFor",26,A,[c("insertSpaceAfterSemicolonInForStatements"),B,d],8),r("SpaceBeforeBinaryOperator",A,ie,[o("insertSpaceBeforeAndAfterBinaryOperators"),B,f],2),r("SpaceAfterBinaryOperator",ie,A,[o("insertSpaceBeforeAndAfterBinaryOperators"),B,f],2),r("NoSpaceBeforeBinaryOperator",A,ie,[c("insertSpaceBeforeAndAfterBinaryOperators"),B,f],8),r("NoSpaceAfterBinaryOperator",ie,A,[c("insertSpaceBeforeAndAfterBinaryOperators"),B,f],8),r("SpaceBeforeOpenParenInFuncDecl",A,20,[o("insertSpaceBeforeFunctionParenthesis"),B,C],2),r("NoSpaceBeforeOpenParenInFuncDecl",A,20,[c("insertSpaceBeforeFunctionParenthesis"),B,C],8),r("NewLineBeforeOpenBraceInControl",ue,18,[o("placeOpenBraceOnNewLineForControlBlocks"),P,b],4,1),r("NewLineBeforeOpenBraceInFunction",se,18,[o("placeOpenBraceOnNewLineForFunctions"),C,b],4,1),r("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",ce,18,[o("placeOpenBraceOnNewLineForFunctions"),N,b],4,1),r("SpaceAfterTypeAssertion",30,A,[o("insertSpaceAfterTypeAssertion"),B,ee],2),r("NoSpaceAfterTypeAssertion",30,A,[c("insertSpaceAfterTypeAssertion"),B,ee],8),r("SpaceBeforeTypeAnnotation",A,57,[o("insertSpaceBeforeTypeAnnotation"),B,g],2),r("NoSpaceBeforeTypeAnnotation",A,57,[c("insertSpaceBeforeTypeAnnotation"),B,g],8)],_e=[r("NoSpaceBeforeSemicolon",A,26,[B],8),r("SpaceBeforeOpenBraceInControl",ue,18,[u("placeOpenBraceOnNewLineForControlBlocks"),P,G,y],2,1),r("SpaceBeforeOpenBraceInFunction",se,18,[u("placeOpenBraceOnNewLineForFunctions"),C,D,G,y],2,1),r("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",ce,18,[u("placeOpenBraceOnNewLineForFunctions"),N,G,y],2,1),r("NoSpaceBeforeComma",A,27,[B],8),r("NoSpaceBeforeOpenBracket",k(121,74),22,[B],8),r("NoSpaceAfterCloseBracket",23,A,[B,K],8),r("SpaceAfterSemicolon",26,A,[B],2),r("SpaceBetweenForAndAwaitKeyword",89,122,[B],2),r("SpaceBetweenStatements",[21,82,83,74],A,[B,j,_],2),r("SpaceAfterTryFinally",[103,88],18,[B],2)];return le.concat(de,_e)}}(e.formatting||(e.formatting={}))}(d||(d={})),function(e){!function(t){var r;function n(){var n,a;return void 0===r&&(n=t.getAllRules(),a=function(e){for(var t=new Array(c*c),r=new Array(t.length),n=0,a=e;n<a.length;n++)for(var o=a[n],s=o.leftTokenRange.isSpecific&&o.rightTokenRange.isSpecific,l=0,d=o.leftTokenRange.tokens;l<d.length;l++)for(var _=d[l],f=0,p=o.rightTokenRange.tokens;f<p.length;f++){var m=p[f],g=i(_,m),h=t[g];void 0===h&&(h=t[g]=[]),u(h,o.rule,s,r,g)}return t}(n),r=function(t){var r=a[i(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];return r&&e.find(r,function(r){return e.every(r.context,function(e){return e(t)})})}),r}function i(t,r){return e.Debug.assert(t<=147&&r<=147,"Must compute formatting context from tokens"),t*c+r}t.getFormatContext=function(e){return{options:e,getRule:n()}};var a,o=5,s=31,c=148;function u(r,n,i,c,u){var l,d,_,f=1===n.action?i?a.IgnoreRulesSpecific:a.IgnoreRulesAny:n.context!==t.anyContext?i?a.ContextRulesSpecific:a.ContextRulesAny:i?a.NoContextRulesSpecific:a.NoContextRulesAny,p=c[u]||0;r.splice(function(e,t){for(var r=0,n=0;n<=t;n+=o)r+=e&s,e>>=o;return r}(p,f),0,n),c[u]=(_=1+((l=p)>>(d=f)&s),e.Debug.assert((_&s)===_,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),l&~(s<<d)|_<<d)}!function(e){e[e.IgnoreRulesSpecific=0]="IgnoreRulesSpecific",e[e.IgnoreRulesAny=1*o]="IgnoreRulesAny",e[e.ContextRulesSpecific=2*o]="ContextRulesSpecific",e[e.ContextRulesAny=3*o]="ContextRulesAny",e[e.NoContextRulesSpecific=4*o]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*o]="NoContextRulesAny"}(a||(a={}))}(e.formatting||(e.formatting={}))}(d||(d={})),function(e){!function(t){var r,n,i,a,o;function s(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!u(t.parent,t);)t=t.parent;return t}function u(t,r){switch(t.kind){case 240:case 241:return e.rangeContainsRange(t.members,r);case 244:var n=t.body;return!!n&&245===n.kind&&e.rangeContainsRange(n.statements,r);case 279:case 218:case 245:return e.rangeContainsRange(t.statements,r);case 274:return e.rangeContainsRange(t.block.statements,r)}return!1}function l(t,r,n,i){return t?d({pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end},r,n,i):[]}function d(r,n,i,a){var o=function(t,r){return function n(i){var a=e.forEachChild(i,function(n){return e.startEndContainsRange(n.getStart(r),n.end,t)&&n});if(a){var o=n(a);if(o)return o}return i}(r)}(r,n);return t.getFormattingScanner(n.text,n.languageVariant,function(t,r,n){var i=t.getStart(n);if(i===r.pos&&t.end===r.end)return i;var a=e.findPrecedingToken(r.pos,n);return a?a.end>=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,function(s){return _(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),function(e,r,n){for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,n),s,i,a,function(t,r){if(!t.length)return a;var n=t.filter(function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!n.length)return a;var i=0;return function(t){for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}}(n.parseDiagnostics,r),n)})}function _(r,n,i,a,o,s,c,u,l){var d,_,p,m,g=s.options,h=s.getRule,y=new t.FormattingContext(l,c,g),v=-1,b=[];if(o.advance(),o.isOnToken()){var x=l.getLineAndCharacterOfPosition(n.getStart(l)).line,S=x;n.decorators&&(S=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),function n(i,a,s,c,_,f){if(!e.rangeOverlapsWithStartEnd(r,i.getStart(l),i.getEnd()))return;var p=k(i,s,_,f);var h=a;e.forEachChild(i,function(e){b(e,-1,i,p,s,c,!1)},function(r){!function(r,n,a,s){e.Debug.assert(e.isNodeArray(r));var c=function(e,t){switch(e.kind){case 157:case 239:case 196:case 156:case 155:case 197:if(e.typeParameters===t)return 28;if(e.parameters===t)return 20;break;case 191:case 192:if(e.typeArguments===t)return 28;if(e.arguments===t)return 20;break;case 164:if(e.typeArguments===t)return 28;break;case 168:return 18}return 0}(n,r),u=s,d=a;if(0!==c)for(;o.isOnToken();){var _=o.readTokenInfo(n);if(_.token.end>r.pos)break;if(_.token.kind===c){d=l.getLineAndCharacterOfPosition(_.token.pos).line,x(_,n,s,n);var f=void 0;if(-1!==v)f=v;else{var p=e.getLineStartPositionForPosition(_.token.pos,l);f=t.SmartIndenter.findFirstNonWhitespaceColumn(p,_.token.pos,l,g)}u=k(n,a,f,g.indentSize)}else x(_,n,s,n)}for(var m=-1,h=0;h<r.length;h++){var y=r[h];m=b(y,m,i,u,d,d,!0,0===h)}var S=function(e){switch(e){case 20:return 21;case 28:return 30;case 18:return 19}return 0}(c);if(0!==S&&o.isOnToken()){var _=o.readTokenInfo(n);27===_.token.kind&&e.isCallLikeExpression(n)&&(o.advance(),_=o.isOnToken()?o.readTokenInfo(n):void 0),_&&_.token.kind===S&&e.rangeContainsRange(n,_.token)&&x(_,n,u,n,!0)}}(r,i,s,p)});for(;o.isOnToken();){var y=o.readTokenInfo(i);if(y.token.end>i.end)break;x(y,i,p,i)}function b(a,s,c,u,d,_,f,p){var y=a.getStart(l),b=l.getLineAndCharacterOfPosition(y).line,S=b;a.decorators&&(S=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var D=-1;if(f&&e.rangeContainsRange(r,c)&&-1!==(D=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,l,g);if(s!==i||r===u){var d=t.SmartIndenter.getBaseIndentation(g);return d>u?d:u}}return-1}(y,a.end,d,r,s))&&(s=D),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.end<r.pos&&o.skipToEndOf(a),s;if(0===a.getFullWidth())return s;for(;o.isOnToken();){var k=o.readTokenInfo(i);if(k.token.end>y)break;x(k,i,u,i)}if(!o.isOnToken())return s;if(e.isToken(a)&&11!==a.kind){var k=o.readTokenInfo(a);return e.Debug.assert(k.token.end===a.end,"Token end is child end"),x(k,i,u,a),s}var C=152===a.kind?b:_,T=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(g,e)?g.indentSize:0;return o===r?{indentation:r===m?v:a.getIndentation(),delta:Math.min(g.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===m?{indentation:v,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,l)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,b,D,i,u,C);if(n(a,h,b,S,T.indentation,T.delta),11===a.kind){var E={pos:a.getStart(),end:a.getEnd()};A(E,T.indentation,!0,!1)}return h=i,p&&187===c.kind&&-1===s&&(s=T.indentation),s}function x(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),_=!1;t.leadingTrivia&&T(t.leadingTrivia,n,h,i);var f=0,p=e.rangeContainsRange(r,t.token),g=l.getLineAndCharacterOfPosition(t.token.pos);if(p){var y=u(t.token),b=d;if(f=E(t.token,g,n,h,i),!y)if(0===f){var x=b&&l.getLineAndCharacterOfPosition(b.end).line;_=c&&g.line!==x}else _=1===f}if(t.trailingTrivia&&T(t.trailingTrivia,n,h,i),_){var S=p&&!u(t.token)?i.getIndentationForToken(g.line,t.token.kind,a,!!s):-1,D=!0;if(t.leadingTrivia){var k=i.getIndentationForComment(t.token.kind,S,a);D=C(t.leadingTrivia,k,D,function(e){return N(e.pos,k,!1)})}-1!==S&&D&&(N(t.token.pos,S,1===f),m=g.line,v=S)}o.advance(),h=n}}(n,n,x,S,i,a)}if(!o.isOnToken()){var D=o.getCurrentLeadingTrivia();D&&(C(D,i,!1,function(e){return E(e,l.getLineAndCharacterOfPosition(e.pos),n,n,void 0)}),function(){var e=d?d.end:r.pos,t=l.getLineAndCharacterOfPosition(e).line,n=l.getLineAndCharacterOfPosition(r.end).line;w(t,n+1,d)}())}return b;function k(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 83:case 107:case 58:return!1;case 42:case 30:switch(a.kind){case 262:case 263:case 261:return!1}break;case 22:case 23:if(181!==a.kind)return!1}return n!==t&&!(r.decorators&&i===function(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 240:return 76;case 241:return 110;case 239:return 90;case 243:return 243;case 158:return 126;case 159:return 137;case 156:if(t.asteriskToken)return 40;case 154:case 151:var r=e.getNameOfDeclaration(t);if(r)return r.kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e){r.parent&&t.SmartIndenter.shouldIndentChildNode(g,r.parent,r,l)&&(i+=e?g.indentSize:-g.indentSize,a=t.SmartIndenter.shouldIndentChildNode(g,r)?g.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(g,r,e,l,!0)?a:0}}function C(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o],u=e.rangeContainsRange(r,c);switch(c.kind){case 3:u&&A(c,n,!i),i=!1;break;case 2:i&&u&&a(c),i=!1;break;case 4:i=!0}}return i}function T(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o];if(e.isComment(c.kind)&&e.rangeContainsRange(r,c))E(c,l.getLineAndCharacterOfPosition(c.pos),n,i,a)}}function E(t,n,i,a,o){var s=0;u(t)||(d?s=function(t,r,n,i,a,o,s,c){y.updateContext(i,o,t,n,s);var u,d=h(y),_=0;if(d){switch(_=function(e,t,r,n,i){var a=i!==r;switch(e.action){case 1:return 0;case 8:if(t.end!==n.pos)return F(t.end,n.pos-t.end),a?2:0;break;case 4:if(1!==e.flags&&r!==i)return 0;var o=i-r;if(1!==o)return I(t.end,n.pos-t.end,g.newLineCharacter),a?0:1;break;case 2:if(1!==e.flags&&r!==i)return 0;var s=n.pos-t.end;if(1!==s||32!==l.text.charCodeAt(t.end))return I(t.end,n.pos-t.end," "),a?2:0}return 0}(d,i,a,t,r)){case 2:n.getStart(l)===t.pos&&c.recomputeIndentation(!1);break;case 1:n.getStart(l)===t.pos&&c.recomputeIndentation(!0);break;default:e.Debug.assert(0===_)}u=!(8&d.action)&&1!==d.flags}else u=!0;r!==a&&u&&w(a,r,i);return _}(t,n.line,i,d,p,_,a,o):w(l.getLineAndCharacterOfPosition(r.pos).line,n.line));return d=t,_=i,p=n.line,s}function N(t,r,n){var i=f(r,g);if(n)I(t,0,i);else{var a=l.getLineAndCharacterOfPosition(t),o=e.getStartPositionOfLine(a.line,l);(r!==function(e,t){for(var r=0,n=0;n<t;n++)9===l.text.charCodeAt(e+n)?r+=g.tabSize-r%g.tabSize:r++;return r}(o,a.character)||function(e,t){return e!==l.text.substr(t,e.length)}(i,o))&&I(o,a.character,i)}}function A(r,n,i,a){void 0===a&&(a=!0);var o=l.getLineAndCharacterOfPosition(r.pos).line,s=l.getLineAndCharacterOfPosition(r.end).line;if(o!==s){for(var c=[],u=r.pos,d=o;d<s;d++){var _=e.getEndLinePosition(d,l);c.push({pos:u,end:_}),u=e.getStartPositionOfLine(d+1,l)}if(a&&c.push({pos:u,end:r.end}),0!==c.length){var p=e.getStartPositionOfLine(o,l),m=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(p,c[0].pos,l,g);if(n!==m.column){var h=0;i&&(h=1,o++);for(var y=n-m.column,v=h;v<c.length;v++,o++){var b=e.getStartPositionOfLine(o,l),x=0===v?m:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(c[v].pos,c[v].end,l,g),S=x.column+y;if(S>0){var D=f(S,g);I(b,x.character,D)}else F(b,x.character)}}}}else i||N(r.pos,n,!1)}function w(t,r,n){for(var i=t;i<r;i++){var a=e.getStartPositionOfLine(i,l),o=e.getEndLinePosition(i,l);if(!(n&&(e.isComment(n.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(n.kind))&&n.pos<=o&&n.end>o)){var s=P(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),F(s,o+1-s))}}}function P(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function F(t,r){r&&b.push(e.createTextChangeFromStartLength(t,r,""))}function I(t,r,n){(r||n)&&b.push(e.createTextChangeFromStartLength(t,r,n))}}function f(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var u=Math.floor(t/r.tabSize),l=t-u*r.tabSize,d=void 0;return a||(a=[]),void 0===a[u]?a[u]=d=e.repeatString("\t",u):d=a[u],l?d+e.repeatString(" ",l):d}!function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.formatOnEnter=function(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,d({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return l(c(s(e,26,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return d({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return l(c(s(e,19,t)),t,r,5)},t.formatDocument=function(e,t){return d({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return d({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1)},t.formatNodeGivenIndentation=function(e,r,n,i,a,o){var s={pos:0,end:r.text.length};return t.getFormattingScanner(r.text,n,s.pos,s.end,function(t){return _(s,e,i,a,t,o,1,function(e){return!1},r)})},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(n||(n={})),t.getRangeOfEnclosingComment=function(t,r,n,i){void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&r<i.getEnd())){var o=(n=null===n?void 0:void 0===n?e.findPrecedingToken(r,t):n)&&e.getTrailingCommentRanges(t.text,n.end),s=e.getLeadingCommentRangesOfNode(i,t),c=e.concatenate(o,s);return c&&e.find(c,function(n){return e.rangeContainsPositionExclusive(n,r)||r===n.end&&(2===n.kind||r===t.getFullWidth())})}},t.getIndentationString=f}(e.formatting||(e.formatting={}))}(d||(d={})),function(e){!function(t){!function(r){var n,i;function a(e){return e.baseIndentSize||0}function o(e,t,r,n,i,o,u){for(var l=e.parent;l;){var f=!0;if(r){var p=e.getStart(i);f=p<r.pos||p>r.end}var m=s(l,e,i),h=m.line===t.line||_(l,e,t.line,i);if(f){var y=g(e,i,u,!h);if(-1!==y)return y+n;if(-1!==(y=c(e,l,t,h,i,u)))return y+n}S(u,l,e,i,o)&&!h&&(n+=u.indentSize);var v=d(l,e,t.line,i);l=(e=l).parent,t=v?i.getLineAndCharacterOfPosition(e.getStart(i)):m}return n+a(u)}function s(e,t,r){var n=f(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(279===r.kind||!i)?y(n,a,o):-1}function u(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function d(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function _(t,r,n,i){if(222===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,83,i);return e.Debug.assert(void 0!==a),l(a,i).line===n}return!1}function f(e,t){return e.parent&&p(e.getStart(t),e.getEnd(),e.parent,t)}function p(t,r,n,i){switch(n.kind){case 164:return a(n.typeArguments);case 188:return a(n.properties);case 187:return a(n.elements);case 168:return a(n.members);case 239:case 196:case 197:case 156:case 155:case 160:case 157:case 166:case 161:return a(n.typeParameters)||a(n.parameters);case 240:case 209:case 241:case 242:case 303:return a(n.typeParameters);case 192:case 191:return a(n.typeArguments)||a(n.arguments);case 238:return a(n.declarations);case 252:case 256:return a(n.elements);case 184:case 185:return a(n.elements)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i<n.length-1;i++)if(n[i].pos===t.pos&&n[i].end===t.end)return{pos:n[i-1].end,end:n[i+1].getStart(r)};return t}(n,a,i),t,r)?a:void 0}}function m(e,t,r){return e?y(t.getLineAndCharacterOfPosition(e.pos),t,r):-1}function g(e,t,r,n){if(e.parent&&238===e.parent.kind)return-1;var i=f(e,t);if(i){var a=i.indexOf(e);if(-1!==a){var o=h(i,a,t,r);if(-1!==o)return o}return m(i,t,r)+(n?r.indentSize:0)}return-1}function h(t,r,n,i){e.Debug.assert(r>=0&&r<t.length);for(var a=l(t[r],n),o=r-1;o>=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,n,i);a=l(t[o],n)}return-1}function y(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function v(t,r,n,i){for(var a=0,o=0,s=t;s<r;s++){var c=n.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(c))break;9===c?o+=i.tabSize+o%i.tabSize:o++,a++}return{column:o,character:a}}function b(e,t,r,n){return v(e,t,r,n).column}function x(t,r,n,i,a){var o=n?n.kind:0;switch(r.kind){case 221:case 240:case 209:case 241:case 243:case 242:case 187:case 218:case 245:case 188:case 168:case 181:case 170:case 246:case 272:case 271:case 195:case 189:case 191:case 192:case 219:case 254:case 230:case 205:case 185:case 184:case 262:case 265:case 261:case 270:case 155:case 160:case 161:case 151:case 165:case 166:case 177:case 193:case 201:case 256:case 252:case 257:case 253:case 154:return!0;case 237:case 275:return!(!t.indentMultiLineObjectLiteralBeginningOnBlankLine&&i&&188===o)||function(t,r){var n=e.skipTrivia(t.text,r.pos),i=t.getLineAndCharacterOfPosition(n).line,a=t.getLineAndCharacterOfPosition(r.end).line;return i===a}(i,n);case 223:case 224:case 226:case 227:case 225:case 222:case 239:case 196:case 156:case 197:case 157:case 158:case 159:return 218!==o;case 255:return 256!==o;case 249:return 250!==o||!!n.namedBindings&&252!==n.namedBindings.kind;case 260:return 263!==o;case 264:return 266!==o;case 174:case 173:if(168===o)return!1}return a}function S(e,t,r,n,i){return void 0===i&&(i=!1),x(e,t,r,n,!1)&&!(i&&r&&function(e,t){switch(e){case 230:case 234:case 228:case 229:return 218!==t.kind;default:return!1}}(r.kind,t))}!function(e){e[e.Unknown=-1]="Unknown"}(n||(n={})),r.getIndentation=function(r,n,i,s){if(void 0===s&&(s=!1),r>n.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),d=t.getRangeOfEnclosingComment(n,r,c||null);if(d&&3===d.kind)return function(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=v(s,r,t,n),u=c.column,l=c.character;return 0===u?u:42===t.text.charCodeAt(s+l)?u-1:u}(n,r,i,d);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r<c.end)return 0;var _=n.getLineAndCharacterOfPosition(r).line;if(i.indentStyle===e.IndentStyle.Block)return function(t,r,n){for(var i=r;i>0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(27===c.kind&&204!==c.parent.kind){var f=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?h(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==f)return f}var y=function(e,t,r){return t&&p(e,e,t,r)}(r,c.parent,n);return y&&!e.rangeContainsRange(y,c)?m(y,n,i)+i.indentSize:function(t,r,n,i,s,c){for(var d,_=n;_;){if(e.positionBelongsToNode(_,r,t)&&S(c,_,d,t,!0)){var f=l(_,t),p=u(n,_,i,t),m=0!==p?s&&2===p?c.indentSize:0:i!==f.line?c.indentSize:0;return o(_,f,void 0,m,t,!0,c)}var h=g(_,t,c,!0);if(-1!==h)return h;d=_,_=_.parent}return a(c)}(n,r,c,_,s,i)},r.getIndentationForNode=function(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return o(e,i,t,0,r,!1,n)},r.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=d,r.childStartsOnTheSameLineWithElseInIfStatement=_,r.getContainingList=f,r.findFirstNonWhitespaceCharacterAndColumn=v,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=S}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(d||(d={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function i(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function a(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var o,c;function u(t,r){return e.skipTrivia(t,r,!1,!0)}function l(e,t,r,n){return{pos:d(e,t,n,o.Start),end:_(e,r,n)}}function d(t,r,n,i){if(n.useNonAdjustedStartPosition)return r.getStart(t);var a=r.getFullStart(),s=r.getStart(t);if(a===s)return s;var c=e.getLineStartPositionForPosition(a,t);if(e.getLineStartPositionForPosition(s,t)===c)return i===o.Start?s:a;var l=a>0?1:0,d=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,c)+l,t);return d=u(t.text,d),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,d),t)}function _(t,r,n){var i=r.end;if(n.useNonAdjustedEndPosition||e.isExpression(r))return i;var a=e.skipTrivia(t.text,i,!0);return a!==i&&e.isLineBreak(t.text.charCodeAt(a-1))?a:i}function f(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&188===e.parent.kind)}!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start"}(o=t.Position||(t.Position={})),t.useNonAdjustedPositions={useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!0},function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(c||(c={}));var p,m=function(){function r(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=e.createMap(),this.deletedNodes=[]}return r.fromContext=function(t){return new r(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},r.with=function(e,t){var n=r.fromContext(e);return t(n),n.getChanges()},r.prototype.deleteRange=function(e,t){this.changes.push({kind:c.Remove,sourceFile:e,range:t})},r.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},r.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,!0)})},r.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={});var i=d(e,t,n,o.FullStart),a=_(e,r,n);this.deleteRange(e,{pos:i,end:a})},r.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={});var i=d(e,t,n,o.FullStart),a=void 0===r?e.text.length:d(e,r,n,o.FullStart);this.deleteRange(e,{pos:i,end:a})},r.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:c.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},r.prototype.replaceNode=function(e,r,n,i){void 0===i&&(i=t.useNonAdjustedPositions),this.replaceRange(e,l(e,r,r,i),n,i)},r.prototype.replaceNodeRange=function(e,r,n,i,a){void 0===a&&(a=t.useNonAdjustedPositions),this.replaceRange(e,l(e,r,n,a),i,a)},r.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:c.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},r.prototype.replaceNodeWithNodes=function(e,r,n,i){void 0===i&&(i=t.useNonAdjustedPositions),this.replaceRangeWithNodes(e,l(e,r,r,i),n,i)},r.prototype.replaceNodeWithText=function(e,r,n){this.replaceRangeWithText(e,l(e,r,r,t.useNonAdjustedPositions),n)},r.prototype.replaceNodeRangeWithNodes=function(e,r,n,i,a){void 0===a&&(a=t.useNonAdjustedPositions),this.replaceRangeWithNodes(e,l(e,r,n,a),i,a)},r.prototype.nextCommaToken=function(t,r){var n=e.findNextToken(r,r.parent,t);return n&&27===n.kind?n:void 0},r.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},r.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createRange(r),n,i)},r.prototype.insertNodesAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRangeWithNodes(t,e.createRange(r),n,i)},r.prototype.insertNodeAtTopOfFile=function(t,r,n){var i=function(t){for(var r,n=0,i=t.statements;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))break;r=a}var o=0,s=t.text;if(r)return o=r.end,f(),o;var c=e.getShebang(s);void 0!==c&&(o=c.length,f());var u=e.getLeadingCommentRanges(s,o);if(!u)return o;u.length&&3===u[0].kind&&e.isPinnedComment(s,u[0].pos)&&(o=u[0].end,f(),u=u.slice(1));for(var l=0,d=u;l<d.length;l++){var _=d[l];if(2!==_.kind||!e.isRecognizedTripleSlashComment(s,_.pos,_.end))break;o=_.end,f()}return o;function f(){if(o<s.length){var t=s.charCodeAt(o);e.isLineBreak(t)&&++o<s.length&&13===t&&10===s.charCodeAt(o)&&o++}}}(t);this.insertNodeAt(t,i,r,{prefix:0===i?void 0:this.newLineCharacter,suffix:(e.isLineBreak(t.text.charCodeAt(i))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")})},r.prototype.insertNodeBefore=function(e,t,r,n){void 0===n&&(n=!1),this.insertNodeAt(e,d(e,t,{},o.Start),r,this.getOptionsForInsertNodeBefore(t,n))},r.prototype.insertModifierBefore=function(t,r,n){var i=n.getStart(t);this.insertNodeAt(t,i,e.createToken(r),{suffix:" "})},r.prototype.insertLastModifierBefore=function(t,r,n){if(n.modifiers){var i=n.modifiers.end;this.insertNodeAt(t,i,e.createToken(r),{prefix:" "})}else this.insertModifierBefore(t,r,n)},r.prototype.insertCommentBeforeLine=function(t,r,n,i){var a=e.getStartPositionOfLine(r,t),o=e.getFirstNonSpaceCharacterPosition(t.text,a),s=k(t,o),c=e.getTouchingToken(t,s?o:n),u=t.text.slice(a,o),l=(s?"":this.newLineCharacter)+"//"+i+this.newLineCharacter+u;this.insertText(t,c.getStart(t),l)},r.prototype.insertJsdocCommentBefore=function(t,r,n){var i=r.getStart(t);if(r.jsDoc)for(var a=0,o=r.jsDoc;a<o.length;a++){var s=o[a];this.deleteRange(t,{pos:e.getLineStartPositionForPosition(s.getStart(t),t),end:_(t,s,{})})}var c=e.getPrecedingNonSpaceCharacterPosition(t.text,i-1),u=t.text.slice(c,i);this.insertNodeAt(t,i,n,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+u})},r.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:c.Text,sourceFile:e,range:t,text:r})},r.prototype.insertText=function(t,r,n){this.replaceRangeWithText(t,e.createRange(r),n)},r.prototype.tryInsertTypeAnnotation=function(t,r,n){var i;if(e.isFunctionLike(r)){if(!(i=e.findChildOfKind(r,21,t))){if(!e.isArrowFunction(r))return;i=e.first(r.parameters)}}else i=237!==r.kind&&r.questionToken?r.questionToken:r.name;this.insertNodeAt(t,i.end,n,{prefix:": "})},r.prototype.insertTypeParameters=function(t,r,n){var i=(e.findChildOfKind(r,20,t)||e.first(r.parameters)).getStart(t);this.insertNodesAt(t,i,n,{prefix:"<",suffix:">"})},r.prototype.getOptionsForInsertNodeBefore=function(t,r){return e.isStatement(t)||e.isClassElement(t)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.Debug.failBadSyntaxKind(t)},r.prototype.insertNodeAtConstructorStart=function(t,r,n){var i=e.firstOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeBefore(t,i,n):this.replaceConstructorBody(t,r,[n].concat(r.body.statements))},r.prototype.insertNodeAtConstructorEnd=function(t,r,n){var i=e.lastOrUndefined(r.body.statements);i&&r.body.multiLine?this.insertNodeAfter(t,i,n):this.replaceConstructorBody(t,r,r.body.statements.concat([n]))},r.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.createBlock(n,!0))},r.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=d(t,r.getLastToken(),{},o.Start);this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},r.prototype.insertNodeAtClassStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},r.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},r.prototype.insertNodeAtStartWorker=function(t,r,n){var i=r.getStart(t),a=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(i,t),i,t,this.formatContext.options)+this.formatContext.options.indentSize;this.insertNodeAt(t,y(r).pos,n,s({indentation:a},this.getInsertNodeAtStartPrefixSuffix(t,r)))},r.prototype.getInsertNodeAtStartPrefixSuffix=function(t,r){var n=e.isObjectLiteralExpression(r)?",":"";if(0===y(r).length){if(e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),{node:r,sourceFile:t})){var i=e.positionsAreOnSameLine.apply(void 0,h(r,t).concat([t]));return{prefix:this.newLineCharacter,suffix:n+(i?this.newLineCharacter:"")}}return{prefix:"",suffix:n+this.newLineCharacter}}return{prefix:this.newLineCharacter,suffix:n}},r.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},r.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},r.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},r.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},r.prototype.insertNodeAfterWorker=function(t,r,n){var i,a;return i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&149===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createRange(r.end),e.createToken(26)),_(t,r,{})},r.prototype.getInsertNodeAfterOptions=function(t,r){var n=this.getInsertNodeAfterOptionsWorker(r);return s({},n,{prefix:r.end===t.end&&e.isStatement(r)?n.prefix?"\n"+n.prefix:"\n":n.prefix})},r.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 240:case 244:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 237:case 10:case 72:return{prefix:", "};case 275:return{suffix:","+this.newLineCharacter};case 85:return{prefix:" "};case 151:return{};default:return e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t)),{suffix:this.newLineCharacter}}},r.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),197===r.kind){var i=e.findChildOfKind(r,37,t),a=e.findChildOfKind(r,20,t);a?(this.insertNodesAt(t,a.getStart(t),[e.createToken(90),e.createIdentifier(n)],{joiner:" "}),C(this,t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function "+n+"("),this.replaceRange(t,i,e.createToken(21))),218!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.createToken(18),e.createToken(97)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.createToken(26),e.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(r,196===r.kind?90:76,t).end;this.insertNodeAt(t,o,e.createIdentifier(n),{prefix:" "})}},r.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},r.prototype.insertNodeInListAfter=function(t,r,n,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(r,t)),i){var a=e.indexOfNode(i,r);if(!(a<0)){var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end);if(s&&f(r,s)){var c=e.getLineAndCharacterOfPosition(t,u(t.text,i[a+1].getFullStart())),l=e.getLineAndCharacterOfPosition(t,s.end),d=void 0,_=void 0;l.line===c.line?(_=s.end,d=function(e){for(var t="",r=0;r<e;r++)t+=" ";return t}(c.character-l.character)):_=e.getStartPositionOfLine(c.line,t);var p=""+e.tokenToString(s.kind)+t.text.substring(s.end,i[a+1].getStart(t));this.replaceRange(t,e.createRange(_,i[a+1].getStart(t)),n,{prefix:d,suffix:p})}}else{var m=r.getStart(t),g=e.getLineStartPositionForPosition(m,t),h=void 0,y=!1;if(1===i.length)h=27;else{var v=e.findPrecedingToken(r.pos,t);h=f(r,v)?v.kind:27,y=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==g}if(function(t,r){for(var n=r;n<t.length;){var i=t.charCodeAt(n);if(!e.isWhiteSpaceSingleLine(i))return 47===i;n++}return!1}(t.text,r.end)&&(y=!0),y){this.replaceRange(t,e.createRange(o),e.createToken(h));var b=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(g,m,t,this.formatContext.options),x=e.skipTrivia(t.text,o,!0,!1);x!==o&&e.isLineBreak(t.text.charCodeAt(x-1))&&x--,this.replaceRange(t,e.createRange(x),n,{indentation:b,prefix:this.newLineCharacter})}else this.replaceRange(t,e.createRange(o),n,{prefix:e.tokenToString(h)+" "})}}}else e.Debug.fail("node is not a list element")},r.prototype.finishClassesWithNodesInsertedAtStart=function(){var t=this;this.classesWithNodesInsertedAtStart.forEach(function(r){var n=r.node,i=r.sourceFile,a=h(n,i),o=a[0],s=a[1];e.positionsAreOnSameLine(o,s,i)&&o!==s-1&&t.deleteRange(i,e.createRange(o,s-1))})},r.prototype.finishDeleteDeclarations=function(){for(var t=this,r=new e.NodeSet,n=function(t,n){i.deletedNodes.some(function(r){return r.sourceFile===t&&e.rangeContainsRangeExclusive(r.node,n)})||(e.isArray(n)?i.deleteRange(t,e.rangeOfTypeParameters(n)):S.deleteDeclaration(i,r,t,n))},i=this,a=0,o=this.deletedNodes;a<o.length;a++){var s=o[a];n(s.sourceFile,s.node)}r.forEach(function(n){var i=n.getSourceFile(),a=e.formatting.SmartIndenter.getContainingList(n,i);if(n===e.last(a)){var o=e.findLastIndex(a,function(e){return!r.has(e)},a.length-2);-1!==o&&t.deleteRange(i,{pos:a[o].end,end:g(i,a[o+1])})}})},r.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var t=p.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),r=0,n=this.newFiles;r<n.length;r++){var i=n[r],a=i.oldFile,o=i.fileName,s=i.statements;t.push(p.newFileChanges(a,o,s,this.newLineCharacter,this.formatContext))}return t},r.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})},r}();function g(t,r){return e.skipTrivia(t.text,d(t,r,{},o.FullStart),!1,!0)}function h(t,r){return[e.findChildOfKind(t,18,r).end,e.findChildOfKind(t,19,r).end]}function y(t){return e.isObjectLiteralExpression(t)?t.properties:t.members}function v(t,r){for(var n=r.length-1;n>=0;n--){var i=r[n],a=i.span,o=i.newText;t=""+t.substring(0,a.start)+o+t.substring(e.textSpanEnd(a))}return t}function b(t){var n=e.visitEachChild(t,b,e.nullTransformationContext,x,b),a=e.nodeIsSynthesized(n)?n:Object.create(n);return a.pos=r(t),a.end=i(t),a}function x(t,n,a,o,s){var c=e.visitNodes(t,n,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=r(t),u.end=i(t),u}t.ChangeTracker=m,t.getNewFileText=function(e,t,r,n){return p.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,i,a,o){var s=i.map(function(e){return n(e,t,a).text}).join(a),c=e.createSourceFile("any file name",s,6,!0,r);return v(s,e.formatting.formatDocument(c,o))+a}function n(t,r,n){var i=new D(n),a="\n"===n?1:0;return e.createPrinter({newLine:a,neverAsciiEscape:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:b(t)}}t.getTextChangesFromChanges=function(t,r,i,a){return e.group(t,function(e){return e.sourceFile.path}).map(function(t){for(var o=t[0].sourceFile,s=e.stableSort(t,function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end}),u=function(t){e.Debug.assert(s[t].range.end<=s[t+1].range.pos,"Changes overlap",function(){return JSON.stringify(s[t].range)+" and "+JSON.stringify(s[t+1].range)})},l=0;l<s.length-1;l++)u(l);var d=s.map(function(t){return e.createTextChange(e.createTextSpanFromRange(t.range),function(t,r,i,a,o){if(t.kind===c.Remove)return"";if(t.kind===c.Text)return t.text;var s=t.options,u=void 0===s?{}:s,l=t.range.pos,d=function(t){return function(t,r,i,a,o,s,c){var u=a.indentation,l=a.prefix,d=a.delta,_=n(t,r,o),f=_.node,p=_.text;c&&c(f,p);var m=s.options,g=void 0!==u?u:e.formatting.SmartIndenter.getIndentation(i,r,m,l===o||e.getLineStartPositionForPosition(i,r)===i);void 0===d&&(d=e.formatting.SmartIndenter.shouldIndentChildNode(s.options,t)&&m.indentSize||0);var h={text:p,getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}},y=e.formatting.formatNodeGivenIndentation(f,h,r.languageVariant,g,d,s);return v(p,y)}(t,r,l,u,i,a,o)},_=t.kind===c.ReplaceWithMultipleNodes?t.nodes.map(function(t){return e.removeSuffix(d(t),i)}).join(t.options.joiner||i):d(t.node),f=u.preserveLeadingWhitespace||void 0!==u.indentation||e.getLineStartPositionForPosition(l,r)===l?_:_.replace(/^\s+/,"");return(u.prefix||"")+f+(u.suffix||"")}(t,o,r,i,a))});return{fileName:o.fileName,textChanges:d}})},t.newFileChanges=function(t,n,i,a,o){var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=n}(p||(p={})),t.applyChanges=v;var S,D=function(){function t(t){var r=this;this.lastNonTriviaPosition=0,this.writer=e.createTextWriter(t),this.onEmitNode=function(e,t,i){t&&n(t,r.lastNonTriviaPosition),i(e,t),t&&a(t,r.lastNonTriviaPosition)},this.onBeforeEmitNodeArray=function(e){e&&n(e,r.lastNonTriviaPosition)},this.onAfterEmitNodeArray=function(e){e&&a(e,r.lastNonTriviaPosition)},this.onBeforeEmitToken=function(e){e&&n(e,r.lastNonTriviaPosition)},this.onAfterEmitToken=function(e){e&&a(e,r.lastNonTriviaPosition)}}return t.prototype.setLastNonTriviaPosition=function(t,r){if(r||!function(t){return e.skipTrivia(t,0)===t.length}(t)){this.lastNonTriviaPosition=this.writer.getTextPos();for(var n=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-n-1));)n++;this.lastNonTriviaPosition-=n}},t.prototype.write=function(e){this.writer.write(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeComment=function(e){this.writer.writeComment(e)},t.prototype.writeKeyword=function(e){this.writer.writeKeyword(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeOperator=function(e){this.writer.writeOperator(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writePunctuation=function(e){this.writer.writePunctuation(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeTrailingSemicolon=function(e){this.writer.writeTrailingSemicolon(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeParameter=function(e){this.writer.writeParameter(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeProperty=function(e){this.writer.writeProperty(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeSpace=function(e){this.writer.writeSpace(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeStringLiteral=function(e){this.writer.writeStringLiteral(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeSymbol=function(e,t){this.writer.writeSymbol(e,t),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeLine=function(){this.writer.writeLine()},t.prototype.increaseIndent=function(){this.writer.increaseIndent()},t.prototype.decreaseIndent=function(){this.writer.decreaseIndent()},t.prototype.getText=function(){return this.writer.getText()},t.prototype.rawWrite=function(e){this.writer.rawWrite(e),this.setLastNonTriviaPosition(e,!1)},t.prototype.writeLiteral=function(e){this.writer.writeLiteral(e),this.setLastNonTriviaPosition(e,!0)},t.prototype.getTextPos=function(){return this.writer.getTextPos()},t.prototype.getLine=function(){return this.writer.getLine()},t.prototype.getColumn=function(){return this.writer.getColumn()},t.prototype.getIndent=function(){return this.writer.getIndent()},t.prototype.isAtStartOfLine=function(){return this.writer.isAtStartOfLine()},t.prototype.clear=function(){this.writer.clear(),this.lastNonTriviaPosition=0},t}();function k(t,r){return!(e.isInComment(t,r)||e.isInString(t,r)||e.isInTemplateString(t,r)||e.isInJSXText(t,r))}function C(e,t,r,n){void 0===n&&(n={});var i=d(t,r,n,o.FullStart),a=_(t,r,n);e.deleteRange(t,{pos:i,end:a})}function T(t,r,n,i){var a=e.Debug.assertDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:g(n,i),end:o===a.length-1?_(n,i,{}):g(n,a[o+1])})):C(t,n,i)}t.isValidLocationToAddComment=k,function(t){function r(t,r,n){if(n.parent.name){var i=e.Debug.assertDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else{C(t,r,e.getAncestor(n,249))}}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 151:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):T(t,n,i,a);break;case 249:C(t,i,a,a===i.imports[0].parent?{useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!1}:void 0);break;case 186:var s=a.parent;185===s.kind&&a!==e.last(s.elements)?C(t,i,a):T(t,n,i,a);break;case 237:!function(t,r,n,i){var a=i.parent;if(274!==a.kind)if(1===a.declarations.length){var o=a.parent;switch(o.kind){case 227:case 226:t.replaceNode(n,i,e.createObjectLiteral());break;case 225:C(t,n,a);break;case 219:C(t,n,o);break;default:e.Debug.assertNever(o)}}else T(t,r,n,i);else t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n))}(t,n,i,a);break;case 150:T(t,n,i,a);break;case 253:var c=a.parent;1===c.elements.length?r(t,i,c):T(t,n,i,a);break;case 251:r(t,i,a);break;default:e.isImportClause(a.parent)&&a.parent.name===a?function(t,r,n){if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else C(t,r,n.name)}else C(t,r,n.parent)}(t,i,a.parent):e.isCallLikeExpression(a.parent)?T(t,n,i,a):C(t,i,a,26===a.kind?{useNonAdjustedEndPosition:!0}:void 0)}}}(S||(S={})),t.deleteNode=C}(e.textChanges||(e.textChanges={}))}(d||(d={})),function(e){!function(t){var r=e.createMultiMap(),n=e.createMap();function i(t){return e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t)}function a(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function o(e,t){return{changes:e,commands:t}}function s(t,r,n){for(var i=t.program,a=t.sourceFile,o=t.cancellationToken,s=0,c=i.getSemanticDiagnostics(a,o).concat(e.computeSuggestionDiagnostics(a,i,o));s<c.length;s++){var u=c[s];e.contains(r,u.code)&&n(u)}}t.createCodeFixActionNoFixId=function(e,t,r){return a(e,i(r),t,void 0,void 0)},t.createCodeFixAction=function(e,t,r,n,o,s){return a(e,i(r),t,n,i(o),s)},t.registerCodeFix=function(t){for(var i=0,a=t.errorCodes;i<a.length;i++){var o=a[i];r.add(String(o),t)}if(t.fixIds)for(var s=0,c=t.fixIds;s<c.length;s++){var u=c[s];e.Debug.assert(!n.has(u)),n.set(u,t)}},t.getSupportedErrorCodes=function(){return e.arrayFrom(r.keys())},t.getFixes=function(t){return e.flatMap(r.get(String(t.errorCode))||e.emptyArray,function(e){return e.getCodeActions(t)})},t.getAllFixes=function(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=o,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return o(e.textChanges.ChangeTracker.with(t,function(e){return s(t,r,function(t){return n(e,t,i)})}),0===i.length?void 0:i)},t.eachDiagnostic=s}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r=e.createMap();t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(t){return e.arrayFrom(e.flatMapIterator(r.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(t)}))},t.getEditsForRefactor=function(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}}(e.refactor||(e.refactor={})),e.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)}}(d||(d={})),function(e){!function(t){var r="addConvertToUnknownForNonOverlappingTypes",n=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.Debug.assertDefined(e.findAncestor(i,function(t){return e.isAsExpression(t)||e.isTypeAssertion(t)})),o=e.isAsExpression(a)?e.createAsExpression(a.expression,e.createKeywordTypeNode(143)):e.createTypeAssertion(e.createKeywordTypeNode(143),a.expression);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,a,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.createCall(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="annotateWithTypeFromJSDoc",n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,a)}function a(t){return function(t){return e.isFunctionLikeDeclaration(t)||237===t.kind||153===t.kind||154===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some(function(t){return!!e.getJSDocType(t)}))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i.length&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.createToken(20));for(var o=0,s=n.parameters;o<s.length;o++){var u=s[o];if(!u.type){var l=e.getJSDocType(u);l&&t.tryInsertTypeAnnotation(r,u,c(l))}}if(a&&t.insertNodeAfter(r,e.last(n.parameters),e.createToken(21)),!n.type){var d=e.getJSDocReturnType(n);d&&t.tryInsertTypeAnnotation(r,n,c(d))}}else{var _=e.Debug.assertDefined(e.getJSDocType(n));e.Debug.assert(!n.type),t.tryInsertTypeAnnotation(r,n,c(_))}}function c(t){switch(t.kind){case 284:case 285:return e.createTypeReferenceNode("any",e.emptyArray);case 288:return function(t){return e.createUnionTypeNode([e.visitNode(t.type,c),e.createTypeReferenceNode("undefined",e.emptyArray)])}(t);case 287:return c(t.type);case 286:return function(t){return e.createUnionTypeNode([e.visitNode(t.type,c),e.createTypeReferenceNode("null",e.emptyArray)])}(t);case 290:return function(t){return e.createArrayTypeNode(e.visitNode(t.type,c))}(t);case 289:return function(t){return e.createFunctionTypeNode(e.emptyArray,t.parameters.map(u),t.type)}(t);case 164:return function(t){var r=t.typeName,n=t.typeArguments;if(e.isIdentifier(t.typeName)){if(e.isJSDocIndexSignature(t))return function(t){var r=e.createParameter(void 0,void 0,void 0,135===t.typeArguments[0].kind?"n":"s",void 0,e.createTypeReferenceNode(135===t.typeArguments[0].kind?"number":"string",[]),void 0),n=e.createTypeLiteralNode([e.createIndexSignature(void 0,void 0,[r],t.typeArguments[1])]);return e.setEmitFlags(n,1),n}(t);var i=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1)}r=e.createIdentifier(i),n="Array"!==i&&"Promise"!==i||t.typeArguments?e.visitNodes(t.typeArguments,c):e.createNodeArray([e.createTypeReferenceNode("any",e.emptyArray)])}return e.createTypeReferenceNode(r,n)}(t);default:var r=e.visitEachChild(t,c,void 0);return e.setEmitFlags(r,1),r}}function u(t){var r=t.parent.parameters.indexOf(t),n=290===t.type.kind&&r===t.parent.parameters.length-1,i=t.name||(n?"rest":"arg"+r),a=n?e.createToken(25):t.dotDotDotToken;return e.createParameter(t.decorators,t.modifiers,a,i,t.questionToken,e.visitNode(t.type,c),t.initializer)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=i(n.sourceFile,n.span.start);if(a){var o=e.textChanges.ChangeTracker.with(n,function(e){return s(e,n.sourceFile,a)});return[t.createCodeFixAction(r,o,e.Diagnostics.Annotate_with_type_from_JSDoc,r,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=i(t.file,t.start);r&&s(e,t.file,r)})}}),t.parameterShouldGetTypeFromJSDoc=a}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r,n="inferFromUsage",i=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code];function a(t,r){switch(t){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(r))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function o(t,n,i,a,o,m,g,h){if(e.isParameterPropertyModifier(i.kind)||72===i.kind||25===i.kind||100===i.kind){var y=i.parent;switch(a=function(t){switch(t){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return t}(a)){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(y)&&g(y)||e.isPropertyDeclaration(y)||e.isPropertySignature(y))return s(t,n,y,o,h,m),y;if(e.isPropertyAccessExpression(y)){var v=_(p(y.name,o,m),y,o,h);if(v){var b=e.createJSDocTypeTag(e.createJSDocTypeExpression(v),"");d(t,n,e.cast(y.parent.parent,e.isExpressionStatement),[b])}return y}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var x=o.getTypeChecker().getSymbolAtLocation(i);return x&&x.valueDeclaration&&e.isVariableDeclaration(x.valueDeclaration)&&g(x.valueDeclaration)?(s(t,n,x.valueDeclaration,o,h,m),x.valueDeclaration):void 0}var S=e.getContainingFunction(i);if(void 0!==S)switch(a){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(S))return c(t,n,S,o,h,m),S;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(g(S)){var D=e.cast(y,e.isParameter);return function(t,n,i,a,o,s,c){if(!e.isIdentifier(i.name))return;var d=function(t,n,i,a){var o;switch(t.kind){case 157:o=e.findChildOfKind(t,124,n);break;case 197:case 196:var s=t.parent;o=e.isVariableDeclaration(s)&&e.isIdentifier(s.name)?s.name:t.name;break;case 239:case 156:o=t.name}if(o)return r.inferTypeForParametersFromReferences(f(o,i,a),t,i,a)}(a,n,o,c)||a.parameters.map(function(t){return{declaration:t,type:e.isIdentifier(t.name)?p(t.name,o,c):o.getTypeChecker().getAnyType()}});if(e.Debug.assert(a.parameters.length===d.length),e.isInJSFile(a))l(t,n,d,o,s);else{var _=e.isArrowFunction(a)&&!e.findChildOfKind(a,20,n);_&&t.insertNodeBefore(n,e.first(a.parameters),e.createToken(20));for(var m=0,g=d;m<g.length;m++){var h=g[m],y=h.declaration,v=h.type;!y||y.type||y.initializer||u(t,n,y,v,o,s)}_&&t.insertNodeAfter(n,e.last(a.parameters),e.createToken(21))}}(t,n,D,S,o,h,m),D}return;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:return e.isGetAccessorDeclaration(S)&&e.isIdentifier(S.name)?(u(t,n,S,p(S.name,o,m),o,h),S):void 0;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:return e.isSetAccessorDeclaration(S)?(c(t,n,S,o,h,m),S):void 0;default:return e.Debug.fail(String(a))}}}function s(t,r,n,i,a,o){e.isIdentifier(n.name)&&u(t,r,n,p(n.name,i,o),i,a)}function c(t,r,n,i,a,o){var s=e.firstOrUndefined(n.parameters);if(s&&e.isIdentifier(n.name)&&e.isIdentifier(s.name)){var c=p(n.name,i,o);c===i.getTypeChecker().getAnyType()&&(c=p(s.name,i,o)),e.isInJSFile(n)?l(t,r,[{declaration:s,type:c}],i,a):u(t,r,s,c,i,a)}}function u(t,r,n,i,a,o){var s=_(i,n,a,o);if(s)if(e.isInJSFile(r)&&153!==n.kind){var c=e.isVariableDeclaration(n)?e.tryCast(n.parent.parent,e.isVariableStatement):n;if(!c)return;var u=e.createJSDocTypeExpression(s);d(t,r,c,[e.isGetAccessorDeclaration(n)?e.createJSDocReturnTag(u,""):e.createJSDocTypeTag(u,"")])}else t.tryInsertTypeAnnotation(r,n,s)}function l(t,r,n,i,a){var o=n.length&&n[0].declaration.parent;o&&d(t,r,o,e.mapDefined(n,function(t){var r=t.declaration;if(!r.initializer&&!e.getJSDocType(r)&&e.isIdentifier(r.name)){var n=t.type&&_(t.type,r,i,a),o=e.getSynthesizedClone(r.name);return e.setEmitFlags(o,3584),n&&e.createJSDocParamTag(o,!!t.isOptional,e.createJSDocTypeExpression(n),"")}}))}function d(t,r,n,i){var a=e.mapDefined(n.jsDoc,function(e){return e.comment}),o=e.flatMapToMutable(n.jsDoc,function(e){return e.tags}),s=i.filter(function(t){return!o||!o.some(function(r,n){var i=function(t,r){if(t.kind!==r.kind)return;switch(t.kind){case 299:var n=t,i=r;return e.isIdentifier(n.name)&&e.isIdentifier(i.name)&&n.name.escapedText===i.name.escapedText?e.createJSDocParamTag(i.name,i.isBracketed,i.typeExpression,n.comment):void 0;case 300:return e.createJSDocReturnTag(r.typeExpression,t.comment)}}(r,t);return i&&(o[n]=i),!!i})}),c=e.createJSDocComment(a.join("\n"),e.createNodeArray((o||e.emptyArray).concat(s)));t.insertJsdocCommentBefore(r,n,c)}function _(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){a=!1},s=i.typeToTypeNode(e,t,void 0,{trackSymbol:function(e,t,r){a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:{readFile:n.readFile,fileExists:n.fileExists,directoryExists:n.directoryExists,getSourceFiles:r.getSourceFiles,getCurrentDirectory:r.getCurrentDirectory,getCommonSourceDirectory:r.getCommonSourceDirectory}});return a?s:void 0}function f(t,r,n){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n),function(t){return 0!==t.kind?e.tryCast(t.node,e.isIdentifier):void 0})}function p(e,t,n){var i=f(e,t,n),a=t.getTypeChecker(),o=r.inferTypesFromReferences(i,a,n);return r.unifyFromContext(o,a)}t.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i,s=r.sourceFile,c=r.program,u=r.span.start,l=r.errorCode,d=r.cancellationToken,_=r.host,f=e.getTokenAtPosition(s,u),p=e.textChanges.ChangeTracker.with(r,function(t){i=o(t,s,f,l,c,d,e.returnTrue,_)}),m=i&&e.getNameOfDeclaration(i);return m&&0!==p.length?[t.createCodeFixAction(n,p,[a(l,f),m.getText(s)],n,e.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[n],getAllCodeActions:function(r){var n=r.sourceFile,a=r.program,s=r.cancellationToken,c=r.host,u=e.nodeSeenTracker();return t.codeFixAll(r,i,function(t,r){o(t,n,e.getTokenAtPosition(r.file,r.start),r.code,a,s,u,c)})}}),function(t){function r(e,t,r){for(var i={},a=0,s=e;a<s.length;a++){var c=s[a];r.throwIfCancellationRequested(),n(c,t,i)}return o(i,t)}function n(t,r,a){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;switch(t.parent.kind){case 203:a.isNumber=!0;break;case 202:!function(e,t){switch(e.operator){case 44:case 45:case 39:case 53:t.isNumber=!0;break;case 38:t.isNumberOrString=!0}}(t.parent,a);break;case 204:!function(t,r,n,i){switch(r.operatorToken.kind){case 41:case 40:case 42:case 43:case 46:case 47:case 48:case 49:case 50:case 51:case 61:case 63:case 62:case 64:case 65:case 69:case 70:case 71:case 66:case 68:case 67:case 39:case 28:case 31:case 30:case 32:var a=n.getTypeAtLocation(r.left===t?r.right:r.left);1056&a.flags?u(i,a):i.isNumber=!0;break;case 60:case 38:var o=n.getTypeAtLocation(r.left===t?r.right:r.left);1056&o.flags?u(i,o):296&o.flags?i.isNumber=!0:132&o.flags?i.isString=!0:i.isNumberOrString=!0;break;case 59:case 33:case 35:case 36:case 34:u(i,n.getTypeAtLocation(r.left===t?r.right:r.left));break;case 93:t===r.left&&(i.isString=!0);break;case 55:t!==r.left||237!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||u(i,n.getTypeAtLocation(r.right))}}(t,t.parent,r,a);break;case 271:case 272:!function(e,t,r){u(r,t.getTypeAtLocation(e.parent.parent.expression))}(t.parent,r,a);break;case 191:case 192:t.parent.expression===t?function(e,t,r){var i={argumentTypes:[],returnType:{}};if(e.arguments)for(var a=0,o=e.arguments;a<o.length;a++){var s=o[a];i.argumentTypes.push(t.getTypeAtLocation(s))}n(e,t,i.returnType),191===e.kind?(r.callContexts||(r.callContexts=[])).push(i):(r.constructContexts||(r.constructContexts=[])).push(i)}(t.parent,r,a):i(t,r,a);break;case 189:!function(t,r,i){var a=e.escapeLeadingUnderscores(t.name.text);i.properties||(i.properties=e.createUnderscoreEscapedMap());var o=i.properties.get(a)||{};n(t,r,o),i.properties.set(a,o)}(t.parent,r,a);break;case 190:!function(e,t,r,i){if(t===e.argumentExpression)return void(i.isNumberOrString=!0);var a=r.getTypeAtLocation(e.argumentExpression),o={};n(e,r,o),296&a.flags?i.numberIndexContext=o:i.stringIndexContext=o}(t.parent,t,r,a);break;case 237:var o=t.parent,s=o.name,c=o.initializer;if(t===s){c&&u(a,r.getTypeAtLocation(c));break}default:return i(t,r,a)}}function i(t,r,n){e.isExpressionNode(t)&&u(n,r.getContextualType(t))}function a(t,r,n){if(void 0===n&&(n=r.getAnyType()),!t.length)return n;var i=r.getUnionType([r.getStringType(),r.getNumberType()]),a=function(t,r){for(var n=[],i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=r;s<c.length;s++){var u=c[s],l=u.high,d=u.low;l(o)&&(e.Debug.assert(!d(o)),n.push(d))}return t.filter(function(e){return n.every(function(t){return!t(e)})})}(t,[{high:function(e){return e===r.getStringType()||e===r.getNumberType()},low:function(e){return e===i}},{high:function(e){return!(16385&e.flags)},low:function(e){return!!(16385&e.flags)}},{high:function(e){return!(114689&e.flags||16&r.getObjectFlags(e))},low:function(e){return!!(16&r.getObjectFlags(e))}}]),o=a.filter(function(e){return 16&r.getObjectFlags(e)});return o.length&&(a=a.filter(function(e){return!(16&r.getObjectFlags(e))})).push(function(t,r){if(1===t.length)return t[0];for(var n=[],i=[],a=[],o=[],s=!1,c=!1,u=e.createMultiMap(),l=0,d=t;l<d.length;l++){for(var _=d[l],f=0,p=r.getPropertiesOfType(_);f<p.length;f++){var m=p[f];u.add(m.name,r.getTypeOfSymbolAtLocation(m,m.valueDeclaration))}n.push.apply(n,r.getSignaturesOfType(_,0)),i.push.apply(i,r.getSignaturesOfType(_,1)),_.stringIndexInfo&&(a.push(_.stringIndexInfo.type),s=s||_.stringIndexInfo.isReadonly),_.numberIndexInfo&&(o.push(_.numberIndexInfo.type),c=c||_.numberIndexInfo.isReadonly)}var g=e.mapEntries(u,function(e,n){var i=n.length<t.length?16777216:0,a=r.createSymbol(4|i,e);return a.type=r.getUnionType(n),[e,a]});return r.createAnonymousType(t[0].symbol,g,n,i,a.length?r.createIndexInfo(r.getUnionType(a),s):void 0,o.length?r.createIndexInfo(r.getUnionType(o),c):void 0)}(o,r)),r.getWidenedType(r.getUnionType(a))}function o(t,r){var n=[];if(t.isNumber&&n.push(r.getNumberType()),t.isString&&n.push(r.getStringType()),t.isNumberOrString&&n.push(r.getUnionType([r.getStringType(),r.getNumberType()])),n.push.apply(n,(t.candidateTypes||[]).map(function(e){return r.getBaseTypeOfLiteralType(e)})),t.properties&&l(t.properties.get("then"))){var i=s(0,t.properties.get("then").callContexts,!1,r).getCallSignatures().map(function(e){return e.getReturnType()});i.push(r.createPromiseType(i.length?r.getUnionType(i,2):r.getAnyType()))}else t.properties&&l(t.properties.get("push"))&&n.push(r.createArrayType(s(0,t.properties.get("push").callContexts,!1,r)));if(t.numberIndexContext)n.push(r.createArrayType(b(t.numberIndexContext)));else if(t.properties||t.callContexts||t.constructContexts||t.stringIndexContext){var u=e.createUnderscoreEscapedMap(),d=[],_=[],f=void 0;if(t.properties&&t.properties.forEach(function(e,t){var n=r.createSymbol(4,t);n.type=b(e),u.set(t,n)}),t.callContexts)for(var p=0,m=t.callContexts;p<m.length;p++){var g=m[p];d.push(c(g,r))}if(t.constructContexts)for(var h=0,y=t.constructContexts;h<y.length;h++){var v=y[h];_.push(c(v,r))}t.stringIndexContext&&(f=r.createIndexInfo(b(t.stringIndexContext),!1)),n.push(r.createAnonymousType(void 0,u,d,_,f,void 0))}return n;function b(e){return a(o(e,r),r)}}function s(t,r,n,i){var a=[];if(r)for(var o=0,s=r;o<s.length;o++){var c=s[o];c.argumentTypes.length>t&&(n?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,2));return n?i.createArrayType(u):u}}function c(t,r){for(var n=[],i=0;i<t.argumentTypes.length;i++){var s=r.createSymbol(1,e.escapeLeadingUnderscores("arg"+i));s.type=r.getWidenedType(r.getBaseTypeOfLiteralType(t.argumentTypes[i])),n.push(s)}var c=a(o(t.returnType,r),r,r.getVoidType());return r.createSignature(void 0,void 0,void 0,n,c,void 0,t.argumentTypes.length,!1,!1)}function u(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function l(e){return!!e&&!!e.callContexts}t.inferTypesFromReferences=r,t.inferTypeForParametersFromReferences=function(t,i,o,s){var c=o.getTypeChecker();if(0!==t.length&&i.parameters){for(var u={},l=0,d=t;l<d.length;l++){var _=d[l];s.throwIfCancellationRequested(),n(_,c,u)}var p=(u.constructContexts||[]).concat(u.callContexts||[]);return i.parameters.map(function(t,n){for(var u=[],l=e.isRestParameter(t),d=!1,_=0,m=p;_<m.length;_++){var g=m[_];if(g.argumentTypes.length<=n)d=e.isInJSFile(i),u.push(c.getUndefinedType());else if(l)for(var h=n;h<g.argumentTypes.length;h++)u.push(c.getBaseTypeOfLiteralType(g.argumentTypes[h]));else u.push(c.getBaseTypeOfLiteralType(g.argumentTypes[n]))}if(e.isIdentifier(t.name)){var y=r(f(t.name,o,s),c,s);u.push.apply(u,l?e.mapDefined(y,c.getElementTypeOfArrayType):y)}var v=a(u,c);return{type:l?c.createArrayType(v):v,isOptional:d&&!l,declaration:t}})}},t.unifyFromContext=a}(r||(r={}))}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="convertFunctionToEs6Class",n=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function i(t,r,n,i){var o=i.getSymbolAtLocation(e.getTokenAtPosition(r,n));if(o&&19&o.flags){var s,c,u=o.valueDeclaration;switch(u.kind){case 239:s=u,t.delete(r,u),c=function(t){var r=l(o);t.body&&r.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body));var n=a(t,85);return e.createClassDeclaration(void 0,n,t.name,void 0,void 0,r)}(u);break;case 237:s=u.parent.parent,c=function(t){var r=t.initializer;if(!r||196!==r.kind)return;if(72!==t.name.kind)return;var n=l(t.symbol);r.body&&n.unshift(e.createConstructor(void 0,void 0,r.parameters,r.body));var i=a(s,85);return e.createClassDeclaration(void 0,i,t.name,void 0,void 0,n)}(u),1===u.parent.declarations.length?(e.copyComments(s,c,r),t.delete(r,s)):t.delete(r,u)}c&&(e.copyComments(u,c,r),t.insertNodeAfter(r,s,c))}function l(n){var i=[];return n.members&&n.members.forEach(function(e){var t=o(e,void 0);t&&i.push(t)}),n.exports&&n.exports.forEach(function(t){var r=o(t,[e.createToken(116)]);r&&i.push(r)}),i;function o(n,i){if(8192&n.flags){var o=n.valueDeclaration,s=o.parent;if(c=s.right,e.isFunctionLike(c)){var c,u=s.parent&&221===s.parent.kind?s.parent:s;if(t.delete(r,u),!s.right)return e.createProperty([],i,n.name,void 0,void 0,void 0);switch(s.right.kind){case 196:var l=s.right,d=e.concatenate(i,a(l,121)),_=e.createMethod(void 0,d,void 0,o.name,void 0,void 0,l.parameters,void 0,l.body);return e.copyComments(s,_,r),_;case 197:var f=s.right,p=f.body,m=void 0;m=218===p.kind?p:e.createBlock([e.createReturn(p)]);d=e.concatenate(i,a(f,121)),_=e.createMethod(void 0,d,void 0,o.name,void 0,void 0,f.parameters,void 0,m);return e.copyComments(s,_,r),_;default:if(e.isSourceFileJS(r))return;var g=e.createProperty(void 0,i,o.name,void 0,void 0,s.right);return e.copyComments(s.parent,g,r),g}}}}}}function a(t,r){return e.filter(t.modifiers,function(e){return e.kind===r})}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start,n.program.getTypeChecker())});return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return i(t,r.file,r.start,e.program.getTypeChecker())})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="convertToAsyncFunction",n=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],i=!0;function a(t,r,n,i,a){var l,d=e.getTokenAtPosition(r,n);if(l=e.isIdentifier(d)&&e.isVariableDeclaration(d.parent)&&d.parent.initializer&&e.isFunctionLikeDeclaration(d.parent.initializer)?d.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.isFunctionLikeDeclaration)){var _,f,m=e.createMap(),g=e.createMap(),h=[],y=e.isInJSFile(l),v=function(t,r){if(!t.body)return e.createMap();var n=e.createMap();return e.forEachChild(t.body,function t(i){o(i,r,"then")?(n.set(e.getNodeId(i).toString(),!0),e.forEach(i.arguments,t)):o(i,r,"catch")?(n.set(e.getNodeId(i).toString(),!0),e.forEachChild(i,t)):o(i,r)?n.set(e.getNodeId(i).toString(),!0):e.forEachChild(i,t)}),n}(l,i),b=function(t,r,n,i,a,o,u){var l=e.createMap(),d=e.createMap();return e.forEachChild(t,function t(o){if(e.isIdentifier(o)){var _=r.getSymbolAtLocation(o),f=_&&function(e,t){return e.valueDeclaration&&e.valueDeclaration.getSourceFile()===t}(_,i.sourceFile);if(_&&f){var m=p(r.getTypeAtLocation(o),r),g=e.getSymbolId(_).toString();if(!m||e.isFunctionLikeDeclaration(o.parent)||n.has(g)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent))){var h=o.text,y=d.get(h);if(y&&y.some(function(e){return e!==_})){var v=c(o,d);l.set(g,v.identifier),n.set(g,v),u.push({identifier:v.identifier,symbol:_}),s(d,h,_)}else{var b=e.getSynthesizedDeepClone(o);l.set(g,b),n.set(g,{identifier:b,types:[],numberOfAssignmentsOriginal:u.filter(function(e){return e.identifier.text===o.text}).length}),(e.isParameter(o.parent)&&function(t){var n=t.parent;if(e.isCallExpression(n)||e.isIdentifier(n)&&!a.get(e.getNodeId(n).toString())){var i=r.getTypeAtLocation(n),o=i&&r.getPromisedTypeOfPromise(i);return!!o}return!1}(o.parent.parent)||e.isVariableDeclaration(o.parent))&&(u.push({identifier:b,symbol:_}),s(d,h,_))}}}else{var x=e.firstOrUndefined(m.parameters),S=x&&e.isParameter(x.valueDeclaration)&&e.tryCast(x.valueDeclaration.name,e.isIdentifier)||e.createOptimisticUniqueName("result"),D=c(S,d);n.set(g,D),u.push({identifier:D.identifier,symbol:_}),s(d,S.text,_)}}}else e.forEachChild(o,t)}),e.getSynthesizedDeepCloneWithRenames(t,!0,l,r,function(t,i){if(e.isIdentifier(t)){var s=r.getSymbolAtLocation(t),c=s&&e.getSymbolId(s).toString(),u=s&&n.get(c);if(u){var l=r.getTypeAtLocation(t);o.set(e.getNodeId(i).toString(),l)}}var d=a.get(e.getNodeId(t).toString());void 0!==d&&(a.delete(e.getNodeId(t).toString()),a.set(e.getNodeId(i).toString(),d))})}(l,i,m,a,v,g,h),x=function(e){var t=[];return e.forEach(function(e){0===e.numberOfAssignmentsOriginal&&t.push(e.identifier)}),t}(m),S=b.body&&e.isBlock(b.body)?(_=b.body,f=[],e.forEachReturnStatement(_,function(t){e.isReturnStatementWithFixablePromiseHandler(t)&&f.push(t)}),f):e.emptyArray,D={checker:i,synthNamesMap:m,allVarNames:h,setOfExpressionsToReturn:v,constIdentifiers:x,originalTypeMap:g,isInJSFile:y};if(S.length){t.insertLastModifierBefore(r,121,l);for(var k=function(n){e.forEachChild(n,function i(a){e.isCallExpression(a)?function(e,n){var i=u(e,D,e);t.replaceNodeWithNodes(r,n,i)}(a,n):e.isFunctionLike(a)||e.forEachChild(a,i)})},C=0,T=S;C<T.length;C++){k(T[C])}}}}function o(t,r,n){var i=(n?e.isCallExpression(t):e.isExpression(t))&&(!n||e.hasPropertyAccessExpressionWithName(t,n))&&r.getTypeAtLocation(t);return!(!i||!r.getPromisedTypeOfPromise(i))}function s(e,t,r){e.has(t)?e.get(t).push(r):e.set(t,[r])}function c(t,r){var n=(r.get(t.text)||e.emptyArray).length;return{identifier:0===n?t:e.createIdentifier(t.text+"_"+n),types:[],numberOfAssignmentsOriginal:0}}function u(t,r,n,a){if(!t)return e.emptyArray;var o=e.isIdentifier(t)&&r.originalTypeMap.get(e.getNodeId(t).toString())||r.checker.getTypeAtLocation(t);return e.isCallExpression(t)&&e.hasPropertyAccessExpressionWithName(t,"then")&&o&&r.checker.getPromisedTypeOfPromise(o)?function(t,r,n,i){var a=t.arguments,o=a[0],s=a[1];if(!o)return u(t.expression,r,n);var c=g(o,r),l=f(o,i,c,t,r);if(s){var d=g(s,r),_=e.createBlock(u(t.expression,r,t,c).concat(l)),p=f(s,i,d,t,r),m=d?d.identifier.text:"e",h=e.createCatchClause(m,e.createBlock(p));return[e.createTry(_,h,void 0)]}return u(t.expression,r,t,c).concat(l)}(t,r,n,a):e.isCallExpression(t)&&e.hasPropertyAccessExpressionWithName(t,"catch")&&o&&r.checker.getPromisedTypeOfPromise(o)?function(t,r,n){var i=t.arguments[0],a=g(i,r),o=r.setOfExpressionsToReturn.get(e.getNodeId(t).toString());n&&!o&&(n.numberOfAssignmentsOriginal=2,r.synthNamesMap.forEach(function(e,t){if(e.identifier.text===n.identifier.text){var i=l(n);r.synthNamesMap.set(t,i)}}),r.constIdentifiers.some(function(e){return e.text===n.identifier.text})&&r.constIdentifiers.push(l(n).identifier));var s,c=e.createBlock(u(t.expression,r,t,n)),d=f(i,n,a,t,r),_=a?a.identifier.text:"e",p=e.createCatchClause(_,e.createBlock(d));if(n&&!o){var m=n.types,h=r.checker.getUnionType(m,2),y=r.isInJSFile?void 0:r.checker.typeToTypeNode(h),v=[e.createVariableDeclaration(e.getSynthesizedDeepClone(n.identifier),y)];s=e.createVariableStatement(void 0,e.createVariableDeclarationList(v,1))}var b=e.createTry(c,p,void 0);return s?[s,b]:[b]}(t,r,a):e.isPropertyAccessExpression(t)?u(t.expression,r,n,a):o&&r.checker.getPromisedTypeOfPromise(o)?function(t,r,n){var i=r.setOfExpressionsToReturn.get(e.getNodeId(t).toString()),a=t.original?t.original.parent:t.parent;if(n&&!i&&(!a||e.isPropertyAccessExpression(a)))return _(n,e.createAwait(t),r);if(!n&&!i&&(!a||e.isPropertyAccessExpression(a)))return[e.createStatement(e.createAwait(t))];return[e.createReturn(e.getSynthesizedDeepClone(t))]}(t,r,a):(i=!1,e.emptyArray)}function l(t){return{identifier:e.createOptimisticUniqueName(t.identifier.text),types:[],numberOfAssignmentsOriginal:0}}function d(e,t){return t.some(function(t){return t.text===e.text})?2:1}function _(t,r,n){return t&&0!==t.identifier.text.length?t.types.length<t.numberOfAssignmentsOriginal?[e.createStatement(e.createAssignment(e.getSynthesizedDeepClone(t.identifier),r))]:[e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(t.identifier),void 0,r)],d(t.identifier,n.constIdentifiers)))]:[e.createStatement(r)]}function f(t,r,n,a,s){var c=s.setOfExpressionsToReturn.get(e.getNodeId(a).toString());switch(t.kind){case 96:break;case 72:if(!n)break;var u=e.createCall(e.getSynthesizedDeepClone(t),void 0,[n.identifier]);if(c)return[e.createReturn(u)];var l=s.originalTypeMap.get(e.getNodeId(t).toString())||s.checker.getTypeAtLocation(t),f=s.checker.getSignaturesOfType(l,0);if(!f.length){i=!1;break}var g=f[0].getReturnType(),h=_(r,e.createAwait(u),s);return r&&r.types.push(g),h;case 196:case 197:var y=t.body;if(e.isBlock(y)){for(var v=[],b=!1,x=0,S=y.statements;x<S.length;x++){var D=S[x];e.isReturnStatement(D)&&(b=!0),e.isReturnStatementWithFixablePromiseHandler(D)?v=v.concat(m(s,[D],r)):v.push(D)}return c?v.map(function(t){return e.getSynthesizedDeepClone(t)}):function(t,r,n,i){for(var a=[],s=0,c=t;s<c.length;s++){var u=c[s];if(e.isReturnStatement(u)){if(u.expression){var l=o(u.expression,n.checker)?e.createAwait(u.expression):u.expression;void 0===r?a.push(e.createExpressionStatement(l)):a.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,l)],d(r,n.constIdentifiers))))}}else a.push(e.getSynthesizedDeepClone(u))}i||void 0===r||a.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,e.createIdentifier("undefined"))],d(r,n.constIdentifiers))));return a}(v,void 0===r?void 0:r.identifier,s,b)}var k=m(s,e.isFixablePromiseHandler(y)?[e.createReturn(y)]:e.emptyArray,r);if(k.length>0)return k;var C=p(s.checker.getTypeAtLocation(t),s.checker).getReturnType(),T=e.getSynthesizedDeepClone(y),E=s.checker.getPromisedTypeOfPromise(C)?e.createAwait(T):T;if(c)return[e.createReturn(E)];var N=_(r,E,s);return r&&r.types.push(C),N;default:i=!1}return e.emptyArray}function p(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function m(t,r,n){for(var i=[],a=0,o=r;a<o.length;a++){var s=o[a];e.forEachChild(s,function r(a){if(e.isCallExpression(a)){var o=u(a,t,a,n);if((i=i.concat(o)).length>0)return}else e.isFunctionLike(a)||e.forEachChild(a,r)})}return i}function g(t,r){var n,i=0,a=[];e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=o(t.parameters[0].name)):e.isIdentifier(t)&&(n=o(t));if(n&&"undefined"!==n.identifier.text)return n;function o(t){var n,o=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}((n=t).original?n.original:n);return o&&r.synthNamesMap.get(e.getSymbolId(o).toString())||{identifier:t,types:a,numberOfAssignmentsOriginal:i}}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){i=!0;var o=e.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n)});return i?[t.createCodeFixAction(r,o,e.Diagnostics.Convert_to_async_function,r,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return a(t,r.file,r.start,e.program.getTypeChecker(),e)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){function r(t,r,n,i){for(var a=0,o=t.imports;a<o.length;a++){var s=o[a],c=e.getResolvedModule(t,s.text);if(c&&c.resolvedFileName===r.fileName){var u=e.importFromModuleSpecifier(s);switch(u.kind){case 248:n.replaceNode(t,u,e.makeImport(u.name,void 0,s,i));break;case 191:e.isRequireCall(u,!1)&&n.replaceNode(t,u,e.createPropertyAccess(e.getSynthesizedDeepClone(u),"default"))}}}}function n(t,r){t.forEachChild(function n(i){if(e.isPropertyAccessExpression(i)&&e.isExportsOrModuleExportsOrAlias(t,i.expression)){var a=i.parent;r(i,e.isBinaryExpression(a)&&a.left===i&&59===a.operatorToken.kind)}i.forEachChild(n)})}function i(r,n,i,c,p,m,g,h){switch(n.kind){case 219:return function(r,n,i,a,o,c,u){var f=n.declarationList,p=!1,m=e.flatMap(f.declarations,function(n){var m=n.name,g=n.initializer;if(g){if(e.isExportsOrModuleExportsOrAlias(r,g))return p=!0,[];if(e.isRequireCall(g,!0))return p=!0,function(r,n,i,a,o,c,u,l){switch(n.kind){case 184:var f=e.mapAllOrFail(n.elements,function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:d(t.propertyName&&t.propertyName.text,t.name.text)});if(f)return[e.makeImport(void 0,f,i,l)];case 185:var p=s(t.moduleSpecifierToValidIdentifier(i.text,u),c);return[e.makeImport(e.createIdentifier(p),void 0,i,l),_(void 0,e.getSynthesizedDeepClone(n),e.createIdentifier(p))];case 72:return function(t,r,n,i,a,o,c){for(var u=a.getSymbolAtLocation(r),l=e.createMap(),d=!1,_=0,f=o.original.get(r.text);_<f.length;_++){var p=f[_];if(a.getSymbolAtLocation(p)===u&&p!==r){var m=p.parent;if(e.isPropertyAccessExpression(m)){var g=m.expression,h=m.name.text;e.Debug.assert(g===p);var y=l.get(h);void 0===y&&(y=s(h,o),l.set(h,y)),i.replaceNode(t,m,e.createIdentifier(y))}else d=!0}}var v=0===l.size?void 0:e.arrayFrom(e.mapIterator(l.entries(),function(t){var r=t[0],n=t[1];return e.createImportSpecifier(r===n?void 0:e.createIdentifier(r),e.createIdentifier(n))}));v||(d=!0);return[e.makeImport(d?e.getSynthesizedDeepClone(r):void 0,v,n,c)]}(r,n,i,a,o,c,l);default:return e.Debug.assertNever(n)}}(r,m,g.arguments[0],i,a,o,c,u);if(e.isPropertyAccessExpression(g)&&e.isRequireCall(g.expression,!0))return p=!0,function(t,r,n,i,a){switch(t.kind){case 184:case 185:var o=s(r,i);return[l(o,r,n,a),_(void 0,t,e.createIdentifier(o))];case 72:return[l(t.text,r,n,a)];default:return e.Debug.assertNever(t)}}(m,g.name.text,g.expression.arguments[0],o,u)}return e.createVariableStatement(void 0,e.createVariableDeclarationList([n],f.flags))});p&&i.replaceNodeWithNodes(r,n,m)}(r,n,c,i,p,m,h),!1;case 221:var y=n.expression;switch(y.kind){case 191:return e.isRequireCall(y,!0)&&c.replaceNode(r,n,e.makeImport(void 0,void 0,y.arguments[0],h)),!1;case 204:return 59===y.operatorToken.kind&&function(t,r,n,i,s){var c=n.left,l=n.right;if(!e.isPropertyAccessExpression(c))return!1;if(e.isExportsOrModuleExportsOrAlias(t,c)){if(!e.isExportsOrModuleExportsOrAlias(t,l)){var d=e.isObjectLiteralExpression(l)?(p=l,(m=e.mapAllOrFail(p.properties,function(t){switch(t.kind){case 158:case 159:case 276:case 277:return;case 275:return e.isIdentifier(t.name)?function(t,r){var n=[e.createToken(85)];switch(r.kind){case 196:var i=r.name;if(i&&i.text!==t)return a();case 197:return u(t,n,r);case 209:return function(t,r,n){return e.createClassDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.heritageClauses),e.getSynthesizedDeepClones(n.members))}(t,n,r);default:return a()}function a(){return _(n,e.createIdentifier(t),r)}}(t.name.text,t.initializer):void 0;case 156:return e.isIdentifier(t.name)?u(t.name.text,[e.createToken(85)],t):void 0;default:e.Debug.assertNever(t)}}))&&[m,!1]):e.isRequireCall(l,!0)?function(t,r){var n=t.text,i=r.getSymbolAtLocation(t),s=i?i.exports:e.emptyUnderscoreEscapedMap;return s.has("export=")?[[o(n)],!0]:s.has("default")?s.size>1?[[a(n),o(n)],!0]:[[o(n)],!0]:[[a(n)],!1]}(l.arguments[0],r):void 0;return d?(i.replaceNodeWithNodes(t,n.parent,d[0]),d[1]):(i.replaceRangeWithText(t,e.createRange(c.getStart(t),l.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,c.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[_(void 0,o,r.right),f([e.createExportSpecifier(o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.createToken(85),e.createToken(77)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.createToken(85),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,s);var p,m;return!1}(r,i,y,c,g)}default:return!1}}function a(e){return f(void 0,e)}function o(t){return f([e.createExportSpecifier(void 0,"default")],t)}function s(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.set(e,!0),e}function c(t){var r=e.createMultiMap();return function t(r,n){e.isIdentifier(r)&&function(e){var t=e.parent;switch(t.kind){case 189:return t.name!==e;case 186:case 253:return t.propertyName!==e;default:return!0}}(r)&&n(r);r.forEachChild(function(e){return t(e,n)})}(t,function(e){return r.add(e.text,e)}),r}function u(t,r,n){return e.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.convertToFunctionBody(e.getSynthesizedDeepClone(n.body)))}function l(t,r,n,i){return"default"===r?e.makeImport(e.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[d(r,t)],n,i)}function d(t,r){return e.createImportSpecifier(void 0!==t&&t!==r?e.createIdentifier(t):void 0,e.createIdentifier(r))}function _(t,r,n){return e.createVariableStatement(t,e.createVariableDeclarationList([e.createVariableDeclaration(r,void 0,n)],2))}function f(t,r){return e.createExportDeclaration(void 0,void 0,t&&e.createNamedExports(t),void 0===r?void 0:e.createLiteral(r))}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(a){var o=a.sourceFile,u=a.program,l=a.preferences,d=e.textChanges.ChangeTracker.with(a,function(t){if(function(t,r,a,o,u){var l={original:c(t),additional:e.createMap()},d=function(t,r,i){var a=e.createMap();return n(t,function(t){var n=t.name,o=n.text,c=n.originalKeywordKind;!a.has(o)&&(void 0!==c&&e.isNonContextualKeyword(c)||r.resolveName(t.name.text,t,67220415,!0))&&a.set(o,s("_"+o,i))}),a}(t,r,l);!function(t,r,i){n(t,function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.createIdentifier(r.get(o)||o))}})}(t,d,a);for(var _=!1,f=0,p=t.statements;f<p.length;f++){var m=p[f],g=i(t,m,r,a,l,o,d,u);_=_||g}return _}(o,u.getTypeChecker(),t,u.getCompilerOptions().target,e.getQuotePreference(o,l)))for(var a=0,d=u.getSourceFiles();a<d.length;a++){var _=d[a];r(_,o,t,e.getQuotePreference(_,l))}});return[t.createCodeFixActionNoFixId("convertToEs6Module",d,e.Diagnostics.Convert_to_ES6_module)]}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="correctQualifiedNameToIndexedAccessType",n=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function i(t,r){var n=e.findAncestor(e.getTokenAtPosition(t,r),e.isQualifiedName);return e.Debug.assert(!!n,"Expected position to be owned by a qualified name."),e.isIdentifier(n.left)?n:void 0}function a(t,r,n){var i=n.right.text,a=e.createIndexedAccessTypeNode(e.createTypeReferenceNode(n.left,void 0),e.createLiteralTypeNode(e.createLiteral(i)));t.replaceNode(r,n,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=i(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,o)}),c=o.left.text+'["'+o.right.text+'"]';return[t.createCodeFixAction(r,s,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,c],r,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],n="fixClassIncorrectlyImplementsInterface";function i(t,r){return e.Debug.assertDefined(e.getContainingClass(e.getTokenAtPosition(t,r)))}function a(t){return!(8&e.getModifierFlags(t.valueDeclaration))}function o(r,n,i,o,s,c){var u=function(t,r){var n=e.getEffectiveBaseTypeNode(t);if(!n)return e.createSymbolTable();var i=r.getTypeAtLocation(n),o=r.getPropertiesOfType(i);return e.createSymbolTable(o.filter(a))}(o,r),l=r.getTypeAtLocation(n),d=r.getPropertiesOfType(l).filter(e.and(a,function(e){return!u.has(e.escapedName)})),_=r.getTypeAtLocation(o);function f(e,t){var n=r.getIndexInfoOfType(e,t);n&&s.insertNodeAtClassStart(i,o,r.indexInfoToIndexSignatureDeclaration(n,t,o))}_.getNumberIndexType()||f(l,1),_.getStringIndexType()||f(l,0),t.createMissingMemberNodes(o,d,r,c,function(e){return s.insertNodeAtClassStart(i,o,e)})}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.program,s=r.sourceFile,c=r.span,u=i(s,c.start),l=a.getTypeChecker();return e.mapDefined(e.getClassImplementsHeritageClauseElements(u),function(i){var a=e.textChanges.ChangeTracker.with(r,function(e){return o(l,i,s,u,e,r.preferences)});return 0===a.length?void 0:t.createCodeFixAction(n,a,[e.Diagnostics.Implement_interface_0,i.getText(s)],n,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[n],getAllCodeActions:function(n){var a=e.createMap();return t.codeFixAll(n,r,function(t,r){var s=i(r.file,r.start);if(e.addToSeen(a,e.getNodeId(s)))for(var c=0,u=e.getClassImplementsHeritageClauseElements(s);c<u.length;c++){var l=u[c];o(n.program.getTypeChecker(),l,r.file,s,t,n.preferences)}})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){t.importFixId="fixMissingImport";var r,n,i=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code];function a(t,r){return!(67220415&e.skipAlias(t,r).flags)}function o(t,r,n,i,a,o,s){var l=i.getTypeChecker(),d=e.flatMap(t,function(t){return function(t,r,n){var i=t.moduleSymbol,a=t.importKind;return t.exportedSymbolIsTypeOnly&&e.isSourceFileJS(n)?e.emptyArray:e.mapDefined(n.imports,function(t){var n=e.importFromModuleSpecifier(t);return 249!==n.kind&&248!==n.kind||r.getSymbolAtLocation(t)!==i?void 0:{declaration:n,importKind:a}})}(t,l,a)}),_=void 0===n?void 0:function(t,r,n,i){return e.firstDefined(t,function(t){var a=t.declaration,o=function(t){if(249===t.kind){var r=t.importClause&&e.isImportClause(t.importClause)&&t.importClause.namedBindings;return r&&251===r.kind?r.name:void 0}return t.name}(a);if(o){var s=i.getAliasedSymbol(i.getSymbolAtLocation(o));if(s&&s.exports.has(e.escapeLeadingUnderscores(r)))return{kind:0,namespacePrefix:o.text,position:n}}})}(d,r,n,l),f=function(t){return e.firstDefined(t,function(e){var t=e.declaration,r=e.importKind;if(249===t.kind){var n=t.importClause;if(n){var i=n.name,a=n.namedBindings;return 1===r&&!i||0===r&&(!a||252===a.kind)?{kind:2,importClause:n,importKind:r}:void 0}}})}(d),p=f?[f]:function(t,r,n,i,a,o,s){var l=e.firstDefined(r,u);return l?[l]:c(n,i,a,t,o,s)}(t,d,i,a,n,o,s);return(_?[_]:e.emptyArray).concat(p)}function c(t,r,n,i,a,o){var s=e.isSourceFileJS(r),c=e.flatMap(i,function(i){var c=i.moduleSymbol,u=i.importKind,l=i.exportedSymbolIsTypeOnly;return e.moduleSpecifiers.getModuleSpecifiers(c,t.getCompilerOptions(),r,a,t.getSourceFiles(),o,t.redirectTargetsMap).map(function(t){return l&&s?{kind:1,moduleSpecifier:t,position:e.Debug.assertDefined(n)}:{kind:3,moduleSpecifier:t,importKind:u}})});return e.sort(c,function(e,t){return e.moduleSpecifier.length-t.moduleSpecifier.length})}function u(t){var r=t.declaration,n=t.importKind,i=249===r.kind?r.moduleSpecifier:259===r.moduleReference.kind?r.moduleReference.expression:void 0;return i&&e.isStringLiteral(i)?{kind:3,moduleSpecifier:i.text,importKind:n}:void 0}function l(t,r,n){var i=e.getTokenAtPosition(t.sourceFile,n),a=r===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(t,r){var n=t.sourceFile,i=t.program,a=t.host,s=t.preferences,c=i.getTypeChecker(),u=function(t,r){var n=e.isIdentifier(t)?r.getSymbolAtLocation(t):void 0;if(e.isUMDExportSymbol(n))return n;var i=t.parent;return e.isJsxOpeningLikeElement(i)&&i.tagName===t||e.isJsxOpeningFragment(i)?e.tryCast(r.resolveName(r.getJsxNamespace(i),e.isJsxOpeningLikeElement(i)?t:i,67220415,!1),e.isUMDExportSymbol):void 0}(r,c);if(!u)return;var l=c.getAliasedSymbol(u),_=u.name;return{fixes:o([{moduleSymbol:l,importKind:d(i.getCompilerOptions()),exportedSymbolIsTypeOnly:!1}],_,e.isIdentifier(r)?r.getStart(n):void 0,i,n,a,s),symbolName:_}}(t,i):e.isIdentifier(i)?function(t,r){var n=t.sourceFile,i=t.program,a=t.cancellationToken,s=t.host,c=t.preferences,u=i.getTypeChecker(),l=e.isJsxOpeningLikeElement(r.parent)&&r.parent.tagName===r&&(e.isIntrinsicJsxName(r.text)||u.resolveName(r.text,r,67108863,!1))?u.getJsxNamespace():r.text;return e.Debug.assert("default"!==l),{fixes:e.arrayFrom(e.flatMapIterator(_(l,e.getMeaningFromLocation(r),a,n,u,i).entries(),function(e){return e[0],o(e[1],l,r.getStart(n),i,n,s,c)})),symbolName:l}}(t,i):void 0;return a&&s({},a,{fixes:e.sort(a.fixes,function(e,t){return e.kind-t.kind})})}function d(t){if(e.getAllowSyntheticDefaultImports(t))return 1;var r=e.getEmitModuleKind(t);switch(r){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return 3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;default:return e.Debug.assertNever(r)}}function _(t,r,n,i,o,s){var c=e.createMultiMap();function u(t,r,n){c.add(e.getUniqueSymbolId(r,o).toString(),{moduleSymbol:t,importKind:n,exportedSymbolIsTypeOnly:a(r,o)})}return x(o,i,s.getSourceFiles(),function(e){n.throwIfCancellationRequested();var i=f(e,o,s.getCompilerOptions());i&&i.name===t&&b(i.symbolForMeaning,r)&&u(e,i.symbol,i.kind);var a=o.tryGetMemberInModuleExportsAndProperties(t,e);a&&b(a,r)&&u(e,a,0)}),c}function f(t,r,n){var i=function(e,t){var r=t.tryGetMemberInModuleExports("default",e);if(r)return{symbol:r,kind:1};var n=t.resolveExternalModuleSymbol(e);return n===e?void 0:{symbol:n,kind:3}}(t,r);if(i){var a=i.symbol,o=i.kind,c=function t(r,n,i,a){var o=e.getLocalSymbolForExportDefault(r);if(o)return{symbolForMeaning:o,name:o.name};var s=(c=r,c.declarations&&e.firstDefined(c.declarations,function(t){if(e.isExportAssignment(t)){if(e.isIdentifier(t.expression))return t.expression.text}else if(e.isExportSpecifier(t))return e.Debug.assert("default"===t.name.text),t.propertyName&&t.propertyName.text}));var c;if(void 0!==s)return{symbolForMeaning:r,name:s};if(2097152&r.flags){var u=i.getImmediateAliasedSymbol(r);return u&&t(u,e.Debug.assertDefined(u.parent),i,a)}return{symbolForMeaning:r,name:D(n,a.target)}}(a,t,r,n);return c&&s({symbol:a,kind:o},c)}}function p(r,n,i,a,o){var s,c=e.textChanges.ChangeTracker.with(r,function(t){s=function(t,r,n,i,a){switch(i.kind){case 0:return g(t,r,i),[e.Diagnostics.Change_0_to_1,n,i.namespacePrefix+"."+n];case 1:return h(t,r,i,a),[e.Diagnostics.Change_0_to_1,n,y(i.moduleSpecifier,a)+n];case 2:var o=i.importClause,s=i.importKind;m(t,r,o,1===s?n:void 0,0===s?[n]:e.emptyArray);var c=e.stripQuotes(o.parent.moduleSpecifier.getText());return[1===s?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,n,c];case 3:var s=i.importKind,u=i.moduleSpecifier;return v(t,r,u,a,1===s?{defaultImport:n,namedImports:e.emptyArray,namespaceLikeImport:void 0}:0===s?{defaultImport:void 0,namedImports:[n],namespaceLikeImport:void 0}:{defaultImport:void 0,namedImports:e.emptyArray,namespaceLikeImport:{importKind:s,name:n}}),[1===s?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,n,u];default:return e.Debug.assertNever(i)}}(t,n,i,a,o)});return t.createCodeFixAction("import",c,s,t.importFixId,e.Diagnostics.Add_all_missing_imports)}function m(t,r,n,i,a){if(i&&(e.Debug.assert(!n.name),t.insertNodeAt(r,n.getStart(r),e.createIdentifier(i),{suffix:", "})),a.length){var o=a.map(function(t){return e.createImportSpecifier(void 0,e.createIdentifier(t))});if(n.namedBindings&&e.cast(n.namedBindings,e.isNamedImports).elements.length)for(var s=0,c=o;s<c.length;s++){var u=c[s];t.insertNodeInListAfter(r,e.last(e.cast(n.namedBindings,e.isNamedImports).elements),u)}else if(o.length){var l=e.createNamedImports(o);n.namedBindings?t.replaceNode(r,n.namedBindings,l):t.insertNodeAfter(r,e.Debug.assertDefined(n.name),l)}}}function g(e,t,r){var n=r.namespacePrefix,i=r.position;e.insertText(t,i,n+".")}function h(e,t,r,n){var i=r.moduleSpecifier,a=r.position;e.insertText(t,a,y(i,n))}function y(t,r){var n=e.getQuoteFromPreference(r);return"import("+n+t+n+")."}function v(t,r,n,i,a){var o=a.defaultImport,s=a.namedImports,c=a.namespaceLikeImport,u=e.makeStringLiteral(n,i);(void 0!==o||s.length)&&e.insertImport(t,r,e.makeImport(void 0===o?void 0:e.createIdentifier(o),s.map(function(t){return e.createImportSpecifier(void 0,e.createIdentifier(t))}),n,i)),c&&e.insertImport(t,r,3===c.importKind?e.createImportEqualsDeclaration(void 0,void 0,e.createIdentifier(c.name),e.createExternalModuleReference(u)):e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(c.name))),u))}function b(t,r){var n=t.declarations;return e.some(n,function(t){return!!(e.getMeaningFromDeclaration(t)&r)})}function x(t,r,n,i){S(t,n,function(t,n){var a,o,s;(void 0===n||n!==r&&(a=r.fileName,o=n.fileName,void 0===(s=e.forEachAncestorDirectory(o,function(t){return"node_modules"===e.getBaseFileName(t)?t:void 0}))||e.startsWith(a,e.getDirectoryPath(s))))&&i(t)})}function S(t,r,n){for(var i=0,a=t.getAmbientModules();i<a.length;i++){n(a[i],void 0)}for(var o=0,s=r;o<s.length;o++){var c=s[o];e.isExternalOrCommonJsModule(c)&&n(t.getMergedSymbol(c.symbol),c)}}function D(t,r){return k(e.removeFileExtension(e.stripQuotes(t.name)),r)}function k(t,r){var n=e.getBaseFileName(e.removeSuffix(t,"/index")),i="",a=!0,o=n.charCodeAt(0);e.isIdentifierStart(o,r)?i+=String.fromCharCode(o):a=!1;for(var s=1;s<n.length;s++){var c=n.charCodeAt(s),u=e.isIdentifierPart(c,r);if(u){var l=String.fromCharCode(c);a||(l=l.toUpperCase()),i+=l}a=u}return e.isStringANonContextualKeyword(i)?"_"+i:i||"_"}t.registerCodeFix({errorCodes:i,getCodeActions:function(t){var r=t.errorCode,n=t.preferences,i=t.sourceFile,a=t.span,o=l(t,r,a.start);if(o){var s=o.fixes,c=o.symbolName,u=e.getQuotePreference(i,n);return s.map(function(e){return p(t,i,c,e,u)})}},fixIds:[t.importFixId],getAllCodeActions:function(r){var n=r.sourceFile,a=r.preferences,o=[],s=[],c=e.createMap(),u=e.createMap();return t.eachDiagnostic(r,i,function(t){var n=l(r,t.code,t.start);if(n&&n.fixes.length){var i=n.fixes,a=n.symbolName,d=e.first(i);switch(d.kind){case 0:o.push(d);break;case 1:s.push(d);break;case 2:var _=d.importClause,f=d.importKind,p=String(e.getNodeId(_));(m=c.get(p))||c.set(p,m={importClause:_,defaultImport:void 0,namedImports:[]}),0===f?e.pushIfUnique(m.namedImports,a):(e.Debug.assert(void 0===m.defaultImport||m.defaultImport===a),m.defaultImport=a);break;case 3:var m,g=d.moduleSpecifier;f=d.importKind;switch((m=u.get(g))||u.set(g,m={defaultImport:void 0,namedImports:[],namespaceLikeImport:void 0}),f){case 1:e.Debug.assert(void 0===m.defaultImport||m.defaultImport===a),m.defaultImport=a;break;case 0:e.pushIfUnique(m.namedImports,a);break;case 3:case 2:e.Debug.assert(void 0===m.namespaceLikeImport||m.namespaceLikeImport.name===a),m.namespaceLikeImport={importKind:f,name:a}}break;default:e.Debug.assertNever(d)}}}),t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,function(t){for(var r=e.getQuotePreference(n,a),i=0,l=o;i<l.length;i++){var d=l[i];g(t,n,d)}for(var _=0,f=s;_<f.length;_++){d=f[_];h(t,n,d,r)}c.forEach(function(e){var r=e.importClause,i=e.defaultImport,a=e.namedImports;m(t,n,r,i,a)}),u.forEach(function(e,i){v(t,n,i,r,e)})}))}}),function(e){e[e.UseNamespace=0]="UseNamespace",e[e.ImportType=1]="ImportType",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew"}(r||(r={})),function(e){e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.Equals=3]="Equals"}(n||(n={})),t.getImportCompletionAction=function(t,r,n,i,s,u,l,d,_){var m=function(t,r,n,i,o,s,c){var u=[];return S(s,c,function(c,l){if(!l||c===r||!e.startsWith(i.fileName,e.getDirectoryPath(l.fileName))){var d=f(c,s,o);d&&d.name===n&&e.skipAlias(d.symbol,s)===t&&u.push({moduleSymbol:c,importKind:d.kind,exportedSymbolIsTypeOnly:a(d.symbol,s)});for(var _=0,p=s.getExportsOfModule(c);_<p.length;_++){var m=p[_];m.name===n&&e.skipAlias(m,s)===t&&u.push({moduleSymbol:c,importKind:0,exportedSymbolIsTypeOnly:a(m,s)})}}}),u}(t,r,i,n,u.getCompilerOptions(),u.getTypeChecker(),u.getSourceFiles());e.Debug.assert(m.some(function(e){return e.moduleSymbol===r}));var g,h,y,v,b=e.first(c(u,n,d,m,s,_)).moduleSpecifier,x=e.first(o(m,i,d,u,n,s,_));return{moduleSpecifier:b,codeAction:(g=p({host:s,formatContext:l},n,i,x,e.getQuotePreference(n,_)),h=g.description,y=g.changes,v=g.commands,{description:h,changes:y,commands:v})}},t.forEachExternalModuleToImportFrom=x,t.moduleSymbolToValidIdentifier=D,t.moduleSpecifierToValidIdentifier=k}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r=[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,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2.code];function n(t,r,n){var i,a=e.getTokenAtPosition(t,r),o=n.program.getTypeChecker();if(e.isPropertyAccessExpression(a.parent)&&a.parent.name===a){e.Debug.assert(72===a.kind);var s=o.getTypeAtLocation(a.parent.expression);i=o.getSuggestionForNonexistentProperty(a,s)}else if(e.isImportSpecifier(a.parent)&&a.parent.name===a){e.Debug.assert(72===a.kind);var c=function(t,r,n){if(!n||!e.isStringLiteralLike(n.moduleSpecifier))return;var i=e.getResolvedModule(t,n.moduleSpecifier.text);return i?r.program.getSourceFile(i.resolvedFileName):void 0}(t,n,e.findAncestor(a,e.isImportDeclaration));c&&c.symbol&&(i=o.getSuggestionForNonexistentExport(a,c.symbol))}else{var u=e.getMeaningFromLocation(a),l=e.getTextOfNode(a);e.Debug.assert(void 0!==l,"name should be defined"),i=o.getSuggestionForNonexistentSymbol(a,l,function(e){var t=0;4&e&&(t|=1920);2&e&&(t|=67897832);1&e&&(t|=67220415);return t}(u))}return void 0===i?void 0:{node:a,suggestion:i}}function i(t,r,n,i,a){!e.isIdentifierText(i,a)&&e.isPropertyAccessExpression(n.parent)?t.replaceNode(r,n.parent,e.createElementAccess(n.parent.expression,e.createLiteral(i))):t.replaceNode(r,n,e.createIdentifier(i))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,o=n(a,r.span.start,r);if(o){var s=o.node,c=o.suggestion,u=r.host.getCompilationSettings().target,l=e.textChanges.ChangeTracker.with(r,function(e){return i(e,a,s,c,u)});return[t.createCodeFixAction("spelling",l,[e.Diagnostics.Change_spelling_to_0,c],"fixSpelling",e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:["fixSpelling"],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,r){var a=n(r.file,r.start,e),o=e.host.getCompilationSettings().target;a&&i(t,e.sourceFile,a.node,a.suggestion,o)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r,n="addMissingMember",i=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code],a="addMissingMember";function o(t,r,n){var i=e.getTokenAtPosition(t,r);if(e.isIdentifier(i)){var a=i.parent;if(e.isPropertyAccessExpression(a)){var o=e.skipConstraint(n.getTypeAtLocation(a.expression)),s=o.symbol;if(s&&s.declarations){var c=e.find(s.declarations,e.isClassLike)||e.find(s.declarations,e.isInterfaceDeclaration);if(c){var u=(o.target||o)!==n.getDeclaredTypeOfSymbol(s),l=c.getSourceFile();return{kind:1,token:i,parentDeclaration:c,makeStatic:u,declSourceFile:l,inJs:e.isSourceFileJS(l),call:e.tryCast(a.parent,e.isCallExpression)}}var d=e.find(s.declarations,e.isEnumDeclaration);return d?{kind:0,token:i,parentDeclaration:d}:void 0}}}}function s(t,r,n,i,a){if(a){if(209===n.kind)return;var o=n.name.getText(),s=c(e.createIdentifier(o),i);t.insertNodeAfter(r,n,s)}else{var u=e.getFirstConstructorWithBody(n);if(!u)return;var l=c(e.createThis(),i);t.insertNodeAtConstructorEnd(r,u,l)}}function c(t,r){return e.createStatement(e.createAssignment(e.createPropertyAccess(t,r),e.createIdentifier("undefined")))}function u(t,r,n){var i;if(204===n.parent.parent.kind){var a=n.parent.parent,o=n.parent===a.left?a.right:a.left,s=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(o)));i=t.typeToTypeNode(s,r)}else{var c=t.getContextualType(n.parent);i=c?t.typeToTypeNode(c):void 0}return i||e.createKeywordTypeNode(120)}function l(t,r,n,i,a,o){var s=e.createProperty(void 0,o?[e.createToken(116)]:void 0,i,void 0,a,void 0),c=function(t){for(var r,n=0,i=t.members;n<i.length;n++){var a=i[n];if(!e.isPropertyDeclaration(a))break;r=a}return r}(n);c?t.insertNodeAfter(r,c,s):t.insertNodeAtClassStart(r,n,s)}function d(r,i,a,o,s){var c=e.createKeywordTypeNode(138),u=e.createParameter(void 0,void 0,void 0,"x",void 0,c,void 0),l=e.createIndexSignature(void 0,void 0,[u],s),d=e.textChanges.ChangeTracker.with(r,function(e){return e.insertNodeAtClassStart(i,a,l)});return t.createCodeFixActionNoFixId(n,d,[e.Diagnostics.Add_index_signature_for_property_0,o])}function _(r,n,i,a,o,s,c,u,l){var d=t.createMethodFromCallExpression(r,s,o.text,u,c,l,!e.isInterfaceDeclaration(a)),_=e.getAncestor(s,156);_&&_.parent===a?n.insertNodeAfter(i,_,d):n.insertNodeAtClassStart(i,a,d)}function f(t,r,n,i){var a=e.some(i.members,function(e){var t=r.getTypeAtLocation(e);return!!(t&&132&t.flags)}),o=e.createEnumMember(n,a?e.createStringLiteral(n.text):void 0);t.replaceNode(i.getSourceFile(),i,e.updateEnumDeclaration(i,i.decorators,i.modifiers,i.name,e.concatenate(i.members,e.singleElementArray(o))))}t.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i=o(r.sourceFile,r.span.start,r.program.getTypeChecker());if(i){if(0===i.kind){var c=i.token,p=i.parentDeclaration,m=e.textChanges.ChangeTracker.with(r,function(e){return f(e,r.program.getTypeChecker(),c,p)});return[t.createCodeFixAction(n,m,[e.Diagnostics.Add_missing_enum_member_0,c.text],a,e.Diagnostics.Add_all_missing_members)]}var g=i.parentDeclaration,h=i.declSourceFile,y=i.inJs,v=i.makeStatic,b=i.token,x=i.call,S=x&&function(r,i,o,s,c,u,l,d){var f=e.textChanges.ChangeTracker.with(r,function(e){return _(r,e,i,o,s,c,u,l,d)});return t.createCodeFixAction(n,f,[u?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,s.text],a,e.Diagnostics.Add_all_missing_members)}(r,h,g,b,x,v,y,r.preferences),D=y&&!e.isInterfaceDeclaration(g)?e.singleElementArray(function(r,i,o,c,u){var l=e.textChanges.ChangeTracker.with(r,function(e){return s(e,i,o,c,u)});return 0===l.length?void 0:t.createCodeFixAction(n,l,[u?e.Diagnostics.Initialize_static_property_0:e.Diagnostics.Initialize_property_0_in_the_constructor,c],a,e.Diagnostics.Add_all_missing_members)}(r,h,g,b.text,v)):function(r,i,o,s,c){var _=u(r.program.getTypeChecker(),o,s),f=function(r,i,o,s,c,u){var d=e.textChanges.ChangeTracker.with(r,function(e){return l(e,i,o,c,u,s)});return t.createCodeFixAction(n,d,[s?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,c],a,e.Diagnostics.Add_all_missing_members)}(r,i,o,c,s.text,_);return c?[f]:[f,d(r,i,o,s.text,_)]}(r,h,g,b,v);return e.concatenate(e.singleElementArray(S),D)}},fixIds:[a],getAllCodeActions:function(r){var n=r.program,a=r.preferences,c=n.getTypeChecker(),d=e.createMap(),p=new e.NodeMap;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,function(m){t.eachDiagnostic(r,i,function(t){var r=o(t.file,t.start,c);if(r&&e.addToSeen(d,e.getNodeId(r.parentDeclaration)+"#"+r.token.text))if(0===r.kind){var n=r.token,i=r.parentDeclaration;f(m,c,n,i)}else{i=r.parentDeclaration;var a=r.token,s=p.getOrUpdate(i,function(){return[]});s.some(function(e){return e.token.text===a.text})||s.push(r)}}),p.forEach(function(t,i){for(var o=function(t,r){var n=[];for(;t;){var i=e.getClassExtendsHeritageElement(t),a=i&&r.getSymbolAtLocation(i.expression),o=a&&e.find(a.declarations,e.isClassLike);o&&n.push(o),t=o}return n}(i,c),d=function(t){if(o.some(function(e){var r=p.get(e);return!!r&&r.some(function(e){return e.token.text===t.token.text})}))return"continue";var i=t.parentDeclaration,c=t.declSourceFile,d=t.inJs,f=t.makeStatic,g=t.token,h=t.call;if(h)_(r,m,c,i,g,h,f,d,a);else if(d&&!e.isInterfaceDeclaration(i))s(m,c,i,g.text,f);else{var y=u(n.getTypeChecker(),i,g);l(m,c,i,g.text,y,f)}},f=0,g=t;f<g.length;f++){d(g[f])}})}))}}),function(e){e[e.Enum=0]="Enum",e[e.ClassOrInterface=1]="ClassOrInterface"}(r||(r={}))}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixCannotFindModule",n="generateTypes",i=e.Diagnostics.Cannot_find_module_0.code,a=[i,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function o(t,r,n){var i=n.sourceFile.fileName,a=e.tryResolveJSModule(r,e.getDirectoryPath(i),n.host);if(void 0!==a){var o=e.resolvePath(e.getDirectoryPath(n.program.getCompilerOptions().configFile.fileName),t,r+".d.ts");if(!n.host.fileExists(o))return{type:"generate types",file:i,fileToGenerateTypesFor:a,outputFileName:o}}}function s(t,r){var n=r.program.getCompilerOptions().configFile;if(n){var i=e.getTsConfigObjectLiteralExpression(n);if(i){var a=p(i,"compilerOptions");if(!a){var o=e.createObjectLiteral([u(),_()]);return t.insertNodeAtObjectStart(n,i,f("compilerOptions",o)),l}var s=a.initializer;if(!e.isObjectLiteralExpression(s))return l;var m=function(t,r,n){var i=p(n,"baseUrl");return i?e.isStringLiteral(i.initializer)?i.initializer.text:c:(t.insertNodeAtObjectStart(r,n,u()),c)}(t,n,s),g=function(t,r,n){var i=p(n,"paths");if(!i||!e.isObjectLiteralExpression(i.initializer))return t.insertNodeAtObjectStart(r,n,_()),l;var a=e.firstDefined(i.initializer.properties,function(t){return e.isPropertyAssignment(t)&&e.isStringLiteral(t.name)&&"*"===t.name.text&&e.isArrayLiteralExpression(t.initializer)?e.firstDefined(t.initializer.elements,function(t){return e.isStringLiteral(t)?e.tryRemoveSuffix(t.text,"/*"):void 0}):void 0});return a||(t.insertNodeAtObjectStart(r,i.initializer,d()),l)}(t,n,s);return e.combinePaths(m,g)}}}t.registerCodeFix({errorCodes:a,getCodeActions:function(i){var a=i.host,c=i.sourceFile,u=g(c,i.span.start);if(void 0!==u){var l=h(u,a,i.errorCode);return void 0===l?e.singleElementArray(function(i,a){var c,u=e.textChanges.ChangeTracker.with(i,function(e){var t=s(e,i);c=void 0===t?void 0:o(t,a,i)});return c&&t.createCodeFixAction(r,u,[e.Diagnostics.Generate_types_for_0,a],n,e.Diagnostics.Generate_types_for_all_packages_without_types,c)}(i,u)):[t.createCodeFixAction(r,[],[e.Diagnostics.Install_0,l],"installTypesPackage",e.Diagnostics.Install_all_missing_types_packages,m(c.fileName,l))]}},fixIds:["installTypesPackage",n],getAllCodeActions:function(r){var i=null;return t.codeFixAll(r,a,function(t,a,c){var u=g(a.file,a.start);if(void 0!==u)switch(r.fixId){case"installTypesPackage":var l=h(u,r.host,a.code);l&&c.push(m(a.file.fileName,l));break;case n:var d=null!==i?i:i=s(t,r),_=void 0===d?void 0:o(d,u,r);_&&c.push(_);break;default:e.Debug.fail("Bad fixId: "+r.fixId)}})}});var c=".";function u(){return f("baseUrl",e.createStringLiteral(c))}var l="types";function d(){return f("*",e.createArrayLiteral([e.createStringLiteral(l+"/*")]))}function _(){return f("paths",e.createObjectLiteral([d()]))}function f(t,r){return e.createPropertyAssignment(e.createStringLiteral(t),r)}function p(t,r){return e.find(t.properties,function(t){return e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r})}function m(e,t){return{type:"install package",file:e,packageName:t}}function g(t,r){var n=e.cast(e.getTokenAtPosition(t,r),e.isStringLiteral).text,i=e.parsePackageName(n).packageName;return e.isExternalModuleNameRelative(i)?void 0:i}function h(t,r,n){return n===i?e.JsTyping.nodeCoreModules.has(t)?"@types/node":void 0:r.isKnownTypesPackageName(t)?e.getTypesPackageName(t):void 0}}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],n="fixClassDoesntImplementInheritedAbstractMember";function i(t,r){var n=e.getTokenAtPosition(t,r);return e.cast(n.parent,e.isClassLike)}function a(r,n,i,a,s){var c=e.getEffectiveBaseTypeNode(r),u=i.getTypeAtLocation(c),l=i.getPropertiesOfType(u).filter(o);t.createMissingMemberNodes(r,l,i,s,function(e){return a.insertNodeAtClassStart(n,r,e)})}function o(t){var r=e.getModifierFlags(e.first(t.getDeclarations()));return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.program,s=r.sourceFile,c=r.span,u=e.textChanges.ChangeTracker.with(r,function(e){return a(i(s,c.start),s,o.getTypeChecker(),e,r.preferences)});return 0===u.length?void 0:[t.createCodeFixAction(n,u,e.Diagnostics.Implement_inherited_abstract_class,n,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[n],getAllCodeActions:function(n){var o=e.createMap();return t.codeFixAll(n,r,function(t,r){var s=i(r.file,r.start);e.addToSeen(o,e.getNodeId(s))&&a(s,n.sourceFile,n.program.getTypeChecker(),t,n.preferences)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="classSuperMustPrecedeThisAccess",n=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function i(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.delete(t,n)}function a(t,r){var n=e.getTokenAtPosition(t,r);if(100===n.kind){var i=e.getContainingFunction(n),a=o(i.body);return a&&!a.expression.arguments.some(function(t){return e.isPropertyAccessExpression(t)&&t.expression===n})?{constructor:i,superCall:a}:void 0}}function o(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=a(o,s.start);if(c){var u=c.constructor,l=c.superCall,d=e.textChanges.ChangeTracker.with(n,function(e){return i(e,o,u,l)});return[t.createCodeFixAction(r,d,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,r,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[r],getAllCodeActions:function(r){var o=r.sourceFile,s=e.createMap();return t.codeFixAll(r,n,function(t,r){var n=a(r.file,r.start);if(n){var c=n.constructor,u=n.superCall;e.addToSeen(s,e.getNodeId(c.parent))&&i(t,o,c,u)}})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="constructorForDerivedNeedSuperCall",n=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(124===n.kind),n.parent}function a(t,r,n){var i=e.createStatement(e.createCall(e.createSuper(),void 0,e.emptyArray));t.insertNodeAtConstructorStart(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),u=e.textChanges.ChangeTracker.with(n,function(e){return a(e,o,c)});return[t.createCodeFixAction(r,u,e.Diagnostics.Add_missing_super_call,r,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return a(t,e.sourceFile,i(r.file,r.start))})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 86===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.createToken(109)),2===i.length&&86===i[0].token&&109===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.createToken(27));for(var s=r.text,c=a.end;c<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c));)c++;t.deleteRange(r,{pos:a.getStart(),end:c})}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=s.extendsToken,u=s.heritageClauses,l=e.textChanges.ChangeTracker.with(n,function(e){return a(e,o,c,u)});return[t.createCodeFixAction(r,l,e.Diagnostics.Change_extends_to_implements,r,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r.extendsToken,r.heritageClauses)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="forgottenThisPropertyAccess",n=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,i=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,n];function a(t,r,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a))return{node:a,className:i===n?e.getContainingClass(a).name.text:void 0}}function o(t,r,n){var i=n.node,a=n.className;e.suppressLeadingAndTrailingTrivia(i),t.replaceNode(r,i,e.createPropertyAccess(a?e.createIdentifier(a):e.createThis(),i))}t.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=n.sourceFile,s=a(i,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,function(e){return o(e,i,s)});return[t.createCodeFixAction(r,c,[e.Diagnostics.Add_0_to_unresolved_variable,s.className||"this"],r,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,i,function(t,r){var n=a(r.file,r.start,r.code);n&&o(t,e.sourceFile,n)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="unusedIdentifier",n="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_infer",o=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function s(t,r,n){t.replaceNode(r,n.parent,e.createKeywordTypeNode(143))}function c(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(t,r,n){t.delete(r,e.Debug.assertDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters))}function l(t){return 92===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function d(t,r,n,i,a,o){if(18!==t.kind||!e.isObjectBindingPattern(t.parent))return!1;var s=t.parent.parent;return 151===s.kind?m(r,n,s,i,a,o):r.delete(n,s),!0}function _(t,r,n){var i=e.tryCast(r.parent,e.isVariableDeclarationList);return!(!i||i.getChildren(t)[0]!==r)&&(n.delete(t,219===i.parent.kind?i.parent:i),!0)}function f(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(127===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 151:case 150:return!0;case 237:var t=e.parent;switch(t.parent.parent.kind){case 227:case 226:return!0}}return!1}(i)&&t.replaceNode(n,i,e.createIdentifier("_"+i.text)))}function p(t,r,n,i,a,o){!function(t,r,n,i,a,o){var s=t.parent;e.isParameter(s)?m(r,n,s,i,a,o):r.delete(n,e.isImportClause(s)?t:e.isComputedPropertyName(s)?s.parent:s)}(r,n,t,i,a,o),e.isIdentifier(r)&&function(t,r,n,i){e.FindAllReferences.Core.eachSymbolReferenceInFile(n,i,r,function(n){e.isPropertyAccessExpression(n.parent)&&n.parent.name===n&&(n=n.parent),e.isBinaryExpression(n.parent)&&e.isExpressionStatement(n.parent.parent)&&n.parent.left===n&&t.delete(r,n.parent.parent)})}(n,t,r,i)}function m(t,r,n,i,a,o){(function(t,r,n){var i=t.parent;switch(i.kind){case 156:var a=r.getSymbolAtLocation(i.name);if(e.isMemberSymbolInBaseType(a,r))return!1;case 157:case 239:return!0;case 196:case 197:var o=i.parameters,s=o.indexOf(t);return e.Debug.assert(-1!==s),n?o.slice(s+1).every(function(e){return 72===e.name.kind&&!e.symbol.isReferenced}):s===o.length-1;case 159:return!1;default:return e.Debug.failBadSyntaxKind(i)}})(n,i,o)&&(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach(function(e){t.deleteModifier(r,e)}):(t.delete(r,n),function(t,r,n,i,a){e.FindAllReferences.Core.eachSignatureCall(n.parent,i,a,function(e){var i=n.parent.parameters.indexOf(n);e.arguments.length>i&&t.delete(r,e.arguments[i])})}(t,r,n,a,i)))}t.registerCodeFix({errorCodes:o,getCodeActions:function(i){var o=i.errorCode,m=i.sourceFile,g=i.program,h=g.getTypeChecker(),y=g.getSourceFiles(),v=e.getTokenAtPosition(m,i.span.start);if(e.isJSDocTemplateTag(v))return[c(e.textChanges.ChangeTracker.with(i,function(e){return e.delete(m,v)}),e.Diagnostics.Remove_template_tag)];if(28===v.kind)return[c(k=e.textChanges.ChangeTracker.with(i,function(e){return u(e,m,v)}),e.Diagnostics.Remove_type_parameters)];var b=l(v);if(b)return[c(k=e.textChanges.ChangeTracker.with(i,function(e){return e.delete(m,b)}),[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(b)])];var x=e.textChanges.ChangeTracker.with(i,function(e){return d(v,e,m,h,y,!1)});if(x.length)return[c(x,e.Diagnostics.Remove_destructuring)];var S=e.textChanges.ChangeTracker.with(i,function(e){return _(m,v,e)});if(S.length)return[c(S,e.Diagnostics.Remove_variable_statement)];var D=[];if(127===v.kind){var k=e.textChanges.ChangeTracker.with(i,function(e){return s(e,m,v)}),C=e.cast(v.parent,e.isInferTypeNode).typeParameter.name.text;D.push(t.createCodeFixAction(r,k,[e.Diagnostics.Replace_infer_0_with_unknown,C],a,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var T=e.textChanges.ChangeTracker.with(i,function(e){return p(m,v,e,h,y,!1)});if(T.length){C=e.isComputedPropertyName(v.parent)?v.parent:v;D.push(c(T,[e.Diagnostics.Remove_declaration_for_Colon_0,C.getText(m)]))}}var E=e.textChanges.ChangeTracker.with(i,function(e){return f(e,o,m,v)});return E.length&&D.push(t.createCodeFixAction(r,E,[e.Diagnostics.Prefix_0_with_an_underscore,v.getText(m)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),D},fixIds:[n,i,a],getAllCodeActions:function(r){var c=r.sourceFile,m=r.program,g=m.getTypeChecker(),h=m.getSourceFiles();return t.codeFixAll(r,o,function(t,o){var m=e.getTokenAtPosition(c,o.start);switch(r.fixId){case n:f(t,o.code,c,m);break;case i:if(127===m.kind)break;var y=l(m);y?t.delete(c,y):e.isJSDocTemplateTag(m)?t.delete(c,m):28===m.kind?u(t,c,m):d(m,t,c,g,h,!0)||_(c,m,t)||p(c,m,t,g,h,!0);break;case a:127===m.kind&&s(t,c,m);break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n),o=e.findAncestor(a,e.isStatement);e.Debug.assert(o.getStart(r)===a.getStart(r));var s=(e.isBlock(o.parent)?o.parent:o).parent;if(!e.isBlock(o.parent)||o===e.first(o.parent.statements))switch(s.kind){case 222:if(s.elseStatement){if(e.isBlock(o.parent))break;return void t.replaceNode(r,o,e.createBlock(e.emptyArray))}case 224:case 225:return void t.delete(r,s)}if(e.isBlock(o.parent)){var c=n+i,u=e.Debug.assertDefined(function(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(!t(a))break;r=a}return r}(e.sliceAfter(o.parent.statements,o),function(e){return e.pos<c}));t.deleteNodeRange(r,o,u)}else t.delete(r,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start,n.span.length)});return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unreachable_code,r,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,t.start,t.length)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixUnusedLabel",n=[e.Diagnostics.Unused_label.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.cast(i.parent,e.isLabeledStatement),o=i.getStart(r),s=a.statement.getStart(r),c=e.positionsAreOnSameLine(o,s,r)?s:e.skipTrivia(r.text,e.findChildOfKind(a,57,r).end,!0);t.deleteRange(r,{pos:o,end:c})}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unused_label,r,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function n(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r))}function i(t,r,n){var i=e.findAncestor(e.getTokenAtPosition(t,r),a),o=i&&i.type;return o&&{typeNode:o,type:n.getTypeFromTypeNode(o)}}function a(e){switch(e.kind){case 212:case 160:case 161:case 239:case 158:case 162:case 181:case 156:case 155:case 151:case 154:case 153:case 159:case 242:case 194:case 237:return!0;default:return!1}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,o=r.program.getTypeChecker(),s=i(a,r.span.start,o);if(s){var c=s.typeNode,u=s.type,l=c.getText(a),d=[_(u,"fixJSDocTypes_plain",e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 286===c.kind&&d.push(_(o.getNullableType(u,32768),"fixJSDocTypes_nullable",e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),d}function _(i,s,u){var d=e.textChanges.ChangeTracker.with(r,function(e){return n(e,a,c,i,o)});return t.createCodeFixAction("jdocTypes",d,[e.Diagnostics.Change_0_to_1,l,o.typeToString(i)],s,u)}},fixIds:["fixJSDocTypes_plain","fixJSDocTypes_nullable"],getAllCodeActions:function(e){var a=e.fixId,o=e.program,s=e.sourceFile,c=o.getTypeChecker();return t.codeFixAll(e,r,function(e,t){var r=i(t.file,t.start,c);if(r){var o=r.typeNode,u=r.type,l=286===o.kind&&"fixJSDocTypes_nullable"===a?c.getNullableType(u,32768):u;n(e,s,o,l,c)}})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixAwaitInSyncFunction",n=[e.Diagnostics.await_expression_is_only_allowed_within_an_async_function.code,e.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingFunction(n);if(i){var a,o;switch(i.kind){case 156:a=i.name;break;case 239:case 196:a=e.findChildOfKind(i,90,t);break;case 197:a=e.findChildOfKind(i,20,t)||e.first(i.parameters);break;default:return}return a&&{insertBefore:a,returnType:(o=i,o.type?o.type:e.isVariableDeclaration(o.parent)&&o.parent.type&&e.isFunctionTypeNode(o.parent.type)?o.parent.type.type:void 0)}}}function a(t,r,n){var i=n.insertBefore,a=n.returnType;if(a){var o=e.getEntityNameFromTypeNode(a);o&&72===o.kind&&"Promise"===o.text||t.replaceNode(r,a,e.createTypeReferenceNode("Promise",e.createNodeArray([a])))}t.insertModifierBefore(r,121,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var u=e.textChanges.ChangeTracker.with(n,function(e){return a(e,o,c)});return[t.createCodeFixAction(r,u,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){var n=i(r.file,r.start);n&&a(t,e.sourceFile,n)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="disableJsDiagnostics",n=e.mapDefined(Object.keys(e.Diagnostics),function(t){var r=e.Diagnostics[t];return r.category===e.DiagnosticCategory.Error?r.code:void 0});function i(t,r,n,i){var a=e.getLineAndCharacterOfPosition(r,n).line;i&&!e.addToSeen(i,a)||t.insertCommentBeforeLine(r,a,n," @ts-ignore")}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.sourceFile,o=n.program,s=n.span,c=n.host,u=n.formatContext;if(e.isInJSFile(a)&&e.isCheckJsEnabledForFile(a,o.getCompilerOptions())){var l=[t.createCodeFixActionNoFixId("disableJsDiagnostics",[t.createFileTextChanges(a.fileName,[e.createTextChange(a.checkJsDirective?e.createTextSpanFromBounds(a.checkJsDirective.pos,a.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck"+e.getNewLineOrDefaultFromHost(c,u.options))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(a,s.start)&&l.unshift(t.createCodeFixAction("disableJsDiagnostics",e.textChanges.ChangeTracker.with(n,function(e){return i(e,a,s.start)}),e.Diagnostics.Ignore_this_error_message,r,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),l}},fixIds:[r],getAllCodeActions:function(r){var a=e.createMap();return t.codeFixAll(r,n,function(t,r){e.textChanges.isValidLocationToAddComment(r.file,r.start)&&i(t,r.file,r.start,a)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){function r(t,r,a,o,s){var c=t.getDeclarations();if(c&&c.length){var u=c[0],l=e.getSynthesizedDeepClone(e.getNameOfDeclaration(u),!1),d=function(t){if(4&t)return e.createToken(115);if(16&t)return e.createToken(114);return}(e.getModifierFlags(u)),_=d?e.createNodeArray([d]):void 0,f=a.getWidenedType(a.getTypeOfSymbolAtLocation(t,r)),p=!!(16777216&t.flags);switch(u.kind){case 158:case 159:case 153:case 154:var m=a.typeToTypeNode(f,r);s(e.createProperty(void 0,_,l,p?e.createToken(56):void 0,m,void 0));break;case 155:case 156:var g=a.getSignaturesOfType(f,0);if(!e.some(g))break;if(1===c.length){e.Debug.assert(1===g.length),v(g[0],_,l,i(o));break}for(var h=0,y=g;h<y.length;h++){v(y[h],e.getSynthesizedDeepClones(_,!1),e.getSynthesizedDeepClone(l,!1))}if(c.length>g.length)v(a.getSignatureFromDeclaration(c[c.length-1]),_,l,i(o));else e.Debug.assert(c.length===g.length),s(function(t,r,a,o,s){for(var c=t[0],u=t[0].minArgumentCount,l=!1,d=0,_=t;d<_.length;d++){var f=_[d];u=Math.min(f.minArgumentCount,u),f.hasRestParameter&&(l=!0),f.parameters.length>=c.parameters.length&&(!f.hasRestParameter||c.hasRestParameter)&&(c=f)}var p=c.parameters.length-(c.hasRestParameter?1:0),m=c.parameters.map(function(e){return e.name}),g=n(p,m,void 0,u,!1);if(l){var h=e.createArrayTypeNode(e.createKeywordTypeNode(120)),y=e.createParameter(void 0,void 0,e.createToken(25),m[p]||"rest",p>=u?e.createToken(56):void 0,h,void 0);g.push(y)}return function(t,r,n,a,o,s,c){return e.createMethod(void 0,t,void 0,r,n?e.createToken(56):void 0,a,o,s,i(c))}(o,r,a,void 0,g,void 0,s)}(g,l,p,_,o))}}function v(t,n,i,o){var c=function(t,r,n,i,a,o,s){var c=t.signatureToSignatureDeclaration(r,156,n,256);if(!c)return;return c.decorators=void 0,c.modifiers=i,c.name=a,c.questionToken=o?e.createToken(56):void 0,c.body=s,c}(a,t,r,n,i,p,o);c&&s(c)}}function n(t,r,n,i,a){for(var o=[],s=0;s<t;s++){var c=e.createParameter(void 0,void 0,void 0,r&&r[s]||"arg"+s,void 0!==i&&s>=i?e.createToken(56):void 0,a?void 0:n&&n[s]||e.createKeywordTypeNode(120),void 0);o.push(c)}return o}function i(t){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.","single"===t.quotePreference)]))],!0)}t.createMissingMemberNodes=function(e,t,n,i,a){for(var o=e.symbol.members,s=0,c=t;s<c.length;s++){var u=c[s];o.has(u.escapedName)||r(u,e,n,i,a)}},t.createMethodFromCallExpression=function(t,r,a,o,s,c,u){var l=r.typeArguments,d=r.arguments,_=r.parent,f=t.program.getTypeChecker(),p=e.map(d,function(e){return f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(e)))}),m=e.map(d,function(t){return e.isIdentifier(t)?t.text:e.isPropertyAccessExpression(t)?t.name.text:void 0}),g=f.getContextualType(r),h=o?void 0:g&&f.typeToTypeNode(g,r)||e.createKeywordTypeNode(120);return e.createMethod(void 0,s?[e.createToken(116)]:void 0,e.isYieldExpression(_)?e.createToken(40):void 0,a,void 0,o?void 0:e.map(l,function(t,r){return e.createTypeParameterDeclaration(84+l.length-1<=90?String.fromCharCode(84+r):"T"+r)}),n(d.length,m,p,void 0,o),h,u?i(c):void 0)}}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="invalidImportSyntax";function n(n,i,a,o){var s=e.textChanges.ChangeTracker.with(n,function(e){return e.replaceNode(i,a,o)});return t.createCodeFixActionNoFixId(r,s,[e.Diagnostics.Replace_import_with_0,s[0].textChanges[0].newText])}function i(i,a){var o=i.program.getTypeChecker().getTypeAtLocation(a);if(!o.symbol||!o.symbol.originatingImport)return[];var s=[],c=o.symbol.originatingImport;if(e.isImportCall(c)||e.addRange(s,function(t,r){var i=e.getSourceFileOfNode(r),a=e.getNamespaceDeclarationNode(r),o=t.program.getCompilerOptions(),s=[];return s.push(n(t,i,r,e.makeImport(a.name,void 0,r.moduleSpecifier,e.getQuotePreference(i,t.preferences)))),e.getEmitModuleKind(o)===e.ModuleKind.CommonJS&&s.push(n(t,i,r,e.createImportEqualsDeclaration(void 0,void 0,a.name,e.createExternalModuleReference(r.moduleSpecifier)))),s}(i,c)),e.isExpression(a)&&(!e.isNamedDeclaration(a.parent)||a.parent.name!==a)){var u=i.sourceFile,l=e.textChanges.ChangeTracker.with(i,function(t){return t.replaceNode(u,a,e.createPropertyAccess(a,"default"),{})});s.push(t.createCodeFixActionNoFixId(r,l,e.Diagnostics.Use_synthetic_default_member))}return s}t.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature.code],getCodeActions:function(t){var r=t.sourceFile,n=e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code===t.errorCode?191:192,a=e.findAncestor(e.getTokenAtPosition(r,t.span.start),function(e){return e.kind===n&&e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length});if(!a)return[];var o=a.expression;return i(t,o)}}),t.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2.code,e.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(t){var r=t.sourceFile,n=e.findAncestor(e.getTokenAtPosition(r,t.span.start),function(e){return e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length});if(!n)return[];return i(t,n)}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="strictClassInitialization",n="addMissingPropertyDefiniteAssignmentAssertions",i="addMissingPropertyUndefinedType",a="addMissingPropertyInitializer",o=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function s(t,r){var n=e.getTokenAtPosition(t,r);return e.isIdentifier(n)?e.cast(n.parent,e.isPropertyDeclaration):void 0}function c(i,a){var o=e.textChanges.ChangeTracker.with(i,function(e){return u(e,i.sourceFile,a)});return t.createCodeFixAction(r,o,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,a.getText()],n,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function u(t,r,n){var i=e.updateProperty(n,n.decorators,n.modifiers,n.name,e.createToken(52),n.type,n.initializer);t.replaceNode(r,n,i)}function l(n,a){var o=e.textChanges.ChangeTracker.with(n,function(e){return d(e,n.sourceFile,a)});return t.createCodeFixAction(r,o,[e.Diagnostics.Add_undefined_type_to_property_0,a.name.getText()],i,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function d(t,r,n){var i=e.createKeywordTypeNode(141),a=n.type,o=e.isUnionTypeNode(a)?a.types.concat(i):[a,i];t.replaceNode(r,a,e.createUnionTypeNode(o))}function _(t,r,n,i){var a=e.updateProperty(n,n.decorators,n.modifiers,n.name,n.questionToken,n.type,i);t.replaceNode(r,n,a)}function f(t,r){return function t(r,n){if(512&n.flags)return n===r.getFalseType()||n===r.getFalseType(!0)?e.createFalse():e.createTrue();if(n.isLiteral())return e.createLiteral(n.value);if(n.isUnion())return e.firstDefined(n.types,function(e){return t(r,e)});if(n.isClass()){var i=e.getClassLikeDeclarationOfSymbol(n.symbol);if(!i||e.hasModifier(i,128))return;var a=e.getFirstConstructorWithBody(i);if(a&&a.parameters.length)return;return e.createNew(e.createIdentifier(n.symbol.name),void 0,void 0)}if(r.isArrayLikeType(n))return e.createArrayLiteral();return}(t,t.getTypeFromTypeNode(r.type))}t.registerCodeFix({errorCodes:o,getCodeActions:function(n){var i=s(n.sourceFile,n.span.start);if(i){var o=[l(n,i),c(n,i)];return e.append(o,function(n,i){var o=f(n.program.getTypeChecker(),i);if(!o)return;var s=e.textChanges.ChangeTracker.with(n,function(e){return _(e,n.sourceFile,i,o)});return t.createCodeFixAction(r,s,[e.Diagnostics.Add_initializer_to_property_0,i.name.getText()],a,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}(n,i)),o}},fixIds:[n,i,a],getAllCodeActions:function(r){return t.codeFixAll(r,o,function(t,o){var c=s(o.file,o.start);if(c)switch(r.fixId){case n:u(t,o.file,c);break;case i:d(t,o.file,c);break;case a:var l=f(r.program.getTypeChecker(),c);if(!l)return;_(t,o.file,c,l);break;default:e.Debug.fail(JSON.stringify(r.fixId))}})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){function t(t,n,i,a){return r(e.inspectValue(t,n),i,a)}function r(t,r,n){return void 0===n&&(n=0),e.textChanges.getNewFileText(a(t,n),3,r.newLineCharacter||"\n",e.formatting.getFormatContext(r))}var n;function i(e){return a(e,2)}function a(t,r){var n="default"===t.name,l=n?"_default":t.name;if(!p(l)||n&&1!==r)return e.emptyArray;var _=n&&2===t.kind?[e.createModifier(85),e.createModifier(80)]:3===r||0===r?[e.createModifier(125)]:1===r?[e.createModifier(85)]:void 0,y=function(){return 0===r?[o(t.name,!0)]:e.emptyArray},v=function(){return n?[o("_default",!1)]:e.emptyArray};switch(t.kind){case 2:return y().concat(function(t,r,n){var i=n.source,o=n.prototypeMembers,l=n.namespaceMembers,_=d(i),y=void 0===_?{parameters:e.emptyArray,returnType:g()}:u(_),v=y.parameters,b=y.returnType,x=e.createMap();"object"==typeof _&&function(t,r){f(t,function(t){if(e.isAssignmentExpression(t,!0)&&e.isPropertyAccessExpression(t.left)&&100===t.left.expression.kind){var n=t.left.name.text;e.isJsPrivate(n)||e.getOrUpdate(r,n,function(){return e.createProperty(void 0,void 0,n,void 0,g(),void 0)})}})}(_,x);for(var S=0,D=o;S<D.length;S++){var k=D[S];if(2===k.kind){var C=s(k);C&&x.set(k.name,C)}}var T=0!==x.size||void 0===_||"number"!=typeof _&&157===_.kind?[]:void 0,E=e.flatMap(l,function(t){if(p(t.name)){if(T)switch(t.kind){case 3:if(t.members.some(function(e){return 2===e.kind}))break;case 1:case 0:return void T.push(m(e.createProperty(void 0,[e.createModifier(116)],t.name,void 0,c(t),void 0),0===t.kind?t.comment:void 0));case 2:if(!t.namespaceMembers.length){var r=s(t,[e.createModifier(116)]);if(r)return void T.push(r)}break;default:e.Debug.assertNever(t)}return a(t,2)}});return[T?e.createClassDeclaration(void 0,t,r,void 0,void 0,T.concat(v.length?[e.createConstructor(void 0,void 0,v,void 0)]:e.emptyArray,e.arrayFrom(x.values()))):e.createFunctionDeclaration(void 0,t,void 0,r,void 0,v,b,void 0)].concat(0===E.length?e.emptyArray:[h(t&&t.map(function(t){return e.getSynthesizedDeepClone(t)}),r,E)])}(_,l,t));case 3:var b=t.members;if(!t.hasNontrivialPrototype){if(0===r)return e.flatMap(b,function(e){return a(e,1)});if(b.some(function(e){return 2===e.kind}))return v().concat([h(_,l,e.flatMap(b,i))])}case 0:case 1:var x=0===t.kind?t.comment:void 0,S=e.createVariableStatement(_,e.createVariableDeclarationList([e.createVariableDeclaration(l,c(t))],2));return y().concat(v(),[m(S,x)]);default:return e.Debug.assertNever(t)}}function o(t,r){return e.createExportAssignment(void 0,void 0,r,e.createIdentifier(t))}function s(t,r){var n=t.name,i=t.source;if(p(n)){var a=d(i);if(void 0!==a&&("number"==typeof a||157!==a.kind)){var o=u(a);return o&&e.createMethod(void 0,r,void 0,n,void 0,void 0,o.parameters,o.returnType,void 0)}}}function c(t){switch(t.kind){case 0:return e.createTypeReferenceNode(t.typeName,void 0);case 1:return e.createArrayTypeNode(c(t.inner));case 2:return e.createTypeReferenceNode("Function",void 0);case 3:return e.createTypeLiteralNode(t.members.map(function(t){return e.createPropertySignature(void 0,(r=t.name,e.isIdentifierText(r,6)?e.createIdentifier(r):e.createStringLiteral(r)),void 0,c(t),void 0);var r}));default:return e.Debug.assertNever(t)}}function u(t){if("number"==typeof t)return{parameters:e.fill(t,function(e){return l("p"+e,g())}),returnType:g()};var r=!1,n=!1;return f(t,function(t){r=r||e.isIdentifier(t)&&"arguments"===t.text,n=n||e.isReturnStatement(t)&&!!t.expression&&200!==t.expression.kind}),{parameters:t.parameters.map(function(e){return l(""+e.name.getText(),g())}).concat(r?[e.createParameter(void 0,void 0,e.createToken(25),"args",void 0,e.createArrayTypeNode(g()))]:e.emptyArray),returnType:n?g():e.createKeywordTypeNode(106)}}function l(t,r){return e.createParameter(void 0,void 0,void 0,t,void 0,r)}function d(t){if("number"==typeof t)return t;var r=e.tryCast(_(t),function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)});return r?e.isClassExpression(r)?e.find(r.members,e.isConstructorDeclaration):r:e.cast(e.first(e.cast(_("{ "+t+" }"),e.isObjectLiteralExpression).properties),e.isMethodDeclaration)}function _(t){var r="const _ = "+t,n=e.createSourceFile("test.ts",r,6,!0);return e.first(e.cast(e.first(n.statements),e.isVariableStatement).declarationList.declarations).initializer}function f(t,r){t.body.forEachChild(function t(n){r(n),e.isFunctionLike(n)||n.forEachChild(t)})}function p(t){var r=e.stringToToken(t);return!(r&&e.isNonContextualKeyword(r))&&e.isIdentifierText(t,6)}function m(t,r){return void 0!==r&&e.addSyntheticLeadingComment(t,2,r),t}function g(){return e.createKeywordTypeNode(120)}function h(t,r,n){return e.createModuleDeclaration(void 0,t,e.createIdentifier(r),e.createModuleBlock(n),16)}e.generateTypesForModule=function(e,r,n){return t(e,r,n,0)},e.generateTypesForGlobal=function(e,r,n){return t(e,r,n,3)},e.valueInfoToDeclarationFileText=r,function(e){e[e.ExportEquals=0]="ExportEquals",e[e.NamedExport=1]="NamedExport",e[e.NamespaceMember=2]="NamespaceMember",e[e.Global=3]="Global"}(n||(n={}))}(d||(d={})),function(e){!function(t){var r="requireInTs",n=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];function i(t,r,n,i){var a=function(t,r){var n=e.getTokenAtPosition(t,r).parent;if(!e.isRequireCall(n,!0))throw e.Debug.failBadSyntaxKind(n);var i=e.cast(n.parent,e.isVariableDeclaration);return{statement:e.cast(i.parent.parent,e.isVariableStatement),name:e.cast(i.name,e.isIdentifier),required:n.arguments[0]}}(r,n),o=a.statement,s=a.name,c=a.required;t.replaceNode(r,o,e.getAllowSyntheticDefaultImports(i.getCompilerOptions())?e.createImportDeclaration(void 0,void 0,e.createImportClause(s,void 0),c):e.createImportEqualsDeclaration(void 0,void 0,s,e.createExternalModuleReference(c)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,function(e){return i(e,n.sourceFile,n.span.start,n.program)});return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_require_to_import,r,e.Diagnostics.Convert_all_require_to_import)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return i(t,r.file,r.start,e.program)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="useDefaultImport",n=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=n.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:n,moduleSpecifier:a.moduleSpecifier}}}}function a(t,r,n,i){t.replaceNode(r,n.importNode,e.makeImport(n.name,void 0,n.moduleSpecifier,e.getQuotePreference(r,i)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span.start,c=i(o,s);if(c){var u=e.textChanges.ChangeTracker.with(n,function(e){return a(e,o,c,n.preferences)});return[t.createCodeFixAction(r,u,e.Diagnostics.Convert_to_default_import,r,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){var n=i(r.file,r.start);n&&a(t,r.file,n,e.preferences)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixAddModuleReferTypeMissingTypeof",n=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(92===n.kind),e.Debug.assert(183===n.parent.kind),n.parent}function a(t,r,n){var i=e.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),u=e.textChanges.ChangeTracker.with(n,function(e){return a(e,o,c)});return[t.createCodeFixAction(r,u,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,r){return a(t,e.sourceFile,i(r.file,r.start))})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){var r="fixConvertToMappedObjectType",n=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.cast(n.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(i.parent))return{indexSignature:i,container:e.isInterfaceDeclaration(i.parent)?i.parent:e.cast(i.parent.parent,e.isTypeAliasDeclaration)}}function a(t,r,n){var i,a,o=n.indexSignature,s=n.container,c=(e.isInterfaceDeclaration(s)?s.members:s.type.members).filter(function(t){return!e.isIndexSignatureDeclaration(t)}),u=e.first(o.parameters),l=e.createTypeParameterDeclaration(e.cast(u.name,e.isIdentifier),u.type),d=e.createMappedTypeNode(e.hasReadonlyModifier(o)?e.createModifier(133):void 0,l,o.questionToken,o.type),_=e.createIntersectionTypeNode(e.getAllSuperTypeNodes(s).concat([d],c.length?[e.createTypeLiteralNode(c)]:e.emptyArray));t.replaceNode(r,s,(i=s,a=_,e.createTypeAliasDeclaration(i.decorators,i.modifiers,i.name,i.typeParameters,a)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var u=e.textChanges.ChangeTracker.with(n,function(e){return a(e,o,c)}),l=e.idText(c.container.name);return[t.createCodeFixAction(r,u,[e.Diagnostics.Convert_0_to_mapped_object_type,l],r,[e.Diagnostics.Convert_0_to_mapped_object_type,l])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r)})}})}(e.codefix||(e.codefix={}))}(d||(d={})),function(e){!function(t){function r(t){var r=t.file,n=e.getRefactorContextSpan(t),i=e.getTokenAtPosition(r,n.start),a=e.getParentNodeInSpan(i,r,n);if(a&&(e.isSourceFile(a.parent)||e.isModuleBlock(a.parent)&&e.isAmbientModule(a.parent.parent))){var o=e.isSourceFile(a.parent)?a.parent.symbol:a.parent.parent.symbol,s=e.getModifierFlags(a),c=!!(512&s);if(1&s&&(c||!o.exports.has("default")))switch(a.kind){case 239:case 240:case 241:case 243:case 242:case 244:var u=a;return u.name&&e.isIdentifier(u.name)?{exportNode:u,exportName:u.name,wasDefault:c,exportingModuleSymbol:o}:void 0;case 219:var l=a;if(!(2&l.declarationList.flags)||1!==l.declarationList.declarations.length)return;var d=e.first(l.declarationList.declarations);if(!d.initializer)return;return e.Debug.assert(!c),e.isIdentifier(d.name)?{exportNode:l,exportName:d.name,wasDefault:c,exportingModuleSymbol:o}:void 0;default:return}}}function n(t,r){return e.createImportSpecifier(t===r?void 0:e.createIdentifier(t),e.createIdentifier(r))}t.registerRefactor("Convert export",{getAvailableActions:function(t){var n=r(t);if(!n)return e.emptyArray;var i=n.wasDefault?e.Diagnostics.Convert_default_export_to_named_export.message:e.Diagnostics.Convert_named_export_to_default_export.message;return[{name:"Convert export",description:i,actions:[{name:n.wasDefault?"Convert default export to named export":"Convert named export to default export",description:i}]}]},getEditsForAction:function(t,i){return e.Debug.assert("Convert default export to named export"===i||"Convert named export to default export"===i),{edits:e.textChanges.ChangeTracker.with(t,function(i){return a=t.file,o=t.program,s=e.Debug.assertDefined(r(t)),c=i,u=t.cancellationToken,function(t,r,n,i){var a=r.wasDefault,o=r.exportNode,s=r.exportName;if(a)n.delete(t,e.Debug.assertDefined(e.findModifier(o,80)));else{var c=e.Debug.assertDefined(e.findModifier(o,85));switch(o.kind){case 239:case 240:case 241:n.insertNodeAfter(t,c,e.createToken(80));break;case 219:if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)){n.replaceNode(t,o,e.createExportDefault(e.Debug.assertDefined(e.first(o.declarationList.declarations).initializer)));break}case 243:case 242:case 244:n.deleteModifier(t,c),n.insertNodeAfter(t,o,e.createExportDefault(e.createIdentifier(s.text)));break;default:e.Debug.assertNever(o)}}}(a,s,c,o.getTypeChecker()),void function(t,r,i,a){var o=r.wasDefault,s=r.exportName,c=r.exportingModuleSymbol,u=t.getTypeChecker(),l=e.Debug.assertDefined(u.getSymbolAtLocation(s));e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,a,l,c,s.text,o,function(t){var r=t.getSourceFile();o?function(t,r,i,a){var o=r.parent;switch(o.kind){case 189:i.replaceNode(t,r,e.createIdentifier(a));break;case 253:case 257:var s=o;i.replaceNode(t,s,n(a,s.name.text));break;case 250:var c=o;e.Debug.assert(c.name===r);var s=n(a,r.text),u=c.namedBindings;if(u)if(251===u.kind){i.deleteRange(t,{pos:r.getStart(t),end:u.getStart(t)});var l=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,d=e.makeImport(void 0,[n(a,r.text)],c.parent.moduleSpecifier,l);i.insertNodeAfter(t,c.parent,d)}else i.delete(t,r),i.insertNodeAtEndOfList(t,u.elements,s);else i.replaceNode(t,r,e.createNamedImports([s]));break;default:e.Debug.failBadSyntaxKind(o)}}(r,t,i,s.text):function(t,r,n){var i,a,o=r.parent;switch(o.kind){case 189:n.replaceNode(t,r,e.createIdentifier("default"));break;case 253:var s=e.createIdentifier(o.name.text);1===o.parent.elements.length?n.replaceNode(t,o.parent,s):(n.delete(t,o),n.insertNodeBefore(t,o.parent,s));break;case 257:n.replaceNode(t,o,(i="default",a=o.name.text,e.createExportSpecifier(i===a?void 0:e.createIdentifier(i),e.createIdentifier(a))));break;default:e.Debug.assertNever(o)}}(r,t,i)})}(o,s,c,u);var a,o,s,c,u}),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){function r(t){var r=t.file,n=e.getRefactorContextSpan(t),i=e.getTokenAtPosition(r,n.start),a=e.getParentNodeInSpan(i,r,n);if(a&&e.isImportDeclaration(a)){var o=a.importClause;return o&&o.namedBindings}}function n(t,r,n){return e.createImportDeclaration(void 0,void 0,e.createImportClause(r,n&&n.length?e.createNamedImports(n):void 0),t.moduleSpecifier)}t.registerRefactor("Convert import",{getAvailableActions:function(t){var n=r(t);if(!n)return e.emptyArray;var i=251===n.kind?e.Diagnostics.Convert_namespace_import_to_named_imports.message:e.Diagnostics.Convert_named_imports_to_namespace_import.message;return[{name:"Convert import",description:i,actions:[{name:251===n.kind?"Convert namespace import to named imports":"Convert named imports to namespace import",description:i}]}]},getEditsForAction:function(t,i){return e.Debug.assert("Convert namespace import to named imports"===i||"Convert named imports to namespace import"===i),{edits:e.textChanges.ChangeTracker.with(t,function(i){return a=t.file,o=t.program,s=i,c=e.Debug.assertDefined(r(t)),u=o.getTypeChecker(),void(251===c.kind?function(t,r,i,a,o){var s=!1,c=[],u=e.createMap();e.FindAllReferences.Core.eachSymbolReferenceInFile(a.name,r,t,function(t){if(e.isPropertyAccessExpression(t.parent)){var n=e.cast(t.parent,e.isPropertyAccessExpression),i=n.name.text;r.resolveName(i,t,67108863,!0)&&u.set(i,!0),e.Debug.assert(n.expression===t),c.push(n)}else s=!0});for(var l=e.createMap(),d=0,_=c;d<_.length;d++){var f=_[d],p=f.name.text,m=l.get(p);void 0===m&&l.set(p,m=u.has(p)?e.getUniqueName(p,t):p),i.replaceNode(t,f,e.createIdentifier(m))}var g=[];l.forEach(function(t,r){g.push(e.createImportSpecifier(t===r?void 0:e.createIdentifier(r),e.createIdentifier(t)))});var h=a.parent.parent;s&&!o?i.insertNodeAfter(t,h,n(h,void 0,g)):i.replaceNode(t,h,n(h,s?e.createIdentifier(a.name.text):void 0,g))}(a,u,s,c,e.getAllowSyntheticDefaultImports(o.getCompilerOptions())):function(t,r,i,a){for(var o=a.parent.parent,s=o.moduleSpecifier,c=s&&e.isStringLiteral(s)?e.codefix.moduleSpecifierToValidIdentifier(s.text,6):"module",u=a.elements.some(function(n){return e.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,r,t,function(e){return!!r.resolveName(c,e,67108863,!0)})||!1})?e.getUniqueName(c,t):c,l=[],d=function(n){var a=(n.propertyName||n.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,r,t,function(r){var o=e.createPropertyAccess(e.createIdentifier(u),a);e.isShorthandPropertyAssignment(r.parent)?i.replaceNode(t,r.parent,e.createPropertyAssignment(r.text,o)):e.isExportSpecifier(r.parent)&&!r.parent.propertyName?l.some(function(e){return e.name===n.name})||l.push(e.createImportSpecifier(n.propertyName&&e.createIdentifier(n.propertyName.text),e.createIdentifier(n.name.text))):i.replaceNode(t,r,o)})},_=0,f=a.elements;_<f.length;_++){var p=f[_];d(p)}i.replaceNode(t,a,e.createNamespaceImport(e.createIdentifier(u))),l.length&&i.insertNodeAfter(t,a.parent.parent,n(o,void 0,l))}(a,u,s,c));var a,o,s,c,u}),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){!function(r){var n,i,a,o,s="Extract Symbol";function c(t){var r=l(t.file,e.getRefactorContextSpan(t)).targetRange;if(void 0===r)return e.emptyArray;var n=function(t,r){var n=f(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope;return i.map(function(t,r){var n,i,a=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),u=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 157:return"constructor";case 196:case 239:return t.name?"function '"+t.name.text+"'":"anonymous function";case 197:return"arrow function";case 156:return"method '"+t.name.getText()+"'";case 158:return"'get "+t.name.getText()+"'";case 159:return"'set "+t.name.getText()+"'";default:throw e.Debug.assertNever(t)}}(t):e.isClassLike(t)?function(e){return 240===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}(t):function(e){return 245===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(t);return 1===u?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===u?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,u]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,u])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}})}(r,t);if(void 0===n)return e.emptyArray;for(var i=[],a=e.createMap(),o=[],c=e.createMap(),u=0,d=0,_=n;d<_.length;d++){var p=_[d],m=p.functionExtraction,g=p.constantExtraction;if(0===m.errors.length){var h=m.description;a.has(h)||(a.set(h,!0),i.push({description:h,name:"function_scope_"+u}))}if(0===g.errors.length){h=g.description;c.has(h)||(c.set(h,!0),o.push({description:h,name:"constant_scope_"+u}))}u++}var y=[];return i.length&&y.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:i}),o.length&&y.push({name:s,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:o}),y.length?y:e.emptyArray}function u(t,r){var n=l(t.file,e.getRefactorContextSpan(t)).targetRange,a=/^function_scope_(\d+)$/.exec(r);if(a){var o=+a[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),function(t,r,n){var a=f(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,u=s.usagesPerScope,l=s.functionErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!l[n].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),function(t,r,n,a,o,s){var c,u,l=n.usages,d=n.typeParameterUsages,_=n.substitutions,f=s.program.getTypeChecker(),y=r.getSourceFile(),v=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",y),b=e.isInJSFile(r),x=e.createIdentifier(v),S=[],D=[];l.forEach(function(t,n){var i;if(!b){var a=f.getTypeOfSymbolAtLocation(t.symbol,t.node);a=f.getBaseTypeOfLiteralType(a),i=f.typeToTypeNode(a,r,1)}var o=e.createParameter(void 0,void 0,void 0,n,void 0,i);S.push(o),2===t.usage&&(u||(u=[])).push(t),D.push(e.createIdentifier(n))});var k=e.arrayFrom(d.values()).map(function(e){return{type:e,declaration:p(e)}}).sort(m),C=0===k.length?void 0:k.map(function(e){return e.declaration}),T=void 0!==C?C.map(function(t){return e.createTypeReferenceNode(t.name,void 0)}):void 0;if(e.isExpression(t)&&!b){var E=f.getContextualType(t);c=f.typeToTypeNode(E,r,1)}var N,A=function(t,r,n,i,a){var o,s=void 0!==n||r.length>0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.createReturn(t)]);if(s||i.size){var l=e.visitNodes(u,function t(a){if(!c&&230===a.kind&&s){var u=g(r,n);return a.expression&&(o||(o="__return"),u.unshift(e.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===u.length?e.createReturn(u[0].name):e.createReturn(e.createObjectLiteral(u))}var l=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var d=i.get(e.getNodeId(a).toString()),_=d?e.getSynthesizedDeepClone(d):e.visitEachChild(a,t,e.nullTransformationContext);return c=l,_}).slice();if(s&&!a&&e.isStatement(t)){var d=g(r,n);1===d.length?l.push(e.createReturn(d[0].name)):l.push(e.createReturn(e.createObjectLiteral(d)))}return{body:e.createBlock(l,!0),returnValueProperty:o}}return{body:e.createBlock(u,!0),returnValueProperty:void 0}}(t,a,u,_,!!(o.facts&i.HasReturn)),w=A.body,P=A.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(w),e.isClassLike(r)){var F=b?[]:[e.createToken(113)];o.facts&i.InStaticRegion&&F.push(e.createToken(116)),o.facts&i.IsAsyncFunction&&F.push(e.createToken(121)),N=e.createMethod(void 0,F.length?F:void 0,o.facts&i.IsGenerator?e.createToken(40):void 0,x,void 0,C,S,c,w)}else N=e.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.createToken(121)]:void 0,o.facts&i.IsGenerator?e.createToken(40):void 0,x,C,S,c,w);var I=e.textChanges.ChangeTracker.fromContext(s),M=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(r),function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)})}((h(o.range)?e.last(o.range):o.range).end,r);M?I.insertNodeBefore(s.file,M,N,!0):I.insertNodeAtEndOfScope(s.file,r,N);var O=[],L=function(t,r,n){var a=e.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.createIdentifier(t.name.text):e.createThis();return e.createPropertyAccess(o,a)}return a}(r,o,v),R=e.createCall(L,T,D);if(o.facts&i.IsGenerator&&(R=e.createYield(e.createToken(40),R)),o.facts&i.IsAsyncFunction&&(R=e.createAwait(R)),a.length&&!u)if(e.Debug.assert(!P),e.Debug.assert(!(o.facts&i.HasReturn)),1===a.length){var B=a[0];O.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone(B.name),e.getSynthesizedDeepClone(B.type),R)],B.parent.flags)))}else{for(var j=[],z=[],J=a[0].parent.flags,U=!1,q=0,K=a;q<K.length;q++){var B=K[q];j.push(e.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(B.name)));var V=f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(B)),r,1);z.push(e.createPropertySignature(void 0,B.symbol.name,void 0,V,void 0)),U=U||void 0!==B.type,J&=B.parent.flags}var W=U?e.createTypeLiteralNode(z):void 0;W&&e.setEmitFlags(W,1),O.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createObjectBindingPattern(j),W,R)],J)))}else if(a.length||u){if(a.length)for(var H=0,G=a;H<G.length;H++){var B=G[H],X=B.parent.flags;2&X&&(X=-3&X|1),O.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(B.symbol.name,ee(B.type))],X)))}P&&O.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(P,ee(c))],1)));var Q=g(a,u);P&&Q.unshift(e.createShorthandPropertyAssignment(P)),1===Q.length?(e.Debug.assert(!P),O.push(e.createStatement(e.createAssignment(Q[0].name,R))),o.facts&i.HasReturn&&O.push(e.createReturn())):(O.push(e.createStatement(e.createAssignment(e.createObjectLiteral(Q),R))),P&&O.push(e.createReturn(e.createIdentifier(P))))}else o.facts&i.HasReturn?O.push(e.createReturn(R)):h(o.range)?O.push(e.createStatement(R)):O.push(R);h(o.range)?I.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),O):I.replaceNodeWithNodes(s.file,o.range,O);var Y=I.getChanges(),Z=(h(o.range)?e.first(o.range):o.range).getSourceFile().fileName,$=e.getRenameLocation(Y,Z,v,!1);return{renameFilename:Z,renameLocation:$,edits:Y};function ee(t){if(void 0!==t){for(var r=e.getSynthesizedDeepClone(t),n=r;e.isParenthesizedTypeNode(n);)n=n.type;return e.isUnionTypeNode(n)&&e.find(n.types,function(e){return 141===e.kind})?r:e.createUnionTypeNode([r,e.createKeywordTypeNode(141)])}}}(c,o[n],u[n],d,t,r)}(n,t,o)}var s=/^constant_scope_(\d+)$/.exec(r);if(s){o=+s[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),function(t,r,n){var a=f(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,u=s.usagesPerScope,l=s.constantErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!l[n].length,"The extraction went missing? How?"),e.Debug.assert(0===d.length,"Extract constant accepted a range containing a variable declaration?"),r.cancellationToken.throwIfCancellationRequested(),function(t,r,n,a,o){var s=n.substitutions,c=o.program.getTypeChecker(),u=r.getSourceFile(),l=e.getUniqueName(e.isClassLike(r)?"newProperty":"newLocal",u),d=e.isInJSFile(r),f=d||!c.isContextSensitive(t)?void 0:c.typeToTypeNode(c.getContextualType(t),r,1),p=function(t,r){return r.size?function t(n){var i=r.get(e.getNodeId(n).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(n,t,e.nullTransformationContext)}(t):t}(t,s);e.suppressLeadingAndTrailingTrivia(p);var m=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(r)){e.Debug.assert(!d);var g=[];g.push(e.createToken(113)),a&i.InStaticRegion&&g.push(e.createToken(116)),g.push(e.createToken(133));var h=e.createProperty(void 0,g,l,void 0,f,p),v=e.createPropertyAccess(a&i.InStaticRegion?e.createIdentifier(r.name.getText()):e.createThis(),e.createIdentifier(l)),b=t.pos,x=function(t,r){var n,i=r.members;e.Debug.assert(i.length>0);for(var a=!0,o=0,s=i;o<s.length;o++){var c=s[o];if(c.pos>t)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(b,r);m.insertNodeBefore(o.file,x,h,!0),m.replaceNode(o.file,t,v)}else{var S=e.createVariableDeclaration(l,f,p),D=function(t,r){for(var n;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(D){m.insertNodeBefore(o.file,D,S);var v=e.createIdentifier(l);m.replaceNode(o.file,t,v)}else if(221===t.parent.kind&&r===e.findAncestor(t,_)){var k=e.createVariableStatement(void 0,e.createVariableDeclarationList([S],2));m.replaceNode(o.file,t.parent,k)}else{var k=e.createVariableStatement(void 0,e.createVariableDeclarationList([S],2)),x=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)_(i)&&(n=i);for(var i=(n||t).parent;;i=i.parent){if(y(i)){for(var a=void 0,o=0,s=i.statements;o<s.length;o++){var c=s[o];if(c.pos>t.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent)),i.parent.parent):e.Debug.assertDefined(a)}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r);if(0===x.pos?m.insertNodeAtTopOfFile(o.file,k,!1):m.insertNodeBefore(o.file,x,k,!1),221===t.parent.kind)m.delete(o.file,t.parent);else{var v=e.createIdentifier(l);m.replaceNode(o.file,t,v)}}}var C=m.getChanges(),T=t.getSourceFile().fileName,E=e.getRenameLocation(C,T,l,!0);return{renameFilename:T,renameLocation:E,edits:C}}(e.isExpression(c)?c:c.statements[0].expression,o[n],u[n],t.facts,r)}(n,t,o)}e.Debug.fail("Unrecognized action name")}function l(t,r){var a=r.length;if(0===a)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractEmpty)]};var o=e.getParentNodeInSpan(e.getTokenAtPosition(t,r.start),t,r),s=e.getParentNodeInSpan(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),t,r),c=[],u=i.None;if(!o||!s)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};if(o.parent!==s.parent)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};if(o!==s){if(!y(o.parent))return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};for(var l=[],_=0,f=o.parent.statements;_<f.length;_++){var p=f[_];if(p===o||l.length){var m=v(p);if(m)return{errors:m};l.push(p)}if(p===s)break}return l.length?{targetRange:{range:l,facts:u,declarations:c}}:{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]}}if(e.isReturnStatement(o)&&!o.expression)return{errors:[e.createFileDiagnostic(t,r.start,a,n.cannotExtractRange)]};var g=function(t){if(e.isReturnStatement(t)){if(t.expression)return t.expression}else if(e.isVariableStatement(t)){for(var r=0,n=void 0,i=0,a=t.declarationList.declarations;i<a.length;i++){var o=a[i];o.initializer&&(r++,n=o.initializer)}if(1===r)return n}else if(e.isVariableDeclaration(t)&&t.initializer)return t.initializer;return t}(o),h=function(t){if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t))return[e.createDiagnosticForNode(t,n.cannotExtractIdentifier)];return}(g)||v(g);return h?{errors:h}:{targetRange:{range:d(g),facts:u,declarations:c}};function v(t){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.Debug.assert(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(!e.positionIsSynthesized(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),!(e.isStatement(t)||e.isExpressionNode(t)&&function(e){var t=e.parent;switch(t.kind){case 278:return!1}switch(e.kind){case 10:return 249!==t.kind&&253!==t.kind;case 208:case 184:case 186:return!1;case 72:return 186!==t.kind&&253!==t.kind&&257!==t.kind}return!0}(t)))return[e.createDiagnosticForNode(t,n.statementOrExpressionExpected)];if(4194304&t.flags)return[e.createDiagnosticForNode(t,n.cannotExtractAmbientBlock)];var o,s=e.getContainingClass(t);s&&function(t,r){for(var n=t;n!==r;){if(154===n.kind){e.hasModifier(n,32)&&(u|=i.InStaticRegion);break}if(151===n.kind){157===e.getContainingFunction(n).kind&&(u|=i.InStaticRegion);break}156===n.kind&&e.hasModifier(n,32)&&(u|=i.InStaticRegion),n=n.parent}}(t,s);var l,d=4;return function t(a){if(o)return!0;if(e.isDeclaration(a)){var s=237===a.kind?a.parent.parent:a;if(e.hasModifier(s,1))return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;c.push(a.symbol)}switch(a.kind){case 249:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractImport)),!0;case 98:if(191===a.parent.kind){var _=e.getContainingClass(a);if(_.pos<r.start||_.end>=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else u|=i.UsesThis}if(e.isFunctionLikeDeclaration(a)||e.isClassLike(a)){switch(a.kind){case 239:case 240:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope))}return!1}var f=d;switch(a.kind){case 222:case 235:d=0;break;case 218:a.parent&&235===a.parent.kind&&a.parent.finallyBlock===a&&(d=4);break;case 271:d|=1;break;default:e.isIterationStatement(a,!1)&&(d|=3)}switch(a.kind){case 178:case 100:u|=i.UsesThis;break;case 233:var p=a.label;(l||(l=[])).push(p.escapedText),e.forEachChild(a,t),l.pop();break;case 229:case 228:var p=a.label;p?e.contains(l,p.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):d&(229===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 201:u|=i.IsAsyncFunction;break;case 207:u|=i.IsGenerator;break;case 230:4&d?u|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}d=f}(t),o}}function d(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:void 0}function _(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function f(t,r){var a=r.file,o=function(t){var r=h(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(151===(r=r.parent).kind&&(r=e.findAncestor(r,function(t){return e.isFunctionLikeDeclaration(t)}).parent),_(r)&&(o.push(r),279===r.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,r,a,o,s,c){var u,l,d=e.createMap(),_=[],f=[],p=[],m=[],g=[],y=e.createMap(),v=[],b=h(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===b){var x=t.range,S=e.first(x).getStart(),D=e.last(x).end;l=e.createFileDiagnostic(o,S,D-S,n.expressionExpected)}else 147456&s.getTypeAtLocation(b).flags&&(l=e.createDiagnosticForNode(b,n.uselessConstantType));for(var k=0,C=r;k<C.length;k++){var T=C[k];_.push({usages:e.createMap(),typeParameterUsages:e.createMap(),substitutions:e.createMap()}),f.push(e.createMap()),p.push(e.isFunctionLikeDeclaration(T)&&239!==T.kind?[e.createDiagnosticForNode(T,n.cannotExtractToOtherFunctionLike)]:[]);var E=[];l&&E.push(l),e.isClassLike(T)&&e.isInJSFile(T)&&E.push(e.createDiagnosticForNode(T,n.cannotExtractToJSClass)),e.isArrowFunction(T)&&!e.isBlock(T.body)&&E.push(e.createDiagnosticForNode(T,n.cannotExtractToExpressionArrowFunction)),m.push(E)}var N=e.createMap(),A=h(t.range)?e.createBlock(t.range):t.range,w=h(t.range)?e.first(t.range):t.range,P=(F=w,!!e.findAncestor(F,function(t){return e.isDeclarationWithTypeParameters(t)&&0!==e.getEffectiveTypeParameterDeclarations(t).length}));var F;if(function c(u,l){if(void 0===l&&(l=1),P){var d=s.getTypeAtLocation(u);K(d)}if(e.isDeclaration(u)&&u.symbol&&g.push(u),e.isAssignmentExpression(u))c(u.left,2),c(u.right);else if(e.isUnaryExpressionWithWrite(u))c(u.operand,2);else if(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u))e.forEachChild(u,c);else if(e.isIdentifier(u)){if(!u.parent)return;if(e.isQualifiedName(u.parent)&&u!==u.parent.left)return;if(e.isPropertyAccessExpression(u.parent)&&u!==u.parent.expression)return;!function(c,u,l){var d=function(c,u,l){var d=V(c);if(d){var g=e.getSymbolId(d).toString(),h=N.get(g);if(h&&h>=u)return g;if(N.set(g,u),h){for(var y=0,v=_;y<v.length;y++){var b=v[y],x=b.usages.get(c.text);x&&b.usages.set(c.text,{usage:u,symbol:d,node:c})}return g}var S=d.getDeclarations(),D=S&&e.find(S,function(e){return e.getSourceFile()===o});if(D&&!e.rangeContainsStartEnd(a,D.getStart(),D.end)){if(t.facts&i.IsGenerator&&2===u){for(var k=e.createDiagnosticForNode(c,n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),C=0,T=p;C<T.length;C++){var E=T[C];E.push(k)}for(var A=0,w=m;A<w.length;A++){var E=w[A];E.push(k)}}for(var P=0;P<r.length;P++){var F=r[P],I=s.resolveName(d.name,F,d.flags,!1);if(I!==d&&!f[P].has(g)){var M=W(d.exportSymbol||d,F,l);if(M)f[P].set(g,M);else if(l){if(!(262144&d.flags)){var k=e.createDiagnosticForNode(c,n.typeWillNotBeVisibleInTheNewScope);p[P].push(k),m[P].push(k)}}else _[P].usages.set(c.text,{usage:u,symbol:d,node:c})}}return g}}}(c,u,l);if(d)for(var g=0;g<r.length;g++){var h=f[g].get(d);h&&_[g].substitutions.set(e.getNodeId(c).toString(),h)}}(u,l,e.isPartOfTypeNode(u))}else e.forEachChild(u,c)}(A),P&&!h(t.range)){var I=s.getContextualType(t.range);K(I)}if(d.size>0){for(var M=e.createMap(),O=0,L=w;void 0!==L&&O<r.length;L=L.parent)if(L===r[O]&&(M.forEach(function(e,t){_[O].typeParameterUsages.set(t,e)}),O++),e.isDeclarationWithTypeParameters(L))for(var R=0,B=e.getEffectiveTypeParameterDeclarations(L);R<B.length;R++){var j=B[R],z=s.getTypeAtLocation(j);d.has(z.id.toString())&&M.set(z.id.toString(),z)}e.Debug.assert(O===r.length)}if(g.length){var J=e.isBlockScope(r[0],r[0].parent)?r[0]:e.getEnclosingBlockScopeContainer(r[0]);e.forEachChild(J,function r(n){if(n===t.range||h(t.range)&&t.range.indexOf(n)>=0)return;var i=e.isIdentifier(n)?V(n):s.getSymbolAtLocation(n);if(i){var a=e.find(g,function(e){return e.symbol===i});if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();y.has(o)||(v.push(a),y.set(o,!0))}else u=u||a}e.forEachChild(n,r)})}for(var U=function(r){var i=_[r];if(r>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=h(t.range)?t.range[0]:t.range;m[r].push(e.createDiagnosticForNode(a,n.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(_[r].usages.forEach(function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))}),e.Debug.assert(h(t.range)||0===v.length),s&&!h(t.range)){var c=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);p[r].push(c),m[r].push(c)}else if(o&&r>0){var c=e.createDiagnosticForNode(o,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor);p[r].push(c),m[r].push(c)}else if(u){var c=e.createDiagnosticForNode(u,n.cannotExtractExportedEntity);p[r].push(c),m[r].push(c)}},q=0;q<r.length;q++)U(q);return{target:A,usagesPerScope:_,functionErrorsPerScope:p,constantErrorsPerScope:m,exposedVariableDeclarations:v};function K(e){for(var t=s.getSymbolWalker(function(){return c.throwIfCancellationRequested(),!0}),r=t.walkType(e).visitedTypes,n=0,i=r;n<i.length;n++){var a=i[n];a.isTypeParameter()&&d.set(a.id.toString(),a)}}function V(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function W(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some(function(e){return e.parent===r}))return e.createIdentifier(t.name);var a=W(t.parent,r,n);if(void 0!==a)return n?e.createQualifiedName(a,e.createIdentifier(t.name)):e.createPropertyAccess(a,t.name)}}}(t,o,function(t,r){return h(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}(t,a),a,r.program.getTypeChecker(),r.cancellationToken)}}function p(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];(void 0===t||a.pos<t.pos)&&(t=a)}return t}function m(t,r){var n=t.type,i=t.declaration,a=r.type,o=r.declaration;return e.compareProperties(i,o,"pos",e.compareValues)||e.compareStringsCaseSensitive(n.symbol?n.symbol.getName():"",a.symbol?a.symbol.getName():"")||e.compareValues(n.id,a.id)}function g(t,r){var n=e.map(t,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)}),i=e.map(r,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)});return void 0===n?i:void 0===i?n:n.concat(i)}function h(t){return e.isArray(t)}function y(e){switch(e.kind){case 218:case 279:case 245:case 271:return!0;default:return!1}}t.registerRefactor(s,{getAvailableActions:c,getEditsForAction:u}),r.getAvailableActions=c,r.getEditsForAction=u,function(t){function r(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=r("Cannot extract range."),t.cannotExtractImport=r("Cannot extract import statement."),t.cannotExtractSuper=r("Cannot extract super call."),t.cannotExtractEmpty=r("Cannot extract empty range."),t.expressionExpected=r("expression expected."),t.uselessConstantType=r("No reason to extract constant of type."),t.statementOrExpressionExpected=r("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=r("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=r("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=r("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=r("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=r("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=r("Function will not visible in the new scope."),t.cannotExtractIdentifier=r("Select more than a single identifier."),t.cannotExtractExportedEntity=r("Cannot extract exported declaration"),t.cannotWriteInExpression=r("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=r("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=r("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=r("Cannot access variables from nested scopes"),t.cannotExtractToOtherFunctionLike=r("Cannot extract method to a function-like scope that is not a function"),t.cannotExtractToJSClass=r("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=r("Cannot extract constant to an arrow function without a block")}(n=r.Messages||(r.Messages={})),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"}(i||(i={})),r.getRangeToExtract=l,function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(a||(a={})),function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(o||(o={}))}(t.extractSymbol||(t.extractSymbol={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){!function(r){var n="Generate 'get' and 'set' accessors",i=e.Diagnostics.Generate_get_and_set_accessors.message;function a(t){return e.isParameterPropertyDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertyAssignment(t)}function o(t,r){return e.isIdentifier(r)?e.createIdentifier(t):e.createLiteral(t)}function s(t,r,n){var i=r?n.name:e.createThis();return e.isIdentifier(t)?e.createPropertyAccess(i,t):e.createElementAccess(i,e.createLiteral(t))}function c(t,r,n){var i=e.append(t?void 0:[e.createToken(n)],r?e.createToken(116):void 0);return i&&e.createNodeArray(i)}function u(t){var r=t.file,n=t.startPosition,i=t.endPosition,s=e.getTokenAtPosition(r,n),c=e.findAncestor(s.parent,a);if(c&&e.nodeOverlapsWithStartEnd(c.name,r,n,i)&&function(t){return e.isIdentifier(t)||e.isStringLiteral(t)}(c.name)&&124==(124|e.getModifierFlags(c))){var u=c.name.text,l=function(e){return 95===e.charCodeAt(0)}(u),d=o(l?u:e.getUniqueName("_"+u,r),c.name),_=o(l?e.getUniqueName(u.substring(1),r):u,c.name);return{isStatic:e.hasStaticModifier(c),isReadonly:e.hasReadonlyModifier(c),type:e.getTypeAnnotationNode(c),container:151===c.kind?c.parent.parent:c.parent,originalName:c.name.text,declaration:c,fieldName:d,accessorName:_,renameAccessor:l}}}function l(t,r,n,i,a){e.isParameterPropertyDeclaration(i)?t.insertNodeAtClassStart(r,a,n):e.isPropertyAssignment(i)?t.insertNodeAfterComma(r,i,n):t.insertNodeAfter(r,i,n)}t.registerRefactor(n,{getEditsForAction:function(t,r){var n=t.file,i=u(t);if(!i)return;var a=e.isSourceFileJS(n),o=e.textChanges.ChangeTracker.fromContext(t),d=i.isStatic,_=i.isReadonly,f=i.fieldName,p=i.accessorName,m=i.originalName,g=i.type,h=i.container,y=i.declaration,v=i.renameAccessor;e.suppressLeadingAndTrailingTrivia(f),e.suppressLeadingAndTrailingTrivia(y),e.suppressLeadingAndTrailingTrivia(h);var b=e.isClassLike(h),x=-65&e.getModifierFlags(y),S=b?!x||8&x?c(a,d,115):e.createNodeArray(e.createModifiersFromModifierFlags(x)):void 0,D=b?c(a,d,113):void 0;!function(t,r,n,i,a){e.isPropertyDeclaration(n)?function(t,r,n,i,a){var o=e.updateProperty(n,n.decorators,a,i,n.questionToken||n.exclamationToken,n.type,n.initializer);t.replaceNode(r,n,o)}(t,r,n,i,a):e.isPropertyAssignment(n)?function(t,r,n,i){var a=e.updatePropertyAssignment(n,i,n.initializer);t.replacePropertyAssignment(r,n,a)}(t,r,n,i):t.replaceNode(r,n,e.updateParameter(n,n.decorators,a,n.dotDotDotToken,e.cast(i,e.isIdentifier),n.questionToken,n.type,n.initializer))}(o,n,y,f,D);var k=function(t,r,n,i,a,o){return e.createGetAccessor(void 0,i,r,void 0,n,e.createBlock([e.createReturn(s(t,a,o))],!0))}(f,p,g,S,d,h);if(e.suppressLeadingAndTrailingTrivia(k),l(o,n,k,y,h),_){var C=e.getFirstConstructorWithBody(h);C&&function(t,r,n,i,a){if(!n.body)return;n.body.forEachChild(function n(o){e.isElementAccessExpression(o)&&100===o.expression.kind&&e.isStringLiteral(o.argumentExpression)&&o.argumentExpression.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.argumentExpression,e.createStringLiteral(i)),e.isPropertyAccessExpression(o)&&100===o.expression.kind&&o.name.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.name,e.createIdentifier(i)),e.isFunctionLike(o)||e.isClassLike(o)||o.forEachChild(n)})}(o,n,C,f.text,m)}else{var T=function(t,r,n,i,a,o){return e.createSetAccessor(void 0,i,r,[e.createParameter(void 0,void 0,void 0,e.createIdentifier("value"),void 0,n)],e.createBlock([e.createStatement(e.createAssignment(s(t,a,o),e.createIdentifier("value")))],!0))}(f,p,g,S,d,h);e.suppressLeadingAndTrailingTrivia(T),l(o,n,T,y,h)}var E=o.getChanges(),N=n.fileName,A=v?p:f,w=(e.isIdentifier(A)?0:-1)+e.getRenameLocation(E,N,A.text,e.isParameter(y));return{renameFilename:N,renameLocation:w,edits:E}},getAvailableActions:function(t){return u(t)?[{name:n,description:i,actions:[{name:n,description:i}]}]:e.emptyArray}})}(t.generateGetAccessorAndSetAccessor||(t.generateGetAccessorAndSetAccessor={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){function r(t){var r=function(t){var r=t.file,n=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),i=r.statements,a=e.findIndex(i,function(e){return e.end>n.pos});if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,function(e){return e.end>n.end},a);if(-1===s||!(0===s||i[s].getStart(r)<n.end))return{toMove:i.slice(a,-1===s?i.length:s),afterLast:-1===s?void 0:i[s]}}}}(t);if(void 0!==r){var n=[],i=[],a=r.toMove,o=r.afterLast;return e.getRangesWhere(a,function(t){return!function(t){switch(t.kind){case 249:return!0;case 248:return!e.hasModifier(t,1);case 219:return t.declarationList.declarations.every(function(t){return!!t.initializer&&e.isRequireCall(t.initializer,!0)});default:return!1}}(t)},function(e,t){for(var r=e;r<t;r++)n.push(a[r]);i.push({first:a[e],afterLast:o})}),0===n.length?void 0:{all:n,ranges:i}}}function n(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n],o=a.first,s=a.afterLast;r.deleteNodeRangeExcludingEnd(e,o,s)}}function i(e){return 249===e.kind?e.moduleSpecifier:248===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function a(t,r){if(e.isImportDeclaration(t))e.isStringLiteral(t.moduleSpecifier)&&r(t);else if(e.isImportEqualsDeclaration(t))e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteralLike(t.moduleReference.expression)&&r(t);else if(e.isVariableStatement(t))for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];a.initializer&&e.isRequireCall(a.initializer,!0)&&r(a)}}function o(t,r,n,i,a){if(n=e.ensurePathIsNonModuleName(n),i){var o=r.map(function(t){return e.createImportSpecifier(void 0,e.createIdentifier(t))});return e.makeImportIfNecessary(t,o,n,a)}e.Debug.assert(!t);var u=r.map(function(t){return e.createBindingElement(void 0,void 0,t)});return u.length?s(e.createObjectBindingPattern(u),void 0,c(e.createLiteral(n))):void 0}function s(t,r,n,i){return void 0===i&&(i=2),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(t,r,n)],i))}function c(t){return e.createCall(e.createIdentifier("require"),void 0,[t])}function u(t,r,n,i){switch(r.kind){case 249:!function(e,t,r,n){if(!t.importClause)return;var i=t.importClause,a=i.name,o=i.namedBindings,s=!a||n(a),c=!o||(251===o.kind?n(o.name):0!==o.elements.length&&o.elements.every(function(e){return n(e.name)}));if(s&&c)r.delete(e,t);else if(a&&s&&r.delete(e,a),o)if(c)r.delete(e,o);else if(252===o.kind)for(var u=0,l=o.elements;u<l.length;u++){var d=l[u];n(d.name)&&r.delete(e,d)}}(t,r,n,i);break;case 248:i(r.name)&&n.delete(t,r);break;case 237:!function(t,r,n,i){var a=r.name;switch(a.kind){case 72:i(a)&&n.delete(t,a);break;case 185:break;case 184:if(a.elements.every(function(t){return e.isIdentifier(t.name)&&i(t.name)}))n.delete(t,e.isVariableDeclarationList(r.parent)&&1===r.parent.declarations.length?r.parent.parent:r);else for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];e.isIdentifier(c.name)&&i(c.name)&&n.delete(t,c.name)}}}(t,r,n,i);break;default:e.Debug.assertNever(r)}}function l(t){switch(t.kind){case 248:case 253:case 250:return!0;case 237:return d(t);case 186:return e.isVariableDeclaration(t.parent.parent)&&d(t.parent.parent);default:return!1}}function d(t){return e.isSourceFile(t.parent.parent.parent)&&t.initializer&&e.isRequireCall(t.initializer,!0)}function _(t,r,n){switch(t.kind){case 249:var i=t.importClause;if(!i)return;var a=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&function(t,r){if(251===t.kind)return r(t.name)?t:void 0;var n=t.elements.filter(function(e){return r(e.name)});return n.length?e.createNamedImports(n):void 0}(i.namedBindings,n);return a||o?e.createImportDeclaration(void 0,void 0,e.createImportClause(a,o),r):void 0;case 248:return n(t.name)?t:void 0;case 237:var u=function(t,r){switch(t.kind){case 72:return r(t)?t:void 0;case 185:return t;case 184:var n=t.elements.filter(function(t){return t.propertyName||!e.isIdentifier(t.name)||r(t.name)});return n.length?e.createObjectBindingPattern(n):void 0}}(t.name,n);return u?s(u,t.type,c(r),t.parent.flags):void 0;default:return e.Debug.assertNever(t)}}function f(t,r,n){t.forEachChild(function t(i){if(e.isIdentifier(i)&&!e.isDeclarationName(i)){var a=r.getSymbolAtLocation(i);a&&n(a)}else i.forEachChild(t)})}t.registerRefactor("Move to a new file",{getAvailableActions:function(t){if(!t.preferences.allowTextChangesInNewFiles||void 0===r(t))return e.emptyArray;var n=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file);return[{name:"Move to a new file",description:n,actions:[{name:"Move to a new file",description:n}]}]},getEditsForAction:function(t,s){e.Debug.assert("Move to a new file"===s);var d=e.Debug.assertDefined(r(t));return{edits:e.textChanges.ChangeTracker.with(t,function(r){return s=t.file,k=t.program,C=d,T=r,E=t.host,N=t.preferences,A=k.getTypeChecker(),w=function(t,r,n){for(var i=new p,a=new p,o=new p,s=0,c=r;s<c.length;s++){var u=c[s];h(u,function(t){i.add(e.Debug.assertDefined(e.isExpressionStatement(t)?n.getSymbolAtLocation(t.expression.left):t.symbol))})}for(var d=0,_=r;d<_.length;d++){var u=_[d];f(u,n,function(r){var n;if(r.declarations)for(var s=0,c=r.declarations;s<c.length;s++){var u=c[s];l(u)?a.add(r):m(u)&&(n=u,(e.isVariableDeclaration(n)?n.parent.parent.parent:n.parent)===t)&&!i.has(r)&&o.add(r)}})}for(var g=a.clone(),y=new p,v=0,b=t.statements;v<b.length;v++){var u=b[v];e.contains(r,u)||f(u,n,function(e){i.has(e)&&y.add(e),g.delete(e)})}return{movedSymbols:i,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:y,oldImportsNeededByNewFile:a,unusedImportsFromOldFile:g}}(s,C.all,A),P=e.getDirectoryPath(s.fileName),F=e.extensionFromPath(s.fileName),I=function(t,r,n,i){for(var a=t,o=1;;o++){var s=e.combinePaths(n,a+r);if(!i.fileExists(s))return a;a=t+"."+o}}(w.movedSymbols.forEachEntry(e.symbolNameNoDefault)||"newFile",F,P,E),M=I+F,T.createNewFile(s,e.combinePaths(P,M),function(t,r,s,l,d,f,p){var k=d.getTypeChecker();if(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)return n(t,l.ranges,s),l.all;var C=!!t.externalModuleIndicator,T=e.getQuotePreference(t,p),E=function(t,r,n,i){var a,s=[];return t.forEach(function(t){"default"===t.escapedName?a=e.createIdentifier(e.symbolNameNoDefault(t)):s.push(t.name)}),o(a,s,r,n,i)}(r.oldFileImportsFromNewFile,f,C,T);return E&&e.insertImport(s,t,E),function(t,r,n,i,o){for(var s=0,c=t.statements;s<c.length;s++){var l=c[s];e.contains(r,l)||a(l,function(e){return u(t,e,n,function(e){return i.has(o.getSymbolAtLocation(e))})})}}(t,l.all,s,r.unusedImportsFromOldFile,k),n(t,l.ranges,s),function(t,r,n,o,s){for(var l=r.getTypeChecker(),d=function(r){if(r===n)return"continue";for(var d=function(d){a(d,function(a){if(l.getSymbolAtLocation(i(a))===n.symbol){var f=function(t){var r=e.isBindingElement(t.parent)?e.getPropertySymbolFromBindingElement(l,t.parent):e.skipAlias(l.getSymbolAtLocation(t),l);return!!r&&o.has(r)};u(r,a,t,f);var p=e.combinePaths(e.getDirectoryPath(i(a).text),s),m=_(a,e.createLiteral(p),f);m&&t.insertNodeAfter(r,d,m);var g=function(t){switch(t.kind){case 249:return t.importClause&&t.importClause.namedBindings&&251===t.importClause.namedBindings.kind?t.importClause.namedBindings.name:void 0;case 248:return t.name;case 237:return e.tryCast(t.name,e.isIdentifier);default:return e.Debug.assertNever(t)}}(a);g&&function(t,r,n,i,a,o,s,u){var l=e.codefix.moduleSpecifierToValidIdentifier(a,6),d=!1,_=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(s,n,r,function(t){e.isPropertyAccessExpression(t.parent)&&(d=d||!!n.resolveName(l,t,67108863,!0),i.has(n.getSymbolAtLocation(t.parent.name))&&_.push(t))}),_.length){for(var f=d?e.getUniqueName(l,r):l,p=0,m=_;p<m.length;p++){var g=m[p];t.replaceNode(r,g,e.createIdentifier(f))}t.insertNodeAfter(r,u,function(t,r,n){var i=e.createIdentifier(r),a=e.createLiteral(n);switch(t.kind){case 249:return e.createImportDeclaration(void 0,void 0,e.createImportClause(void 0,e.createNamespaceImport(i)),a);case 248:return e.createImportEqualsDeclaration(void 0,void 0,i,e.createExternalModuleReference(a));case 237:return e.createVariableDeclaration(i,void 0,c(a));default:return e.Debug.assertNever(t)}}(u,a,o))}}(t,r,l,o,s,p,g,a)}})},f=0,p=r.statements;f<p.length;f++){var m=p[f];d(m)}},f=0,p=r.getSourceFiles();f<p.length;f++){var m=p[f];d(m)}}(s,d,t,r.movedSymbols,f),function(t,r,n,s,c,u,l){for(var d,f=[],p=0,g=t.statements;p<g.length;p++){var h=g[p];a(h,function(t){e.append(f,_(t,i(t),function(e){return r.has(c.getSymbolAtLocation(e))}))})}var b=[],x=e.nodeSeenTracker();return n.forEach(function(r){for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];if(m(a)){var o=(l=a,e.isExpressionStatement(l)?l.expression.left.name:e.tryCast(l.name,e.isIdentifier));if(o){var c=y(a);x(c)&&v(t,c,s,u),e.hasModifier(a,512)?d=o:b.push(o.text)}}}var l}),e.append(f,o(d,b,e.removeFileExtension(e.getBaseFileName(t.fileName)),u,l)),f}(t,r.oldImportsNeededByNewFile,r.newFileImportsFromOldFile,s,k,C,T).concat(function(t,r,n,i){return e.flatMap(r,function(r){if(o=r,e.Debug.assert(e.isSourceFile(o.parent)),(g(o)||e.isVariableStatement(o))&&!b(t,r,i)&&h(r,function(t){return n.has(e.Debug.assertDefined(t.symbol))})){var a=function(e,t){return t?[x(e)]:function(e){return[e].concat(S(e).map(D))}(e)}(r,i);if(a)return a}var o;return r})}(t,l.all,r.oldFileImportsFromNewFile,C))}(s,w,T,C,k,I,N)),void function(t,r,n,i,a){var o=t.getCompilerOptions().configFile;if(o){var s=e.normalizePath(e.combinePaths(n,"..",i)),c=e.getRelativePathFromFile(o.fileName,s,a),u=o.statements[0]&&e.tryCast(o.statements[0].expression,e.isObjectLiteralExpression),l=u&&e.find(u.properties,function(t){return e.isPropertyAssignment(t)&&e.isStringLiteral(t.name)&&"files"===t.name.text});l&&e.isArrayLiteralExpression(l.initializer)&&r.insertNodeInListAfter(o,e.last(l.initializer.elements),e.createLiteral(c),l.initializer.elements)}}(k,T,s.fileName,M,e.hostGetCanonicalFileName(E));var s,k,C,T,E,N,A,w,P,F,I,M}),renameFilename:void 0,renameLocation:void 0}}});var p=function(){function t(){this.map=e.createMap()}return t.prototype.add=function(t){this.map.set(String(e.getSymbolId(t)),t)},t.prototype.has=function(t){return this.map.has(String(e.getSymbolId(t)))},t.prototype.delete=function(t){this.map.delete(String(e.getSymbolId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.forEachEntry=function(t){return e.forEachEntry(this.map,t)},t.prototype.clone=function(){var r=new t;return e.copyEntries(this.map,r.map),r},t}();function m(t){return g(t)&&e.isSourceFile(t.parent)||e.isVariableDeclaration(t)&&e.isSourceFile(t.parent.parent.parent)}function g(e){switch(e.kind){case 239:case 240:case 244:case 243:case 242:case 241:case 248:return!0;default:return!1}}function h(t,r){switch(t.kind){case 239:case 240:case 244:case 243:case 242:case 241:case 248:return r(t);case 219:return e.firstDefined(t.declarationList.declarations,function(t){return function t(r,n){switch(r.kind){case 72:return n(e.cast(r.parent,function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)}));case 185:case 184:return e.firstDefined(r.elements,function(r){return e.isOmittedExpression(r)?void 0:t(r.name,n)});default:return e.Debug.assertNever(r)}}(t.name,r)});case 221:var n=t.expression;return e.isBinaryExpression(n)&&1===e.getAssignmentDeclarationKind(n)?r(t):void 0}}function y(t){switch(t.kind){case 237:return t.parent.parent;case 186:return y(e.cast(t.parent.parent,function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)}));default:return t}}function v(t,r,n,i){if(!b(t,r,i))if(i)e.isExpressionStatement(r)||n.insertExportModifier(t,r);else{var a=S(r);0!==a.length&&n.insertNodesAfter(t,r,a.map(D))}}function b(t,r,n){return n?!e.isExpressionStatement(r)&&e.hasModifier(r,1):S(r).some(function(r){return t.symbol.exports.has(e.escapeLeadingUnderscores(r))})}function x(t){var r=e.concatenate([e.createModifier(85)],t.modifiers);switch(t.kind){case 239:return e.updateFunctionDeclaration(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 240:return e.updateClassDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 219:return e.updateVariableStatement(t,r,t.declarationList);case 244:return e.updateModuleDeclaration(t,t.decorators,r,t.name,t.body);case 243:return e.updateEnumDeclaration(t,t.decorators,r,t.name,t.members);case 242:return e.updateTypeAliasDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.type);case 241:return e.updateInterfaceDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 248:return e.updateImportEqualsDeclaration(t,t.decorators,r,t.name,t.moduleReference);case 221:return e.Debug.fail();default:return e.Debug.assertNever(t)}}function S(t){switch(t.kind){case 239:case 240:return[t.name.text];case 219:return e.mapDefined(t.declarationList.declarations,function(t){return e.isIdentifier(t.name)?t.name.text:void 0});case 244:case 243:case 242:case 241:case 248:return e.emptyArray;case 221:return e.Debug.fail();default:return e.Debug.assertNever(t)}}function D(t){return e.createExpressionStatement(e.createBinary(e.createPropertyAccess(e.createIdentifier("exports"),e.createIdentifier(t)),59,e.createIdentifier(t)))}}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){!function(t){!function(r){var n="Add or remove braces in an arrow function",i=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,a="Add braces to arrow function",o="Remove braces from arrow function",s=e.Diagnostics.Add_braces_to_arrow_function.message,c=e.Diagnostics.Remove_braces_from_arrow_function.message;function u(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingFunction(n);if(i&&e.isArrowFunction(i)&&e.rangeContainsRange(i,n)&&!e.rangeContainsRange(i.body,n)){if(e.isExpression(i.body))return{func:i,addBraces:!0,expression:i.body};if(1===i.body.statements.length){var a=e.first(i.body.statements);if(e.isReturnStatement(a))return{func:i,addBraces:!1,expression:a.expression,returnStatement:a}}}}t.registerRefactor(n,{getEditsForAction:function(t,r){var n=t.file,i=t.startPosition,s=u(n,i);if(!s)return;var c,l=s.expression,d=s.returnStatement,_=s.func;if(r===a){var f=e.createReturn(l);c=e.createBlock([f],!0),e.suppressLeadingAndTrailingTrivia(c),e.copyComments(l,f,n,3,!0)}else if(r===o&&d){var p=l||e.createVoidZero();c=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)}(p)?e.createParen(p):p,e.suppressLeadingAndTrailingTrivia(c),e.copyComments(d,c,n,3,!1)}else e.Debug.fail("invalid action");var m=e.textChanges.ChangeTracker.with(t,function(e){return e.replaceNode(n,_.body,c)});return{renameFilename:void 0,renameLocation:void 0,edits:m}},getAvailableActions:function(t){var r=t.file,l=t.startPosition,d=u(r,l);return d?[{name:n,description:i,actions:[d.addBraces?{name:a,description:s}:{name:o,description:c}]}]:e.emptyArray}})}(t.addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(e.refactor||(e.refactor={}))}(d||(d={})),function(e){function t(t,n,i,a){var o=e.isNodeKind(t)?new r(t,n,i):72===t?new u(72,n,i):new c(t,n,i);return o.parent=a,o.flags=12679168&a.flags,o}e.servicesVersion="0.8";var r=function(){function r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.transformFlags=void 0,this.parent=void 0,this.kind=e}return r.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(r,i){if(!e.isNodeKind(r.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild(function(e){a.push(e)}),a;e.scanner.setText((i||r.getSourceFile()).text);var o=r.pos,s=function(e){n(a,o,e.pos,r),a.push(e),o=e.end};return e.forEach(r.jsDoc,s),o=r.pos,r.forEachChild(s,function(e){n(a,o,e.pos,r),a.push(function(e,r){var i=t(306,e.pos,e.end,r);i._children=[];for(var a=e.pos,o=0,s=e;o<s.length;o++){var c=s[o];n(i._children,a,c.pos,r),i._children.push(c),a=c.end}return n(i._children,a,e.end,r),i}(e,r)),o=e.end}),n(a,o,r.end,r),e.scanner.setText(void 0),a}(this,r))},r.prototype.getFirstToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);if(r.length){var n=e.find(r,function(e){return e.kind<283||e.kind>305});return n.kind<148?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<148?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(r,n,i,a){for(e.scanner.setTextPos(n);n<i;){var o=e.scanner.scan(),s=e.scanner.getTextPos();if(s<=i&&(72===o&&e.Debug.fail("Did not expect "+e.Debug.showSyntaxKind(a)+" to have an Identifier in its trivia"),r.push(t(o,n,s,a))),n=s,1===o)break}}var i=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,r){return e.getTokenPosOfNode(this,t,r)},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||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),o=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(t){return this.documentationComment||(this.documentationComment=e.emptyArray,this.documentationComment=p(this.declarations,t)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),c=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.kind=t,i}return l(t,e),t}(i),u=function(t){function r(e,r,n){return t.call(this,r,n)||this}return l(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!0,configurable:!0}),r}(i);u.prototype.kind=72;var d=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getFlags=function(){return this.flags},t.prototype.getSymbol=function(){return this.symbol},t.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},t.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},t.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},t.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},t.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},t.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},t.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},t.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},t.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},t.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},t.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},t.prototype.isUnion=function(){return!!(1048576&this.flags)},t.prototype.isIntersection=function(){return!!(2097152&this.flags)},t.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},t.prototype.isLiteral=function(){return!!(384&this.flags)},t.prototype.isStringLiteral=function(){return!!(128&this.flags)},t.prototype.isNumberLiteral=function(){return!!(256&this.flags)},t.prototype.isTypeParameter=function(){return!!(262144&this.flags)},t.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},t.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},t}(),_=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 this.documentationComment||(this.documentationComment=p(e.singleElementArray(this.declaration),this.checker))},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}();function f(t){return e.getJSDocTags(t).some(function(e){return"inheritDoc"===e.tagName.text})}function p(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocCommentsFromDeclarations(t);if(0===n.length||t.some(f))for(var i=0,a=t;i<a.length;i++){var o=a[i],s=m(o,o.symbol.name,r);s&&(n=0===n.length?s.slice():s.concat(e.lineBreakPart(),n))}return n}function m(t,r,n){return e.firstDefined(t.parent?e.getAllSuperTypeNodes(t.parent):e.emptyArray,function(e){var t=n.getTypeAtLocation(e),i=t&&n.getPropertyOfType(t,r),a=i&&i.getDocumentationComment(n);return a&&a.length?a:void 0})}var g=function(t){function r(e,r,n){return t.call(this,e,r,n)||this}return l(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r){return e.getPositionOfLineAndCharacter(this,t,r)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild(function i(a){switch(a.kind){case 239:case 196:case 156:case 155:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);r||t.set(e,r=[]);return r}(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 240:case 209:case 241:case 242:case 243:case 244:case 248:case 257:case 253:case 250:case 251:case 158:case 159:case 168:r(a),e.forEachChild(a,i);break;case 151:if(!e.hasModifier(a,92))break;case 237:case 186:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 278:case 154:case 153:r(a);break;case 255:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 249:var d=a.importClause;d&&(d.name&&r(d.name),d.namedBindings&&(251===d.namedBindings.kind?r(d.namedBindings):e.forEach(d.namedBindings.elements,i)));break;case 204:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}}),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),h=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function y(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!v(n)){r=!1;break}if(r)return t;var i={};for(var n in t){if(e.hasProperty(t,n))i[v(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]}return i}function v(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function b(){return{target:1,jsx:1}}e.toEditorSettings=y,e.displayPartsToString=function(t){return t?e.map(t,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=b,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var x=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var n=0,i=t.getScriptFileNames();n<i.length;n++){var a=i[n];this.createEntry(a,e.toPath(a,this.currentDirectory,r))}this._compilationSettings=t.getCompilationSettings()||{target:1,jsx:1}}return t.prototype.compilationSettings=function(){return this._compilationSettings},t.prototype.getProjectReferences=function(){return this.host.getProjectReferences&&this.host.getProjectReferences()},t.prototype.createEntry=function(t,r){var n,i=this.host.getScriptSnapshot(t);return n=i?{hostFileName:t,version:this.host.getScriptVersion(t),scriptSnapshot:i,scriptKind:e.getScriptKind(t,this.host)}:t,this.fileNameToEntry.set(r,n),n},t.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},t.prototype.getHostFileInformation=function(t){var r=this.fileNameToEntry.get(t);return e.isString(r)?void 0:r},t.prototype.getOrCreateEntryByPath=function(t,r){var n=this.getEntryByPath(r)||this.createEntry(t,r);return e.isString(n)?void 0:n},t.prototype.getRootFileNames=function(){var t=[];return this.fileNameToEntry.forEach(function(r){e.isString(r)?t.push(r):6!==r.scriptKind&&t.push(r.hostFileName)}),t},t.prototype.getVersion=function(e){var t=this.getHostFileInformation(e);return t&&t.version},t.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot},t}(),S=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var r=this.host.getScriptSnapshot(t);if(!r)throw new Error("Could not find file: '"+t+"'.");var n,i=e.getScriptKind(t,this.host),a=this.host.getScriptVersion(t);if(this.currentFileName!==t)n=k(t,r,6,a,!0,i);else if(this.currentFileVersion!==a){var o=r.getChangeRange(this.currentFileScriptSnapshot);n=C(this.currentSourceFile,r,a,o)}return n&&(this.currentFileVersion=a,this.currentFileName=t,this.currentFileScriptSnapshot=r,this.currentSourceFile=n),this.currentSourceFile},t}();function D(e,t,r){e.version=r,e.scriptSnapshot=t}function k(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);return D(s,r,i),s}function C(t,r,n,i,a){if(i&&n!==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 u=r.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+u+c:s?s+u:u+c}var l=e.updateSourceFile(t,o,i,a);return D(l,r,n),l.nameTable=void 0,t!==l&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),l}return k(t.fileName,r,t.languageVersion,n,!0,t.scriptKind)}e.createLanguageServiceSourceFile=k,e.disableIncrementalParsing=!1,e.updateLanguageServiceSourceFile=C;var T=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return!!this.cancellationToken&&this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}(),E=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();function N(t){var r=function(t){switch(t.kind){case 10:case 8:if(149===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 72:return!e.isObjectLiteralElement(t.parent)||188!==t.parent.parent.kind&&268!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}return}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function A(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,function(n){return e.isObjectLiteralExpression(t.parent)&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)});if(i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a)))return[o];return 0===s.length?e.mapDefined(n.types,function(e){return e.getProperty(a)}):s}e.ThrottledCancellationToken=E,e.createLanguageService=function(t,r,n){var i;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),void 0===n&&(n=!1);var a,o,c=new S(t),u=0,l=new T(t.getCancellationToken&&t.getCancellationToken()),d=t.getCurrentDirectory();function _(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var f=e.hostUsesCaseSensitiveFileNames(t),p=e.createGetCanonicalFileName(f),m=e.getSourceMapper(f,d,_,t,function(){return a});function g(e){var t=a.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function h(){if(e.Debug.assert(!n),t.getProjectVersion){var i=t.getProjectVersion();if(i){if(o===i&&!t.hasChangedAutomaticTypeDirectiveNames)return;o=i}}var s=t.getTypeRootsVersion?t.getTypeRootsVersion():0;u!==s&&(_("TypeRoots version has changed; provide new program"),a=void 0,u=s);var c=new x(t,p),g=c.getRootFileNames(),h=t.hasInvalidatedResolution||e.returnFalse,y=c.getProjectReferences();if(!e.isProgramUptoDate(a,g,c.compilationSettings(),function(e){return c.getVersion(e)},k,h,!!t.hasChangedAutomaticTypeDirectiveNames,y)){var v=c.compilationSettings(),b={getSourceFile:function(t,r,n,i){return C(t,e.toPath(t,d,p),0,0,i)},getSourceFileByPath:C,getCancellationToken:function(){return l},getCanonicalFileName:p,useCaseSensitiveFileNames:function(){return f},getNewLine:function(){return e.getNewLineCharacter(v,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return d},fileExists:k,readFile:function(r){var n=e.toPath(r,d,p),i=c&&c.getEntryByPath(n);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(r)},realpath:t.realpath&&function(e){return t.realpath(e)},directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:function(r,n,i,a,o){return e.Debug.assertDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)},onReleaseOldSourceFile:function(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n)},hasInvalidatedResolution:h,hasChangedAutomaticTypeDirectiveNames:t.hasChangedAutomaticTypeDirectiveNames};t.trace&&(b.trace=function(e){return t.trace(e)}),t.resolveModuleNames&&(b.resolveModuleNames=function(e,r,n,i){return t.resolveModuleNames(e,r,n,i)}),t.resolveTypeReferenceDirectives&&(b.resolveTypeReferenceDirectives=function(e,r,n){return t.resolveTypeReferenceDirectives(e,r,n)});var S=r.getKeyForCompilationSettings(v),D={rootNames:g,options:v,host:b,oldProgram:a,projectReferences:y};return a=e.createProgram(D),c=void 0,m.clearCache(),void a.getTypeChecker()}function k(r){var n=e.toPath(r,d,p),i=c&&c.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function C(t,n,i,o,s){e.Debug.assert(void 0!==c,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var u=c&&c.getOrCreateEntryByPath(t,n);if(u){if(!s){var l=a&&a.getSourceFileByPath(n);if(l)return e.Debug.assertEqual(u.scriptKind,l.scriptKind,"Registered script kind should match new script kind.",n),r.updateDocumentWithKey(t,n,v,S,u.scriptSnapshot,u.version,u.scriptKind)}return r.acquireDocumentWithKey(t,n,v,S,u.scriptSnapshot,u.version,u.scriptKind)}}}function v(){if(!n)return h(),a;e.Debug.assert(void 0===a)}function b(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some(function(t){return e.normalizePath(t)===i})),h();var o=n.map(g),s=g(t);return e.DocumentHighlights.getDocumentHighlights(a,l,s,r,o)}function D(t,r,n,i){h();var o=n&&n.isForRename?a.getSourceFiles().filter(function(e){return!a.isSourceFileDefaultLibrary(e)}):a.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(a,l,o,t,r,n,i)}function k(r){var n=e.getScriptKind(r,t);return 3===n||4===n}var C=e.createMapFromTemplate(((i={})[18]=19,i[20]=21,i[22]=23,i[30]=28,i));function E(r,n){var i=function(t){return e.toPath(t,d,p)};switch(r.type){case"install package":return t.installPackage?t.installPackage({fileName:i(r.file),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`");case"generate types":var a=r.fileToGenerateTypesFor,o=r.outputFileName;return t.inspectValue?t.inspectValue({fileNameToRequire:a}).then(function(r){var a=i(o);return t.writeFile(a,e.valueInfoToDeclarationFileText(r,n||e.testFormatSettings)),{successMessage:"Wrote types to '"+a+"'"}}):Promise.reject("Host does not implement `installPackage`");default:return e.Debug.assertNever(r)}}function w(r,n,i,a){var o="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:o[0],endPosition:o[1],program:v(),host:t,formatContext:e.formatting.getFormatContext(a),cancellationToken:l,preferences:i}}return C.forEach(function(e,t){return C.set(e.toString(),Number(t))}),{dispose:function(){a&&(e.forEach(a.getSourceFiles(),function(e){return r.releaseDocument(e.fileName,a.getCompilerOptions())}),a=void 0),t=void 0},cleanupSemanticCache:function(){a=void 0},getSyntacticDiagnostics:function(e){return h(),a.getSyntacticDiagnostics(g(e),l).slice()},getSemanticDiagnostics:function(t){h();var r=g(t),n=a.getSemanticDiagnostics(r,l);if(!e.getEmitDeclarations(a.getCompilerOptions()))return n.slice();var i=a.getDeclarationDiagnostics(r,l);return n.concat(i)},getSuggestionDiagnostics:function(t){return h(),e.computeSuggestionDiagnostics(g(t),a,l)},getCompilerOptionsDiagnostics:function(){return h(),a.getOptionsDiagnostics(l).concat(a.getGlobalDiagnostics(l))},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(l,c.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r){return k(t)?(h(),e.getSemanticClassifications(a.getTypeChecker(),l,g(t),a.getClassifiableNames(),r)):[]},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(l,c.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r){return k(t)?(h(),e.getEncodedSemanticClassifications(a.getTypeChecker(),l,g(t),a.getClassifiableNames(),r)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(r,n,i){void 0===i&&(i=e.emptyOptions);var o=s({},e.identity(i),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return h(),e.Completions.getCompletionsAtPosition(t,a,_,g(r),n,o,i.triggerCharacter)},getCompletionEntryDetails:function(r,n,i,o,s,c){return void 0===c&&(c=e.emptyOptions),h(),e.Completions.getCompletionEntryDetails(a,_,g(r),n,{name:i,source:s},t,o&&e.formatting.getFormatContext(o),c,l)},getCompletionEntrySymbol:function(t,r,n,i){return h(),e.Completions.getCompletionEntrySymbol(a,_,g(t),r,{name:n,source:i})},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;h();var o=g(t);return e.SignatureHelp.getSignatureHelpItems(a,o,r,i,l)},getQuickInfoAtPosition:function(t,r){h();var n=g(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var o=a.getTypeChecker(),s=function(t,r){var n=N(t);if(n){var i=r.getContextualType(n.parent),a=i&&A(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(i,o);if(!s||o.isUnknownSymbol(s)){var c=function(t,r,n){switch(r.kind){case 72:return!e.isLabelName(r)&&!e.isTagName(r);case 189:case 148:return!e.isInComment(t,n);case 100:case 178:case 98:return!0;default:return!1}}(n,i,r)?o.getTypeAtLocation(i):void 0;return c&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(i,n),displayParts:o.runWithCancellationToken(l,function(t){return e.typeToDisplayParts(t,c,e.getContainerNode(i))}),documentation:c.symbol?c.symbol.getDocumentationComment(o):void 0,tags:c.symbol?c.symbol.getJsDocTags():void 0}}var u=o.runWithCancellationToken(l,function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(i),i)}),d=u.symbolKind,_=u.displayParts,f=u.documentation,p=u.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(s),textSpan:e.createTextSpanFromNode(i,n),displayParts:_,documentation:f,tags:p}}},getDefinitionAtPosition:function(t,r){return h(),e.GoToDefinition.getDefinitionAtPosition(a,g(t),r)},getDefinitionAndBoundSpan:function(t,r){return h(),e.GoToDefinition.getDefinitionAndBoundSpan(a,g(t),r)},getImplementationAtPosition:function(t,r){return h(),e.FindAllReferences.getImplementationsAtPosition(a,l,a.getSourceFiles(),g(t),r)},getTypeDefinitionAtPosition:function(t,r){return h(),e.GoToDefinition.getTypeDefinitionAtPosition(a.getTypeChecker(),g(t),r)},getReferencesAtPosition:function(t,r){return h(),D(e.getTouchingPropertyName(g(t),r),r,{},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return h(),e.FindAllReferences.findReferencedSymbols(a,l,a.getSourceFiles(),g(t),r)},getOccurrencesAtPosition:function(t,r){return e.flatMap(b(t,r,[t]),function(e){return e.highlightSpans.map(function(t){return{fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind,isDefinition:!1,isInString:t.isInString}})})},getDocumentHighlights:b,getNameOrDottedNameSpan:function(t,r,n){var i=c.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 189:case 148:case 10:case 87:case 102:case 96:case 98:case 100:case 178:case 72:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(244!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,r){var n=c.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),h();var o=n?[g(n)]:a.getSourceFiles();return e.NavigateTo.getNavigateToItems(o,a.getTypeChecker(),l,t,r,i)},getRenameInfo:function(t,r){return h(),e.Rename.getRenameInfo(a,g(t),r)},findRenameLocations:function(t,r,n,i){h();var a=g(t),o=e.getTouchingPropertyName(a,r);if(e.isIdentifier(o)&&(e.isJsxOpeningElement(o.parent)||e.isJsxClosingElement(o.parent))&&e.isIntrinsicJsxName(o.escapedText)){var s=o.parent.parent;return[s.openingElement,s.closingElement].map(function(t){return{fileName:a.fileName,textSpan:e.createTextSpanFromNode(t.tagName,a)}})}return D(o,r,{findInStrings:n,findInComments:i,isForRename:!0},e.FindAllReferences.toRenameLocation)},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(c.getCurrentSourceFile(t),l)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(c.getCurrentSourceFile(t),l)},getOutliningSpans:function(t){var r=c.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,l)},getTodoComments:function(t,r){h();var n=g(t);l.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/")))for(var c=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")";return new RegExp(t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),u=void 0;u=c.exec(o);){l.throwIfCancellationRequested(),e.Debug.assert(u.length===r.length+3);var d=u[1],_=u.index+d.length;if(e.isInComment(n,_)){for(var f=void 0,p=0;p<r.length;p++)u[p+3]&&(f=r[p]);if(void 0===f)return e.Debug.fail();if(!((i=o.charCodeAt(_+f.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var m=u[2];s.push({descriptor:f,message:m,position:_})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=c.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?C.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort(function(e,t){return e.start-t.start}):e.emptyArray},getIndentationAtPosition:function(t,r,n){var i=e.timestamp(),a=y(n),o=c.getCurrentSourceFile(t);_("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return _("getIndentationAtPosition: computeIndentation  : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(t,r,n,i){var a=c.getCurrentSourceFile(t);return e.formatting.formatSelection(r,n,a,e.formatting.getFormatContext(y(i)))},getFormattingEditsForDocument:function(t,r){return e.formatting.formatDocument(c.getCurrentSourceFile(t),e.formatting.getFormatContext(y(r)))},getFormattingEditsAfterKeystroke:function(t,r,n,i){var a=c.getCurrentSourceFile(t),o=e.formatting.getFormatContext(y(i));if(!e.isInComment(a,r))switch(n){case"{":return e.formatting.formatOnOpeningCurly(r,a,o);case"}":return e.formatting.formatOnClosingCurly(r,a,o);case";":return e.formatting.formatOnSemicolon(r,a,o);case"\n":return e.formatting.formatOnEnter(r,a,o)}return[]},getDocCommentTemplateAtPosition:function(r,n){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),c.getCurrentSourceFile(r),n)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=c.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition:function(t,r){var n=c.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=30===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:void 0;return a&&function t(r){var n=r.openingElement,i=r.closingElement,a=r.parent;return!e.tagNamesAreEquivalent(n.tagName,i.tagName)||e.isJsxElement(a)&&e.tagNamesAreEquivalent(n.tagName,a.openingElement.tagName)&&t(a)}(a)?{newText:"</"+a.openingElement.tagName.getText(n)+">"}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=c.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,o,s,c){void 0===c&&(c=e.emptyOptions),h();var u=g(r),d=e.createTextSpanFromBounds(n,i),_=e.formatting.getFormatContext(s);return e.flatMap(e.deduplicate(o,e.equateValues,e.compareValues),function(r){return l.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:u,span:d,program:a,host:t,cancellationToken:l,formatContext:_,preferences:c})})},getCombinedCodeFix:function(r,n,i,o){void 0===o&&(o=e.emptyOptions),h(),e.Debug.assert("file"===r.type);var s=g(r.fileName),c=e.formatting.getFormatContext(i);return e.codefix.getAllFixes({fixId:n,sourceFile:s,program:a,host:t,cancellationToken:l,formatContext:c,preferences:o})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t,i="string"!=typeof t?r:void 0;return e.isArray(n)?Promise.all(n.map(function(e){return E(e,i)})):E(n,i)},organizeImports:function(r,n,i){void 0===i&&(i=e.emptyOptions),h(),e.Debug.assert("file"===r.type);var o=g(r.fileName),s=e.formatting.getFormatContext(n);return e.OrganizeImports.organizeImports(o,s,t,a,i)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(v(),r,n,t,e.formatting.getFormatContext(i),a,m)},getEmitOutput:function(r,n){void 0===n&&(n=!1),h();var i=g(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(a,i,n,l,o)},getNonBoundSourceFile:function(e){return c.getCurrentSourceFile(e)},getProgram:v,getApplicableRefactors:function(t,r,n){void 0===n&&(n=e.emptyOptions),h();var i=g(t);return e.refactor.getApplicableRefactors(w(i,r,n))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),h();var s=g(t);return e.refactor.getEditsForRefactor(w(s,n,o,r),i,a)},toLineColumnOffset:m.toLineColumnOffset,getSourceMapper:function(){return m}}},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&function(t){return e.isDeclarationName(t)||259===t.parent.kind||function(e){return e&&e.parent&&190===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++){var s=o[a];e.forEachChild(s,t)}})}(t),t.nameTable},e.getContainingObjectLiteralElement=N,e.getPropertySymbolsFromContextualType=A,e.getDefaultLibFilePath=function(t){return a+e.directorySeparator+e.getDefaultLibFileName(t)},e.objectAllocator={getNodeConstructor:function(){return r},getTokenConstructor:function(){return c},getIdentifierConstructor:function(){return u},getSourceFileConstructor:function(){return g},getSymbolConstructor:function(){return o},getTypeConstructor:function(){return d},getSignatureConstructor:function(){return _},getSourceMapSourceConstructor:function(){return h}}}(d||(d={})),function(e){!function(t){t.spanInSourceFileAtLocation=function(t,r){if(!t.isDeclarationFile){var n=e.getTokenAtPosition(t,r),i=t.getLineAndCharacterOfPosition(r).line;if(t.getLineAndCharacterOfPosition(n.getStart(t)).line>i){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(4194304&n.flags))return d(n)}function o(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?d(e):d(r)}function u(r){return d(e.findPrecedingToken(r.pos,t))}function l(r){return d(e.findNextToken(r,r.parent,t))}function d(r){if(r){var n=r.parent;switch(r.kind){case 219:return x(r.declarationList.declarations[0]);case 237:case 154:case 153:return x(r);case 151:return function t(r){if(e.isBindingPattern(r.name))return C(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):d(n.body)}(r);case 239:case 156:case 155:case 158:case 159:case 157:case 196:case 197:return function(e){if(e.body)return S(e)?o(e):d(e.body)}(r);case 218:if(e.isFunctionBlock(r))return y=(h=r).statements.length?h.statements[0]:h.getLastToken(),S(h.parent)?c(h.parent,y):d(y);case 245:return D(r);case 274:return D(r.block);case 221:return o(r.expression);case 230:return o(r.getChildAt(0),r.expression);case 224:return s(r,r.expression);case 223:return d(r.statement);case 236:return o(r.getChildAt(0));case 222:return s(r,r.expression);case 233:return d(r.statement);case 229:case 228:return o(r.getChildAt(0),r.label);case 225:return(g=r).initializer?k(g):g.condition?o(g.condition):g.incrementor?o(g.incrementor):void 0;case 226:return s(r,r.expression);case 227:return k(r);case 232:return s(r,r.expression);case 271:case 272:return d(r.statements[0]);case 235:return D(r.tryBlock);case 234:case 254:return o(r,r.expression);case 248:return o(r,r.moduleReference);case 249:case 255:return o(r,r.moduleSpecifier);case 244:if(1!==e.getModuleInstanceState(r))return;case 240:case 243:case 278:case 186:return o(r);case 231:return d(r.statement);case 152:return v=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,v.pos),v.end);case 184:case 185:return C(r);case 241:case 242:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return u(r);case 18:return function(r){switch(r.parent.kind){case 243:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 240:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 246:return c(r.parent.parent,r.parent.clauses[0])}return d(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 245:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 243:case 240:return o(t);case 218:if(e.isFunctionBlock(t.parent))return o(t);case 274:return d(e.lastOrUndefined(t.parent.statements));case 246:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?d(e.lastOrUndefined(n.statements)):void 0;case 184:var i=t.parent;return d(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return d(t.parent)}}(r);case 23:return function(t){switch(t.parent.kind){case 185:var r=t.parent;return o(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return d(t.parent)}}(r);case 20:return function(e){return 223===e.parent.kind||191===e.parent.kind||192===e.parent.kind?u(e):195===e.parent.kind?l(e):d(e.parent)}(r);case 21:return function(e){switch(e.parent.kind){case 196:case 239:case 197:case 156:case 155:case 158:case 159:case 157:case 224:case 223:case 225:case 227:case 191:case 192:case 195:return u(e);default:return d(e.parent)}}(r);case 57:return function(t){return e.isFunctionLike(t.parent)||275===t.parent.kind||151===t.parent.kind?u(t):d(t.parent)}(r);case 30:case 28:return function(e){return 194===e.parent.kind?l(e):d(e.parent)}(r);case 107:return function(e){return 223===e.parent.kind?s(e,e.parent.expression):d(e.parent)}(r);case 83:case 75:case 88:return l(r);case 147:return function(e){return 227===e.parent.kind?l(e):d(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return T(r);if((72===r.kind||208===r.kind||275===r.kind||276===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(204===r.kind){var i=r,a=i.left,_=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return T(a);if(59===_.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===_.kind)return d(a)}if(e.isExpressionNode(r))switch(n.kind){case 223:return u(r);case 152:return d(r.parent);case 225:case 227:return o(r);case 204:if(27===r.parent.operatorToken.kind)return o(r);break;case 197:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 275:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return d(r.parent.initializer);break;case 194:if(r.parent.type===r)return l(r.parent.type);break;case 237:case 151:var f=r.parent,p=f.initializer,m=f.type;if(p===r||m===r||e.isAssignmentOperator(r.kind))return u(r);break;case 204:if(a=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return u(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return u(r)}return d(r.parent)}}var g,h,y,v;function b(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function x(r){if(226===r.parent.parent.kind)return d(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?C(r.name):r.initializer||e.hasModifier(r,1)||227===n.parent.kind?b(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?d(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function S(t){return e.hasModifier(t,1)||240===t.parent.kind&&157!==t.kind}function D(r){switch(r.parent.kind){case 244:if(1!==e.getModuleInstanceState(r.parent))return;case 224:case 222:case 226:return c(r.parent,r.statements[0]);case 225:case 227:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return d(r.statements[0])}function k(e){if(238!==e.initializer.kind)return d(e.initializer);var t=e.initializer;return t.declarations.length>0?d(t.declarations[0]):void 0}function C(t){var r=e.forEach(t.elements,function(e){return 210!==e.kind?e:void 0});return r?d(r):186===t.parent.kind?o(t.parent):b(t.parent)}function T(t){e.Debug.assert(185!==t.kind&&184!==t.kind);var r=187===t.kind?t.elements:t.properties,n=e.forEach(r,function(e){return 210!==e.kind?e:void 0});return n?d(n):o(204===t.parent.kind?t.parent:t)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(d||(d={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(d||(d={}));var d,_,f=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var n=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 r=e,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);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}(),i=function(){function e(e){var r=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return t.map(e,function(e){var r=t.getProperty(i,e);return r?{resolvedFileName:r,extension:t.extensionFromPath(r),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));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 JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new n(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,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),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=i;var a=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)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return e.prototype.readDirectory=function(e,r,n,i,a){var o=t.getFileMatcherPatterns(e,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(r),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}();function o(e,t,r,n){return s(e,t,!0,r,n)}function s(e,n,i,a,o){try{var s=function(e,r,n,i){var a;i&&(e.log(r),a=t.timestamp());var o=n();if(i){var s=t.timestamp();if(e.log(r+" 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}(e,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,i),i.description=n,JSON.stringify({error:i}))}}t.CoreServicesShimHostAdapter=a;var c=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function u(e,r){return e.map(function(e){return function(e,r){return{message:t.flattenDiagnosticMessageText(e.messageText,r),start:e.start,length:e.length,category:t.diagnosticCategoryName(e),code:e.code,reportsUnnecessary:e.reportsUnnecessary}}(e,r)})}t.realizeDiagnostics=u;var d=function(e){function r(t,r,n){var i=e.call(this,t)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return l(r,e),r.prototype.forwardJSONCall=function(e,t){return o(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,f&&f.CollectGarbage&&(f.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,e.prototype.dispose.call(this,t)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},r.prototype.realizeDiagnostics=function(e){return u(e,t.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+r+", "+n+")",function(){return i.languageService.getSyntacticClassifications(e,t.createTextSpan(r,n))})},r.prototype.getSemanticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+r+", "+n+")",function(){return i.languageService.getSemanticClassifications(e,t.createTextSpan(r,n))})},r.prototype.getEncodedSyntacticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+r+", "+n+")",function(){return _(i.languageService.getEncodedSyntacticClassifications(e,t.createTextSpan(r,n)))})},r.prototype.getEncodedSemanticClassifications=function(e,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+r+", "+n+")",function(){return _(i.languageService.getEncodedSemanticClassifications(e,t.createTextSpan(r,n)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)})},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return r.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t,r)})},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return r.languageService.getDefinitionAndBoundSpan(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return r.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return r.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return r.languageService.getRenameInfo(e,t)})},r.prototype.findRenameLocations=function(e,t,r,n){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+r+", "+n+")",function(){return i.languageService.findRenameLocations(e,t,r,n)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return r.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)})},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)})},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)})},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return r.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return r.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(e,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+r+")",function(){var a=i.languageService.getDocumentHighlights(e,r,JSON.parse(n)),o=t.normalizeSlashes(e).toLowerCase();return t.filter(a,function(e){return t.normalizeSlashes(e.fileName).toLowerCase()===o})})},r.prototype.getCompletionsAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+r+")",function(){return n.languageService.getCompletionsAtPosition(e,t,r)})},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+r+"')",function(){var s=void 0===n?void 0:JSON.parse(n);return o.languageService.getCompletionEntryDetails(e,t,r,s,i,a)})},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+r+")",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)})},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+r+"')",function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return r.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+r+")",function(){return n.languageService.getNavigateToItems(e,t,r)})},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return r.languageService.getTodoComments(e,JSON.parse(t))})},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},r.prototype.getEmitOutputObject=function(e){var t=this;return s(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r}(c);function _(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var p=function(e){function r(r,n){var i=e.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=t.createClassifier(),i}return l(r,e),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),o(this.logger,"getEncodedLexicalClassifications",function(){return _(n.classifier.getEncodedLexicalClassifications(e,t,r))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a<o.length;a++){var s=o[a];i+=s.length+"\n",i+=s.classification+"\n"}return i+=n.finalLexState},r}(c),m=function(e){function r(t,r,n){var i=e.call(this,t)||this;return i.logger=r,i.host=n,i.logPerformance=!1,i}return l(r,e),r.prototype.forwardJSONCall=function(e,t){return o(this.logger,e,t,this.logPerformance)},r.prototype.resolveModuleName=function(e,r,n){var i=this;return this.forwardJSONCall("resolveModuleName('"+e+"')",function(){var a=JSON.parse(n),o=t.resolveModuleName(r,t.normalizeSlashes(e),a,i.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&".ts"!==o.resolvedModule.extension&&".tsx"!==o.resolvedModule.extension&&".d.ts"!==o.resolvedModule.extension&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}})},r.prototype.resolveTypeReferenceDirective=function(e,r,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+e+")",function(){var a=JSON.parse(n),o=t.resolveTypeReferenceDirective(r,t.normalizeSlashes(e),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}})},r.prototype.getPreProcessedFileInfo=function(e,r){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+e+"')",function(){var e=t.preProcessFile(t.getSnapshotText(r),!0,!0);return{referencedFiles:n.convertFileReferences(e.referencedFiles),importedFiles:n.convertFileReferences(e.importedFiles),ambientExternalModules:e.ambientExternalModules,isLibFile:e.isLibFile,typeReferenceDirectives:n.convertFileReferences(e.typeReferenceDirectives),libReferenceDirectives:n.convertFileReferences(e.libReferenceDirectives)}})},r.prototype.getAutomaticTypeDirectiveNames=function(e){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+e+"')",function(){var n=JSON.parse(e);return t.getAutomaticTypeDirectiveNames(n,r.host)})},r.prototype.convertFileReferences=function(e){if(e){for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n];r.push({path:t.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return r}},r.prototype.getTSConfigFileInfo=function(e,r){var n=this;return this.forwardJSONCall("getTSConfigFileInfo('"+e+"')",function(){var i=t.parseJsonText(e,t.getSnapshotText(r)),a=t.normalizeSlashes(e),o=t.parseJsonSourceFileConfigFileContent(i,n.host,t.getDirectoryPath(a),{},a);return{options:o.options,typeAcquisition:o.typeAcquisition,files:o.fileNames,raw:o.raw,errors:u(i.parseDiagnostics.concat(o.errors),"\r\n")}})},r.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return t.getDefaultCompilerOptions()})},r.prototype.discoverTypings=function(e){var r=this,n=t.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var i=JSON.parse(e);return void 0===r.safeList&&(r.safeList=t.JsTyping.loadSafeList(r.host,t.toPath(i.safeListPath,i.safeListPath,n))),t.JsTyping.discoverTypings(r.host,function(e){return r.logger.log(e)},i.fileNames,t.toPath(i.projectRootPath,i.projectRootPath,n),r.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry)})},r}(c),g=function(){function e(){this._shims=[]}return e.prototype.getServicesVersion=function(){return t.servicesVersion},e.prototype.createLanguageServiceShim=function(e){try{void 0===this.documentRegistry&&(this.documentRegistry=t.createDocumentRegistry(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()));var n=new i(e),a=t.createLanguageService(n,this.documentRegistry,!1);return new d(this,e,a)}catch(t){throw r(e,t),t}},e.prototype.createClassifierShim=function(e){try{return new p(this,e)}catch(t){throw r(e,t),t}},e.prototype.createCoreServicesShim=function(e){try{var t=new a(e);return new m(this,e,t)}catch(t){throw r(e,t),t}},e.prototype.close=function(){t.clear(this._shims),this.documentRegistry=void 0},e.prototype.registerShim=function(e){this._shims.push(e)},e.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},e}();t.TypeScriptServicesFactory=g,e.exports&&(e.exports=t)}(d||(d={})),function(e){!function(e){e.TypeScriptServicesFactory=d.TypeScriptServicesFactory}(e.Services||(e.Services={}))}(_||(_={}));d.versionMajorMinor}).call(this,r(7),"/index.js",r(6),"/")},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(26).Transform;function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(0)(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)r[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=a},function(e,t,r){"use strict";(function(t,n){var i=r(20);e.exports=v;var a,o=r(39);v.ReadableState=y;r(27).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=r(42),u=r(1).Buffer,l=t.Uint8Array||function(){};var d=r(14);d.inherits=r(0);var _=r(84),f=void 0;f=_&&_.debuglog?_.debuglog("stream"):function(){};var p,m=r(85),g=r(43);d.inherits(v,c);var h=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var n=t instanceof(a=a||r(10));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r(30).StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function v(e){if(a=a||r(10),!(this instanceof v))return new v(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function b(e,t,r,n,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}(e,o)):(i||(a=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?x(e,o,t,!1):T(e,o)):x(e,o,t,!1))):n||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function x(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),T(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=g.destroy,v.prototype._undestroy=g.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),b(this,e,t,!1,r)},v.prototype.unshift=function(e){return b(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return p||(p=r(30).StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};var S=8388608;function D(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(C,e):C(e))}function C(e){f("emit readable"),e.emit("readable"),w(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function N(e){f("readable nexttick read 0"),e.read(0)}function A(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),w(e),t.flowing&&!t.reading&&e.read(0)}function w(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0===(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function F(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}v.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):k(this),null;if(0===(e=D(e,t))&&t.ended)return 0===t.length&&F(this),null;var n,i=t.needReadable;return f("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",i=!0),t.ended||t.reading?f("reading or ended",i=!1):i&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=D(r,t))),null===(n=e>0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&F(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var r=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,f("pipe count=%d opts=%j",a.pipesCount,t);var c=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?l:v;function u(t,n){f("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),e.removeListener("close",h),e.removeListener("finish",y),e.removeListener("drain",d),e.removeListener("error",g),e.removeListener("unpipe",u),r.removeListener("end",l),r.removeListener("end",v),r.removeListener("data",m),_=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function l(){f("onend"),e.end()}a.endEmitted?i.nextTick(c):r.once("end",c),e.on("unpipe",u);var d=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,w(e))}}(r);e.on("drain",d);var _=!1;var p=!1;function m(t){f("ondata"),p=!1,!1!==e.write(t)||p||((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==M(a.pipes,e))&&!_&&(f("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function g(t){f("onerror",t),v(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function h(){e.removeListener("finish",y),v()}function y(){f("onfinish"),e.removeListener("close",h),v()}function v(){f("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",h),e.once("finish",y),e.emit("pipe",r),a.flowing||(f("pipe resume"),r.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,r);return this}var o=M(t.pipes,e);return-1===o?this:(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)},v.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&k(this):i.nextTick(N,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(A,e,t))}(this,e)),this},v.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(f("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){(f("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<h.length;a++)e.on(h[a],this.emit.bind(this,h[a]));return this._read=function(t){f("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=P}).call(this,r(6),r(7))},function(e,t,r){e.exports=r(27).EventEmitter},function(e,t,r){"use strict";var n=r(20);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){"use strict";e.exports=o;var n=r(10),i=r(14);function a(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);n.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){c(e,t,r)}):c(this,null,null)}function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(0),i.inherits(o,n),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},function(e,t,r){var n=r(0),i=r(12),a=r(1).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function _(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<64;++h)r[h]=0|(((t=r[h-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[h-7]+f(r[h-15])+r[h-16];for(var y=0;y<64;++y){var v=g+_(c)+u(c,p,m)+o[y]+r[y]|0,b=d(n)+l(n,i,a)|0;g=m,m=p,p=c,c=s+v|0,s=a,a=i,i=n,n=v+b|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},function(e,t,r){var n=r(0),i=r(12),a=r(1).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function _(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function h(e,t){return e>>>0<t>>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,c=0|this._fh,y=0|this._gh,v=0|this._hh,b=0|this._al,x=0|this._bl,S=0|this._cl,D=0|this._dl,k=0|this._el,C=0|this._fl,T=0|this._gl,E=0|this._hl,N=0;N<32;N+=2)t[N]=e.readInt32BE(4*N),t[N+1]=e.readInt32BE(4*N+4);for(;N<160;N+=2){var A=t[N-30],w=t[N-30+1],P=f(A,w),F=p(w,A),I=m(A=t[N-4],w=t[N-4+1]),M=g(w,A),O=t[N-14],L=t[N-14+1],R=t[N-32],B=t[N-32+1],j=F+L|0,z=P+O+h(j,F)|0;z=(z=z+I+h(j=j+M|0,M)|0)+R+h(j=j+B|0,B)|0,t[N]=z,t[N+1]=j}for(var J=0;J<160;J+=2){z=t[J],j=t[J+1];var U=l(r,n,i),q=l(b,x,S),K=d(r,b),V=d(b,r),W=_(s,k),H=_(k,s),G=o[J],X=o[J+1],Q=u(s,c,y),Y=u(k,C,T),Z=E+H|0,$=v+W+h(Z,E)|0;$=($=($=$+Q+h(Z=Z+Y|0,Y)|0)+G+h(Z=Z+X|0,X)|0)+z+h(Z=Z+j|0,j)|0;var ee=V+q|0,te=K+U+h(ee,V)|0;v=y,E=T,y=c,T=C,c=s,C=k,s=a+$+h(k=D+Z|0,D)|0,a=i,D=S,i=n,S=x,n=r,x=b,r=$+te+h(b=Z+ee|0,Z)|0}this._al=this._al+b|0,this._bl=this._bl+x|0,this._cl=this._cl+S|0,this._dl=this._dl+D|0,this._el=this._el+k|0,this._fl=this._fl+C|0,this._gl=this._gl+T|0,this._hl=this._hl+E|0,this._ah=this._ah+r+h(this._al,b)|0,this._bh=this._bh+n+h(this._bl,x)|0,this._ch=this._ch+i+h(this._cl,S)|0,this._dh=this._dh+a+h(this._dl,D)|0,this._eh=this._eh+s+h(this._el,k)|0,this._fh=this._fh+c+h(this._fl,C)|0,this._gh=this._gh+y+h(this._gl,T)|0,this._hh=this._hh+v+h(this._hl,E)|0},c.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},function(e,t,r){"use strict";var n=r(0),i=r(99),a=r(9),o=r(1).Buffer,s=r(48),c=r(31),u=r(32),l=o.alloc(128);function d(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new c:u(e)).update(t).digest():t.length<r&&(t=o.concat([t,l],r));for(var n=this._ipad=o.allocUnsafe(r),i=this._opad=o.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new c:u(e),this._hash.update(n)}n(d,a),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:u(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new i(s,t):new d(e,t)}},function(e,t,r){var n=r(25);e.exports=function(e){return(new n).update(e).digest()}},function(e){e.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},function(e,t,r){t.pbkdf2=r(101),t.pbkdf2Sync=r(53)},function(e,t,r){(function(t){var r=Math.pow(2,30)-1;function n(e,r){if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError(r+" must be a buffer or string")}e.exports=function(e,t,i,a){if(n(e,"Password"),n(t,"Salt"),"number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof a)throw new TypeError("Key length not a number");if(a<0||a>r||a!=a)throw new TypeError("Bad key length")}}).call(this,r(2).Buffer)},function(e,t,r){(function(t){var r;t.browser?r="utf-8":r=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary";e.exports=r}).call(this,r(7))},function(e,t,r){var n=r(48),i=r(31),a=r(32),o=r(51),s=r(52),c=r(1).Buffer,u=c.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,r){var o=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return a(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=o(t):t.length<s&&(t=c.concat([t,u],s));for(var d=c.allocUnsafe(s+l[e]),_=c.allocUnsafe(s+l[e]),f=0;f<s;f++)d[f]=54^t[f],_[f]=92^t[f];var p=c.allocUnsafe(s+r+4);d.copy(p,0,0,s),this.ipad1=p,this.ipad2=d,this.opad=_,this.alg=e,this.blocksize=s,this.hash=o,this.size=l[e]}d.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,r,n,i){o(e,t,r,n),c.isBuffer(e)||(e=c.from(e,s)),c.isBuffer(t)||(t=c.from(t,s));var a=new d(i=i||"sha1",e,t.length),u=c.allocUnsafe(n),_=c.allocUnsafe(t.length+4);t.copy(_,0,0,t.length);for(var f=0,p=l[i],m=Math.ceil(n/p),g=1;g<=m;g++){_.writeUInt32BE(g,t.length);for(var h=a.run(_,a.ipad1),y=h,v=1;v<r;v++){y=a.run(y,a.ipad2);for(var b=0;b<p;b++)h[b]^=y[b]}h.copy(u,f),f+=p}return u}},function(e,t,r){var n=r(15),i=r(1).Buffer,a=r(55);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return a(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),a=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var s=0;s<r;s++){var c=o(e),u=a+16*s;e._cache.writeUInt32BE(c[0],u+0),e._cache.writeUInt32BE(c[1],u+4),e._cache.writeUInt32BE(c[2],u+8),e._cache.writeUInt32BE(c[3],u+12)}var l=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,l)}},function(e,t){e.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},function(e){e.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},function(e,t,r){var n=r(21),i=r(1).Buffer,a=r(9),o=r(0),s=r(116),c=r(15),u=r(55);function l(e,t,r,o){a.call(this);var c=i.alloc(4,0);this._cipher=new n.AES(t);var l=this._cipher.encryptBlock(c);this._ghash=new s(l),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),a=t.length,o=a%16;n.update(t),o&&(o=16-o,n.update(i.alloc(o,0))),n.update(i.alloc(8,0));var c=8*a,l=i.alloc(8);l.writeUIntBE(c,0,8),n.update(l),e._finID=n.state;var d=i.from(e._finID);return u(d),d}(this,r,l),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(l,a),l.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},l.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=l},function(e,t,r){var n=r(21),i=r(1).Buffer,a=r(9);function o(e,t,r,o){a.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}r(0)(o,a),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},function(e,t,r){var n=r(11);e.exports=y,y.simpleSieve=g,y.fermatTest=h;var i=r(3),a=new i(24),o=new(r(60)),s=new i(1),c=new i(2),u=new i(5),l=(new i(16),new i(8),new i(10)),d=new i(3),_=(new i(7),new i(11)),f=new i(4),p=(new i(12),null);function m(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return p=e,e}function g(e){for(var t=m(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function h(e){var t=i.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function y(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var r,p;for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;r.mod(l).cmp(d);)r.iadd(f)}else for(;r.mod(a).cmp(_);)r.iadd(f);if(g(p=r.shrn(1))&&g(r)&&h(p)&&h(r)&&o.test(p)&&o.test(r))return r}}},function(e,t,r){var n=r(3),i=r(61);function a(e){this.rand=e||new i.Rand}e.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},a.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},a.prototype.test=function(e,t,r){var i=e.bitLength(),a=n.mont(e),o=new n(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),l=s.toRed(a);t>0;t--){var d=this._randrange(new n(2),s);r&&r(d);var _=d.toRed(a).redPow(u);if(0!==_.cmp(o)&&0!==_.cmp(l)){for(var f=1;f<c;f++){if(0===(_=_.redSqr()).cmp(o))return!1;if(0===_.cmp(l))break}if(f===c)return!1}}return!0},a.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),a=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var c=e.shrn(s),u=o.toRed(i);t>0;t--){var l=this._randrange(new n(2),o),d=e.gcd(l);if(0!==d.cmpn(1))return d;var _=l.toRed(i).redPow(c);if(0!==_.cmp(a)&&0!==_.cmp(u)){for(var f=1;f<s;f++){if(0===(_=_.redSqr()).cmp(a))return _.fromRed().subn(1).gcd(e);if(0===_.cmp(u))break}if(f===s)return(_=_.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var a=r(122);if("function"!=typeof a.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return a.randomBytes(e)}}catch(e){}},function(e,t,r){"use strict";var n=t;function i(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),a=i>>8,o=255&i;a?r.push(a,o):r.push(o)}return r},n.zero2=i,n.toHex=a,n.encode=function(e,t){return"hex"===t?a(e):e}},function(e,t,r){"use strict";var n=r(8).rotr32;function i(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function o(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?o(t,r,n):2===e?a(t,r,n):void 0},t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(8),i=r(16),a=r(63),o=r(5),s=n.sum32,c=n.sum32_4,u=n.sum32_5,l=a.ch32,d=a.maj32,_=a.s0_256,f=a.s1_256,p=a.g0_256,m=a.g1_256,g=i.BlockHash,h=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=h,this.W=new Array(64)}n.inherits(y,g),e.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=c(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],a=this.h[1],g=this.h[2],h=this.h[3],y=this.h[4],v=this.h[5],b=this.h[6],x=this.h[7];for(o(this.k.length===r.length),n=0;n<r.length;n++){var S=u(x,f(y),l(y,v,b),this.k[n],r[n]),D=s(_(i),d(i,a,g));x=b,b=v,v=y,y=s(h,S),h=g,g=a,a=i,i=s(S,D)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],y),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],b),this.h[7]=s(this.h[7],x)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(8),i=r(16),a=r(5),o=n.rotr64_hi,s=n.rotr64_lo,c=n.shr64_hi,u=n.shr64_lo,l=n.sum64,d=n.sum64_hi,_=n.sum64_lo,f=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,h=i.BlockHash,y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;h.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function b(e,t,r,n,i){var a=e&r^~e&i;return a<0&&(a+=4294967296),a}function x(e,t,r,n,i,a){var o=t&n^~t&a;return o<0&&(o+=4294967296),o}function S(e,t,r,n,i){var a=e&r^e&i^r&i;return a<0&&(a+=4294967296),a}function D(e,t,r,n,i,a){var o=t&n^t&a^n&a;return o<0&&(o+=4294967296),o}function k(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}function C(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function T(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}function E(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function N(e,t){var r=o(e,t,1)^o(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=s(e,t,1)^s(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function w(e,t){var r=o(e,t,19)^o(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,19)^s(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,h),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=w(r[n-4],r[n-3]),a=P(r[n-4],r[n-3]),o=r[n-14],s=r[n-13],c=N(r[n-30],r[n-29]),u=A(r[n-30],r[n-29]),l=r[n-32],d=r[n-31];r[n]=f(i,a,o,s,c,u,l,d),r[n+1]=p(i,a,o,s,c,u,l,d)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],u=this.h[5],f=this.h[6],p=this.h[7],h=this.h[8],y=this.h[9],v=this.h[10],N=this.h[11],A=this.h[12],w=this.h[13],P=this.h[14],F=this.h[15];a(this.k.length===r.length);for(var I=0;I<r.length;I+=2){var M=P,O=F,L=T(h,y),R=E(h,y),B=b(h,y,v,N,A),j=x(h,y,v,N,A,w),z=this.k[I],J=this.k[I+1],U=r[I],q=r[I+1],K=m(M,O,L,R,B,j,z,J,U,q),V=g(M,O,L,R,B,j,z,J,U,q);M=k(n,i),O=C(n,i),L=S(n,i,o,s,c),R=D(n,i,o,s,c,u);var W=d(M,O,L,R),H=_(M,O,L,R);P=A,F=w,A=v,w=N,v=h,N=y,h=d(f,p,K,V),y=_(p,p,K,V),f=c,p=u,c=o,u=s,o=n,s=i,n=d(K,V,W,H),i=_(K,V,W,H)}l(this.h,0,n,i),l(this.h,2,o,s),l(this.h,4,c,u),l(this.h,6,f,p),l(this.h,8,h,y),l(this.h,10,v,N),l(this.h,12,A,w),l(this.h,14,P,F)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){var n=r(0),i=r(18).Reporter,a=r(2).Buffer;function o(e,t){i.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(o,i),t.DecoderBuffer=o,o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new o(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=s,s.prototype.join=function(e,t){return e||(e=new a(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)}},function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r}),t},n.der=r(154)},function(e,t,r){var n=r(0),i=r(17),a=i.base,o=i.bignum,s=i.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){a.Node.call(this,"der",e)}function l(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){var a=r;for(r=0;128==(128&a);){if(a=e.readUInt8(t),e.isError(a))return a;r<<=7,r|=127&a}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function d(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var a=0;a<i;a++){n<<=8;var o=e.readUInt8(r);if(e.isError(o))return o;n|=o}return n}e.exports=c,c.prototype.decode=function(e,t){return e instanceof a.DecoderBuffer||(e=new a.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(u,a.Node),u.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=l(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},u.prototype._decodeTag=function(e,t,r){var n=l(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=d(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var a=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},u.prototype._skipUntilEnd=function(e,t){for(;;){var r=l(e,t);if(e.isError(r))return r;var n,i=d(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},u.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var a=this._peekTag(e,"end");if(e.isError(a))return a;var o=r.decode(e,"der",n);if(e.isError(o)&&a)break;i.push(o)}return i},u.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",a=0;a<n.length/2;a++)i+=String.fromCharCode(n.readUInt16BE(2*a));return i}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},u.prototype._decodeObjid=function(e,t,r){for(var n,i=[],a=0;!e.isEmpty();){var o=e.readUInt8();a<<=7,a|=127&o,0==(128&o)&&(i.push(a),a=0)}128&o&&i.push(a);var s=i[0]/40|0,c=i[0]%40;if(n=r?i:[s,c].concat(i.slice(1)),t){var u=t[n.join(" ")];void 0===u&&(u=t[n.join(".")]),void 0!==u&&(n=u)}return n},u.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),a=0|r.slice(6,8),o=0|r.slice(8,10),s=0|r.slice(10,12),c=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),a=0|r.slice(4,6),o=0|r.slice(6,8),s=0|r.slice(8,10),c=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,a,o,s,c,0)},u.prototype._decodeNull=function(e){return null},u.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},u.prototype._decodeInt=function(e,t){var r=e.raw(),n=new o(r);return t&&(n=t[n.toString(10)]||n),n},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,r){var n=r(0),i=r(2).Buffer,a=r(17),o=a.base,s=a.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.Node.call(this,"der",e)}function l(e){return e<10?"0"+e:e}e.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,o.Node),u.prototype._encodeComposite=function(e,t,r,n){var a,o=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(a=new i(2))[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n]);for(var c=1,u=n.length;u>=256;u>>=8)c++;(a=new i(2+c))[0]=o,a[1]=128|c;u=1+c;for(var l=n.length;l>0;u--,l>>=8)a[u]=255&l;return this._createEncoderBuffer([a,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},u.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var a=0;for(n=0;n<e.length;n++){var o=e[n];for(a++;o>=128;o>>=7)a++}var s=new i(a),c=s.length-1;for(n=e.length-1;n>=0;n--){o=e[n];for(s[c--]=127&o;(o>>=7)>0;)s[c--]=128|127&o}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[l(n.getFullYear()),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[l(n.getFullYear()%100),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var a=new i(n);return e.copy(a),0===e.length&&(a[0]=0),this._createEncoderBuffer(a)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var o=e;o>=256;o>>=8)n++;for(o=(a=new Array(n)).length-1;o>=0;o--)a[o]=255&e,e>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(new i(a))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var a=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),a.length!==i.defaultBuffer.length)return!1;for(n=0;n<a.length;n++)if(a[n]!==i.defaultBuffer[n])return!1;return!0}},function(e){e.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},function(e,t,r){var n=r(13),i=r(1).Buffer;function a(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,o=i.alloc(0),s=0;o.length<t;)r=a(s++),o=i.concat([o,n("sha1").update(e).update(r).digest()]);return o.slice(0,t)}},function(e,t){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},function(e,t,r){var n=r(3),i=r(1).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},function(e,t,r){var n=r(75),i=r(19),a=r(76).ArraySet,o=r(171).MappingList;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new o,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,r=new s({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)}),e.sources.forEach(function(n){var a=n;null!==t&&(a=i.relative(t,n)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(n);null!=o&&r.setSourceContent(n,o)}),r},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),r=i.getArg(e,"original",null),n=i.getArg(e,"source",null),a=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,a),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:a})},s.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=i.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var o=this._sourceRoot;null!=o&&(n=i.relative(o,n));var s=new a,c=new a;this._mappings.unsortedForEach(function(t){if(t.source===n&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=i.join(r,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var u=t.source;null==u||s.has(u)||s.add(u);var l=t.name;null==l||c.has(l)||c.add(l)},this),this._sources=s,this._names=c,e.sources.forEach(function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=i.join(r,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,n))},this)},s.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},s.prototype._serializeMappings=function(){for(var e,t,r,a,o=0,s=1,c=0,u=0,l=0,d=0,_="",f=this._mappings.toArray(),p=0,m=f.length;p<m;p++){if(e="",(t=f[p]).generatedLine!==s)for(o=0;t.generatedLine!==s;)e+=";",s++;else if(p>0){if(!i.compareByGeneratedPositionsInflated(t,f[p-1]))continue;e+=","}e+=n.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=n.encode(a-d),d=a,e+=n.encode(t.originalLine-1-u),u=t.originalLine-1,e+=n.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-l),l=r)),_+=e}return _},s.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},function(e,t,r){var n=r(170);t.encode=function(e){var t,r="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),r+=n.encode(t)}while(i>0);return r},t.decode=function(e,t,r){var i,a,o,s,c=e.length,u=0,l=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=n.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&a),u+=(a&=31)<<l,l+=5}while(i);r.value=(s=(o=u)>>1,1==(1&o)?-s:s),r.rest=t}},function(e,t,r){var n=r(19),i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Map;function o(){this._array=[],this._set=a?new Map:Object.create(null)}o.fromArray=function(e,t){for(var r=new o,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},o.prototype.size=function(){return a?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(e,t){var r=a?e:n.toSetString(e),o=a?this.has(e):i.call(this._set,r),s=this._array.length;o&&!t||this._array.push(e),o||(a?this._set.set(e,s):this._set[r]=s)},o.prototype.has=function(e){if(a)return this._set.has(e);var t=n.toSetString(e);return i.call(this._set,t)},o.prototype.indexOf=function(e){if(a){var t=this._set.get(e);if(t>=0)return t}else{var r=n.toSetString(e);if(i.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},o.prototype.toArray=function(){return this._array.slice()},t.ArraySet=o},function(e,t,r){"use strict";r.r(t),function(e){var t=r(38);e.tsc=(e=>t.transpileModule(e,{compilerOptions:{module:t.ModuleKind.CommonJS}}))}.call(this,r(6))},function(e,t){},function(e,t){},function(e,t){},function(e,t,r){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r(11),t.createHash=t.Hash=r(13),t.createHmac=t.Hmac=r(47);var n=r(100),i=Object.keys(n),a=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return a};var o=r(50);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=r(102);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var c=r(119);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=r(125);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=r(163);var l=r(164);t.publicEncrypt=l.publicEncrypt,t.privateEncrypt=l.privateEncrypt,t.publicDecrypt=l.publicDecrypt,t.privateDecrypt=l.privateDecrypt;var d=r(167);t.randomFill=d.randomFill,t.randomFillSync=d.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){for(var t,r=u(e),n=r[0],o=r[1],s=new a(function(e,t,r){return 3*(t+r)/4-r}(0,n,o)),c=0,l=o>0?n-4:n,d=0;d<l;d+=4)t=i[e.charCodeAt(d)]<<18|i[e.charCodeAt(d+1)]<<12|i[e.charCodeAt(d+2)]<<6|i[e.charCodeAt(d+3)],s[c++]=t>>16&255,s[c++]=t>>8&255,s[c++]=255&t;2===o&&(t=i[e.charCodeAt(d)]<<2|i[e.charCodeAt(d+1)]>>4,s[c++]=255&t);1===o&&(t=i[e.charCodeAt(d)]<<10|i[e.charCodeAt(d+1)]<<4|i[e.charCodeAt(d+2)]>>2,s[c++]=t>>8&255,s[c++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,a=[],o=0,s=r-i;o<s;o+=16383)a.push(l(e,o,o+16383>s?s:o+16383));1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s<c;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,a,o=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(a=i)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var a,o,s=8*i-n-1,c=(1<<s)-1,u=c>>1,l=-7,d=r?i-1:0,_=r?-1:1,f=e[t+d];for(d+=_,a=f&(1<<-l)-1,f>>=-l,l+=s;l>0;a=256*a+e[t+d],d+=_,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=n;l>0;o=256*o+e[t+d],d+=_,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),a-=u}return(f?-1:1)*o*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var o,s,c,u=8*a-i-1,l=(1<<u)-1,d=l>>1,_=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:a-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?_/c:_*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=l?(s=0,o=l):o+d>=1?(s=(t*c-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&s,f+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[r+f]=255&o,f+=p,o/=256,u-=8);e[r+f-p]|=128*m}},function(e,t){},function(e,t,r){"use strict";var n=r(1).Buffer,i=r(86);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,a=n.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=a,i=s,t.copy(r,i),s+=o.data.length,o=o.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(88),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(6))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,a,o,s,c=1,u={},l=!1,d=e.document,_=Object.getPrototypeOf&&Object.getPrototypeOf(e);_=_&&_.setTimeout?_:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){a.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,n=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),n=function(t){e.postMessage(o+t,"*")}),_.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return u[c]=i,n(c),c++},_.clearImmediate=f}function f(e){delete u[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=u[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}(t)}finally{f(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(6),r(7))},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(6))},function(e,t,r){"use strict";e.exports=a;var n=r(44),i=r(14);function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}i.inherits=r(0),i.inherits(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(29)},function(e,t,r){e.exports=r(10)},function(e,t,r){e.exports=r(28).Transform},function(e,t,r){e.exports=r(28).PassThrough},function(e,t,r){var n=r(0),i=r(12),a=r(1).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=r[d-3]^r[d-8]^r[d-14]^r[d-16];for(var _=0;_<80;++_){var f=~~(_/20),p=0|((t=n)<<5|t>>>27)+l(f,i,a,s)+c+r[_]+o[f];c=s,s=a,a=u(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,r){var n=r(0),i=r(12),a=r(1).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,_=0;_<16;++_)r[_]=e.readInt32BE(4*_);for(;_<80;++_)r[_]=(t=r[_-3]^r[_-8]^r[_-14]^r[_-16])<<1|t>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=u(n)+d(p,i,a,s)+c+r[f]+o[p]|0;c=s,s=a,a=l(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,r){var n=r(0),i=r(45),a=r(12),o=r(1).Buffer,s=new Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},function(e,t,r){var n=r(0),i=r(46),a=r(12),o=r(1).Buffer,s=new Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},function(e,t,r){"use strict";var n=r(0),i=r(1).Buffer,a=r(9),o=i.alloc(128),s=64;function c(e,t){a.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length<s&&(t=i.concat([t,o],s));for(var r=this._ipad=i.allocUnsafe(s),n=this._opad=i.allocUnsafe(s),c=0;c<s;c++)r[c]=54^t[c],n[c]=92^t[c];this._hash=[r]}n(c,a),c.prototype._update=function(e){this._hash.push(e)},c.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=c},function(e,t,r){e.exports=r(49)},function(e,t,r){(function(t,n){var i,a=r(51),o=r(52),s=r(53),c=r(1).Buffer,u=t.crypto&&t.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function _(e,t,r,n,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return c.from(e)})}e.exports=function(e,r,f,p,m,g){"function"==typeof m&&(g=m,m=void 0);var h=l[(m=m||"sha1").toLowerCase()];if(!h||"function"!=typeof t.Promise)return n.nextTick(function(){var t;try{t=s(e,r,f,p,m)}catch(e){return g(e)}g(null,t)});if(a(e,r,f,p),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");c.isBuffer(e)||(e=c.from(e,o)),c.isBuffer(r)||(r=c.from(r,o)),function(e,t){e.then(function(e){n.nextTick(function(){t(null,e)})},function(e){n.nextTick(function(){t(e)})})}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var r=_(i=i||c.alloc(8),i,10,128,e).then(function(){return!0}).catch(function(){return!1});return d[e]=r,r}(h).then(function(t){return t?_(e,r,f,p,h):s(e,r,f,p,m)}),g)}}).call(this,r(6),r(7))},function(e,t,r){var n=r(103),i=r(34),a=r(35),o=r(118),s=r(22);function c(e,t,r){if(e=e.toLowerCase(),a[e])return i.createCipheriv(e,t,r);if(o[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function u(e,t,r){if(e=e.toLowerCase(),a[e])return i.createDecipheriv(e,t,r);if(o[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),a[e])r=a[e].key,n=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");r=8*o[e].key,n=o[e].iv}var i=s(t,!1,r,n);return c(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),a[e])r=a[e].key,n=a[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");r=8*o[e].key,n=o[e].iv}var i=s(t,!1,r,n);return u(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=u,t.listCiphers=t.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},function(e,t,r){var n=r(9),i=r(33),a=r(0),o=r(1).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function c(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var a=e.key;o.isBuffer(a)||(a=o.from(a)),"des-ede"!==r&&"des-ede-cbc"!==r||(a=o.concat([a,a.slice(0,8)]));var c=e.iv;o.isBuffer(c)||(c=o.from(c)),this._des=i.create({key:a,iv:c,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=c,a(c,n),c.prototype._update=function(e){return o.from(this._des.update(e))},c.prototype._final=function(){return o.from(this._des.final())}},function(e,t,r){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,a=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)a<<=1,a|=t>>>s+o&1;for(s=1;s<=25;s+=8)a<<=1,a|=e>>>s+o&1}r[n+0]=i>>>0,r[n+1]=a>>>0},t.rip=function(e,t,r,n){for(var i=0,a=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;r[n+0]=i>>>0,r[n+1]=a>>>0},t.pc1=function(e,t,r,n){for(var i=0,a=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1;r[n+0]=i>>>0,r[n+1]=a>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var a=0,o=0,s=n.length>>>1,c=0;c<s;c++)a<<=1,a|=e>>>n[c]&1;for(c=s;c<n.length;c++)o<<=1,o|=t>>>n[c]&1;r[i+0]=a>>>0,r[i+1]=o>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)n<<=6,n|=e>>>a&63;for(a=11;a>=3;a-=4)i|=e>>>a&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<a.length;r++)t<<=1,t|=e>>>a[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],a=0;a<t;a+=r)i.push(n.slice(a,a+r));return i.join(" ")}},function(e,t,r){"use strict";var n=r(5);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var a=e.length-(e.length-t)%this.blockSize;t<a;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,r){"use strict";var n=r(5),i=r(0),a=r(33),o=a.utils,s=a.Cipher;function c(){this.tmp=new Array(2),this.keys=null}function u(e){s.call(this,e);var t=new c;this._desState=t,this.deriveKeys(t,e.key)}i(u,s),e.exports=u,u.create=function(e){return new u(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=l[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},u.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,n,i){for(var a=t,s=r,c=0;c<e.keys.length;c+=2){var u=e.keys[c],l=e.keys[c+1];o.expand(s,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var d=o.substitute(u,l),_=s;s=(a^o.permute(d))>>>0,a=_}o.rip(s,a,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];o.expand(a,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var d=o.substitute(u,l),_=a;a=(s^o.permute(d))>>>0,s=_}o.rip(a,s,n,i)}},function(e,t,r){"use strict";var n=r(5),i=r(0),a={};function o(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(a),n=0;n<r.length;n++){var o=r[n];t.prototype[o]=a[o]}return t.create=function(e){return new t(e)},t},a._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},a._update=function(e,t,r,n){var i=this._cbcState,a=this.constructor.super_.prototype,o=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];a._update.call(this,o,0,r,n);for(s=0;s<this.blockSize;s++)o[s]=r[n+s]}else{a._update.call(this,e,t,r,n);for(s=0;s<this.blockSize;s++)r[n+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},function(e,t,r){"use strict";var n=r(5),i=r(0),a=r(33),o=a.Cipher,s=a.DES;function c(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:a})]:[s.create({type:"decrypt",key:a}),s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:r})]}function u(e){o.call(this,e);var t=new c(this.type,this.options.key);this._edeState=t}i(u,o),e.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=s.prototype._pad,u.prototype._unpad=s.prototype._unpad},function(e,t,r){var n=r(35),i=r(57),a=r(1).Buffer,o=r(58),s=r(9),c=r(21),u=r(22);function l(e,t,r){s.call(this),this._cache=new _,this._cipher=new c.AES(t),this._prev=a.from(r),this._mode=e,this._autopadding=!0}r(0)(l,s),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return a.concat(n)};var d=a.alloc(16,16);function _(){this.cache=a.allocUnsafe(0)}function f(e,t,r){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=a.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new o(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new l(s.module,t,r)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},_.prototype.add=function(e){this.cache=a.concat([this.cache,e])},_.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},_.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return a.concat([this.cache,t])},t.createCipheriv=f,t.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=u(t,!1,r.key,r.iv);return f(e,i.key,i.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,r){var n=r(15);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},function(e,t,r){var n=r(1).Buffer,i=r(15);function a(e,t,r){var a=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(a),e._prev=n.concat([e._prev,r?t:o]),o}t.encrypt=function(e,t,r){for(var i,o=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){o=n.concat([o,a(e,t,r)]);break}i=e._cache.length,o=n.concat([o,a(e,t.slice(0,i),r)]),t=t.slice(i)}return o}},function(e,t,r){var n=r(1).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var a=t.length,o=n.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],r);return o}},function(e,t,r){var n=r(1).Buffer;function i(e,t,r){for(var n,i,o=-1,s=0;++o<8;)n=t&1<<7-o?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>o%8,e._prev=a(e._prev,r?n:i);return s}function a(e,t){var r=e.length,i=-1,a=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)a[i]=e[i]<<1|e[i+1]>>7;return a}t.encrypt=function(e,t,r){for(var a=t.length,o=n.allocUnsafe(a),s=-1;++s<a;)o[s]=i(e,t[s],r);return o}},function(e,t,r){(function(e){var n=r(15);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,r){for(;t._cache.length<r.length;)t._cache=e.concat([t._cache,i(t)]);var a=t._cache.slice(0,r.length);return t._cache=t._cache.slice(r.length),n(r,a)}}).call(this,r(2).Buffer)},function(e,t,r){var n=r(1).Buffer,i=n.alloc(16,0);function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!=(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=a(i)},o.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=o},function(e,t,r){var n=r(57),i=r(1).Buffer,a=r(35),o=r(58),s=r(9),c=r(21),u=r(22);function l(e,t,r){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function _(e,t,r){var s=a[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new o(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new l(s.module,t,r)}r(0)(l,s),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=i.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=a[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=u(t,!1,r.key,r.iv);return _(e,n.key,n.iv)},t.createDecipheriv=_},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(59),i=r(123),a=r(124);var o={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new a(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,s,c){return e.isBuffer(i)||void 0===o[i]?t(r,"binary",i,s):(i=i||"binary",c=c||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,c)),"number"==typeof r?new a(n(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,i)),new a(r,s,!0)))}}).call(this,r(2).Buffer)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){},function(e,t){},function(e){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},function(e,t,r){(function(t){var n=r(3),i=new(r(60)),a=new n(24),o=new n(11),s=new n(10),c=new n(3),u=new n(7),l=r(59),d=r(11);function _(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function f(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=m;var p={};function m(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=_,this.setPrivateKey=f):this._primeCode=8}function g(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var d,_=0;if(e.isEven()||!l.simpleSieve||!l.fermatTest(e)||!i.test(e))return _+=1,_+="02"===r||"05"===r?8:4,p[n]=_,_;switch(i.test(e.shrn(1))||(_+=2),r){case"02":e.mod(a).cmp(o)&&(_+=8);break;case"05":(d=e.mod(s)).cmp(c)&&d.cmp(u)&&(_+=8);break;default:_+=4}return p[n]=_,_}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),a=this.getPrime();if(i.length<a.length){var o=new t(a.length-i.length);o.fill(0),i=t.concat([o,i])}return i},m.prototype.getPublicKey=function(e){return g(this._pub,e)},m.prototype.getPrivateKey=function(e){return g(this._priv,e)},m.prototype.getPrime=function(e){return g(this.__prime,e)},m.prototype.getGenerator=function(e){return g(this._gen,e)},m.prototype.setGenerator=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.__gen=e,this._gen=new n(e),this}}).call(this,r(2).Buffer)},function(e,t,r){(function(t){var n=r(13),i=r(26),a=r(0),o=r(126),s=r(162),c=r(49);function u(e){i.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){i.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new u(e)}function _(e){return new l(e)}Object.keys(c).forEach(function(e){c[e].id=new t(c[e].id,"hex"),c[e.toLowerCase()]=c[e]}),a(u,i.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,r){return"string"==typeof e&&(e=new t(e,r)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=o(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},a(l,i.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,r){return"string"==typeof e&&(e=new t(e,r)),this._hash.update(e),this},l.prototype.verify=function(e,r,n){"string"==typeof r&&(r=new t(r,n)),this.end();var i=this._hash.digest();return s(r,i,e,this._signType,this._tag)},e.exports={Sign:d,Verify:_,createSign:d,createVerify:_}}).call(this,r(2).Buffer)},function(e,t,r){(function(t){var n=r(47),i=r(36),a=r(4).ec,o=r(3),s=r(24),c=r(70);function u(e,r,i,a){if((e=new t(e.toArray())).length<r.byteLength()){var o=new t(r.byteLength()-e.length);o.fill(0),e=t.concat([o,e])}var s=i.length,c=function(e,r){e=(e=l(e,r)).mod(r);var n=new t(e.toArray());if(n.length<r.byteLength()){var i=new t(r.byteLength()-n.length);i.fill(0),n=t.concat([i,n])}return n}(i,r),u=new t(s);u.fill(1);var d=new t(s);return d.fill(0),d=n(a,d).update(u).update(new t([0])).update(e).update(c).digest(),u=n(a,d).update(u).digest(),{k:d=n(a,d).update(u).update(new t([1])).update(e).update(c).digest(),v:u=n(a,d).update(u).digest()}}function l(e,t){var r=new o(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function d(e,r,i){var a,o;do{for(a=new t(0);8*a.length<e.bitLength();)r.v=n(i,r.k).update(r.v).digest(),a=t.concat([a,r.v]);o=l(a,e),r.k=n(i,r.k).update(r.v).update(new t([0])).digest(),r.v=n(i,r.k).update(r.v).digest()}while(-1!==o.cmp(e));return o}function _(e,t,r,n){return e.toRed(o.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,r,n,f,p){var m=s(r);if(m.curve){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong private key type");return function(e,r){var n=c[r.curve.join(".")];if(!n)throw new Error("unknown curve "+r.curve.join("."));var i=new a(n).keyFromPrivate(r.privateKey).sign(e);return new t(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==f)throw new Error("wrong private key type");return function(e,r,n){for(var i,a=r.params.priv_key,s=r.params.p,c=r.params.q,f=r.params.g,p=new o(0),m=l(e,c).mod(c),g=!1,h=u(a,c,e,n);!1===g;)i=d(c,h,n),p=_(f,i,s,c),0===(g=i.invm(c).imul(m.add(a.mul(p))).mod(c)).cmpn(0)&&(g=!1,p=new o(0));return function(e,r){e=e.toArray(),r=r.toArray(),128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r));var n=[48,e.length+r.length+4,2,e.length];return n=n.concat(e,[2,r.length],r),new t(n)}(p,g)}(e,m,n)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong private key type");e=t.concat([p,e]);for(var g=m.modulus.byteLength(),h=[0,1];e.length+h.length+1<g;)h.push(255);h.push(0);for(var y=-1;++y<e.length;)h.push(e[y]);return i(h,m)},e.exports.getKey=u,e.exports.makeKey=d}).call(this,r(2).Buffer)},function(e){e.exports={_from:"elliptic@^6.0.0",_id:"elliptic@6.4.1",_inBundle:!1,_integrity:"sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3LWPtGjJi6DiJHq5C/qvi9P3OqgswKSDftbu8+IoI/QDTAm2fFnQ9SZSQ==",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.0.0",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.0.0",saveSpec:null,fetchSpec:"^6.0.0"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz",_shasum:"c2d0b7776911b86722c632c3c06c60f2f819939a",_spec:"elliptic@^6.0.0",_where:"/Users/sephware/projects/tmp/tscm/node_modules/browserify-sign",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.1"}},function(e,t,r){"use strict";var n=t,i=r(3),a=r(5),o=r(62);n.assert=a,n.toArray=o.toArray,n.zero2=o.zero2,n.toHex=o.toHex,n.encode=o.encode,n.getNAF=function(e,t){for(var r=[],n=1<<t+1,i=e.clone();i.cmpn(1)>=0;){var a;if(i.isOdd()){var o=i.andln(n-1);a=o>(n>>1)-1?(n>>1)-o:o,i.isubn(a)}else a=0;r.push(a);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,c=1;c<s;c++)r.push(0);i.iushrn(s)}return r},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var a,o,s,c=e.andln(3)+n&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),a=0==(1&c)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==u?c:-c,r[0].push(a),o=0==(1&u)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==c?u:-u,r[1].push(o),2*n===a+1&&(n=1-n),2*i===o+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){"use strict";var n=r(3),i=r(4).utils,a=i.getNAF,o=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=a(t,1),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var o=[],c=0;c<n.length;c+=r.step){var u=0;for(t=c+r.step-1;t>=c;t--)u=(u<<1)+n[t];o.push(u)}for(var l=this.jpoint(null,null,null),d=this.jpoint(null,null,null),_=i;_>0;_--){for(c=0;c<o.length;c++){(u=o[c])===_?d=d.mixedAdd(r.points[c]):u===-_&&(d=d.mixedAdd(r.points[c].neg()))}l=l.add(d)}return l.toP()},c.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=a(t,r),c=this.jpoint(null,null,null),u=o.length-1;u>=0;u--){for(t=0;u>=0&&0===o[u];u--)t++;if(u>=0&&t++,c=c.dblp(t),u<0)break;var l=o[u];s(0!==l),c="affine"===e.type?l>0?c.mixedAdd(i[l-1>>1]):c.mixedAdd(i[-l-1>>1].neg()):l>0?c.add(i[l-1>>1]):c.add(i[-l-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,c=this._wnafT2,u=this._wnafT3,l=0,d=0;d<n;d++){var _=(C=t[d])._getNAFPoints(e);s[d]=_.wnd,c[d]=_.points}for(d=n-1;d>=1;d-=2){var f=d-1,p=d;if(1===s[f]&&1===s[p]){var m=[t[f],null,null,t[p]];0===t[f].y.cmp(t[p].y)?(m[1]=t[f].add(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg())):0===t[f].y.cmp(t[p].y.redNeg())?(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].add(t[p].neg())):(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],h=o(r[f],r[p]);l=Math.max(h[0].length,l),u[f]=new Array(l),u[p]=new Array(l);for(var y=0;y<l;y++){var v=0|h[0][y],b=0|h[1][y];u[f][y]=g[3*(v+1)+(b+1)],u[p][y]=0,c[f]=m}}else u[f]=a(r[f],s[f]),u[p]=a(r[p],s[p]),l=Math.max(u[f].length,l),l=Math.max(u[p].length,l)}var x=this.jpoint(null,null,null),S=this._wnafT4;for(d=l;d>=0;d--){for(var D=0;d>=0;){var k=!0;for(y=0;y<n;y++)S[y]=0|u[y][d],0!==S[y]&&(k=!1);if(!k)break;D++,d--}if(d>=0&&D++,x=x.dblp(D),d<0)break;for(y=0;y<n;y++){var C,T=S[y];0!==T&&(T>0?C=c[y][T-1>>1]:T<0&&(C=c[y][-T-1>>1].neg()),x="affine"===C.type?x.mixedAdd(C):x.add(C))}}for(d=0;d<n;d++)c[d]=null;return i?x:x.toP()},c.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(e){return this.encode(e,!0)},u.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},u.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},u.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},u.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var a=0;a<e;a++)n=n.dbl();r.push(n)}return{step:e,points:r}},u.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},function(e,t,r){"use strict";var n=r(23),i=r(4),a=r(3),o=r(0),s=n.base,c=i.utils.assert;function u(e){s.call(this,"short",e),this.a=new a(e.a,16).toRed(this.red),this.b=new a(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,r,n){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(t,16),this.y=new a(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function d(e,t,r,n){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(t,16),this.y=new a(r,16),this.z=new a(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,s),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new a(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new a(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],c(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new a(e.a,16),b:new a(e.b,16)}}):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:a.mont(e),r=new a(2).toRed(t).redInvm(),n=r.redNeg(),i=new a(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,i,o,s,c,u,l,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),_=e,f=this.n.clone(),p=new a(1),m=new a(0),g=new a(0),h=new a(1),y=0;0!==_.cmpn(0);){var v=f.div(_);u=f.sub(v.mul(_)),l=g.sub(v.mul(p));var b=h.sub(v.mul(m));if(!n&&u.cmp(d)<0)t=c.neg(),r=p,n=u.neg(),i=l;else if(n&&2==++y)break;c=u,f=_,_=u,g=p,p=l,h=m,m=b}o=u.neg(),s=l;var x=n.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(x)>=0&&(o=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i},{a:o,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),o=i.mul(r.a),s=a.mul(n.a),c=i.mul(r.b),u=a.mul(n.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},u.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,a=0;a<e.length;a++){var o=this._endoSplit(t[a]),s=e[a],c=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),c=c.neg(!0)),n[2*a]=s,n[2*a+1]=c,i[2*a]=o.k1,i[2*a+1]=o.k2}for(var u=this._wnafMulAdd(1,n,i,2*a,r),l=0;l<2*a;l++)n[l]=null,i[l]=null;return u},o(l,s.BasePoint),u.prototype.point=function(e,t,r){return new l(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var a=t[2];return n.precomputed={beta:null,doubles:a.doubles&&{step:a.doubles.step,points:[n].concat(a.doubles.points.map(i))},naf:a.naf&&{wnd:a.naf.wnd,points:[n].concat(a.naf.points.map(i))}},n},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),a=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new a(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},l.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(d,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new d(this,e,t,r)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=a.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),d=n.redMul(u),_=c.redSqr().redIAdd(l).redISub(d).redISub(d),f=c.redMul(d.redISub(_)).redISub(a.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(_,f,p)},d.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,a=e.y.redMul(t).redMul(this.z),o=r.redSub(n),s=i.redSub(a);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),l=r.redMul(c),d=s.redSqr().redIAdd(u).redISub(l).redISub(l),_=s.redMul(l.redISub(d)).redISub(i.redMul(u)),f=this.z.redMul(o);return this.curve.jpoint(d,_,f)},d.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var n=this.curve.a,i=this.curve.tinv,a=this.x,o=this.y,s=this.z,c=s.redSqr().redSqr(),u=o.redAdd(o);for(r=0;r<e;r++){var l=a.redSqr(),d=u.redSqr(),_=d.redSqr(),f=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(c)),p=a.redMul(d),m=f.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),h=f.redMul(g);h=h.redIAdd(h).redISub(_);var y=u.redMul(s);r+1<e&&(c=c.redMul(_)),a=m,s=y,u=h}return this.curve.jpoint(a,u.redMul(i),s)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},d.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n),c=s.redSqr().redISub(o).redISub(o),u=a.redIAdd(a);u=(u=u.redIAdd(u)).redIAdd(u),e=c,t=s.redMul(o.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),d=this.y.redSqr(),_=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(l).redISub(_);f=f.redIAdd(f);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),g=_.redIAdd(_);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},d.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),a=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(a);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),c=s.redSqr().redISub(o).redISub(o);e=c;var u=a.redIAdd(a);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(o.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),d=this.y.redSqr(),_=this.x.redMul(d),f=this.x.redSub(l).redMul(this.x.redAdd(l));f=f.redAdd(f).redIAdd(f);var p=_.redIAdd(_),m=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(l);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=f.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},d.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),a=t.redSqr(),o=r.redSqr(),s=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(i)),c=t.redAdd(t),u=(c=c.redIAdd(c)).redMul(o),l=s.redSqr().redISub(u.redAdd(u)),d=u.redISub(l),_=o.redSqr();_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_);var f=s.redMul(d).redISub(_),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,f,p)},d.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),a=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(a)).redSqr(),c=n.redIAdd(n);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=i.redIAdd(o).redSqr().redISub(a).redISub(s).redISub(c),l=t.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var d=this.x.redMul(s).redISub(l);d=(d=d.redIAdd(d)).redIAdd(d);var _=this.y.redMul(u.redMul(c.redISub(u)).redISub(o.redMul(s)));_=(_=(_=_.redIAdd(_)).redIAdd(_)).redIAdd(_);var f=this.z.redAdd(o).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,_,f)},d.prototype.mul=function(e,t){return e=new a(e,t),this.curve._wnafMul(this,e)},d.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},d.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},d.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(23),i=r(3),a=r(0),o=n.base,s=r(4).utils;function c(e){o.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(c,o),e.exports=c,c.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},a(u,o.BasePoint),c.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},c.prototype.point=function(e,t){return new u(this,e,t)},c.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),o=i.redMul(n),s=t.z.redMul(a.redAdd(o).redSqr()),c=t.x.redMul(a.redISub(o).redSqr());return this.curve.point(s,c)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var a=i.length-1;a>=0;a--)0===i[a]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(23),i=r(4),a=r(3),o=r(0),s=n.base,c=i.utils.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new a(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),c(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function l(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new a(t,16),this.y=new a(r,16),this.z=n?new a(n,16):this.curve.one,this.t=i&&new a(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(l,s.BasePoint),u.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new l(this,e,t,r,n)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=n.redAdd(t),o=a.redSub(r),s=n.redSub(t),c=i.redMul(o),u=a.redMul(s),l=i.redMul(s),d=o.redMul(a);return this.curve.point(c,u,d,l)},l.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),a=this.y.redSqr();if(this.curve.twisted){var o=(u=this.curve._mulA(i)).redAdd(a);if(this.zOne)e=n.redSub(i).redSub(a).redMul(o.redSub(this.curve.two)),t=o.redMul(u.redSub(a)),r=o.redSqr().redSub(o).redSub(o);else{var s=this.z.redSqr(),c=o.redSub(s).redISub(s);e=n.redSub(i).redISub(a).redMul(c),t=o.redMul(u.redSub(a)),r=o.redMul(c)}}else{var u=i.redAdd(a);s=this.curve._mulC(this.z).redSqr(),c=u.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(u)).redMul(c),t=this.curve._mulC(u).redMul(i.redISub(a)),r=u.redMul(c)}return this.curve.point(e,t,r)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),o=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=a.redMul(o),l=s.redMul(c),d=a.redMul(c),_=o.redMul(s);return this.curve.point(u,l,_,d)},l.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),a=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(o),c=i.redSub(s),u=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(o),d=n.redMul(c).redMul(l);return this.curve.twisted?(t=n.redMul(u).redMul(o.redSub(this.curve._mulA(a))),r=c.redMul(u)):(t=n.redMul(u).redMul(o.redSub(a)),r=this.curve._mulC(c).redMul(u)),this.curve.point(d,t,r)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},l.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},function(e,t,r){"use strict";var n,i=t,a=r(37),o=r(4),s=o.utils.assert;function c(e){"short"===e.type?this.curve=new o.curve.short(e):"edwards"===e.type?this.curve=new o.curve.edwards(e):this.curve=new o.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(140)}catch(e){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){"use strict";t.sha1=r(135),t.sha224=r(136),t.sha256=r(64),t.sha384=r(137),t.sha512=r(65)},function(e,t,r){"use strict";var n=r(8),i=r(16),a=r(63),o=n.rotl32,s=n.sum32,c=n.sum32_5,u=a.ft_1,l=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function _(){if(!(this instanceof _))return new _;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(_,l),e.exports=_,_.blockSize=512,_.outSize=160,_.hmacStrength=80,_.padLength=64,_.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=o(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],a=this.h[1],l=this.h[2],_=this.h[3],f=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=c(o(i,5),u(p,a,l,_),f,r[n],d[p]);f=_,_=l,l=o(a,30),a=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],a),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],_),this.h[4]=s(this.h[4],f)},_.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(8),i=r(64);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(a,i),e.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";var n=r(8),i=r(65);function a(){if(!(this instanceof a))return new a;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(a,i),e.exports=a,a.blockSize=1024,a.outSize=384,a.hmacStrength=192,a.padLength=128,a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(e,t,r){"use strict";var n=r(8),i=r(16),a=n.rotl32,o=n.sum32,s=n.sum32_3,c=n.sum32_4,u=i.BlockHash;function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function _(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(l,u),t.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],l=this.h[4],y=r,v=n,b=i,x=u,S=l,D=0;D<80;D++){var k=o(a(c(r,d(D,n,i,u),e[p[D]+t],_(D)),g[D]),l);r=l,l=u,u=a(i,10),i=n,n=k,k=o(a(c(y,d(79-D,v,b,x),e[m[D]+t],f(D)),h[D]),S),y=S,S=x,x=a(b,10),b=v,v=k}k=s(this.h[1],i,x),this.h[1]=s(this.h[2],u,S),this.h[2]=s(this.h[3],l,y),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,b),this.h[0]=k},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],h=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,r){"use strict";var n=r(8),i=r(5);function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=a,a.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},a.prototype.update=function(e,t){return this.inner.update(e,t),this},a.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,r){"use strict";var n=r(3),i=r(142),a=r(4),o=a.utils.assert,s=r(143),c=r(144);function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(o(a.curves.hasOwnProperty(e),"Unknown curve "+e),e=a.curves[e]),e instanceof a.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=u,u.prototype.keyPair=function(e){return new s(this,e)},u.prototype.keyFromPrivate=function(e,t){return s.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return s.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},u.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),u=e.toArray("be",o),l=new i({hash:this.hash,entropy:s,nonce:u,pers:a.pers,persEnc:a.persEnc||"utf8"}),d=this.n.sub(new n(1)),_=0;;_++){var f=a.k?a.k(_):new n(l.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(d)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var h=f.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(h=h.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return a.canonical&&h.cmp(this.nh)>0&&(h=this.n.sub(h),y^=1),new c({r:g,s:h,recoveryParam:y})}}}}}},u.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var a=(t=new c(t,"hex")).r,o=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,u=o.invm(this.n),l=u.mul(e).umod(this.n),d=u.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,r.getPublic(),d)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(l,r.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},u.prototype.recoverPubKey=function(e,t,r,i){o((3&r)===r,"The recovery param is more than two bits"),t=new c(t,i);var a=this.n,s=new n(e),u=t.r,l=t.s,d=1&r,_=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&_)throw new Error("Unable to find sencond key candinate");u=_?this.curve.pointFromX(u.add(this.curve.n),d):this.curve.pointFromX(u,d);var f=t.r.invm(a),p=a.sub(s).mul(f).umod(a),m=l.mul(f).umod(a);return this.g.mulAdd(p,u,m)},u.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new c(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(37),i=r(62),a=r(5);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=o,o.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),a(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},o.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var a=[];a.length<e;)this.V=this._hmac().update(this.V).digest(),a=a.concat(this.V);var o=a.slice(0,e);return this._update(r),this._reseed++,i.encode(o,t)}},function(e,t,r){"use strict";var n=r(3),i=r(4).utils.assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,r){"use strict";var n=r(3),i=r(4).utils,a=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,a=0,o=t.place;a<n;a++,o++)i<<=8,i|=e[o];return t.place=o,i}function u(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function l(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(c(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=c(e,r),o=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var u=c(e,r);if(e.length!==u+r.place)return!1;var l=e.slice(r.place,u+r.place);return 0===o[0]&&128&o[1]&&(o=o.slice(1)),0===l[0]&&128&l[1]&&(l=l.slice(1)),this.r=new n(o),this.s=new n(l),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var a=n.concat(r),o=[48];return l(o,a.length),o=o.concat(a),i.encode(o,e)}},function(e,t,r){"use strict";var n=r(37),i=r(4),a=i.utils,o=a.assert,s=a.parseBytes,c=r(146),u=r(147);function l(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=l,l.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),a=this.encodePoint(i),o=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),c=n.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:a})},l.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(a)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return a.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},l.prototype.decodePoint=function(e){var t=(e=a.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=a.intFromLE(r);return this.curve.pointFromY(i,n)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return a.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";var n=r(4).utils,i=n.assert,a=n.parseBytes,o=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=a(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=a(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),o(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),o(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),o(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),o(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),o(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},function(e,t,r){"use strict";var n=r(3),i=r(4).utils,a=i.assert,o=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),a(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(c,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),o(c,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),o(c,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),o(c,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},function(e,t,r){"use strict";var n=r(17);t.certificate=r(159);var i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});t.RSAPrivateKey=i;var a=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t.RSAPublicKey=a;var o=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});t.PublicKey=o;var s=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),c=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});t.PrivateKey=c;var u=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});t.EncryptedPrivateKey=u;var l=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});t.DSAPrivateKey=l,t.DSAparam=n.define("DSAparam",function(){this.int()});var d=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(_),this.key("publicKey").optional().explicit(1).bitstr())});t.ECPrivateKey=d;var _=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(e,t,r){var n=r(17),i=r(0);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){var t;try{t=r(150).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},a.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},a.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(module,exports,__webpack_require__){var indexOf=__webpack_require__(151),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var a=Object_keys(r),o=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(a,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}},function(e,t){var r=[].indexOf;e.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},function(e,t,r){var n=r(0);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof a},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof a;if(t=n?e:new a(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){var n=r(18).Reporter,i=r(18).EncoderBuffer,a=r(18).DecoderBuffer,o=r(5),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function u(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=u;var l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};l.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},u.prototype._wrap=function(){var e=this._baseState;c.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},u.prototype._init=function(e){var t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),o.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(o(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),s.forEach(function(e){u.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(r),this}}),u.prototype.use=function(e){o(e);var t=this._baseState;return o(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return o(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},u.prototype.contains=function(e){var t=this._baseState;return o(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,o=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){var c=null;if(null!==r.explicit?c=r.explicit:null!==r.implicit?c=r.implicit:null!==r.tag&&(c=r.tag),null!==c||r.any){if(o=this._peekTag(e,c,r.any),e.isError(o))return o}else{var u=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(u)}}if(r.obj&&o&&(n=e.enterObject()),o){if(null!==r.explicit){var l=this._decodeTag(e,r.explicit);if(e.isError(l))return l;e=l}var d=e.offset;if(null===r.use&&null===r.choice){if(r.any)u=e.save();var _=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(_))return _;r.any?i=e.raw(u):e=_}if(t&&t.track&&null!==r.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),i=r.any?i:null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(r){r._decode(e,t)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var f=new a(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(f,t)}}return r.obj&&o&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},u.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),o(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},u.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some(function(a){var o=e.save(),s=r.choice[a];try{var c=s._decode(e,t);if(e.isError(c))return!1;n={type:a,value:c},i=!0}catch(t){return e.restore(o),!1}return!0},this),i?n:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},u.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},u.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);var a=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var o=null,s=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,r)._encode(e,t),s=!0;else if(i.children)o=i.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},c))}else null!==i.use?a=this._getUse(i.use,r)._encode(e,t):(o=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var u=null!==i.implicit?i.implicit:i.tag,l=null===i.implicit?"universal":"context";null===u?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(a=this._encodeComposite(u,s,l,o))}return null!==i.explicit&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a},u.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,r){var n=r(67);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},function(e,t,r){var n=t;n.der=r(68),n.pem=r(156)},function(e,t,r){var n=r(0),i=r(2).Buffer,a=r(68);function o(e){a.call(this,e),this.enc="pem"}n(o,a),e.exports=o,o.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,u=0;u<r.length;u++){var l=r[u].match(o);if(null!==l&&l[2]===n){if(-1!==s){if("END"!==l[1])break;c=u;break}if("BEGIN"!==l[1])break;s=u}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+n);var d=r.slice(s+1,c).join("");d.replace(/[^a-z0-9\+\/=]+/gi,"");var _=new i(d,"base64");return a.prototype.decode.call(this,_,t)}},function(e,t,r){var n=t;n.der=r(69),n.pem=r(158)},function(e,t,r){var n=r(0),i=r(69);function a(e){i.call(this,e),this.enc="pem"}n(a,i),e.exports=a,a.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],a=0;a<r.length;a+=64)n.push(r.slice(a,a+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},function(e,t,r){"use strict";var n=r(17),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),a=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),c=n.define("RelativeDistinguishedName",function(){this.setof(a)}),u=n.define("RDNSequence",function(){this.seqof(c)}),l=n.define("Name",function(){this.choice({rdnSequence:this.use(u)})}),d=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),_=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(l),this.key("validity").use(d),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(_).optional())}),p=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});e.exports=p},function(e){e.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},function(e,t,r){(function(t){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----/m,a=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,o=r(22),s=r(34);e.exports=function(e,r){var c,u=e.toString(),l=u.match(n);if(l){var d="aes"+l[1],_=new t(l[2],"hex"),f=new t(l[3].replace(/[\r\n]/g,""),"base64"),p=o(r,_.slice(0,8),parseInt(l[1],10)).key,m=[],g=s.createDecipheriv(d,p,_);m.push(g.update(f)),m.push(g.final()),c=t.concat(m)}else{var h=u.match(a);c=new t(h[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(i)[1],data:c}}}).call(this,r(2).Buffer)},function(e,t,r){(function(t){var n=r(3),i=r(4).ec,a=r(24),o=r(70);function s(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,r,c,u,l){var d=a(c);if("ec"===d.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=o[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var a=new i(n),s=r.data.subjectPrivateKey.data;return a.verify(t,e,s)}(e,r,d)}if("dsa"===d.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var i=r.data.p,o=r.data.q,c=r.data.g,u=r.data.pub_key,l=a.signature.decode(e,"der"),d=l.s,_=l.r;s(d,o),s(_,o);var f=n.mont(i),p=d.invm(o);return 0===c.toRed(f).redPow(new n(t).mul(p).mod(o)).fromRed().mul(u.toRed(f).redPow(_.mul(p).mod(o)).fromRed()).mod(i).mod(o).cmp(_)}(e,r,d)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");r=t.concat([l,r]);for(var _=d.modulus.byteLength(),f=[1],p=0;r.length+f.length+2<_;)f.push(255),p++;f.push(0);for(var m=-1;++m<r.length;)f.push(r[m]);f=new t(f);var g=n.mont(d.modulus);e=(e=new n(e).toRed(g)).redPow(new n(d.publicExponent)),e=new t(e.fromRed().toArray());var h=p<8?1:0;for(_=Math.min(e.length,f.length),e.length!==f.length&&(h=1),m=-1;++m<_;)h|=e[m]^f[m];return 0===h}}).call(this,r(2).Buffer)},function(e,t,r){(function(t){var n=r(4),i=r(3);e.exports=function(e){return new o(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(e,r,n){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(n&&i.length<n){var a=new t(n-i.length);a.fill(0),i=t.concat([a,i])}return r?i.toString(r):i}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,o.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},o.prototype.computeSecret=function(e,r,n){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},o.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),s(r,e)},o.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},o.prototype.setPublicKey=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.keys._importPublic(e),this},o.prototype.setPrivateKey=function(e,r){r=r||"utf8",t.isBuffer(e)||(e=new t(e,r));var n=new i(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(2).Buffer)},function(e,t,r){t.publicEncrypt=r(165),t.privateDecrypt=r(166),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},function(e,t,r){var n=r(24),i=r(11),a=r(13),o=r(71),s=r(72),c=r(3),u=r(73),l=r(36),d=r(1).Buffer;e.exports=function(e,t,r){var _;_=e.padding?e.padding:r?1:4;var f,p=n(e);if(4===_)f=function(e,t){var r=e.modulus.byteLength(),n=t.length,u=a("sha1").update(d.alloc(0)).digest(),l=u.length,_=2*l;if(n>r-_-2)throw new Error("message too long");var f=d.alloc(r-n-_-2),p=r-l-1,m=i(l),g=s(d.concat([u,f,d.alloc(1,1),t],p),o(m,p)),h=s(m,o(g,l));return new c(d.concat([d.alloc(1),h,g],r))}(p,t);else if(1===_)f=function(e,t,r){var n,a=t.length,o=e.modulus.byteLength();if(a>o-11)throw new Error("message too long");n=r?d.alloc(o-a-3,255):function(e){var t,r=d.allocUnsafe(e),n=0,a=i(2*e),o=0;for(;n<e;)o===a.length&&(a=i(2*e),o=0),(t=a[o++])&&(r[n++]=t);return r}(o-a-3);return new c(d.concat([d.from([0,r?1:2]),n,d.alloc(1),t],o))}(p,t,r);else{if(3!==_)throw new Error("unknown padding");if((f=new c(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?l(f,p):u(f,p)}},function(e,t,r){var n=r(24),i=r(71),a=r(72),o=r(3),s=r(36),c=r(13),u=r(73),l=r(1).Buffer;e.exports=function(e,t,r){var d;d=e.padding?e.padding:r?1:4;var _,f=n(e),p=f.modulus.byteLength();if(t.length>p||new o(t).cmp(f.modulus)>=0)throw new Error("decryption error");_=r?u(new o(t),f):s(t,f);var m=l.alloc(p-_.length);if(_=l.concat([m,_],p),4===d)return function(e,t){var r=e.modulus.byteLength(),n=c("sha1").update(l.alloc(0)).digest(),o=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,o+1),u=t.slice(o+1),d=a(s,i(u,o)),_=a(u,i(d,r-o-1));if(function(e,t){e=l.from(e),t=l.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i<n;)r+=e[i]^t[i];return r}(n,_.slice(0,o)))throw new Error("decryption error");var f=o;for(;0===_[f];)f++;if(1!==_[f++])throw new Error("decryption error");return _.slice(f)}(f,_);if(1===d)return function(e,t,r){var n=t.slice(0,2),i=2,a=0;for(;0!==t[i++];)if(i>=t.length){a++;break}var o=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&a++;o.length<8&&a++;if(a)throw new Error("decryption error");return t.slice(i)}(0,_,r);if(3===d)return _;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var a=r(1),o=r(11),s=a.Buffer,c=a.kMaxLength,u=e.crypto||e.msCrypto,l=Math.pow(2,32)-1;function d(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>l||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function _(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>l||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>c)throw new RangeError("buffer too small")}function f(e,t,r,i){if(n.browser){var a=e.buffer,s=new Uint8Array(a,t,r);return u.getRandomValues(s),i?void n.nextTick(function(){i(null,e)}):e}if(!i)return o(r).copy(e,t),e;o(r,function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)})}u&&u.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return d(r,t.length),_(n,r,t.length),f(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');d(r,t.length),void 0===n&&(n=t.length-r);return _(n,r,t.length),f(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(6),r(7))},function(e,t,r){(function(e){var n,i=r(169).SourceMapConsumer,a=r(176);try{(n=r(!function(){var e=new Error("Cannot find module 'fs'");throw e.code="MODULE_NOT_FOUND",e}())).existsSync&&n.readFileSync||(n=null)}catch(e){}var o=r(177),s=!1,c=!1,u=!1,l="auto",d={},_={},f=/^data:application\/json[^,]+base64,/,p=[],m=[];function g(){return"browser"===l||"node"!==l&&("undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type))}function h(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n)return n}return null}}var y=h(p);function v(e,t){if(!e)return t;var r=a.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"",o=r.slice(i.length);return i&&/^\/\w\:/.test(o)?(i+="/")+a.resolve(r.slice(i.length),t).replace(/\\/g,"/"):i+a.resolve(r.slice(i.length),t)}p.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(e,t){return t?"":"/"})),e in d)return d[e];var t="";try{if(n)n.existsSync(e)&&(t=n.readFileSync(e,"utf8"));else{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),4===r.readyState&&200===r.status&&(t=r.responseText)}}catch(e){}return d[e]=t});var b=h(m);function x(e){var t=_[e.source];if(!t){var r=b(e.source);r?(t=_[e.source]={url:r.url,map:new i(r.map)}).map.sourcesContent&&t.map.sources.forEach(function(e,r){var n=t.map.sourcesContent[r];if(n){var i=v(t.url,e);d[i]=n}}):t=_[e.source]={url:null,map:null}}if(t&&t.map){var n=t.map.originalPositionFor(e);if(null!==n.source)return n.source=v(t.url,n.source),n}return e}function S(){var e,t="";if(this.isNative())t="native";else{!(e=this.getScriptNameOrSourceURL())&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),t+=e||"<anonymous>";var r=this.getLineNumber();if(null!=r){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var u=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,u&&a.indexOf("."+u)!=a.length-u.length-1&&(i+=" [as "+u+"]")):i+=c+"."+(u||"<anonymous>")}else s?i+="new "+(a||"<anonymous>"):a?i+=a:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function D(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]}),t.toString=S,t}function k(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var r=e.getLineNumber(),n=e.getColumnNumber()-1;1===r&&n>62&&!g()&&!e.isEval()&&(n-=62);var i=x({source:t,line:r,column:n}),a=(e=D(e)).getFunctionName;return e.getFunctionName=function(){return i.name||a()},e.getFileName=function(){return i.source},e.getLineNumber=function(){return i.line},e.getColumnNumber=function(){return i.column+1},e.getScriptNameOrSourceURL=function(){return i.source},e}var o=e.isEval()&&e.getEvalOrigin();return o?(o=function e(t){var r=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(t);if(r){var n=x({source:r[2],line:+r[3],column:r[4]-1});return"eval at "+r[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return(r=/^eval at ([^(]+) \((.+)\)$/.exec(t))?"eval at "+r[1]+" ("+e(r[2])+")":t}(o),(e=D(e)).getEvalOrigin=function(){return o},e):e}function C(e,t){return u&&(d={},_={}),e+t.map(function(e){return"\n    at "+k(e)}).join("")}function T(e){var t=/\n    at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],i=+t[2],a=+t[3],o=d[r];if(!o&&n&&n.existsSync(r))try{o=n.readFileSync(r,"utf8")}catch(e){o=""}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[i-1];if(s)return r+":"+i+"\n"+s+"\n"+new Array(a).join(" ")+"^"}}return null}function E(){var t=e.emit;e.emit=function(r){if("uncaughtException"===r){var n=arguments[1]&&arguments[1].stack,i=this.listeners(r).length>0;if(n&&!i)return a=arguments[1],o=T(a),e.stderr._handle&&e.stderr._handle.setBlocking&&e.stderr._handle.setBlocking(!0),o&&(console.error(),console.error(o)),console.error(a.stack),void e.exit(1)}var a,o;return t.apply(this,arguments)}}m.push(function(e){var t,r=function(e){var t;if(g())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=4===r.readyState?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch(e){}t=y(e);for(var i,a,o=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/gm;a=o.exec(t);)i=a;return i?i[1]:null}(e);if(!r)return null;if(f.test(r)){var n=r.slice(r.indexOf(",")+1);t=o(n,"base64").toString(),r=e}else r=v(e,r),t=y(r);return t?{url:r,map:t}:null});var N=p.slice(0),A=m.slice(0);t.wrapCallSite=k,t.getErrorSource=T,t.mapSourcePosition=x,t.retrieveSourceMap=b,t.install=function(t){if((t=t||{}).environment&&(l=t.environment,-1===["node","browser","auto"].indexOf(l)))throw new Error("environment "+l+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(p.length=0),p.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(m.length=0),m.unshift(t.retrieveSourceMap)),t.hookRequire&&!g()){var n;try{n=r(!function(){var e=new Error("Cannot find module 'module'");throw e.code="MODULE_NOT_FOUND",e}())}catch(e){}var i=n.prototype._compile;i.__sourceMapSupport||(n.prototype._compile=function(e,t){return d[t]=e,_[t]=void 0,i.call(this,e,t)},n.prototype._compile.__sourceMapSupport=!0)}(u||(u="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),s||(s=!0,Error.prepareStackTrace=C),c)||(!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions)&&"object"==typeof e&&null!==e&&"function"==typeof e.on&&(c=!0,E())},t.resetRetrieveHandlers=function(){p.length=0,m.length=0,p=N.slice(0),m=A.slice(0)}}).call(this,r(7))},function(e,t,r){t.SourceMapGenerator=r(74).SourceMapGenerator,t.SourceMapConsumer=r(172).SourceMapConsumer,t.SourceNode=r(175).SourceNode},function(e,t){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,r){var n=r(19);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,r,i,a,o,s;t=this._last,r=e,i=t.generatedLine,a=r.generatedLine,o=t.generatedColumn,s=r.generatedColumn,a>i||a==i&&s>=o||n.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},function(e,t,r){var n=r(19),i=r(173),a=r(76).ArraySet,o=r(75),s=r(174).quickSort;function c(e,t){var r=e;return"string"==typeof e&&(r=n.parseSourceMapInput(e)),null!=r.sections?new d(r,t):new u(r,t)}function u(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sources"),s=n.getArg(r,"names",[]),c=n.getArg(r,"sourceRoot",null),u=n.getArg(r,"sourcesContent",null),l=n.getArg(r,"mappings"),d=n.getArg(r,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);c&&(c=n.normalize(c)),o=o.map(String).map(n.normalize).map(function(e){return c&&n.isAbsolute(c)&&n.isAbsolute(e)?n.relative(c,e):e}),this._names=a.fromArray(s.map(String),!0),this._sources=a.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(e){return n.computeSourceURL(c,e,t)}),this.sourceRoot=c,this.sourcesContent=u,this._mappings=l,this._sourceMapURL=t,this.file=d}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new a,this._names=new a;var s={line:-1,column:0};this._sections=o.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=n.getArg(e,"offset"),i=n.getArg(r,"line"),a=n.getArg(r,"column");if(i<s.line||i===s.line&&a<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new c(n.getArg(e,"map"),t)}})}c.fromSourceMap=function(e,t){return u.fromSourceMap(e,t)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},c.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,t,r){var i,a=t||null;switch(r||c.GENERATED_ORDER){case c.GENERATED_ORDER:i=this._generatedMappings;break;case c.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;i.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=n.computeSourceURL(o,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,a)},c.prototype.allGeneratedPositionsFor=function(e){var t=n.getArg(e,"line"),r={source:n.getArg(e,"source"),originalLine:t,originalColumn:n.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var a=[],o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var u=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==u;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return a},t.SourceMapConsumer=c,u.prototype=Object.create(c.prototype),u.prototype.consumer=c,u.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=n.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},u.fromSourceMap=function(e,t){var r=Object.create(u.prototype),i=r._names=a.fromArray(e._names.toArray(),!0),o=r._sources=a.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map(function(e){return n.computeSourceURL(r.sourceRoot,e,t)});for(var c=e._mappings.toArray().slice(),d=r.__generatedMappings=[],_=r.__originalMappings=[],f=0,p=c.length;f<p;f++){var m=c[f],g=new l;g.generatedLine=m.generatedLine,g.generatedColumn=m.generatedColumn,m.source&&(g.source=o.indexOf(m.source),g.originalLine=m.originalLine,g.originalColumn=m.originalColumn,m.name&&(g.name=i.indexOf(m.name)),_.push(g)),d.push(g)}return s(r.__originalMappings,n.compareByOriginalPositions),r},u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),u.prototype._parseMappings=function(e,t){for(var r,i,a,c,u,d=1,_=0,f=0,p=0,m=0,g=0,h=e.length,y=0,v={},b={},x=[],S=[];y<h;)if(";"===e.charAt(y))d++,y++,_=0;else if(","===e.charAt(y))y++;else{for((r=new l).generatedLine=d,c=y;c<h&&!this._charIsMappingSeparator(e,c);c++);if(a=v[i=e.slice(y,c)])y+=i.length;else{for(a=[];y<c;)o.decode(e,y,b),u=b.value,y=b.rest,a.push(u);if(2===a.length)throw new Error("Found a source, but no line and column");if(3===a.length)throw new Error("Found a source and line, but no column");v[i]=a}r.generatedColumn=_+a[0],_=r.generatedColumn,a.length>1&&(r.source=m+a[1],m+=a[1],r.originalLine=f+a[2],f=r.originalLine,r.originalLine+=1,r.originalColumn=p+a[3],p=r.originalColumn,a.length>4&&(r.name=g+a[4],g+=a[4])),S.push(r),"number"==typeof r.originalLine&&x.push(r)}s(S,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,s(x,n.compareByOriginalPositions),this.__originalMappings=x},u.prototype._findMapping=function(e,t,r,n,a,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return i.search(e,t,a,o)},u.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},u.prototype.originalPositionFor=function(e){var t={generatedLine:n.getArg(e,"line"),generatedColumn:n.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",n.compareByGeneratedPositionsDeflated,n.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var a=n.getArg(i,"source",null);null!==a&&(a=this._sources.at(a),a=n.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var o=n.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:a,line:n.getArg(i,"originalLine",null),column:n.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},u.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i,a=e;if(null!=this.sourceRoot&&(a=n.relative(this.sourceRoot,a)),null!=this.sourceRoot&&(i=n.urlParse(this.sourceRoot))){var o=a.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!i.path||"/"==i.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(t)return null;throw new Error('"'+a+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(e){var t=n.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=u,d.prototype=Object.create(c.prototype),d.prototype.constructor=c,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:n.getArg(e,"line"),generatedColumn:n.getArg(e,"column")},r=i.search(t,this._sections,function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;return r||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[r];return a?a.consumer.originalPositionFor({line:t.generatedLine-(a.generatedOffset.generatedLine-1),column:t.generatedColumn-(a.generatedOffset.generatedLine===t.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},d.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer._findSourceIndex(n.getArg(e,"source"))){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],a=i.consumer._generatedMappings,o=0;o<a.length;o++){var c=a[o],u=i.consumer._sources.at(c.source);u=n.computeSourceURL(i.consumer.sourceRoot,u,this._sourceMapURL),this._sources.add(u),u=this._sources.indexOf(u);var l=null;c.name&&(l=i.consumer._names.at(c.name),this._names.add(l),l=this._names.indexOf(l));var d={source:u,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:l};this.__generatedMappings.push(d),"number"==typeof d.originalLine&&this.__originalMappings.push(d)}s(this.__generatedMappings,n.compareByGeneratedPositionsDeflated),s(this.__originalMappings,n.compareByOriginalPositions)},t.IndexedSourceMapConsumer=d},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,n,i){if(0===r.length)return-1;var a=function e(r,n,i,a,o,s){var c=Math.floor((n-r)/2)+r,u=o(i,a[c],!0);return 0===u?c:u>0?n-c>1?e(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n<a.length?n:-1:c:c-r>1?e(r,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:r<0?-1:r}(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===n(r[a],r[a-1],!0);)--a;return a}},function(e,t){function r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function n(e,t,i,a){if(i<a){var o=i-1;r(e,(l=i,d=a,Math.round(l+Math.random()*(d-l))),a);for(var s=e[a],c=i;c<a;c++)t(e[c],s)<=0&&r(e,o+=1,c);r(e,o+1,c);var u=o+1;n(e,t,i,u-1),n(e,t,u+1,a)}var l,d}t.quickSort=function(e,t){n(e,t,0,e.length-1)}},function(e,t,r){var n=r(74).SourceMapGenerator,i=r(19),a=/(\r?\n)/,o="$$$isSourceNode$$$";function s(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[o]=!0,null!=n&&this.add(n)}s.fromStringWithSourceMap=function(e,t,r){var n=new s,o=e.split(a),c=0,u=function(){return e()+(e()||"");function e(){return c<o.length?o[c++]:void 0}},l=1,d=0,_=null;return t.eachMapping(function(e){if(null!==_){if(!(l<e.generatedLine)){var t=(r=o[c]||"").substr(0,e.generatedColumn-d);return o[c]=r.substr(e.generatedColumn-d),d=e.generatedColumn,f(_,t),void(_=e)}f(_,u()),l++,d=0}for(;l<e.generatedLine;)n.add(u()),l++;if(d<e.generatedColumn){var r=o[c]||"";n.add(r.substr(0,e.generatedColumn)),o[c]=r.substr(e.generatedColumn),d=e.generatedColumn}_=e},this),c<o.length&&(_&&f(_,u()),n.add(o.splice(c).join(""))),t.sources.forEach(function(e){var a=t.sourceContentFor(e);null!=a&&(null!=r&&(e=i.join(r,e)),n.setSourceContent(e,a))}),n;function f(e,t){if(null===e||void 0===e.source)n.add(t);else{var a=r?i.join(r,e.source):e.source;n.add(new s(e.originalLine,e.originalColumn,a,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[o]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[o]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][o]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(i.fromSetString(n[t]),this.sourceContents[n[t]])},s.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new n(e),i=!1,a=null,o=null,s=null,c=null;return this.walk(function(e,n){t.code+=e,null!==n.source&&null!==n.line&&null!==n.column?(a===n.source&&o===n.line&&s===n.column&&c===n.name||r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name}),a=n.source,o=n.line,s=n.column,c=n.name,i=!0):i&&(r.addMapping({generated:{line:t.line,column:t.column}}),a=null,i=!1);for(var u=0,l=e.length;u<l;u++)10===e.charCodeAt(u)?(t.line++,t.column=0,u+1===l?(a=null,i=!1):i&&r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name})):t.column++}),this.walkSourceContents(function(e,t){r.setSourceContent(e,t)}),{code:t.code,map:r}},t.SourceNode=s},function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return n.exec(e).slice(1)};function a(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var o=i>=0?arguments[i]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,n="/"===o.charAt(0))}return(n?"/":"")+(t=r(a(t.split("/"),function(e){return!!e}),!n).join("/"))||"."},t.normalize=function(e){var n=t.isAbsolute(e),i="/"===o(e,-1);return(e=r(a(e.split("/"),function(e){return!!e}),!n).join("/"))||n||(e="."),e&&i&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),a=n(r.split("/")),o=Math.min(i.length,a.length),s=o,c=0;c<o;c++)if(i[c]!==a[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return(u=u.concat(a.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=i(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},t.basename=function(e,t){var r=i(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){return i(e)[3]};var o="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r(7))},function(e,t,r){(function(t){var r=Object.prototype.toString,n="function"==typeof t.alloc&&"function"==typeof t.allocUnsafe&&"function"==typeof t.from;e.exports=function(e,i,a){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return o=e,"ArrayBuffer"===r.call(o).slice(8,-1)?function(e,r,i){r>>>=0;var a=e.byteLength-r;if(a<0)throw new RangeError("'offset' is out of bounds");if(void 0===i)i=a;else if((i>>>=0)>a)throw new RangeError("'length' is out of bounds");return n?t.from(e.slice(r,r+i)):new t(new Uint8Array(e.slice(r,r+i)))}(e,i,a):"string"==typeof e?function(e,r){if("string"==typeof r&&""!==r||(r="utf8"),!t.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');return n?t.from(e,r):new t(e,r)}(e,i):n?t.from(e):new t(e);var o}}).call(this,r(2).Buffer)},function(e,t){function r(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=178}]);
