/*!-----------------------------------------------------------------------------
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * monaco-typescript version: 3.3.1(dbbf69725062a240258a04596d6bd8544365ac91)
 * Released under the MIT license
 * https://github.com/Microsoft/monaco-typescript/blob/master/LICENSE.md
 *-----------------------------------------------------------------------------*/
var __assign=this&&this.__assign||function(){return(__assign=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},__generator=this&&this.__generator||function(t,r){var a,i,o,e,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return e={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function n(n){return function(e){return function(n){if(a)throw new TypeError("Generator is already executing.");for(;s;)try{if(a=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(o=0<(o=s.trys).length&&o[o.length-1])&&(6===n[0]||2===n[0])){s=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){s.label=n[1];break}if(6===n[0]&&s.label<o[1]){s.label=o[1],o=n;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(n);break}o[2]&&s.ops.pop(),s.trys.pop();continue}n=r.call(t,s)}catch(e){n=[6,e],i=0}finally{a=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,e])}}},__makeTemplateObject=this&&this.__makeTemplateObject||function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},__extends=this&&this.__extends||function(){var r=function(e,n){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};return function(e,n){function t(){this.constructor=e}r(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}}();!function(e){e.versionMajorMinor="3.1",e.version=e.versionMajorMinor+".6"}(ts||(ts={})),function(e){var n;(n=e.Comparison||(e.Comparison={}))[n.LessThan=-1]="LessThan",n[n.EqualTo=0]="EqualTo",n[n.GreaterThan=1]="GreaterThan"}(ts||(ts={})),function(o){function n(){var e=Object.create(null);return e.__=void 0,delete e.__,e}function c(){return new o.MapCtr}var t;function a(e,n,t){if(void 0===t&&(t=k),e)for(var r=0,a=e;r<a.length;r++){if(t(a[r],n))return!0}return!1}function s(e,n){var t;if(e){t=[];for(var r=0;r<e.length;r++)t.push(n(e[r],r))}return t}function r(e,n){if(e){if(!n)return 0<e.length;for(var t=0,r=e;t<r.length;t++){if(n(r[t]))return!0}}return!1}function i(e,n){return n<0?e.length+n:n}function l(e,n,t,r){if(void 0===n||0===n.length)return e;if(void 0===e)return n.slice(t,r);t=void 0===t?0:i(n,t),r=void 0===r?n.length:i(n,r);for(var a=t;a<r&&a<n.length;a++)void 0!==n[a]&&e.push(n[a]);return e}function u(e,n,t){return!a(e,n,t)&&(e.push(n),!0)}function d(t,e,r){e.sort(function(e,n){return r(t[e],t[n])||I(e,n)})}function p(e,n){return e.slice().sort(n)}function m(e){var n=0;return{next:function(){return n===e.length?{value:void 0,done:!0}:{value:e[++n-1],done:!1}}}}function f(e,n,t,r,a){if(!e||0===e.length)return-1;for(var i=a||0,o=e.length-1,s=t(n);i<=o;){var c=i+(o-i>>1);switch(r(t(e[c]),s)){case-1:i=c+1;break;case 0:return c;case 1:o=c-1}}return~i}function _(e,n,t,r,a){if(e&&0<e.length){var i=e.length;if(0<i){var o=void 0===r||r<0?0:r,s=void 0===a||i-1<o+a?i-1:o+a,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=t;o<=s;)c=n(c,e[o],o),o++;return c}}return t}o.emptyArray=[],o.createMap=c,o.createMapFromEntries=function(e){for(var n=c(),t=0,r=e;t<r.length;t++){var a=r[t],i=a[0],o=a[1];n.set(i,o)}return n},o.createMapFromTemplate=function(e){var n=new o.MapCtr;for(var t in e)v.call(e,t)&&n.set(t,e[t]);return n},o.MapCtr="undefined"!=typeof Map&&"entries"in Map.prototype?Map:(t=function(){function e(e,n){this.index=0,this.data=e,this.selector=n,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=n(),this.size=0}return e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,n){return this.has(e)||this.size++,this.data[e]=n,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=n(),this.size=0},e.prototype.keys=function(){return new t(this.data,function(e,n){return n})},e.prototype.values=function(){return new t(this.data,function(e,n){return e[n]})},e.prototype.entries=function(){return new t(this.data,function(e,n){return[n,e[n]]})},e.prototype.forEach=function(e){for(var n in this.data)e(this.data[n],n)},e}()),o.length=function(e){return e?e.length:0},o.forEach=function(e,n){if(e)for(var t=0;t<e.length;t++){var r=n(e[t],t);if(r)return r}},o.firstDefined=function(e,n){if(void 0!==e)for(var t=0;t<e.length;t++){var r=n(e[t],t);if(void 0!==r)return r}},o.firstDefinedIterator=function(e,n){for(;;){var t=e.next(),r=t.value;if(t.done)return;var a=n(r);if(void 0!==a)return a}},o.zipWith=function(e,n,t){var r=[];g.assertEqual(e.length,n.length);for(var a=0;a<e.length;a++)r.push(t(e[a],n[a],a));return r},o.zipToIterator=function(e,n){g.assertEqual(e.length,n.length);var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:{value:[e[++t-1],n[t-1]],done:!1}}}},o.zipToMap=function(e,n){g.assert(e.length===n.length);for(var t=c(),r=0;r<e.length;++r)t.set(e[r],n[r]);return t},o.every=function(e,n){if(e)for(var t=0;t<e.length;t++)if(!n(e[t],t))return!1;return!0},o.find=function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(n(r,t))return r}},o.findLast=function(e,n){for(var t=e.length-1;0<=t;t--){var r=e[t];if(n(r,t))return r}},o.findIndex=function(e,n,t){for(var r=t||0;r<e.length;r++)if(n(e[r],r))return r;return-1},o.findLastIndex=function(e,n,t){for(var r=void 0===t?e.length-1:t;0<=r;r--)if(n(e[r],r))return r;return-1},o.findMap=function(e,n){for(var t=0;t<e.length;t++){var r=n(e[t],t);if(r)return r}return g.fail()},o.contains=a,o.arraysEqual=function(e,t,r){return void 0===r&&(r=k),e.length===t.length&&e.every(function(e,n){return r(e,t[n])})},o.indexOfAnyCharCode=function(e,n,t){for(var r=t||0;r<e.length;r++)if(a(n,e.charCodeAt(r)))return r;return-1},o.countWhere=function(e,n){var t=0;if(e)for(var r=0;r<e.length;r++)n(e[r],r)&&t++;return t},o.filter=function(e,n){if(e){for(var t=e.length,r=0;r<t&&n(e[r]);)r++;if(r<t){var a=e.slice(0,r);for(r++;r<t;){var i=e[r];n(i)&&a.push(i),r++}return a}}return e},o.filterMutate=function(e,n){for(var t=0,r=0;r<e.length;r++)n(e[r],r,e)&&(e[t]=e[r],t++);e.length=t},o.clear=function(e){e.length=0},o.map=s,o.mapIterator=function(n,t){return{next:function(){var e=n.next();return e.done?e:{value:t(e.value),done:!1}}}},o.sameMap=function(e,n){if(e)for(var t=0;t<e.length;t++){var r=e[t],a=n(r,t);if(r!==a){var i=e.slice(0,t);for(i.push(a),t++;t<e.length;t++)i.push(n(e[t],t));return i}}return e},o.flatten=function(e){var n;if(e){n=[];for(var t=0,r=e;t<r.length;t++){var a=r[t];a&&(x(a)?l(n,a):n.push(a))}}return n},o.flatMap=function(e,n){var t;if(e){t=[];for(var r=0;r<e.length;r++){var a=n(e[r],r);a&&(x(a)?l(t,a):t.push(a))}}return t},o.flatMapIterator=function(t,r){var e=t.next();if(e.done)return o.emptyIterator;var a=i(e.value);return{next:function(){for(;;){var e=a.next();if(!e.done)return e;var n=t.next();if(n.done)return n;a=i(n.value)}}};function i(e){var n=r(e);return void 0===n?o.emptyIterator:x(n)?m(n):n}},o.sameFlatMap=function(e,n){var t;if(e)for(var r=0;r<e.length;r++){var a=e[r],i=n(a,r);(t||a!==i||x(i))&&(t||(t=e.slice(0,r)),x(i)?l(t,i):t.push(i))}return t||e},o.mapAllOrFail=function(e,n){for(var t=[],r=0;r<e.length;r++){var a=n(e[r],r);if(void 0===a)return;t.push(a)}return t},o.mapDefined=function(e,n){var t=[];if(e)for(var r=0;r<e.length;r++){var a=n(e[r],r);void 0!==a&&t.push(a)}return t},o.mapDefinedIterator=function(t,r){return{next:function(){for(;;){var e=t.next();if(e.done)return e;var n=r(e.value);if(void 0!==n)return{value:n,done:!1}}}}},o.emptyIterator={next:function(){return{value:void 0,done:!0}}},o.singleIterator=function(n){var t=!1;return{next:function(){var e=t;return t=!0,e?{value:void 0,done:!0}:{value:n,done:!1}}}},o.spanMap=function(e,n,t){var r;if(e){r=[];for(var a=e.length,i=void 0,o=void 0,s=0,c=0;s<a;){for(;c<a;){if(o=n(e[c],c),0===c)i=o;else if(o!==i)break;c++}if(s<c){var l=t(e.slice(s,c),i,s,c);l&&r.push(l),s=c}i=o,c++}}return r},o.mapEntries=function(e,i){if(e){var o=c();return e.forEach(function(e,n){var t=i(n,e),r=t[0],a=t[1];o.set(r,a)}),o}},o.some=r,o.getRangesWhere=function(e,n,t){for(var r,a=0;a<e.length;a++)n(e[a])?r=void 0===r?a:r:void 0!==r&&(t(r,a),r=void 0);void 0!==r&&t(r,e.length)},o.concatenate=function(e,n){return r(n)?r(e)?e.concat(n):n:e},o.deduplicate=function(e,n,t){return 0===e.length?[]:1===e.length?e.slice():t?function(n,e,t){var r=n.map(function(e,n){return n});d(n,r,t);for(var a=n[r[0]],i=[r[0]],o=1;o<r.length;o++){var s=r[o],c=n[s];e(a,c)||(i.push(s),a=c)}return i.sort(),i.map(function(e){return n[e]})}(e,n,t):function(e,n){for(var t=[],r=0,a=e;r<a.length;r++)u(t,a[r],n);return t}(e,n)},o.insertSorted=function(e,n,t){if(0!==e.length){var r=f(e,n,D,t);r<0&&e.splice(~r,0,n)}else e.push(n)},o.sortAndDeduplicate=function(e,n,t){return function(e,n){if(0===e.length)return[];for(var t=e[0],r=[t],a=1;a<e.length;a++){var i=e[a];switch(n(i,t)){case!0:case 0:continue;case-1:return g.fail("Array is unsorted.")}r.push(t=i)}return r}(p(e,n),t||n)},o.arrayIsEqualTo=function(e,n,t){if(void 0===t&&(t=k),!e||!n)return e===n;if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(!t(e[r],n[r],r))return!1;return!0},o.compact=function(e){var n;if(e)for(var t=0;t<e.length;t++){var r=e[t];!n&&r||(n||(n=e.slice(0,t)),r&&n.push(r))}return n||e},o.relativeComplement=function(e,n,t){if(!n||!e||0===n.length||0===e.length)return n;var r=[];e:for(var a=0,i=0;i<n.length;i++){0<i&&g.assertGreaterThanOrEqual(t(n[i],n[i-1]),0);n:for(var o=a;a<e.length;a++)switch(o<a&&g.assertGreaterThanOrEqual(t(e[a],e[a-1]),0),t(n[i],e[a])){case-1:r.push(n[i]);continue e;case 0:continue e;case 1:continue n}}return r},o.sum=function(e,n){for(var t=0,r=0,a=e;r<a.length;r++)t+=a[r][n];return t},o.append=function(e,n){return void 0===n?e:void 0===e?[n]:(e.push(n),e)},o.addRange=l,o.pushIfUnique=u,o.appendIfUnique=function(e,n,t){return e?(u(e,n,t),e):[n]},o.sort=p,o.arrayIterator=m,o.stableSort=function(n,e){var t=n.map(function(e,n){return n});return d(n,t,e),t.map(function(e){return n[e]})},o.rangeEquals=function(e,n,t,r){for(;t<r;){if(e[t]!==n[t])return!1;t++}return!0},o.elementAt=function(e,n){if(e&&(n=i(e,n))<e.length)return e[n]},o.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},o.first=function(e){return g.assert(0!==e.length),e[0]},o.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},o.last=function(e){return g.assert(0!==e.length),e[e.length-1]},o.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},o.singleOrMany=function(e){return e&&1===e.length?e[0]:e},o.replaceElement=function(e,n,t){var r=e.slice(0);return r[n]=t,r},o.binarySearch=f,o.reduceLeft=_;var e,g,v=Object.prototype.hasOwnProperty;function y(e,n){return v.call(e,n)}function h(e,n){for(var t,r=[],a=e.next(),i=a.value,o=a.done;!o;i=(t=e.next()).value,o=t.done,t)r.push(n?n(i):i);return r}function b(e,n,t){void 0===t&&(t=D);for(var r=E(),a=0,i=e;a<i.length;a++){var o=i[a];r.add(n(o),t(o))}return r}function E(){var e=c();return e.add=T,e.remove=S,e}function T(e,n){var t=this.get(e);return t?t.push(n):this.set(e,t=[n]),t}function S(e,n){var t=this.get(e);t&&(j(t,n),t.length||this.delete(e))}function x(e){return Array.isArray?Array.isArray(e):e instanceof Array}function C(e){}function D(e){return e}function A(e){return e.toLowerCase()}function L(n,t,r,a,e){if(e){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return function(e){return _(i,function(e,n){return n(e)},e)}}return a?function(e){return a(r(t(n(e))))}:r?function(e){return r(t(n(e)))}:t?function(e){return t(n(e))}:n?function(e){return n(e)}:function(e){return e}}function k(e,n){return e===n}function N(e,n){return e===n?0:void 0===e?-1:void 0===n?1:e<n?-1:1}function I(e,n){return N(e,n)}function M(e,n){return e===n?0:void 0===e?-1:void 0===n?1:(e=e.toUpperCase())<(n=n.toUpperCase())?-1:n<e?1:0}function O(e,n){return N(e,n)}o.hasProperty=y,o.getProperty=function(e,n){return v.call(e,n)?e[n]:void 0},o.getOwnKeys=function(e){var n=[];for(var t in e)v.call(e,t)&&n.push(t);return n},o.getOwnValues=function(e){var n=[];for(var t in e)v.call(e,t)&&n.push(e[t]);return n},o.arrayFrom=h,o.assign=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];for(var r=0,a=n;r<a.length;r++){var i=a[r];for(var o in i)y(i,o)&&(e[o]=i[o])}return e},o.equalOwnProperties=function(e,n,t){if(void 0===t&&(t=k),e===n)return!0;if(!e||!n)return!1;for(var r in e)if(v.call(e,r)){if(!v.call(n,r))return!1;if(!t(e[r],n[r]))return!1}for(var r in n)if(v.call(n,r)&&!v.call(e,r))return!1;return!0},o.arrayToMap=function(e,n,t){void 0===t&&(t=D);for(var r=c(),a=0,i=e;a<i.length;a++){var o=i[a],s=n(o);void 0!==s&&r.set(s,t(o))}return r},o.arrayToNumericMap=function(e,n,t){void 0===t&&(t=D);for(var r=[],a=0,i=e;a<i.length;a++){var o=i[a];r[n(o)]=t(o)}return r},o.arrayToMultiMap=b,o.group=function(e,n){return h(b(e,n).values())},o.clone=function(e){var n={};for(var t in e)v.call(e,t)&&(n[t]=e[t]);return n},o.extend=function(e,n){var t={};for(var r in n)v.call(n,r)&&(t[r]=n[r]);for(var r in e)v.call(e,r)&&(t[r]=e[r]);return t},o.createMultiMap=E,o.isArray=x,o.toArray=function(e){return x(e)?e:[e]},o.isString=function(e){return"string"==typeof e},o.isNumber=function(e){return"number"==typeof e},o.tryCast=function(e,n){return void 0!==e&&n(e)?e:void 0},o.cast=function(e,n){return void 0!==e&&n(e)?e:g.fail("Invalid cast. The supplied value "+e+" did not pass the test '"+g.getFunctionName(n)+"'.")},o.noop=C,o.returnFalse=function(){return!1},o.returnTrue=function(){return!0},o.identity=D,o.toLowerCase=A,o.notImplemented=function(){throw new Error("Not implemented")},o.memoize=function(e){var n;return function(){return e&&(n=e(),e=void 0),n}},o.chain=function(n,t,r,a,e){if(e){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return function(n){return L.apply(void 0,s(i,function(e){return e(n)}))}}return a?function(e){return L(n(e),t(e),r(e),a(e))}:r?function(e){return L(n(e),t(e),r(e))}:t?function(e){return L(n(e),t(e))}:n?function(e){return L(n(e))}:function(e){return function(e){return e}}},o.compose=L,(e=o.AssertionLevel||(o.AssertionLevel={}))[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",function(n){function i(e,n){var t=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(t,n||i),t}function a(e,n){return null==e?i(n):e}n.currentAssertionLevel=0,n.isDebugging=!1,n.shouldAssert=function(e){return n.currentAssertionLevel>=e},n.assert=function e(n,t,r,a){n||(r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),i(t?"False expression: "+t:"False expression.",a||e))},n.assertEqual=function(e,n,t,r){e!==n&&i("Expected "+e+" === "+n+". "+(t?r?t+" "+r:t:""))},n.assertLessThan=function(e,n,t){n<=e&&i("Expected "+e+" < "+n+". "+(t||""))},n.assertLessThanOrEqual=function(e,n){n<e&&i("Expected "+e+" <= "+n)},n.assertGreaterThanOrEqual=function(e,n){e<n&&i("Expected "+e+" >= "+n)},n.fail=i,n.assertDefined=a,n.assertEachDefined=function(e,n){for(var t=0,r=e;t<r.length;t++)a(r[t],n);return e},n.assertNever=function e(n,t,r){return i(t||"Illegal value: "+n,r||e)},n.getFunctionName=function(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var n=Function.prototype.toString.call(e),t=/^function\s+([\w\$]+)\s*\(/.exec(n);return t?t[1]:""}}(g=o.Debug||(o.Debug={})),o.equateValues=k,o.equateStringsCaseInsensitive=function(e,n){return e===n||void 0!==e&&void 0!==n&&e.toUpperCase()===n.toUpperCase()},o.equateStringsCaseSensitive=function(e,n){return k(e,n)},o.compareValues=I,o.min=function(e,n,t){return-1===t(e,n)?e:n},o.compareStringsCaseInsensitive=M,o.compareStringsCaseSensitive=O,o.getStringComparer=function(e){return e?M:O};var w,P,R=function(){var n,t,r=function(){if("object"==typeof Intl&&"function"==typeof Intl.Collator)return e;if("function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0)return i;return o}();return function(e){return void 0===e?n||(n=r(e)):"en-US"===e?t||(t=r(e)):r(e)};function a(e,n,t){if(e===n)return 0;if(void 0===e)return-1;if(void 0===n)return 1;var r=t(e,n);return r<0?-1:0<r?1:0}function e(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,n){return a(e,n,t)}}function i(e){return void 0!==e?o():function(e,n){return a(e,n,t)};function t(e,n){return e.localeCompare(n)}}function o(){return function(e,n){return a(e,n,t)};function t(e,n){return r(e.toUpperCase(),n.toUpperCase())||r(e,n)}function r(e,n){return e<n?-1:n<e?1:0}}}();function F(e,n,t){for(var r=new Array(n.length+1),a=new Array(n.length+1),i=t+1,o=0;o<=n.length;o++)r[o]=o;for(o=1;o<=e.length;o++){for(var s=e.charCodeAt(o-1),c=t<o?o-t:1,l=n.length>t+o?t+o:n.length,u=a[0]=o,d=1;d<c;d++)a[d]=i;for(d=c;d<=l;d++){var p=s===n.charCodeAt(d-1)?r[d-1]:Math.min(r[d]+1,a[d-1]+1,r[d-1]+2);a[d]=p,u=Math.min(u,p)}for(d=l+1;d<=n.length;d++)a[d]=i;if(t<u)return;var m=r;r=a,a=m}var f=r[n.length];return t<f?void 0:f}function G(e,n){var t=e.length-n.length;return 0<=t&&e.indexOf(n,t)===t}function V(e,n){return e.length>n.length&&G(e,n)}function B(e,n){for(var t=n;t<e.length-1;t++)e[t]=e[t+1];e.pop()}function K(e,n){e[n]=e[e.length-1],e.pop()}function j(e,n){return function(e,n){for(var t=0;t<e.length;t++)if(n(e[t]))return K(e,t),!0;return!1}(e,function(e){return e===n})}function H(e,n){return 0===e.lastIndexOf(n,0)}function U(e,n){var t=e.prefix,r=e.suffix;return n.length>=t.length+r.length&&H(n,t)&&G(n,r)}o.getUILocale=function(){return P},o.setUILocale=function(e){P!==e&&(P=e,w=void 0)},o.compareStringsCaseSensitiveUI=function(e,n){return(w||(w=R(P)))(e,n)},o.compareProperties=function(e,n,t,r){return e===n?0:void 0===e?-1:void 0===n?1:r(e[t],n[t])},o.compareBooleans=function(e,n){return I(e?1:0,n?1:0)},o.getSpellingSuggestion=function(e,n,t){for(var r,a=Math.min(2,Math.floor(.34*e.length)),i=Math.floor(.4*e.length)+1,o=!1,s=e.toLowerCase(),c=0,l=n;c<l.length;c++){var u=l[c],d=t(u);if(void 0!==d&&Math.abs(d.length-s.length)<=a){var p=d.toLowerCase();if(p===s){if(d===e)continue;return u}if(o)continue;if(d.length<3)continue;var m=F(s,p,i-1);if(void 0===m)continue;m<3?o=!0:(g.assert(m<i),i=m),r=u}}return r},o.endsWith=G,o.removeSuffix=function(e,n){return G(e,n)?e.slice(0,e.length-n.length):e},o.tryRemoveSuffix=function(e,n){return G(e,n)?e.slice(0,e.length-n.length):void 0},o.stringContains=function(e,n){return-1!==e.indexOf(n)},o.fileExtensionIs=V,o.fileExtensionIsOneOf=function(e,n){for(var t=0,r=n;t<r.length;t++)if(V(e,r[t]))return!0;return!1},o.removeMinAndVersionNumbers=function(e){var n=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(n,"").replace(n,"")},o.orderedRemoveItem=function(e,n){for(var t=0;t<e.length;t++)if(e[t]===n)return B(e,t),!0;return!1},o.orderedRemoveItemAt=B,o.unorderedRemoveItemAt=K,o.unorderedRemoveItem=j,o.createGetCanonicalFileName=function(e){return e?D:A},o.patternText=function(e){return e.prefix+"*"+e.suffix},o.matchedText=function(e,n){return g.assert(U(e,n)),n.substring(e.prefix.length,n.length-e.suffix.length)},o.findBestPatternMatch=function(e,n,t){for(var r,a=-1,i=0,o=e;i<o.length;i++){var s=o[i],c=n(s);U(c,t)&&c.prefix.length>a&&(a=c.prefix.length,r=s)}return r},o.startsWith=H,o.removePrefix=function(e,n){return H(e,n)?e.substr(n.length):e},o.tryRemovePrefix=function(e,n,t){return void 0===t&&(t=D),H(t(e),t(n))?e.substring(n.length):void 0},o.and=function(n,t){return function(e){return n(e)&&t(e)}},o.or=function(n,t){return function(e){return n(e)||t(e)}},o.assertType=function(e){},o.singleElementArray=function(e){return void 0===e?void 0:[e]},o.enumerateInsertsAndDeletes=function(e,n,t,r,a,i){i=i||C;for(var o=0,s=0,c=e.length,l=n.length;o<c&&s<l;){var u=e[o],d=n[s],p=t(u,d);-1===p?(r(u),o++):(1===p?a(d):(i(d,u),o++),s++)}for(;o<c;)r(e[o++]);for(;s<l;)a(n[s++])},o.fill=function(e,t){return new Array(e).fill(0).map(function(e,n){return t(n)})}}(ts||(ts={})),(ts||(ts={})).timestamp="undefined"!=typeof performance&&performance.now?function(){return performance.now()}:Date.now?Date.now:function(){return+new Date},function(i){var e,n,o,s,t,c,l;e=i.performance||(i.performance={}),t="function"==typeof onProfilerEvent&&!0===onProfilerEvent.profiler?onProfilerEvent:function(){},c=!1,l=0,e.mark=function(e){c&&(o.set(e,i.timestamp()),n.set(e,(n.get(e)||0)+1),t(e))},e.measure=function(e,n,t){if(c){var r=t&&o.get(t)||i.timestamp(),a=n&&o.get(n)||l;s.set(e,(s.get(e)||0)+(r-a))}},e.getCount=function(e){return n&&n.get(e)||0},e.getDuration=function(e){return s&&s.get(e)||0},e.forEachMeasure=function(t){s.forEach(function(e,n){t(n,e)})},e.enable=function(){n=i.createMap(),o=i.createMap(),s=i.createMap(),c=!0,l=i.timestamp()},e.disable=function(){c=!1}}(ts||(ts={})),function(l){var d=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,p=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,m=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,u=/^(0|[1-9]\d*)$/,f=function(){function t(e,n,t,r,a){if(void 0===n&&(n=0),void 0===t&&(t=0),void 0===r&&(r=""),void 0===a&&(a=""),"string"==typeof e){var i=l.Debug.assertDefined(o(e),"Invalid version");e=i.major,n=i.minor,t=i.patch,r=i.prerelease,a=i.build}l.Debug.assert(0<=e,"Invalid argument: major"),l.Debug.assert(0<=n,"Invalid argument: minor"),l.Debug.assert(0<=t,"Invalid argument: patch"),l.Debug.assert(!r||p.test(r),"Invalid argument: prerelease"),l.Debug.assert(!a||m.test(a),"Invalid argument: build"),this.major=e,this.minor=n,this.patch=t,this.prerelease=r?r.split("."):l.emptyArray,this.build=a?a.split("."):l.emptyArray}return t.tryParse=function(e){var n=o(e);if(n)return new t(n.major,n.minor,n.patch,n.prerelease,n.build)},t.prototype.compareTo=function(e){return this===e?0:void 0===e?1:l.compareValues(this.major,e.major)||l.compareValues(this.minor,e.minor)||l.compareValues(this.patch,e.patch)||function(e,n){if(e===n)return 0;if(0===e.length)return 0===n.length?0:1;if(0===n.length)return-1;for(var t=Math.min(e.length,n.length),r=0;r<t;r++){var a=e[r],i=n[r];if(a!==i){var o=u.test(a),s=u.test(i);if(o||s){if(o!==s)return o?-1:1;var c=l.compareValues(+a,+i);if(c)return c}else{var c=l.compareStringsCaseSensitive(a,i);if(c)return c}}}return l.compareValues(e.length,n.length)}(this.prerelease,e.prerelease)},t.prototype.increment=function(e){switch(e){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 l.Debug.assertNever(e)}},t.prototype.toString=function(){var e=this.major+"."+this.minor+"."+this.patch;return l.some(this.prerelease)&&(e+="-"+this.prerelease.join(".")),l.some(this.build)&&(e+="+"+this.build.join(".")),e},t.zero=new t(0,0,0),t}();function o(e){var n=d.exec(e);if(n){var t=n[1],r=n[2],a=void 0===r?"0":r,i=n[3],o=void 0===i?"0":i,s=n[4],c=void 0===s?"":s,l=n[5],u=void 0===l?"":l;if((!c||p.test(c))&&(!u||m.test(u)))return{major:parseInt(t,10),minor:parseInt(a,10),patch:parseInt(o,10),prerelease:c,build:u}}}l.Version=f;var e=function(){function r(e){this._alternatives=e?l.Debug.assertDefined(a(e),"Invalid range spec."):l.emptyArray}return r.tryParse=function(e){var n=a(e);if(n){var t=new r("");return t._alternatives=n,t}},r.prototype.test=function(e){return"string"==typeof e&&(e=new f(e)),function(e,n){if(0===n.length)return!0;for(var t=0,r=n;t<r.length;t++){var a=r[t];if(i(e,a))return!0}return!1}(e,this._alternatives)},r.prototype.toString=function(){return e=this._alternatives,l.map(e,n).join(" || ")||"*";var e},r}();l.VersionRange=e;var _=/\s*\|\|\s*/g,g=/\s+/g,v=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,y=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,h=/^\s*(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function a(e){for(var n=[],t=0,r=e.trim().split(_);t<r.length;t++){var a=r[t];if(a){var i=[],o=y.exec(a);if(o){if(!b(o[1],o[2],i))return}else for(var s=0,c=a.split(g);s<c.length;s++){var l=c[s],u=h.exec(l);if(!u||!E(u[1],u[2],i))return}n.push(i)}}return n}function c(e){var n=v.exec(e);if(n){var t=n[1],r=n[2],a=void 0===r?"*":r,i=n[3],o=void 0===i?"*":i,s=n[4],c=n[5];return{version:new f(T(t)?0:parseInt(t,10),T(t)||T(a)?0:parseInt(a,10),T(t)||T(a)||T(o)?0:parseInt(o,10),s,c),major:t,minor:a,patch:o}}}function b(e,n,t){var r=c(e);if(!r)return!1;var a=c(n);return!!a&&(T(r.major)||t.push(S(">=",r.version)),T(a.major)||t.push(T(a.minor)?S("<",a.version.increment("major")):T(a.patch)?S("<",a.version.increment("minor")):S("<=",a.version)),!0)}function E(e,n,t){var r=c(n);if(!r)return!1;var a=r.version,i=r.major,o=r.minor,s=r.patch;if(T(i))"<"!==e&&">"!==e||t.push(S("<",f.zero));else switch(e){case"~":t.push(S(">=",a)),t.push(S("<",a.increment(T(o)?"major":"minor")));break;case"^":t.push(S(">=",a)),t.push(S("<",a.increment(0<a.major||T(o)?"major":0<a.minor||T(s)?"minor":"patch")));break;case"<":case">=":t.push(S(e,a));break;case"<=":case">":t.push(T(o)?S("<="===e?"<":">=",a.increment("major")):T(s)?S("<="===e?"<":">=",a.increment("minor")):S(e,a));break;case"=":case void 0:T(o)||T(s)?(t.push(S(">=",a)),t.push(S("<",a.increment(T(o)?"major":"minor")))):t.push(S("=",a));break;default:return!1}return!0}function T(e){return"*"===e||"x"===e||"X"===e}function S(e,n){return{operator:e,operand:n}}function i(e,n){for(var t=0,r=n;t<r.length;t++){var a=r[t];if(!s(e,a.operator,a.operand))return!1}return!0}function s(e,n,t){var r=e.compareTo(t);switch(n){case"<":return r<0;case"<=":return r<=0;case">":return 0<r;case">=":return 0<=r;case"=":return 0===r;default:return l.Debug.assertNever(n)}}function n(e){return l.map(e,t).join(" ")}function t(e){return""+e.operator+e.operand}}(ts||(ts={})),function(e){var n,t,r,a,i,o,s,c;(n=e.SyntaxKind||(e.SyntaxKind={}))[n.Unknown=0]="Unknown",n[n.EndOfFileToken=1]="EndOfFileToken",n[n.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",n[n.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",n[n.NewLineTrivia=4]="NewLineTrivia",n[n.WhitespaceTrivia=5]="WhitespaceTrivia",n[n.ShebangTrivia=6]="ShebangTrivia",n[n.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",n[n.NumericLiteral=8]="NumericLiteral",n[n.StringLiteral=9]="StringLiteral",n[n.JsxText=10]="JsxText",n[n.JsxTextAllWhiteSpaces=11]="JsxTextAllWhiteSpaces",n[n.RegularExpressionLiteral=12]="RegularExpressionLiteral",n[n.NoSubstitutionTemplateLiteral=13]="NoSubstitutionTemplateLiteral",n[n.TemplateHead=14]="TemplateHead",n[n.TemplateMiddle=15]="TemplateMiddle",n[n.TemplateTail=16]="TemplateTail",n[n.OpenBraceToken=17]="OpenBraceToken",n[n.CloseBraceToken=18]="CloseBraceToken",n[n.OpenParenToken=19]="OpenParenToken",n[n.CloseParenToken=20]="CloseParenToken",n[n.OpenBracketToken=21]="OpenBracketToken",n[n.CloseBracketToken=22]="CloseBracketToken",n[n.DotToken=23]="DotToken",n[n.DotDotDotToken=24]="DotDotDotToken",n[n.SemicolonToken=25]="SemicolonToken",n[n.CommaToken=26]="CommaToken",n[n.LessThanToken=27]="LessThanToken",n[n.LessThanSlashToken=28]="LessThanSlashToken",n[n.GreaterThanToken=29]="GreaterThanToken",n[n.LessThanEqualsToken=30]="LessThanEqualsToken",n[n.GreaterThanEqualsToken=31]="GreaterThanEqualsToken",n[n.EqualsEqualsToken=32]="EqualsEqualsToken",n[n.ExclamationEqualsToken=33]="ExclamationEqualsToken",n[n.EqualsEqualsEqualsToken=34]="EqualsEqualsEqualsToken",n[n.ExclamationEqualsEqualsToken=35]="ExclamationEqualsEqualsToken",n[n.EqualsGreaterThanToken=36]="EqualsGreaterThanToken",n[n.PlusToken=37]="PlusToken",n[n.MinusToken=38]="MinusToken",n[n.AsteriskToken=39]="AsteriskToken",n[n.AsteriskAsteriskToken=40]="AsteriskAsteriskToken",n[n.SlashToken=41]="SlashToken",n[n.PercentToken=42]="PercentToken",n[n.PlusPlusToken=43]="PlusPlusToken",n[n.MinusMinusToken=44]="MinusMinusToken",n[n.LessThanLessThanToken=45]="LessThanLessThanToken",n[n.GreaterThanGreaterThanToken=46]="GreaterThanGreaterThanToken",n[n.GreaterThanGreaterThanGreaterThanToken=47]="GreaterThanGreaterThanGreaterThanToken",n[n.AmpersandToken=48]="AmpersandToken",n[n.BarToken=49]="BarToken",n[n.CaretToken=50]="CaretToken",n[n.ExclamationToken=51]="ExclamationToken",n[n.TildeToken=52]="TildeToken",n[n.AmpersandAmpersandToken=53]="AmpersandAmpersandToken",n[n.BarBarToken=54]="BarBarToken",n[n.QuestionToken=55]="QuestionToken",n[n.ColonToken=56]="ColonToken",n[n.AtToken=57]="AtToken",n[n.EqualsToken=58]="EqualsToken",n[n.PlusEqualsToken=59]="PlusEqualsToken",n[n.MinusEqualsToken=60]="MinusEqualsToken",n[n.AsteriskEqualsToken=61]="AsteriskEqualsToken",n[n.AsteriskAsteriskEqualsToken=62]="AsteriskAsteriskEqualsToken",n[n.SlashEqualsToken=63]="SlashEqualsToken",n[n.PercentEqualsToken=64]="PercentEqualsToken",n[n.LessThanLessThanEqualsToken=65]="LessThanLessThanEqualsToken",n[n.GreaterThanGreaterThanEqualsToken=66]="GreaterThanGreaterThanEqualsToken",n[n.GreaterThanGreaterThanGreaterThanEqualsToken=67]="GreaterThanGreaterThanGreaterThanEqualsToken",n[n.AmpersandEqualsToken=68]="AmpersandEqualsToken",n[n.BarEqualsToken=69]="BarEqualsToken",n[n.CaretEqualsToken=70]="CaretEqualsToken",n[n.Identifier=71]="Identifier",n[n.BreakKeyword=72]="BreakKeyword",n[n.CaseKeyword=73]="CaseKeyword",n[n.CatchKeyword=74]="CatchKeyword",n[n.ClassKeyword=75]="ClassKeyword",n[n.ConstKeyword=76]="ConstKeyword",n[n.ContinueKeyword=77]="ContinueKeyword",n[n.DebuggerKeyword=78]="DebuggerKeyword",n[n.DefaultKeyword=79]="DefaultKeyword",n[n.DeleteKeyword=80]="DeleteKeyword",n[n.DoKeyword=81]="DoKeyword",n[n.ElseKeyword=82]="ElseKeyword",n[n.EnumKeyword=83]="EnumKeyword",n[n.ExportKeyword=84]="ExportKeyword",n[n.ExtendsKeyword=85]="ExtendsKeyword",n[n.FalseKeyword=86]="FalseKeyword",n[n.FinallyKeyword=87]="FinallyKeyword",n[n.ForKeyword=88]="ForKeyword",n[n.FunctionKeyword=89]="FunctionKeyword",n[n.IfKeyword=90]="IfKeyword",n[n.ImportKeyword=91]="ImportKeyword",n[n.InKeyword=92]="InKeyword",n[n.InstanceOfKeyword=93]="InstanceOfKeyword",n[n.NewKeyword=94]="NewKeyword",n[n.NullKeyword=95]="NullKeyword",n[n.ReturnKeyword=96]="ReturnKeyword",n[n.SuperKeyword=97]="SuperKeyword",n[n.SwitchKeyword=98]="SwitchKeyword",n[n.ThisKeyword=99]="ThisKeyword",n[n.ThrowKeyword=100]="ThrowKeyword",n[n.TrueKeyword=101]="TrueKeyword",n[n.TryKeyword=102]="TryKeyword",n[n.TypeOfKeyword=103]="TypeOfKeyword",n[n.VarKeyword=104]="VarKeyword",n[n.VoidKeyword=105]="VoidKeyword",n[n.WhileKeyword=106]="WhileKeyword",n[n.WithKeyword=107]="WithKeyword",n[n.ImplementsKeyword=108]="ImplementsKeyword",n[n.InterfaceKeyword=109]="InterfaceKeyword",n[n.LetKeyword=110]="LetKeyword",n[n.PackageKeyword=111]="PackageKeyword",n[n.PrivateKeyword=112]="PrivateKeyword",n[n.ProtectedKeyword=113]="ProtectedKeyword",n[n.PublicKeyword=114]="PublicKeyword",n[n.StaticKeyword=115]="StaticKeyword",n[n.YieldKeyword=116]="YieldKeyword",n[n.AbstractKeyword=117]="AbstractKeyword",n[n.AsKeyword=118]="AsKeyword",n[n.AnyKeyword=119]="AnyKeyword",n[n.AsyncKeyword=120]="AsyncKeyword",n[n.AwaitKeyword=121]="AwaitKeyword",n[n.BooleanKeyword=122]="BooleanKeyword",n[n.ConstructorKeyword=123]="ConstructorKeyword",n[n.DeclareKeyword=124]="DeclareKeyword",n[n.GetKeyword=125]="GetKeyword",n[n.InferKeyword=126]="InferKeyword",n[n.IsKeyword=127]="IsKeyword",n[n.KeyOfKeyword=128]="KeyOfKeyword",n[n.ModuleKeyword=129]="ModuleKeyword",n[n.NamespaceKeyword=130]="NamespaceKeyword",n[n.NeverKeyword=131]="NeverKeyword",n[n.ReadonlyKeyword=132]="ReadonlyKeyword",n[n.RequireKeyword=133]="RequireKeyword",n[n.NumberKeyword=134]="NumberKeyword",n[n.ObjectKeyword=135]="ObjectKeyword",n[n.SetKeyword=136]="SetKeyword",n[n.StringKeyword=137]="StringKeyword",n[n.SymbolKeyword=138]="SymbolKeyword",n[n.TypeKeyword=139]="TypeKeyword",n[n.UndefinedKeyword=140]="UndefinedKeyword",n[n.UniqueKeyword=141]="UniqueKeyword",n[n.UnknownKeyword=142]="UnknownKeyword",n[n.FromKeyword=143]="FromKeyword",n[n.GlobalKeyword=144]="GlobalKeyword",n[n.OfKeyword=145]="OfKeyword",n[n.QualifiedName=146]="QualifiedName",n[n.ComputedPropertyName=147]="ComputedPropertyName",n[n.TypeParameter=148]="TypeParameter",n[n.Parameter=149]="Parameter",n[n.Decorator=150]="Decorator",n[n.PropertySignature=151]="PropertySignature",n[n.PropertyDeclaration=152]="PropertyDeclaration",n[n.MethodSignature=153]="MethodSignature",n[n.MethodDeclaration=154]="MethodDeclaration",n[n.Constructor=155]="Constructor",n[n.GetAccessor=156]="GetAccessor",n[n.SetAccessor=157]="SetAccessor",n[n.CallSignature=158]="CallSignature",n[n.ConstructSignature=159]="ConstructSignature",n[n.IndexSignature=160]="IndexSignature",n[n.TypePredicate=161]="TypePredicate",n[n.TypeReference=162]="TypeReference",n[n.FunctionType=163]="FunctionType",n[n.ConstructorType=164]="ConstructorType",n[n.TypeQuery=165]="TypeQuery",n[n.TypeLiteral=166]="TypeLiteral",n[n.ArrayType=167]="ArrayType",n[n.TupleType=168]="TupleType",n[n.OptionalType=169]="OptionalType",n[n.RestType=170]="RestType",n[n.UnionType=171]="UnionType",n[n.IntersectionType=172]="IntersectionType",n[n.ConditionalType=173]="ConditionalType",n[n.InferType=174]="InferType",n[n.ParenthesizedType=175]="ParenthesizedType",n[n.ThisType=176]="ThisType",n[n.TypeOperator=177]="TypeOperator",n[n.IndexedAccessType=178]="IndexedAccessType",n[n.MappedType=179]="MappedType",n[n.LiteralType=180]="LiteralType",n[n.ImportType=181]="ImportType",n[n.ObjectBindingPattern=182]="ObjectBindingPattern",n[n.ArrayBindingPattern=183]="ArrayBindingPattern",n[n.BindingElement=184]="BindingElement",n[n.ArrayLiteralExpression=185]="ArrayLiteralExpression",n[n.ObjectLiteralExpression=186]="ObjectLiteralExpression",n[n.PropertyAccessExpression=187]="PropertyAccessExpression",n[n.ElementAccessExpression=188]="ElementAccessExpression",n[n.CallExpression=189]="CallExpression",n[n.NewExpression=190]="NewExpression",n[n.TaggedTemplateExpression=191]="TaggedTemplateExpression",n[n.TypeAssertionExpression=192]="TypeAssertionExpression",n[n.ParenthesizedExpression=193]="ParenthesizedExpression",n[n.FunctionExpression=194]="FunctionExpression",n[n.ArrowFunction=195]="ArrowFunction",n[n.DeleteExpression=196]="DeleteExpression",n[n.TypeOfExpression=197]="TypeOfExpression",n[n.VoidExpression=198]="VoidExpression",n[n.AwaitExpression=199]="AwaitExpression",n[n.PrefixUnaryExpression=200]="PrefixUnaryExpression",n[n.PostfixUnaryExpression=201]="PostfixUnaryExpression",n[n.BinaryExpression=202]="BinaryExpression",n[n.ConditionalExpression=203]="ConditionalExpression",n[n.TemplateExpression=204]="TemplateExpression",n[n.YieldExpression=205]="YieldExpression",n[n.SpreadElement=206]="SpreadElement",n[n.ClassExpression=207]="ClassExpression",n[n.OmittedExpression=208]="OmittedExpression",n[n.ExpressionWithTypeArguments=209]="ExpressionWithTypeArguments",n[n.AsExpression=210]="AsExpression",n[n.NonNullExpression=211]="NonNullExpression",n[n.MetaProperty=212]="MetaProperty",n[n.SyntheticExpression=213]="SyntheticExpression",n[n.TemplateSpan=214]="TemplateSpan",n[n.SemicolonClassElement=215]="SemicolonClassElement",n[n.Block=216]="Block",n[n.VariableStatement=217]="VariableStatement",n[n.EmptyStatement=218]="EmptyStatement",n[n.ExpressionStatement=219]="ExpressionStatement",n[n.IfStatement=220]="IfStatement",n[n.DoStatement=221]="DoStatement",n[n.WhileStatement=222]="WhileStatement",n[n.ForStatement=223]="ForStatement",n[n.ForInStatement=224]="ForInStatement",n[n.ForOfStatement=225]="ForOfStatement",n[n.ContinueStatement=226]="ContinueStatement",n[n.BreakStatement=227]="BreakStatement",n[n.ReturnStatement=228]="ReturnStatement",n[n.WithStatement=229]="WithStatement",n[n.SwitchStatement=230]="SwitchStatement",n[n.LabeledStatement=231]="LabeledStatement",n[n.ThrowStatement=232]="ThrowStatement",n[n.TryStatement=233]="TryStatement",n[n.DebuggerStatement=234]="DebuggerStatement",n[n.VariableDeclaration=235]="VariableDeclaration",n[n.VariableDeclarationList=236]="VariableDeclarationList",n[n.FunctionDeclaration=237]="FunctionDeclaration",n[n.ClassDeclaration=238]="ClassDeclaration",n[n.InterfaceDeclaration=239]="InterfaceDeclaration",n[n.TypeAliasDeclaration=240]="TypeAliasDeclaration",n[n.EnumDeclaration=241]="EnumDeclaration",n[n.ModuleDeclaration=242]="ModuleDeclaration",n[n.ModuleBlock=243]="ModuleBlock",n[n.CaseBlock=244]="CaseBlock",n[n.NamespaceExportDeclaration=245]="NamespaceExportDeclaration",n[n.ImportEqualsDeclaration=246]="ImportEqualsDeclaration",n[n.ImportDeclaration=247]="ImportDeclaration",n[n.ImportClause=248]="ImportClause",n[n.NamespaceImport=249]="NamespaceImport",n[n.NamedImports=250]="NamedImports",n[n.ImportSpecifier=251]="ImportSpecifier",n[n.ExportAssignment=252]="ExportAssignment",n[n.ExportDeclaration=253]="ExportDeclaration",n[n.NamedExports=254]="NamedExports",n[n.ExportSpecifier=255]="ExportSpecifier",n[n.MissingDeclaration=256]="MissingDeclaration",n[n.ExternalModuleReference=257]="ExternalModuleReference",n[n.JsxElement=258]="JsxElement",n[n.JsxSelfClosingElement=259]="JsxSelfClosingElement",n[n.JsxOpeningElement=260]="JsxOpeningElement",n[n.JsxClosingElement=261]="JsxClosingElement",n[n.JsxFragment=262]="JsxFragment",n[n.JsxOpeningFragment=263]="JsxOpeningFragment",n[n.JsxClosingFragment=264]="JsxClosingFragment",n[n.JsxAttribute=265]="JsxAttribute",n[n.JsxAttributes=266]="JsxAttributes",n[n.JsxSpreadAttribute=267]="JsxSpreadAttribute",n[n.JsxExpression=268]="JsxExpression",n[n.CaseClause=269]="CaseClause",n[n.DefaultClause=270]="DefaultClause",n[n.HeritageClause=271]="HeritageClause",n[n.CatchClause=272]="CatchClause",n[n.PropertyAssignment=273]="PropertyAssignment",n[n.ShorthandPropertyAssignment=274]="ShorthandPropertyAssignment",n[n.SpreadAssignment=275]="SpreadAssignment",n[n.EnumMember=276]="EnumMember",n[n.SourceFile=277]="SourceFile",n[n.Bundle=278]="Bundle",n[n.UnparsedSource=279]="UnparsedSource",n[n.InputFiles=280]="InputFiles",n[n.JSDocTypeExpression=281]="JSDocTypeExpression",n[n.JSDocAllType=282]="JSDocAllType",n[n.JSDocUnknownType=283]="JSDocUnknownType",n[n.JSDocNullableType=284]="JSDocNullableType",n[n.JSDocNonNullableType=285]="JSDocNonNullableType",n[n.JSDocOptionalType=286]="JSDocOptionalType",n[n.JSDocFunctionType=287]="JSDocFunctionType",n[n.JSDocVariadicType=288]="JSDocVariadicType",n[n.JSDocComment=289]="JSDocComment",n[n.JSDocTypeLiteral=290]="JSDocTypeLiteral",n[n.JSDocSignature=291]="JSDocSignature",n[n.JSDocTag=292]="JSDocTag",n[n.JSDocAugmentsTag=293]="JSDocAugmentsTag",n[n.JSDocClassTag=294]="JSDocClassTag",n[n.JSDocCallbackTag=295]="JSDocCallbackTag",n[n.JSDocEnumTag=296]="JSDocEnumTag",n[n.JSDocParameterTag=297]="JSDocParameterTag",n[n.JSDocReturnTag=298]="JSDocReturnTag",n[n.JSDocThisTag=299]="JSDocThisTag",n[n.JSDocTypeTag=300]="JSDocTypeTag",n[n.JSDocTemplateTag=301]="JSDocTemplateTag",n[n.JSDocTypedefTag=302]="JSDocTypedefTag",n[n.JSDocPropertyTag=303]="JSDocPropertyTag",n[n.SyntaxList=304]="SyntaxList",n[n.NotEmittedStatement=305]="NotEmittedStatement",n[n.PartiallyEmittedExpression=306]="PartiallyEmittedExpression",n[n.CommaListExpression=307]="CommaListExpression",n[n.MergeDeclarationMarker=308]="MergeDeclarationMarker",n[n.EndOfDeclarationMarker=309]="EndOfDeclarationMarker",n[n.Count=310]="Count",n[n.FirstAssignment=58]="FirstAssignment",n[n.LastAssignment=70]="LastAssignment",n[n.FirstCompoundAssignment=59]="FirstCompoundAssignment",n[n.LastCompoundAssignment=70]="LastCompoundAssignment",n[n.FirstReservedWord=72]="FirstReservedWord",n[n.LastReservedWord=107]="LastReservedWord",n[n.FirstKeyword=72]="FirstKeyword",n[n.LastKeyword=145]="LastKeyword",n[n.FirstFutureReservedWord=108]="FirstFutureReservedWord",n[n.LastFutureReservedWord=116]="LastFutureReservedWord",n[n.FirstTypeNode=161]="FirstTypeNode",n[n.LastTypeNode=181]="LastTypeNode",n[n.FirstPunctuation=17]="FirstPunctuation",n[n.LastPunctuation=70]="LastPunctuation",n[n.FirstToken=0]="FirstToken",n[n.LastToken=145]="LastToken",n[n.FirstTriviaToken=2]="FirstTriviaToken",n[n.LastTriviaToken=7]="LastTriviaToken",n[n.FirstLiteralToken=8]="FirstLiteralToken",n[n.LastLiteralToken=13]="LastLiteralToken",n[n.FirstTemplateToken=13]="FirstTemplateToken",n[n.LastTemplateToken=16]="LastTemplateToken",n[n.FirstBinaryOperator=27]="FirstBinaryOperator",n[n.LastBinaryOperator=70]="LastBinaryOperator",n[n.FirstNode=146]="FirstNode",n[n.FirstJSDocNode=281]="FirstJSDocNode",n[n.LastJSDocNode=303]="LastJSDocNode",n[n.FirstJSDocTagNode=292]="FirstJSDocTagNode",n[n.LastJSDocTagNode=303]="LastJSDocTagNode",n[n.FirstContextualKeyword=117]="FirstContextualKeyword",n[n.LastContextualKeyword=145]="LastContextualKeyword",(t=e.NodeFlags||(e.NodeFlags={}))[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.NestedNamespace=4]="NestedNamespace",t[t.Synthesized=8]="Synthesized",t[t.Namespace=16]="Namespace",t[t.ExportContext=32]="ExportContext",t[t.ContainsThis=64]="ContainsThis",t[t.HasImplicitReturn=128]="HasImplicitReturn",t[t.HasExplicitReturn=256]="HasExplicitReturn",t[t.GlobalAugmentation=512]="GlobalAugmentation",t[t.HasAsyncFunctions=1024]="HasAsyncFunctions",t[t.DisallowInContext=2048]="DisallowInContext",t[t.YieldContext=4096]="YieldContext",t[t.DecoratorContext=8192]="DecoratorContext",t[t.AwaitContext=16384]="AwaitContext",t[t.ThisNodeHasError=32768]="ThisNodeHasError",t[t.JavaScriptFile=65536]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=131072]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=262144]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=524288]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=1048576]="PossiblyContainsImportMeta",t[t.JSDoc=2097152]="JSDoc",t[t.Ambient=4194304]="Ambient",t[t.InWithStatement=8388608]="InWithStatement",t[t.JsonFile=16777216]="JsonFile",t[t.BlockScoped=3]="BlockScoped",t[t.ReachabilityCheckFlags=384]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=1408]="ReachabilityAndEmitFlags",t[t.ContextFlags=12679168]="ContextFlags",t[t.TypeExcludesFlags=20480]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=1572864]="PermanentlySetIncrementalFlags",(r=e.ModifierFlags||(e.ModifierFlags={}))[r.None=0]="None",r[r.Export=1]="Export",r[r.Ambient=2]="Ambient",r[r.Public=4]="Public",r[r.Private=8]="Private",r[r.Protected=16]="Protected",r[r.Static=32]="Static",r[r.Readonly=64]="Readonly",r[r.Abstract=128]="Abstract",r[r.Async=256]="Async",r[r.Default=512]="Default",r[r.Const=2048]="Const",r[r.HasComputedFlags=536870912]="HasComputedFlags",r[r.AccessibilityModifier=28]="AccessibilityModifier",r[r.ParameterPropertyModifier=92]="ParameterPropertyModifier",r[r.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",r[r.TypeScriptModifier=2270]="TypeScriptModifier",r[r.ExportDefault=513]="ExportDefault",r[r.All=3071]="All",(a=e.JsxFlags||(e.JsxFlags={}))[a.None=0]="None",a[a.IntrinsicNamedElement=1]="IntrinsicNamedElement",a[a.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",a[a.IntrinsicElement=3]="IntrinsicElement",(i=e.RelationComparisonResult||(e.RelationComparisonResult={}))[i.Succeeded=1]="Succeeded",i[i.Failed=2]="Failed",i[i.FailedAndReported=3]="FailedAndReported",(o=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[o.None=0]="None",o[o.Auto=1]="Auto",o[o.Loop=2]="Loop",o[o.Unique=3]="Unique",o[o.Node=4]="Node",o[o.KindMask=7]="KindMask",o[o.ReservedInNestedScopes=8]="ReservedInNestedScopes",o[o.Optimistic=16]="Optimistic",o[o.FileLevel=32]="FileLevel",(s=e.TokenFlags||(e.TokenFlags={}))[s.None=0]="None",s[s.PrecedingLineBreak=1]="PrecedingLineBreak",s[s.PrecedingJSDocComment=2]="PrecedingJSDocComment",s[s.Unterminated=4]="Unterminated",s[s.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",s[s.Scientific=16]="Scientific",s[s.Octal=32]="Octal",s[s.HexSpecifier=64]="HexSpecifier",s[s.BinarySpecifier=128]="BinarySpecifier",s[s.OctalSpecifier=256]="OctalSpecifier",s[s.ContainsSeparator=512]="ContainsSeparator",s[s.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",s[s.NumericLiteralFlags=1008]="NumericLiteralFlags",(c=e.FlowFlags||(e.FlowFlags={}))[c.Unreachable=1]="Unreachable",c[c.Start=2]="Start",c[c.BranchLabel=4]="BranchLabel",c[c.LoopLabel=8]="LoopLabel",c[c.Assignment=16]="Assignment",c[c.TrueCondition=32]="TrueCondition",c[c.FalseCondition=64]="FalseCondition",c[c.SwitchClause=128]="SwitchClause",c[c.ArrayMutation=256]="ArrayMutation",c[c.Referenced=512]="Referenced",c[c.Shared=1024]="Shared",c[c.PreFinally=2048]="PreFinally",c[c.AfterFinally=4096]="AfterFinally",c[c.Label=12]="Label",c[c.Condition=96]="Condition";var l,u,d,p,m,f,_,g,v,y,h,b,E,T,S,x,C,D,A,L,k,N,I,M,O,w,P,R,F,G,V,B,K,j,H,U,W,q,z,J,X,Y,Q=function(){};e.OperationCanceledException=Q,(l=e.StructureIsReused||(e.StructureIsReused={}))[l.Not=0]="Not",l[l.SafeModules=1]="SafeModules",l[l.Completely=2]="Completely",(u=e.ExitStatus||(e.ExitStatus={}))[u.Success=0]="Success",u[u.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",u[u.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",(d=e.UnionReduction||(e.UnionReduction={}))[d.None=0]="None",d[d.Literal=1]="Literal",d[d.Subtype=2]="Subtype",(p=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[p.None=0]="None",p[p.NoTruncation=1]="NoTruncation",p[p.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",p[p.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",p[p.UseStructuralFallback=8]="UseStructuralFallback",p[p.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",p[p.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",p[p.UseFullyQualifiedType=64]="UseFullyQualifiedType",p[p.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",p[p.SuppressAnyReturnType=256]="SuppressAnyReturnType",p[p.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",p[p.MultilineObjectLiterals=1024]="MultilineObjectLiterals",p[p.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",p[p.UseTypeOfFunction=4096]="UseTypeOfFunction",p[p.OmitParameterModifiers=8192]="OmitParameterModifiers",p[p.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",p[p.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",p[p.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",p[p.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",p[p.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",p[p.AllowEmptyTuple=524288]="AllowEmptyTuple",p[p.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",p[p.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",p[p.IgnoreErrors=3112960]="IgnoreErrors",p[p.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",p[p.InTypeAlias=8388608]="InTypeAlias",p[p.InInitialEntityName=16777216]="InInitialEntityName",p[p.InReverseMappedType=33554432]="InReverseMappedType",(m=e.TypeFormatFlags||(e.TypeFormatFlags={}))[m.None=0]="None",m[m.NoTruncation=1]="NoTruncation",m[m.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",m[m.UseStructuralFallback=8]="UseStructuralFallback",m[m.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",m[m.UseFullyQualifiedType=64]="UseFullyQualifiedType",m[m.SuppressAnyReturnType=256]="SuppressAnyReturnType",m[m.MultilineObjectLiterals=1024]="MultilineObjectLiterals",m[m.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",m[m.UseTypeOfFunction=4096]="UseTypeOfFunction",m[m.OmitParameterModifiers=8192]="OmitParameterModifiers",m[m.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",m[m.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",m[m.AddUndefined=131072]="AddUndefined",m[m.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",m[m.InArrayType=524288]="InArrayType",m[m.InElementType=2097152]="InElementType",m[m.InFirstTypeArgument=4194304]="InFirstTypeArgument",m[m.InTypeAlias=8388608]="InTypeAlias",m[m.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",m[m.NodeBuilderFlagsMask=9469291]="NodeBuilderFlagsMask",(f=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[f.None=0]="None",f[f.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",f[f.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",f[f.AllowAnyNodeKind=4]="AllowAnyNodeKind",f[f.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",(_=e.SymbolAccessibility||(e.SymbolAccessibility={}))[_.Accessible=0]="Accessible",_[_.NotAccessible=1]="NotAccessible",_[_.CannotBeNamed=2]="CannotBeNamed",(g=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[g.UnionOrIntersection=0]="UnionOrIntersection",g[g.Spread=1]="Spread",(v=e.TypePredicateKind||(e.TypePredicateKind={}))[v.This=0]="This",v[v.Identifier=1]="Identifier",(y=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[y.Unknown=0]="Unknown",y[y.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",y[y.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",y[y.NumberLikeType=3]="NumberLikeType",y[y.StringLikeType=4]="StringLikeType",y[y.BooleanType=5]="BooleanType",y[y.ArrayLikeType=6]="ArrayLikeType",y[y.ESSymbolType=7]="ESSymbolType",y[y.Promise=8]="Promise",y[y.TypeWithCallSignature=9]="TypeWithCallSignature",y[y.ObjectType=10]="ObjectType",(h=e.SymbolFlags||(e.SymbolFlags={}))[h.None=0]="None",h[h.FunctionScopedVariable=1]="FunctionScopedVariable",h[h.BlockScopedVariable=2]="BlockScopedVariable",h[h.Property=4]="Property",h[h.EnumMember=8]="EnumMember",h[h.Function=16]="Function",h[h.Class=32]="Class",h[h.Interface=64]="Interface",h[h.ConstEnum=128]="ConstEnum",h[h.RegularEnum=256]="RegularEnum",h[h.ValueModule=512]="ValueModule",h[h.NamespaceModule=1024]="NamespaceModule",h[h.TypeLiteral=2048]="TypeLiteral",h[h.ObjectLiteral=4096]="ObjectLiteral",h[h.Method=8192]="Method",h[h.Constructor=16384]="Constructor",h[h.GetAccessor=32768]="GetAccessor",h[h.SetAccessor=65536]="SetAccessor",h[h.Signature=131072]="Signature",h[h.TypeParameter=262144]="TypeParameter",h[h.TypeAlias=524288]="TypeAlias",h[h.ExportValue=1048576]="ExportValue",h[h.Alias=2097152]="Alias",h[h.Prototype=4194304]="Prototype",h[h.ExportStar=8388608]="ExportStar",h[h.Optional=16777216]="Optional",h[h.Transient=33554432]="Transient",h[h.Assignment=67108864]="Assignment",h[h.ModuleExports=134217728]="ModuleExports",h[h.All=67108863]="All",h[h.Enum=384]="Enum",h[h.Variable=3]="Variable",h[h.Value=67220415]="Value",h[h.Type=67897832]="Type",h[h.Namespace=1920]="Namespace",h[h.Module=1536]="Module",h[h.Accessor=98304]="Accessor",h[h.FunctionScopedVariableExcludes=67220414]="FunctionScopedVariableExcludes",h[h.BlockScopedVariableExcludes=67220415]="BlockScopedVariableExcludes",h[h.ParameterExcludes=67220415]="ParameterExcludes",h[h.PropertyExcludes=0]="PropertyExcludes",h[h.EnumMemberExcludes=68008959]="EnumMemberExcludes",h[h.FunctionExcludes=67219887]="FunctionExcludes",h[h.ClassExcludes=68008383]="ClassExcludes",h[h.InterfaceExcludes=67897736]="InterfaceExcludes",h[h.RegularEnumExcludes=68008191]="RegularEnumExcludes",h[h.ConstEnumExcludes=68008831]="ConstEnumExcludes",h[h.ValueModuleExcludes=110735]="ValueModuleExcludes",h[h.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",h[h.MethodExcludes=67212223]="MethodExcludes",h[h.GetAccessorExcludes=67154879]="GetAccessorExcludes",h[h.SetAccessorExcludes=67187647]="SetAccessorExcludes",h[h.TypeParameterExcludes=67635688]="TypeParameterExcludes",h[h.TypeAliasExcludes=67897832]="TypeAliasExcludes",h[h.AliasExcludes=2097152]="AliasExcludes",h[h.ModuleMember=2623475]="ModuleMember",h[h.ExportHasLocal=944]="ExportHasLocal",h[h.BlockScoped=418]="BlockScoped",h[h.PropertyOrAccessor=98308]="PropertyOrAccessor",h[h.ClassMember=106500]="ClassMember",h[h.Classifiable=2885600]="Classifiable",h[h.LateBindingContainer=6240]="LateBindingContainer",(b=e.EnumKind||(e.EnumKind={}))[b.Numeric=0]="Numeric",b[b.Literal=1]="Literal",(E=e.CheckFlags||(e.CheckFlags={}))[E.Instantiated=1]="Instantiated",E[E.SyntheticProperty=2]="SyntheticProperty",E[E.SyntheticMethod=4]="SyntheticMethod",E[E.Readonly=8]="Readonly",E[E.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",(T=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",T.Constructor="__constructor",T.New="__new",T.Index="__index",T.ExportStar="__export",T.Global="__global",T.Missing="__missing",T.Type="__type",T.Object="__object",T.JSXAttributes="__jsxAttributes",T.Class="__class",T.Function="__function",T.Computed="__computed",T.Resolving="__resolving__",T.ExportEquals="export=",T.Default="default",T.This="this",(S=e.NodeCheckFlags||(e.NodeCheckFlags={}))[S.TypeChecked=1]="TypeChecked",S[S.LexicalThis=2]="LexicalThis",S[S.CaptureThis=4]="CaptureThis",S[S.CaptureNewTarget=8]="CaptureNewTarget",S[S.SuperInstance=256]="SuperInstance",S[S.SuperStatic=512]="SuperStatic",S[S.ContextChecked=1024]="ContextChecked",S[S.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",S[S.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",S[S.CaptureArguments=8192]="CaptureArguments",S[S.EnumValuesComputed=16384]="EnumValuesComputed",S[S.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",S[S.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",S[S.CapturedBlockScopedBinding=131072]="CapturedBlockScopedBinding",S[S.BlockScopedBindingInLoop=262144]="BlockScopedBindingInLoop",S[S.ClassWithBodyScopedClassBinding=524288]="ClassWithBodyScopedClassBinding",S[S.BodyScopedClassBinding=1048576]="BodyScopedClassBinding",S[S.NeedsLoopOutParameter=2097152]="NeedsLoopOutParameter",S[S.AssignmentsMarked=4194304]="AssignmentsMarked",S[S.ClassWithConstructorReference=8388608]="ClassWithConstructorReference",S[S.ConstructorReferenceInClass=16777216]="ConstructorReferenceInClass",(x=e.TypeFlags||(e.TypeFlags={}))[x.Any=1]="Any",x[x.Unknown=2]="Unknown",x[x.String=4]="String",x[x.Number=8]="Number",x[x.Boolean=16]="Boolean",x[x.Enum=32]="Enum",x[x.StringLiteral=64]="StringLiteral",x[x.NumberLiteral=128]="NumberLiteral",x[x.BooleanLiteral=256]="BooleanLiteral",x[x.EnumLiteral=512]="EnumLiteral",x[x.ESSymbol=1024]="ESSymbol",x[x.UniqueESSymbol=2048]="UniqueESSymbol",x[x.Void=4096]="Void",x[x.Undefined=8192]="Undefined",x[x.Null=16384]="Null",x[x.Never=32768]="Never",x[x.TypeParameter=65536]="TypeParameter",x[x.Object=131072]="Object",x[x.Union=262144]="Union",x[x.Intersection=524288]="Intersection",x[x.Index=1048576]="Index",x[x.IndexedAccess=2097152]="IndexedAccess",x[x.Conditional=4194304]="Conditional",x[x.Substitution=8388608]="Substitution",x[x.NonPrimitive=16777216]="NonPrimitive",x[x.FreshLiteral=33554432]="FreshLiteral",x[x.UnionOfPrimitiveTypes=67108864]="UnionOfPrimitiveTypes",x[x.ContainsWideningType=134217728]="ContainsWideningType",x[x.ContainsObjectLiteral=268435456]="ContainsObjectLiteral",x[x.ContainsAnyFunctionType=536870912]="ContainsAnyFunctionType",x[x.AnyOrUnknown=3]="AnyOrUnknown",x[x.Nullable=24576]="Nullable",x[x.Literal=448]="Literal",x[x.Unit=27072]="Unit",x[x.StringOrNumberLiteral=192]="StringOrNumberLiteral",x[x.StringOrNumberLiteralOrUnique=2240]="StringOrNumberLiteralOrUnique",x[x.DefinitelyFalsy=29120]="DefinitelyFalsy",x[x.PossiblyFalsy=29148]="PossiblyFalsy",x[x.Intrinsic=16839967]="Intrinsic",x[x.Primitive=32764]="Primitive",x[x.StringLike=68]="StringLike",x[x.NumberLike=168]="NumberLike",x[x.BooleanLike=272]="BooleanLike",x[x.EnumLike=544]="EnumLike",x[x.ESSymbolLike=3072]="ESSymbolLike",x[x.VoidLike=12288]="VoidLike",x[x.DisjointDomains=16809468]="DisjointDomains",x[x.UnionOrIntersection=786432]="UnionOrIntersection",x[x.StructuredType=917504]="StructuredType",x[x.TypeVariable=2162688]="TypeVariable",x[x.InstantiableNonPrimitive=14745600]="InstantiableNonPrimitive",x[x.InstantiablePrimitive=1048576]="InstantiablePrimitive",x[x.Instantiable=15794176]="Instantiable",x[x.StructuredOrInstantiable=16711680]="StructuredOrInstantiable",x[x.Narrowable=33492479]="Narrowable",x[x.NotUnionOrUnit=16909315]="NotUnionOrUnit",x[x.NotPrimitiveUnion=16748579]="NotPrimitiveUnion",x[x.RequiresWidening=402653184]="RequiresWidening",x[x.PropagatingFlags=939524096]="PropagatingFlags",x[x.NonWideningType=134217728]="NonWideningType",x[x.Wildcard=268435456]="Wildcard",x[x.EmptyObject=536870912]="EmptyObject",x[x.ConstructionFlags=939524096]="ConstructionFlags",x[x.GenericMappedType=134217728]="GenericMappedType",(C=e.ObjectFlags||(e.ObjectFlags={}))[C.Class=1]="Class",C[C.Interface=2]="Interface",C[C.Reference=4]="Reference",C[C.Tuple=8]="Tuple",C[C.Anonymous=16]="Anonymous",C[C.Mapped=32]="Mapped",C[C.Instantiated=64]="Instantiated",C[C.ObjectLiteral=128]="ObjectLiteral",C[C.EvolvingArray=256]="EvolvingArray",C[C.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",C[C.ContainsSpread=1024]="ContainsSpread",C[C.ReverseMapped=2048]="ReverseMapped",C[C.JsxAttributes=4096]="JsxAttributes",C[C.MarkerType=8192]="MarkerType",C[C.JSLiteral=16384]="JSLiteral",C[C.ClassOrInterface=3]="ClassOrInterface",(D=e.Variance||(e.Variance={}))[D.Invariant=0]="Invariant",D[D.Covariant=1]="Covariant",D[D.Contravariant=2]="Contravariant",D[D.Bivariant=3]="Bivariant",D[D.Independent=4]="Independent",(A=e.SignatureKind||(e.SignatureKind={}))[A.Call=0]="Call",A[A.Construct=1]="Construct",(L=e.IndexKind||(e.IndexKind={}))[L.String=0]="String",L[L.Number=1]="Number",(k=e.InferencePriority||(e.InferencePriority={}))[k.NakedTypeVariable=1]="NakedTypeVariable",k[k.HomomorphicMappedType=2]="HomomorphicMappedType",k[k.MappedTypeConstraint=4]="MappedTypeConstraint",k[k.ReturnType=8]="ReturnType",k[k.LiteralKeyof=16]="LiteralKeyof",k[k.NoConstraints=32]="NoConstraints",k[k.AlwaysStrict=64]="AlwaysStrict",k[k.PriorityImpliesCombination=28]="PriorityImpliesCombination",(N=e.InferenceFlags||(e.InferenceFlags={}))[N.None=0]="None",N[N.NoDefault=1]="NoDefault",N[N.AnyDefault=2]="AnyDefault",(I=e.Ternary||(e.Ternary={}))[I.False=0]="False",I[I.Maybe=1]="Maybe",I[I.True=-1]="True",(M=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[M.None=0]="None",M[M.ExportsProperty=1]="ExportsProperty",M[M.ModuleExports=2]="ModuleExports",M[M.PrototypeProperty=3]="PrototypeProperty",M[M.ThisProperty=4]="ThisProperty",M[M.Property=5]="Property",M[M.Prototype=6]="Prototype",(w=O=e.DiagnosticCategory||(e.DiagnosticCategory={}))[w.Warning=0]="Warning",w[w.Error=1]="Error",w[w.Suggestion=2]="Suggestion",w[w.Message=3]="Message",e.diagnosticCategoryName=function(e,n){void 0===n&&(n=!0);var t=O[e.category];return n?t.toLowerCase():t},(P=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[P.Classic=1]="Classic",P[P.NodeJs=2]="NodeJs",(R=e.ModuleKind||(e.ModuleKind={}))[R.None=0]="None",R[R.CommonJS=1]="CommonJS",R[R.AMD=2]="AMD",R[R.UMD=3]="UMD",R[R.System=4]="System",R[R.ES2015=5]="ES2015",R[R.ESNext=6]="ESNext",(F=e.JsxEmit||(e.JsxEmit={}))[F.None=0]="None",F[F.Preserve=1]="Preserve",F[F.React=2]="React",F[F.ReactNative=3]="ReactNative",(G=e.NewLineKind||(e.NewLineKind={}))[G.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",G[G.LineFeed=1]="LineFeed",(V=e.ScriptKind||(e.ScriptKind={}))[V.Unknown=0]="Unknown",V[V.JS=1]="JS",V[V.JSX=2]="JSX",V[V.TS=3]="TS",V[V.TSX=4]="TSX",V[V.External=5]="External",V[V.JSON=6]="JSON",V[V.Deferred=7]="Deferred",(B=e.ScriptTarget||(e.ScriptTarget={}))[B.ES3=0]="ES3",B[B.ES5=1]="ES5",B[B.ES2015=2]="ES2015",B[B.ES2016=3]="ES2016",B[B.ES2017=4]="ES2017",B[B.ES2018=5]="ES2018",B[B.ESNext=6]="ESNext",B[B.JSON=100]="JSON",B[B.Latest=6]="Latest",(K=e.LanguageVariant||(e.LanguageVariant={}))[K.Standard=0]="Standard",K[K.JSX=1]="JSX",(j=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[j.None=0]="None",j[j.Recursive=1]="Recursive",(H=e.CharacterCodes||(e.CharacterCodes={}))[H.nullCharacter=0]="nullCharacter",H[H.maxAsciiCharacter=127]="maxAsciiCharacter",H[H.lineFeed=10]="lineFeed",H[H.carriageReturn=13]="carriageReturn",H[H.lineSeparator=8232]="lineSeparator",H[H.paragraphSeparator=8233]="paragraphSeparator",H[H.nextLine=133]="nextLine",H[H.space=32]="space",H[H.nonBreakingSpace=160]="nonBreakingSpace",H[H.enQuad=8192]="enQuad",H[H.emQuad=8193]="emQuad",H[H.enSpace=8194]="enSpace",H[H.emSpace=8195]="emSpace",H[H.threePerEmSpace=8196]="threePerEmSpace",H[H.fourPerEmSpace=8197]="fourPerEmSpace",H[H.sixPerEmSpace=8198]="sixPerEmSpace",H[H.figureSpace=8199]="figureSpace",H[H.punctuationSpace=8200]="punctuationSpace",H[H.thinSpace=8201]="thinSpace",H[H.hairSpace=8202]="hairSpace",H[H.zeroWidthSpace=8203]="zeroWidthSpace",H[H.narrowNoBreakSpace=8239]="narrowNoBreakSpace",H[H.ideographicSpace=12288]="ideographicSpace",H[H.mathematicalSpace=8287]="mathematicalSpace",H[H.ogham=5760]="ogham",H[H._=95]="_",H[H.$=36]="$",H[H._0=48]="_0",H[H._1=49]="_1",H[H._2=50]="_2",H[H._3=51]="_3",H[H._4=52]="_4",H[H._5=53]="_5",H[H._6=54]="_6",H[H._7=55]="_7",H[H._8=56]="_8",H[H._9=57]="_9",H[H.a=97]="a",H[H.b=98]="b",H[H.c=99]="c",H[H.d=100]="d",H[H.e=101]="e",H[H.f=102]="f",H[H.g=103]="g",H[H.h=104]="h",H[H.i=105]="i",H[H.j=106]="j",H[H.k=107]="k",H[H.l=108]="l",H[H.m=109]="m",H[H.n=110]="n",H[H.o=111]="o",H[H.p=112]="p",H[H.q=113]="q",H[H.r=114]="r",H[H.s=115]="s",H[H.t=116]="t",H[H.u=117]="u",H[H.v=118]="v",H[H.w=119]="w",H[H.x=120]="x",H[H.y=121]="y",H[H.z=122]="z",H[H.A=65]="A",H[H.B=66]="B",H[H.C=67]="C",H[H.D=68]="D",H[H.E=69]="E",H[H.F=70]="F",H[H.G=71]="G",H[H.H=72]="H",H[H.I=73]="I",H[H.J=74]="J",H[H.K=75]="K",H[H.L=76]="L",H[H.M=77]="M",H[H.N=78]="N",H[H.O=79]="O",H[H.P=80]="P",H[H.Q=81]="Q",H[H.R=82]="R",H[H.S=83]="S",H[H.T=84]="T",H[H.U=85]="U",H[H.V=86]="V",H[H.W=87]="W",H[H.X=88]="X",H[H.Y=89]="Y",H[H.Z=90]="Z",H[H.ampersand=38]="ampersand",H[H.asterisk=42]="asterisk",H[H.at=64]="at",H[H.backslash=92]="backslash",H[H.backtick=96]="backtick",H[H.bar=124]="bar",H[H.caret=94]="caret",H[H.closeBrace=125]="closeBrace",H[H.closeBracket=93]="closeBracket",H[H.closeParen=41]="closeParen",H[H.colon=58]="colon",H[H.comma=44]="comma",H[H.dot=46]="dot",H[H.doubleQuote=34]="doubleQuote",H[H.equals=61]="equals",H[H.exclamation=33]="exclamation",H[H.greaterThan=62]="greaterThan",H[H.hash=35]="hash",H[H.lessThan=60]="lessThan",H[H.minus=45]="minus",H[H.openBrace=123]="openBrace",H[H.openBracket=91]="openBracket",H[H.openParen=40]="openParen",H[H.percent=37]="percent",H[H.plus=43]="plus",H[H.question=63]="question",H[H.semicolon=59]="semicolon",H[H.singleQuote=39]="singleQuote",H[H.slash=47]="slash",H[H.tilde=126]="tilde",H[H.backspace=8]="backspace",H[H.formFeed=12]="formFeed",H[H.byteOrderMark=65279]="byteOrderMark",H[H.tab=9]="tab",H[H.verticalTab=11]="verticalTab",(U=e.Extension||(e.Extension={})).Ts=".ts",U.Tsx=".tsx",U.Dts=".d.ts",U.Js=".js",U.Jsx=".jsx",U.Json=".json",(W=e.TransformFlags||(e.TransformFlags={}))[W.None=0]="None",W[W.TypeScript=1]="TypeScript",W[W.ContainsTypeScript=2]="ContainsTypeScript",W[W.ContainsJsx=4]="ContainsJsx",W[W.ContainsESNext=8]="ContainsESNext",W[W.ContainsES2017=16]="ContainsES2017",W[W.ContainsES2016=32]="ContainsES2016",W[W.ES2015=64]="ES2015",W[W.ContainsES2015=128]="ContainsES2015",W[W.Generator=256]="Generator",W[W.ContainsGenerator=512]="ContainsGenerator",W[W.DestructuringAssignment=1024]="DestructuringAssignment",W[W.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",W[W.ContainsDecorators=4096]="ContainsDecorators",W[W.ContainsPropertyInitializer=8192]="ContainsPropertyInitializer",W[W.ContainsLexicalThis=16384]="ContainsLexicalThis",W[W.ContainsCapturedLexicalThis=32768]="ContainsCapturedLexicalThis",W[W.ContainsLexicalThisInComputedPropertyName=65536]="ContainsLexicalThisInComputedPropertyName",W[W.ContainsDefaultValueAssignments=131072]="ContainsDefaultValueAssignments",W[W.ContainsParameterPropertyAssignments=262144]="ContainsParameterPropertyAssignments",W[W.ContainsSpread=524288]="ContainsSpread",W[W.ContainsObjectSpread=1048576]="ContainsObjectSpread",W[W.ContainsRest=524288]="ContainsRest",W[W.ContainsObjectRest=1048576]="ContainsObjectRest",W[W.ContainsComputedPropertyName=2097152]="ContainsComputedPropertyName",W[W.ContainsBlockScopedBinding=4194304]="ContainsBlockScopedBinding",W[W.ContainsBindingPattern=8388608]="ContainsBindingPattern",W[W.ContainsYield=16777216]="ContainsYield",W[W.ContainsHoistedDeclarationOrCompletion=33554432]="ContainsHoistedDeclarationOrCompletion",W[W.ContainsDynamicImport=67108864]="ContainsDynamicImport",W[W.Super=134217728]="Super",W[W.ContainsSuper=268435456]="ContainsSuper",W[W.HasComputedFlags=536870912]="HasComputedFlags",W[W.AssertTypeScript=3]="AssertTypeScript",W[W.AssertJsx=4]="AssertJsx",W[W.AssertESNext=8]="AssertESNext",W[W.AssertES2017=16]="AssertES2017",W[W.AssertES2016=32]="AssertES2016",W[W.AssertES2015=192]="AssertES2015",W[W.AssertGenerator=768]="AssertGenerator",W[W.AssertDestructuringAssignment=3072]="AssertDestructuringAssignment",W[W.OuterExpressionExcludes=536872257]="OuterExpressionExcludes",W[W.PropertyAccessExcludes=671089985]="PropertyAccessExcludes",W[W.NodeExcludes=939525441]="NodeExcludes",W[W.ArrowFunctionExcludes=1003902273]="ArrowFunctionExcludes",W[W.FunctionExcludes=1003935041]="FunctionExcludes",W[W.ConstructorExcludes=1003668801]="ConstructorExcludes",W[W.MethodOrAccessorExcludes=1003668801]="MethodOrAccessorExcludes",W[W.ClassExcludes=942011713]="ClassExcludes",W[W.ModuleExcludes=977327425]="ModuleExcludes",W[W.TypeExcludes=-3]="TypeExcludes",W[W.ObjectLiteralExcludes=942740801]="ObjectLiteralExcludes",W[W.ArrayLiteralOrCallOrNewExcludes=940049729]="ArrayLiteralOrCallOrNewExcludes",W[W.VariableDeclarationListExcludes=948962625]="VariableDeclarationListExcludes",W[W.ParameterExcludes=939525441]="ParameterExcludes",W[W.CatchClauseExcludes=940574017]="CatchClauseExcludes",W[W.BindingPatternExcludes=940049729]="BindingPatternExcludes",W[W.TypeScriptClassSyntaxMask=274432]="TypeScriptClassSyntaxMask",W[W.ES2015FunctionSyntaxMask=163840]="ES2015FunctionSyntaxMask",(q=e.EmitFlags||(e.EmitFlags={}))[q.None=0]="None",q[q.SingleLine=1]="SingleLine",q[q.AdviseOnEmitNode=2]="AdviseOnEmitNode",q[q.NoSubstitution=4]="NoSubstitution",q[q.CapturesThis=8]="CapturesThis",q[q.NoLeadingSourceMap=16]="NoLeadingSourceMap",q[q.NoTrailingSourceMap=32]="NoTrailingSourceMap",q[q.NoSourceMap=48]="NoSourceMap",q[q.NoNestedSourceMaps=64]="NoNestedSourceMaps",q[q.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",q[q.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",q[q.NoTokenSourceMaps=384]="NoTokenSourceMaps",q[q.NoLeadingComments=512]="NoLeadingComments",q[q.NoTrailingComments=1024]="NoTrailingComments",q[q.NoComments=1536]="NoComments",q[q.NoNestedComments=2048]="NoNestedComments",q[q.HelperName=4096]="HelperName",q[q.ExportName=8192]="ExportName",q[q.LocalName=16384]="LocalName",q[q.InternalName=32768]="InternalName",q[q.Indented=65536]="Indented",q[q.NoIndentation=131072]="NoIndentation",q[q.AsyncFunctionBody=262144]="AsyncFunctionBody",q[q.ReuseTempVariableScope=524288]="ReuseTempVariableScope",q[q.CustomPrologue=1048576]="CustomPrologue",q[q.NoHoisting=2097152]="NoHoisting",q[q.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",q[q.Iterator=8388608]="Iterator",q[q.NoAsciiEscaping=16777216]="NoAsciiEscaping",q[q.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",q[q.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",(z=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[z.Extends=1]="Extends",z[z.Assign=2]="Assign",z[z.Rest=4]="Rest",z[z.Decorate=8]="Decorate",z[z.Metadata=16]="Metadata",z[z.Param=32]="Param",z[z.Awaiter=64]="Awaiter",z[z.Generator=128]="Generator",z[z.Values=256]="Values",z[z.Read=512]="Read",z[z.Spread=1024]="Spread",z[z.Await=2048]="Await",z[z.AsyncGenerator=4096]="AsyncGenerator",z[z.AsyncDelegator=8192]="AsyncDelegator",z[z.AsyncValues=16384]="AsyncValues",z[z.ExportStar=32768]="ExportStar",z[z.MakeTemplateObject=65536]="MakeTemplateObject",z[z.FirstEmitHelper=1]="FirstEmitHelper",z[z.LastEmitHelper=65536]="LastEmitHelper",z[z.ForOfIncludes=256]="ForOfIncludes",z[z.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",z[z.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",z[z.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",z[z.SpreadIncludes=1536]="SpreadIncludes",(J=e.EmitHint||(e.EmitHint={}))[J.SourceFile=0]="SourceFile",J[J.Expression=1]="Expression",J[J.IdentifierName=2]="IdentifierName",J[J.MappedTypeParameter=3]="MappedTypeParameter",J[J.Unspecified=4]="Unspecified",(X=e.ListFormat||(e.ListFormat={}))[X.None=0]="None",X[X.SingleLine=0]="SingleLine",X[X.MultiLine=1]="MultiLine",X[X.PreserveLines=2]="PreserveLines",X[X.LinesMask=3]="LinesMask",X[X.NotDelimited=0]="NotDelimited",X[X.BarDelimited=4]="BarDelimited",X[X.AmpersandDelimited=8]="AmpersandDelimited",X[X.CommaDelimited=16]="CommaDelimited",X[X.DelimitersMask=28]="DelimitersMask",X[X.AllowTrailingComma=32]="AllowTrailingComma",X[X.Indented=64]="Indented",X[X.SpaceBetweenBraces=128]="SpaceBetweenBraces",X[X.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",X[X.Braces=512]="Braces",X[X.Parenthesis=1024]="Parenthesis",X[X.AngleBrackets=2048]="AngleBrackets",X[X.SquareBrackets=4096]="SquareBrackets",X[X.BracketsMask=7680]="BracketsMask",X[X.OptionalIfUndefined=8192]="OptionalIfUndefined",X[X.OptionalIfEmpty=16384]="OptionalIfEmpty",X[X.Optional=24576]="Optional",X[X.PreferNewLine=32768]="PreferNewLine",X[X.NoTrailingNewLine=65536]="NoTrailingNewLine",X[X.NoInterveningComments=131072]="NoInterveningComments",X[X.NoSpaceIfEmpty=262144]="NoSpaceIfEmpty",X[X.SingleElement=524288]="SingleElement",X[X.Modifiers=131328]="Modifiers",X[X.HeritageClauses=256]="HeritageClauses",X[X.SingleLineTypeLiteralMembers=384]="SingleLineTypeLiteralMembers",X[X.MultiLineTypeLiteralMembers=16449]="MultiLineTypeLiteralMembers",X[X.TupleTypeElements=272]="TupleTypeElements",X[X.UnionTypeConstituents=260]="UnionTypeConstituents",X[X.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",X[X.ObjectBindingPatternElements=262576]="ObjectBindingPatternElements",X[X.ArrayBindingPatternElements=262448]="ArrayBindingPatternElements",X[X.ObjectLiteralExpressionProperties=263122]="ObjectLiteralExpressionProperties",X[X.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",X[X.CommaListElements=272]="CommaListElements",X[X.CallExpressionArguments=1296]="CallExpressionArguments",X[X.NewExpressionArguments=9488]="NewExpressionArguments",X[X.TemplateExpressionSpans=131072]="TemplateExpressionSpans",X[X.SingleLineBlockStatements=384]="SingleLineBlockStatements",X[X.MultiLineBlockStatements=65]="MultiLineBlockStatements",X[X.VariableDeclarationList=272]="VariableDeclarationList",X[X.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",X[X.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",X[X.ClassHeritageClauses=0]="ClassHeritageClauses",X[X.ClassMembers=65]="ClassMembers",X[X.InterfaceMembers=65]="InterfaceMembers",X[X.EnumMembers=81]="EnumMembers",X[X.CaseBlockClauses=65]="CaseBlockClauses",X[X.NamedImportsOrExportsElements=262576]="NamedImportsOrExportsElements",X[X.JsxElementOrFragmentChildren=131072]="JsxElementOrFragmentChildren",X[X.JsxElementAttributes=131328]="JsxElementAttributes",X[X.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",X[X.HeritageClauseTypes=272]="HeritageClauseTypes",X[X.SourceFileStatements=65537]="SourceFileStatements",X[X.Decorators=24577]="Decorators",X[X.TypeArguments=26896]="TypeArguments",X[X.TypeParameters=26896]="TypeParameters",X[X.Parameters=1296]="Parameters",X[X.IndexSignatureParameters=4432]="IndexSignatureParameters",(Y=e.PragmaKindFlags||(e.PragmaKindFlags={}))[Y.None=0]="None",Y[Y.TripleSlashXML=1]="TripleSlashXML",Y[Y.SingleLine=2]="SingleLine",Y[Y.MultiLine=4]="MultiLine",Y[Y.All=7]="All",Y[Y.Default=7]="Default",e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4}}}(ts||(ts={})),function(_){var t,e,g,n;_.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},(e=t=_.FileWatcherEventKind||(_.FileWatcherEventKind={}))[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",(n=g=_.PollingInterval||(_.PollingInterval={}))[n.High=2e3]="High",n[n.Medium=500]="Medium",n[n.Low=250]="Low";var r,a,i=[r=250,a=2*r,4*a];function s(e){var n;return(n={})[g.Low]=e.Low,n[g.Medium]=e.Medium,n[g.High]=e.High,n}_.watchFileUsingPriorityPollingInterval=function(e,n,t,r){return e.watchFile(n,t,i[r])},_.missingFileModifiedTime=new Date(0);var c={Low:32,Medium:64,High:256},v=s(c);function o(o){if(o.getEnvironmentVariable){var r=function(e,n){var t=a(e);if(t)return r("Low"),r("Medium"),r("High"),!0;return!1;function r(e){n[e]=t[e]||n[e]}}("TSC_WATCH_POLLINGINTERVAL",g);v=e("TSC_WATCH_POLLINGCHUNKSIZE",c)||v,_.unchangedPollThresholds=e("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",c)||_.unchangedPollThresholds}function a(a){var i;return e("Low"),e("Medium"),e("High"),i;function e(e){var n,t,r=(n=a,t=e,o.getEnvironmentVariable(n+"_"+t.toUpperCase()));r&&((i||(i={}))[e]=Number(r))}}function e(e,n){var t=a(e);return(r||t)&&s(t?__assign({},n,t):n)}}function y(e,n){var t=e.mtime.getTime(),r=n.getTime();return t!==r&&(e.mtime=n,e.callback(e.fileName,l(t,r)),!0)}function l(e,n){return 0===e?t.Created:0===n?t.Deleted:t.Changed}_.unchangedPollThresholds=s(c),_.setCustomPollingValues=o,_.createDynamicPriorityPollingWatchFile=function(n){var a=[],u=[],t=e(g.Low),r=e(g.Medium),i=e(g.High);return function(e,n,t){var r={fileName:e,callback:n,unchangedPolls:0,mtime:f(e)};return a.push(r),d(r,t),{close:function(){r.isClosed=!0,_.unorderedRemoveItem(a,r)}}};function e(e){var n=[];return n.pollingInterval=e,n.pollIndex=0,n.pollScheduled=!1,n}function o(e){e.pollIndex=c(e,e.pollingInterval,e.pollIndex,v[e.pollingInterval]),e.length?m(e.pollingInterval):(_.Debug.assert(0===e.pollIndex),e.pollScheduled=!1)}function s(e){c(u,g.Low,0,u.length),o(e),!e.pollScheduled&&u.length&&m(g.Low)}function c(e,n,t,r){for(var a=e.length,i=t,o=0;o<r&&0<a;++t===e.length&&(i<t&&(e.length=i),i=t=0),a--){var s=e[t];if(s)if(s.isClosed)e[t]=void 0;else{o++;var c=y(s,f(s.fileName));s.isClosed?e[t]=void 0:c?(s.unchangedPolls=0,e!==u&&(e[t]=void 0,l=s,u.push(l),p(g.Low))):s.unchangedPolls!==_.unchangedPollThresholds[n]?s.unchangedPolls++:e===u?(s.unchangedPolls=1,e[t]=void 0,d(s,g.Low)):n!==g.High&&(s.unchangedPolls++,e[t]=void 0,d(s,n===g.Low?g.Medium:g.High)),e[t]&&(i<t&&(e[i]=s,e[t]=void 0),i++)}}var l;return t}function l(e){switch(e){case g.Low:return t;case g.Medium:return r;case g.High:return i}}function d(e,n){l(n).push(e),p(n)}function p(e){l(e).pollScheduled||m(e)}function m(e){l(e).pollScheduled=n.setTimeout(e===g.Low?s:o,e,l(e))}function f(e){return n.getModifiedTime(e)||_.missingFileModifiedTime}},_.onWatchedFileStat=y,_.getFileWatcherEventKind=l,_.createRecursiveDirectoryWatcher=function(a){var i=_.createMap(),o=_.createMultiMap(),s=_.getStringComparer(!a.useCaseSensitiveFileNames),c=_.createGetCanonicalFileName(a.useCaseSensitiveFileNames);return l;function l(e,n){var r=c(e),t=i.get(r);return t?t.refCount++:(t={watcher:a.watchDirectory(e,function(t){o.forEach(function(e,n){(n===r||_.startsWith(r,n)&&r[n.length]===_.directorySeparator)&&e.forEach(function(e){return e(t)})}),u(e,r)}),refCount:1,childWatches:_.emptyArray},i.set(r,t),u(e,r)),n&&o.add(r,n),{dirName:e,close:function(){var e=_.Debug.assertDefined(i.get(r));n&&o.remove(r,n),e.refCount--,e.refCount||(i.delete(r),_.closeFileWatcherOf(e),e.childWatches.forEach(_.closeFileWatcher))}}}function u(e,n){var t=i.get(n);t&&(t.childWatches=function(t,e){var n;return _.enumerateInsertsAndDeletes(a.directoryExists(t)?_.mapDefined(a.getAccessibleSortedChildDirectories(t),function(e){var n=_.getNormalizedAbsolutePath(e,t);return 0===s(n,_.normalizePath(a.realpath(n)))?n:void 0}):_.emptyArray,e,function(e,n){return s(e,n.dirName)},function(e){r(l(e))},_.closeFileWatcher,r),n||_.emptyArray;function r(e){(n||(n=[])).push(e)}}(e,t.childWatches))}},_.getNodeMajorVersion=function(){if("undefined"!=typeof process){var e=process.version;if(e){var n=e.indexOf(".");if(-1!==n)return parseInt(e.substring(1,n))}}},_.sys=void 0,_.sys&&_.sys.getEnvironmentVariable&&(o(_.sys),_.Debug.currentAssertionLevel=/^development$/i.test(_.sys.getEnvironmentVariable("NODE_ENV"))?1:0),_.sys&&_.sys.debugMode&&(_.Debug.isDebugging=!0)}(ts||(ts={})),function(e){function n(e,n,t,r,a){return{code:e,category:n,key:t,message:r,reportsUnnecessary:a}}e.Diagnostics={Unterminated_string_literal:n(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:n(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:n(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:n(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:n(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:n(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:n(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:n(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:n(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:n(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:n(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:n(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:n(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:n(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:n(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:n(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:n(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:n(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:n(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:n(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:n(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:n(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:n(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:n(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:n(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:n(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:n(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:n(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:n(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:n(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:n(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:n(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:n(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:n(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:n(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:n(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:n(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:n(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:n(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:n(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:n(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:n(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:n(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:n(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:n(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:n(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:n(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:n(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:n(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:n(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:n(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:n(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:n(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:n(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:n(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:n(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:n(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:n(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:n(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:n(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:n(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:n(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:n(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:n(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:n(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:n(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:n(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:n(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:n(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:n(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:n(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Duplicate_identifier_0:n(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:n(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:n(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:n(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:n(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:n(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:n(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:n(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:n(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:n(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:n(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:n(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_may_only_extend_a_class_or_another_interface:n(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),Type_parameter_0_has_a_circular_constraint:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:n(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:n(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:n(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:n(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:n(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:n(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:n(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:n(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:n(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:n(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:n(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:n(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:n(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:n(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:n(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:n(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:n(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:n(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:n(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:n(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:n(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),Overload_signature_is_not_compatible_with_function_implementation:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:n(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:n(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:n(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:n(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:n(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_may_only_implement_another_class_or_interface:n(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","A class may only implement another class or interface."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:n(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:n(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:n(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:n(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:n(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:n(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:n(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:n(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:n(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:n(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:n(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:n(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:n(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:n(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:n(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:n(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:n(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:n(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),Type_0_is_not_an_array_type:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_a_class_or_interface_type:n(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),Base_constructors_must_all_have_the_same_return_type:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:n(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:n(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:n(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:n(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:n(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:n(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:n(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:n(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:n(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:n(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","Cannot assign to '{0}' because it is a constant or a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:n(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:n(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:n(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:n(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:n(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:n(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:n(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery:n(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i @types/jquery`."),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:n(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`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:n(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:n(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:n(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:n(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:n(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),JSX_element_attributes_type_0_may_not_be_a_union_type:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:n(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:n(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:n(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:n(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"),Index_0_is_out_of_bounds_in_tuple_of_length_1:n(2733,e.DiagnosticCategory.Error,"Index_0_is_out_of_bounds_in_tuple_of_length_1_2733","Index '{0}' is out-of-bounds in tuple of length {1}."),It_is_highly_likely_that_you_are_missing_a_semicolon:n(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."),Import_declaration_0_is_using_private_name_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:n(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:n(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:n(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:n(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:n(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:n(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:n(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:n(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:n(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:n(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:n(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:n(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:n(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:n(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:n(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:n(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:n(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:n(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:n(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:n(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:n(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:n(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:n(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:n(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:n(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:n(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:n(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:n(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:n(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:n(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:n(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:n(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:n(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:n(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:n(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:n(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:n(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:n(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:n(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:n(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:n(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:n(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:n(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:n(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:n(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:n(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:n(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:n(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:n(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:n(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:n(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:n(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:n(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:n(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:n(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:n(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:n(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:n(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:n(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:n(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:n(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:n(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:n(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:n(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:n(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:n(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:n(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:n(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:n(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:n(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:n(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:n(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:n(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:n(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:n(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:n(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:n(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:n(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:n(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:n(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:n(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:n(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:n(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:n(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:n(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:n(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:n(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:n(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:n(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:n(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:n(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:n(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:n(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:n(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),_0_was_also_declared_here:n(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:n(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Projects_to_reference:n(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:n(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:n(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:n(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:n(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:n(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:n(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:n(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:n(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:n(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:n(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:n(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:n(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),You_cannot_rename_this_element:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:n(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:n(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:n(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:n(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:n(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:n(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:n(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_declaration_for_Colon_0:n(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'"),Remove_import_from_0:n(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:n(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:n(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:n(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_destructuring:n(90009,e.DiagnosticCategory.Message,"Remove_destructuring_90009","Remove destructuring"),Remove_variable_statement:n(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:n(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:n(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:n(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:n(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:n(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:n(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:n(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:n(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:n(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:n(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:n(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:n(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:n(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:n(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:n(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:n(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:n(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:n(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:n(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:n(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:n(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:n(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:n(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}\""),Convert_function_to_an_ES2015_class:n(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:n(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:n(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:n(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:n(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:n(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:n(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:n(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:n(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:n(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:n(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:n(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:n(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:n(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:n(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:n(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:n(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:n(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:n(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Add_all_missing_members:n(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:n(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:n(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:n(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:n(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:n(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:n(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:n(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:n(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:n(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:n(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:n(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:n(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:n(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:n(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:n(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:n(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:n(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:n(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:n(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:n(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:n(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:n(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:n(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:n(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:n(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:n(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:n(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:n(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:n(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:n(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:n(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:n(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:n(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:n(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:n(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:n(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:n(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:n(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:n(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:n(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:n(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:n(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:n(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:n(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Generate_types_for_0:n(95067,e.DiagnosticCategory.Message,"Generate_types_for_0_95067","Generate types for '{0}'"),Generate_types_for_all_packages_without_types:n(95068,e.DiagnosticCategory.Message,"Generate_types_for_all_packages_without_types_95068","Generate types for all packages without types")}}(ts||(ts={})),function(R){var e;function F(e){return 71<=e}R.tokenIsIdentifierOrKeyword=F,R.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 29===e||F(e)};var n=((e={abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76}).constructor=123,e.debugger=78,e.declare=124,e.default=79,e.delete=80,e.do=81,e.else=82,e.enum=83,e.export=84,e.extends=85,e.false=86,e.finally=87,e.for=88,e.from=143,e.function=89,e.get=125,e.if=90,e.implements=108,e.import=91,e.in=92,e.infer=126,e.instanceof=93,e.interface=109,e.is=127,e.keyof=128,e.let=110,e.module=129,e.namespace=130,e.never=131,e.new=94,e.null=95,e.number=134,e.object=135,e.package=111,e.private=112,e.protected=113,e.public=114,e.readonly=132,e.require=133,e.global=144,e.return=96,e.set=136,e.static=115,e.string=137,e.super=97,e.switch=98,e.symbol=138,e.this=99,e.throw=100,e.true=101,e.try=102,e.type=139,e.typeof=103,e.undefined=140,e.unique=141,e.unknown=142,e.var=104,e.void=105,e.while=106,e.with=107,e.yield=116,e.async=120,e.await=121,e.of=145,e),G=R.createMapFromTemplate(n),t=R.createMapFromTemplate(__assign({},n,{"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,"</":28,">>":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57})),r=[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],a=[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],i=[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],o=[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 s(e,n){if(e<n[0])return!1;for(var t,r=0,a=n.length;r+1<a;){if(t=r+(a-r)/2,n[t-=t%2]<=e&&e<=n[t+1])return!0;e<n[t]?a=t:r=t+2}return!1}function c(e,n){return s(e,1<=n?i:r)}R.isUnicodeIdentifierStart=c;var l,u=(l=[],t.forEach(function(e,n){l[e]=n}),l);function d(e){for(var n=new Array,t=0,r=0;t<e.length;){var a=e.charCodeAt(t);switch(t++,a){case 13:10===e.charCodeAt(t)&&t++;case 10:n.push(r),r=t;break;default:127<a&&K(a)&&(n.push(r),r=t)}}return n.push(r),n}function p(e,n,t,r){(n<0||n>=e.length)&&R.Debug.fail("Bad line number. Line: "+n+", lineStarts.length: "+e.length+" , line map is correct? "+(void 0!==r?R.arraysEqual(e,d(r)):"unknown"));var a=e[n]+t;return n<e.length-1?R.Debug.assert(a<e[n+1]):void 0!==r&&R.Debug.assert(a<=r.length),a}function m(e){return e.lineMap||(e.lineMap=d(e.text))}function f(e,n){var t=R.binarySearch(e,n,R.identity,R.compareValues);return t<0&&(t=~t-1,R.Debug.assert(-1!==t,"position cannot precede the beginning of the file")),{line:t,character:n-e[t]}}function V(e){return B(e)||K(e)}function B(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||8192<=e&&e<=8203||8239===e||8287===e||12288===e||65279===e}function K(e){return 10===e||13===e||8232===e||8233===e}function j(e){return 48<=e&&e<=57}function H(e){return 48<=e&&e<=55}R.tokenToString=function(e){return u[e]},R.stringToToken=function(e){return t.get(e)},R.computeLineStarts=d,R.getPositionOfLineAndCharacter=function(e,n,t){return p(m(e),n,t,e.text)},R.computePositionOfLineAndCharacter=p,R.getLineStarts=m,R.computeLineAndCharacterOfPosition=f,R.getLineAndCharacterOfPosition=function(e,n){return f(m(e),n)},R.isWhiteSpaceLike=V,R.isWhiteSpaceSingleLine=B,R.isLineBreak=K,R.isOctalDigit=H,R.couldStartTrivia=function(e,n){var t=e.charCodeAt(n);switch(t){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===n;default:return 127<t}},R.skipTrivia=function(e,n,t,r){if(void 0===r&&(r=!1),R.positionIsSynthesized(n))return n;for(;;){var a=e.charCodeAt(n);switch(a){case 13:10===e.charCodeAt(n+1)&&n++;case 10:if(n++,t)return n;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(r)break;if(47===e.charCodeAt(n+1)){for(n+=2;n<e.length&&!K(e.charCodeAt(n));)n++;continue}if(42!==e.charCodeAt(n+1))break;for(n+=2;n<e.length;){if(42===e.charCodeAt(n)&&47===e.charCodeAt(n+1)){n+=2;break}n++}continue;case 60:case 124:case 61:case 62:if(U(e,n)){n=W(e,n);continue}break;case 35:if(0===n&&q(e,n)){n=z(e,n);continue}break;default:if(127<a&&V(a)){n++;continue}}return n}};var _="<<<<<<<".length;function U(e,n){if(R.Debug.assert(0<=n),0===n||K(e.charCodeAt(n-1))){var t=e.charCodeAt(n);if(n+_<e.length){for(var r=0;r<_;r++)if(e.charCodeAt(n+r)!==t)return!1;return 61===t||32===e.charCodeAt(n+_)}}return!1}function W(e,n,t){t&&t(R.Diagnostics.Merge_conflict_marker_encountered,n,_);var r=e.charCodeAt(n),a=e.length;if(60===r||62===r)for(;n<a&&!K(e.charCodeAt(n));)n++;else for(R.Debug.assert(124===r||61===r);n<a;){var i=e.charCodeAt(n);if((61===i||62===i)&&i!==r&&U(e,n))break;n++}return n}var g=/^#!.*/;function q(e,n){return R.Debug.assert(0===n),g.test(e)}function z(e,n){return n+=g.exec(e)[0].length}function v(e,n,t,r,a,i,o){var s,c,l,u,d=!1,p=r||0===t,m=o;e:for(;0<=t&&t<n.length;){var f=n.charCodeAt(t);switch(f){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)break e;p=!0,d&&(u=!0);continue;case 9:case 11:case 12:case 32:t++;continue;case 47:var _=n.charCodeAt(t+1),g=!1;if(47!==_&&42!==_)break e;var v=47===_?2:3,y=t;if(t+=2,47===_)for(;t<n.length;){if(K(n.charCodeAt(t))){g=!0;break}t++}else for(;t<n.length;){if(42===n.charCodeAt(t)&&47===n.charCodeAt(t+1)){t+=2;break}t++}if(p){if(d&&(m=a(s,c,l,u,i,m),!e&&m))return m;s=y,c=t,l=v,u=g,d=!0}continue;default:if(127<f&&V(f)){d&&K(f)&&(u=!0),t++;continue}break e}}return d&&(m=a(s,c,l,u,i,m)),m}function y(e,n,t,r,a){return v(!0,e,n,!1,t,r,a)}function h(e,n,t,r,a){return v(!0,e,n,!0,t,r,a)}function b(e,n,t,r,a,i){return i||(i=[]),i.push({kind:t,pos:e,end:n,hasTrailingNewLine:r}),i}function J(e,n){return 65<=e&&e<=90||97<=e&&e<=122||36===e||95===e||127<e&&c(e,n)}function X(e,n){return 65<=e&&e<=90||97<=e&&e<=122||48<=e&&e<=57||36===e||95===e||127<e&&s(e,1<=n?o:a)}R.forEachLeadingCommentRange=function(e,n,t,r){return v(!1,e,n,!1,t,r)},R.forEachTrailingCommentRange=function(e,n,t,r){return v(!1,e,n,!0,t,r)},R.reduceEachLeadingCommentRange=y,R.reduceEachTrailingCommentRange=h,R.getLeadingCommentRanges=function(e,n){return y(e,n,b,void 0,void 0)},R.getTrailingCommentRanges=function(e,n){return h(e,n,b,void 0,void 0)},R.getShebang=function(e){var n=g.exec(e);if(n)return n[0]},R.isIdentifierStart=J,R.isIdentifierPart=X,R.isIdentifierText=function(e,n){if(!J(e.charCodeAt(0),n))return!1;for(var t=1;t<e.length;t++)if(!X(e.charCodeAt(t),n))return!1;return!0},R.createScanner=function(o,s,c,e,a,n,t){void 0===c&&(c=0);var d,p,m,f,_,g,v,y=e,l=0;return w(y,n,t),{getStartPos:function(){return m},getTextPos:function(){return d},getToken:function(){return _},getTokenPos:function(){return f},getTokenText:function(){return y.substring(f,d)},getTokenValue:function(){return g},hasExtendedUnicodeEscape:function(){return 0!=(8&v)},hasPrecedingLineBreak:function(){return 0!=(1&v)},isIdentifier:function(){return 71===_||107<_},isReservedWord:function(){return 72<=_&&_<=107},isUnterminated:function(){return 0!=(4&v)},getTokenFlags:function(){return v},reScanGreaterToken:function(){if(29===_){if(62===y.charCodeAt(d))return _=62===y.charCodeAt(d+1)?61===y.charCodeAt(d+2)?(d+=3,67):(d+=2,47):61===y.charCodeAt(d+1)?(d+=2,66):(d++,46);if(61===y.charCodeAt(d))return d++,_=31}return _},reScanSlashToken:function(){if(41===_||63===_){for(var e=f+1,n=!1,t=!1;;){if(p<=e){v|=4,u(R.Diagnostics.Unterminated_regular_expression_literal);break}var r=y.charCodeAt(e);if(K(r)){v|=4,u(R.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===r&&!t){e++;break}91===r?t=!0:92===r?n=!0:93===r&&(t=!1)}e++}for(;e<p&&X(y.charCodeAt(e),o);)e++;d=e,g=y.substring(f,d),_=12}return _},reScanTemplateToken:function(){return R.Debug.assert(18===_,"'reScanTemplateToken' should only be called on a '}'"),d=f,_=x()},scanJsxIdentifier:function(){if(F(_)){for(var e=d;d<p;){var n=y.charCodeAt(d);if(45!==n&&(e===d?!J(n,o):!X(n,o)))break;d++}g+=y.substring(e,d)}return _},scanJsxAttributeValue:function(){switch(m=d,y.charCodeAt(d)){case 34:case 39:return g=S(!0),_=9;default:return I()}},reScanJsxToken:function(){return d=f=m,_=M()},scanJsxToken:M,scanJSDocToken:function(){if(m=f=d,v=0,p<=d)return _=1;var e=y.charCodeAt(d);switch(d++,e){case 9:case 11:case 12:case 32:for(;d<p&&B(y.charCodeAt(d));)d++;return _=5;case 64:return _=57;case 10:case 13:return v|=1,_=4;case 42:return _=39;case 123:return _=17;case 125:return _=18;case 91:return _=21;case 93:return _=22;case 60:return _=27;case 61:return _=58;case 44:return _=26;case 46:return _=23;case 96:for(;d<p&&96!==y.charCodeAt(d);)d++;return g=y.substring(f+1,d),d++,_=13}if(J(e,6)){for(;X(y.charCodeAt(d),6)&&d<p;)d++;return g=y.substring(f,d),_=k()}return _=0},scan:I,getText:function(){return y},setText:w,setScriptTarget:function(e){o=e},setLanguageVariant:function(e){c=e},setOnError:function(e){a=e},setTextPos:P,setInJSDocType:function(e){l+=e?1:-1},tryScan:function(e){return O(e,!1)},lookAhead:function(e){return O(e,!0)},scanRange:function(e,n,t){var r=p,a=d,i=m,o=f,s=_,c=g,l=v;w(y,e,n);var u=t();return p=r,d=a,m=i,f=o,_=s,g=c,v=l,u}};function u(e,n,t){if(void 0===n&&(n=d),a){var r=d;d=n,a(e,t||0),d=r}}function h(){for(var e=d,n=!1,t=!1,r="";;){var a=y.charCodeAt(d);if(95!==a){if(!j(a))break;t=!(n=!0),d++}else v|=512,n?(t=!(n=!1),r+=y.substring(e,d)):u(t?R.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:R.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),e=++d}return 95===y.charCodeAt(d-1)&&u(R.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),r+y.substring(e,d)}function b(){var e,n,t=d,r=h();46===y.charCodeAt(d)&&(d++,e=h());var a=d;if(69===y.charCodeAt(d)||101===y.charCodeAt(d)){d++,v|=16,43!==y.charCodeAt(d)&&45!==y.charCodeAt(d)||d++;var i=d,o=h();o?(n=y.substring(a,i)+o,a=d):u(R.Diagnostics.Digit_expected)}if(512&v){var s=r;return e&&(s+="."+e),n&&(s+=n),""+ +s}return""+ +y.substring(t,a)}function E(){for(var e=d;H(y.charCodeAt(d));)d++;return+y.substring(e,d)}function r(e,n){return i(e,!1,n)}function T(e,n){return i(e,!0,n)}function i(e,n,t){for(var r=0,a=0,i=!1,o=!1;r<e||n;){var s=y.charCodeAt(d);if(t&&95===s)v|=512,i?o=!(i=!1):u(o?R.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:R.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),d++;else{if(i=t,48<=s&&s<=57)a=16*a+s-48;else if(65<=s&&s<=70)a=16*a+s-65+10;else{if(!(97<=s&&s<=102))break;a=16*a+s-97+10}d++,r++,o=!1}}return r<e&&(a=-1),95===y.charCodeAt(d-1)&&u(R.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),a}function S(e){void 0===e&&(e=!1);for(var n=y.charCodeAt(d),t="",r=++d;;){if(p<=d){t+=y.substring(r,d),v|=4,u(R.Diagnostics.Unterminated_string_literal);break}var a=y.charCodeAt(d);if(a===n){t+=y.substring(r,d),d++;break}if(92!==a||e){if(K(a)&&!e){t+=y.substring(r,d),v|=4,u(R.Diagnostics.Unterminated_string_literal);break}d++}else t+=y.substring(r,d),t+=C(),r=d}return t}function x(){for(var e,n=96===y.charCodeAt(d),t=++d,r="";;){if(p<=d){r+=y.substring(t,d),v|=4,u(R.Diagnostics.Unterminated_template_literal),e=n?13:16;break}var a=y.charCodeAt(d);if(96===a){r+=y.substring(t,d),d++,e=n?13:16;break}if(36===a&&d+1<p&&123===y.charCodeAt(d+1)){r+=y.substring(t,d),d+=2,e=n?14:15;break}92!==a?13!==a?d++:(r+=y.substring(t,d),++d<p&&10===y.charCodeAt(d)&&d++,r+="\n",t=d):(r+=y.substring(t,d),r+=C(),t=d)}return R.Debug.assert(void 0!==e),g=r,e}function C(){if(p<=++d)return u(R.Diagnostics.Unexpected_end_of_text),"";var e,n,t=y.charCodeAt(d);switch(d++,t){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return d<p&&123===y.charCodeAt(d)?(v|=8,d++,e=T(1,!1),n=!1,e<0?(u(R.Diagnostics.Hexadecimal_digit_expected),n=!0):1114111<e&&(u(R.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),p<=d?(u(R.Diagnostics.Unexpected_end_of_text),n=!0):125===y.charCodeAt(d)?d++:(u(R.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":function(e){if(R.Debug.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);var n=Math.floor((e-65536)/1024)+55296,t=(e-65536)%1024+56320;return String.fromCharCode(n,t)}(e)):D(4);case 120:return D(2);case 13:d<p&&10===y.charCodeAt(d)&&d++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(t)}}function D(e){var n=r(e,!1);return 0<=n?String.fromCharCode(n):(u(R.Diagnostics.Hexadecimal_digit_expected),"")}function A(){if(d+5<p&&117===y.charCodeAt(d+1)){var e=d;d+=2;var n=r(4,!1);return d=e,n}return-1}function L(){for(var e="",n=d;d<p;){var t=y.charCodeAt(d);if(X(t,o))d++;else{if(92!==t)break;if(!(0<=(t=A())&&X(t,o)))break;e+=y.substring(n,d),e+=String.fromCharCode(t),n=d+=6}}return e+=y.substring(n,d)}function k(){var e=g.length;if(2<=e&&e<=11){var n=g.charCodeAt(0);if(97<=n&&n<=122){var t=G.get(g);if(void 0!==t)return _=t}}return _=71}function N(e){R.Debug.assert(2===e||8===e,"Expected either base 2 or base 8");for(var n=0,t=0,r=!1,a=!1;;){var i=y.charCodeAt(d);if(95!==i){r=!0;var o=i-48;if(!j(i)||e<=o)break;n=n*e+o,d++,t++,a=!1}else v|=512,r?a=!(r=!1):u(a?R.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:R.Diagnostics.Numeric_separators_are_not_allowed_here,d,1),d++}return 0===t?-1:(95===y.charCodeAt(d-1)&&u(R.Diagnostics.Numeric_separators_are_not_allowed_here,d-1,1),n)}function I(){m=d,v=0;for(var e=!1;;){if(p<=(f=d))return _=1;var n=y.charCodeAt(d);if(35===n&&0===d&&q(y,d)){if(d=z(y,d),s)continue;return _=6}switch(n){case 10:case 13:if(v|=1,s){d++;continue}return 13===n&&d+1<p&&10===y.charCodeAt(d+1)?d+=2:d++,_=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(s){d++;continue}for(;d<p&&B(y.charCodeAt(d));)d++;return _=5;case 33:return _=61===y.charCodeAt(d+1)?61===y.charCodeAt(d+2)?(d+=3,35):(d+=2,33):(d++,51);case 34:case 39:return g=S(),_=9;case 96:return _=x();case 37:return _=61===y.charCodeAt(d+1)?(d+=2,64):(d++,42);case 38:return _=38===y.charCodeAt(d+1)?(d+=2,53):61===y.charCodeAt(d+1)?(d+=2,68):(d++,48);case 40:return d++,_=19;case 41:return d++,_=20;case 42:if(61===y.charCodeAt(d+1))return d+=2,_=61;if(42===y.charCodeAt(d+1))return _=61===y.charCodeAt(d+2)?(d+=3,62):(d+=2,40);if(d++,l&&!e&&1&v){e=!0;continue}return _=39;case 43:return _=43===y.charCodeAt(d+1)?(d+=2,43):61===y.charCodeAt(d+1)?(d+=2,59):(d++,37);case 44:return d++,_=26;case 45:return _=45===y.charCodeAt(d+1)?(d+=2,44):61===y.charCodeAt(d+1)?(d+=2,60):(d++,38);case 46:return _=j(y.charCodeAt(d+1))?(g=b(),8):46===y.charCodeAt(d+1)&&46===y.charCodeAt(d+2)?(d+=3,24):(d++,23);case 47:if(47===y.charCodeAt(d+1)){for(d+=2;d<p&&!K(y.charCodeAt(d));)d++;if(s)continue;return _=2}if(42!==y.charCodeAt(d+1))return _=61===y.charCodeAt(d+1)?(d+=2,63):(d++,41);d+=2,42===y.charCodeAt(d)&&47!==y.charCodeAt(d+1)&&(v|=2);for(var t=!1;d<p;){var r=y.charCodeAt(d);if(42===r&&47===y.charCodeAt(d+1)){d+=2,t=!0;break}K(r)&&(v|=1),d++}if(t||u(R.Diagnostics.Asterisk_Slash_expected),s)continue;return t||(v|=4),_=3;case 48:var a;if(d+2<p&&(88===y.charCodeAt(d+1)||120===y.charCodeAt(d+1)))return d+=2,(a=T(1,!0))<0&&(u(R.Diagnostics.Hexadecimal_digit_expected),a=0),g=""+a,v|=64,_=8;if(d+2<p&&(66===y.charCodeAt(d+1)||98===y.charCodeAt(d+1)))return d+=2,(a=N(2))<0&&(u(R.Diagnostics.Binary_digit_expected),a=0),g=""+a,v|=128,_=8;if(d+2<p&&(79===y.charCodeAt(d+1)||111===y.charCodeAt(d+1)))return d+=2,(a=N(8))<0&&(u(R.Diagnostics.Octal_digit_expected),a=0),g=""+a,v|=256,_=8;if(d+1<p&&H(y.charCodeAt(d+1)))return g=""+E(),v|=32,_=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return g=b(),_=8;case 58:return d++,_=56;case 59:return d++,_=25;case 60:if(U(y,d)){if(d=W(y,d,u),s)continue;return _=7}return _=60===y.charCodeAt(d+1)?61===y.charCodeAt(d+2)?(d+=3,65):(d+=2,45):61===y.charCodeAt(d+1)?(d+=2,30):1===c&&47===y.charCodeAt(d+1)&&42!==y.charCodeAt(d+2)?(d+=2,28):(d++,27);case 61:if(U(y,d)){if(d=W(y,d,u),s)continue;return _=7}return _=61===y.charCodeAt(d+1)?61===y.charCodeAt(d+2)?(d+=3,34):(d+=2,32):62===y.charCodeAt(d+1)?(d+=2,36):(d++,58);case 62:if(U(y,d)){if(d=W(y,d,u),s)continue;return _=7}return d++,_=29;case 63:return d++,_=55;case 91:return d++,_=21;case 93:return d++,_=22;case 94:return _=61===y.charCodeAt(d+1)?(d+=2,70):(d++,50);case 123:return d++,_=17;case 124:if(U(y,d)){if(d=W(y,d,u),s)continue;return _=7}return _=124===y.charCodeAt(d+1)?(d+=2,54):61===y.charCodeAt(d+1)?(d+=2,69):(d++,49);case 125:return d++,_=18;case 126:return d++,_=52;case 64:return d++,_=57;case 92:var i=A();return _=0<=i&&J(i,o)?(d+=6,g=String.fromCharCode(i)+L(),k()):(u(R.Diagnostics.Invalid_character),d++,0);default:if(J(n,o)){for(d++;d<p&&X(n=y.charCodeAt(d),o);)d++;return g=y.substring(f,d),92===n&&(g+=L()),_=k()}if(B(n)){d++;continue}if(K(n)){v|=1,d++;continue}return u(R.Diagnostics.Invalid_character),d++,_=0}}}function M(){if(m=f=d,p<=d)return _=1;var e=y.charCodeAt(d);if(60===e)return _=47===y.charCodeAt(d+1)?(d+=2,28):(d++,27);if(123===e)return d++,_=17;for(var n=0;d<p&&123!==(e=y.charCodeAt(d));){if(60===e){if(U(y,d))return d=W(y,d,u),_=7;break}K(e)&&0===n?n=-1:V(e)||(n=d),d++}return-1===n?11:10}function O(e,n){var t=d,r=m,a=f,i=_,o=g,s=v,c=e();return c&&!n||(d=t,m=r,f=a,_=i,g=o,v=s),c}function w(e,n,t){y=e||"",p=void 0===t?y.length:n+t,P(n||0)}function P(e){R.Debug.assert(0<=e),f=m=d=e,g=void(_=0),v=0}}}(ts||(ts={})),function(n){n.isExternalModuleNameRelative=function(e){return n.pathIsRelative(e)||n.isRootedDiskPath(e)},n.sortAndDeduplicateDiagnostics=function(e){return n.sortAndDeduplicate(e,n.compareDiagnostics)}}(ts||(ts={})),function(_){_.resolvingEmptyArray=[],_.emptyMap=_.createMap(),_.emptyUnderscoreEscapedMap=_.emptyMap,_.externalHelpersModuleNameText="tslib",_.defaultMaximumTruncationLength=160,_.getDeclarationOfKind=function(e,n){var t=e.declarations;if(t)for(var r=0,a=t;r<a.length;r++){var i=a[r];if(i.kind===n)return i}},_.createUnderscoreEscapedMap=function(){return new _.MapCtr},_.hasEntries=function(e){return!!e&&!!e.size},_.createSymbolTable=function(e){var n=_.createMap();if(e)for(var t=0,r=e;t<r.length;t++){var a=r[t];n.set(a.escapedName,a)}return n};var n,e,t=(n="",{getText:function(){return n},write:e=function(e){return n+=e},rawWrite:e,writeTextOfNode:e,writeKeyword:e,writeOperator:e,writePunctuation:e,writeSpace:e,writeStringLiteral:e,writeLiteral:e,writeParameter:e,writeProperty:e,writeSymbol:e,getTextPos:function(){return n.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},writeLine:function(){return n+=" "},increaseIndent:_.noop,decreaseIndent:_.noop,clear:function(){return n=""},trackSymbol:_.noop,reportInaccessibleThisError:_.noop,reportInaccessibleUniqueSymbolError:_.noop,reportPrivateInBaseOfClassExpression:_.noop});function c(e,n,t){return t(_.isRootedDiskPath(e)?_.normalizePath(e):_.getNormalizedAbsolutePath(e,n))}function r(e,n){for(;e;){var t=n(e);if("quit"===t)return;if(t)return e;e=e.parent}}function a(e,t){e.forEach(function(e,n){t.set(n,e)})}function i(e){return e.end-e.pos}function o(e){return function(e){if(!(262144&e.flags)){var n=0!=(32768&e.flags)||_.forEachChild(e,o);n&&(e.flags|=131072),e.flags|=262144}}(e),0!=(131072&e.flags)}function s(e){for(;e&&277!==e.kind;)e=e.parent;return e}function l(e,n){_.Debug.assert(0<=e);var t=_.getLineStarts(n),r=e,a=n.text;if(r+1===t.length)return a.length-1;var i=t[r],o=t[r+1]-1;for(_.Debug.assert(_.isLineBreak(a.charCodeAt(o)));i<=o&&_.isLineBreak(a.charCodeAt(o));)o--;return o}function u(e){return void 0===e||e.pos===e.end&&0<=e.pos&&1!==e.kind}function d(e){return!u(e)}function f(e,n){return 42===e.charCodeAt(n+1)&&33===e.charCodeAt(n+2)}function p(e,n,t){return u(e)?e.pos:_.isJSDocNode(e)?_.skipTrivia((n||s(e)).text,e.pos,!1,!0):t&&_.hasJSDocNodes(e)?p(e.jsDoc[0]):304===e.kind&&0<e._children.length?p(e._children[0],n,t):_.skipTrivia((n||s(e)).text,e.pos)}function m(e,n,t){return void 0===t&&(t=!1),g(e.text,n,t)}function g(e,n,t){if(void 0===t&&(t=!1),u(n))return"";var r=e.substring(t?n.pos:_.skipTrivia(e,n.pos),n.end);return function e(n){return 281===n.kind||n.parent&&e(n.parent)}(n)&&(r=r.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),r}function v(e,n){return void 0===n&&(n=!1),m(s(e),e,n)}function y(e){return e.pos}function h(e){var n=e.emitNode;return n&&n.flags||0}function b(e){var n=Ke(e);return 235===n.kind&&272===n.parent.kind}function E(e){return _.isModuleDeclaration(e)&&(9===e.name.kind||T(e))}function T(e){return!!(512&e.flags)}function S(e){return E(e)&&x(e)}function x(e){switch(e.parent.kind){case 277:return _.isExternalModule(e.parent);case 243:return E(e.parent.parent)&&_.isSourceFile(e.parent.parent.parent)&&!_.isExternalModule(e.parent.parent.parent)}return!1}function C(e,n){switch(e.kind){case 277:case 244:case 272:case 242:case 223:case 224:case 225:case 155:case 154:case 156:case 157:case 237:case 194:case 195:return!0;case 216:return!_.isFunctionLike(n)}return!1}function D(e){switch(e.kind){case 158:case 159:case 153:case 160:case 163:case 164:case 287:case 238:case 207:case 239:case 240:case 301:case 237:case 154:case 155:case 156:case 157:case 194:case 195:return!0;default:return _.assertType(e),!1}}function A(e){switch(e.kind){case 247:case 246:return!0;default:return!1}}function L(e){return e&&0!==i(e)?v(e):"(Missing)"}function k(e){switch(e.kind){case 71:return e.escapedText;case 9:case 8:return _.escapeLeadingUnderscores(e.text);case 147:return we(e.expression)?_.escapeLeadingUnderscores(e.expression.text):void 0;default:return _.Debug.assertNever(e)}}function N(e,n,t,r,a,i,o){var s=M(e,n);return _.createFileDiagnostic(e,s.start,s.length,t,r,a,i,o)}function I(e,n){var t=_.createScanner(e.languageVersion,!0,e.languageVariant,e.text,void 0,n);t.scan();var r=t.getTokenPos();return _.createTextSpanFromBounds(r,t.getTextPos())}function M(e,n){var t=n;switch(n.kind){case 277:var r=_.skipTrivia(e.text,0,!1);return r===e.text.length?_.createTextSpan(0,0):I(e,r);case 235:case 184:case 238:case 207:case 239:case 242:case 241:case 276:case 237:case 194:case 154:case 156:case 157:case 240:case 152:case 151:t=n.name;break;case 195:return function(e,n){var t=_.skipTrivia(e.text,n.pos);if(n.body&&216===n.body.kind){var r=_.getLineAndCharacterOfPosition(e,n.body.pos).line;if(r<_.getLineAndCharacterOfPosition(e,n.body.end).line)return _.createTextSpan(t,l(r,e)-t+1)}return _.createTextSpanFromBounds(t,n.end)}(e,n)}if(void 0===t)return I(e,n.pos);var a=u(t),i=a?t.pos:_.skipTrivia(e.text,t.pos);return a?(_.Debug.assert(i===t.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),_.Debug.assert(i===t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(_.Debug.assert(i>=t.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),_.Debug.assert(i<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),_.createTextSpanFromBounds(i,t.end)}function O(e){return!!(2&_.getCombinedNodeFlags(e))}function w(e){return _.isImportTypeNode(e)&&_.isLiteralTypeNode(e.argument)&&_.isStringLiteral(e.argument.literal)}function P(e){return 219===e.kind&&9===e.expression.kind}_.toPath=c,_.changesAffectModuleResolution=function(n,t){return n.configFilePath!==t.configFilePath||_.moduleResolutionOptionDeclarations.some(function(e){return!_.isJsonEqual(_.getCompilerOptionValue(n,e),_.getCompilerOptionValue(t,e))})},_.findAncestor=r,_.forEachAncestor=function(e,n){for(;;){var t=n(e);if("quit"===t)return;if(void 0!==t)return t;if(_.isSourceFile(e))return;e=e.parent}},_.forEachEntry=function(e,n){for(var t,r=e.entries(),a=r.next(),i=a.value,o=a.done;!o;i=(t=r.next()).value,o=t.done,t){var s=i[0],c=n(i[1],s);if(c)return c}},_.forEachKey=function(e,n){for(var t,r=e.keys(),a=r.next(),i=a.value,o=a.done;!o;i=(t=r.next()).value,o=t.done,t){var s=n(i);if(s)return s}},_.copyEntries=a,_.arrayToSet=function(e,n){return _.arrayToMap(e,n||function(e){return e},function(){return!0})},_.cloneMap=function(e){var n=_.createMap();return a(e,n),n},_.usingSingleLineStringWriter=function(e){var n=t.getText();try{return e(t),t.getText()}finally{t.clear(),t.writeKeyword(n)}},_.getFullWidth=i,_.getResolvedModule=function(e,n){return e&&e.resolvedModules&&e.resolvedModules.get(n)},_.setResolvedModule=function(e,n,t){e.resolvedModules||(e.resolvedModules=_.createMap()),e.resolvedModules.set(n,t)},_.setResolvedTypeReferenceDirective=function(e,n,t){e.resolvedTypeReferenceDirectiveNames||(e.resolvedTypeReferenceDirectiveNames=_.createMap()),e.resolvedTypeReferenceDirectiveNames.set(n,t)},_.projectReferenceIsEqualTo=function(e,n){return e.path===n.path&&!e.prepend==!n.prepend&&!e.circular==!n.circular},_.moduleResolutionIsEqualTo=function(e,n){return e.isExternalLibraryImport===n.isExternalLibraryImport&&e.extension===n.extension&&e.resolvedFileName===n.resolvedFileName&&e.originalPath===n.originalPath&&(t=e.packageId,r=n.packageId,t===r||!!t&&!!r&&t.name===r.name&&t.subModuleName===r.subModuleName&&t.version===r.version);var t,r},_.packageIdToString=function(e){var n=e.name,t=e.subModuleName;return(t?n+"/"+t:n)+"@"+e.version},_.typeDirectiveIsEqualTo=function(e,n){return e.resolvedFileName===n.resolvedFileName&&e.primary===n.primary},_.hasChangesInResolutions=function(e,n,t,r){_.Debug.assert(e.length===n.length);for(var a=0;a<e.length;a++){var i=n[a],o=t&&t.get(e[a]);if(o?!i||!r(o,i):i)return!0}return!1},_.containsParseError=o,_.getSourceFileOfNode=s,_.isStatementWithLocals=function(e){switch(e.kind){case 216:case 244:case 223:case 224:case 225:return!0}return!1},_.getStartPositionOfLine=function(e,n){return _.Debug.assert(0<=e),_.getLineStarts(n)[e]},_.nodePosToString=function(e){var n=s(e),t=_.getLineAndCharacterOfPosition(n,e.pos);return n.fileName+"("+(t.line+1)+","+(t.character+1)+")"},_.getEndLinePosition=l,_.isFileLevelUniqueName=function(e,n,t){return!(t&&t(n)||e.identifiers.has(n))},_.nodeIsMissing=u,_.nodeIsPresent=d,_.addStatementsAfterPrologue=function(e,n){if(void 0===n||0===n.length)return e;for(var t=0;t<e.length&&P(e[t]);++t);return e.splice.apply(e,[t,0].concat(n)),e},_.isRecognizedTripleSlashComment=function(e,n,t){if(47===e.charCodeAt(n+1)&&n+2<t&&47===e.charCodeAt(n+2)){var r=e.substring(n,t);return!!(r.match(_.fullTripleSlashReferencePathRegEx)||r.match(_.fullTripleSlashAMDReferencePathRegEx)||r.match(R)||r.match(B))}return!1},_.isPinnedComment=f,_.getTokenPosOfNode=p,_.getNonDecoratorTokenPosOfNode=function(e,n){return u(e)||!e.decorators?p(e,n):_.skipTrivia((n||s(e)).text,e.decorators.end)},_.getSourceTextOfNodeFromSourceFile=m,_.getTextOfNodeFromSourceText=g,_.getTextOfNode=v,_.indexOfNode=function(e,n){return _.binarySearch(e,n,y,_.compareValues)},_.getEmitFlags=h,_.getLiteralText=function(e,n,t){if(!je(e)&&e.parent&&!(_.isNumericLiteral(e)&&512&e.numericLiteralFlags))return m(n,e);var r=t||16777216&h(e)?Qe:nn;switch(e.kind){case 9:return e.singleQuote?"'"+r(e.text,39)+"'":'"'+r(e.text,34)+'"';case 13:return"`"+r(e.text,96)+"`";case 14:return"`"+r(e.text,96)+"${";case 15:return"}"+r(e.text,96)+"${";case 16:return"}"+r(e.text,96)+"`";case 8:case 12:return e.text}return _.Debug.fail("Literal kind '"+e.kind+"' not accounted for.")},_.getTextOfConstantValue=function(e){return _.isString(e)?'"'+nn(e)+'"':""+e},_.makeIdentifierFromModuleName=function(e){return _.getBaseFileName(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},_.isBlockOrCatchScoped=function(e){return 0!=(3&_.getCombinedNodeFlags(e))||b(e)},_.isCatchClauseVariableDeclarationOrBindingElement=b,_.isAmbientModule=E,_.isModuleWithStringLiteralName=function(e){return _.isModuleDeclaration(e)&&9===e.name.kind},_.isNonGlobalAmbientModule=function(e){return _.isModuleDeclaration(e)&&_.isStringLiteral(e.name)},_.isEffectiveModuleDeclaration=function(e){return _.isModuleDeclaration(e)||_.isIdentifier(e)},_.isShorthandAmbientModuleSymbol=function(e){return(n=e.valueDeclaration)&&242===n.kind&&!n.body;var n},_.isBlockScopedContainerTopLevel=function(e){return 277===e.kind||242===e.kind||_.isFunctionLike(e)},_.isGlobalScopeAugmentation=T,_.isExternalModuleAugmentation=S,_.isModuleAugmentationExternal=x,_.getNonAugmentationDeclaration=function(e){return _.find(e.declarations,function(e){return!(S(e)||_.isModuleDeclaration(e)&&T(e))})},_.isEffectiveExternalModule=function(e,n){return _.isExternalModule(e)||n.isolatedModules||_.getEmitModuleKind(n)===_.ModuleKind.CommonJS&&!!e.commonJsModuleIndicator},_.isBlockScope=C,_.isDeclarationWithTypeParameters=function(e){switch(e.kind){case 295:case 302:case 291:return!0;default:return _.assertType(e),D(e)}},_.isDeclarationWithTypeParameterChildren=D,_.isAnyImportSyntax=A,_.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 247:case 246:case 217:case 238:case 237:case 242:case 240:case 239:case 241:return!0;default:return!1}},_.isAnyImportOrReExport=function(e){return A(e)||_.isExportDeclaration(e)},_.getEnclosingBlockScopeContainer=function(e){return r(e.parent,function(e){return C(e,e.parent)})},_.declarationNameToString=L,_.getNameFromIndexInfo=function(e){return e.declaration?L(e.declaration.parameters[0].name):void 0},_.getTextOfPropertyName=k,_.entityNameToString=function e(n){switch(n.kind){case 71:return 0===i(n)?_.idText(n):v(n);case 146:return e(n.left)+"."+e(n.right);case 187:return e(n.expression)+"."+e(n.name);default:throw _.Debug.assertNever(n)}},_.createDiagnosticForNode=function(e,n,t,r,a,i){return N(s(e),e,n,t,r,a,i)},_.createDiagnosticForNodeArray=function(e,n,t,r,a,i,o){var s=_.skipTrivia(e.text,n.pos);return _.createFileDiagnostic(e,s,n.end-s,t,r,a,i,o)},_.createDiagnosticForNodeInSourceFile=N,_.createDiagnosticForNodeFromMessageChain=function(e,n,t){var r=s(e),a=M(r,e);return{file:r,start:a.start,length:a.length,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:t}},_.getSpanOfTokenAtPosition=I,_.getErrorSpanForNode=M,_.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},_.isJsonSourceFile=function(e){return 6===e.scriptKind},_.isEnumConst=function(e){return!!(2048&_.getCombinedModifierFlags(e))},_.isDeclarationReadonly=function(e){return!(!(64&_.getCombinedModifierFlags(e))||_.isParameterPropertyDeclaration(e))},_.isVarConst=O,_.isLet=function(e){return!!(1&_.getCombinedNodeFlags(e))},_.isSuperCall=function(e){return 189===e.kind&&97===e.expression.kind},_.isImportCall=function(e){return 189===e.kind&&91===e.expression.kind},_.isLiteralImportTypeNode=w,_.isPrologueDirective=P,_.getLeadingCommentRangesOfNode=function(e,n){return 10!==e.kind?_.getLeadingCommentRanges(n.text,e.pos):void 0},_.getJSDocCommentRanges=function(e,n){var t=149===e.kind||148===e.kind||194===e.kind||195===e.kind||193===e.kind?_.concatenate(_.getTrailingCommentRanges(n,e.pos),_.getLeadingCommentRanges(n,e.pos)):_.getLeadingCommentRanges(n,e.pos);return _.filter(t,function(e){return 42===n.charCodeAt(e.pos+1)&&42===n.charCodeAt(e.pos+2)&&47!==n.charCodeAt(e.pos+3)})},_.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var R=/^(\/\/\/\s*<reference\s+types\s*=\s*)('|")(.+?)\2.*?\/>/;_.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)('|")(.+?)\2.*?\/>/;var F,G,V,B=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)('|")(.+?)\2\s*\/>/;function K(e){if(161<=e.kind&&e.kind<=181)return!0;switch(e.kind){case 119:case 142:case 134:case 137:case 122:case 138:case 140:case 131:return!0;case 105:return 198!==e.parent.kind;case 209:return!wn(e);case 148:return 179===e.parent.kind||174===e.parent.kind;case 71:146===e.parent.kind&&e.parent.right===e?e=e.parent:187===e.parent.kind&&e.parent.name===e&&(e=e.parent),_.Debug.assert(71===e.kind||146===e.kind||187===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 146:case 187:case 99:var n=e.parent;if(165===n.kind)return!1;if(181===n.kind)return!n.isTypeOf;if(161<=n.kind&&n.kind<=181)return!0;switch(n.kind){case 209:return!wn(n);case 148:case 301:return e===n.constraint;case 152:case 151:case 149:case 235:return e===n.type;case 237:case 194:case 195:case 155:case 154:case 153:case 156:case 157:return e===n.type;case 158:case 159:case 160:case 192:return e===n.type;case 189:case 190:return _.contains(n.typeArguments,e);case 191:return!1}}return!1}function j(e){if(e)switch(e.kind){case 184:case 276:case 149:case 273:case 152:case 151:case 274:case 235:return!0}return!1}function H(e){return 236===e.parent.kind&&217===e.parent.parent.kind}function U(e,t,r){return e.properties.filter(function(e){if(273!==e.kind)return!1;var n=k(e.name);return t===n||!!r&&r===n})}function W(e){if(e&&e.statements.length){var n=e.statements[0].expression;return _.tryCast(n,_.isObjectLiteralExpression)}}function q(e,n){var t=W(e);return t?U(t,n):_.emptyArray}function z(e,n){for(_.Debug.assert(277!==e.kind);;){if(!(e=e.parent))return _.Debug.fail();switch(e.kind){case 147:if(_.isClassLike(e.parent.parent))return e;e=e.parent;break;case 150:149===e.parent.kind&&_.isClassElement(e.parent.parent)?e=e.parent.parent:_.isClassElement(e.parent)&&(e=e.parent);break;case 195:if(!n)continue;case 237:case 194:case 242:case 152:case 151:case 154:case 153:case 155:case 156:case 157:case 158:case 159:case 160:case 241:case 277:return e}}}function J(e,n,t){switch(e.kind){case 238:return!0;case 152:return 238===n.kind;case 156:case 157:case 154:return void 0!==e.body&&238===n.kind;case 149:return void 0!==n.body&&(155===n.kind||154===n.kind||157===n.kind)&&238===t.kind}return!1}function X(e,n,t){return void 0!==e.decorators&&J(e,n,t)}function Y(e,n,t){return X(e,n,t)||Q(e,n)}function Q(n,t){switch(n.kind){case 238:return _.some(n.members,function(e){return Y(e,n,t)});case 154:case 157:return _.some(n.parameters,function(e){return X(e,n,t)});default:return!1}}function Z(e){var n=e.parent;return(260===n.kind||259===n.kind||261===n.kind)&&n.tagName===e}function $(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 185:case 186:case 187:case 188:case 189:case 190:case 191:case 210:case 192:case 211:case 193:case 194:case 207:case 195:case 198:case 196:case 197:case 200:case 201:case 202:case 203:case 206:case 204:case 13:case 208:case 258:case 259:case 262:case 205:case 199:case 212:return!0;case 146:for(;146===e.parent.kind;)e=e.parent;return 165===e.parent.kind||Z(e);case 71:if(165===e.parent.kind||Z(e))return!0;case 8:case 9:case 99:return ee(e);default:return!1}}function ee(e){var n=e.parent;switch(n.kind){case 235:case 149:case 152:case 151:case 276:case 273:case 184:return n.initializer===e;case 219:case 220:case 221:case 222:case 228:case 229:case 230:case 269:case 232:return n.expression===e;case 223:var t=n;return t.initializer===e&&236!==t.initializer.kind||t.condition===e||t.incrementor===e;case 224:case 225:var r=n;return r.initializer===e&&236!==r.initializer.kind||r.expression===e;case 192:case 210:case 214:case 147:return e===n.expression;case 150:case 268:case 267:case 275:return!0;case 209:return n.expression===e&&wn(n);case 274:return n.objectAssignmentInitializer===e;default:return $(n)}}function ne(e){return 246===e.kind&&257===e.moduleReference.kind}function te(e){return re(e)}function re(e){return!!e&&!!(65536&e.flags)}function ae(e){return re(e)&&e.initializer&&_.isBinaryExpression(e.initializer)&&54===e.initializer.operatorToken.kind&&e.name&&Pn(e.name)&&oe(e.name,e.initializer.left)?e.initializer.right:e.initializer}function ie(e,n){if(_.isCallExpression(e)){var t=xe(e.expression);return 194===t.kind||195===t.kind?e:void 0}return 194===e.kind||207===e.kind||195===e.kind?e:_.isObjectLiteralExpression(e)&&(0===e.properties.length||n)?e:void 0}function oe(e,n){return _.isIdentifier(e)&&_.isIdentifier(n)?e.escapedText===n.escapedText:_.isIdentifier(e)&&_.isPropertyAccessExpression(n)?(99===n.expression.kind||_.isIdentifier(n.expression)&&("window"===n.expression.escapedText||"self"===n.expression.escapedText||"global"===n.expression.escapedText))&&oe(e,n.name):!(!_.isPropertyAccessExpression(e)||!_.isPropertyAccessExpression(n))&&(e.name.escapedText===n.name.escapedText&&oe(e.expression,n.expression))}function se(e){var n=function(e){if(58!==e.operatorToken.kind||!_.isPropertyAccessExpression(e.left))return 0;var n=e.left;if(Pn(n.expression)&&"prototype"===n.name.escapedText&&_.isObjectLiteralExpression(le(e)))return 6;return ce(n)}(e);return 5===n||re(e)?n:0}function ce(e){if(99===e.expression.kind)return 4;if(_.isIdentifier(e.expression)&&"module"===e.expression.escapedText&&"exports"===e.name.escapedText)return 2;if(Pn(e.expression)){if(Fn(e.expression))return 3;for(var n=e;_.isPropertyAccessExpression(n.expression);)n=n.expression;_.Debug.assert(_.isIdentifier(n.expression));var t=n.expression;return"exports"===t.escapedText||"module"===t.escapedText&&"exports"===n.name.escapedText?1:5}return 0}function le(e){for(;_.isBinaryExpression(e.right);)e=e.right;return e.right}function ue(e){switch(e.parent.kind){case 247:case 253:return e.parent;case 257:return e.parent.parent;case 189:return e.parent;case 180:return _.Debug.assert(_.isStringLiteral(e)),_.tryCast(e.parent.parent,_.isImportTypeNode);default:return}}function de(e){return 302===e.kind||295===e.kind}function pe(e){return _.isExpressionStatement(e)&&_.isBinaryExpression(e.expression)&&0!==se(e.expression)&&_.isBinaryExpression(e.expression.right)&&54===e.expression.right.operatorToken.kind?e.expression.right.right:void 0}function me(e){switch(e.kind){case 217:var n=fe(e);return n&&n.initializer;case 152:case 273:return e.initializer}}function fe(e){return _.isVariableStatement(e)?_.firstOrUndefined(e.declarationList.declarations):void 0}function _e(e){return _.isModuleDeclaration(e)&&e.body&&242===e.body.kind?e.body:void 0}function ge(e){var n=e.parent;return 273===n.kind||152===n.kind||219===n.kind&&187===e.kind||_e(n)||_.isBinaryExpression(e)&&58===e.operatorToken.kind?n:n.parent&&(fe(n.parent)===e||_.isBinaryExpression(n)&&58===n.operatorToken.kind)?n.parent:n.parent&&n.parent.parent&&(fe(n.parent.parent)||me(n.parent.parent)===e||pe(n.parent.parent))?n.parent.parent:void 0}function ve(e){return ye(he(e))}function ye(e){var n,t=pe(e)||(n=e,_.isExpressionStatement(n)&&n.expression&&_.isBinaryExpression(n.expression)&&58===n.expression.operatorToken.kind?n.expression.right:void 0)||me(e)||fe(e)||_e(e)||e;return t&&_.isFunctionLike(t)?t:void 0}function he(e){return _.Debug.assertDefined(r(e.parent,_.isJSDoc)).parent}function be(e){var n=_.isJSDocParameterTag(e)?e.typeExpression&&e.typeExpression.type:e.type;return void 0!==e.dotDotDotToken||!!n&&288===n.kind}function Ee(e){for(var n=e.parent;;){switch(n.kind){case 202:var t=n.operatorToken.kind;return In(t)&&n.left===e?58===t?1:2:0;case 200:case 201:var r=n.operator;return 43===r||44===r?2:0;case 224:case 225:return n.initializer===e?1:0;case 193:case 185:case 206:case 211:e=n;break;case 274:if(n.name!==e)return 0;e=n.parent;break;case 273:if(n.name===e)return 0;e=n.parent;break;default:return 0}n=e.parent}}function Te(e,n){for(;e&&e.kind===n;)e=e.parent;return e}function Se(e){return Te(e,193)}function xe(e){for(;193===e.kind;)e=e.expression;return e}function Ce(e){var n=_.isExportAssignment(e)?e.expression:e.right;return Pn(n)||_.isClassExpression(n)}function De(e){if(re(e)){var n=_.getJSDocAugmentsTag(e);if(n)return n.class}return Ae(e)}function Ae(e){var n=Ne(e.heritageClauses,85);return n&&0<n.types.length?n.types[0]:void 0}function Le(e){var n=Ne(e.heritageClauses,108);return n?n.types:void 0}function ke(e){var n=Ne(e.heritageClauses,85);return n?n.types:void 0}function Ne(e,n){if(e)for(var t=0,r=e;t<r.length;t++){var a=r[t];if(a.token===n)return a}}function Ie(e){return 72<=e&&e<=145}function Me(e){return 117<=e&&e<=145}function Oe(e){return Ie(e)&&!Me(e)}function we(e){return _.isStringLiteralLike(e)||_.isNumericLiteral(e)}function Pe(e){var n=_.getNameOfDeclaration(e);return!!n&&Re(n)}function Re(e){return 147===e.kind&&!we(e.expression)&&!Fe(e.expression)}function Fe(e){return _.isPropertyAccessExpression(e)&&Be(e.expression)}function Ge(e){switch(e.kind){case 71:return e.escapedText;case 9:case 8:return _.escapeLeadingUnderscores(e.text);case 147:var n=e.expression;return Fe(n)?Ve(_.idText(n.name)):we(n)?_.escapeLeadingUnderscores(n.text):void 0;default:return _.Debug.assertNever(e)}}function Ve(e){return"__@"+e}function Be(e){return 71===e.kind&&"Symbol"===e.escapedText}function Ke(e){for(;184===e.kind;)e=e.parent.parent;return e}function je(e){return _.positionIsSynthesized(e.pos)||_.positionIsSynthesized(e.end)}function He(e,n,t){switch(e){case 190:return t?0:1;case 200:case 197:case 198:case 196:case 199:case 203:case 205:return 1;case 202:switch(n){case 40:case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 1}}return 0}function Ue(e){return 202===e.kind?e.operatorToken.kind:200===e.kind||201===e.kind?e.operator:e.kind}function We(e,n,t){switch(e){case 307:return 0;case 206:return 1;case 205:return 2;case 203:return 4;case 202:switch(n){case 26:return 0;case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 3;default:return qe(n)}case 200:case 197:case 198:case 196:case 199:return 16;case 201:return 17;case 189:return 18;case 190:return t?19:18;case 191:case 187:case 188:return 19;case 99:case 97:case 71:case 95:case 101:case 86:case 8:case 9:case 185:case 186:case 194:case 195:case 207:case 258:case 259:case 262:case 12:case 13:case 204:case 193:case 208:return 20;default:return-1}}function qe(e){switch(e){case 54:return 5;case 53:return 6;case 49:return 7;case 50:return 8;case 48:return 9;case 32:case 33:case 34:case 35:return 10;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 11;case 45:case 46:case 47:return 12;case 37:case 38:return 13;case 39:case 41:case 42:return 14;case 40:return 15}return-1}_.isPartOfTypeNode=K,_.isChildOfNodeWithKind=function(e,n){for(;e;){if(e.kind===n)return!0;e=e.parent}return!1},_.forEachReturnStatement=function(e,t){return function e(n){switch(n.kind){case 228:return t(n);case 244:case 216:case 220:case 221:case 222:case 223:case 224:case 225:case 229:case 230:case 269:case 270:case 231:case 233:case 272:return _.forEachChild(n,e)}}(e)},_.forEachYieldExpression=function(e,r){return function e(n){switch(n.kind){case 205:r(n);var t=n.expression;return void(t&&e(t));case 241:case 239:case 242:case 240:case 238:case 207:return;default:if(_.isFunctionLike(n)){if(n.name&&147===n.name.kind)return void e(n.name.expression)}else K(n)||_.forEachChild(n,e)}}(e)},_.getRestParameterElementType=function(e){return e&&167===e.kind?e.elementType:e&&162===e.kind?_.singleOrUndefined(e.typeArguments):void 0},_.getMembersOfDeclaration=function(e){switch(e.kind){case 239:case 238:case 207:case 166:return e.members;case 186:return e.properties}},_.isVariableLike=j,_.isVariableLikeOrAccessor=function(e){return j(e)||_.isAccessor(e)},_.isVariableDeclarationInVariableStatement=H,_.isValidESSymbolDeclaration=function(e){return _.isVariableDeclaration(e)?O(e)&&_.isIdentifier(e.name)&&H(e):_.isPropertyDeclaration(e)?Dn(e)&&Cn(e):_.isPropertySignature(e)&&Dn(e)},_.introducesArgumentsExoticObject=function(e){switch(e.kind){case 154:case 153:case 155:case 156:case 157:case 237:case 194:return!0}return!1},_.unwrapInnermostStatementOfLabel=function(e,n){for(;;){if(n&&n(e),231!==e.statement.kind)return e.statement;e=e.statement}},_.isFunctionBlock=function(e){return e&&216===e.kind&&_.isFunctionLike(e.parent)},_.isObjectLiteralMethod=function(e){return e&&154===e.kind&&186===e.parent.kind},_.isObjectLiteralOrClassExpressionMethod=function(e){return 154===e.kind&&(186===e.parent.kind||207===e.parent.kind)},_.isIdentifierTypePredicate=function(e){return e&&1===e.kind},_.isThisTypePredicate=function(e){return e&&0===e.kind},_.getPropertyAssignment=U,_.getTsConfigObjectLiteralExpression=W,_.getTsConfigPropArrayElementValue=function(e,n,t){return _.firstDefined(q(e,n),function(e){return _.isArrayLiteralExpression(e.initializer)?_.find(e.initializer.elements,function(e){return _.isStringLiteral(e)&&e.text===t}):void 0})},_.getTsConfigPropArray=q,_.getContainingFunction=function(e){return r(e.parent,_.isFunctionLike)},_.getContainingClass=function(e){return r(e.parent,_.isClassLike)},_.getThisContainer=z,_.getNewTargetContainer=function(e){var n=z(e,!1);if(n)switch(n.kind){case 155:case 237:case 194:return n}},_.getSuperContainer=function(e,n){for(;;){if(!(e=e.parent))return e;switch(e.kind){case 147:e=e.parent;break;case 237:case 194:case 195:if(!n)continue;case 152:case 151:case 154:case 153:case 155:case 156:case 157:return e;case 150:149===e.parent.kind&&_.isClassElement(e.parent.parent)?e=e.parent.parent:_.isClassElement(e.parent)&&(e=e.parent)}}},_.getImmediatelyInvokedFunctionExpression=function(e){if(194===e.kind||195===e.kind){for(var n=e,t=e.parent;193===t.kind;)t=(n=t).parent;if(189===t.kind&&t.expression===n)return t}},_.isSuperProperty=function(e){var n=e.kind;return(187===n||188===n)&&97===e.expression.kind},_.isThisProperty=function(e){var n=e.kind;return(187===n||188===n)&&99===e.expression.kind},_.getEntityNameFromTypeNode=function(e){switch(e.kind){case 162:return e.typeName;case 209:return Pn(e.expression)?e.expression:void 0;case 71:case 146:return e}},_.getInvokedExpression=function(e){switch(e.kind){case 191:return e.tag;case 260:case 259:return e.tagName;default:return e.expression}},_.nodeCanBeDecorated=J,_.nodeIsDecorated=X,_.nodeOrChildIsDecorated=Y,_.childIsDecorated=Q,_.isJSXTagName=Z,_.isExpressionNode=$,_.isInExpressionContext=ee,_.isExternalModuleImportEqualsDeclaration=ne,_.getExternalModuleImportEqualsDeclarationExpression=function(e){return _.Debug.assert(ne(e)),e.moduleReference.expression},_.isInternalModuleImportEqualsDeclaration=function(e){return 246===e.kind&&257!==e.moduleReference.kind},_.isSourceFileJS=te,_.isSourceFileNotJS=function(e){return!re(e)},_.isInJSFile=re,_.isInJsonFile=function(e){return!!e&&!!(16777216&e.flags)},_.isInJSDoc=function(e){return!!e&&!!(2097152&e.flags)},_.isJSDocIndexSignature=function(e){return _.isTypeReferenceNode(e)&&_.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText&&e.typeArguments&&2===e.typeArguments.length&&(137===e.typeArguments[0].kind||134===e.typeArguments[0].kind)},_.isRequireCall=function(e,n){if(189!==e.kind)return!1;var t=e,r=t.expression,a=t.arguments;if(71!==r.kind||"require"!==r.escapedText)return!1;if(1!==a.length)return!1;var i=a[0];return!n||_.isStringLiteralLike(i)},_.isSingleOrDoubleQuote=function(e){return 39===e||34===e},_.isStringDoubleQuoted=function(e,n){return 34===m(n,e).charCodeAt(0)},_.getDeclarationOfExpando=function(e){if(e.parent){var n,t;if(_.isVariableDeclaration(e.parent)&&e.parent.initializer===e){if(!re(e)&&!O(e.parent))return;n=e.parent.name,t=e.parent}else if(_.isBinaryExpression(e.parent)&&58===e.parent.operatorToken.kind&&e.parent.right===e)t=n=e.parent.left;else if(_.isBinaryExpression(e.parent)&&54===e.parent.operatorToken.kind&&(_.isVariableDeclaration(e.parent.parent)&&e.parent.parent.initializer===e.parent?(n=e.parent.parent.name,t=e.parent.parent):_.isBinaryExpression(e.parent.parent)&&58===e.parent.parent.operatorToken.kind&&e.parent.parent.right===e.parent&&(t=n=e.parent.parent.left),!n||!Pn(n)||!oe(n,e.parent.left)))return;if(n&&ie(e,Fn(n)))return t}},_.isAssignmentDeclaration=function(e){return _.isBinaryExpression(e)||_.isPropertyAccessExpression(e)||_.isIdentifier(e)},_.getEffectiveInitializer=ae,_.getDeclaredExpandoInitializer=function(e){var n=ae(e);return n&&ie(n,Fn(e.name))},_.getAssignedExpandoInitializer=function(e){if(e&&e.parent&&_.isBinaryExpression(e.parent)&&58===e.parent.operatorToken.kind){var n=Fn(e.parent.left);return ie(e.parent.right,n)||function(e,n,t){var r=_.isBinaryExpression(n)&&54===n.operatorToken.kind&&ie(n.right,t);if(r&&oe(e,n.left))return r}(e.parent.left,e.parent.right,n)}},_.getExpandoInitializer=ie,_.isDefaultedExpandoInitializer=function(e){var n=_.isVariableDeclaration(e.parent)?e.parent.name:_.isBinaryExpression(e.parent)&&58===e.parent.operatorToken.kind?e.parent.left:void 0;return n&&ie(e.right,Fn(n))&&Pn(n)&&oe(n,e.left)},_.getNameOfExpando=function(e){if(_.isBinaryExpression(e.parent)){var n=54===e.parent.operatorToken.kind&&_.isBinaryExpression(e.parent.parent)?e.parent.parent:e.parent;if(58===n.operatorToken.kind&&_.isIdentifier(n.left))return n.left}else if(_.isVariableDeclaration(e.parent))return e.parent.name},_.getRightMostAssignedExpression=function(e){for(;On(e,!0);)e=e.right;return e},_.isExportsIdentifier=function(e){return _.isIdentifier(e)&&"exports"===e.escapedText},_.isModuleExportsPropertyAccessExpression=function(e){return _.isPropertyAccessExpression(e)&&_.isIdentifier(e.expression)&&"module"===e.expression.escapedText&&"exports"===e.name.escapedText},_.getAssignmentDeclarationKind=se,_.getAssignmentDeclarationPropertyAccessKind=ce,_.getInitializerOfBinaryExpression=le,_.isPrototypePropertyAssignment=function(e){return _.isBinaryExpression(e)&&3===se(e)},_.isSpecialPropertyDeclaration=function(e){return re(e)&&e.parent&&219===e.parent.kind&&!!_.getJSDocTypeTag(e.parent)},_.isFunctionSymbol=function(e){if(!e||!e.valueDeclaration)return!1;var n=e.valueDeclaration;return 237===n.kind||_.isVariableDeclaration(n)&&n.initializer&&_.isFunctionLike(n.initializer)},_.importFromModuleSpecifier=function(e){return ue(e)||_.Debug.fail(_.Debug.showSyntaxKind(e.parent))},_.tryGetImportFromModuleSpecifier=ue,_.getExternalModuleName=function(e){switch(e.kind){case 247:case 253:return e.moduleSpecifier;case 246:return 257===e.moduleReference.kind?e.moduleReference.expression:void 0;case 181:return w(e)?e.argument.literal:void 0;default:return _.Debug.assertNever(e)}},_.getNamespaceDeclarationNode=function(e){switch(e.kind){case 247:return e.importClause&&_.tryCast(e.importClause.namedBindings,_.isNamespaceImport);case 246:return e;case 253:return;default:return _.Debug.assertNever(e)}},_.isDefaultImport=function(e){return 247===e.kind&&!!e.importClause&&!!e.importClause.name},_.hasQuestionToken=function(e){if(e)switch(e.kind){case 149:case 154:case 153:case 274:case 273:case 152:case 151:return void 0!==e.questionToken}return!1},_.isJSDocConstructSignature=function(e){return 287===e.kind&&0<e.parameters.length&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText},_.isJSDocTypeAlias=de,_.isTypeAlias=function(e){return de(e)||_.isTypeAliasDeclaration(e)},_.getJSDocCommentsAndTags=function(e){var n;j(e)&&_.hasInitializer(e)&&_.hasJSDocNodes(e.initializer)&&(n=_.addRange(n,e.initializer.jsDoc));for(var t=e;t&&t.parent;){if(_.hasJSDocNodes(t)&&(n=_.addRange(n,t.jsDoc)),149===t.kind){n=_.addRange(n,_.getJSDocParameterTags(t));break}if(148===t.kind){n=_.addRange(n,_.getJSDocTypeParameterTags(t));break}t=ge(t)}return n||_.emptyArray},_.getParameterSymbolFromJSDoc=function(e){if(e.symbol)return e.symbol;if(_.isIdentifier(e.name)){var n=e.name.escapedText,t=ve(e);if(t){var r=_.find(t.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===n});return r&&r.symbol}}},_.getHostSignatureFromJSDoc=ve,_.getHostSignatureFromJSDocHost=ye,_.getJSDocHost=he,_.getTypeParameterFromJsDoc=function(e){var n=e.name.escapedText,t=e.parent.parent.parent.typeParameters;return _.find(t,function(e){return e.name.escapedText===n})},_.hasRestParameter=function(e){var n=_.lastOrUndefined(e.parameters);return!!n&&be(n)},_.isRestParameter=be,(F=_.AssignmentKind||(_.AssignmentKind={}))[F.None=0]="None",F[F.Definite=1]="Definite",F[F.Compound=2]="Compound",_.getAssignmentTargetKind=Ee,_.isAssignmentTarget=function(e){return 0!==Ee(e)},_.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 216:case 217:case 229:case 220:case 230:case 244:case 269:case 270:case 231:case 223:case 224:case 225:case 221:case 222:case 233:case 272:return!0}return!1},_.isValueSignatureDeclaration=function(e){return _.isFunctionExpression(e)||_.isArrowFunction(e)||_.isMethodOrAccessor(e)||_.isFunctionDeclaration(e)||_.isConstructorDeclaration(e)},_.walkUpParenthesizedTypes=function(e){return Te(e,175)},_.walkUpParenthesizedExpressions=Se,_.skipParentheses=xe,_.isDeleteTarget=function(e){return(187===e.kind||188===e.kind)&&(e=Se(e.parent))&&196===e.kind},_.isNodeDescendantOf=function(e,n){for(;e;){if(e===n)return!0;e=e.parent}return!1},_.isDeclarationName=function(e){return!_.isSourceFile(e)&&!_.isBindingPattern(e)&&_.isDeclaration(e.parent)&&e.parent.name===e},_.getDeclarationFromName=function(e){var n=e.parent;switch(e.kind){case 9:case 8:if(_.isComputedPropertyName(n))return n.parent;case 71:if(_.isDeclaration(n))return n.name===e?n:void 0;if(_.isQualifiedName(n)){var t=n.parent;return _.isJSDocParameterTag(t)&&t.name===n?t:void 0}var r=n.parent;return _.isBinaryExpression(r)&&0!==se(r)&&(r.left.symbol||r.symbol)&&_.getNameOfDeclaration(r)===e?r:void 0;default:return}},_.isLiteralComputedPropertyDeclarationName=function(e){return(9===e.kind||8===e.kind)&&147===e.parent.kind&&_.isDeclaration(e.parent.parent)},_.isIdentifierName=function(e){var n=e.parent;switch(n.kind){case 152:case 151:case 154:case 153:case 156:case 157:case 276:case 273:case 187:return n.name===e;case 146:if(n.right!==e)return!1;for(;146===n.kind;)n=n.parent;return 165===n.kind||162===n.kind;case 184:case 251:return n.propertyName===e;case 255:case 265:return!0}return!1},_.isAliasSymbolDeclaration=function(e){return 246===e.kind||245===e.kind||248===e.kind&&!!e.name||249===e.kind||251===e.kind||255===e.kind||252===e.kind&&Ce(e)||_.isBinaryExpression(e)&&2===se(e)},_.exportAssignmentIsAlias=Ce,_.getEffectiveBaseTypeNode=De,_.getClassExtendsHeritageElement=Ae,_.getClassImplementsHeritageClauseElements=Le,_.getAllSuperTypeNodes=function(e){return _.isInterfaceDeclaration(e)?ke(e)||_.emptyArray:_.isClassLike(e)&&_.concatenate(_.singleElementArray(De(e)),Le(e))||_.emptyArray},_.getInterfaceBaseTypeNodes=ke,_.getHeritageClause=Ne,_.tryResolveScriptReference=function(e,n,t){if(!e.getCompilerOptions().noResolve){var r=_.isRootedDiskPath(t.fileName)?t.fileName:_.combinePaths(_.getDirectoryPath(n.fileName),t.fileName);return e.getSourceFile(r)}},_.getAncestor=function(e,n){for(;e;){if(e.kind===n)return e;e=e.parent}},_.isKeyword=Ie,_.isContextualKeyword=Me,_.isNonContextualKeyword=Oe,_.isStringANonContextualKeyword=function(e){var n=_.stringToToken(e);return void 0!==n&&Oe(n)},_.isTrivia=function(e){return 2<=e&&e<=7},(G=_.FunctionFlags||(_.FunctionFlags={}))[G.Normal=0]="Normal",G[G.Generator=1]="Generator",G[G.Async=2]="Async",G[G.Invalid=4]="Invalid",G[G.AsyncGenerator=3]="AsyncGenerator",_.getFunctionFlags=function(e){if(!e)return 4;var n=0;switch(e.kind){case 237:case 194:case 154:e.asteriskToken&&(n|=1);case 195:xn(e,256)&&(n|=2)}return e.body||(n|=4),n},_.isAsyncFunction=function(e){switch(e.kind){case 237:case 194:case 195:case 154:return void 0!==e.body&&void 0===e.asteriskToken&&xn(e,256)}return!1},_.isStringOrNumericLiteralLike=we,_.hasDynamicName=Pe,_.isDynamicName=Re,_.isWellKnownSymbolSyntactically=Fe,_.getPropertyNameForPropertyNameNode=Ge,_.isPropertyNameLiteral=function(e){switch(e.kind){case 71:case 9:case 13:case 8:return!0;default:return!1}},_.getTextOfIdentifierOrLiteral=function(e){return 71===e.kind?_.idText(e):e.text},_.getEscapedTextOfIdentifierOrLiteral=function(e){return 71===e.kind?e.escapedText:_.escapeLeadingUnderscores(e.text)},_.getPropertyNameForKnownSymbolName=Ve,_.isKnownSymbol=function(e){return _.startsWith(e.escapedName,"__@")},_.isESSymbolIdentifier=Be,_.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},_.isParameterDeclaration=function(e){return 149===Ke(e).kind},_.getRootDeclaration=Ke,_.nodeStartsNewLexicalEnvironment=function(e){var n=e.kind;return 155===n||194===n||237===n||195===n||154===n||156===n||157===n||242===n||277===n},_.nodeIsSynthesized=je,_.getOriginalSourceFile=function(e){return _.getParseTreeNode(e,_.isSourceFile)||e},(V=_.Associativity||(_.Associativity={}))[V.Left=0]="Left",V[V.Right=1]="Right",_.getExpressionAssociativity=function(e){var n=Ue(e),t=190===e.kind&&void 0!==e.arguments;return He(e.kind,n,t)},_.getOperatorAssociativity=He,_.getExpressionPrecedence=function(e){var n=Ue(e),t=190===e.kind&&void 0!==e.arguments;return We(e.kind,n,t)},_.getOperator=Ue,_.getOperatorPrecedence=We,_.getBinaryOperatorPrecedence=qe,_.createDiagnosticCollection=function(){var r=[],t=[],a=_.createMap(),i=!1;return{add:function(e){var n;e.file?(n=a.get(e.file.fileName))||(n=[],a.set(e.file.fileName,n),_.insertSorted(t,e.file.fileName,_.compareStringsCaseSensitive)):(i&&(i=!1,r=r.slice()),n=r),_.insertSorted(n,e,_.compareDiagnostics)},lookup:function(e){var n;if(n=e.file?a.get(e.file.fileName):r){var t=_.binarySearch(n,e,_.identity,_.compareDiagnosticsSkipRelatedInformation);return 0<=t?n[t]:void 0}},getGlobalDiagnostics:function(){return i=!0,r},getDiagnostics:function(e){if(e)return a.get(e)||[];var n=_.flatMap(t,function(e){return a.get(e)});return r.length&&n.unshift.apply(n,r),n},reattachFileDiagnostics:function(n){_.forEach(a.get(n.fileName),function(e){return e.file=n})}}};var ze=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Je=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Xe=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ye=_.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","":"\\u0085"});function Qe(e,n){var t=96===n?Xe:39===n?Je:ze;return e.replace(t,Ze)}function Ze(e,n,t){if(0!==e.charCodeAt(0))return Ye.get(e)||$e(e.charCodeAt(0));var r=t.charCodeAt(n+e.length);return 48<=r&&r<=57?"\\x00":"\\0"}function $e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}_.escapeString=Qe,_.isIntrinsicJsxName=function(e){var n=e.charCodeAt(0);return 97<=n&&n<=122||-1<e.indexOf("-")};var en=/[^\u0000-\u007F]/g;function nn(e,n){return e=Qe(e,n),en.test(e)?e.replace(en,function(e){return $e(e.charCodeAt(0))}):e}_.escapeNonAsciiString=nn;var tn=["","    "];function rn(e){return void 0===tn[e]&&(tn[e]=rn(e-1)+tn[1]),tn[e]}function an(){return tn[1].length}function on(e,n,t){return n.moduleName||sn(e,n.fileName,t&&t.fileName)}function sn(n,e,t){var r=function(e){return n.getCanonicalFileName(e)},a=c(t?_.getDirectoryPath(t):n.getCommonSourceDirectory(),n.getCurrentDirectory(),r),i=_.getNormalizedAbsolutePath(e,n.getCurrentDirectory()),o=_.getRelativePathToDirectoryOrUrl(a,i,a,r,!1),s=_.removeFileExtension(o);return t?_.ensurePathIsNonModuleName(s):s}function cn(e,n,t,r,a){var i=n.declarationDir||n.outDir,o=i?dn(e,i,t,r,a):e;return _.removeFileExtension(o)+".d.ts"}function ln(e,n,t){return!(n.noEmitForJsFiles&&te(e)||e.isDeclarationFile||t(e))}function un(e,n,t){return dn(e,t,n.getCurrentDirectory(),n.getCommonSourceDirectory(),function(e){return n.getCanonicalFileName(e)})}function dn(e,n,t,r,a){var i=_.getNormalizedAbsolutePath(e,t);return i=0===a(i).indexOf(a(r))?i.substring(r.length):i,_.combinePaths(n,i)}function pn(e,n){return _.getLineAndCharacterOfPosition(e,n).line}function mn(e,n){return _.computeLineAndCharacterOfPosition(e,n).line}function fn(e){if(e&&0<e.parameters.length){var n=2===e.parameters.length&&_n(e.parameters[0]);return e.parameters[n?1:0]}}function _n(e){return gn(e.name)}function gn(e){return!!e&&71===e.kind&&vn(e)}function vn(e){return 99===e.originalKeywordKind}function yn(e){var n=e.type;return n||!re(e)?n:_.isJSDocPropertyLikeTag(e)?e.typeExpression&&e.typeExpression.type:_.getJSDocType(e)}function hn(e,n,t,r){bn(e,n,t.pos,r)}function bn(e,n,t,r){r&&r.length&&t!==r[0].pos&&mn(e,t)!==mn(e,r[0].pos)&&n.writeLine()}function En(e,n,t,r,a,i,o,s){if(r&&0<r.length){a&&t.write(" ");for(var c=!1,l=0,u=r;l<u.length;l++){var d=u[l];c&&(t.write(" "),c=!1),s(e,n,t,d.pos,d.end,o),d.hasTrailingNewLine?t.writeLine():c=!0}c&&i&&t.write(" ")}}function Tn(e,n,t,r,a,i){var o=Math.min(n,i-1),s=e.substring(a,o).replace(/^\s+|\s+$/g,"");s?(t.write(s),o!==n&&t.writeLine()):t.writeLiteral(r)}function Sn(e,n,t){for(var r=0;n<t&&_.isWhiteSpaceSingleLine(e.charCodeAt(n));n++)9===e.charCodeAt(n)?r+=an()-r%an():r++;return r}function xn(e,n){return!!An(e,n)}function Cn(e){return xn(e,32)}function Dn(e){return xn(e,64)}function An(e,n){return Ln(e)&n}function Ln(e){if(536870912&e.modifierFlagsCache)return-536870913&e.modifierFlagsCache;var n=kn(e);return e.modifierFlagsCache=536870912|n,n}function kn(e){var n=0;if(e.modifiers)for(var t=0,r=e.modifiers;t<r.length;t++){n|=Nn(r[t].kind)}return(4&e.flags||71===e.kind&&e.isInJSDocNamespace)&&(n|=1),n}function Nn(e){switch(e){case 115:return 32;case 114:return 4;case 113:return 16;case 112:return 8;case 117:return 128;case 84:return 1;case 124:return 2;case 76:return 2048;case 79:return 512;case 120:return 256;case 132:return 64}return 0}function In(e){return 58<=e&&e<=70}function Mn(e){if(_.isExpressionWithTypeArguments(e)&&85===e.parent.token&&_.isClassLike(e.parent.parent))return e.parent.parent}function On(e,n){return _.isBinaryExpression(e)&&(n?58===e.operatorToken.kind:In(e.operatorToken.kind))&&_.isLeftHandSideExpression(e.left)}function wn(e){return void 0!==Mn(e)}function Pn(e){return 71===e.kind||Rn(e)}function Rn(e){return _.isPropertyAccessExpression(e)&&Pn(e.expression)}function Fn(e){return _.isPropertyAccessExpression(e)&&"prototype"===e.name.escapedText}_.getIndentString=rn,_.getIndentSize=an,_.createTextWriter=function(e){var t,n,r,a,i;function o(e){var n=_.computeLineStarts(e);r=1<n.length&&(a=a+n.length-1,(i=t.length-e.length+_.last(n))-t.length==0)}function s(e){e&&e.length&&(r&&(e=rn(n)+e,r=!1),t+=e,o(e))}function c(){t="",r=!(n=0),i=a=0}return c(),{write:s,rawWrite:function(e){void 0!==e&&(t+=e,o(e))},writeTextOfNode:function(e,n){var t=g(e,n);s(t),o(t)},writeLiteral:function(e){e&&e.length&&s(e)},writeLine:function(){r||(a++,i=(t+=e).length,r=!0)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return t.length},getLine:function(){return a},getColumn:function(){return r?n*an():t.length-i},getText:function(){return t},isAtStartOfLine:function(){return r},clear:c,reportInaccessibleThisError:_.noop,reportPrivateInBaseOfClassExpression:_.noop,reportInaccessibleUniqueSymbolError:_.noop,trackSymbol:_.noop,writeKeyword:s,writeOperator:s,writeParameter:s,writeProperty:s,writePunctuation:s,writeSpace:s,writeStringLiteral:s,writeSymbol:s}},_.getResolvedExternalModuleName=on,_.getExternalModuleNameFromDeclaration=function(e,n,t){var r=n.getExternalModuleFileFromDeclaration(t);if(r&&!r.isDeclarationFile)return on(e,r)},_.getExternalModuleNameFromPath=sn,_.getOwnEmitOutputFilePath=function(e,n,t){var r=n.getCompilerOptions();return(r.outDir?_.removeFileExtension(un(e,n,r.outDir)):_.removeFileExtension(e))+t},_.getDeclarationEmitOutputFilePath=function(e,n){return cn(e,n.getCompilerOptions(),n.getCurrentDirectory(),n.getCommonSourceDirectory(),function(e){return n.getCanonicalFileName(e)})},_.getDeclarationEmitOutputFilePathWorker=cn,_.getSourceFilesToEmit=function(n,e){var t=n.getCompilerOptions(),r=function(e){return n.isSourceFileFromExternalLibrary(e)};if(t.outFile||t.out){var a=_.getEmitModuleKind(t),i=a===_.ModuleKind.AMD||a===_.ModuleKind.System;return _.filter(n.getSourceFiles(),function(e){return(i||!_.isExternalModule(e))&&ln(e,t,r)})}var o=void 0===e?n.getSourceFiles():[e];return _.filter(o,function(e){return ln(e,t,r)})},_.sourceFileMayBeEmitted=ln,_.getSourceFilePathInNewDir=un,_.getSourceFilePathInNewDirWorker=dn,_.writeFile=function(e,n,t,r,a,i){e.writeFile(t,r,a,function(e){n.add(_.createCompilerDiagnostic(_.Diagnostics.Could_not_write_file_0_Colon_1,t,e))},i)},_.getLineOfLocalPosition=pn,_.getLineOfLocalPositionFromLineMap=mn,_.getFirstConstructorWithBody=function(e){return _.find(e.members,function(e){return _.isConstructorDeclaration(e)&&d(e.body)})},_.getSetAccessorTypeAnnotationNode=function(e){var n=fn(e);return n&&n.type},_.getThisParameter=function(e){if(e.parameters.length&&!_.isJSDocSignature(e)){var n=e.parameters[0];if(_n(n))return n}},_.parameterIsThisKeyword=_n,_.isThisIdentifier=gn,_.identifierIsThisKeyword=vn,_.getAllAccessorDeclarations=function(e,n){var t,r,a,i;return Pe(n)?156===(t=n).kind?a=n:157===n.kind?i=n:_.Debug.fail("Accessor has wrong kind"):_.forEach(e,function(e){_.isAccessor(e)&&xn(e,32)===xn(n,32)&&Ge(e.name)===Ge(n.name)&&(t?r||(r=e):t=e,156!==e.kind||a||(a=e),157!==e.kind||i||(i=e))}),{firstAccessor:t,secondAccessor:r,getAccessor:a,setAccessor:i}},_.getEffectiveTypeAnnotationNode=yn,_.getTypeAnnotationNode=function(e){return e.type},_.getEffectiveReturnTypeNode=function(e){return _.isJSDocSignature(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(re(e)?_.getJSDocReturnType(e):void 0)},_.getJSDocTypeParameterDeclarations=function(e){return _.flatMap(_.getJSDocTags(e),function(e){return n=e,!_.isJSDocTemplateTag(n)||289===n.parent.kind&&n.parent.tags.some(de)?void 0:e.typeParameters;var n})},_.getEffectiveSetAccessorTypeAnnotationNode=function(e){var n=fn(e);return n&&yn(n)},_.emitNewLineBeforeLeadingComments=hn,_.emitNewLineBeforeLeadingCommentsOfPosition=bn,_.emitNewLineBeforeLeadingCommentOfPosition=function(e,n,t,r){t!==r&&mn(e,t)!==mn(e,r)&&n.writeLine()},_.emitComments=En,_.emitDetachedComments=function(n,e,t,r,a,i,o){var s,c;if(o?0===a.pos&&(s=_.filter(_.getLeadingCommentRanges(n,a.pos),function(e){return f(n,e.pos)})):s=_.getLeadingCommentRanges(n,a.pos),s){for(var l=[],u=void 0,d=0,p=s;d<p.length;d++){var m=p[d];if(u&&mn(e,u.end)+2<=mn(e,m.pos))break;l.push(m),u=m}l.length&&mn(e,_.last(l).end)+2<=mn(e,_.skipTrivia(n,a.pos))&&(hn(e,t,a,s),En(n,e,t,l,!1,!0,i,r),c={nodePos:a.pos,detachedCommentEndPos:_.last(l).end})}return c},_.writeCommentRange=function(e,n,t,r,a,i){if(42===e.charCodeAt(r+1))for(var o=_.computeLineAndCharacterOfPosition(n,r),s=n.length,c=void 0,l=r,u=o.line;l<a;u++){var d=u+1===s?e.length+1:n[u+1];if(l!==r){void 0===c&&(c=Sn(e,n[o.line],r));var p=t.getIndent()*an()-c+Sn(e,l,d);if(0<p){var m=p%an(),f=rn((p-m)/an());for(t.rawWrite(f);m;)t.rawWrite(" "),m--}else t.rawWrite("")}Tn(e,a,t,i,l,d),l=d}else t.write(e.substring(r,a))},_.hasModifiers=function(e){return 0!==Ln(e)},_.hasModifier=xn,_.hasStaticModifier=Cn,_.hasReadonlyModifier=Dn,_.getSelectedModifierFlags=An,_.getModifierFlags=Ln,_.getModifierFlagsNoCache=kn,_.modifierToFlag=Nn,_.isLogicalOperator=function(e){return 54===e||53===e||51===e},_.isAssignmentOperator=In,_.tryGetClassExtendingExpressionWithTypeArguments=Mn,_.isAssignmentExpression=On,_.isDestructuringAssignment=function(e){if(On(e,!0)){var n=e.left.kind;return 186===n||185===n}return!1},_.isExpressionWithTypeArgumentsInClassExtendsClause=wn,_.isExpressionWithTypeArgumentsInClassImplementsClause=function(e){return 209===e.kind&&Pn(e.expression)&&e.parent&&108===e.parent.token&&e.parent.parent&&_.isClassLike(e.parent.parent)},_.isEntityNameExpression=Pn,_.isPropertyAccessEntityNameExpression=Rn,_.isPrototypeAccess=Fn,_.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 146===e.parent.kind&&e.parent.right===e||187===e.parent.kind&&e.parent.name===e},_.isEmptyObjectLiteral=function(e){return 186===e.kind&&0===e.properties.length},_.isEmptyArrayLiteral=function(e){return 185===e.kind&&0===e.elements.length},_.getLocalSymbolForExportDefault=function(e){return(n=e)&&0<_.length(n.declarations)&&xn(n.declarations[0],512)?e.declarations[0].localSymbol:void 0;var n},_.tryExtractTSExtension=function(n){return _.find(_.supportedTSExtensionsForExtractExtension,function(e){return _.fileExtensionIs(n,e)})};var Gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Vn(e){for(var n,t,r,a,i="",o=function(e){for(var n=[],t=e.length,r=0;r<t;r++){var a=e.charCodeAt(r);a<128?n.push(a):a<2048?(n.push(a>>6|192),n.push(63&a|128)):a<65536?(n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)):a<131072?(n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)):_.Debug.assert(!1,"Unexpected code point")}return n}(e),s=0,c=o.length;s<c;)n=o[s]>>2,t=(3&o[s])<<4|o[s+1]>>4,r=(15&o[s+1])<<2|o[s+2]>>6,a=63&o[s+2],c<=s+1?r=a=64:c<=s+2&&(a=64),i+=Gn.charAt(n)+Gn.charAt(t)+Gn.charAt(r)+Gn.charAt(a),s+=3;return i}_.convertToBase64=Vn,_.base64encode=function(e,n){return e&&e.base64encode?e.base64encode(n):Vn(n)},_.base64decode=function(e,n){if(e&&e.base64decode)return e.base64decode(n);for(var t=n.length,r=[],a=0;a<t&&n.charCodeAt(a)!==Gn.charCodeAt(64);){var i=Gn.indexOf(n[a]),o=Gn.indexOf(n[a+1]),s=Gn.indexOf(n[a+2]),c=Gn.indexOf(n[a+3]),l=(63&i)<<2|o>>4&3,u=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===u&&0!==s?r.push(l):0===d&&0!==c?r.push(l,u):r.push(l,u,d),a+=4}return function(e){for(var n="",t=0,r=e.length;t<r;){var a=e[t];if(a<128)n+=String.fromCharCode(a),t++;else if(192==(192&a)){for(var i=63&a,o=e[++t];128==(192&o);)i=i<<6|63&o,o=e[++t];n+=String.fromCharCode(i)}else n+=String.fromCharCode(a),t++}return n}(r)},_.readJson=function(e,n){try{var t=n.readFile(e);if(!t)return{};var r=_.parseConfigFileTextToJson(e,t);return r.error?{}:r.config}catch(e){return{}}},_.directoryProbablyExists=function(e,n){return!n.directoryExists||n.directoryExists(e)};var Bn,Kn;function jn(e,n,t){void 0===e&&(e=0);var r=function(e){var n=[];for(var t in e){var r=e[t];"number"==typeof r&&n.push([r,t])}return _.stableSort(n,function(e,n){return _.compareValues(e[0],n[0])})}(n);if(0===e)return 0<r.length&&0===r[0][0]?r[0][1]:"0";if(t){for(var a="",i=e,o=r.length-1;0<=o&&0!==i;o--){var s=r[o],c=s[0],l=s[1];0!==c&&(i&c)===c&&(i&=~c,a=l+(a?", ":"")+a)}if(0===i)return a}else for(var u=0,d=r;u<d.length;u++){var p=d[u];c=p[0],l=p[1];if(c===e)return l}return e.toString()}function Hn(e,n){return void 0===n&&(n=e),_.Debug.assert(e<=n||-1===n),{pos:e,end:n}}function Un(e,n){return Hn(n,e.end)}function Wn(e){return e.decorators&&0<e.decorators.length?Un(e,e.decorators.end):e}function qn(e,n,t){return zn(Jn(e,t),n.end,t)}function zn(e,n,t){return e===n||pn(t,e)===pn(t,n)}function Jn(e,n){return _.positionIsSynthesized(e.pos)?-1:_.skipTrivia(n.text,e.pos)}function Xn(e){return void 0!==e.initializer}function Yn(e){return 33554432&e.flags?e.checkFlags:0}function Qn(e){var n=e.parent;if(!n)return 0;switch(n.kind){case 193:return Qn(n);case 201:case 200:var t=n.operator;return 43===t||44===t?s():0;case 202:var r=n,a=r.left,i=r.operatorToken;return a===e&&In(i.kind)?58===i.kind?1:s():0;case 187:return n.name!==e?0:Qn(n);case 273:var o=Qn(n.parent);return e===n.name?function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return _.Debug.assertNever(e)}}(o):o;case 274:return e===n.objectAssignmentInitializer?0:Qn(n.parent);case 185:return Qn(n);default:return 0}function s(){return n.parent&&219===function(e){for(;193===e.kind;)e=e.parent;return e}(n.parent).kind?1:2}}function Zn(e,n){for(;;){var t=n(e);if(void 0!==t)return t;var r=_.getDirectoryPath(e);if(r===e)return;e=r}}function $n(e){if(32&e.flags){var n=et(e);return!!n&&xn(n,128)}return!1}function et(e){return _.find(e.declarations,_.isClassLike)}function nt(e){return 131072&e.flags?e.objectFlags:0}_.getNewLineCharacter=function(e,n){switch(e.newLine){case 0:return"\r\n";case 1:return"\n"}return n?n():_.sys?_.sys.newLine:"\r\n"},_.formatSyntaxKind=function(e){return jn(e,_.SyntaxKind,!1)},_.formatModifierFlags=function(e){return jn(e,_.ModifierFlags,!0)},_.formatTransformFlags=function(e){return jn(e,_.TransformFlags,!0)},_.formatEmitFlags=function(e){return jn(e,_.EmitFlags,!0)},_.formatSymbolFlags=function(e){return jn(e,_.SymbolFlags,!0)},_.formatTypeFlags=function(e){return jn(e,_.TypeFlags,!0)},_.formatObjectFlags=function(e){return jn(e,_.ObjectFlags,!0)},_.createRange=Hn,_.moveRangeEnd=function(e,n){return Hn(e.pos,n)},_.moveRangePos=Un,_.moveRangePastDecorators=Wn,_.moveRangePastModifiers=function(e){return e.modifiers&&0<e.modifiers.length?Un(e,e.modifiers.end):Wn(e)},_.isCollapsedRange=function(e){return e.pos===e.end},_.createTokenRange=function(e,n){return Hn(e,e+_.tokenToString(n).length)},_.rangeIsOnSingleLine=function(e,n){return qn(e,e,n)},_.rangeStartPositionsAreOnSameLine=function(e,n,t){return zn(Jn(e,t),Jn(n,t),t)},_.rangeEndPositionsAreOnSameLine=function(e,n,t){return zn(e.end,n.end,t)},_.rangeStartIsOnSameLineAsRangeEnd=qn,_.rangeEndIsOnSameLineAsRangeStart=function(e,n,t){return zn(e.end,Jn(n,t),t)},_.positionsAreOnSameLine=zn,_.getStartPositionOfRange=Jn,_.isDeclarationNameOfEnumOrNamespace=function(e){var n=_.getParseTreeNode(e);if(n)switch(n.parent.kind){case 241:case 242:return n===n.parent.name}return!1},_.getInitializedVariables=function(e){return _.filter(e.declarations,Xn)},_.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},_.closeFileWatcher=function(e){e.close()},_.getCheckFlags=Yn,_.getDeclarationModifierFlagsFromSymbol=function(e){if(e.valueDeclaration){var n=_.getCombinedModifierFlags(e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-29&n}if(6&Yn(e)){var t=e.checkFlags;return(256&t?8:64&t?4:16)|(512&t?32:0)}return 4194304&e.flags?36:0},_.skipAlias=function(e,n){return 2097152&e.flags?n.getAliasedSymbol(e):e},_.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},_.isWriteOnlyAccess=function(e){return 1===Qn(e)},_.isWriteAccess=function(e){return 0!==Qn(e)},(Kn=Bn||(Bn={}))[Kn.Read=0]="Read",Kn[Kn.Write=1]="Write",Kn[Kn.ReadWrite=2]="ReadWrite",_.compareDataObjects=function e(n,t){if(!n||!t||Object.keys(n).length!==Object.keys(t).length)return!1;for(var r in n)if("object"==typeof n[r]){if(!e(n[r],t[r]))return!1}else if("function"!=typeof n[r]&&n[r]!==t[r])return!1;return!0},_.clearMap=function(e,n){e.forEach(n),e.clear()},_.mutateMap=function(r,a,e){var t=e.createNewValue,i=e.onDeleteValue,o=e.onExistingValue;r.forEach(function(e,n){var t=a.get(n);void 0===t?(r.delete(n),i(e,n)):o&&o(e,t,n)}),a.forEach(function(e,n){r.has(n)||r.set(n,t(n,e))})},_.forEachAncestorDirectory=Zn,_.isAbstractConstructorType=function(e){return!!(16&nt(e))&&!!e.symbol&&$n(e.symbol)},_.isAbstractConstructorSymbol=$n,_.getClassLikeDeclarationOfSymbol=et,_.getObjectFlags=nt,_.typeHasCallOrConstructSignatures=function(e,n){return 0!==n.getSignaturesOfType(e,0).length||0!==n.getSignaturesOfType(e,1).length},_.forSomeAncestorDirectory=function(e,n){return!!Zn(e,function(e){return!!n(e)||void 0})},_.isUMDExportSymbol=function(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&_.isNamespaceExportDeclaration(e.declarations[0])},_.showModuleSpecifier=function(e){var n=e.moduleSpecifier;return _.isStringLiteral(n)?n.text:v(n)},_.getLastChild=function(e){var t;return _.forEachChild(e,function(e){d(e)&&(t=e)},function(e){for(var n=e.length-1;0<=n;n--)if(d(e[n])){t=e[n];break}}),t},_.addToSeen=function(e,n,t){return void 0===t&&(t=!0),n=String(n),!e.has(n)&&(e.set(n,t),!0)},_.isObjectTypeDeclaration=function(e){return _.isClassLike(e)||_.isInterfaceDeclaration(e)||_.isTypeLiteralNode(e)}}(ts||(ts={})),function(m){function f(e){return e.start+e.length}function n(e){return 0===e.length}function t(e,n){var t=a(e,n);return t&&0===t.length?void 0:t}function r(e,n,t,r){return t<=e+n&&e<=t+r}function a(e,n){var t=Math.max(e.start,n.start),r=Math.min(f(e),f(n));return t<=r?_(t,r):void 0}function i(e,n){if(e<0)throw new Error("start < 0");if(n<0)throw new Error("length < 0");return{start:e,length:n}}function _(e,n){return i(e,n-e)}function g(e,n){if(n<0)throw new Error("newLength < 0");return{span:e,newLength:n}}function o(e){return!!m.isBindingPattern(e)&&m.every(e.elements,s)}function s(e){return!!m.isOmittedExpression(e)||o(e.name)}function c(e){for(var n=e.parent;m.isBindingElement(n.parent);)n=n.parent.parent;return n.parent}function l(e,n){m.isBindingElement(e)&&(e=c(e));var t=n(e);return 235===e.kind&&(e=e.parent),e&&236===e.kind&&(t|=n(e),e=e.parent),e&&217===e.kind&&(t|=n(e)),t}function u(e,n){if(e)for(;void 0!==e.original;)e=e.original;return!n||n(e)?e:void 0}function d(e){return 0==(8&e.flags)}function p(e){var n=e;return 3<=n.length&&95===n.charCodeAt(0)&&95===n.charCodeAt(1)&&95===n.charCodeAt(2)?n.substr(1):n}function v(e){var n=b(e);return n&&m.isIdentifier(n)?n:void 0}function y(e){return e.name||function(e){var n=e.parent.parent;if(n){if(m.isDeclaration(n))return v(n);switch(n.kind){case 217:if(n.declarationList&&n.declarationList.declarations[0])return v(n.declarationList.declarations[0]);break;case 219:var t=n.expression;switch(t.kind){case 187:return t.name;case 188:var r=t.argumentExpression;if(m.isIdentifier(r))return r}break;case 193:return v(n.expression);case 231:if(m.isDeclaration(n.statement)||m.isExpression(n.statement))return v(n.statement)}}}(e)}function h(e){switch(e.kind){case 71:return e;case 303:case 297:var n=e.name;if(146===n.kind)return n.right;break;case 202:var t=e;switch(m.getAssignmentDeclarationKind(t)){case 1:case 4:case 5:case 3:return t.left.name;default:return}case 302:return y(e);case 252:var r=e.expression;return m.isIdentifier(r)?r:void 0}return e.name}function b(e){if(void 0!==e)return h(e)||(m.isFunctionExpression(e)||m.isClassExpression(e)?function(e){{if(!e.parent)return;if(m.isPropertyAssignment(e.parent)||m.isBindingElement(e.parent))return e.parent.name;if(m.isBinaryExpression(e.parent)&&e===e.parent.right){if(m.isIdentifier(e.parent.left))return e.parent.left;if(m.isPropertyAccessExpression(e.parent.left))return e.parent.left.name}}}(e):void 0)}function E(e){if(e.name){if(m.isIdentifier(e.name)){var n=e.name.escapedText;return C(e.parent).filter(function(e){return m.isJSDocParameterTag(e)&&m.isIdentifier(e.name)&&e.name.escapedText===n})}var t=e.parent.parameters.indexOf(e);m.Debug.assert(-1<t,"Parameters should always be in their parents' parameter list");var r=C(e.parent).filter(m.isJSDocParameterTag);if(t<r.length)return[r[t]]}return m.emptyArray}function T(e){return D(e,m.isJSDocReturnTag)}function S(e){var n=D(e,m.isJSDocTypeTag);if(n&&n.typeExpression&&n.typeExpression.type)return n}function x(e){var n=D(e,m.isJSDocTypeTag);return!n&&m.isParameter(e)&&(n=m.find(E(e),function(e){return!!e.typeExpression})),n&&n.typeExpression&&n.typeExpression.type}function C(e){var n=e.jsDocCache;if(void 0===n){var t=m.getJSDocCommentsAndTags(e);m.Debug.assert(t.length<2||t[0]!==t[1]),e.jsDocCache=n=m.flatMap(t,function(e){return m.isJSDoc(e)?e.tags:e})}return n}function D(e,n){return m.find(C(e),n)}m.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"}},m.textSpanEnd=f,m.textSpanIsEmpty=n,m.textSpanContainsPosition=function(e,n){return n>=e.start&&n<f(e)},m.textRangeContainsPositionInclusive=function(e,n){return n>=e.pos&&n<=e.end},m.textSpanContainsTextSpan=function(e,n){return n.start>=e.start&&f(n)<=f(e)},m.textSpanOverlapsWith=function(e,n){return void 0!==t(e,n)},m.textSpanOverlap=t,m.textSpanIntersectsWithTextSpan=function(e,n){return r(e.start,e.length,n.start,n.length)},m.textSpanIntersectsWith=function(e,n,t){return r(e.start,e.length,n,t)},m.decodedTextSpanIntersectsWith=r,m.textSpanIntersectsWithPosition=function(e,n){return n<=f(e)&&n>=e.start},m.textSpanIntersection=a,m.createTextSpan=i,m.createTextSpanFromBounds=_,m.textChangeRangeNewSpan=function(e){return i(e.span.start,e.newLength)},m.textChangeRangeIsUnchanged=function(e){return n(e.span)&&0===e.newLength},m.createTextChangeRange=g,m.unchangedTextChangeRange=g(i(0,0),0),m.collapseTextChangeRangesAcrossMultipleVersions=function(e){if(0===e.length)return m.unchangedTextChangeRange;if(1===e.length)return e[0];for(var n=e[0],t=n.span.start,r=f(n.span),a=t+n.newLength,i=1;i<e.length;i++){var o=e[i],s=t,c=r,l=a,u=o.span.start,d=f(o.span),p=u+o.newLength;t=Math.min(s,u),r=Math.max(c,c+(d-l)),a=Math.max(p,p+(l-d))}return g(_(t,r),a-t)},m.getTypeParameterOwner=function(e){if(e&&148===e.kind)for(var n=e;n;n=n.parent)if(m.isFunctionLike(n)||m.isClassLike(n)||239===n.kind)return n},m.isParameterPropertyDeclaration=function(e){return m.hasModifier(e,92)&&155===e.parent.kind},m.isEmptyBindingPattern=o,m.isEmptyBindingElement=s,m.walkUpBindingElementsAndPatterns=c,m.getCombinedModifierFlags=function(e){return l(e,m.getModifierFlags)},m.getCombinedNodeFlags=function(e){return l(e,function(e){return e.flags})},m.validateLocaleAndSetLanguage=function(e,s,n){var t=/^([a-z]+)([_\-]([a-z]+))?$/.exec(e.toLowerCase());if(t){var r=t[1];a(r,t[3],n)||a(r,void 0,n),m.setUILocale(e)}else n&&n.push(m.createCompilerDiagnostic(m.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function a(e,n,t){var r=m.normalizePath(s.getExecutingFilePath()),a=m.getDirectoryPath(r),i=m.combinePaths(a,e);if(n&&(i=i+"-"+n),i=s.resolvePath(m.combinePaths(i,"diagnosticMessages.generated.json")),!s.fileExists(i))return!1;var o="";try{o=s.readFile(i)}catch(e){return t&&t.push(m.createCompilerDiagnostic(m.Diagnostics.Unable_to_open_file_0,i)),!1}try{m.localizedDiagnosticMessages=JSON.parse(o)}catch(e){return t&&t.push(m.createCompilerDiagnostic(m.Diagnostics.Corrupted_locale_file_0,i)),!1}return!0}},m.getOriginalNode=u,m.isParseTreeNode=d,m.getParseTreeNode=function(e,n){return void 0===e||d(e)?e:!d(e=u(e))||n&&!n(e)?void 0:e},m.escapeLeadingUnderscores=function(e){return 2<=e.length&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},m.unescapeLeadingUnderscores=p,m.idText=function(e){return p(e.escapedText)},m.symbolName=function(e){return p(e.escapedName)},m.getNameOfJSDocTypedef=y,m.isNamedDeclaration=function(e){return!!e.name},m.getNonAssignedNameOfDeclaration=h,m.getNameOfDeclaration=b,m.getJSDocParameterTags=E,m.getJSDocTypeParameterTags=function(e){var n=e.name.escapedText;return C(e.parent).filter(function(e){return m.isJSDocTemplateTag(e)&&e.typeParameters.some(function(e){return e.name.escapedText===n})})},m.hasJSDocParameterTags=function(e){return!!D(e,m.isJSDocParameterTag)},m.getJSDocAugmentsTag=function(e){return D(e,m.isJSDocAugmentsTag)},m.getJSDocClassTag=function(e){return D(e,m.isJSDocClassTag)},m.getJSDocEnumTag=function(e){return D(e,m.isJSDocEnumTag)},m.getJSDocThisTag=function(e){return D(e,m.isJSDocThisTag)},m.getJSDocReturnTag=T,m.getJSDocTemplateTag=function(e){return D(e,m.isJSDocTemplateTag)},m.getJSDocTypeTag=S,m.getJSDocType=x,m.getJSDocReturnType=function(e){var n=T(e);if(n&&n.typeExpression)return n.typeExpression.type;var t=S(e);if(t&&t.typeExpression){var r=t.typeExpression.type;if(m.isTypeLiteralNode(r)){var a=m.find(r.members,m.isCallSignatureDeclaration);return a&&a.type}if(m.isFunctionTypeNode(r))return r.type}},m.getJSDocTags=C,m.getAllJSDocTagsOfKind=function(e,n){return C(e).filter(function(e){return e.kind===n})},m.getEffectiveTypeParameterDeclarations=function(e){if(m.isJSDocSignature(e))return m.emptyArray;if(m.isJSDocTypeAlias(e))return m.Debug.assert(289===e.parent.kind),m.flatMap(e.parent.tags,function(e){return m.isJSDocTemplateTag(e)?e.typeParameters:void 0});if(e.typeParameters)return e.typeParameters;if(m.isInJSFile(e)){var n=m.getJSDocTypeParameterDeclarations(e);if(n.length)return n;var t=x(e);if(t&&m.isFunctionTypeNode(t)&&t.typeParameters)return t.typeParameters}return m.emptyArray},m.getEffectiveConstraintOfTypeParameter=function(e){return e.constraint?e.constraint:m.isJSDocTemplateTag(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}}(ts||(ts={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isStringLiteral=function(e){return 9===e.kind},e.isJsxText=function(e){return 10===e.kind},e.isRegularExpressionLiteral=function(e){return 12===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 13===e.kind},e.isTemplateHead=function(e){return 14===e.kind},e.isTemplateMiddle=function(e){return 15===e.kind},e.isTemplateTail=function(e){return 16===e.kind},e.isIdentifier=function(e){return 71===e.kind},e.isQualifiedName=function(e){return 146===e.kind},e.isComputedPropertyName=function(e){return 147===e.kind},e.isTypeParameterDeclaration=function(e){return 148===e.kind},e.isParameter=function(e){return 149===e.kind},e.isDecorator=function(e){return 150===e.kind},e.isPropertySignature=function(e){return 151===e.kind},e.isPropertyDeclaration=function(e){return 152===e.kind},e.isMethodSignature=function(e){return 153===e.kind},e.isMethodDeclaration=function(e){return 154===e.kind},e.isConstructorDeclaration=function(e){return 155===e.kind},e.isGetAccessorDeclaration=function(e){return 156===e.kind},e.isSetAccessorDeclaration=function(e){return 157===e.kind},e.isCallSignatureDeclaration=function(e){return 158===e.kind},e.isConstructSignatureDeclaration=function(e){return 159===e.kind},e.isIndexSignatureDeclaration=function(e){return 160===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 157===e.kind||156===e.kind},e.isTypePredicateNode=function(e){return 161===e.kind},e.isTypeReferenceNode=function(e){return 162===e.kind},e.isFunctionTypeNode=function(e){return 163===e.kind},e.isConstructorTypeNode=function(e){return 164===e.kind},e.isTypeQueryNode=function(e){return 165===e.kind},e.isTypeLiteralNode=function(e){return 166===e.kind},e.isArrayTypeNode=function(e){return 167===e.kind},e.isTupleTypeNode=function(e){return 168===e.kind},e.isUnionTypeNode=function(e){return 171===e.kind},e.isIntersectionTypeNode=function(e){return 172===e.kind},e.isConditionalTypeNode=function(e){return 173===e.kind},e.isInferTypeNode=function(e){return 174===e.kind},e.isParenthesizedTypeNode=function(e){return 175===e.kind},e.isThisTypeNode=function(e){return 176===e.kind},e.isTypeOperatorNode=function(e){return 177===e.kind},e.isIndexedAccessTypeNode=function(e){return 178===e.kind},e.isMappedTypeNode=function(e){return 179===e.kind},e.isLiteralTypeNode=function(e){return 180===e.kind},e.isImportTypeNode=function(e){return 181===e.kind},e.isObjectBindingPattern=function(e){return 182===e.kind},e.isArrayBindingPattern=function(e){return 183===e.kind},e.isBindingElement=function(e){return 184===e.kind},e.isArrayLiteralExpression=function(e){return 185===e.kind},e.isObjectLiteralExpression=function(e){return 186===e.kind},e.isPropertyAccessExpression=function(e){return 187===e.kind},e.isElementAccessExpression=function(e){return 188===e.kind},e.isCallExpression=function(e){return 189===e.kind},e.isNewExpression=function(e){return 190===e.kind},e.isTaggedTemplateExpression=function(e){return 191===e.kind},e.isTypeAssertion=function(e){return 192===e.kind},e.isParenthesizedExpression=function(e){return 193===e.kind},e.skipPartiallyEmittedExpressions=function(e){for(;306===e.kind;)e=e.expression;return e},e.isFunctionExpression=function(e){return 194===e.kind},e.isArrowFunction=function(e){return 195===e.kind},e.isDeleteExpression=function(e){return 196===e.kind},e.isTypeOfExpression=function(e){return 197===e.kind},e.isVoidExpression=function(e){return 198===e.kind},e.isAwaitExpression=function(e){return 199===e.kind},e.isPrefixUnaryExpression=function(e){return 200===e.kind},e.isPostfixUnaryExpression=function(e){return 201===e.kind},e.isBinaryExpression=function(e){return 202===e.kind},e.isConditionalExpression=function(e){return 203===e.kind},e.isTemplateExpression=function(e){return 204===e.kind},e.isYieldExpression=function(e){return 205===e.kind},e.isSpreadElement=function(e){return 206===e.kind},e.isClassExpression=function(e){return 207===e.kind},e.isOmittedExpression=function(e){return 208===e.kind},e.isExpressionWithTypeArguments=function(e){return 209===e.kind},e.isAsExpression=function(e){return 210===e.kind},e.isNonNullExpression=function(e){return 211===e.kind},e.isMetaProperty=function(e){return 212===e.kind},e.isTemplateSpan=function(e){return 214===e.kind},e.isSemicolonClassElement=function(e){return 215===e.kind},e.isBlock=function(e){return 216===e.kind},e.isVariableStatement=function(e){return 217===e.kind},e.isEmptyStatement=function(e){return 218===e.kind},e.isExpressionStatement=function(e){return 219===e.kind},e.isIfStatement=function(e){return 220===e.kind},e.isDoStatement=function(e){return 221===e.kind},e.isWhileStatement=function(e){return 222===e.kind},e.isForStatement=function(e){return 223===e.kind},e.isForInStatement=function(e){return 224===e.kind},e.isForOfStatement=function(e){return 225===e.kind},e.isContinueStatement=function(e){return 226===e.kind},e.isBreakStatement=function(e){return 227===e.kind},e.isBreakOrContinueStatement=function(e){return 227===e.kind||226===e.kind},e.isReturnStatement=function(e){return 228===e.kind},e.isWithStatement=function(e){return 229===e.kind},e.isSwitchStatement=function(e){return 230===e.kind},e.isLabeledStatement=function(e){return 231===e.kind},e.isThrowStatement=function(e){return 232===e.kind},e.isTryStatement=function(e){return 233===e.kind},e.isDebuggerStatement=function(e){return 234===e.kind},e.isVariableDeclaration=function(e){return 235===e.kind},e.isVariableDeclarationList=function(e){return 236===e.kind},e.isFunctionDeclaration=function(e){return 237===e.kind},e.isClassDeclaration=function(e){return 238===e.kind},e.isInterfaceDeclaration=function(e){return 239===e.kind},e.isTypeAliasDeclaration=function(e){return 240===e.kind},e.isEnumDeclaration=function(e){return 241===e.kind},e.isModuleDeclaration=function(e){return 242===e.kind},e.isModuleBlock=function(e){return 243===e.kind},e.isCaseBlock=function(e){return 244===e.kind},e.isNamespaceExportDeclaration=function(e){return 245===e.kind},e.isImportEqualsDeclaration=function(e){return 246===e.kind},e.isImportDeclaration=function(e){return 247===e.kind},e.isImportClause=function(e){return 248===e.kind},e.isNamespaceImport=function(e){return 249===e.kind},e.isNamedImports=function(e){return 250===e.kind},e.isImportSpecifier=function(e){return 251===e.kind},e.isExportAssignment=function(e){return 252===e.kind},e.isExportDeclaration=function(e){return 253===e.kind},e.isNamedExports=function(e){return 254===e.kind},e.isExportSpecifier=function(e){return 255===e.kind},e.isMissingDeclaration=function(e){return 256===e.kind},e.isExternalModuleReference=function(e){return 257===e.kind},e.isJsxElement=function(e){return 258===e.kind},e.isJsxSelfClosingElement=function(e){return 259===e.kind},e.isJsxOpeningElement=function(e){return 260===e.kind},e.isJsxClosingElement=function(e){return 261===e.kind},e.isJsxFragment=function(e){return 262===e.kind},e.isJsxOpeningFragment=function(e){return 263===e.kind},e.isJsxClosingFragment=function(e){return 264===e.kind},e.isJsxAttribute=function(e){return 265===e.kind},e.isJsxAttributes=function(e){return 266===e.kind},e.isJsxSpreadAttribute=function(e){return 267===e.kind},e.isJsxExpression=function(e){return 268===e.kind},e.isCaseClause=function(e){return 269===e.kind},e.isDefaultClause=function(e){return 270===e.kind},e.isHeritageClause=function(e){return 271===e.kind},e.isCatchClause=function(e){return 272===e.kind},e.isPropertyAssignment=function(e){return 273===e.kind},e.isShorthandPropertyAssignment=function(e){return 274===e.kind},e.isSpreadAssignment=function(e){return 275===e.kind},e.isEnumMember=function(e){return 276===e.kind},e.isSourceFile=function(e){return 277===e.kind},e.isBundle=function(e){return 278===e.kind},e.isUnparsedSource=function(e){return 279===e.kind},e.isJSDocTypeExpression=function(e){return 281===e.kind},e.isJSDocAllType=function(e){return 282===e.kind},e.isJSDocUnknownType=function(e){return 283===e.kind},e.isJSDocNullableType=function(e){return 284===e.kind},e.isJSDocNonNullableType=function(e){return 285===e.kind},e.isJSDocOptionalType=function(e){return 286===e.kind},e.isJSDocFunctionType=function(e){return 287===e.kind},e.isJSDocVariadicType=function(e){return 288===e.kind},e.isJSDoc=function(e){return 289===e.kind},e.isJSDocAugmentsTag=function(e){return 293===e.kind},e.isJSDocClassTag=function(e){return 294===e.kind},e.isJSDocEnumTag=function(e){return 296===e.kind},e.isJSDocThisTag=function(e){return 299===e.kind},e.isJSDocParameterTag=function(e){return 297===e.kind},e.isJSDocReturnTag=function(e){return 298===e.kind},e.isJSDocTypeTag=function(e){return 300===e.kind},e.isJSDocTemplateTag=function(e){return 301===e.kind},e.isJSDocTypedefTag=function(e){return 302===e.kind},e.isJSDocPropertyTag=function(e){return 303===e.kind},e.isJSDocPropertyLikeTag=function(e){return 303===e.kind||297===e.kind},e.isJSDocTypeLiteral=function(e){return 290===e.kind},e.isJSDocCallbackTag=function(e){return 295===e.kind},e.isJSDocSignature=function(e){return 291===e.kind}}(ts||(ts={})),function(o){function n(e){return 146<=e}function t(e){return 8<=e&&e<=13}function r(e){return 13<=e&&e<=16}function a(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 132:case 115:return!0}return!1}function i(e){return!!(92&o.modifierToFlag(e))}function s(e){return e&&l(e.kind)}function c(e){switch(e){case 237:case 154:case 155:case 156:case 157:case 194:case 195:return!0;default:return!1}}function l(e){switch(e){case 153:case 158:case 291:case 159:case 160:case 163:case 287:case 164:return!0;default:return c(e)}}function u(e){var n=e.kind;return 155===n||152===n||154===n||156===n||157===n||160===n||215===n}function d(e){var n=e.kind;return 159===n||158===n||151===n||153===n||160===n}function p(e){var n=e.kind;return 273===n||274===n||275===n||154===n||156===n||157===n}function m(e){switch(e.kind){case 182:case 186:return!0}return!1}function f(e){switch(e.kind){case 183:case 185:return!0}return!1}function _(e){switch(e){case 187:case 188:case 190:case 189:case 258:case 259:case 262:case 191:case 185:case 193:case 186:case 207:case 194:case 71:case 12:case 8:case 9:case 13:case 204:case 86:case 95:case 99:case 101:case 97:case 211:case 212:case 91:return!0;default:return!1}}function g(e){switch(e){case 200:case 201:case 196:case 197:case 198:case 199:case 192:return!0;default:return _(e)}}function v(e){return function(e){switch(e){case 203:case 205:case 195:case 202:case 206:case 210:case 208:case 307:case 306:return!0;default:return g(e)}}(o.skipPartiallyEmittedExpressions(e).kind)}function y(e){return 306===e.kind}function h(e){return 305===e.kind}function b(e){return 237===e||256===e||238===e||239===e||240===e||241===e||242===e||247===e||246===e||253===e||252===e||245===e}function E(e){return 227===e||226===e||234===e||221===e||219===e||218===e||224===e||225===e||223===e||220===e||231===e||228===e||230===e||232===e||233===e||217===e||222===e||229===e||305===e||309===e||308===e}function T(e){return 292<=e.kind&&e.kind<=303}function S(e){return!!e.initializer}o.isSyntaxList=function(e){return 304===e.kind},o.isNode=function(e){return n(e.kind)},o.isNodeKind=n,o.isToken=function(e){return 0<=e.kind&&e.kind<=145},o.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},o.isLiteralKind=t,o.isLiteralExpression=function(e){return t(e.kind)},o.isTemplateLiteralKind=r,o.isTemplateLiteralToken=function(e){return r(e.kind)},o.isTemplateMiddleOrTemplateTail=function(e){var n=e.kind;return 15===n||16===n},o.isStringTextContainingNode=function(e){return 9===e.kind||r(e.kind)},o.isGeneratedIdentifier=function(e){return o.isIdentifier(e)&&0<(7&e.autoGenerateFlags)},o.isModifierKind=a,o.isParameterPropertyModifier=i,o.isClassMemberModifier=function(e){return i(e)||115===e},o.isModifier=function(e){return a(e.kind)},o.isEntityName=function(e){var n=e.kind;return 146===n||71===n},o.isPropertyName=function(e){var n=e.kind;return 71===n||9===n||8===n||147===n},o.isBindingName=function(e){var n=e.kind;return 71===n||182===n||183===n},o.isFunctionLike=s,o.isFunctionLikeDeclaration=function(e){return e&&c(e.kind)},o.isFunctionLikeKind=l,o.isFunctionOrModuleBlock=function(e){return o.isSourceFile(e)||o.isModuleBlock(e)||o.isBlock(e)&&s(e.parent)},o.isClassElement=u,o.isClassLike=function(e){return e&&(238===e.kind||207===e.kind)},o.isAccessor=function(e){return e&&(156===e.kind||157===e.kind)},o.isMethodOrAccessor=function(e){switch(e.kind){case 154:case 156:case 157:return!0;default:return!1}},o.isTypeElement=d,o.isClassOrTypeElement=function(e){return d(e)||u(e)},o.isObjectLiteralElementLike=p,o.isTypeNode=function(e){return 161<=(n=e.kind)&&n<=181||119===n||142===n||134===n||135===n||122===n||137===n||138===n||99===n||105===n||140===n||95===n||131===n||209===n||282===n||283===n||284===n||285===n||286===n||287===n||288===n;var n},o.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 163:case 164:return!0}return!1},o.isBindingPattern=function(e){if(e){var n=e.kind;return 183===n||182===n}return!1},o.isAssignmentPattern=function(e){var n=e.kind;return 185===n||186===n},o.isArrayBindingElement=function(e){var n=e.kind;return 184===n||208===n},o.isDeclarationBindingElement=function(e){switch(e.kind){case 235:case 149:case 184:return!0}return!1},o.isBindingOrAssignmentPattern=function(e){return m(e)||f(e)},o.isObjectBindingOrAssignmentPattern=m,o.isArrayBindingOrAssignmentPattern=f,o.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var n=e.kind;return 187===n||146===n||181===n},o.isPropertyAccessOrQualifiedName=function(e){var n=e.kind;return 187===n||146===n},o.isCallLikeExpression=function(e){switch(e.kind){case 260:case 259:case 189:case 190:case 191:case 150:return!0;default:return!1}},o.isCallOrNewExpression=function(e){return 189===e.kind||190===e.kind},o.isTemplateLiteral=function(e){var n=e.kind;return 204===n||13===n},o.isLeftHandSideExpression=function(e){return _(o.skipPartiallyEmittedExpressions(e).kind)},o.isUnaryExpression=function(e){return g(o.skipPartiallyEmittedExpressions(e).kind)},o.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 201:return!0;case 200:return 43===e.operator||44===e.operator;default:return!1}},o.isExpression=v,o.isAssertionExpression=function(e){var n=e.kind;return 192===n||210===n},o.isPartiallyEmittedExpression=y,o.isNotEmittedStatement=h,o.isNotEmittedOrPartiallyEmittedNode=function(e){return h(e)||y(e)},o.isIterationStatement=function e(n,t){switch(n.kind){case 223:case 224:case 225:case 221:case 222:return!0;case 231:return t&&e(n.statement,t)}return!1},o.isForInOrOfStatement=function(e){return 224===e.kind||225===e.kind},o.isConciseBody=function(e){return o.isBlock(e)||v(e)},o.isFunctionBody=function(e){return o.isBlock(e)},o.isForInitializer=function(e){return o.isVariableDeclarationList(e)||v(e)},o.isModuleBody=function(e){var n=e.kind;return 243===n||242===n||71===n},o.isNamespaceBody=function(e){var n=e.kind;return 243===n||242===n},o.isJSDocNamespaceBody=function(e){var n=e.kind;return 71===n||242===n},o.isNamedImportBindings=function(e){var n=e.kind;return 250===n||249===n},o.isModuleOrEnumDeclaration=function(e){return 242===e.kind||241===e.kind},o.isDeclaration=function(e){return 148===e.kind?301!==e.parent.kind||o.isInJSFile(e):195===(n=e.kind)||184===n||238===n||207===n||155===n||241===n||276===n||255===n||237===n||194===n||156===n||248===n||246===n||251===n||239===n||265===n||154===n||153===n||242===n||245===n||249===n||149===n||273===n||152===n||151===n||157===n||274===n||240===n||148===n||235===n||302===n||295===n||303===n;var n},o.isDeclarationStatement=function(e){return b(e.kind)},o.isStatementButNotDeclaration=function(e){return E(e.kind)},o.isStatement=function(e){var n=e.kind;return E(n)||b(n)||(t=e,216===t.kind&&(void 0===t.parent||233!==t.parent.kind&&272!==t.parent.kind)&&!o.isFunctionBlock(t));var t},o.isModuleReference=function(e){var n=e.kind;return 257===n||146===n||71===n},o.isJsxTagNameExpression=function(e){var n=e.kind;return 99===n||71===n||187===n},o.isJsxChild=function(e){var n=e.kind;return 258===n||268===n||259===n||10===n||262===n},o.isJsxAttributeLike=function(e){var n=e.kind;return 265===n||267===n},o.isStringLiteralOrJsxExpression=function(e){var n=e.kind;return 9===n||268===n},o.isJsxOpeningLikeElement=function(e){var n=e.kind;return 260===n||259===n},o.isCaseOrDefaultClause=function(e){var n=e.kind;return 269===n||270===n},o.isJSDocNode=function(e){return 281<=e.kind&&e.kind<=303},o.isJSDocCommentContainingNode=function(e){return 289===e.kind||T(e)||o.isJSDocTypeLiteral(e)||o.isJSDocSignature(e)},o.isJSDocTag=T,o.isSetAccessor=function(e){return 157===e.kind},o.isGetAccessor=function(e){return 156===e.kind},o.hasJSDocNodes=function(e){var n=e.jsDoc;return!!n&&0<n.length},o.hasType=function(e){return!!e.type},o.hasInitializer=S,o.hasOnlyExpressionInitializer=function(e){return S(e)&&!o.isForStatement(e)&&!o.isForInStatement(e)&&!o.isForOfStatement(e)&&!o.isJsxAttribute(e)},o.isObjectLiteralElement=function(e){return 265===e.kind||267===e.kind||p(e)},o.isTypeReferenceType=function(e){return 162===e.kind||209===e.kind};var x=1073741823;o.guessIndentation=function(e){for(var n=x,t=0,r=e;t<r.length;t++){var a=r[t];if(a.length){for(var i=0;i<a.length&&i<n&&o.isWhiteSpaceLike(a.charCodeAt(i));i++);if(i<n&&(n=i),0===n)return 0}}return n===x?void 0:n},o.isStringLiteralLike=function(e){return 9===e.kind||13===e.kind}}(ts||(ts={})),function(u){function e(e,n){this.flags=e,this.escapedName=n,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function n(e,n){this.flags=n,u.Debug.isDebugging&&(this.checker=e)}function t(){}function r(e,n,t){this.pos=n,this.end=t,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,n,t){this.fileName=e,this.text=n,this.skipTrivia=t||function(e){return e}}function i(e,t,r){return void 0===r&&(r=0),e.replace(/{(\d+)}/g,function(e,n){return u.Debug.assertDefined(t[+n+r])})}function o(e){return u.localizedDiagnosticMessages&&u.localizedDiagnosticMessages[e.key]||e.message}function s(e){return e.file?e.file.path:void 0}function c(e,n){return l(e,n)||function(e,r){if(!e.relatedInformation&&!r.relatedInformation)return 0;if(e.relatedInformation&&r.relatedInformation)return u.compareValues(e.relatedInformation.length,r.relatedInformation.length)||u.forEach(e.relatedInformation,function(e,n){var t=r.relatedInformation[n];return c(e,t)})||0;return e.relatedInformation?-1:1}(e,n)||0}function l(e,n){return u.compareStringsCaseSensitive(s(e),s(n))||u.compareValues(e.start,n.start)||u.compareValues(e.length,n.length)||u.compareValues(e.code,n.code)||function(e,n){var t=e,r=n;for(;t&&r;){var a=u.isString(t)?t:t.messageText,i=u.isString(r)?r:r.messageText,o=u.compareStringsCaseSensitive(a,i);if(o)return o;t=u.isString(t)?void 0:t.next,r=u.isString(r)?void 0:r.next}return t||r?t?1:-1:0}(e.messageText,n.messageText)||0}function d(e){return e.target||0}function p(e){return"number"==typeof e.module?e.module:2<=d(e)?u.ModuleKind.ES2015:u.ModuleKind.CommonJS}function m(e){return!(!e.declaration&&!e.composite)}function f(e,n){return void 0===e[n]?!!e.strict:!!e[n]}function _(e,n){return n.strictFlag?f(e,n.name):e[n.name]}u.isNamedImportsOrExports=function(e){return 250===e.kind||254===e.kind},u.objectAllocator={getNodeConstructor:function(){return r},getTokenConstructor:function(){return r},getIdentifierConstructor:function(){return r},getSourceFileConstructor:function(){return r},getSymbolConstructor:function(){return e},getTypeConstructor:function(){return n},getSignatureConstructor:function(){return t},getSourceMapSourceConstructor:function(){return a}},u.formatStringFromArgs=i,u.getLocaleSpecificMessage=o,u.createFileDiagnostic=function(e,n,t,r){u.Debug.assertGreaterThanOrEqual(n,0),u.Debug.assertGreaterThanOrEqual(t,0),e&&(u.Debug.assertLessThanOrEqual(n,e.text.length),u.Debug.assertLessThanOrEqual(n+t,e.text.length));var a=o(r);return 4<arguments.length&&(a=i(a,arguments,4)),{file:e,start:n,length:t,messageText:a,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary}},u.formatMessage=function(e,n){var t=o(n);return 2<arguments.length&&(t=i(t,arguments,2)),t},u.createCompilerDiagnostic=function(e){var n=o(e);return 1<arguments.length&&(n=i(n,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary}},u.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}},u.chainDiagnosticMessages=function(e,n){var t=o(n);return 2<arguments.length&&(t=i(t,arguments,2)),{messageText:t,category:n.category,code:n.code,next:e}},u.concatenateDiagnosticMessageChains=function(e,n){for(var t=e;t.next;)t=t.next;return t.next=n,e},u.compareDiagnostics=c,u.compareDiagnosticsSkipRelatedInformation=l,u.getEmitScriptTarget=d,u.getEmitModuleKind=p,u.getEmitModuleResolutionKind=function(e){var n=e.moduleResolution;return void 0===n&&(n=p(e)===u.ModuleKind.CommonJS?u.ModuleResolutionKind.NodeJs:u.ModuleResolutionKind.Classic),n},u.hasJsonModuleEmitEnabled=function(e){switch(p(e)){case u.ModuleKind.CommonJS:case u.ModuleKind.AMD:case u.ModuleKind.ES2015:case u.ModuleKind.ESNext:return!0;default:return!1}},u.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},u.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},u.getAreDeclarationMapsEnabled=function(e){return!(!m(e)||!e.declarationMap)},u.getAllowSyntheticDefaultImports=function(e){var n=p(e);return void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:e.esModuleInterop||n===u.ModuleKind.System},u.getEmitDeclarations=m,u.getStrictOptionValue=f,u.compilerOptionsAffectSemanticDiagnostics=function(n,t){return t!==n&&u.semanticDiagnosticsOptionDeclarations.some(function(e){return!u.isJsonEqual(_(t,e),_(n,e))})},u.getCompilerOptionValue=_,u.hasZeroOrOneAsteriskCharacter=function(e){for(var n=!1,t=0;t<e.length;t++)if(42===e.charCodeAt(t)){if(n)return!1;n=!0}return!0},u.directorySeparator="/";var g="\\",v="://",y=/\\/g;function h(e){return e.replace(y,u.directorySeparator)}function b(e){return 97<=e&&e<=122||65<=e&&e<=90}function E(e){if(!e)return 0;var n=e.charCodeAt(0);if(47===n||92===n){if(e.charCodeAt(1)!==n)return 1;var t=e.indexOf(47===n?u.directorySeparator:g,2);return t<0?e.length:t+1}if(b(n)&&58===e.charCodeAt(1)){var r=e.charCodeAt(2);if(47===r||92===r)return 3;if(2===e.length)return 2}var a=e.indexOf(v);if(-1===a)return 0;var i=a+v.length,o=e.indexOf(u.directorySeparator,i);if(-1===o)return~e.length;var s=e.slice(0,a),c=e.slice(i,o);if("file"===s&&(""===c||"localhost"===c)&&b(e.charCodeAt(o+1))){var l=function(e,n){var t=e.charCodeAt(n);if(58===t)return n+1;if(37===t&&51===e.charCodeAt(n+1)){var r=e.charCodeAt(n+2);if(97===r||65===r)return n+3}return-1}(e,o+2);if(-1!==l){if(47===e.charCodeAt(l))return~(l+1);if(l===e.length)return~l}}return~(o+1)}function T(e){var n=E(e);return n<0?~n:n}function S(e){return 0<E(e)}function x(e,n){void 0===n&&(n="");var t,r,a,i,o=T(e=u.combinePaths(n,e));return r=o,a=(t=e).substring(0,r),(i=t.substring(r).split(u.directorySeparator)).length&&!u.lastOrUndefined(i)&&i.pop(),[a].concat(i)}function C(e){if(!u.some(e))return[];for(var n=[e[0]],t=1;t<e.length;t++){var r=e[t];if(r&&"."!==r){if(".."===r)if(1<n.length){if(".."!==n[n.length-1]){n.pop();continue}}else if(n[0])continue;n.push(r)}}return n}function D(e,n){return C(x(e,n))}function A(e){return 0===e.length?"":(e[0]&&u.ensureTrailingDirectorySeparator(e[0]))+e.slice(1).join(u.directorySeparator)}u.normalizeSlashes=h,u.getRootLength=T,u.normalizePath=function(e){return u.resolvePath(e)},u.normalizePathAndParts=function(e){var n=C(x(e=h(e))),t=n[0],r=n.slice(1);if(r.length){var a=t+r.join(u.directorySeparator);return{path:u.hasTrailingDirectorySeparator(e)?u.ensureTrailingDirectorySeparator(a):a,parts:r}}return{path:t,parts:r}},u.getDirectoryPath=function(e){var n=T(e=h(e));return n===e.length?e:(e=u.removeTrailingDirectorySeparator(e)).slice(0,Math.max(n,e.lastIndexOf(u.directorySeparator)))},u.startsWithDirectory=function(e,n,t){var r=t(e),a=t(n);return u.startsWith(r,a+"/")||u.startsWith(r,a+"\\")},u.isUrl=function(e){return E(e)<0},u.pathIsRelative=function(e){return/^\.\.?($|[\\/])/.test(e)},u.isRootedDiskPath=S,u.isDiskPathRoot=function(e){var n=E(e);return 0<n&&n===e.length},u.convertToRelativePath=function(e,n,t){return S(e)?u.getRelativePathToDirectoryOrUrl(n,e,n,t,!1):e},u.getPathComponents=x,u.reducePathComponents=C,u.getNormalizedPathComponents=D,u.getNormalizedAbsolutePath=function(e,n){return A(D(e,n))},u.getPathFromPathComponents=A}(ts||(ts={})),function(E){function c(e,n,t,r){var a,i=E.reducePathComponents(E.getPathComponents(e)),o=E.reducePathComponents(E.getPathComponents(n));for(a=0;a<i.length&&a<o.length;a++){var s=r(i[a]),c=r(o[a]);if(!(0===a?E.equateStringsCaseInsensitive:t)(s,c))break}if(0===a)return o;for(var l=o.slice(a),u=[];a<i.length;a++)u.push("..");return[""].concat(u,l)}function r(e,n,t){O.assert(0<E.getRootLength(e)==0<E.getRootLength(n),"Paths must either both be absolute or both be relative");var r="function"==typeof t?t:E.identity,a=c(e,n,"boolean"==typeof t&&t?E.equateStringsCaseInsensitive:E.equateStringsCaseSensitive,r);return E.getPathFromPathComponents(a)}function a(e){return 0!==E.getRootLength(e)||E.pathIsRelative(e)?e:"./"+e}function i(e,n,t){if(e=E.normalizeSlashes(e),E.getRootLength(e)===e.length)return"";var r=(e=g(e)).slice(Math.max(E.getRootLength(e),e.lastIndexOf(E.directorySeparator)+1)),a=void 0!==n&&void 0!==t?K(r,n,t):void 0;return a?r.slice(0,r.length-a.length):r}function T(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];e&&(e=E.normalizeSlashes(e));for(var r=0,a=n;r<a.length;r++){var i=a[r];i&&(i=E.normalizeSlashes(i),e=e&&0===E.getRootLength(i)?s(e)+i:i)}return e}function l(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];var r=E.some(n)?T.apply(void 0,[e].concat(n)):E.normalizeSlashes(e),a=E.getPathFromPathComponents(E.reducePathComponents(E.getPathComponents(r)));return a&&o(r)?s(a):a}function o(e){if(0===e.length)return!1;var n=e.charCodeAt(e.length-1);return 47===n||92===n}function g(e){return o(e)?e.substr(0,e.length-1):e}function s(e){return o(e)?e:e+E.directorySeparator}function u(e,n,t){if(e===n)return 0;if(void 0===e)return-1;if(void 0===n)return 1;for(var r=E.reducePathComponents(E.getPathComponents(e)),a=E.reducePathComponents(E.getPathComponents(n)),i=Math.min(r.length,a.length),o=0;o<i;o++){var s=(0===o?E.compareStringsCaseInsensitive:t)(r[o],a[o]);if(0!==s)return s}return E.compareValues(r.length,a.length)}function m(e,n,t,r){if("string"==typeof t?(e=T(t,e),n=T(t,n)):"boolean"==typeof t&&(r=t),void 0===e||void 0===n)return!1;if(e===n)return!0;var a=E.reducePathComponents(E.getPathComponents(e)),i=E.reducePathComponents(E.getPathComponents(n));if(i.length<a.length)return!1;for(var o=r?E.equateStringsCaseInsensitive:E.equateStringsCaseSensitive,s=0;s<a.length;s++){if(!(0===s?E.equateStringsCaseInsensitive:o)(a[s],i[s]))return!1}return!0}E.getPathComponentsRelativeTo=c,E.getRelativePathFromFile=function(e,n,t){return a(r(E.getDirectoryPath(e),n,t))},E.getRelativePathFromDirectory=r,E.getRelativePathToDirectoryOrUrl=function(e,n,t,r,a){var i=c(l(t,e),l(t,n),E.equateStringsCaseSensitive,r),o=i[0];if(a&&E.isRootedDiskPath(o)){var s=o.charAt(0)===E.directorySeparator?"file://":"file:///";i[0]=s+o}return E.getPathFromPathComponents(i)},E.ensurePathIsNonModuleName=a,E.getBaseFileName=i,E.combinePaths=T,E.resolvePath=l,E.hasTrailingDirectorySeparator=o,E.removeTrailingDirectorySeparator=g,E.ensureTrailingDirectorySeparator=s,E.comparePathsCaseSensitive=function(e,n){return u(e,n,E.compareStringsCaseSensitive)},E.comparePathsCaseInsensitive=function(e,n){return u(e,n,E.compareStringsCaseInsensitive)},E.comparePaths=function(e,n,t,r){return"string"==typeof t?(e=T(t,e),n=T(t,n)):"boolean"==typeof t&&(r=t),u(e,n,E.getStringComparer(r))},E.containsPath=m,E.tryRemoveDirectoryPrefix=function(e,n,t){var r,a,i=E.tryRemovePrefix(e,n,t);return void 0===i?void 0:47===(a=(r=i).charCodeAt(0))||92===a?r.slice(1):void 0};var v=/[^\w\s\/]/g;function n(e){return"\\"+e}E.regExpEscape=function(e){return e.replace(v,n)};var t=[42,63];function d(e){return E.stringContains(i(e),".")}E.hasExtension=d,E.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var y="(?!("+E.commonPackageFolders.join("|")+")(/|$))",p={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/"+y+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return C(e,p.singleAsteriskRegexFragment)}},f={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/"+y+"[^/.][^/]*)*?",replaceWildcardCharacter:function(e){return C(e,f.singleAsteriskRegexFragment)}},_={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return C(e,_.singleAsteriskRegexFragment)}},h={files:p,directories:f,exclude:_};function b(e,n,t){var r=S(e,n,t);if(r&&r.length)return"^("+r.map(function(e){return"("+e+")"}).join("|")+")"+("exclude"===t?"($|/)":"$")}function S(e,n,t){if(void 0!==e&&0!==e.length)return E.flatMap(e,function(e){return e&&function(e,n,t,r){var a=r.singleAsteriskRegexFragment,i=r.doubleAsteriskRegexFragment,o=r.replaceWildcardCharacter,s="",c=!1,l=E.getNormalizedPathComponents(e,n),u=E.last(l);if("exclude"!==t&&"**"===u)return;l[0]=g(l[0]),x(u)&&l.push("**","*");for(var d=0,p=0,m=l;p<m.length;p++){var f=m[p];if("**"===f)s+=i;else if("directories"===t&&(s+="(",d++),c&&(s+=E.directorySeparator),"exclude"!==t){var _="";42===f.charCodeAt(0)?(_+="([^./]"+a+")?",f=f.substr(1)):63===f.charCodeAt(0)&&(_+="[^./]",f=f.substr(1)),(_+=f.replace(v,o))!==f&&(s+=y),s+=_}else s+=f.replace(v,o);c=!0}for(;0<d;)s+=")?",d--;return s}(e,n,t,h[t])})}function x(e){return!/[.*?]/.test(e)}function C(e,n){return"*"===e?n:"?"===e?"[^/]":"\\"+e}function D(e,n,t,r,a){e=E.normalizePath(e);var i=T(a=E.normalizePath(a),e);return{includeFilePatterns:E.map(S(t,i,"files"),function(e){return"^"+e+"$"}),includeFilePattern:b(t,i,"files"),includeDirectoryPattern:b(t,i,"directories"),excludePattern:b(n,i,"exclude"),basePaths:function(t,e,r){var a=[t];if(e){for(var n=[],i=0,o=e;i<o.length;i++){var s=o[i],c=E.isRootedDiskPath(s)?s:E.normalizePath(T(t,s));n.push(L(c))}n.sort(E.getStringComparer(!r));for(var l=function(n){E.every(a,function(e){return!m(e,n,t,!r)})&&a.push(n)},u=0,d=n;u<d.length;u++){var p=d[u];l(p)}}return a}(e,t,r)}}function A(e,n){return new RegExp(e,n?"":"i")}function L(e){var n=E.indexOfAnyCharCode(e,t);return n<0?d(e)?g(E.getDirectoryPath(e)):e:e.substring(0,e.lastIndexOf(E.directorySeparator,n))}function k(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=b,E.isImplicitGlob=x,E.getFileMatcherPatterns=D,E.getRegexFromPattern=A,E.matchFiles=function(e,f,n,t,r,a,i,_){e=E.normalizePath(e),a=E.normalizePath(a);for(var o=D(e,n,t,r,a),g=o.includeFilePatterns&&o.includeFilePatterns.map(function(e){return A(e,r)}),v=o.includeDirectoryPattern&&A(o.includeDirectoryPattern,r),y=o.excludePattern&&A(o.excludePattern,r),h=g?g.map(function(){return[]}):[[]],s=0,c=o.basePaths;s<c.length;s++){var l=c[s];b(l,T(a,l),i)}return E.flatten(h);function b(a,i,e){for(var n=_(a),t=n.files,r=n.directories,o=function(e){var n=T(a,e),t=T(i,e);if(f&&!E.fileExtensionIsOneOf(n,f))return"continue";if(y&&y.test(t))return"continue";if(g){var r=E.findIndex(g,function(e){return e.test(t)});-1!==r&&h[r].push(n)}else h[0].push(n)},s=0,c=E.sort(t,E.compareStringsCaseSensitive);s<c.length;s++)o(d=c[s]);if(void 0===e||0!=--e)for(var l=0,u=E.sort(r,E.compareStringsCaseSensitive);l<u.length;l++){var d=u[l],p=T(a,d),m=T(i,d);v&&!v.test(m)||y&&y.test(m)||b(p,m,e)}}},E.ensureScriptKind=function(e,n){return n||k(e)||3},E.getScriptKindFromFileName=k,E.supportedTSExtensions=[".ts",".tsx",".d.ts"],E.supportedTSExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],E.supportedJSExtensions=[".js",".jsx"],E.supportedJSAndJsonExtensions=[".js",".jsx",".json"];var e,N=E.supportedTSExtensions.concat(E.supportedJSExtensions);function I(e,n){var t=e&&e.allowJs;if(!n||0===n.length)return t?N:E.supportedTSExtensions;var r=(t?N:E.supportedTSExtensions).concat(E.mapDefined(n,function(e){return 7===e.scriptKind||t&&(1===(n=e.scriptKind)||2===n)?e.extension:void 0;var n}));return E.deduplicate(r,E.equateStringsCaseSensitive,E.compareStringsCaseSensitive)}function M(e,n){return e<2?0:e<n.length?2:n.length}E.getSupportedExtensions=I,E.hasJSFileExtension=function(n){return E.some(E.supportedJSExtensions,function(e){return E.fileExtensionIs(n,e)})},E.hasJSOrJsonFileExtension=function(n){return E.supportedJSAndJsonExtensions.some(function(e){return E.fileExtensionIs(n,e)})},E.hasTSFileExtension=function(n){return E.some(E.supportedTSExtensions,function(e){return E.fileExtensionIs(n,e)})},E.isSupportedSourceFileName=function(e,n,t){if(!e)return!1;for(var r=0,a=I(n,t);r<a.length;r++){var i=a[r];if(E.fileExtensionIs(e,i))return!0}return!1},(e=E.ExtensionPriority||(E.ExtensionPriority={}))[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest",E.getExtensionPriority=function(e,n){for(var t=n.length-1;0<=t;t--)if(E.fileExtensionIs(e,n[t]))return M(t,n);return 0},E.adjustExtensionPriority=M,E.getNextLowestExtensionPriority=function(e,n){return e<2?2:n.length};var O,w=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function P(e,n){return E.fileExtensionIs(e,n)?R(e,n):void 0}function R(e,n){return e.substring(0,e.length-n.length)}function F(e,n,t,r){var a=void 0!==t&&void 0!==r?K(e,t,r):K(e);return a?e.slice(0,e.length-a.length)+(E.startsWith(n,".")?n:"."+n):e}function G(e){O.assert(E.hasZeroOrOneAsteriskCharacter(e));var n=e.indexOf("*");return-1===n?void 0:{prefix:e.substr(0,n),suffix:e.substr(n+1)}}function V(e){return".ts"===e||".tsx"===e||".d.ts"===e}function B(n){return E.find(w,function(e){return E.fileExtensionIs(n,e)})}function K(e,n,t){if(n)return function(e,n,t){"string"==typeof n&&(n=[n]);for(var r=0,a=n;r<a.length;r++){var i=a[r];if(E.startsWith(i,".")||(i="."+i),e.length>=i.length&&"."===e.charAt(e.length-i.length)){var o=e.slice(e.length-i.length);if(t(o,i))return o}}return""}(e,n,t?E.equateStringsCaseInsensitive:E.equateStringsCaseSensitive);var r=i(e),a=r.lastIndexOf(".");return 0<=a?r.substring(a):""}E.removeFileExtension=function(e){for(var n=0,t=w;n<t.length;n++){var r=P(e,t[n]);if(void 0!==r)return r}return e},E.tryRemoveExtension=P,E.removeExtension=R,E.changeExtension=function(e,n){return F(e,n,w,!1)},E.changeAnyExtension=F,function(e){function t(e){var n=E.SyntaxKind;return n?n[e.kind]:e.kind.toString()}e.showSymbol=function(e){var n=E.SymbolFlags;return"{ flags: "+(n?function(e,n){for(var t=[],r=0;r<=30;r++){var a=1<<r;e&a&&t.push(n[a])}return t.join("|")}(e.flags,n):e.flags)+"; declarations: "+E.map(e.declarations,t)+" }"},e.showSyntaxKind=t}(O=E.Debug||(E.Debug={})),E.tryParsePattern=G,E.positionIsSynthesized=function(e){return!(0<=e)},E.extensionIsTS=V,E.resolutionExtensionIsTSOrJson=function(e){return V(e)||".json"===e},E.extensionFromPath=function(e){var n=B(e);return void 0!==n?n:O.fail("File "+e+" has unknown extension.")},E.isAnySupportedFileExtension=function(e){return void 0!==B(e)},E.tryGetExtensionFromPath=B,E.getAnyExtensionFromPath=K,E.isCheckJsEnabledForFile=function(e,n){return e.checkJsDirective?e.checkJsDirective.enabled:n.checkJs},E.emptyFileSystemEntries={files:E.emptyArray,directories:E.emptyArray},E.matchPatternOrExact=function(e,n){for(var t=[],r=0,a=e;r<a.length;r++){var i=a[r],o=G(i);if(o)t.push(o);else if(i===n)return i}return E.findBestPatternMatch(t,function(e){return e},n)},E.sliceAfter=function(e,n){var t=e.indexOf(n);return O.assert(-1!==t),e.slice(t)},E.minAndMax=function(e,n){O.assert(0!==e.length);for(var t=n(e[0]),r=t,a=1;a<e.length;a++){var i=n(e[a]);i<t?t=i:r<i&&(r=i)}return{min:t,max:r}};var j=function(){function e(){this.map=E.createMap()}return e.prototype.add=function(e){this.map.set(String(E.getNodeId(e)),e)},e.prototype.tryAdd=function(e){return!this.has(e)&&(this.add(e),!0)},e.prototype.has=function(e){return this.map.has(String(E.getNodeId(e)))},e.prototype.forEach=function(e){this.map.forEach(e)},e.prototype.some=function(e){return E.forEachEntry(this.map,e)||!1},e}();E.NodeSet=j;var H=function(){function e(){this.map=E.createMap()}return e.prototype.get=function(e){var n=this.map.get(String(E.getNodeId(e)));return n&&n.value},e.prototype.getOrUpdate=function(e,n){var t=this.get(e);if(t)return t;var r=n();return this.set(e,r),r},e.prototype.set=function(e,n){this.map.set(String(E.getNodeId(e)),{node:e,value:n})},e.prototype.has=function(e){return this.map.has(String(E.getNodeId(e)))},e.prototype.forEach=function(r){this.map.forEach(function(e){var n=e.node,t=e.value;return r(t,n)})},e}();E.NodeMap=H,E.rangeOfNode=function(e){return{pos:E.getTokenPosOfNode(e),end:e.end}},E.rangeOfTypeParameters=function(e){return{pos:e.pos-1,end:e.end+1}},E.skipTypeChecking=function(e,n){return n.skipLibCheck&&e.isDeclarationFile||n.skipDefaultLibCheck&&e.hasNoDefaultLib},E.isJsonEqual=function e(n,t){return n===t||"object"==typeof n&&null!==n&&"object"==typeof t&&null!==t&&E.equalOwnProperties(n,t,e)}}(ts||(ts={})),function(Ir){var e,n,r,a,i,o,p,s;function c(e,n){return n&&e(n)}function l(e,n,t){if(t){if(n)return n(t);for(var r=0,a=t;r<a.length;r++){var i=e(a[r]);if(i)return i}}}function Mr(e,n){return 42===e.charCodeAt(n+1)&&42===e.charCodeAt(n+2)&&47!==e.charCodeAt(n+3)}function Or(e,n,t){if(e&&!(e.kind<=145))switch(e.kind){case 146:return c(n,e.left)||c(n,e.right);case 148:return c(n,e.name)||c(n,e.constraint)||c(n,e.default)||c(n,e.expression);case 274:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.name)||c(n,e.questionToken)||c(n,e.exclamationToken)||c(n,e.equalsToken)||c(n,e.objectAssignmentInitializer);case 275:return c(n,e.expression);case 149:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.dotDotDotToken)||c(n,e.name)||c(n,e.questionToken)||c(n,e.type)||c(n,e.initializer);case 152:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.name)||c(n,e.questionToken)||c(n,e.exclamationToken)||c(n,e.type)||c(n,e.initializer);case 151:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.name)||c(n,e.questionToken)||c(n,e.type)||c(n,e.initializer);case 273:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.name)||c(n,e.questionToken)||c(n,e.initializer);case 235:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.name)||c(n,e.exclamationToken)||c(n,e.type)||c(n,e.initializer);case 184:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.dotDotDotToken)||c(n,e.propertyName)||c(n,e.name)||c(n,e.initializer);case 163:case 164:case 158:case 159:case 160:return l(n,t,e.decorators)||l(n,t,e.modifiers)||l(n,t,e.typeParameters)||l(n,t,e.parameters)||c(n,e.type);case 154:case 153:case 155:case 156:case 157:case 194:case 237:case 195:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.asteriskToken)||c(n,e.name)||c(n,e.questionToken)||c(n,e.exclamationToken)||l(n,t,e.typeParameters)||l(n,t,e.parameters)||c(n,e.type)||c(n,e.equalsGreaterThanToken)||c(n,e.body);case 162:return c(n,e.typeName)||l(n,t,e.typeArguments);case 161:return c(n,e.parameterName)||c(n,e.type);case 165:return c(n,e.exprName);case 166:return l(n,t,e.members);case 167:return c(n,e.elementType);case 168:return l(n,t,e.elementTypes);case 171:case 172:return l(n,t,e.types);case 173:return c(n,e.checkType)||c(n,e.extendsType)||c(n,e.trueType)||c(n,e.falseType);case 174:return c(n,e.typeParameter);case 181:return c(n,e.argument)||c(n,e.qualifier)||l(n,t,e.typeArguments);case 175:case 177:return c(n,e.type);case 178:return c(n,e.objectType)||c(n,e.indexType);case 179:return c(n,e.readonlyToken)||c(n,e.typeParameter)||c(n,e.questionToken)||c(n,e.type);case 180:return c(n,e.literal);case 182:case 183:case 185:return l(n,t,e.elements);case 186:return l(n,t,e.properties);case 187:return c(n,e.expression)||c(n,e.name);case 188:return c(n,e.expression)||c(n,e.argumentExpression);case 189:case 190:return c(n,e.expression)||l(n,t,e.typeArguments)||l(n,t,e.arguments);case 191:return c(n,e.tag)||l(n,t,e.typeArguments)||c(n,e.template);case 192:return c(n,e.type)||c(n,e.expression);case 193:case 196:case 197:case 198:return c(n,e.expression);case 200:return c(n,e.operand);case 205:return c(n,e.asteriskToken)||c(n,e.expression);case 199:return c(n,e.expression);case 201:return c(n,e.operand);case 202:return c(n,e.left)||c(n,e.operatorToken)||c(n,e.right);case 210:return c(n,e.expression)||c(n,e.type);case 211:return c(n,e.expression);case 212:return c(n,e.name);case 203:return c(n,e.condition)||c(n,e.questionToken)||c(n,e.whenTrue)||c(n,e.colonToken)||c(n,e.whenFalse);case 206:return c(n,e.expression);case 216:case 243:return l(n,t,e.statements);case 277:return l(n,t,e.statements)||c(n,e.endOfFileToken);case 217:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.declarationList);case 236:return l(n,t,e.declarations);case 219:return c(n,e.expression);case 220:return c(n,e.expression)||c(n,e.thenStatement)||c(n,e.elseStatement);case 221:return c(n,e.statement)||c(n,e.expression);case 222:return c(n,e.expression)||c(n,e.statement);case 223:return c(n,e.initializer)||c(n,e.condition)||c(n,e.incrementor)||c(n,e.statement);case 224:return c(n,e.initializer)||c(n,e.expression)||c(n,e.statement);case 225:return c(n,e.awaitModifier)||c(n,e.initializer)||c(n,e.expression)||c(n,e.statement);case 226:case 227:return c(n,e.label);case 228:return c(n,e.expression);case 229:return c(n,e.expression)||c(n,e.statement);case 230:return c(n,e.expression)||c(n,e.caseBlock);case 244:return l(n,t,e.clauses);case 269:return c(n,e.expression)||l(n,t,e.statements);case 270:return l(n,t,e.statements);case 231:return c(n,e.label)||c(n,e.statement);case 232:return c(n,e.expression);case 233:return c(n,e.tryBlock)||c(n,e.catchClause)||c(n,e.finallyBlock);case 272:return c(n,e.variableDeclaration)||c(n,e.block);case 150:return c(n,e.expression);case 238:case 207:case 239:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.name)||l(n,t,e.typeParameters)||l(n,t,e.heritageClauses)||l(n,t,e.members);case 240:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.name)||l(n,t,e.typeParameters)||c(n,e.type);case 241:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.name)||l(n,t,e.members);case 276:return c(n,e.name)||c(n,e.initializer);case 242:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.name)||c(n,e.body);case 246:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.name)||c(n,e.moduleReference);case 247:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.importClause)||c(n,e.moduleSpecifier);case 248:return c(n,e.name)||c(n,e.namedBindings);case 245:case 249:return c(n,e.name);case 250:case 254:return l(n,t,e.elements);case 253:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.exportClause)||c(n,e.moduleSpecifier);case 251:case 255:return c(n,e.propertyName)||c(n,e.name);case 252:return l(n,t,e.decorators)||l(n,t,e.modifiers)||c(n,e.expression);case 204:return c(n,e.head)||l(n,t,e.templateSpans);case 214:return c(n,e.expression)||c(n,e.literal);case 147:return c(n,e.expression);case 271:return l(n,t,e.types);case 209:return c(n,e.expression)||l(n,t,e.typeArguments);case 257:return c(n,e.expression);case 256:return l(n,t,e.decorators);case 307:return l(n,t,e.elements);case 258:return c(n,e.openingElement)||l(n,t,e.children)||c(n,e.closingElement);case 262:return c(n,e.openingFragment)||l(n,t,e.children)||c(n,e.closingFragment);case 259:case 260:return c(n,e.tagName)||l(n,t,e.typeArguments)||c(n,e.attributes);case 266:return l(n,t,e.properties);case 265:return c(n,e.name)||c(n,e.initializer);case 267:return c(n,e.expression);case 268:return c(n,e.dotDotDotToken)||c(n,e.expression);case 261:return c(n,e.tagName);case 169:case 170:case 281:case 285:case 284:case 286:case 288:return c(n,e.type);case 287:return l(n,t,e.parameters)||c(n,e.type);case 289:return l(n,t,e.tags);case 297:case 303:return e.isNameFirst?c(n,e.name)||c(n,e.typeExpression):c(n,e.typeExpression)||c(n,e.name);case 298:case 300:return c(n,e.typeExpression);case 293:return c(n,e.class);case 301:return c(n,e.constraint)||l(n,t,e.typeParameters);case 302:return e.typeExpression&&281===e.typeExpression.kind?c(n,e.typeExpression)||c(n,e.fullName):c(n,e.fullName)||c(n,e.typeExpression);case 295:return c(n,e.fullName)||c(n,e.typeExpression);case 299:case 296:return c(n,e.typeExpression);case 291:return l(n,t,e.decorators)||l(n,t,e.modifiers)||Ir.forEach(e.typeParameters,n)||Ir.forEach(e.parameters,n)||c(n,e.type);case 290:if(e.jsDocPropertyTags)for(var r=0,a=e.jsDocPropertyTags;r<a.length;r++){c(n,a[r])}return;case 306:return c(n,e.expression)}}function wr(e){return Ir.fileExtensionIs(e,".d.ts")}function Pr(e,n){for(var t=Ir.createScanner(e.languageVersion,!1,0,n),r=[];;){var a=t.scan();if(!Ir.isTrivia(a))break;var i={kind:t.getToken(),pos:t.getTokenPos(),end:t.getTextPos()};u(r,i,n.substring(i.pos,i.end))}e.pragmas=Ir.createMap();for(var o=0,s=r;o<s.length;o++){var c=s[o];if(e.pragmas.has(c.name)){var l=e.pragmas.get(c.name);l instanceof Array?l.push(c.args):e.pragmas.set(c.name,[l,c.args])}else e.pragmas.set(c.name,c.args)}}function Rr(c,l){c.checkJsDirective=void 0,c.referencedFiles=[],c.typeReferenceDirectives=[],c.libReferenceDirectives=[],c.amdDependencies=[],c.hasNoDefaultLib=!1,c.pragmas.forEach(function(e,n){switch(n){case"reference":var t=c.referencedFiles,r=c.typeReferenceDirectives,a=c.libReferenceDirectives;Ir.forEach(Ir.toArray(e),function(e){e.arguments["no-default-lib"]?c.hasNoDefaultLib=!0:e.arguments.types?r.push({pos:e.arguments.types.pos,end:e.arguments.types.end,fileName:e.arguments.types.value}):e.arguments.lib?a.push({pos:e.arguments.lib.pos,end:e.arguments.lib.end,fileName:e.arguments.lib.value}):e.arguments.path?t.push({pos:e.arguments.path.pos,end:e.arguments.path.end,fileName:e.arguments.path.value}):l(e.range.pos,e.range.end-e.range.pos,Ir.Diagnostics.Invalid_reference_directive_syntax)});break;case"amd-dependency":c.amdDependencies=Ir.map(Ir.toArray(e),function(e){return{name:e.arguments.name,path:e.arguments.path}});break;case"amd-module":if(e instanceof Array)for(var i=0,o=e;i<o.length;i++){var s=o[i];c.moduleName&&l(s.range.pos,s.range.end-s.range.pos,Ir.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),c.moduleName=s.arguments.name}else c.moduleName=e.arguments.name;break;case"ts-nocheck":case"ts-check":Ir.forEach(Ir.toArray(e),function(e){(!c.checkJsDirective||e.range.pos>c.checkJsDirective.pos)&&(c.checkJsDirective={enabled:"ts-check"===n,end:e.range.end,pos:e.range.pos})});break;case"jsx":return;default:Ir.Debug.fail("Unhandled pragma kind")}})}(n=e||(e={}))[n.None=0]="None",n[n.Yield=1]="Yield",n[n.Await=2]="Await",n[n.Type=4]="Type",n[n.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",n[n.JSDoc=32]="JSDoc",Ir.createNode=function(e,n,t){return 277===e?new(o||(o=Ir.objectAllocator.getSourceFileConstructor()))(e,n,t):71===e?new(i||(i=Ir.objectAllocator.getIdentifierConstructor()))(e,n,t):Ir.isNodeKind(e)?new(r||(r=Ir.objectAllocator.getNodeConstructor()))(e,n,t):new(a||(a=Ir.objectAllocator.getTokenConstructor()))(e,n,t)},Ir.isJSDocLikeText=Mr,Ir.forEachChild=Or,Ir.createSourceFile=function(e,n,t,r,a){var i;return void 0===r&&(r=!1),Ir.performance.mark("beforeParse"),i=100===t?p.parseSourceFile(e,n,t,void 0,r,6):p.parseSourceFile(e,n,t,void 0,r,a),Ir.performance.mark("afterParse"),Ir.performance.measure("Parse","beforeParse","afterParse"),i},Ir.parseIsolatedEntityName=function(e,n){return p.parseIsolatedEntityName(e,n)},Ir.parseJsonText=function(e,n){return p.parseJsonText(e,n)},Ir.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},Ir.updateSourceFile=function(e,n,t,r){void 0===r&&(r=!1);var a=s.updateSourceFile(e,n,t,r);return a.flags|=1572864&e.flags,a},Ir.parseIsolatedJSDocComment=function(e,n,t){var r=p.JSDocParser.parseIsolatedJSDocComment(e,n,t);return r&&r.jsDoc&&p.fixupParentReferences(r.jsDoc),r},Ir.parseJSDocTypeExpressionForTests=function(e,n,t){return p.JSDocParser.parseJSDocTypeExpressionForTests(e,n,t)},function(e){var a,i,o,s,_,g,c,y,P,v,h,b,l,E,n,t,r,u,d,R=Ir.createScanner(6,!0),p=10240,m=!1;function T(e,n,t,r,a){void 0===t&&(t=2),S(n,t,r,6),(_=A(e,2,6,!1)).flags=E,Q();var i=X();if(1===Y())_.statements=fe([],i,i),_.endOfFileToken=le();else{var o=pe(219);switch(Y()){case 21:o.expression=St();break;case 101:case 86:case 95:o.expression=le();break;case 38:te(function(){return 8===Q()&&56!==Q()})?o.expression=rt():o.expression=Ct();break;case 8:case 9:if(te(function(){return 56!==Q()})){o.expression=Ye();break}default:o.expression=Ct()}_e(o),_.statements=fe([o],i),_.endOfFileToken=ce(1,Ir.Diagnostics.Unexpected_token)}a&&D(_),_.parseDiagnostics=g;var s=_;return x(),s}function f(e){return 4===e||2===e||1===e||6===e?1:0}function S(e,n,t,r){switch(a=Ir.objectAllocator.getNodeConstructor(),i=Ir.objectAllocator.getTokenConstructor(),o=Ir.objectAllocator.getIdentifierConstructor(),s=Ir.objectAllocator.getSourceFileConstructor(),P=e,c=t,g=[],l=0,h=Ir.createMap(),v=b=0,r){case 1:case 2:E=65536;break;case 6:E=16842752;break;default:E=0}m=!1,R.setText(P),R.setOnError(J),R.setScriptTarget(n),R.setLanguageVariant(f(r))}function x(){R.setText(""),R.setOnError(void 0),P=c=h=_=g=void 0}function C(n){Ir.Debug.assert(!n.jsDoc);var e=Ir.mapDefined(Ir.getJSDocCommentRanges(n,_.text),function(e){return d.parseJSDocComment(n,e.pos,e.end-e.pos)});return e.length&&(n.jsDoc=e),n}function D(e){var o=e;return void Or(e,function e(n){if(n.parent!==o){var t=n.parent=o;if(Or(o=n,e),Ir.hasJSDocNodes(n))for(var r=0,a=n.jsDoc;r<a.length;r++){var i=a[r];i.parent=n,Or(o=i,e)}o=t}})}function A(e,n,t,r){var a=new s(277,0,P.length);return v++,a.text=P,a.bindDiagnostics=[],a.bindSuggestionDiagnostics=void 0,a.languageVersion=n,a.fileName=Ir.normalizePath(e),a.languageVariant=f(t),a.isDeclarationFile=r,a.scriptKind=t,a}function L(e,n){e?E|=n:E&=~n}function k(e){L(e,2048)}function N(e){L(e,4096)}function I(e){L(e,8192)}function M(e){L(e,16384)}function O(e,n){var t=e&E;if(t){L(!1,t);var r=n();return L(!0,t),r}return n()}function F(e,n){var t=e&~E;if(t){L(!0,t);var r=n();return L(!1,t),r}return n()}function w(e){return O(2048,e)}function G(e){return F(16384,e)}function V(e){return 0!=(E&e)}function B(){return V(4096)}function K(){return V(2048)}function j(){return V(8192)}function H(){return V(16384)}function U(e,n){q(R.getTokenPos(),R.getTextPos(),e,n)}function W(e,n,t,r){var a=Ir.lastOrUndefined(g);a&&e===a.start||g.push(Ir.createFileDiagnostic(_,e,n,t,r)),m=!0}function q(e,n,t,r){W(e,n-e,t,r)}function z(e,n,t){q(e.pos,e.end,n,t)}function J(e,n){W(R.getTextPos(),n,e)}function X(){return R.getStartPos()}function Y(){return y}function Q(){return y=R.scan()}function Z(){return y=R.reScanGreaterToken()}function $(){return y=R.scanJsxIdentifier()}function ee(){return y=R.scanJsxToken()}function ne(e,n){var t=y,r=g.length,a=m,i=E,o=n?R.lookAhead(e):R.tryScan(e);return Ir.Debug.assert(i===E),o&&!n||(y=t,g.length=r,m=a),o}function te(e){return ne(e,!0)}function re(e){return ne(e,!1)}function ae(){return 71===Y()||(116!==Y()||!B())&&((121!==Y()||!H())&&107<Y())}function ie(e,n,t){return void 0===t&&(t=!0),Y()===e?(t&&Q(),!0):(n?U(n):U(Ir.Diagnostics._0_expected,Ir.tokenToString(e)),!1)}function oe(e){return Y()===e&&(Q(),!0)}function se(e){if(Y()===e)return le()}function ce(e,n,t){return se(e)||ge(e,!1,n||Ir.Diagnostics._0_expected,t||Ir.tokenToString(e))}function le(){var e=pe(Y());return Q(),_e(e)}function ue(){return 25===Y()||(18===Y()||1===Y()||R.hasPrecedingLineBreak())}function de(){return ue()?(25===Y()&&Q(),!0):ie(25)}function pe(e,n){v++;var t=0<=n?n:R.getStartPos();return Ir.isNodeKind(e)||0===e?new a(e,t,t):71===e?new o(e,t,t):new i(e,t,t)}function me(e,n){var t=pe(e,n);return 2&R.getTokenFlags()&&C(t),t}function fe(e,n,t){var r=e.length,a=1<=r&&r<=4?e.slice():e;return a.pos=n,a.end=void 0===t?R.getStartPos():t,a}function _e(e,n){return e.end=void 0===n?R.getStartPos():n,E&&(e.flags|=E),m&&(m=!1,e.flags|=32768),e}function ge(e,n,t,r){n?W(R.getStartPos(),0,t,r):t&&U(t,r);var a=pe(e);return 71===e?a.escapedText="":(Ir.isLiteralKind(e)||Ir.isTemplateLiteralKind(e))&&(a.text=""),_e(a)}function ve(e){var n=h.get(e);return void 0===n&&h.set(e,n=e),n}function ye(e,n){if(b++,e){var t=pe(71);return 71!==Y()&&(t.originalKeywordKind=Y()),t.escapedText=Ir.escapeLeadingUnderscores(ve(R.getTokenValue())),Q(),_e(t)}return ge(71,1===Y(),n||Ir.Diagnostics.Identifier_expected)}function he(e){return ye(ae(),e)}function be(e){return ye(Ir.tokenIsIdentifierOrKeyword(Y()),e)}function Ee(){return Ir.tokenIsIdentifierOrKeyword(Y())||9===Y()||8===Y()}function Te(e){if(9!==Y()&&8!==Y())return e&&21===Y()?(n=pe(147),ie(21),n.expression=w(Hn),ie(22),_e(n)):be();var n,t=Ye();return t.text=ve(t.text),t}function Se(){return Te(!0)}function xe(e){return Y()===e&&re(De)}function Ce(){return Q(),!R.hasPrecedingLineBreak()&&Ae()}function De(){switch(Y()){case 76:return 83===Q();case 84:return Q(),79===Y()?te(Le):39!==Y()&&118!==Y()&&17!==Y()&&Ae();case 79:return Le();case 115:case 125:case 136:return Q(),Ae();default:return Ce()}}function Ae(){return 21===Y()||17===Y()||39===Y()||24===Y()||Ee()}function Le(){return Q(),75===Y()||89===Y()||109===Y()||117===Y()&&te(Pt)||120===Y()&&te(Rt)}function ke(e,n){if(Be(e))return!0;switch(e){case 0:case 1:case 3:return!(25===Y()&&n)&&Bt();case 2:return 73===Y()||79===Y();case 4:return te(fn);case 5:return te(sr)||25===Y()&&!n;case 6:return 21===Y()||Ee();case 12:return 21===Y()||39===Y()||24===Y()||Ee();case 18:return Ee();case 9:return 21===Y()||24===Y()||Ee();case 7:return 17===Y()?te(Ne):n?ae()&&!we():Kn()&&!we();case 8:return Yt();case 10:return 26===Y()||24===Y()||Yt();case 19:return ae();case 15:if(26===Y())return!0;case 11:return 24===Y()||jn();case 16:return on(!1);case 17:return on(!0);case 20:case 21:return 26===Y()||kn();case 22:return yr();case 23:return Ir.tokenIsIdentifierOrKeyword(Y());case 13:return Ir.tokenIsIdentifierOrKeyword(Y())||17===Y();case 14:return!0}return Ir.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Ne(){if(Ir.Debug.assert(17===Y()),18!==Q())return!0;var e=Q();return 26===e||17===e||85===e||108===e}function Ie(){return Q(),ae()}function Me(){return Q(),Ir.tokenIsIdentifierOrKeyword(Y())}function Oe(){return Q(),Ir.tokenIsIdentifierOrKeywordOrGreaterThan(Y())}function we(){return(108===Y()||85===Y())&&te(Pe)}function Pe(){return Q(),jn()}function Re(){return Q(),kn()}function Fe(e){if(1===Y())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 18===Y();case 3:return 18===Y()||73===Y()||79===Y();case 7:return 17===Y()||85===Y()||108===Y();case 8:return function(){if(ue())return!0;if($n(Y()))return!0;return 36===Y()}();case 19:return 29===Y()||19===Y()||17===Y()||85===Y()||108===Y();case 11:return 20===Y()||25===Y();case 15:case 21:case 10:return 22===Y();case 17:case 16:case 18:return 20===Y()||22===Y();case 20:return 26!==Y();case 22:return 17===Y()||18===Y();case 13:return 29===Y()||41===Y();case 14:return 27===Y()&&te(Sr);default:return!1}}function Ge(e,n){var t=l;l|=1<<e;for(var r=[],a=X();!Fe(e);)if(ke(e,!1)){var i=Ve(e,n);r.push(i)}else if(Ke(e))break;return l=t,fe(r,a)}function Ve(e,n){var t,r=Be(e);return r?(t=r,R.setTextPos(t.end),Q(),t):n()}function Be(e){if(!m&&c){var n=c.currentNode(R.getStartPos());if(!Ir.nodeIsMissing(n))if(!n.intersectsChange)if(!Ir.containsParseError(n))if((12679168&n.flags)===E&&function(e,n){switch(n){case 5:return function(e){if(e)switch(e.kind){case 155:case 160:case 156:case 157:case 152:case 215:return!0;case 154:var n=e,t=71===n.name.kind&&123===n.name.originalKeywordKind;return!t}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 269:case 270:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 237:case 217:case 216:case 220:case 219:case 232:case 228:case 230:case 227:case 226:case 224:case 225:case 223:case 222:case 229:case 218:case 233:case 231:case 221:case 234:case 247:case 246:case 253:case 252:case 242:case 238:case 239:case 241:case 240:return!0}return!1}(e);case 6:return 276===e.kind;case 4:return function(e){if(e)switch(e.kind){case 159:case 153:case 160:case 151:case 158:return!0}return!1}(e);case 8:return 235===(r=e).kind&&void 0===r.initializer;case 17:case 16:return 149===(t=e).kind&&void 0===t.initializer;case 18:return!1}var t;var r;return!1}(n,e))return n.jsDocCache&&(n.jsDocCache=void 0),n}}function Ke(e){return U(function(e){switch(e){case 0:case 1:return Ir.Diagnostics.Declaration_or_statement_expected;case 2:return Ir.Diagnostics.case_or_default_expected;case 3:return Ir.Diagnostics.Statement_expected;case 18:case 4:return Ir.Diagnostics.Property_or_signature_expected;case 5:return Ir.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected;case 6:return Ir.Diagnostics.Enum_member_expected;case 7:return Ir.Diagnostics.Expression_expected;case 8:return Ir.Diagnostics.Variable_declaration_expected;case 9:return Ir.Diagnostics.Property_destructuring_pattern_expected;case 10:return Ir.Diagnostics.Array_element_destructuring_pattern_expected;case 11:return Ir.Diagnostics.Argument_expression_expected;case 12:return Ir.Diagnostics.Property_assignment_expected;case 15:return Ir.Diagnostics.Expression_or_comma_expected;case 17:case 16:return Ir.Diagnostics.Parameter_declaration_expected;case 19:return Ir.Diagnostics.Type_parameter_declaration_expected;case 20:return Ir.Diagnostics.Type_argument_expected;case 21:return Ir.Diagnostics.Type_expected;case 22:return Ir.Diagnostics.Unexpected_token_expected;case 23:case 13:case 14:return Ir.Diagnostics.Identifier_expected;default:return}}(e)),!!function(){for(var e=0;e<24;e++)if(l&1<<e&&(ke(e,!0)||Fe(e)))return!0;return!1}()||(Q(),!1)}function je(e,n,t){var r=l;l|=1<<e;for(var a=[],i=X(),o=-1;;)if(ke(e,!1)){var s=R.getStartPos();if(a.push(Ve(e,n)),o=R.getTokenPos(),oe(26))continue;if(o=-1,Fe(e))break;ie(26),t&&25===Y()&&!R.hasPrecedingLineBreak()&&Q(),s===R.getStartPos()&&Q()}else{if(Fe(e))break;if(Ke(e))break}l=r;var c=fe(a,i);return 0<=o&&(c.hasTrailingComma=!0),c}function He(){var e=fe([],X());return e.isMissingList=!0,e}function Ue(e,n,t,r){if(ie(t)){var a=je(e,n);return ie(r),a}return He()}function We(e,n){for(var t=e?be(n):he(n),r=R.getStartPos();oe(23);){if(27===Y()){t.jsdocDotPos=r;break}r=R.getStartPos(),t=qe(t,ze(e))}return t}function qe(e,n){var t=pe(146,e.pos);return t.left=e,t.right=n,_e(t)}function ze(e){if(R.hasPrecedingLineBreak()&&Ir.tokenIsIdentifierOrKeyword(Y())&&te(wt))return ge(71,!0,Ir.Diagnostics.Identifier_expected);return e?be():he()}function Je(){var e,n=pe(204);n.head=(e=Qe(Y()),Ir.Debug.assert(14===e.kind,"Template head has wrong token kind"),e),Ir.Debug.assert(14===n.head.kind,"Template head has wrong token kind");for(var t=[],r=X();t.push(Xe()),15===Ir.last(t).literal.kind;);return n.templateSpans=fe(t,r),_e(n)}function Xe(){var e,n,t=pe(214);return t.expression=w(Hn),e=18===Y()?(y=R.reScanTemplateToken(),n=Qe(Y()),Ir.Debug.assert(15===n.kind||16===n.kind,"Template fragment has wrong token kind"),n):ce(16,Ir.Diagnostics._0_expected,Ir.tokenToString(18)),t.literal=e,_e(t)}function Ye(){return Qe(Y())}function Qe(e){var n=pe(e),t=R.getTokenValue();return n.text=t,R.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),R.isUnterminated()&&(n.isUnterminated=!0),8===n.kind&&(n.numericLiteralFlags=1008&R.getTokenFlags()),Q(),_e(n),n}function Ze(){var e=pe(162);return e.typeName=We(!0,Ir.Diagnostics.Type_expected),R.hasPrecedingLineBreak()||27!==Y()||(e.typeArguments=Ue(20,Gn,27,29)),_e(e)}function $e(e){var n=pe(282);return e?In(286,n):(Q(),_e(n))}function en(){var e=pe(149);return 99!==Y()&&94!==Y()||(e.name=be(),ie(56)),e.type=nn(),_e(e)}function nn(){R.setInJSDocType(!0);var e=se(24),n=Rn();if(R.setInJSDocType(!1),e){var t=pe(288,e.pos);t.type=n,n=_e(t)}return 58===Y()?In(286,n):n}function tn(){var e=pe(148);return e.name=he(),oe(85)&&(kn()||!jn()?e.constraint=Gn():e.expression=at()),oe(58)&&(e.default=Gn()),_e(e)}function rn(){if(27===Y())return Ue(19,tn,27,29)}function an(){if(oe(56))return Gn()}function on(e){return 24===Y()||Yt()||Ir.isModifierKind(Y())||57===Y()||kn(!e)}function sn(){var e=me(149);return 99===Y()?(e.name=ye(!0),e.type=an()):(e.decorators=cr(),e.modifiers=lr(),e.dotDotDotToken=se(24),e.name=Qt(),0===Ir.getFullWidth(e.name)&&!Ir.hasModifiers(e)&&Ir.isModifierKind(Y())&&Q(),e.questionToken=se(55),e.type=an(),e.initializer=Un()),_e(e)}function cn(e,n,t){32&n||(t.typeParameters=rn());var r=function(e,n){if(!ie(19))return e.parameters=He(),!1;var t=B(),r=H();return N(!!(1&n)),M(!!(2&n)),e.parameters=32&n?je(17,en):je(16,sn),N(t),M(r),ie(20)}(t,n);return(!function(e,n){{if(36===e)return ie(e),!0;if(oe(56))return!0;if(n&&36===Y())return U(Ir.Diagnostics._0_expected,Ir.tokenToString(56)),Q(),!0}return!1}(e,!!(4&n))||(t.type=Rn(),!function e(n){switch(n.kind){case 162:return Ir.nodeIsMissing(n.typeName);case 163:case 164:var t=n,r=t.parameters,a=t.type;return!!r.isMissingList||e(a);case 175:return e(n.type);default:return!1}}(t.type)))&&r}function ln(){oe(26)||de()}function un(e){var n=me(e);return 159===e&&ie(94),cn(56,4,n),ln(),_e(n)}function dn(){return 21===Y()&&te(pn)}function pn(){if(Q(),24===Y()||22===Y())return!0;if(Ir.isModifierKind(Y())){if(Q(),ae())return!0}else{if(!ae())return!1;Q()}return 56===Y()||26===Y()||55===Y()&&(Q(),56===Y()||26===Y()||22===Y())}function mn(e){return e.kind=160,e.parameters=Ue(16,sn,21,22),e.type=Bn(),ln(),_e(e)}function fn(){if(19===Y()||27===Y())return!0;for(var e=!1;Ir.isModifierKind(Y());)e=!0,Q();return 21===Y()||(Ee()&&(e=!0,Q()),!!e&&(19===Y()||27===Y()||55===Y()||56===Y()||26===Y()||ue()))}function _n(){if(19===Y()||27===Y())return un(158);if(94===Y()&&te(gn))return un(159);var e,n=me(0);return n.modifiers=lr(),dn()?mn(n):((e=n).name=Se(),e.questionToken=se(55),19===Y()||27===Y()?(e.kind=153,cn(56,4,e)):(e.kind=151,e.type=Bn(),58===Y()&&(e.initializer=Un())),ln(),_e(e))}function gn(){return Q(),19===Y()||27===Y()}function vn(){return 23===Q()}function yn(){switch(Q()){case 19:case 27:case 23:return!0}return!1}function hn(){var e;return ie(17)?(e=Ge(4,_n),ie(18)):e=He(),e}function bn(){return Q(),37===Y()||38===Y()?132===Q():(132===Y()&&Q(),21===Y()&&Ie()&&92===Q())}function En(){var e,n=pe(179);return ie(17),132!==Y()&&37!==Y()&&38!==Y()||(n.readonlyToken=le(),132!==n.readonlyToken.kind&&ce(132)),ie(21),n.typeParameter=((e=pe(148)).name=he(),ie(92),e.constraint=Gn(),_e(e)),ie(22),55!==Y()&&37!==Y()&&38!==Y()||(n.questionToken=le(),55!==n.questionToken.kind&&ce(55)),n.type=Bn(),de(),ie(18),_e(n)}function Tn(){var e=X();if(oe(24)){var n=pe(170,e);return n.type=Gn(),_e(n)}var t=Gn();return 2097152&E||284!==t.kind||t.pos!==t.type.pos||(t.kind=169),t}function Sn(){var e=le();return 23===Y()?void 0:e}function xn(e){var n,t=pe(180);e&&((n=pe(200)).operator=38,Q());var r=101===Y()||86===Y()?le():Qe(Y());return e&&(n.operand=r,_e(n),r=n),t.literal=r,_e(t)}function Cn(){return Q(),91===Y()}function Dn(){_.flags|=524288;var e=pe(181);return oe(103)&&(e.isTypeOf=!0),ie(91),ie(19),e.argument=Gn(),ie(20),oe(23)&&(e.qualifier=We(!0,Ir.Diagnostics.Type_expected)),e.typeArguments=vr(),_e(e)}function An(){return 8===Q()}function Ln(){switch(Y()){case 119:case 142:case 137:case 134:case 138:case 122:case 140:case 131:case 135:return re(Sn)||Ze();case 39:return $e(!1);case 61:return $e(!0);case 55:return c=R.getStartPos(),Q(),26!==Y()&&18!==Y()&&20!==Y()&&29!==Y()&&58!==Y()&&49!==Y()?((s=pe(284,c)).type=Gn(),_e(s)):_e(s=pe(283,c));case 89:return function(){if(te(Tr)){var e=me(287);return Q(),cn(56,36,e),_e(e)}var n=pe(162);return n.typeName=be(),_e(n)}();case 51:return o=pe(285),Q(),o.type=Ln(),_e(o);case 13:case 9:case 8:case 101:case 86:return xn();case 38:return te(An)?xn(!0):Ze();case 105:case 95:return le();case 99:var e=(i=pe(176),Q(),_e(i));return 127!==Y()||R.hasPrecedingLineBreak()?e:function(e){Q();var n=pe(161,e.pos);return n.parameterName=e,n.type=Gn(),_e(n)}(e);case 103:return te(Cn)?Dn():(a=pe(165),ie(103),a.exprName=We(!0),_e(a));case 17:return te(bn)?En():((r=pe(166)).members=hn(),_e(r));case 21:return(t=pe(168)).elementTypes=Ue(21,Tn,21,22),_e(t);case 19:return n=pe(175),ie(19),n.type=Gn(),ie(20),_e(n);case 91:return Dn();default:return Ze()}var n,t,r,a,i,o,s,c}function kn(e){switch(Y()){case 119:case 142:case 137:case 134:case 122:case 138:case 141:case 105:case 140:case 95:case 99:case 103:case 131:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 135:case 39:case 55:case 51:case 24:case 126:case 91:return!0;case 89:return!e;case 38:return!e&&te(An);case 19:return!e&&te(Nn);default:return ae()}}function Nn(){return Q(),20===Y()||on(!1)||kn()}function In(e,n){Q();var t=pe(e,n.pos);return t.type=n,_e(t)}function Mn(){var e,n,t=Y();switch(t){case 128:case 141:return e=t,n=pe(177),ie(e),n.operator=e,n.type=Mn(),_e(n);case 126:return function(){var e=pe(174);ie(126);var n=pe(148);return n.name=he(),e.typeParameter=_e(n),_e(e)}()}return function(){for(var e=Ln();!R.hasPrecedingLineBreak();)switch(Y()){case 51:e=In(285,e);break;case 55:if(!(2097152&E)&&te(Re))return e;e=In(284,e);break;case 21:var n;ie(21),e=(kn()?((n=pe(178,e.pos)).objectType=e,n.indexType=Gn()):(n=pe(167,e.pos)).elementType=e,ie(22),_e(n));break;default:return e}return e}()}function On(e,n,t){oe(t);var r=n();if(Y()===t){for(var a=[r];oe(t);)a.push(n());var i=pe(e,r.pos);i.types=fe(a,r.pos),r=_e(i)}return r}function wn(){return On(172,Mn,48)}function Pn(){if(Q(),20===Y()||24===Y())return!0;if(function(){if(Ir.isModifierKind(Y())&&lr(),ae()||99===Y())return Q(),!0;if(21!==Y()&&17!==Y())return!1;var e=g.length;return Qt(),e===g.length}()){if(56===Y()||26===Y()||55===Y()||58===Y())return!0;if(20===Y()&&(Q(),36===Y()))return!0}return!1}function Rn(){var e=ae()&&re(Fn),n=Gn();if(e){var t=pe(161,e.pos);return t.parameterName=e,t.type=n,_e(t)}return n}function Fn(){var e=he();if(127===Y()&&!R.hasPrecedingLineBreak())return Q(),e}function Gn(){return O(20480,Vn)}function Vn(e){if(27===Y()||19===Y()&&te(Pn)||94===Y())return n=X(),cn(36,4,t=me(oe(94)?164:163,n)),_e(t);var n,t,r=On(171,wn,49);if(e||R.hasPrecedingLineBreak()||!oe(85))return r;var a=pe(173,r.pos);return a.checkType=r,a.extendsType=Vn(!0),ie(55),a.trueType=Vn(),ie(56),a.falseType=Vn(),_e(a)}function Bn(){return oe(56)?Gn():void 0}function Kn(){switch(Y()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;case 91:return te(yn);default:return ae()}}function jn(){if(Kn())return!0;switch(Y()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!function(){if(K()&&92===Y())return!1;return 0<Ir.getBinaryOperatorPrecedence(Y())}()||ae()}}function Hn(){var e=j();e&&I(!1);for(var n,t=Wn();n=se(26);)t=nt(t,n,Wn());return e&&I(!0),t}function Un(){return oe(58)?Wn():void 0}function Wn(){if(function(){if(116!==Y())return!1;if(B())return!0;return te(Ft)}())return e=pe(205),Q(),R.hasPrecedingLineBreak()||39!==Y()&&!jn()||(e.asteriskToken=se(39),e.expression=Wn()),_e(e);var e,n=function(){var e=19!==Y()&&27!==Y()&&120!==Y()?36!==Y()?0:1:te(zn);if(0===e)return;var n=1===e?Yn(!0):re(Jn);if(!n)return;var t=Ir.hasModifier(n,256),r=Y();return n.equalsGreaterThanToken=ce(36),n.body=36===r||17===r?Qn(t):he(),_e(n)}()||function(){if(120===Y()&&1===te(Xn)){var e=ur(),n=Zn(0);return qn(n,e)}return}();if(n)return n;var t=Zn(0);return 71===t.kind&&36===Y()?qn(t):Ir.isLeftHandSideExpression(t)&&Ir.isAssignmentOperator(Z())?nt(t,le(),Wn()):function(e){var n=se(55);if(!n)return e;var t=pe(203,e.pos);return t.condition=e,t.questionToken=n,t.whenTrue=O(p,Wn),t.colonToken=ce(56),t.whenFalse=Ir.nodeIsPresent(t.colonToken)?Wn():ge(71,!1,Ir.Diagnostics._0_expected,Ir.tokenToString(56)),_e(t)}(t)}function qn(e,n){var t;Ir.Debug.assert(36===Y(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),n?(t=pe(195,n.pos)).modifiers=n:t=pe(195,e.pos);var r=pe(149,e.pos);return r.name=e,_e(r),t.parameters=fe([r],r.pos,r.end),t.equalsGreaterThanToken=ce(36),t.body=Qn(!!n),C(_e(t))}function zn(){if(120===Y()){if(Q(),R.hasPrecedingLineBreak())return 0;if(19!==Y()&&27!==Y())return 0}var e=Y(),n=Q();if(19!==e)return Ir.Debug.assert(27===e),ae()?1!==_.languageVariant?2:te(function(){var e=Q();if(85===e)switch(Q()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:0;if(20===n)switch(Q()){case 36:case 56:case 17:return 1;default:return 0}if(21===n||17===n)return 2;if(24===n)return 1;if(Ir.isModifierKind(n)&&120!==n&&te(Ie))return 1;if(!ae()&&99!==n)return 0;switch(Q()){case 56:return 1;case 55:return Q(),56===Y()||26===Y()||58===Y()||20===Y()?1:0;case 26:case 58:case 20:return 2}return 0}function Jn(){return Yn(!1)}function Xn(){if(120===Y()){if(Q(),R.hasPrecedingLineBreak()||36===Y())return 0;var e=Zn(0);if(!R.hasPrecedingLineBreak()&&71===e.kind&&36===Y())return 1}return 0}function Yn(e){var n=me(195);if(n.modifiers=ur(),(cn(56,Ir.hasModifier(n,256)?2:0,n)||e)&&(e||36===Y()||17===Y()))return n}function Qn(e){return 17===Y()?kt(e?2:0):25===Y()||89===Y()||75===Y()||!Bt()||17!==Y()&&89!==Y()&&75!==Y()&&57!==Y()&&jn()?e?G(Wn):O(16384,Wn):kt(16|(e?2:0))}function Zn(e){return et(e,at())}function $n(e){return 92===e||145===e}function et(e,n){for(;;){Z();var t=Ir.getBinaryOperatorPrecedence(Y());if(!(40===Y()?e<=t:e<t))break;if(92===Y()&&K())break;if(118===Y()){if(R.hasPrecedingLineBreak())break;Q(),n=tt(n,Gn())}else n=nt(n,le(),Zn(t))}return n}function nt(e,n,t){var r=pe(202,e.pos);return r.left=e,r.operatorToken=n,r.right=t,_e(r)}function tt(e,n){var t=pe(210,e.pos);return t.expression=e,t.type=n,_e(t)}function rt(){var e=pe(200);return e.operator=Y(),Q(),e.operand=it(),_e(e)}function at(){if(function(){switch(Y()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==_.languageVariant)return!1;default:return!0}}()){var e=ot();return 40===Y()?et(Ir.getBinaryOperatorPrecedence(Y()),e):e}var n=Y(),t=it();if(40===Y()){var r=Ir.skipTrivia(P,t.pos),a=t.end;192===t.kind?q(r,a,Ir.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):q(r,a,Ir.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,Ir.tokenToString(n))}return t}function it(){switch(Y()){case 37:case 38:case 52:case 51:return rt();case 80:return a=pe(196),Q(),a.expression=it(),_e(a);case 103:return r=pe(197),Q(),r.expression=it(),_e(r);case 105:return t=pe(198),Q(),t.expression=it(),_e(t);case 27:return n=pe(192),ie(27),n.type=Gn(),ie(29),n.expression=it(),_e(n);case 121:if(121===Y()&&(H()||te(Ft)))return e=pe(199),Q(),e.expression=it(),_e(e);default:return ot()}var e,n,t,r,a}function ot(){if(43===Y()||44===Y())return(e=pe(200)).operator=Y(),Q(),e.operand=st(),_e(e);if(1===_.languageVariant&&27===Y()&&te(Oe))return lt(!0);var e,n=st();return Ir.Debug.assert(Ir.isLeftHandSideExpression(n)),43!==Y()&&44!==Y()||R.hasPrecedingLineBreak()?n:((e=pe(201,n.pos)).operand=n,e.operator=Y(),Q(),_e(e))}function st(){var e;if(91===Y())if(te(gn))_.flags|=524288,e=le();else if(te(vn)){var n=R.getStartPos();Q(),Q();var t=pe(212,n);t.keywordToken=91,t.name=be(),e=_e(t),_.flags|=1048576}else e=ct();else e=97===Y()?function(){var e=le();if(19===Y()||23===Y()||21===Y())return e;var n=pe(187,e.pos);return n.expression=e,ce(23,Ir.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=ze(!0),_e(n)}():ct();return function(e){for(;;)if(e=_t(e),27!==Y()){if(19!==Y())return e;var n=pe(189,e.pos);n.expression=e,n.arguments=yt(),e=_e(n)}else{var t=re(ht);if(!t)return e;if(gt()){e=vt(e,t);continue}var n=pe(189,e.pos);n.expression=e,n.typeArguments=t,n.arguments=yt(),e=_e(n)}}(e)}function ct(){return _t(bt())}function lt(e){var n,t=function(e){var n=R.getStartPos();if(ie(27),29===Y()){var t=pe(263,n);return ee(),_e(t)}var r,a=pt(),i=vr(),o=(s=pe(266),s.properties=Ge(13,ft),_e(s));var s;29===Y()?(r=pe(260,n),ee()):(ie(41),e?ie(29):(ie(29,void 0,!1),ee()),r=pe(259,n));return r.tagName=a,r.typeArguments=i,r.attributes=o,_e(r)}(e);if(260===t.kind)(r=pe(258,t.pos)).openingElement=t,r.children=dt(r.openingElement),r.closingElement=function(e){var n=pe(261);ie(28),n.tagName=pt(),e?ie(29):(ie(29,void 0,!1),ee());return _e(n)}(e),Fr(r.openingElement.tagName,r.closingElement.tagName)||z(r.closingElement,Ir.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,Ir.getTextOfNodeFromSourceText(P,r.openingElement.tagName)),n=_e(r);else if(263===t.kind){var r;(r=pe(262,t.pos)).openingFragment=t,r.children=dt(r.openingFragment),r.closingFragment=function(e){var n=pe(264);ie(28),Ir.tokenIsIdentifierOrKeyword(Y())&&z(pt(),Ir.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);e?ie(29):(ie(29,void 0,!1),ee());return _e(n)}(e),n=_e(r)}else Ir.Debug.assert(259===t.kind),n=t;if(e&&27===Y()){var a=re(function(){return lt(!0)});if(a){U(Ir.Diagnostics.JSX_expressions_must_have_one_parent_element);var i=pe(202,n.pos);return i.end=a.end,i.left=n,i.right=a,i.operatorToken=ge(26,!1,void 0),i.operatorToken.pos=i.operatorToken.end=i.right.pos,i}}return n}function ut(e,n){switch(n){case 1:return void(Ir.isJsxOpeningFragment(e)?z(e,Ir.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag):z(e.tagName,Ir.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,Ir.getTextOfNodeFromSourceText(P,e.tagName)));case 28:case 7:return;case 10:case 11:return(t=pe(10)).containsOnlyWhiteSpaces=11===y,y=R.scanJsxToken(),_e(t);case 17:return mt(!1);case 27:return lt(!1);default:return Ir.Debug.assertNever(n)}var t}function dt(e){var n=[],t=X(),r=l;for(l|=16384;;){var a=ut(e,y=R.reScanJsxToken());if(!a)break;n.push(a)}return l=r,fe(n,t)}function pt(){$();for(var e=99===Y()?le():be();oe(23);){var n=pe(187,e.pos);n.expression=e,n.name=ze(!0),e=_e(n)}return e}function mt(e){var n=pe(268);if(ie(17))return 18!==Y()&&(n.dotDotDotToken=se(24),n.expression=Wn()),e?ie(18):(ie(18,void 0,!1),ee()),_e(n)}function ft(){if(17===Y())return e=pe(267),ie(17),ie(24),e.expression=Hn(),ie(18),_e(e);var e;$();var n=pe(265);if(n.name=be(),58===Y())switch(y=R.scanJsxAttributeValue()){case 9:n.initializer=Ye();break;default:n.initializer=mt(!0)}return _e(n)}function _t(e){for(;;){if(se(23)){var n=pe(187,e.pos);n.expression=e,n.name=ze(!0),e=_e(n)}else if(51!==Y()||R.hasPrecedingLineBreak())if(j()||!oe(21)){if(!gt())return e;e=vt(e,void 0)}else{var t=pe(188,e.pos);if(t.expression=e,22===Y())t.argumentExpression=ge(71,!0,Ir.Diagnostics.An_element_access_expression_should_take_an_argument);else{var r=w(Hn);Ir.isStringOrNumericLiteralLike(r)&&(r.text=ve(r.text)),t.argumentExpression=r}ie(22),e=_e(t)}else{Q();var a=pe(211,e.pos);a.expression=e,e=_e(a)}}}function gt(){return 13===Y()||14===Y()}function vt(e,n){var t=pe(191,e.pos);return t.tag=e,t.typeArguments=n,t.template=13===Y()?Ye():Je(),_e(t)}function yt(){ie(19);var e=je(11,Tt);return ie(20),e}function ht(){if(oe(27)){var e=je(20,Gn);if(ie(29))return e&&function(){switch(Y()){case 19:case 13:case 14:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}()?e:void 0}}function bt(){switch(Y()){case 8:case 9:case 13:return Ye();case 99:case 97:case 95:case 101:case 86:return le();case 19:return e=me(193),ie(19),e.expression=w(Hn),ie(20),_e(e);case 21:return St();case 17:return Ct();case 120:if(!te(Rt))break;return Dt();case 75:return mr(me(0),207);case 89:return Dt();case 94:return function(){var e=R.getStartPos();if(ie(94),oe(23)){var n=pe(212,e);return n.keywordToken=94,n.name=be(),_e(n)}var t,r=bt();for(;;){r=_t(r),t=re(ht),gt()&&(Ir.Debug.assert(!!t,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),r=vt(r,t),t=void 0);break}var a=pe(190,e);a.expression=r,a.typeArguments=t,(a.typeArguments||19===Y())&&(a.arguments=yt());return _e(a)}();case 41:case 63:if(12===(y=R.reScanSlashToken()))return Ye();break;case 14:return Je()}var e;return he(Ir.Diagnostics.Expression_expected)}function Et(){return 24===Y()?(e=pe(206),ie(24),e.expression=Wn(),_e(e)):26===Y()?pe(208):Wn();var e}function Tt(){return O(p,Et)}function St(){var e=pe(185);return ie(21),R.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=je(15,Et),ie(22),_e(e)}function xt(){var e=me(0);if(se(24))return e.kind=275,e.expression=Wn(),_e(e);if(e.decorators=cr(),e.modifiers=lr(),xe(125))return or(e,156);if(xe(136))return or(e,157);var n=se(39),t=ae();if(e.name=Se(),e.questionToken=se(55),e.exclamationToken=se(51),n||19===Y()||27===Y())return ar(e,n);if(t&&(26===Y()||18===Y()||58===Y())){e.kind=274;var r=se(58);r&&(e.equalsToken=r,e.objectAssignmentInitializer=w(Wn))}else e.kind=273,ie(56),e.initializer=w(Wn);return _e(e)}function Ct(){var e=pe(186);return ie(17),R.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=je(12,xt,!0),ie(18),_e(e)}function Dt(){var e=j();e&&I(!1);var n=me(194);n.modifiers=lr(),ie(89),n.asteriskToken=se(39);var t=n.asteriskToken?1:0,r=Ir.hasModifier(n,256)?2:0;return n.name=t&&r?F(20480,At):t?F(4096,At):r?G(At):At(),cn(56,t|r,n),n.body=kt(t|r),e&&I(!0),_e(n)}function At(){return ae()?he():void 0}function Lt(e,n){var t=pe(216);return ie(17,n)||e?(R.hasPrecedingLineBreak()&&(t.multiLine=!0),t.statements=Ge(1,jt),ie(18)):t.statements=He(),_e(t)}function kt(e,n){var t=B();N(!!(1&e));var r=H();M(!!(2&e));var a=j();a&&I(!1);var i=Lt(!!(16&e),n);return a&&I(!0),N(t),M(r),i}function Nt(){var e=X();ie(88);var n,t,r=se(121);if(ie(19),25!==Y()&&(n=104===Y()||110===Y()||76===Y()?er(!0):F(2048,Hn)),r?ie(145):oe(145)){var a=pe(225,e);a.awaitModifier=r,a.initializer=n,a.expression=w(Wn),ie(20),t=a}else if(oe(92)){var i=pe(224,e);i.initializer=n,i.expression=w(Hn),ie(20),t=i}else{var o=pe(223,e);o.initializer=n,ie(25),25!==Y()&&20!==Y()&&(o.condition=w(Hn)),ie(25),20!==Y()&&(o.incrementor=w(Hn)),ie(20),t=o}return t.statement=jt(),_e(t)}function It(e){var n=pe(e);return ie(227===e?72:77),ue()||(n.label=he()),de(),_e(n)}function Mt(){return 73===Y()?(n=pe(269),ie(73),n.expression=w(Hn),ie(56),n.statements=Ge(3,jt),_e(n)):(e=pe(270),ie(79),ie(56),e.statements=Ge(3,jt),_e(e));var e,n}function Ot(){var e=pe(233);return ie(102),e.tryBlock=Lt(!1),e.catchClause=74===Y()?function(){var e=pe(272);ie(74),oe(19)?(e.variableDeclaration=$t(),ie(20)):e.variableDeclaration=void 0;return e.block=Lt(!1),_e(e)}():void 0,e.catchClause&&87!==Y()||(ie(87),e.finallyBlock=Lt(!1)),_e(e)}function wt(){return Q(),Ir.tokenIsIdentifierOrKeyword(Y())&&!R.hasPrecedingLineBreak()}function Pt(){return Q(),75===Y()&&!R.hasPrecedingLineBreak()}function Rt(){return Q(),89===Y()&&!R.hasPrecedingLineBreak()}function Ft(){return Q(),(Ir.tokenIsIdentifierOrKeyword(Y())||8===Y()||9===Y())&&!R.hasPrecedingLineBreak()}function Gt(){for(;;)switch(Y()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 139:return Q(),!R.hasPrecedingLineBreak()&&ae();case 129:case 130:return qt();case 117:case 120:case 124:case 112:case 113:case 114:case 132:if(Q(),R.hasPrecedingLineBreak())return!1;continue;case 144:return Q(),17===Y()||71===Y()||84===Y();case 91:return Q(),9===Y()||39===Y()||17===Y()||Ir.tokenIsIdentifierOrKeyword(Y());case 84:if(Q(),58===Y()||39===Y()||17===Y()||79===Y()||118===Y())return!0;continue;case 115:Q();continue;default:return!1}}function Vt(){return te(Gt)}function Bt(){switch(Y()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 91:return Vt()||te(yn);case 76:case 84:return Vt();case 120:case 124:case 109:case 129:case 130:case 139:case 144:return!0;case 114:case 112:case 113:case 115:case 132:return Vt()||!te(wt);default:return jn()}}function Kt(){return Q(),ae()||17===Y()||21===Y()}function jt(){switch(Y()){case 25:return s=pe(218),ie(25),_e(s);case 17:return Lt(!1);case 104:return tr(me(235));case 110:if(te(Kt))return tr(me(235));break;case 89:return rr(me(237));case 75:return pr(me(238));case 90:return o=pe(220),ie(90),ie(19),o.expression=w(Hn),ie(20),o.thenStatement=jt(),o.elseStatement=oe(82)?jt():void 0,_e(o);case 81:return i=pe(221),ie(81),i.statement=jt(),ie(106),ie(19),i.expression=w(Hn),ie(20),oe(25),_e(i);case 106:return a=pe(222),ie(106),ie(19),a.expression=w(Hn),ie(20),a.statement=jt(),_e(a);case 88:return Nt();case 77:return It(226);case 72:return It(227);case 96:return r=pe(228),ie(96),ue()||(r.expression=w(Hn)),de(),_e(r);case 107:return t=pe(229),ie(107),ie(19),t.expression=w(Hn),ie(20),t.statement=F(8388608,jt),_e(t);case 98:return function(){var e=pe(230);ie(98),ie(19),e.expression=w(Hn),ie(20);var n=pe(244);return ie(17),n.clauses=Ge(2,Mt),ie(18),e.caseBlock=_e(n),_e(e)}();case 100:return n=pe(232),ie(100),n.expression=R.hasPrecedingLineBreak()?void 0:w(Hn),de(),_e(n);case 102:case 74:case 87:return Ot();case 78:return e=pe(234),ie(78),de(),_e(e);case 57:return Ut();case 120:case 109:case 139:case 129:case 130:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 132:case 144:if(Vt())return Ut()}var e,n,t,r,a,i,o,s,c,l;return c=me(0),71===(l=w(Hn)).kind&&oe(56)?(c.kind=231,c.label=l,c.statement=jt()):(c.kind=219,c.expression=l,de()),_e(c)}function Ht(e){return 124===e.kind}function Ut(){var e=me(0);if(e.decorators=cr(),e.modifiers=lr(),Ir.some(e.modifiers,Ht)){for(var n=0,t=e.modifiers;n<t.length;n++){t[n].flags|=4194304}return F(4194304,function(){return Wt(e)})}return Wt(e)}function Wt(e){switch(Y()){case 104:case 110:case 76:return tr(e);case 89:return rr(e);case 75:return pr(e);case 109:return(a=e).kind=239,ie(109),a.name=he(),a.typeParameters=rn(),a.heritageClauses=fr(),a.members=hn(),_e(a);case 139:return(r=e).kind=240,ie(139),r.name=he(),r.typeParameters=rn(),ie(58),r.type=Gn(),de(),_e(r);case 83:return function(e){e.kind=241,ie(83),e.name=he(),ie(17)?(e.members=je(6,hr),ie(18)):e.members=He();return _e(e)}(e);case 144:case 129:case 130:return function(e){var n=0;{if(144===Y())return Er(e);if(oe(130))n|=16;else if(ie(129),9===Y())return Er(e)}return function e(n,t){n.kind=242;var r=16&t;n.flags|=t;n.name=he();n.body=oe(23)?e(pe(0),4|r):br();return _e(n)}(e,n)}(e);case 91:return function(e){ie(91);var n,t=R.getStartPos();if(ae()&&(n=he(),26!==Y()&&143!==Y()))return a=n,(r=e).kind=246,r.name=a,ie(58),r.moduleReference=133===Y()&&te(Tr)?(i=pe(257),ie(133),ie(19),i.expression=xr(),ie(20),_e(i)):We(!1),de(),_e(r);var r,a,i;e.kind=247,(n||39===Y()||17===Y())&&(e.importClause=function(e,n){var t=pe(248,n);e&&(t.name=e);t.name&&!oe(26)||(t.namedBindings=39===Y()?(r=pe(249),ie(39),ie(118),r.name=he(),_e(r)):Cr(250));var r;return _e(t)}(n,t),ie(143));return e.moduleSpecifier=xr(),de(),_e(e)}(e);case 84:switch(Q(),Y()){case 79:case 58:return function(e){e.kind=252,oe(58)?e.isExportEquals=!0:ie(79);return e.expression=Wn(),de(),_e(e)}(e);case 118:return(t=e).kind=245,ie(118),ie(130),t.name=he(),de(),_e(t);default:return function(e){e.kind=253,oe(39)?(ie(143),e.moduleSpecifier=xr()):(e.exportClause=Cr(254),(143===Y()||9===Y()&&!R.hasPrecedingLineBreak())&&(ie(143),e.moduleSpecifier=xr()));return de(),_e(e)}(e)}default:if(e.decorators||e.modifiers){var n=ge(256,!0,Ir.Diagnostics.Declaration_expected);return n.pos=e.pos,n.decorators=e.decorators,n.modifiers=e.modifiers,_e(n)}return}var t,r,a}function qt(){return Q(),!R.hasPrecedingLineBreak()&&(ae()||9===Y())}function zt(e,n){if(17===Y()||!ue())return kt(e,n);de()}function Jt(){if(26===Y())return pe(208);var e=pe(184);return e.dotDotDotToken=se(24),e.name=Qt(),e.initializer=Un(),_e(e)}function Xt(){var e=pe(184);e.dotDotDotToken=se(24);var n=ae(),t=Se();return n&&56!==Y()?e.name=t:(ie(56),e.propertyName=t,e.name=Qt()),e.initializer=Un(),_e(e)}function Yt(){return 17===Y()||21===Y()||ae()}function Qt(){return 21===Y()?(e=pe(183),ie(21),e.elements=je(10,Jt),ie(22),_e(e)):17===Y()?(n=pe(182),ie(17),n.elements=je(9,Xt),ie(18),_e(n)):he();var e,n}function Zt(){return $t(!0)}function $t(e){var n=pe(235);return n.name=Qt(),e&&71===n.name.kind&&51===Y()&&!R.hasPrecedingLineBreak()&&(n.exclamationToken=le()),n.type=Bn(),$n(Y())||(n.initializer=Un()),_e(n)}function er(e){var n=pe(236);switch(Y()){case 104:break;case 110:n.flags|=1;break;case 76:n.flags|=2;break;default:Ir.Debug.fail()}if(Q(),145===Y()&&te(nr))n.declarations=He();else{var t=K();k(e),n.declarations=je(8,e?$t:Zt),k(t)}return _e(n)}function nr(){return Ie()&&20===Q()}function tr(e){return e.kind=217,e.declarationList=er(!1),de(),_e(e)}function rr(e){e.kind=237,ie(89),e.asteriskToken=se(39),e.name=Ir.hasModifier(e,512)?At():he();var n=e.asteriskToken?1:0,t=Ir.hasModifier(e,256)?2:0;return cn(56,n|t,e),e.body=zt(n|t,Ir.Diagnostics.or_expected),_e(e)}function ar(e,n,t){e.kind=154;var r=(e.asteriskToken=n)?1:0,a=Ir.hasModifier(e,256)?2:0;return cn(56,r|a,e),e.body=zt(r|a,t),_e(e)}function ir(e){return e.kind=152,e.questionToken||51!==Y()||R.hasPrecedingLineBreak()||(e.exclamationToken=le()),e.type=Bn(),e.initializer=Ir.hasModifier(e,32)?w(Un):O(6144,Un),de(),_e(e)}function or(e,n){return e.kind=n,e.name=Se(),cn(56,0,e),e.body=zt(0),_e(e)}function sr(){var e;if(57===Y())return!0;for(;Ir.isModifierKind(Y());){if(e=Y(),Ir.isClassMemberModifier(e))return!0;Q()}if(39===Y())return!0;if(Ee()&&(e=Y(),Q()),21===Y())return!0;if(void 0!==e){if(!Ir.isKeyword(e)||136===e||125===e)return!0;switch(Y()){case 19:case 27:case 51:case 56:case 58:case 55:return!0;default:return ue()}}return!1}function cr(){for(var e,n=X();;){var t=X();if(!oe(57))break;var r=pe(150,t);r.expression=F(8192,st),_e(r),(e||(e=[])).push(r)}return e&&fe(e,n)}function lr(e){for(var n,t=X();;){var r=R.getStartPos(),a=Y();if(76===Y()&&e){if(!re(Ce))break}else if(!Ir.isModifierKind(Y())||!re(De))break;var i=_e(pe(a,r));(n||(n=[])).push(i)}return n&&fe(n,t)}function ur(){var e;if(120===Y()){var n=R.getStartPos(),t=Y();Q(),e=fe([_e(pe(t,n))],n)}return e}function dr(){if(25===Y()){var e=pe(215);return Q(),_e(e)}var n,t,r,a=me(0);return a.decorators=cr(),a.modifiers=lr(!0),xe(125)?or(a,156):xe(136)?or(a,157):123===Y()?((n=a).kind=155,ie(123),cn(56,0,n),n.body=zt(0,Ir.Diagnostics.or_expected),_e(n)):dn()?mn(a):Ir.tokenIsIdentifierOrKeyword(Y())||9===Y()||8===Y()||39===Y()||21===Y()?(t=a,r=se(39),t.name=Se(),t.questionToken=se(55),r||19===Y()||27===Y()?ar(t,r,Ir.Diagnostics.or_expected):ir(t)):a.decorators||a.modifiers?(a.name=ge(71,!0,Ir.Diagnostics.Declaration_expected),ir(a)):Ir.Debug.fail("Should not have attempted to parse class member declaration.")}function pr(e){return mr(e,238)}function mr(e,n){return e.kind=n,ie(75),e.name=!ae()||108===Y()&&te(Me)?void 0:he(),e.typeParameters=rn(),e.heritageClauses=fr(),ie(17)?(e.members=Ge(5,dr),ie(18)):e.members=He(),_e(e)}function fr(){if(yr())return Ge(22,_r)}function _r(){var e=Y();Ir.Debug.assert(85===e||108===e);var n=pe(271);return n.token=e,Q(),n.types=je(7,gr),_e(n)}function gr(){var e=pe(209);return e.expression=st(),e.typeArguments=vr(),_e(e)}function vr(){return 27===Y()?Ue(20,Gn,27,29):void 0}function yr(){return 85===Y()||108===Y()}function hr(){var e=me(276);return e.name=Se(),e.initializer=w(Un),_e(e)}function br(){var e=pe(243);return ie(17)?(e.statements=Ge(1,jt),ie(18)):e.statements=He(),_e(e)}function Er(e){return e.kind=242,144===Y()?(e.name=he(),e.flags|=512):(e.name=Ye(),e.name.text=ve(e.name.text)),17===Y()?e.body=br():de(),_e(e)}function Tr(){return 19===Q()}function Sr(){return 41===Q()}function xr(){if(9!==Y())return Hn();var e=Ye();return e.text=ve(e.text),e}function Cr(e){var n=pe(e);return n.elements=Ue(23,250===e?Ar:Dr,17,18),_e(n)}function Dr(){return Lr(255)}function Ar(){return Lr(251)}function Lr(e){var n=pe(e),t=Ir.isKeyword(Y())&&!ae(),r=R.getTokenPos(),a=R.getTextPos(),i=be();return 118===Y()?(n.propertyName=i,ie(118),t=Ir.isKeyword(Y())&&!ae(),r=R.getTokenPos(),a=R.getTextPos(),n.name=be()):n.name=i,251===e&&t&&q(r,a,Ir.Diagnostics.Identifier_expected),_e(n)}function kr(e){return Ir.hasModifier(e,1)||246===e.kind&&257===e.moduleReference.kind||247===e.kind||252===e.kind||253===e.kind?e:void 0}function Nr(e){return n=e,Ir.isMetaProperty(n)&&91===n.keywordToken&&"meta"===n.name.escapedText?e:Or(e,Nr);var n}e.parseSourceFile=function(e,n,t,r,a,i){if(void 0===a&&(a=!1),6===(i=Ir.ensureScriptKind(e,i))){var o=T(e,n,t,r,a);return Ir.convertToObjectWorker(o,o.parseDiagnostics,!1,void 0,void 0),o.referencedFiles=Ir.emptyArray,o.typeReferenceDirectives=Ir.emptyArray,o.libReferenceDirectives=Ir.emptyArray,o.amdDependencies=Ir.emptyArray,o.hasNoDefaultLib=!1,o.pragmas=Ir.emptyMap,o}S(n,t,r,i);var s=(c=e,l=t,u=a,d=i,f=wr(c),f&&(E|=4194304),(_=A(c,l,d,f)).flags=E,Q(),Pr(_,P),Rr(_,function(e,n,t){g.push(Ir.createFileDiagnostic(_,e,n,t))}),_.statements=Ge(0,jt),Ir.Debug.assert(1===Y()),_.endOfFileToken=C(le()),(p=_).externalModuleIndicator=Ir.forEach(p.statements,kr)||(1048576&(m=p).flags?Nr(m):void 0),_.nodeCount=v,_.identifierCount=b,_.identifiers=h,_.parseDiagnostics=g,u&&D(_),_);var c,l,u,d,p,m,f;return x(),s},e.parseIsolatedEntityName=function(e,n){S(e,n,void 0,1),Q();var t=We(!0),r=1===Y()&&!g.length;return x(),r?t:void 0},e.parseJsonText=T,e.fixupParentReferences=D,(t=n||(n={}))[t.SourceElements=0]="SourceElements",t[t.BlockStatements=1]="BlockStatements",t[t.SwitchClauses=2]="SwitchClauses",t[t.SwitchClauseStatements=3]="SwitchClauseStatements",t[t.TypeMembers=4]="TypeMembers",t[t.ClassMembers=5]="ClassMembers",t[t.EnumMembers=6]="EnumMembers",t[t.HeritageClauseElement=7]="HeritageClauseElement",t[t.VariableDeclarations=8]="VariableDeclarations",t[t.ObjectBindingElements=9]="ObjectBindingElements",t[t.ArrayBindingElements=10]="ArrayBindingElements",t[t.ArgumentExpressions=11]="ArgumentExpressions",t[t.ObjectLiteralMembers=12]="ObjectLiteralMembers",t[t.JsxAttributes=13]="JsxAttributes",t[t.JsxChildren=14]="JsxChildren",t[t.ArrayLiteralMembers=15]="ArrayLiteralMembers",t[t.Parameters=16]="Parameters",t[t.JSDocParameters=17]="JSDocParameters",t[t.RestProperties=18]="RestProperties",t[t.TypeParameters=19]="TypeParameters",t[t.TypeArguments=20]="TypeArguments",t[t.TupleElementTypes=21]="TupleElementTypes",t[t.HeritageClauses=22]="HeritageClauses",t[t.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",t[t.Count=24]="Count",(u=r||(r={}))[u.False=0]="False",u[u.True=1]="True",u[u.Unknown=2]="Unknown",function(e){function w(e){var n=pe(281),t=(e?oe:ie)(17);return n.type=F(2097152,nn),e&&!t||ie(18),D(n),_e(n)}var n,t,r,a;function c(s,e){void 0===s&&(s=0);var c=P,l=void 0===e?c.length:s+e;if(e=l-s,Ir.Debug.assert(0<=s),Ir.Debug.assert(s<=l),Ir.Debug.assert(l<=c.length),Mr(c,s)){var h,u,d,p=[];return R.scanRange(s+3,e-5,function(){var n,e,t=1,r=s-Math.max(c.lastIndexOf("\n",s),0)+4;function a(e){n||(n=r),p.push(e),r+=e.length}for(I();M(5););M(4)&&(r=t=0);e:for(;;){switch(Y()){case 57:0===t||1===t?(f(p),_(T(r)),n=void(t=0),r++):a(R.getTokenText());break;case 4:p.push(R.getTokenText()),r=t=0;break;case 39:var i=R.getTokenText();1===t||2===t?(t=2,a(i)):(t=1,r+=i.length);break;case 71:a(R.getTokenText()),t=2;break;case 5:var o=R.getTokenText();2===t?p.push(o):void 0!==n&&r+o.length>n&&p.push(o.slice(n-r-1)),r+=o.length;break;case 1:break e;default:t=2,a(R.getTokenText())}I()}return m(p),f(p),(e=pe(289,s)).tags=h&&fe(h,u,d),e.comment=p.length?p.join(""):void 0,_e(e,l)})}function m(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 n(){for(;;){if(I(),1===Y())return!0;if(5!==Y()&&4!==Y())return!1}}function b(){if(5!==Y()&&4!==Y()||!te(n))for(;5===Y()||4===Y();)I()}function E(){if(5!==Y()&&4!==Y()||!te(n))for(var e=R.hasPrecedingLineBreak();e&&39===Y()||5===Y()||4===Y();)4===Y()?e=!0:39===Y()&&(e=!1),I()}function T(e){Ir.Debug.assert(57===Y());var n=pe(57,R.getTokenPos());n.end=R.getTextPos(),I();var t,r,a,i,o,s,c,l,u,d,p,m,f,_,g,v,y=O(void 0);switch(E(),y.escapedText){case"augments":case"extends":g=y,(v=pe(293,(_=n).pos)).atToken=_,v.tagName=g,v.class=function(){var e=oe(17),n=pe(209);n.expression=function(){for(var e=O();oe(23);){var n=pe(187,e.pos);n.expression=e,n.name=O(),e=_e(n)}return e}(),n.typeArguments=vr();var t=_e(n);return e&&ie(18),t}(),t=_e(v);break;case"class":case"constructor":m=y,(f=pe(294,(p=n).pos)).atToken=p,f.tagName=m,t=_e(f);break;case"this":u=y,(d=pe(299,(l=n).pos)).atToken=l,d.tagName=u,d.typeExpression=w(!0),b(),t=_e(d);break;case"enum":s=y,(c=pe(296,(o=n).pos)).atToken=o,c.tagName=s,c.typeExpression=w(!0),b(),t=_e(c);break;case"arg":case"argument":case"param":return D(n,y,2,e);case"return":case"returns":t=function(e,n){Ir.forEach(h,function(e){return 298===e.kind})&&q(n.pos,R.getTokenPos(),Ir.Diagnostics._0_tag_already_specified,n.escapedText);var t=pe(298,e.pos);return t.atToken=e,t.tagName=n,t.typeExpression=x(),_e(t)}(n,y);break;case"template":t=function(e,n){var t;17===Y()&&(t=w());var r=[],a=X();do{b();var i=pe(148);i.name=O(Ir.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),_e(i),b(),r.push(i)}while(M(26));var o=pe(301,e.pos);return o.atToken=e,o.tagName=n,o.constraint=t,o.typeParameters=fe(r,a),_e(o),o}(n,y);break;case"type":t=A(n,y);break;case"typedef":t=function(e,n,t){var r=x();E();var a,i=pe(302,e.pos);if(i.atToken=e,i.tagName=n,i.fullName=L(),i.name=k(i.fullName),b(),i.comment=S(t),!(i.typeExpression=r)||C(r.type)){for(var o=void 0,s=void 0,c=void 0,l=e.pos;o=re(function(){return N(1,t)});)if(s||(s=pe(290,l)),300===o.kind){if(c)break;c=o}else s.jsDocPropertyTags=Ir.append(s.jsDocPropertyTags,o);s&&(r&&167===r.type.kind&&(s.isArrayType=!0),i.typeExpression=c&&c.typeExpression&&!C(c.typeExpression.type)?c.typeExpression:_e(s),a=i.typeExpression.end)}return _e(i,a||void 0!==i.comment?R.getStartPos():(i.fullName||i.typeExpression||i.tagName).end)}(n,y,e);break;case"callback":t=function(e,n,t){var r,a=pe(295,e.pos);a.atToken=e,a.tagName=n,a.fullName=L(),a.name=k(a.fullName),b(),a.comment=S(t);var i=pe(291,R.getStartPos());i.parameters=[];for(;r=re(function(){return N(4,t)});)i.parameters=Ir.append(i.parameters,r);var o=re(function(){if(M(57)){var e=T(t);if(e&&298===e.kind)return e}});o&&(i.type=o);return a.typeExpression=_e(i),_e(a)}(n,y,e);break;default:a=y,(i=pe(292,(r=n).pos)).atToken=r,i.tagName=a,t=_e(i)}return t.comment||(t.comment=S(e+t.end-t.pos)),t}function S(n){var t,r=[],e=0;function a(e){t||(t=n),r.push(e),n+=e.length}var i=Y();e:for(;;){switch(i){case 4:1<=e&&(e=0,r.push(R.getTokenText())),n=0;break;case 57:R.setTextPos(R.getTextPos()-1);case 1:break e;case 5:if(2===e)a(R.getTokenText());else{var o=R.getTokenText();void 0!==t&&n+o.length>t&&r.push(o.slice(t-n-1)),n+=o.length}break;case 17:e=2,te(function(){return 57===I()&&Ir.tokenIsIdentifierOrKeyword(I())&&"link"===R.getTokenText()})&&(a(R.getTokenText()),I(),a(R.getTokenText()),I()),a(R.getTokenText());break;case 39:if(0===e){n+=e=1;break}default:e=2,a(R.getTokenText())}i=I()}return m(r),f(r),0===r.length?void 0:r.join("")}function _(e){e&&(h?h.push(e):(h=[e],u=e.pos),d=e.end)}function x(){return E(),17===Y()?w():void 0}function g(){if(13===Y())return{name:ye(!0),isBracketed:!1};var e=oe(21),n=function(){var e=O();oe(21)&&ie(22);for(;oe(23);){var n=O();oe(21)&&ie(22),e=qe(e,n)}return e}();return e&&(b(),se(58)&&Hn(),ie(22)),{name:n,isBracketed:e}}function C(e){switch(e.kind){case 135:return!0;case 167:return C(e.elementType);default:return Ir.isTypeReferenceNode(e)&&Ir.isIdentifier(e.typeName)&&"Object"===e.typeName.escapedText}}function D(e,n,t,r){var a=x(),i=!a;E();var o=g(),s=o.name,c=o.isBracketed;b(),i&&(a=x());var l=pe(1===t?303:297,e.pos),u=S(r+R.getStartPos()-e.pos),d=4!==t&&function(e,n,t,r){if(e&&C(e.type)){for(var a=pe(281,R.getTokenPos()),i=void 0,o=void 0,s=R.getStartPos(),c=void 0;i=re(function(){return N(t,r,n)});)297!==i.kind&&303!==i.kind||(c=Ir.append(c,i));if(c)return(o=pe(290,s)).jsDocPropertyTags=c,167===e.type.kind&&(o.isArrayType=!0),a.type=_e(o),_e(a)}}(a,s,t,r);return d&&(a=d,i=!0),l.atToken=e,l.tagName=n,l.typeExpression=a,l.name=s,l.isNameFirst=i,l.isBracketed=c,l.comment=u,_e(l)}function A(e,n){Ir.forEach(h,function(e){return 300===e.kind})&&q(n.pos,R.getTokenPos(),Ir.Diagnostics._0_tag_already_specified,n.escapedText);var t=pe(300,e.pos);return t.atToken=e,t.tagName=n,t.typeExpression=w(!0),_e(t)}function L(e){var n=R.getTokenPos();if(Ir.tokenIsIdentifierOrKeyword(Y())){var t=O();if(oe(23)){var r=pe(242,n);return e&&(r.flags|=4),r.name=t,r.body=L(!0),_e(r)}return e&&(t.isInJSDocNamespace=!0),t}}function k(e){if(e)for(var n=e;;){if(Ir.isIdentifier(n)||!n.body)return Ir.isIdentifier(n)?n:n.name;n=n.body}}function o(e,n){for(;!Ir.isIdentifier(e)||!Ir.isIdentifier(n);){if(Ir.isIdentifier(e)||Ir.isIdentifier(n)||e.right.escapedText!==n.right.escapedText)return!1;e=e.left,n=n.left}return e.escapedText===n.escapedText}function N(e,n,t){for(var r=!0,a=!1;;)switch(I()){case 57:if(r){var i=v(e,n);return!(i&&(297===i.kind||303===i.kind)&&4!==e&&t&&(Ir.isIdentifier(i.name)||!o(t,i.name.left)))&&i}a=!1;break;case 4:a=!(r=!0);break;case 39:a&&(r=!1),a=!0;break;case 71:r=!1;break;case 1:return!1}}function v(e,n){Ir.Debug.assert(57===Y());var t=pe(57);t.end=R.getTextPos(),I();var r,a=O();switch(b(),a.escapedText){case"type":return 1===e&&A(t,a);case"prop":case"property":r=1;break;case"arg":case"argument":case"param":r=6;break;default:return!1}return!!(e&r)&&D(t,a,e,n)}function I(){return y=R.scanJSDocToken()}function M(e){return Y()===e&&(I(),!0)}function O(e){if(!Ir.tokenIsIdentifierOrKeyword(Y()))return ge(71,!e,e||Ir.Diagnostics.Identifier_expected);var n=R.getTokenPos(),t=R.getTextPos(),r=pe(71,n);return r.escapedText=Ir.escapeLeadingUnderscores(R.getTokenText()),_e(r,t),I(),r}}e.parseJSDocTypeExpressionForTests=function(e,n,t){S(e,6,void 0,1),_=A("file.js",6,1,!1),R.setText(e,n,t),y=R.scan();var r=w(),a=g;return x(),r?{jsDocTypeExpression:r,diagnostics:a}:void 0},e.parseJSDocTypeExpression=w,e.parseIsolatedJSDocComment=function(e,n,t){S(e,6,void 0,1),_={languageVariant:0,text:e};var r=c(n,t),a=g;return x(),r?{jsDoc:r,diagnostics:a}:void 0},e.parseJSDocComment=function(e,n,t){var r,a=y,i=g.length,o=m,s=c(n,t);return s&&(s.parent=e),65536&E&&(_.jsDocDiagnostics||(_.jsDocDiagnostics=[]),(r=_.jsDocDiagnostics).push.apply(r,g)),y=a,g.length=i,m=o,s},(t=n||(n={}))[t.BeginningOfLine=0]="BeginningOfLine",t[t.SawAsterisk=1]="SawAsterisk",t[t.SavingComments=2]="SavingComments",(a=r||(r={}))[a.Property=1]="Property",a[a.Parameter=2]="Parameter",a[a.CallbackParameter=4]="CallbackParameter",e.parseJSDocCommentWorker=c}(d=e.JSDocParser||(e.JSDocParser={}))}(p||(p={})),function(e){function f(e,n,a,i,o,s){return void(n?l(e):c(e));function c(e){var n="";if(s&&u(e)&&(n=i.substring(e.pos,e.end)),e._children&&(e._children=void 0),e.pos+=a,e.end+=a,s&&u(e)&&Ir.Debug.assert(n===o.substring(e.pos,e.end)),Or(e,c,l),Ir.hasJSDocNodes(e))for(var t=0,r=e.jsDoc;t<r.length;t++){c(r[t])}g(e,s)}function l(e){e._children=void 0,e.pos+=a,e.end+=a;for(var n=0,t=e;n<t.length;n++){c(t[n])}}}function u(e){switch(e.kind){case 9:case 8:case 71:return!0}return!1}function _(e,n,t,r,a){Ir.Debug.assert(e.end>=n,"Adjusting an element that was entirely before the change range"),Ir.Debug.assert(e.pos<=t,"Adjusting an element that was entirely after the change range"),Ir.Debug.assert(e.pos<=e.end),e.pos=Math.min(e.pos,r),e.end>=t?e.end+=a:e.end=Math.min(e.end,r),Ir.Debug.assert(e.pos<=e.end),e.parent&&(Ir.Debug.assert(e.pos>=e.parent.pos),Ir.Debug.assert(e.end<=e.parent.end))}function g(e,n){if(n){var t=e.pos,r=function(e){Ir.Debug.assert(e.pos>=t),t=e.end};if(Ir.hasJSDocNodes(e))for(var a=0,i=e.jsDoc;a<i.length;a++){r(i[a])}Or(e,r),Ir.Debug.assert(t<=e.end)}}function l(e,t){var r,a=e;if(Or(e,function e(n){if(Ir.nodeIsMissing(n))return;{if(!(n.pos<=t))return Ir.Debug.assert(n.pos>t),!0;if(n.pos>=a.pos&&(a=n),t<n.end)return Or(n,e),!0;Ir.Debug.assert(n.end<=t),r=n}}),r){var n=function(e){for(;;){var n=Ir.getLastChild(e);if(!n)return e;e=n}}(r);n.pos>a.pos&&(a=n)}return a}function d(e,n,t,r){var a=e.text;if(t&&(Ir.Debug.assert(a.length-t.span.length+t.newLength===n.length),r||Ir.Debug.shouldAssert(3))){var i=a.substr(0,t.span.start),o=n.substr(0,t.span.start);Ir.Debug.assert(i===o);var s=a.substring(Ir.textSpanEnd(t.span),a.length),c=n.substring(Ir.textSpanEnd(Ir.textChangeRangeNewSpan(t)),n.length);Ir.Debug.assert(s===c)}}var n,t;(s||(s={})).updateSourceFile=function(e,n,t,r){if(d(e,n,t,r=r||Ir.Debug.shouldAssert(2)),Ir.textChangeRangeIsUnchanged(t))return e;if(0===e.statements.length)return p.parseSourceFile(e.fileName,n,e.languageVersion,void 0,!0,e.scriptKind);var a=e;Ir.Debug.assert(!a.hasBeenIncrementallyParsed),a.hasBeenIncrementallyParsed=!0;var i=e.text,o=function(n){var o=n.statements,s=0;Ir.Debug.assert(s<o.length);var c=o[s],t=-1;return{currentNode:function(e){return e!==t&&(c&&c.end===e&&s<o.length-1&&(c=o[++s]),c&&c.pos===e||function(r){return s=-1,c=o=void 0,Or(n,a,i);function a(e){return r>=e.pos&&r<e.end&&(Or(e,a,i),!0)}function i(e){if(r>=e.pos&&r<e.end)for(var n=0;n<e.length;n++){var t=e[n];if(t){if(t.pos===r)return o=e,s=n,c=t,!0;if(t.pos<r&&r<t.end)return Or(t,a,i),!0}}return!1}}(e)),t=e,Ir.Debug.assert(!c||c.pos===e),c}}}(e),s=function(e,n){for(var t=n.span.start,r=0;0<t&&r<=1;r++){var a=l(e,t);Ir.Debug.assert(a.pos<=t);var i=a.pos;t=Math.max(0,i-1)}var o=Ir.createTextSpanFromBounds(t,Ir.textSpanEnd(n.span)),s=n.newLength+(n.span.start-t);return Ir.createTextChangeRange(o,s)}(e,t);d(e,n,s,r),Ir.Debug.assert(s.span.start<=t.span.start),Ir.Debug.assert(Ir.textSpanEnd(s.span)===Ir.textSpanEnd(t.span)),Ir.Debug.assert(Ir.textSpanEnd(Ir.textChangeRangeNewSpan(s))===Ir.textSpanEnd(Ir.textChangeRangeNewSpan(t)));var c=Ir.textChangeRangeNewSpan(s).length-s.span.length;return function(e,i,o,s,c,l,u,d){return p(e);function p(e){if(Ir.Debug.assert(e.pos<=e.end),e.pos>o)f(e,!1,c,l,u,d);else{var n=e.end;if(i<=n){if(e.intersectsChange=!0,e._children=void 0,_(e,i,o,s,c),Or(e,p,m),Ir.hasJSDocNodes(e))for(var t=0,r=e.jsDoc;t<r.length;t++){var a=r[t];p(a)}g(e,d)}else Ir.Debug.assert(n<i)}}function m(e){if(Ir.Debug.assert(e.pos<=e.end),e.pos>o)f(e,!0,c,l,u,d);else{var n=e.end;if(i<=n){e.intersectsChange=!0,e._children=void 0,_(e,i,o,s,c);for(var t=0,r=e;t<r.length;t++){var a=r[t];p(a)}}else Ir.Debug.assert(n<i)}}}(a,s.span.start,Ir.textSpanEnd(s.span),Ir.textSpanEnd(Ir.textChangeRangeNewSpan(s)),c,i,n,r),p.parseSourceFile(e.fileName,n,e.languageVersion,o,!0,e.scriptKind)},(t=n||(n={}))[t.Value=-1]="Value"}(),Ir.isDeclarationFileName=wr,Ir.processCommentPragmas=Pr,Ir.processPragmasIntoFields=Rr;var t=Ir.createMap();function _(e){if(t.has(e))return t.get(e);var n=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return t.set(e,n),n}var g=/^\/\/\/\s*<(\S+)\s.*?\/>/im,v=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function u(e,n,t){var r=2===n.kind&&g.exec(t);if(r){var a=r[1].toLowerCase(),i=Ir.commentPragmas[a];if(!(i&&1&i.kind))return;if(i.args){for(var o={},s=0,c=i.args;s<c.length;s++){var l=c[s],u=_(l.name).exec(t);if(!u&&!l.optional)return;if(u)if(l.captureSpan){var d=n.pos+u.index+u[1].length+u[2].length;o[l.name]={value:u[3],pos:d,end:d+u[3].length}}else o[l.name]=u[3]}e.push({name:a,args:{arguments:o,range:n}})}else e.push({name:a,args:{arguments:{},range:n}})}else{var p=2===n.kind&&v.exec(t);if(p)return y(e,n,2,p);if(3===n.kind)for(var m=/\s*@(\S+)\s*(.*)\s*$/gim,f=void 0;f=m.exec(t);)y(e,n,4,f)}}function y(e,n,t,r){if(r){var a=r[1].toLowerCase(),i=Ir.commentPragmas[a];if(i&&i.kind&t){var o=function(e,n){if(!n)return{};if(!e.args)return{};for(var t=n.split(/\s+/),r={},a=0;a<e.args.length;a++){var i=e.args[a];if(!t[a]&&!i.optional)return"fail";if(i.captureSpan)return Ir.Debug.fail("Capture spans not yet implemented for non-xml pragmas");r[i.name]=t[a]}return r}(i,r[2]);"fail"!==o&&e.push({name:a,args:{arguments:o,range:n}})}}}function Fr(e,n){return e.kind===n.kind&&(71===e.kind?e.escapedText===n.escapedText:99===e.kind||e.name.escapedText===n.name.escapedText&&Fr(e.expression,n.expression))}Ir.tagNamesAreEquivalent=Fr}(ts||(ts={})),function(k){k.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean"};var e,m,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"]];function o(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function t(){return e||(e=s(k.optionDeclarations))}function s(e){var n=k.createMap(),t=k.createMap();return k.forEach(e,function(e){n.set(e.name.toLowerCase(),e),e.shortName&&t.set(e.shortName,e.name)}),{optionNameMap:n,shortOptionNames:t}}function i(e){return u(e,k.createCompilerDiagnostic)}function u(e,n){var t=k.arrayFrom(e.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return n(k.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+e.name,t)}function f(e,n,t){return V(e,B(n||""),t)}function _(n,e,t){if(void 0===e&&(e=""),e=B(e),!k.startsWith(e,"-")){if(""===e)return[];var r=e.split(",");switch(n.element.type){case"number":return k.map(r,parseInt);case"string":return k.map(r,function(e){return e||""});default:return k.mapDefined(r,function(e){return f(n.element,e,t)})}}}function c(o,e,n,i){var s=e[0],c=e[1],l={},u=[],d=[];return p(n),{options:l,fileNames:u,errors:d};function p(e){for(var n=0;n<e.length;){var t=e[n];if(n++,64===t.charCodeAt(0))m(t.slice(1));else if(45===t.charCodeAt(0)){var r=g(o,t.slice(45===t.charCodeAt(1)?2:1),!0);if(r)if(r.isTSConfigOnly)d.push(k.createCompilerDiagnostic(k.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file,r.name));else switch(e[n]||"boolean"===r.type||d.push(k.createCompilerDiagnostic(c,r.name)),r.type){case"number":l[r.name]=parseInt(e[n]),n++;break;case"boolean":var a=e[n];l[r.name]="false"!==a,"false"!==a&&"true"!==a||n++;break;case"string":l[r.name]=e[n]||"",n++;break;case"list":var i=_(r,e[n],d);l[r.name]=i||[],i&&n++;break;default:l[r.name]=f(r,e[n],d),n++}else d.push(k.createCompilerDiagnostic(s,t))}else u.push(t)}}function m(e){var n=i?i(e):k.sys.readFile(e);if(n){for(var t=[],r=0;;){for(;r<n.length&&n.charCodeAt(r)<=32;)r++;if(r>=n.length)break;var a=r;if(34===n.charCodeAt(a)){for(r++;r<n.length&&34!==n.charCodeAt(r);)r++;r<n.length?(t.push(n.substring(a+1,r)),r++):d.push(k.createCompilerDiagnostic(k.Diagnostics.Unterminated_quoted_string_in_response_file_0,e))}else{for(;32<n.charCodeAt(r);)r++;t.push(n.substring(a,r))}}p(t)}else d.push(k.createCompilerDiagnostic(k.Diagnostics.File_0_not_found,e))}}function a(e,n){return g(t,e,n)}function g(e,n,t){void 0===t&&(t=!1),n=n.toLowerCase();var r=e(),a=r.optionNameMap,i=r.shortOptionNames;if(t){var o=i.get(n);void 0!==o&&(n=o)}return a.get(n)}function N(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];return k.createCompilerDiagnostic.apply(void 0,arguments).messageText}function r(e,n){var t=k.parseJsonText(e,n);return{config:h(t,t.parseDiagnostics),error:t.parseDiagnostics.length?t.parseDiagnostics[0]:void 0}}function v(e,n){var t=l(e,n);return k.isString(t)?k.parseJsonText(e,t):{parseDiagnostics:[t]}}function l(n,e){var t;try{t=e(n)}catch(e){return k.createCompilerDiagnostic(k.Diagnostics.Cannot_read_file_0_Colon_1,n,e.message)}return void 0===t?k.createCompilerDiagnostic(k.Diagnostics.The_specified_path_does_not_exist_Colon_0,n):t}function y(e){return k.arrayToMap(e,function(e){return e.name})}function h(e,n){return b(e,n,!0,void 0,void 0)}function b(m,f,_,n,g){return m.statements.length?y(m.statements[0].expression,n):_?{}:void 0;function v(e){return n&&n.elementOptions===e}function l(e,n,t,r){for(var a=_?{}:void 0,i=0,o=e.properties;i<o.length;i++){var s=o[i];if(273===s.kind){s.questionToken&&f.push(k.createDiagnosticForNodeInSourceFile(m,s.questionToken,k.Diagnostics._0_can_only_be_used_in_a_ts_file,"?")),h(s.name)||f.push(k.createDiagnosticForNodeInSourceFile(m,s.name,k.Diagnostics.String_literal_with_double_quotes_expected));var c=k.getTextOfPropertyName(s.name),l=c&&k.unescapeLeadingUnderscores(c),u=l&&n?n.get(l):void 0;l&&t&&!u&&f.push(k.createDiagnosticForNodeInSourceFile(m,s.name,t,l));var d=y(s.initializer,u);if(void 0!==l&&(_&&(a[l]=d),g&&(r||v(n)))){var p=E(u,d);r?p&&g.onSetValidOptionKeyValueInParent(r,u,d):v(n)&&(p?g.onSetValidOptionKeyValueInRoot(l,s.name,d,s.initializer):u||g.onSetUnknownOptionKeyValueInRoot(l,s.name,d,s.initializer))}}else f.push(k.createDiagnosticForNodeInSourceFile(m,s,k.Diagnostics.Property_assignment_expected))}return a}function y(r,n){switch(r.kind){case 101:return c(n&&"boolean"!==n.type),!0;case 86:return c(n&&"boolean"!==n.type),!1;case 95:return c(n&&"extends"===n.name),null;case 9:h(r)||f.push(k.createDiagnosticForNodeInSourceFile(m,r,k.Diagnostics.String_literal_with_double_quotes_expected)),c(n&&k.isString(n.type)&&"string"!==n.type);var e=r.text;if(n&&!k.isString(n.type)){var t=n;t.type.has(e.toLowerCase())||f.push(u(t,function(e,n,t){return k.createDiagnosticForNodeInSourceFile(m,r,e,n,t)}))}return e;case 8:return c(n&&"number"!==n.type),Number(r.text);case 200:if(38!==r.operator||8!==r.operand.kind)break;return c(n&&"number"!==n.type),-Number(r.operand.text);case 186:c(n&&"object"!==n.type);var a=r;if(n){var i=n;return l(a,i.elementOptions,i.extraKeyDiagnosticMessage,i.name)}return l(a,void 0,void 0,void 0);case 185:return c(n&&"list"!==n.type),o=r.elements,s=n&&n.element,(_?o.map:o.forEach).call(o,function(e){return y(e,s)})}var o,s;return void(n?c(!0):f.push(k.createDiagnosticForNodeInSourceFile(m,r,k.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function c(e){e&&f.push(k.createDiagnosticForNodeInSourceFile(m,r,k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,n.name,d(n)))}}function h(e){return k.isStringLiteral(e)&&k.isStringDoubleQuoted(e,m)}}function d(e){return"list"===e.type?"Array":k.isString(e.type)?e.type:"string"}function E(e,n){return!!e&&(!!A(n)||("list"===e.type?k.isArray(n):typeof n===(k.isString(e.type)?e.type:"string")))}function p(e,n,t,r,a,i,o){return T(void 0,e,n,t,r,a,i,o)}function D(e,n){n&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:n})}function A(e){return null==e}function L(e,n){return k.getDirectoryPath(k.getNormalizedAbsolutePath(e,n))}function T(e,_,g,v,n,y,h,b){void 0===n&&(n={}),void 0===h&&(h=[]),void 0===b&&(b=[]),k.Debug.assert(void 0===e&&void 0!==_||void 0!==e&&void 0===_);var E,T=[],t=M(e,_,g,v,y,h,T),S=t.raw,x=k.extend(n,t.options||{});x.configFilePath=y&&k.normalizeSlashes(y),D(x,_);var r=function(){var e,n,t;if(k.hasProperty(S,"files")&&!A(S.files))if(k.isArray(S.files)){e=S.files;var r=k.hasProperty(S,"references")&&!A(S.references),a=!r||0===S.references.length;if(0===e.length&&a)if(_){var i=y||"tsconfig.json",o=k.Diagnostics.The_files_list_in_config_file_0_is_empty,s=k.firstDefined(k.getTsConfigPropArray(_,"files"),function(e){return e.initializer}),c=s?k.createDiagnosticForNodeInSourceFile(_,s,o,i):k.createCompilerDiagnostic(o,i);T.push(c)}else C(k.Diagnostics.The_files_list_in_config_file_0_is_empty,y||"tsconfig.json")}else C(k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array");k.hasProperty(S,"include")&&!A(S.include)&&(k.isArray(S.include)?n=S.include:C(k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array"));if(k.hasProperty(S,"exclude")&&!A(S.exclude))k.isArray(S.exclude)?t=S.exclude:C(k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array");else if(S.compilerOptions){var l=S.compilerOptions.outDir,u=S.compilerOptions.declarationDir;(l||u)&&(t=[l,u].filter(function(e){return!!e}))}void 0===e&&void 0===n&&(n=["**/*"]);var d=function(e,n,t,r,a,i,o,s,c){var l,u;r=k.normalizePath(r),n&&(l=q(n,o,!1,c,"include"));t&&(u=q(t,o,!0,c,"exclude"));var d=function(e,n,t,r){var a=k.getRegularExpressionForWildcard(n,t,"exclude"),i=a&&new RegExp(a,r?"":"i"),o={};if(void 0!==e){for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c],d=k.normalizePath(k.combinePaths(t,u));if(!i||!i.test(d)){var p=z(d,r);if(p){var m=p.key,f=p.flags,_=o[m];(void 0===_||_<f)&&1===(o[m]=f)&&s.push(m)}}}for(var m in o)if(k.hasProperty(o,m))for(var g=0,v=s;g<v.length;g++){var y=v[g];m!==y&&k.containsPath(y,m,t,!r)&&delete o[m]}}return o}(l,u,r,i.useCaseSensitiveFileNames);return W({filesSpecs:e,includeSpecs:n,excludeSpecs:t,validatedIncludeSpecs:l,validatedExcludeSpecs:u,wildcardDirectories:d},r,a,i,s)}(e,n,t,y?L(y,v):v,x,g,T,b,_);0!==d.fileNames.length||k.hasProperty(S,"files")||0!==h.length||k.hasProperty(S,"references")||T.push(I(d.spec,y));if(k.hasProperty(S,"references")&&!A(S.references))if(k.isArray(S.references))for(var p=0,m=S.references;p<m.length;p++){var f=m[p];"string"!=typeof f.path?C(k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(E||(E=[])).push({path:k.getNormalizedAbsolutePath(f.path,v),originalPath:f.path,prepend:f.prepend,circular:f.circular})}else C(k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"references","Array");return d}(),a=r.fileNames,i=r.wildcardDirectories,o=r.spec;return{options:x,fileNames:a,projectReferences:E,typeAcquisition:t.typeAcquisition||w(),raw:S,errors:T,wildcardDirectories:i,compileOnSave:!!S.compileOnSave,configFileSpecs:o};function C(e,n,t){_||T.push(k.createCompilerDiagnostic(e,n,t))}}function I(e,n){var t=e.includeSpecs,r=e.excludeSpecs;return k.createCompilerDiagnostic(k.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(t||[]),JSON.stringify(r||[]))}function S(e){return!!e.options}function M(e,n,t,r,a,i,o){r=k.normalizeSlashes(r);var s=k.getNormalizedAbsolutePath(a||"",r);if(0<=i.indexOf(s))return o.push(k.createCompilerDiagnostic(k.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,i.concat([s]).join(" -> "))),{raw:e||h(n,o)};var c=e?function(e,n,t,r,a){k.hasProperty(e,"excludes")&&a.push(k.createCompilerDiagnostic(k.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var i,o=O(e.compilerOptions,t,a,r),s=P(e.typeAcquisition||e.typingOptions,t,a,r);if(e.compileOnSave=function(e,n,t){if(!k.hasProperty(e,k.compileOnSaveCommandLineOption.name))return!1;var r=F(k.compileOnSaveCommandLineOption,e.compileOnSave,n,t);return"boolean"==typeof r&&r}(e,t,a),e.extends)if(k.isString(e.extends)){var c=r?L(r,t):t;i=x(e.extends,n,c,a,k.createCompilerDiagnostic)}else a.push(k.createCompilerDiagnostic(k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:e,options:o,typeAcquisition:s,extendedConfigPath:i}}(e,t,r,a,o):function(i,o,s,c,l){var a,u,d,p=C(c),e={onSetValidOptionKeyValueInParent:function(e,n,t){k.Debug.assert("compilerOptions"===e||"typeAcquisition"===e||"typingOptions"===e);var r="compilerOptions"===e?p:"typeAcquisition"===e?a||(a=w(c)):u||(u=w(c));r[n.name]=function n(e,t,r){if(A(r))return;{if("list"===e.type){var a=e;return a.element.isFilePath||!k.isString(a.element.type)?k.filter(k.map(r,function(e){return n(a.element,t,e)}),function(e){return!!e}):r}if(!k.isString(e.type))return e.type.get(k.isString(r)?r.toLowerCase():r)}return G(e,t,r)}(n,s,t)},onSetValidOptionKeyValueInRoot:function(e,n,t,r){switch(e){case"extends":var a=c?L(c,s):s;return void(d=x(t,o,a,l,function(e,n){return k.createDiagnosticForNodeInSourceFile(i,r,e,n)}))}},onSetUnknownOptionKeyValueInRoot:function(e,n,t,r){"excludes"===e&&l.push(k.createDiagnosticForNodeInSourceFile(i,n,k.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},n=b(i,l,!0,(void 0===m&&(m={name:void 0,type:"object",elementOptions:y([{name:"compilerOptions",type:"object",elementOptions:y(k.optionDeclarations),extraKeyDiagnosticMessage:k.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:y(k.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:k.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:y(k.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:k.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"}},k.compileOnSaveCommandLineOption])}),m),e);a||(a=u?void 0!==u.enableAutoDiscovery?{enable:u.enableAutoDiscovery,include:u.include,exclude:u.exclude}:u:w(c));return{raw:n,options:p,typeAcquisition:a,extendedConfigPath:d}}(n,t,r,a,o);if(c.extendedConfigPath){i=i.concat([s]);var l=function(e,n,t,r,a,i){var o,s=v(n,function(e){return t.readFile(e)});e&&(e.extendedSourceFiles=[s.fileName]);if(s.parseDiagnostics.length)return void i.push.apply(i,s.parseDiagnostics);var c=k.getDirectoryPath(n),l=M(void 0,s,t,c,k.getBaseFileName(n),a,i);e&&s.extendedSourceFiles&&(o=e.extendedSourceFiles).push.apply(o,s.extendedSourceFiles);if(S(l)){var u=k.convertToRelativePath(c,r,k.identity),d=function(e){return k.isRootedDiskPath(e)?e:k.combinePaths(u,e)},p=function(e){m[e]&&(m[e]=k.map(m[e],d))},m=l.raw;p("include"),p("exclude"),p("files")}return l}(n,c.extendedConfigPath,t,r,i,o);if(l&&S(l)){var u=l.raw,d=c.raw,p=function(e){var n=d[e]||u[e];n&&(d[e]=n)};p("include"),p("exclude"),p("files"),void 0===d.compileOnSave&&(d.compileOnSave=u.compileOnSave),c.options=k.assign({},l.options,c.options)}}return c}function x(e,n,t,r,a){if(e=k.normalizeSlashes(e),k.isRootedDiskPath(e)||k.startsWith(e,"./")||k.startsWith(e,"../")){var i=k.getNormalizedAbsolutePath(e,t);if(n.fileExists(i)||k.endsWith(i,".json")||(i+=".json",n.fileExists(i)))return i;r.push(a(k.Diagnostics.File_0_does_not_exist,e))}else r.push(a(k.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,e))}function C(e){return e&&"jsconfig.json"===k.getBaseFileName(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function O(e,n,t,r){var a=C(r);return R(k.optionDeclarations,e,n,a,k.Diagnostics.Unknown_compiler_option_0,t),r&&(a.configFilePath=k.normalizeSlashes(r)),a}function w(e){return{enable:!!e&&"jsconfig.json"===k.getBaseFileName(e),include:[],exclude:[]}}function P(e,n,t,r){var a=w(r),i=o(e);return R(k.typeAcquisitionDeclarations,i,n,a,k.Diagnostics.Unknown_type_acquisition_option_0,t),a}function R(e,n,t,r,a,i){if(n){var o=y(e);for(var s in n){var c=o.get(s);c?r[c.name]=F(c,n[s],t,i):i.push(k.createCompilerDiagnostic(a,s))}}}function F(e,n,t,r){if(E(e,n)){var a=e.type;return"list"===a&&k.isArray(n)?(i=e,o=n,s=t,c=r,k.filter(k.map(o,function(e){return F(i.element,e,s,c)}),function(e){return!!e})):k.isString(a)?G(e,t,n):V(e,n,r)}var i,o,s,c;r.push(k.createCompilerDiagnostic(k.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,e.name,d(e)))}function G(e,n,t){return e.isFilePath&&""===(t=k.normalizePath(k.combinePaths(n,t)))&&(t="."),t}function V(e,n,t){if(!A(n)){var r=n.toLowerCase(),a=e.type.get(r);if(void 0!==a)return a;t.push(i(e))}}function B(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}k.libs=n.map(function(e){return e[0]}),k.libMap=k.createMapFromEntries(n),k.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"traceResolution",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Enable_tracing_of_the_name_resolution_process}],k.optionDeclarations=k.commonOptionsWithBuild.concat([{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,paramType:k.Diagnostics.FILE_OR_DIRECTORY,description:k.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:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"target",shortName:"t",type:k.createMapFromTemplate({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,esnext:6}),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:k.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT},{name:"module",shortName:"m",type:k.createMapFromTemplate({none:k.ModuleKind.None,commonjs:k.ModuleKind.CommonJS,amd:k.ModuleKind.AMD,system:k.ModuleKind.System,umd:k.ModuleKind.UMD,es6:k.ModuleKind.ES2015,es2015:k.ModuleKind.ES2015,esnext:k.ModuleKind.ESNext}),affectsModuleResolution:!0,paramType:k.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:k.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Specify_library_files_to_be_included_in_the_compilation},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:k.createMapFromTemplate({preserve:1,"react-native":3,react:2}),affectsSourceFile:!0,paramType:k.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_or_react},{name:"declaration",shortName:"d",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Generates_corresponding_d_ts_file},{name:"declarationMap",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file},{name:"emitDeclarationOnly",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Only_emit_d_ts_declaration_files},{name:"sourceMap",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",isFilePath:!0,paramType:k.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Concatenate_and_emit_output_to_single_file},{name:"outDir",type:"string",isFilePath:!0,paramType:k.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",isFilePath:!0,paramType:k.Diagnostics.LOCATION,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",isTSConfigOnly:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Enable_project_compilation},{name:"removeComments",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Do_not_emit_outputs},{name:"importHelpers",type:"boolean",category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Import_emit_helpers_from_tslib},{name:"downlevelIteration",type:"boolean",category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:k.Diagnostics.Basic_Options,description:k.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Strict_Type_Checking_Options,description:k.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Additional_Checks,description:k.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Additional_Checks,description:k.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Additional_Checks,description:k.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Additional_Checks,description:k.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"moduleResolution",type:k.createMapFromTemplate({node:k.ModuleResolutionKind.NodeJs,classic:k.ModuleResolutionKind.Classic}),affectsModuleResolution:!0,paramType:k.Diagnostics.STRATEGY,category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:k.Diagnostics.Module_Resolution_Options,description:k.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:k.Diagnostics.Module_Resolution_Options,description:k.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:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.Type_declaration_files_to_be_included_in_compilation},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:k.Diagnostics.Module_Resolution_Options,description:k.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:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:k.Diagnostics.Module_Resolution_Options,description:k.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"sourceRoot",type:"string",paramType:k.Diagnostics.LOCATION,category:k.Diagnostics.Source_Map_Options,description:k.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",paramType:k.Diagnostics.LOCATION,category:k.Diagnostics.Source_Map_Options,description:k.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",category:k.Diagnostics.Source_Map_Options,description:k.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",category:k.Diagnostics.Source_Map_Options,description:k.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",category:k.Diagnostics.Experimental_Options,description:k.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",category:k.Diagnostics.Experimental_Options,description:k.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"diagnostics",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Show_verbose_diagnostic_information},{name:"resolveJsonModule",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",isFilePath:!1,category:k.Diagnostics.Advanced_Options,paramType:k.Diagnostics.FILE,description:k.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file},{name:"reactNamespace",type:"string",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"locale",type:"string",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us},{name:"newLine",type:k.createMapFromTemplate({crlf:0,lf:1}),paramType:k.Diagnostics.NEWLINE,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files},{name:"stripInternal",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported},{name:"preserveConstEnums",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",isFilePath:!0,paramType:k.Diagnostics.DIRECTORY,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:k.Diagnostics.Advanced_Options,description:k.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"keyofStringsOnly",type:"boolean",category:k.Diagnostics.Advanced_Options,description:k.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:k.Diagnostics.List_of_language_service_plugins}]),k.semanticDiagnosticsOptionDeclarations=k.optionDeclarations.filter(function(e){return!!e.affectsSemanticDiagnostics}),k.moduleResolutionOptionDeclarations=k.optionDeclarations.filter(function(e){return!!e.affectsModuleResolution}),k.sourceFileAffectingCompilerOptions=k.optionDeclarations.filter(function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics}),k.buildOpts=k.commonOptionsWithBuild.concat([{name:"verbose",shortName:"v",category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:k.Diagnostics.Command_line_Options,description:k.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),k.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"}}],k.defaultInitCompilerOptions={module:k.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0},k.convertEnableAutoDiscoveryToEnable=o,k.createOptionNameMap=s,k.createCompilerDiagnosticForInvalidCustomType=i,k.parseCustomTypeOption=f,k.parseListTypeOption=_,k.parseCommandLine=function(e,n){return c(t,[k.Diagnostics.Unknown_compiler_option_0,k.Diagnostics.Compiler_option_0_expects_an_argument],e,n)},k.getOptionFromName=a,k.parseBuildCommand=function(e){var n,t=c(function(){return n||(n=s(k.buildOpts))},[k.Diagnostics.Unknown_build_option_0,k.Diagnostics.Build_option_0_requires_a_value_of_type_1],e),r=t.options,a=t.fileNames,i=t.errors,o=r;return 0===a.length&&a.push("."),o.clean&&o.force&&i.push(k.createCompilerDiagnostic(k.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&i.push(k.createCompilerDiagnostic(k.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&i.push(k.createCompilerDiagnostic(k.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&i.push(k.createCompilerDiagnostic(k.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,projects:a,errors:i}},k.printVersion=function(){k.sys.write(N(k.Diagnostics.Version_0,k.version)+k.sys.newLine)},k.printHelp=function(e,n){void 0===n&&(n="");var t=[],r=N(k.Diagnostics.Syntax_Colon_0,"").length,a=N(k.Diagnostics.Examples_Colon_0,"").length,i=Math.max(r,a),o=L(i-r);o+="tsc "+n+"["+N(k.Diagnostics.options)+"] ["+N(k.Diagnostics.file)+"...]",t.push(N(k.Diagnostics.Syntax_Colon_0,o)),t.push(k.sys.newLine+k.sys.newLine);var s=L(i);t.push(N(k.Diagnostics.Examples_Colon_0,L(i-a)+"tsc hello.ts")+k.sys.newLine),t.push(s+"tsc --outFile file.js file.ts"+k.sys.newLine),t.push(s+"tsc @args.txt"+k.sys.newLine),t.push(s+"tsc --build tsconfig.json"+k.sys.newLine),t.push(k.sys.newLine),t.push(N(k.Diagnostics.Options_Colon)+k.sys.newLine),i=0;for(var c=[],l=[],u=k.createMap(),d=0,p=e;d<p.length;d++){var m=p[d];if(m.description){var f=" ";m.shortName&&(f+="-"+m.shortName,f+=A(m),f+=", "),f+="--"+m.name,f+=A(m),c.push(f);var _=void 0;if("lib"===m.name){_=N(m.description);var g=m.element.type;u.set(_,k.arrayFrom(g.keys()).map(function(e){return"'"+e+"'"}))}else _=N(m.description);l.push(_),i=Math.max(f.length,i)}}var v=" @<"+N(k.Diagnostics.file)+">";c.push(v),l.push(N(k.Diagnostics.Insert_command_line_options_and_files_from_a_file)),i=Math.max(v.length,i);for(var y=0;y<c.length;y++){var h=c[y],b=(_=l[y],u.get(_));if(t.push(h+L(i-h.length+2)+_+k.sys.newLine),b){t.push(L(i+4));for(var E=0,T=b;E<T.length;E++){var S=T[E];t.push(S+" ")}t.push(k.sys.newLine)}}for(var x=0,C=t;x<C.length;x++){var D=C[x];k.sys.write(D)}return;function A(e){return void 0!==e.paramType?" "+N(e.paramType):""}function L(e){return Array(e+1).join(" ")}},k.getParsedCommandLineOfConfigFile=function(n,e,t){var r;try{r=t.readFile(n)}catch(e){var a=k.createCompilerDiagnostic(k.Diagnostics.Cannot_read_file_0_Colon_1,n,e.message);return void t.onUnRecoverableConfigFileDiagnostic(a)}if(r){var i=k.parseJsonText(n,r),o=t.getCurrentDirectory();return p(i,t,k.getNormalizedAbsolutePath(k.getDirectoryPath(n),o),e,k.getNormalizedAbsolutePath(n,o))}a=k.createCompilerDiagnostic(k.Diagnostics.File_0_not_found,n),t.onUnRecoverableConfigFileDiagnostic(a)},k.readConfigFile=function(e,n){var t=l(e,n);return k.isString(t)?r(e,t):{config:{},error:t}},k.parseConfigFileTextToJson=r,k.readJsonConfigFile=v,k.convertToObject=h,k.convertToObjectWorker=b,k.generateTSConfig=function(e,v,y){var h=function(a){var i=k.createMap(),o=t().optionNameMap,e=function(e){if(k.hasProperty(a,e)){if(o.has(e)&&o.get(e).category===k.Diagnostics.Command_line_Options)return"continue";var n=a[e],t=o.get(e.toLowerCase());if(t){var r=function e(n){return"string"===n.type||"number"===n.type||"boolean"===n.type?void 0:"list"===n.type?e(n.element):n.type}(t);r?"list"===t.type?i.set(e,n.map(function(e){return s(e,r)})):i.set(e,s(n,r)):i.set(e,n)}}};for(var n in a)e(n);return i}(k.extend(e,k.defaultInitCompilerOptions));return function(){for(var e=k.createMultiMap(),n=0,t=k.optionDeclarations;n<t.length;n++){var r=t[n],a=r.category;o=(i=r).category,s=i.name,void 0===o||o===k.Diagnostics.Command_line_Options||o===k.Diagnostics.Advanced_Options&&!h.has(s)||e.add(k.getLocaleSpecificMessage(a),r)}var i,o,s,c=0,l=0,u=[],d=[];e.forEach(function(e,n){0!==u.length&&(u.push(""),d.push("")),u.push("/* "+n+" */"),d.push("");for(var t=0,r=e;t<r.length;t++){var a=r[t],i=void 0;i=h.has(a.name)?'"'+a.name+'": '+JSON.stringify(h.get(a.name))+((l+=1)===h.size?"":","):'// "'+a.name+'": '+JSON.stringify(b(a))+",",u.push(i),d.push("/* "+(a.description&&k.getLocaleSpecificMessage(a.description)||a.name)+" */"),c=Math.max(i.length,c)}});var p=E(2),m=[];m.push("{"),m.push(p+'"compilerOptions": {');for(var f=0;f<u.length;f++){var _=u[f],g=d[f];m.push(_&&""+p+p+_+(g&&E(c-_.length+2)+g))}if(v.length){m.push(p+"},"),m.push(p+'"files": [');for(var f=0;f<v.length;f++)m.push(""+p+p+JSON.stringify(v[f])+(f===v.length-1?"":","));m.push(p+"]")}else m.push(p+"}");return m.push("}"),m.join(y)}();function s(t,e){return k.forEachEntry(e,function(e,n){if(e===t)return n})}function b(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 E(e){return Array(e+1).join(" ")}},k.parseJsonConfigFileContent=function(e,n,t,r,a,i,o){return T(e,void 0,n,t,r,a,i,o)},k.parseJsonSourceFileConfigFileContent=p,k.setConfigFileInOptions=D,k.isErrorNoInputFiles=function(e){return e.code===k.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code},k.getErrorForNoInputFiles=I,k.convertCompilerOptionsFromJson=function(e,n,t){var r=[];return{options:O(e,n,r,t),errors:r}},k.convertTypeAcquisitionFromJson=function(e,n,t){var r=[];return{options:P(e,n,r,t),errors:r}};var K=/(^|\/)\*\*\/?$/,j=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,H=/\/[^/]*?[*?][^/]*\//,U=/^[^*?]*(?=\/[^/]*[*?])/;function W(e,n,t,r,a){void 0===a&&(a=[]),n=k.normalizePath(n);var i=r.useCaseSensitiveFileNames?k.identity:k.toLowerCase,o=k.createMap(),s=k.createMap(),c=e.filesSpecs,l=e.validatedIncludeSpecs,u=e.validatedExcludeSpecs,d=e.wildcardDirectories,p=k.getSupportedExtensions(t,a);if(c)for(var m=0,f=c;m<f.length;m++){var _=f[m],g=k.getNormalizedAbsolutePath(_,n);o.set(i(g),g)}if(l&&0<l.length)for(var v=0,y=r.readDirectory(n,p,u,l,void 0);v<y.length;v++){if(!J(g=y[v],o,s,p,i)){X(g,s,p,i);var h=i(g);o.has(h)||s.has(h)||s.set(h,g)}}var b=k.arrayFrom(o.values()),E=k.arrayFrom(s.values());return{fileNames:b.concat(E),wildcardDirectories:d,spec:e}}function q(e,i,o,s,c){return e.filter(function(e){var n,t,r,a=function(e,n){{if(!n&&K.test(e))return k.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0;if(j.test(e))return k.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0}}(e,o);return void 0!==a&&i.push((n=a,t=e,(r=k.getTsConfigPropArrayElementValue(s,c,t))?k.createDiagnosticForNodeInSourceFile(s,r,n,t):k.createCompilerDiagnostic(n,t))),void 0===a})}function z(e,n){var t=U.exec(e);return t?{key:n?t[0]:t[0].toLowerCase(),flags:H.test(e)?1:0}:k.isImplicitGlob(e)?{key:e,flags:1}:void 0}function J(e,n,t,r,a){for(var i=k.getExtensionPriority(e,r),o=k.adjustExtensionPriority(i,r),s=0;s<o;s++){var c=r[s],l=a(k.changeExtension(e,c));if(n.has(l)||t.has(l))return!0}return!1}function X(e,n,t,r){for(var a=k.getExtensionPriority(e,t),i=k.getNextLowestExtensionPriority(a,t);i<t.length;i++){var o=t[i],s=r(k.changeExtension(e,o));n.delete(s)}}function Y(t,e){switch(e.type){case"object":case"string":return"";case"number":return"number"==typeof t?t:"";case"boolean":return"boolean"==typeof t?t:"";case"list":var n=e.element;return k.isArray(t)?t.map(function(e){return Y(e,n)}):"";default:return k.forEachEntry(e.type,function(e,n){if(e===t)return n})}}k.getFileNamesFromConfigSpecs=W,k.convertCompilerOptionsForTelemetry=function(e){var n={};for(var t in e)if(e.hasOwnProperty(t)){var r=a(t);void 0!==r&&(n[t]=Y(e[t],r))}return n}}(ts||(ts={})),function(b){function E(e){e.trace(b.formatMessage.apply(void 0,arguments))}function v(e,n){return!!e.traceResolution&&void 0!==n.trace}function T(e,n){return n&&{path:n.path,extension:n.ext,packageId:e}}function S(e){return T(void 0,e)}function u(e){if(e)return b.Debug.assert(void 0===e.packageId),{path:e.path,ext:e.extension}}var y,e,r;function d(e){if(e)return b.Debug.assert(b.extensionIsTS(e.extension)),{fileName:e.path,packageId:e.packageId}}function h(e,n,t){return{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:n,packageId:e.packageId},failedLookupLocations:t}}function s(e,n,t,r){if(b.hasProperty(e,n)){var a=e[n];if(typeof a===t&&null!==a)return a;r.traceEnabled&&E(r.host,b.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,t,null===a?"null":typeof a)}else r.traceEnabled&&E(r.host,b.Diagnostics.package_json_does_not_have_a_0_field,n)}function a(e,n,t,r){var a=s(e,n,"string",r);if(void 0!==a){var i=b.normalizePath(b.combinePaths(t,a));return r.traceEnabled&&E(r.host,b.Diagnostics.package_json_has_0_field_1_that_references_2,n,a,i),i}}function f(e,n,t){return a(e,"typings",n,t)||a(e,"types",n,t)}function _(e,n,t){return a(e,"main",n,t)}function g(e,n){var t=function(e,n){var t=s(e,"typesVersions","object",n);if(void 0!==t)return n.traceEnabled&&E(n.host,b.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),t}(e,n);if(void 0!==t){if(n.traceEnabled)for(var r in t)b.hasProperty(t,r)&&!b.VersionRange.tryParse(r)&&E(n.host,b.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,r);var a=c(t);if(a){var i=a.version,o=a.paths;if("object"==typeof o)return a;n.traceEnabled&&E(n.host,b.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['"+i+"']","object",typeof o)}else n.traceEnabled&&E(n.host,b.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,b.versionMajorMinor)}}function c(e){for(var n in r||(r=new b.Version(b.version)),e)if(b.hasProperty(e,n)){var t=b.VersionRange.tryParse(n);if(void 0!==t&&t.test(r))return{version:n,paths:e[n]}}}function p(e,n){return e.typeRoots?e.typeRoots:(e.configFilePath?t=b.getDirectoryPath(e.configFilePath):n.getCurrentDirectory&&(t=n.getCurrentDirectory()),void 0!==t?(r=t,(a=n).directoryExists?(b.forEachAncestorDirectory(b.normalizePath(r),function(e){var n=b.combinePaths(e,o);a.directoryExists(n)&&(i||(i=[])).push(n)}),i):[b.combinePaths(r,o)]):void 0);var t,r,a,i}b.trace=E,b.isTraceEnabled=v,(e=y||(y={}))[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.DtsOnly=3]="DtsOnly",b.getPackageJsonTypesVersionsPaths=c,b.getEffectiveTypeRoots=p;var o=b.combinePaths("node_modules","@types");function t(r,t,c,l){return{getOrCreateCacheForDirectory:function(e){var n=b.toPath(e,c,l),t=r.get(n);t||(t=b.createMap(),r.set(n,t));return t},getOrCreateCacheForModuleName:function(e){b.Debug.assert(!b.isExternalModuleNameRelative(e));var n=t.get(e);n||(s=b.createMap(),n={get:function(e){return s.get(b.toPath(e,c,l))},set:function(e,n){var t=b.toPath(e,c,l);if(!s.has(t)){s.set(t,n);for(var r=n.resolvedModule&&(n.resolvedModule.originalPath||n.resolvedModule.resolvedFileName),a=r&&function(e,n){for(var t=b.toPath(b.getDirectoryPath(n),c,l),r=0,a=Math.min(e.length,t.length);r<a&&e.charCodeAt(r)===t.charCodeAt(r);)r++;if(r===e.length&&(t.length===r||t[r]===b.directorySeparator))return e;var i=b.getRootLength(e);if(!(r<i)){var o=e.lastIndexOf(b.directorySeparator,r-1);return-1!==o?e.substr(0,Math.max(o,i)):void 0}}(t,r),i=t;i!==a;){var o=b.getDirectoryPath(i);if(o===i||s.has(o))break;s.set(o,n),i=o}}}},t.set(e,n));var s;return n}}}function x(e,n,t,r,a){return b.isExternalModuleNameRelative(n)?function(e,n,t,r,a){if(!a.compilerOptions.rootDirs)return;a.traceEnabled&&E(a.host,b.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var i,o,s=b.normalizePath(b.combinePaths(t,n)),c=0,l=a.compilerOptions.rootDirs;c<l.length;c++){var u=l[c],d=b.normalizePath(u);b.endsWith(d,b.directorySeparator)||(d+=b.directorySeparator);var p=b.startsWith(s,d)&&(void 0===o||o.length<d.length);a.traceEnabled&&E(a.host,b.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,d,s,p),p&&(o=d,i=u)}if(o){a.traceEnabled&&E(a.host,b.Diagnostics.Longest_matching_prefix_for_0_is_1,s,o);var m=s.substr(o.length);a.traceEnabled&&E(a.host,b.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,o,s);var f=r(e,s,!b.directoryProbablyExists(t,a.host),a);if(f)return f;a.traceEnabled&&E(a.host,b.Diagnostics.Trying_other_entries_in_rootDirs);for(var _=0,g=a.compilerOptions.rootDirs;_<g.length;_++){var u=g[_];if(u!==i){var v=b.combinePaths(b.normalizePath(u),m);a.traceEnabled&&E(a.host,b.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,u,v);var y=b.getDirectoryPath(v),h=r(e,v,!b.directoryProbablyExists(y,a.host),a);if(h)return h}}a.traceEnabled&&E(a.host,b.Diagnostics.Module_resolution_using_rootDirs_has_failed)}return}(e,n,t,r,a):function(e,n,t,r){var a=r.compilerOptions,i=a.baseUrl,o=a.paths;if(!i)return;r.traceEnabled&&E(r.host,b.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,n);if(o){r.traceEnabled&&E(r.host,b.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n);var s=K(e,n,i,o,t,!1,r);if(s)return s.value}var c=b.normalizePath(b.combinePaths(i,n));r.traceEnabled&&E(r.host,b.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,n,i,c);return t(e,c,!b.directoryProbablyExists(b.getDirectoryPath(c),r.host),r)}(e,n,r,a)}function l(e,n,t){return i(e,n,{moduleResolution:b.ModuleResolutionKind.NodeJs,allowJs:!0},t,void 0,!0)}function m(e,n,t,r,a){return i(e,b.getDirectoryPath(n),t,r,a,!1)}function i(u,d,p,m,f,e){var _=v(p,m),n=[],g={compilerOptions:p,host:m,traceEnabled:_,failedLookupLocations:n},t=e?a(y.JavaScript):a(y.TypeScript)||a(y.JavaScript)||(p.resolveJsonModule?a(y.Json):void 0);if(t&&t.value){var r=t.value;return h(r.resolved,r.isExternalLibraryImport,n)}return{resolvedModule:void 0,failedLookupLocations:n};function a(e){var n=x(e,u,d,function(e,n,t,r){return D(e,n,t,r,!0)},g);if(n)return z({resolved:n,isExternalLibraryImport:b.stringContains(n.path,b.nodeModulesPathPart)});if(b.isExternalModuleNameRelative(u)){var t=b.normalizePathAndParts(b.combinePaths(d,u)),r=t.path,a=t.parts,i=D(e,r,!1,g,!0);return i&&z({resolved:i,isExternalLibraryImport:b.contains(a,"node_modules")})}_&&E(m,b.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,u,y[e]);var o=F(e,u,d,g,f);if(o){var s=o.value;if(!p.preserveSymlinks&&s&&!s.originalPath){var c=C(s.path,m,_),l=c===s.path?void 0:s.path;s=__assign({},s,{path:c,originalPath:l})}return{value:s&&{resolved:s,isExternalLibraryImport:!0}}}}}function C(e,n,t){if(!n.realpath)return e;var r=b.normalizePath(n.realpath(e));return t&&E(n,b.Diagnostics.Resolving_real_path_for_0_result_1,e,r),b.Debug.assert(n.fileExists(r),e+" linked to nonexistent file "+r),r}function D(e,n,t,r,a){if(r.traceEnabled&&E(r.host,b.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,n,y[e]),!b.hasTrailingDirectorySeparator(n)){if(!t){var i=b.getDirectoryPath(n);b.directoryProbablyExists(i,r.host)||(r.traceEnabled&&E(r.host,b.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),t=!0)}var o=N(e,n,t,r);if(o){var s=a?function(e){var n=b.normalizePath(e.path),t=n.lastIndexOf(b.nodeModulesPathPart);if(-1===t)return;var r=t+b.nodeModulesPathPart.length,a=A(n,r);64===n.charCodeAt(r)&&(a=A(n,a));var i=n.slice(0,a),o=b.removeExtension(n.slice(a+1),e.ext)+".d.ts";return{packageDirectory:i,subModuleName:o}}(o):void 0,c=s&&P(s.packageDirectory,s.subModuleName,!1,r);return T(c&&c.packageId,o)}}t||(b.directoryProbablyExists(n,r.host)||(r.traceEnabled&&E(r.host,b.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,n),t=!0));return O(e,n,t,r,a)}function A(e,n){var t=e.indexOf(b.directorySeparator,n+1);return-1===t?n:t}function L(e){return""===e?"index.d.ts":b.endsWith(e,".d.ts")?e:"index"===e||b.endsWith(e,"/index")?e+".d.ts":e+"/index.d.ts"}function k(e,n,t,r){return S(N(e,n,t,r))}function N(e,n,t,r){if(e===y.Json){var a=b.tryRemoveExtension(n,".json");return void 0===a?void 0:I(a,e,t,r)}var i=I(n,e,t,r);if(i)return i;if(b.hasJSFileExtension(n)){var o=b.removeFileExtension(n);if(r.traceEnabled){var s=n.substring(o.length);E(r.host,b.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,s)}return I(o,e,t,r)}}function I(t,e,r,a){if(!r){var n=b.getDirectoryPath(t);n&&(r=!b.directoryProbablyExists(n,a.host))}switch(e){case y.DtsOnly:return i(".d.ts");case y.TypeScript:return i(".ts")||i(".tsx")||i(".d.ts");case y.JavaScript:return i(".js")||i(".jsx");case y.Json:return i(".json")}function i(e){var n=M(t+e,r,a);return void 0===n?void 0:{path:n,ext:e}}}function M(e,n,t){if(!n){if(t.host.fileExists(e))return t.traceEnabled&&E(t.host,b.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,e),e;t.traceEnabled&&E(t.host,b.Diagnostics.File_0_does_not_exist,e)}t.failedLookupLocations.push(e)}function O(e,n,t,r,a){void 0===a&&(a=!0);var i=a?P(n,"",t,r):void 0,o=i&&i.packageId,s=i&&i.packageJsonContent;return T(o,w(e,n,t,r,s,s&&g(s,r)))}function w(e,n,t,r,a,i){var o=a&&function(e,n,t,r,a){var i=t!==y.JavaScript&&t!==y.Json?f(e,r,a):_(e,r,a);if(!i){if(t!==y.TypeScript)return;if(!(i=_(e,r,a)))return}var o=function(e,n,t,r){var a,i,o,s=M(n,t,r);if(s){var c=(a=e,i=s,void 0!==(o=b.tryGetExtensionFromPath(i))&&function(e,n){switch(e){case y.JavaScript:return".js"===n||".jsx"===n;case y.Json:return".json"===n;case y.TypeScript:return".ts"===n||".tsx"===n||".d.ts"===n;case y.DtsOnly:return".d.ts"===n}}(a,o)?{path:i,ext:o}:void 0);if(c)return S(c);r.traceEnabled&&E(r.host,b.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}var l=e===y.DtsOnly?y.TypeScript:e;return D(l,n,t,r,!1)},s=!b.directoryProbablyExists(b.getDirectoryPath(i),a.host);if(n&&b.containsPath(r,i)){var c=b.getRelativePathFromDirectory(r,i,!1);a.traceEnabled&&E(a.host,b.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,n.version,b.version,c);var l=K(t,c,r,n.paths,o,s,a);if(l)return u(l.value)}return u(o(t,i,s,a))}(a,i,e,n,r);if(o)return o;var s=!t&&b.directoryProbablyExists(n,r.host);return N(e,b.combinePaths(n,"index"),!s,r)}function P(e,n,t,r){var a=r.host,i=r.traceEnabled,o=!t&&b.directoryProbablyExists(e,a),s=b.combinePaths(e,"package.json");if(o&&a.fileExists(s)){var c=b.readJson(s,a);if(""===n){var l=f(c,e,r);if("string"==typeof l)n=L(l.substring(e.length+1));else{var u=_(c,e,r);if("string"==typeof u&&u.length>e.length){var d=u.substring(e.length+1);n=(b.forEach(b.supportedJSExtensions,function(e){return b.tryRemoveExtension(d,e)})||d)+".d.ts"}else n="index.d.ts"}}b.endsWith(n,".d.ts")||(n=L(n));var p=g(c,r),m="string"==typeof c.name&&"string"==typeof c.version?{name:c.name,subModuleName:n,version:c.version}:void 0;return i&&(m?E(a,b.Diagnostics.Found_package_json_at_0_Package_ID_is_1,s,b.packageIdToString(m)):E(a,b.Diagnostics.Found_package_json_at_0,s)),{packageJsonContent:c,packageId:m,versionPaths:p}}o&&i&&E(a,b.Diagnostics.File_0_does_not_exist,s),r.failedLookupLocations.push(s)}function R(e){var n=e.indexOf(b.directorySeparator);return"@"===e[0]&&(n=e.indexOf(b.directorySeparator,n+1)),-1===n?{packageName:e,rest:""}:{packageName:e.slice(0,n),rest:e.slice(n+1)}}function F(e,n,t,r,a){return G(e,n,t,r,!1,a)}function G(t,r,e,a,i,n){var o=n&&n.getOrCreateCacheForModuleName(r);return b.forEachAncestorDirectory(b.normalizeSlashes(e),function(e){if("node_modules"!==b.getBaseFileName(e)){var n=W(o,r,e,a);return n||z(V(t,r,e,a,i))}})}function V(e,n,t,r,a){var i=b.combinePaths(t,"node_modules"),o=b.directoryProbablyExists(i,r.host);!o&&r.traceEnabled&&E(r.host,b.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i);var s=a?void 0:B(e,n,i,o,r);if(s)return s;if(e!==y.JavaScript&&e!==y.Json){var c=b.combinePaths(i,"@types"),l=o;return o&&!b.directoryProbablyExists(c,r.host)&&(r.traceEnabled&&E(r.host,b.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),l=!1),B(y.DtsOnly,function(e,n){var t=H(e);n.traceEnabled&&t!==e&&E(n.host,b.Diagnostics.Scoped_package_detected_looking_in_0,t);return t}(n,r),c,l,r)}}function B(e,n,t,r,a){var i,o,s,c=b.normalizePath(b.combinePaths(t,n)),l=P(c,"",!r,a);if(l){i=l.packageJsonContent,o=l.packageId,s=l.versionPaths;var u=N(e,c,!r,a);if(u)return S(u);var d=w(e,c,!r,a,i,s);return T(o,d)}var p=function(e,n,t,r){var a=N(e,n,t,r)||w(e,n,t,r,i,s);return T(o,a)},m=R(n),f=m.packageName,_=m.rest;if(""!==_){var g=b.combinePaths(t,f),v=P(g,_,!r,a);if(v&&(o=v.packageId,s=v.versionPaths),s){a.traceEnabled&&E(a.host,b.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,b.version,_);var y=r&&b.directoryProbablyExists(g,a.host),h=K(e,_,g,s.paths,p,!y,a);if(h)return h.value}}return p(e,c,!r,a)}function K(i,e,o,n,s,c,l){var t=b.matchPatternOrExact(b.getOwnKeys(n),e);if(t){var u=b.isString(t)?void 0:b.matchedText(t,e),r=b.isString(t)?t:b.patternText(t);return l.traceEnabled&&E(l.host,b.Diagnostics.Module_name_0_matched_pattern_1,e,r),{value:b.forEach(n[r],function(e){var n=u?e.replace("*",u):e,t=b.normalizePath(b.combinePaths(o,n));l.traceEnabled&&E(l.host,b.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,e,n);var r=b.tryGetExtensionFromPath(t);if(void 0!==r){var a=M(t,c,l);if(void 0!==a)return S({path:a,ext:r})}return s(i,t,c||!b.directoryProbablyExists(b.getDirectoryPath(t),l.host),l)})}}}b.resolveTypeReferenceDirective=function(a,r,e,i){var o=v(e,i),n=[],s={compilerOptions:e,host:i,traceEnabled:o,failedLookupLocations:n},t=p(e,i);o&&(void 0===r?void 0===t?E(i,b.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,a):E(i,b.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,a,t):void 0===t?E(i,b.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,a,r):E(i,b.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,a,r,t));var c,l=function(){if(t&&t.length)return o&&E(i,b.Diagnostics.Resolving_with_primary_search_path_0,t.join(", ")),b.forEach(t,function(e){var n=b.combinePaths(e,a),t=b.getDirectoryPath(n),r=b.directoryProbablyExists(t,i);return!r&&o&&E(i,b.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),d(O(y.DtsOnly,n,!r,s))});o&&E(i,b.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),u=!0;return l||(l=function(){var e=r&&b.getDirectoryPath(r);if(void 0!==e){o&&E(i,b.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,e);var n=F(y.DtsOnly,a,e,s,void 0),t=d(n&&n.value);return!t&&o&&E(i,b.Diagnostics.Type_reference_directive_0_was_not_resolved,a),t}o&&E(i,b.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),u=!1),l&&(e.preserveSymlinks||(l=__assign({},l,{fileName:C(l.fileName,i,o)})),o&&E(i,b.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,a,l.fileName,u),c={primary:u,resolvedFileName:l.fileName,packageId:l.packageId}),{resolvedTypeReferenceDirective:c,failedLookupLocations:n}},b.getAutomaticTypeDirectiveNames=function(e,n){if(e.types)return e.types;var t=[];if(n.directoryExists&&n.getDirectories){var r=p(e,n);if(r)for(var a=0,i=r;a<i.length;a++){var o=i[a];if(n.directoryExists(o))for(var s=0,c=n.getDirectories(o);s<c.length;s++){var l=c[s],u=b.normalizePath(l),d=b.combinePaths(o,u,"package.json");n.fileExists(d)&&null===b.readJson(d,n).typings||t.push(b.getBaseFileName(u))}}}return t},b.createModuleResolutionCache=function(e,n){return t(b.createMap(),b.createMap(),e,n)},b.createModuleResolutionCacheWithMaps=t,b.resolveModuleNameFromCache=function(e,n,t){var r=b.getDirectoryPath(n),a=t&&t.getOrCreateCacheForDirectory(r);return a&&a.get(e)},b.resolveModuleName=function(e,n,t,r,a){var i=v(t,r);i&&E(r,b.Diagnostics.Resolving_module_0_from_1,e,n);var o=b.getDirectoryPath(n),s=a&&a.getOrCreateCacheForDirectory(o),c=s&&s.get(e);if(c)i&&E(r,b.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,e,o);else{var l=t.moduleResolution;switch(void 0===l?(l=b.getEmitModuleKind(t)===b.ModuleKind.CommonJS?b.ModuleResolutionKind.NodeJs:b.ModuleResolutionKind.Classic,i&&E(r,b.Diagnostics.Module_resolution_kind_is_not_specified_using_0,b.ModuleResolutionKind[l])):i&&E(r,b.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,b.ModuleResolutionKind[l]),l){case b.ModuleResolutionKind.NodeJs:c=m(e,n,t,r,a);break;case b.ModuleResolutionKind.Classic:c=q(e,n,t,r,a);break;default:return b.Debug.fail("Unexpected moduleResolution: "+l)}s&&(s.set(e,c),b.isExternalModuleNameRelative(e)||a.getOrCreateCacheForModuleName(e).set(o,c))}return i&&(c.resolvedModule?E(r,b.Diagnostics.Module_name_0_was_successfully_resolved_to_1,e,c.resolvedModule.resolvedFileName):E(r,b.Diagnostics.Module_name_0_was_not_resolved,e)),c},b.resolveJSModule=function(e,n,t){var r=l(e,n,t),a=r.resolvedModule,i=r.failedLookupLocations;if(!a)throw new Error("Could not resolve JS module '"+e+"' starting at '"+n+"'. Looked in: "+i.join(", "));return a.resolvedFileName},b.tryResolveJSModule=function(e,n,t){var r=l(e,n,t).resolvedModule;return r&&r.resolvedFileName},b.nodeModuleNameResolver=m,b.nodeModulesPathPart="/node_modules/",b.parsePackageName=R;var j="__";function H(e){if(b.startsWith(e,"@")){var n=e.replace(b.directorySeparator,j);if(n!==e)return n.slice(1)}return e}function U(e){return b.stringContains(e,j)?"@"+e.replace(j,b.directorySeparator):e}function W(e,n,t,r){var a,i=e&&e.get(t);if(i)return r.traceEnabled&&E(r.host,b.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,t),(a=r.failedLookupLocations).push.apply(a,i.failedLookupLocations),{value:i.resolvedModule&&{path:i.resolvedModule.resolvedFileName,originalPath:i.resolvedModule.originalPath||!0,extension:i.resolvedModule.extension,packageId:i.resolvedModule.packageId}}}function q(c,e,n,t,l){var r=[],u={compilerOptions:n,host:t,traceEnabled:v(n,t),failedLookupLocations:r},d=b.getDirectoryPath(e),a=i(y.TypeScript)||i(y.JavaScript);return h(a&&a.value,!1,r);function i(r){var e=x(r,c,d,k,u);if(e)return{value:e};if(b.isExternalModuleNameRelative(c)){var n=b.normalizePath(b.combinePaths(d,c));return z(k(r,n,!1,u))}var t,a,i,o=l&&l.getOrCreateCacheForModuleName(c),s=b.forEachAncestorDirectory(d,function(e){var n=W(o,c,e,u);if(n)return n;var t=b.normalizePath(b.combinePaths(e,c));return z(k(r,t,!1,u))});return s||(r===y.TypeScript?(t=c,a=d,i=u,G(y.DtsOnly,t,a,i,!0,void 0)):void 0)}}function z(e){return void 0!==e?{value:e}:void 0}b.getTypesPackageName=function(e){return"@types/"+H(e)},b.mangleScopedPackageName=H,b.getPackageNameFromTypesPackageName=function(e){var n=b.removePrefix(e,"@types/");return n!==e?U(n):e},b.unmangleScopedPackageName=U,b.classicNameResolver=q,b.loadModuleFromGlobalCache=function(e,n,t,r,a){var i=v(t,r);i&&E(r,b.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,n,e,a);var o=[],s={compilerOptions:t,host:r,traceEnabled:i,failedLookupLocations:o};return h(V(y.DtsOnly,e,a,s,!1),!0,o)}}(ts||(ts={})),function(Ge){var e,n,t;function Ve(e){return e.body?function t(e){switch(e.kind){case 239:case 240:return 0;case 241:if(Ge.isEnumConst(e))return 2;break;case 247:case 246:if(!Ge.hasModifier(e,1))return 0;break;case 243:var r=0;return Ge.forEachChild(e,function(e){var n=t(e);switch(n){case 0:return;case 2:return void(r=2);case 1:return r=1,!0;default:Ge.Debug.assertNever(n)}}),r;case 242:return Ve(e);case 71:if(e.isInJSDocNamespace)return 0}return 1}(e.body):1}(e=Ge.ModuleInstanceState||(Ge.ModuleInstanceState={}))[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",Ge.getModuleInstanceState=Ve,(t=n||(n={}))[t.None=0]="None",t[t.IsContainer=1]="IsContainer",t[t.IsBlockScopedContainer=2]="IsBlockScopedContainer",t[t.IsControlFlowContainer=4]="IsControlFlowContainer",t[t.IsFunctionLike=8]="IsFunctionLike",t[t.IsFunctionExpression=16]="IsFunctionExpression",t[t.HasLocals=32]="HasLocals",t[t.IsInterface=64]="IsInterface",t[t.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod";var r=function(){var b,L,t,E,T,p,S,l,x,C,k,N,I,M,O,w,P,R,F,D,A,r,G,s,a=0,V={flags:1},B={flags:1},K=0;function j(e,n,t,r,a){return Ge.createDiagnosticForNodeInSourceFile(Ge.getSourceFileOfNode(e)||b,e,n,t,r,a)}return function(e,n){b=e,L=n,t=Ge.getEmitScriptTarget(L),A=i(b,n),G=Ge.createUnderscoreEscapedMap(),a=0,s=b.isDeclarationFile,r=Ge.objectAllocator.getSymbolConstructor(),b.locals||(Se(b),b.symbolCount=a,b.classifiableNames=G,h());b=void 0,L=void 0,t=void 0,E=void 0,T=void 0,p=void 0,S=void 0,l=void 0,x=void 0,C=!1,k=void 0,N=void 0,I=void 0,M=void 0,O=void 0,w=void 0,R=void 0,F=!1,K=D=0};function i(e,n){return!(!Ge.getStrictOptionValue(n,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}function H(e,n){return a++,new r(e,n)}function U(e,n,t){e.flags|=t,(n.symbol=e).declarations=Ge.append(e.declarations,n),1955&t&&!e.exports&&(e.exports=Ge.createSymbolTable()),6240&t&&!e.members&&(e.members=Ge.createSymbolTable()),67220415&t&&W(e,n)}function W(e,n){var t=e.valueDeclaration;(!t||Ge.isAssignmentDeclaration(t)&&!Ge.isAssignmentDeclaration(n)||t.kind!==n.kind&&Ge.isEffectiveModuleDeclaration(t))&&(e.valueDeclaration=n)}function q(e){if(252===e.kind)return e.isExportEquals?"export=":"default";var n=Ge.getNameOfDeclaration(e);if(n){if(Ge.isAmbientModule(e)){var t=Ge.getTextOfIdentifierOrLiteral(n);return Ge.isGlobalScopeAugmentation(e)?"__global":'"'+t+'"'}if(147!==n.kind)return Ge.isPropertyNameLiteral(n)?Ge.getEscapedTextOfIdentifierOrLiteral(n):void 0;var r=n.expression;return Ge.isStringOrNumericLiteralLike(r)?Ge.escapeLeadingUnderscores(r.text):(Ge.Debug.assert(Ge.isWellKnownSymbolSyntactically(r)),Ge.getPropertyNameForKnownSymbolName(Ge.idText(r.name)))}switch(e.kind){case 155:return"__constructor";case 163:case 158:case 291:return"__call";case 164:case 159:return"__new";case 160:return"__index";case 253:return"__export";case 277:return"export=";case 202:if(2===Ge.getAssignmentDeclarationKind(e))return"export=";Ge.Debug.fail("Unknown binary declaration kind");break;case 287:return Ge.isJSDocConstructSignature(e)?"__new":"__call";case 149:Ge.Debug.assert(287===e.parent.kind,"Impossible parameter parent kind",function(){return"parent is: "+(Ge.SyntaxKind?Ge.SyntaxKind[e.parent.kind]:e.parent.kind)+", expected JSDocFunctionType"});var a=e.parent,i=a.parameters.indexOf(e);return"arg"+i}}function z(e,n,t,r,a,i){Ge.Debug.assert(!Ge.hasDynamicName(t));var o,s=Ge.hasModifier(t,512),c=s&&n?"default":q(t);if(void 0===c)o=H(0,"__missing");else if(o=e.get(c),2885600&r&&G.set(c,!0),o){if(i&&!o.isReplaceableByMethod)return o;if(o.flags&a)if(o.isReplaceableByMethod)e.set(c,o=H(0,c));else if(!(3&r&&67108864&o.flags)){Ge.isNamedDeclaration(t)&&(t.name.parent=t);var l=2&o.flags?Ge.Diagnostics.Cannot_redeclare_block_scoped_variable_0:Ge.Diagnostics.Duplicate_identifier_0,u=!0;(384&o.flags||384&r)&&(l=Ge.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,u=!1),o.declarations&&o.declarations.length&&(s?(l=Ge.Diagnostics.A_module_cannot_have_multiple_default_exports,u=!1):o.declarations&&o.declarations.length&&252===t.kind&&!t.isExportEquals&&(l=Ge.Diagnostics.A_module_cannot_have_multiple_default_exports,u=!1));var d=function(e){var n;b.bindDiagnostics.push(j(Ge.getNameOfDeclaration(e)||e,l,u?(n=e,Ge.isNamedDeclaration(n)?Ge.declarationNameToString(n.name):Ge.unescapeLeadingUnderscores(Ge.Debug.assertDefined(q(n)))):void 0))};Ge.forEach(o.declarations,d),d(t),o=H(0,c)}}else e.set(c,o=H(0,c)),i&&(o.isReplaceableByMethod=!0);return U(o,t,r),o.parent?Ge.Debug.assert(o.parent===n,"Existing symbol parent should match new one"):o.parent=n,o}function u(e,n,t){var r=1&Ge.getCombinedModifierFlags(e);if(2097152&n)return 255===e.kind||246===e.kind&&r?z(T.symbol.exports,T.symbol,e,n,t):z(T.locals,void 0,e,n,t);if(Ge.isJSDocTypeAlias(e)&&Ge.Debug.assert(Ge.isInJSFile(e)),!Ge.isAmbientModule(e)&&(r||32&T.flags)||Ge.isJSDocTypeAlias(e)){if(Ge.hasModifier(e,512)&&!q(e))return z(T.symbol.exports,T.symbol,e,n,t);var a=67220415&n?1048576:0,i=z(T.locals,void 0,e,a,t);return i.exportSymbol=z(T.symbol.exports,T.symbol,e,n,t),e.localSymbol=i}return z(T.locals,void 0,e,n,t)}function m(e){if(s)o(e);else if(536870912&e.transformFlags)s=!0,o(e),s=!1,K|=e.transformFlags&~We(e.kind);else{var n=K;K=0,o(e),K=n|Ue(e,K)}}function J(e){X(e,function(e){return 237===e.kind?Se(e):void 0}),X(e,function(e){return 237!==e.kind?Se(e):void 0})}function X(e,n){if(void 0===n&&(n=Se),void 0!==e)if(s)Ge.forEach(e,n);else{for(var t=K,r=K=0,a=0,i=e;a<i.length;a++){var o=i[a];n(o),r|=-536870913&o.transformFlags}e.transformFlags=536870912|r,K|=t}}function Y(e){Ge.forEachChild(e,Se,X)}function o(e){if(function(e){if(!(1&k.flags))return!1;if(k===V){var n=Ge.isStatementButNotDeclaration(e)&&218!==e.kind||238===e.kind||242===e.kind&&(1===(r=Ve(e))||2===r&&!!L.preserveConstEnums);if(n&&(k=B,!L.allowUnreachableCode)){var t=Ge.unreachableCodeIsError(L)&&!(4194304&e.flags)&&(!Ge.isVariableStatement(e)||!!(3&Ge.getCombinedNodeFlags(e.declarationList))||e.declarationList.declarations.some(function(e){return!!e.initializer}));!function(e,t){if(Ge.isStatement(e)&&Be(e)&&Ge.isBlock(e.parent)){var n=e.parent.statements,r=Ge.sliceAfter(n,e);Ge.getRangesWhere(r,Be,function(e,n){return t(r[e],r[n-1])})}else t(e,e)}(e,function(e,n){return Te(t,e,n,Ge.Diagnostics.Unreachable_code_detected)})}}var r;return!0}(e))return Y(e),void xe(e);switch(e.kind){case 222:x=e,C=ee(),D=$(),A=$(),ne(C,k),k=C,se(x.expression,D,A),k=ie(D),ce(x.statement,A,C),ne(C,k),k=ie(A);break;case 221:h=e,b=ee(),E=231===h.parent.kind?Ge.lastOrUndefined(R):void 0,T=E?E.continueTarget:$(),S=E?E.breakTarget:$(),ne(b,k),k=b,ce(h.statement,S,T),ne(T,k),k=ie(T),se(h.expression,b,S),k=ie(S);break;case 223:_=e,g=ee(),v=$(),y=$(),Se(_.initializer),ne(g,k),k=g,se(_.condition,v,y),k=ie(v),ce(_.statement,y,g),Se(_.incrementor),ne(g,k),k=ie(y);break;case 224:case 225:!function(e){var n=ee(),t=$();ne(n,k),k=n,225===e.kind&&Se(e.awaitModifier);Se(e.expression),ne(t,k),Se(e.initializer),236!==e.initializer.kind&&ue(e.initializer);ce(e.statement,t,n),ne(n,k),k=ie(t)}(e);break;case 220:d=e,p=$(),m=$(),f=$(),se(d.expression,p,m),k=ie(p),Se(d.thenStatement),ne(f,k),k=ie(m),Se(d.elseStatement),ne(f,k),k=ie(f);break;case 228:case 232:!function(e){Se(e.expression),228===e.kind&&(F=!0,M&&ne(M,k));k=V}(e);break;case 227:case 226:!function(e){if(Se(e.label),e.label){var n=function(e){if(R)for(var n=0,t=R;n<t.length;n++){var r=t[n];if(r.name===e)return r}return}(e.label.escapedText);n&&(n.referenced=!0,le(e,n.breakTarget,n.continueTarget))}else le(e,N,I)}(e);break;case 233:!function(e){var n=$(),t=k;Se(e.tryBlock),ne(n,k);var r=k,a=V;e.catchClause&&(k=t,Se(e.catchClause),ne(n,k),a=k);if(e.finallyBlock){var i={flags:2048,antecedent:t,lock:{}};if(ne(n,i),k=ie(n),Se(e.finallyBlock),1&k.flags||1&r.flags&&1&a.flags&&(k=r===B||a===B?B:V),!(1&k.flags)){var o={flags:4096,antecedent:k};i.lock=o,k=o}}else k=ie(n)}(e);break;case 230:!function(e){var n=$();Se(e.expression);var t=N,r=P;N=n,P=k,Se(e.caseBlock),ne(n,k);var a=Ge.forEach(e.caseBlock.clauses,function(e){return 270===e.kind});e.possiblyExhaustive=!a&&!n.antecedents,a||ne(n,te(P,e,0,0));N=t,P=r,k=ie(n)}(e);break;case 244:!function(e){var n=K;K=0;for(var t=e.clauses,r=V,a=0;a<t.length;a++){for(var i=a;!t[a].statements.length&&a+1<t.length;)Se(t[a]),a++;var o=$();ne(o,te(P,e.parent,i,a+1)),ne(o,te(P,e.parent,i,a+1)),ne(o,r),k=ie(o);var s=t[a];Se(s),1&(r=k).flags||a===t.length-1||!L.noFallthroughCasesInSwitch||Ee(s,Ge.Diagnostics.Fallthrough_case_in_switch)}t.transformFlags=536870912|K,K|=n}(e);break;case 269:u=k,k=P,Se((l=e).expression),k=u,X(l.statements);break;case 231:!function(e){var n=ee(),t=$();Se(e.label),ne(n,k);var r=(a=e.label.escapedText,i=t,o=n,s={name:a,breakTarget:i,continueTarget:o,referenced:!1},(R||(R=[])).push(s),s);var a,i,o,s;Se(e.statement),R.pop(),r.referenced||L.allowUnusedLabels||(c=Ge.unusedLabelIsError(L),l=e.label,u=Ge.Diagnostics.Unused_label,Te(c,l,l,u));var c,l,u;e.statement&&221===e.statement.kind||(ne(t,k),k=ie(t))}(e);break;case 200:!function(e){if(51===e.operator){var n=O;O=w,w=n,Y(e),w=O,O=n}else Y(e),43!==e.operator&&44!==e.operator||ue(e.operand)}(e);break;case 201:Y(c=e),(43===c.operator||44===c.operator)&&ue(c.operand);break;case 202:!function(e){var n=e.operatorToken.kind;if(53===n||54===n)if(function(e){for(;193===e.parent.kind||200===e.parent.kind&&51===e.parent.operator;)e=e.parent;return!function(e){var n=e.parent;switch(n.kind){case 220:case 222:case 221:return n.expression===e;case 223:case 203:return n.condition===e}return!1}(e)&&!oe(e.parent)}(e)){var t=$();de(e,t,t),k=ie(t)}else de(e,O,w);else if(Y(e),Ge.isAssignmentOperator(n)&&!Ge.isAssignmentTarget(e)&&(ue(e.left),58===n&&188===e.left.kind)){var r=e.left;Z(r.expression)&&(k=ae(k,e))}}(e);break;case 196:Y(s=e),187===s.expression.kind&&ue(s.expression);break;case 203:r=e,a=$(),i=$(),o=$(),se(r.condition,a,i),k=ie(a),Se(r.questionToken),Se(r.whenTrue),ne(o,k),k=ie(i),Se(r.colonToken),Se(r.whenFalse),ne(o,k),k=ie(o);break;case 235:Y(t=e),(t.initializer||Ge.isForInOrOfStatement(t.parent.parent))&&function e(n){var t=Ge.isOmittedExpression(n)?void 0:n.name;if(Ge.isBindingPattern(t))for(var r=0,a=t.elements;r<a.length;r++){var i=a[r];e(i)}else k=re(k,n)}(t);break;case 189:!function(e){var n=e.expression;for(;193===n.kind;)n=n.expression;194===n.kind||195===n.kind?(X(e.typeArguments),X(e.arguments),Se(e.expression)):Y(e);if(187===e.expression.kind){var t=e.expression;Z(t.expression)&&Ge.isPushOrUnshiftIdentifier(t.name)&&(k=ae(k,e))}}(e);break;case 302:case 295:(n=e).fullName&&qe(n,n.fullName);break;case 277:J(e.statements),Se(e.endOfFileToken);break;case 216:case 243:J(e.statements);break;default:Y(e)}var n,t,r,a,i,o,s,c,l,u,d,p,m,f,_,g,v,y,h,b,E,T,S,x,C,D,A;xe(e)}function c(e){switch(e.kind){case 71:case 99:case 187:case 188:return Q(e);case 189:return function(e){if(e.arguments)for(var n=0,t=e.arguments;n<t.length;n++){var r=t[n];if(Q(r))return!0}if(187===e.expression.kind&&Q(e.expression.expression))return!0;return!1}(e);case 193:return c(e.expression);case 202:return function(e){switch(e.operatorToken.kind){case 58:return Q(e.left);case 32:case 33:case 34:case 35:return Z(e.left)||Z(e.right)||d(e.right,e.left)||d(e.left,e.right);case 93:return Z(e.left);case 92:return n=e.left,t=e.right,Ge.isStringLiteralLike(n)&&c(t);case 26:return c(e.right)}var n,t;return!1}(e);case 200:return 51===e.operator&&c(e.operand);case 197:return c(e.expression)}return!1}function Q(e){return 71===e.kind||99===e.kind||97===e.kind||Ge.isPropertyAccessExpression(e)&&Q(e.expression)||Ge.isElementAccessExpression(e)&&e.argumentExpression&&(Ge.isStringLiteral(e.argumentExpression)||Ge.isNumericLiteral(e.argumentExpression))&&Q(e.expression)}function d(e,n){return Ge.isTypeOfExpression(e)&&Z(e.expression)&&Ge.isStringLiteralLike(n)}function Z(e){switch(e.kind){case 193:return Z(e.expression);case 202:switch(e.operatorToken.kind){case 58:return Z(e.left);case 26:return Z(e.right)}}return Q(e)}function $(){return{flags:4,antecedents:void 0}}function ee(){return{flags:8,antecedents:void 0}}function f(e){e.flags|=512&e.flags?1024:512}function ne(e,n){1&n.flags||Ge.contains(e.antecedents,n)||((e.antecedents||(e.antecedents=[])).push(n),f(n))}function _(e,n,t){return 1&n.flags?n:t?101===t.kind&&64&e||86===t.kind&&32&e?V:c(t)?(f(n),{flags:e,expression:t,antecedent:n}):n:32&e?n:V}function te(e,n,t,r){return c(n.expression)?(f(e),{flags:128,switchStatement:n,clauseStart:t,clauseEnd:r,antecedent:e}):e}function re(e,n){return f(e),{flags:16,antecedent:e,node:n}}function ae(e,n){f(e);var t={flags:256,antecedent:e,node:n};return t}function ie(e){var n=e.antecedents;return n?1===n.length?n[0]:e:V}function oe(e){for(;;)if(193===e.kind)e=e.expression;else{if(200!==e.kind||51!==e.operator)return 202===e.kind&&(53===e.operatorToken.kind||54===e.operatorToken.kind);e=e.operand}}function se(e,n,t){var r=O,a=w;O=n,w=t,Se(e),O=r,w=a,e&&oe(e)||(ne(n,_(32,k,e)),ne(t,_(64,k,e)))}function ce(e,n,t){var r=N,a=I;N=n,I=t,Se(e),N=r,I=a}function le(e,n,t){var r=227===e.kind?n:t;r&&(ne(r,k),k=V)}function g(e){202===e.kind&&58===e.operatorToken.kind?ue(e.left):ue(e)}function ue(e){if(Q(e))k=re(k,e);else if(185===e.kind)for(var n=0,t=e.elements;n<t.length;n++){var r=t[n];206===r.kind?ue(r.expression):g(r)}else if(186===e.kind)for(var a=0,i=e.properties;a<i.length;a++){var o=i[a];273===o.kind?g(o.initializer):274===o.kind?ue(o.name):275===o.kind&&ue(o.expression)}}function de(e,n,t){var r=$();53===e.operatorToken.kind?se(e.left,r,t):se(e.left,n,r),k=ie(r),Se(e.operatorToken),se(e.right,n,t)}function v(e){switch(e.kind){case 207:case 238:case 241:case 186:case 166:case 290:case 266:return 1;case 239:return 65;case 242:case 240:case 179:return 33;case 277:return 37;case 154:if(Ge.isObjectLiteralOrClassExpressionMethod(e))return 173;case 155:case 237:case 153:case 156:case 157:case 158:case 291:case 287:case 163:case 159:case 160:case 164:return 45;case 194:case 195:return 61;case 243:return 4;case 152:return e.initializer?4:0;case 272:case 223:case 224:case 225:case 244:return 2;case 216:return Ge.isFunctionLike(e.parent)?0:2}return 0}function y(e){l&&(l.nextContainer=e),l=e}function pe(e,n,t){switch(T.kind){case 242:return u(e,n,t);case 277:return o=e,s=n,c=t,Ge.isExternalModule(b)?u(o,s,c):z(b.locals,void 0,o,s,c);case 207:case 238:return r=e,a=n,i=t,Ge.hasModifier(r,32)?z(T.symbol.exports,T.symbol,r,a,i):z(T.symbol.members,T.symbol,r,a,i);case 241:return z(T.symbol.exports,T.symbol,e,n,t);case 166:case 290:case 186:case 239:case 266:return z(T.symbol.members,T.symbol,e,n,t);case 163:case 164:case 158:case 159:case 291:case 160:case 154:case 153:case 155:case 156:case 157:case 237:case 194:case 195:case 287:case 302:case 295:case 240:case 179:return z(T.locals,void 0,e,n,t)}var r,a,i,o,s,c}function me(e){4194304&e.flags&&!function(e){var n=277===e.kind?e:e.body;if(n&&(277===n.kind||243===n.kind))for(var t=0,r=n.statements;t<r.length;t++){var a=r[t];if(253===a.kind||252===a.kind)return!0}return!1}(e)?e.flags|=32:e.flags&=-33}function fe(e){var n=Ve(e),t=0!==n;return pe(e,t?512:1024,t?110735:0),n}function _e(e,n,t){var r=H(n,t);return 106508&n&&(r.parent=T.symbol),U(r,e,n),r}function ge(e,n,t){switch(S.kind){case 242:u(e,n,t);break;case 277:if(Ge.isExternalOrCommonJsModule(T)){u(e,n,t);break}default:S.locals||(S.locals=Ge.createSymbolTable(),y(S)),z(S.locals,void 0,e,n,t)}}function h(){if(x){for(var e=T,n=l,t=S,r=E,a=k,i=0,o=x;i<o.length;i++){var s=o[i],c=Ge.getJSDocHost(s);T=Ge.findAncestor(c.parent,function(e){return!!(1&v(e))})||b,S=Ge.getEnclosingBlockScopeContainer(c)||b,k={flags:2},Se((E=s).typeExpression),s.fullName&&71!==s.fullName.kind?Se(s.fullName):(E=s.parent,ge(s,524288,67897832))}T=e,l=n,S=t,E=r,k=a}}function ve(e){!(A&&108<=e.originalKeywordKind&&e.originalKeywordKind<=116)||Ge.isIdentifierName(e)||4194304&e.flags||b.parseDiagnostics.length||b.bindDiagnostics.push(j(e,function(e){if(Ge.getContainingClass(e))return Ge.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(b.externalModuleIndicator)return Ge.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return Ge.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(e),Ge.declarationNameToString(e)))}function ye(e,n){if(n&&71===n.kind){var t=n;if(a=t,Ge.isIdentifier(a)&&("eval"===a.escapedText||"arguments"===a.escapedText)){var r=Ge.getErrorSpanForNode(b,n);b.bindDiagnostics.push(Ge.createFileDiagnostic(b,r.start,r.length,function(e){if(Ge.getContainingClass(e))return Ge.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(b.externalModuleIndicator)return Ge.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return Ge.Diagnostics.Invalid_use_of_0_in_strict_mode}(e),Ge.idText(t)))}}var a}function he(e){A&&ye(e,e.name)}function be(e){if(t<2&&277!==S.kind&&242!==S.kind&&!Ge.isFunctionLike(S)){var n=Ge.getErrorSpanForNode(b,e);b.bindDiagnostics.push(Ge.createFileDiagnostic(b,n.start,n.length,function(e){if(Ge.getContainingClass(e))return Ge.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode;if(b.externalModuleIndicator)return Ge.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode;return Ge.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}(e)))}}function Ee(e,n,t,r,a){var i=Ge.getSpanOfTokenAtPosition(b,e.pos);b.bindDiagnostics.push(Ge.createFileDiagnostic(b,i.start,i.length,n,t,r,a))}function Te(e,n,t,r){var a,i,o,s;a=e,i={pos:Ge.getTokenPosOfNode(n,b),end:t.end},o=r,s=Ge.createFileDiagnostic(b,i.pos,i.end-i.pos,o),a?b.bindDiagnostics.push(s):b.bindSuggestionDiagnostics=Ge.append(b.bindSuggestionDiagnostics,__assign({},s,{category:Ge.DiagnosticCategory.Suggestion}))}function Se(e){if(e){e.parent=E;var n=A;if(function(e){switch(e.kind){case 71:if(e.isInJSDocNamespace){for(var n=e.parent;n&&!Ge.isJSDocTypeAlias(n);)n=n.parent;ge(n,524288,67897832);break}case 99:return k&&(Ge.isExpression(e)||274===E.kind)&&(e.flowNode=k),ve(e);case 187:case 188:k&&Q(e)&&(e.flowNode=k),Ge.isSpecialPropertyDeclaration(e)&&(99===(h=e).expression.kind?ke(h):Ge.isPropertyAccessEntityNameExpression(h)&&277===h.parent.parent.kind&&(Ge.isPrototypeAccess(h.expression)?Ne(h,h.parent):Ie(h))),Ge.isInJSFile(e)&&b.commonJsModuleIndicator&&Ge.isModuleExportsPropertyAccessExpression(e)&&!He(S,"module")&&z(b.locals,void 0,e.expression,134217729,67220414);break;case 202:var t=Ge.getAssignmentDeclarationKind(e);switch(t){case 1:Le(e);break;case 2:!function(e){if(!Ae(e))return;var n=Ge.getRightMostAssignedExpression(e.right);if(Ge.isEmptyObjectLiteral(n)||T===b&&Ke(b,n))return;var t=Ge.exportAssignmentIsAlias(e)?2097152:1049092;z(b.symbol.exports,b.symbol,e,t,0)}(e);break;case 3:Ne(e.left,e);break;case 6:Me((y=(((v=e).left.parent=v).right.parent=v).left).expression,y,!1);break;case 4:ke(e);break;case 5:!function(e){var n=e.left,t=Oe(n.expression);if(!Ge.isInJSFile(e)&&!Ge.isFunctionSymbol(t))return;(e.left.parent=e).right.parent=e,Ge.isIdentifier(n.expression)&&T===b&&je(b,n.expression)?Le(e):Ie(n)}(e);break;case 0:break;default:Ge.Debug.fail("Unknown special property assignment kind")}return g=e,A&&Ge.isLeftHandSideExpression(g.left)&&Ge.isAssignmentOperator(g.operatorToken.kind)&&ye(g,g.left);case 272:return _=e,A&&_.variableDeclaration&&ye(_,_.variableDeclaration.name);case 196:return function(e){if(A&&71===e.expression.kind){var n=Ge.getErrorSpanForNode(b,e.expression);b.bindDiagnostics.push(Ge.createFileDiagnostic(b,n.start,n.length,Ge.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(e);case 8:return f=e,A&&32&f.numericLiteralFlags&&b.bindDiagnostics.push(j(f,Ge.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));case 201:return m=e,A&&ye(m,m.operand);case 200:return p=e,A&&(43!==p.operator&&44!==p.operator||ye(p,p.operand));case 229:return d=e,A&&Ee(d,Ge.Diagnostics.with_statements_are_not_allowed_in_strict_mode);case 231:return u=e,A&&2<=L.target&&(Ge.isDeclarationStatement(u.statement)||Ge.isVariableStatement(u.statement))&&Ee(u.label,Ge.Diagnostics.A_label_is_not_allowed_here);case 176:return C=!0;case 161:break;case 148:return function(e){if(Ge.isJSDocTemplateTag(e.parent)){var n=Ge.find(e.parent.parent.tags,Ge.isJSDocTypeAlias)||Ge.getHostSignatureFromJSDoc(e.parent);n?(n.locals||(n.locals=Ge.createSymbolTable()),z(n.locals,void 0,e,262144,67635688)):pe(e,262144,67635688)}else if(174===e.parent.kind){var t=(r=e.parent,(a=Ge.findAncestor(r,function(e){return e.parent&&Ge.isConditionalTypeNode(e.parent)&&e.parent.extendsType===e}))&&a.parent);t?(t.locals||(t.locals=Ge.createSymbolTable()),z(t.locals,void 0,e,262144,67635688)):_e(e,262144,q(e))}else pe(e,262144,67635688);var r,a}(e);case 149:return Re(e);case 235:return Pe(e);case 184:return e.flowNode=k,Pe(e);case 152:case 151:return Fe(l=e,4|(l.questionToken?16777216:0),0);case 273:case 274:return Fe(e,4,0);case 276:return Fe(e,8,68008959);case 158:case 159:case 160:return pe(e,131072,0);case 154:case 153:return Fe(e,8192|(e.questionToken?16777216:0),Ge.isObjectLiteralMethod(e)?0:67212223);case 237:return function(e){b.isDeclarationFile||4194304&e.flags||Ge.isAsyncFunction(e)&&(D|=1024);he(e),A?(be(e),ge(e,16,67219887)):pe(e,16,67219887)}(e);case 155:return pe(e,16384,0);case 156:return Fe(e,32768,67154879);case 157:return Fe(e,65536,67187647);case 163:case 287:case 291:case 164:return function(e){var n=H(131072,q(e));U(n,e,131072);var t=H(2048,"__type");U(t,e,2048),t.members=Ge.createSymbolTable(),t.members.set(n.escapedName,n)}(e);case 166:case 290:case 179:return _e(e,2048,"__type");case 186:return function(e){var n;if(u=n||(n={}),u[u.Property=1]="Property",u[u.Accessor=2]="Accessor",A)for(var t=Ge.createUnderscoreEscapedMap(),r=0,a=e.properties;r<a.length;r++){var i=a[r];if(275!==i.kind&&71===i.name.kind){var o=i.name,s=273===i.kind||274===i.kind||154===i.kind?1:2,c=t.get(o.escapedText);if(c){if(1===s&&1===c){var l=Ge.getErrorSpanForNode(b,o);b.bindDiagnostics.push(Ge.createFileDiagnostic(b,l.start,l.length,Ge.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}else t.set(o.escapedText,s)}}var u;_e(e,4096,"__object")}(e);case 194:case 195:return function(e){b.isDeclarationFile||4194304&e.flags||Ge.isAsyncFunction(e)&&(D|=1024);k&&(e.flowNode=k);he(e);var n=e.name?e.name.escapedText:"__function";_e(e,16,n)}(e);case 189:Ge.isInJSFile(e)&&(c=e,!b.commonJsModuleIndicator&&Ge.isRequireCall(c,!1)&&Ae(c));break;case 207:case 238:return A=!0,function(e){if(238===e.kind)ge(e,32,68008383);else{var n=e.name?e.name.escapedText:"__class";_e(e,32,n),e.name&&G.set(e.name.escapedText,!0)}var t=e.symbol,r=H(4194308,"prototype"),a=t.exports.get(r.escapedName);a&&(e.name&&(e.name.parent=e),b.bindDiagnostics.push(j(a.declarations[0],Ge.Diagnostics.Duplicate_identifier_0,Ge.symbolName(r))));t.exports.set(r.escapedName,r),r.parent=t}(e);case 239:return ge(e,64,67897736);case 240:return ge(e,524288,67897832);case 241:return s=e,Ge.isEnumConst(s)?ge(s,128,68008831):ge(s,256,68008191);case 242:return function(e){if(me(e),Ge.isAmbientModule(e))if(Ge.hasModifier(e,1)&&Ee(e,Ge.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),Ge.isModuleAugmentationExternal(e))fe(e);else{var n=void 0;if(9===e.name.kind){var t=e.name.text;Ge.hasZeroOrOneAsteriskCharacter(t)?n=Ge.tryParsePattern(t):Ee(e.name,Ge.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,t)}var r=pe(e,512,110735);b.patternAmbientModules=Ge.append(b.patternAmbientModules,n&&{pattern:n,symbol:r})}else{var a=fe(e);if(0!==a){var r=e.symbol;r.constEnumOnlyModule=!(304&r.flags)&&2===a&&!1!==r.constEnumOnlyModule}}}(e);case 266:return _e(e,4096,"__jsxAttributes");case 265:return pe(e,4,0);case 246:case 249:case 251:case 255:return pe(e,2097152,2097152);case 245:return function(e){e.modifiers&&e.modifiers.length&&b.bindDiagnostics.push(j(e,Ge.Diagnostics.Modifiers_cannot_appear_here));{if(277!==e.parent.kind)return b.bindDiagnostics.push(j(e,Ge.Diagnostics.Global_module_exports_may_only_appear_at_top_level));var n=e.parent;if(!Ge.isExternalModule(n))return b.bindDiagnostics.push(j(e,Ge.Diagnostics.Global_module_exports_may_only_appear_in_module_files));if(!n.isDeclarationFile)return b.bindDiagnostics.push(j(e,Ge.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files))}b.symbol.globalExports=b.symbol.globalExports||Ge.createSymbolTable(),z(b.symbol.globalExports,b.symbol,e,2097152,2097152)}(e);case 248:return(o=e).name&&pe(o,2097152,2097152);case 253:return i=e,T.symbol&&T.symbol.exports?i.exportClause||z(T.symbol.exports,T.symbol,i,8388608,0):_e(i,8388608,q(i));case 252:return function(e){if(T.symbol&&T.symbol.exports){var n=Ge.exportAssignmentIsAlias(e)?2097152:4,t=z(T.symbol.exports,T.symbol,e,n,67108863);e.isExportEquals&&W(t,e)}else _e(e,2097152,q(e))}(e);case 277:return Ce(e.statements),function(){if(me(b),Ge.isExternalModule(b))De();else if(Ge.isJsonSourceFile(b)){De();var e=b.symbol;z(b.symbol.exports,b.symbol,b,4,67108863),b.symbol=e}}();case 216:if(!Ge.isFunctionLike(e.parent))return;case 243:return Ce(e.statements);case 297:if(291===e.parent.kind)return Re(e);if(290!==e.parent.kind)break;case 303:var r=e,a=r.isBracketed||r.typeExpression&&286===r.typeExpression.type.kind?16777220:4;return pe(r,a,0);case 302:case 295:return(x||(x=[])).push(e)}var i;var o;var s;var c;var l;var u;var d;var p;var m;var f;var _;var g;var v,y;var h}(e),145<e.kind){var t=E,r=v(E=e);0===r?m(e):function(e,n){var t=T,r=p,a=S;1&n?(195!==e.kind&&(p=T),T=S=e,32&n&&(T.locals=Ge.createSymbolTable()),y(T)):2&n&&((S=e).locals=void 0);if(4&n){var i=k,o=N,s=I,c=M,l=R,u=F,d=16&n&&!Ge.hasModifier(e,256)&&!e.asteriskToken&&!!Ge.getImmediatelyInvokedFunctionExpression(e);d||(k={flags:2},144&n&&(k.container=e)),M=d||155===e.kind?$():void 0,R=I=N=void 0,F=!1,m(e),e.flags&=-1409,!(1&k.flags)&&8&n&&Ge.nodeIsPresent(e.body)&&(e.flags|=128,F&&(e.flags|=256)),277===e.kind&&(e.flags|=D),M&&(ne(M,k),k=ie(M),155===e.kind&&(e.returnFlowNode=k)),d||(k=i),N=o,I=s,M=c,R=l,F=u}else 64&n?(C=!1,m(e),e.flags=C?64|e.flags:-65&e.flags):m(e);T=t,p=r,S=a}(e,r),E=t}else if(!s&&0==(536870912&e.transformFlags)){K|=Ue(e,0);var t=E;1===e.kind&&(E=e),xe(e),E=t}A=n}}function xe(e){if(Ge.hasJSDocNodes(e))if(Ge.isInJSFile(e))for(var n=0,t=e.jsDoc;n<t.length;n++){var r=t[n];Se(r)}else for(var a=0,i=e.jsDoc;a<i.length;a++){var r=i[a];qe(e,r)}}function Ce(e){if(!A)for(var n=0,t=e;n<t.length;n++){var r=t[n];if(!Ge.isPrologueDirective(r))return;if(a=r,void 0,'"use strict"'===(i=Ge.getSourceTextOfNodeFromSourceFile(b,a.expression))||"'use strict'"===i)return void(A=!0)}var a,i}function De(){_e(b,512,'"'+Ge.removeFileExtension(b.fileName)+'"')}function Ae(e){return!b.externalModuleIndicator&&(b.commonJsModuleIndicator||(b.commonJsModuleIndicator=e,De()),!0)}function Le(e){if(Ae(e)){var n=e.left,t=we(n.expression,void 0,function(e,n){return n&&U(n,e,67110400),n});if(t){var r=Ge.isClassExpression(e.right)?1048612:1048580;z(t.exports,t,n,r,0)}}}function ke(e){Ge.Debug.assert(Ge.isInJSFile(e));var n=Ge.getThisContainer(e,!1);switch(n.kind){case 237:case 194:var t=n.symbol;if(Ge.isBinaryExpression(n.parent)&&58===n.parent.operatorToken.kind){var r=n.parent.left;Ge.isPropertyAccessEntityNameExpression(r)&&Ge.isPrototypeAccess(r.expression)&&(t=Oe(r.expression.expression,p))}t&&(t.members=t.members||Ge.createSymbolTable(),z(t.members,t,e,4,0));break;case 155:case 152:case 154:case 156:case 157:var a=n.parent,i=Ge.hasModifier(n,32)?a.symbol.exports:a.symbol.members;z(i,a.symbol,e,4,0,!0);break;case 277:break;default:Ge.Debug.fail(Ge.Debug.showSyntaxKind(n))}}function Ne(e,n){var t=e.expression,r=t.expression;e.parent=n,(r.parent=t).parent=e,Me(r,e,!0)}function Ie(e){Me((e.expression.parent=e).expression,e,!1)}function Me(e,n,t){var r=Oe(e),a=Ge.isBinaryExpression(n.parent)?277===function(e){for(;Ge.isBinaryExpression(e.parent);)e=e.parent;return e.parent}(n.parent).parent.kind:277===n.parent.parent.kind;if(a&&!t&&(!r||!(1920&r.flags))){r=we(n.expression,r,function(e,n,t){if(n)return U(n,e,67110400),n;var r=t?t.exports:b.jsGlobalAugmentations||(b.jsGlobalAugmentations=Ge.createSymbolTable());return z(r,t,e,67110400,110735)})}if(r&&function(e){if(1072&e.flags)return!0;var n=e.valueDeclaration,t=n?Ge.isVariableDeclaration(n)?n.initializer:Ge.isBinaryExpression(n)?n.right:Ge.isPropertyAccessExpression(n)&&Ge.isBinaryExpression(n.parent)?n.parent.right:void 0:void 0;if(t=t&&Ge.getRightMostAssignedExpression(t)){var r=Ge.isPrototypeAccess(Ge.isVariableDeclaration(n)?n.name:Ge.isBinaryExpression(n)?n.left:n);return!!Ge.getExpandoInitializer(Ge.isBinaryExpression(t)&&54===t.operatorToken.kind?t.right:t,r)}return!1}(r)){var i=t?r.members||(r.members=Ge.createSymbolTable()):r.exports||(r.exports=Ge.createSymbolTable()),o=Ge.isFunctionLikeDeclaration(Ge.getAssignedExpandoInitializer(n)),s=o?8192:4,c=o?67212223:0;z(i,r,n,67108864|s,-67108865&c)}}function Oe(e,n){if(void 0===n&&(n=T),Ge.isIdentifier(e))return He(n,e.escapedText);var t=Oe(e.expression);return t&&t.exports&&t.exports.get(e.name.escapedText)}function we(e,n,t){if(Ke(b,e))return b.symbol;if(Ge.isIdentifier(e))return t(e,Oe(e),n);var r=we(e.expression,n,t);return r&&r.exports?t(e.name,r.exports.get(e.name.escapedText),r):Ge.Debug.fail()}function Pe(e){if(A&&ye(e,e.name),!Ge.isBindingPattern(e.name)){var n=Ge.isInJSFile(e)&&!!Ge.getJSDocEnumTag(e),t=n?256:0,r=n?68008191:0;Ge.isBlockOrCatchScoped(e)?ge(e,2|t,67220415|r):Ge.isParameterDeclaration(e)?pe(e,1,67220415):pe(e,1|t,67220414|r)}}function Re(e){if((297!==e.kind||291===T.kind)&&(!A||4194304&e.flags||ye(e,e.name),Ge.isBindingPattern(e.name)?_e(e,1,"__"+e.parent.parameters.indexOf(e)):pe(e,1,67220415),Ge.isParameterPropertyDeclaration(e))){var n=e.parent.parent;z(n.symbol.members,n.symbol,e,4|(e.questionToken?16777216:0),0)}}function Fe(e,n,t){return b.isDeclarationFile||4194304&e.flags||!Ge.isAsyncFunction(e)||(D|=1024),k&&Ge.isObjectLiteralOrClassExpressionMethod(e)&&(e.flowNode=k),Ge.hasDynamicName(e)?_e(e,n,"__computed"):pe(e,n,t)}}();function Be(e){return!(Ge.isFunctionDeclaration(e)||function(e){switch(e.kind){case 239:case 240:return!0;case 242:return 1!==Ve(e);case 241:return Ge.hasModifier(e,2048);default:return!1}}(e)||Ge.isEnumDeclaration(e)||Ge.isVariableStatement(e)&&!(3&Ge.getCombinedNodeFlags(e))&&e.declarationList.declarations.some(function(e){return!e.initializer}))}function Ke(e,n){return Ge.isExportsIdentifier(n)||Ge.isModuleExportsPropertyAccessExpression(n)||Ge.isIdentifier(n)&&je(e,n)}function je(e,n){var t=He(e,n.escapedText);return!!t&&!!t.valueDeclaration&&Ge.isVariableDeclaration(t.valueDeclaration)&&!!t.valueDeclaration.initializer&&function e(n,t){return Ke(n,t)||Ge.isAssignmentExpression(t,!0)&&(e(n,t.left)||e(n,t.right))}(e,t.valueDeclaration.initializer)}function He(e,n){var t=e.locals&&e.locals.get(n);return t?t.exportSymbol||t:Ge.isSourceFile(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(n)?e.jsGlobalAugmentations.get(n):e.symbol&&e.symbol.exports&&e.symbol.exports.get(n)}function Ue(e,n){var t=e.kind;switch(t){case 189:return function(e,n){var t=n,r=e.expression;e.typeArguments&&(t|=3);(524288&n||402653184&r.transformFlags)&&(t|=192,268435456&r.transformFlags&&(t|=16384));91===r.kind&&(t|=67108864,16384&n&&(t|=32768));return e.transformFlags=536870912|t,-940049730&t}(e,n);case 190:return function(e,n){var t=n;e.typeArguments&&(t|=3);524288&n&&(t|=192);return e.transformFlags=536870912|t,-940049730&t}(e,n);case 242:return function(e,n){var t=3;0==(2&Ge.getModifierFlags(e))&&(t|=n);return e.transformFlags=536870912|t,-977327426&t}(e,n);case 193:return function(e,n){var t=n,r=e.expression,a=r.kind,i=r.transformFlags;210!==a&&192!==a||(t|=3);1024&i&&(t|=1024);return e.transformFlags=536870912|t,-536872258&t}(e,n);case 202:return function(e,n){var t=n,r=e.operatorToken.kind,a=e.left.kind;58===r&&186===a?t|=3272:58===r&&185===a?t|=3264:40!==r&&62!==r||(t|=32);return e.transformFlags=536870912|t,-939525442&t}(e,n);case 219:return function(e,n){var t=n;1024&e.expression.transformFlags&&(t|=192);return e.transformFlags=536870912|t,-939525442&t}(e,n);case 149:return function(e,n){var t=n,r=e.name,a=e.initializer,i=e.dotDotDotToken;(e.questionToken||e.type||4096&n||Ge.isThisIdentifier(r))&&(t|=3);Ge.hasModifier(e,92)&&(t|=262147);1048576&n&&(t|=8);(8388608&n||a||i)&&(t|=131264);return e.transformFlags=536870912|t,-939525442&t}(e,n);case 195:return function(e,n){var t=192|n;(Ge.hasModifier(e,2270)||e.typeParameters||e.type)&&(t|=3);Ge.hasModifier(e,256)&&(t|=16);1048576&n&&(t|=8);16384&n&&(t|=32768);return e.transformFlags=536870912|t,-1003902274&t}(e,n);case 194:return function(e,n){var t=n;(Ge.hasModifier(e,2270)||e.typeParameters||e.type)&&(t|=3);Ge.hasModifier(e,256)&&(t|=e.asteriskToken?8:16);1048576&n&&(t|=8);163840&n&&(t|=192);e.asteriskToken&&(t|=768);return e.transformFlags=536870912|t,-1003935042&t}(e,n);case 237:return function(e,n){var t,r=Ge.getModifierFlags(e);!e.body||2&r?t=3:(t=33554432|n,(2270&r||e.typeParameters||e.type)&&(t|=3),256&r&&(t|=e.asteriskToken?8:16),1048576&n&&(t|=8),163840&n&&(t|=192),e.asteriskToken&&(t|=768));return e.transformFlags=536870912|t,-1003935042&t}(e,n);case 235:return function(e,n){var t=n;t|=8388800,1048576&n&&(t|=8);e.type&&(t|=3);return e.transformFlags=536870912|t,-939525442&t}(e,n);case 236:return function(e,n){var t=33554432|n;8388608&n&&(t|=192);3&e.flags&&(t|=4194496);return e.transformFlags=536870912|t,-948962626&t}(e,n);case 217:return function(e,n){var t,r=e.declarationList.transformFlags;Ge.hasModifier(e,2)?t=3:(t=n,8388608&r&&(t|=192));return e.transformFlags=536870912|t,-939525442&t}(e,n);case 231:return function(e,n){var t=n;4194304&n&&Ge.isIterationStatement(e,!0)&&(t|=192);return e.transformFlags=536870912|t,-939525442&t}(e,n);case 238:return function(e,n){var t;Ge.hasModifier(e,2)?t=3:(t=192|n,(274432&n||e.typeParameters)&&(t|=3),65536&n&&(t|=16384));return e.transformFlags=536870912|t,-942011714&t}(e,n);case 207:return function(e,n){var t=192|n;(274432&n||e.typeParameters)&&(t|=3);65536&n&&(t|=16384);return e.transformFlags=536870912|t,-942011714&t}(e,n);case 271:return function(e,n){var t=n;switch(e.token){case 85:t|=192;break;case 108:t|=3;break;default:Ge.Debug.fail("Unexpected token for heritage clause")}return e.transformFlags=536870912|t,-939525442&t}(e,n);case 272:return function(e,n){var t=n;e.variableDeclaration?Ge.isBindingPattern(e.variableDeclaration.name)&&(t|=192):t|=8;return e.transformFlags=536870912|t,-940574018&t}(e,n);case 209:return function(e,n){var t=192|n;e.typeArguments&&(t|=3);return e.transformFlags=536870912|t,-939525442&t}(e,n);case 155:return function(e,n){var t=n;!Ge.hasModifier(e,2270)&&e.body||(t|=3);1048576&n&&(t|=8);return e.transformFlags=536870912|t,-1003668802&t}(e,n);case 152:return function(e,n){var t=3|n;(e.initializer||Ge.isComputedPropertyName(e.name))&&(t|=8192);return e.transformFlags=536870912|t,-939525442&t}(e,n);case 154:return function(e,n){var t=192|n;(e.decorators||Ge.hasModifier(e,2270)||e.typeParameters||e.type||e.name&&Ge.isComputedPropertyName(e.name)||!e.body)&&(t|=3);1048576&n&&(t|=8);Ge.hasModifier(e,256)&&(t|=e.asteriskToken?8:16);e.asteriskToken&&(t|=768);return e.transformFlags=536870912|t,-1003668802&t}(e,n);case 156:case 157:return function(e,n){var t=n;(e.decorators||Ge.hasModifier(e,2270)||e.type||e.name&&Ge.isComputedPropertyName(e.name)||!e.body)&&(t|=3);1048576&n&&(t|=8);return e.transformFlags=536870912|t,-1003668802&t}(e,n);case 246:return function(e,n){var t=n;Ge.isExternalModuleImportEqualsDeclaration(e)||(t|=3);return e.transformFlags=536870912|t,-939525442&t}(e,n);case 187:return function(e,n){var t=n;134217728&t&&(t^=134217728,t|=268435456);return e.transformFlags=536870912|t,-671089986&t}(e,n);case 188:return function(e,n){var t=n;134217728&e.expression.transformFlags&&(t&=-134217729,t|=268435456);return e.transformFlags=536870912|t,-671089986&t}(e,n);default:return function(e,n,t){var r=t,a=939525441;switch(n){case 120:case 199:r|=24;break;case 192:case 210:case 306:r|=3,a=536872257;break;case 114:case 112:case 113:case 117:case 124:case 76:case 241:case 276:case 211:case 132:r|=3;break;case 258:case 259:case 260:case 10:case 261:case 262:case 263:case 264:case 265:case 266:case 267:case 268:r|=4;break;case 13:case 14:case 15:case 16:case 204:case 191:case 274:case 115:case 212:r|=192;break;case 9:e.hasExtendedUnicodeEscape&&(r|=192);break;case 8:384&e.numericLiteralFlags&&(r|=192);break;case 225:e.awaitModifier&&(r|=8),r|=192;break;case 205:r|=16777416;break;case 119:case 134:case 131:case 135:case 137:case 122:case 138:case 105:case 148:case 151:case 153:case 158:case 159: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 239:case 240:case 176:case 177:case 178:case 179:case 180:case 245:a=-(r=3);break;case 147:r|=2097152,16384&t&&(r|=65536);break;case 206:r|=524480;break;case 275:r|=1048584;break;case 97:r|=134217920,a=536872257;break;case 99:r|=16384;break;case 182:r|=8388800,524288&t&&(r|=1048584),a=940049729;break;case 183:r|=8388800,a=940049729;break;case 184:r|=192,e.dotDotDotToken&&(r|=524288);break;case 150:r|=4099;break;case 186:a=942740801,2097152&t&&(r|=192),65536&t&&(r|=16384),1048576&t&&(r|=8);break;case 185:case 190:a=940049729,524288&t&&(r|=192);break;case 221:case 222:case 223:case 224:4194304&t&&(r|=192);break;case 277:32768&t&&(r|=192);break;case 228:r|=33554440;break;case 226:case 227:r|=33554432}return e.transformFlags=536870912|r,r&~a}(e,t,n)}}function We(e){if(161<=e&&e<=181)return-3;switch(e){case 189:case 190:case 185:return 940049729;case 242:return 977327425;case 149:return 939525441;case 195:return 1003902273;case 194:case 237:return 1003935041;case 236:return 948962625;case 238:case 207:return 942011713;case 155:return 1003668801;case 154:case 156:case 157:return 1003668801;case 119:case 134:case 131:case 137:case 135:case 122:case 138:case 105:case 148:case 151:case 153:case 158:case 159:case 160:case 239:case 240:return-3;case 186:return 942740801;case 272:return 940574017;case 182:case 183:return 940049729;case 192:case 210:case 306:case 193:case 97:return 536872257;case 187:case 188:return 671089985;default:return 939525441}}function qe(e,n){n.parent=e,Ge.forEachChild(n,function(e){return qe(n,e)})}Ge.bindSourceFile=function(e,n){Ge.performance.mark("beforeBind"),r(e,n),Ge.performance.mark("afterBind"),Ge.performance.measure("Bind","beforeBind","afterBind")},Ge.isExportsOrModuleExportsOrAlias=Ke,Ge.computeTransformFlagsForNode=Ue,Ge.getTransformFlagsSubtreeExclusions=We}(ts||(ts={})),function(b){b.createGetSymbolWalker=function(i,o,s,d,_,c,g,v,y,h){return function(r){void 0===r&&(r=function(){return!0});var l=[],a=[];return{walkType:function(e){try{return p(e),{visitedTypes:b.getOwnValues(l),visitedSymbols:b.getOwnValues(a)}}finally{b.clear(l),b.clear(a)}},walkSymbol:function(e){try{return f(e),{visitedTypes:b.getOwnValues(l),visitedSymbols:b.getOwnValues(a)}}finally{b.clear(l),b.clear(a)}}};function p(e){if(e&&!l[e.id]){var n=f((l[e.id]=e).symbol);if(!n){if(131072&e.flags){var t=e,r=t.objectFlags;4&r&&(p((o=e).target),b.forEach(o.typeArguments,p)),32&r&&(p((i=e).typeParameter),p(i.constraintType),p(i.templateType),p(i.modifiersType)),3&r&&(u(a=e),b.forEach(a.typeParameters,p),b.forEach(d(a),p),p(a.thisType)),24&r&&u(t)}var a,i,o,s,c;65536&e.flags&&p(y(e)),786432&e.flags&&(s=e,b.forEach(s.types,p)),1048576&e.flags&&p(e.type),2097152&e.flags&&(p((c=e).objectType),p(c.indexType),p(c.constraint))}}}function m(e){var n=o(e);n&&p(n.type),b.forEach(e.typeParameters,p);for(var t=0,r=e.parameters;t<r.length;t++){var a=r[t];f(a)}p(i(e)),p(s(e))}function u(e){var n=v(e,0);p(n);var t=v(e,1);p(t);for(var r=_(e),a=0,i=r.callSignatures;a<i.length;a++){var o=i[a];m(o)}for(var s=0,c=r.constructSignatures;s<c.length;s++){var o=c[s];m(o)}for(var l=0,u=r.properties;l<u.length;l++){var d=u[l];f(d)}}function f(e){if(!e)return!1;var n=b.getSymbolId(e);if(a[n])return!1;if(a[n]=e,!r(e))return!0;var t=c(e);return p(t),e.exports&&e.exports.forEach(f),b.forEach(e.declarations,function(e){if(e.type&&165===e.type.kind){var n=e.type,t=g(h(n.exprName));f(t)}}),!1}}}}(ts||(ts={})),function(Dy){var Ay,e,Ly=/^".+"$/,n=1,t=1,ky=1,Ny=1;function Iy(e){return e.id||(e.id=t,t++),e.id}function My(e){return e.id||(e.id=n,n++),e.id}function Oy(e,n){var t=Dy.getModuleInstanceState(e);return 1===t||n&&2===t}function wy(e){switch(e.parent.kind){case 251:case 255:return Dy.isIdentifier(e);default:return Dy.isDeclarationName(e)}}function Py(e){switch(e.kind){case 248:case 246:case 249:case 251:return!0;case 71:return 251===e.parent.kind;default:return!1}}Dy.getNodeId=Iy,Dy.getSymbolId=My,Dy.isInstantiatedModule=Oy,Dy.createTypeChecker=function(E,L){var w,l,u,c=Dy.memoize(function(){var n=Dy.createMap();return E.getSourceFiles().forEach(function(e){e.resolvedModules&&Dy.forEachEntry(e.resolvedModules,function(e){e&&e.packageId&&n.set(e.packageId.name,!0)})}),n}),a=Dy.objectAllocator.getSymbolConstructor(),t=Dy.objectAllocator.getTypeConstructor(),d=Dy.objectAllocator.getSignatureConstructor(),r=0,i=0,p=0,o=0,s=0,I=Dy.createSymbolTable(),x=Dy.identity,R=E.getCompilerOptions(),P=Dy.getEmitScriptTarget(R),C=Dy.getEmitModuleKind(R),f=Dy.getAllowSyntheticDefaultImports(R),k=Dy.getStrictOptionValue(R,"strictNullChecks"),G=Dy.getStrictOptionValue(R,"strictFunctionTypes"),D=Dy.getStrictOptionValue(R,"strictPropertyInitialization"),F=Dy.getStrictOptionValue(R,"noImplicitAny"),_=Dy.getStrictOptionValue(R,"noImplicitThis"),g=!!R.keyofStringsOnly,m=function(){var c,e=E.getResolvedTypeReferenceDirectives();return e&&(c=Dy.createMap(),e.forEach(function(e,n){if(e&&e.resolvedFileName){var t=E.getSourceFile(e.resolvedFileName);c.set(t.path,n)}})),{getReferencedExportContainer:Sv,getReferencedImportDeclaration:xv,getReferencedDeclarationWithCollidingName:Dv,isDeclarationWithCollidingName:Av,isValueAliasDeclaration:function(e){return!(e=Dy.getParseTreeNode(e))||Lv(e)},hasGlobalName:Wv,isReferencedAliasDeclaration:function(e,n){return!(e=Dy.getParseTreeNode(e))||function n(e,t){if(Dy.isAliasSymbolDeclaration(e)){var r=vr(e);if(r&&Lt(r).referenced)return!0;var a=Lt(r).target;if(a&&1&Dy.getModifierFlags(e)&&67220415&a.flags&&(R.preserveConstEnums||!Iv(a)))return!0}return!!t&&!!Dy.forEachChild(e,function(e){return n(e,t)})}(e,n)},getNodeCheckFlags:function(e){return(e=Dy.getParseTreeNode(e))?Fv(e):0},isTopLevelValueImportEqualsWithEntityName:kv,isDeclarationVisible:$r,isImplementationOfOverload:Mv,isRequiredInitializedParameter:Ov,isOptionalUninitializedParameterProperty:wv,isExpandoFunctionDeclaration:Pv,getPropertiesOfContainerFunction:Rv,createTypeOfDeclaration:jv,createReturnTypeOfSignatureDeclaration:Hv,createTypeOfExpression:Uv,createLiteralConstValue:Xv,isSymbolAccessible:Gr,isEntityNameVisible:Hr,getConstantValue:function(e){var n=Dy.getParseTreeNode(e,Vv);return n?Bv(n):void 0},collectLinkedAliases:ea,getReferencedValueDeclaration:zv,getTypeReferenceSerializationKind:Kv,isOptionalParameter:xo,moduleExportsSomeValue:Tv,isArgumentsLocalBinding:Ev,getExternalModuleFileFromDeclaration:Yv,getTypeReferenceDirectivesForEntityName:function(e){if(c){var n,t=67899368;(71===e.kind&&Yu(e)||187===e.kind&&(!(n=e).parent||209!==n.parent.kind||!n.parent.parent||271!==n.parent.parent.kind))&&(t=68268991);var r=nr(e,t,!0);return r&&r!==H?a(r,t):void 0}},getTypeReferenceDirectivesForSymbol:a,isLiteralConstDeclaration:Jv,isLateBound:function(e){var n=Dy.getParseTreeNode(e,Dy.isDeclaration),t=n&&vr(n);return!!(t&&1024&Dy.getCheckFlags(t))},getJsxFactoryEntity:function(e){return e?(ft(e),Dy.getSourceFileOfNode(e).localJsxFactory||Kn):Kn},getAllAccessorDeclarations:function(e){var n=157===(e=Dy.getParseTreeNode(e,Dy.isGetOrSetAccessorDeclaration)).kind?156:157,t=Dy.getDeclarationOfKind(vr(e),n),r=t&&t.pos<e.pos?t:e,a=t&&t.pos<e.pos?e:t,i=157===e.kind?e:t,o=156===e.kind?e:t;return{firstAccessor:r,secondAccessor:a,setAccessor:i,getAccessor:o}},getSymbolOfExternalModuleSpecifier:function(e){return ar(e,e,void 0)}};function a(e,n){if(c&&function(e){if(!e.declarations)return!1;for(var n=e;;){var t=yr(n);if(!t)break;n=t}if(n.valueDeclaration&&277===n.valueDeclaration.kind&&512&n.flags)return!1;for(var r=0,a=e.declarations;r<a.length;r++){var i=a[r],o=Dy.getSourceFileOfNode(i);if(c.has(o.path))return!0}return!1}(e)){for(var t,r=0,a=e.declarations;r<a.length;r++){var i=a[r];if(i.symbol&&i.symbol.flags&n){var o=Dy.getSourceFileOfNode(i),s=c.get(o.path);if(!s)return;(t||(t=[])).push(s)}}return t}}}(),v=function(){return{typeToTypeNode:function(n,e,t,r){return i(e,t,r,function(e){return C(n,e)})},indexInfoToIndexSignatureDeclaration:function(n,t,e,r,a){return i(e,r,a,function(e){return L(n,t,e)})},signatureToSignatureDeclaration:function(n,t,e,r,a){return i(e,r,a,function(e){return k(n,t,e)})},symbolToEntityName:function(n,t,e,r,a){return i(e,r,a,function(e){return O(n,e,t,!1)})},symbolToExpression:function(t,r,e,n,a){return i(e,n,a,function(e){return function e(n,t){var r=y(n,t,u),a=n[t];0===t&&(u.flags|=16777216);var i=Zr(a,u);0===t&&(u.flags^=16777216);var o=i.charCodeAt(0),s=Dy.isIdentifierStart(o,P);if(0===t||s){var c=Dy.setEmitFlags(Dy.createIdentifier(i,r),16777216);return c.symbol=a,0<t?Dy.createPropertyAccess(e(n,t-1),c):c}91===o&&(i=i.substring(1,i.length-1),o=i.charCodeAt(0));var l=void 0;return Dy.isSingleOrDoubleQuote(o)?(l=Dy.createLiteral(i.substring(1,i.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===o:""+ +i===i&&(l=Dy.createLiteral(+i)),l||((l=Dy.setEmitFlags(Dy.createIdentifier(i,r),16777216)).symbol=a),Dy.createElementAccess(e(n,t-1),l)}(n=g(t,u=e,r),n.length-1);var u,n})},symbolToTypeParameterDeclarations:function(n,e,t,r){return i(e,t,r,function(e){return l(n,e)})},symbolToParameterDeclaration:function(n,e,t,r){return i(e,t,r,function(e){return m(n,e)})},typeParameterToDeclaration:function(n,e,t,r){return i(e,t,r,function(e){return p(n,e)})}};function i(e,n,t,r){Dy.Debug.assert(void 0===e||0==(8&e.flags));var a={enclosingDeclaration:e,flags:n||0,tracker:t&&t.trackSymbol?t:{trackSymbol:Dy.noop},encounteredError:!1,visitedSymbols:void 0,inferTypeParameters:void 0,approximateLength:0},i=r(a);return a.encounteredError?void 0:i}function x(e){return e.truncating?e.truncating:e.truncating=!(1&e.flags)&&e.approximateLength>Dy.defaultMaximumTruncationLength}function C(e,b){w&&w.throwIfCancellationRequested&&w.throwIfCancellationRequested();var n=8388608&b.flags;if(b.flags&=-8388609,e){if(1&e.flags)return b.approximateLength+=3,Dy.createKeywordTypeNode(119);if(2&e.flags)return Dy.createKeywordTypeNode(142);if(4&e.flags)return b.approximateLength+=6,Dy.createKeywordTypeNode(137);if(8&e.flags)return b.approximateLength+=6,Dy.createKeywordTypeNode(134);if(16&e.flags)return b.approximateLength+=7,Dy.createKeywordTypeNode(122);if(512&e.flags&&!(262144&e.flags)){var t=yr(e.symbol),r=O(t,b,67897832,!1),a=ri(t)===e?r:Dy.createQualifiedName(r,Dy.symbolName(e.symbol));return b.approximateLength+=Dy.symbolName(e.symbol).length,Dy.createTypeReferenceNode(a,void 0)}if(544&e.flags){var i=O(e.symbol,b,67897832,!1);return b.approximateLength+=Dy.symbolName(e.symbol).length,Dy.createTypeReferenceNode(i,void 0)}if(64&e.flags)return b.approximateLength+=e.value.length+2,Dy.createLiteralTypeNode(Dy.setEmitFlags(Dy.createLiteral(e.value),16777216));if(128&e.flags)return b.approximateLength+=(""+e.value).length,Dy.createLiteralTypeNode(Dy.createLiteral(e.value));if(256&e.flags)return b.approximateLength+=e.intrinsicName.length,"true"===e.intrinsicName?Dy.createTrue():Dy.createFalse();if(2048&e.flags){if(!(1048576&b.flags)){if(Fr(e.symbol,b.enclosingDeclaration))return b.approximateLength+=6,M(e.symbol,b,67220415);b.tracker.reportInaccessibleUniqueSymbolError&&b.tracker.reportInaccessibleUniqueSymbolError()}return b.approximateLength+=13,Dy.createTypeOperatorNode(141,Dy.createKeywordTypeNode(138))}if(4096&e.flags)return b.approximateLength+=4,Dy.createKeywordTypeNode(105);if(8192&e.flags)return b.approximateLength+=9,Dy.createKeywordTypeNode(140);if(16384&e.flags)return b.approximateLength+=4,Dy.createKeywordTypeNode(95);if(32768&e.flags)return b.approximateLength+=5,Dy.createKeywordTypeNode(131);if(1024&e.flags)return b.approximateLength+=6,Dy.createKeywordTypeNode(138);if(16777216&e.flags)return b.approximateLength+=6,Dy.createKeywordTypeNode(135);if(65536&e.flags&&e.isThisType)return 4194304&b.flags&&(b.encounteredError||32768&b.flags||(b.encounteredError=!0),b.tracker.reportInaccessibleThisError&&b.tracker.reportInaccessibleThisError()),b.approximateLength+=4,Dy.createThis();var o=Dy.getObjectFlags(e);if(4&o)return Dy.Debug.assert(!!(131072&e.flags)),function(e){var n=e.typeArguments||Dy.emptyArray;if(e.target===Le){if(2&b.flags){var t=C(n[0],b);return Dy.createTypeReferenceNode("Array",[t])}var r=C(n[0],b);return Dy.createArrayTypeNode(r)}if(8&e.target.objectFlags){if(0<n.length){var a=as(e),i=A(n.slice(0,a),b),o=e.target.hasRestElement;if(i){for(var s=e.target.minLength;s<Math.min(a,i.length);s++)i[s]=o&&s===a-1?Dy.createRestTypeNode(Dy.createArrayTypeNode(i[s])):Dy.createOptionalTypeNode(i[s]);return Dy.createTupleTypeNode(i)}}return b.encounteredError||524288&b.flags?Dy.createTupleTypeNode([]):void(b.encounteredError=!0)}if(2048&b.flags&&e.symbol.valueDeclaration&&Dy.isClassLike(e.symbol.valueDeclaration)&&!Fr(e.symbol,b.enclosingDeclaration))return E(e);var c=e.target.outerTypeParameters,s=0,l=void 0;if(c)for(var u=c.length;s<u;){for(var d=s,p=$o(c[s]);++s<u&&$o(c[s])===p;);if(!Dy.rangeEquals(c,n,d,s)){var m=A(n.slice(d,s),b),f=b.flags;b.flags|=16;var _=M(p,b,67897832,m);b.flags=f,l=l?T(l,_):_}}var g=void 0;if(0<n.length){var v=(e.target.typeParameters||Dy.emptyArray).length;g=A(n.slice(s,v),b)}var y=b.flags;b.flags|=16;var h=M(e.symbol,b,67897832,g);return b.flags=y,l?T(l,h):h}(e);if(65536&e.flags||3&o){if(65536&e.flags&&Dy.contains(b.inferTypeParameters,e))return b.approximateLength+=Dy.symbolName(e.symbol).length+6,Dy.createInferTypeNode(I(e,b,void 0));if(4&b.flags&&65536&e.flags&&Dy.length(e.symbol.declarations)&&Dy.isTypeParameterDeclaration(e.symbol.declarations[0])&&N(e,b)&&!Rr(e.symbol,b.enclosingDeclaration)){var i=e.symbol.declarations[0].name;return b.approximateLength+=Dy.idText(i).length,Dy.createTypeReferenceNode(Dy.getGeneratedNameForNode(i,24),void 0)}return e.symbol?M(e.symbol,b,67897832):Dy.createTypeReferenceNode(Dy.createIdentifier("?"),void 0)}if(!n&&e.aliasSymbol&&(16384&b.flags||Rr(e.aliasSymbol,b.enclosingDeclaration))){var s=A(e.aliasTypeArguments,b);return!Lr(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?M(e.aliasSymbol,b,67897832,s):Dy.createTypeReferenceNode(Dy.createIdentifier(""),s)}if(!(786432&e.flags)){if(48&o)return Dy.Debug.assert(!!(131072&e.flags)),E(e);if(1048576&e.flags){var c=e.type;b.approximateLength+=6;var l=C(c,b);return Dy.createTypeOperatorNode(l)}if(2097152&e.flags){var u=C(e.objectType,b),l=C(e.indexType,b);return b.approximateLength+=2,Dy.createIndexedAccessTypeNode(u,l)}if(4194304&e.flags){var d=C(e.checkType,b),p=b.inferTypeParameters;b.inferTypeParameters=e.root.inferTypeParameters;var m=C(e.extendsType,b);b.inferTypeParameters=p;var f=C(yc(e),b),_=C(hc(e),b);return b.approximateLength+=15,Dy.createConditionalTypeNode(d,m,f,_)}return 8388608&e.flags?C(e.typeVariable,b):Dy.Debug.fail("Should be unreachable.")}var g=262144&e.flags?function(e){for(var n=[],t=0,r=0;r<e.length;r++){var a=e[r];if(t|=a.flags,!(24576&a.flags)){if(768&a.flags){var i=256&a.flags?ie:$a(a);if(262144&i.flags){var o=i.types.length;if(r+o<=e.length&&Oc(e[r+o-1])===Oc(i.types[o-1])){n.push(i),r+=o-1;continue}}}n.push(a)}}return 16384&t&&n.push(Z),8192&t&&n.push(Y),n||e}(e.types):e.types,v=A(g,b,!0);if(v&&0<v.length){var y=Dy.createUnionOrIntersectionTypeNode(262144&e.flags?171:172,v);return y}b.encounteredError||262144&b.flags||(b.encounteredError=!0)}else b.encounteredError=!0;function E(e){var t,r=e.symbol;if(r){var n=16&Dy.getObjectFlags(e)&&e.symbol&&32&e.symbol.flags;if(t=(n?"+":"")+My(r),of(r.valueDeclaration)){var a=e===uf(r)?67897832:67220415;return M(r,b,a)}if(32&r.flags&&!Ia(r)&&!(207===r.valueDeclaration.kind&&2048&b.flags)||896&r.flags||function(){var e=!!(8192&r.flags)&&Dy.some(r.declarations,function(e){return Dy.hasModifier(e,32)}),n=!!(16&r.flags)&&(r.parent||Dy.forEach(r.declarations,function(e){return 277===e.parent.kind||243===e.parent.kind}));if(e||n)return(!!(4096&b.flags)||b.visitedSymbols&&b.visitedSymbols.has(t))&&(!(8&b.flags)||Fr(r,b.enclosingDeclaration))}())return M(r,b,67220415);if(b.visitedSymbols&&b.visitedSymbols.has(t)){var i=function(e){if(e.symbol&&2048&e.symbol.flags){var n=Dy.findAncestor(e.symbol.declarations[0].parent,function(e){return 175!==e.kind});if(240===n.kind)return vr(n)}}(e);return i?M(i,b,67897832):(b.approximateLength+=3,Dy.createKeywordTypeNode(119))}b.visitedSymbols||(b.visitedSymbols=Dy.createMap()),b.visitedSymbols.set(t,!0);var o=h(e);return b.visitedSymbols.delete(t),o}return h(e)}function h(e){if(Hi(e))return function(e){Dy.Debug.assert(!!(131072&e.flags));var n,t=e.declaration.readonlyToken?Dy.createToken(e.declaration.readonlyToken.kind):void 0,r=e.declaration.questionToken?Dy.createToken(e.declaration.questionToken.kind):void 0;n=Gi(e)?Dy.createTypeOperatorNode(C(Vi(e),b)):C(Pi(e),b);var a=I(wi(e),b,n),i=C(Ri(e),b),o=Dy.createMappedTypeNode(t,a,r,i);return b.approximateLength+=10,Dy.setEmitFlags(o,1)}(e);var n=Ui(e);if(!n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo){if(!n.callSignatures.length&&!n.constructSignatures.length)return b.approximateLength+=2,Dy.setEmitFlags(Dy.createTypeLiteralNode(void 0),1);if(1===n.callSignatures.length&&!n.constructSignatures.length){var t=n.callSignatures[0],r=k(t,163,b);return r}if(1===n.constructSignatures.length&&!n.callSignatures.length){var t=n.constructSignatures[0],r=k(t,164,b);return r}}var a=b.flags;b.flags|=4194304;var i=function(e){if(x(b))return[Dy.createPropertySignature(void 0,"...",void 0,void 0,void 0)];for(var n=[],t=0,r=e.callSignatures;t<r.length;t++){var a=r[t];n.push(k(a,158,b))}for(var i=0,o=e.constructSignatures;i<o.length;i++){var a=o[i];n.push(k(a,159,b))}if(e.stringIndexInfo){var s=2048&e.objectFlags?Yo(W,e.stringIndexInfo.isReadonly,e.stringIndexInfo.declaration):e.stringIndexInfo;n.push(L(s,0,b))}e.numberIndexInfo&&n.push(L(e.numberIndexInfo,1,b));var c=e.properties;if(!c)return n;for(var l=0,u=0,d=c;u<d.length;u++){var p=d[u];if(l++,2048&b.flags){if(4194304&p.flags)continue;24&Dy.getDeclarationModifierFlagsFromSymbol(p)&&b.tracker.reportPrivateInBaseOfClassExpression&&b.tracker.reportPrivateInBaseOfClassExpression(Dy.unescapeLeadingUnderscores(p.escapedName))}if(x(b)&&l+2<c.length-1){n.push(Dy.createPropertySignature(void 0,"... "+(c.length-l)+" more ...",void 0,void 0,void 0)),D(c[c.length-1],b,n);break}D(p,b,n)}return n.length?n:void 0}(n);b.flags=a;var o=Dy.createTypeLiteralNode(i);return b.approximateLength+=2,Dy.setEmitFlags(o,1024&b.flags?0:1)}function T(e,n){if(Dy.isImportTypeNode(e)){var t=e.typeArguments;e.qualifier&&((Dy.isIdentifier(e.qualifier)?e.qualifier:e.qualifier.right).typeArguments=t),e.typeArguments=n.typeArguments;for(var r=S(n),a=0,i=r;a<i.length;a++){var o=i[a];e.qualifier=e.qualifier?Dy.createQualifiedName(e.qualifier,o):o}return e}var t=e.typeArguments;(Dy.isIdentifier(e.typeName)?e.typeName:e.typeName.right).typeArguments=t,e.typeArguments=n.typeArguments;for(var r=S(n),s=0,c=r;s<c.length;s++){var o=c[s];e.typeName=Dy.createQualifiedName(e.typeName,o)}return e}function S(e){for(var n=e.typeName,t=[];!Dy.isIdentifier(n);)t.unshift(n.right),n=n.left;return t.unshift(n),t}}function D(e,n,t){var r=2048&Dy.getCheckFlags(e)&&33554432&n.flags?W:wa(e),a=n.enclosingDeclaration;if(n.enclosingDeclaration=void 0,n.tracker.trackSymbol&&1024&Dy.getCheckFlags(e)){var i=Dy.first(e.declarations);fi(i)&&v(i.name,a,n)}var o=O(e,n,67220415,!0);n.approximateLength+=Dy.symbolName(e).length+1,n.enclosingDeclaration=a;var s=16777216&e.flags?Dy.createToken(55):void 0;if(8208&e.flags&&!Wi(r).length)for(var c=fo(r,0),l=0,u=c;l<u.length;l++){var d=u[l],p=k(d,153,n);p.name=o,p.questionToken=s,e.valueDeclaration&&Dy.setCommentRange(p,e.valueDeclaration),t.push(p)}else{var m=n.flags;n.flags|=2048&Dy.getCheckFlags(e)?33554432:0;var f=r?C(r,n):Dy.createKeywordTypeNode(119);n.flags=m;var _=Hf(e)?[Dy.createToken(132)]:void 0;_&&(n.approximateLength+=9);var g=Dy.createPropertySignature(_,o,s,f,void 0);e.valueDeclaration&&Dy.setCommentRange(g,e.valueDeclaration),t.push(g)}}function A(e,n,t){if(Dy.some(e)){if(x(n)){if(!t)return[Dy.createTypeReferenceNode("...",void 0)];if(2<e.length)return[C(e[0],n),Dy.createTypeReferenceNode("... "+(e.length-2)+" more ...",void 0),C(e[e.length-1],n)]}for(var r=[],a=0,i=0,o=e;i<o.length;i++){var s=o[i];if(a++,x(n)&&a+2<e.length-1){r.push(Dy.createTypeReferenceNode("... "+(e.length-a)+" more ...",void 0));var c=C(e[e.length-1],n);c&&r.push(c);break}n.approximateLength+=2;var l=C(s,n);l&&r.push(l)}return r}}function L(e,n,t){var r=Dy.getNameFromIndexInfo(e)||"x",a=Dy.createKeywordTypeNode(0===n?137:134),i=Dy.createParameter(void 0,void 0,void 0,r,void 0,a,void 0),o=C(e.type||W,t);return e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,Dy.createIndexSignature(void 0,e.isReadonly?[Dy.createToken(132)]:void 0,[i],o)}function k(n,t,r){var e,a;32&r.flags&&n.target&&n.mapper&&n.target.typeParameters?a=n.target.typeParameters.map(function(e){return C(tl(e,n.mapper),r)}):e=n.typeParameters&&n.typeParameters.map(function(e){return p(e,r)});var i,o=function(i){if(i.hasRestParameter){var o=i.parameters.length-1,e=i.parameters[o],n=wa(e);if(su(n)){var t=n.typeArguments||Dy.emptyArray,s=n.target.minLength,c=n.target.hasRestElement?t.length-1:-1,r=Dy.map(t,function(e,n){var t=bf(i,o+n),r=n===c?8192:s<=n?4096:0,a=yt(1,t,r);return a.type=n===c?Bs(e):e,a});return Dy.concatenate(i.parameters.slice(0,o),r)}}return i.parameters}(n).map(function(e){return m(e,r,155===t)});if(n.thisParameter){var s=m(n.thisParameter,r);o.unshift(s)}var c=Ro(n);if(c){var l=1===c.kind?Dy.setEmitFlags(Dy.createIdentifier(c.parameterName),16777216):Dy.createThisTypeNode(),u=C(c.type,r);i=Dy.createTypePredicateNode(l,u)}else{var d=Fo(n);i=d&&C(d,r)}return 256&r.flags?i&&119===i.kind&&(i=void 0):i||(i=Dy.createKeywordTypeNode(119)),r.approximateLength+=3,Dy.createSignatureDeclaration(t,e,o,i,a)}function N(e,n){return!!Ot(n.enclosingDeclaration,e.symbol.escapedName,67897832,void 0,e.symbol.escapedName,!1)}function I(e,n,t){var r=n.flags;n.flags&=-513;var a=4&n.flags&&e.symbol.declarations[0]&&Dy.isTypeParameterDeclaration(e.symbol.declarations[0])&&N(e,n),i=a?Dy.getGeneratedNameForNode(e.symbol.declarations[0].name,24):O(e.symbol,n,67897832,!0),o=io(e),s=o&&C(o,n);return n.flags=r,Dy.createTypeParameterDeclaration(i,t,s)}function p(e,n,t){void 0===t&&(t=Yi(e));var r=t&&C(t,n);return I(e,n,r)}function m(e,a,n){var t=Dy.getDeclarationOfKind(e,149);t||ht(e)||(t=Dy.getDeclarationOfKind(e,297));var r=wa(e);t&&Ov(t)&&(r=_u(r));var i=C(r,a),o=!(8192&a.flags)&&n&&t&&t.modifiers?t.modifiers.map(Dy.getSynthesizedClone):void 0,s=t&&Dy.isRestParameter(t)||8192&Dy.getCheckFlags(e),c=s?Dy.createToken(24):void 0,l=t&&t.name?71===t.name.kind?Dy.setEmitFlags(Dy.getSynthesizedClone(t.name),16777216):146===t.name.kind?Dy.setEmitFlags(Dy.getSynthesizedClone(t.name.right),16777216):function e(n){a.tracker.trackSymbol&&Dy.isComputedPropertyName(n)&&mi(n)&&v(n,a.enclosingDeclaration,a);var t=Dy.visitEachChild(n,e,Dy.nullTransformationContext,void 0,e),r=Dy.nodeIsSynthesized(t)?t:Dy.getSynthesizedClone(t);return 184===r.kind&&(r.initializer=void 0),Dy.setEmitFlags(r,16777217)}(t.name):Dy.symbolName(e),u=t&&xo(t)||4096&Dy.getCheckFlags(e),d=u?Dy.createToken(55):void 0,p=Dy.createParameter(void 0,o,c,l,d,i,void 0);return a.approximateLength+=Dy.symbolName(e).length+3,p}function v(e,n,t){if(t.tracker.trackSymbol){var r=Wg(e.expression),a=Ot(r,r.escapedText,68268991,void 0,void 0,!0);a&&t.tracker.trackSymbol(a,n,67220415)}}function g(e,u,n,d){var t;u.tracker.trackSymbol(e,u.enclosingDeclaration,n);var r=262144&e.flags;return!r&&(u.enclosingDeclaration||64&u.flags)?(t=Dy.Debug.assertDefined(function e(n,t,r){var a=wr(n,u.enclosingDeclaration,t,!!(128&u.flags));if(!a||Pr(a[0],u.enclosingDeclaration,1===a.length?t:Or(t))){var i=hr(a?a[0]:n,u.enclosingDeclaration);if(Dy.length(i))for(var o=0,s=i;o<s.length;o++){var c=s[o],l=e(c,Or(t),!1);if(l){a=l.concat(a||[br(c,n)||n]);break}}}if(a)return a;if(r||!(6144&n.flags)){if(!r&&!d&&Dy.forEach(n.declarations,Kr))return;return[n]}}(e,n,!0)),Dy.Debug.assert(t&&0<t.length)):t=[e],t}function l(e,n){var t,r=Fg(e);return 524384&r.flags&&(t=Dy.createNodeArray(Dy.map(Ka(e),function(e){return p(e,n)}))),t}function y(e,n,t){Dy.Debug.assert(e&&0<=n&&n<e.length);var r,a,i=e[n];if(512&t.flags&&n<e.length-1){var o=i,s=e[n+1];if(1&Dy.getCheckFlags(s)){var c=(a=2097152&o.flags?Yt(o):o,Dy.concatenate(Ba(a),Ka(a)));r=A(Dy.map(c,s.mapper),t)}else r=l(i,t)}return r}function M(e,l,n,u){var t=g(e,l,n,!(16384&l.flags)),r=67220415===n;if(Dy.some(t[0].declarations,Kr)){var a=1<t.length?_(t,t.length-1,1):void 0,i=u||y(t,0,l),o=function(e,n){var t=Dy.getDeclarationOfKind(e,277);if(t&&void 0!==t.moduleName)return t.moduleName;if(!t){if(n.tracker.trackReferencedAmbientModule){var r=Dy.filter(e.declarations,Dy.isAmbientModule);if(Dy.length(r))for(var a=0,i=r;a<i.length;a++){var o=i[a];n.tracker.trackReferencedAmbientModule(o,e)}}if(Ly.test(e.escapedName))return e.escapedName.substring(1,e.escapedName.length-1)}if(!n.enclosingDeclaration||!n.tracker.moduleResolverHost)return Ly.test(e.escapedName)?e.escapedName.substring(1,e.escapedName.length-1):Dy.getSourceFileOfNode(Dy.getNonAugmentationDeclaration(e)).fileName;var s=Dy.getSourceFileOfNode(Dy.getOriginalNode(n.enclosingDeclaration)),c=Lt(e),l=c.specifierCache&&c.specifierCache.get(s.path);if(!l){var u=R.out||R.outFile,d=n.tracker.moduleResolverHost,p=u?__assign({},R,{baseUrl:d.getCommonSourceDirectory()}):R;l=Dy.first(Dy.moduleSpecifiers.getModuleSpecifiers(e,p,s,d,E.getSourceFiles(),{importModuleSpecifierPreference:u?"non-relative":"relative"},E.redirectTargetsMap)),c.specifierCache=c.specifierCache||Dy.createMap(),c.specifierCache.set(s.path,l)}return l}(t[0],l),s=Dy.createLiteralTypeNode(Dy.createLiteral(o));if(l.tracker.trackExternalModuleSymbolOfImportTypeNode&&l.tracker.trackExternalModuleSymbolOfImportTypeNode(t[0]),l.approximateLength+=o.length+10,!a||Dy.isEntityName(a)){if(a){var c=Dy.isIdentifier(a)?a:a.right;c.typeArguments=void 0}return Dy.createImportTypeNode(s,a,i,r)}var d=function e(n){return Dy.isIndexedAccessTypeNode(n.objectType)?e(n.objectType):n}(a),p=d.objectType.typeName;return Dy.createIndexedAccessTypeNode(Dy.createImportTypeNode(s,p,i,r),d.indexType)}var m=_(t,t.length-1,0);if(Dy.isIndexedAccessTypeNode(m))return m;if(r)return Dy.createTypeQueryNode(m);var c=Dy.isIdentifier(m)?m:m.right,f=c.typeArguments;return c.typeArguments=void 0,Dy.createTypeReferenceNode(m,f);function _(e,n,t){var r=n===e.length-1?u:y(e,n,l),a=e[n];0===n&&(l.flags|=16777216);var i=Zr(a,l);l.approximateLength+=i.length+1,0===n&&(l.flags^=16777216);var o=e[n-1];if(!(16&l.flags)&&o&&hi(o)&&hi(o).get(a.escapedName)===a){var s=_(e,n-1,t);return Dy.isIndexedAccessTypeNode(s)?Dy.createIndexedAccessTypeNode(s,Dy.createLiteralTypeNode(Dy.createLiteral(i))):Dy.createIndexedAccessTypeNode(Dy.createTypeReferenceNode(s,r),Dy.createLiteralTypeNode(Dy.createLiteral(i)))}var c=Dy.setEmitFlags(Dy.createIdentifier(i,r),16777216);if(c.symbol=a,t<n){var s=_(e,n-1,t);return Dy.isEntityName(s)?Dy.createQualifiedName(s,c):Dy.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return c}}function O(e,s,n,t){var r=g(e,s,n);return!t||1===r.length||s.encounteredError||65536&s.flags||(s.encounteredError=!0),function e(n,t){var r=y(n,t,s),a=n[t];0===t&&(s.flags|=16777216);var i=Zr(a,s);0===t&&(s.flags^=16777216);var o=Dy.setEmitFlags(Dy.createIdentifier(i,r),16777216);return o.symbol=a,0<t?Dy.createQualifiedName(e(n,t-1),o):o}(r,r.length-1)}}(),T=yt(4,"undefined");T.declarations=[];var A,M=yt(4,"arguments"),O=yt(4,"require"),y={getNodeCount:function(){return Dy.sum(E.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return Dy.sum(E.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return Dy.sum(E.getSourceFiles(),"symbolCount")+i},getTypeCount:function(){return r},isUndefinedSymbol:function(e){return e===T},isArgumentsSymbol:function(e){return e===M},isUnknownSymbol:function(e){return e===H},getMergedSymbol:gr,getDiagnostics:ov,getGlobalDiagnostics:function(){return sv(),Gn.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(e,n){return(n=Dy.getParseTreeNode(n))?function(e,n){if(e=e.exportSymbol||e,71===n.kind&&(Dy.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),Dy.isExpressionNode(n)&&!Dy.isAssignmentTarget(n))){var t=m_(n);if(Er(kt(n).resolvedSymbol)===e)return t}return wa(e)}(e,n):J},getSymbolsOfParameterPropertyDeclaration:function(e,n){var t,r,a,i,o,s,c=Dy.getParseTreeNode(e,Dy.isParameter);return void 0===c?Dy.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(t=c,r=Dy.escapeLeadingUnderscores(n),a=t.parent,i=t.parent.parent,o=It(a.locals,r,67220415),s=It(hi(i.symbol),r,67220415),o&&s?[o,s]:Dy.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration"))},getDeclaredTypeOfSymbol:ri,getPropertiesOfType:Ji,getPropertyOfType:function(e,n){return po(e,Dy.escapeLeadingUnderscores(n))},getTypeOfPropertyOfType:function(e,n){return oa(e,Dy.escapeLeadingUnderscores(n))},getIndexInfoOfType:vo,getSignaturesOfType:fo,getIndexTypeOfType:yo,getBaseTypes:Ja,getBaseTypeOfLiteralType:ru,getWidenedType:xu,getTypeFromTypeNode:function(e){var n=Dy.getParseTreeNode(e,Dy.isTypeNode);return n?Fc(n):J},getParameterType:Ef,getPromisedTypeOfPromise:F_,getReturnTypeOfSignature:Fo,getNullableType:fu,getNonNullableType:gu,typeToTypeNode:v.typeToTypeNode,indexInfoToIndexSignatureDeclaration:v.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:v.signatureToSignatureDeclaration,symbolToEntityName:v.symbolToEntityName,symbolToExpression:v.symbolToExpression,symbolToTypeParameterDeclarations:v.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:v.symbolToParameterDeclaration,typeParameterToDeclaration:v.typeParameterToDeclaration,getSymbolsInScope:function(e,n){return(e=Dy.getParseTreeNode(e))?function(t,r){if(8388608&t.flags)return[];var a=Dy.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!Nt(t)&&s(t.locals,r),t.kind){case 242:s(vr(t).exports,2623475&r);break;case 241:s(vr(t).exports,8&r);break;case 207:var e=t.name;e&&o(t.symbol,r);case 238:case 239:i||s(hi(vr(t)),67897832&r);break;case 194:var n=t.name;n&&o(t.symbol,r)}Dy.introducesArgumentsExoticObject(t)&&o(M,r),i=Dy.hasModifier(t,32),t=t.parent}s(pn,r)}(),a.delete("this"),Eo(a);function o(e,n){if(Dy.getCombinedLocalAndExportSymbolFlags(e)&n){var t=e.escapedName;a.has(t)||a.set(t,e)}}function s(e,n){n&&e.forEach(function(e){o(e,n)})}}(e,n):[]},getSymbolAtLocation:function(e){return(e=Dy.getParseTreeNode(e))?fv(e):void 0},getShorthandAssignmentValueSymbol:function(e){return(e=Dy.getParseTreeNode(e))?function(e){if(e&&274===e.kind)return nr(e.name,69317567)}(e):void 0},getExportSpecifierLocalTargetSymbol:function(e){var n,t=Dy.getParseTreeNode(e,Dy.isExportSpecifier);return t?(n=t).parent.parent.moduleSpecifier?Wt(n.parent.parent,n):nr(n.propertyName||n.name,70107135):void 0},getExportSymbolOfSymbol:function(e){return gr(e.exportSymbol||e)},getTypeAtLocation:function(e){return(e=Dy.getParseTreeNode(e))?_v(e):J},getPropertySymbolOfDestructuringAssignment:function(e){var n,t,r=Dy.getParseTreeNode(e,Dy.isIdentifier);return r?(t=function e(n){if(Dy.Debug.assert(186===n.kind||185===n.kind),225===n.parent.kind){var t=Eg(n.parent.expression,n.parent.awaitModifier);return e_(n,t||J)}if(202===n.parent.kind){var t=m_(n.parent.right);return e_(n,t||J)}if(273===n.parent.kind){var r=e(n.parent.parent);return Zf(r||J,n.parent)}Dy.Debug.assert(185===n.parent.kind);var a=e(n.parent),i=Tg(a||J,n.parent,!1,!1)||J;return $f(n.parent,a,n.parent.elements.indexOf(n),i||J)}((n=r).parent.parent))&&po(t,n.escapedText):void 0},signatureToString:function(e,n,t,r){return Wr(e,Dy.getParseTreeNode(n),t,r)},typeToString:function(e,n,t){return qr(e,Dy.getParseTreeNode(n),t)},symbolToString:function(e,n,t,r){return Ur(e,Dy.getParseTreeNode(n),t,r)},typePredicateToString:function(e,n,t){return Jr(e,Dy.getParseTreeNode(n),t)},writeSignature:function(e,n,t,r,a){return Wr(e,Dy.getParseTreeNode(n),t,r,a)},writeType:function(e,n,t,r){return qr(e,Dy.getParseTreeNode(n),t,r)},writeSymbol:function(e,n,t,r,a){return Ur(e,Dy.getParseTreeNode(n),t,r,a)},writeTypePredicate:function(e,n,t,r){return Jr(e,Dy.getParseTreeNode(n),t,r)},getAugmentedPropertiesOfType:yv,getRootSymbols:function e(n){var t=bv(n);return t?Dy.flatMap(t,e):[n]},getContextualType:function(e){var n=Dy.getParseTreeNode(e,Dy.isExpression);return n?vp(n):void 0},getContextualTypeForObjectLiteralElement:function(e){var n=Dy.getParseTreeNode(e,Dy.isObjectLiteralElementLike);return n?dp(n):void 0},getContextualTypeForArgumentAtIndex:function(e,n){var t=Dy.getParseTreeNode(e,Dy.isCallLikeExpression);return t&&sp(t,n)},getContextualTypeForJsxAttribute:function(e){var n=Dy.getParseTreeNode(e,Dy.isJsxAttributeLike);return n&&fp(n)},isContextSensitive:il,getFullyQualifiedName:er,getResolvedSignature:function(e,n,t){return h(e,n,t,!1)},getResolvedSignatureForSignatureHelp:function(e,n,t){return h(e,n,t,!0)},getConstantValue:function(e){var n=Dy.getParseTreeNode(e,Vv);return n?Bv(n):void 0},isValidPropertyAccess:function(e,n){var t=Dy.getParseTreeNode(e,Dy.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!t&&function(e,n){switch(e.kind){case 187:return Em(e,97===e.expression.kind,n,xu(__(e.expression)));case 146:return Em(e,!1,n,xu(__(e.left)));case 181:return Em(e,!1,n,Fc(e))}}(t,Dy.escapeLeadingUnderscores(n))},isValidPropertyAccessForCompletions:function(e,n,t){var r,a,i,o,s,c=Dy.getParseTreeNode(e,Dy.isPropertyAccessExpression);return!!c&&(a=n,i=t,Em(r=c,181!==r.kind&&97===r.expression.kind,i.escapedName,a)&&(!(8192&i.flags)||(s=fo(gu(oa(o=a,i.escapedName)),0),Dy.Debug.assert(0!==s.length),s.some(function(e){var n=wo(e);return!n||fl(o,function(e,n,t){if(!e.typeParameters)return n;var r=ku(e.typeParameters,e,0);return Vu(r.inferences,t,n),tl(n,Ho(e,zu(r)))}(e,n,o))}))))},getSignatureFromDeclaration:function(e){var n=Dy.getParseTreeNode(e,Dy.isFunctionLike);return n?No(n):void 0},isImplementationOfOverload:function(e){var n=Dy.getParseTreeNode(e,Dy.isFunctionLike);return n?Mv(n):void 0},getImmediateAliasedSymbol:function(e){Dy.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var n=Lt(e);if(!n.immediateTarget){var t=Kt(e);if(!t)return Dy.Debug.fail();n.immediateTarget=zt(t,!0)}return n.immediateTarget},getAliasedSymbol:Yt,getEmitResolver:function(e,n){return ov(e,n),m},getExportsOfModule:ur,getExportsAndPropertiesOfModule:function(e){var n=ur(e),t=sr(e);return t!==e&&Dy.addRange(n,Ji(wa(t))),n},getSymbolWalker:Dy.createGetSymbolWalker(function(e){return Vo(e)||W},Ro,Fo,Ja,Ui,wa,Xu,go,Yi,Wg),getAmbientModules:function(){return xe||(xe=[],pn.forEach(function(e,n){Ly.test(n)&&xe.push(e)})),xe},getAllAttributesTypeFromJsxOpeningLikeElement:function(e){var n,t=Dy.getParseTreeNode(e,Dy.isJsxOpeningLikeElement);return t?Fp((n=t).tagName)?Qp(n):Zp(n,!0):void 0},getJsxIntrinsicTagNamesAt:function(e){var n=Kp(Ay.IntrinsicElements,e);return n?Ji(n):Dy.emptyArray},isOptionalParameter:function(e){var n=Dy.getParseTreeNode(e,Dy.isParameter);return!!n&&xo(n)},tryGetMemberInModuleExports:function(e,n){return dr(Dy.escapeLeadingUnderscores(e),n)},tryGetMemberInModuleExportsAndProperties:function(e,n){return function(e,n){var t=dr(e,n);if(t)return t;var r=sr(n);if(r!==n){var a=wa(r);return 32764&a.flags?void 0:po(a,e)}}(Dy.escapeLeadingUnderscores(e),n)},tryFindAmbientModuleWithoutAugmentations:function(e){return So(e,!1)},getApparentType:so,getUnionType:Qs,createAnonymousType:Ir,createSignature:Si,createSymbol:yt,createIndexInfo:Yo,getAnyType:function(){return W},getStringType:function(){return ee},getNumberType:function(){return ne},createPromiseType:Mf,createArrayType:Bs,getBooleanType:function(){return ie},getFalseType:function(e){return e?te:re},getTrueType:function(e){return e?ae:n},getVoidType:function(){return se},getUndefinedType:function(){return Y},getNullType:function(){return Z},getESSymbolType:function(){return oe},getNeverType:function(){return ce},isSymbolAccessible:Gr,isArrayLikeType:Yl,isTypeInvalidDueToUnionDiscriminant:function(r,e){return e.properties.some(function(e){var n=e.name&&Dy.getTextOfPropertyName(e.name),t=void 0===n?void 0:oa(r,n);return!!t&&!!(448&t.flags)&&!ul(_v(e),t)})},getAllPossiblePropertiesOfTypes:function(e){var n=Qs(e);if(!(262144&n.flags))return yv(n);for(var t=Dy.createSymbolTable(),r=0,a=e;r<a.length;r++)for(var i=a[r],o=0,s=yv(i);o<s.length;o++){var c=s[o].escapedName;if(!t.has(c)){var l=co(n,c);l&&t.set(c,l)}}return Dy.arrayFrom(t.values())},getSuggestionForNonexistentProperty:function(e,n){return gm(e,n)},getSuggestionForNonexistentSymbol:function(e,n,t){return r=e,a=Dy.escapeLeadingUnderscores(n),(i=vm(r,a,t))&&Dy.symbolName(i);var r,a,i},getSuggestionForNonexistentExport:function(e,n){return(t=ym(e,n))&&Dy.symbolName(t);var t},getBaseConstraintOfType:eo,getDefaultFromTypeParameter:function(e){return e&&65536&e.flags?io(e):void 0},resolveName:function(e,n,t,r){return Ot(n,Dy.escapeLeadingUnderscores(e),t,void 0,void 0,!1,r)},getJsxNamespace:function(e){return Dy.unescapeLeadingUnderscores(ft(e))},getAccessibleSymbolChain:wr,getTypePredicateOfSignature:Ro,resolveExternalModuleSymbol:sr,tryGetThisTypeAt:function(e){return(e=Dy.getParseTreeNode(e))&&Zd(e)},getTypeArgumentConstraint:function(e){var n=Dy.getParseTreeNode(e,Dy.isTypeNode);return n&&function(e){var n=Dy.tryCast(e.parent,Dy.isTypeReferenceType);if(n){var t=L_(n),r=Yi(t[n.typeArguments.indexOf(e)]);return r&&tl(r,jc(t,D_(n,t)))}}(n)},getSuggestionDiagnostics:function(e,n){if(Dy.skipTypeChecking(e,R))return Dy.emptyArray;var r;try{return w=n,rv(e),Dy.Debug.assert(!!(1&kt(e).flags)),r=Dy.addRange(r,Vn.get(e.fileName)),e.isDeclarationFile||av(0)&&av(1)||J_(iv(e),function(e,n,t){Dy.containsParseError(e)||av(n)||(r||(r=[])).push(__assign({},t,{category:Dy.DiagnosticCategory.Suggestion}))}),r||Dy.emptyArray}finally{w=void 0}},runWithCancellationToken:function(e,n){try{return w=e,n(y)}finally{w=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Ka};function h(e,n,t,r){var a=Dy.getParseTreeNode(e,Dy.isCallLikeExpression);A=t;var i=a?af(a,n,r):void 0;return A=void 0,i}var b=Dy.createMap(),S=Dy.createMap(),N=Dy.createMap(),V=Dy.createMap(),B=Dy.createMap(),K=[],j=Dy.createMap(),H=yt(4,"unknown"),U=yt(0,"__resolving__"),W=Cr(1,"any"),q=Cr(1,"any"),z=Cr(1,"any"),J=Cr(1,"error"),X=Cr(2,"unknown"),Y=Cr(8192,"undefined"),Q=k?Y:Cr(134225920,"undefined"),Z=Cr(16384,"null"),$=k?Z:Cr(134234112,"null"),ee=Cr(4,"string"),ne=Cr(8,"number"),te=Cr(256,"false"),re=Cr(256,"false"),ae=Cr(256,"true"),n=Cr(256,"true");te.flags|=33554432,ae.flags|=33554432,(ae.regularType=n).freshType=ae,(te.regularType=re).freshType=te;var ie=Dr([re,n]);Dr([re,ae]),Dr([te,n]),Dr([te,ae]);var oe=Cr(1024,"symbol"),se=Cr(4096,"void"),ce=Cr(32768,"never"),le=Cr(32768,"never"),ue=Cr(32768,"never"),de=Cr(16777216,"object"),pe=Qs([ee,ne,oe]),me=g?ee:pe,fe=Ir(void 0,I,Dy.emptyArray,Dy.emptyArray,void 0,void 0),e=yt(2048,"__type");e.members=Dy.createSymbolTable();var _e=Ir(e,I,Dy.emptyArray,Dy.emptyArray,void 0,void 0),ge=Ir(void 0,I,Dy.emptyArray,Dy.emptyArray,void 0,void 0);ge.instantiations=Dy.createMap();var ve=Ir(void 0,I,Dy.emptyArray,Dy.emptyArray,void 0,void 0);ve.flags|=536870912;var ye=Ir(void 0,I,Dy.emptyArray,Dy.emptyArray,void 0,void 0),he=Ir(void 0,I,Dy.emptyArray,Dy.emptyArray,void 0,void 0),be=Ir(void 0,I,Dy.emptyArray,Dy.emptyArray,void 0,void 0),Ee=xr(65536),Te=xr(65536);Te.constraint=Ee;var Se,xe,Ce,De,Ae,Le,ke,Ne,Ie,Me,Oe,we,Pe,Re,Fe,Ge,Ve,Be,Ke,je,He,Ue,We,qe,ze,Je,Xe,Ye,Qe,Ze,$e,en,nn,tn,rn=xr(65536),an=Do("<<unresolved>>",0,W),on=Si(void 0,void 0,void 0,Dy.emptyArray,W,void 0,0,!1,!1),sn=Si(void 0,void 0,void 0,Dy.emptyArray,J,void 0,0,!1,!1),cn=Si(void 0,void 0,void 0,Dy.emptyArray,W,void 0,0,!1,!1),ln=Si(void 0,void 0,void 0,Dy.emptyArray,le,void 0,0,!1,!1),un=[cn],dn=Yo(ee,!0),pn=Dy.createSymbolTable(),mn=Dy.createMap(),fn=Dy.createMap(),_n=0,gn=0,vn=0,yn=!1,hn=wc(""),bn=wc(0),En=[],Tn=[],Sn=[],xn=0,Cn=10,Dn=[],An=[],Ln=[],kn=[],Nn=[],In=[],Mn=[],On=[],wn=[],Pn=[],Rn=[],Fn=[],Gn=Dy.createDiagnosticCollection(),Vn=Dy.createMultiMap();(tn=nn||(nn={}))[tn.None=0]="None",tn[tn.TypeofEQString=1]="TypeofEQString",tn[tn.TypeofEQNumber=2]="TypeofEQNumber",tn[tn.TypeofEQBoolean=4]="TypeofEQBoolean",tn[tn.TypeofEQSymbol=8]="TypeofEQSymbol",tn[tn.TypeofEQObject=16]="TypeofEQObject",tn[tn.TypeofEQFunction=32]="TypeofEQFunction",tn[tn.TypeofEQHostObject=64]="TypeofEQHostObject",tn[tn.TypeofNEString=128]="TypeofNEString",tn[tn.TypeofNENumber=256]="TypeofNENumber",tn[tn.TypeofNEBoolean=512]="TypeofNEBoolean",tn[tn.TypeofNESymbol=1024]="TypeofNESymbol",tn[tn.TypeofNEObject=2048]="TypeofNEObject",tn[tn.TypeofNEFunction=4096]="TypeofNEFunction",tn[tn.TypeofNEHostObject=8192]="TypeofNEHostObject",tn[tn.EQUndefined=16384]="EQUndefined",tn[tn.EQNull=32768]="EQNull",tn[tn.EQUndefinedOrNull=65536]="EQUndefinedOrNull",tn[tn.NEUndefined=131072]="NEUndefined",tn[tn.NENull=262144]="NENull",tn[tn.NEUndefinedOrNull=524288]="NEUndefinedOrNull",tn[tn.Truthy=1048576]="Truthy",tn[tn.Falsy=2097152]="Falsy",tn[tn.All=4194303]="All",tn[tn.BaseStringStrictFacts=933633]="BaseStringStrictFacts",tn[tn.BaseStringFacts=3145473]="BaseStringFacts",tn[tn.StringStrictFacts=4079361]="StringStrictFacts",tn[tn.StringFacts=4194049]="StringFacts",tn[tn.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",tn[tn.EmptyStringFacts=3145473]="EmptyStringFacts",tn[tn.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",tn[tn.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",tn[tn.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",tn[tn.BaseNumberFacts=3145346]="BaseNumberFacts",tn[tn.NumberStrictFacts=4079234]="NumberStrictFacts",tn[tn.NumberFacts=4193922]="NumberFacts",tn[tn.ZeroStrictFacts=3030658]="ZeroStrictFacts",tn[tn.ZeroFacts=3145346]="ZeroFacts",tn[tn.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",tn[tn.NonZeroFacts=4193922]="NonZeroFacts",tn[tn.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",tn[tn.BaseBooleanFacts=3145092]="BaseBooleanFacts",tn[tn.BooleanStrictFacts=4078980]="BooleanStrictFacts",tn[tn.BooleanFacts=4193668]="BooleanFacts",tn[tn.FalseStrictFacts=3030404]="FalseStrictFacts",tn[tn.FalseFacts=3145092]="FalseFacts",tn[tn.TrueStrictFacts=1981828]="TrueStrictFacts",tn[tn.TrueFacts=4193668]="TrueFacts",tn[tn.SymbolStrictFacts=1981320]="SymbolStrictFacts",tn[tn.SymbolFacts=4193160]="SymbolFacts",tn[tn.ObjectStrictFacts=1972176]="ObjectStrictFacts",tn[tn.ObjectFacts=4184016]="ObjectFacts",tn[tn.FunctionStrictFacts=1970144]="FunctionStrictFacts",tn[tn.FunctionFacts=4181984]="FunctionFacts",tn[tn.UndefinedFacts=2457472]="UndefinedFacts",tn[tn.NullFacts=2340752]="NullFacts",tn[tn.EmptyObjectStrictFacts=4079615]="EmptyObjectStrictFacts",tn[tn.EmptyObjectFacts=4194303]="EmptyObjectFacts";var Bn,Kn,jn,Hn,Un,Wn,qn,zn,Jn,Xn,Yn,Qn,Zn,$n,et,nt,tt=Dy.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),rt=Dy.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),at=Dy.createMapFromTemplate({string:ee,number:ne,boolean:ie,symbol:oe,undefined:Y}),it=Qs(Dy.arrayFrom(tt.keys(),wc)),ot=Dy.createMap(),st=Dy.createMap(),ct=Dy.createMap(),lt=Dy.createMap(),ut=Dy.createMap(),dt=Dy.createMap();(Hn=jn||(jn={}))[Hn.Type=0]="Type",Hn[Hn.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",Hn[Hn.DeclaredType=2]="DeclaredType",Hn[Hn.ResolvedReturnType=3]="ResolvedReturnType",Hn[Hn.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",Hn[Hn.EnumTagType=5]="EnumTagType",Hn[Hn.JSDocTypeReference=6]="JSDocTypeReference",(Wn=Un||(Un={}))[Wn.Normal=0]="Normal",Wn[Wn.SkipContextSensitive=1]="SkipContextSensitive",Wn[Wn.Inferential=2]="Inferential",Wn[Wn.Contextual=3]="Contextual",(zn=qn||(qn={}))[zn.None=0]="None",zn[zn.Bivariant=1]="Bivariant",zn[zn.Strict=2]="Strict",(Xn=Jn||(Jn={}))[Xn.IncludeReadonly=1]="IncludeReadonly",Xn[Xn.ExcludeReadonly=2]="ExcludeReadonly",Xn[Xn.IncludeOptional=4]="IncludeOptional",Xn[Xn.ExcludeOptional=8]="ExcludeOptional",(Qn=Yn||(Yn={}))[Qn.None=0]="None",Qn[Qn.Source=1]="Source",Qn[Qn.Target=2]="Target",Qn[Qn.Both=3]="Both",($n=Zn||(Zn={})).resolvedExports="resolvedExports",$n.resolvedMembers="resolvedMembers",(nt=et||(et={}))[nt.Local=0]="Local",nt[nt.Parameter=1]="Parameter";var pt=Dy.createSymbolTable();pt.set(T.escapedName,T);var mt=Dy.and(Zg,function(e){return!Dy.isAccessor(e)});return function(){for(var e=0,n=E.getSourceFiles();e<n.length;e++){var t=n[e];Dy.bindSourceFile(t,R)}var r,i,a,o;Se=Dy.createMap();for(var s=0,c=E.getSourceFiles();s<c.length;s++){var t=c[s];if(!t.redirectInfo&&(Dy.isExternalOrCommonJsModule(t)||Dt(pn,t.locals),t.jsGlobalAugmentations&&Dt(pn,t.jsGlobalAugmentations),t.patternAmbientModules&&t.patternAmbientModules.length&&(Ce=Dy.concatenate(Ce,t.patternAmbientModules)),t.moduleAugmentations.length&&(r||(r=[])).push(t.moduleAugmentations),t.symbol&&t.symbol.globalExports)){var l=t.symbol.globalExports;l.forEach(function(e,n){pn.has(n)||pn.set(n,e)})}}if(r)for(var u=0,d=r;u<d.length;u++)for(var p=d[u],m=0,f=p;m<f.length;m++){var _=f[m];Dy.isGlobalScopeAugmentation(_.parent)&&At(_)}if(i=pn,a=pt,o=Dy.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,a.forEach(function(e,n){var t,r,a=i.get(n);a?Dy.forEach(a.declarations,(t=Dy.unescapeLeadingUnderscores(n),r=o,function(e){return Gn.add(Dy.createDiagnosticForNode(e,r,t))})):i.set(n,e)}),Lt(T).type=Q,Lt(M).type=Ss("IArguments",0,!0),Lt(H).type=J,Le=Ss("Array",1,!0),De=Ss("Object",0,!0),Ae=Ss("Function",0,!0),Ne=Ss("String",0,!0),Ie=Ss("Number",0,!0),Me=Ss("Boolean",0,!0),Oe=Ss("RegExp",0,!0),Pe=Bs(W),(Re=Bs(q))===fe&&(Re=Ir(void 0,I,Dy.emptyArray,Dy.emptyArray,void 0,void 0)),ke=ws("ReadonlyArray",1),Fe=ke?Ps(ke,[W]):Pe,we=ws("ThisType",1),r)for(var g=0,v=r;g<v.length;g++)for(var p=v[g],y=0,h=p;y<h.length;y++){var _=h[y];Dy.isGlobalScopeAugmentation(_.parent)||At(_)}function b(e,a){e.forEach(function(e,n){var t=a.get(n),r=e.blockScoped?Dy.Diagnostics.Cannot_redeclare_block_scoped_variable_0:Dy.Diagnostics.Duplicate_identifier_0;e.instances.forEach(function(e){Ct(e,r,n,t.instances[0])})})}Se.forEach(function(e){var n=e.firstFile,t=e.secondFile,r=e.firstFileInstances,a=e.secondFileInstances,i=Dy.arrayFrom(r.keys());if(i.length<8)return b(r,a),void b(a,r);var o=i.join(", ");Gn.add(_t(Dy.createDiagnosticForNode(n,Dy.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,o),Dy.createDiagnosticForNode(t,Dy.Diagnostics.Conflicts_are_in_this_file))),Gn.add(_t(Dy.createDiagnosticForNode(t,Dy.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,o),Dy.createDiagnosticForNode(n,Dy.Diagnostics.Conflicts_are_in_this_file)))}),Se=void 0}(),y;function ft(e){if(e){var n=Dy.getSourceFileOfNode(e);if(n){if(n.localJsxNamespace)return n.localJsxNamespace;var t=n.pragmas.get("jsx");if(t){var r=Dy.isArray(t)?t[0]:t;if(n.localJsxFactory=Dy.parseIsolatedEntityName(r.arguments.factory,P),n.localJsxFactory)return n.localJsxNamespace=Wg(n.localJsxFactory).escapedText}}}return Bn||(Bn="React",R.jsxFactory?(Kn=Dy.parseIsolatedEntityName(R.jsxFactory,P))&&(Bn=Wg(Kn).escapedText):R.reactNamespace&&(Bn=Dy.escapeLeadingUnderscores(R.reactNamespace))),Bn}function _t(e){for(var n,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e.relatedInformation||(e.relatedInformation=[]),(n=e.relatedInformation).push.apply(n,t),e}function gt(e,n,t,r,a,i){var o=e?Dy.createDiagnosticForNode(e,n,t,r,a,i):Dy.createCompilerDiagnostic(n,t,r,a,i);return Gn.add(o),o}function vt(e,n,t,r,a,i,o){var s,c;s=e,c="message"in t?Dy.createDiagnosticForNode(n,t,r,a,i,o):Dy.createDiagnosticForNodeFromMessageChain(n,t),s?Gn.add(c):Vn.add(c.file.fileName,__assign({},c,{category:Dy.DiagnosticCategory.Suggestion}))}function yt(e,n,t){i++;var r=new a(33554432|e,n);return r.checkFlags=t||0,r}function ht(e){return 0!=(33554432&e.flags)}function bt(e){var n=0;return 2&e&&(n|=67220415),1&e&&(n|=67220414),4&e&&(n|=0),8&e&&(n|=68008959),16&e&&(n|=67219887),32&e&&(n|=68008383),64&e&&(n|=67897736),256&e&&(n|=68008191),128&e&&(n|=68008831),512&e&&(n|=110735),8192&e&&(n|=67212223),32768&e&&(n|=67154879),65536&e&&(n|=67187647),262144&e&&(n|=67635688),524288&e&&(n|=67897832),2097152&e&&(n|=2097152),n}function Et(e,n){n.mergeId||(n.mergeId=ky,ky++),Dn[n.mergeId]=e}function Tt(e){var n=yt(e.flags,e.escapedName);return n.declarations=e.declarations?e.declarations.slice():[],n.parent=e.parent,e.valueDeclaration&&(n.valueDeclaration=e.valueDeclaration),e.constEnumOnlyModule&&(n.constEnumOnlyModule=!0),e.members&&(n.members=Dy.cloneMap(e.members)),e.exports&&(n.exports=Dy.cloneMap(e.exports)),Et(n,e),n}function St(e,n){if(!(e.flags&bt(n.flags))||67108864&(n.flags|e.flags))Dy.Debug.assert(n!==e),33554432&e.flags||(e=Tt(e)),512&n.flags&&512&e.flags&&e.constEnumOnlyModule&&!n.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=n.flags,n.valueDeclaration&&(!e.valueDeclaration||Dy.isAssignmentDeclaration(e.valueDeclaration)&&!Dy.isAssignmentDeclaration(n.valueDeclaration)||Dy.isEffectiveModuleDeclaration(e.valueDeclaration)&&!Dy.isEffectiveModuleDeclaration(n.valueDeclaration))&&(e.valueDeclaration=n.valueDeclaration),Dy.addRange(e.declarations,n.declarations),n.members&&(e.members||(e.members=Dy.createSymbolTable()),Dt(e.members,n.members)),n.exports&&(e.exports||(e.exports=Dy.createSymbolTable()),Dt(e.exports,n.exports)),Et(e,n);else if(1024&e.flags)gt(Dy.getNameOfDeclaration(n.declarations[0]),Dy.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ur(e));else{var t=!!(384&e.flags||384&n.flags),r=!!(2&e.flags||2&n.flags),a=t?Dy.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r?Dy.Diagnostics.Cannot_redeclare_block_scoped_variable_0:Dy.Diagnostics.Duplicate_identifier_0,i=n.declarations&&Dy.getSourceFileOfNode(n.declarations[0]),o=e.declarations&&Dy.getSourceFileOfNode(e.declarations[0]);if(i&&o&&Se&&!t&&i!==o){var s=-1===Dy.comparePaths(i.path,o.path)?i:o,c=s===i?o:i,l=s.path+"|"+c.path,u=Se.get(l)||{firstFile:s,secondFile:c,firstFileInstances:Dy.createMap(),secondFileInstances:Dy.createMap()},d=Ur(n),p=u.firstFileInstances.get(d)||{instances:[],blockScoped:r},m=u.secondFileInstances.get(d)||{instances:[],blockScoped:r};return Dy.forEach(n.declarations,function(e){var n=(Dy.getExpandoInitializer(e,!1)?Dy.getNameOfExpando(e):Dy.getNameOfDeclaration(e))||e;(i===s?p:m).instances.push(n)}),Dy.forEach(e.declarations,function(e){var n=(Dy.getExpandoInitializer(e,!1)?Dy.getNameOfExpando(e):Dy.getNameOfDeclaration(e))||e;(o===s?p:m).instances.push(n)}),u.firstFileInstances.set(d,p),u.secondFileInstances.set(d,m),Se.set(l,u),e}var f=Ur(n);xt(n,a,f,e),xt(e,a,f,n)}return e}function xt(e,n,t,r){Dy.forEach(e.declarations,function(e){Ct((Dy.getExpandoInitializer(e,!1)?Dy.getNameOfExpando(e):Dy.getNameOfDeclaration(e))||e,n,t,r.declarations&&r.declarations[0])})}function Ct(e,n,t,r){var a,i,o,s,c,l,u,d=(i=n,o=t,u=(a=e)?Dy.createDiagnosticForNode(a,i,o,s,c,l):Dy.createCompilerDiagnostic(i,o,s,c,l),Gn.lookup(u)||(Gn.add(u),u));r&&Dy.length(d.relatedInformation)<5&&_t(d,Dy.length(d.relatedInformation)?Dy.createDiagnosticForNode(r,Dy.Diagnostics.and_here):Dy.createDiagnosticForNode(r,Dy.Diagnostics._0_was_also_declared_here,t))}function Dt(t,e){e.forEach(function(e,n){t.set(n,t.has(n)?St(t.get(n),e):e)})}function At(e){var n=e.parent;if(n.symbol.declarations[0]===n)if(Dy.isGlobalScopeAugmentation(n))Dt(pn,n.symbol.exports);else{var t=ar(e,e,4194304&e.parent.parent.flags?void 0:Dy.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!t)return;1920&(t=sr(t)).flags?t=St(t,n.symbol):gt(e,Dy.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else Dy.Debug.assert(1<n.symbol.declarations.length)}function Lt(e){if(33554432&e.flags)return e;var n=My(e);return An[n]||(An[n]={})}function kt(e){var n=Iy(e);return Ln[n]||(Ln[n]={flags:0})}function Nt(e){return 277===e.kind&&!Dy.isExternalOrCommonJsModule(e)}function It(e,n,t){if(t){var r=e.get(n);if(r){if(Dy.Debug.assert(0==(1&Dy.getCheckFlags(r)),"Should never get an instantiated symbol here."),r.flags&t)return r;if(2097152&r.flags){var a=Yt(r);if(a===H||a.flags&t)return r}}}}function Mt(n,e){var t=Dy.getSourceFileOfNode(n),r=Dy.getSourceFileOfNode(e);if(t!==r){if(C&&(t.externalModuleIndicator||r.externalModuleIndicator)||!R.outFile&&!R.out||Yu(e)||4194304&n.flags)return!0;if(s(e,n))return!0;var a=E.getSourceFiles();return a.indexOf(t)<=a.indexOf(r)}if(n.pos<=e.pos){if(184!==n.kind)return 235===n.kind?!function(e,n){var t=Dy.getEnclosingBlockScopeContainer(e);switch(e.parent.parent.kind){case 217:case 223:case 225:if(Vt(n,e,t))return!0}var r=e.parent.parent;return Dy.isForInOrOfStatement(r)&&Vt(n,r.expression,t)}(n,e):!Dy.isClassDeclaration(n)||!Dy.findAncestor(e,function(e){return Dy.isComputedPropertyName(e)&&e.parent.parent===n});var i=Dy.getAncestor(e,184);return i?Dy.findAncestor(i,Dy.isBindingElement)!==Dy.findAncestor(n,Dy.isBindingElement)||n.pos<i.pos:Mt(Dy.getAncestor(n,235),e)}if(255===e.parent.kind||252===e.parent.kind&&e.parent.isExportEquals)return!0;if(252===e.kind&&e.isExportEquals)return!0;var o=Dy.getEnclosingBlockScopeContainer(n);return!!(2097152&e.flags)||Yu(e)||s(e,n,o);function s(n,t,r){return!!Dy.findAncestor(n,function(e){if(e===r)return"quit";if(Dy.isFunctionLike(e))return!0;if(e.parent&&152===e.parent.kind&&e.parent.initializer===e)if(Dy.hasModifier(e.parent,32)){if(154===t.kind)return!0}else if(152!==t.kind||Dy.hasModifier(t,32)||Dy.getContainingClass(n)!==Dy.getContainingClass(t))return!0;return!1})}}function Ot(e,n,t,r,a,i,o,s){return void 0===o&&(o=!1),wt(e,n,t,r,a,i,o,It,s)}function wt(e,n,t,r,a,i,o,s,c){var l,u,d,p,m,f=e,_=e,g=!1;e:for(;e;){if(e.locals&&!Nt(e)&&(l=s(e.locals,n,t))){var v=!0;if(Dy.isFunctionLike(e)&&u&&u!==e.body?(t&l.flags&67897832&&289!==u.kind&&(v=!!(262144&l.flags)&&(u===e.type||149===u.kind||148===u.kind)),67220415&t&&1&l.flags&&(v=149===u.kind||u===e.type&&!!Dy.findAncestor(l.valueDeclaration,Dy.isParameter))):173===e.kind&&(v=u===e.trueType),v)break e;l=void 0}switch(e.kind){case 277:if(!Dy.isExternalOrCommonJsModule(e))break;g=!0;case 242:var y=vr(e).exports;if(277===e.kind||Dy.isAmbientModule(e)){if(l=y.get("default")){var h=Dy.getLocalSymbolForExportDefault(l);if(h&&l.flags&t&&h.escapedName===n)break e;l=void 0}var b=y.get(n);if(b&&2097152===b.flags&&Dy.getDeclarationOfKind(b,255))break}if("default"!==n&&(l=s(y,n,2623475&t))){if(!Dy.isSourceFile(e)||!e.commonJsModuleIndicator||l.declarations.some(Dy.isJSDocTypeAlias))break e;l=void 0}break;case 241:if(l=s(vr(e).exports,n,8&t))break e;break;case 152:case 151:if(Dy.isClassLike(e.parent)&&!Dy.hasModifier(e,32)){var E=Sr(e.parent);E&&E.locals&&s(E.locals,n,67220415&t)&&(p=e)}break;case 238:case 207:case 239:if(l=s(vr(e).members||I,n,67897832&t)){if(!Ft(l,e)){l=void 0;break}if(u&&Dy.hasModifier(u,32))return void gt(_,Dy.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(207===e.kind&&32&t){var T=e.name;if(T&&n===T.escapedText){l=e.symbol;break e}}break;case 209:if(u===e.expression&&85===e.parent.token){var S=e.parent.parent;if(Dy.isClassLike(S)&&(l=s(vr(S).members,n,67897832&t)))return void(r&&gt(_,Dy.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 147:if(m=e.parent.parent,(Dy.isClassLike(m)||239===m.kind)&&(l=s(vr(m).members,n,67897832&t)))return void gt(_,Dy.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 154:case 153:case 155:case 156:case 157:case 237:case 195:if(3&t&&"arguments"===n){l=M;break e}break;case 194:if(3&t&&"arguments"===n){l=M;break e}if(16&t){var x=e.name;if(x&&n===x.escapedText){l=e.symbol;break e}}break;case 150:e.parent&&149===e.parent.kind&&(e=e.parent),e.parent&&Dy.isClassElement(e.parent)&&(e=e.parent);break;case 302:case 295:e=Dy.getJSDocHost(e)}Pt(e)&&(d=e),e=(u=e).parent}if(!i||!l||d&&l===d.symbol||(l.isReferenced|=t),!l){if(u&&(Dy.Debug.assert(277===u.kind),u.commonJsModuleIndicator&&"exports"===n&&t&u.symbol.flags))return u.symbol;o||(l=s(pn,n,t))}if(!l&&f&&Dy.isInJSFile(f)&&f.parent&&Dy.isRequireCall(f.parent,!1))return O;if(l){if(r){if(p){var C=p.name;return void gt(_,Dy.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Dy.declarationNameToString(C),Rt(a))}if(_&&(2&t||(32&t||384&t)&&67220415==(67220415&t))){var D=Er(l);(2&D.flags||32&D.flags||384&D.flags)&&function(e,n){Dy.Debug.assert(!!(2&e.flags||32&e.flags||384&e.flags));var t=Dy.find(e.declarations,function(e){return Dy.isBlockOrCatchScoped(e)||Dy.isClassLike(e)||241===e.kind||Dy.isInJSFile(e)&&!!Dy.getJSDocEnumTag(e)});if(void 0===t)return Dy.Debug.fail("Declaration to checkResolvedBlockScopedVariable is undefined");if(!(4194304&t.flags||Mt(t,n))){var r=void 0,a=Dy.declarationNameToString(Dy.getNameOfDeclaration(t));2&e.flags?r=gt(n,Dy.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,a):32&e.flags?r=gt(n,Dy.Diagnostics.Class_0_used_before_its_declaration,a):256&e.flags?r=gt(n,Dy.Diagnostics.Enum_0_used_before_its_declaration,a):(Dy.Debug.assert(!!(128&e.flags)),R.preserveConstEnums&&(r=gt(n,Dy.Diagnostics.Class_0_used_before_its_declaration,a))),r&&_t(r,Dy.createDiagnosticForNode(t,Dy.Diagnostics._0_is_declared_here,a))}}(D,_)}if(l&&g&&67220415==(67220415&t)&&!(2097152&f.flags)){var A=l.declarations;A&&1===A.length&&245===A[0].kind&&gt(_,Dy.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Dy.unescapeLeadingUnderscores(n))}}return l}if(r&&(!_||!(function(e,n,t){if(!Dy.isIdentifier(e)||e.escapedText!==n||lv(e)||Yu(e))return!1;for(var r=Dy.getThisContainer(e,!1),a=r;a;){if(Dy.isClassLike(a.parent)){var i=vr(a.parent);if(!i)break;var o=wa(i);if(po(o,n))return gt(e,Dy.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Rt(t),Ur(i)),!0;if(a===r&&!Dy.hasModifier(a,32)){var s=ri(i).thisType;if(po(s,n))return gt(e,Dy.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Rt(t)),!0}}a=a.parent}return!1}(_,n,a)||Gt(_)||function(e,n,t){var r=1920|(Dy.isInJSFile(e)?67220415:0);if(t===r){var a=Xt(Ot(e,n,67897832&~r,void 0,void 0,!1)),i=e.parent;if(a){if(Dy.isQualifiedName(i)){Dy.Debug.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");var o=i.right.escapedText,s=po(ri(a),o);if(s)return gt(i,Dy.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,Dy.unescapeLeadingUnderscores(n),Dy.unescapeLeadingUnderscores(o)),!0}return gt(e,Dy.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Dy.unescapeLeadingUnderscores(n)),!0}}return!1}(_,n,t)||function(e,n,t){if(67220415&t){if("any"===n||"string"===n||"number"===n||"boolean"===n||"never"===n)return gt(e,Dy.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Dy.unescapeLeadingUnderscores(n)),!0;var r=Xt(Ot(e,n,788544,void 0,void 0,!1));if(r&&!(1024&r.flags)){var a="Promise"===n||"Symbol"===n?Dy.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:Dy.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here;return gt(e,a,Dy.unescapeLeadingUnderscores(n)),!0}}return!1}(_,n,t)||function(e,n,t){if(111127&t){var r=Xt(Ot(e,n,1024,void 0,void 0,!1));if(r)return gt(e,Dy.Diagnostics.Cannot_use_namespace_0_as_a_value,Dy.unescapeLeadingUnderscores(n)),!0}else if(788544&t){var r=Xt(Ot(e,n,1536,void 0,void 0,!1));if(r)return gt(e,Dy.Diagnostics.Cannot_use_namespace_0_as_a_type,Dy.unescapeLeadingUnderscores(n)),!0}return!1}(_,n,t)))){var L=void 0;if(c&&xn<Cn&&(L=vm(f,n,t))){var k=Ur(L),N=gt(_,c,Rt(a),k);L.valueDeclaration&&_t(N,Dy.createDiagnosticForNode(L.valueDeclaration,Dy.Diagnostics._0_is_declared_here,k))}L||gt(_,r,Rt(a)),xn++}}function Pt(e){switch(e.kind){case 237:case 238:case 239:case 241:case 240:case 242:return!0;default:return!1}}function Rt(e){return Dy.isString(e)?Dy.unescapeLeadingUnderscores(e):Dy.declarationNameToString(e)}function Ft(e,n){for(var t=0,r=e.declarations;t<r.length;t++){var a=r[t];if(148===a.kind&&(Dy.isJSDocTemplateTag(a.parent)?Dy.getJSDocHost(a.parent):a.parent)===n)return!(Dy.isJSDocTemplateTag(a.parent)&&Dy.find(a.parent.parent.tags,Dy.isJSDocTypeAlias))}return!1}function Gt(e){var n=function e(n){switch(n.kind){case 71:case 187:return n.parent?e(n.parent):void 0;case 209:if(Dy.isEntityNameExpression(n.expression))return n.expression;default:return}}(e);return!(!n||!nr(n,64,!0)||(gt(e,Dy.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,Dy.getTextOfNode(n)),0))}function Vt(e,n,t){return!!n&&!!Dy.findAncestor(e,function(e){return e===t||Dy.isFunctionLike(e)?"quit":e===n})}function Bt(e){switch(e.kind){case 246:return e;case 248:return e.parent;case 249:return e.parent.parent;case 251:return e.parent.parent.parent;default:return}}function Kt(e){return Dy.find(e.declarations,Dy.isAliasSymbolDeclaration)}function jt(e,n,t){var r=e.exports.get("export=");return r?po(wa(r),n):Xt(e.exports.get(n),t)}function Ht(e){return Dy.isExportAssignment(e)&&!e.isExportEquals||Dy.hasModifier(e,512)||Dy.isExportSpecifier(e)}function Ut(e,n,t){if(!f)return!1;if(e&&!e.isDeclarationFile)return Dy.isSourceFileJS(e)?!e.externalModuleIndicator&&!jt(n,Dy.escapeLeadingUnderscores("__esModule"),t):lr(n);var r=jt(n,"default",!0);return!(r&&Dy.some(r.declarations,Ht)||jt(n,Dy.escapeLeadingUnderscores("__esModule"),t))}function Wt(e,n,t){void 0===t&&(t=!1);var r=rr(e,e.moduleSpecifier),a=cr(r,e.moduleSpecifier,t);if(a){var i=n.propertyName||n.name;if(i.escapedText){if(Dy.isShorthandAmbientModuleSymbol(r))return r;var o=void 0;o=Xt(o=r&&r.exports&&r.exports.get("export=")?po(wa(a),i.escapedText):function(e,n){if(3&e.flags){var t=e.valueDeclaration.type;if(t)return Xt(po(Fc(t),n))}}(a,i.escapedText),t);var s=function(e,n,t){if(1536&e.flags)return Xt(pr(e).get(n),t)}(a,i.escapedText,t);!s&&f&&"default"===i.escapedText&&(s=sr(r,t)||Xt(r,t));var c=s&&o&&s!==o?function(e,n){if(e===H&&n===H)return H;if(67899368&e.flags)return e;var t=yt(e.flags|n.flags,e.escapedName);return t.declarations=Dy.deduplicate(Dy.concatenate(e.declarations,n.declarations),Dy.equateValues),t.parent=e.parent||n.parent,e.valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),n.members&&(t.members=n.members),e.exports&&(t.exports=e.exports),t}(o,s):s||o;if(!c){var l=er(r),u=Dy.declarationNameToString(i),d=ym(i,a);if(void 0!==d){var p=Ur(d),m=gt(i,Dy.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2,l,u,p);d.valueDeclaration&&_t(m,Dy.createDiagnosticForNode(d.valueDeclaration,Dy.Diagnostics._0_is_declared_here,p))}else gt(i,Dy.Diagnostics.Module_0_has_no_exported_member_1,l,u)}return c}}}function qt(e,n,t){return e.parent.parent.moduleSpecifier?Wt(e.parent.parent,e,t):nr(e.propertyName||e.name,n,!1,t)}function zt(e,n){switch(void 0===n&&(n=!1),e.kind){case 246:return l=n,257===(c=e).moduleReference.kind?sr(rr(c,Dy.getExternalModuleImportEqualsDeclarationExpression(c))):$t(c.moduleReference,l);case 248:return function(e,n){var t=rr(e,e.parent.moduleSpecifier);if(t){var r=void 0;r=Dy.isShorthandAmbientModuleSymbol(t)?t:jt(t,"default",n);var a=Ut(Dy.find(t.declarations,Dy.isSourceFile),t,n);if(r||a){if(a)return sr(t,n)||Xt(t,n)}else gt(e.name,Dy.Diagnostics.Module_0_has_no_default_export,Ur(t));return r}}(e,n);case 249:return o=n,s=(i=e).parent.parent.moduleSpecifier,cr(rr(i,s),s,o);case 251:return a=n,Wt((r=e).parent.parent.parent,r,a);case 255:return qt(e,68009983,n);case 252:case 202:return function(e,n){var t=Dy.isExportAssignment(e)?e.expression:e.right;if(Dy.isClassExpression(t))return __(t).symbol;var r=nr(t,68009983,!0,n);return r||(__(t),kt(t).resolvedSymbol)}(e,n);case 245:return t=n,sr(e.parent.symbol,t);default:return Dy.Debug.fail()}var t,r,a,i,o,s,c,l}function Jt(e,n){return void 0===n&&(n=68009983),!(!e||2097152!=(e.flags&(2097152|n))&&!(2097152&e.flags&&67108864&e.flags))}function Xt(e,n){return!n&&Jt(e)?Yt(e):e}function Yt(e){Dy.Debug.assert(0!=(2097152&e.flags),"Should only get Alias here.");var n=Lt(e);if(n.target)n.target===U&&(n.target=H);else{n.target=U;var t=Kt(e);if(!t)return Dy.Debug.fail();var r=zt(t);n.target===U?n.target=r||H:gt(t,Dy.Diagnostics.Circular_definition_of_import_alias_0,Ur(e))}return n.target}function Qt(e){var n=vr(e),t=Yt(n);t&&(t===H||67220415&t.flags&&!Iv(t))&&Zt(n)}function Zt(e){var n=Lt(e);if(!n.referenced){n.referenced=!0;var t=Kt(e);if(!t)return Dy.Debug.fail();252===t.kind?o_(t.expression):255===t.kind?o_(t.propertyName||t.name):Dy.isInternalModuleImportEqualsDeclaration(t)&&o_(t.moduleReference)}}function $t(e,n){return 71===e.kind&&Dy.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),71===e.kind||146===e.parent.kind?nr(e,1920,!1,n):(Dy.Debug.assert(246===e.parent.kind),nr(e,68009983,!1,n))}function er(e){return e.parent?er(e.parent)+"."+Ur(e):Ur(e)}function nr(e,n,t,r,a){if(!Dy.nodeIsMissing(e)){var i,o=1920|(Dy.isInJSFile(e)?67220415&n:0);if(71===e.kind){var s=n===o?Dy.Diagnostics.Cannot_find_namespace_0:Ju(Wg(e).escapedText),c=Dy.isInJSFile(e)?function(e,n){if(_s(e.parent)){var t=function(e){if(!Dy.findAncestor(e,function(e){return Dy.isJSDocNode(e)||2097152&e.flags?Dy.isJSDocTypeAlias(e):"quit"})){var n=Dy.getJSDocHost(e);if(Dy.isExpressionStatement(n)&&Dy.isBinaryExpression(n.expression)&&3===Dy.getAssignmentDeclarationKind(n.expression)){var t=vr(n.expression.left);if(t)return tr(t)}if((Dy.isObjectLiteralMethod(n)||Dy.isPropertyAssignment(n))&&Dy.isBinaryExpression(n.parent.parent)&&6===Dy.getAssignmentDeclarationKind(n.parent.parent)){var t=vr(n.parent.parent.left);if(t)return tr(t)}var r=Dy.getHostSignatureFromJSDocHost(n);if(r){var t=vr(r);return t&&t.valueDeclaration}}}(e.parent);if(t)return Ot(t,e.escapedText,n,void 0,e,!0)}}(e,n):void 0;if(!(i=Ot(a||e,e.escapedText,n,t||c?void 0:s,e,!0)))return c}else{if(146!==e.kind&&187!==e.kind)throw Dy.Debug.assertNever(e,"Unknown entity name kind.");var l=146===e.kind?e.left:e.expression,u=146===e.kind?e.right:e.name,d=nr(l,o,t,!1,a);if(!d||Dy.nodeIsMissing(u))return;if(d===H)return d;if(Dy.isInJSFile(e)&&d.valueDeclaration&&Dy.isVariableDeclaration(d.valueDeclaration)&&d.valueDeclaration.initializer&&gf(d.valueDeclaration.initializer)){var p=d.valueDeclaration.initializer.arguments[0],m=rr(p,p);if(m){var f=sr(m);f&&(d=f)}}if(!(i=It(pr(d),u.escapedText,n)))return void(t||gt(u,Dy.Diagnostics.Namespace_0_has_no_exported_member_1,er(d),Dy.declarationNameToString(u)))}return Dy.Debug.assert(0==(1&Dy.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n||r?i:Yt(i)}}function tr(e){var n=e.parent.valueDeclaration;return(Dy.isAssignmentDeclaration(n)?Dy.getAssignedExpandoInitializer(n):Dy.hasOnlyExpressionInitializer(n)?Dy.getDeclaredExpandoInitializer(n):void 0)||n}function rr(e,n){return ar(e,n,Dy.Diagnostics.Cannot_find_module_0)}function ar(e,n,t,r){return void 0===r&&(r=!1),Dy.isStringLiteralLike(n)?ir(e,n.text,t,n,r):void 0}function ir(e,n,t,r,a){if(void 0===a&&(a=!1),void 0!==n){Dy.startsWith(n,"@types/")&&gt(r,Dy.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Dy.removePrefix(n,"@types/"),n);var i=So(n,!0);if(i)return i;var o=Dy.getSourceFileOfNode(e),s=Dy.getResolvedModule(o,n),c=s&&Dy.getResolutionDiagnostic(R,s),l=s&&!c&&E.getSourceFile(s.resolvedFileName);if(l)return l.symbol?(s.isExternalLibraryImport&&!Dy.extensionIsTS(s.extension)&&or(!1,r,s,n),gr(l.symbol)):void(t&&gt(r,Dy.Diagnostics.File_0_is_not_a_module,l.fileName));if(Ce){var u=Dy.findBestPatternMatch(Ce,function(e){return e.pattern},n);if(u)return gr(u.symbol)}if(s&&!Dy.resolutionExtensionIsTSOrJson(s.extension)&&void 0===c||c===Dy.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)a?gt(r,Dy.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,s.resolvedFileName):or(F&&!!t,r,s,n);else if(t){if(Dy.pathIsRelative(n)){var d=Dy.getSourceFileOfNode(e),p=d.redirectedReferences;if(p)for(var m=Dy.getNormalizedAbsolutePath(n,Dy.getDirectoryPath(d.fileName)),f=0,_=[".ts",".tsx"];f<_.length;f++){var g=m+_[f];if(0<=p.indexOf(g))return void gt(r,Dy.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,n,g)}}if(c)gt(r,c,n,s.resolvedFileName);else{var v=Dy.tryExtractTSExtension(n);v?gt(r,Dy.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,v,Dy.removeExtension(n,v)):!R.resolveJsonModule&&Dy.fileExtensionIs(n,".json")&&Dy.getEmitModuleResolutionKind(R)===Dy.ModuleResolutionKind.NodeJs&&Dy.hasJsonModuleEmitEnabled(R)?gt(r,Dy.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n):gt(r,t,n)}}}}function or(e,n,t,r){var a,i=t.packageId,o=t.resolvedFileName,s=!Dy.isExternalModuleNameRelative(r)&&i?(a=i.name,c().has(Dy.getTypesPackageName(a))?Dy.chainDiagnosticMessages(void 0,Dy.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,i.name,Dy.mangleScopedPackageName(i.name)):Dy.chainDiagnosticMessages(void 0,Dy.Diagnostics.Try_npm_install_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,Dy.mangleScopedPackageName(i.name))):void 0;vt(e,n,Dy.chainDiagnosticMessages(s,Dy.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,r,o))}function sr(e,n){return e&&gr(function(e,n){if(!e||e===H||1===n.exports.size)return e;var t=Tt(e);return void 0===t.exports&&(t.flags=512|t.flags,t.exports=Dy.createSymbolTable()),n.exports.forEach(function(e,n){"export="!==n&&t.exports.set(n,t.exports.has(n)?St(t.exports.get(n),e):e)}),t}(Xt(e.exports.get("export="),n),e))||e}function cr(e,n,t){var r=sr(e,t);if(!t&&r){if(!(1539&r.flags||Dy.getDeclarationOfKind(r,277)))return gt(n,Dy.Diagnostics.Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct,Ur(e)),r;if(R.esModuleInterop){var a=n.parent;if(Dy.isImportDeclaration(a)&&Dy.getNamespaceDeclarationNode(a)||Dy.isImportCall(a)){var i=wa(r),o=mo(i,0);if(o&&o.length||(o=mo(i,1)),o&&o.length){var s=_f(i,r,e),c=yt(r.flags,r.escapedName);c.declarations=r.declarations?r.declarations.slice():[],c.parent=r.parent,c.target=r,c.originatingImport=a,r.valueDeclaration&&(c.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(c.constEnumOnlyModule=!0),r.members&&(c.members=Dy.cloneMap(r.members)),r.exports&&(c.exports=Dy.cloneMap(r.exports));var l=Ui(s);return c.type=Ir(c,l.members,Dy.emptyArray,Dy.emptyArray,l.stringIndexInfo,l.numberIndexInfo),c}}}}return r}function lr(e){return void 0!==e.exports.get("export=")}function ur(e){return Eo(mr(e))}function dr(e,n){var t=mr(n);if(t)return t.get(e)}function pr(e){return 32&e.flags?yi(e,"resolvedExports"):1536&e.flags?mr(e):e.exports||I}function mr(e){var n=Lt(e);return n.resolvedExports||(n.resolvedExports=_r(e))}function fr(a,e,i,o){e&&e.forEach(function(e,n){if("default"!==n){var t=a.get(n);if(t){if(i&&o&&t&&Xt(t)!==Xt(e)){var r=i.get(n);r.exportsWithDuplicate?r.exportsWithDuplicate.push(o):r.exportsWithDuplicate=[o]}}else a.set(n,e),i&&o&&i.set(n,{specifierText:Dy.getTextOfNode(o.moduleSpecifier)})}})}function _r(e){var d=[];return function e(n){if(n&&n.exports&&Dy.pushIfUnique(d,n)){var o=Dy.cloneMap(n.exports),t=n.exports.get("__export");if(t){for(var r=Dy.createSymbolTable(),s=Dy.createMap(),a=0,i=t.declarations;a<i.length;a++){var c=i[a],l=rr(c,c.moduleSpecifier),u=e(l);fr(r,u,s,c)}s.forEach(function(e,n){var t=e.exportsWithDuplicate;if("export="!==n&&t&&t.length&&!o.has(n))for(var r=0,a=t;r<a.length;r++){var i=a[r];Gn.add(Dy.createDiagnosticForNode(i,Dy.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(n).specifierText,Dy.unescapeLeadingUnderscores(n)))}}),fr(o,r)}return o}}(e=sr(e))||I}function gr(e){var n;return e&&e.mergeId&&(n=Dn[e.mergeId])?n:e}function vr(e){return gr(e.symbol&&bi(e.symbol))}function yr(e){return gr(e.parent&&bi(e.parent))}function hr(n,e){var t=yr(n);if(t){var r=Dy.mapDefined(t.declarations,function(e){var n=Vr(e);return Xt(n&&n.exports&&n.exports.get("export="))===Xt(t)?n:void 0});return e&&wr(t,e,1920,!1)?Dy.concatenate([t],r):Dy.append(r,t)}var a=Dy.mapDefined(n.declarations,function(e){return!Dy.isAmbientModule(e)&&e.parent&&Kr(e.parent)?vr(e.parent):void 0});if(Dy.length(a))return Dy.mapDefined(a,function(e){return br(e,n)?e:void 0})}function br(e,n){if(e===yr(n))return n;var t=pr(e),r=t.get(n.escapedName);return r&&a(r)?r:Dy.forEachEntry(t,function(e){if(a(e))return e});function a(e){if(e===n||Xt(e)===n||Xt(e)===Xt(n))return e}}function Er(e){return gr(e&&0!=(1048576&e.flags)?e.exportSymbol:e)}function Tr(e){return!!(67220415&e.flags||2097152&e.flags&&67220415&Yt(e).flags)}function Sr(e){for(var n=0,t=e.members;n<t.length;n++){var r=t[n];if(155===r.kind&&Dy.nodeIsPresent(r.body))return r}}function xr(e){var n=new t(y,e);return r++,n.id=r,n}function Cr(e,n){var t=xr(e);return t.intrinsicName=n,t}function Dr(e){var n=Qs(e);return n.flags|=16,n.intrinsicName="boolean",n}function Ar(e,n){var t=xr(131072);return t.objectFlags=e,t.symbol=n,t.members=void 0,t.properties=void 0,t.callSignatures=void 0,t.constructSignatures=void 0,t.stringIndexInfo=void 0,t.numberIndexInfo=void 0,t}function Lr(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)}function kr(e){var t;return e.forEach(function(e,n){!Lr(n)&&Tr(e)&&(t||(t=[])).push(e)}),t||Dy.emptyArray}function Nr(e,n,t,r,a,i){return e.members=n,e.properties=n===I?Dy.emptyArray:kr(n),e.callSignatures=t,e.constructSignatures=r,e.stringIndexInfo=a,e.numberIndexInfo=i,e}function Ir(e,n,t,r,a,i){return Nr(Ar(16,e),n,t,r,a,i)}function Mr(e,n){for(var t,r=e;r;r=r.parent){if(r.locals&&!Nt(r)&&(t=n(r.locals)))return t;switch(r.kind){case 277:if(!Dy.isExternalOrCommonJsModule(r))break;case 242:if(t=n(vr(r).exports))return t}}return n(pn)}function Or(e){return 67220415===e?67220415:1920}function wr(i,o,s,c,t){if(void 0===t&&(t=Dy.createMap()),i&&!function(e){if(e.declarations&&e.declarations.length){for(var n=0,t=e.declarations;n<t.length;n++){var r=t[n];switch(r.kind){case 152:case 154:case 156:case 157:continue;default:return!1}}return!0}return!1}(i)){var e=""+My(i),l=t.get(e);return l||t.set(e,l=[]),Mr(o,u)}function u(e,n){if(Dy.pushIfUnique(l,e)){var t=(a=n,p((r=e).get(i.escapedName),void 0,a)?[i]:Dy.forEachEntry(r,function(e){if(2097152&e.flags&&"export="!==e.escapedName&&"default"!==e.escapedName&&!(Dy.isUMDExportSymbol(e)&&o&&Dy.isExternalModule(Dy.getSourceFileOfNode(o)))&&(!c||Dy.some(e.declarations,Dy.isExternalModuleImportEqualsDeclaration))&&(a||!Dy.getDeclarationOfKind(e,255))){var n=Yt(e);if(p(e,n,a))return[e];var t=pr(n),r=t&&u(t,!0);if(r&&d(e,Or(s)))return[e].concat(r)}if(e.escapedName===i.escapedName&&e.exportSymbol&&p(gr(e.exportSymbol),void 0,a))return[i]}));return l.pop(),t}var r,a}function d(e,n){return!Pr(e,o,n)||!!wr(e.parent,o,Or(n),c,t)}function p(e,n,t){return i===(n||e)&&!Dy.some(e.declarations,Kr)&&(t||d(e,s))}}function Pr(t,e,r){var a=!1;return Mr(e,function(e){var n=gr(e.get(t.escapedName));return!!n&&(n===t||!!((n=2097152&n.flags&&!Dy.getDeclarationOfKind(n,255)?Yt(n):n).flags&r)&&(a=!0))}),a}function Rr(e,n){return 0===Gr(e,n,67897832,!1).accessibility}function Fr(e,n){return 0===Gr(e,n,67220415,!1).accessibility}function Gr(e,n,t,r){if(e&&n){var a=function e(n,t,r,a,i){if(Dy.length(n)){for(var o,s=0,c=n;s<c.length;s++){var l=c[s],u=wr(l,t,a,!1);if(u){o=l;var d=jr(u[0],i);if(d)return d}else if(Dy.some(l.declarations,Kr))return{accessibility:0};var p=hr(l,t),m=Dy.first(l.declarations);!Dy.length(p)&&67220415&a&&m&&Dy.isObjectLiteralExpression(m)&&m.parent&&Dy.isVariableDeclaration(m.parent)&&m===m.parent.initializer&&(p=[vr(m.parent)]);var f=e(p,t,r,r===l?Or(a):a,i);if(f)return f}return o?{accessibility:1,errorSymbolName:Ur(r,t,a),errorModuleName:o!==r?Ur(o,t,1920):void 0}:void 0}}([e],n,e,t,r);if(a)return a;var i=Dy.forEach(e.declarations,Vr);return i&&i!==Vr(n)?{accessibility:2,errorSymbolName:Ur(e,n,t),errorModuleName:Ur(i)}:{accessibility:1,errorSymbolName:Ur(e,n,t)}}return{accessibility:0}}function Vr(e){var n=Dy.findAncestor(e,Br);return n&&vr(n)}function Br(e){return Dy.isAmbientModule(e)||277===e.kind&&Dy.isExternalOrCommonJsModule(e)}function Kr(e){return Dy.isModuleWithStringLiteralName(e)||277===e.kind&&Dy.isExternalOrCommonJsModule(e)}function jr(e,t){var r;if(Dy.every(e.declarations,function(e){if($r(e))return!0;var n=Bt(e);return n&&!Dy.hasModifier(n,1)&&$r(n.parent)?a(e,n):Dy.isVariableDeclaration(e)&&Dy.isVariableStatement(e.parent.parent)&&!Dy.hasModifier(e.parent.parent,1)&&$r(e.parent.parent.parent)?a(e,e.parent.parent):!(!Dy.isLateVisibilityPaintedStatement(e)||Dy.hasModifier(e,1)||!$r(e.parent))&&a(e,e)}))return{accessibility:0,aliasesToMakeVisible:r};function a(e,n){return t&&(kt(e).isVisible=!0,r=Dy.appendIfUnique(r,n)),!0}}function Hr(e,n){var t;t=165===e.parent.kind||Dy.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)||147===e.parent.kind?68268991:146===e.kind||187===e.kind||246===e.parent.kind?1920:67897832;var r=Wg(e),a=Ot(n,r.escapedText,t,void 0,void 0,!1);return a&&jr(a,!0)||{accessibility:1,errorSymbolName:Dy.getTextOfNode(r),errorNode:r}}function Ur(a,i,o,e,n){void 0===e&&(e=4);var s=3112960;2&e&&(s|=128),1&e&&(s|=512),8&e&&(s|=16384);var c=4&e?v.symbolToExpression:v.symbolToEntityName;return n?t(n).getText():Dy.usingSingleLineStringWriter(t);function t(e){var n=c(a,o,i,s),t=Dy.createPrinter({removeComments:!0}),r=i&&Dy.getSourceFileOfNode(i);return t.writeNode(4,n,r,e),e}}function Wr(i,o,s,c,e){return void 0===s&&(s=0),e?n(e).getText():Dy.usingSingleLineStringWriter(n);function n(e){var n;n=262144&s?1===c?164:163:1===c?159:158;var t=v.signatureToSignatureDeclaration(i,n,o,3113472|zr(s)),r=Dy.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),a=o&&Dy.getSourceFileOfNode(o);return r.writeNode(4,t,a,e),e}}function qr(e,n,t,r){void 0===t&&(t=1064960),void 0===r&&(r=Dy.createTextWriter(""));var a=R.noErrorTruncation||1&t,i=v.typeToTypeNode(e,n,3112960|zr(t)|(a?1:0),r);if(void 0===i)return Dy.Debug.fail("should always get typenode");var o=Dy.createPrinter({removeComments:!0}),s=n&&Dy.getSourceFileOfNode(n);o.writeNode(4,i,s,r);var c=r.getText(),l=a?void 0:2*Dy.defaultMaximumTruncationLength;return l&&c&&c.length>=l?c.substr(0,l-"...".length)+"...":c}function zr(e){return void 0===e&&(e=0),9469291&e}function Jr(a,i,o,e){return void 0===o&&(o=16384),e?n(e).getText():Dy.usingSingleLineStringWriter(n);function n(e){var n=Dy.createTypePredicateNode(1===a.kind?Dy.createIdentifier(a.parameterName):Dy.createThisTypeNode(),v.typeToTypeNode(a.type,i,3113472|zr(o))),t=Dy.createPrinter({removeComments:!0}),r=i&&Dy.getSourceFileOfNode(i);return t.writeNode(4,n,r,e),e}}function Xr(e){return 8===e?"private":16===e?"protected":"public"}function Yr(e){return e&&e.parent&&243===e.parent.kind&&Dy.isExternalModuleAugmentation(e.parent.parent)}function Qr(e){return 277===e.kind||Dy.isAmbientModule(e)}function Zr(e,n){if(n&&"default"===e.escapedName&&!(16384&n.flags)&&(!(16777216&n.flags)||!e.declarations||n.enclosingDeclaration&&Dy.findAncestor(e.declarations[0],Qr)!==Dy.findAncestor(n.enclosingDeclaration,Qr)))return"default";if(e.declarations&&e.declarations.length){var t=e.declarations[0],r=Dy.getNameOfDeclaration(t);if(r)return Dy.declarationNameToString(r);if(t.parent&&235===t.parent.kind)return Dy.declarationNameToString(t.parent.name);switch(t.kind){case 207:case 194:case 195:return!n||n.encounteredError||131072&n.flags||(n.encounteredError=!0),207===t.kind?"(Anonymous class)":"(Anonymous function)"}}var a=e.nameType;if(a){if(64&a.flags&&!Dy.isIdentifierText(a.value,R.target))return'"'+Dy.escapeString(a.value,34)+'"';if(a&&2048&a.flags)return"["+Zr(a.symbol,n)+"]"}return Dy.symbolName(e)}function $r(n){if(n){var e=kt(n);return void 0===e.isVisible&&(e.isVisible=!!function(){switch(n.kind){case 295:case 302:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Dy.isSourceFile(n.parent.parent.parent));case 184:return $r(n.parent.parent);case 235:if(Dy.isBindingPattern(n.name)&&!n.name.elements.length)return!1;case 242:case 238:case 239:case 240:case 237:case 241:case 246:if(Dy.isExternalModuleAugmentation(n))return!0;var e=ia(n);return 1&Dy.getCombinedModifierFlags(n)||246!==n.kind&&277!==e.kind&&4194304&e.flags?$r(e):Nt(e);case 152:case 151:case 156:case 157:case 154:case 153:if(Dy.hasModifier(n,24))return!1;case 155:case 159:case 158:case 160:case 149:case 243:case 163:case 164:case 166:case 162:case 167:case 168:case 171:case 172:case 175:return $r(n.parent);case 248:case 249:case 251:return!1;case 148:case 277:case 245:return!0;case 252:default:return!1}}()),e.isVisible}return!1}function ea(e,o){var n,s;return e.parent&&252===e.parent.kind?n=Ot(e,e.escapedText,70107135,void 0,e,!1):255===e.parent.kind&&(n=qt(e.parent,70107135)),n&&function i(e){Dy.forEach(e,function(e){var n=Bt(e)||e;if(o?kt(e).isVisible=!0:(s=s||[],Dy.pushIfUnique(s,n)),Dy.isInternalModuleImportEqualsDeclaration(e)){var t=e.moduleReference,r=Wg(t),a=Ot(e,r.escapedText,68009983,void 0,void 0,!1);a&&i(a.declarations)}})}(n.declarations),s}function na(e,n){var t=ta(e,n);if(0<=t){for(var r=En.length,a=t;a<r;a++)Tn[a]=!1;return!1}return En.push(e),Tn.push(!0),Sn.push(n),!0}function ta(e,n){for(var t=En.length-1;0<=t;t--){if(ra(En[t],Sn[t]))return-1;if(En[t]===e&&Sn[t]===n)return t}return-1}function ra(e,n){switch(n){case 0:return!!Lt(e).type;case 5:return!!kt(e).resolvedEnumType;case 2:return!!Lt(e).declaredType;case 1:return!!e.resolvedBaseConstructorType;case 3:return!!e.resolvedReturnType;case 4:return!!e.immediateBaseConstraint;case 6:return!!Lt(e).resolvedJSDocType}return Dy.Debug.assertNever(n)}function aa(){return En.pop(),Sn.pop(),Tn.pop()}function ia(e){return Dy.findAncestor(Dy.getRootDeclaration(e),function(e){switch(e.kind){case 235:case 236:case 251:case 250:case 249:case 248:return!1;default:return!0}}).parent}function oa(e,n){var t=po(e,n);return t?wa(t):void 0}function sa(e){return e&&0!=(1&e.flags)}function ca(e){var n=vr(e);return n&&Lt(n).type||_a(e,!1)}function la(e){return 147===e.kind&&!Dy.isStringOrNumericLiteralLike(e.expression)}function ua(e,n,t){if(32768&(e=Td(e,function(e){return!(24576&e.flags)})).flags)return fe;if(262144&e.flags)return Sd(e,function(e){return ua(e,n,t)});for(var r=Dy.createSymbolTable(),a=Dy.createUnderscoreEscapedMap(),i=0,o=n;i<o.length;i++){var s=o[i];a.set(Dy.getTextOfPropertyName(s),!0)}for(var c=0,l=Ji(e);c<l.length;c++){var u=l[c];a.has(u.escapedName)||24&Dy.getDeclarationModifierFlagsFromSymbol(u)||!Lc(u)||r.set(u.escapedName,kc(u))}var d=vo(e,0),p=vo(e,1);return Ir(t,r,Dy.emptyArray,Dy.emptyArray,d,p)}function da(e){var n,t=e.parent,r=ca(t.parent);if(r===J)return J;if(!r)return e.initializer?c_(e):r;if(sa(r))return r;if(182===t.kind)if(e.dotDotDotToken){if(2&r.flags||!Pp(r))return gt(e,Dy.Diagnostics.Rest_types_may_only_be_created_from_object_types),J;for(var a=[],i=0,o=t.elements;i<o.length;i++){var s=o[i];s.dotDotDotToken||a.push(s.propertyName||s.name)}n=ua(r,a,e.symbol)}else{var c=e.propertyName||e.name,l=mi(c),u=Dy.isComputedPropertyName(c)&&Dy.isWellKnownSymbolSyntactically(c.expression);if(!l&&!u&&la(c)){var d=__(c.expression);if(Jf(d,3072))return F&&gt(e,Dy.Diagnostics.Type_0_cannot_be_used_to_index_type_1,qr(d),qr(r)),W;var p=Jf(d,168)&&yo(r,1)||yo(r,0);return p||!F||R.suppressImplicitAnyIndexErrors||(yo(r,1)?gt(e,Dy.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number):gt(e,Dy.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,qr(r))),p||W}var m=l?Mp(c):void 0,f=l?gi(m):u?Dy.getPropertyNameForKnownSymbolName(Dy.idText(c.expression.name)):Dy.getTextOfPropertyName(c);if(k&&4194304&e.flags&&Dy.isParameterDeclaration(e)&&(r=gu(r)),l&&m&&!po(r,f)&&Jf(m,3072))return F&&gt(e,Dy.Diagnostics.Type_0_cannot_be_used_to_index_type_1,qr(m),qr(r)),W;var _=Hd(oa(r,f),e.name);if(!(n=_&&Fd(e,_)||Ip(f)&&yo(r,1)||yo(r,0)))return gt(c,Dy.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,qr(r),Dy.declarationNameToString(c)),J}else{var g=Tg(r,t,!1,!1),v=t.elements.indexOf(e);if(e.dotDotDotToken)n=su(r)?Lp((r.typeArguments||Dy.emptyArray).slice(v,as(r))):Bs(g);else{var y=t.elements.indexOf(e);if(!(n=Zl(r)?$l(r,y)||e.initializer&&c_(e):g))return su(r)?gt(e,Dy.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,qr(r),as(r),t.elements.length):gt(e,Dy.Diagnostics.Type_0_has_no_property_1,qr(r),""+y),J}}return!k||!e.initializer||8192&du(o_(e.initializer))||(n=od(n,131072)),e.initializer&&!Dy.getEffectiveTypeAnnotationNode(Dy.walkUpBindingElementsAndPatterns(e))?Qs([n,o_(e.initializer)],2):n}function pa(e){var n=Dy.getJSDocType(e);if(n)return Fc(n)}function ma(e){var n=Dy.skipParentheses(e);return 185===n.kind&&0===n.elements.length}function fa(e,n){return void 0===n&&(n=!0),k&&n?_u(e):e}function _a(e,n){if(Dy.isVariableDeclaration(e)&&224===e.parent.parent.kind){var t=oc(cm(e.parent.parent.expression));return 1114112&t.flags?sc(t):ee}if(Dy.isVariableDeclaration(e)&&225===e.parent.parent.kind){var r=e.parent.parent;return Eg(r.expression,r.awaitModifier)||W}if(Dy.isBindingPattern(e.parent))return da(e);var a,i,o=n&&(Dy.isParameter(e)&&To(e)||!Dy.isBindingElement(e)&&!Dy.isVariableDeclaration(e)&&!!e.questionToken),s=Ca(e);if(s)return fa(s,o);if((F||Dy.isInJSFile(e))&&235===e.kind&&!Dy.isBindingPattern(e.name)&&!(1&Dy.getCombinedModifierFlags(e))&&!(4194304&e.flags)){if(!(2&Dy.getCombinedNodeFlags(e)||e.initializer&&(a=e.initializer,95!==(i=Dy.skipParentheses(a)).kind&&(71!==i.kind||Xu(i)!==T))))return q;if(e.initializer&&ma(e.initializer))return Re}if(149===e.kind){var c,l=e.parent;if(157===l.kind&&!_i(l)){var u=Dy.getDeclarationOfKind(vr(e.parent),156);if(u){var d=No(u),p=fy(l);return p&&e===p?(Dy.Debug.assert(!p.type),wa(d.thisParameter)):Fo(d)}}if(Dy.isInJSFile(e)){var m=Dy.getJSDocType(l);if(m&&Dy.isFunctionTypeNode(m))return Ef(No(m),l.parameters.indexOf(e))}if(c="this"===e.symbol.escapedName?tp(l):rp(e))return fa(c,o)}else if(Dy.isInJSFile(e)){var f=va(e,vr(e),Dy.getDeclaredExpandoInitializer(e));if(f)return f}return e.initializer?fa(c=c_(e),o):Dy.isJsxAttribute(e)?ae:Dy.isBindingPattern(e.name)?Ta(e.name,!1,!0):void 0}function ga(e,n){var t=Dy.getAssignedExpandoInitializer(e.valueDeclaration);if(t){var r=Dy.getJSDocTypeTag(t);return r&&r.typeExpression?Fc(r.typeExpression):va(e.valueDeclaration,e,t)||au(o_(t))}for(var a,i,o=!1,s=!1,c=0,l=e.declarations;c<l.length;c++){var u=l[c],d=Dy.isBinaryExpression(u)?u:Dy.isPropertyAccessExpression(u)?Dy.isBinaryExpression(u.parent)?u.parent:u:void 0;if(!d)return J;var p=Dy.isPropertyAccessExpression(d)?Dy.getAssignmentDeclarationPropertyAccessKind(d):Dy.getAssignmentDeclarationKind(d);4===p&&(ba(d)?o=!0:s=!0),(a=ya(a,d,0,u))||(i||(i=[])).push(Dy.isBinaryExpression(d)?ha(e,n,d,p):ce)}var m,f,_=a;if(!_){var g=o?(m=i,f=e.declarations,Dy.Debug.assert(m.length===f.length),m.filter(function(e,n){var t=f[n],r=Dy.isBinaryExpression(t)?t:Dy.isBinaryExpression(t.parent)?t.parent:void 0;return r&&ba(r)})):void 0;if(s){var v=function(e){var n=Dy.forEach(e.declarations,function(e){var n=Dy.getThisContainer(e,!1).parent;return Dy.isClassLike(n)&&n});if(n){var t=ri(vr(n)),r=t&&Ja(t)[0];if(r)return oa(r,e.escapedName)}}(e);v&&((g||(g=[])).push(v),o=!0)}_=Qs(Dy.some(g,function(e){return!!(-134242305&e.flags)})?g:i,2)}var y=xu(fa(_,s&&!o));return Td(y,function(e){return!!(-24577&e.flags)})===ce?(F&&Du(e.valueDeclaration,W),W):y}function va(e,n,t){if(Dy.isInJSFile(e)&&t&&Dy.isObjectLiteralExpression(t)&&!t.properties.length){for(var r=Dy.createSymbolTable();Dy.isBinaryExpression(e)||Dy.isPropertyAccessExpression(e);){var a=vr(e);a&&Dy.hasEntries(a.exports)&&Dt(r,a.exports),e=Dy.isBinaryExpression(e)?e.parent:e.parent.parent}var i=vr(e);i&&Dy.hasEntries(i.exports)&&Dt(r,i.exports);var o=Ir(n,r,Dy.emptyArray,Dy.emptyArray,void 0,void 0);return o.objectFlags|=16384,o}}function ya(e,n,t,r){var a=Dy.getJSDocType(n.parent);if(a){var i=xu(Fc(a));if(!e)return i;e===J||i===J||ul(e,i)||fg(e,r,i)}return e}function ha(e,n,t,r){var a=n?wa(n):au(o_(t.right));if(131072&a.flags&&2===r&&"export="===e.escapedName){var i=Ui(a),o=Dy.createSymbolTable();Dy.copyEntries(i.members,o),n&&!n.exports&&(n.exports=Dy.createSymbolTable()),(n||e).exports.forEach(function(e,n){if(o.has(n)){var t=i.members.get(n),r=yt(e.flags|t.flags,n);r.type=Qs([wa(e),wa(t)]),o.set(n,r)}else o.set(n,e)});var s=Ir(i.symbol,o,i.callSignatures,i.constructSignatures,i.stringIndexInfo,i.numberIndexInfo);return s.objectFlags|=16384&Dy.getObjectFlags(a),s}return Ql(a)?(F&&Du(t,Pe),Pe):a}function ba(e){var n=Dy.getThisContainer(e,!1);return 155===n.kind||237===n.kind||194===n.kind&&!Dy.isPrototypePropertyAssignment(n.parent)}function Ea(e,n,t){return e.initializer?fa(c_(e)):Dy.isBindingPattern(e.name)?Ta(e.name,n,t):(t&&F&&!xa(e)&&Du(e,W),W)}function Ta(e,n,t){return void 0===n&&(n=!1),void 0===t&&(t=!1),182===e.kind?function(e,a,i){var o,s=Dy.createSymbolTable(),c=128;Dy.forEach(e.elements,function(e){var n=e.propertyName||e.name;if(la(n))c|=512;else if(e.dotDotDotToken)o=Yo(W,!1);else{var t=Dy.getTextOfPropertyName(n),r=yt(4|(e.initializer?16777216:0),t);r.type=Ea(e,a,i),r.bindingElement=e,s.set(r.escapedName,r)}});var n=Ir(void 0,s,Dy.emptyArray,Dy.emptyArray,o,void 0);return n.flags|=268435456,n.objectFlags|=c,a&&(n.pattern=e),n}(e,n,t):function(e,n,t){var r=e.elements,a=Dy.lastOrUndefined(r),i=!(!a||184!==a.kind||!a.dotDotDotToken);if(0===r.length||1===r.length&&i)return 2<=P?Gs(W):Pe;var o=Hs(Dy.map(r,function(e){return Dy.isOmittedExpression(e)?W:Ea(e,n,t)}),Dy.findLastIndex(r,function(e){return!Dy.isOmittedExpression(e)&&!Dp(e)},r.length-(i?2:1))+1,i);return n&&((o=rs(o)).pattern=e),o}(e,n,t)}function Sa(e,n){return t=_a(e,!0),r=e,a=n,t?(a&&Au(r,t),2048&t.flags&&(Dy.isBindingElement(r)||!r.type)&&t.symbol!==vr(r)&&(t=oe),xu(t)):(t=Dy.isParameter(r)&&r.dotDotDotToken?Pe:W,a&&F&&(xa(r)||Du(r,t)),t);var t,r,a}function xa(e){var n=Dy.getRootDeclaration(e);return M_(149===n.kind?n.parent:n)}function Ca(e){var n=Dy.getEffectiveTypeAnnotationNode(e);if(n)return Fc(n)}function Da(e){var n=Lt(e);return n.type||(n.type=function(e){if(4194304&e.flags)return(n=ri(yr(e))).typeParameters?ts(n,Dy.map(n.typeParameters,function(e){return W})):n;var n;if(e===O)return W;if(134217728&e.flags){var t=vr(Dy.getSourceFileOfNode(e.valueDeclaration)),r=Dy.createSymbolTable();return r.set("exports",t),Ir(e,r,Dy.emptyArray,Dy.emptyArray,void 0,void 0)}var a,i=e.valueDeclaration;if(Dy.isCatchClauseVariableDeclarationOrBindingElement(i))return W;if(Dy.isSourceFile(i)){var o=Dy.cast(i,Dy.isJsonSourceFile);if(!o.statements.length)return fe;var s=au(__(o.statements[0].expression));return 131072&s.flags?hu(s):s}if(252===i.kind)return __(i.expression);if(!na(e,0))return J;if(Dy.isInJSFile(i)&&(Dy.isBinaryExpression(i)||Dy.isPropertyAccessExpression(i)&&Dy.isBinaryExpression(i.parent)))a=ga(e);else if(Dy.isJSDocPropertyLikeTag(i)||Dy.isPropertyAccessExpression(i)||Dy.isIdentifier(i)||Dy.isClassDeclaration(i)||Dy.isFunctionDeclaration(i)||Dy.isMethodDeclaration(i)&&!Dy.isObjectLiteralMethod(i)||Dy.isMethodSignature(i)){if(9136&e.flags)return Ma(e);a=Dy.isBinaryExpression(i.parent)?ga(e):Ca(i)||W}else if(Dy.isPropertyAssignment(i))a=Ca(i)||u_(i);else if(Dy.isJsxAttribute(i))a=Ca(i)||Gp(i);else if(Dy.isShorthandPropertyAssignment(i))a=Ca(i)||l_(i.name,0);else if(Dy.isObjectLiteralMethod(i))a=Ca(i)||d_(i,0);else{if(!(Dy.isParameter(i)||Dy.isPropertyDeclaration(i)||Dy.isPropertySignature(i)||Dy.isVariableDeclaration(i)||Dy.isBindingElement(i)))return Dy.Debug.fail("Unhandled declaration kind! "+Dy.Debug.showSyntaxKind(i)+" for "+Dy.Debug.showSymbol(e));a=Sa(i,!0)}return aa()||(a=Oa(e)),a}(e))}function Aa(e){if(e)return 156!==e.kind?Dy.getEffectiveSetAccessorTypeAnnotationNode(e):Dy.getEffectiveReturnTypeNode(e)}function La(e){var n=Aa(e);return n&&Fc(n)}function ka(e){return wo(No(e))}function Na(e){var n=Lt(e);return n.type||(n.type=function(e){var n,t=Dy.getDeclarationOfKind(e,156),r=Dy.getDeclarationOfKind(e,157);if(t&&Dy.isInJSFile(t)){var a=pa(t);if(a)return a}if(!na(e,0))return J;var i=La(t);if(i)n=i;else{var o=La(r);n=o||(t&&t.body?wf(t):(F&&(r?gt(r,Dy.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ur(e)):(Dy.Debug.assert(!!t,"there must existed getter as we are current checking either setter or getter in this function"),gt(t,Dy.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ur(e)))),W))}if(!aa()&&(n=W,F)){var s=Dy.getDeclarationOfKind(e,156);gt(s,Dy.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,Ur(e))}return n}(e))}function Ia(e){var n=za(Ya(e));return 2162688&n.flags?n:void 0}function Ma(e){var n=Lt(e),t=n;if(!n.type){var r=Dy.getDeclarationOfExpando(e.valueDeclaration);if(r){var a=vr(r);a&&(Dy.hasEntries(a.exports)||Dy.hasEntries(a.members))&&(n=e=Tt(e),Dy.hasEntries(a.exports)&&(e.exports=e.exports||Dy.createSymbolTable(),Dt(e.exports,a.exports)),Dy.hasEntries(a.members)&&(e.members=e.members||Dy.createSymbolTable(),Dt(e.members,a.members)))}t.type=n.type=function(e){var n=e.valueDeclaration;if(1536&e.flags&&Dy.isShorthandAmbientModuleSymbol(e))return W;if(202===n.kind||187===n.kind&&202===n.parent.kind)return ga(e);if(512&e.flags&&n&&Dy.isSourceFile(n)&&n.commonJsModuleIndicator){var t=sr(e);if(t!==e){if(!na(e,0))return J;var r=gr(e.exports.get("export=")),a=ga(r,r===t?void 0:t);return aa()?a:Oa(e)}}var i=Ar(16,e);if(32&e.flags){var o=Ia(e);return o?tc([i,o]):i}return k&&16777216&e.flags?_u(i):i}(e)}return n.type}function Oa(e){return Dy.getEffectiveTypeAnnotationNode(e.valueDeclaration)?(gt(e.valueDeclaration,Dy.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ur(e)),J):(F&&gt(e.valueDeclaration,Dy.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ur(e)),W)}function wa(e){return 1&Dy.getCheckFlags(e)?function(e){var n=Lt(e);if(!n.type){if(!na(e,0))return n.type=J;var t=tl(wa(n.target),n.mapper);aa()||(t=Oa(e)),n.type=t}return n.type}(e):2048&Dy.getCheckFlags(e)?Pu((n=e).propertyType,n.mappedType):7&e.flags?Da(e):9136&e.flags?Ma(e):8&e.flags?(r=Lt(t=e)).type||(r.type=ni(t)):98304&e.flags?Na(e):2097152&e.flags?function(e){var n=Lt(e);if(!n.type){var t=Yt(e);n.type=67220415&t.flags?wa(t):J}return n.type}(e):J;var n,t,r}function Pa(e,n){return void 0!==e&&void 0!==n&&0!=(4&Dy.getObjectFlags(e))&&e.target===n}function Ra(e){return 4&Dy.getObjectFlags(e)?e.target:e}function Fa(e,r){return function e(n){if(7&Dy.getObjectFlags(n)){var t=Ra(n);return t===r||Dy.some(Ja(t),e)}return!!(524288&n.flags)&&Dy.some(n.types,e)}(e)}function Ga(e,n){for(var t=0,r=n;t<r.length;t++){var a=r[t];e=Dy.appendIfUnique(e,ti(vr(a)))}return e}function Va(e,n){for(;;){if(!(e=e.parent))return;switch(e.kind){case 238:case 207:case 239:case 158:case 159:case 153:case 163:case 164:case 287:case 237:case 154:case 194:case 195:case 240:case 301:case 302:case 295:case 179:case 173:var t=Va(e,n);if(179===e.kind)return Dy.append(t,ti(vr(e.typeParameter)));if(173===e.kind)return Dy.concatenate(t,bc(e));var r=Ga(t,Dy.getEffectiveTypeParameterDeclarations(e)),a=n&&(238===e.kind||207===e.kind||239===e.kind)&&Ya(vr(e)).thisType;return a?Dy.append(r,a):r}}}function Ba(e){return Va(32&e.flags?e.valueDeclaration:Dy.getDeclarationOfKind(e,239))}function Ka(e){for(var n,t=0,r=e.declarations;t<r.length;t++){var a=r[t];if(239===a.kind||238===a.kind||207===a.kind||Dy.isTypeAlias(a)){var i=a;n=Ga(n,Dy.getEffectiveTypeParameterDeclarations(i))}}return n}function ja(e){var n=fo(e,1);if(1!==n.length)return!1;var t=n[0];return!t.typeParameters&&1===t.parameters.length&&t.hasRestParameter&&hf(t.parameters[0])===Pe}function Ha(e){if(Xa(e)&&0<fo(e,1).length)return!0;if(2162688&e.flags){var n=eo(e);return!!n&&Xa(n)&&ja(n)}return sf(e)}function Ua(e){return Dy.getEffectiveBaseTypeNode(e.symbol.valueDeclaration)}function Wa(e,n,t){var r=Dy.length(n),a=Dy.isInJSFile(t);return sf(e)&&!r?fo(e,0):Dy.filter(fo(e,1),function(e){return(a||r>=Lo(e.typeParameters))&&r<=Dy.length(e.typeParameters)})}function qa(e,n,t){var r=Wa(e,n,t),a=Dy.map(n,Fc);return Dy.sameMap(r,function(e){return Dy.some(e.typeParameters)?Bo(e,a,Dy.isInJSFile(t)):e})}function za(e){if(!e.resolvedBaseConstructorType){var n=e.symbol.valueDeclaration,t=Dy.getEffectiveBaseTypeNode(n),r=Ua(e);if(!r)return e.resolvedBaseConstructorType=Y;if(!na(e,1))return J;var a=__(r.expression);if(t&&r!==t&&(Dy.Debug.assert(!t.typeArguments),__(t.expression)),655360&a.flags&&Ui(a),!aa())return gt(e.symbol.valueDeclaration,Dy.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ur(e.symbol)),e.resolvedBaseConstructorType=J;if(!(1&a.flags||a===$||Ha(a)))return gt(r.expression,Dy.Diagnostics.Type_0_is_not_a_constructor_function_type,qr(a)),e.resolvedBaseConstructorType=J;e.resolvedBaseConstructorType=a}return e.resolvedBaseConstructorType}function Ja(e){return e.resolvedBaseTypes||(8&e.objectFlags?e.resolvedBaseTypes=[Bs(Qs(e.typeParameters||Dy.emptyArray))]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=Dy.resolvingEmptyArray;var n=so(za(e));if(!(655361&n.flags))return e.resolvedBaseTypes=Dy.emptyArray;var t,r=Ua(e),a=ys(r),i=n&&n.symbol?ri(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&function(e){var n=e.outerTypeParameters;if(n){var t=n.length-1,r=e.typeArguments;return n[t].symbol!==r[t].symbol}return!0}(i))t=is(r,n.symbol,a);else if(1&n.flags)t=n;else if(sf(n)&&!r.typeArguments)t=cf(n.symbol)||W;else{var o=qa(n,r.typeArguments,r);if(!o.length)return gt(r.expression,Dy.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=Dy.emptyArray;t=Fo(o[0])}t===J?e.resolvedBaseTypes=Dy.emptyArray:Xa(t)?e===t||Fa(t,e)?(gt(e.symbol.valueDeclaration,Dy.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,qr(e,void 0,2)),e.resolvedBaseTypes=Dy.emptyArray):(e.resolvedBaseTypes===Dy.resolvingEmptyArray&&(e.members=void 0),e.resolvedBaseTypes=[t]):(gt(r.expression,Dy.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,qr(t)),e.resolvedBaseTypes=Dy.emptyArray)}(e),64&e.symbol.flags&&function(e){e.resolvedBaseTypes=e.resolvedBaseTypes||Dy.emptyArray;for(var n=0,t=e.symbol.declarations;n<t.length;n++){var r=t[n];if(239===r.kind&&Dy.getInterfaceBaseTypeNodes(r))for(var a=0,i=Dy.getInterfaceBaseTypeNodes(r);a<i.length;a++){var o=i[a],s=Fc(o);s!==J&&(Xa(s)?e===s||Fa(s,e)?gt(r,Dy.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,qr(e,void 0,2)):e.resolvedBaseTypes===Dy.emptyArray?e.resolvedBaseTypes=[s]:e.resolvedBaseTypes.push(s):gt(o,Dy.Diagnostics.An_interface_may_only_extend_a_class_or_another_interface))}}}(e)):Dy.Debug.fail("type must be class or interface")),e.resolvedBaseTypes}function Xa(e){return!!(16908289&e.flags)&&!Hi(e)||!!(524288&e.flags)&&Dy.every(e.types,Xa)}function Ya(e){var n=Lt(e);if(!n.declaredType){var t=32&e.flags?1:2,r=n.declaredType=Ar(t,e),a=Ba(e),i=Ka(e);(a||i||1===t||!function(e){for(var n=0,t=e.declarations;n<t.length;n++){var r=t[n];if(239===r.kind){if(64&r.flags)return!1;var a=Dy.getInterfaceBaseTypeNodes(r);if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];if(Dy.isEntityNameExpression(s.expression)){var c=nr(s.expression,67897832,!0);if(!c||!(64&c.flags)||Ya(c).thisType)return!1}}}}return!0}(e))&&(r.objectFlags|=4,r.typeParameters=Dy.concatenate(a,i),r.outerTypeParameters=a,r.localTypeParameters=i,r.instantiations=Dy.createMap(),r.instantiations.set(es(r.typeParameters),r),(r.target=r).typeArguments=r.typeParameters,r.thisType=xr(65536),r.thisType.isThisType=!0,r.thisType.symbol=e,r.thisType.constraint=r)}return n.declaredType}function Qa(e){var n=e.initializer;if(!n)return!(4194304&e.flags);switch(n.kind){case 9:case 8:return!0;case 200:return 38===n.operator&&8===n.operand.kind;case 71:return Dy.nodeIsMissing(n)||!!vr(e.parent).exports.get(n.escapedText);case 202:return function e(n){return 9===n.kind||202===n.kind&&e(n.left)&&e(n.right)}(n);default:return!1}}function Za(e){var n=Lt(e);if(void 0!==n.enumKind)return n.enumKind;for(var t=!1,r=0,a=e.declarations;r<a.length;r++){var i=a[r];if(241===i.kind)for(var o=0,s=i.members;o<s.length;o++){var c=s[o];if(c.initializer&&9===c.initializer.kind)return n.enumKind=1;Qa(c)||(t=!0)}}return n.enumKind=t?0:1}function $a(e){return 512&e.flags&&!(262144&e.flags)?ri(yr(e.symbol)):e}function ei(e){var n=Lt(e);if(n.declaredType)return n.declaredType;if(1===Za(e)){p++;for(var t=[],r=0,a=e.declarations;r<a.length;r++){var i=a[r];if(241===i.kind)for(var o=0,s=i.members;o<s.length;o++){var c=s[o],l=Mc(wc(Gv(c),p,vr(c)));Lt(vr(c)).declaredType=l,t.push(Oc(l))}}if(t.length){var u=Qs(t,1,e,void 0);return 262144&u.flags&&(u.flags|=512,u.symbol=e),n.declaredType=u}}var d=xr(32);return d.symbol=e,n.declaredType=d}function ni(e){var n=Lt(e);if(!n.declaredType){var t=ei(yr(e));n.declaredType||(n.declaredType=t)}return n.declaredType}function ti(e){var n=Lt(e);if(!n.declaredType){var t=xr(65536);t.symbol=e,n.declaredType=t}return n.declaredType}function ri(e){return ai(e)||J}function ai(e){return 96&e.flags?Ya(e):524288&e.flags?function(e){var n=Lt(e);if(!n.declaredType){if(!na(e,2))return J;var t=Dy.find(e.declarations,function(e){return Dy.isJSDocTypeAlias(e)||240===e.kind}),r=Dy.isJSDocTypeAlias(t)?t.typeExpression:t.type,a=r?Fc(r):J;if(aa()){var i=Ka(e);i&&(n.typeParameters=i,n.instantiations=Dy.createMap(),n.instantiations.set(es(i),a))}else a=J,gt(t.name,Dy.Diagnostics.Type_alias_0_circularly_references_itself,Ur(e));n.declaredType=a}return n.declaredType}(e):262144&e.flags?ti(e):384&e.flags?ei(e):8&e.flags?ni(e):2097152&e.flags?((t=Lt(n=e)).declaredType||(t.declaredType=ri(Yt(n))),t.declaredType):void 0;var n,t}function ii(e){switch(e.kind){case 119:case 142:case 137:case 134:case 122:case 138:case 135:case 105:case 140:case 95:case 131:case 180:return!0;case 167:return ii(e.elementType);case 162:return!e.typeArguments||e.typeArguments.every(ii)}return!1}function oi(e){var n=Dy.getEffectiveConstraintOfTypeParameter(e);return!n||ii(n)}function si(e){var n=Dy.getEffectiveTypeAnnotationNode(e);return n?ii(n):!Dy.hasInitializer(e)}function ci(e){if(e.declarations&&1===e.declarations.length){var n=e.declarations[0];if(n)switch(n.kind){case 152:case 151:return si(n);case 154:case 153:case 155:return t=n,r=Dy.getEffectiveReturnTypeNode(t),a=Dy.getEffectiveTypeParameterDeclarations(t),(155===t.kind||!!r&&ii(r))&&t.parameters.every(si)&&a.every(oi)}}var t,r,a;return!1}function li(e,n,t){for(var r=Dy.createSymbolTable(),a=0,i=e;a<i.length;a++){var o=i[a];r.set(o.escapedName,t&&ci(o)?o:Xc(o,n))}return r}function ui(e,n){for(var t=0,r=n;t<r.length;t++){var a=r[t];e.has(a.escapedName)||e.set(a.escapedName,a)}}function di(e){if(!e.declaredProperties){var n=e.symbol,t=hi(n);e.declaredProperties=kr(t),e.declaredCallSignatures=Dy.emptyArray,e.declaredConstructSignatures=Dy.emptyArray,e.declaredCallSignatures=Oo(t.get("__call")),e.declaredConstructSignatures=Oo(t.get("__new")),e.declaredStringIndexInfo=Qo(n,0),e.declaredNumberIndexInfo=Qo(n,1)}return e}function pi(e){return!!(2240&e.flags)}function mi(e){return Dy.isComputedPropertyName(e)&&Dy.isEntityNameExpression(e.expression)&&pi(Mp(e))}function fi(e){var n=Dy.getNameOfDeclaration(e);return!!n&&mi(n)}function _i(e){return Dy.hasDynamicName(e)&&!fi(e)}function gi(e){return 2048&e.flags?"__@"+e.symbol.escapedName+"@"+My(e.symbol):192&e.flags?Dy.escapeLeadingUnderscores(""+e.value):Dy.Debug.fail()}function vi(e,n,t,r){Dy.Debug.assert(!!r.symbol,"The member is expected to have a symbol.");var a,i,o,s=kt(r);if(!s.resolvedSymbol){s.resolvedSymbol=r.symbol;var c=Mp(r.name);if(pi(c)){var l=gi(c),u=r.symbol.flags,d=t.get(l);d||t.set(l,d=yt(0,l,1024));var p=n&&n.get(l);if(d.flags&bt(u)||p){var m=p?Dy.concatenate(p.declarations,d.declarations):d.declarations,f=Dy.declarationNameToString(r.name);Dy.forEach(m,function(e){return gt(Dy.getNameOfDeclaration(e)||e,Dy.Diagnostics.Duplicate_declaration_0,f)}),gt(r.name||r,Dy.Diagnostics.Duplicate_declaration_0,f),d=yt(0,l,1024)}return d.nameType=c,a=d,i=r,o=u,Dy.Debug.assert(!!(1024&Dy.getCheckFlags(a)),"Expected a late-bound symbol."),a.flags|=o,(Lt(i.symbol).lateSymbol=a).declarations?a.declarations.push(i):a.declarations=[i],67220415&o&&(a.valueDeclaration&&a.valueDeclaration.kind===i.kind||(a.valueDeclaration=i)),d.parent?Dy.Debug.assert(d.parent===e,"Existing symbol parent should match new one"):d.parent=e,s.resolvedSymbol=d}}return s.resolvedSymbol}function yi(e,n){var t=Lt(e);if(!t[n]){var r="resolvedExports"===n,a=r?1536&e.flags?_r(e):e.exports:e.members;t[n]=a||I;for(var i=Dy.createSymbolTable(),o=0,s=e.declarations;o<s.length;o++){var c=s[o],l=Dy.getMembersOfDeclaration(c);if(l)for(var u=0,d=l;u<d.length;u++){var p=d[u];r===Dy.hasStaticModifier(p)&&fi(p)&&vi(e,a,i,p)}}t[n]=function(e,n){if(!Dy.hasEntries(e))return n;if(!Dy.hasEntries(n))return e;var t=Dy.createSymbolTable();return Dt(t,e),Dt(t,n),t}(a,i)||I}return t[n]}function hi(e){return 6240&e.flags?yi(e,"resolvedMembers"):e.members||I}function bi(e){if(106500&e.flags&&"__computed"===e.escapedName){var n=Lt(e);return!n.lateSymbol&&Dy.some(e.declarations,fi)&&(Dy.some(e.declarations,Dy.hasStaticModifier)?pr(e.parent):hi(e.parent)),n.lateSymbol||(n.lateSymbol=e)}return e}function Ei(e,n,t){if(4&Dy.getObjectFlags(e)){var r=e.target,a=e.typeArguments;if(Dy.length(r.typeParameters)===Dy.length(a)){var i=ts(r,Dy.concatenate(a,[n||r.thisType]));return t?so(i):i}}else if(524288&e.flags)return tc(Dy.map(e.types,function(e){return Ei(e,n,t)}));return t?so(e):e}function Ti(e,n,t,r){var a,i,o,s,c,l;l=Dy.rangeEquals(t,r,0,t.length)?(a=x,i=n.symbol?hi(n.symbol):Dy.createSymbolTable(n.declaredProperties),o=n.declaredCallSignatures,s=n.declaredConstructSignatures,c=n.declaredStringIndexInfo,n.declaredNumberIndexInfo):(a=jc(t,r),i=li(n.declaredProperties,a,1===t.length),o=Bc(n.declaredCallSignatures,a),s=Bc(n.declaredConstructSignatures,a),c=al(n.declaredStringIndexInfo,a),al(n.declaredNumberIndexInfo,a));var u=Ja(n);if(u.length){n.symbol&&i===hi(n.symbol)&&(i=Dy.createSymbolTable(n.declaredProperties)),Nr(e,i,o,s,c,l);for(var d=Dy.lastOrUndefined(r),p=0,m=u;p<m.length;p++){var f=m[p],_=d?Ei(tl(f,a),d):f;ui(i,Ji(_)),o=Dy.concatenate(o,fo(_,0)),s=Dy.concatenate(s,fo(_,1)),c||(c=_===W?Yo(W,!1):vo(_,0)),l=l||vo(_,1)}}Nr(e,i,o,s,c,l)}function Si(e,n,t,r,a,i,o,s,c){var l=new d(y);return l.declaration=e,l.typeParameters=n,l.parameters=r,l.thisParameter=t,l.resolvedReturnType=a,l.resolvedTypePredicate=i,l.minArgumentCount=o,l.hasRestParameter=s,l.hasLiteralTypes=c,l.target=void 0,l.mapper=void 0,l}function xi(e){return Si(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes)}function Ci(e,n,t,r,a){for(var i=0,o=e;i<o.length;i++){var s=o[i];if(ql(s,n,t,r,a,dl))return s}}function Di(e,n,t){if(n.typeParameters){if(0<t)return;for(var r=1;r<e.length;r++)if(!Ci(e[r],n,!1,!1,!1))return;return[n]}var a;for(r=0;r<e.length;r++){var i=r===t?n:Ci(e[r],n,!0,!0,!0);if(!i)return;a=Dy.appendIfUnique(a,i)}return a}function Ai(e,n){for(var t,r=Dy.map(e,function(e){return fo(e,n)}),a=0;a<r.length;a++)for(var i=0,o=r[a];i<o.length;i++){var s=o[i];if(!t||!Ci(t,s,!1,!0,!0)){var c=Di(r,s,a);if(c){var l=s;if(1<c.length){var u=s.thisParameter;if(Dy.forEach(c,function(e){return e.thisParameter})){var d=Qs(Dy.map(c,function(e){return e.thisParameter?wa(e.thisParameter):W}),2);u=yu(s.thisParameter,d)}(l=xi(s)).thisParameter=u,l.unionSignatures=c}(t||(t=[])).push(l)}}}return t||Dy.emptyArray}function Li(e,n){for(var t=[],r=!1,a=0,i=e;a<i.length;a++){var o=vo(i[a],n);if(!o)return;t.push(o.type),r=r||o.isReadonly}return Yo(Qs(t,2),r)}function ki(e,n){return e?n?tc([e,n]):e:n}function Ni(e,n){return e?n?Yo(tc([e.type,n.type]),e.isReadonly&&n.isReadonly):e:n}function Ii(e,n){return e&&n&&Yo(Qs([e.type,n.type]),e.isReadonly||n.isReadonly)}function Mi(r){for(var a,i,o=Dy.emptyArray,s=Dy.emptyArray,c=r.types,l=Dy.countWhere(c,ja),e=function(t){var e=r.types[t];if(0===l||l===c.length&&0===t||!ja(e)){var n=fo(e,1);n.length&&0<l&&(n=Dy.map(n,function(e){var n=xi(e);return n.resolvedReturnType=function(e,n,t){for(var r=[],a=0;a<n.length;a++)a===t?r.push(e):ja(n[a])&&r.push(Fo(fo(n[a],1)[0]));return tc(r)}(Fo(e),c,t),n})),s=Dy.concatenate(s,n)}o=Dy.concatenate(o,fo(e,0)),a=Ni(a,vo(e,0)),i=Ni(i,vo(e,1))},n=0;n<c.length;n++)e(n);Nr(r,I,o,s,a,i)}function Oi(e){var n=e.symbol;if(e.target)Nr(e,I,Dy.emptyArray,Dy.emptyArray,void 0,void 0),Nr(e,t=li(Wi(e.target),e.mapper,!1),Bc(fo(e.target,0),e.mapper),o=Bc(fo(e.target,1),e.mapper),r=al(vo(e.target,0),e.mapper),i=al(vo(e.target,1),e.mapper));else if(2048&n.flags)Nr(e,I,Dy.emptyArray,Dy.emptyArray,void 0,void 0),Nr(e,t=hi(n),Oo(t.get("__call")),o=Oo(t.get("__new")),r=Qo(n,0),i=Qo(n,1));else{var t=I,r=void 0;if(n.exports&&(t=pr(n)),Nr(e,t,Dy.emptyArray,Dy.emptyArray,void 0,void 0),32&n.flags){var a=za(s=Ya(n));2818048&a.flags?ui(t=Dy.createSymbolTable(kr(t)),Ji(a)):a===W&&(r=Yo(W,!1))}var i=384&n.flags?dn:void 0;if(Nr(e,t,Dy.emptyArray,Dy.emptyArray,r,i),8208&n.flags&&(e.callSignatures=Oo(n)),32&n.flags){var o,s=Ya(n);(o=Oo(n.members.get("__constructor"))).length||(o=function(e){var n=fo(za(e),1);if(0===n.length)return[Si(void 0,e.localTypeParameters,void 0,Dy.emptyArray,e,void 0,0,!1,!1)];for(var t=Ua(e),r=Dy.isInJSFile(t),a=ys(t),i=Dy.length(a),o=[],s=0,c=n;s<c.length;s++){var l=c[s],u=Lo(l.typeParameters),d=Dy.length(l.typeParameters);if(r||u<=i&&i<=d){var p=d?jo(l,ko(a,l.typeParameters,u,r)):xi(l);p.typeParameters=e.localTypeParameters,p.resolvedReturnType=e,o.push(p)}}return o}(s)),e.constructSignatures=o}}}function wi(e){return e.typeParameter||(e.typeParameter=ti(vr(e.declaration.typeParameter)))}function Pi(e){return e.constraintType||(e.constraintType=tl(Yi(wi(e)),e.mapper||x)||J)}function Ri(e){return e.templateType||(e.templateType=e.declaration.type?tl(fa(Fc(e.declaration.type),!!(4&Bi(e))),e.mapper||x):J)}function Fi(e){return Dy.getEffectiveConstraintOfTypeParameter(e.declaration.typeParameter)}function Gi(e){var n=Fi(e);return 177===n.kind&&128===n.operator}function Vi(e){if(!e.modifiersType)if(Gi(e))e.modifiersType=tl(Fc(Fi(e).type),e.mapper||x);else{var n=Pi(_c(e.declaration)),t=n&&65536&n.flags?Yi(n):n;e.modifiersType=t&&1048576&t.flags?tl(t.type,e.mapper||x):fe}return e.modifiersType}function Bi(e){var n=e.declaration;return(n.readonlyToken?38===n.readonlyToken.kind?2:1:0)|(n.questionToken?38===n.questionToken.kind?8:4:0)}function Ki(e){var n=Bi(e);return 8&n?-1:4&n?1:0}function ji(e){var n=Ki(e),t=Vi(e);return n||(Hi(t)?Ki(t):0)}function Hi(e){return!!(32&Dy.getObjectFlags(e))&&uc(Pi(e))}function Ui(e){var n,t,r,a,i,o,s,c,l;return e.members||(131072&e.flags?4&e.objectFlags?(c=di((s=e).target),l=Dy.concatenate(c.typeParameters,[c.thisType]),Ti(s,c,l,s.typeArguments&&s.typeArguments.length===l.length?s.typeArguments:Dy.concatenate(s.typeArguments,[s]))):3&e.objectFlags?Ti(o=e,di(o),Dy.emptyArray,Dy.emptyArray):2048&e.objectFlags?function(e){for(var n=vo(e.source,0),t=Bi(e.mappedType),r=!(1&t),a=4&t?0:16777216,i=n&&Yo(Pu(n.type,e.mappedType),r&&n.isReadonly),o=Dy.createSymbolTable(),s=0,c=Ji(e.source);s<c.length;s++){var l=c[s],u=2048|(r&&Hf(l)?8:0),d=yt(4|l.flags&a,l.escapedName,u);d.declarations=l.declarations,d.nameType=l.nameType,d.propertyType=wa(l),d.mappedType=e.mappedType,o.set(l.escapedName,d)}Nr(e,o,Dy.emptyArray,Dy.emptyArray,i,void 0)}(e):16&e.objectFlags?Oi(e):32&e.objectFlags&&function(s){var c,l,u=Dy.createSymbolTable();Nr(s,I,Dy.emptyArray,Dy.emptyArray,void 0,void 0);var d=wi(s),e=Pi(s),p=Ri(s.target||s),m=so(Vi(s)),f=Bi(s),n=g?64:2240;if(Gi(s)){for(var t=0,r=Ji(m);t<r.length;t++)i(ac(r[t],n));(1&m.flags||vo(m,0))&&i(ee),!g&&vo(m,1)&&i(ne)}else{var a=14745600&e.flags?so(e):e;Ed(1048576&a.flags?oc(so(a.type)):a,i)}function i(e){var n=Uc(s.mapper,jc([d],[e])),t=tl(p,n);if(2240&e.flags){var r=gi(e),a=po(m,r),i=!!(4&f||!(8&f)&&a&&16777216&a.flags),o=yt(4|(i?16777216:0),r,1&f||!(2&f)&&a&&Hf(a)?8:0);o.type=k&&i&&!fl(Y,t)?_u(t):k&&!i&&a&&16777216&a.flags?od(t,131072):t,a&&(o.syntheticOrigin=a,o.declarations=a.declarations),o.nameType=e,u.set(r,o)}else 5&e.flags?c=Yo(t,!!(1&f)):8&e.flags&&(l=Yo(t,!!(1&f)))}Nr(s,u,Dy.emptyArray,Dy.emptyArray,c,l)}(e):262144&e.flags?(t=Ai((n=e).types,0),r=Ai(n.types,1),a=Li(n.types,0),i=Li(n.types,1),Nr(n,I,t,r,a,i)):524288&e.flags&&Mi(e)),e}function Wi(e){return 131072&e.flags?Ui(e).properties:Dy.emptyArray}function qi(e,n){if(131072&e.flags){var t=Ui(e).members.get(n);if(t&&Tr(t))return t}}function zi(e){if(!e.resolvedProperties){for(var n=Dy.createSymbolTable(),t=0,r=e.types;t<r.length;t++){for(var a=0,i=Ji(r[t]);a<i.length;a++){var o=i[a];if(!n.has(o.escapedName)){var s=uo(e,o.escapedName);s&&n.set(o.escapedName,s)}}if(262144&e.flags)break}e.resolvedProperties=kr(n)}return e.resolvedProperties}function Ji(e){return 786432&(e=so(e)).flags?zi(e):Wi(e)}function Xi(e){return 65536&e.flags?Yi(e):2097152&e.flags?function(e){var n=Xi(e.objectType)||e.objectType;if(n!==e.objectType){var t=mc(n,e.indexType,void 0,J);if(t&&t!==J)return t}var r=eo(e);return r&&r!==e?r:void 0}(e):4194304&e.flags?$i(e):eo(e)}function Yi(e){return to(e)?Zo(e):void 0}function Qi(e){if(!e.resolvedDefaultConstraint){var n=e.root.trueType,t=8388608&n.flags?n.substitute:n;e.resolvedDefaultConstraint=Qs([tl(t,e.combinedMapper||e.mapper),hc(e)])}return e.resolvedDefaultConstraint}function Zi(e){if(e.root.isDistributive){var n=dc(e.checkType),t=n===e.checkType?Xi(n):n;if(t){var r=nl(e,Uc(Kc(e.root.checkType,t),e.mapper));if(!(32768&r.flags))return r}}}function $i(e){return Zi(e)||Qi(e)}function eo(e){if(15532032&e.flags){var n=ro(e);return n!==ye&&n!==he?n:void 0}return 1048576&e.flags?me:void 0}function no(e){return eo(e)||e}function to(e){return ro(e)!==he}function ro(e){var t=!1;return e.resolvedBaseConstraint||(e.resolvedBaseConstraint=Ei(r(e),e));function r(e){if(!e.immediateBaseConstraint){if(!na(e,4))return he;if(50===s)return t=!0,e.immediateBaseConstraint=ye;s++;var n=function(e){if(65536&e.flags){var n=Zo(e);return e.isThisType||!n?n:d(n)}if(786432&e.flags){for(var t=e.types,r=[],a=0,i=t;a<i.length;a++){var o=i[a],s=d(o);s&&r.push(s)}return 262144&e.flags&&r.length===t.length?Qs(r):524288&e.flags&&r.length?tc(r):void 0}if(1048576&e.flags)return me;if(2097152&e.flags){var c=d(e.objectType),l=d(e.indexType),u=c&&l?mc(c,l,void 0,J):void 0;return u&&u!==J?d(u):void 0}if(4194304&e.flags){var n=$i(e);return n&&d(n)}return 8388608&e.flags?d(e.substitute):e}(dc(e));s--,aa()&&!t||(n=he),e.immediateBaseConstraint=n||ye}return e.immediateBaseConstraint}function d(e){var n=r(e);return n!==ye&&n!==he?n:void 0}}function ao(e){if(e.default)e.default===be&&(e.default=he);else if(e.target){var n=ao(e.target);e.default=n?tl(n,e.mapper):ye}else{e.default=be;var t=e.symbol&&Dy.forEach(e.symbol.declarations,function(e){return Dy.isTypeParameterDeclaration(e)&&e.default}),r=t?Fc(t):ye;e.default===be&&(e.default=r)}return e.default}function io(e){var n=ao(e);return n!==ye&&n!==he?n:void 0}function oo(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var n=Zc(e);if(n){var t=Yi(n);if(t&&(Jl(t)||Xl(t)||su(t))){var r=Kc(n,t);return tl(e,Uc(r,e.mapper))}}return e}(e))}function so(e){var n,t=15794176&e.flags?eo(e)||fe:e;return 32&Dy.getObjectFlags(t)?oo(t):524288&t.flags?(n=t).resolvedApparentType||(n.resolvedApparentType=Ei(n,n,!0)):68&t.flags?Ne:168&t.flags?Ie:272&t.flags?Me:3072&t.flags?Cs(2<=P):16777216&t.flags?fe:1048576&t.flags?me:t}function co(e,n){for(var t,r,a,i=262144&e.flags,o=i?24:0,s=i?0:16777216,c=4,l=0,u=0,d=e.types;u<d.length;u++)if((x=so(d[u]))!==J){var p=(S=po(x,n))?Dy.getDeclarationModifierFlagsFromSymbol(S):0;if(!S||p&o){if(i){var m=!(95===(a=n).charCodeAt(0)&&95===a.charCodeAt(1)&&64===a.charCodeAt(2))&&(Ip(n)&&vo(x,1)||vo(x,0));m?(l|=m.isReadonly?8:0,r=Dy.append(r,m.type)):l|=16}}else s&=S.flags,t=Dy.appendIfUnique(t,S),l|=(Hf(S)?8:0)|(24&p?0:64)|(16&p?128:0)|(8&p?256:0)|(32&p?512:0),im(S)||(c=2)}if(t){if(!(1!==t.length||16&l||r))return t[0];for(var f,_,g,v,y=[],h=!0,b=!1,E=0,T=t;E<T.length;E++){var S=T[E];v?S.valueDeclaration!==v&&(b=!0):v=S.valueDeclaration,f=Dy.addRange(f,S.declarations);var x=wa(S);h?(_=x,g=S.nameType,h=!1):x!==_&&(l|=32),y.push(x)}Dy.addRange(y,r);var C=yt(4|s,n,c|l);return C.containingType=e,!b&&v&&(C.valueDeclaration=v),C.declarations=f,C.nameType=g,C.type=i?Qs(y):tc(y),C}}function lo(e,n){var t=e.propertyCache||(e.propertyCache=Dy.createSymbolTable()),r=t.get(n);return r||(r=co(e,n))&&t.set(n,r),r}function uo(e,n){var t=lo(e,n);return!t||16&Dy.getCheckFlags(t)?void 0:t}function po(e,n){if(131072&(e=so(e)).flags){var t=Ui(e),r=t.members.get(n);if(r&&Tr(r))return r;if(t===ve||t.callSignatures.length||t.constructSignatures.length){var a=qi(Ae,n);if(a)return a}return qi(De,n)}if(786432&e.flags)return uo(e,n)}function mo(e,n){if(917504&e.flags){var t=Ui(e);return 0===n?t.callSignatures:t.constructSignatures}return Dy.emptyArray}function fo(e,n){return mo(so(e),n)}function _o(e,n){if(917504&e.flags){var t=Ui(e);return 0===n?t.stringIndexInfo:t.numberIndexInfo}}function go(e,n){var t=_o(e,n);return t&&t.type}function vo(e,n){return _o(so(e),n)}function yo(e,n){return go(so(e),n)}function ho(e,n){if(vu(e)){for(var t=[],r=0,a=Ji(e);r<a.length;r++){var i=a[r];(0===n||Ip(i.escapedName))&&t.push(wa(i))}if(t.length)return Qs(t,2)}}function bo(e){for(var n,t=0,r=Dy.getEffectiveTypeParameterDeclarations(e);t<r.length;t++){var a=r[t];n=Dy.appendIfUnique(n,ti(a.symbol))}return n}function Eo(e){var t=[];return e.forEach(function(e,n){Lr(n)||t.push(e)}),t}function To(e){return Dy.isInJSFile(e)&&(e.type&&286===e.type.kind||Dy.getJSDocParameterTags(e).some(function(e){var n=e.isBracketed,t=e.typeExpression;return n||!!t&&286===t.type.kind}))}function So(e,n){if(!Dy.isExternalModuleNameRelative(e)){var t=It(pn,'"'+e+'"',512);return t&&n?gr(t):t}}function xo(e){if(Dy.hasQuestionToken(e)||Co(e)||To(e))return!0;if(e.initializer){var n=No(e.parent),t=e.parent.parameters.indexOf(e);return Dy.Debug.assert(0<=t),t>=Cf(n)}var r=Dy.getImmediatelyInvokedFunctionExpression(e.parent);return!!r&&!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=r.arguments.length}function Co(e){if(!Dy.isJSDocParameterTag(e))return!1;var n=e.isBracketed,t=e.typeExpression;return n||!!t&&286===t.type.kind}function Do(e,n,t){return{kind:1,parameterName:e,parameterIndex:n,type:t}}function Ao(e){return{kind:0,type:e}}function Lo(e){var n,t=0;if(e)for(var r=0;r<e.length;r++)(n=e[r]).symbol&&Dy.forEach(n.symbol.declarations,function(e){return Dy.isTypeParameterDeclaration(e)&&e.default})||(t=r+1);return t}function ko(e,n,t,r){var a=Dy.length(n);if(a){var i=Dy.length(e);if(r||t<=i&&i<=a){e||(e=[]);for(var o=i;o<a;o++)e[o]=qu(r);for(o=i;o<a;o++){var s=jc(n,e),c=io(n[o]);r&&c&&ul(c,fe)&&(c=W),e[o]=c?tl(c,s):qu(r)}e.length=n.length}}return e}function No(e){var n,t=kt(e);if(!t.resolvedSignature){for(var r=[],a=!1,i=0,o=void 0,s=!1,c=Dy.getImmediatelyInvokedFunctionExpression(e),l=Dy.isJSDocConstructSignature(e),u=!c&&Dy.isInJSFile(e)&&Dy.isValueSignatureDeclaration(e)&&!Dy.hasJSDocParameterTags(e)&&!Dy.getJSDocType(e),d=l?1:0;d<e.parameters.length;d++){var p=e.parameters[d],m=p.symbol,f=Dy.isJSDocParameterTag(p)?p.typeExpression&&p.typeExpression.type:p.type;m&&4&m.flags&&!Dy.isBindingPattern(p.name)&&(m=Ot(p,m.escapedName,67220415,void 0,void 0,!1)),0===d&&"this"===m.escapedName?(s=!0,o=p.symbol):r.push(m),f&&180===f.kind&&(a=!0),Co(p)||p.initializer||p.questionToken||p.dotDotDotToken||c&&r.length>c.arguments.length&&!f||u||To(p)||(i=r.length)}if(!(156!==e.kind&&157!==e.kind||_i(e)||s&&o)){var _=156===e.kind?157:156,g=Dy.getDeclarationOfKind(vr(e),_);g&&(o=(n=fy(g))&&n.symbol)}var v=155===e.kind?Ya(gr(e.parent.symbol)):void 0,y=v?v.localTypeParameters:bo(e),h=Dy.hasRestParameter(e)||Dy.isInJSFile(e)&&function(e,n){if(Dy.isJSDocSignature(e)||!Mo(e))return!1;var t=Dy.lastOrUndefined(e.parameters),r=t?Dy.getJSDocParameterTags(t):Dy.getJSDocTags(e).filter(Dy.isJSDocParameterTag),a=Dy.firstDefined(r,function(e){return e.typeExpression&&Dy.isJSDocVariadicType(e.typeExpression.type)?e.typeExpression.type:void 0}),i=yt(3,"args",8192);return i.type=a?Bs(Fc(a.type)):Pe,a&&n.pop(),n.push(i),!0}(e,r);t.resolvedSignature=Si(e,y,o,r,void 0,void 0,i,h,a)}return t.resolvedSignature}function Io(e){var n=Dy.isInJSFile(e)?Dy.getJSDocTypeTag(e):void 0,t=n&&n.typeExpression&&Mm(Fc(n.typeExpression));return t&&Uo(t)}function Mo(e){var n=kt(e);return void 0===n.containsArgumentsReference&&(8192&n.flags?n.containsArgumentsReference=!0:n.containsArgumentsReference=function e(n){if(!n)return!1;switch(n.kind){case 71:return"arguments"===n.escapedText&&Dy.isExpressionNode(n);case 152:case 154:case 156:case 157:return 147===n.name.kind&&e(n.name);default:return!Dy.nodeStartsNewLexicalEnvironment(n)&&!Dy.isPartOfTypeNode(n)&&!!Dy.forEachChild(n,e)}}(e.body)),n.containsArgumentsReference}function Oo(e){if(!e)return Dy.emptyArray;for(var n=[],t=0;t<e.declarations.length;t++){var r=e.declarations[t];if(Dy.isFunctionLike(r)){if(0<t&&r.body){var a=e.declarations[t-1];if(r.parent===a.parent&&r.kind===a.kind&&r.pos===a.end)continue}n.push(No(r))}}return n}function wo(e){if(e.thisParameter)return wa(e.thisParameter)}function Po(e){return void 0!==Ro(e)}function Ro(e){if(!e.resolvedTypePredicate){if(e.target){var n=Ro(e.target);e.resolvedTypePredicate=n?(l=n,u=e.mapper,Dy.isIdentifierTypePredicate(l)?{kind:1,parameterName:l.parameterName,parameterIndex:l.parameterIndex,type:tl(l.type,u)}:{kind:0,type:tl(l.type,u)}):an}else if(e.unionSignatures)e.resolvedTypePredicate=function(e){for(var n,t=[],r=0,a=e;r<a.length;r++){var i=a[r],o=Ro(i);if(o){if(n){if(!Zs(n,o))return}else n=o;t.push(o.type)}}if(n){var s=Qs(t);return Dy.isIdentifierTypePredicate(n)?Do(n.parameterName,n.parameterIndex,s):Ao(s)}}(e.unionSignatures)||an;else{var t=e.declaration&&Dy.getEffectiveReturnTypeNode(e.declaration),r=void 0;if(!t&&Dy.isInJSFile(e.declaration)){var a=Io(e.declaration);a&&e!==a&&(r=Ro(a))}e.resolvedTypePredicate=t&&Dy.isTypePredicateNode(t)?(i=t,o=e.declaration,s=i.parameterName,c=Fc(i.type),71===s.kind?Do(s.escapedText,function(e,n){for(var t=0;t<e.length;t++){var r=e[t];if(71===r.name.kind&&r.name.escapedText===n.escapedText)return t}return-1}(o.parameters,s),c):Ao(c)):r||an}Dy.Debug.assert(!!e.resolvedTypePredicate)}var i,o,s,c,l,u;return e.resolvedTypePredicate===an?void 0:e.resolvedTypePredicate}function Fo(e){if(!e.resolvedReturnType){if(!na(e,3))return J;var n=e.target?tl(Fo(e.target),e.mapper):e.unionSignatures?Qs(Dy.map(e.unionSignatures,Fo),2):Go(e.declaration)||(Dy.nodeIsMissing(e.declaration.body)?W:wf(e.declaration));if(!aa()){if(e.declaration){var t=Dy.getEffectiveReturnTypeNode(e.declaration);if(t)gt(t,Dy.Diagnostics.Return_type_annotation_circularly_references_itself);else if(F){var r=e.declaration,a=Dy.getNameOfDeclaration(r);a?gt(a,Dy.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,Dy.declarationNameToString(a)):gt(r,Dy.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)}}n=W}e.resolvedReturnType=n}return e.resolvedReturnType}function Go(e){if(155===e.kind)return Ya(gr(e.parent.symbol));if(Dy.isJSDocConstructSignature(e))return Fc(e.parameters[0].type);var n,t=Dy.getEffectiveReturnTypeNode(e);if(t)return Fc(t);if(156===e.kind&&!_i(e)){var r=Dy.isInJSFile(e)&&pa(e);if(r)return r;var a=La(Dy.getDeclarationOfKind(vr(e),157));if(a)return a}return(n=Io(e))&&Fo(n)}function Vo(e){if(e.hasRestParameter){var n=wa(e.parameters[e.parameters.length-1]),t=su(n)?cu(n):n;return t&&yo(t,1)}}function Bo(e,n,t){return Ko(e,ko(n,e.typeParameters,Lo(e.typeParameters),t))}function Ko(e,n){var t=e.instantiations||(e.instantiations=Dy.createMap()),r=es(n),a=t.get(r);return a||t.set(r,a=jo(e,n)),a}function jo(e,n){return Jc(e,Ho(e,n),!0)}function Ho(e,n){return jc(e.typeParameters,n)}function Uo(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=Jc(n=e,Hc(n.typeParameters),!0)):e;var n}function Wo(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=Bo(n=e,Dy.map(n.typeParameters,function(e){return e.target&&!Yi(e.target)?e.target:e}),Dy.isInJSFile(n.declaration))):e;var n}function qo(e){var n=e.typeParameters;if(n){var t=Hc(n);return Jc(e,jc(n,Dy.map(n,function(e){return tl(eo(e),t)||fe})),!0)}return e}function zo(e){if(!e.isolatedSignatureType){var n=155===e.declaration.kind||159===e.declaration.kind,t=Ar(16);t.members=I,t.properties=Dy.emptyArray,t.callSignatures=n?Dy.emptyArray:[e],t.constructSignatures=n?[e]:Dy.emptyArray,e.isolatedSignatureType=t}return e.isolatedSignatureType}function Jo(e){return e.members.get("__index")}function Xo(e,n){var t=1===n?134:137,r=Jo(e);if(r)for(var a=0,i=r.declarations;a<i.length;a++){var o=i[a],s=Dy.cast(o,Dy.isIndexSignatureDeclaration);if(1===s.parameters.length){var c=s.parameters[0];if(c.type&&c.type.kind===t)return s}}}function Yo(e,n,t){return{type:e,isReadonly:n,declaration:t}}function Qo(e,n){var t=Xo(e,n);if(t)return Yo(t.type?Fc(t.type):W,Dy.hasModifier(t,64),t)}function Zo(e){if(!e.constraint)if(e.target){var n=Yi(e.target);e.constraint=n?tl(n,e.mapper):ye}else{var t=(a=(r=e).symbol&&Dy.getDeclarationOfKind(r.symbol,148))&&Dy.getEffectiveConstraintOfTypeParameter(a);e.constraint=t?Fc(t):function(e){var n;if(e.symbol)for(var t=0,r=e.symbol.declarations;t<r.length;t++){var a=r[t];if(174===a.parent.kind){var i=a.parent.parent;if(162===i.kind){var o=i,s=L_(o);if(s){var c=o.typeArguments.indexOf(a.parent);if(c<s.length){var l=Yi(s[c]);if(l){var u=tl(l,jc(s,D_(o,s)));u!==e&&(n=Dy.append(n,u))}}}}else 149===i.kind&&i.dotDotDotToken&&(n=Dy.append(n,Bs(X)))}}return n&&tc(n)}(e)||ye}var r,a;return e.constraint===ye?void 0:e.constraint}function $o(e){var n=Dy.getDeclarationOfKind(e.symbol,148),t=Dy.isJSDocTemplateTag(n.parent)?Dy.getHostSignatureFromJSDoc(n.parent):n.parent;return t&&vr(t)}function es(e){var n="";if(e)for(var t=e.length,r=0;r<t;){for(var a=e[r].id,i=1;r+i<t&&e[r+i].id===a+i;)i++;n.length&&(n+=","),n+=a,1<i&&(n+=":"+i),r+=i}return n}function ns(e,n){for(var t=0,r=0,a=e;r<a.length;r++){var i=a[r];i.flags&n||(t|=i.flags)}return 939524096&t}function ts(e,n){var t=es(n),r=e.instantiations.get(t);return r||(r=Ar(4,e.symbol),e.instantiations.set(t,r),r.flags|=n?ns(n,0):0,r.target=e,r.typeArguments=n),r}function rs(e){var n=xr(e.flags);return n.symbol=e.symbol,n.objectFlags=e.objectFlags,n.target=e.target,n.typeArguments=e.typeArguments,n}function as(e){return Dy.length(e.target.typeParameters)}function is(e,n,t){var r=ri(gr(n)),a=r.localTypeParameters;if(a){var i=Dy.length(e.typeArguments),o=Lo(a),s=Dy.isInJSFile(e);if((F||!s)&&(i<o||i>a.length)){var c=s&&293!==e.parent.kind;if(gt(e,o===a.length?c?Dy.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:Dy.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?Dy.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:Dy.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,qr(r,void 0,2),o,a.length),!s)return J}return ts(r,Dy.concatenate(r.outerTypeParameters,ko(t,a,o,s)))}return gs(e,n)?r:J}function os(e,n){var t=ri(e),r=Lt(e),a=r.typeParameters,i=es(n),o=r.instantiations.get(i);return o||r.instantiations.set(i,o=tl(t,jc(a,ko(n,a,Lo(a),Dy.isInJSFile(e.valueDeclaration))))),o}function ss(e){switch(e.kind){case 162:return e.typeName;case 209:var n=e.expression;if(Dy.isEntityNameExpression(n))return n}}function cs(e,n){return e&&nr(e,n)||H}function ls(e,n){var t=ys(e);if(n===H)return J;var r=ds(e,n,t);if(r)return r;var a=Dy.isInJSFile(e)&&n.valueDeclaration&&Dy.getJSDocEnumTag(n.valueDeclaration);if(a){var i=kt(a);if(!na(a,5))return J;var o=a.typeExpression?Fc(a.typeExpression):J;return aa()||(o=J,gt(e,Dy.Diagnostics.Enum_type_0_circularly_references_itself,Ur(n))),i.resolvedEnumType=o}var s=ai(n);if(s)return gs(e,n)?65536&s.flags?fs(s,e):Oc(s):J;if(!(67220415&n.flags&&_s(e)))return J;var c=us(e,n,t);return c||(cs(ss(e),67897832),wa(n))}function us(e,n,t){if(!na(n,6))return J;var r=lf(n),a=wa(n),i=a.symbol&&a.symbol!==n&&!df(a)&&ds(e,a.symbol,t);if(!aa())return Lt(n).resolvedJSDocType=J,gt(e,Dy.Diagnostics.JSDoc_type_0_circularly_references_itself,Ur(n)),J;if(i||r){var o=i&&r?tc([r,i]):i||r;return Lt(n).resolvedJSDocType=o}}function ds(e,n,t){if(96&n.flags){if(n.valueDeclaration&&Dy.isBinaryExpression(n.valueDeclaration.parent)){var r=us(e,n,t);if(r)return r}return is(e,n,t)}return 524288&n.flags?function(e,n,t){var r=ri(n),a=Lt(n).typeParameters;if(a){var i=Dy.length(e.typeArguments),o=Lo(a);return i<o||i>a.length?(gt(e,o===a.length?Dy.Diagnostics.Generic_type_0_requires_1_type_argument_s:Dy.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ur(n),o,a.length),J):os(n,t)}return gs(e,n)?r:J}(e,n,t):16&n.flags&&_s(e)&&(n.members||Dy.getJSDocClassTag(n.valueDeclaration))?uf(n):void 0}function ps(e){return 168===e.kind&&1===e.elementTypes.length}function ms(e,n,t){return ps(n)&&ps(t)?ms(e,n.elementTypes[0],t.elementTypes[0]):gc(Fc(n))===e?Fc(t):void 0}function fs(e,n){for(var t,r,a,i;n&&!Dy.isStatement(n)&&289!==n.kind;){var o=n.parent;if(173===o.kind&&n===o.trueType){var s=ms(e,o.checkType,o.extendsType);s&&(t=Dy.append(t,s))}n=o}return t?(r=e,a=tc(Dy.append(t,e)),(i=xr(8388608)).typeVariable=r,i.substitute=a,i):e}function _s(e){return!!(2097152&e.flags)&&(162===e.kind||181===e.kind)}function gs(e,n){return!e.typeArguments||(gt(e,Dy.Diagnostics.Type_0_is_not_generic,n?Ur(n):e.typeName?Dy.declarationNameToString(e.typeName):"(anonymous)"),!1)}function vs(e){var n=kt(e);if(!n.resolvedType){var t=void 0,r=void 0,a=67897832;_s(e)&&(r=function(e){if(Dy.isIdentifier(e.typeName)){var n=e.typeArguments;switch(e.typeName.escapedText){case"String":return gs(e),ee;case"Number":return gs(e),ne;case"Boolean":return gs(e),ie;case"Void":return gs(e),se;case"Undefined":return gs(e),Y;case"Null":return gs(e),Z;case"Function":case"function":return gs(e),Ae;case"Array":case"array":return n&&n.length?void 0:Pe;case"Promise":case"promise":return n&&n.length?void 0:Mf(W);case"Object":if(n&&2===n.length){if(Dy.isJSDocIndexSignature(e)){var t=Fc(n[0]),r=Yo(Fc(n[1]),!1);return Ir(void 0,I,Dy.emptyArray,Dy.emptyArray,t===ee?r:void 0,t===ne?r:void 0)}return W}return gs(e),W}}}(e),a|=67220415),r||(r=ls(e,t=cs(ss(e),a))),n.resolvedSymbol=t,n.resolvedType=r}return n.resolvedType}function ys(e){return Dy.map(e.typeArguments,Fc)}function hs(e){var n=kt(e);return n.resolvedType||(n.resolvedType=Oc(xu(__(e.exprName)))),n.resolvedType}function bs(e,n){function t(e){for(var n=0,t=e.declarations;n<t.length;n++){var r=t[n];switch(r.kind){case 238:case 239:case 241:return r}}}if(!e)return n?ge:fe;var r=ri(e);return 131072&r.flags?Dy.length(r.typeParameters)!==n?(gt(t(e),Dy.Diagnostics.Global_type_0_must_have_1_type_parameter_s,Dy.symbolName(e),n),n?ge:fe):r:(gt(t(e),Dy.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,Dy.symbolName(e)),n?ge:fe)}function Es(e,n){return Ts(e,67220415,n?Dy.Diagnostics.Cannot_find_global_value_0:void 0)}function Ts(e,n,t){return Ot(void 0,e,n,t,e,!1)}function Ss(e,n,t){var r=Ts(e,67897832,t?Dy.Diagnostics.Cannot_find_global_type_0:void 0);return r||t?bs(r,n):void 0}function xs(e){return Ve||(Ve=Es("Symbol",e))}function Cs(e){return Be||(Be=Ss("Symbol",0,e))||fe}function Ds(e){return je||(je=Ss("Promise",1,e))||ge}function As(e){return He||(He=Es("Promise",e))}function Ls(e){return Je||(Je=Ss("AsyncIterable",1,e))||ge}function ks(e){return Xe||(Xe=Ss("AsyncIterator",1,e))||ge}function Ns(e){return Ye||(Ye=Ss("AsyncIterableIterator",1,e))||ge}function Is(e){return We||(We=Ss("Iterable",1,e))||ge}function Ms(e){return qe||(qe=Ss("Iterator",1,e))||ge}function Os(e){return ze||(ze=Ss("IterableIterator",1,e))||ge}function ws(e,n){void 0===n&&(n=0);var t=Ts(e,67897832,void 0);return t&&bs(t,n)}function Ps(e,n){return e!==ge?ts(e,n):fe}function Rs(e){return Ps(Ke||(Ke=Ss("TypedPropertyDescriptor",1,!0))||ge,[e])}function Fs(e){return Ps(Ns(!0),[e])}function Gs(e){return Ps(Is(!0),[e])}function Vs(e){return Ps(Os(!0),[e])}function Bs(e){return Ps(Le,[e])}function Ks(e){return Ps(ke,[e])}function js(e,n,t,r){var a=e+(t?"+":",")+n+(r&&r.length?","+r.join(","):""),i=b.get(a);return i||b.set(a,i=function(e,n,t,r){var a,i=[],o=t?e-1:e;if(e){a=new Array(e);for(var s=0;s<e;s++){var c=a[s]=xr(65536);if(s<o){var l=yt(4|(n<=s?16777216:0),""+s);l.type=c,i.push(l)}}}var u=[];for(s=n;s<=o;s++)u.push(wc(s));var d=yt(4,"length");d.type=t?ne:Qs(u),i.push(d);var p=Ar(12);return p.typeParameters=a,p.outerTypeParameters=void 0,p.localTypeParameters=a,p.instantiations=Dy.createMap(),p.instantiations.set(es(p.typeParameters),p),(p.target=p).typeArguments=p.typeParameters,p.thisType=xr(65536),p.thisType.isThisType=!0,(p.thisType.constraint=p).declaredProperties=i,p.declaredCallSignatures=Dy.emptyArray,p.declaredConstructSignatures=Dy.emptyArray,p.declaredStringIndexInfo=void 0,p.declaredNumberIndexInfo=void 0,p.minLength=n,p.hasRestElement=t,p.associatedNames=r,p}(e,n,t,r)),i}function Hs(e,n,t,r){void 0===n&&(n=e.length),void 0===t&&(t=!1);var a=e.length;if(1===a&&t)return Bs(e[0]);var i=js(a,n,0<a&&t,r);return e.length?ts(i,e):i}function Us(e){return e.id}function Ws(e,n){return 0<=Dy.binarySearch(e,n,Us,Dy.compareValues)}function qs(e,n){var t=Dy.binarySearch(e,n,Us,Dy.compareValues);return t<0&&(e.splice(~t,0,n),!0)}function zs(e,n,t){var r=t.flags;if(262144&r)return Js(e,n,t.types);if(!(32768&r||524288&r&&function(e){for(var n=0,t=0,r=e.types;t<r.length;t++){var a=r[t];if(27072&a.flags&&27072&n)return!0;if(24576&(n|=a.flags)&&16908288&n||16777216&n&&32252&n||68&n&&16809400&n||168&n&&16809300&n||3072&n&&16806396&n||12288&n&&16797180&n)return!0}return!1}(t)))if(n|=-939524097&r,3&r)t===z&&(n|=268435456);else if(!k&&24576&r)134217728&r||(n|=134217728);else{var a=e.length,i=a&&t.id>e[a-1].id?~a:Dy.binarySearch(e,t,Us,Dy.compareValues);i<0&&e.splice(~i,0,t)}return n}function Js(e,n,t){for(var r=0,a=t;r<a.length;r++)n=zs(e,n,a[r]);return n}function Xs(e,n){for(var t=0,r=n;t<r.length;t++){var a=r[t];if(e!==a&&ml(e,a)&&(!(1&Dy.getObjectFlags(Ra(e)))||!(1&Dy.getObjectFlags(Ra(a)))||_l(e,a)))return!0}return!1}function Ys(e){if(0!==e.length&&!function(e){var n=e[0];if(512&n.flags){for(var t=yr(n.symbol),r=1;r<e.length;r++){var a=e[r];if(!(512&a.flags)||t!==yr(a.symbol))return!1}return!0}return!1}(e))for(var n=e.length;0<n;)Xs(e[--n],e)&&Dy.orderedRemoveItemAt(e,n)}function Qs(e,n,t,r){if(void 0===n&&(n=1),0===e.length)return ce;if(1===e.length)return e[0];var a=[],i=Js(a,0,e);if(3&i)return 1&i?268435456&i?z:W:X;switch(n){case 1:2240&i|256&&function(e,n){for(var t=e.length;0<t;){var r=e[--t];(64&r.flags&&4&n||128&r.flags&&8&n||2048&r.flags&&1024&n||448&r.flags&&33554432&r.flags&&Ws(e,r.regularType))&&Dy.orderedRemoveItemAt(e,t)}}(a,i);break;case 2:Ys(a)}return 0===a.length?16384&i?134217728&i?Z:$:8192&i?134217728&i?Y:Q:ce:$s(a,16748579&i?0:67108864,t,r)}function Zs(e,n){return Dy.isIdentifierTypePredicate(e)?Dy.isIdentifierTypePredicate(n)&&e.parameterIndex===n.parameterIndex:!Dy.isIdentifierTypePredicate(n)}function $s(e,n,t,r){if(0===e.length)return ce;if(1===e.length)return e[0];var a=es(e),i=S.get(a);return i||(i=xr(262144|ns(e,24576)|n),S.set(a,i),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=r),i}function ec(e,n,t){for(var r=0,a=t;r<a.length;r++){var i=a[r];o=e,s=n,c=Oc(i),n=524288&(l=c.flags)?ec(o,s,c.types):(16&Dy.getObjectFlags(c)&&Ll(c)?s|=536870912:(s|=-939524097&l,3&l?c===z&&(s|=268435456):!k&&24576&l||Dy.contains(o,c)||o.push(c)),s)}var o,s,c,l;return n}function nc(e,n){for(var t=0,r=e;t<r.length;t++){var a=r[t];if(!Ws(a.types,n)){var i=64&n.flags?ee:128&n.flags?ne:2048&n.flags?oe:void 0;if(!i||!Ws(a.types,i))return!1}}return!0}function tc(e,n,t){var r=[],a=ec(r,0,e);if(32768&a)return ce;if(1&a)return 268435456&a?z:W;if(!k&&24576&a)return 8192&a?Y:Z;if((4&a&&64&a||8&a&&128&a||1024&a&&2048&a)&&function(e,n){for(var t=e.length;0<t;){var r=e[--t];(4&r.flags&&64&n||8&r.flags&&128&n||1024&r.flags&&2048&n)&&Dy.orderedRemoveItemAt(e,t)}}(r,a),536870912&a&&!(131072&a)&&r.push(fe),0===r.length)return X;if(1===r.length)return r[0];if(262144&a){if(67108864&a&&function(e){for(var n,t=Dy.findIndex(e,function(e){return 0!=(67108864&e.flags)}),r=t+1;r<e.length;)67108864&(u=e[r]).flags?((n||(n=[e[t]])).push(u),Dy.orderedRemoveItemAt(e,r)):r++;if(!n)return!1;for(var a=[],i=[],o=0,s=n;o<s.length;o++)for(var c=0,l=s[o].types;c<l.length;c++){var u;qs(a,u=l[c])&&nc(n,u)&&qs(i,u)}return e[t]=$s(i,67108864),!0}(r))return tc(r,n,t);var i=Dy.findIndex(r,function(e){return 0!=(262144&e.flags)}),o=r[i];return Qs(Dy.map(o.types,function(e){return tc(Dy.replaceElement(r,i,e))}),1,n,t)}var s=es(r),c=N.get(s);return c||(c=xr(524288|ns(r,24576)),N.set(s,c),c.types=r,c.aliasSymbol=n,c.aliasTypeArguments=t),c}function rc(e,n){var t=xr(1048576);return t.type=e,t.stringsOnly=n,t}function ac(e,n){if(!(24&Dy.getDeclarationModifierFlagsFromSymbol(e))){var t=bi(e).nameType;if(!t&&!Dy.isKnownSymbol(e)){var r=e.valueDeclaration&&Dy.getNameOfDeclaration(e.valueDeclaration);t=r&&Dy.isNumericLiteral(r)?wc(+r.text):r&&147===r.kind&&Dy.isNumericLiteral(r.expression)?wc(+r.expression.text):wc(Dy.symbolName(e))}if(t&&t.flags&n)return t}return ce}function ic(e,n){return Qs(Dy.map(Ji(e),function(e){return ac(e,n)}))}function oc(e,n){return void 0===n&&(n=g),262144&e.flags?tc(Dy.map(e.types,function(e){return oc(e,n)})):524288&e.flags?Qs(Dy.map(e.types,function(e){return oc(e,n)})):zf(e,14745600)?(r=e,n?r.resolvedStringIndexType||(r.resolvedStringIndexType=rc(r,!0)):r.resolvedIndexType||(r.resolvedIndexType=rc(r,!1))):32&Dy.getObjectFlags(e)?Pi(e):e===z?z:1&e.flags?me:n?vo(e,0)?ee:ic(e,64):vo(e,0)?Qs([ee,ne,ic(e,2048)]):((t=vo(e,1))!==dn?t:void 0)?Qs([ne,ic(e,2112)]):ic(e,2240);var t,r}function sc(e){if(g)return e;var n=$e||($e=Ts("Extract",524288,Dy.Diagnostics.Cannot_find_global_type_0));return n?os(n,[e,ee]):ee}function cc(e){return!F&&(!!(16384&Dy.getObjectFlags(e))||(262144&e.flags?Dy.every(e.types,cc):524288&e.flags?Dy.some(e.types,cc):!!(15794176&e.flags)&&cc(ro(e))))}function lc(e,n,t,r,a){var i=t&&188===t.kind?t:void 0,o=pi(n)?gi(n):i&&xm(i.argumentExpression,n,!1)?Dy.getPropertyNameForKnownSymbolName(Dy.idText(i.argumentExpression.name)):void 0;if(void 0!==o){var s=po(e,o);if(s){if(i){if(bm(s,i,99===i.expression.kind),Dy.isAssignmentTarget(i)&&(Uf(i,s)||Wf(i)))return gt(i.argumentExpression,Dy.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Ur(s)),a;r&&(kt(t).resolvedSymbol=s)}var c=wa(s);return i?Fd(i,c):c}if(su(e)){var l=cu(e);if(l&&Ip(o)&&0<=+o)return l}}if(!(24576&n.flags)&&Jf(n,3308)){if(32769&e.flags)return e;var u=Jf(n,168)&&vo(e,1)||vo(e,0)||void 0;if(u)return t&&!Jf(n,12)?gt(p=188===t.kind?t.argumentExpression:t.indexType,Dy.Diagnostics.Type_0_cannot_be_used_as_an_index_type,qr(n)):i&&u.isReadonly&&(Dy.isAssignmentTarget(i)||Dy.isDeleteTarget(i))&&gt(i,Dy.Diagnostics.Index_signature_in_type_0_only_permits_reading,qr(e)),u.type;if(32768&n.flags)return ce;if(cc(e))return W;if(i&&!Yf(e)){if(F&&!R.suppressImplicitAnyIndexErrors)if(void 0!==o&&fm(o,e))gt(i,Dy.Diagnostics.Property_0_is_a_static_member_of_type_1,o,qr(e));else if(yo(e,1))gt(i.argumentExpression,Dy.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var d=void 0;void 0!==o&&(d=gm(o,e))?void 0!==d&&gt(i.argumentExpression,Dy.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,o,qr(e),d):gt(i,Dy.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,qr(e))}return a}}if(cc(e))return W;if(t){var p=188===t.kind?t.argumentExpression:t.indexType;192&n.flags?gt(p,Dy.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,qr(e)):12&n.flags?gt(p,Dy.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,qr(e),qr(n)):gt(p,Dy.Diagnostics.Type_0_cannot_be_used_as_an_index_type,qr(n))}return sa(n)?n:a}function uc(e){return zf(e,15794176)}function dc(e){return 2097152&e.flags?function(e){if(e.simplified)return e.simplified===he?e:e.simplified;e.simplified=he;var n=dc(e.objectType),t=dc(e.indexType);if(262144&t.flags)return e.simplified=Sd(t,function(e){return dc(mc(n,e))});if(!(15794176&t.flags)){if(262144&n.flags)return e.simplified=Sd(n,function(e){return dc(mc(e,t))});if(524288&n.flags)return e.simplified=tc(Dy.map(n.types,function(e){return dc(mc(e,t))}))}if(Hi(n))return e.simplified=pc(n,e);if(65536&n.flags){var r=Yi(n);if(r&&Hi(r))return e.simplified=pc(r,e)}return e.simplified=e}(e):e}function pc(e,n){var t=jc([wi(e)],[n.indexType]),r=Uc(e.mapper,t);return tl(Ri(e),r)}function mc(e,n,t,r){if(void 0===r&&(r=t?J:X),e===z||n===z)return z;if(uc(n)||(!t||188!==t.kind)&&zf(e,148963328)){if(3&e.flags)return e;var a=e.id+","+n.id,i=B.get(a);return i||B.set(a,(o=e,s=n,(c=xr(2097152)).objectType=o,c.indexType=s,i=c)),i}var o,s,c,l=so(e);if(!(262144&n.flags)||16&n.flags)return lc(l,n,t,!0,r);for(var u=[],d=!1,p=0,m=n.types;p<m.length;p++){var f=lc(l,m[p],t,!1,r);if(f===r){if(!t)return r;d=!0}u.push(f)}return d?r:Qs(u)}function fc(e){var n=kt(e);if(!n.resolvedType){var t=Fc(e.objectType),r=Fc(e.indexType),a=mc(t,r,e);n.resolvedType=2097152&a.flags&&a.objectType===t&&a.indexType===r?fs(a,e):a}return n.resolvedType}function _c(e){var n=kt(e);if(!n.resolvedType){var t=Ar(32,e.symbol);t.declaration=e,t.aliasSymbol=Cc(e),t.aliasTypeArguments=Dc(t.aliasSymbol),Pi(n.resolvedType=t)}return n.resolvedType}function gc(e){return 8388608&e.flags?e.typeVariable:e}function vc(e,n){var t=tl(e.checkType,n),r=tl(e.extendsType,n);if(t===z||r===z)return z;var a,i=e.isDistributive&&zf(t,15794176);if(e.inferTypeParameters){var o=ku(e.inferTypeParameters,void 0,0);i||Vu(o.inferences,t,r,96),a=Uc(n,o)}if(!i){if(3&r.flags)return tl(e.trueType,n);if(1&t.flags)return Qs([tl(e.trueType,a||n),tl(e.falseType,n)]);var s=a?tl(e.extendsType,a):r;if(!fl(rl(t),rl(s)))return tl(e.falseType,n);if(Ol(t,s,ct,void 0))return tl(e.trueType,a||n)}var c=gc(t),l=xr(4194304);return l.root=e,l.checkType=c,l.extendsType=r,l.mapper=n,l.combinedMapper=a,l.aliasSymbol=e.aliasSymbol,l.aliasTypeArguments=Vc(e.aliasTypeArguments,n),l}function yc(e){return e.resolvedTrueType||(e.resolvedTrueType=tl(e.root.trueType,e.mapper))}function hc(e){return e.resolvedFalseType||(e.resolvedFalseType=tl(e.root.falseType,e.mapper))}function bc(e){var n;return e.locals&&e.locals.forEach(function(e){262144&e.flags&&(n=Dy.append(n,ri(e)))}),n}function Ec(n){var e=kt(n);if(!e.resolvedType){var t=Fc(n.checkType),r=Cc(n),a=Dc(r),i=Va(n,!0),o=a?i:Dy.filter(i,function(e){return function(e,n){if(Qc(e,n))return!0;for(;n;){if(173===n.kind&&Qc(e,n.extendsType))return!0;n=n.parent}return!1}(e,n)}),s={node:n,checkType:t,extendsType:Fc(n.extendsType),trueType:Fc(n.trueType),falseType:Fc(n.falseType),isDistributive:!!(65536&t.flags),inferTypeParameters:bc(n),outerTypeParameters:o,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:a};e.resolvedType=vc(s,void 0),o&&(s.instantiations=Dy.createMap(),s.instantiations.set(es(o),e.resolvedType))}return e.resolvedType}function Tc(e){var n=kt(e);if(!n.resolvedType){if(e.isTypeOf&&e.typeArguments)return gt(e,Dy.Diagnostics.Type_arguments_cannot_be_used_here),n.resolvedSymbol=H,n.resolvedType=J;if(!Dy.isLiteralImportTypeNode(e))return gt(e.argument,Dy.Diagnostics.String_literal_expected),n.resolvedSymbol=H,n.resolvedType=J;var t=e.isTypeOf?67220415:2097152&e.flags?68008959:67897832,r=rr(e,e.argument.literal);if(!r)return n.resolvedSymbol=H,n.resolvedType=J;var a=sr(r,!1);if(Dy.nodeIsMissing(e.qualifier))a.flags&t?Sc(e,n,a,t):(gt(e,67220415===t?Dy.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:Dy.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,e.argument.literal.text),n.resolvedSymbol=H,n.resolvedType=J);else{for(var i=function e(n){return Dy.isIdentifier(n)?[n]:Dy.append(e(n.left),n.right)}(e.qualifier),o=a,s=void 0;s=i.shift();){var c=i.length?1920:t,l=It(pr(gr(Xt(o))),s.escapedText,c);if(!l)return gt(s,Dy.Diagnostics.Namespace_0_has_no_exported_member_1,er(o),Dy.declarationNameToString(s)),n.resolvedType=J;kt(s).resolvedSymbol=l,o=kt(s.parent).resolvedSymbol=l}Sc(e,n,o,t)}}return n.resolvedType}function Sc(e,n,t,r){var a=Xt(t);return n.resolvedSymbol=a,n.resolvedType=67220415===r?wa(t):ls(e,a)}function xc(e){var n=kt(e);if(!n.resolvedType){var t=Cc(e);if(0!==hi(e.symbol).size||t){var r=Ar(16,e.symbol);r.aliasSymbol=t,r.aliasTypeArguments=Dc(t),Dy.isJSDocTypeLiteral(e)&&e.isArrayType&&(r=Bs(r)),n.resolvedType=r}else n.resolvedType=_e}return n.resolvedType}function Cc(e){return Dy.isTypeAlias(e.parent)?vr(e.parent):void 0}function Dc(e){return e?Ka(e):void 0}function Ac(n,t,r,a,i){if(1&n.flags||1&t.flags)return W;if(2&n.flags||2&t.flags)return X;if(32768&n.flags)return t;if(32768&t.flags)return n;if(262144&n.flags)return Sd(n,function(e){return Ac(e,t,r,a,i)});if(262144&t.flags)return Sd(t,function(e){return Ac(n,e,r,a,i)});if(17826812&t.flags)return n;var e,o,s=Dy.createSymbolTable(),c=Dy.createUnderscoreEscapedMap();o=n===fe?(e=vo(t,0),vo(t,1)):(e=Ii(vo(n,0),vo(t,0)),Ii(vo(n,1),vo(t,1)));for(var l=0,u=Ji(t);l<u.length;l++){var d=u[l];24&Dy.getDeclarationModifierFlagsFromSymbol(d)?c.set(d.escapedName,!0):Lc(d)&&s.set(d.escapedName,kc(d))}for(var p=0,m=Ji(n);p<m.length;p++){var f=m[p];if(!c.has(f.escapedName)&&Lc(f))if(s.has(f.escapedName)){var _=wa(d=s.get(f.escapedName));if(16777216&d.flags){var g=Dy.concatenate(f.declarations,d.declarations),v=yt(4|16777216&f.flags,f.escapedName);v.type=Qs([wa(f),od(_,131072)]),v.leftSpread=f,v.rightSpread=d,v.declarations=g,v.nameType=f.nameType,s.set(f.escapedName,v)}}else s.set(f.escapedName,kc(f))}var y=Ir(r,s,Dy.emptyArray,Dy.emptyArray,Nc(e),Nc(o));return y.flags|=268435456|a,y.objectFlags|=1152|i,y}function Lc(e){return 40960&e.flags?!e.declarations.some(function(e){return Dy.isClassLike(e.parent)}):!(65536&e.flags)}function kc(e){if(!Hf(e))return e;var n=yt(4|16777216&e.flags,e.escapedName);return n.type=wa(e),n.declarations=e.declarations,n.nameType=e.nameType,n.syntheticOrigin=e,n}function Nc(e){return e&&e.isReadonly?Yo(e.type,!1,e.declaration):e}function Ic(e,n,t){var r=xr(e);return r.symbol=t,r.value=n,r}function Mc(e){if(!(448&e.flags)||33554432&e.flags)return e;if(!e.freshType){var n=Ic(33554432|e.flags,e.value,e.symbol);(n.regularType=e).freshType=n}return e.freshType}function Oc(e){return 448&e.flags&&33554432&e.flags?e.regularType:262144&e.flags?Qs(Dy.sameMap(e.types,Oc)):e}function wc(e,n,t){var r="number"==typeof e?"#":"@",a=n?n+r+e:r+e,i=V.get(a);if(!i){var o=("number"==typeof e?128:64)|(n?512:0);V.set(a,i=Ic(o,e,t))}return i}function Pc(e){if(Dy.isValidESSymbolDeclaration(e)){var n=vr(e),t=Lt(n);return t.uniqueESSymbolType||(t.uniqueESSymbolType=(r=n,(a=xr(2048)).symbol=r,a))}var r,a;return oe}function Rc(e){var n,t,r,a=kt(e);return a.resolvedType||(a.resolvedType=(n=e,t=Dy.getThisContainer(n,!1),!(r=t&&t.parent)||!Dy.isClassLike(r)&&239!==r.kind||Dy.hasModifier(t,32)||155===t.kind&&!Dy.isNodeDescendantOf(n,t.body)?(gt(n,Dy.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),J):Ya(vr(r)).thisType)),a.resolvedType}function Fc(e){switch(e.kind){case 119:case 282:case 283:return W;case 142:return X;case 137:return ee;case 134:return ne;case 122:return ie;case 138:return oe;case 105:return se;case 140:return Y;case 95:return Z;case 131:return ce;case 135:return 65536&e.flags?W:de;case 176:case 99:return Rc(e);case 180:return(l=kt(c=e)).resolvedType||(l.resolvedType=Oc(__(c.literal))),l.resolvedType;case 162:return vs(e);case 161:return ie;case 209:return vs(e);case 165:return hs(e);case 167:return(s=kt(o=e)).resolvedType||(s.resolvedType=Bs(Fc(o.elementType))),s.resolvedType;case 168:return function(e){var n=kt(e);if(!n.resolvedType){var t=Dy.lastOrUndefined(e.elementTypes),r=t&&170===t.kind?t:void 0,a=Dy.findLastIndex(e.elementTypes,function(e){return 169!==e.kind&&e!==r})+1,i=Dy.map(e.elementTypes,function(e){var n=Fc(e);return e===r&&yo(n,1)||n});n.resolvedType=Hs(i,a,!!r)}return n.resolvedType}(e);case 169:return i=Fc(e.type),k?_u(i):i;case 171:return function(e){var n=kt(e);if(!n.resolvedType){var t=Cc(e);n.resolvedType=Qs(Dy.map(e.types,Fc),1,t,Dc(t))}return n.resolvedType}(e);case 172:return function(e){var n=kt(e);if(!n.resolvedType){var t=Cc(e);n.resolvedType=tc(Dy.map(e.types,Fc),t,Dc(t))}return n.resolvedType}(e);case 284:return a=Fc(e.type),k?fu(a,16384):a;case 286:return fa(Fc(e.type));case 175:case 170:case 285:case 281:return Fc(e.type);case 288:return function(e){var n=Fc(e.type),t=e.parent,r=e.parent.parent;if(Dy.isJSDocTypeExpression(e.parent)&&Dy.isJSDocParameterTag(r)){var a=Dy.getHostSignatureFromJSDoc(r);if(a){var i=Dy.lastOrUndefined(a.parameters),o=Dy.getParameterSymbolFromJSDoc(r);if(!i||o&&i.symbol===o&&Dy.isRestParameter(i))return Bs(n)}}return Dy.isParameter(t)&&Dy.isJSDocFunctionType(t.parent)?Bs(n):fa(n)}(e);case 163:case 164:case 166:case 290:case 287:case 291:return xc(e);case 177:return function(e){var n=kt(e);if(!n.resolvedType)switch(e.operator){case 128:n.resolvedType=oc(Fc(e.type));break;case 141:n.resolvedType=138===e.type.kind?Pc(Dy.walkUpParenthesizedTypes(e.parent)):J}return n.resolvedType}(e);case 178:return fc(e);case 179:return _c(e);case 173:return Ec(e);case 174:return(r=kt(t=e)).resolvedType||(r.resolvedType=ti(vr(t.typeParameter))),r.resolvedType;case 181:return Tc(e);case 71:case 146:var n=fv(e);return n?ri(n):J;default:return J}var t,r,a,i,o,s,c,l}function Gc(e,n,t){if(e&&e.length)for(var r=0;r<e.length;r++){var a=e[r],i=t(a,n);if(a!==i){var o=0===r?[]:e.slice(0,r);for(o.push(i),r++;r<e.length;r++)o.push(t(e[r],n));return o}}return e}function Vc(e,n){return Gc(e,n,tl)}function Bc(e,n){return Gc(e,n,Jc)}function Kc(n,t){return function(e){return e===n?t:e}}function jc(e,n){return Dy.Debug.assert(void 0===n||e.length===n.length),1===e.length?Kc(e[0],n?n[0]:W):2===e.length?(a=e[0],i=n?n[0]:W,o=e[1],s=n?n[1]:W,function(e){return e===a?i:e===o?s:e}):(t=e,r=n,function(e){for(var n=0;n<t.length;n++)if(e===t[n])return r?r[n]:W;return e});var t,r,a,i,o,s}function Hc(e){return jc(e,void 0)}function Uc(n,t){return n?t?function(e){return tl(n(e),t)}:n:t}function Wc(n,t,r){return function(e){return e===n?t:r(e)}}function qc(e){return 65536&e.flags?z:e}function zc(e){var n=xr(65536);return n.symbol=e.symbol,n.target=e,n}function Jc(e,n,t){var r;if(e.typeParameters&&!t){r=Dy.map(e.typeParameters,zc),n=Uc(jc(e.typeParameters,r),n);for(var a=0,i=r;a<i.length;a++)i[a].mapper=n}var o=Si(e.declaration,r,e.thisParameter&&Xc(e.thisParameter,n),Gc(e.parameters,n,Xc),void 0,void 0,e.minArgumentCount,e.hasRestParameter,e.hasLiteralTypes);return o.target=e,o.mapper=n,o}function Xc(e,n){var t=Lt(e);if(t.type&&!zf(t.type,15925248))return e;1&Dy.getCheckFlags(e)&&(e=t.target,n=Uc(t.mapper,n));var r=yt(e.flags,e.escapedName,1|13312&Dy.getCheckFlags(e));return r.declarations=e.declarations,r.parent=e.parent,r.target=e,r.mapper=n,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),e.nameType&&(r.nameType=e.nameType),r}function Yc(e,n){var t=64&e.objectFlags?e.target:e,r=t.symbol,a=Lt(r),i=a.outerTypeParameters;if(!i){var o=r.declarations[0];if(Dy.isInJSFile(o)){var s=Dy.findAncestor(o,Dy.isJSDocParameterTag);if(s){var c=Dy.getParameterSymbolFromJSDoc(s);c&&(o=c.valueDeclaration)}}var l=Va(o,!0);if(of(o)){var u=bo(o);l=Dy.addRange(l,u)}i=l||Dy.emptyArray,i=2048&r.flags&&!t.aliasTypeArguments?Dy.filter(i,function(e){return Qc(e,o)}):i,(a.outerTypeParameters=i).length&&(a.instantiations=Dy.createMap(),a.instantiations.set(es(i),t))}if(i.length){var d=64&e.objectFlags?Uc(e.mapper,n):n,p=Dy.map(i,d),m=es(p),f=a.instantiations.get(m);if(!f){var _=jc(i,p);f=32&t.objectFlags?function(l,u){var d=Zc(l);if(d){var e=tl(d,u);if(d!==e)return Sd(e,function(e){if(15400963&e.flags&&e!==z){var n=Wc(d,e,u);return Jl(e)?Bs($c(l,ne,!0,n)):Xl(e)?Ks($c(l,ne,!0,n)):su(e)?(r=l,a=n,i=(t=e).target.minLength,o=Dy.map(t.typeArguments||Dy.emptyArray,function(e,n){return $c(r,wc(""+n),i<=n,a)}),s=Bi(r),c=4&s?0:8&s?as(t)-(t.target.hasRestElement?1:0):i,Hs(o,c,t.target.hasRestElement,t.target.associatedNames)):el(l,n)}var t,r,a,i,o,s,c;return e})}return el(l,u)}(t,_):el(t,_),a.instantiations.set(m,f)}return f}return e}function Qc(r,e){if(r.symbol&&r.symbol.declarations&&1===r.symbol.declarations.length){var n=r.symbol.declarations[0].parent;if(Dy.findAncestor(e,function(e){return 216===e.kind?"quit":e===n}))return!!Dy.forEachChild(e,function e(n){switch(n.kind){case 176:return!!r.isThisType;case 71:return!r.isThisType&&Dy.isPartOfTypeNode(n)&&!(146===(t=n).kind||162===t.parent.kind&&t.parent.typeArguments&&t===t.parent.typeName)&&Fc(n)===r;case 165:return!0}var t;return!!Dy.forEachChild(n,e)})}return!0}function Zc(e){var n=Pi(e);if(1048576&n.flags){var t=n.type;if(65536&t.flags)return t}}function $c(e,n,t,r){var a=Uc(r,jc([wi(e)],[n])),i=tl(Ri(e.target||e),a),o=Bi(e);return k&&4&o&&!fl(Y,i)?_u(i):k&&8&o&&t?od(i,131072):i}function el(e,n){var t=Ar(64|e.objectFlags,e.symbol);return 32&e.objectFlags&&(t.declaration=e.declaration),t.target=e,t.mapper=n,t.aliasSymbol=e.aliasSymbol,t.aliasTypeArguments=Vc(e.aliasTypeArguments,n),t}function nl(e,n){var t=e.root;if(t.outerTypeParameters){var r=Dy.map(t.outerTypeParameters,n),a=es(r),i=t.instantiations.get(a);return i||(i=function(n,t){if(n.isDistributive){var r=n.checkType,e=t(r);if(r!==e&&294912&e.flags)return Sd(e,function(e){return vc(n,Wc(r,e,t))})}return vc(n,t)}(t,jc(t.outerTypeParameters,r)),t.instantiations.set(a,i)),i}return e}function tl(e,n){if(!e||!n||n===x)return e;if(50===o)return J;o++;var t=function(e,n){var t=e.flags;if(65536&t)return n(e);if(131072&t){var r=e.objectFlags;if(16&r)return e.symbol&&14384&e.symbol.flags&&e.symbol.declarations?Yc(e,n):e;if(32&r)return Yc(e,n);if(4&r){var a=e.typeArguments,i=Vc(a,n);return i!==a?ts(e.target,i):e}return e}if(262144&t&&!(32764&t)){var o=e.types,s=Vc(o,n);return s!==o?Qs(s,1,e.aliasSymbol,Vc(e.aliasTypeArguments,n)):e}if(524288&t){var o=e.types,s=Vc(o,n);return s!==o?tc(s,e.aliasSymbol,Vc(e.aliasTypeArguments,n)):e}return 1048576&t?oc(tl(e.type,n)):2097152&t?mc(tl(e.objectType,n),tl(e.indexType,n)):4194304&t?nl(e,Uc(e.mapper,n)):8388608&t?tl(e.typeVariable,n):e}(e,n);return o--,t}function rl(e){return 65535&e.flags?e:e.wildcardInstantiation||(e.wildcardInstantiation=tl(e,qc))}function al(e,n){return e&&Yo(tl(e.type,n),e.isReadonly,e.declaration)}function il(e){switch(Dy.Debug.assert(154!==e.kind||Dy.isObjectLiteralMethod(e)),e.kind){case 194:case 195:case 154:return ol(e);case 186:return Dy.some(e.properties,il);case 185:return Dy.some(e.elements,il);case 203:return il(e.whenTrue)||il(e.whenFalse);case 202:return 54===e.operatorToken.kind&&(il(e.left)||il(e.right));case 273:return il(e.initializer);case 193:return il(e.expression);case 266:return Dy.some(e.properties,il);case 265:var n=e.initializer;return!!n&&il(n);case 268:var t=e.expression;return!!t&&il(t)}return!1}function ol(e){if(e.typeParameters)return!1;if(Dy.some(e.parameters,function(e){return!Dy.getEffectiveTypeAnnotationNode(e)}))return!0;if(195!==e.kind){var n=Dy.firstOrUndefined(e.parameters);if(!n||!Dy.parameterIsThisKeyword(n))return!0}return sl(e)}function sl(e){var n=e.body;return 216!==n.kind&&il(n)}function cl(e){return(Dy.isInJSFile(e)&&Dy.isFunctionDeclaration(e)||Tp(e)||Dy.isObjectLiteralMethod(e))&&ol(e)}function ll(e){if(131072&e.flags){var n=Ui(e);if(n.constructSignatures.length||n.callSignatures.length){var t=Ar(16,e.symbol);return t.members=n.members,t.properties=n.properties,t.callSignatures=Dy.emptyArray,t.constructSignatures=Dy.emptyArray,t}}else if(524288&e.flags)return tc(Dy.map(e.types,ll));return e}function ul(e,n){return Il(e,n,ut)}function dl(e,n){return Il(e,n,ut)?-1:0}function pl(e,n){return Il(e,n,st)?-1:0}function ml(e,n){return Il(e,n,ot)}function fl(e,n){return Il(e,n,st)}function _l(n,t){return 262144&n.flags?Dy.every(n.types,function(e){return _l(e,t)}):262144&t.flags?Dy.some(t.types,function(e){return _l(n,e)}):14745600&n.flags?_l(eo(n)||fe,t):t===De||t===Ae?ml(n,t):Fa(n,Ra(t))}function gl(e,n){return Il(e,n,lt)}function vl(e,n){return gl(e,n)||gl(n,e)}function yl(e,n,t,r,a,i){return Ol(e,n,st,t,r,a,i)}function hl(e,n,t,r,a,i){return bl(e,n,st,t,r,a,i)}function bl(e,n,t,r,a,i,o){return!!Il(e,n,t)||(!r||!Tl(a,e,n,t,i))&&Ol(e,n,t,r,i,o)}function El(e){return!!(4194304&e.flags||524288&e.flags&&Dy.some(e.types,El))}function Tl(e,n,t,r,a){if(!e||El(t))return!1;if(!Ol(n,t,r,void 0)&&function(e,n,t,r,a){for(var i=fo(n,0),o=fo(n,1),s=0,c=[o,i];s<c.length;s++){var l=c[s];if(Dy.some(l,function(e){var n=Fo(e);return!(32769&n.flags)&&Ol(n,t,r,void 0)})){var u={};yl(n,t,e,a,void 0,u);var d=u.error;return _t(d,Dy.createDiagnosticForNode(e,l===o?Dy.Diagnostics.Did_you_mean_to_use_new_with_this_expression:Dy.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(e,n,t,r,a))return!0;switch(e.kind){case 268:case 193:return Tl(e.expression,n,t,r,a);case 202:switch(e.operatorToken.kind){case 58:case 26:return Tl(e.right,n,t,r,a)}break;case 186:return c=n,l=t,u=r,Sl(function(n){var t,r,a,i;return __generator(this,function(e){switch(e.label){case 0:if(!Dy.length(n.properties))return[2];t=0,r=n.properties,e.label=1;case 1:if(!(t<r.length))return[3,8];if(a=r[t],Dy.isSpreadAssignment(a))return[3,7];if(!(i=ac(vr(a),2240))||32768&i.flags)return[3,7];switch(a.kind){case 157:case 156:case 154:case 274:return[3,2];case 273:return[3,4]}return[3,6];case 2:return[4,{errorNode:a.name,innerExpression:void 0,nameType:i}];case 3:return e.sent(),[3,7];case 4:return[4,{errorNode:a.name,innerExpression:a.initializer,nameType:i,errorMessage:la(a.name)?Dy.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return e.sent(),[3,7];case 6:Dy.Debug.assertNever(a),e.label=7;case 7:return t++,[3,1];case 8:return[2]}})}(e),c,l,u);case 185:return function(e,n,t,r){if(Zl(n))return Sl(xl(e,t),n,t,r);var a=Ap(e,3,!0);return!!Zl(a)&&Sl(xl(e,t),a,t,r)}(e,n,t,r);case 266:return i=n,o=t,s=r,Sl(function(n){var t,r,a;return __generator(this,function(e){switch(e.label){case 0:if(!Dy.length(n.properties))return[2];t=0,r=n.properties,e.label=1;case 1:return t<r.length?(a=r[t],Dy.isJsxSpreadAttribute(a)?[3,3]:[4,{errorNode:a.name,innerExpression:a.initializer,nameType:wc(Dy.idText(a.name))}]):[3,4];case 2:e.sent(),e.label=3;case 3:return t++,[3,1];case 4:return[2]}})}(e),i,o,s);case 195:return function(e,n,t,r){if(Dy.isBlock(e.body))return!1;if(Dy.some(e.parameters,Dy.hasType))return!1;var a=Mm(n);if(!a)return!1;var i=fo(t,0);if(!Dy.length(i))return!1;var o=e.body,s=Fo(a),c=Qs(Dy.map(i,Fo));if(!Ol(s,c,r,void 0)){var l=o&&Tl(o,s,c,r,void 0);if(l)return l;var u={};if(Ol(s,c,r,o,void 0,void 0,u),u.error)return t.symbol&&Dy.length(t.symbol.declarations)&&_t(u.error,Dy.createDiagnosticForNode(t.symbol.declarations[0],Dy.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),!0}return!1}(e,n,t,r)}var i,o,s,c,l,u;return!1}function Sl(e,n,t,r){for(var a=!1,i=e.next();!i.done;i=e.next()){var o=i.value,s=o.errorNode,c=o.innerExpression,l=o.nameType,u=o.errorMessage,d=mc(n,l,void 0,J),p=mc(t,l,void 0,J);if(d!==J&&p!==J&&!Ol(d,p,r,void 0))if(c&&Tl(c,d,p,r,void 0))a=!0;else{var m={},f=c?l_(c,0,d):d;if(Ol(f,p,r,s,u,void 0,m)&&f!==d&&Ol(d,p,r,s,u,void 0,m),m.error){var _=m.error,g=pi(l)?gi(l):void 0,v=void 0!==g?po(t,g):void 0,y=!1;if(!v){var h=Jf(l,168)&&vo(t,1)||vo(t,0)||void 0;h&&h.declaration&&!Dy.getSourceFileOfNode(h.declaration).hasNoDefaultLib&&(y=!0,_t(_,Dy.createDiagnosticForNode(h.declaration,Dy.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!y&&(v&&Dy.length(v.declarations)||t.symbol&&Dy.length(t.symbol.declarations))){var b=v&&Dy.length(v.declarations)?v.declarations[0]:t.symbol.declarations[0];Dy.getSourceFileOfNode(b).hasNoDefaultLib||_t(_,Dy.createDiagnosticForNode(b,Dy.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!g||2048&l.flags?qr(l):Dy.unescapeLeadingUnderscores(g),qr(t)))}}a=!0}}return a}function xl(n,t){var r,a,i,o;return __generator(this,function(e){switch(e.label){case 0:if(!(r=Dy.length(n.elements)))return[2];a=0,e.label=1;case 1:return a<r?Zl(t)&&!po(t,""+a)?[3,3]:(i=n.elements[a],Dy.isOmittedExpression(i)?[3,3]:(o=wc(a),[4,{errorNode:i,innerExpression:i,nameType:o}])):[3,4];case 2:e.sent(),e.label=3;case 3:return a++,[3,1];case 4:return[2]}})}function Cl(e,n,t,r,a){return Ol(e,n,lt,t,r,a)}function Dl(e,n,t,r,a,i,o){if(e===n)return-1;var s=xf(n);if(!Df(n)&&Cf(e)>s)return 0;e.typeParameters&&e.typeParameters!==n.typeParameters&&(e=Om(e,n=Wo(n),void 0,o));var c=xf(e),l=Lf(e),u=Lf(n);if(l&&u&&c!==s)return 0;var d=n.declaration?n.declaration.kind:0,p=!t&&G&&154!==d&&153!==d&&155!==d,m=-1,f=wo(e);if(f&&f!==se){var _=wo(n);if(_){if(!(h=!p&&o(f,_,!1)||o(_,f,a)))return a&&i(Dy.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;m&=h}}for(var g=l||u?Math.min(c,s):Math.max(c,s),v=l||u?g-1:-1,y=0;y<g;y++){var h,b=y===v?Sf(e,y):Ef(e,y),E=y===v?Sf(n,y):Ef(n,y),T=t?void 0:Mm(gu(b)),S=t?void 0:Mm(gu(E));if(!(h=T&&S&&!Po(T)&&!Po(S)&&(24576&du(b))==(24576&du(E))?Dl(S,T,p?2:1,!1,a,i,o):!t&&!p&&o(b,E,!1)||o(E,b,a)))return a&&i(Dy.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,Dy.unescapeLeadingUnderscores(bf(e,y)),Dy.unescapeLeadingUnderscores(bf(n,y))),0;m&=h}if(!r){var x=n.declaration&&of(n.declaration)?cf(n.declaration.symbol):Fo(n);if(x===se)return m;var C=e.declaration&&of(e.declaration)?cf(e.declaration.symbol):Fo(e),D=Ro(n);if(D){var A=Ro(e);if(A)m&=function(e,n,t,r,a,i,o){if(e.kind!==n.kind)return a&&(i(Dy.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),i(Dy.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Jr(e),Jr(n))),0;if(1===e.kind){var s=n,c=e.parameterIndex-(Dy.getThisParameter(t)?1:0),l=s.parameterIndex-(Dy.getThisParameter(r)?1:0);if(c!==l)return a&&(i(Dy.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,e.parameterName,s.parameterName),i(Dy.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Jr(e),Jr(n))),0}var u=o(e.type,n.type,a);return 0===u&&a&&i(Dy.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Jr(e),Jr(n)),u}(A,D,e.declaration,n.declaration,a,i,o);else if(Dy.isIdentifierTypePredicate(D))return a&&i(Dy.Diagnostics.Signature_0_must_be_a_type_predicate,Wr(e)),0}else m&=1===t&&o(x,C,!1)||o(C,x,a)}return m}function Al(e,n){var t=Uo(e),r=Uo(n),a=Fo(t),i=Fo(r);return!(i!==se&&!Il(i,a,st)&&!Il(a,i,st))&&0!==Dl(t,r,0,!0,!1,void 0,pl)}function Ll(e){return 131072&e.flags?0===(n=Ui(e)).properties.length&&0===n.callSignatures.length&&0===n.constructSignatures.length&&!n.stringIndexInfo&&!n.numberIndexInfo:!!(16777216&e.flags)||(262144&e.flags?Dy.some(e.types,Ll):!!(524288&e.flags)&&Dy.every(e.types,Ll));var n}function kl(e,n,t){if(e===n)return!0;var r=My(e)+","+My(n),a=dt.get(r);if(void 0!==a&&(2!==a||!t))return 1===a;if(!(e.escapedName===n.escapedName&&256&e.flags&&256&n.flags))return dt.set(r,3),!1;for(var i=wa(n),o=0,s=Ji(wa(e));o<s.length;o++){var c=s[o];if(8&c.flags){var l=po(i,c.escapedName);if(!(l&&8&l.flags))return t?(t(Dy.Diagnostics.Property_0_is_missing_in_type_1,Dy.symbolName(c),qr(ri(n),void 0,64)),dt.set(r,3)):dt.set(r,2),!1}}return dt.set(r,1),!0}function Nl(e,n,t,r){var a=e.flags,i=n.flags;if(3&i||32768&a||e===z)return!0;if(32768&i)return!1;if(68&a&&4&i)return!0;if(64&a&&512&a&&64&i&&!(512&i)&&e.value===n.value)return!0;if(168&a&&8&i)return!0;if(128&a&&512&a&&128&i&&!(512&i)&&e.value===n.value)return!0;if(272&a&&16&i)return!0;if(3072&a&&1024&i)return!0;if(32&a&&32&i&&kl(e.symbol,n.symbol,r))return!0;if(512&a&&512&i){if(262144&a&&262144&i&&kl(e.symbol,n.symbol,r))return!0;if(448&a&&448&i&&e.value===n.value&&kl(yr(e.symbol),yr(n.symbol),r))return!0}if(8192&a&&(!k||12288&i))return!0;if(16384&a&&(!k||16384&i))return!0;if(131072&a&&16777216&i)return!0;if(2048&a||2048&i)return!1;if(t===st||t===ct||t===lt){if(1&a)return!0;if(136&a&&!(512&a)&&(32&i||128&i&&512&i))return!0}return!1}function Il(e,n,t){if(448&e.flags&&33554432&e.flags&&(e=e.regularType),448&n.flags&&33554432&n.flags&&(n=n.regularType),e===n||t===lt&&!(32768&n.flags)&&Nl(n,e,t)||t!==ut&&Nl(e,n,t))return!0;if(131072&e.flags&&131072&n.flags){var r=t.get(Bl(e,n,t));if(void 0!==r)return 1===r}return!!(16711680&e.flags||16711680&n.flags)&&Ol(e,n,t,void 0)}function Ml(e,n,t){return 4096&Dy.getObjectFlags(e)&&!(Rp(n.escapedName)||t)}function Ol(e,n,S,x,t,r,a){var C,l,u,d,p=0,m=0,f=0,_=!1,D=!1;Dy.Debug.assert(S!==ut||!x,"no error reporting in identity checking");var i=k(e,n,!!x,t);if(_)gt(x,Dy.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,qr(e),qr(n));else if(C){if(r){var o=r();o&&(C=Dy.concatenateDiagnosticMessageChains(o,C))}var s=void 0;if(t&&x&&!i&&e.symbol){var c=Lt(e.symbol);if(c.originatingImport&&!Dy.isImportCall(c.originatingImport)&&Ol(wa(c.target),n,S,void 0)){var g=Dy.createDiagnosticForNode(c.originatingImport,Dy.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);s=Dy.append(s,g)}}var v=Dy.createDiagnosticForNodeFromMessageChain(x,C,s);a&&(a.error=v),Gn.add(v)}return 0!==i;function A(e,n,t,r){Dy.Debug.assert(!!x),C=Dy.chainDiagnosticMessages(C,e,n,t,r)}function L(e,n,t){var r=qr(n),a=qr(t);r===a&&(r=qr(n,void 0,64),a=qr(t,void 0,64)),e||(e=S===lt?Dy.Diagnostics.Type_0_is_not_comparable_to_type_1:r===a?Dy.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:Dy.Diagnostics.Type_0_is_not_assignable_to_type_1),A(e,r,a)}function k(e,n,t,r){if(void 0===t&&(t=!1),448&e.flags&&33554432&e.flags&&(e=e.regularType),448&n.flags&&33554432&n.flags&&(n=n.regularType),8388608&e.flags&&(e=S===ct?e.typeVariable:e.substitute),8388608&n.flags&&(n=n.typeVariable),2097152&e.flags&&(e=dc(e)),2097152&n.flags&&(n=dc(n)),262144&n.flags&&131072&e.flags&&n.types.length<=3&&zf(n,24576)){var a=xd(n,-24577);294912&a.flags||(n=a)}if(e===n)return-1;if(S===ut)return o=n,131072&(c=(i=e).flags&o.flags)||2097152&c||4194304&c||1048576&c||8388608&c?w(i,o,!1):786432&c&&(s=N(i,o))&&(s&=N(o,i))?s:0;var i,o,s,c;if(S===lt&&!(32768&n.flags)&&Nl(n,e,S)||Nl(e,n,S,t?A:void 0))return-1;if(ju(e)&&33554432&e.flags){var l=262144&n.flags?M(e,n):void 0;if(function e(s,c,n,l){if(!F&&16384&Dy.getObjectFlags(c))return!1;if(zf(c,131072)&&!(512&Dy.getObjectFlags(c))){var u=!!(4096&Dy.getObjectFlags(s));if((S===st||S===ct||S===lt)&&(bd(De,c)||!u&&Ll(c)))return!1;if(n)return e(s,n,void 0,l);for(var t=function(e){if(i=e,o=s.symbol,!(i.valueDeclaration&&o.valueDeclaration&&i.valueDeclaration.parent!==o.valueDeclaration||rm(c,e.escapedName,u))){if(l){if(!x)return{value:Dy.Debug.fail()};if(Dy.isJsxAttributes(x)||Dy.isJsxOpeningLikeElement(x))A(Dy.Diagnostics.Property_0_does_not_exist_on_type_1,Ur(e),qr(c));else{var n=s.symbol&&Dy.firstOrUndefined(s.symbol.declarations),t=void 0;if(e.valueDeclaration&&Dy.findAncestor(e.valueDeclaration,function(e){return e===n})){var r=e.valueDeclaration;Dy.Debug.assertNode(r,Dy.isObjectLiteralElementLike);var a=(x=r).name;Dy.isIdentifier(a)&&(t=gm(a,c))}void 0!==t?A(Dy.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ur(e),qr(c),t):A(Dy.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ur(e),qr(c))}}return{value:!0}}var i,o},r=0,a=Wi(s);r<a.length;r++){var i=a[r],o=t(i);if("object"==typeof o)return o.value}}return!1}(e,n,l,t))return t&&L(r,e,n),0;(function(e){if(!(786432&e.flags))return!1;for(var n=!1,t=0,r=e.types;t<r.length;t++)if(!(24576&r[t].flags)){if(n)return!0;n=!0}return!1})(n)&&!l&&(e=hu(e))}if(S!==lt&&!D&&688124&e.flags&&e!==De&&655360&n.flags&&wl(n)&&(0<Ji(e).length||hv(e))&&!function(e,n){for(var t=!!(4096&Dy.getObjectFlags(e)),r=0,a=Ji(e);r<a.length;r++){var i=a[r];if(rm(n,i.escapedName,t))return!0}return!1}(e,n)){if(t){var u=fo(e,0),d=fo(e,1);0<u.length&&k(Fo(u[0]),n,!1)||0<d.length&&k(Fo(d[0]),n,!1)?A(Dy.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,qr(e),qr(n)):A(Dy.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,qr(e),qr(n))}return 0}var p,m,f,_,g=0,v=C,y=D;if(D=!1,262144&e.flags?g=S===lt?O(e,n,t&&!(32764&e.flags)):function(e,n,t){for(var r=-1,a=e.types,i=0,o=a;i<o.length;i++){var s=o[i],c=k(s,n,t);if(!c)return 0;r&=c}return r}(e,n,t&&!(32764&e.flags)):(262144&n.flags?g=I(e,n,t&&!(32764&e.flags)&&!(32764&n.flags)):524288&n.flags?(D=!0,g=function(e,n,t){for(var r=-1,a=n.types,i=0,o=a;i<o.length;i++){var s=o[i],c=k(e,s,t);if(!c)return 0;r&=c}return r}(e,n,t)):524288&e.flags&&(g=O(e,n,!1)),!g&&(16711680&e.flags||16711680&n.flags)&&(g=w(e,n,t))&&(C=v)),!g&&524288&e.flags){var h=function(e,n){for(var t,r=!1,a=0,i=e.types;a<i.length;a++)if(15794176&(l=i[a]).flags){for(var o=Xi(l);o&&5308416&o.flags;)o=Xi(o);if(o){if(!(262144&o.flags))return;t=Dy.append(t,o)}}else 16809468&l.flags&&(r=!0);if(t&&(n||r)){if(r)for(var s=0,c=e.types;s<c.length;s++){var l;16809468&(l=c[s]).flags&&(t=Dy.append(t,l))}return tc(t)}}(e,!!(262144&n.flags));h&&(g=k(h,n,t))&&(C=v)}if(D=y,!g&&t){if(131072&e.flags&&32764&n.flags)m=n,f=qr(p=e),_=qr(m),(Ne===p&&ee===m||Ie===p&&ne===m||Me===p&&ie===m||Cs(!1)===p&&oe===m)&&A(Dy.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,_,f);else if(e.symbol&&131072&e.flags&&De===e)A(Dy.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(4096&Dy.getObjectFlags(e)&&524288&n.flags){var b=n.types,E=Kp(Ay.IntrinsicAttributes,x),T=Kp(Ay.IntrinsicClassAttributes,x);if(E!==J&&T!==J&&(Dy.contains(b,E)||Dy.contains(b,T)))return g}L(r,e,n)}return g}function N(e,n){for(var t=-1,r=0,a=e.types;r<a.length;r++){var i=I(a[r],n,!1);if(!i)return 0;t&=i}return t}function I(e,n,t){var r=n.types;if(262144&n.flags&&Ws(r,e))return-1;for(var a=0,i=r;a<i.length;a++){var o=k(e,i[a],!1);if(o)return o}return t&&k(e,M(e,n)||function(t,e){var r=Dy.getObjectFlags(t);if(20&r&&262144&e.flags)return Dy.find(e.types,function(e){if(131072&e.flags){var n=r&Dy.getObjectFlags(e);if(4&n)return t.target===e.target;if(16&n)return!!t.aliasSymbol&&t.aliasSymbol===e.aliasSymbol}return!1})}(e,n)||function(e,n){if(128&Dy.getObjectFlags(e)&&Ed(n,Yl))return Dy.find(n.types,function(e){return!Yl(e)})}(e,n)||function(e,n){var t=0;if(0<fo(e,t).length||0<fo(e,t=1).length)return Dy.find(n.types,function(e){return 0<fo(e,t).length})}(e,n)||r[r.length-1],!0),0}function M(e,n){var t,r=Wi(e);if(r){var a=function(e,n){for(var t,r=0,a=e;r<a.length;r++){var i=a[r];if(td(n,i.escapedName)){if(t){t.push(i);continue}t=[i]}}return t}(r,n);if(a)for(var i=0,o=a;i<o.length;i++)for(var s=o[i],c=wa(s),l=0,u=n.types;l<u.length;l++){var d=u[l],p=oa(d,s.escapedName);if(p&&k(c,p)){if(d===t)continue;if(t)return;t=d}}}return t}function O(e,n,t){var r=e.types;if(262144&e.flags&&Ws(r,n))return-1;for(var a=r.length,i=0;i<a;i++){var o=k(r[i],n,t&&i===a-1);if(o)return o}return 0}function w(e,n,t){if(_)return 0;var r=Bl(e,n,S),a=S.get(r);if(void 0!==a&&(!t||2!==a))return 1===a?-1:0;if(l){for(var i=0;i<p;i++)if(r===l[i])return 1;if(100===m)return _=!0,0}else l=[],u=[],d=[];var o=p;l[p]=r,p++,u[m]=e,d[m]=n,m++;var s=f;1&f||!Ul(e,u,m)||(f|=1),2&f||!Ul(n,d,m)||(f|=2);var c=3!==f?function(e,n,t){var r,a,i=e.flags&n.flags;if(S===ut&&!(131072&i)){if(1048576&i)return k(e.type,n.type,!1);var o=0;return 2097152&i&&(o=k(e.objectType,n.objectType,!1))&&(o&=k(e.indexType,n.indexType,!1))?o:4194304&i&&e.root.isDistributive===n.root.isDistributive&&(o=k(e.checkType,n.checkType,!1))&&(o&=k(e.extendsType,n.extendsType,!1))&&(o&=k(yc(e),yc(n),!1))&&(o&=k(hc(e),hc(n),!1))?o:8388608&i?k(e.substitute,n.substitute,!1):0}var s,c,l=C;if(65536&n.flags){if(32&Dy.getObjectFlags(e)&&Pi(e)===oc(n)&&!(4&Bi(e))){var u=Ri(e),d=mc(n,wi(e));if(r=k(u,d,t))return r}}else if(1048576&n.flags){if(1048576&e.flags&&(r=k(n.type,e.type,!1)))return r;if(S!==ct){var p=dc(n.type),m=p!==n.type?p:Xi(n.type);if(m&&-1===k(e,oc(m,n.stringsOnly),t))return-1}}else if(2097152&n.flags){if(S!==ut){var m=eo(n);if(m&&m!==n&&(r=k(e,m,t)))return r}}else if(Hi(n)){var f=Ri(n),_=Bi(n);if(!(8&_)){if(2097152&f.flags&&f.objectType===e&&f.indexType===wi(n))return-1;if(!Hi(e)&&Pi(n)===oc(e)){var d=mc(e,wi(n)),u=Ri(n);if(r=k(d,u,t))return r}}}if(2162688&e.flags){if(2097152&e.flags&&2097152&n.flags&&((r=k(e.objectType,n.objectType,t))&&(r&=k(e.indexType,n.indexType,t)),r))return C=l,r;var m=(c=e,S===ct?void 0:Xi(c));if(!m||65536&e.flags&&3&m.flags){if(r=k(fe,xd(n,-16777217)))return C=l,r}else{var g=Ei(m,e);if(r=k(g,n,t))return C=l,r}}else if(1048576&e.flags){if(r=k(me,n,t))return C=l,r}else if(4194304&e.flags){if(4194304&n.flags){if(ul(e.extendsType,n.extendsType)&&(k(e.checkType,n.checkType)||k(n.checkType,e.checkType))&&((r=k(yc(e),yc(n),t))&&(r&=k(hc(e),hc(n),t)),r))return C=l,r}else if(S!==ct){var v=Zi(e);if(v&&(r=k(v,n,t)))return C=l,r;var y=Qi(e);if(y&&(r=k(y,n,t)))return C=l,r}}else{if(s=n,32&Dy.getObjectFlags(s)&&4&Bi(s)&&!Hi(e)&&Ll(e))return-1;if(Hi(n))return Hi(e)&&(r=function(e,n,t){var r;if(S!==lt&&!(S===ut?Bi(e)===Bi(n):ji(e)<=ji(n))||!(r=k(Pi(n),Pi(e),t)))return 0;var a=jc([wi(e)],[wi(n)]);return r&k(tl(Ri(e),a),Ri(n),t)}(e,n,t))?(C=l,r):0;if(S===ct&&Hi(e))return 0;var h=!!(32764&e.flags);if(S!==ut&&(e=so(e)),4&Dy.getObjectFlags(e)&&4&Dy.getObjectFlags(n)&&e.target===n.target&&!(8192&Dy.getObjectFlags(e)||8192&Dy.getObjectFlags(n))){var b=Rl(e.target);if(r=function(e,n,t,r){var a=e.typeArguments||Dy.emptyArray,i=n.typeArguments||Dy.emptyArray;if(a.length!==i.length&&S===ut)return 0;for(var o=a.length<=i.length?a.length:i.length,s=-1,c=0;c<o;c++){var l=c<t.length?t[c]:1;if(4!==l){var u=a[c],d=i[c],p=-1;if(1===l?p=k(u,d,r):2===l?p=k(d,u,r):3===l?(p=k(d,u,!1))||(p=k(u,d,r)):(p=k(u,d,r))&&(p&=k(d,u,r)),!p)return 0;s&=p}}return s}(e,n,b,t))return r;if(b!==Dy.emptyArray&&!function(e,n){for(var t=0;t<n.length;t++)if(1===n[t]&&4096&e.typeArguments[t].flags)return!0;return!1}(n,b)){if(!t||!Dy.some(b,function(e){return 0===e}))return 0;a=C,C=l}}else if(su(e)&&(Jl(n)||Xl(n))||Jl(e)&&Xl(n))return k(yo(e,1)||W,yo(n,1)||W,t);if(655360&e.flags&&131072&n.flags){var E=t&&C===l&&!h;if((r=function(e,n,t){if(S===ut)return function(e,n){if(!(131072&e.flags&&131072&n.flags))return 0;var t=Wi(e),r=Wi(n);if(t.length!==r.length)return 0;for(var a=-1,i=0,o=t;i<o.length;i++){var s=o[i],c=qi(n,s.escapedName);if(!c)return 0;var l=Wl(s,c,k);if(!l)return 0;a&=l}return a}(e,n);var r=S===ot&&!ju(e)&&!Ql(e)&&!su(e),a=Ru(e,n,r);if(a)return t&&A(Dy.Diagnostics.Property_0_is_missing_in_type_1,Ur(a),qr(e)),0;if(ju(n))for(var i=0,o=Ji(e);i<o.length;i++){var s=o[i];if(!qi(n,s.escapedName)){var c=wa(s);if(c!==Y&&c!==Q)return t&&A(Dy.Diagnostics.Property_0_does_not_exist_on_type_1,Ur(s),qr(n)),0}}var l=-1;if(su(n)){var u=cu(n);if(u){if(!su(e))return 0;var d=cu(e);if(d&&!k(d,u,t))return t&&A(Dy.Diagnostics.Rest_signatures_are_incompatible),0;for(var p=as(n)-1,m=as(e)-(d?1:0),f=p;f<m;f++){var _=k(e.typeArguments[f],u,t);if(!_)return t&&A(Dy.Diagnostics.Property_0_is_incompatible_with_rest_element_type,""+f),0;l&=_}}}for(var g=Wi(n),v=0,y=g;v<y.length;v++){var h=y[v];if(!(4194304&h.flags)){var s=po(e,h.escapedName);if(s&&s!==h){if(Ml(e,s,wa(h)))continue;var b=Dy.getDeclarationModifierFlagsFromSymbol(s),E=Dy.getDeclarationModifierFlagsFromSymbol(h);if(8&b||8&E){var T=s.valueDeclaration!==h.valueDeclaration;if(256&Dy.getCheckFlags(s)&&T)return t&&A(Dy.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,Ur(s),qr(e)),0;if(T)return t&&(8&b&&8&E?A(Dy.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Ur(h)):A(Dy.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Ur(h),qr(8&b?e:n),qr(8&b?n:e))),0}else if(16&E){if(!Hl(s,h))return t&&A(Dy.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Ur(h),qr(jl(s)||e),qr(jl(h)||n)),0}else if(16&b)return t&&A(Dy.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Ur(h),qr(e),qr(n)),0;var _=k(wa(s),wa(h),t);if(!_)return t&&A(Dy.Diagnostics.Types_of_property_0_are_incompatible,Ur(h)),0;if(l&=_,S!==lt&&16777216&s.flags&&!(16777216&h.flags))return t&&A(Dy.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Ur(h),qr(e),qr(n)),0}}}return l}(e,n,E))&&(r&=T(e,n,0,E))&&(r&=T(e,n,1,E))&&(r&=P(e,n,0,h,E))&&(r&=P(e,n,1,h,E)),r){if(!a)return C=l,r;C=a}}}return 0}(e,n,t):1;if(f=s,m--,c){if(-1===c||0===m){for(i=o;i<p;i++)S.set(l[i],1);p=o}}else S.set(r,t?3:2),p=o;return c}function T(e,n,t,r){if(S===ut)return function(e,n,t){var r=fo(e,t),a=fo(n,t);if(r.length!==a.length)return 0;for(var i=-1,o=0;o<r.length;o++){var s=ql(r[o],a[o],!1,!1,!1,k);if(!s)return 0;i&=s}return i}(e,n,t);if(n===ve||e===ve)return-1;var a=e.symbol&&of(e.symbol.valueDeclaration),i=n.symbol&&of(n.symbol.valueDeclaration),o=fo(e,a&&1===t?0:t),s=fo(n,i&&1===t?0:t);if(1===t&&o.length&&s.length){if(Dy.isAbstractConstructorType(e)&&!Dy.isAbstractConstructorType(n))return r&&A(Dy.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(e,n,t){if(!e.declaration||!n.declaration)return!0;var r=Dy.getSelectedModifierFlags(e.declaration,24),a=Dy.getSelectedModifierFlags(n.declaration,24);return 8===a||(16===a&&8!==r||(16!==a&&!r||(t&&A(Dy.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Xr(r),Xr(a)),!1)))}(o[0],s[0],r))return 0}var c=-1,l=C;if(64&Dy.getObjectFlags(e)&&64&Dy.getObjectFlags(n)&&e.symbol===n.symbol)for(var u=0;u<s.length;u++){if(!(y=h(o[u],s[u],!0,r)))return 0;c&=y}else if(1===o.length&&1===s.length){var d=S===lt||!!R.noStrictGenericChecks;c=h(o[0],s[0],d,r)}else e:for(var p=0,m=s;p<m.length;p++){for(var f=m[p],_=r,g=0,v=o;g<v.length;g++){var y;if(y=h(v[g],f,!0,_)){c&=y,C=l;continue e}_=!1}return _&&A(Dy.Diagnostics.Type_0_provides_no_match_for_the_signature_1,qr(e),Wr(f,void 0,void 0,t)),0}return c}function h(e,n,t,r){return Dl(t?Uo(e):e,t?Uo(n):n,0,!1,r,A,k)}function y(e,n,t){var r=k(e.type,n.type,t);return!r&&t&&A(Dy.Diagnostics.Index_signatures_are_incompatible),r}function P(e,n,t,r,a){if(S===ut)return i=e,s=vo(n,o=t),(c=vo(i,o))||s?c&&s&&c.isReadonly===s.isReadonly?k(c.type,s.type):0:-1;var i,o,s,c,l=vo(n,t);if(!l||3&l.type.flags&&!r)return-1;var u=vo(e,t)||1===t&&vo(e,0);if(u)return y(u,l,a);if(Hi(e))return 0===t&&k(Ri(e),l.type,a);if(vu(e)){var d=-1;if(0===t){var p=vo(e,1);p&&(d=y(p,l,a))}return d&&(d&=function(e,n,t,r){for(var a=-1,i=0,o=Wi(e);i<o.length;i++){var s=o[i];if(!Ml(e,s,void 0)&&!(s.nameType&&2048&s.nameType.flags)&&(0===t||Ip(s.escapedName))){var c=k(wa(s),n,r);if(!c)return r&&A(Dy.Diagnostics.Property_0_is_incompatible_with_index_signature,Ur(s)),0;a&=c}}return a}(e,l.type,t,a)),d}return a&&A(Dy.Diagnostics.Index_signature_is_missing_in_type_0,qr(e)),0}}function wl(e){if(131072&e.flags){var n=Ui(e);return 0===n.callSignatures.length&&0===n.constructSignatures.length&&!n.stringIndexInfo&&!n.numberIndexInfo&&0<n.properties.length&&Dy.every(n.properties,function(e){return!!(16777216&e.flags)})}return!!(524288&e.flags)&&Dy.every(e.types,wl)}function Pl(e,n,t){var r=ts(e,Dy.map(e.typeParameters,function(e){return e===n?t:e}));return r.objectFlags|=8192,r}function Rl(e){if(!G)return Dy.emptyArray;var n=e.typeParameters||Dy.emptyArray,t=e.variances;if(!t){if(e===Le||e===ke)t=[1];else{e.variances=Dy.emptyArray,t=[];for(var r=0,a=n;r<a.length;r++){var i=a[r],o=Pl(e,i,Ee),s=Pl(e,i,Te),c=(fl(s,o)?1:0)|(fl(o,s)?2:0);3===c&&fl(Pl(e,i,rn),o)&&(c=4),t.push(c)}}e.variances=t}return t}function Fl(e){return 65536&e.flags&&!Yi(e)}function Gl(e){return!!(4&Dy.getObjectFlags(e))&&Dy.some(e.typeArguments,function(e){return Fl(e)||Gl(e)})}function Vl(e,n,t){void 0===t&&(t=0);for(var r=""+e.target.id,a=0,i=e.typeArguments;a<i.length;a++){var o=i[a];if(Fl(o)){var s=n.indexOf(o);s<0&&(s=n.length,n.push(o)),r+="="+s}else t<4&&Gl(o)?r+="<"+Vl(o,n,t+1)+">":r+="-"+o.id}return r}function Bl(e,n,t){if(t===ut&&e.id>n.id){var r=e;e=n,n=r}if(Gl(e)&&Gl(n)){var a=[];return Vl(e,a)+","+Vl(n,a)}return e.id+","+n.id}function Kl(e,n){if(!(6&Dy.getCheckFlags(e)))return n(e);for(var t=0,r=e.containingType.types;t<r.length;t++){var a=po(r[t],e.escapedName),i=a&&Kl(a,n);if(i)return i}}function jl(e){return e.parent&&32&e.parent.flags?ri(yr(e)):void 0}function Hl(r,e){return!Kl(e,function(e){return!!(16&Dy.getDeclarationModifierFlagsFromSymbol(e))&&(n=r,t=jl(e),!Kl(n,function(e){var n=jl(e);return!!n&&Fa(n,t)}));var n,t})}function Ul(e,n,t){if(5<=t&&131072&e.flags){var r=e.symbol;if(r)for(var a=0,i=0;i<t;i++){var o=n[i];if(131072&o.flags&&o.symbol===r&&5<=++a)return!0}}return!1}function Wl(e,n,t){if(e===n)return-1;var r=24&Dy.getDeclarationModifierFlagsFromSymbol(e);if(r!==(24&Dy.getDeclarationModifierFlagsFromSymbol(n)))return 0;if(r){if(Fg(e)!==Fg(n))return 0}else if((16777216&e.flags)!=(16777216&n.flags))return 0;return Hf(e)!==Hf(n)?0:t(wa(e),wa(n))}function ql(e,n,t,r,a,i){if(e===n)return-1;if(!function(e,n,t){var r=xf(e),a=xf(n),i=Cf(e),o=Cf(n),s=Df(e),c=Df(n);if(r===a&&i===o&&s===c)return!0;var l=s?1:0,u=c?1:0;return!!(t&&i<=o&&(u<l||l===u&&a<=r))}(e,n,t))return 0;if(Dy.length(e.typeParameters)!==Dy.length(n.typeParameters))return 0;e=Uo(e),n=Uo(n);var o=-1;if(!r){var s=wo(e);if(s){var c=wo(n);if(c){if(!(f=i(s,c)))return 0;o&=f}}}for(var l,u,d,p=xf(n),m=0;m<p;m++){var f;if(!(f=i(Ef(e,m),Ef(n,m))))return 0;o&=f}if(!a){var _=Ro(e),g=Ro(n);o&=void 0!==_||void 0!==g?(u=g,d=i,void 0!==(l=_)&&void 0!==u&&Zs(l,u)?d(l.type,u.type):0):i(Fo(e),Fo(n))}return o}function zl(e){return function(e){for(var n,t=0,r=e;t<r.length;t++){var a=r[t],i=ru(a);if(n||(n=i),i===a||i!==n)return!1}return!0}(e)?Qs(e):Dy.reduceLeft(e,function(e,n){return ml(e,n)?n:e})}function Jl(e){return!!(4&Dy.getObjectFlags(e))&&e.target===Le}function Xl(e){return!!(4&Dy.getObjectFlags(e))&&e.target===ke}function Yl(e){return 4&Dy.getObjectFlags(e)&&(e.target===Le||e.target===ke)||!(24576&e.flags)&&fl(e,Fe)}function Ql(e){var n=Jl(e)?e.typeArguments[0]:void 0;return n===Q||n===ue}function Zl(e){return su(e)||!!po(e,"0")}function $l(e,n){return su(e)?n<lu(e)?e.typeArguments[n]:cu(e):oa(e,""+n)}function eu(e){return!(59840&e.flags)}function nu(e){return!!(27072&e.flags)}function tu(e){return!!(16&e.flags)||(262144&e.flags?!!(512&e.flags)||Dy.every(e.types,nu):nu(e))}function ru(e){return 512&e.flags?$a(e):64&e.flags?ee:128&e.flags?ne:256&e.flags?ie:262144&e.flags?Qs(Dy.sameMap(e.types,ru)):e}function au(e){return 512&e.flags&&33554432&e.flags?$a(e):64&e.flags&&33554432&e.flags?ee:128&e.flags&&33554432&e.flags?ne:256&e.flags&&33554432&e.flags?ie:262144&e.flags?Qs(Dy.sameMap(e.types,au)):e}function iu(e){return 2048&e.flags?oe:262144&e.flags?Qs(Dy.sameMap(e.types,iu)):e}function ou(e,n){return function n(t,e){if(e){if(786432&e.flags){var r=e.types;return Dy.some(r,function(e){return n(t,e)})}if(14745600&e.flags){var a=eo(e)||fe;return zf(a,4)&&zf(t,64)||zf(a,8)&&zf(t,128)||zf(a,1024)&&zf(t,2048)||n(t,a)}return!!(1048640&e.flags&&zf(t,64)||128&e.flags&&zf(t,128)||256&e.flags&&zf(t,256)||2048&e.flags&&zf(t,2048))}return!1}(e,n)||(e=iu(au(e))),e}function su(e){return!!(4&Dy.getObjectFlags(e)&&8&e.target.objectFlags)}function cu(e){return e.target.hasRestElement?e.typeArguments[e.target.typeParameters.length-1]:void 0}function lu(e){return as(e)-(e.target.hasRestElement?1:0)}function uu(e){for(var n=0,t=0,r=e;t<r.length;t++)n|=du(r[t]);return n}function du(e){return 262144&e.flags?uu(e.types):64&e.flags?""===e.value?64:0:128&e.flags?0===e.value?128:0:256&e.flags?e===te||e===re?256:0:29148&e.flags}function pu(e){return 29120&du(e)?Td(e,function(e){return!(29120&du(e))}):e}function mu(e){return 4&e.flags?hn:8&e.flags?bn:e===re||e===te||28672&e.flags||64&e.flags&&""===e.value||128&e.flags&&0===e.value?e:ce}function fu(e,n){var t=n&~e.flags&24576;return 0===t?e:Qs(8192===t?[e,Y]:16384===t?[e,Z]:[e,Y,Z])}function _u(e){return Dy.Debug.assert(k),8192&e.flags?e:Qs([e,Y])}function gu(e){return k?(n=e,Ge||(Ge=Ts("NonNullable",524288,void 0)||H),Ge!==H?os(Ge,[n]):od(n,524288)):e;var n}function vu(e){return e.symbol&&0!=(6656&e.symbol.flags)&&!hv(e)}function yu(e,n){var t=yt(e.flags,e.escapedName);return t.declarations=e.declarations,t.parent=e.parent,t.type=n,(t.target=e).valueDeclaration&&(t.valueDeclaration=e.valueDeclaration),e.nameType&&(t.nameType=e.nameType),t}function hu(e){if(!(ju(e)&&33554432&e.flags))return e;var n=e.regularType;if(n)return n;var t=e,r=function(e,n){for(var t=Dy.createSymbolTable(),r=0,a=Wi(e);r<a.length;r++){var i=a[r],o=wa(i),s=n(o);t.set(i.escapedName,s===o?i:yu(i,s))}return t}(e,hu),a=Ir(t.symbol,r,t.callSignatures,t.constructSignatures,t.stringIndexInfo,t.numberIndexInfo);return a.flags=-33554433&t.flags,a.objectFlags|=128|16384&Dy.getObjectFlags(t),e.regularType=a}function bu(e,n,t){return{parent:e,propertyName:n,siblings:t,resolvedProperties:void 0}}function Eu(e){if(!e.resolvedProperties){for(var n=Dy.createMap(),t=0,r=function e(n){if(!n.siblings){for(var t=[],r=0,a=e(n.parent);r<a.length;r++){var i=a[r];if(ju(i)){var o=qi(i,n.propertyName);o&&Ed(wa(o),function(e){t.push(e)})}}n.siblings=t}return n.siblings}(e);t<r.length;t++){var a=r[t];if(ju(a)&&!(1024&Dy.getObjectFlags(a)))for(var i=0,o=Ji(a);i<o.length;i++){var s=o[i];n.set(s.escapedName,s)}}e.resolvedProperties=Dy.arrayFrom(n.values())}return e.resolvedProperties}function Tu(e,n){if(!(4&e.flags))return e;var t=wa(e),r=Cu(t,n&&bu(n,e.escapedName,void 0));return r===t?e:yu(e,r)}function Su(e){var n=j.get(e.escapedName);if(n)return n;var t=yu(e,Y);return t.flags|=16777216,j.set(e.escapedName,t),t}function xu(e){return Cu(e,void 0)}function Cu(e,n){if(402653184&e.flags){if(24576&e.flags)return W;if(ju(e))return function(e,n){for(var t=Dy.createSymbolTable(),r=0,a=Wi(e);r<a.length;r++){var i=a[r];t.set(i.escapedName,Tu(i,n))}if(n)for(var o=0,s=Eu(n);o<s.length;o++)i=s[o],t.has(i.escapedName)||t.set(i.escapedName,Su(i));var c=vo(e,0),l=vo(e,1),u=Ir(e.symbol,t,Dy.emptyArray,Dy.emptyArray,c&&Yo(xu(c.type),c.isReadonly),l&&Yo(xu(l.type),l.isReadonly));return u.objectFlags|=16384&Dy.getObjectFlags(e),u}(e,n);if(262144&e.flags){var t=n||bu(void 0,void 0,e.types),r=Dy.sameMap(e.types,function(e){return 24576&e.flags?e:Cu(e,t)});return Qs(r,Dy.some(r,Ll)?2:1)}if(Jl(e)||su(e))return ts(e.target,Dy.sameMap(e.typeArguments,xu))}return e}function Du(e,n){var t,r=qr(xu(n));switch(e.kind){case 202:case 152:case 151:t=Dy.Diagnostics.Member_0_implicitly_has_an_1_type;break;case 149:t=e.dotDotDotToken?Dy.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:Dy.Diagnostics.Parameter_0_implicitly_has_an_1_type;break;case 184:t=Dy.Diagnostics.Binding_element_0_implicitly_has_an_1_type;break;case 237:case 154:case 153:case 156:case 157:case 194:case 195:if(!e.name)return void gt(e,Dy.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);t=Dy.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type;break;case 179:return void gt(e,Dy.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);default:t=Dy.Diagnostics.Variable_0_implicitly_has_an_1_type}gt(e,t,Dy.declarationNameToString(Dy.getNameOfDeclaration(e)),r)}function Au(e,n){L&&F&&134217728&n.flags&&(function e(n){var t=!1;if(134217728&n.flags){if(262144&n.flags)if(Dy.some(n.types,Ll))t=!0;else for(var r=0,a=n.types;r<a.length;r++)e(l=a[r])&&(t=!0);if(Jl(n)||su(n))for(var i=0,o=n.typeArguments;i<o.length;i++)e(l=o[i])&&(t=!0);if(ju(n))for(var s=0,c=Wi(n);s<c.length;s++){var l,u=c[s];134217728&(l=wa(u)).flags&&(e(l)||gt(u.valueDeclaration,Dy.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Ur(u),qr(xu(l))),t=!0)}}return t}(n)||Du(e,n))}function Lu(e,n,t){var r=xf(e),a=xf(n),i=Af(e),o=Af(n),s=o?Math.min(a-1,r):i?a:Math.min(r,a),c=wo(e);if(c){var l=wo(n);l&&t(c,l)}for(var u=0;u<s;u++)t(Ef(e,u),Ef(n,u));o&&t(Sf(e,s),o)}function ku(e,n,t,r,a){var i=a?a.map(Iu):e.map(Nu),o=function(e){for(var n=0;n<i.length;n++)if(e===i[n].typeParameter)return i[n].isFixed=!0,Wu(o,n);return e};return o.typeParameters=e,o.signature=n,o.inferences=i,o.flags=t,o.compareTypes=r||pl,o}function Nu(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1}}function Iu(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 Mu(e){var n,t=Dy.getObjectFlags(e);return!!(15794176&e.flags||4&t&&Dy.forEach(e.typeArguments,Mu)||16&t&&e.symbol&&10288&e.symbol.flags||32&t||786432&e.flags&&(void 0===(n=e).couldContainTypeVariables&&(n.couldContainTypeVariables=Dy.some(n.types,Mu)),n.couldContainTypeVariables))}function Ou(e,n){return e===n||!!(786432&e.flags)&&Dy.some(e.types,function(e){return Ou(e,n)})}function wu(e,n){var t=e.id+","+n.id;if(mn.has(t))return mn.get(t);mn.set(t,void 0);var r=function(e,n){var t=Ji(e);if(0!==t.length||vo(e,0)){for(var r=0,a=t;r<a.length;r++){var i=a[r];if(536870912&wa(i).flags)return}if(Jl(e))return Bs(Pu(e.typeArguments[0],n));if(Xl(e))return Ks(Pu(e.typeArguments[0],n));if(su(e)){var o=Dy.map(e.typeArguments||Dy.emptyArray,function(e){return Pu(e,n)}),s=4&Bi(n)?as(e)-(e.target.hasRestElement?1:0):e.target.minLength;return Hs(o,s,e.target.hasRestElement,e.target.associatedNames)}var c=Ar(2064,void 0);return c.source=e,c.mappedType=n,c}}(e,n);return mn.set(t,r),r}function Pu(e,n){var t=mc(Pi(n).type,wi(n)),r=Ri(n),a=Nu(t);return Vu([a],e,r),Gu(a)}function Ru(e,n,t){for(var r=0,a=524288&n.flags?zi(n):Wi(n);r<a.length;r++){var i=a[r];if((t||!(16777216&i.flags))&&!po(e,i.escapedName))return i}}function Fu(e,n){return su(e)&&su(n)&&(t=e,(r=n).target.minLength>t.target.minLength||!cu(r)&&(!!cu(t)||lu(r)<lu(t)))||!!Ru(e,n,!1)&&!!Ru(n,e,!1);var t,r}function Gu(e){return e.candidates?Qs(e.candidates,2):e.contraCandidates?tc(e.contraCandidates):fe}function Vu(a,e,L,k){var N,I;void 0===k&&(k=0);var M,O=!1;function w(e,n){if(Mu(n)){if(e===z){var t=M;return M=e,w(n,n),void(M=t)}if(e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===n.aliasSymbol)for(var r=e.aliasTypeArguments,a=n.aliasTypeArguments,i=0;i<r.length;i++)w(r[i],a[i]);else{if(262144&e.flags&&262144&n.flags&&!(512&e.flags&&512&n.flags)||524288&e.flags&&524288&n.flags){if(e===n){for(var o=0,s=e.types;o<s.length;o++)w(T=s[o],T);return}for(var c=void 0,l=0,u=e.types;l<u.length;l++)if(Bu(T=u[l],n.types))(c||(c=[])).push(T),w(T,T);else if(192&T.flags){var d=ru(T);Bu(d,n.types)&&(c||(c=[])).push(T,d)}c&&(e=Ku(e,c),n=Ku(n,c))}if(2162688&n.flags){if(536870912&e.flags||e===le)return;var p=R(n);if(p){if(!p.isFixed){if((void 0===p.priority||k<p.priority)&&(p.candidates=void 0,p.contraCandidates=void 0,p.priority=k),k===p.priority){var m=M||e;O?p.contraCandidates=Dy.append(p.contraCandidates,m):p.candidates=Dy.append(p.candidates,m)}8&k||!(65536&n.flags)||Ou(L,n)||(p.topLevel=!1)}return}}if(4&Dy.getObjectFlags(e)&&4&Dy.getObjectFlags(n)&&e.target===n.target){r=e.typeArguments||Dy.emptyArray,a=n.typeArguments||Dy.emptyArray;var f=r.length<a.length?r.length:a.length,_=Rl(e.target);for(i=0;i<f;i++)i<_.length&&2===_[i]?P(r[i],a[i]):w(r[i],a[i])}else if(1048576&e.flags&&1048576&n.flags)O=!O,w(e.type,n.type),O=!O;else if((tu(e)||4&e.flags)&&1048576&n.flags){var g=function(e){var r=Dy.createSymbolTable();Ed(e,function(e){if(64&e.flags){var n=Dy.escapeLeadingUnderscores(e.value),t=yt(4,n);t.type=W,e.symbol&&(t.declarations=e.symbol.declarations,t.valueDeclaration=e.symbol.valueDeclaration),r.set(n,t)}});var n=4&e.flags?Yo(fe,!1):void 0;return Ir(void 0,r,Dy.emptyArray,Dy.emptyArray,n,void 0)}(e);O=!O;var v=k;k|=16,w(g,n.type),k=v,O=!O}else if(2097152&e.flags&&2097152&n.flags)w(e.objectType,n.objectType),w(e.indexType,n.indexType);else if(4194304&e.flags&&4194304&n.flags)w(e.checkType,n.checkType),w(e.extendsType,n.extendsType),w(yc(e),yc(n)),w(hc(e),hc(n));else if(4194304&n.flags)w(e,Qs([yc(n),hc(n)]));else if(786432&n.flags){for(var y=0,h=void 0,b=0,E=a=n.types;b<E.length;b++){var T;R(T=E[b])?(h=T,y++):w(e,T)}1===y&&(v=k,k|=1,w(e,h),k=v)}else if(262144&e.flags)for(var S=0,x=r=e.types;S<x.length;S++)w(x[S],n);else{if(!(32&k&&16318464&e.flags)){var C=so(e);if(C!==e&&!(655360&C.flags))return w(C,n);e=C}if(655360&e.flags){var D=e.id+","+n.id;if(I&&I.get(D))return;(I||(I=Dy.createMap())).set(D,!0);var A=131072&n.flags&&!(16&Dy.getObjectFlags(n)&&n.symbol&&32&n.symbol.flags)?n.symbol:void 0;if(A){if(Dy.contains(N,A))return;(N||(N=[])).push(A),F(e,n),N.pop()}else F(e,n)}}}}}function P(e,n){G||64&k?(O=!O,w(e,n),O=!O):w(e,n)}function R(e){if(2162688&e.flags)for(var n=0,t=a;n<t.length;n++){var r=t[n];if(e===r.typeParameter)return r}}function F(e,n){if(Hi(e)&&Hi(n)&&(w(Pi(e),Pi(n)),w(Ri(e),Ri(n))),32&Dy.getObjectFlags(n)){var t=Pi(n);if(1048576&t.flags){var r=R(t.type);if(r&&!r.isFixed){var a=wu(e,n);if(a){var i=k;k|=2,w(a,r.typeParameter),k=i}}return}if(65536&t.flags)return i=k,k|=4,w(oc(e),t),k=i,void w(Qs(Dy.map(Ji(e),wa)),Ri(n))}Fu(e,n)||(function(e,n){if(su(e)){if(su(n)){for(var t=lu(e),r=lu(n),a=cu(e),i=cu(n),o=r<t||a?r:t,s=0;s<o;s++)w(s<t?e.typeArguments[s]:a,n.typeArguments[s]);if(i){var c=o<t?e.typeArguments.slice(o,t):[];a&&c.push(a),c.length&&w(Qs(c),i)}return}if(Jl(n))return f(e,n)}for(var l=Wi(n),u=0,d=l;u<d.length;u++){var p=d[u],m=po(e,p.escapedName);m&&w(wa(m),wa(p))}}(e,n),o(e,n,0),o(e,n,1),f(e,n))}function o(e,n,t){for(var r=fo(e,t),a=fo(n,t),i=r.length,o=a.length,s=i<o?i:o,c=!!(536870912&e.flags),l=0;l<s;l++)u(qo(r[i-s+l]),qo(a[o-s+l]),c)}function u(e,n,t){t||Lu(e,n,P);var r=Ro(e),a=Ro(n);r&&a&&r.kind===a.kind?w(r.type,a.type):w(Fo(e),Fo(n))}function f(e,n){var t=yo(n,0);t&&(r=yo(e,0)||ho(e,0))&&w(r,t);var r,a=yo(n,1);a&&(r=yo(e,1)||yo(e,0)||ho(e,1))&&w(r,a)}w(e,L)}function Bu(e,n){for(var t=0,r=n;t<r.length;t++)if(ul(r[t],e))return!0;return!1}function Ku(e,n){for(var t=[],r=0,a=e.types;r<a.length;r++){var i=a[r];Bu(i,n)||t.push(i)}return 262144&e.flags?Qs(t):tc(t)}function ju(e){return!!(128&Dy.getObjectFlags(e))}function Hu(e){return 28&e.priority?tc(e.contraCandidates):(n=e.contraCandidates,Dy.reduceLeft(n,function(e,n){return ml(n,e)?n:e}));var n}function Uu(e,n){var t,r,a=function(e){if(1<e.length){var n=Dy.filter(e,ju);if(n.length){var t=xu(Qs(n,2));return Dy.concatenate(Dy.filter(e,function(e){return!ju(e)}),[t])}}return e}(e.candidates),i=(t=e.typeParameter,!!(r=Yi(t))&&zf(4194304&r.flags?Qi(r):r,1081340)),o=!i&&e.topLevel&&(e.isFixed||!Ou(Fo(n),e.typeParameter)),s=i?Dy.sameMap(a,Oc):o?Dy.sameMap(a,au):a;return xu(28&e.priority?Qs(s,2):function(e){if(!k)return zl(e);var n=Dy.filter(e,function(e){return!(24576&e.flags)});return n.length?fu(zl(n),24576&uu(e)):Qs(e,2)}(s))}function Wu(e,n){var t,r,a=e.inferences[n],i=a.inferredType;if(!i){var o=e.signature;if(o)if(a.contraCandidates&&(!a.candidates||1===a.candidates.length&&32768&a.candidates[0].flags)&&(a.candidates=[Hu(a)],a.contraCandidates=void 0),a.candidates)i=Uu(a,o);else if(1&e.flags)i=le;else{var s=io(a.typeParameter);i=s?tl(s,Uc((t=e.signature.typeParameters,r=n,function(e){return t.indexOf(e)>=r?fe:e}),e)):qu(!!(2&e.flags))}else i=Gu(a);a.inferredType=i;var c=Yi(a.typeParameter);if(c){var l=tl(c,e);e.compareTypes(i,Ei(l,i))||(a.inferredType=i=l)}}return i}function qu(e){return e?W:fe}function zu(e){for(var n=[],t=0;t<e.inferences.length;t++)n.push(Wu(e,t));return n}function Ju(e){switch(e){case"document":case"console":return Dy.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return Dy.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_types_Slashjquery;case"describe":case"suite":case"it":case"test":return Dy.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;case"process":case"require":case"Buffer":case"module":return Dy.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":return Dy.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 Dy.Diagnostics.Cannot_find_name_0}}function Xu(e){var n=kt(e);return n.resolvedSymbol||(n.resolvedSymbol=!Dy.nodeIsMissing(e)&&Ot(e,e.escapedText,68268991,Ju(e.escapedText),e,!Dy.isWriteOnlyAccess(e),!1,Dy.Diagnostics.Cannot_find_name_0_Did_you_mean_1)||H),n.resolvedSymbol}function Yu(e){return!!Dy.findAncestor(e,function(e){return 165===e.kind||71!==e.kind&&146!==e.kind&&"quit"})}function Qu(e){var n=e.parent;if(182!==n.kind)return""+n.elements.indexOf(e);var t=e.propertyName||e.name;switch(t.kind){case 71:return Dy.idText(t);case 147:return Dy.isStringOrNumericLiteralLike(t.expression)?t.expression.text:void 0;case 9:case 8:return t.text;default:Dy.Debug.fail("Unexpected name kind for binding element name")}}function Zu(e,n){switch(e.kind){case 71:return 71===n.kind&&Xu(e)===Xu(n)||(235===n.kind||184===n.kind)&&Er(Xu(e))===vr(n);case 99:return 99===n.kind;case 97:return 97===n.kind;case 187:case 188:return(Dy.isPropertyAccessExpression(n)||Dy.isElementAccessExpression(n))&&$u(e)===$u(n)&&Zu(e.expression,n.expression);case 184:if(187!==n.kind)return!1;var t=n;if(t.name.escapedText!==Qu(e))return!1;if(184===e.parent.parent.kind&&Zu(e.parent.parent,t.expression))return!0;if(235===e.parent.parent.kind){var r=e.parent.parent.initializer;return!!r&&Zu(r,t.expression)}}return!1}function $u(e){return Dy.isPropertyAccessExpression(e)?e.name.escapedText:Dy.isStringLiteral(e.argumentExpression)||Dy.isNumericLiteral(e.argumentExpression)?Dy.escapeLeadingUnderscores(e.argumentExpression.text):void 0}function ed(e,n){for(;187===e.kind;)if(Zu(e=e.expression,n))return!0;return!1}function nd(e,n){return 187===n.kind&&ed(e,n.expression)&&td(function e(n){if(71===n.kind)return wa(Xu(n));if(187===n.kind){var t=e(n.expression);return t&&oa(t,n.name.escapedText)}}(n.expression),n.name.escapedText)}function td(e,n){if(e&&262144&e.flags){var t=lo(e,n);if(t&&2&Dy.getCheckFlags(t))return void 0===t.isDiscriminantProperty&&(t.isDiscriminantProperty=!!(32&t.checkFlags)&&tu(wa(t))),t.isDiscriminantProperty}return!1}function rd(e,n){return Zu(e,n)||ed(e,n)}function ad(e,n){if(e!==n){if(32768&n.flags)return n;var t=Td(e,function(e){return function(e,n){if(!(262144&e.flags))return fl(e,n);for(var t=0,r=e.types;t<r.length;t++)if(fl(r[t],n))return!0;return!1}(n,e)});if(33554432&n.flags&&256&n.flags&&(t=Sd(t,Mc)),fl(n,t))return t}return e}function id(e){var n,t,r=e.flags;if(4&r)return k?4079361:4194049;if(64&r){var a=""===e.value;return k?a?3030785:1982209:a?3145473:4194049}if(40&r)return k?4079234:4193922;if(128&r){var i=0===e.value;return k?i?3030658:1982082:i?3145346:4193922}return 16&r?k?4078980:4193668:272&r?k?e===te||e===re?3030404:1981828:e===te||e===re?3145092:4193668:131072&r?16&Dy.getObjectFlags(e)&&Ll(e)?k?4079615:4194303:(t=Ui(n=e)).callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&ml(n,Ae)?k?1970144:4181984:k?1972176:4184016:12288&r?2457472:16384&r?2340752:3072&r?k?1981320:4193160:16777216&r?k?1972176:4184016:15794176&r?id(eo(e)||fe):786432&r?function(e){for(var n=0,t=0,r=e;t<r.length;t++)n|=id(r[t]);return n}(e.types):4194303}function od(e,n){return Td(e,function(e){return 0!=(id(e)&n)})}function sd(e,n){if(n){var t=m_(n);return Qs([od(e,131072),t])}return e}function cd(e,n){var t=Dy.getTextOfPropertyName(n);return Hd(oa(e,t),n)||Ip(t)&&yo(e,1)||yo(e,0)||J}function ld(e,n){return Zl(e)&&$l(e,n)||Tg(e,void 0,!1,!1)||J}function ud(e){return Bs(Tg(e,void 0,!1,!1)||J)}function dd(e){return 202===e.parent.kind&&e.parent.left===e||225===e.parent.kind&&e.parent.initializer===e}function pd(e){return cd(md(e.parent),e.name)}function md(e){var n,t,r,a,i=e.parent;switch(i.kind){case 224:return ee;case 225:return Eg(i.expression,i.awaitModifier)||J;case 202:return 185===(a=i).parent.kind&&dd(a.parent)||273===a.parent.kind&&dd(a.parent.parent)?sd(md(a),a.right):m_(a.right);case 196:return Y;case 185:return r=e,ld(md(t=i),t.elements.indexOf(r));case 206:return ud(md(i.parent));case 273:return pd(i);case 274:return sd(pd(n=i),n.objectAssignmentInitializer)}return J}function fd(e){return e.initializer?kt(n=e.initializer).resolvedType||m_(n):224===e.parent.parent.kind?ee:225===e.parent.parent.kind&&Eg(e.parent.parent.expression,e.parent.parent.awaitModifier)||J;var n}function _d(e){return 235===e.kind?fd(e):(t=(n=e).parent,r=_d(t.parent),sd(182===t.kind?cd(r,n.propertyName||n.name):n.dotDotDotToken?ud(r):ld(r,t.elements.indexOf(n)),n.initializer));var n,t,r}function gd(e,n){return Hd(235===e.kind||184===e.kind?_d(e):md(e),n)}function vd(e){switch(e.kind){case 193:return vd(e.expression);case 202:switch(e.operatorToken.kind){case 58:return vd(e.left);case 26:return vd(e.right)}}return e}function yd(e){var n,t=kt(e);if(!t.switchTypes){t.switchTypes=[];for(var r=0,a=e.caseBlock.clauses;r<a.length;r++){var i=a[r];t.switchTypes.push(269===(n=i).kind?Oc(m_(n.expression)):ce)}}return t.switchTypes}function hd(e){for(var n=[],t=0,r=e.caseBlock.clauses;t<r.length;t++){var a=r[t];if(269!==a.kind)n.push(void 0);else{if(9!==a.expression.kind)return Dy.emptyArray;n.push(a.expression.text)}}return n}function bd(e,n){return e===n||262144&n.flags&&function(e,n){if(262144&e.flags){for(var t=0,r=e.types;t<r.length;t++){var a=r[t];if(!Ws(n.types,a))return!1}return!0}return!!(512&e.flags&&$a(e)===n)||Ws(n.types,e)}(e,n)}function Ed(e,n){return 262144&e.flags?Dy.forEach(e.types,n):n(e)}function Td(e,n){if(262144&e.flags){var t=e.types,r=Dy.filter(t,n);return r===t?e:$s(r,67108864&e.flags)}return n(e)?e:ce}function Sd(e,n,t){if(32768&e.flags)return e;if(!(262144&e.flags))return n(e);for(var r,a,i=0,o=e.types;i<o.length;i++){var s=n(o[i]);s&&(r?a?a.push(s):a=[r,s]:r=s)}return a?Qs(a,t?0:1):r}function xd(e,n){return Td(e,function(e){return 0!=(e.flags&n)})}function Cd(e,n){return bd(ee,e)&&zf(n,64)||bd(ne,e)&&zf(n,128)?Sd(e,function(e){return 4&e.flags?xd(n,68):8&e.flags?xd(n,136):e}):e}function Dd(e){return 0===e.flags}function Ad(e){return 0===e.flags?e.type:e}function Ld(e,n){return n?{flags:0,type:e}:e}function kd(e){return K[e.id]||(K[e.id]=(n=e,(t=Ar(256)).elementType=n,t));var n,t}function Nd(e,n){var t=ru(f_(n));return bd(t,e.elementType)?e:kd(Qs([e.elementType,t]))}function Id(e){return e.finalArrayType||(e.finalArrayType=32768&(n=e.elementType).flags?Re:Bs(262144&n.flags?Qs(n.types,2):n));var n}function Md(e){return 256&Dy.getObjectFlags(e)?Id(e):e}function Od(e){return 256&Dy.getObjectFlags(e)?e.elementType:ce}function wd(e,n){return function(e){for(var n=!1,t=0,r=e;t<r.length;t++){var a=r[t];if(!(32768&a.flags)){if(!(256&Dy.getObjectFlags(a)))return!1;n=!0}}return n}(e)?kd(Qs(Dy.map(e,Od))):Qs(Dy.sameMap(e,Md),n)}function Pd(e){var n=function e(n){var t=n.parent;return 193===t.kind||202===t.kind&&58===t.operatorToken.kind&&t.left===n||202===t.kind&&26===t.operatorToken.kind&&t.right===n?e(t):n}(e),t=n.parent,r=187===t.kind&&("length"===t.name.escapedText||189===t.parent.kind&&Dy.isPushOrUnshiftIdentifier(t.name)),a=188===t.kind&&t.expression===n&&202===t.parent.kind&&58===t.parent.operatorToken.kind&&t.parent.left===t&&!Dy.isAssignmentTarget(t.parent)&&Jf(m_(t.argumentExpression),168);return r||a}function Rd(e){var n=kt(e);return void 0===n.maybeTypePredicate&&(n.maybeTypePredicate=function(e){if(97!==e.expression.kind){var n=cm(e.expression);if(n!==le){var t=so(n);return t!==J&&Dy.some(fo(t,0),Po)}}return!1}(e)),n.maybeTypePredicate}function Fd(g,v,l,u,e){var y;void 0===l&&(l=v);var d=0;if(yn)return J;if(!g.flowNode||!e&&!(33492479&v.flags))return v;var p=vn,n=Ad(h(g.flowNode));vn=p;var t=256&Dy.getObjectFlags(n)&&Pd(g)?Pe:Md(n);return g.parent&&211===g.parent.kind&&32768&od(t,524288).flags?v:t;function h(e){if(2e3===d)return yn=!0,n=g,t=Dy.findAncestor(n,Dy.isFunctionOrModuleBlock),r=Dy.getSourceFileOfNode(n),a=Dy.getSpanOfTokenAtPosition(r,t.statements.pos),Gn.add(Dy.createFileDiagnostic(r,a.start,a.length,Dy.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),J;var n,t,r,a;for(d++;;){var i=e.flags;if(1024&i)for(var o=p;o<vn;o++)if(On[o]===e)return d--,wn[o];var s=void 0;if(4096&i)e.locked=!0,s=h(e.antecedent),e.locked=!1;else{if(2048&i){e=e.antecedent;continue}if(16&i){if(!(s=m(e))){e=e.antecedent;continue}}else if(96&i)s=_(e);else if(128&i)s=b(e);else if(12&i){if(1===e.antecedents.length){e=e.antecedents[0];continue}s=4&i?E(e):T(e)}else if(256&i){if(!(s=f(e))){e=e.antecedent;continue}}else if(2&i){var c=e.container;if(c&&c!==u&&187!==g.kind&&188!==g.kind&&99!==g.kind){e=c.flowNode;continue}s=l}else s=pg(v)}return 1024&i&&(On[vn]=e,wn[vn]=s,vn++),d--,s}}function m(e){var n,t=e.node;if(Zu(g,t)){if(2===Dy.getAssignmentTargetKind(t)){var r=h(e.antecedent);return Ld(ru(Ad(r)),Dd(r))}if(v!==q&&v!==Re)return 262144&v.flags?ad(v,gd(t,g)):v;if(235===(n=t).kind&&n.initializer&&ma(n.initializer)||184!==n.kind&&202===n.parent.kind&&ma(n.parent.right))return kd(ce);var a=ru(gd(t,g));return fl(a,v)?a:Pe}if(ed(g,t)){if(Dy.isVariableDeclaration(t)&&(Dy.isInJSFile(t)||Dy.isVarConst(t))){var i=Dy.getDeclaredExpandoInitializer(t);if(i&&(194===i.kind||195===i.kind))return h(e.antecedent)}return v}}function f(e){if(v===q||v===Re){var n=e.node,t=189===n.kind?n.expression.expression:n.left.expression;if(Zu(g,vd(t))){var r=h(e.antecedent),a=Ad(r);if(256&Dy.getObjectFlags(a)){var i=a;if(189===n.kind)for(var o=0,s=n.arguments;o<s.length;o++)i=Nd(i,s[o]);else Jf(f_(n.left.argumentExpression),168)&&(i=Nd(i,n.right));return i===a?r:Ld(i,Dd(r))}return r}}}function _(e){var n=h(e.antecedent),t=Ad(n);if(32768&t.flags)return n;var r=0!=(32&e.flags),a=Md(t),i=L(a,e.expression,r);if(i===a)return n;var o=Dd(n);return Ld(o&&32768&i.flags?le:i,o)}function b(n){var e=h(n.antecedent),t=Ad(e),r=n.switchStatement.expression;return Zu(g,r)?t=a(t,n.switchStatement,n.clauseStart,n.clauseEnd):s(r,t)?t=c(t,r,function(e){return a(e,n.switchStatement,n.clauseStart,n.clauseEnd)}):197===r.kind&&Zu(g,r.expression)&&(t=function(e,n,t,r){var a=hd(n);if(!a.length)return e;var i,o,s=Dy.findIndex(a,function(e){return void 0===e}),c=t===r||t<=s&&s<r;if(-1<s){var l=a.filter(function(e){return void 0!==e}),u=s<t?t-1:t,d=s<r?r-1:r;i=l.slice(u,d),o=Rf(u,d,l,c)}else i=a.slice(t,r),o=Rf(t,r,a,c);if(!(c||262144&e.flags)){var p=od(Qs(i.map(function(e){return at.get(e)||ce})),o);if(262144&p.flags&&(p=ad(p,eo(e)||e)),!(32768&p.flags)){if(ml(p,e))return p;if(15794176&e.flags){var m=eo(e)||W;if(ml(p,m))return tc([e,p])}}}return c?Td(e,function(e){return(id(e)&o)===o}):od(e,o)}(t,n.switchStatement,n.clauseStart,n.clauseEnd)),Ld(t,Dd(e))}function E(e){for(var n=[],t=!1,r=!1,a=0,i=e.antecedents;a<i.length;a++){var o=i[a];if(!(2048&o.flags&&o.lock.locked)){var s=h(o),c=Ad(s);if(c===v&&v===l)return c;Dy.pushIfUnique(n,c),bd(c,v)||(t=!0),Dd(s)&&(r=!0)}}return Ld(wd(n,t?2:1),r)}function T(e){var n,t=((n=e).id||(n.id=Ny,Ny++),n.id),r=kn[t]||(kn[t]=Dy.createMap());if(!y&&!(y=function e(n){if(71===n.kind){var t=Xu(n);return t!==H?(Kd(n)?"@":"")+My(t):void 0}if(99===n.kind)return"0";if(187===n.kind)return(a=e(n.expression))&&a+"."+Dy.idText(n.name);if(184===n.kind){var r=n.parent.parent,a=184===r.kind?e(r):r.initializer&&e(r.initializer),i=Qu(n);return a&&i&&a+"."+i}}(g)))return v;var a=r.get(y);if(a)return a;for(var i=_n;i<gn;i++)if(Nn[i]===e&&In[i]===y&&Mn[i].length)return Ld(wd(Mn[i],1),!0);var o,s=[],c=!1;Nn[gn]=e,In[gn]=y,Mn[gn]=s;for(var l=0,u=e.antecedents;l<u.length;l++){var d=u[l];gn++;var p=h(d);gn--,o||(o=p);var m=Ad(p),f=r.get(y);if(f)return f;if(Dy.pushIfUnique(s,m),bd(m,v)||(c=!0),m===v)break}var _=wd(s,c?2:1);return Dd(o)?Ld(_,!0):(r.set(y,_),_)}function s(e,n){if(!(262144&n.flags)||187!==e.kind&&188!==e.kind)return!1;var t=e,r=$u(t);return!!r&&Zu(g,t.expression)&&td(n,r)}function c(e,n,t){var r=$u(n);if(!r)return e;var a=oa(e,r),i=a&&t(a);return a===i?e:Td(e,function(e){return gl(oa(e,r),i)})}function S(e,n,t){return Zu(g,n)?od(e,t?1048576:2097152):s(n,v)?c(e,n,function(e){return od(e,t?1048576:2097152)}):nd(g,n)?v:e}function x(e,n,t){if(393216&e.flags||65536&e.flags&&e.isThisType){var r=Dy.escapeLeadingUnderscores(n.text);return Td(e,function(e){return function(e,n,t){if(vo(e,0))return!0;var r=po(e,n);return r?!!(16777216&r.flags)||t:!t}(e,r,t)})}return e}function r(e,n,t){switch(n.operatorToken.kind){case 58:return S(e,n.left,t);case 32:case 33:case 34:case 35:var r=n.operatorToken.kind,a=vd(n.left),i=vd(n.right);if(197===a.kind&&Dy.isStringLiteralLike(i))return D(e,a,r,i,t);if(197===i.kind&&Dy.isStringLiteralLike(a))return D(e,i,r,a,t);if(Zu(g,a))return C(e,r,i,t);if(Zu(g,i))return C(e,r,a,t);if(s(a,v))return c(e,a,function(e){return C(e,r,i,t)});if(s(i,v))return c(e,i,function(e){return C(e,r,a,t)});if(nd(g,a)||nd(g,i))return v;break;case 93:return function(e,n,t){var r=vd(n.left);if(!Zu(g,r))return ed(g,r)?v:e;var a,i=m_(n.right);if(!ml(i,Ae))return e;var o=po(i,"prototype");if(o){var s=wa(o);sa(s)||(a=s)}if(sa(e)&&(a===De||a===Ae))return e;if(!a){var c=void 0;2&Dy.getObjectFlags(i)?c=di(i).declaredConstructSignatures:16&Dy.getObjectFlags(i)&&(c=fo(i,1)),c&&c.length&&(a=Qs(Dy.map(c,function(e){return Fo(Uo(e))})))}return a?A(e,a,t,_l):e}(e,n,t);case 92:var o=vd(n.right);if(Dy.isStringLiteralLike(n.left)&&Zu(g,o))return x(e,n.left,t);break;case 26:return L(e,n.right,t)}return e}function C(e,n,t,r){if(1&e.flags)return e;33!==n&&35!==n||(r=!r);var a=m_(t);if(24576&a.flags)return k?od(e,32===n||33===n?r?65536:524288:16384&a.flags?r?32768:262144:r?16384:131072):e;if(16909315&e.flags)return e;if(r){var i=Td(e,function(e){return vl(e,a)});return 32768&i.flags?e:Cd(i,a)}if(nu(a)){var o=Oc(a);return Td(e,function(e){return Oc(e)!==o})}return e}function D(e,n,t,r,a){var i=vd(n.expression);if(!Zu(g,i))return ed(g,i)?v:e;if(33!==t&&35!==t||(a=!a),1&e.flags&&"function"===r.text)return e;var o=a?tt.get(r.text)||64:rt.get(r.text)||8192;return od(a?Sd(e,function(e){if(2&e.flags&&"object"===r.text)return Qs([de,Z]);var n="function"===r.text?Ae:at.get(r.text);if(n){if(ml(e,n))return e;if(ml(n,e))return n;if(15794176&e.flags){var t=eo(e)||W;if(ml(n,t))return tc([e,n])}}return e}):e,o)}function a(e,n,t,r){var a=yd(n);if(!a.length)return e;var i=a.slice(t,r),o=t===r||Dy.contains(i,ce),s=Qs(i),c=32768&s.flags?ce:Cd(Td(e,function(e){return vl(s,e)}),s);if(!o)return c;var l=Td(e,function(e){return!(nu(e)&&Dy.contains(a,Oc(e)))});return 32768&c.flags?l:Qs([c,l])}function A(e,n,t,r){if(!t)return Td(e,function(e){return!r(e,n)});if(262144&e.flags){var a=Td(e,function(e){return r(e,n)});if(!(32768&a.flags))return a}return ml(n,e)?n:fl(e,n)?e:fl(n,e)?n:tc([e,n])}function i(e,n,t){if(!function(e,n){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++)if(rd(n,r[t]))return!0;return!(187!==e.expression.kind||!rd(n,e.expression.expression))}(n,g)||!Rd(n))return e;var r=af(n),a=Ro(r);if(!a)return e;if(sa(e)&&(a.type===De||a.type===Ae))return e;if(Dy.isIdentifierTypePredicate(a)){var i=n.arguments[a.parameterIndex-(r.thisParameter?1:0)];if(i){if(Zu(g,i))return A(e,a.type,t,ml);if(ed(g,i))return v}}else{var o=Dy.skipParentheses(n.expression);if(188===o.kind||187===o.kind){var s=o,c=Dy.skipParentheses(s.expression);if(Zu(g,c))return A(e,a.type,t,ml);if(ed(g,c))return v}}return e}function L(e,n,t){switch(n.kind){case 71:case 99:case 97:case 187:case 188:return S(e,n,t);case 189:return i(e,n,t);case 193:return L(e,n.expression,t);case 202:return r(e,n,t);case 200:if(51===n.operator)return L(e,n.operand,!t)}return e}}function Gd(e){return Dy.findAncestor(e.parent,function(e){return Dy.isFunctionLike(e)&&!Dy.getImmediatelyInvokedFunctionExpression(e)||243===e.kind||277===e.kind||152===e.kind})}function Vd(e){var n,t=Dy.getRootDeclaration(e.valueDeclaration).parent,r=kt(t);return 4194304&r.flags||(r.flags|=4194304,n=t,Dy.findAncestor(n.parent,function(e){return Dy.isFunctionLike(e)&&!!(4194304&kt(e).flags)})||Bd(t)),e.isAssigned||!1}function Bd(e){if(71===e.kind){if(Dy.isAssignmentTarget(e)){var n=Xu(e);n.valueDeclaration&&149===Dy.getRootDeclaration(n.valueDeclaration).kind&&(n.isAssigned=!0)}}else Dy.forEachChild(e,Bd)}function Kd(e){var n=e.parent;return 187===n.kind||189===n.kind&&n.expression===e||188===n.kind&&n.expression===e||184===n.kind&&n.name===e&&!!n.initializer}function jd(e){return 14745600&e.flags&&zf(eo(e)||fe,24576)}function Hd(e,n){return e&&Kd(n)&&Ed(e,jd)?Sd(xu(e),no):e}function Ud(e,n){!Jt(e,67220415)||Yu(n)||Iv(Yt(e))||Zt(e)}function Wd(e){var n=Xu(e);if(n===H)return J;if(n===M){var t=Dy.getContainingFunction(e);return P<2&&(195===t.kind?gt(e,Dy.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Dy.hasModifier(t,256)&&gt(e,Dy.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),kt(t).flags|=8192,wa(n)}e.parent&&Dy.isPropertyAccessExpression(e.parent)&&e.parent.expression===e||Ud(n,e);var r=Er(n),a=r.valueDeclaration;if(32&r.flags)if(238===a.kind&&Dy.nodeIsDecorated(a))for(t=Dy.getContainingClass(e);void 0!==t;){if(t===a&&t.name!==e){kt(a).flags|=8388608,kt(e).flags|=16777216;break}t=Dy.getContainingClass(t)}else if(207===a.kind)for(t=Dy.getThisContainer(e,!1);277!==t.kind;){if(t.parent===a){152===t.kind&&Dy.hasModifier(t,32)&&(kt(a).flags|=8388608,kt(e).flags|=16777216);break}t=Dy.getThisContainer(t,!1)}!function(e,n){if(!(2<=P||0==(34&n.flags)||272===n.valueDeclaration.parent.kind)){for(var t,r,a=Dy.getEnclosingBlockScopeContainer(n.valueDeclaration),i=(t=e.parent,r=a,!!Dy.findAncestor(t,function(e){return e===r?"quit":Dy.isFunctionLike(e)})),o=a,s=!1;o&&!Dy.nodeStartsNewLexicalEnvironment(o);){if(Dy.isIterationStatement(o,!1)){s=!0;break}o=o.parent}s&&(i&&(kt(o).flags|=65536),223===a.kind&&Dy.getAncestor(n.valueDeclaration,236).parent===a&&function(e,n){for(var t=e;193===t.parent.kind;)t=t.parent;var r=!1;if(Dy.isAssignmentTarget(t))r=!0;else if(200===t.parent.kind||201===t.parent.kind){var a=t.parent;r=43===a.operator||44===a.operator}return!!r&&!!Dy.findAncestor(t,function(e){return e===n?"quit":e===n.statement})}(e,a)&&(kt(n.valueDeclaration).flags|=2097152),kt(n.valueDeclaration).flags|=262144),i&&(kt(n.valueDeclaration).flags|=131072)}}(e,n);var i=Hd(wa(r),e),o=Dy.getAssignmentTargetKind(e);if(o){if(!(3&r.flags||Dy.isInJSFile(e)&&512&r.flags))return gt(e,Dy.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Ur(n)),J;if(Hf(r))return gt(e,Dy.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Ur(n)),J}var s=2097152&r.flags;if(3&r.flags){if(1===o)return i}else{if(!s)return i;a=Dy.find(n.declarations,Py)}if(!a)return i;for(var c,l=149===Dy.getRootDeclaration(a).kind,u=Gd(a),d=Gd(e),p=d!==u,m=e.parent&&e.parent.parent&&Dy.isSpreadAssignment(e.parent)&&dd(e.parent.parent),f=134217728&n.flags;d!==u&&(194===d.kind||195===d.kind||Dy.isObjectLiteralOrClassExpressionMethod(d))&&(3&(c=r).flags&&0!=(2&am(c))&&wa(c)!==Re||l&&!Vd(r));)d=Gd(d);var _,g,v=l||s||p||m||f||i!==q&&i!==Re&&(!k||0!=(3&i.flags)||Yu(e)||255===e.parent.kind)||211===e.parent.kind||235===a.kind&&a.exclamationToken||4194304&a.flags,y=Fd(e,i,v?l?(_=i,g=a,k&&149===g.kind&&g.initializer&&8192&du(_)&&!(8192&du(__(g.initializer)))?od(_,131072):_):i:i===q||i===Re?Y:_u(i),d,!v);if(i===q||i===Re){if(y===q||y===Re)return F&&(gt(Dy.getNameOfDeclaration(a),Dy.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ur(n),qr(y)),gt(e,Dy.Diagnostics.Variable_0_implicitly_has_an_1_type,Ur(n),qr(y))),pg(y)}else if(!v&&!(8192&du(i))&&8192&du(y))return gt(e,Dy.Diagnostics.Variable_0_is_used_before_being_assigned,Ur(n)),i;return o?ru(y):y}function qd(e,n){kt(e).flags|=2,152===n.kind||155===n.kind?kt(n.parent).flags|=4:kt(n).flags|=4}function zd(e){return Dy.isSuperCall(e)?e:Dy.isFunctionLike(e)?void 0:Dy.forEachChild(e,zd)}function Jd(e){var n=kt(e);return void 0===n.hasSuperCall&&(n.superCall=zd(e.body),n.hasSuperCall=!!n.superCall),n.superCall}function Xd(e){return za(ri(vr(e)))===$}function Yd(e,n,t){var r=n.parent;if(Dy.getEffectiveBaseTypeNode(r)&&!Xd(r)){var a=Jd(n);(!a||a.end>e.pos)&&gt(e,t)}}function Qd(e){var n=Dy.getThisContainer(e,!0),t=!1;switch(155===n.kind&&Yd(e,n,Dy.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),195===n.kind&&(n=Dy.getThisContainer(n,!1),t=!0),n.kind){case 242:gt(e,Dy.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 241:gt(e,Dy.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 155:$d(e,n)&&gt(e,Dy.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 152:case 151:Dy.hasModifier(n,32)&&gt(e,Dy.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 147:gt(e,Dy.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}t&&P<2&&qd(e,n);var r=Zd(e,n);return!r&&_&&gt(e,t&&277===n.kind?Dy.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this_which_implicitly_has_type_any:Dy.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),r||W}function Zd(e,n){void 0===n&&(n=Dy.getThisContainer(e,!1));var t,r=Dy.isInJSFile(e);if(Dy.isFunctionLike(n)&&(!ap(e)||Dy.getThisParameter(n))){var a=194===(t=n).kind&&Dy.isBinaryExpression(t.parent)&&3===Dy.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:154===t.kind&&186===t.parent.kind&&Dy.isBinaryExpression(t.parent.parent)&&6===Dy.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:194===t.kind&&273===t.parent.kind&&186===t.parent.parent.kind&&Dy.isBinaryExpression(t.parent.parent.parent)&&6===Dy.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:void 0;if(r&&a){var i=__(a).symbol;if(i&&i.members&&16&i.flags&&(o=cf(i)))return Fd(e,o)}else if(r&&(194===n.kind||237===n.kind)&&Dy.getJSDocClassTag(n)){var o;if(o=cf(n.symbol))return Fd(e,o)}var s=ka(n)||tp(n);if(s)return Fd(e,s)}if(Dy.isClassLike(n.parent)){var c,l=vr(n.parent);return Fd(e,c=Dy.hasModifier(n,32)?wa(l):ri(l).thisType)}if(r&&(c=function(e){var n=Dy.getJSDocType(e);if(n&&287===n.kind){var t=n;if(0<t.parameters.length&&t.parameters[0].name&&"this"===t.parameters[0].name.escapedText)return Fc(t.parameters[0].type)}var r=Dy.getJSDocThisTag(e);if(r&&r.typeExpression)return Fc(r.typeExpression)}(n))&&c!==J)return Fd(e,c)}function $d(e,n){return!!Dy.findAncestor(e,function(e){return e===n?"quit":149===e.kind})}function ep(e){var n=189===e.parent.kind&&e.parent.expression===e,t=Dy.getSuperContainer(e,!0),r=!1;if(!n)for(;t&&195===t.kind;)t=Dy.getSuperContainer(t,!0),r=P<2;var a,i=0;if(!(a=t)||(n?155!==a.kind:!Dy.isClassLike(a.parent)&&186!==a.parent.kind||(Dy.hasModifier(a,32)?154!==a.kind&&153!==a.kind&&156!==a.kind&&157!==a.kind:154!==a.kind&&153!==a.kind&&156!==a.kind&&157!==a.kind&&152!==a.kind&&151!==a.kind&&155!==a.kind))){var o=Dy.findAncestor(e,function(e){return e===t?"quit":147===e.kind});return o&&147===o.kind?gt(e,Dy.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?gt(e,Dy.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):t&&t.parent&&(Dy.isClassLike(t.parent)||186===t.parent.kind)?gt(e,Dy.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):gt(e,Dy.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),J}if(n||155!==t.kind||Yd(e,t,Dy.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),i=Dy.hasModifier(t,32)||n?512:256,kt(e).flags|=i,154===t.kind&&Dy.hasModifier(t,256)&&(Dy.isSuperProperty(e.parent)&&Dy.isAssignmentTarget(e.parent)?kt(t).flags|=4096:kt(t).flags|=2048),r&&qd(e.parent,t),186===t.parent.kind)return P<2?(gt(e,Dy.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),J):W;var s=t.parent;if(!Dy.getEffectiveBaseTypeNode(s))return gt(e,Dy.Diagnostics.super_can_only_be_referenced_in_a_derived_class),J;var c=ri(vr(s)),l=c&&Ja(c)[0];return l?155===t.kind&&$d(e,t)?(gt(e,Dy.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),J):512===i?za(c):Ei(l,c.thisType):J}function np(e){return 4&Dy.getObjectFlags(e)&&e.target===we?e.typeArguments[0]:void 0}function tp(e){if(195!==e.kind){if(cl(e)){var n=Cp(e);if(n){var t=n.thisParameter;if(t)return wa(t)}}var r,a=Dy.isInJSFile(e);if(_||a){var i=154!==(r=e).kind&&156!==r.kind&&157!==r.kind||186!==r.parent.kind?194===r.kind&&273===r.parent.kind?r.parent.parent:void 0:r.parent;if(i){for(var o=gp(i),s=i,c=o;c;){var l=Sd(c,function(e){return 524288&e.flags?Dy.forEach(e.types,np):np(e)});if(l)return tl(l,yp(i));if(273!==s.parent.kind)break;c=gp(s=s.parent.parent)}return o?gu(o):o_(i)}var u=e.parent;if(202===u.kind&&58===u.operatorToken.kind){var d=u.left;if(187===d.kind||188===d.kind){var p=d.expression;if(a&&Dy.isIdentifier(p)){var m=Dy.getSourceFileOfNode(u);if(m.commonJsModuleIndicator&&Xu(p)===m.symbol)return}return o_(p)}}}}}function rp(e){var n=e.parent;if(cl(n)){var t=Dy.getImmediatelyInvokedFunctionExpression(n);if(t&&t.arguments){var r=Km(t),a=n.parameters.indexOf(e);if(e.dotDotDotToken)return Rm(r,a,r.length,W,void 0);var i=kt(t),o=i.resolvedSignature;i.resolvedSignature=on;var s=a<r.length?au(__(r[a])):e.initializer?void 0:Q;return i.resolvedSignature=o,s}var c=Cp(n);if(c){var l=n.parameters.indexOf(e)-(Dy.getThisParameter(n)?1:0);return e.dotDotDotToken&&Dy.lastOrUndefined(n.parameters)===e?Sf(c,l):Tf(c,l)}}}function ap(e){for(var n=!1;e.parent&&!Dy.isFunctionLike(e.parent);){if(Dy.isParameter(e.parent)&&(n||e.parent.initializer===e))return!0;Dy.isBindingElement(e.parent)&&e.parent.initializer===e&&(n=!0),e=e.parent}return!1}function ip(e){var n=Go(e);if(n)return n;var t,r=Sp(e);return!r||!(t=r).resolvedReturnType&&0<=ta(t,3)?void 0:Fo(r)}function op(e,n){var t=Km(e).indexOf(n);return-1===t?void 0:sp(e,t)}function sp(e,n){return Ef(kt(e).resolvedSignature===cn?cn:af(e),n)}function cp(e){var n=e.parent,t=n.left,r=n.operatorToken,a=n.right;switch(r.kind){case 58:if(e!==a)return;var i=function(e){var n=Dy.getAssignmentDeclarationKind(e);switch(n){case 0:return!0;case 5:case 1:case 6:case 3:if(e.left.symbol){var t=e.left.symbol.valueDeclaration;if(!t)return!1;var r=e.left,a=Dy.getEffectiveTypeAnnotationNode(t);if(a)return Fc(a);if(Dy.isIdentifier(r.expression)){var i=r.expression,o=Ot(i,i.escapedText,67220415,void 0,i.escapedText,!0);if(o){var s=Dy.getEffectiveTypeAnnotationNode(o.valueDeclaration);if(s){var c=lp(Fc(s),r.name.escapedText);return c||!1}return!1}}return!Dy.isInJSFile(t)}return!0;case 2:case 4:if(!e.symbol)return!0;if(e.symbol.valueDeclaration){var s=Dy.getEffectiveTypeAnnotationNode(e.symbol.valueDeclaration);if(s){var c=Fc(s);if(c)return c}}if(2===n)return!1;var l=e.left;if(!Dy.isObjectLiteralMethod(Dy.getThisContainer(l.expression,!1)))return!1;var u=Qd(l.expression);return u&&lp(u,l.name.escapedText)||!1;default:return Dy.Debug.assertNever(n)}}(n);if(!i)return;return!0===i?m_(t):i;case 54:var o=vp(n);return o||e!==a||Dy.isDefaultedExpandoInitializer(n)?o:m_(t);case 53:case 26:return e===a?vp(n):void 0;default:return}}function lp(e,r){return Sd(e,function(e){if(917504&e.flags){var n=po(e,r);if(n)return wa(n);if(su(e)){var t=cu(e);if(t&&Ip(r)&&0<=+r)return t}}},!0)}function up(e,n){return Sd(e,function(e){return go(e,n)},!0)}function dp(e){var n=gp(e.parent);if(n){if(!_i(e)){var t=lp(n,vr(e).escapedName);if(t)return t}return kp(e.name)&&up(n,1)||up(n,0)}}function pp(e,n){return e&&(lp(e,""+n)||up(e,1)||Sg(e,void 0,!1,!1,!1))}function mp(e){var n,t,r,a=e.parent;return Dy.isJsxAttributeLike(a)?vp(e):Dy.isJsxElement(a)?(t=gp((n=a).openingElement.tagName),r=zp(Wp(n)),t&&!sa(t)&&r&&""!==r?lp(t,r):void 0):void 0}function fp(e){if(Dy.isJsxAttribute(e)){var n=gp(e.parent);if(!n||sa(n))return;return lp(n,e.name.escapedText)}return vp(e.parent)}function _p(e){switch(e.kind){case 9:case 8:case 13:case 101:case 86:case 95:case 71:return!0;case 187:case 193:return _p(e.expression)}return!1}function gp(e){var n,t=vp(e);if(!((t=t&&Sd(t,so))&&262144&t.flags&&Dy.isObjectLiteralExpression(e)))return t;e:for(var r=0,a=e.properties;r<a.length;r++){var i=a[r];if(i.symbol&&273===i.kind&&_p(i.initializer)&&td(t,i.symbol.escapedName))for(var o=__(i.initializer),s=0,c=t.types;s<c.length;s++){var l=c[s],u=oa(l,i.symbol.escapedName);if(u&&fl(o,u)){if(n){if(l===n)continue;n=void 0;break e}n=l}}}return n||t}function vp(e){if(!(8388608&e.flags)){if(e.contextualType)return e.contextualType;var n,t,r=e.parent;switch(r.kind){case 235:case 149:case 152:case 151:case 184:return function(e){var n=e.parent;if(Dy.hasInitializer(n)&&e===n.initializer){var t=Dy.getEffectiveTypeAnnotationNode(n);if(t)return Fc(t);if(149===n.kind){var r=rp(n);if(r)return r}if(Dy.isBindingPattern(n.name))return Ta(n.name,!0,!1);if(Dy.isBindingPattern(n.parent)){var a=n.parent.parent,i=n.propertyName||n.name;if(184!==a.kind){var o=Dy.getEffectiveTypeAnnotationNode(a);if(o&&!Dy.isBindingPattern(i)){var s=Dy.getTextOfPropertyName(i);if(s)return oa(Fc(o),s)}}}}}(e);case 195:case 228:return function(e){var n=Dy.getContainingFunction(e);if(n){var t=Dy.getFunctionFlags(n);if(1&t)return;var r=ip(n);return 2&t?r&&R_(r):r}}(e);case 205:return function(e){var n=Dy.getContainingFunction(e);if(n){var t=Dy.getFunctionFlags(n),r=ip(n);if(r)return e.asteriskToken?r:Ag(r,0!=(2&t))}}(r);case 189:case 190:return op(r,e);case 192:case 210:return Fc(r.type);case 202:return cp(e);case 273:case 274:return dp(r);case 275:return gp(r.parent);case 185:var a=r;return pp(gp(a),Dy.indexOfNode(a.elements,e));case 203:return t=(n=e).parent,n===t.whenTrue||n===t.whenFalse?vp(t):void 0;case 214:return Dy.Debug.assert(204===r.parent.kind),function(e,n){if(191===e.parent.kind)return op(e.parent,n)}(r.parent,e);case 193:var i=Dy.isInJSFile(r)?Dy.getJSDocTypeTag(r):void 0;return i?Fc(i.typeExpression.type):vp(r);case 268:return mp(r);case 265:case 267:return fp(r);case 260:case 259:return function(n){if(Dy.isJsxOpeningElement(n)&&n.parent.contextualType)return n.parent.contextualType;if(Fp(n.tagName))return Qp(n);var e=__(n.tagName);if(sa(e))return W;var t=Dy.isInJSFile(n);return Sd(e,function(e){return function(e,n,t){if(4&e.flags)return W;if(64&e.flags){var r=Kp(Ay.IntrinsicElements,t);if(r!==J){var a=e.value,i=po(r,Dy.escapeLeadingUnderscores(a));if(i)return wa(i);var o=yo(r,0);if(o)return o}return W}var s=fo(e,1),c=!0;if(0===s.length&&(s=fo(e,0),c=!1,0===s.length))return J;var l=kt(t);l.resolvedSignatures||(l.resolvedSignatures=Dy.createMap());var u=""+Us(e),d=l.resolvedSignatures.get(u);return d&&d!==un?s=d:d||(l.resolvedSignatures.set(u,un),l.resolvedSignatures.set(u,s=Hp(t,s))),Qs(Dy.map(s,c?function(e){return bp(e,n,t,!1)}:function(e){return function(e,n){var t=Nf(e,fe);t=hp(n,Wp(n),t);var r=Kp(Ay.IntrinsicAttributes,n);return r!==J&&(t=ki(r,t)),t}(e,t)}),0)}(e,t,n)})}(r)}}}function yp(e){var n=Dy.findAncestor(e,function(e){return!!e.contextualMapper});return n?n.contextualMapper:x}function hp(e,n,t){var r,a=(r=n)&&It(r.exports,Ay.LibraryManagedAttributes,67897832);if(a){var i=ri(a);if(2<=Dy.length(i.typeParameters))return ts(i,o=ko([o_(e.tagName),t],i.typeParameters,2,Dy.isInJSFile(e)));if(2<=Dy.length(i.aliasTypeArguments)){var o=ko([o_(e.tagName),t],i.aliasTypeArguments,2,Dy.isInJSFile(e));return os(i.aliasSymbol,o)}}return t}function bp(e,n,t,r){var a,i,o,s=Wp(t),c=(a=s,qp(Ay.ElementAttributesPropertyNameContainer,a)),l=void 0===c?Nf(e,fe):""===c?Fo(e):(i=c,sa(o=Fo(e))?o:oa(o,i));if(!l)return r&&c&&Dy.length(t.attributes.properties)&&gt(t,Dy.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Dy.unescapeLeadingUnderscores(c)),fe;if(sa(l=hp(t,s,l)))return l;var u=l,d=Kp(Ay.IntrinsicClassAttributes,t);if(d!==J){var p=Ka(d.symbol),m=Fo(e);u=ki(p?ts(d,ko([m],p,Lo(p),n)):d,u)}var f=Kp(Ay.IntrinsicAttributes,t);return f!==J&&(u=ki(f,u)),u}function Ep(e,n){var t=fo(e,0);if(1===t.length){var r=t[0];if(!function(e,n){for(var t=0;t<n.parameters.length;t++){var r=n.parameters[t];if(r.initializer||r.questionToken||r.dotDotDotToken||To(r))break}return n.parameters.length&&Dy.parameterIsThisKeyword(n.parameters[0])&&t--,!Df(e)&&xf(e)<t}(r,n))return r}}function Tp(e){return 194===e.kind||195===e.kind}function Sp(e){return Tp(e)||Dy.isObjectLiteralMethod(e)?Cp(e):void 0}function xp(e){return Dy.isObjectLiteralMethod(e)?function(e){if(Dy.Debug.assert(Dy.isObjectLiteralMethod(e)),!(8388608&e.flags))return dp(e)}(e):gp(e)}function Cp(e){Dy.Debug.assert(154!==e.kind||Dy.isObjectLiteralMethod(e));var n=Io(e);if(n)return n;var t=xp(e);if(t){if(!(262144&t.flags))return Ep(t,e);for(var r,a,i=0,o=t.types;i<o.length;i++){var s=Ep(o[i],e);if(s)if(r){if(!ql(r[0],s,!1,!0,!0,dl))return;r.push(s)}else r=[s]}return r&&((a=xi(r[0])).unionSignatures=r),a}}function Dp(e){return 184===e.kind&&!!e.initializer||202===e.kind&&58===e.operatorToken.kind}function Ap(e,n,t){for(var r,a=e.elements,i=a.length,o=!1,s=[],c=Dy.isAssignmentTarget(e),l=gp(e),u=0;u<i;u++){var d=a[u];if(c&&206===d.kind){var p=__(d.expression,n,t),m=yo(p,1)||Sg(p,void 0,!1,!1,!1);m&&s.push(m)}else{var f=l_(d,n,pp(l,u),t);s.push(f)}u<i-1&&206===d.kind&&(o=!0)}if(!o){var _=0<i&&206===a[i-1].kind,g=i-(_?1:0);if(c&&0<g)return(f=rs(Hs(s,g,_))).pattern=e,f;if(l&&(262144&(r=l).flags?Dy.forEach(r.types,Zl):Zl(r))){var v=l.pattern;if(!_&&v&&(183===v.kind||185===v.kind))for(var y=v.elements,h=i;h<y.length;h++)Dp(d=y[h])?s.push(l.typeArguments[h]):(h<y.length-1||!(184===d.kind&&d.dotDotDotToken||206===d.kind))&&(208!==d.kind&&gt(d,Dy.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),s.push(k?ue:Q));return Hs(s,g,_)}if(t)return Hs(s,g,_)}return Lp(s,2)}function Lp(e,n){return void 0===n&&(n=1),Bs(e.length?Qs(e,n):k?ue:Q)}function kp(e){switch(e.kind){case 147:return Jf(Mp(e),168);case 71:return Ip(e.escapedText);case 8:case 9:return Ip(e.text);default:return!1}}function Np(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function Ip(e){return(+e).toString()===e}function Mp(e){var n=kt(e.expression);return n.resolvedType||(n.resolvedType=__(e.expression),24576&n.resolvedType.flags||!Jf(n.resolvedType,3308)&&!fl(n.resolvedType,pe)?gt(e,Dy.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any):xm(e.expression,n.resolvedType,!0)),n.resolvedType}function Op(e,n,t,r){for(var a=[],i=0;i<t.length;i++)(0===r||kp(e[i+n].name))&&a.push(wa(t[i]));return Yo(a.length?Qs(a,2):Y,!1)}function wp(a,e){var i,o=Dy.isAssignmentTarget(a);!function(e,n){var t,r;(r=t||(t={}))[r.Property=1]="Property",r[r.GetAccessor=2]="GetAccessor",r[r.SetAccessor=4]="SetAccessor",r[r.GetOrSetAccessor=6]="GetOrSetAccessor";for(var a=Dy.createUnderscoreEscapedMap(),i=0,o=e.properties;i<o.length;i++){var s=o[i];if(275!==s.kind){var c=s.name;if(147===c.kind&&ly(c),274===s.kind&&!n&&s.objectAssignmentInitializer)return Sy(s.equalsToken,Dy.Diagnostics.can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment);if(s.modifiers)for(var l=0,u=s.modifiers;l<u.length;l++){var d=u[l];120===d.kind&&154===s.kind||Sy(d,Dy.Diagnostics._0_modifier_cannot_be_used_here,Dy.getTextOfNode(d))}var p=void 0;switch(s.kind){case 274:py(s.exclamationToken,Dy.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 273:dy(s.questionToken,Dy.Diagnostics.An_object_member_cannot_be_declared_optional),8===c.kind&&Cy(c);case 154:p=1;break;case 156:p=2;break;case 157:p=4;break;default:throw Dy.Debug.assertNever(s,"Unexpected syntax kind:"+s.kind)}var m=Dy.getPropertyNameForPropertyNameNode(c);if(void 0!==m){var f=a.get(m);if(f)if(1===p&&1===f)Sy(c,Dy.Diagnostics.Duplicate_identifier_0,Dy.getTextOfNode(c));else{if(!(6&p&&6&f))return Sy(c,Dy.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(6===f||p===f)return Sy(c,Dy.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);a.set(m,p|f)}else a.set(m,p)}}}}(a,o);var s=[],n=fe,c=33554432,t=gp(a),r=t&&t.pattern&&(182===t.pattern.kind||186===t.pattern.kind),l=Dy.isInJSFile(a)&&!Dy.isInJsonFile(a),u=Dy.getJSDocEnumTag(a),d=!t&&l&&!u,p=0,m=!1,f=!1,_=!1;i=Dy.createSymbolTable();for(var g=0,v=0;v<a.properties.length;v++){var y=a.properties[v],h=vr(y),b=y.name&&147===y.name.kind&&!Dy.isWellKnownSymbolSyntactically(y.name.expression)?Mp(y.name):void 0;if(273===y.kind||274===y.kind||Dy.isObjectLiteralMethod(y)){var E=273===y.kind?u_(y,e):274===y.kind?l_(y.name,e):d_(y,e);if(l){var T=pa(y);T?(yl(E,T,y),E=T):u&&u.typeExpression&&yl(E,Fc(u.typeExpression),y)}p|=E.flags;var S=b&&2240&b.flags?b:void 0,x=S?yt(4|h.flags,gi(S),1024):yt(4|h.flags,h.escapedName);if(S&&(x.nameType=S),o)(273===y.kind&&Dp(y.initializer)||274===y.kind&&y.objectAssignmentInitializer)&&(x.flags|=16777216);else if(r&&!(512&Dy.getObjectFlags(t))){var C=po(t,h.escapedName);C?x.flags|=16777216&C.flags:R.suppressExcessPropertyErrors||vo(t,0)||gt(y.name,Dy.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ur(h),qr(t))}x.declarations=h.declarations,x.parent=h.parent,h.valueDeclaration&&(x.valueDeclaration=h.valueDeclaration),x.type=E,x.target=h,h=x}else{if(275===y.kind){if(P<2&&Qv(y,2),0<s.length&&(n=Ac(n,L(),a.symbol,c,0),s=[],i=Dy.createSymbolTable(),_=f=!1,p=0),!Pp(E=__(y.expression)))return gt(y,Dy.Diagnostics.Spread_types_may_only_be_created_from_object_types),J;n=Ac(n,E,a.symbol,c,0),g=v+1;continue}Dy.Debug.assert(156===y.kind||157===y.kind),nv(y)}!b||2240&b.flags?i.set(h.escapedName,h):fl(b,pe)&&(fl(b,ne)?_=!0:f=!0,o&&(m=!0)),s.push(h)}if(r)for(var D=0,A=Ji(t);D<A.length;D++)x=A[D],i.get(x.escapedName)||n&&po(n,x.escapedName)||(16777216&x.flags||gt(x.valueDeclaration||x.bindingElement,Dy.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),i.set(x.escapedName,x),s.push(x));return n!==fe?(0<s.length&&(n=Ac(n,L(),a.symbol,c,0)),n):L();function L(){var e=f?Op(a.properties,g,s,0):void 0,n=_?Op(a.properties,g,s,1):void 0,t=Ir(a.symbol,i,Dy.emptyArray,Dy.emptyArray,e,n),r=R.suppressExcessPropertyErrors?0:33554432;return t.flags|=268435456|r|939524096&p,t.objectFlags|=128,d&&(t.objectFlags|=16384),m&&(t.objectFlags|=512),o&&(t.pattern=a),24576&t.flags||(c|=939524096&t.flags),t}}function Pp(e){return!!(16777219&e.flags||29120&du(e)&&Pp(pu(e))||131072&e.flags&&!Hi(e)||786432&e.flags&&Dy.every(e.types,Pp))}function Rp(e){return!Dy.stringContains(e,"-")}function Fp(e){return 71===e.kind&&Dy.isIntrinsicJsxName(e.escapedText)}function Gp(e,n){return e.initializer?l_(e.initializer,n):ae}function Vp(e,n){for(var t=[],r=0,a=e.children;r<a.length;r++){var i=a[r];10===i.kind?i.containsOnlyWhiteSpaces||t.push(ee):t.push(l_(i,n))}return t}function Bp(e,n){return function(e,n){for(var t,r=e.attributes,a=Dy.createSymbolTable(),i=fe,o=!1,s=!1,c=0,l=zp(Wp(e)),u=0,d=r.properties;u<d.length;u++){var p=d[u],m=p.symbol;if(Dy.isJsxAttribute(p)){var f=Gp(p,n);c|=939524096&f.flags;var _=yt(33554436|m.flags,m.escapedName);_.declarations=m.declarations,_.parent=m.parent,m.valueDeclaration&&(_.valueDeclaration=m.valueDeclaration),_.type=f,_.target=m,a.set(_.escapedName,_),p.name.escapedText===l&&(s=!0)}else Dy.Debug.assert(267===p.kind),0<a.size&&(i=Ac(i,b(),r.symbol,c,4096),a=Dy.createSymbolTable()),sa(f=o_(p.expression,n))&&(o=!0),Pp(f)?i=Ac(i,f,e.symbol,c,4096):t=t?tc([t,f]):f}o||0<a.size&&(i=Ac(i,b(),r.symbol,c,4096));var g=258===e.parent.kind?e.parent:void 0;if(g&&g.openingElement===e&&0<g.children.length){var v=Vp(g,n);if(!o&&l&&""!==l){s&&gt(r,Dy.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Dy.unescapeLeadingUnderscores(l));var y=yt(33554436,l);y.type=1===v.length?v[0]:Bs(Qs(v));var h=Dy.createSymbolTable();h.set(l,y),i=Ac(i,Ir(r.symbol,h,Dy.emptyArray,Dy.emptyArray,void 0,void 0),r.symbol,c,4096)}}return o?W:t&&i!==fe?tc([t,i]):t||(i===fe?b():i);function b(){var e=Ir(r.symbol,a,Dy.emptyArray,Dy.emptyArray,void 0,void 0);return e.flags|=c|=268435456,e.objectFlags|=4224,e}}(e.parent,n)}function Kp(e,n){var t=Wp(n),r=t&&pr(t),a=r&&It(r,e,67897832);return a?ri(a):J}function jp(e){var n=kt(e);if(n.resolvedSymbol)return n.resolvedSymbol;var t=Kp(Ay.IntrinsicElements,e);if(t===J)return F&&gt(e,Dy.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Dy.unescapeLeadingUnderscores(Ay.IntrinsicElements)),n.resolvedSymbol=H;if(!Dy.isIdentifier(e.tagName))return Dy.Debug.fail();var r=po(t,e.tagName.escapedText);return r?(n.jsxFlags|=1,n.resolvedSymbol=r):yo(t,0)?(n.jsxFlags|=2,n.resolvedSymbol=t.symbol):(gt(e,Dy.Diagnostics.Property_0_does_not_exist_on_type_1,Dy.idText(e.tagName),"JSX."+Ay.IntrinsicElements),n.resolvedSymbol=H)}function Hp(e,n){for(var t,r=[],a=!!e.typeArguments,i=0,o=n;i<o.length;i++){var s=o[i];if(s.typeParameters){var c=Dy.isInJSFile(e),l=Up(s,e,c,!1);if(l)a=!1,r.push(l);else{e.typeArguments&&Im(s,e.typeArguments)&&(t=s);var u=wm(s,e,ku(s.typeParameters,s,c?2:0));r.push(Bo(s,u,c))}}else r.push(s)}return e.typeArguments&&a&&(t?Fm(t,e.typeArguments,!0):0!==e.typeArguments.length&&Gn.add(Um(e,n,e.typeArguments))),r}function Up(e,n,t,r){if(void 0===r&&(r=!1),n.typeArguments&&Im(e,n.typeArguments)){var a=Fm(e,n.typeArguments,r);if(a)return Bo(e,a,t)}}function Wp(e){var n=e&&kt(e);if(n&&n.jsxNamespace)return n.jsxNamespace;if(!n||!1!==n.jsxNamespace){var t=ft(e),r=Ot(e,t,1920,void 0,t,!1);if(r){var a=It(pr(Xt(r)),Ay.JSX,1920);if(a)return n&&(n.jsxNamespace=a),a;n&&(n.jsxNamespace=!1)}}return Ts(Ay.JSX,1920,void 0)}function qp(e,n){var t=n&&It(n.exports,e,67897832),r=t&&ri(t),a=r&&Ji(r);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;1<a.length&&gt(t.declarations[0],Dy.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,Dy.unescapeLeadingUnderscores(e))}}function zp(e){return qp(Ay.ElementChildrenAttributeNameContainer,e)}function Jp(e){if(e){if(524288&e.flags){for(var n=[],t=0,r=e.types;t<r.length;t++){var a=r[t];n.push(so(a))}return tc(n)}return so(e)}}function Xp(e,n,t){var r=kt(e);r.resolvedSignatures||(r.resolvedSignatures=Dy.createMap());var a=""+Us(n);if(!r.resolvedSignatures.get(a)||r.resolvedSignatures.get(a)!==un){if(r.resolvedSignatures.get(a))return r.resolvedSignatures.get(a);r.resolvedSignatures.set(a,un);var i=fo(n,1);if(0!==i.length||0!==(i=fo(n,0)).length){var o=Hp(e,i);return r.resolvedSignatures.set(a,o),o}t&&gt(e.tagName,Dy.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Dy.getTextOfNode(e.tagName))}}function Yp(n,t,e,r){if(262144&e.flags)return Qs(e.types.map(function(e){return Yp(n,t,e,r)}),2);if(sa(e))return e;if(4&e.flags)return W;if(64&e.flags){var a=Kp(Ay.IntrinsicElements,n);if(a!==J){var i=e.value,o=po(a,Dy.escapeLeadingUnderscores(i));if(o)return wa(o);var s=yo(a,0);if(s)return s;gt(n,Dy.Diagnostics.Property_0_does_not_exist_on_type_1,i,"JSX."+Ay.IntrinsicElements)}return W}var c=Xp(n,e,!0);if(!Dy.length(c))return J;var l=Qs(c.map(Fo),2),u=t?function(e,n,t,r){if(Dy.Debug.assert(!(262144&n.flags)),!r||!fl(t,r)){var a=nm(e);if(a){var i=[];tf(e,n,i,!1);for(var o=void 0,s=void 0,c=0,l=i;c<l.length;c++){var u=l[c],d=Fo(u),p=d&&(0===u.parameters.length?fe:wa(u.parameters[0]));if(p=Jp(p),d&&fl(d,a)){for(var m=!0,f=0,_=e.attributes.properties;f<_.length;f++){var g=_[f];if(Dy.isJsxAttribute(g)&&Rp(g.name.escapedText)&&!po(p,g.name.escapedText)){m=!1;break}}m&&(o=ki(o,p)),s=ki(s,p)}}o||(o=s);var v=Kp(Ay.IntrinsicAttributes,e);return v!==J&&(o=ki(v,o)),o}}}(n,e,l,r):function(e,n,t,r){if(Dy.Debug.assert(!(262144&n.flags)),!r||!fl(t,r)){var a=nm(e);if(a){var i=tf(e,n,void 0,!1);if(i!==sn){var o=i&&Fo(i),s=o&&(0===i.parameters.length?fe:wa(i.parameters[0]));if(s=Jp(s),o&&fl(o,a)){var c=Kp(Ay.IntrinsicAttributes,e);return c!==J&&(s=ki(c,s)),s}}}}}(n,e,l,r);if(u)return u;r&&Ol(l,r,st,n,Dy.Diagnostics.JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements);var d=Dy.isInJSFile(n);return Qs(c.map(function(e){return bp(e,d,n,!0)}))}function Qp(e){Dy.Debug.assert(Fp(e.tagName));var n=kt(e);if(n.resolvedJsxElementAttributesType)return n.resolvedJsxElementAttributesType;var t=jp(e);return 1&n.jsxFlags?n.resolvedJsxElementAttributesType=wa(t):2&n.jsxFlags?n.resolvedJsxElementAttributesType=Qo(t,0).type:n.resolvedJsxElementAttributesType=J}function Zp(e,n){return Yp(e,n,__(e.tagName),(t=e,(r=Kp(Ay.ElementClass,t))===J?void 0:r));var t,r}function $p(e){var n;return po(Fp((n=e.parent.parent).tagName)?Qp(n):Zp(n,!1),e.name.escapedText)||H}function em(e){return Kp(Ay.Element,e)}function nm(e){var n=em(e);if(n)return Qs([n,Z])}function tm(e,n){var t,r=Dy.isJsxOpeningLikeElement(e);r&&function(e){iy(e,e.typeArguments);for(var n=Dy.createUnderscoreEscapedMap(),t=0,r=e.attributes.properties;t<r.length;t++){var a=r[t];if(267!==a.kind){var i=a.name,o=a.initializer;if(n.get(i.escapedText))return Sy(i,Dy.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(n.set(i.escapedText,!0),o&&268===o.kind&&!o.expression)return Sy(o,Dy.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(e),t=e,0===(R.jsx||0)&&gt(t,Dy.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===em(t)&&F&&gt(t,Dy.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);var a=Gn&&2===R.jsx?Dy.Diagnostics.Cannot_find_name_0:void 0,i=ft(e),o=Ot(r?e.tagName:e,i,67220415,a,i,!0);o&&(o.isReferenced=67108863,2097152&o.flags&&!Iv(Yt(o))&&Zt(o)),r?function(e,n){var t=Fp(e.tagName)?Qp(e):Zp(e,!1),r=o_(e.attributes,n),a=fl(r,t);if(!a||sa(r)||sa(t))a||hl(r,t,e.tagName,e.attributes);else for(var i=0,o=e.attributes.properties;i<o.length;i++){var s=o[i];if(Dy.isJsxAttribute(s)){var c=s.name,l=Rp(Dy.idText(c))||!!po(t,c.escapedText);if(l&&!rm(t,c.escapedText,!0)){gt(s,Dy.Diagnostics.Property_0_does_not_exist_on_type_1,Dy.idText(c),qr(t));break}}}}(e,n):Vp(e.parent)}function rm(e,n,t){if(131072&e.flags){var r=Ui(e);if(r.stringIndexInfo||r.numberIndexInfo&&Ip(n)||qi(e,n)||t&&!Rp(n))return!0}else if(786432&e.flags){for(var a=0,i=e.types;a<i.length;a++)if(rm(i[a],n,t))return!0}else if(4194304&e.flags)return rm(e.root.trueType,n,t)||rm(e.root.falseType,n,t);return!1}function am(e){return e.valueDeclaration?Dy.getCombinedNodeFlags(e.valueDeclaration):0}function im(e){if(8192&e.flags||4&Dy.getCheckFlags(e))return!0;if(Dy.isInJSFile(e.valueDeclaration)){var n=e.valueDeclaration.parent;return n&&Dy.isBinaryExpression(n)&&3===Dy.getAssignmentDeclarationKind(n)}}function om(e,n,t,r){var a,i,o=Dy.getDeclarationModifierFlagsFromSymbol(r),s=146===e.kind?e.right:181===e.kind?e:e.name;if(256&Dy.getCheckFlags(r))return gt(s,Dy.Diagnostics.Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1,Ur(r),qr(t)),!1;if(n){if(P<2&&sm(r))return gt(s,Dy.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&o)return gt(s,Dy.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ur(r),qr(jl(r))),!1}if(128&o&&Dy.isThisProperty(e)&&sm(r)&&(i=Dy.getClassLikeDeclarationOfSymbol(yr(r)))&&(a=e,Dy.findAncestor(a,function(e){return!!(Dy.isConstructorDeclaration(e)&&Dy.nodeIsPresent(e.body)||Dy.isPropertyDeclaration(e))||!(!Dy.isClassLike(e)&&!Dy.isFunctionLikeDeclaration(e))&&"quit"})))return gt(s,Dy.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ur(r),Dy.getTextOfIdentifierOrLiteral(i.name)),!1;if(!(24&o))return!0;if(8&o)return!!dv(e,i=Dy.getClassLikeDeclarationOfSymbol(yr(r)))||(gt(s,Dy.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Ur(r),qr(jl(r))),!1);if(n)return!0;var c,l,u=uv(e,function(e){var n,t=ri(vr(e));return n=t,(Kl(r,function(e){return!!(16&Dy.getDeclarationModifierFlagsFromSymbol(e))&&!Fa(n,jl(e))})?void 0:n)?t:void 0});if(!u){var d=void 0;if(32&o||(c=e,!(d=(l=Dy.getThisContainer(c,!1))&&Dy.isFunctionLike(l)?Dy.getThisParameter(l):void 0))||!d.type)return gt(s,Dy.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ur(r),qr(jl(r)||t)),!1;var p=Fc(d.type);u=65536&p.flags?Yi(p):p}return!!(32&o)||(65536&t.flags&&(t=t.isThisType?Yi(t):eo(t)),!(!t||!Fa(t,u))||(gt(s,Dy.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1,Ur(r),qr(u)),!1))}function sm(e){return!!Kl(e,function(e){return!(8192&e.flags)})}function cm(e,n,t,r){return lm(__(e),e,n,t,r)}function lm(e,n,t,r,a){if(2&e.flags)return gt(n,Dy.Diagnostics.Object_is_of_type_unknown),J;var i=24576&(k?du(e):e.flags);if(i){gt(n,8192&i?16384&i?a||Dy.Diagnostics.Object_is_possibly_null_or_undefined:r||Dy.Diagnostics.Object_is_possibly_undefined:t||Dy.Diagnostics.Object_is_possibly_null);var o=gu(e);return 57344&o.flags?J:o}return e}function um(e){return pm(e,e.expression,e.name)}function dm(e){return pm(e,e.left,e.right)}function pm(e,n,t){var r,a=cm(n),i=kt(n).resolvedSymbol,o=so(xu(a));if(sa(o)||o===le)return Dy.isIdentifier(n)&&i&&Ud(i,e),o;var s=Dy.getAssignmentTargetKind(e),c=po(o,t.escapedText);if(!Dy.isIdentifier(n)||!i||c&&Iv(c)||Ud(i,e),c){if(function(e,n,t){var r,a=e.valueDeclaration;if(a){var i,o=Dy.idText(t);i=n,!Dy.findAncestor(i,function(e){switch(e.kind){case 152:return!0;case 273:return!1;default:return!Dy.isExpressionNode(e)&&"quit"}})||Mt(a,t)||function(e){if(!(32&e.parent.flags))return!1;for(var n=wa(e.parent);;){if(!(n=n.symbol&&mm(n)))return!1;var t=po(n,e.escapedName);if(t&&t.valueDeclaration)return!0}}(e)?238!==a.kind||162===n.parent.kind||4194304&a.flags||Mt(a,t)||(r=gt(t,Dy.Diagnostics.Class_0_used_before_its_declaration,o)):r=gt(t,Dy.Diagnostics.Property_0_is_used_before_its_initialization,o),r&&_t(r,Dy.createDiagnosticForNode(a,Dy.Diagnostics._0_is_declared_here,o))}}(c,e,t),bm(c,e,99===n.kind),kt(e).resolvedSymbol=c,om(e,97===n.kind,o,c),s&&(Uf(e,c)||Wf(e)))return gt(t,Dy.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Dy.idText(t)),J;r=Hd(wa(c),e)}else{var l=vo(o,0);if(!l||!l.type)return cc(a)?W:(t.escapedText&&!Gt(e)&&function(e,n){var t,r;if(262144&n.flags&&!(32764&n.flags))for(var a=0,i=n.types;a<i.length;a++){var o=i[a];if(!po(o,e.escapedText)){t=Dy.chainDiagnosticMessages(t,Dy.Diagnostics.Property_0_does_not_exist_on_type_1,Dy.declarationNameToString(e),qr(o));break}}if(fm(e.escapedText,n))t=Dy.chainDiagnosticMessages(t,Dy.Diagnostics.Property_0_is_a_static_member_of_type_1,Dy.declarationNameToString(e),qr(n));else{var s=F_(n);if(s&&po(s,e.escapedText))t=Dy.chainDiagnosticMessages(t,Dy.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_forget_to_use_await,Dy.declarationNameToString(e),qr(n));else{var c=_m(e,n);if(void 0!==c){var l=Dy.symbolName(c);t=Dy.chainDiagnosticMessages(t,Dy.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Dy.declarationNameToString(e),qr(n),l),r=c.valueDeclaration&&Dy.createDiagnosticForNode(c.valueDeclaration,Dy.Diagnostics._0_is_declared_here,l)}else t=Dy.chainDiagnosticMessages(t,Dy.Diagnostics.Property_0_does_not_exist_on_type_1,Dy.declarationNameToString(e),qr(n))}}var u=Dy.createDiagnosticForNodeFromMessageChain(e,t);r&&_t(u,r),Gn.add(u)}(t,65536&a.flags&&a.isThisType?o:a),J);l.isReadonly&&(Dy.isAssignmentTarget(e)||Dy.isDeleteTarget(e))&&gt(e,Dy.Diagnostics.Index_signature_in_type_0_only_permits_reading,qr(o)),r=l.type}if(187!==e.kind||1===s||c&&!(98311&c.flags)&&!(8192&c.flags&&262144&r.flags))return r;var u=!1;if(k&&D&&99===n.kind){var d=c&&c.valueDeclaration;if(d&&Gg(d)){var p=Gd(e);155===p.kind&&p.parent===d.parent&&(u=!0)}}else k&&c&&c.valueDeclaration&&Dy.isPropertyAccessExpression(c.valueDeclaration)&&Dy.getAssignmentDeclarationPropertyAccessKind(c.valueDeclaration)&&Gd(e)===Gd(c.valueDeclaration)&&(u=!0);var m=Fd(e,r,u?_u(r):r);return u&&!(8192&du(r))&&8192&du(m)?(gt(t,Dy.Diagnostics.Property_0_is_used_before_being_assigned,Ur(c)),r):s?ru(m):m}function mm(e){var n=Ja(e);if(0!==n.length)return tc(n)}function fm(e,n){var t=n.symbol&&po(wa(n.symbol),e);return void 0!==t&&t.valueDeclaration&&Dy.hasModifier(t.valueDeclaration,32)}function _m(e,n){return hm(Dy.isString(e)?e:Dy.idText(e),Ji(n),67220415)}function gm(e,n){var t=_m(e,n);return t&&Dy.symbolName(t)}function vm(e,r,n){return Dy.Debug.assert(void 0!==r,"outername should always be defined"),wt(e,r,n,void 0,r,!1,!1,function(e,n,t){return Dy.Debug.assertEqual(r,n,"name should equal outerName"),It(e,n,t)||hm(Dy.unescapeLeadingUnderscores(n),Dy.arrayFrom(e.values()),t)})}function ym(e,n){return n.exports&&hm(Dy.idText(e),ur(n),2623475)}function hm(e,n,t){return Dy.getSpellingSuggestion(e,n,function(e){var n=Dy.symbolName(e);return!Dy.startsWith(n,'"')&&e.flags&t?n:void 0})}function bm(e,n,t){if(e&&106500&e.flags&&e.valueDeclaration&&Dy.hasModifier(e.valueDeclaration,8)&&(!n||!Dy.isWriteOnlyAccess(n)||65536&e.flags&&!(32768&e.flags))){if(t){var r=Dy.findAncestor(n,Dy.isFunctionLikeDeclaration);if(r&&r.symbol===e)return}(1&Dy.getCheckFlags(e)?Lt(e).target:e).isReferenced=67108863}}function Em(n,t,r,e){if(e===J||sa(e))return!0;var a=po(e,r);return a?om(n,t,e,a):Dy.isInJSFile(n)&&0!=(262144&e.flags)&&e.types.some(function(e){return Em(n,t,r,e)})}function Tm(e){var n=e.initializer;if(236===n.kind){var t=n.declarations[0];if(t&&!Dy.isBindingPattern(t.name))return vr(t)}else if(71===n.kind)return Xu(n)}function Sm(e){var n=cm(e.expression),t=e.argumentExpression;if(!t){var r,a=Dy.getSourceFileOfNode(e);return 190===e.parent.kind&&e.parent.expression===e?Ty(a,r=Dy.skipTrivia(a.text,e.expression.end),e.end-r,Dy.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead):Ty(a,r=e.end-"]".length,e.end-r,Dy.Diagnostics.Expression_expected),J}var i=__(t);if(n===J||n===le)return n;if(Yf(n)&&9!==t.kind)return gt(t,Dy.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),J;if(su(n)&&!n.target.hasRestElement&&Dy.isNumericLiteral(t)){var o=+t.text,s=Dy.length(n.target.typeParameters);s<=o&&gt(t,Dy.Diagnostics.Index_0_is_out_of_bounds_in_tuple_of_length_1,o,s)}return N_(mc(n,function(e){var n,t=Dy.skipParentheses(e);if(71===t.kind){var r=Xu(t);if(3&r.flags)for(var a=e,i=e.parent;i;){if(224===i.kind&&a===i.statement&&Tm(i)===r&&yo(n=m_(i.expression),1)&&!yo(n,0))return!0;i=(a=i).parent}}return!1}(t)?ne:i,e),e)}function xm(e,n,t){if(n===J)return!1;if(!Dy.isWellKnownSymbolSyntactically(e))return!1;if(0==(3072&n.flags))return t&&gt(e,Dy.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,Dy.getTextOfNode(e)),!1;var r=e.expression,a=Xu(r);if(!a)return!1;var i=xs(!0);return!(!i||a!==i&&(t&&gt(r,Dy.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),1))}function Cm(e){return Dy.isCallOrNewExpression(e)}function Dm(e){return Cm(e)&&Dy.forEach(e.typeArguments,$g),191===e.kind?__(e.template):150!==e.kind&&Dy.forEach(e.arguments,function(e){__(e)}),on}function Am(e){return Dm(e),sn}function Lm(e){return!!e&&(206===e.kind||213===e.kind&&e.isSpread)}function km(e){return Dy.findIndex(e,Lm)}function Nm(e,n,t,r){if(void 0===r&&(r=!1),Dy.isJsxOpeningLikeElement(e))return!0;var a,i=!1;if(191===e.kind)if(a=n.length,204===e.template.kind){var o=Dy.last(e.template.templateSpans);i=Dy.nodeIsMissing(o.literal)||!!o.literal.isUnterminated}else{var s=e.template;Dy.Debug.assert(13===s.kind),i=!!s.isUnterminated}else if(150===e.kind)a=jm(e,t);else{if(!e.arguments)return Dy.Debug.assert(190===e.kind),0===Cf(t);a=r?n.length+1:n.length,i=e.arguments.end===e.end;var c=km(n);if(0<=c)return c>=Cf(t)&&(Df(t)||c<xf(t))}if(!Df(t)&&a>xf(t))return!1;var l=a>=Cf(t);return i||l}function Im(e,n){var t=Dy.length(e.typeParameters),r=Lo(e.typeParameters);return!n||n.length>=r&&n.length<=t}function Mm(e){if(131072&e.flags){var n=Ui(e);if(1===n.callSignatures.length&&0===n.constructSignatures.length&&0===n.properties.length&&!n.stringIndexInfo&&!n.numberIndexInfo)return n.callSignatures[0]}}function Om(e,n,t,r){var a=ku(e.typeParameters,e,0,r);return Lu(t?Jc(n,t):n,e,function(e,n){Vu(a.inferences,e,n)}),t||Vu(a.inferences,Fo(n),Fo(e),8),Bo(e,zu(a),Dy.isInJSFile(n.declaration))}function wm(e,n,t){var r=Ef(e,0),a=i_(n.attributes,r,x);Vu(t.inferences,a,r);var i=Ef(e,0),o=i_(n.attributes,i,t);return Vu(t.inferences,o,i),zu(t)}function Pm(e,n,t,r,a){for(var i=0,o=a.inferences;i<o.length;i++){var s=o[i];s.isFixed||(s.inferredType=void 0)}if(150!==e.kind){var c=vp(e);if(c){var l=tl(c,(m=yp(e))&&m.typeParameters?ku(m.typeParameters,m.signature,1|m.flags,m.compareTypes,m.inferences):m),u=Mm(l),d=u&&u.typeParameters?zo(Ko(u,u.typeParameters)):l,p=Fo(n);Vu(a.inferences,d,p,8)}}var m,f=wo(n);if(f){var _=Vm(e),g=_?__(_):se;Vu(a.inferences,g,f)}for(var v=Lf(n),y=v?Math.min(xf(n)-1,t.length):t.length,h=0;h<y;h++){var b=t[h];if(208!==b.kind){var E=Ef(n,h),T=i_(b,E,r&&void 0!==r[h]?x:a);Vu(a.inferences,T,E)}}if(v){var S=Rm(t,y,t.length,v,a);Vu(a.inferences,S,v)}return zu(a)}function Rm(e,n,t,r,a){if(t-1<=n){var i=e[t-1];if(Lm(i))return 213===i.kind?Bs(i.type):Ed(o=i_(i.expression,r,a),function(e){return!(15794177&e.flags||Jl(e)||su(e))})?Bs(yo(o,1)||J):o}for(var o,s=yo(r,1)||W,c=zf(s,1081340),l=[],u=-1,d=n;d<t;d++){var p=i_(e[d],s,a);u<0&&Lm(e[d])&&(u=d-n),l.push(c?Oc(p):au(p))}return u<0?Hs(l):Hs(Dy.append(l.slice(0,u),Qs(l.slice(u))),u,!0)}function Fm(e,n,t,r){for(var a,i=Dy.isInJSFile(e.declaration),o=e.typeParameters,s=ko(Dy.map(n,Fc),o,Lo(o),i),c=0;c<n.length;c++){Dy.Debug.assert(void 0!==o[c],"Should not call checkTypeArguments with too many type arguments");var l=Yi(o[c]);if(l){var u=t&&r?function(){return Dy.chainDiagnosticMessages(void 0,Dy.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,d=r||Dy.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=jc(o,s));var p=s[c];if(!yl(p,Ei(tl(l,a),p),t?n[c]:void 0,d,u))return}}return s}function Gm(e,n,t,r,a,i){if(Dy.isJsxOpeningLikeElement(e))return function(e,n,t){if(e.attributes.end===e.end)return!0;for(var r=Dy.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,a=Ef(n,0),i=i_(e.attributes,a,void 0),o=0,s=Ji(i);o<s.length;o++){var c=s[o];if(!po(a,c.escapedName)&&Rp(c.escapedName))return!1}return Ol(i,a,t,void 0,r)}(e,t,r);var o=wo(t);if(o&&o!==se&&190!==e.kind){var s=Vm(e);if(!Ol(s?__(s):se,o,r,i?s||e:void 0,Dy.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1))return!1}for(var c=Dy.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,l=Lf(t),u=l?Math.min(xf(t)-1,n.length):n.length,d=0;d<u;d++){var p=n[d];if(208!==p.kind){var m=Ef(t,d),f=i_(p,m,a&&a[d]?x:void 0);if(!bl(a?hu(f):f,m,r,i?p:void 0,p,c))return!1}}return!l||Ol(Rm(n,u,n.length,l,void 0),l,r,i?u<n.length?n[u]:e:void 0,c)}function Vm(e){if(189===e.kind){var n=Dy.skipOuterExpressions(e.expression);if(187===n.kind||188===n.kind)return n.expression}}function Bm(e,n,t){var r=Dy.createNode(213,e.pos,e.end);return r.parent=e,r.type=n,r.isSpread=t||!1,r}function Km(e){if(191===e.kind){var n=e.template,t=[Bm(n,Qe||(Qe=Ss("TemplateStringsArray",0,!0))||fe)];return 204===n.kind&&Dy.forEach(n.templateSpans,function(e){t.push(e.expression)}),t}if(150===e.kind)return function(e){var n,t,r=e.parent,a=e.expression;switch(r.kind){case 238:case 207:return[Bm(a,wa(vr(r)))];case 149:var i=r.parent;return[Bm(a,155===r.parent.kind?wa(vr(i)):J),Bm(a,W),Bm(a,ne)];case 152:case 154:case 156:case 157:var o=152!==r.kind&&0!==P;return[Bm(a,(n=r,t=vr(n.parent),Dy.hasModifier(n,32)?wa(t):ri(t))),Bm(a,function(e){var n=e.name;switch(n.kind){case 71:return wc(Dy.idText(n));case 8:case 9:return wc(n.text);case 147:var t=Mp(n);return Jf(t,3072)?t:ee;default:return Dy.Debug.fail("Unsupported property name."),J}}(r)),Bm(a,o?Rs(_v(r)):W)]}return Dy.Debug.fail()}(e);if(Dy.isJsxOpeningLikeElement(e))return 0<e.attributes.properties.length?[e.attributes]:Dy.emptyArray;var r=e.arguments||Dy.emptyArray,a=r.length;if(a&&Lm(r[a-1])&&km(r)===a-1){var i=r[a-1],o=o_(i.expression);if(su(o)){var s=o.typeArguments||Dy.emptyArray,c=o.target.hasRestElement?s.length-1:-1,l=Dy.map(s,function(e,n){return Bm(i,e,n===c)});return Dy.concatenate(r.slice(0,a-1),l)}}return r}function jm(e,n){switch(e.parent.kind){case 238:case 207:return 1;case 152:return 2;case 154:case 156:case 157:return 0===P||n.parameters.length<=2?2:3;case 149:return 3;default:return Dy.Debug.fail()}}function Hm(e,n,t){for(var r,a=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,c=t.length,l=0,u=n;l<u.length;l++){var d=u[l],p=Cf(d),m=xf(d);p<c&&o<p&&(o=p),c<m&&m<s&&(s=m),p<a&&(a=p,r=d),i=Math.max(i,m)}var f,_=Dy.some(n,Df),g=_?a:a<i?a+"-"+i:a,v=-1<km(t);if(c<=i&&v&&c--,r&&Cf(r)>c&&r.declaration){var y=r.declaration.parameters[r.thisParameter?c+1:c];y&&(f=Dy.createDiagnosticForNode(y,Dy.isBindingPattern(y.name)?Dy.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:Dy.Diagnostics.An_argument_for_0_was_not_provided,y.name?Dy.isBindingPattern(y.name)?void 0:Dy.idText(Wg(y.name)):c))}if(_||v){var h=_&&v?Dy.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:_?Dy.Diagnostics.Expected_at_least_0_arguments_but_got_1:Dy.Diagnostics.Expected_0_arguments_but_got_1_or_more,b=Dy.createDiagnosticForNode(e,h,g,c);return f?_t(b,f):b}if(a<c&&c<i)return Dy.createDiagnosticForNode(e,Dy.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c,o,s);var E=Dy.createDiagnosticForNode(e,Dy.Diagnostics.Expected_0_arguments_but_got_1,g,c);return f?_t(E,f):E}function Um(e,n,t){for(var r=1/0,a=-1/0,i=0,o=n;i<o.length;i++){var s=o[i];r=Math.min(r,Lo(s.typeParameters)),a=Math.max(a,Dy.length(s.typeParameters))}var c=r===a?r:r+"-"+a;return Dy.createDiagnosticForNodeArray(Dy.getSourceFileOfNode(e),t,Dy.Diagnostics.Expected_0_type_arguments_but_got_1,c,t.length)}function Wm(c,e,n,t,r){var l,a=191===c.kind,i=150===c.kind,o=Dy.isJsxOpeningLikeElement(c);i||(l=c.typeArguments,(a||o||97!==c.expression.kind)&&Dy.forEach(l,$g));var s=n||[];if(function(e,n){var t,r,a,i,o=0,s=-1;Dy.Debug.assert(!n.length);for(var c=0,l=e;c<l.length;c++){var u=l[c],d=u.declaration&&vr(u.declaration),p=u.declaration&&u.declaration.parent;r&&d!==r?(a=o=n.length,t=p):t&&p===t?a+=1:(t=p,a=o),r=d,u.hasLiteralTypes?(i=++s,o++):i=a,n.splice(i,0,u)}}(e,s),!s.length)return Gn.add(Dy.createDiagnosticForNode(c,Dy.Diagnostics.Call_target_does_not_contain_any_signatures)),Am(c);var u,d,p,m,f,_,g,v,y=Km(c),h=1===s.length&&!s[0].typeParameters,b=i||h?void 0:qm(y),E=t&&189===c.kind&&c.arguments.hasTrailingComma;if(1<s.length&&(m=S(s,ot,E)),m||(m=S(s,st,E)),m)return m;if(u){if(o)return u;Gm(c,y,u,st,void 0,!0)}else if(d)Gn.add(Hm(c,[d],y));else if(p)Fm(p,c.typeArguments,!0,r);else{var T=Dy.filter(e,function(e){return Im(e,l)});0===T.length?Gn.add(Um(c,e,l)):i?r&&Gn.add(Dy.createDiagnosticForNode(c,r)):Gn.add(Hm(c,T,y))}return L||!y?Am(c):(f=c,_=s,g=y,v=!!n,Dy.Debug.assert(0<_.length),v||1===_.length||_.some(function(e){return!!e.typeParameters})?function(e,n,t){var r=function(e,n){for(var t=-1,r=-1,a=0;a<e.length;a++){var i=e[a],o=xf(i);if(Df(i)||n<=o)return a;r<o&&(r=o,t=a)}return t}(n,void 0===A?t.length:A),a=n[r],i=a.typeParameters;if(!i)return a;var o,s,c,l,u,d=Cm(e)?e.typeArguments:void 0,p=d?jo(a,function(e,n,t){for(var r=e.map(_v);r.length>n.length;)r.pop();for(;r.length<n.length;)r.push(Yi(n[r.length])||qu(t));return r}(d,i,Dy.isInJSFile(e))):(o=e,c=t,l=ku(i,s=a,Dy.isInJSFile(o)?2:0),u=Pm(o,s,c,qm(c),l),jo(s,u));return n[r]=p}(f,_,g):function(n){var e,t=Dy.mapDefined(n,function(e){return e.thisParameter});t.length&&(e=Jm(t,t.map(hf)));for(var r=Dy.minAndMax(n,zm),a=r.min,i=r.max,o=[],s=function(r){var e=Dy.mapDefined(n,function(e){var n=e.parameters,t=e.hasRestParameter;return t?r<n.length-1?n[r]:Dy.last(n):r<n.length?n[r]:void 0});Dy.Debug.assert(0!==e.length),o.push(Jm(e,Dy.mapDefined(n,function(e){return Tf(e,r)})))},c=0;c<i;c++)s(c);var l=Dy.mapDefined(n,function(e){return e.hasRestParameter?Dy.last(e.parameters):void 0}),u=0!==l.length;if(u){var d=Bs(Qs(Dy.mapDefined(n,Vo),2));o.push(Xm(l,d))}return Si(n[0].declaration,void 0,e,o,tc(n.map(Fo)),void 0,a,u,n.some(function(e){return e.hasLiteralTypes}))}(_));function S(e,n,t){if(void 0===t&&(t=!1),p=d=u=void 0,h){var r=e[0];if(l||!Nm(c,y,r,t))return;return Gm(c,y,r,n,b,!1)?r:void(u=r)}for(var a=0;a<e.length;a++)if(Im(r=e[a],l)&&Nm(c,y,r,t)){var i=void 0,o=void 0;if(r.typeParameters){var s=void 0;if(l){if(!(s=Fm(r,l,!1))){p=r;continue}}else o=ku(r.typeParameters,r,Dy.isInJSFile(c)?2:0),s=Pm(c,r,y,b,o);if(i=Bo(r,s,Dy.isInJSFile(r.declaration)),Lf(r)&&!Nm(c,y,i,t)){d=i;continue}}else i=r;if(Gm(c,y,i,n,b,!1)){if(!b||(b=void 0,o&&(i=Bo(r,s=Pm(c,r,y,b,o),Dy.isInJSFile(r.declaration))),Gm(c,y,i,n,b,!1)))return e[a]=i;u=i;continue}u=i}}}function qm(e){for(var n,t=0;t<e.length;t++)il(e[t])&&(n||(n=new Array(e.length)),n[t]=!0);return n}function zm(e){var n=e.parameters.length;return e.hasRestParameter?n-1:n}function Jm(e,n){return Xm(e,Qs(n,2))}function Xm(e,n){return yu(Dy.first(e),n)}function Ym(e,n,t,r){return sa(e)||sa(n)&&65536&e.flags||!t&&!r&&!(294912&n.flags)&&fl(e,Ae)}function Qm(e,n,t){if(e.arguments&&P<1){var r=km(e.arguments);0<=r&&gt(e.arguments[r],Dy.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=cm(e.expression);if(a===le)return ln;if((a=so(a))===J)return Am(e);if(sa(a))return e.typeArguments&&gt(e,Dy.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Dm(e);var i=fo(a,1);if(i.length){if(!function(e,n){if(!n||!n.declaration)return!0;var t=n.declaration,r=Dy.getSelectedModifierFlags(t,24);if(!r)return!0;var a=Dy.getClassLikeDeclarationOfSymbol(t.parent.symbol),i=ri(t.parent.symbol);if(dv(e,a))return!0;var o=Dy.getContainingClass(e);if(o&&16&r){var s=_v(o);if(function e(n,t){var r=Ja(t);if(!Dy.length(r))return!1;var a=r[0];if(524288&a.flags){for(var i=a.types,o=Dy.countWhere(i,ja),s=0,c=0,l=a.types;c<l.length;c++){var u=l[c];if(s++,(0===o||o===i.length&&0===s||!ja(u))&&3&Dy.getObjectFlags(u)){if(u.symbol===n)return!0;if(e(n,u))return!0}}return!1}return a.symbol===n||e(n,a)}(t.parent.symbol,s))return!0}return 8&r&&gt(e,Dy.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,qr(i)),16&r&&gt(e,Dy.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,qr(i)),!1}(e,i[0]))return Am(e);var o=a.symbol&&Dy.getClassLikeDeclarationOfSymbol(a.symbol);return o&&Dy.hasModifier(o,128)?(gt(e,Dy.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Am(e)):Wm(e,i,n,t)}var s=fo(a,0);if(s.length){var c=Wm(e,s,n,t);return F||(c.declaration&&!of(c.declaration)&&Fo(c)!==se&&gt(e,Dy.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),wo(c)===se&&gt(e,Dy.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),c}return Zm(e,a,1),Am(e)}function Zm(e,n,t,r){var a=gt(e,0===t?Dy.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:Dy.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature,qr(n));$m(n,t,r?_t(a,r):a)}function $m(e,n,t){if(e.symbol){var r=Lt(e.symbol).originatingImport;if(r&&!Dy.isImportCall(r)){var a=fo(wa(Lt(e.symbol).target),n);if(!a||!a.length)return;_t(t,Dy.createDiagnosticForNode(r,Dy.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 ef(e){switch(e.parent.kind){case 238:case 207:return Dy.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 149:return Dy.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 152:return Dy.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 154:case 156:case 157:return Dy.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return Dy.Debug.fail()}}function nf(e,n,t){var r=__(e.expression),a=so(r);if(a===J)return Am(e);var i,o,s=fo(a,0),c=fo(a,1);if(Ym(r,a,s.length,c.length))return Dm(e);if(i=e,(o=s).length&&Dy.every(o,function(e){return 0===e.minArgumentCount&&!e.hasRestParameter&&e.parameters.length<jm(i,e)})){var l=Dy.getTextOfNode(e.expression,!1);return gt(e,Dy.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,l),Am(e)}var u=ef(e);if(s.length)return Wm(e,s,n,t,u);var d=Dy.chainDiagnosticMessages(void 0,Dy.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,qr(a));d=Dy.chainDiagnosticMessages(d,u);var p=Dy.createDiagnosticForNodeFromMessageChain(e,d);return Gn.add(p),$m(a,0,p),Am(e)}function tf(e,n,t,r){Dy.Debug.assert(!(262144&n.flags));var a=n&&fo(n,0);if(a&&0<a.length)return Wm(e,a,t,r)}function rf(r,a,i){switch(r.kind){case 189:return function(e,n,t){if(97===e.expression.kind){var r=ep(e.expression);if(sa(r)){for(var a=0,i=e.arguments;a<i.length;a++)__(i[a]);return on}if(r!==J){var o=Dy.getEffectiveBaseTypeNode(Dy.getContainingClass(e));if(o)return Wm(e,qa(r,o.typeArguments,o),n,t)}return Dm(e)}var s=cm(e.expression,Dy.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null,Dy.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined,Dy.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined);if(s===le)return ln;var c=so(s);if(c===J)return Am(e);var l=fo(c,0),u=fo(c,1);if(Ym(s,c,l.length,u.length))return s!==J&&e.typeArguments&&gt(e,Dy.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Dm(e);if(l.length)return l.some(function(e){return Dy.isInJSFile(e.declaration)&&!!Dy.getJSDocClassTag(e.declaration)})?(gt(e,Dy.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,qr(s)),Am(e)):Wm(e,l,n,t);if(u.length)gt(e,Dy.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,qr(s));else{var d=void 0;if(1===e.arguments.length&&s_(Dy.first(e.arguments))){var p=Dy.getSourceFileOfNode(e).text;Dy.isLineBreak(p.charCodeAt(Dy.skipTrivia(p,e.expression.end,!0)-1))&&(d=Dy.createDiagnosticForNode(e.expression,Dy.Diagnostics.It_is_highly_likely_that_you_are_missing_a_semicolon))}Zm(e,c,0,d)}return Am(e)}(r,a,i);case 190:return Qm(r,a,i);case 191:return function(e,n,t){var r=__(e.tag),a=so(r);if(a===J)return Am(e);var i=fo(a,0),o=fo(a,1);return Ym(r,a,i.length,o.length)?Dm(e):i.length?Wm(e,i,n,t):(Zm(e,a,0),Am(e))}(r,a,i);case 150:return nf(r,a,i);case 260:case 259:return Ed(__(r.tagName),function(e){var n=tf(r,e,a,i);if(n&&n!==sn)return n;var t=Xp(r,e);return a&&Dy.length(t)&&a.push.apply(a,t),Dy.length(t)?t[0]:sn})||sn}throw Dy.Debug.assertNever(r,"Branch in 'resolveSignature' should be unreachable.")}function af(e,n,t){void 0===t&&(t=!1);var r=kt(e),a=r.resolvedSignature;if(a&&a!==cn&&!n)return a;r.resolvedSignature=cn;var i=rf(e,n,t);return r.resolvedSignature=_n===gn?i:a,i}function of(e){if(!e||!Dy.isInJSFile(e))return!1;var n=Dy.isFunctionDeclaration(e)||Dy.isFunctionExpression(e)?e:Dy.isVariableDeclaration(e)&&e.initializer&&Dy.isFunctionExpression(e.initializer)?e.initializer:void 0;if(n){if(Dy.getJSDocClassTag(e))return!0;var t=vr(n);return!!t&&void 0!==t.members}return!1}function sf(e){if(131072&e.flags){var n=Ui(e);return 1===n.callSignatures.length&&of(n.callSignatures[0].declaration)}return!1}function cf(e){var n;of(e.valueDeclaration)&&(n=uf(e));var t=lf(e),r=wa(e);return r.symbol&&!df(r)&&of(r.symbol.valueDeclaration)&&(n=uf(r.symbol)),t&&n?tc([n,t]):t||n}function lf(e){var n=e.valueDeclaration,t=n&&n.parent&&(Dy.isFunctionDeclaration(n)&&vr(n)||Dy.isBinaryExpression(n.parent)&&vr(n.parent.left)||Dy.isVariableDeclaration(n.parent)&&vr(n.parent)),r=t&&t.exports&&t.exports.get("prototype"),a=r&&r.valueDeclaration&&function(e){if(!e.parent)return!1;for(var n=e.parent;n&&187===n.kind;)n=n.parent;if(n&&Dy.isBinaryExpression(n)&&Dy.isPrototypeAccess(n.left)&&58===n.operatorToken.kind){var t=Dy.getInitializerOfBinaryExpression(n);return Dy.isObjectLiteralExpression(t)&&t}}(r.valueDeclaration);return a?__(a):void 0}function uf(e){var n=Lt(e);return n.inferredClassType||(n.inferredClassType=Ir(e,hi(e)||I,Dy.emptyArray,Dy.emptyArray,void 0,void 0)),n.inferredClassType}function df(e){return e.symbol&&16&Dy.getObjectFlags(e)&&Lt(e.symbol).inferredClassType===e}function pf(e){iy(e,e.typeArguments)||oy(e.arguments);var n=af(e);if(97===e.expression.kind)return se;if(190===e.kind){var t=n.declaration;if(t&&155!==t.kind&&159!==t.kind&&164!==t.kind&&!Dy.isJSDocConstructSignature(t)){var r=__(e.expression).symbol;r||71!==e.expression.kind||(r=Xu(e.expression));var a=r&&cf(r);return a?n.target?tl(a,n.mapper):a:(F&&gt(e,Dy.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),W)}}if(Dy.isInJSFile(e)&&gf(e))return function(e){var n=rr(e,e);if(n){var t=sr(n);if(t)return wa(t)}return W}(e.arguments[0]);var i,o=Fo(n);if(3072&o.flags&&mf(e))return Pc(Dy.walkUpParenthesizedExpressions(e.parent));if(Dy.isInJSFile(e)){var s=Dy.getDeclarationOfExpando(e);if(s){var c=vr(s);c&&Dy.hasEntries(c.exports)&&((i=Ir(c,c.exports,Dy.emptyArray,Dy.emptyArray,void 0,void 0)).objectFlags|=16384)}}return i?tc([o,i]):o}function mf(e){if(!Dy.isCallExpression(e))return!1;var n=e.expression;if(Dy.isPropertyAccessExpression(n)&&"for"===n.name.escapedText&&(n=n.expression),!Dy.isIdentifier(n)||"Symbol"!==n.escapedText)return!1;var t=xs(!1);return!!t&&t===Ot(n,"Symbol",67220415,void 0,void 0,!1)}function ff(e){if(oy(e.arguments)||function(e){if(C===Dy.ModuleKind.ES2015)return Sy(e,Dy.Diagnostics.Dynamic_import_is_only_supported_when_module_flag_is_commonjs_or_esNext);if(e.typeArguments)return Sy(e,Dy.Diagnostics.Dynamic_import_cannot_have_type_arguments);var n=e.arguments;1!==n.length?Sy(e,Dy.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):Dy.isSpreadElement(n[0])&&Sy(n[0],Dy.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return Of(e,W);for(var n=e.arguments[0],t=o_(n),r=1;r<e.arguments.length;++r)o_(e.arguments[r]);(8192&t.flags||16384&t.flags||!fl(t,ee))&&gt(n,Dy.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,qr(t));var a=rr(e,n);if(a){var i=cr(a,n,!0);if(i)return Of(e,_f(wa(i),i,a))}return Of(e,W)}function _f(e,n,t){if(f&&e&&e!==J){var r=e;if(!r.syntheticType)if(Ut(Dy.find(t.declarations,Dy.isSourceFile),t,!1)){var a=Dy.createSymbolTable(),i=yt(2097152,"default");i.target=Xt(n),a.set("default",i);var o=yt(2048,"__type"),s=Ir(o,a,Dy.emptyArray,Dy.emptyArray,void 0,void 0);o.type=s,r.syntheticType=Pp(e)?Ac(e,s,o,0,0):s}else r.syntheticType=e;return r.syntheticType}return e}function gf(e){if(!Dy.isRequireCall(e,!0))return!1;if(!Dy.isIdentifier(e.expression))return Dy.Debug.fail();var n=Ot(e.expression,e.expression.escapedText,67220415,void 0,void 0,!0);if(n===O)return!0;if(2097152&n.flags)return!1;var t=16&n.flags?237:3&n.flags?235:0;if(0===t)return!1;var r=Dy.getDeclarationOfKind(n,t);return!!r&&!!(4194304&r.flags)}function vf(e,n,t,r){var a=hu(ru(__(t,r)));$g(n);var i=Fc(n);return L&&i!==J&&(gl(i,xu(a))||Cl(a,i,e,Dy.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)),i}function yf(e){return function(e){var n=e.name.escapedText;switch(e.keywordToken){case 94:if("target"!==n)return Sy(e.name,Dy.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,e.name.escapedText,Dy.tokenToString(e.keywordToken),"target");break;case 91:"meta"!==n&&Sy(e.name,Dy.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,e.name.escapedText,Dy.tokenToString(e.keywordToken),"meta")}}(e),94===e.keywordToken?function(e){var n=Dy.getNewTargetContainer(e);if(n){if(155===n.kind){var t=vr(n.parent);return wa(t)}var t=vr(n);return wa(t)}return gt(e,Dy.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),J}(e):91===e.keywordToken?function(e){(P<6||C<Dy.ModuleKind.ESNext)&&gt(e,Dy.Diagnostics.The_import_meta_meta_property_is_only_allowed_using_ESNext_for_the_target_and_module_compiler_options);var n=Dy.getSourceFileOfNode(e);return Dy.Debug.assert(!!(1048576&n.flags),"Containing file is missing import meta node flag."),Dy.Debug.assert(!!n.externalModuleIndicator,"Containing file should be a module."),"meta"===e.name.escapedText?Ze||(Ze=Ss("ImportMeta",0,!0))||fe:J}(e):Dy.Debug.assertNever(e.keywordToken)}function hf(e){var n=wa(e);if(k){var t=e.valueDeclaration;if(t&&Dy.hasInitializer(t))return _u(n)}return n}function bf(e,n){var t=e.parameters.length-(e.hasRestParameter?1:0);if(n<t)return e.parameters[n].escapedName;var r=e.parameters[t]||H,a=wa(r);if(su(a)){var i=a.target.associatedNames,o=n-t;return i?i[o]:r.escapedName+"_"+o}return r.escapedName}function Ef(e,n){return Tf(e,n)||W}function Tf(e,n){var t=e.parameters.length-(e.hasRestParameter?1:0);if(n<t)return hf(e.parameters[n]);if(e.hasRestParameter){var r=wa(e.parameters[t]);return su(r)?n-t<lu(r)?r.typeArguments[n-t]:cu(r):yo(r,1)}}function Sf(e,n){var t=xf(e),r=Af(e);if(r&&n===t-1)return r;for(var a=r?Math.min(n,t-1):n,i=[],o=[],s=a;s<t;s++)i.push(Ef(e,s)),o.push(bf(e,s));var c=Cf(e);return Hs(i,c<a?0:c-a,!!r,o)}function xf(e){var n=e.parameters.length;if(e.hasRestParameter){var t=wa(e.parameters[n-1]);if(su(t))return n+(t.typeArguments||Dy.emptyArray).length-1}return n}function Cf(e){if(e.hasRestParameter){var n=wa(e.parameters[e.parameters.length-1]);if(su(n)){var t=n.target.minLength;if(0<t)return e.parameters.length-1+t}}return e.minArgumentCount}function Df(e){if(e.hasRestParameter){var n=wa(e.parameters[e.parameters.length-1]);return!su(n)||n.target.hasRestElement}return!1}function Af(e){if(e.hasRestParameter){var n=wa(e.parameters[e.parameters.length-1]);return su(n)?(t=cu(n))&&Bs(t):n}var t}function Lf(e){var n=Af(e);return!n||Jl(n)||sa(n)?void 0:n}function kf(e){return Nf(e,ce)}function Nf(e,n){return 0<e.parameters.length?Ef(e,0):n}function If(e,n){var t=Lt(e);if(!t.type){t.type=n;var r=e.valueDeclaration;71!==r.name.kind&&(t.type===fe&&(t.type=Ta(r.name)),function e(n){for(var t=0,r=n.elements;t<r.length;t++){var a=r[t];Dy.isOmittedExpression(a)||(71===a.name.kind?Lt(vr(a)).type=da(a):e(a.name))}}(r.name))}}function Mf(e){var n=Ds(!0);return n!==ge?ts(n,[e=V_(e)||fe]):fe}function Of(e,n){var t=Mf(n);return t===fe?(gt(e,Dy.isImportCall(e)?Dy.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:Dy.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),J):(As(!0)||gt(e,Dy.isImportCall(e)?Dy.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:Dy.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),t)}function wf(e,n){if(!e.body)return J;var t,r,a,i,o,s=Dy.getFunctionFlags(e);if(216!==e.body.kind)t=o_(e.body,n),2&s&&(t=G_(t,e,Dy.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member));else{var c=function(r,a){var i=Dy.getFunctionFlags(r),o=[],s=Gf(r),c=!1;if(Dy.forEachReturnStatement(r.body,function(e){var n=e.expression;if(n){var t=o_(n,a);2&i&&(t=G_(t,r,Dy.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)),32768&t.flags&&(c=!0),Dy.pushIfUnique(o,t)}else s=!0}),0!==o.length||s||!c&&!function(e){switch(e.kind){case 194:case 195:return!0;case 154:return 186===e.parent.kind;default:return!1}}(r))return!(k&&o.length&&s)||of(r)&&o.some(function(e){return e.symbol===r.symbol})||Dy.pushIfUnique(o,Y),o}(e,n);if(1&s){if(!(c=Dy.concatenate((r=e,a=n,i=[],o=0!=(2&Dy.getFunctionFlags(r)),Dy.forEachYieldExpression(r.body,function(e){Dy.pushIfUnique(i,Pf(e,o,a))}),i),c))||0===c.length){var l=2&s?Fs(W):Vs(W);return F&&gt(e.asteriskToken,Dy.Diagnostics.Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type,qr(l)),l}}else{if(!c)return 2&s?Of(e,ce):ce;if(0===c.length)return 2&s?Of(e,se):se}t=Qs(c,2)}var u=Sp(e);if(u||Au(e,t),nu(t)){var d=u?u===No(e)?t:Fo(u):void 0;if(d)switch(3&s){case 3:d=Ag(d,!0);break;case 1:d=Ag(d,!1);break;case 2:d=F_(d)}t=ou(t,d)}var p=xu(t);switch(3&s){case 3:return Fs(p);case 1:return Vs(p);case 2:return Mf(p);default:return p}}function Pf(e,n,t){var r=e.expression||e,a=e.expression?__(e.expression,t):Q,i=e.asteriskToken?Tg(a,r,!1,n):a;return n?V_(i,r,e.asteriskToken?Dy.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:Dy.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i}function Rf(e,n,t,r){var a=0;if(r){for(var i=n;i<t.length;i++)a|=rt.get(t[i])||8192;for(i=e;i<n;i++)a&=~(rt.get(t[i])||0);for(i=0;i<e;i++)a|=rt.get(t[i])||8192}else{for(i=e;i<n;i++)a|=tt.get(t[i])||64;for(i=0;i<e;i++)a&=~(tt.get(t[i])||0)}return a}function Ff(e){if(!e.possiblyExhaustive)return!1;if(197===e.expression.kind){var n=m_(e.expression.expression),t=Rf(0,0,hd(e),!0);return!!(32768&Td(eo(n)||n,function(e){return(id(e)&t)===t}).flags)}var r=m_(e.expression);if(!tu(r))return!1;var a,i,o=yd(e);return!(!o.length||Dy.some(o,eu))&&(a=Sd(r,Oc),i=o,262144&a.flags?!Dy.forEach(a.types,function(e){return!Dy.contains(i,e)}):Dy.contains(i,a))}function Gf(e){return!!(128&e.flags)&&!Dy.some(e.body.statements,function(e){return 230===e.kind&&Ff(e)})}function Vf(e,n){if(L&&(!n||!zf(n,4097))&&153!==e.kind&&!Dy.nodeIsMissing(e.body)&&216===e.body.kind&&Gf(e)){var t=256&e.flags;if(n&&32768&n.flags)gt(Dy.getEffectiveReturnTypeNode(e),Dy.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(n&&!t)gt(Dy.getEffectiveReturnTypeNode(e),Dy.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(n&&k&&!fl(Y,n))gt(Dy.getEffectiveReturnTypeNode(e),Dy.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(R.noImplicitReturns){if(!n){if(!t)return;if(kg(e,Fo(No(e))))return}gt(Dy.getEffectiveReturnTypeNode(e)||e,Dy.Diagnostics.Not_all_code_paths_return_a_value)}}}function Bf(e,n){if(Dy.Debug.assert(154!==e.kind||Dy.isObjectLiteralMethod(e)),1===n&&il(e)){if(Dy.getEffectiveReturnTypeNode(e)||!sl(e))return ve;var t=kt(e);if(t.contextFreeType)return t.contextFreeType;var r=wf(e,n),a=Si(void 0,void 0,void 0,Dy.emptyArray,r,void 0,0,!1,!1),i=Ir(e.symbol,I,[a],Dy.emptyArray,void 0,void 0);return i.flags|=536870912,t.contextFreeType=i}ay(e)||194!==e.kind||uy(e);var o=kt(e),s=wa(gr(e.symbol));if(sa(s))return s;if(!(1024&o.flags)){var c=Cp(e);if(!(1024&o.flags)){if(o.flags|=1024,c){var l=fo(s,0)[0];if(il(e)){var u=yp(e);2===n&&function(e,n,t){for(var r=e.parameters.length-(e.hasRestParameter?1:0),a=0;a<r;a++){var i=e.parameters[a].valueDeclaration;if(i.type){var o=Dy.getEffectiveTypeAnnotationNode(i);o&&Vu(t.inferences,Fc(o),Ef(n,a))}}}(l,c,u),function(e,n){e.typeParameters=n.typeParameters,n.thisParameter&&(!(a=e.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(e.thisParameter=yu(n.thisParameter,void 0)),If(e.thisParameter,wa(n.thisParameter)));for(var t=e.parameters.length-(e.hasRestParameter?1:0),r=0;r<t;r++){var a=e.parameters[r];Dy.getEffectiveTypeAnnotationNode(a.valueDeclaration)||If(a,Ef(n,r))}e.hasRestParameter&&(!ht(a=Dy.last(e.parameters))&&Dy.getEffectiveTypeAnnotationNode(a.valueDeclaration)||If(a,Sf(n,t)))}(l,u===x?c:Jc(c,u))}Go(e)||l.resolvedReturnType||(r=wf(e,n),l.resolvedReturnType||(l.resolvedReturnType=r))}h_(e),nv(e)}}return s}function Kf(e,n){var t=Go(e);return t&&2==(3&n)?V_(t)||J:t}function jf(e,n,t){return!!Jf(n,168)||(gt(e,t),!1)}function Hf(e){return!!(8&Dy.getCheckFlags(e)||4&e.flags&&64&Dy.getDeclarationModifierFlagsFromSymbol(e)||3&e.flags&&2&am(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags)}function Uf(e,n){if(Hf(n)){if(4&n.flags&&(187===e.kind||188===e.kind)&&99===e.expression.kind){var t=Dy.getContainingFunction(e);return!t||155!==t.kind||!n.valueDeclaration||!(t.parent===n.valueDeclaration.parent||t===n.valueDeclaration.parent)}return!0}return!1}function Wf(e){if(187===e.kind||188===e.kind){var n=Dy.skipParentheses(e.expression);if(71===n.kind){var t=kt(n).resolvedSymbol;if(2097152&t.flags){var r=Kt(t);return!!r&&249===r.kind}}}return!1}function qf(e,n){var t=Dy.skipOuterExpressions(e,3);return 71===t.kind||187===t.kind||188===t.kind||(gt(e,n),!1)}function zf(e,n){if(e.flags&n&-134217729||134217728&n&&Hi(e))return!0;if(786432&e.flags)for(var t=0,r=e.types;t<r.length;t++)if(zf(r[t],n))return!0;return!1}function Jf(e,n,t){return!!(e.flags&n)||!(t&&28675&e.flags)&&(!!(168&n)&&fl(e,ne)||!!(68&n)&&fl(e,ee)||!!(272&n)&&fl(e,ie)||!!(4096&n)&&fl(e,se)||!!(32768&n)&&fl(e,ce)||!!(16384&n)&&fl(e,Z)||!!(8192&n)&&fl(e,Y)||!!(1024&n)&&fl(e,oe)||!!(16777216&n)&&fl(e,de))}function Xf(e,n,t){return 262144&e.flags?Dy.every(e.types,function(e){return Xf(e,n,t)}):Jf(e,n,t)}function Yf(e){return!!(16&Dy.getObjectFlags(e))&&!!e.symbol&&Qf(e.symbol)}function Qf(e){return 0!=(128&e.flags)}function Zf(e,n,t,r){if(void 0===r&&(r=!1),273===n.kind||274===n.kind){var a=n.name;if(147===a.kind&&Mp(a),la(a))return;if(s=function(e,n,t,r){if(sa(e))return e;var a,i=Dy.getTextOfPropertyName(n);if(i){var o=po(e,i);o&&(bm(o,t,r),om(t,!1,e,o),a=wa(o)),a=a||(Ip(i)?yo(e,1):void 0)}return a||yo(e,0)}(e,a,n,r))return e_(274===n.kind?n:n.initializer,s);gt(a,Dy.Diagnostics.Type_0_has_no_property_1_and_no_string_index_signature,qr(e),Dy.declarationNameToString(a))}else{if(275===n.kind){P<6&&Qv(n,4);var i=[];if(t)for(var o=0;o<t.length-1;o++)i.push(t[o].name);var s=ua(e,i,e.symbol);return ny(t,Dy.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e_(n.expression,s)}gt(n,Dy.Diagnostics.Property_assignment_expected)}}function $f(e,n,t,r,a){var i=e.elements,o=i[t];if(208!==o.kind)if(206!==o.kind){var s=""+t;if(c=sa(n)?n:Zl(n)?$l(n,t):r)return e_(o,c,a);__(o),su(n)?gt(o,Dy.Diagnostics.Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2,qr(n),as(n),i.length):gt(o,Dy.Diagnostics.Type_0_has_no_property_1,qr(n),s)}else if(t<i.length-1)gt(o,Dy.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var c,l=o.expression;if(202!==l.kind||58!==l.operatorToken.kind)return ny(e.elements,Dy.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e_(l,c=su(n)?Lp((n.typeArguments||Dy.emptyArray).slice(t,as(n))):Bs(r),a);gt(l.operatorToken,Dy.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function e_(e,n,t,r){var a,i,o,s,c;if(274===e.kind){var l=e;l.objectAssignmentInitializer&&(!k||8192&du(__(l.objectAssignmentInitializer))||(n=od(n,131072)),r_(l.name,l.equalsToken,l.objectAssignmentInitializer,t)),a=e.name}else a=e;return 202===a.kind&&58===a.operatorToken.kind&&(t_(a,t),a=a.left),186===a.kind?function(e,n,t){var r=e.properties;if(k&&0===r.length)return lm(n,e);for(var a=0,i=r;a<i.length;a++)Zf(n,i[a],r,t);return n}(a,n,r):185===a.kind?function(e,n,t){var r=e.elements;P<2&&R.downlevelIteration&&Qv(e,512);for(var a=Tg(n,e,!1,!1)||J,i=0;i<r.length;i++)$f(e,n,i,a,t);return n}(a,n,t):(o=n,s=__(i=a,t),c=275===i.parent.kind?Dy.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:Dy.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,qf(i,c)&&hl(o,s,i,i),o)}function n_(e,n){return 0!=(24576&n.flags)||gl(e,n)}function t_(e,n){return Dy.isInJSFile(e)&&Dy.getAssignedExpandoInitializer(e)?__(e.right,n):r_(e.left,e.operatorToken,e.right,n,e)}function r_(r,a,i,l,o){var s,n=a.kind;if(58===n&&(186===r.kind||185===r.kind))return e_(r,__(i,l),l,99===i.kind);s=53===n||54===n?yg(r,l):__(r,l);var e,t,c,u,d,p,m,f,_,g,v=__(i,l);switch(n){case 39:case 40:case 61:case 62:case 41:case 63:case 42:case 64:case 38:case 60:case 45:case 65:case 46:case 66:case 47:case 67:case 49:case 69:case 50:case 70:case 48:case 68:if(s===le||v===le)return le;s=lm(s,r),v=lm(v,i);var y=void 0;if(272&s.flags&&272&v.flags&&void 0!==(y=function(e){switch(e){case 49:case 69:return 54;case 50:case 70:return 35;case 48:case 68:return 53;default:return}}(a.kind)))gt(o||a,Dy.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Dy.tokenToString(a.kind),Dy.tokenToString(y));else{var h=jf(r,s,Dy.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type),b=jf(i,v,Dy.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type);h&&b&&D(ne)}return ne;case 37:case 59:if(s===le||v===le)return le;Jf(s,68)||Jf(v,68)||(s=lm(s,r),v=lm(v,i));var E=void 0;return Jf(s,168,!0)&&Jf(v,168,!0)?E=ne:Jf(s,68,!0)||Jf(v,68,!0)?E=ee:(sa(s)||sa(v))&&(E=s===J||v===J?J:W),E&&!C(n)?E:E?(59===n&&D(E),E):(A(),W);case 27:case 29:case 30:case 31:return C(n)&&(s=ru(lm(s,r)),v=ru(lm(v,i)),gl(s,v)||gl(v,s)||A()),ie;case 32:case 33:case 34:case 35:var T=tu(s),S=tu(v);return T&&S||(s=T?ru(s):s,v=S?ru(v):v),n_(s,v)||n_(v,s)||A(),ie;case 93:return m=r,f=i,g=v,(_=s)===le||g===le?le:(!sa(_)&&Xf(_,32764)&&gt(m,Dy.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),sa(g)||hv(g)||ml(g,Ae)||gt(f,Dy.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),ie);case 92:return c=r,u=i,p=v,(d=s)===le||p===le?le:(d=lm(d,c),p=lm(p,u),gl(d,ee)||Jf(d,3240)||gt(c,Dy.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol),Jf(p,31522816)||gt(u,Dy.Diagnostics.The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),ie);case 53:return 1048576&id(s)?Qs([(t=k?s:ru(v),Sd(t,mu)),v]):s;case 54:return 2097152&id(s)?Qs([pu(s),v],2):s;case 58:var x=Dy.isBinaryExpression(r.parent)?Dy.getAssignmentDeclarationKind(r.parent):0;return function(e,n){if(2===e)for(var t=__(n,l),r=0,a=Wi(t);r<a.length;r++){var i=a[r],o=wa(i);if(o.symbol&&32&o.symbol.flags){var s=i.escapedName,c=Ot(i.valueDeclaration,s,67897832,void 0,s,!1);if(c&&c.declarations.some(Dy.isJSDocTypedefTag))return Sy(c.declarations[0],Dy.Diagnostics.Duplicate_identifier_0,Dy.unescapeLeadingUnderscores(s)),Sy(i.valueDeclaration,Dy.Diagnostics.Duplicate_identifier_0,Dy.unescapeLeadingUnderscores(s))}}}(x,i),function(e){switch(e){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var n=vr(r),t=Dy.getAssignedExpandoInitializer(i);return t&&Dy.isObjectLiteralExpression(t)&&n&&Dy.hasEntries(n.exports);default:return!1}}(x)?s:(D(v),hu(v));case 26:return!R.allowUnreachableCode&&function e(n){switch((n=Dy.skipParentheses(n)).kind){case 71:case 9:case 12:case 191:case 204:case 13:case 8:case 101:case 86:case 95:case 140:case 194:case 207:case 195:case 185:case 186:case 197:case 211:case 259:case 258:return!0;case 203:return e(n.whenTrue)&&e(n.whenFalse);case 202:return!Dy.isAssignmentOperator(n.operatorToken.kind)&&e(n.left)&&e(n.right);case 200:case 201:switch(n.operator){case 51:case 37:case 38:case 52:return!0}return!1;case 198:case 192:case 210:default:return!1}}(r)&&(71!==(e=i).kind||"eval"!==e.escapedText)&&gt(r,Dy.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects),v;default:return Dy.Debug.fail()}function C(e){var n=zf(s,3072)?r:zf(v,3072)?i:void 0;return!n||(gt(n,Dy.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,Dy.tokenToString(e)),!1)}function D(e){L&&Dy.isAssignmentOperator(n)&&(!qf(r,Dy.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access)||Dy.isIdentifier(r)&&"exports"===Dy.unescapeLeadingUnderscores(r.escapedText)||hl(e,s,r,i))}function A(){var e=qr(s),n=qr(v),t=o||a;(function(e,n,t){switch(a.kind){case 34:case 32:return gt(e,Dy.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,"false",n,t);case 35:case 33:return gt(e,Dy.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,"true",n,t)}})(t,e,n)||gt(t,Dy.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,Dy.tokenToString(a.kind),e,n)}}function a_(e){L&&(4096&e.flags&&!function(e){for(var n=e,t=e.parent;t;){if(Dy.isFunctionLike(t)&&n===t.body)return!1;if(Dy.isClassLike(n))return!0;t=(n=t).parent}return!1}(e)||Ey(e,Dy.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),ap(e)&&gt(e,Dy.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var n=Dy.getContainingFunction(e);if(!n)return W;var t=Dy.getFunctionFlags(n);if(!(1&t))return W;e.asteriskToken&&(3==(3&t)&&P<6&&Qv(e,26624),1==(3&t)&&P<2&&R.downlevelIteration&&Qv(e,256));var r=0!=(2&t),a=Pf(e,r),i=Go(n);return i&&hl(a,Ag(i,r)||W,e.expression||e,e.expression),W}function i_(e,n,t){var r,a=266!==(r=e).kind||Dy.isJsxSelfClosingElement(r.parent)?r:r.parent.parent,i=a.contextualType,o=a.contextualMapper;a.contextualType=n;var s=__(e,(a.contextualMapper=t)===x?1:t?2:3);return a.contextualType=i,a.contextualMapper=o,s}function o_(e,n){var t=kt(e);if(!t.resolvedType){if(n)return __(e,n);var r=_n;_n=gn,t.resolvedType=__(e,n),_n=r}return t.resolvedType}function s_(e){return 192===(e=Dy.skipParentheses(e)).kind||210===e.kind}function c_(e){var n=Dy.getEffectiveInitializer(e),t=m_(n,!0),r=2&Dy.getCombinedNodeFlags(e)||Dy.isDeclarationReadonly(e)||s_(n)?t:au(t);if(Dy.isInJSFile(e)){if(24576&r.flags)return F&&Du(e,W),W;if(Ql(r))return F&&Du(e,Pe),Pe}return r}function l_(e,n,t,r){2===arguments.length&&(t=vp(e));var a=__(e,n,r);return s_(e)?a:ou(a,t)}function u_(e,n){return 147===e.name.kind&&Mp(e.name),l_(e.initializer,n)}function d_(e,n){return gy(e),147===e.name.kind&&Mp(e.name),p_(e,Bf(e,n),n)}function p_(e,n,t){if(2===t){var r=Mm(n);if(r&&r.typeParameters){var a=gp(e);if(a){var i=Mm(gu(a));if(i&&!i.typeParameters)return zo(Om(r,i,yp(e)))}}}return n}function m_(e,n){var t=Dy.skipParentheses(e);if(189!==t.kind||97===t.expression.kind||Dy.isRequireCall(t,!0)||mf(t)){if(192===t.kind||210===t.kind)return Fc(t.type)}else{var r=Mm(cm(t.expression));if(r&&!r.typeParameters)return Fo(r)}return n?o_(e):__(e)}function f_(e){var n=kt(e);if(n.contextFreeType)return n.contextFreeType;var t=e.contextualType;e.contextualType=W;var r=n.contextFreeType=__(e,1);return e.contextualType=t,r}function __(e,n,t){var r;return Yf(r=146===e.kind?dm(e):p_(e,function(e,n,t){switch(e.kind){case 71:return Wd(e);case 99:return Qd(e);case 97:return ep(e);case 95:return $;case 13:case 9:return Mc(wc(e.text));case 8:return Cy(e),Mc(wc(+e.text));case 101:return ae;case 86:return te;case 204:return b=e,Dy.forEach(b.templateSpans,function(e){zf(__(e.expression),3072)&&gt(e.expression,Dy.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String)}),ee;case 12:return Oe;case 185:return Ap(e,n,t);case 186:return wp(e,n);case 187:return um(e);case 188:return Sm(e);case 189:if(91===e.expression.kind)return ff(e);case 190:return pf(e);case 191:return iy(h=e,h.typeArguments),P<2&&Qv(h,65536),Fo(af(h));case 193:return r=e,a=n,(i=Dy.isInJSFile(r)?Dy.getJSDocTypeTag(r):void 0)?vf(i,i.typeExpression.type,r.expression,a):__(r.expression,a);case 207:return Pg(y=e),nv(y),wa(vr(y));case 194:case 195:return Bf(e,n);case 197:return __(e.expression),it;case 192:case 210:return vf(v=e,v.type,v.expression);case 211:return gu(__(e.expression));case 212:return yf(e);case 196:return function(e){__(e.expression);var n=Dy.skipParentheses(e.expression);if(187!==n.kind&&188!==n.kind)return gt(n,Dy.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),ie;var t=Er(kt(n).resolvedSymbol);return t&&Hf(t)&&gt(n,Dy.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),ie}(e);case 198:return __(e.expression),Q;case 199:return g=e,L&&(16384&g.flags||Ey(g,Dy.Diagnostics.await_expression_is_only_allowed_within_an_async_function),ap(g)&&gt(g,Dy.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)),G_(__(g.expression),g,Dy.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);case 200:return function(e){var n=__(e.operand);if(n===le)return le;if(8===e.operand.kind){if(38===e.operator)return Mc(wc(-e.operand.text));if(37===e.operator)return Mc(wc(+e.operand.text))}switch(e.operator){case 37:case 38:case 52:return lm(n,e.operand),zf(n,3072)&&gt(e.operand,Dy.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,Dy.tokenToString(e.operator)),ne;case 51:yg(e.operand);var t=3145728&id(n);return 1048576===t?te:2097152===t?ae:ie;case 43:case 44:return jf(e.operand,lm(n,e.operand),Dy.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type)&&qf(e.operand,Dy.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),ne}return J}(e);case 201:return(_=__((f=e).operand))===le?le:(jf(f.operand,lm(_,f.operand),Dy.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type)&&qf(f.operand,Dy.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access),ne);case 202:return t_(e,n);case 203:return m=n,yg((p=e).condition),Qs([__(p.whenTrue,m),__(p.whenFalse,m)],2);case 206:return u=e,d=n,P<2&&R.downlevelIteration&&Qv(u,1536),Tg(__(u.expression,d),u.expression,!1,!1);case 208:return Q;case 205:return a_(e);case 213:return e.type;case 268:return function(e,n){if(e.expression){var t=__(e.expression,n);return e.dotDotDotToken&&t!==W&&!Jl(t)&&gt(e,Dy.Diagnostics.JSX_spread_child_must_be_an_array_type),t}return J}(e,n);case 258:return nv(l=e),em(l)||W;case 259:return nv(c=e),em(c)||W;case 262:return s=n,tm((o=e).openingFragment,s),2===R.jsx&&(R.jsxFactory||Dy.getSourceFileOfNode(o).pragmas.has("jsx"))&&gt(o,R.jsxFactory?Dy.Diagnostics.JSX_fragment_is_not_supported_when_using_jsxFactory:Dy.Diagnostics.JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma),em(o)||W;case 266:return Bp(e,n);case 260:Dy.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}var r,a,i,o,s,c,l,u,d,p,m,f,_,g,v,y,h,b;return J}(e,n,t),n))&&(187===e.parent.kind&&e.parent.expression===e||188===e.parent.kind&&e.parent.expression===e||(71===e.kind||146===e.kind)&&pv(e)||165===e.parent.kind&&e.parent.exprName===e||gt(e,Dy.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)),r}function g_(e){e.expression&&Ey(e.expression,Dy.Diagnostics.Type_expected),$g(e.constraint),$g(e.default);var n=ti(vr(e));to(n)||gt(Dy.getEffectiveConstraintOfTypeParameter(e),Dy.Diagnostics.Type_parameter_0_has_a_circular_constraint,qr(n)),ao(n)===he&&gt(e.default,Dy.Diagnostics.Type_parameter_0_has_a_circular_default,qr(n));var t=Yi(n),r=io(n);t&&r&&yl(r,Ei(t,r),e.default,Dy.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),L&&Mg(e.name,Dy.Diagnostics.Type_parameter_name_cannot_be_0)}function v_(e){$v(e),mg(e);var n=Dy.getContainingFunction(e);Dy.hasModifier(e,92)&&(155===n.kind&&Dy.nodeIsPresent(n.body)||gt(e,Dy.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation)),e.questionToken&&Dy.isBindingPattern(e.name)&&n.body&&gt(e,Dy.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&Dy.isIdentifier(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==n.parameters.indexOf(e)&&gt(e,Dy.Diagnostics.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),155!==n.kind&&159!==n.kind&&164!==n.kind||gt(e,Dy.Diagnostics.A_constructor_cannot_have_a_this_parameter),195===n.kind&&gt(e,Dy.Diagnostics.An_arrow_function_cannot_have_a_this_parameter)),!e.dotDotDotToken||Dy.isBindingPattern(e.name)||fl(wa(e.symbol),Pe)||gt(e,Dy.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function y_(e,n,t){for(var r=0,a=e.elements;r<a.length;r++){var i=a[r];if(!Dy.isOmittedExpression(i)){var o=i.name;if(71===o.kind&&o.escapedText===t)return gt(n,Dy.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,t),!0;if((183===o.kind||182===o.kind)&&y_(o,n,t))return!0}}}function h_(e){var n;160===e.kind?$v(n=e)||function(e){var n=e.parameters[0];if(1!==e.parameters.length)return Sy(n?n.name:e,Dy.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(n.dotDotDotToken)return Sy(n.dotDotDotToken,Dy.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(Dy.hasModifiers(n))return Sy(n.name,Dy.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(n.questionToken)return Sy(n.questionToken,Dy.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(n.initializer)return Sy(n.name,Dy.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!n.type)return Sy(n.name,Dy.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(137===n.type.kind||134===n.type.kind)return!e.type&&Sy(e,Dy.Diagnostics.An_index_signature_must_have_a_type_annotation);var t=Fc(n.type);4&t.flags||8&t.flags?Sy(n.name,Dy.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,Dy.getTextOfNode(n.name),qr(t),qr(Fc(e.type))):262144&t.flags&&Xf(t,64,!0)?Sy(n.name,Dy.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):Sy(n.name,Dy.Diagnostics.An_index_signature_parameter_type_must_be_string_or_number)}(n):163!==e.kind&&237!==e.kind&&164!==e.kind&&158!==e.kind&&155!==e.kind&&159!==e.kind||ay(e);var t,r=Dy.getFunctionFlags(e);if(4&r||(3==(3&r)&&P<6&&Qv(e,6144),2==(3&r)&&P<4&&Qv(e,64),0!=(3&r)&&P<2&&Qv(e,128)),Og(e.typeParameters),Dy.forEach(e.parameters,v_),e.type&&$g(e.type),L){t=e,2<=P||R.noEmit||!Dy.hasRestParameter(t)||4194304&t.flags||Dy.nodeIsMissing(t.body)||Dy.forEach(t.parameters,function(e){e.name&&!Dy.isBindingPattern(e.name)&&e.name.escapedText===M.escapedName&&gt(e,Dy.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)});var a=Dy.getEffectiveReturnTypeNode(e);if(F&&!a)switch(e.kind){case 159:gt(e,Dy.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 158:gt(e,Dy.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(a){var i=Dy.getFunctionFlags(e);if(1==(5&i)){var o=Fc(a);if(o===se)gt(a,Dy.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=Ag(o,0!=(2&i))||W;yl(2&i?Fs(s):Vs(s),o,a)}}else 2==(3&i)&&function(e,n){var t,r,a=Fc(n);if(2<=P){if(a===J)return;var i=Ds(!0);if(i!==ge&&!Pa(a,i))return gt(n,Dy.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)}else{if(K_((r=n)&&Dy.getEntityNameFromTypeNode(r)),a===J)return;var o=Dy.getEntityNameFromTypeNode(n);if(void 0===o)return gt(n,Dy.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,qr(a));var s=nr(o,67220415,!0),c=s?wa(s):J;if(c===J)return 71===o.kind&&"Promise"===o.escapedText&&Ra(a)===Ds(!1)?gt(n,Dy.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):gt(n,Dy.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,Dy.entityNameToString(o));var l=(t=!0,Ue||(Ue=Ss("PromiseConstructorLike",0,t))||fe);if(l===fe)return gt(n,Dy.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,Dy.entityNameToString(o));if(!yl(c,l,n,Dy.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var u=o&&Wg(o),d=It(e.locals,u.escapedText,67220415);if(d)return gt(d.valueDeclaration,Dy.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,Dy.idText(u),Dy.entityNameToString(o))}G_(a,e,Dy.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,a)}160!==e.kind&&287!==e.kind&&z_(e)}}function b_(e){for(var n=Dy.createMap(),t=0,r=e.members;t<r.length;t++){var a=r[t];if(151===a.kind){var i=void 0,o=a.name;switch(o.kind){case 9:case 8:i=o.text;break;case 71:i=Dy.idText(o);break;default:continue}n.get(i)?(gt(Dy.getNameOfDeclaration(a.symbol.valueDeclaration),Dy.Diagnostics.Duplicate_identifier_0,i),gt(a.name,Dy.Diagnostics.Duplicate_identifier_0,i)):n.set(i,!0)}}}function E_(e){if(239===e.kind){var n=vr(e);if(0<n.declarations.length&&n.declarations[0]!==e)return}var t=Jo(vr(e));if(t)for(var r=!1,a=!1,i=0,o=t.declarations;i<o.length;i++){var s=o[i];if(1===s.parameters.length&&s.parameters[0].type)switch(s.parameters[0].type.kind){case 137:a?gt(s,Dy.Diagnostics.Duplicate_string_index_signature):a=!0;break;case 134:r?gt(s,Dy.Diagnostics.Duplicate_number_index_signature):r=!0}}}function T_(e){$v(e)||function(e){if(Dy.isClassLike(e.parent)){if(_y(e.name,Dy.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(239===e.parent.kind){if(_y(e.name,Dy.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(e.initializer)return Sy(e.initializer,Dy.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(166===e.parent.kind){if(_y(e.name,Dy.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(e.initializer)return Sy(e.initializer,Dy.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(4194304&e.flags&&yy(e),Dy.isPropertyDeclaration(e)&&e.exclamationToken&&(!Dy.isClassLike(e.parent)||!e.type||e.initializer||4194304&e.flags||Dy.hasModifier(e,160)))return Sy(e.exclamationToken,Dy.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)}(e)||ly(e.name),mg(e)}function S_(e){var n,t;h_(e),function(e){var n=Dy.isInJSFile(e)?Dy.getJSDocTypeParameterDeclarations(e):void 0,t=e.typeParameters||n&&Dy.firstOrUndefined(n);if(t){var r=t.pos===t.end?t.pos:Dy.skipTrivia(Dy.getSourceFileOfNode(e).text,t.pos);return Ty(e,r,t.end-r,Dy.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||(n=e,(t=Dy.getEffectiveReturnTypeNode(n))&&Sy(t,Dy.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)),$g(e.body);var r=vr(e);if(e===Dy.getDeclarationOfKind(r,e.kind)&&w_(r),!Dy.nodeIsMissing(e.body)&&L){var a=e.parent;if(Dy.getEffectiveBaseTypeNode(a)){qd(e.parent,a);var i=Xd(a),o=Jd(e);if(o){if(i&&gt(o,Dy.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),Dy.some(e.parent.members,function(e){return 152===e.kind&&!Dy.hasModifier(e,32)&&!!e.initializer})||Dy.some(e.parameters,function(e){return Dy.hasModifier(e,92)})){for(var s=void 0,c=0,l=e.body.statements;c<l.length;c++){var u=l[c];if(219===u.kind&&Dy.isSuperCall(u.expression)){s=u;break}if(!Dy.isPrologueDirective(u))break}s||gt(e,Dy.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties)}}else i||gt(e,Dy.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}}function x_(e){if(L){if(ay(e)||function(e){var n,t=e.kind;if(P<1)return Sy(e.name,Dy.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(4194304&e.flags)return Sy(e.name,Dy.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===e.body&&!Dy.hasModifier(e,128))return Ty(e,e.end-1,";".length,Dy.Diagnostics._0_expected,"{");if(e.body&&Dy.hasModifier(e,128))return Sy(e,Dy.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(e.typeParameters)return Sy(e.name,Dy.Diagnostics.An_accessor_cannot_have_type_parameters);if(!fy(n=e)&&n.parameters.length!==(156===n.kind?0:1))return Sy(e.name,156===t?Dy.Diagnostics.A_get_accessor_cannot_have_parameters:Dy.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(157===t){if(e.type)return Sy(e.name,Dy.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=e.parameters[0];if(r.dotDotDotToken)return Sy(r.dotDotDotToken,Dy.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return Sy(r.questionToken,Dy.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return Sy(e.name,Dy.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||ly(e.name),U_(e),h_(e),156===e.kind&&!(4194304&e.flags)&&Dy.nodeIsPresent(e.body)&&128&e.flags&&(256&e.flags||gt(e.name,Dy.Diagnostics.A_get_accessor_must_return_a_value)),147===e.name.kind&&Mp(e.name),!_i(e)){var n=156===e.kind?157:156,t=Dy.getDeclarationOfKind(vr(e),n);if(t){var r=Dy.getModifierFlags(e),a=Dy.getModifierFlags(t);(28&r)!=(28&a)&&gt(e.name,Dy.Diagnostics.Getter_and_setter_accessors_do_not_agree_in_visibility),(128&r)!=(128&a)&&gt(e.name,Dy.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),C_(e,t,La,Dy.Diagnostics.get_and_set_accessor_must_have_the_same_type),C_(e,t,ka,Dy.Diagnostics.get_and_set_accessor_must_have_the_same_this_type)}}var i=Na(vr(e));156===e.kind&&Vf(e,i)}$g(e.body)}function C_(e,n,t,r){var a=t(e),i=t(n);a&&i&&!ul(a,i)&&gt(e,r)}function D_(e,n){return ko(Dy.map(e.typeArguments,Fc),n,Lo(n),Dy.isInJSFile(e))}function A_(e,n){for(var t,r,a=!0,i=0;i<n.length;i++){var o=Yi(n[i]);o&&(t||(r=jc(n,t=D_(e,n))),a=a&&yl(t[i],tl(o,r),e.typeArguments[i],Dy.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function L_(e){var n=vs(e);if(n!==J){var t=kt(e).resolvedSymbol;if(t)return 524288&t.flags&&Lt(t).typeParameters||(4&Dy.getObjectFlags(n)?n.target.localTypeParameters:void 0)}}function k_(e){iy(e,e.typeArguments),162!==e.kind||void 0===e.typeName.jsdocDotPos||Dy.isInJSFile(e)||Dy.isInJSDoc(e)||Ty(e,e.typeName.jsdocDotPos,1,Dy.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments);var n=vs(e);if(n!==J){if(e.typeArguments&&(Dy.forEach(e.typeArguments,$g),L)){var t=L_(e);t&&A_(e,t)}32&n.flags&&8&kt(e).resolvedSymbol.flags&&gt(e,Dy.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,qr(n))}}function N_(e,n){if(!(2097152&e.flags))return e;var t=e.objectType,r=e.indexType;return fl(r,oc(t,!1))?188===n.kind&&Dy.isAssignmentTarget(n)&&32&Dy.getObjectFlags(t)&&1&Bi(t)&&gt(n,Dy.Diagnostics.Index_signature_in_type_0_only_permits_reading,qr(t)):vo(so(t),1)&&Jf(r,168)||gt(n,Dy.Diagnostics.Type_0_cannot_be_used_to_index_type_1,qr(r),qr(t)),e}function I_(e){!function(e){if(141===e.operator){if(138!==e.type.kind)return Sy(e.type,Dy.Diagnostics._0_expected,Dy.tokenToString(138));var n=Dy.walkUpParenthesizedTypes(e.parent);switch(n.kind){case 235:var t=n;if(71!==t.name.kind)return Sy(e,Dy.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Dy.isVariableDeclarationInVariableStatement(t))return Sy(e,Dy.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&t.parent.flags))return Sy(n.name,Dy.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 152:if(!Dy.hasModifier(n,32)||!Dy.hasModifier(n,64))return Sy(n.name,Dy.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 151:if(!Dy.hasModifier(n,64))return Sy(n.name,Dy.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:Sy(e,Dy.Diagnostics.unique_symbol_types_are_not_allowed_here)}}}(e),$g(e.type)}function M_(e){return Dy.hasModifier(e,8)&&!!(4194304&e.flags)}function O_(e,n){var t=Dy.getCombinedModifierFlags(e);return 239!==e.parent.kind&&238!==e.parent.kind&&207!==e.parent.kind&&4194304&e.flags&&(2&t||Dy.isModuleBlock(e.parent)&&Dy.isModuleDeclaration(e.parent.parent)&&Dy.isGlobalScopeAugmentation(e.parent.parent)||(t|=1),t|=2),t&n}function w_(e){if(L){for(var n,t,r,a=0,i=155,o=!1,s=!0,c=!1,l=e.declarations,u=0!=(16384&e.flags),d=!1,p=!1,m=0,f=l;m<f.length;m++){var _=f[m],g=4194304&_.flags,v=239===_.parent.kind||166===_.parent.kind||g;if(v&&(r=void 0),237===_.kind||154===_.kind||153===_.kind||155===_.kind){var y=O_(_,155);a|=y,i&=y,o=o||Dy.hasQuestionToken(_),s=s&&Dy.hasQuestionToken(_),Dy.nodeIsPresent(_.body)&&n?u?p=!0:d=!0:r&&r.parent===_.parent&&r.end!==_.pos&&C(r),Dy.nodeIsPresent(_.body)?n||(n=_):c=!0,r=_,v||(t=_)}}if(p&&Dy.forEach(l,function(e){gt(e,Dy.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),d&&Dy.forEach(l,function(e){gt(Dy.getNameOfDeclaration(e),Dy.Diagnostics.Duplicate_function_implementation)}),!t||t.body||Dy.hasModifier(t,128)||t.questionToken||C(t),c&&(function(e,n,t,r,a){if(0!=(r^a)){var i=O_(x(e,n),t);Dy.forEach(e,function(e){var n=O_(e,t)^i;1&n?gt(Dy.getNameOfDeclaration(e),Dy.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&n?gt(Dy.getNameOfDeclaration(e),Dy.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&n?gt(Dy.getNameOfDeclaration(e)||e,Dy.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&n&&gt(Dy.getNameOfDeclaration(e),Dy.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}(l,n,155,a,i),function(e,n,t,r){if(t!==r){var a=Dy.hasQuestionToken(x(e,n));Dy.forEach(e,function(e){Dy.hasQuestionToken(e)!==a&&gt(Dy.getNameOfDeclaration(e),Dy.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}(l,n,o,s),n))for(var h=Oo(e),b=No(n),E=0,T=h;E<T.length;E++){var S=T[E];if(!Al(b,S)){gt(S.declaration,Dy.Diagnostics.Overload_signature_is_not_compatible_with_function_implementation);break}}}function x(e,n){return void 0!==n&&n.parent===e[0].parent?n:e[0]}function C(n){if(!n.name||!Dy.nodeIsMissing(n.name)){var t=!1,e=Dy.forEachChild(n.parent,function(e){if(t)return e;t=e===n});if(e&&e.pos===n.end&&e.kind===n.kind){var r=e.name||e,a=e.name;if(n.name&&a&&(Dy.isComputedPropertyName(n.name)&&Dy.isComputedPropertyName(a)||!Dy.isComputedPropertyName(n.name)&&!Dy.isComputedPropertyName(a)&&Dy.getEscapedTextOfIdentifierOrLiteral(n.name)===Dy.getEscapedTextOfIdentifierOrLiteral(a)))return void(154!==n.kind&&153!==n.kind||Dy.hasModifier(n,32)===Dy.hasModifier(e,32)||gt(r,Dy.hasModifier(n,32)?Dy.Diagnostics.Function_overload_must_be_static:Dy.Diagnostics.Function_overload_must_not_be_static));if(Dy.nodeIsPresent(e.body))return void gt(r,Dy.Diagnostics.Function_implementation_name_must_be_0,Dy.declarationNameToString(n.name))}var i=n.name||n;u?gt(i,Dy.Diagnostics.Constructor_implementation_is_missing):Dy.hasModifier(n,128)?gt(i,Dy.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):gt(i,Dy.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}}function P_(e){if(L){var n=e.localSymbol;if((n||(n=vr(e)).exportSymbol)&&Dy.getDeclarationOfKind(n,e.kind)===e){for(var t=0,r=0,a=0,i=0,o=n.declarations;i<o.length;i++){var s=_(m=o[i]),c=O_(m,513);1&c?512&c?a|=s:t|=s:r|=s}var l=t&r,u=a&(t|r);if(l||u)for(var d=0,p=n.declarations;d<p.length;d++){s=_(m=p[d]);var m,f=Dy.getNameOfDeclaration(m);s&u?gt(f,Dy.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Dy.declarationNameToString(f)):s&l&&gt(f,Dy.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Dy.declarationNameToString(f))}}}function _(e){var n=e;switch(n.kind){case 239:case 240:case 302:case 295:return 2;case 242:return Dy.isAmbientModule(n)||0!==Dy.getModuleInstanceState(n)?5:4;case 238:case 241:return 3;case 277:return 7;case 252:if(!Dy.isEntityNameExpression(n.expression))return 1;n=n.expression;case 246:case 249:case 248:var t=0,r=Yt(vr(n));return Dy.forEach(r.declarations,function(e){t|=_(e)}),t;case 235:case 184:case 237:case 251:return 1;default:return Dy.Debug.fail(Dy.Debug.showSyntaxKind(n))}}}function R_(e,n,t){var r=F_(e,n);return r&&V_(r,n,t)}function F_(e,n){if(!sa(e)){var t=e;if(t.promisedTypeOfPromise)return t.promisedTypeOfPromise;if(Pa(e,Ds(!1)))return t.promisedTypeOfPromise=e.typeArguments[0];var r=oa(e,"then");if(!sa(r)){var a=r?fo(r,0):Dy.emptyArray;if(0!==a.length){var i=od(Qs(Dy.map(a,kf)),524288);if(!sa(i)){var o=fo(i,0);if(0!==o.length)return t.promisedTypeOfPromise=Qs(Dy.map(o,kf),2);n&&gt(n,Dy.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else n&&gt(n,Dy.Diagnostics.A_promise_must_have_a_then_method)}}}function G_(e,n,t){return V_(e,n,t)||J}function V_(e,n,t){var r=e;if(r.awaitedTypeOfType)return r.awaitedTypeOfType;if(sa(e))return r.awaitedTypeOfType=e;if(262144&e.flags){for(var a=void 0,i=0,o=e.types;i<o.length;i++){var s=o[i];a=Dy.append(a,V_(s,n,t))}if(!a)return;return r.awaitedTypeOfType=Qs(a)}var c=F_(e);if(c){if(e.id===c.id||0<=Fn.indexOf(c.id))return void(n&&gt(n,Dy.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Fn.push(e.id);var l=V_(c,n,t);if(Fn.pop(),!l)return;return r.awaitedTypeOfType=l}var u=oa(e,"then");if(!(u&&0<fo(u,0).length))return r.awaitedTypeOfType=e;if(n){if(!t)return Dy.Debug.fail();gt(n,t)}}function B_(e){var n=Fo(af(e));if(!(1&n.flags)){var t,r,a=ef(e);switch(e.parent.kind){case 238:t=Qs([wa(vr(e.parent)),se]);break;case 149:t=se,r=Dy.chainDiagnosticMessages(void 0,Dy.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 152:t=se,r=Dy.chainDiagnosticMessages(void 0,Dy.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 154:case 156:case 157:t=Qs([Rs(_v(e.parent)),se]);break;default:return Dy.Debug.fail()}yl(n,t,e,a,function(){return r})}}function K_(e){if(e){var n=Wg(e),t=2097152|(71===e.kind?67897832:1920),r=Ot(n,n.escapedText,t,void 0,void 0,!0);r&&2097152&r.flags&&Tr(r)&&!Iv(Yt(r))&&Zt(r)}}function j_(e){var n=function e(n){if(n)switch(n.kind){case 172:case 171:for(var t=void 0,r=0,a=n.types;r<a.length;r++){for(var i=a[r];175===i.kind;)i=i.type;if(131!==i.kind&&(k||95!==i.kind&&140!==i.kind)){var o=e(i);if(!o)return;if(t){if(!Dy.isIdentifier(t)||!Dy.isIdentifier(o)||t.escapedText!==o.escapedText)return}else t=o}}return t;case 175:return e(n.type);case 162:return n.typeName}}(e);n&&Dy.isEntityName(n)&&K_(n)}function H_(e){var n=Dy.getEffectiveTypeAnnotationNode(e);return Dy.isRestParameter(e)?Dy.getRestParameterElementType(n):n}function U_(e){if(e.decorators&&Dy.nodeCanBeDecorated(e,e.parent,e.parent.parent)){R.experimentalDecorators||gt(e,Dy.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 n=e.decorators[0];if(Qv(n,8),149===e.kind&&Qv(n,32),R.emitDecoratorMetadata)switch(Qv(n,16),e.kind){case 238:var t=Dy.getFirstConstructorWithBody(e);if(t)for(var r=0,a=t.parameters;r<a.length;r++)j_(H_(a[r]));break;case 156:case 157:var i=156===e.kind?157:156,o=Dy.getDeclarationOfKind(vr(e),i);j_(Aa(e)||o&&Aa(o));break;case 154:for(var s=0,c=e.parameters;s<c.length;s++)j_(H_(c[s]));j_(Dy.getEffectiveReturnTypeNode(e));break;case 152:j_(Dy.getEffectiveTypeAnnotationNode(e));break;case 149:j_(H_(e));for(var l=0,u=e.parent.parameters;l<u.length;l++)j_(H_(u[l]))}Dy.forEach(e.decorators,B_)}}function W_(e){switch(e.kind){case 71:return e;case 187:return e.name;default:return}}function q_(n){U_(n),h_(n);var e=Dy.getFunctionFlags(n);if(n.name&&147===n.name.kind&&Mp(n.name),!_i(n)){var t=vr(n),r=n.localSymbol||t,a=Dy.find(r.declarations,function(e){return e.kind===n.kind&&!(65536&e.flags)});n===a&&w_(r),t.parent&&Dy.getDeclarationOfKind(t,n.kind)===n&&w_(t)}var i=153===n.kind?void 0:n.body;if($g(i),0==(1&e)){var o=Kf(n,e);Vf(n,o)}if(L&&!Dy.getEffectiveReturnTypeNode(n)&&(F&&Dy.nodeIsMissing(i)&&!M_(n)&&Du(n,W),1&e&&Dy.nodeIsPresent(i)&&Fo(No(n))),Dy.isInJSFile(n)){var s=Dy.getJSDocTypeTag(n);s&&s.typeExpression&&!Ep(Fc(s.typeExpression),n)&&gt(s,Dy.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function z_(e){if(L){var n=Dy.getSourceFileOfNode(e),t=fn.get(n.path);t||(t=[],fn.set(n.path,t)),t.push(e)}}function J_(e,n){for(var t=0,r=e;t<r.length;t++){var a=r[t];switch(a.kind){case 238:case 207:Q_(a,n),Z_(a,n);break;case 239:Z_(a,n);break;case 277:case 242:case 216:case 244:case 223:case 224:case 225:tg(a,n);break;case 155:case 194:case 237:case 195:case 154:case 156:case 157:a.body&&tg(a,n),Z_(a,n);break;case 153:case 158:case 159:case 163:case 164:case 240:case 174:Z_(a,n);break;default:Dy.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function X_(e,n,t){var r=Dy.getNameOfDeclaration(e)||e,a=cv(e)?Dy.Diagnostics._0_is_declared_but_never_used:Dy.Diagnostics._0_is_declared_but_its_value_is_never_read;t(e,0,Dy.createDiagnosticForNode(r,a,n))}function Y_(e){return Dy.isIdentifier(e)&&95===Dy.idText(e).charCodeAt(0)}function Q_(e,n){if(!(4194304&e.flags))for(var t=0,r=e.members;t<r.length;t++){var a=r[t];switch(a.kind){case 154:case 152:case 156:case 157:if(157===a.kind&&32768&a.symbol.flags)break;var i=vr(a);!i.isReferenced&&Dy.hasModifier(a,8)&&n(a,0,Dy.createDiagnosticForNode(a.name,Dy.Diagnostics._0_is_declared_but_its_value_is_never_read,Ur(i)));break;case 155:for(var o=0,s=a.parameters;o<s.length;o++){var c=s[o];!c.symbol.isReferenced&&Dy.hasModifier(c,8)&&n(c,0,Dy.createDiagnosticForNode(c.name,Dy.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,Dy.symbolName(c.symbol)))}break;case 160:case 215:break;default:Dy.Debug.fail()}}}function Z_(e,n){if(!(4194304&e.flags||174!==e.kind&&Dy.last(vr(e).declarations)!==e))if(174===e.kind)$_(o=e.typeParameter)&&n(e,1,Dy.createDiagnosticForNode(e,Dy.Diagnostics._0_is_declared_but_its_value_is_never_read,Dy.idText(o.name)));else for(var t=Dy.getEffectiveTypeParameterDeclarations(e),r=new Dy.NodeSet,a=0,i=t;a<i.length;a++){var o;if($_(o=i[a])){var s=Dy.idText(o.name),c=o.parent;if(174!==c.kind&&c.typeParameters.every($_)){if(r.tryAdd(c)){var l=Dy.isJSDocTemplateTag(c)?Dy.rangeOfNode(c):Dy.rangeOfTypeParameters(c.typeParameters),u=1===t.length,d=u?Dy.Diagnostics._0_is_declared_but_its_value_is_never_read:Dy.Diagnostics.All_type_parameters_are_unused,p=u?s:void 0;n(o,1,Dy.createFileDiagnostic(Dy.getSourceFileOfNode(c),l.pos,l.end-l.pos,d,p))}}else n(o,1,Dy.createDiagnosticForNode(o,Dy.Diagnostics._0_is_declared_but_its_value_is_never_read,s))}}}function $_(e){return!(262144&gr(e.symbol).isReferenced||Y_(e.name))}function eg(e,n,t,r){var a=String(r(n)),i=e.get(a);i?i[1].push(t):e.set(a,[n,[t]])}function ng(e){return Dy.tryCast(Dy.getRootDeclaration(e),Dy.isParameter)}function tg(e,s){if(!(4194304&e.flags)){var c=Dy.createMap(),l=Dy.createMap(),u=Dy.createMap();e.locals.forEach(function(e){var n;if(262144&e.flags?3&e.flags&&!(3&e.isReferenced):!e.isReferenced&&!e.exportSymbol)for(var t=0,r=e.declarations;t<r.length;t++){var a=r[t];if(!(Dy.isAmbientModule(a)||(Dy.isVariableDeclaration(a)&&Dy.isForInOrOfStatement(a.parent.parent)||ag(a))&&Y_(a.name)))if(ag(a))eg(c,248===(n=a).kind?n:249===n.kind?n.parent:n.parent.parent,a,Iy);else if(Dy.isBindingElement(a)&&Dy.isObjectBindingPattern(a.parent))a!==Dy.last(a.parent.elements)&&Dy.last(a.parent.elements).dotDotDotToken||eg(l,a.parent,a,Iy);else if(Dy.isVariableDeclaration(a))eg(u,a.parent,a,Iy);else{var i=e.valueDeclaration&&ng(e.valueDeclaration),o=e.valueDeclaration&&Dy.getNameOfDeclaration(e.valueDeclaration);i&&o?Dy.isParameterPropertyDeclaration(i)||Dy.parameterIsThisKeyword(i)||Y_(o)||s(i,1,Dy.createDiagnosticForNode(o,Dy.Diagnostics._0_is_declared_but_its_value_is_never_read,Dy.symbolName(e))):X_(a,Dy.symbolName(e),s)}}}),c.forEach(function(e){var n=e[0],t=e[1],r=n.parent;if((n.name?1:0)+(n.namedBindings?249===n.namedBindings.kind?1:n.namedBindings.elements.length:0)===t.length)s(r,0,1===t.length?Dy.createDiagnosticForNode(r,Dy.Diagnostics._0_is_declared_but_its_value_is_never_read,Dy.idText(Dy.first(t).name)):Dy.createDiagnosticForNode(r,Dy.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var a=0,i=t;a<i.length;a++){var o=i[a];X_(o,Dy.idText(o.name),s)}}),l.forEach(function(e){var n=e[0],t=e[1],r=ng(n.parent)?1:0;if(n.elements.length===t.length)1===t.length&&235===n.parent.kind&&236===n.parent.parent.kind?eg(u,n.parent.parent,n.parent,Iy):s(n,r,1===t.length?Dy.createDiagnosticForNode(n,Dy.Diagnostics._0_is_declared_but_its_value_is_never_read,rg(Dy.first(t).name)):Dy.createDiagnosticForNode(n,Dy.Diagnostics.All_destructured_elements_are_unused));else for(var a=0,i=t;a<i.length;a++){var o=i[a];s(o,r,Dy.createDiagnosticForNode(o,Dy.Diagnostics._0_is_declared_but_its_value_is_never_read,rg(o.name)))}}),u.forEach(function(e){var n=e[0],t=e[1];if(n.declarations.length===t.length)s(n,0,1===t.length?Dy.createDiagnosticForNode(Dy.first(t).name,Dy.Diagnostics._0_is_declared_but_its_value_is_never_read,rg(Dy.first(t).name)):Dy.createDiagnosticForNode(217===n.parent.kind?n.parent:n,Dy.Diagnostics.All_variables_are_unused));else for(var r=0,a=t;r<a.length;r++){var i=a[r];s(i,0,Dy.createDiagnosticForNode(i,Dy.Diagnostics._0_is_declared_but_its_value_is_never_read,rg(i.name)))}})}}function rg(e){switch(e.kind){case 71:return Dy.idText(e);case 183:case 182:return rg(Dy.cast(Dy.first(e.elements),Dy.isBindingElement).name);default:return Dy.Debug.assertNever(e)}}function ag(e){return 248===e.kind||251===e.kind||249===e.kind}function ig(e){if(216===e.kind&&xy(e),Dy.isFunctionOrModuleBlock(e)){var n=yn;Dy.forEach(e.statements,$g),yn=n}else Dy.forEach(e.statements,$g);e.locals&&z_(e)}function og(e,n,t){if(!n||n.escapedText!==t)return!1;if(152===e.kind||151===e.kind||154===e.kind||153===e.kind||156===e.kind||157===e.kind)return!1;if(4194304&e.flags)return!1;var r=Dy.getRootDeclaration(e);return 149!==r.kind||!Dy.nodeIsMissing(r.parent.body)}function sg(n){Dy.findAncestor(n,function(e){return!!(4&Fv(e))&&(71!==n.kind?gt(Dy.getNameOfDeclaration(n),Dy.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):gt(n,Dy.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)})}function cg(n){Dy.findAncestor(n,function(e){return!!(8&Fv(e))&&(71!==n.kind?gt(Dy.getNameOfDeclaration(n),Dy.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):gt(n,Dy.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)})}function lg(e,n){if(!(C>=Dy.ModuleKind.ES2015||R.noEmit)&&(og(e,n,"require")||og(e,n,"exports"))&&(!Dy.isModuleDeclaration(e)||1===Dy.getModuleInstanceState(e))){var t=ia(e);277===t.kind&&Dy.isExternalOrCommonJsModule(t)&&gt(n,Dy.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Dy.declarationNameToString(n),Dy.declarationNameToString(n))}}function ug(e,n){if(!(4<=P||R.noEmit)&&og(e,n,"Promise")&&(!Dy.isModuleDeclaration(e)||1===Dy.getModuleInstanceState(e))){var t=ia(e);277===t.kind&&Dy.isExternalOrCommonJsModule(t)&&1024&t.flags&&gt(n,Dy.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Dy.declarationNameToString(n),Dy.declarationNameToString(n))}}function dg(a){if(149===Dy.getRootDeclaration(a).kind){var i=Dy.getContainingFunction(a);!function e(n){if(!Dy.isTypeNode(n)&&!Dy.isDeclarationName(n)){if(187===n.kind)return e(n.expression);if(71!==n.kind)return Dy.forEachChild(n,e);var t=Ot(n,n.escapedText,69317567,void 0,void 0,!1);if(t&&t!==H&&t.valueDeclaration)if(t.valueDeclaration!==a){var r=Dy.getEnclosingBlockScopeContainer(t.valueDeclaration);if(r===i){if(149===t.valueDeclaration.kind||184===t.valueDeclaration.kind){if(t.valueDeclaration.pos<a.pos)return;if(Dy.findAncestor(n,function(e){return e===a.initializer?"quit":Dy.isFunctionLike(e.parent)||152===e.parent.kind&&!Dy.hasModifier(e.parent,32)&&Dy.isClassLike(e.parent.parent)}))return}gt(n,Dy.Diagnostics.Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it,Dy.declarationNameToString(a.name),Dy.declarationNameToString(n))}}else gt(n,Dy.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,Dy.declarationNameToString(a.name))}}(a.initializer)}}function pg(e){return e===q?W:e===Re?Pe:e}function mg(e){if(U_(e),Dy.isBindingElement(e)||$g(e.type),e.name){if(147===e.name.kind&&(Mp(e.name),e.initializer&&o_(e.initializer)),184===e.kind){182===e.parent.kind&&P<6&&Qv(e,4),e.propertyName&&147===e.propertyName.kind&&Mp(e.propertyName);var n=e.parent.parent,t=ca(n),r=e.propertyName||e.name;if(!Dy.isBindingPattern(r)){var a=Dy.getTextOfPropertyName(r);if(a){var i=po(t,a);bm(i,void 0,!1),n.initializer&&i&&om(n,97===n.initializer.kind,t,i)}}}if(Dy.isBindingPattern(e.name)&&(183===e.name.kind&&P<2&&R.downlevelIteration&&Qv(e,512),Dy.forEach(e.name.elements,$g)),e.initializer&&149===Dy.getRootDeclaration(e).kind&&Dy.nodeIsMissing(Dy.getContainingFunction(e).body))gt(e,Dy.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(Dy.isBindingPattern(e.name)){if(e.initializer&&224!==e.parent.parent.kind){var o=o_(e.initializer);k&&0===e.name.elements.length?lm(o,e):hl(o,Sa(e),e,e.initializer),dg(e)}}else{var s=vr(e),c=pg(wa(s));if(e===s.valueDeclaration){var l=Dy.getEffectiveInitializer(e);l&&(Dy.isInJSFile(e)&&Dy.isObjectLiteralExpression(l)&&(0===l.properties.length||Dy.isPrototypeAccess(e.name))&&Dy.hasEntries(s.exports)||224===e.parent.parent.kind||(hl(o_(l),c,e,l,void 0),dg(e)))}else{var u=pg(Sa(e));c===J||u===J||ul(c,u)||67108864&s.flags||fg(c,e,u),e.initializer&&hl(o_(e.initializer),u,e,e.initializer,void 0),d=e,p=s.valueDeclaration,149===d.kind&&235===p.kind||235===d.kind&&149===p.kind||Dy.hasQuestionToken(d)===Dy.hasQuestionToken(p)&&Dy.getSelectedModifierFlags(d,504)===Dy.getSelectedModifierFlags(p,504)||(gt(Dy.getNameOfDeclaration(s.valueDeclaration),Dy.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,Dy.declarationNameToString(e.name)),gt(e.name,Dy.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,Dy.declarationNameToString(e.name)))}152!==e.kind&&151!==e.kind&&(P_(e),235!==e.kind&&184!==e.kind||function(e){if(0==(3&Dy.getCombinedNodeFlags(e))&&!Dy.isParameterDeclaration(e)&&(235!==e.kind||e.initializer)){var n=vr(e);if(1&n.flags){if(!Dy.isIdentifier(e.name))return Dy.Debug.fail();var t=Ot(e,e.name.escapedText,3,void 0,void 0,!1);if(t&&t!==n&&2&t.flags&&3&am(t)){var r=Dy.getAncestor(t.valueDeclaration,236),a=217===r.parent.kind&&r.parent.parent?r.parent.parent:void 0;if(!a||!(216===a.kind&&Dy.isFunctionLike(a.parent)||243===a.kind||242===a.kind||277===a.kind)){var i=Ur(t);gt(e,Dy.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,i,i)}}}}}(e),lg(e,e.name),ug(e,e.name))}}var d,p}function fg(e,n,t){var r=Dy.getNameOfDeclaration(n);gt(r,152===n.kind||151===n.kind?Dy.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:Dy.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,Dy.declarationNameToString(r),qr(e),qr(t))}function _g(e){return function(e){if(224!==e.parent.parent.kind&&225!==e.parent.parent.kind)if(4194304&e.flags)yy(e);else if(!e.initializer){if(Dy.isBindingPattern(e.name)&&!Dy.isBindingPattern(e.parent))return Sy(e,Dy.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(Dy.isVarConst(e))return Sy(e,Dy.Diagnostics.const_declarations_must_be_initialized)}if(e.exclamationToken&&(217!==e.parent.parent.kind||!e.type||e.initializer||4194304&e.flags))return Sy(e.exclamationToken,Dy.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);R.module===Dy.ModuleKind.ES2015||R.module===Dy.ModuleKind.ESNext||R.module===Dy.ModuleKind.System||R.noEmit||4194304&e.parent.parent.flags||!Dy.hasModifier(e.parent.parent,1)||function e(n){if(71===n.kind){if("__esModule"===Dy.idText(n))return Sy(n,Dy.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var t=n.elements,r=0,a=t;r<a.length;r++){var i=a[r];if(!Dy.isOmittedExpression(i))return e(i.name)}return!1}(e.name),(Dy.isLet(e)||Dy.isVarConst(e))&&function e(n){if(71===n.kind){if(110===n.originalKeywordKind)return Sy(n,Dy.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var t=n.elements,r=0,a=t;r<a.length;r++){var i=a[r];Dy.isOmittedExpression(i)||e(i.name)}return!1}(e.name)}(e),mg(e)}function gg(e){return function(e){if(e.dotDotDotToken){var n=e.parent.elements;if(e!==Dy.last(n))return Sy(e,Dy.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(ny(n,Dy.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return Sy(e.name,Dy.Diagnostics.A_rest_element_cannot_have_a_property_name);e.initializer&&Ty(e,e.initializer.pos-1,1,Dy.Diagnostics.A_rest_element_cannot_have_an_initializer)}}(e),mg(e)}function vg(e){$v(e)||hy(e.declarationList)||function(e){if(!function e(n){switch(n.kind){case 220:case 221:case 222:case 229:case 223:case 224:case 225:return!1;case 231:return e(n.parent)}return!0}(e.parent)){if(Dy.isLet(e.declarationList))return Sy(e,Dy.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);Dy.isVarConst(e.declarationList)&&Sy(e,Dy.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(e),Dy.forEach(e.declarationList.declarations,$g)}function yg(e,n){var t=__(e,n);return 4096&t.flags&&gt(e,Dy.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),t}function hg(e){my(e);var n,t=cm(e.expression);if(236===e.initializer.kind){var r=e.initializer.declarations[0];r&&Dy.isBindingPattern(r.name)&&gt(r.name,Dy.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),bg(e)}else{var a=e.initializer,i=__(a);185===a.kind||186===a.kind?gt(a,Dy.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):fl(32768&(n=sc(oc(t))).flags?ee:n,i)?qf(a,Dy.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):gt(a,Dy.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}t!==ce&&Jf(t,31522816)||gt(e.expression,Dy.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,qr(t)),$g(e.statement),e.locals&&z_(e)}function bg(e){var n=e.initializer;1<=n.declarations.length&&_g(n.declarations[0])}function Eg(e,n){return Tg(cm(e),e,!0,void 0!==n)}function Tg(e,n,t,r){return sa(e)?e:Sg(e,n,t,r,!0)||W}function Sg(e,n,t,r,a){if(e!==ce){var i=2<=P,o=!i&&R.downlevelIteration;if(i||o||r){var s=xg(e,i?n:void 0,r,!0,a);if(s||i)return s}var c=e,l=!1,u=!1;if(t){if(262144&c.flags){var d=e.types,p=Dy.filter(d,function(e){return!(68&e.flags)});p!==d&&(c=Qs(p,2))}else 68&c.flags&&(c=ce);if((u=c!==e)&&(P<1&&n&&(gt(n,Dy.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),32768&c.flags))return ee}if(!Yl(c)){if(n&&!l){var m=!!xg(e,void 0,r,!0,a);gt(n,!t||u?o?Dy.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:m?Dy.Diagnostics.Type_0_is_not_an_array_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:Dy.Diagnostics.Type_0_is_not_an_array_type:o?Dy.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:m?Dy.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:Dy.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,qr(c))}return u?ee:void 0}var f=yo(c,1);return u&&f?68&f.flags?ee:Qs([f,ee],2):f}Cg(n,e,r)}function xg(e,s,c,l,u){if(!sa(e))return Sd(e,function(e){var n=e;if(c){if(n.iteratedTypeOfAsyncIterable)return n.iteratedTypeOfAsyncIterable;if(Pa(e,Ls(!1))||Pa(e,Ns(!1)))return n.iteratedTypeOfAsyncIterable=e.typeArguments[0]}if(l){if(n.iteratedTypeOfIterable)return n.iteratedTypeOfIterable;if(Pa(e,Is(!1))||Pa(e,Os(!1)))return n.iteratedTypeOfIterable=e.typeArguments[0]}var t=c&&oa(e,Dy.getPropertyNameForKnownSymbolName("asyncIterator")),r=t||(l?oa(e,Dy.getPropertyNameForKnownSymbolName("iterator")):void 0);if(!sa(r)){var a=r?fo(r,0):void 0;if(Dy.some(a)){var i,o=Dg(Qs(Dy.map(a,Fo),2),s,!!t);return u&&s&&o&&yl(e,t?(i=o,Ps(Ls(!0),[i])):Gs(o),s),t?n.iteratedTypeOfAsyncIterable=o:n.iteratedTypeOfIterable=o}s&&(Cg(s,e,c),s=void 0)}})}function Cg(e,n,t){gt(e,t?Dy.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:Dy.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,qr(n))}function Dg(e,n,t){if(!sa(e)){var r=e;if(t?r.iteratedTypeOfAsyncIterator:r.iteratedTypeOfIterator)return t?r.iteratedTypeOfAsyncIterator:r.iteratedTypeOfIterator;if(Pa(e,(t?ks:Ms)(!1)))return t?r.iteratedTypeOfAsyncIterator=e.typeArguments[0]:r.iteratedTypeOfIterator=e.typeArguments[0];var a=oa(e,"next");if(!sa(a)){var i=a?fo(a,0):Dy.emptyArray;if(0!==i.length){var o=Qs(Dy.map(i,Fo),2);if(!(sa(o)||t&&sa(o=R_(o,n,Dy.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property)))){var s=o&&oa(o,"value");if(s)return t?r.iteratedTypeOfAsyncIterator=s:r.iteratedTypeOfIterator=s;n&&gt(n,t?Dy.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:Dy.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property)}}else n&&gt(n,t?Dy.Diagnostics.An_async_iterator_must_have_a_next_method:Dy.Diagnostics.An_iterator_must_have_a_next_method)}}}function Ag(e,n){if(!sa(e))return xg(e,void 0,n,!n,!1)||Dg(e,void 0,n)}function Lg(e){xy(e)||function(e){for(var n=e;n;){if(Dy.isFunctionLike(n))return Sy(e,Dy.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 231:if(e.label&&n.label.escapedText===e.label.escapedText){var t=226===e.kind&&!Dy.isIterationStatement(n.statement,!0);return!!t&&Sy(e,Dy.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 230:if(227===e.kind&&!e.label)return;break;default:if(Dy.isIterationStatement(n,!1)&&!e.label)return}n=n.parent}if(e.label){var r=227===e.kind?Dy.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:Dy.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Sy(e,r)}var r=227===e.kind?Dy.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:Dy.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;Sy(e,r)}(e)}function kg(e,n){var t=2==(3&Dy.getFunctionFlags(e))?F_(n):n;return!!t&&zf(t,4099)}function Ng(e){xy(e)||void 0===e.expression&&function(e,n,t,r,a){var i=Dy.getSourceFileOfNode(e);if(!by(i)){var o=Dy.getSpanOfTokenAtPosition(i,e.pos);Gn.add(Dy.createFileDiagnostic(i,Dy.textSpanEnd(o),0,n,t,r,a))}}(e,Dy.Diagnostics.Line_break_not_permitted_here),e.expression&&__(e.expression)}function Ig(t){var e,r=Xo(t.symbol,1),a=Xo(t.symbol,0),i=yo(t,0),o=yo(t,1);if(i||o){Dy.forEach(Wi(t),function(e){var n=wa(e);p(e,n,t,a,i,0),p(e,n,t,r,o,1)});var n=t.symbol.valueDeclaration;if(1&Dy.getObjectFlags(t)&&Dy.isClassLike(n))for(var s=0,c=n.members;s<c.length;s++){var l=c[s];if(!Dy.hasModifier(l,32)&&_i(l)){var u=vr(l),d=wa(u);p(u,d,t,a,i,0),p(u,d,t,r,o,1)}}}function p(n,e,t,r,a,i){if(a&&!Dy.isKnownSymbol(n)){var o,s=n.valueDeclaration,c=s&&Dy.getNameOfDeclaration(s);if(1!==i||(c?kp(c):Ip(n.escapedName)))s&&c&&(202===s.kind||147===c.kind||n.parent===t.symbol)?o=s:r?o=r:2&Dy.getObjectFlags(t)&&(o=Dy.forEach(Ja(t),function(e){return qi(e,n.escapedName)&&yo(e,i)})?void 0:t.symbol.declarations[0]),o&&!fl(e,a)&&gt(o,0===i?Dy.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:Dy.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,Ur(n),qr(e),qr(a))}}i&&o&&!(e=r||a)&&2&Dy.getObjectFlags(t)&&(e=Dy.forEach(Ja(t),function(e){return yo(e,0)&&yo(e,1)})?void 0:t.symbol.declarations[0]),e&&!fl(o,i)&&gt(e,Dy.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1,qr(o),qr(i))}function Mg(e,n){switch(e.escapedText){case"any":case"unknown":case"number":case"boolean":case"string":case"symbol":case"void":case"object":gt(e,n,e.escapedText)}}function Og(e){if(e)for(var n=!1,t=0;t<e.length;t++){var r=e[t];if(g_(r),L){r.default?n=!0:n&&gt(r,Dy.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var a=0;a<t;a++)e[a].symbol===r.symbol&&gt(r.name,Dy.Diagnostics.Duplicate_identifier_0,Dy.declarationNameToString(r.name))}}}function wg(e){if(1!==e.declarations.length){var n,t=Lt(e);if(!t.typeParametersChecked){t.typeParametersChecked=!0;var r=(n=e,Dy.filter(n.declarations,function(e){return 238===e.kind||239===e.kind}));if(r.length<=1)return;if(!function(e,n){for(var t=Dy.length(n),r=Lo(n),a=0,i=e;a<i.length;a++){var o=i[a],s=Dy.getEffectiveTypeParameterDeclarations(o),c=s.length;if(c<r||t<c)return!1;for(var l=0;l<c;l++){var u=s[l],d=n[l];if(u.name.escapedText!==d.symbol.escapedName)return!1;var p=Dy.getEffectiveConstraintOfTypeParameter(u),m=p&&Fc(p),f=Yi(d);if(m&&(!f||!ul(m,f)))return!1;var _=u.default&&Fc(u.default),g=io(d);if(_&&g&&!ul(_,g))return!1}}return!0}(r,ri(e).localTypeParameters))for(var a=Ur(e),i=0,o=r;i<o.length;i++)gt(o[i].name,Dy.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,a)}}}function Pg(e){var n,t,r;n=e,t=Dy.getSourceFileOfNode(n),function(e){var n=!1,t=!1;if(!$v(e)&&e.heritageClauses)for(var r=0,a=e.heritageClauses;r<a.length;r++){var i=a[r];if(85===i.token){if(n)return Ey(i,Dy.Diagnostics.extends_clause_already_seen);if(t)return Ey(i,Dy.Diagnostics.extends_clause_must_precede_implements_clause);if(1<i.types.length)return Ey(i.types[1],Dy.Diagnostics.Classes_can_only_extend_a_single_class);n=!0}else{if(Dy.Debug.assert(108===i.token),t)return Ey(i,Dy.Diagnostics.implements_clause_already_seen);t=!0}sy(i)}}(n)||ty(n.typeParameters,t),U_(e),e.name&&(Mg(e.name,Dy.Diagnostics.Class_name_cannot_be_0),lg(e,e.name),ug(e,e.name),4194304&e.flags||(r=e.name,1===P&&"Object"===r.escapedText&&C!==Dy.ModuleKind.ES2015&&C!==Dy.ModuleKind.ESNext&&gt(r,Dy.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,Dy.ModuleKind[C]))),Og(Dy.getEffectiveTypeParameterDeclarations(e)),P_(e);var a=vr(e),i=ri(a),o=Ei(i),s=wa(a);wg(a),function(e){var n,t;(t=n||(n={}))[t.Getter=1]="Getter",t[t.Setter=2]="Setter",t[t.Method=4]="Method",t[t.Property=3]="Property";for(var r=Dy.createUnderscoreEscapedMap(),a=Dy.createUnderscoreEscapedMap(),i=0,o=e.members;i<o.length;i++){var s=o[i];if(155===s.kind)for(var c=0,l=s.parameters;c<l.length;c++){var u=l[c];Dy.isParameterPropertyDeclaration(u)&&!Dy.isBindingPattern(u.name)&&f(r,u.name,u.name.escapedText,3)}else{var d=Dy.hasModifier(s,32)?a:r,p=s.name,m=p&&Dy.getPropertyNameForPropertyNameNode(p);if(p&&m)switch(s.kind){case 156:f(d,p,m,1);break;case 157:f(d,p,m,2);break;case 152:f(d,p,m,3);break;case 154:f(d,p,m,4)}}}function f(e,n,t,r){var a=e.get(t);a?4&a?4!==r&&gt(n,Dy.Diagnostics.Duplicate_identifier_0,Dy.getTextOfNode(n)):a&r?gt(n,Dy.Diagnostics.Duplicate_identifier_0,Dy.getTextOfNode(n)):e.set(t,a|r):e.set(t,r)}}(e),4194304&e.flags||function(e){for(var n=0,t=e.members;n<t.length;n++){var r=t[n],a=r.name;if(Dy.hasModifier(r,32)&&a){var i=Dy.getPropertyNameForPropertyNameNode(a);switch(i){case"name":case"length":case"caller":case"arguments":case"prototype":gt(a,Dy.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,i,Zr(vr(e)))}}}}(e);var c=Dy.getEffectiveBaseTypeNode(e);if(c){P<2&&Qv(c.parent,1);var l=Ja(i);if(l.length&&L){var u=l[0],d=za(i),p=so(d);!function(e,n){var t=fo(e,1);if(t.length){var r=t[0].declaration;if(r&&Dy.hasModifier(r,8)){var a=Dy.getClassLikeDeclarationOfSymbol(e.symbol);dv(n,a)||gt(n,Dy.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,er(e.symbol))}}}(p,c),$g(c.expression);var m=Dy.getClassExtendsHeritageElement(e);if(m&&m!==c&&__(m.expression),Dy.some(c.typeArguments)){Dy.forEach(c.typeArguments,$g);for(var f=0,_=Wa(p,c.typeArguments,c);f<_.length&&A_(c,_[f].typeParameters);f++);}if(yl(o,T=Ei(u,i.thisType),void 0)||Rg(e,o,T,Dy.Diagnostics.Class_0_incorrectly_extends_base_class_1),yl(s,ll(p),e.name||e,Dy.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1),2162688&d.flags&&!ja(s)&&gt(e.name||e,Dy.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any),!(p.symbol&&32&p.symbol.flags||2162688&d.flags)){var g=qa(p,c.typeArguments,c);Dy.forEach(g,function(e){return!of(e.declaration)&&Fo(e)!==u})&&gt(c.expression,Dy.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(e,n){for(var t=Ji(n),r=0,a=t;r<a.length;r++){var i=a[r],o=Fg(i);if(!(4194304&o.flags)){var s=Fg(qi(e,o.escapedName)),c=Dy.getDeclarationModifierFlagsFromSymbol(o);if(Dy.Debug.assert(!!s,"derived should point to something, even if it is the base class' declaration."),s)if(s===o){var l=Dy.getClassLikeDeclarationOfSymbol(e.symbol);!(128&c)||l&&Dy.hasModifier(l,128)||(207===l.kind?gt(l,Dy.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ur(i),qr(n)):gt(l,Dy.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,qr(e),Ur(i),qr(n)))}else{var u=Dy.getDeclarationModifierFlagsFromSymbol(s);if(8&c||8&u)continue;if(im(o)||98308&o.flags&&98308&s.flags)continue;var d=void 0;d=im(o)?98304&s.flags?Dy.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:Dy.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:98304&o.flags?Dy.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Dy.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function,gt(Dy.getNameOfDeclaration(s.valueDeclaration)||s.valueDeclaration,d,qr(n),Ur(o),qr(e))}}}}(i,u)}}var v=Dy.getClassImplementsHeritageClauseElements(e);if(v)for(var y=0,h=v;y<h.length;y++){var b=h[y];if(Dy.isEntityNameExpression(b.expression)||gt(b.expression,Dy.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),k_(b),L){var E=Fc(b);if(E!==J)if(Xa(E)){var T,S=E.symbol&&32&E.symbol.flags?Dy.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:Dy.Diagnostics.Class_0_incorrectly_implements_interface_1;yl(o,T=Ei(E,i.thisType),void 0)||Rg(e,o,T,S)}else gt(b,Dy.Diagnostics.A_class_may_only_implement_another_class_or_interface)}}L&&(Ig(i),E_(e),function(e){var n,t,r,a;if(k&&D&&!(4194304&e.flags))for(var i=Sr(e),o=0,s=e.members;o<s.length;o++){var c=s[o];if(Gg(c)){var l=c.name;if(Dy.isIdentifier(l)){var u=wa(vr(c));3&u.flags||8192&du(u)||i&&(n=l,t=u,r=i,a=void 0,((a=Dy.createPropertyAccess(Dy.createThis(),n)).expression.parent=a).parent=r,a.flowNode=r.returnFlowNode,!(8192&du(Fd(a,t,_u(t)))))||gt(c.name,Dy.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Dy.declarationNameToString(l))}}}}(e))}function Rg(e,a,i,n){for(var o=!1,t=function(e){if(Dy.hasStaticModifier(e))return"continue";var n=e.name&&fv(e.name)||fv(e);if(n){var t=po(a,n.escapedName),r=po(i,n.escapedName);t&&r&&(yl(wa(t),wa(r),e.name||e,void 0,function(){return Dy.chainDiagnosticMessages(void 0,Dy.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ur(n),qr(a),qr(i))})||(o=!0))}},r=0,s=e.members;r<s.length;r++)t(s[r]);o||yl(a,i,e.name||e,n)}function Fg(e){return 1&Dy.getCheckFlags(e)?e.target:e}function Gg(e){return 152===e.kind&&!Dy.hasModifier(e,160)&&!e.exclamationToken&&!e.initializer}function Vg(e){if($v(e)||function(e){var n=!1;if(e.heritageClauses)for(var t=0,r=e.heritageClauses;t<r.length;t++){var a=r[t];if(85!==a.token)return Dy.Debug.assert(108===a.token),Ey(a,Dy.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(n)return Ey(a,Dy.Diagnostics.extends_clause_already_seen);n=!0,sy(a)}}(e),Og(e.typeParameters),L){Mg(e.name,Dy.Diagnostics.Interface_name_cannot_be_0),P_(e);var n=vr(e);if(wg(n),e===Dy.getDeclarationOfKind(n,239)){var t=ri(n),r=Ei(t);if(function(n,e){var t=Ja(n);if(t.length<2)return!0;var r=Dy.createUnderscoreEscapedMap();Dy.forEach(di(n).declaredProperties,function(e){r.set(e.escapedName,{prop:e,containingType:n})});for(var a=!0,i=0,o=t;i<o.length;i++)for(var s=o[i],c=0,l=Ji(Ei(s,n.thisType));c<l.length;c++){var u=l[c],d=r.get(u.escapedName);if(d){if(d.containingType!==n&&0===Wl(d.prop,u,dl)){a=!1;var p=qr(d.containingType),m=qr(s),f=Dy.chainDiagnosticMessages(void 0,Dy.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Ur(u),p,m);f=Dy.chainDiagnosticMessages(f,Dy.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,qr(n),p,m),Gn.add(Dy.createDiagnosticForNodeFromMessageChain(e,f))}}else r.set(u.escapedName,{prop:u,containingType:s})}return a}(t,e.name)){for(var a=0,i=Ja(t);a<i.length;a++)yl(r,Ei(i[a],t.thisType),e.name,Dy.Diagnostics.Interface_0_incorrectly_extends_interface_1);Ig(t)}}b_(e)}Dy.forEach(Dy.getInterfaceBaseTypeNodes(e),function(e){Dy.isEntityNameExpression(e.expression)||gt(e.expression,Dy.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),k_(e)}),Dy.forEach(e.members,$g),L&&(E_(e),z_(e))}function Bg(e){var n=kt(e);if(!(16384&n.flags)){n.flags|=16384;for(var t=0,r=0,a=e.members;r<a.length;r++){var i=a[r],o=Kg(i,t);t="number"==typeof(kt(i).enumMemberValue=o)?o+1:void 0}}}function Kg(e,n){if(la(e.name))gt(e.name,Dy.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var t=Dy.getTextOfPropertyName(e.name);Ip(t)&&!Np(t)&&gt(e.name,Dy.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return e.initializer?function(u){var e=Za(vr(u.parent)),n=Dy.isEnumConst(u.parent),t=u.initializer,r=1!==e||Qa(u)?function e(n){switch(n.kind){case 200:var t=e(n.operand);if("number"==typeof t)switch(n.operator){case 37:return t;case 38:return-t;case 52:return~t}break;case 202:var r=e(n.left),a=e(n.right);if("number"==typeof r&&"number"==typeof a)switch(n.operatorToken.kind){case 49:return r|a;case 48:return r&a;case 46:return r>>a;case 47:return r>>>a;case 45:return r<<a;case 50:return r^a;case 39:return r*a;case 41:return r/a;case 37:return r+a;case 38:return r-a;case 42:return r%a;case 40:return Math.pow(r,a)}else if("string"==typeof r&&"string"==typeof a&&37===n.operatorToken.kind)return r+a;break;case 9:return n.text;case 8:return Cy(n),+n.text;case 193:return e(n.expression);case 71:var i=n;return Np(i.escapedText)?+i.escapedText:Dy.nodeIsMissing(n)?0:d(n,vr(u.parent),i.escapedText);case 188:case 187:var o=n;if(jg(o)){var s=m_(o.expression);if(s.symbol&&384&s.symbol.flags){var c=void 0;if(187===o.kind)c=o.name.escapedText;else{var l=o.argumentExpression;Dy.Debug.assert(Dy.isLiteralExpression(l)),c=Dy.escapeLeadingUnderscores(l.text)}return d(n,s.symbol,c)}}}}(t):void 0;if(void 0!==r)n&&"number"==typeof r&&!isFinite(r)&&gt(t,isNaN(r)?Dy.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:Dy.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===e)return gt(t,Dy.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;n?gt(t,Dy.Diagnostics.In_const_enum_declarations_member_initializer_must_be_constant_expression):4194304&u.parent.flags?gt(t,Dy.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):yl(__(t),ri(vr(u.parent)),t,void 0)}return r;function d(e,n,t){var r=n.exports.get(t);if(r){var a=r.valueDeclaration;if(a!==u)return Mt(a,u)?Gv(a):(gt(e,Dy.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}}}(e):4194304&e.parent.flags&&!Dy.isEnumConst(e.parent)?void 0:void 0!==n?n:void gt(e.name,Dy.Diagnostics.Enum_member_must_have_initializer)}function jg(e){return 71===e.kind||187===e.kind&&jg(e.expression)||188===e.kind&&jg(e.expression)&&9===e.argumentExpression.kind}function Hg(e){if(L){var n=Dy.isGlobalScopeAugmentation(e),t=4194304&e.flags;n&&!t&&gt(e.name,Dy.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var r=Dy.isAmbientModule(e);if(Xg(e,r?Dy.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:Dy.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;$v(e)||t||9!==e.name.kind||Sy(e.name,Dy.Diagnostics.Only_ambient_modules_can_use_quoted_names),Dy.isIdentifier(e.name)&&(lg(e,e.name),ug(e,e.name)),P_(e);var a=vr(e);if(512&a.flags&&1<a.declarations.length&&!t&&Oy(e,!!R.preserveConstEnums||!!R.isolatedModules)){var i=function(e){for(var n=0,t=e.declarations;n<t.length;n++){var r=t[n];if((238===r.kind||237===r.kind&&Dy.nodeIsPresent(r.body))&&!(4194304&r.flags))return r}}(a);i&&(Dy.getSourceFileOfNode(e)!==Dy.getSourceFileOfNode(i)?gt(e.name,Dy.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):e.pos<i.pos&&gt(e.name,Dy.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var o=Dy.getDeclarationOfKind(a,238);o&&(l=e,u=o,d=Dy.getEnclosingBlockScopeContainer(l),p=Dy.getEnclosingBlockScopeContainer(u),Nt(d)?Nt(p):!Nt(p)&&d===p)&&(kt(e).flags|=32768)}if(r)if(Dy.isExternalModuleAugmentation(e)){if((n||33554432&vr(e).flags)&&e.body)for(var s=0,c=e.body.statements;s<c.length;s++)Ug(c[s],n)}else Nt(e.parent)?n?gt(e.name,Dy.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Dy.isExternalModuleNameRelative(Dy.getTextOfIdentifierOrLiteral(e.name))&&gt(e.name,Dy.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):gt(e.name,n?Dy.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:Dy.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}var l,u,d,p;e.body&&($g(e.body),Dy.isGlobalScopeAugmentation(e)||z_(e))}function Ug(e,n){switch(e.kind){case 217:for(var t=0,r=e.declarationList.declarations;t<r.length;t++)Ug(r[t],n);break;case 252:case 253:Ey(e,Dy.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 246:case 247:Ey(e,Dy.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 184:case 235:var a=e.name;if(Dy.isBindingPattern(a)){for(var i=0,o=a.elements;i<o.length;i++)Ug(o[i],n);break}case 238:case 241:case 237:case 239:case 242:case 240:if(n)return;var s=vr(e);if(s){var c=!(33554432&s.flags);c||(c=Dy.isExternalModuleAugmentation(s.parent.declarations[0]))}}}function Wg(e){switch(e.kind){case 71:return e;case 146:for(;71!==(e=e.left).kind;);return e;case 187:for(;71!==(e=e.expression).kind;);return e}}function qg(e){var n=Dy.getExternalModuleName(e);if(!n||Dy.nodeIsMissing(n))return!1;if(!Dy.isStringLiteral(n))return gt(n,Dy.Diagnostics.String_literal_expected),!1;var t=243===e.parent.kind&&Dy.isAmbientModule(e.parent.parent);return 277===e.parent.kind||t?!(t&&Dy.isExternalModuleNameRelative(n.text)&&!Yr(e)&&(gt(e,Dy.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),1)):(gt(n,253===e.kind?Dy.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:Dy.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1)}function zg(e){var n=vr(e),t=Yt(n);if(t!==H){var r=(68268991&n.flags?67220415:0)|(67897832&n.flags?67897832:0)|(1920&n.flags?1920:0);t.flags&r&&gt(e,255===e.kind?Dy.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:Dy.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,Ur(n)),!R.isolatedModules||255!==e.kind||67220415&t.flags||4194304&e.flags||gt(e,Dy.Diagnostics.Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided)}}function Jg(e){lg(e,e.name),ug(e,e.name),zg(e)}function Xg(e,n){var t=277===e.parent.kind||243===e.parent.kind||242===e.parent.kind;return t||Ey(e,n),!t}function Yg(e){if(zg(e),Dy.getEmitDeclarations(R)&&ea(e.propertyName||e.name,!0),!e.parent.parent.moduleSpecifier){var n=e.propertyName||e.name,t=Ot(n,n.escapedText,70107135,void 0,void 0,!0);t&&(t===T||Nt(ia(t.declarations[0])))?gt(n,Dy.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,Dy.idText(n)):Qt(e)}}function Qg(e){var n,t=vr(e),r=Lt(t);if(!r.exportsChecked){var a=t.exports.get("export=");if(a&&(n=t,Dy.forEachEntry(n.exports,function(e,n){return"export="!==n}))){var i=Kt(a)||a.valueDeclaration;Yr(i)||Dy.isInJSFile(i)||gt(i,Dy.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=mr(t);o&&o.forEach(function(e,n){var t=e.declarations,r=e.flags;if("__export"!==n&&!(1984&r)){var a=Dy.countWhere(t,mt);if(!(524288&r&&a<=2)&&1<a)for(var i=0,o=t;i<o.length;i++){var s=o[i];Zg(s)&&Gn.add(Dy.createDiagnosticForNode(s,Dy.Diagnostics.Cannot_redeclare_exported_variable_0,Dy.unescapeLeadingUnderscores(n)))}}}),r.exportsChecked=!0}}function Zg(e){return 237!==e.kind&&154!==e.kind||!!e.body}function $g(e){if(e){Dy.isInJSFile(e)&&Dy.forEach(e.jsDoc,function(e){var n=e.tags;return Dy.forEach(n,$g)});var n,t,r,a,i,o,s,c,l,u,d,p,m,f,_,g,v,y,h=e.kind;if(w)switch(h){case 242:case 238:case 239:case 237:w.throwIfCancellationRequested()}switch(h){case 148:return g_(e);case 149:return v_(e);case 152:case 151:return T_(e);case 163:case 164:case 158:case 159:case 160:return h_(e);case 154:case 153:return gy(y=e)||ly(y.name),q_(y),void(Dy.hasModifier(y,128)&&154===y.kind&&y.body&&gt(y,Dy.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Dy.declarationNameToString(y.name)));case 155:return S_(e);case 156:case 157:return x_(e);case 162:return k_(e);case 161:return function(e){var n=function(e){switch(e.parent.kind){case 195:case 158:case 237:case 194:case 163:case 154:case 153:var n=e.parent;if(e===n.type)return n}}(e);if(n){var t=Ro(No(n));if(t){$g(e.type);var r=e.parameterName;if(Dy.isThisTypePredicate(t))Rc(r);else if(0<=t.parameterIndex)n.parameters[t.parameterIndex].dotDotDotToken?gt(r,Dy.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):yl(t.type,_v(n.parameters[t.parameterIndex]),e.type,void 0,function(){return Dy.chainDiagnosticMessages(void 0,Dy.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(r){for(var a=!1,i=0,o=n.parameters;i<o.length;i++){var s=o[i].name;if(Dy.isBindingPattern(s)&&y_(s,r,t.parameterName)){a=!0;break}}a||gt(e.parameterName,Dy.Diagnostics.Cannot_find_parameter_0,t.parameterName)}}}else gt(e,Dy.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(e);case 165:return void hs(e);case 166:return v=e,Dy.forEach(v.members,$g),void(L&&(Ig(xc(v)),E_(v),b_(v)));case 167:return void $g(e.elementType);case 168:return function(e){for(var n=e.elementTypes,t=!1,r=0;r<n.length;r++){var a=n[r];if(170===a.kind){if(r!==n.length-1){Sy(a,Dy.Diagnostics.A_rest_element_must_be_last_in_a_tuple_type);break}Jl(Fc(a))||gt(a,Dy.Diagnostics.A_rest_element_type_must_be_an_array_type)}else if(169===a.kind)t=!0;else if(t){Sy(a,Dy.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}ny(e.elementTypes),Dy.forEach(e.elementTypes,$g)}(e);case 171:case 172:return g=e,void Dy.forEach(g.types,$g);case 175:case 169:case 170:return $g(e.type);case 176:return void Rc(e);case 177:return I_(e);case 173:return _=e,void Dy.forEachChild(_,$g);case 174:return f=e,Dy.findAncestor(f,function(e){return e.parent&&173===e.parent.kind&&e.parent.extendsType===e})||Sy(f,Dy.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),$g(f.typeParameter),void z_(f);case 181:return $g((m=e).argument),void Fc(m);case 293:return function(e){var n=Dy.getJSDocHost(e);if(Dy.isClassDeclaration(n)||Dy.isClassExpression(n)){var t=Dy.getJSDocTags(n).filter(Dy.isJSDocAugmentsTag);Dy.Debug.assert(0<t.length),1<t.length&&gt(t[1],Dy.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var r=W_(e.class.expression),a=Dy.getClassExtendsHeritageElement(n);if(a){var i=W_(a.expression);i&&r.escapedText!==i.escapedText&&gt(r,Dy.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,Dy.idText(e.tagName),Dy.idText(r),Dy.idText(i))}}else gt(n,Dy.Diagnostics.JSDoc_0_is_not_attached_to_a_class,Dy.idText(e.tagName))}(e);case 302:case 295:return(p=e).typeExpression||gt(p.name,Dy.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),p.name&&Mg(p.name,Dy.Diagnostics.Type_alias_name_cannot_be_0),void $g(p.typeExpression);case 301:return function(e){$g(e.constraint);for(var n=0,t=e.typeParameters;n<t.length;n++)$g(t[n])}(e);case 300:return void $g(e.typeExpression);case 297:return function(e){if($g(e.typeExpression),!Dy.getParameterSymbolFromJSDoc(e)){var n=Dy.getHostSignatureFromJSDoc(e);if(n){var t=Dy.getJSDocTags(n).filter(Dy.isJSDocParameterTag).indexOf(e);if(-1<t&&t<n.parameters.length&&Dy.isBindingPattern(n.parameters[t].name))return;Mo(n)?Dy.findLast(Dy.getJSDocTags(n),Dy.isJSDocParameterTag)===e&&e.typeExpression&&e.typeExpression.type&&!Jl(Fc(e.typeExpression.type))&&gt(e.name,Dy.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,Dy.idText(146===e.name.kind?e.name.right:e.name)):gt(e.name,Dy.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,Dy.idText(146===e.name.kind?e.name.right:e.name))}}}(e);case 287:h_(e);case 285:case 284:case 282:case 283:case 290:return ev(e),void Dy.forEachChild(e,$g);case 288:return void function(e){ev(e),$g(e.type);var n=e.parent;if(Dy.isParameter(n)&&Dy.isJSDocFunctionType(n.parent))return Dy.last(n.parent.parameters)!==n&&gt(e,Dy.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);Dy.isJSDocTypeExpression(n)||gt(e,Dy.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var t=e.parent.parent;if(!Dy.isJSDocParameterTag(t))return gt(e,Dy.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=Dy.getParameterSymbolFromJSDoc(t);if(r){var a=Dy.getHostSignatureFromJSDoc(t);a&&Dy.last(a.parameters).symbol===r||gt(e,Dy.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}(e);case 281:return $g(e.type);case 178:return $g((d=e).objectType),$g(d.indexType),void N_(fc(d),d);case 179:return $g((u=e).typeParameter),$g(u.type),F&&!u.type&&Du(u,W),void yl(Pi(_c(u)),me,Dy.getEffectiveConstraintOfTypeParameter(u.typeParameter));case 237:return l=e,void(L&&(q_(l),uy(l),lg(l,l.name),ug(l,l.name)));case 216:case 243:return ig(e);case 217:return vg(e);case 219:return xy(c=e),void __(c.expression);case 220:return xy(s=e),yg(s.expression),$g(s.thenStatement),218===s.thenStatement.kind&&gt(s.thenStatement,Dy.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),void $g(s.elseStatement);case 221:return xy(o=e),$g(o.statement),void yg(o.expression);case 222:return xy(i=e),yg(i.expression),void $g(i.statement);case 223:return xy(a=e)||a.initializer&&236===a.initializer.kind&&hy(a.initializer),a.initializer&&(236===a.initializer.kind?Dy.forEach(a.initializer.declarations,_g):__(a.initializer)),a.condition&&yg(a.condition),a.incrementor&&__(a.incrementor),$g(a.statement),void(a.locals&&z_(a));case 224:return hg(e);case 225:return function(e){if(my(e),e.awaitModifier?2==(6&Dy.getFunctionFlags(Dy.getContainingFunction(e)))&&P<6&&Qv(e,16384):R.downlevelIteration&&P<2&&Qv(e,256),236===e.initializer.kind)bg(e);else{var n=e.initializer,t=Eg(e.expression,e.awaitModifier);if(185===n.kind||186===n.kind)e_(n,t||J);else{var r=__(n);qf(n,Dy.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),t&&hl(t,r,n,e.expression)}}$g(e.statement),e.locals&&z_(e)}(e);case 226:case 227:return Lg(e);case 228:return function(e){if(!xy(e)){var n=Dy.getContainingFunction(e);if(n){var t=Fo(No(n)),r=Dy.getFunctionFlags(n),a=1&r;if(k||e.expression||32768&t.flags){var i=e.expression?o_(e.expression):Y;if(a)return;if(157===n.kind)e.expression&&gt(e,Dy.Diagnostics.Setters_cannot_return_a_value);else if(155===n.kind)e.expression&&!hl(i,t,e,e.expression)&&gt(e,Dy.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Go(n))if(2&r){var o=F_(t),s=G_(i,e,Dy.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);o&&yl(s,o,e)}else hl(i,t,e,e.expression)}else 155===n.kind||!R.noImplicitReturns||kg(n,t)||a||gt(e,Dy.Diagnostics.Not_all_code_paths_return_a_value)}else Ey(e,Dy.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(e);case 229:return function(e){xy(e)||16384&e.flags&&Ey(e,Dy.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),__(e.expression);var n=Dy.getSourceFileOfNode(e);if(!by(n)){var t=Dy.getSpanOfTokenAtPosition(n,e.pos).start;Ty(n,t,e.statement.pos-t,Dy.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(e);case 230:return function(o){var s;xy(o);var c=!1,l=__(o.expression),u=tu(l);Dy.forEach(o.caseBlock.clauses,function(e){if(270===e.kind&&!c)if(void 0===s)s=e;else{var n=Dy.getSourceFileOfNode(o),t=Dy.skipTrivia(n.text,e.pos);Ty(n,t,(0<e.statements.length?e.statements[0].pos:e.end)-t,Dy.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0}if(L&&269===e.kind){var r=__(e.expression),a=tu(r),i=l;a&&u||(r=a?ru(r):r,i=ru(l)),n_(i,r)||Cl(r,i,e.expression,void 0)}Dy.forEach(e.statements,$g)}),o.caseBlock.locals&&z_(o.caseBlock)}(e);case 231:return xy(r=e)||Dy.findAncestor(r.parent,function(e){return Dy.isFunctionLike(e)?"quit":231===e.kind&&e.label.escapedText===r.label.escapedText&&(Sy(r.label,Dy.Diagnostics.Duplicate_label_0,Dy.getTextOfNode(r.label)),!0)}),void $g(r.statement);case 232:return Ng(e);case 233:return function(e){xy(e),ig(e.tryBlock);var n=e.catchClause;if(n){if(n.variableDeclaration)if(n.variableDeclaration.type)Ey(n.variableDeclaration.type,Dy.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(n.variableDeclaration.initializer)Ey(n.variableDeclaration.initializer,Dy.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var t=n.block.locals;t&&Dy.forEachKey(n.locals,function(e){var n=t.get(e);n&&0!=(2&n.flags)&&Sy(n.valueDeclaration,Dy.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,e)})}ig(n.block)}e.finallyBlock&&ig(e.finallyBlock)}(e);case 235:return _g(e);case 184:return gg(e);case 238:return(t=e).name||Dy.hasModifier(t,512)||Ey(t,Dy.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),Pg(t),Dy.forEach(t.members,$g),void z_(t);case 239:return Vg(e);case 240:return $v(n=e),Mg(n.name,Dy.Diagnostics.Type_alias_name_cannot_be_0),Og(n.typeParameters),$g(n.type),void z_(n);case 241:return function(e){if(L){$v(e),Mg(e.name,Dy.Diagnostics.Enum_name_cannot_be_0),lg(e,e.name),ug(e,e.name),P_(e),Bg(e);var n=Dy.isEnumConst(e);R.isolatedModules&&n&&4194304&e.flags&&gt(e.name,Dy.Diagnostics.Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided);var t=vr(e);if(e===Dy.getDeclarationOfKind(t,e.kind)){1<t.declarations.length&&Dy.forEach(t.declarations,function(e){Dy.isEnumDeclaration(e)&&Dy.isEnumConst(e)!==n&&gt(Dy.getNameOfDeclaration(e),Dy.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var r=!1;Dy.forEach(t.declarations,function(e){if(241!==e.kind)return!1;var n=e;if(!n.members.length)return!1;var t=n.members[0];t.initializer||(r?gt(t.name,Dy.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):r=!0)})}}}(e);case 242:return Hg(e);case 247:return function(e){if(!Xg(e,Dy.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(!$v(e)&&Dy.hasModifiers(e)&&Ey(e,Dy.Diagnostics.An_import_declaration_cannot_have_modifiers),qg(e))){var n=e.importClause;n&&(n.name&&Jg(n),n.namedBindings&&(249===n.namedBindings.kind?Jg(n.namedBindings):rr(e,e.moduleSpecifier)&&Dy.forEach(n.namedBindings.elements,Jg)))}}(e);case 246:return function(e){if(!Xg(e,Dy.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&($v(e),Dy.isInternalModuleImportEqualsDeclaration(e)||qg(e)))if(Jg(e),Dy.hasModifier(e,1)&&Qt(e),257!==e.moduleReference.kind){var n=Yt(vr(e));if(n!==H){if(67220415&n.flags){var t=Wg(e.moduleReference);1920&nr(t,67221439).flags||gt(t,Dy.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Dy.declarationNameToString(t))}67897832&n.flags&&Mg(e.name,Dy.Diagnostics.Import_name_cannot_be_0)}}else C>=Dy.ModuleKind.ES2015&&!(4194304&e.flags)&&Sy(e,Dy.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)}(e);case 253:return function(e){if(!Xg(e,Dy.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!$v(e)&&Dy.hasModifiers(e)&&Ey(e,Dy.Diagnostics.An_export_declaration_cannot_have_modifiers),!e.moduleSpecifier||qg(e)))if(e.exportClause){Dy.forEach(e.exportClause.elements,Yg);var n=243===e.parent.kind&&Dy.isAmbientModule(e.parent.parent),t=!n&&243===e.parent.kind&&!e.moduleSpecifier&&4194304&e.flags;277===e.parent.kind||n||t||gt(e,Dy.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var r=rr(e,e.moduleSpecifier);r&&lr(r)&&gt(e.moduleSpecifier,Dy.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ur(r)),C!==Dy.ModuleKind.System&&C!==Dy.ModuleKind.ES2015&&C!==Dy.ModuleKind.ESNext&&Qv(e,32768)}}(e);case 252:return function(e){if(!Xg(e,Dy.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var n=277===e.parent.kind?e.parent:e.parent.parent;242!==n.kind||Dy.isAmbientModule(n)?(!$v(e)&&Dy.hasModifiers(e)&&Ey(e,Dy.Diagnostics.An_export_assignment_cannot_have_modifiers),71===e.expression.kind?(Qt(e),Dy.getEmitDeclarations(R)&&ea(e.expression,!0)):o_(e.expression),Qg(n),4194304&e.flags&&!Dy.isEntityNameExpression(e.expression)&&Sy(e.expression,Dy.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!e.isExportEquals||4194304&e.flags||(C>=Dy.ModuleKind.ES2015?Sy(e,Dy.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):C===Dy.ModuleKind.System&&Sy(e,Dy.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):e.isExportEquals?gt(e,Dy.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):gt(e,Dy.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(e);case 218:case 234:return void xy(e);case 256:return void U_(e)}}}function ev(e){Dy.isInJSFile(e)||Sy(e,Dy.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function nv(e){if(en){var n=""+Iy(e);en.set(n,e)}}function tv(){en.forEach(function(e){switch(e.kind){case 194:case 195:case 154:case 153:!function(e){Dy.Debug.assert(154!==e.kind||Dy.isObjectLiteralMethod(e));var n=Dy.getFunctionFlags(e),t=Kf(e,n);if(0==(1&n)&&Vf(e,t),e.body)if(Dy.getEffectiveReturnTypeNode(e)||Fo(No(e)),216===e.body.kind)$g(e.body);else{var r=__(e.body);t&&hl(2==(3&n)?G_(r,e.body,Dy.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):r,t,e.body,e.body)}}(e);break;case 156:case 157:x_(e);break;case 207:t=e,Dy.forEach(t.members,$g),z_(t);break;case 259:tm(e,0);break;case 258:tm((n=e).openingElement,0),Fp(n.closingElement.tagName)?jp(n.closingElement):__(n.closingElement.tagName)}var n,t})}function rv(e){Dy.performance.mark("beforeCheck"),function(e){var n,t=kt(e);if(!(1&t.flags)){if(Dy.skipTypeChecking(e,R))return;4194304&(n=e).flags&&function(e){for(var n=0,t=e.statements;n<t.length;n++){var r=t[n];if((Dy.isDeclaration(r)||217===r.kind)&&(239!==(a=r).kind&&240!==a.kind&&247!==a.kind&&246!==a.kind&&253!==a.kind&&252!==a.kind&&245!==a.kind&&!Dy.hasModifier(a,515)&&Ey(a,Dy.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)))return}var a}(n),Dy.clear(Pn),Dy.clear(Rn),en=Dy.createMap(),Dy.forEach(e.statements,$g),tv(),Dy.isExternalOrCommonJsModule(e)&&z_(e),e.isDeclarationFile||!R.noUnusedLocals&&!R.noUnusedParameters||J_(iv(e),function(e,n,t){!Dy.containsParseError(e)&&av(n)&&Gn.add(t)}),en=void 0,Dy.isExternalOrCommonJsModule(e)&&Qg(e),Pn.length&&(Dy.forEach(Pn,sg),Dy.clear(Pn)),Rn.length&&(Dy.forEach(Rn,cg),Dy.clear(Rn)),t.flags|=1}}(e),Dy.performance.mark("afterCheck"),Dy.performance.measure("Check","beforeCheck","afterCheck")}function av(e){switch(e){case 0:return!!R.noUnusedLocals;case 1:return!!R.noUnusedParameters;default:return Dy.Debug.assertNever(e)}}function iv(e){return fn.get(e.path)||Dy.emptyArray}function ov(e,n){try{return w=n,function(e){if(sv(),e){var n=Gn.getGlobalDiagnostics(),t=n.length;rv(e);var r=Gn.getDiagnostics(e.fileName),a=Gn.getGlobalDiagnostics();if(a===n)return 0===t&&0<a.length?Dy.concatenate(a,r):r;var i=Dy.relativeComplement(n,a,Dy.compareDiagnostics);return Dy.concatenate(i,r)}return Dy.forEach(E.getSourceFiles(),rv),Gn.getDiagnostics()}(e)}finally{w=void 0}}function sv(){if(!L)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function cv(e){switch(e.kind){case 148:case 238:case 239:case 240:case 241:return!0;default:return!1}}function lv(e){for(;146===e.parent.kind;)e=e.parent;return 162===e.parent.kind}function uv(e,n){for(var t;(e=Dy.getContainingClass(e))&&!(t=n(e)););return t}function dv(e,n){return!!uv(e,function(e){return e===n})}function pv(e){return void 0!==function(e){for(;146===e.parent.kind;)e=e.parent;return 246===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:252===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function mv(e){if(Dy.isDeclarationName(e))return vr(e.parent);if(Dy.isInJSFile(e)&&187===e.parent.kind&&e.parent===e.parent.parent.left){var n=function(e){switch(Dy.getAssignmentDeclarationKind(e.parent.parent)){case 1:case 3:return vr(e.parent);case 4:case 2:case 5:return vr(e.parent.parent)}}(e);if(n)return n}if(252===e.parent.kind&&Dy.isEntityNameExpression(e)){var t=nr(e,70107135,!0);if(t&&t!==H)return t}else if(!Dy.isPropertyAccessExpression(e)&&pv(e)){var r=Dy.getAncestor(e,246);return Dy.Debug.assert(void 0!==r),$t(e,!0)}if(!Dy.isPropertyAccessExpression(e)){var a=function(e){for(var n=e.parent;Dy.isQualifiedName(n);)n=(e=n).parent;if(n&&181===n.kind&&n.qualifier===e)return n}(e);if(a){Fc(a);var i=kt(e).resolvedSymbol;return i===H?void 0:i}}for(;Dy.isRightSideOfQualifiedNameOrPropertyAccess(e);)e=e.parent;if(function(e){for(;187===e.parent.kind;)e=e.parent;return 209===e.parent.kind}(e)){var o=0;209===e.parent.kind?(o=67897832,Dy.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)&&(o|=67220415)):o=1920,o|=2097152;var s=Dy.isEntityNameExpression(e)?nr(e,o):void 0;if(s)return s}if(297===e.parent.kind)return Dy.getParameterSymbolFromJSDoc(e.parent);if(148===e.parent.kind&&301===e.parent.parent.kind){Dy.Debug.assert(!Dy.isInJSFile(e));var c=Dy.getTypeParameterFromJsDoc(e.parent);return c&&c.symbol}if(Dy.isExpressionNode(e)){if(Dy.nodeIsMissing(e))return;if(71===e.kind){if(Dy.isJSXTagName(e)&&Fp(e)){var l=jp(e.parent);return l===H?void 0:l}return nr(e,67220415,!1,!0)}if(187===e.kind||146===e.kind){var u=kt(e);return u.resolvedSymbol||(187===e.kind?um(e):dm(e)),u.resolvedSymbol}}else{if(lv(e))return nr(e,o=162===e.parent.kind?67897832:1920,!1,!0);if(265===e.parent.kind)return $p(e.parent)}return 161===e.parent.kind?nr(e,1):void 0}function fv(e){if(277===e.kind)return Dy.isExternalModule(e)?gr(e.symbol):void 0;var n=e.parent,t=n.parent;if(!(8388608&e.flags)){if(wy(e))return vr(n);if(Dy.isLiteralComputedPropertyDeclarationName(e))return vr(n.parent);if(71===e.kind){if(pv(e))return mv(e);if(184===n.kind&&182===t.kind&&e===n.propertyName){var r=po(_v(t),e.escapedText);if(r)return r}}switch(e.kind){case 71:case 187:case 146:return mv(e);case 99:var a=Dy.getThisContainer(e,!1);if(Dy.isFunctionLike(a)){var i=No(a);if(i.thisParameter)return i.thisParameter}if(Dy.isInExpressionContext(e))return __(e).symbol;case 176:return Rc(e).symbol;case 97:return __(e).symbol;case 123:var o=e.parent;return o&&155===o.kind?o.parent.symbol:void 0;case 9:case 13:if(Dy.isExternalModuleImportEqualsDeclaration(e.parent.parent)&&Dy.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent)===e||(247===e.parent.kind||253===e.parent.kind)&&e.parent.moduleSpecifier===e||Dy.isInJSFile(e)&&Dy.isRequireCall(e.parent,!1)||Dy.isImportCall(e.parent)||Dy.isLiteralTypeNode(e.parent)&&Dy.isLiteralImportTypeNode(e.parent.parent)&&e.parent.parent.argument===e.parent)return rr(e,e);case 8:var s=Dy.isElementAccessExpression(n)?n.argumentExpression===e?m_(n.expression):void 0:Dy.isLiteralTypeNode(n)&&Dy.isIndexedAccessTypeNode(t)?Fc(t.objectType):void 0;return s&&po(s,Dy.escapeLeadingUnderscores(e.text));case 79:case 89:case 36:case 75:return vr(e.parent);case 181:return Dy.isLiteralImportTypeNode(e)?fv(e.argument.literal):void 0;default:return}}}function _v(e){if(8388608&e.flags)return J;if(Dy.isPartOfTypeNode(e)){var n=Fc(e);return Dy.isExpressionWithTypeArgumentsInClassImplementsClause(e)?Ei(n,gv(e).thisType):n}if(Dy.isExpressionNode(e))return vv(e);if(Dy.isExpressionWithTypeArgumentsInClassExtendsClause(e)){var t=gv(e),r=Dy.firstOrUndefined(Ja(t));return r?Ei(r,t.thisType):J}var a,i;if(cv(e))return ri(i=vr(e));if(71===(a=e).kind&&cv(a.parent)&&a.parent.name===a)return(i=fv(e))?ri(i):J;if(Dy.isDeclaration(e))return wa(i=vr(e));if(wy(e))return(i=fv(e))?wa(i):J;if(Dy.isBindingPattern(e))return _a(e.parent,!0)||J;if(pv(e)&&(i=fv(e))){var o=ri(i);return o!==J?o:wa(i)}return J}function gv(e){return Ya(vr(e.parent.parent))}function vv(e){return Dy.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),Oc(m_(e))}function yv(e){e=so(e);var n=Dy.createSymbolTable(Ji(e));return hv(e)&&Dy.forEach(Ji(Ae),function(e){n.has(e.escapedName)||n.set(e.escapedName,e)}),kr(n)}function hv(e){return Dy.typeHasCallOrConstructSignatures(e,y)}function bv(n){if(6&Dy.getCheckFlags(n))return Dy.mapDefined(Lt(n).containingType.types,function(e){return po(e,n.escapedName)});if(33554432&n.flags){var e=n,t=e.leftSpread,r=e.rightSpread,a=e.syntheticOrigin;return t?[t,r]:a?[a]:Dy.singleElementArray(function(e){for(var n,t=e;t=Lt(t).target;)n=t;return n}(n))}}function Ev(e){if(!Dy.isGeneratedIdentifier(e)){var n=Dy.getParseTreeNode(e,Dy.isIdentifier);if(n)return!(187===n.parent.kind&&n.parent.name===n)&&qv(n)===M}return!1}function Tv(e){var n=rr(e.parent,e);if(!n||Dy.isShorthandAmbientModuleSymbol(n))return!0;var t=lr(n),r=Lt(n=sr(n));return void 0===r.exportsSomeValue&&(r.exportsSomeValue=t?!!(67220415&n.flags):Dy.forEachEntry(mr(n),function(e){return(e=Xt(e))&&!!(67220415&e.flags)})),r.exportsSomeValue}function Sv(e,n){var t,r=Dy.getParseTreeNode(e,Dy.isIdentifier);if(r){var a=qv(r,(t=r,Dy.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name));if(a){if(1048576&a.flags){var i=gr(a.exportSymbol);if(!n&&944&i.flags&&!(3&i.flags))return;a=i}var o=yr(a);if(o){if(512&o.flags&&277===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==Dy.getSourceFileOfNode(r)?void 0:s}return Dy.findAncestor(r.parent,function(e){return Dy.isModuleOrEnumDeclaration(e)&&vr(e)===o})}}}}function xv(e){var n=Dy.getParseTreeNode(e,Dy.isIdentifier);if(n){var t=qv(n);if(Jt(t,67220415))return Kt(t)}}function Cv(e){if(418&e.flags){var n=Lt(e);if(void 0===n.isDeclarationWithCollidingName){var t=Dy.getEnclosingBlockScopeContainer(e.valueDeclaration);if(Dy.isStatementWithLocals(t)){var r=kt(e.valueDeclaration);if(Ot(t.parent,e.escapedName,67220415,void 0,void 0,!1))n.isDeclarationWithCollidingName=!0;else if(131072&r.flags){var a=262144&r.flags,i=Dy.isIterationStatement(t,!1),o=216===t.kind&&Dy.isIterationStatement(t.parent,!1);n.isDeclarationWithCollidingName=!(Dy.isBlockScopedContainerTopLevel(t)||a&&(i||o))}else n.isDeclarationWithCollidingName=!1}}return n.isDeclarationWithCollidingName}return!1}function Dv(e){if(!Dy.isGeneratedIdentifier(e)){var n=Dy.getParseTreeNode(e,Dy.isIdentifier);if(n){var t=qv(n);if(t&&Cv(t))return t.valueDeclaration}}}function Av(e){var n=Dy.getParseTreeNode(e,Dy.isDeclaration);if(n){var t=vr(n);if(t)return Cv(t)}return!1}function Lv(e){switch(e.kind){case 246:case 248:case 249:case 251:case 255:return Nv(vr(e)||H);case 253:var n=e.exportClause;return!!n&&Dy.some(n.elements,Lv);case 252:return!e.expression||71!==e.expression.kind||Nv(vr(e)||H)}return!1}function kv(e){var n=Dy.getParseTreeNode(e,Dy.isImportEqualsDeclaration);return!(void 0===n||277!==n.parent.kind||!Dy.isInternalModuleImportEqualsDeclaration(n))&&Nv(vr(n))&&n.moduleReference&&!Dy.nodeIsMissing(n.moduleReference)}function Nv(e){var n=Yt(e);return n===H||!!(67220415&n.flags)&&(R.preserveConstEnums||!Iv(n))}function Iv(e){return Qf(e)||!!e.constEnumOnlyModule}function Mv(e){if(Dy.nodeIsPresent(e.body)){if(Dy.isGetAccessor(e)||Dy.isSetAccessor(e))return!1;var n=Oo(vr(e));return 1<n.length||1===n.length&&n[0].declaration!==e}return!1}function Ov(e){return!(!k||xo(e)||Dy.isJSDocParameterTag(e)||!e.initializer||Dy.hasModifier(e,92))}function wv(e){return k&&xo(e)&&!e.initializer&&Dy.hasModifier(e,92)}function Pv(e){var n=Dy.getParseTreeNode(e,Dy.isFunctionDeclaration);if(!n)return!1;var t=vr(n);return!!(t&&16&t.flags)&&!!Dy.forEachEntry(pr(t),function(e){return 67220415&e.flags&&Dy.isPropertyAccessExpression(e.valueDeclaration)})}function Rv(e){var n=Dy.getParseTreeNode(e,Dy.isFunctionDeclaration);if(!n)return Dy.emptyArray;var t=vr(n);return t&&Ji(wa(t))||Dy.emptyArray}function Fv(e){return kt(e).flags||0}function Gv(e){return Bg(e.parent),kt(e).enumMemberValue}function Vv(e){switch(e.kind){case 276:case 187:case 188:return!0}return!1}function Bv(e){if(276===e.kind)return Gv(e);var n=kt(e).resolvedSymbol;if(n&&8&n.flags){var t=n.valueDeclaration;if(Dy.isEnumConst(t.parent))return Gv(t)}}function Kv(e,n){var t=Dy.getParseTreeNode(e,Dy.isEntityName);if(!t)return Dy.TypeReferenceSerializationKind.Unknown;if(n&&!(n=Dy.getParseTreeNode(n)))return Dy.TypeReferenceSerializationKind.Unknown;var r=nr(t,67220415,!0,!1,n),a=nr(t,67897832,!0,!1,n);if(r&&r===a){var i=As(!1);if(i&&r===i)return Dy.TypeReferenceSerializationKind.Promise;var o=wa(r);if(o&&Ha(o))return Dy.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!a)return Dy.TypeReferenceSerializationKind.Unknown;var s,c=ri(a);return c===J?Dy.TypeReferenceSerializationKind.Unknown:3&c.flags?Dy.TypeReferenceSerializationKind.ObjectType:Jf(c,61440)?Dy.TypeReferenceSerializationKind.VoidNullableOrNeverType:Jf(c,272)?Dy.TypeReferenceSerializationKind.BooleanType:Jf(c,168)?Dy.TypeReferenceSerializationKind.NumberLikeType:Jf(c,68)?Dy.TypeReferenceSerializationKind.StringLikeType:su(c)?Dy.TypeReferenceSerializationKind.ArrayLikeType:Jf(c,3072)?Dy.TypeReferenceSerializationKind.ESSymbolType:131072&(s=c).flags&&0<fo(s,0).length?Dy.TypeReferenceSerializationKind.TypeWithCallSignature:Jl(c)?Dy.TypeReferenceSerializationKind.ArrayLikeType:Dy.TypeReferenceSerializationKind.ObjectType}function jv(e,n,t,r,a){var i=Dy.getParseTreeNode(e,Dy.isVariableLikeOrAccessor);if(!i)return Dy.createToken(119);var o=vr(i),s=!o||133120&o.flags?J:au(wa(o));return 2048&s.flags&&s.symbol===o&&(t|=1048576),a&&(s=_u(s)),v.typeToTypeNode(s,n,1024|t,r)}function Hv(e,n,t,r){var a=Dy.getParseTreeNode(e,Dy.isFunctionLike);if(!a)return Dy.createToken(119);var i=No(a);return v.typeToTypeNode(Fo(i),n,1024|t,r)}function Uv(e,n,t,r){var a=Dy.getParseTreeNode(e,Dy.isExpression);if(!a)return Dy.createToken(119);var i=xu(vv(a));return v.typeToTypeNode(i,n,1024|t,r)}function Wv(e){return pn.has(Dy.escapeLeadingUnderscores(e))}function qv(e,n){var t=kt(e).resolvedSymbol;if(t)return t;var r=e;if(n){var a=e.parent;Dy.isDeclaration(a)&&e===a.name&&(r=ia(a))}return Ot(r,e.escapedText,70366143,void 0,void 0,!0)}function zv(e){if(!Dy.isGeneratedIdentifier(e)){var n=Dy.getParseTreeNode(e,Dy.isIdentifier);if(n){var t=qv(n);if(t)return Er(t).valueDeclaration}}}function Jv(e){if(Dy.isDeclarationReadonly(e)||Dy.isVariableDeclaration(e)&&Dy.isVarConst(e)){var n=wa(vr(e));return!!(448&n.flags&&33554432&n.flags)}return!1}function Xv(e){var n,t,r=wa(vr(e));return t=e,(512&(n=r).flags?v.symbolToExpression(n.symbol,67220415,t):n===ae?Dy.createTrue():n===te&&Dy.createFalse())||Dy.createLiteral(n.value)}function Yv(e){var n=242===e.kind?Dy.tryCast(e.name,Dy.isStringLiteral):Dy.getExternalModuleName(e),t=ar(n,n,void 0);if(t)return Dy.getDeclarationOfKind(t,277)}function Qv(e,n){if((l&n)!==n&&R.importHelpers){var t=Dy.getSourceFileOfNode(e);if(Dy.isEffectiveExternalModule(t,R)&&!(4194304&e.flags)){var r=(s=t,c=e,u||(u=ir(s,Dy.externalHelpersModuleNameText,Dy.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,c)||H),u);if(r!==H)for(var a=n&~l,i=1;i<=65536;i<<=1)if(a&i){var o=Zv(i);It(r.exports,Dy.escapeLeadingUnderscores(o),67220415)||gt(e,Dy.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,Dy.externalHelpersModuleNameText,o)}l|=n}}var s,c}function Zv(e){switch(e){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 Dy.Debug.fail("Unrecognized helper")}}function $v(e){return function(e){if(!e.decorators)return!1;if(!Dy.nodeCanBeDecorated(e,e.parent,e.parent.parent))return 154!==e.kind||Dy.nodeIsPresent(e.body)?Ey(e,Dy.Diagnostics.Decorators_are_not_valid_here):Ey(e,Dy.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(156===e.kind||157===e.kind){var n=Dy.getAllAccessorDeclarations(e.parent.members,e);if(n.firstAccessor.decorators&&e===n.secondAccessor)return Ey(e,Dy.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(e)||function(e){var n,t,r,a,i,o=!!(i=e).modifiers&&(function(e){switch(e.kind){case 156:case 157:case 155:case 152:case 151:case 154:case 153:case 160:case 242:case 247:case 246:case 253:case 252:case 194:case 195:case 149:return!1;default:if(243===e.parent.kind||277===e.parent.kind)return!1;switch(e.kind){case 237:return ey(e,120);case 238:return ey(e,117);case 239:case 217:case 240:return!0;case 241:return ey(e,76);default:return Dy.Debug.fail(),!1}}}(i)?Ey(i,Dy.Diagnostics.Modifiers_cannot_appear_here):void 0);if(void 0!==o)return o;for(var s=0,c=0,l=e.modifiers;c<l.length;c++){var u=l[c];if(132!==u.kind){if(151===e.kind||153===e.kind)return Sy(u,Dy.Diagnostics._0_modifier_cannot_appear_on_a_type_member,Dy.tokenToString(u.kind));if(160===e.kind)return Sy(u,Dy.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,Dy.tokenToString(u.kind))}switch(u.kind){case 76:if(241!==e.kind)return Sy(e,Dy.Diagnostics.A_class_member_cannot_have_the_0_keyword,Dy.tokenToString(76));break;case 114:case 113:case 112:var d=Xr(Dy.modifierToFlag(u.kind));if(28&s)return Sy(u,Dy.Diagnostics.Accessibility_modifier_already_seen);if(32&s)return Sy(u,Dy.Diagnostics._0_modifier_must_precede_1_modifier,d,"static");if(64&s)return Sy(u,Dy.Diagnostics._0_modifier_must_precede_1_modifier,d,"readonly");if(256&s)return Sy(u,Dy.Diagnostics._0_modifier_must_precede_1_modifier,d,"async");if(243===e.parent.kind||277===e.parent.kind)return Sy(u,Dy.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(128&s)return 112===u.kind?Sy(u,Dy.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):Sy(u,Dy.Diagnostics._0_modifier_must_precede_1_modifier,d,"abstract");s|=Dy.modifierToFlag(u.kind);break;case 115:if(32&s)return Sy(u,Dy.Diagnostics._0_modifier_already_seen,"static");if(64&s)return Sy(u,Dy.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return Sy(u,Dy.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(243===e.parent.kind||277===e.parent.kind)return Sy(u,Dy.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(149===e.kind)return Sy(u,Dy.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return Sy(u,Dy.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");s|=32,n=u;break;case 132:if(64&s)return Sy(u,Dy.Diagnostics._0_modifier_already_seen,"readonly");if(152!==e.kind&&151!==e.kind&&160!==e.kind&&149!==e.kind)return Sy(u,Dy.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64,a=u;break;case 84:if(1&s)return Sy(u,Dy.Diagnostics._0_modifier_already_seen,"export");if(2&s)return Sy(u,Dy.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return Sy(u,Dy.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return Sy(u,Dy.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(238===e.parent.kind)return Sy(u,Dy.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"export");if(149===e.kind)return Sy(u,Dy.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 79:var p=277===e.parent.kind?e.parent:e.parent.parent;if(242===p.kind&&!Dy.isAmbientModule(p))return Sy(u,Dy.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);s|=512;break;case 124:if(2&s)return Sy(u,Dy.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return Sy(u,Dy.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(238===e.parent.kind)return Sy(u,Dy.Diagnostics._0_modifier_cannot_appear_on_a_class_element,"declare");if(149===e.kind)return Sy(u,Dy.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(4194304&e.parent.flags&&243===e.parent.kind)return Sy(u,Dy.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);s|=2,t=u;break;case 117:if(128&s)return Sy(u,Dy.Diagnostics._0_modifier_already_seen,"abstract");if(238!==e.kind){if(154!==e.kind&&152!==e.kind&&156!==e.kind&&157!==e.kind)return Sy(u,Dy.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(238!==e.parent.kind||!Dy.hasModifier(e.parent,128))return Sy(u,Dy.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return Sy(u,Dy.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return Sy(u,Dy.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract")}s|=128;break;case 120:if(256&s)return Sy(u,Dy.Diagnostics._0_modifier_already_seen,"async");if(2&s||4194304&e.parent.flags)return Sy(u,Dy.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(149===e.kind)return Sy(u,Dy.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");s|=256,r=u}}return 155===e.kind?32&s?Sy(n,Dy.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):128&s?Sy(n,Dy.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):256&s?Sy(r,Dy.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!!(64&s)&&Sy(a,Dy.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):(247===e.kind||246===e.kind)&&2&s?Sy(t,Dy.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):149===e.kind&&92&s&&Dy.isBindingPattern(e.name)?Sy(e,Dy.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):149===e.kind&&92&s&&e.dotDotDotToken?Sy(e,Dy.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(256&s)&&function(e,n){switch(e.kind){case 154:case 237:case 194:case 195:return!1}return Sy(n,Dy.Diagnostics._0_modifier_cannot_be_used_here,"async")}(e,r)}(e)}function ey(e,n){return 1<e.modifiers.length||e.modifiers[0].kind!==n}function ny(e,n){return void 0===n&&(n=Dy.Diagnostics.Trailing_comma_not_allowed),!(!e||!e.hasTrailingComma)&&Ty(e[0],e.end-",".length,",".length,n)}function ty(e,n){if(e&&0===e.length){var t=e.pos-"<".length;return Ty(n,t,Dy.skipTrivia(n.text,e.end)+">".length-t,Dy.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function ry(e){if(3<=P){var n=e.body&&Dy.isBlock(e.body)&&Dy.findUseStrictPrologue(e.body.statements);if(n){var t=(a=e.parameters,Dy.filter(a,function(e){return!!e.initializer||Dy.isBindingPattern(e.name)||Dy.isRestParameter(e)}));if(Dy.length(t)){Dy.forEach(t,function(e){_t(gt(e,Dy.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),Dy.createDiagnosticForNode(n,Dy.Diagnostics.use_strict_directive_used_here))});var r=t.map(function(e,n){return 0===n?Dy.createDiagnosticForNode(e,Dy.Diagnostics.Non_simple_parameter_declared_here):Dy.createDiagnosticForNode(e,Dy.Diagnostics.and_here)});return _t.apply(void 0,[gt(n,Dy.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)].concat(r)),!0}}}var a;return!1}function ay(e){var n=Dy.getSourceFileOfNode(e);return $v(e)||ty(e.typeParameters,n)||function(e){for(var n=!1,t=e.length,r=0;r<t;r++){var a=e[r];if(a.dotDotDotToken){if(r!==t-1)return Sy(a.dotDotDotToken,Dy.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(4194304&a.flags||ny(e,Dy.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),Dy.isBindingPattern(a.name))return Sy(a.name,Dy.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(a.questionToken)return Sy(a.questionToken,Dy.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return Sy(a.name,Dy.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(a.questionToken){if(n=!0,a.initializer)return Sy(a.name,Dy.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(n&&!a.initializer)return Sy(a.name,Dy.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(e.parameters)||function(e,n){if(!Dy.isArrowFunction(e))return!1;var t=e.equalsGreaterThanToken,r=Dy.getLineAndCharacterOfPosition(n,t.pos).line,a=Dy.getLineAndCharacterOfPosition(n,t.end).line;return r!==a&&Sy(t,Dy.Diagnostics.Line_terminator_not_permitted_before_arrow)}(e,n)||Dy.isFunctionLikeDeclaration(e)&&ry(e)}function iy(e,n){return ny(n)||function(e,n){if(n&&0===n.length){var t=Dy.getSourceFileOfNode(e),r=n.pos-"<".length;return Ty(t,r,Dy.skipTrivia(t.text,n.end)+">".length-r,Dy.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(e,n)}function oy(e){return function(e){if(e)for(var n=0,t=e;n<t.length;n++){var r=t[n];if(208===r.kind)return Ty(r,r.pos,0,Dy.Diagnostics.Argument_expression_expected)}return!1}(e)}function sy(e){var n=e.types;if(ny(n))return!0;if(n&&0===n.length){var t=Dy.tokenToString(e.token);return Ty(e,n.pos,0,Dy.Diagnostics._0_list_cannot_be_empty,t)}return Dy.some(n,cy)}function cy(e){return iy(e,e.typeArguments)}function ly(e){if(147!==e.kind)return!1;var n=e;return 202===n.expression.kind&&26===n.expression.operatorToken.kind&&Sy(n.expression,Dy.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function uy(e){if(e.asteriskToken){if(Dy.Debug.assert(237===e.kind||194===e.kind||154===e.kind),4194304&e.flags)return Sy(e.asteriskToken,Dy.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return Sy(e.asteriskToken,Dy.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function dy(e,n){return!!e&&Sy(e,n)}function py(e,n){return!!e&&Sy(e,n)}function my(e){if(xy(e))return!0;if(225===e.kind&&e.awaitModifier&&0==(16384&e.flags))return Sy(e.awaitModifier,Dy.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator);if(236===e.initializer.kind){var n=e.initializer;if(!hy(n)){var t=n.declarations;if(!t.length)return!1;if(1<t.length){var r=224===e.kind?Dy.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:Dy.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Ey(n.declarations[1],r)}var a=t[0];if(a.initializer){var r=224===e.kind?Dy.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:Dy.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Sy(a.name,r)}if(a.type)return Sy(a,r=224===e.kind?Dy.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:Dy.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function fy(e){if(e.parameters.length===(156===e.kind?1:2))return Dy.getThisParameter(e)}function _y(e,n){if(t=e,Dy.isDynamicName(t)&&!mi(t))return Sy(e,n);var t}function gy(e){if(ay(e))return!0;if(154===e.kind){if(186===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||120!==Dy.first(e.modifiers).kind))return Ey(e,Dy.Diagnostics.Modifiers_cannot_appear_here);if(dy(e.questionToken,Dy.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(py(e.exclamationToken,Dy.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return Ty(e,e.end-1,";".length,Dy.Diagnostics._0_expected,"{")}if(uy(e))return!0}if(Dy.isClassLike(e.parent)){if(4194304&e.flags)return _y(e.name,Dy.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(154===e.kind&&!e.body)return _y(e.name,Dy.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(239===e.parent.kind)return _y(e.name,Dy.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(166===e.parent.kind)return _y(e.name,Dy.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 vy(e){return 9===e.kind||8===e.kind||200===e.kind&&38===e.operator&&8===e.operand.kind}function yy(e){if(e.initializer){var n=!(vy(e.initializer)||function(e){if((Dy.isPropertyAccessExpression(e)||Dy.isElementAccessExpression(e)&&vy(e.argumentExpression))&&Dy.isEntityNameExpression(e.expression))return!!(512&o_(e).flags)}(e.initializer)||101===e.initializer.kind||86===e.initializer.kind),t=Dy.isDeclarationReadonly(e)||Dy.isVariableDeclaration(e)&&Dy.isVarConst(e);if(!t||e.type)return Sy(e.initializer,Dy.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(n)return Sy(e.initializer,Dy.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!t||n)return Sy(e.initializer,Dy.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function hy(e){var n=e.declarations;return!!ny(e.declarations)||!e.declarations.length&&Ty(e,n.pos,n.end-n.pos,Dy.Diagnostics.Variable_declaration_list_cannot_be_empty)}function by(e){return 0<e.parseDiagnostics.length}function Ey(e,n,t,r,a){var i=Dy.getSourceFileOfNode(e);if(by(i))return!1;var o=Dy.getSpanOfTokenAtPosition(i,e.pos);return Gn.add(Dy.createFileDiagnostic(i,o.start,o.length,n,t,r,a)),!0}function Ty(e,n,t,r,a,i,o){var s=Dy.getSourceFileOfNode(e);return!by(s)&&(Gn.add(Dy.createFileDiagnostic(s,n,t,r,a,i,o)),!0)}function Sy(e,n,t,r,a){return!by(Dy.getSourceFileOfNode(e))&&(Gn.add(Dy.createDiagnosticForNode(e,n,t,r,a)),!0)}function xy(e){if(4194304&e.flags){if(Dy.isAccessor(e.parent))return kt(e).hasReportedStatementInAmbientContext=!0;if(!kt(e).hasReportedStatementInAmbientContext&&Dy.isFunctionLike(e.parent))return kt(e).hasReportedStatementInAmbientContext=Ey(e,Dy.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(216===e.parent.kind||243===e.parent.kind||277===e.parent.kind){var n=kt(e.parent);if(!n.hasReportedStatementInAmbientContext)return n.hasReportedStatementInAmbientContext=Ey(e,Dy.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Cy(e){if(32&e.numericLiteralFlags){var n=void 0;if(1<=P?n=Dy.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:Dy.isChildOfNodeWithKind(e,180)?n=Dy.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:Dy.isChildOfNodeWithKind(e,276)&&(n=Dy.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){var t=Dy.isPrefixUnaryExpression(e.parent)&&38===e.parent.operator,r=(t?"-":"")+"0o"+e.text;return Sy(t?e.parent:e,n,r)}}return!1}},(e=Ay||(Ay={})).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"}(ts||(ts={})),function(d){function u(e){var n=d.createNode(e,-1,-1);return n.flags|=8,n}function p(e,n){return e!==n&&(Un(e,n),Gn(e,n),d.aggregateTransformFlags(e)),e}function m(e,n){if(e&&e!==d.emptyArray){if(d.isNodeArray(e))return e}else e=[];var t=e;return t.pos=-1,t.end=-1,t.hasTrailingComma=n,t}function t(e){if(void 0===e)return e;var n=u(e.kind);for(var t in n.flags|=e.flags,Un(n,e),e)!n.hasOwnProperty(t)&&e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function a(e,n){if("number"==typeof e)return i(e+"");if("boolean"==typeof e)return e?_():g();if(d.isString(e)){var t=o(e);return n&&(t.singleQuote=!0),t}return r=e,(a=o(d.getTextOfIdentifierOrLiteral(r))).textSourceNode=r,a;var r,a}function i(e){var n=u(8);return n.text=e,n.numericLiteralFlags=0,n}function o(e){var n=u(9);return n.text=e,n}function r(e,n){var t=u(71);return t.escapedText=d.escapeLeadingUnderscores(e),t.originalKeywordKind=e?d.stringToToken(e):0,t.autoGenerateFlags=0,t.autoGenerateId=0,n&&(t.typeArguments=m(n)),t}d.updateNode=p,d.createNodeArray=m,d.getSynthesizedClone=t,d.createLiteral=a,d.createNumericLiteral=i,d.createStringLiteral=o,d.createRegularExpressionLiteral=function(e){var n=u(12);return n.text=e,n},d.createIdentifier=r,d.updateIdentifier=function(e,n){return e.typeArguments!==n?p(r(d.idText(e),n),e):e};var s,c=0;function l(e){var n=r(e);return n.autoGenerateFlags=19,n.autoGenerateId=c,c++,n}function f(e){return u(e)}function _(){return u(101)}function g(){return u(86)}function v(e){return f(e)}function y(e,n){var t=u(146);return t.left=e,t.right=Pn(n),t}function h(e){var n,t=u(147);return t.expression=(n=e,d.isCommaSequence(n)?ce(n):n),t}function b(e,n,t){var r=u(148);return r.name=Pn(e),r.constraint=n,r.default=t,r}function E(e,n,t,r,a,i,o){var s=u(149);return s.decorators=Rn(e),s.modifiers=Rn(n),s.dotDotDotToken=t,s.name=Pn(r),s.questionToken=a,s.type=i,s.initializer=o?d.parenthesizeExpressionForList(o):void 0,s}function T(e){var n=u(150);return n.expression=d.parenthesizeForAccess(e),n}function S(e,n,t,r,a){var i=u(151);return i.modifiers=Rn(e),i.name=Pn(n),i.questionToken=t,i.type=r,i.initializer=a,i}function x(e,n,t,r,a,i){var o=u(152);return o.decorators=Rn(e),o.modifiers=Rn(n),o.name=Pn(t),o.questionToken=void 0!==r&&55===r.kind?r:void 0,o.exclamationToken=void 0!==r&&51===r.kind?r:void 0,o.type=a,o.initializer=i,o}function C(e,n,t,r,a){var i=I(153,e,n,t);return i.name=Pn(r),i.questionToken=a,i}function D(e,n,t,r,a,i,o,s,c){var l=u(154);return l.decorators=Rn(e),l.modifiers=Rn(n),l.asteriskToken=t,l.name=Pn(r),l.questionToken=a,l.typeParameters=Rn(i),l.parameters=m(o),l.type=s,l.body=c,l}function A(e,n,t,r){var a=u(155);return a.decorators=Rn(e),a.modifiers=Rn(n),a.typeParameters=void 0,a.parameters=m(t),a.type=void 0,a.body=r,a}function L(e,n,t,r,a,i){var o=u(156);return o.decorators=Rn(e),o.modifiers=Rn(n),o.name=Pn(t),o.typeParameters=void 0,o.parameters=m(r),o.type=a,o.body=i,o}function k(e,n,t,r,a){var i=u(157);return i.decorators=Rn(e),i.modifiers=Rn(n),i.name=Pn(t),i.typeParameters=void 0,i.parameters=m(r),i.body=a,i}function N(e,n,t,r){var a=u(160);return a.decorators=Rn(e),a.modifiers=Rn(n),a.parameters=m(t),a.type=r,a}function I(e,n,t,r,a){var i=u(e);return i.typeParameters=Rn(n),i.parameters=Rn(t),i.type=r,i.typeArguments=Rn(a),i}function M(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?p(I(e.kind,n,t,r),e):e}function O(e,n){var t=u(161);return t.parameterName=Pn(e),t.type=n,t}function w(e,n){var t=u(162);return t.typeName=Pn(e),t.typeArguments=n&&d.parenthesizeTypeParameters(n),t}function P(e){var n=u(165);return n.exprName=e,n}function R(e){var n=u(166);return n.members=m(e),n}function F(e){var n=u(167);return n.elementType=d.parenthesizeArrayTypeMember(e),n}function G(e){var n=u(168);return n.elementTypes=m(e),n}function V(e){var n=u(169);return n.type=d.parenthesizeArrayTypeMember(e),n}function B(e){var n=u(170);return n.type=e,n}function K(e,n){var t=u(e);return t.types=d.parenthesizeElementTypeMembers(n),t}function j(e,n){return e.types!==n?p(K(e.kind,n),e):e}function H(e,n,t,r){var a=u(173);return a.checkType=d.parenthesizeConditionalTypeMember(e),a.extendsType=d.parenthesizeConditionalTypeMember(n),a.trueType=t,a.falseType=r,a}function U(e){var n=u(174);return n.typeParameter=e,n}function W(e,n,t,r){var a=u(181);return a.argument=e,a.qualifier=n,a.typeArguments=Rn(t),a.isTypeOf=r,a}function q(e){var n=u(175);return n.type=e,n}function z(e,n){var t=u(177);return t.operator="number"==typeof e?e:128,t.type=d.parenthesizeElementTypeMember("number"==typeof e?n:e),t}function J(e,n){var t=u(178);return t.objectType=d.parenthesizeElementTypeMember(e),t.indexType=n,t}function X(e,n,t,r){var a=u(179);return a.readonlyToken=e,a.typeParameter=n,a.questionToken=t,a.type=r,a}function Y(e){var n=u(180);return n.literal=e,n}function Q(e){var n=u(182);return n.elements=m(e),n}function Z(e){var n=u(183);return n.elements=m(e),n}function $(e,n,t,r){var a=u(184);return a.dotDotDotToken=e,a.propertyName=Pn(n),a.name=Pn(t),a.initializer=r,a}function ee(e,n){var t=u(185);return t.elements=d.parenthesizeListElements(m(e)),n&&(t.multiLine=!0),t}function ne(e,n){var t=u(186);return t.properties=m(e),n&&(t.multiLine=!0),t}function te(e,n){var t=u(187);return t.expression=d.parenthesizeForAccess(e),t.name=Pn(n),Vn(t,131072),t}function re(e,n){var t,r=u(188);return r.expression=d.parenthesizeForAccess(e),r.argumentExpression=(t=n,d.isString(t)||"number"==typeof t?a(t):t),r}function ae(e,n,t){var r=u(189);return r.expression=d.parenthesizeForAccess(e),r.typeArguments=Rn(n),r.arguments=d.parenthesizeListElements(m(t)),r}function ie(e,n,t){var r=u(190);return r.expression=d.parenthesizeForNew(e),r.typeArguments=Rn(n),r.arguments=t?d.parenthesizeListElements(m(t)):void 0,r}function oe(e,n,t){var r=u(191);return r.tag=d.parenthesizeForAccess(e),r.template=t?(r.typeArguments=Rn(n),t):(r.typeArguments=void 0,n),r}function se(e,n){var t=u(192);return t.type=e,t.expression=d.parenthesizePrefixOperand(n),t}function ce(e){var n=u(193);return n.expression=e,n}function le(e,n,t,r,a,i,o){var s=u(194);return s.modifiers=Rn(e),s.asteriskToken=n,s.name=Pn(t),s.typeParameters=Rn(r),s.parameters=m(a),s.type=i,s.body=o,s}function ue(e,n,t,r,a,i){var o=u(195);return o.modifiers=Rn(e),o.typeParameters=Rn(n),o.parameters=m(t),o.type=r,o.equalsGreaterThanToken=a||f(36),o.body=d.parenthesizeConciseBody(i),o}function de(e){var n=u(196);return n.expression=d.parenthesizePrefixOperand(e),n}function pe(e){var n=u(197);return n.expression=d.parenthesizePrefixOperand(e),n}function me(e){var n=u(198);return n.expression=d.parenthesizePrefixOperand(e),n}function fe(e){var n=u(199);return n.expression=d.parenthesizePrefixOperand(e),n}function _e(e,n){var t=u(200);return t.operator=e,t.operand=d.parenthesizePrefixOperand(n),t}function ge(e,n){var t=u(201);return t.operand=d.parenthesizePostfixOperand(e),t.operator=n,t}function ve(e,n,t){var r,a=u(202),i="number"==typeof(r=n)?f(r):r,o=i.kind;return a.left=d.parenthesizeBinaryOperand(o,e,!0,void 0),a.operatorToken=i,a.right=d.parenthesizeBinaryOperand(o,t,!1,a.left),a}function ye(e,n,t,r,a){var i=u(203);return i.condition=d.parenthesizeForConditionalHead(e),i.questionToken=a?n:f(55),i.whenTrue=d.parenthesizeSubexpressionOfConditionalExpression(a?t:n),i.colonToken=a?r:f(56),i.whenFalse=d.parenthesizeSubexpressionOfConditionalExpression(a||t),i}function he(e,n){var t=u(204);return t.head=e,t.templateSpans=m(n),t}function be(e,n){var t=u(205);return t.asteriskToken=e&&39===e.kind?e:void 0,t.expression=e&&39!==e.kind?e:n,t}function Ee(e){var n=u(206);return n.expression=d.parenthesizeExpressionForList(e),n}function Te(e,n,t,r,a){var i=u(207);return i.decorators=void 0,i.modifiers=Rn(e),i.name=Pn(n),i.typeParameters=Rn(t),i.heritageClauses=Rn(r),i.members=m(a),i}function Se(e,n){var t=u(209);return t.expression=d.parenthesizeForAccess(n),t.typeArguments=Rn(e),t}function xe(e,n){var t=u(210);return t.expression=e,t.type=n,t}function Ce(e){var n=u(211);return n.expression=d.parenthesizeForAccess(e),n}function De(e,n){var t=u(212);return t.keywordToken=e,t.name=n,t}function Ae(e,n){var t=u(214);return t.expression=e,t.literal=n,t}function Le(e,n){var t=u(216);return t.statements=m(e),n&&(t.multiLine=n),t}function ke(e,n){var t=u(217);return t.decorators=void 0,t.modifiers=Rn(e),t.declarationList=d.isArray(n)?qe(n):n,t}function Ne(e){var n=u(219);return n.expression=d.parenthesizeExpressionForExpressionStatement(e),n}function e(e,n){return e.expression!==n?p(Ne(n),e):e}function Ie(e,n,t){var r=u(220);return r.expression=e,r.thenStatement=n,r.elseStatement=t,r}function Me(e,n){var t=u(221);return t.statement=e,t.expression=n,t}function Oe(e,n){var t=u(222);return t.expression=e,t.statement=n,t}function we(e,n,t,r){var a=u(223);return a.initializer=e,a.condition=n,a.incrementor=t,a.statement=r,a}function Pe(e,n,t){var r=u(224);return r.initializer=e,r.expression=n,r.statement=t,r}function Re(e,n,t,r){var a=u(225);return a.awaitModifier=e,a.initializer=n,a.expression=t,a.statement=r,a}function Fe(e){var n=u(226);return n.label=Pn(e),n}function Ge(e){var n=u(227);return n.label=Pn(e),n}function Ve(e){var n=u(228);return n.expression=e,n}function Be(e,n){var t=u(229);return t.expression=e,t.statement=n,t}function Ke(e,n){var t=u(230);return t.expression=d.parenthesizeExpressionForList(e),t.caseBlock=n,t}function je(e,n){var t=u(231);return t.label=Pn(e),t.statement=n,t}function He(e){var n=u(232);return n.expression=e,n}function Ue(e,n,t){var r=u(233);return r.tryBlock=e,r.catchClause=n,r.finallyBlock=t,r}function We(e,n,t){var r=u(235);return r.name=Pn(e),r.type=n,r.initializer=void 0!==t?d.parenthesizeExpressionForList(t):void 0,r}function qe(e,n){void 0===n&&(n=0);var t=u(236);return t.flags|=3&n,t.declarations=m(e),t}function ze(e,n,t,r,a,i,o,s){var c=u(237);return c.decorators=Rn(e),c.modifiers=Rn(n),c.asteriskToken=t,c.name=Pn(r),c.typeParameters=Rn(a),c.parameters=m(i),c.type=o,c.body=s,c}function Je(e,n,t,r,a,i){var o=u(238);return o.decorators=Rn(e),o.modifiers=Rn(n),o.name=Pn(t),o.typeParameters=Rn(r),o.heritageClauses=Rn(a),o.members=m(i),o}function Xe(e,n,t,r,a,i){var o=u(239);return o.decorators=Rn(e),o.modifiers=Rn(n),o.name=Pn(t),o.typeParameters=Rn(r),o.heritageClauses=Rn(a),o.members=m(i),o}function Ye(e,n,t,r,a){var i=u(240);return i.decorators=Rn(e),i.modifiers=Rn(n),i.name=Pn(t),i.typeParameters=Rn(r),i.type=a,i}function Qe(e,n,t,r){var a=u(241);return a.decorators=Rn(e),a.modifiers=Rn(n),a.name=Pn(t),a.members=m(r),a}function Ze(e,n,t,r,a){void 0===a&&(a=0);var i=u(242);return i.flags|=532&a,i.decorators=Rn(e),i.modifiers=Rn(n),i.name=t,i.body=r,i}function $e(e){var n=u(243);return n.statements=m(e),n}function en(e){var n=u(244);return n.clauses=m(e),n}function nn(e){var n=u(245);return n.name=Pn(e),n}function tn(e,n,t,r){var a=u(246);return a.decorators=Rn(e),a.modifiers=Rn(n),a.name=Pn(t),a.moduleReference=r,a}function rn(e,n,t,r){var a=u(247);return a.decorators=Rn(e),a.modifiers=Rn(n),a.importClause=t,a.moduleSpecifier=r,a}function an(e,n){var t=u(248);return t.name=e,t.namedBindings=n,t}function on(e){var n=u(249);return n.name=e,n}function sn(e){var n=u(250);return n.elements=m(e),n}function cn(e,n){var t=u(251);return t.propertyName=e,t.name=n,t}function ln(e,n,t,r){var a=u(252);return a.decorators=Rn(e),a.modifiers=Rn(n),a.isExportEquals=t,a.expression=t?d.parenthesizeBinaryOperand(58,r,!1,void 0):d.parenthesizeDefaultExpression(r),a}function un(e,n,t,r){var a=u(253);return a.decorators=Rn(e),a.modifiers=Rn(n),a.exportClause=t,a.moduleSpecifier=r,a}function dn(e){var n=u(254);return n.elements=m(e),n}function pn(e,n){var t=u(255);return t.propertyName=Pn(e),t.name=Pn(n),t}function mn(e){var n=u(257);return n.expression=e,n}function fn(e,n,t){var r=u(258);return r.openingElement=e,r.children=m(n),r.closingElement=t,r}function _n(e,n,t){var r=u(259);return r.tagName=e,r.typeArguments=Rn(n),r.attributes=t,r}function gn(e,n,t){var r=u(260);return r.tagName=e,r.typeArguments=Rn(n),r.attributes=t,r}function vn(e){var n=u(261);return n.tagName=e,n}function yn(e,n,t){var r=u(262);return r.openingFragment=e,r.children=m(n),r.closingFragment=t,r}function hn(e,n){var t=u(265);return t.name=e,t.initializer=n,t}function bn(e){var n=u(266);return n.properties=m(e),n}function En(e){var n=u(267);return n.expression=e,n}function Tn(e,n){var t=u(268);return t.dotDotDotToken=e,t.expression=n,t}function Sn(e,n){var t=u(269);return t.expression=d.parenthesizeExpressionForList(e),t.statements=m(n),t}function xn(e){var n=u(270);return n.statements=m(e),n}function Cn(e,n){var t=u(271);return t.token=e,t.types=m(n),t}function Dn(e,n){var t=u(272);return t.variableDeclaration=d.isString(e)?We(e):e,t.block=n,t}function An(e,n){var t=u(273);return t.name=Pn(e),t.questionToken=void 0,t.initializer=d.parenthesizeExpressionForList(n),t}function Ln(e,n){var t=u(274);return t.name=Pn(e),t.objectAssignmentInitializer=void 0!==n?d.parenthesizeExpressionForList(n):void 0,t}function kn(e){var n=u(275);return n.expression=void 0!==e?d.parenthesizeExpressionForList(e):void 0,n}function Nn(e,n){var t=u(276);return t.name=Pn(e),t.initializer=n&&d.parenthesizeExpressionForList(n),t}function In(e,n){var t=u(306);return t.expression=e,t.original=n,Gn(t,n),t}function Mn(e){if(d.nodeIsSynthesized(e)&&!d.isParseTreeNode(e)&&!e.original&&!e.emitNode&&!e.id){if(307===e.kind)return e.elements;if(d.isBinaryExpression(e)&&26===e.operatorToken.kind)return[e.left,e.right]}return e}function On(e){var n=u(307);return n.elements=m(d.sameFlatMap(e,Mn)),n}function wn(e,n){void 0===n&&(n=d.emptyArray);var t=d.createNode(278);return t.prepends=n,t.sourceFiles=e,t}function Pn(e){return d.isString(e)?r(e):e}function Rn(e){return e?m(e):void 0}function Fn(e){if(!e.emitNode){if(d.isParseTreeNode(e)){if(277===e.kind)return e.emitNode={annotatedNodes:[e]};Fn(d.getSourceFileOfNode(e)).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function Gn(e,n){return n&&(e.pos=n.pos,e.end=n.end),e}function Vn(e,n){return Fn(e).flags=n,e}function Bn(e){var n=e.emitNode;return n&&n.leadingComments}function Kn(e,n){return Fn(e).leadingComments=n,e}function jn(e){var n=e.emitNode;return n&&n.trailingComments}function Hn(e,n){return Fn(e).trailingComments=n,e}function Un(e,n){if(e.original=n){var t=n.emitNode;t&&(e.emitNode=function(e,n){var t=e.flags,r=e.leadingComments,a=e.trailingComments,i=e.commentRange,o=e.sourceMapRange,s=e.tokenSourceMapRanges,c=e.constantValue,l=e.helpers,u=e.startsOnNewLine;n||(n={});r&&(n.leadingComments=d.addRange(r.slice(),n.leadingComments));a&&(n.trailingComments=d.addRange(a.slice(),n.trailingComments));t&&(n.flags=t);i&&(n.commentRange=i);o&&(n.sourceMapRange=o);s&&(n.tokenSourceMapRanges=function(e,n){n||(n=[]);for(var t in e)n[t]=e[t];return n}(s,n.tokenSourceMapRanges));void 0!==c&&(n.constantValue=c);l&&(n.helpers=d.addRange(n.helpers,l));void 0!==u&&(n.startsOnNewLine=u);return n}(t,e.emitNode))}return e}d.createTempVariable=function(e,n){var t=r("");return t.autoGenerateFlags=1,t.autoGenerateId=c,c++,e&&e(t),n&&(t.autoGenerateFlags|=8),t},d.createLoopVariable=function(){var e=r("");return e.autoGenerateFlags=2,e.autoGenerateId=c,c++,e},d.createUniqueName=function(e){var n=r(e);return n.autoGenerateFlags=3,n.autoGenerateId=c,c++,n},d.createOptimisticUniqueName=l,d.createFileLevelUniqueName=function(e){var n=l(e);return n.autoGenerateFlags|=32,n},d.getGeneratedNameForNode=function(e,n){var t=r(e&&d.isIdentifier(e)?d.idText(e):"");return t.autoGenerateFlags=4|n,t.autoGenerateId=c,t.original=e,c++,t},d.createToken=f,d.createSuper=function(){return u(97)},d.createThis=function(){return u(99)},d.createNull=function(){return u(95)},d.createTrue=_,d.createFalse=g,d.createModifier=v,d.createModifiersFromModifierFlags=function(e){var n=[];return 1&e&&n.push(v(84)),2&e&&n.push(v(124)),512&e&&n.push(v(79)),2048&e&&n.push(v(76)),4&e&&n.push(v(114)),8&e&&n.push(v(112)),16&e&&n.push(v(113)),128&e&&n.push(v(117)),32&e&&n.push(v(115)),64&e&&n.push(v(132)),256&e&&n.push(v(120)),n},d.createQualifiedName=y,d.updateQualifiedName=function(e,n,t){return e.left!==n||e.right!==t?p(y(n,t),e):e},d.createComputedPropertyName=h,d.updateComputedPropertyName=function(e,n){return e.expression!==n?p(h(n),e):e},d.createTypeParameterDeclaration=b,d.updateTypeParameterDeclaration=function(e,n,t,r){return e.name!==n||e.constraint!==t||e.default!==r?p(b(n,t,r),e):e},d.createParameter=E,d.updateParameter=function(e,n,t,r,a,i,o,s){return e.decorators!==n||e.modifiers!==t||e.dotDotDotToken!==r||e.name!==a||e.questionToken!==i||e.type!==o||e.initializer!==s?p(E(n,t,r,a,i,o,s),e):e},d.createDecorator=T,d.updateDecorator=function(e,n){return e.expression!==n?p(T(n),e):e},d.createPropertySignature=S,d.updatePropertySignature=function(e,n,t,r,a,i){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.type!==a||e.initializer!==i?p(S(n,t,r,a,i),e):e},d.createProperty=x,d.updateProperty=function(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.questionToken!==(void 0!==a&&55===a.kind?a:void 0)||e.exclamationToken!==(void 0!==a&&51===a.kind?a:void 0)||e.type!==i||e.initializer!==o?p(x(n,t,r,a,i,o),e):e},d.createMethodSignature=C,d.updateMethodSignature=function(e,n,t,r,a,i){return e.typeParameters!==n||e.parameters!==t||e.type!==r||e.name!==a||e.questionToken!==i?p(C(n,t,r,a,i),e):e},d.createMethod=D,d.updateMethod=function(e,n,t,r,a,i,o,s,c,l){return e.decorators!==n||e.modifiers!==t||e.asteriskToken!==r||e.name!==a||e.questionToken!==i||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==l?p(D(n,t,r,a,i,o,s,c,l),e):e},d.createConstructor=A,d.updateConstructor=function(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.parameters!==r||e.body!==a?p(A(n,t,r,a),e):e},d.createGetAccessor=L,d.updateGetAccessor=function(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.parameters!==a||e.type!==i||e.body!==o?p(L(n,t,r,a,i,o),e):e},d.createSetAccessor=k,d.updateSetAccessor=function(e,n,t,r,a,i){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.parameters!==a||e.body!==i?p(k(n,t,r,a,i),e):e},d.createCallSignature=function(e,n,t){return I(158,e,n,t)},d.updateCallSignature=function(e,n,t,r){return M(e,n,t,r)},d.createConstructSignature=function(e,n,t){return I(159,e,n,t)},d.updateConstructSignature=function(e,n,t,r){return M(e,n,t,r)},d.createIndexSignature=N,d.updateIndexSignature=function(e,n,t,r,a){return e.parameters!==r||e.type!==a||e.decorators!==n||e.modifiers!==t?p(N(n,t,r,a),e):e},d.createSignatureDeclaration=I,d.createKeywordTypeNode=function(e){return u(e)},d.createTypePredicateNode=O,d.updateTypePredicateNode=function(e,n,t){return e.parameterName!==n||e.type!==t?p(O(n,t),e):e},d.createTypeReferenceNode=w,d.updateTypeReferenceNode=function(e,n,t){return e.typeName!==n||e.typeArguments!==t?p(w(n,t),e):e},d.createFunctionTypeNode=function(e,n,t){return I(163,e,n,t)},d.updateFunctionTypeNode=function(e,n,t,r){return M(e,n,t,r)},d.createConstructorTypeNode=function(e,n,t){return I(164,e,n,t)},d.updateConstructorTypeNode=function(e,n,t,r){return M(e,n,t,r)},d.createTypeQueryNode=P,d.updateTypeQueryNode=function(e,n){return e.exprName!==n?p(P(n),e):e},d.createTypeLiteralNode=R,d.updateTypeLiteralNode=function(e,n){return e.members!==n?p(R(n),e):e},d.createArrayTypeNode=F,d.updateArrayTypeNode=function(e,n){return e.elementType!==n?p(F(n),e):e},d.createTupleTypeNode=G,d.updateTupleTypeNode=function(e,n){return e.elementTypes!==n?p(G(n),e):e},d.createOptionalTypeNode=V,d.updateOptionalTypeNode=function(e,n){return e.type!==n?p(V(n),e):e},d.createRestTypeNode=B,d.updateRestTypeNode=function(e,n){return e.type!==n?p(B(n),e):e},d.createUnionTypeNode=function(e){return K(171,e)},d.updateUnionTypeNode=function(e,n){return j(e,n)},d.createIntersectionTypeNode=function(e){return K(172,e)},d.updateIntersectionTypeNode=function(e,n){return j(e,n)},d.createUnionOrIntersectionTypeNode=K,d.createConditionalTypeNode=H,d.updateConditionalTypeNode=function(e,n,t,r,a){return e.checkType!==n||e.extendsType!==t||e.trueType!==r||e.falseType!==a?p(H(n,t,r,a),e):e},d.createInferTypeNode=U,d.updateInferTypeNode=function(e,n){return e.typeParameter!==n?p(U(n),e):e},d.createImportTypeNode=W,d.updateImportTypeNode=function(e,n,t,r,a){return e.argument!==n||e.qualifier!==t||e.typeArguments!==r||e.isTypeOf!==a?p(W(n,t,r,a),e):e},d.createParenthesizedType=q,d.updateParenthesizedType=function(e,n){return e.type!==n?p(q(n),e):e},d.createThisTypeNode=function(){return u(176)},d.createTypeOperatorNode=z,d.updateTypeOperatorNode=function(e,n){return e.type!==n?p(z(e.operator,n),e):e},d.createIndexedAccessTypeNode=J,d.updateIndexedAccessTypeNode=function(e,n,t){return e.objectType!==n||e.indexType!==t?p(J(n,t),e):e},d.createMappedTypeNode=X,d.updateMappedTypeNode=function(e,n,t,r,a){return e.readonlyToken!==n||e.typeParameter!==t||e.questionToken!==r||e.type!==a?p(X(n,t,r,a),e):e},d.createLiteralTypeNode=Y,d.updateLiteralTypeNode=function(e,n){return e.literal!==n?p(Y(n),e):e},d.createObjectBindingPattern=Q,d.updateObjectBindingPattern=function(e,n){return e.elements!==n?p(Q(n),e):e},d.createArrayBindingPattern=Z,d.updateArrayBindingPattern=function(e,n){return e.elements!==n?p(Z(n),e):e},d.createBindingElement=$,d.updateBindingElement=function(e,n,t,r,a){return e.propertyName!==t||e.dotDotDotToken!==n||e.name!==r||e.initializer!==a?p($(n,t,r,a),e):e},d.createArrayLiteral=ee,d.updateArrayLiteral=function(e,n){return e.elements!==n?p(ee(n,e.multiLine),e):e},d.createObjectLiteral=ne,d.updateObjectLiteral=function(e,n){return e.properties!==n?p(ne(n,e.multiLine),e):e},d.createPropertyAccess=te,d.updatePropertyAccess=function(e,n,t){return e.expression!==n||e.name!==t?p(Vn(te(n,t),d.getEmitFlags(e)),e):e},d.createElementAccess=re,d.updateElementAccess=function(e,n,t){return e.expression!==n||e.argumentExpression!==t?p(re(n,t),e):e},d.createCall=ae,d.updateCall=function(e,n,t,r){return e.expression!==n||e.typeArguments!==t||e.arguments!==r?p(ae(n,t,r),e):e},d.createNew=ie,d.updateNew=function(e,n,t,r){return e.expression!==n||e.typeArguments!==t||e.arguments!==r?p(ie(n,t,r),e):e},d.createTaggedTemplate=oe,d.updateTaggedTemplate=function(e,n,t,r){return e.tag!==n||(r?e.typeArguments!==t||e.template!==r:void 0!==e.typeArguments||e.template!==t)?p(oe(n,t,r),e):e},d.createTypeAssertion=se,d.updateTypeAssertion=function(e,n,t){return e.type!==n||e.expression!==t?p(se(n,t),e):e},d.createParen=ce,d.updateParen=function(e,n){return e.expression!==n?p(ce(n),e):e},d.createFunctionExpression=le,d.updateFunctionExpression=function(e,n,t,r,a,i,o,s){return e.name!==r||e.modifiers!==n||e.asteriskToken!==t||e.typeParameters!==a||e.parameters!==i||e.type!==o||e.body!==s?p(le(n,t,r,a,i,o,s),e):e},d.createArrowFunction=ue,d.updateArrowFunction=function(e,n,t,r,a,i,o){return e.modifiers!==n||e.typeParameters!==t||e.parameters!==r||e.type!==a||e.equalsGreaterThanToken!==i||e.body!==o?p(ue(n,t,r,a,i,o),e):e},d.createDelete=de,d.updateDelete=function(e,n){return e.expression!==n?p(de(n),e):e},d.createTypeOf=pe,d.updateTypeOf=function(e,n){return e.expression!==n?p(pe(n),e):e},d.createVoid=me,d.updateVoid=function(e,n){return e.expression!==n?p(me(n),e):e},d.createAwait=fe,d.updateAwait=function(e,n){return e.expression!==n?p(fe(n),e):e},d.createPrefix=_e,d.updatePrefix=function(e,n){return e.operand!==n?p(_e(e.operator,n),e):e},d.createPostfix=ge,d.updatePostfix=function(e,n){return e.operand!==n?p(ge(n,e.operator),e):e},d.createBinary=ve,d.updateBinary=function(e,n,t,r){return e.left!==n||e.right!==t?p(ve(n,r||e.operatorToken,t),e):e},d.createConditional=ye,d.updateConditional=function(e,n,t,r,a,i){return e.condition!==n||e.questionToken!==t||e.whenTrue!==r||e.colonToken!==a||e.whenFalse!==i?p(ye(n,t,r,a,i),e):e},d.createTemplateExpression=he,d.updateTemplateExpression=function(e,n,t){return e.head!==n||e.templateSpans!==t?p(he(n,t),e):e},d.createTemplateHead=function(e){var n=u(14);return n.text=e,n},d.createTemplateMiddle=function(e){var n=u(15);return n.text=e,n},d.createTemplateTail=function(e){var n=u(16);return n.text=e,n},d.createNoSubstitutionTemplateLiteral=function(e){var n=u(13);return n.text=e,n},d.createYield=be,d.updateYield=function(e,n,t){return e.expression!==t||e.asteriskToken!==n?p(be(n,t),e):e},d.createSpread=Ee,d.updateSpread=function(e,n){return e.expression!==n?p(Ee(n),e):e},d.createClassExpression=Te,d.updateClassExpression=function(e,n,t,r,a,i){return e.modifiers!==n||e.name!==t||e.typeParameters!==r||e.heritageClauses!==a||e.members!==i?p(Te(n,t,r,a,i),e):e},d.createOmittedExpression=function(){return u(208)},d.createExpressionWithTypeArguments=Se,d.updateExpressionWithTypeArguments=function(e,n,t){return e.typeArguments!==n||e.expression!==t?p(Se(n,t),e):e},d.createAsExpression=xe,d.updateAsExpression=function(e,n,t){return e.expression!==n||e.type!==t?p(xe(n,t),e):e},d.createNonNullExpression=Ce,d.updateNonNullExpression=function(e,n){return e.expression!==n?p(Ce(n),e):e},d.createMetaProperty=De,d.updateMetaProperty=function(e,n){return e.name!==n?p(De(e.keywordToken,n),e):e},d.createTemplateSpan=Ae,d.updateTemplateSpan=function(e,n,t){return e.expression!==n||e.literal!==t?p(Ae(n,t),e):e},d.createSemicolonClassElement=function(){return u(215)},d.createBlock=Le,d.updateBlock=function(e,n){return e.statements!==n?p(Le(n,e.multiLine),e):e},d.createVariableStatement=ke,d.updateVariableStatement=function(e,n,t){return e.modifiers!==n||e.declarationList!==t?p(ke(n,t),e):e},d.createEmptyStatement=function(){return u(218)},d.createExpressionStatement=Ne,d.updateExpressionStatement=e,d.createStatement=Ne,d.updateStatement=e,d.createIf=Ie,d.updateIf=function(e,n,t,r){return e.expression!==n||e.thenStatement!==t||e.elseStatement!==r?p(Ie(n,t,r),e):e},d.createDo=Me,d.updateDo=function(e,n,t){return e.statement!==n||e.expression!==t?p(Me(n,t),e):e},d.createWhile=Oe,d.updateWhile=function(e,n,t){return e.expression!==n||e.statement!==t?p(Oe(n,t),e):e},d.createFor=we,d.updateFor=function(e,n,t,r,a){return e.initializer!==n||e.condition!==t||e.incrementor!==r||e.statement!==a?p(we(n,t,r,a),e):e},d.createForIn=Pe,d.updateForIn=function(e,n,t,r){return e.initializer!==n||e.expression!==t||e.statement!==r?p(Pe(n,t,r),e):e},d.createForOf=Re,d.updateForOf=function(e,n,t,r,a){return e.awaitModifier!==n||e.initializer!==t||e.expression!==r||e.statement!==a?p(Re(n,t,r,a),e):e},d.createContinue=Fe,d.updateContinue=function(e,n){return e.label!==n?p(Fe(n),e):e},d.createBreak=Ge,d.updateBreak=function(e,n){return e.label!==n?p(Ge(n),e):e},d.createReturn=Ve,d.updateReturn=function(e,n){return e.expression!==n?p(Ve(n),e):e},d.createWith=Be,d.updateWith=function(e,n,t){return e.expression!==n||e.statement!==t?p(Be(n,t),e):e},d.createSwitch=Ke,d.updateSwitch=function(e,n,t){return e.expression!==n||e.caseBlock!==t?p(Ke(n,t),e):e},d.createLabel=je,d.updateLabel=function(e,n,t){return e.label!==n||e.statement!==t?p(je(n,t),e):e},d.createThrow=He,d.updateThrow=function(e,n){return e.expression!==n?p(He(n),e):e},d.createTry=Ue,d.updateTry=function(e,n,t,r){return e.tryBlock!==n||e.catchClause!==t||e.finallyBlock!==r?p(Ue(n,t,r),e):e},d.createDebuggerStatement=function(){return u(234)},d.createVariableDeclaration=We,d.updateVariableDeclaration=function(e,n,t,r){return e.name!==n||e.type!==t||e.initializer!==r?p(We(n,t,r),e):e},d.createVariableDeclarationList=qe,d.updateVariableDeclarationList=function(e,n){return e.declarations!==n?p(qe(n,e.flags),e):e},d.createFunctionDeclaration=ze,d.updateFunctionDeclaration=function(e,n,t,r,a,i,o,s,c){return e.decorators!==n||e.modifiers!==t||e.asteriskToken!==r||e.name!==a||e.typeParameters!==i||e.parameters!==o||e.type!==s||e.body!==c?p(ze(n,t,r,a,i,o,s,c),e):e},d.createClassDeclaration=Je,d.updateClassDeclaration=function(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?p(Je(n,t,r,a,i,o),e):e},d.createInterfaceDeclaration=Xe,d.updateInterfaceDeclaration=function(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?p(Xe(n,t,r,a,i,o),e):e},d.createTypeAliasDeclaration=Ye,d.updateTypeAliasDeclaration=function(e,n,t,r,a,i){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.typeParameters!==a||e.type!==i?p(Ye(n,t,r,a,i),e):e},d.createEnumDeclaration=Qe,d.updateEnumDeclaration=function(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.members!==a?p(Qe(n,t,r,a),e):e},d.createModuleDeclaration=Ze,d.updateModuleDeclaration=function(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.body!==a?p(Ze(n,t,r,a,e.flags),e):e},d.createModuleBlock=$e,d.updateModuleBlock=function(e,n){return e.statements!==n?p($e(n),e):e},d.createCaseBlock=en,d.updateCaseBlock=function(e,n){return e.clauses!==n?p(en(n),e):e},d.createNamespaceExportDeclaration=nn,d.updateNamespaceExportDeclaration=function(e,n){return e.name!==n?p(nn(n),e):e},d.createImportEqualsDeclaration=tn,d.updateImportEqualsDeclaration=function(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.moduleReference!==a?p(tn(n,t,r,a),e):e},d.createImportDeclaration=rn,d.updateImportDeclaration=function(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.importClause!==r||e.moduleSpecifier!==a?p(rn(n,t,r,a),e):e},d.createImportClause=an,d.updateImportClause=function(e,n,t){return e.name!==n||e.namedBindings!==t?p(an(n,t),e):e},d.createNamespaceImport=on,d.updateNamespaceImport=function(e,n){return e.name!==n?p(on(n),e):e},d.createNamedImports=sn,d.updateNamedImports=function(e,n){return e.elements!==n?p(sn(n),e):e},d.createImportSpecifier=cn,d.updateImportSpecifier=function(e,n,t){return e.propertyName!==n||e.name!==t?p(cn(n,t),e):e},d.createExportAssignment=ln,d.updateExportAssignment=function(e,n,t,r){return e.decorators!==n||e.modifiers!==t||e.expression!==r?p(ln(n,t,e.isExportEquals,r),e):e},d.createExportDeclaration=un,d.updateExportDeclaration=function(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.exportClause!==r||e.moduleSpecifier!==a?p(un(n,t,r,a),e):e},d.createNamedExports=dn,d.updateNamedExports=function(e,n){return e.elements!==n?p(dn(n),e):e},d.createExportSpecifier=pn,d.updateExportSpecifier=function(e,n,t){return e.propertyName!==n||e.name!==t?p(pn(n,t),e):e},d.createExternalModuleReference=mn,d.updateExternalModuleReference=function(e,n){return e.expression!==n?p(mn(n),e):e},d.createJsxElement=fn,d.updateJsxElement=function(e,n,t,r){return e.openingElement!==n||e.children!==t||e.closingElement!==r?p(fn(n,t,r),e):e},d.createJsxSelfClosingElement=_n,d.updateJsxSelfClosingElement=function(e,n,t,r){return e.tagName!==n||e.typeArguments!==t||e.attributes!==r?p(_n(n,t,r),e):e},d.createJsxOpeningElement=gn,d.updateJsxOpeningElement=function(e,n,t,r){return e.tagName!==n||e.typeArguments!==t||e.attributes!==r?p(gn(n,t,r),e):e},d.createJsxClosingElement=vn,d.updateJsxClosingElement=function(e,n){return e.tagName!==n?p(vn(n),e):e},d.createJsxFragment=yn,d.updateJsxFragment=function(e,n,t,r){return e.openingFragment!==n||e.children!==t||e.closingFragment!==r?p(yn(n,t,r),e):e},d.createJsxAttribute=hn,d.updateJsxAttribute=function(e,n,t){return e.name!==n||e.initializer!==t?p(hn(n,t),e):e},d.createJsxAttributes=bn,d.updateJsxAttributes=function(e,n){return e.properties!==n?p(bn(n),e):e},d.createJsxSpreadAttribute=En,d.updateJsxSpreadAttribute=function(e,n){return e.expression!==n?p(En(n),e):e},d.createJsxExpression=Tn,d.updateJsxExpression=function(e,n){return e.expression!==n?p(Tn(e.dotDotDotToken,n),e):e},d.createCaseClause=Sn,d.updateCaseClause=function(e,n,t){return e.expression!==n||e.statements!==t?p(Sn(n,t),e):e},d.createDefaultClause=xn,d.updateDefaultClause=function(e,n){return e.statements!==n?p(xn(n),e):e},d.createHeritageClause=Cn,d.updateHeritageClause=function(e,n){return e.types!==n?p(Cn(e.token,n),e):e},d.createCatchClause=Dn,d.updateCatchClause=function(e,n,t){return e.variableDeclaration!==n||e.block!==t?p(Dn(n,t),e):e},d.createPropertyAssignment=An,d.updatePropertyAssignment=function(e,n,t){return e.name!==n||e.initializer!==t?p(An(n,t),e):e},d.createShorthandPropertyAssignment=Ln,d.updateShorthandPropertyAssignment=function(e,n,t){return e.name!==n||e.objectAssignmentInitializer!==t?p(Ln(n,t),e):e},d.createSpreadAssignment=kn,d.updateSpreadAssignment=function(e,n){return e.expression!==n?p(kn(n),e):e},d.createEnumMember=Nn,d.updateEnumMember=function(e,n,t){return e.name!==n||e.initializer!==t?p(Nn(n,t),e):e},d.updateSourceFileNode=function(e,n,t,r,a,i,o){if(e.statements!==n||void 0!==t&&e.isDeclarationFile!==t||void 0!==r&&e.referencedFiles!==r||void 0!==a&&e.typeReferenceDirectives!==a||void 0!==o&&e.libReferenceDirectives!==o||void 0!==i&&e.hasNoDefaultLib!==i){var s=u(277);return s.flags|=e.flags,s.statements=m(n),s.endOfFileToken=e.endOfFileToken,s.fileName=e.fileName,s.path=e.path,s.text=e.text,s.isDeclarationFile=void 0===t?e.isDeclarationFile:t,s.referencedFiles=void 0===r?e.referencedFiles:r,s.typeReferenceDirectives=void 0===a?e.typeReferenceDirectives:a,s.hasNoDefaultLib=void 0===i?e.hasNoDefaultLib:i,s.libReferenceDirectives=void 0===o?e.libReferenceDirectives:o,void 0!==e.amdDependencies&&(s.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(s.moduleName=e.moduleName),void 0!==e.languageVariant&&(s.languageVariant=e.languageVariant),void 0!==e.renamedDependencies&&(s.renamedDependencies=e.renamedDependencies),void 0!==e.languageVersion&&(s.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(s.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(s.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(s.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(s.identifiers=e.identifiers),void 0!==e.nodeCount&&(s.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(s.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(s.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(s.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(s.bindDiagnostics=e.bindDiagnostics),void 0!==e.bindSuggestionDiagnostics&&(s.bindSuggestionDiagnostics=e.bindSuggestionDiagnostics),void 0!==e.lineMap&&(s.lineMap=e.lineMap),void 0!==e.classifiableNames&&(s.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(s.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(s.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(s.imports=e.imports),void 0!==e.moduleAugmentations&&(s.moduleAugmentations=e.moduleAugmentations),void 0!==e.pragmas&&(s.pragmas=e.pragmas),void 0!==e.localJsxFactory&&(s.localJsxFactory=e.localJsxFactory),void 0!==e.localJsxNamespace&&(s.localJsxNamespace=e.localJsxNamespace),p(s,e)}return e},d.getMutableClone=function(e){var n=t(e);return n.pos=e.pos,n.end=e.end,n.parent=e.parent,n},d.createNotEmittedStatement=function(e){var n=u(305);return n.original=e,Gn(n,e),n},d.createEndOfDeclarationMarker=function(e){var n=u(309);return n.emitNode={},n.original=e,n},d.createMergeDeclarationMarker=function(e){var n=u(308);return n.emitNode={},n.original=e,n},d.createPartiallyEmittedExpression=In,d.updatePartiallyEmittedExpression=function(e,n){return e.expression!==n?p(In(n,e.original),e):e},d.createCommaList=On,d.updateCommaList=function(e,n){return e.elements!==n?p(On(n),e):e},d.createBundle=wn,d.createUnparsedSourceFile=function(e,n,t){var r=d.createNode(279);return r.text=e,r.sourceMapPath=n,r.sourceMapText=t,r},d.createInputFiles=function(e,n,t,r,a,i){var o=d.createNode(280);return o.javascriptText=e,o.javascriptMapPath=t,o.javascriptMapText=r,o.declarationText=n,o.declarationMapPath=a,o.declarationMapText=i,o},d.updateBundle=function(e,n,t){return void 0===t&&(t=d.emptyArray),e.sourceFiles!==n||e.prepends!==t?wn(n,t):e},d.createImmediatelyInvokedFunctionExpression=function(e,n,t){return ae(le(void 0,void 0,void 0,void 0,n?[n]:[],void 0,Le(e,!0)),void 0,t?[t]:[])},d.createImmediatelyInvokedArrowFunction=function(e,n,t){return ae(ue(void 0,void 0,n?[n]:[],void 0,void 0,Le(e,!0)),void 0,t?[t]:[])},d.createComma=function(e,n){return ve(e,26,n)},d.createLessThan=function(e,n){return ve(e,27,n)},d.createAssignment=function(e,n){return ve(e,58,n)},d.createStrictEquality=function(e,n){return ve(e,34,n)},d.createStrictInequality=function(e,n){return ve(e,35,n)},d.createAdd=function(e,n){return ve(e,37,n)},d.createSubtract=function(e,n){return ve(e,38,n)},d.createPostfixIncrement=function(e){return ge(e,43)},d.createLogicalAnd=function(e,n){return ve(e,53,n)},d.createLogicalOr=function(e,n){return ve(e,54,n)},d.createLogicalNot=function(e){return _e(51,e)},d.createVoidZero=function(){return me(a(0))},d.createExportDefault=function(e){return ln(void 0,void 0,!1,e)},d.createExternalModuleExport=function(e){return un(void 0,void 0,dn([pn(void 0,e)]))},d.disposeEmitNodes=function(e){var n=(e=d.getSourceFileOfNode(d.getParseTreeNode(e)))&&e.emitNode,t=n&&n.annotatedNodes;if(t)for(var r=0,a=t;r<a.length;r++)a[r].emitNode=void 0},d.getOrCreateEmitNode=Fn,d.setTextRange=Gn,d.setEmitFlags=Vn,d.addEmitFlags=function(e,n){var t=Fn(e);return t.flags=t.flags|n,e},d.getSourceMapRange=function(e){var n=e.emitNode;return n&&n.sourceMapRange||e},d.setSourceMapRange=function(e,n){return Fn(e).sourceMapRange=n,e},d.createSourceMapSource=function(e,n,t){return new(s||(s=d.objectAllocator.getSourceMapSourceConstructor()))(e,n,t)},d.getTokenSourceMapRange=function(e,n){var t=e.emitNode,r=t&&t.tokenSourceMapRanges;return r&&r[n]},d.setTokenSourceMapRange=function(e,n,t){var r=Fn(e);return(r.tokenSourceMapRanges||(r.tokenSourceMapRanges=[]))[n]=t,e},d.getStartsOnNewLine=function(e){var n=e.emitNode;return n&&n.startsOnNewLine},d.setStartsOnNewLine=function(e,n){return Fn(e).startsOnNewLine=n,e},d.getCommentRange=function(e){var n=e.emitNode;return n&&n.commentRange||e},d.setCommentRange=function(e,n){return Fn(e).commentRange=n,e},d.getSyntheticLeadingComments=Bn,d.setSyntheticLeadingComments=Kn,d.addSyntheticLeadingComment=function(e,n,t,r){return Kn(e,d.append(Bn(e),{kind:n,pos:-1,end:-1,hasTrailingNewLine:r,text:t}))},d.getSyntheticTrailingComments=jn,d.setSyntheticTrailingComments=Hn,d.addSyntheticTrailingComment=function(e,n,t,r){return Hn(e,d.append(jn(e),{kind:n,pos:-1,end:-1,hasTrailingNewLine:r,text:t}))},d.moveSyntheticComments=function(e,n){Kn(e,Bn(n)),Hn(e,jn(n));var t=Fn(n);return t.leadingComments=void 0,t.trailingComments=void 0,e},d.getConstantValue=function(e){var n=e.emitNode;return n&&n.constantValue},d.setConstantValue=function(e,n){return Fn(e).constantValue=n,e},d.addEmitHelper=function(e,n){var t=Fn(e);return t.helpers=d.append(t.helpers,n),e},d.addEmitHelpers=function(e,n){if(d.some(n))for(var t=Fn(e),r=0,a=n;r<a.length;r++){var i=a[r];t.helpers=d.appendIfUnique(t.helpers,i)}return e},d.removeEmitHelper=function(e,n){var t=e.emitNode;if(t){var r=t.helpers;if(r)return d.orderedRemoveItem(r,n)}return!1},d.getEmitHelpers=function(e){var n=e.emitNode;return n&&n.helpers},d.moveEmitHelpers=function(e,n,t){var r=e.emitNode,a=r&&r.helpers;if(d.some(a)){for(var i=Fn(n),o=0,s=0;s<a.length;s++){var c=a[s];t(c)?(o++,i.helpers=d.appendIfUnique(i.helpers,c)):0<o&&(a[s-o]=c)}0<o&&(a.length-=o)}},d.compareEmitHelpers=function(e,n){return e===n?0:e.priority===n.priority?0:void 0===e.priority?1:void 0===n.priority?-1:d.compareValues(e.priority,n.priority)},d.setOriginalNode=Un}(ts||(ts={})),function(f){function l(e,n,t){if(f.isComputedPropertyName(n))return f.setTextRange(f.createElementAccess(e,n.expression),t);var r=f.setTextRange(f.isIdentifier(n)?f.createPropertyAccess(e,n):f.createElementAccess(e,n),n);return f.getOrCreateEmitNode(r).flags|=64,r}function u(e,n){var t=f.createIdentifier(e||"React");return t.flags&=-9,t.parent=f.getParseTreeNode(n),t}function d(e,n,t){return e?function e(n,t){if(f.isQualifiedName(n)){var r=e(n.left,t),a=f.createIdentifier(f.idText(n.right));return a.escapedText=n.right.escapedText,f.createPropertyAccess(r,a)}return u(f.idText(n),t)}(e,t):f.createPropertyAccess(u(n,t),"createElement")}function a(e){return f.setEmitFlags(f.createIdentifier(e),4098)}f.nullTransformationContext={enableEmitNotification:f.noop,enableSubstitution:f.noop,endLexicalEnvironment:function(){},getCompilerOptions:f.notImplemented,getEmitHost:f.notImplemented,getEmitResolver:f.notImplemented,hoistFunctionDeclaration:f.noop,hoistVariableDeclaration:f.noop,isEmitNotificationEnabled:f.notImplemented,isSubstitutionEnabled:f.notImplemented,onEmitNode:f.noop,onSubstituteNode:f.notImplemented,readEmitHelpers:f.notImplemented,requestEmitHelper:f.noop,resumeLexicalEnvironment:f.noop,startLexicalEnvironment:f.noop,suspendLexicalEnvironment:f.noop,addDiagnostic:f.noop},f.createTypeCheck=function(e,n){return"undefined"===n?f.createStrictEquality(e,f.createVoidZero()):f.createStrictEquality(f.createTypeOf(e),f.createLiteral(n))},f.createMemberAccessForPropertyName=l,f.createFunctionCall=function(e,n,t,r){return f.setTextRange(f.createCall(f.createPropertyAccess(e,"call"),void 0,[n].concat(t)),r)},f.createFunctionApply=function(e,n,t,r){return f.setTextRange(f.createCall(f.createPropertyAccess(e,"apply"),void 0,[n,t]),r)},f.createArraySlice=function(e,n){var t=[];return void 0!==n&&t.push("number"==typeof n?f.createLiteral(n):n),f.createCall(f.createPropertyAccess(e,"slice"),void 0,t)},f.createArrayConcat=function(e,n){return f.createCall(f.createPropertyAccess(e,"concat"),void 0,n)},f.createMathPow=function(e,n,t){return f.setTextRange(f.createCall(f.createPropertyAccess(f.createIdentifier("Math"),"pow"),void 0,[e,n]),t)},f.createExpressionForJsxElement=function(e,n,t,r,a,i,o){var s=[t];if(r&&s.push(r),a&&0<a.length)if(r||s.push(f.createNull()),1<a.length)for(var c=0,l=a;c<l.length;c++){var u=l[c];k(u),s.push(u)}else s.push(a[0]);return f.setTextRange(f.createCall(d(e,n,i),void 0,s),o)},f.createExpressionForJsxFragment=function(e,n,t,r,a){var i=[f.createPropertyAccess(u(n,r),"Fragment")];if(i.push(f.createNull()),t&&0<t.length)if(1<t.length)for(var o=0,s=t;o<s.length;o++){var c=s[o];k(c),i.push(c)}else i.push(t[0]);return f.setTextRange(f.createCall(d(e,n,r),void 0,i),a)},f.getHelperName=a;var r={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            };'};var i={name:"typescript:read",scoped:!(f.createValuesHelper=function(e,n,t){return e.requestEmitHelper(r),f.setTextRange(f.createCall(a("__values"),void 0,[n]),t)}),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            };'};var e,o={name:"typescript:spread",scoped:!(f.createReadHelper=function(e,n,t,r){return e.requestEmitHelper(i),f.setTextRange(f.createCall(a("__read"),void 0,void 0!==t?[n,f.createLiteral(t)]:[n]),r)}),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 s(e,n){var t=f.skipParentheses(e);switch(t.kind){case 71:return n;case 99:case 8:case 9:return!1;case 185:return 0!==t.elements.length;case 186:return 0<t.properties.length;default:return!0}}function _(e){return f.isIdentifier(e)?f.createLiteral(e):f.isComputedPropertyName(e)?f.getMutableClone(e.expression):f.getMutableClone(e)}function c(e,n,t){return p(e,n,t,8192)}function p(e,n,t,r){void 0===r&&(r=0);var a=f.getNameOfDeclaration(e);if(a&&f.isIdentifier(a)&&!f.isGeneratedIdentifier(a)){var i=f.getMutableClone(a);return r|=f.getEmitFlags(a),t||(r|=48),n||(r|=1536),r&&f.setEmitFlags(i,r),i}return f.getGeneratedNameForNode(e)}function m(e,n,t,r){var a=f.createPropertyAccess(e,f.nodeIsSynthesized(n)?n:f.getSynthesizedClone(n));f.setTextRange(a,n);var i=0;return r||(i|=48),t||(i|=1536),i&&f.setEmitFlags(a,i),a}function g(e){return f.isStringLiteral(e.expression)&&"use strict"===e.expression.text}function v(e,n,t){f.Debug.assert(0===e.length,"Prologue directives should be at the first statement in the target statements array");for(var r=!1,a=0,i=n.length;a<i;){var o=n[a];if(!f.isPrologueDirective(o))break;g(o)&&(r=!0),e.push(o),a++}return t&&!r&&e.push(k(f.createStatement(f.createLiteral("use strict")))),a}function y(e,n,t,r){for(var a=n.length;void 0!==t&&t<a;){var i=n[t];if(!(1048576&f.getEmitFlags(i)))break;f.append(e,r?f.visitNode(i,r,f.isStatement):i),t++}return t}function n(e){for(var n=0,t=e;n<t.length;n++){var r=t[n];if(!f.isPrologueDirective(r))break;if(g(r))return r}}function h(e){if(e=f.skipPartiallyEmittedExpressions(e),f.isLiteralKind(e.kind))return e.kind;if(202!==e.kind||37!==e.operatorToken.kind)return 0;if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;var n=h(e.left),t=f.isLiteralKind(n)&&n===h(e.right)?n:0;return e.cachedLiteralKind=t}function b(e){var n=f.skipPartiallyEmittedExpressions(e);return f.isLeftHandSideExpression(n)&&(190!==n.kind||n.arguments)?e:f.setTextRange(f.createParen(e),e)}function E(e){var n=f.skipPartiallyEmittedExpressions(e),t=f.getExpressionPrecedence(n);return f.getOperatorPrecedence(202,26)<t?e:f.setTextRange(f.createParen(e),e)}function t(e){return 173===e.kind?f.createParenthesizedType(e):e}function T(e){switch(e.kind){case 171:case 172:case 163:case 164:return f.createParenthesizedType(e)}return t(e)}function S(e,n){for(;;){switch(e.kind){case 201:e=e.operand;continue;case 202:e=e.left;continue;case 203:e=e.condition;continue;case 191:e=e.tag;continue;case 189:if(n)return e;case 210:case 188:case 187:case 211:case 306:e=e.expression;continue}return e}}function x(e){return 202===e.kind&&26===e.operatorToken.kind||307===e.kind}function C(e,n){switch(void 0===n&&(n=7),e.kind){case 193:return 0!=(1&n);case 192:case 210:case 211:return 0!=(2&n);case 306:return 0!=(4&n)}return!1}function D(e,n){var t;for(void 0===n&&(n=7);t=e,1&n&&(e=f.skipParentheses(e)),2&n&&(e=A(e)),4&n&&(e=f.skipPartiallyEmittedExpressions(e)),t!==e;);return e}function A(e){for(;f.isAssertionExpression(e)||211===e.kind;)e=e.expression;return e}function L(e,n,t){return void 0===t&&(t=7),e&&C(e,t)&&(!(193===(r=e).kind&&f.nodeIsSynthesized(r)&&f.nodeIsSynthesized(f.getSourceMapRange(r))&&f.nodeIsSynthesized(f.getCommentRange(r)))||f.some(f.getSyntheticLeadingComments(r))||f.some(f.getSyntheticTrailingComments(r)))?function(e,n){switch(e.kind){case 193:return f.updateParen(e,n);case 192:return f.updateTypeAssertion(e,e.type,n);case 210:return f.updateAsExpression(e,n,e.type);case 211:return f.updateNonNullExpression(e,n);case 306:return f.updatePartiallyEmittedExpression(e,n)}}(e,L(e.expression,n)):n;var r}function k(e){return f.setStartsOnNewLine(e,!0)}function N(e){var n=f.getOriginalNode(e,f.isSourceFile),t=n&&n.emitNode;return t&&t.externalHelpersModuleName}function I(e,n,t){if(e)return e.moduleName?f.createLiteral(e.moduleName):e.isDeclarationFile||!t.out&&!t.outFile?void 0:f.createLiteral(f.getExternalModuleNameFromPath(n,e.fileName))}function M(e){if(f.isDeclarationBindingElement(e))return e.name;if(!f.isObjectLiteralElementLike(e))return f.isAssignmentExpression(e,!0)?M(e.left):f.isSpreadElement(e)?M(e.expression):e;switch(e.kind){case 273:return M(e.initializer);case 274:return e.name;case 275:return M(e.expression)}}function O(e){var n=e.kind;return 9===n||8===n}function w(e){if(f.isBindingElement(e)){if(e.dotDotDotToken)return f.Debug.assertNode(e.name,f.isIdentifier),f.setOriginalNode(f.setTextRange(f.createSpread(e.name),e),e);var n=V(e.name);return e.initializer?f.setOriginalNode(f.setTextRange(f.createAssignment(n,e.initializer),e),e):n}return f.Debug.assertNode(e,f.isExpression),e}function P(e){if(f.isBindingElement(e)){if(e.dotDotDotToken)return f.Debug.assertNode(e.name,f.isIdentifier),f.setOriginalNode(f.setTextRange(f.createSpreadAssignment(e.name),e),e);if(e.propertyName){var n=V(e.name);return f.setOriginalNode(f.setTextRange(f.createPropertyAssignment(e.propertyName,e.initializer?f.createAssignment(n,e.initializer):n),e),e)}return f.Debug.assertNode(e.name,f.isIdentifier),f.setOriginalNode(f.setTextRange(f.createShorthandPropertyAssignment(e.name,e.initializer),e),e)}return f.Debug.assertNode(e,f.isObjectLiteralElementLike),e}function R(e){switch(e.kind){case 183:case 185:return G(e);case 182:case 186:return F(e)}}function F(e){return f.isObjectBindingPattern(e)?f.setOriginalNode(f.setTextRange(f.createObjectLiteral(f.map(e.elements,P)),e),e):(f.Debug.assertNode(e,f.isObjectLiteralExpression),e)}function G(e){return f.isArrayBindingPattern(e)?f.setOriginalNode(f.setTextRange(f.createArrayLiteral(f.map(e.elements,w)),e),e):(f.Debug.assertNode(e,f.isArrayLiteralExpression),e)}function V(e){return f.isBindingPattern(e)?R(e):(f.Debug.assertNode(e,f.isExpression),e)}f.createSpreadHelper=function(e,n,t){return e.requestEmitHelper(i),e.requestEmitHelper(o),f.setTextRange(f.createCall(a("__spread"),void 0,n),t)},f.createForOfBindingStatement=function(e,n){if(f.isVariableDeclarationList(e)){var t=f.first(e.declarations),r=f.updateVariableDeclaration(t,t.name,void 0,n);return f.setTextRange(f.createVariableStatement(void 0,f.updateVariableDeclarationList(e,[r])),e)}var a=f.setTextRange(f.createAssignment(e,n),e);return f.setTextRange(f.createStatement(a),e)},f.insertLeadingStatement=function(e,n){return f.isBlock(e)?f.updateBlock(e,f.setTextRange(f.createNodeArray([n].concat(e.statements)),e.statements)):f.createBlock(f.createNodeArray([e,n]),!0)},f.restoreEnclosingLabel=function e(n,t,r){if(!t)return n;var a=f.updateLabel(t,t.label,231===t.statement.kind?e(n,t.statement):n);return r&&r(t),a},f.createCallBinding=function(e,n,t,r){void 0===r&&(r=!1);var a,i,o=D(e,7);if(f.isSuperProperty(o))a=f.createThis(),i=o;else if(97===o.kind)a=f.createThis(),i=t<2?f.setTextRange(f.createIdentifier("_super"),o):o;else if(4096&f.getEmitFlags(o))a=f.createVoidZero(),i=b(o);else switch(o.kind){case 187:s(o.expression,r)?(a=f.createTempVariable(n),i=f.createPropertyAccess(f.setTextRange(f.createAssignment(a,o.expression),o.expression),o.name),f.setTextRange(i,o)):(a=o.expression,i=o);break;case 188:s(o.expression,r)?(a=f.createTempVariable(n),i=f.createElementAccess(f.setTextRange(f.createAssignment(a,o.expression),o.expression),o.argumentExpression),f.setTextRange(i,o)):(a=o.expression,i=o);break;default:a=f.createVoidZero(),i=b(e)}return{target:i,thisArg:a}},f.inlineExpressions=function(e){return 10<e.length?f.createCommaList(e):f.reduceLeft(e,f.createComma)},f.createExpressionFromEntityName=function e(n){if(f.isQualifiedName(n)){var t=e(n.left),r=f.getMutableClone(n.right);return f.setTextRange(f.createPropertyAccess(t,r),n)}return f.getMutableClone(n)},f.createExpressionForPropertyName=_,f.createExpressionForObjectLiteralElementLike=function(e,n,t){switch(n.kind){case 156:case 157:return function(e,n,t,r){var a=f.getAllAccessorDeclarations(e,n),i=a.firstAccessor,o=a.getAccessor,s=a.setAccessor;if(n===i){var c=[];if(o){var l=f.createFunctionExpression(o.modifiers,void 0,void 0,void 0,o.parameters,void 0,o.body);f.setTextRange(l,o),f.setOriginalNode(l,o);var u=f.createPropertyAssignment("get",l);c.push(u)}if(s){var d=f.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);f.setTextRange(d,s),f.setOriginalNode(d,s);var p=f.createPropertyAssignment("set",d);c.push(p)}c.push(f.createPropertyAssignment("enumerable",f.createTrue())),c.push(f.createPropertyAssignment("configurable",f.createTrue()));var m=f.setTextRange(f.createCall(f.createPropertyAccess(f.createIdentifier("Object"),"defineProperty"),void 0,[t,_(n.name),f.createObjectLiteral(c,r)]),i);return f.aggregateTransformFlags(m)}}(e.properties,n,t,!!e.multiLine);case 273:return s=n,c=t,f.aggregateTransformFlags(f.setOriginalNode(f.setTextRange(f.createAssignment(l(c,s.name,s.name),s.initializer),s),s));case 274:return i=n,o=t,f.aggregateTransformFlags(f.setOriginalNode(f.setTextRange(f.createAssignment(l(o,i.name,i.name),f.getSynthesizedClone(i.name)),i),i));case 154:return r=n,a=t,f.aggregateTransformFlags(f.setOriginalNode(f.setTextRange(f.createAssignment(l(a,r.name,r.name),f.setOriginalNode(f.setTextRange(f.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,void 0,r.parameters,void 0,r.body),r),r)),r),r))}var r,a,i,o,s,c},f.getInternalName=function(e,n,t){return p(e,n,t,49152)},f.isInternalName=function(e){return 0!=(32768&f.getEmitFlags(e))},f.getLocalName=function(e,n,t){return p(e,n,t,16384)},f.isLocalName=function(e){return 0!=(16384&f.getEmitFlags(e))},f.getExportName=c,f.isExportName=function(e){return 0!=(8192&f.getEmitFlags(e))},f.getDeclarationName=function(e,n,t){return p(e,n,t)},f.getExternalModuleOrNamespaceExportName=function(e,n,t,r){return e&&f.hasModifier(n,1)?m(e,p(n),t,r):c(n,t,r)},f.getNamespaceMemberName=m,f.convertToFunctionBody=function(e,n){return f.isBlock(e)?e:f.setTextRange(f.createBlock([f.setTextRange(f.createReturn(e),e)],n),e)},f.convertFunctionDeclarationToExpression=function(e){if(!e.body)return f.Debug.fail();var n=f.createFunctionExpression(e.modifiers,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);return f.setOriginalNode(n,e),f.setTextRange(n,e),f.getStartsOnNewLine(e)&&f.setStartsOnNewLine(n,!0),f.aggregateTransformFlags(n),n},f.addPrologue=function(e,n,t,r){return y(e,n,v(e,n,t),r)},f.addStandardPrologue=v,f.addCustomPrologue=y,f.findUseStrictPrologue=n,f.startsWithUseStrict=function(e){var n=f.firstOrUndefined(e);return void 0!==n&&f.isPrologueDirective(n)&&g(n)},f.ensureUseStrict=function(e){return n(e)?e:f.setTextRange(f.createNodeArray([k(f.createStatement(f.createLiteral("use strict")))].concat(e)),e)},f.parenthesizeBinaryOperand=function(e,n,t,r){return 193===f.skipPartiallyEmittedExpressions(n).kind?n:function(e,n,t,r){var a=f.getOperatorPrecedence(202,e),i=f.getOperatorAssociativity(202,e),o=f.skipPartiallyEmittedExpressions(n);if(!t&&195===n.kind&&4<a)return!0;var s,c=f.getExpressionPrecedence(o);switch(f.compareValues(c,a)){case-1:return!(!t&&1===i&&205===n.kind);case 1:return!1;case 0:if(t)return 1===i;if(f.isBinaryExpression(o)&&o.operatorToken.kind===e){if(39===(s=e)||49===s||48===s||50===s)return!1;if(37===e){var l=r?h(r):0;if(f.isLiteralKind(l)&&l===h(o))return!1}}var u=f.getExpressionAssociativity(o);return 0===u}}(e,n,t,r)?f.createParen(n):n},f.parenthesizeForConditionalHead=function(e){var n=f.getOperatorPrecedence(203,55),t=f.skipPartiallyEmittedExpressions(e),r=f.getExpressionPrecedence(t);return-1===f.compareValues(r,n)?f.createParen(e):e},f.parenthesizeSubexpressionOfConditionalExpression=function(e){return x(f.skipPartiallyEmittedExpressions(e))?f.createParen(e):e},f.parenthesizeDefaultExpression=function(e){var n=f.skipPartiallyEmittedExpressions(e),t=x(n);if(!t)switch(S(n,!1).kind){case 207:case 194:t=!0}return t?f.createParen(e):e},f.parenthesizeForNew=function(e){var n=S(e,!0);switch(n.kind){case 189:return f.createParen(e);case 190:return n.arguments?e:f.createParen(e)}return b(e)},f.parenthesizeForAccess=b,f.parenthesizePostfixOperand=function(e){return f.isLeftHandSideExpression(e)?e:f.setTextRange(f.createParen(e),e)},f.parenthesizePrefixOperand=function(e){return f.isUnaryExpression(e)?e:f.setTextRange(f.createParen(e),e)},f.parenthesizeListElements=function(e){for(var n,t=0;t<e.length;t++){var r=E(e[t]);void 0===n&&r===e[t]||(void 0===n&&(n=e.slice(0,t)),n.push(r))}return void 0!==n?f.setTextRange(f.createNodeArray(n,e.hasTrailingComma),e):e},f.parenthesizeExpressionForList=E,f.parenthesizeExpressionForExpressionStatement=function(e){var n=f.skipPartiallyEmittedExpressions(e);if(f.isCallExpression(n)){var t=n.expression,r=f.skipPartiallyEmittedExpressions(t).kind;if(194===r||195===r){var a=f.getMutableClone(n);return a.expression=f.setTextRange(f.createParen(t),t),L(e,a,4)}}var i=S(n,!1).kind;return 186===i||194===i?f.setTextRange(f.createParen(e),e):e},f.parenthesizeConditionalTypeMember=t,f.parenthesizeElementTypeMember=T,f.parenthesizeArrayTypeMember=function(e){switch(e.kind){case 165:case 177:case 174:return f.createParenthesizedType(e)}return T(e)},f.parenthesizeElementTypeMembers=function(e){return f.createNodeArray(f.sameMap(e,T))},f.parenthesizeTypeParameters=function(e){if(f.some(e)){for(var n=[],t=0;t<e.length;++t){var r=e[t];n.push(0===t&&f.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?f.createParenthesizedType(r):r)}return f.createNodeArray(n)}},f.parenthesizeConciseBody=function(e){return f.isBlock(e)||!x(e)&&186!==S(e,!1).kind?e:f.setTextRange(f.createParen(e),e)},f.isCommaSequence=x,(e=f.OuterExpressionKinds||(f.OuterExpressionKinds={}))[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All",f.isOuterExpression=C,f.skipOuterExpressions=D,f.skipAssertions=A,f.recreateOuterExpressions=L,f.startOnNewLine=k,f.getExternalHelpersModuleName=N,f.getOrCreateExternalHelpersModuleNameIfNeeded=function(e,n,t,r){if(n.importHelpers&&f.isEffectiveExternalModule(e,n)){var a=N(e);if(a)return a;var i=f.getEmitModuleKind(n),o=(t||n.esModuleInterop&&r)&&i!==f.ModuleKind.System&&i!==f.ModuleKind.ES2015&&i!==f.ModuleKind.ESNext;if(!o){var s=f.getEmitHelpers(e);if(s)for(var c=0,l=s;c<l.length;c++)if(!l[c].scoped){o=!0;break}}if(o){var u=f.getOriginalNode(e,f.isSourceFile),d=f.getOrCreateEmitNode(u);return d.externalHelpersModuleName||(d.externalHelpersModuleName=f.createUniqueName(f.externalHelpersModuleNameText))}}},f.getLocalNameForExternalImport=function(e,n){var t=f.getNamespaceDeclarationNode(e);if(!t||f.isDefaultImport(e))return 247===e.kind&&e.importClause?f.getGeneratedNameForNode(e):253===e.kind&&e.moduleSpecifier?f.getGeneratedNameForNode(e):void 0;var r=t.name;return f.isGeneratedIdentifier(r)?r:f.createIdentifier(f.getSourceTextOfNodeFromSourceFile(n,r)||f.idText(r))},f.getExternalModuleNameLiteral=function(e,n,t,r,a){var i,o,s,c,l,u,d=f.getExternalModuleName(e);if(9===d.kind)return c=e,l=t,u=a,I(r.getExternalModuleFileFromDeclaration(c),l,u)||(i=d,(s=(o=n).renamedDependencies&&o.renamedDependencies.get(i.text))&&f.createLiteral(s))||f.getSynthesizedClone(d)},f.tryGetModuleNameFromFile=I,f.getInitializerOfBindingOrAssignmentElement=function e(n){if(f.isDeclarationBindingElement(n))return n.initializer;if(f.isPropertyAssignment(n)){var t=n.initializer;return f.isAssignmentExpression(t,!0)?t.right:void 0}return f.isShorthandPropertyAssignment(n)?n.objectAssignmentInitializer:f.isAssignmentExpression(n,!0)?n.right:f.isSpreadElement(n)?e(n.expression):void 0},f.getTargetOfBindingOrAssignmentElement=M,f.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 149:case 184:return e.dotDotDotToken;case 206:case 275:return e}},f.getPropertyNameOfBindingOrAssignmentElement=function(e){switch(e.kind){case 184:if(e.propertyName){var n=e.propertyName;return f.isComputedPropertyName(n)&&O(n.expression)?n.expression:n}break;case 273:if(e.name)return n=e.name,f.isComputedPropertyName(n)&&O(n.expression)?n.expression:n;break;case 275:return e.name}var t=M(e);if(t&&f.isPropertyName(t))return f.isComputedPropertyName(t)&&O(t.expression)?t.expression:t;f.Debug.fail("Invalid property name for binding element.")},f.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 182:case 183:case 185:return e.elements;case 186:return e.properties}},f.convertToArrayAssignmentElement=w,f.convertToObjectAssignmentElement=P,f.convertToAssignmentPattern=R,f.convertToObjectAssignmentPattern=F,f.convertToArrayAssignmentPattern=G,f.convertToAssignmentElementTarget=V}(ts||(ts={})),function(m){var o=m.or(m.isTypeNode,m.isTypeParameterDeclaration);function s(e,n,t,r){if(void 0===e||void 0===n)return e;m.aggregateTransformFlags(e);var a,i=n(e);return i===e?e:void 0!==i?(a=m.isArray(i)?(r||function(e){return m.Debug.assert(e.length<=1,"Too many nodes written to output."),m.singleOrUndefined(e)})(i):i,m.Debug.assertNode(a,t),m.aggregateTransformFlags(a),a):void 0}function c(e,n,t,r,a){if(void 0===e||void 0===n)return e;var i,o=e.length;(void 0===r||r<0)&&(r=0),(void 0===a||o-r<a)&&(a=o-r),(0<r||a<o)&&(i=m.createNodeArray([],e.hasTrailingComma&&r+a===o));for(var s=0;s<a;s++){var c=e[s+r];m.aggregateTransformFlags(c);var l=void 0!==c?n(c):void 0;if((void 0!==i||void 0===l||l!==c)&&(void 0===i&&(i=m.createNodeArray(e.slice(0,s),e.hasTrailingComma),m.setTextRange(i,e)),l))if(m.isArray(l))for(var u=0,d=l;u<d.length;u++){var p=d[u];m.Debug.assertNode(p,t),m.aggregateTransformFlags(p),i.push(p)}else m.Debug.assertNode(l,t),m.aggregateTransformFlags(l),i.push(l)}return i||e}function l(e,n,t,r,a){t.startLexicalEnvironment(),e=c(e,n,m.isStatement,r),a&&!m.startsWithUseStrict(e)&&(e=m.setTextRange(m.createNodeArray([m.createExpressionStatement(m.createLiteral("use strict"))].concat(e)),e));var i=t.endLexicalEnvironment();return m.setTextRange(m.createNodeArray(m.concatenate(i,e)),e)}function u(e,n,t,r){void 0===r&&(r=c),t.startLexicalEnvironment();var a=r(e,n,m.isParameterDeclaration);return t.suspendLexicalEnvironment(),a}function d(e,n,t){t.resumeLexicalEnvironment();var r=s(e,n,m.isConciseBody),a=t.endLexicalEnvironment();if(m.some(a)){var i=m.convertToFunctionBody(r),o=m.mergeLexicalEnvironment(i.statements,a);return m.updateBlock(i,o)}return r}m.visitNode=s,m.visitNodes=c,m.visitLexicalEnvironment=l,m.visitParameterList=u,m.visitFunctionBody=d,m.visitEachChild=function(e,n,t,r,a){if(void 0===r&&(r=c),void 0!==e){var i=e.kind;if(0<i&&i<=145||176===i)return e;switch(i){case 71:return m.updateIdentifier(e,r(e.typeArguments,n,o));case 146:return m.updateQualifiedName(e,s(e.left,n,m.isEntityName),s(e.right,n,m.isIdentifier));case 147:return m.updateComputedPropertyName(e,s(e.expression,n,m.isExpression));case 148:return m.updateTypeParameterDeclaration(e,s(e.name,n,m.isIdentifier),s(e.constraint,n,m.isTypeNode),s(e.default,n,m.isTypeNode));case 149:return m.updateParameter(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.dotDotDotToken,a,m.isToken),s(e.name,n,m.isBindingName),s(e.questionToken,a,m.isToken),s(e.type,n,m.isTypeNode),s(e.initializer,n,m.isExpression));case 150:return m.updateDecorator(e,s(e.expression,n,m.isExpression));case 151:return m.updatePropertySignature(e,r(e.modifiers,n,m.isToken),s(e.name,n,m.isPropertyName),s(e.questionToken,a,m.isToken),s(e.type,n,m.isTypeNode),s(e.initializer,n,m.isExpression));case 152:return m.updateProperty(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.name,n,m.isPropertyName),s(e.questionToken,a,m.isToken),s(e.type,n,m.isTypeNode),s(e.initializer,n,m.isExpression));case 153:return m.updateMethodSignature(e,r(e.typeParameters,n,m.isTypeParameterDeclaration),r(e.parameters,n,m.isParameterDeclaration),s(e.type,n,m.isTypeNode),s(e.name,n,m.isPropertyName),s(e.questionToken,a,m.isToken));case 154:return m.updateMethod(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.asteriskToken,a,m.isToken),s(e.name,n,m.isPropertyName),s(e.questionToken,a,m.isToken),r(e.typeParameters,n,m.isTypeParameterDeclaration),u(e.parameters,n,t,r),s(e.type,n,m.isTypeNode),d(e.body,n,t));case 155:return m.updateConstructor(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),u(e.parameters,n,t,r),d(e.body,n,t));case 156:return m.updateGetAccessor(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.name,n,m.isPropertyName),u(e.parameters,n,t,r),s(e.type,n,m.isTypeNode),d(e.body,n,t));case 157:return m.updateSetAccessor(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.name,n,m.isPropertyName),u(e.parameters,n,t,r),d(e.body,n,t));case 158:return m.updateCallSignature(e,r(e.typeParameters,n,m.isTypeParameterDeclaration),r(e.parameters,n,m.isParameterDeclaration),s(e.type,n,m.isTypeNode));case 159:return m.updateConstructSignature(e,r(e.typeParameters,n,m.isTypeParameterDeclaration),r(e.parameters,n,m.isParameterDeclaration),s(e.type,n,m.isTypeNode));case 160:return m.updateIndexSignature(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),r(e.parameters,n,m.isParameterDeclaration),s(e.type,n,m.isTypeNode));case 161:return m.updateTypePredicateNode(e,s(e.parameterName,n),s(e.type,n,m.isTypeNode));case 162:return m.updateTypeReferenceNode(e,s(e.typeName,n,m.isEntityName),r(e.typeArguments,n,m.isTypeNode));case 163:return m.updateFunctionTypeNode(e,r(e.typeParameters,n,m.isTypeParameterDeclaration),r(e.parameters,n,m.isParameterDeclaration),s(e.type,n,m.isTypeNode));case 164:return m.updateConstructorTypeNode(e,r(e.typeParameters,n,m.isTypeParameterDeclaration),r(e.parameters,n,m.isParameterDeclaration),s(e.type,n,m.isTypeNode));case 165:return m.updateTypeQueryNode(e,s(e.exprName,n,m.isEntityName));case 166:return m.updateTypeLiteralNode(e,r(e.members,n,m.isTypeElement));case 167:return m.updateArrayTypeNode(e,s(e.elementType,n,m.isTypeNode));case 168:return m.updateTupleTypeNode(e,r(e.elementTypes,n,m.isTypeNode));case 169:return m.updateOptionalTypeNode(e,s(e.type,n,m.isTypeNode));case 170:return m.updateRestTypeNode(e,s(e.type,n,m.isTypeNode));case 171:return m.updateUnionTypeNode(e,r(e.types,n,m.isTypeNode));case 172:return m.updateIntersectionTypeNode(e,r(e.types,n,m.isTypeNode));case 173:return m.updateConditionalTypeNode(e,s(e.checkType,n,m.isTypeNode),s(e.extendsType,n,m.isTypeNode),s(e.trueType,n,m.isTypeNode),s(e.falseType,n,m.isTypeNode));case 174:return m.updateInferTypeNode(e,s(e.typeParameter,n,m.isTypeParameterDeclaration));case 181:return m.updateImportTypeNode(e,s(e.argument,n,m.isTypeNode),s(e.qualifier,n,m.isEntityName),c(e.typeArguments,n,m.isTypeNode),e.isTypeOf);case 175:return m.updateParenthesizedType(e,s(e.type,n,m.isTypeNode));case 177:return m.updateTypeOperatorNode(e,s(e.type,n,m.isTypeNode));case 178:return m.updateIndexedAccessTypeNode(e,s(e.objectType,n,m.isTypeNode),s(e.indexType,n,m.isTypeNode));case 179:return m.updateMappedTypeNode(e,s(e.readonlyToken,a,m.isToken),s(e.typeParameter,n,m.isTypeParameterDeclaration),s(e.questionToken,a,m.isToken),s(e.type,n,m.isTypeNode));case 180:return m.updateLiteralTypeNode(e,s(e.literal,n,m.isExpression));case 182:return m.updateObjectBindingPattern(e,r(e.elements,n,m.isBindingElement));case 183:return m.updateArrayBindingPattern(e,r(e.elements,n,m.isArrayBindingElement));case 184:return m.updateBindingElement(e,s(e.dotDotDotToken,a,m.isToken),s(e.propertyName,n,m.isPropertyName),s(e.name,n,m.isBindingName),s(e.initializer,n,m.isExpression));case 185:return m.updateArrayLiteral(e,r(e.elements,n,m.isExpression));case 186:return m.updateObjectLiteral(e,r(e.properties,n,m.isObjectLiteralElementLike));case 187:return m.updatePropertyAccess(e,s(e.expression,n,m.isExpression),s(e.name,n,m.isIdentifier));case 188:return m.updateElementAccess(e,s(e.expression,n,m.isExpression),s(e.argumentExpression,n,m.isExpression));case 189:return m.updateCall(e,s(e.expression,n,m.isExpression),r(e.typeArguments,n,m.isTypeNode),r(e.arguments,n,m.isExpression));case 190:return m.updateNew(e,s(e.expression,n,m.isExpression),r(e.typeArguments,n,m.isTypeNode),r(e.arguments,n,m.isExpression));case 191:return m.updateTaggedTemplate(e,s(e.tag,n,m.isExpression),c(e.typeArguments,n,m.isExpression),s(e.template,n,m.isTemplateLiteral));case 192:return m.updateTypeAssertion(e,s(e.type,n,m.isTypeNode),s(e.expression,n,m.isExpression));case 193:return m.updateParen(e,s(e.expression,n,m.isExpression));case 194:return m.updateFunctionExpression(e,r(e.modifiers,n,m.isModifier),s(e.asteriskToken,a,m.isToken),s(e.name,n,m.isIdentifier),r(e.typeParameters,n,m.isTypeParameterDeclaration),u(e.parameters,n,t,r),s(e.type,n,m.isTypeNode),d(e.body,n,t));case 195:return m.updateArrowFunction(e,r(e.modifiers,n,m.isModifier),r(e.typeParameters,n,m.isTypeParameterDeclaration),u(e.parameters,n,t,r),s(e.type,n,m.isTypeNode),s(e.equalsGreaterThanToken,n,m.isToken),d(e.body,n,t));case 196:return m.updateDelete(e,s(e.expression,n,m.isExpression));case 197:return m.updateTypeOf(e,s(e.expression,n,m.isExpression));case 198:return m.updateVoid(e,s(e.expression,n,m.isExpression));case 199:return m.updateAwait(e,s(e.expression,n,m.isExpression));case 200:return m.updatePrefix(e,s(e.operand,n,m.isExpression));case 201:return m.updatePostfix(e,s(e.operand,n,m.isExpression));case 202:return m.updateBinary(e,s(e.left,n,m.isExpression),s(e.right,n,m.isExpression),s(e.operatorToken,n,m.isToken));case 203:return m.updateConditional(e,s(e.condition,n,m.isExpression),s(e.questionToken,n,m.isToken),s(e.whenTrue,n,m.isExpression),s(e.colonToken,n,m.isToken),s(e.whenFalse,n,m.isExpression));case 204:return m.updateTemplateExpression(e,s(e.head,n,m.isTemplateHead),r(e.templateSpans,n,m.isTemplateSpan));case 205:return m.updateYield(e,s(e.asteriskToken,a,m.isToken),s(e.expression,n,m.isExpression));case 206:return m.updateSpread(e,s(e.expression,n,m.isExpression));case 207:return m.updateClassExpression(e,r(e.modifiers,n,m.isModifier),s(e.name,n,m.isIdentifier),r(e.typeParameters,n,m.isTypeParameterDeclaration),r(e.heritageClauses,n,m.isHeritageClause),r(e.members,n,m.isClassElement));case 209:return m.updateExpressionWithTypeArguments(e,r(e.typeArguments,n,m.isTypeNode),s(e.expression,n,m.isExpression));case 210:return m.updateAsExpression(e,s(e.expression,n,m.isExpression),s(e.type,n,m.isTypeNode));case 211:return m.updateNonNullExpression(e,s(e.expression,n,m.isExpression));case 212:return m.updateMetaProperty(e,s(e.name,n,m.isIdentifier));case 214:return m.updateTemplateSpan(e,s(e.expression,n,m.isExpression),s(e.literal,n,m.isTemplateMiddleOrTemplateTail));case 216:return m.updateBlock(e,r(e.statements,n,m.isStatement));case 217:return m.updateVariableStatement(e,r(e.modifiers,n,m.isModifier),s(e.declarationList,n,m.isVariableDeclarationList));case 219:return m.updateExpressionStatement(e,s(e.expression,n,m.isExpression));case 220:return m.updateIf(e,s(e.expression,n,m.isExpression),s(e.thenStatement,n,m.isStatement,m.liftToBlock),s(e.elseStatement,n,m.isStatement,m.liftToBlock));case 221:return m.updateDo(e,s(e.statement,n,m.isStatement,m.liftToBlock),s(e.expression,n,m.isExpression));case 222:return m.updateWhile(e,s(e.expression,n,m.isExpression),s(e.statement,n,m.isStatement,m.liftToBlock));case 223:return m.updateFor(e,s(e.initializer,n,m.isForInitializer),s(e.condition,n,m.isExpression),s(e.incrementor,n,m.isExpression),s(e.statement,n,m.isStatement,m.liftToBlock));case 224:return m.updateForIn(e,s(e.initializer,n,m.isForInitializer),s(e.expression,n,m.isExpression),s(e.statement,n,m.isStatement,m.liftToBlock));case 225:return m.updateForOf(e,s(e.awaitModifier,n,m.isToken),s(e.initializer,n,m.isForInitializer),s(e.expression,n,m.isExpression),s(e.statement,n,m.isStatement,m.liftToBlock));case 226:return m.updateContinue(e,s(e.label,n,m.isIdentifier));case 227:return m.updateBreak(e,s(e.label,n,m.isIdentifier));case 228:return m.updateReturn(e,s(e.expression,n,m.isExpression));case 229:return m.updateWith(e,s(e.expression,n,m.isExpression),s(e.statement,n,m.isStatement,m.liftToBlock));case 230:return m.updateSwitch(e,s(e.expression,n,m.isExpression),s(e.caseBlock,n,m.isCaseBlock));case 231:return m.updateLabel(e,s(e.label,n,m.isIdentifier),s(e.statement,n,m.isStatement,m.liftToBlock));case 232:return m.updateThrow(e,s(e.expression,n,m.isExpression));case 233:return m.updateTry(e,s(e.tryBlock,n,m.isBlock),s(e.catchClause,n,m.isCatchClause),s(e.finallyBlock,n,m.isBlock));case 235:return m.updateVariableDeclaration(e,s(e.name,n,m.isBindingName),s(e.type,n,m.isTypeNode),s(e.initializer,n,m.isExpression));case 236:return m.updateVariableDeclarationList(e,r(e.declarations,n,m.isVariableDeclaration));case 237:return m.updateFunctionDeclaration(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.asteriskToken,a,m.isToken),s(e.name,n,m.isIdentifier),r(e.typeParameters,n,m.isTypeParameterDeclaration),u(e.parameters,n,t,r),s(e.type,n,m.isTypeNode),d(e.body,n,t));case 238:return m.updateClassDeclaration(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.name,n,m.isIdentifier),r(e.typeParameters,n,m.isTypeParameterDeclaration),r(e.heritageClauses,n,m.isHeritageClause),r(e.members,n,m.isClassElement));case 239:return m.updateInterfaceDeclaration(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.name,n,m.isIdentifier),r(e.typeParameters,n,m.isTypeParameterDeclaration),r(e.heritageClauses,n,m.isHeritageClause),r(e.members,n,m.isTypeElement));case 240:return m.updateTypeAliasDeclaration(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.name,n,m.isIdentifier),r(e.typeParameters,n,m.isTypeParameterDeclaration),s(e.type,n,m.isTypeNode));case 241:return m.updateEnumDeclaration(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.name,n,m.isIdentifier),r(e.members,n,m.isEnumMember));case 242:return m.updateModuleDeclaration(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.name,n,m.isIdentifier),s(e.body,n,m.isModuleBody));case 243:return m.updateModuleBlock(e,r(e.statements,n,m.isStatement));case 244:return m.updateCaseBlock(e,r(e.clauses,n,m.isCaseOrDefaultClause));case 245:return m.updateNamespaceExportDeclaration(e,s(e.name,n,m.isIdentifier));case 246:return m.updateImportEqualsDeclaration(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.name,n,m.isIdentifier),s(e.moduleReference,n,m.isModuleReference));case 247:return m.updateImportDeclaration(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.importClause,n,m.isImportClause),s(e.moduleSpecifier,n,m.isExpression));case 248:return m.updateImportClause(e,s(e.name,n,m.isIdentifier),s(e.namedBindings,n,m.isNamedImportBindings));case 249:return m.updateNamespaceImport(e,s(e.name,n,m.isIdentifier));case 250:return m.updateNamedImports(e,r(e.elements,n,m.isImportSpecifier));case 251:return m.updateImportSpecifier(e,s(e.propertyName,n,m.isIdentifier),s(e.name,n,m.isIdentifier));case 252:return m.updateExportAssignment(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.expression,n,m.isExpression));case 253:return m.updateExportDeclaration(e,r(e.decorators,n,m.isDecorator),r(e.modifiers,n,m.isModifier),s(e.exportClause,n,m.isNamedExports),s(e.moduleSpecifier,n,m.isExpression));case 254:return m.updateNamedExports(e,r(e.elements,n,m.isExportSpecifier));case 255:return m.updateExportSpecifier(e,s(e.propertyName,n,m.isIdentifier),s(e.name,n,m.isIdentifier));case 257:return m.updateExternalModuleReference(e,s(e.expression,n,m.isExpression));case 258:return m.updateJsxElement(e,s(e.openingElement,n,m.isJsxOpeningElement),r(e.children,n,m.isJsxChild),s(e.closingElement,n,m.isJsxClosingElement));case 259:return m.updateJsxSelfClosingElement(e,s(e.tagName,n,m.isJsxTagNameExpression),r(e.typeArguments,n,m.isTypeNode),s(e.attributes,n,m.isJsxAttributes));case 260:return m.updateJsxOpeningElement(e,s(e.tagName,n,m.isJsxTagNameExpression),r(e.typeArguments,n,m.isTypeNode),s(e.attributes,n,m.isJsxAttributes));case 261:return m.updateJsxClosingElement(e,s(e.tagName,n,m.isJsxTagNameExpression));case 262:return m.updateJsxFragment(e,s(e.openingFragment,n,m.isJsxOpeningFragment),r(e.children,n,m.isJsxChild),s(e.closingFragment,n,m.isJsxClosingFragment));case 265:return m.updateJsxAttribute(e,s(e.name,n,m.isIdentifier),s(e.initializer,n,m.isStringLiteralOrJsxExpression));case 266:return m.updateJsxAttributes(e,r(e.properties,n,m.isJsxAttributeLike));case 267:return m.updateJsxSpreadAttribute(e,s(e.expression,n,m.isExpression));case 268:return m.updateJsxExpression(e,s(e.expression,n,m.isExpression));case 269:return m.updateCaseClause(e,s(e.expression,n,m.isExpression),r(e.statements,n,m.isStatement));case 270:return m.updateDefaultClause(e,r(e.statements,n,m.isStatement));case 271:return m.updateHeritageClause(e,r(e.types,n,m.isExpressionWithTypeArguments));case 272:return m.updateCatchClause(e,s(e.variableDeclaration,n,m.isVariableDeclaration),s(e.block,n,m.isBlock));case 273:return m.updatePropertyAssignment(e,s(e.name,n,m.isPropertyName),s(e.initializer,n,m.isExpression));case 274:return m.updateShorthandPropertyAssignment(e,s(e.name,n,m.isIdentifier),s(e.objectAssignmentInitializer,n,m.isExpression));case 275:return m.updateSpreadAssignment(e,s(e.expression,n,m.isExpression));case 276:return m.updateEnumMember(e,s(e.name,n,m.isPropertyName),s(e.initializer,n,m.isExpression));case 277:return m.updateSourceFileNode(e,l(e.statements,n,t));case 306:return m.updatePartiallyEmittedExpression(e,s(e.expression,n,m.isExpression));case 307:return m.updateCommaList(e,r(e.elements,n,m.isExpression));default:return e}}}}(ts||(ts={})),function(c){function l(e,n,t){return e?n(t,e):t}function u(e,n,t){return e?n(t,e):t}function t(e,n,t,r){if(void 0===e)return n;var a=r?u:c.reduceLeft,i=r||t,o=e.kind;if(0<o&&o<=145)return n;if(161<=o&&o<=180)return n;var s=n;switch(e.kind){case 215:case 218:case 208:case 234:case 305:break;case 146:s=l(e.left,t,s),s=l(e.right,t,s);break;case 147:s=l(e.expression,t,s);break;case 149:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=l(e.name,t,s),s=l(e.type,t,s),s=l(e.initializer,t,s);break;case 150:s=l(e.expression,t,s);break;case 151:s=a(e.modifiers,i,s),s=l(e.name,t,s),s=l(e.questionToken,t,s),s=l(e.type,t,s),s=l(e.initializer,t,s);break;case 152:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=l(e.name,t,s),s=l(e.type,t,s),s=l(e.initializer,t,s);break;case 154:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=l(e.name,t,s),s=a(e.typeParameters,i,s),s=a(e.parameters,i,s),s=l(e.type,t,s),s=l(e.body,t,s);break;case 155:s=a(e.modifiers,i,s),s=a(e.parameters,i,s),s=l(e.body,t,s);break;case 156:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=l(e.name,t,s),s=a(e.parameters,i,s),s=l(e.type,t,s),s=l(e.body,t,s);break;case 157:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=l(e.name,t,s),s=a(e.parameters,i,s),s=l(e.body,t,s);break;case 182:case 183:s=a(e.elements,i,s);break;case 184:s=l(e.propertyName,t,s),s=l(e.name,t,s),s=l(e.initializer,t,s);break;case 185:s=a(e.elements,i,s);break;case 186:s=a(e.properties,i,s);break;case 187:s=l(e.expression,t,s),s=l(e.name,t,s);break;case 188:s=l(e.expression,t,s),s=l(e.argumentExpression,t,s);break;case 189:case 190:s=l(e.expression,t,s),s=a(e.typeArguments,i,s),s=a(e.arguments,i,s);break;case 191:s=l(e.tag,t,s),s=l(e.template,t,s);break;case 192:s=l(e.type,t,s),s=l(e.expression,t,s);break;case 194:s=a(e.modifiers,i,s),s=l(e.name,t,s),s=a(e.typeParameters,i,s),s=a(e.parameters,i,s),s=l(e.type,t,s),s=l(e.body,t,s);break;case 195:s=a(e.modifiers,i,s),s=a(e.typeParameters,i,s),s=a(e.parameters,i,s),s=l(e.type,t,s),s=l(e.body,t,s);break;case 193:case 196:case 197:case 198:case 199:case 205:case 206:case 211:s=l(e.expression,t,s);break;case 200:case 201:s=l(e.operand,t,s);break;case 202:s=l(e.left,t,s),s=l(e.right,t,s);break;case 203:s=l(e.condition,t,s),s=l(e.whenTrue,t,s),s=l(e.whenFalse,t,s);break;case 204:s=l(e.head,t,s),s=a(e.templateSpans,i,s);break;case 207:s=a(e.modifiers,i,s),s=l(e.name,t,s),s=a(e.typeParameters,i,s),s=a(e.heritageClauses,i,s),s=a(e.members,i,s);break;case 209:s=l(e.expression,t,s),s=a(e.typeArguments,i,s);break;case 210:s=l(e.expression,t,s),s=l(e.type,t,s);break;case 214:s=l(e.expression,t,s),s=l(e.literal,t,s);break;case 216:s=a(e.statements,i,s);break;case 217:s=a(e.modifiers,i,s),s=l(e.declarationList,t,s);break;case 219:s=l(e.expression,t,s);break;case 220:s=l(e.expression,t,s),s=l(e.thenStatement,t,s),s=l(e.elseStatement,t,s);break;case 221:s=l(e.statement,t,s),s=l(e.expression,t,s);break;case 222:case 229:s=l(e.expression,t,s),s=l(e.statement,t,s);break;case 223:s=l(e.initializer,t,s),s=l(e.condition,t,s),s=l(e.incrementor,t,s),s=l(e.statement,t,s);break;case 224:case 225:s=l(e.initializer,t,s),s=l(e.expression,t,s),s=l(e.statement,t,s);break;case 228:case 232:s=l(e.expression,t,s);break;case 230:s=l(e.expression,t,s),s=l(e.caseBlock,t,s);break;case 231:s=l(e.label,t,s),s=l(e.statement,t,s);break;case 233:s=l(e.tryBlock,t,s),s=l(e.catchClause,t,s),s=l(e.finallyBlock,t,s);break;case 235:s=l(e.name,t,s),s=l(e.type,t,s),s=l(e.initializer,t,s);break;case 236:s=a(e.declarations,i,s);break;case 237:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=l(e.name,t,s),s=a(e.typeParameters,i,s),s=a(e.parameters,i,s),s=l(e.type,t,s),s=l(e.body,t,s);break;case 238:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=l(e.name,t,s),s=a(e.typeParameters,i,s),s=a(e.heritageClauses,i,s),s=a(e.members,i,s);break;case 241:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=l(e.name,t,s),s=a(e.members,i,s);break;case 242:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=l(e.name,t,s),s=l(e.body,t,s);break;case 243:s=a(e.statements,i,s);break;case 244:s=a(e.clauses,i,s);break;case 246:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=l(e.name,t,s),s=l(e.moduleReference,t,s);break;case 247:s=a(e.decorators,i,s),s=a(e.modifiers,i,s),s=l(e.importClause,t,s),s=l(e.moduleSpecifier,t,s);break;case 248:s=l(e.name,t,s),s=l(e.namedBindings,t,s);break;case 249:s=l(e.name,t,s);break;case 250:case 254:s=a(e.elements,i,s);break;case 251:case 255:s=l(e.propertyName,t,s),s=l(e.name,t,s);break;case 252:s=c.reduceLeft(e.decorators,t,s),s=c.reduceLeft(e.modifiers,t,s),s=l(e.expression,t,s);break;case 253:s=c.reduceLeft(e.decorators,t,s),s=c.reduceLeft(e.modifiers,t,s),s=l(e.exportClause,t,s),s=l(e.moduleSpecifier,t,s);break;case 257:s=l(e.expression,t,s);break;case 258:s=l(e.openingElement,t,s),s=c.reduceLeft(e.children,t,s),s=l(e.closingElement,t,s);break;case 262:s=l(e.openingFragment,t,s),s=c.reduceLeft(e.children,t,s),s=l(e.closingFragment,t,s);break;case 259:case 260:s=l(e.tagName,t,s),s=l(e.attributes,t,s);break;case 266:s=a(e.properties,i,s);break;case 261:s=l(e.tagName,t,s);break;case 265:s=l(e.name,t,s),s=l(e.initializer,t,s);break;case 267:case 268:s=l(e.expression,t,s);break;case 269:s=l(e.expression,t,s);case 270:s=a(e.statements,i,s);break;case 271:s=a(e.types,i,s);break;case 272:s=l(e.variableDeclaration,t,s),s=l(e.block,t,s);break;case 273:s=l(e.name,t,s),s=l(e.initializer,t,s);break;case 274:s=l(e.name,t,s),s=l(e.objectAssignmentInitializer,t,s);break;case 275:s=l(e.expression,t,s);break;case 276:s=l(e.name,t,s),s=l(e.initializer,t,s);break;case 277:s=a(e.statements,i,s);break;case 306:s=l(e.expression,t,s);break;case 307:s=a(e.elements,i,s)}return s}function o(e){if(void 0===e)return 0;if(536870912&e.transformFlags)return e.transformFlags&~c.getTransformFlagsSubtreeExclusions(e.kind);var n=function(e){if(c.hasModifier(e,2)||c.isTypeNode(e)&&209!==e.kind)return 0;return t(e,0,r,a)}(e);return c.computeTransformFlagsForNode(e,n)}function r(e,n){return e|o(n)}function a(e,n){return e|function(e){if(void 0===e)return 0;for(var n=0,t=0,r=0,a=e;r<a.length;r++){var i=a[r];n|=o(i),t|=-536870913&i.transformFlags}return e.transformFlags=536870912|t,n}(n)}var n,i,s;c.reduceEachChild=t,c.mergeLexicalEnvironment=function(e,n){return c.some(n)?c.isNodeArray(e)?c.setTextRange(c.createNodeArray(c.addStatementsAfterPrologue(e.slice(),n)),e):c.addStatementsAfterPrologue(e,n):e},c.liftToBlock=function(e){return n.assert(c.every(e,c.isStatement),"Cannot lift nodes to a Block."),c.singleOrUndefined(e)||c.createBlock(e)},c.aggregateTransformFlags=function(e){return o(e),e},i=n=c.Debug||(c.Debug={}),s=!1,i.failBadSyntaxKind=function e(n,t){return i.fail((t||"Unexpected node.")+"\r\nNode "+c.formatSyntaxKind(n.kind)+" was unexpected.",e)},i.assertEachNode=i.shouldAssert(1)?function(e,n,t){return i.assert(void 0===n||c.every(e,n),t||"Unexpected node.",function(){return"Node array did not pass test '"+i.getFunctionName(n)+"'."},i.assertEachNode)}:c.noop,i.assertNode=i.shouldAssert(1)?function(e,n,t){return i.assert(void 0===n||n(e),t||"Unexpected node.",function(){return"Node "+c.formatSyntaxKind(e.kind)+" did not pass test '"+i.getFunctionName(n)+"'."},i.assertNode)}:c.noop,i.assertOptionalNode=i.shouldAssert(1)?function(e,n,t){return i.assert(void 0===n||void 0===e||n(e),t||"Unexpected node.",function(){return"Node "+c.formatSyntaxKind(e.kind)+" did not pass test '"+i.getFunctionName(n)+"'."},i.assertOptionalNode)}:c.noop,i.assertOptionalToken=i.shouldAssert(1)?function(e,n,t){return i.assert(void 0===n||void 0===e||e.kind===n,t||"Unexpected node.",function(){return"Node "+c.formatSyntaxKind(e.kind)+" was not a '"+c.formatSyntaxKind(n)+"' token."},i.assertOptionalToken)}:c.noop,i.assertMissingNode=i.shouldAssert(1)?function(e,n){return i.assert(void 0===e,n||"Unexpected node.",function(){return"Node "+c.formatSyntaxKind(e.kind)+" was unexpected'."},i.assertMissingNode)}:c.noop,i.enableDebugInfo=function(){if(!s){Object.defineProperties(c.objectAllocator.getSymbolConstructor().prototype,{__debugFlags:{get:function(){return c.formatSymbolFlags(this.flags)}}}),Object.defineProperties(c.objectAllocator.getTypeConstructor().prototype,{__debugFlags:{get:function(){return c.formatTypeFlags(this.flags)}},__debugObjectFlags:{get:function(){return 131072&this.flags?c.formatObjectFlags(this.objectFlags):""}},__debugTypeToString:{value:function(){return this.checker.typeToString(this)}}});for(var e=0,n=[c.objectAllocator.getNodeConstructor(),c.objectAllocator.getIdentifierConstructor(),c.objectAllocator.getTokenConstructor(),c.objectAllocator.getSourceFileConstructor()];e<n.length;e++){var t=n[e];t.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(t.prototype,{__debugKind:{get:function(){return c.formatSyntaxKind(this.kind)}},__debugModifierFlags:{get:function(){return c.formatModifierFlags(c.getModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return c.formatTransformFlags(this.transformFlags)}},__debugEmitFlags:{get:function(){return c.formatEmitFlags(c.getEmitFlags(this))}},__debugGetText:{value:function(e){if(c.nodeIsSynthesized(this))return"";var n=c.getParseTreeNode(this),t=n&&c.getSourceFileOfNode(n);return t?c.getSourceTextOfNodeFromSourceFile(t,n,e):""}}})}s=!0}}}(ts||(ts={})),function(a){a.createSourceFileLikeCache=function(t){var r=a.createMap();return{get:function(e){if(r.has(e))return r.get(e);if(t.fileExists&&t.readFile&&t.fileExists(e)){var n={text:t.readFile(e),lineMap:void 0,getLineAndCharacterOfPosition:function(e){return a.computeLineAndCharacterOfPosition(a.getLineStarts(this),e)}};return r.set(e,n),n}}}}}(ts||(ts={})),function(v){!function(e){function g(e){var n={encodedText:e.mappings,currentNameIndex:void 0,sourceMapNamesLength:e.names?e.names.length:void 0,currentEmittedColumn:0,currentEmittedLine:0,currentSourceColumn:0,currentSourceLine:0,currentSourceIndex:0,decodingIndex:0};function t(){return{emittedColumn:n.currentEmittedColumn,emittedLine:n.currentEmittedLine,sourceColumn:n.currentSourceColumn,sourceIndex:n.currentSourceIndex,sourceLine:n.currentSourceLine,nameIndex:n.currentNameIndex}}return{get decodingIndex(){return n.decodingIndex},get error(){return n.error},get lastSpan(){return t()},next:function(){return(e=n).decodingIndex===e.encodedText.length||n.error?{done:!0,value:void 0}:function(i){for(;i.decodingIndex<i.encodedText.length;){var e=i.encodedText.charCodeAt(i.decodingIndex);if(59!==e){if(44!==e)return i.currentEmittedColumn+=n(),!o(i.currentEmittedColumn<0,"Invalid emittedColumn found")&&(!o(r(i.encodedText,i.decodingIndex),"Unsupported Error Format: No entries after emitted column")&&(i.currentSourceIndex+=n(),!o(i.currentSourceIndex<0,"Invalid sourceIndex found")&&(!o(r(i.encodedText,i.decodingIndex),"Unsupported Error Format: No entries after sourceIndex")&&(i.currentSourceLine+=n(),!o(i.currentSourceLine<0,"Invalid sourceLine found")&&(!o(r(i.encodedText,i.decodingIndex),"Unsupported Error Format: No entries after emitted Line")&&(i.currentSourceColumn+=n(),!o(i.currentSourceColumn<0,"Invalid sourceLine found")&&(r(i.encodedText,i.decodingIndex)||(void 0===i.currentNameIndex&&(i.currentNameIndex=0),i.currentNameIndex+=n()),!o(!r(i.encodedText,i.decodingIndex),"Unsupported Error Format: There are more entries after "+(void 0===i.currentNameIndex?"sourceColumn":"nameIndex")))))))));i.decodingIndex++}else i.currentEmittedLine++,i.currentEmittedColumn=0,i.decodingIndex++}return o(!0,"No encoded entry found"),!1;function o(e,n){return!!i.error||(e&&(i.error=n),e)}function n(){for(var e,n=!0,t=0,r=0;n;i.decodingIndex++){if(o(i.decodingIndex>=i.encodedText.length,"Error in decoding base64VLQFormatDecode, past the mapping string"))return;var a=(e=i.encodedText.charAt(i.decodingIndex),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e));n=0!=(32&a),r|=(31&a)<<t,t+=5}return 0==(1&r)?r>>=1:r=-(r>>=1),r}}(n)?{done:!1,value:t()}:{done:!0,value:void 0};var e}}}function r(e,n){return n===e.length||44===e.charCodeAt(n)||59===e.charCodeAt(n)}e.identitySourceMapper={getOriginalPosition:v.identity,getGeneratedPosition:v.identity},e.decode=function(l,e,a,u,d){void 0===d&&(d=v.createSourceFileLikeCache(l));var i,r,o,t=v.getDirectoryPath(e),s=a.sourceRoot?v.getNormalizedAbsolutePath(a.sourceRoot,t):t;return{getOriginalPosition:function(e){var n=r||(r=p().slice().sort(f));if(!v.length(n))return e;var t=v.binarySearch(n,{emittedPosition:e.position},v.identity,f);return t<0&&0<n.length&&(t=~t),{fileName:v.toPath(n[t].sourcePath,s,l.getCanonicalFileName),position:n[t].sourcePosition}},getGeneratedPosition:function(e){var n=o||(o=p().slice().sort(m));if(!v.length(n))return e;var t=v.binarySearch(n,{sourcePath:e.fileName,sourcePosition:e.position},v.identity,m);return t<0&&0<n.length&&(t=~t),n[t]&&0===v.comparePaths(e.fileName,n[t].sourcePath,s)?{fileName:v.toPath(a.file,s,l.getCanonicalFileName),position:n[t].emittedPosition}:e}};function c(e,n,t,r){var a,i,o,s,c=(a=e,i=n,o=v.toPath(a,i,l.getCanonicalFileName),(s=u&&u.getSourceFile(o))&&s.resolvedPath===o?s:d.get(o));return c?v.getPositionOfLineAndCharacter(c,t,r):-1}function p(){return i||(e=_,n=l,t=g(a),r=v.arrayFrom(t,e),i=t.error?(n&&n.log&&n.log("Encountered error while decoding sourcemap: "+t.error),[]):r);var e,n,t,r}function m(e,n){return v.comparePaths(e.sourcePath,n.sourcePath,s)||v.compareValues(e.sourcePosition,n.sourcePosition)}function f(e,n){return v.compareValues(e.emittedPosition,n.emittedPosition)}function _(e){var n=a.sources[e.sourceIndex];return{emittedPosition:c(a.file,t,e.emittedLine,e.emittedColumn),sourcePosition:c(n,s,e.sourceLine,e.sourceColumn),sourcePath:n}}},e.decodeMappings=g}(v.sourcemaps||(v.sourcemaps={}))}(ts||(ts={})),function(x){function C(e){return(e=x.getOriginalNode(e))?x.getNodeId(e):0}function i(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function D(e){if(x.getNamespaceDeclarationNode(e))return!0;var n=e.importClause&&e.importClause.namedBindings;if(!n)return!1;if(!x.isNamedImports(n))return!1;for(var t=0,r=0,a=n.elements;r<a.length;r++){i(a[r])&&t++}return 0<t&&t!==n.elements.length||!!(n.elements.length-t)&&x.isDefaultImport(e)}function A(e){return!D(e)&&(x.isDefaultImport(e)||!!e.importClause&&x.isNamedImports(e.importClause.namedBindings)&&(!!(n=e.importClause.namedBindings)&&!!x.isNamedImports(n)&&x.some(n.elements,i)));var n}function L(e,n,t){if(x.isBindingPattern(e.name))for(var r=0,a=e.name.elements;r<a.length;r++){var i=a[r];x.isOmittedExpression(i)||(t=L(i,n,t))}else if(!x.isGeneratedIdentifier(e.name)){var o=x.idText(e.name);n.get(o)||(n.set(o,!0),t=x.append(t,e.name))}return t}function k(e,n,t){var r=e[n];return r?r.push(t):e[n]=r=[t],r}x.getOriginalNodeId=C,x.chainBundle=function(t){return function(e){return 277===e.kind?t(e):(n=e,x.createBundle(x.map(n.sourceFiles,t),n.prepends));var n}},x.getImportNeedsImportStarHelper=D,x.getImportNeedsImportDefaultHelper=A,x.collectExternalModuleInfo=function(e,n,t){for(var r,a,i=[],o=x.createMultiMap(),s=[],c=x.createMap(),l=!1,u=!1,d=!1,p=0,m=e.statements;p<m.length;p++){var f=m[p];switch(f.kind){case 247:i.push(f),d=d||D(f)||A(f);break;case 246:257===f.moduleReference.kind&&i.push(f);break;case 253:if(f.moduleSpecifier)f.exportClause?i.push(f):(i.push(f),u=!0);else for(var _=0,g=f.exportClause.elements;_<g.length;_++){var v=g[_];if(!c.get(x.idText(v.name))){var y=v.propertyName||v.name;o.add(x.idText(y),v),(E=n.getReferencedImportDeclaration(y)||n.getReferencedValueDeclaration(y))&&k(s,C(E),v.name),c.set(x.idText(v.name),!0),r=x.append(r,v.name)}}break;case 252:f.isExportEquals&&!a&&(a=f);break;case 217:if(x.hasModifier(f,1))for(var h=0,b=f.declarationList.declarations;h<b.length;h++){var E;r=L(E=b[h],c,r)}break;case 237:x.hasModifier(f,1)&&(x.hasModifier(f,512)?l||(k(s,C(f),x.getDeclarationName(f)),l=!0):(y=f.name,c.get(x.idText(y))||(k(s,C(f),y),c.set(x.idText(y),!0),r=x.append(r,y))));break;case 238:x.hasModifier(f,1)&&(x.hasModifier(f,512)?l||(k(s,C(f),x.getDeclarationName(f)),l=!0):(y=f.name)&&!c.get(x.idText(y))&&(k(s,C(f),y),c.set(x.idText(y),!0),r=x.append(r,y)))}}var T=x.getOrCreateExternalHelpersModuleNameIfNeeded(e,t,u,d),S=T&&x.createImportDeclaration(void 0,void 0,x.createImportClause(void 0,x.createNamespaceImport(T)),x.createLiteral(x.externalHelpersModuleNameText));return S&&(x.addEmitFlags(S,67108864),i.unshift(S)),{externalImports:i,exportSpecifiers:o,exportEquals:a,hasExportStarsToExportValues:u,exportedBindings:s,exportedNames:r,externalHelpersImportDeclaration:S}},x.isSimpleCopiableExpression=function(e){return x.isStringLiteralLike(e)||8===e.kind||x.isKeyword(e.kind)||x.isIdentifier(e)},x.helperString=function(r){for(var a=[],e=1;e<arguments.length;e++)a[e-1]=arguments[e];return function(e){for(var n="",t=0;t<a.length;t++)n+=r[t],n+=e(a[t]);return n+=r[r.length-1]}}}(ts||(ts={})),function(x){var e;function C(e,n){var t=x.getTargetOfBindingOrAssignmentElement(e);return x.isBindingOrAssignmentPattern(t)?function(e,n){for(var t=x.getElementsOfBindingOrAssignmentPattern(e),r=0,a=t;r<a.length;r++){var i=a[r];if(C(i,n))return!0}return!1}(t,n):!!x.isIdentifier(t)&&t.escapedText===n}function D(e,n,t,r,a){if(!a){var i=x.visitNode(x.getInitializerOfBindingOrAssignmentElement(n),e.visitor,x.isExpression);i?t=t?(s=i,o=A(e,o=t,!0,r),x.createConditional(x.createTypeCheck(o,"undefined"),s,o)):i:t||(t=x.createVoidZero())}var o,s,c=x.getTargetOfBindingOrAssignmentElement(n);x.isObjectBindingOrAssignmentPattern(c)?function(e,n,t,r,a){var i,o,s=x.getElementsOfBindingOrAssignmentPattern(t),c=s.length;if(1!==c){var l=!x.isDeclarationBindingElement(n)||0!==c;r=A(e,r,l,a)}for(var u=0;u<c;u++){var d=s[u];if(x.getRestIndicatorOfBindingOrAssignmentElement(d)){if(u===c-1){i&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(i),r,a,t),i=void 0);var p=_(e.context,r,s,o,t);D(e,d,p,d)}}else{var m=x.getPropertyNameOfBindingOrAssignmentElement(d);if(!(1<=e.level)||1572864&d.transformFlags||1572864&x.getTargetOfBindingOrAssignmentElement(d).transformFlags||x.isComputedPropertyName(m)){i&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(i),r,a,t),i=void 0);var p=f(e,r,m);x.isComputedPropertyName(m)&&(o=x.append(o,p.argumentExpression)),D(e,d,p,d)}else i=x.append(i,d)}}i&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(i),r,a,t)}(e,n,c,t,r):x.isArrayBindingOrAssignmentPattern(c)?function(e,n,t,r,a){var i,o,s=x.getElementsOfBindingOrAssignmentPattern(t),c=s.length;if(e.level<1&&e.downlevelIteration)r=A(e,x.createReadHelper(e.context,r,0<c&&x.getRestIndicatorOfBindingOrAssignmentElement(s[c-1])?void 0:c,a),!1,a);else if(1!==c&&(e.level<1||0===c)||x.every(s,x.isOmittedExpression)){var l=!x.isDeclarationBindingElement(n)||0!==c;r=A(e,r,l,a)}for(var u=0;u<c;u++){var d=s[u];if(1<=e.level)if(1048576&d.transformFlags){var p=x.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(p),o=x.append(o,[p,d]),i=x.append(i,e.createArrayBindingOrAssignmentElement(p))}else i=x.append(i,d);else{if(x.isOmittedExpression(d))continue;if(x.getRestIndicatorOfBindingOrAssignmentElement(d)){if(u===c-1){var m=x.createArraySlice(r,u);D(e,d,m,d)}}else{var m=x.createElementAccess(r,u);D(e,d,m,d)}}}i&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(i),r,a,t);if(o)for(var f=0,_=o;f<_.length;f++){var g=_[f],v=g[0],d=g[1];D(e,d,v,d)}}(e,n,c,t,r):e.emitBindingOrAssignment(c,t,r,n)}function f(e,n,t){if(x.isComputedPropertyName(t)){var r=A(e,x.visitNode(t.expression,e.visitor),!1,t);return x.createElementAccess(n,r)}if(x.isStringOrNumericLiteralLike(t))return(r=x.getSynthesizedClone(t)).text=r.text,x.createElementAccess(n,r);var a=x.createIdentifier(x.idText(t));return x.createPropertyAccess(n,a)}function A(e,n,t,r){if(x.isIdentifier(n)&&t)return n;var a=x.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(a),e.emitExpression(x.setTextRange(x.createAssignment(a,n),r))):e.emitBindingOrAssignment(a,n,r,void 0),a}function L(e){return x.Debug.assertEachNode(e,x.isArrayBindingElement),x.createArrayBindingPattern(e)}function d(e){return x.createArrayLiteral(x.map(e,x.convertToArrayAssignmentElement))}function k(e){return x.Debug.assertEachNode(e,x.isBindingElement),x.createObjectBindingPattern(e)}function p(e){return x.createObjectLiteral(x.map(e,x.convertToObjectAssignmentElement))}function N(e){return x.createBindingElement(void 0,void 0,e)}function m(e){return e}(e=x.FlattenLevel||(x.FlattenLevel={}))[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",x.flattenDestructuringAssignment=function(e,i,n,t,r,o){var a,s,c=e;if(x.isDestructuringAssignment(e))for(a=e.right;x.isEmptyArrayLiteral(e.left)||x.isEmptyObjectLiteral(e.left);){if(!x.isDestructuringAssignment(a))return x.visitNode(a,i,x.isExpression);c=e=a,a=e.right}var l={context:n,level:t,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:u,emitBindingOrAssignment:function(e,n,t,r){x.Debug.assertNode(e,o?x.isIdentifier:x.isExpression);var a=o?o(e,n,t):x.setTextRange(x.createAssignment(x.visitNode(e,i,x.isExpression),n),t);a.original=r,u(a)},createArrayBindingOrAssignmentPattern:d,createObjectBindingOrAssignmentPattern:p,createArrayBindingOrAssignmentElement:m,visitor:i};if(a&&(a=x.visitNode(a,i,x.isExpression),x.isIdentifier(a)&&C(e,a.escapedText)?a=A(l,a,!1,c):r?a=A(l,a,!0,c):x.nodeIsSynthesized(e)&&(c=a)),D(l,e,a,c,x.isDestructuringAssignment(e)),a&&r){if(!x.some(s))return a;s.push(a)}return x.aggregateTransformFlags(x.inlineExpressions(s))||x.createOmittedExpression();function u(e){x.setEmitFlags(e,64),x.aggregateTransformFlags(e),s=x.append(s,e)}};var u={name:"typescript:rest",scoped:!(x.flattenDestructuringBinding=function(e,n,t,r,a,i,o){var s;void 0===i&&(i=!1);var c=[],l=[],u={context:t,level:r,downlevelIteration:!!t.getCompilerOptions().downlevelIteration,hoistTempVariables:i,emitExpression:function(e){s=x.append(s,e)},emitBindingOrAssignment:S,createArrayBindingOrAssignmentPattern:L,createObjectBindingOrAssignmentPattern:k,createArrayBindingOrAssignmentElement:N,visitor:n};if(x.isVariableDeclaration(e)){var d=x.getInitializerOfBindingOrAssignmentElement(e);d&&x.isIdentifier(d)&&C(e,d.escapedText)&&(d=A(u,d,!1,d),e=x.updateVariableDeclaration(e,e.name,e.type,d))}if(D(u,e,a,e,o),s){var p=x.createTempVariable(void 0);if(i)S(p,h=x.inlineExpressions(s),s=void 0,void 0);else{t.hoistVariableDeclaration(p);var m=x.last(c);m.pendingExpressions=x.append(m.pendingExpressions,x.createAssignment(p,m.value)),x.addRange(m.pendingExpressions,s),m.value=p}}for(var f=0,_=c;f<_.length;f++){var g=_[f],v=g.pendingExpressions,y=g.name,h=g.value,b=g.location,E=g.original,T=x.createVariableDeclaration(y,void 0,v?x.inlineExpressions(x.append(v,h)):h);T.original=E,x.setTextRange(T,b),x.isIdentifier(y)&&x.setEmitFlags(T,64),x.aggregateTransformFlags(T),l.push(T)}return l;function S(e,n,t,r){x.Debug.assertNode(e,x.isBindingName),s&&(n=x.inlineExpressions(x.append(s,n)),s=void 0),c.push({pendingExpressions:s,name:e,value:n,location:t,original:r})}}),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 _(e,n,t,r,a){e.requestEmitHelper(u);for(var i=[],o=0,s=0;s<t.length-1;s++){var c=x.getPropertyNameOfBindingOrAssignmentElement(t[s]);if(c)if(x.isComputedPropertyName(c)){var l=r[o];o++,i.push(x.createConditional(x.createTypeCheck(l,"symbol"),l,x.createAdd(l,x.createLiteral(""))))}else i.push(x.createLiteral(c))}return x.createCall(x.getHelperName("__rest"),void 0,[n,x.setTextRange(x.createArrayLiteral(i),a)])}}(ts||(ts={})),function(je){var e,n,t,r;function He(e,n,t,r,a,i){var o=[];return o.push(je.createArrayLiteral(n,!0)),o.push(t),r&&(o.push(r),a&&o.push(a)),e.requestEmitHelper(s),je.setTextRange(je.createCall(je.getHelperName("__decorate"),void 0,o),i)}(n=e||(e={}))[n.ClassAliases=1]="ClassAliases",n[n.NamespaceExports=2]="NamespaceExports",n[n.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers",(r=t||(t={}))[r.None=0]="None",r[r.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",r[r.HasConstructorDecorators=2]="HasConstructorDecorators",r[r.HasMemberDecorators=4]="HasMemberDecorators",r[r.IsExportOfNamespace=8]="IsExportOfNamespace",r[r.IsNamedExternalExport=16]="IsNamedExternalExport",r[r.IsDefaultExternalExport=32]="IsDefaultExternalExport",r[r.IsDerivedClass=64]="IsDerivedClass",r[r.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",r[r.HasAnyDecorators=6]="HasAnyDecorators",r[r.NeedsName=5]="NeedsName",r[r.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",r[r.IsExported=56]="IsExported";var s={name:"typescript:decorate",scoped:!(je.transformTypeScript=function(T){var S,_,g,v,o,p,d,x,s,C,y=T.startLexicalEnvironment,c=T.resumeLexicalEnvironment,h=T.endLexicalEnvironment,D=T.hoistVariableDeclaration,A=T.getEmitResolver(),b=T.getCompilerOptions(),l=je.getStrictOptionValue(b,"strictNullChecks"),L=je.getEmitScriptTarget(b),E=je.getEmitModuleKind(b),u=T.onEmitNode,t=T.onSubstituteNode;return T.onEmitNode=function(e,n,t){var r,a,i=s,o=S;je.isSourceFile(n)&&(S=n),2&d&&(r=n,242===je.getOriginalNode(r).kind)&&(s|=2),8&d&&(a=n,241===je.getOriginalNode(a).kind)&&(s|=8),u(e,n,t),s=i,S=o},T.onSubstituteNode=function(e,n){return n=t(e,n),1===e?function(e){switch(e.kind){case 71:return function(e){if(1&d&&16777216&A.getNodeCheckFlags(e)){var n=A.getReferencedValueDeclaration(e);if(n){var t=x[n.id];if(t){var r=je.getSynthesizedClone(t);return je.setSourceMapRange(r,e),je.setCommentRange(r,e),r}}}}(n=e)||Be(n)||n;case 187:case 188:return Ke(e)}var n;return e}(n):je.isShorthandPropertyAssignment(n)?function(e){if(2&d){var n=e.name,t=Be(n);if(t){if(e.objectAssignmentInitializer){var r=je.createAssignment(t,e.objectAssignmentInitializer);return je.setTextRange(je.createPropertyAssignment(n,r),e)}return je.setTextRange(je.createPropertyAssignment(n,t),e)}}return e}(n):n},T.enableSubstitution(187),T.enableSubstitution(188),function(e){return 278!==e.kind?r(e):(n=e,je.createBundle(n.sourceFiles.map(r),je.mapDefined(n.prepends,function(e){return 280===e.kind?je.createUnparsedSourceFile(e.javascriptText,e.javascriptMapPath,e.javascriptMapText):e})));var n};function r(e){if(e.isDeclarationFile)return e;var n=m(S=e,P);return je.addEmitHelpers(n,T.readEmitHelpers()),S=void 0,n}function m(e,n){var t=v,r=o,a=p;!function(e){switch(e.kind){case 277:case 244:case 243:case 216:v=e,p=o=void 0;break;case 238:case 237:if(je.hasModifier(e,2))break;e.name?be(e):je.Debug.assert(238===e.kind||je.hasModifier(e,512)),je.isClassDeclaration(e)&&(o=e)}}(e);var i=n(e);return v!==t&&(p=a),v=t,o=r,i}function k(e){return m(e,n)}function n(e){return 1&e.transformFlags?w(e):2&e.transformFlags?je.visitEachChild(e,k,T):e}function a(e){return m(e,i)}function i(e){switch(e.kind){case 247:case 246:case 252:case 253:return function(e){if(je.getParseTreeNode(e)!==e)return 2&e.transformFlags?je.visitEachChild(e,k,T):e;switch(e.kind){case 247:return function(e){if(!e.importClause)return e;var n=je.visitNode(e.importClause,xe,je.isImportClause);return n?je.updateImportDeclaration(e,void 0,void 0,n,e.moduleSpecifier):void 0}(e);case 246:return ke(e);case 252:return n=e,A.isValueAliasDeclaration(n)?je.visitEachChild(n,k,T):void 0;case 253:return function(e){if(!e.exportClause)return b.isolatedModules||A.moduleExportsSomeValue(e.moduleSpecifier)?e:void 0;if(A.isValueAliasDeclaration(e)){var n=je.visitNode(e.exportClause,Ae,je.isNamedExports);return n?je.updateExportDeclaration(e,void 0,void 0,n,e.moduleSpecifier):void 0}}(e);default:je.Debug.fail("Unhandled ellided statement")}var n}(e);default:return n(e)}}function f(e){return m(e,N)}function N(e){if(253!==e.kind&&247!==e.kind&&248!==e.kind&&(246!==e.kind||257!==e.moduleReference.kind))return 1&e.transformFlags||je.hasModifier(e,1)?w(e):2&e.transformFlags?je.visitEachChild(e,k,T):e}function I(e){return m(e,M)}function M(e){switch(e.kind){case 155:return;case 152:case 160:case 156:case 157:case 154:return n(e);case 215:return e;default:return je.Debug.failBadSyntaxKind(e)}}function O(e){if(!(2270&je.modifierToFlag(e.kind)||_&&84===e.kind))return e}function w(e){if(je.hasModifier(e,2)&&je.isStatement(e))return je.createNotEmittedStatement(e);switch(e.kind){case 84:case 79:return _?void 0:e;case 114:case 112:case 113:case 117:case 76:case 124:case 132:case 167:case 168:case 169:case 170:case 166:case 161:case 148:case 119:case 142:case 122:case 137:case 134:case 131:case 105:case 138:case 164:case 163:case 165:case 162:case 171:case 172:case 173:case 175:case 176:case 177:case 178:case 179:case 180:case 160:case 150:case 240:return;case 152:return void((t=me((n=e).name,je.some(n.decorators)||!!n.initializer,!0))&&!de(t)&&(C||(C=[])).push(t));case 245:return;case 155:return _e(f=e)?je.updateConstructor(f,je.visitNodes(f.decorators,k,je.isDecorator),je.visitNodes(f.modifiers,k,je.isModifier),je.visitParameterList(f.parameters,k,T),je.visitFunctionBody(f.body,k,T)):void 0;case 239:return je.createNotEmittedStatement(e);case 238:return function(e){var n=C,t=B(e,!(C=void 0)),r=function(e,n){var t=0;je.some(n)&&(t|=1);var r,a=je.getEffectiveBaseTypeNode(e);return a&&95!==je.skipOuterExpressions(a.expression).kind&&(t|=64),function(e){if(e.decorators&&0<e.decorators.length)return!0;var n=je.getFirstConstructorWithBody(e);return!!n&&je.forEach(n.parameters,R)}(e)&&(t|=2),je.childIsDecorated(e)&&(t|=4),Ne(e)?t|=8:Ie(r=e)&&je.hasModifier(r,512)?t|=32:Me(e)&&(t|=16),L<=1&&7&t&&(t|=128),t}(e,t);128&r&&T.startLexicalEnvironment();var a,i,o,s,c,l,u,d,p,m=e.name||(5&r?je.getGeneratedNameForNode(e):void 0),f=2&r?function(e,n,t){var r=je.moveRangePastDecorators(e),a=function(e){if(8388608&A.getNodeCheckFlags(e)){Ve();var n=je.createUniqueName(e.name&&!je.isGeneratedIdentifier(e.name)?je.idText(e.name):"default");return x[je.getOriginalNodeId(e)]=n,D(n),n}}(e),i=je.getLocalName(e,!1,!0),o=je.visitNodes(e.heritageClauses,k,je.isHeritageClause),s=F(e,0!=(64&t)),c=je.createClassExpression(void 0,n,void 0,o,s);je.setOriginalNode(c,e),je.setTextRange(c,r);var l=je.createVariableStatement(void 0,je.createVariableDeclarationList([je.createVariableDeclaration(i,void 0,a?je.createAssignment(a,c):c)],1));return je.setOriginalNode(l,e),je.setTextRange(l,r),je.setCommentRange(l,e),l}(e,m,r):(a=e,i=m,s=128&(o=r)?void 0:je.visitNodes(a.modifiers,O,je.isModifier),c=je.createClassDeclaration(void 0,s,i,void 0,je.visitNodes(a.heritageClauses,k,je.isHeritageClause),F(a,0!=(64&o))),l=je.getEmitFlags(a),1&o&&(l|=32),je.setTextRange(c,a),je.setOriginalNode(c,a),je.setEmitFlags(c,l),c),_=[f];if(je.some(C)&&_.push(je.createExpressionStatement(je.inlineExpressions(C))),C=n,1&r&&U(_,t,128&r?je.getInternalName(e):je.getLocalName(e)),Q(_,e,!1),Q(_,e,!0),u=_,(p=function(e){var n,t,r,a=(t=(n=e).decorators,r=J(je.getFirstConstructorWithBody(n)),t||r?{decorators:t,parameters:r}:void 0),i=Y(e,e,a);if(i){var o=x&&x[je.getOriginalNodeId(e)],s=je.getLocalName(e,!1,!0),c=He(T,i,s),l=je.createAssignment(s,o?je.createAssignment(o,c):c);return je.setEmitFlags(l,1536),je.setSourceMapRange(l,je.moveRangePastDecorators(e)),l}}(d=e))&&u.push(je.setOriginalNode(je.createExpressionStatement(p),d)),128&r){var g=je.createTokenRange(je.skipTrivia(S.text,e.members.end),18),v=je.getInternalName(e),y=je.createPartiallyEmittedExpression(v);y.end=g.end,je.setEmitFlags(y,1536);var h=je.createReturn(y);h.pos=g.pos,je.setEmitFlags(h,1920),_.push(h),je.addStatementsAfterPrologue(_,T.endLexicalEnvironment());var b=je.createImmediatelyInvokedArrowFunction(_);je.setEmitFlags(b,33554432);var E=je.createVariableStatement(void 0,je.createVariableDeclarationList([je.createVariableDeclaration(je.getLocalName(e,!1,!1),void 0,b)]));je.setOriginalNode(E,e),je.setCommentRange(E,e),je.setSourceMapRange(E,je.moveRangePastDecorators(e)),je.startOnNewLine(E),_=[E]}return 8&r?we(_,e):(128&r||2&r)&&(32&r?_.push(je.createExportDefault(je.getLocalName(e,!1,!0))):16&r&&_.push(je.createExternalModuleExport(je.getLocalName(e,!1,!0)))),1<_.length&&(_.push(je.createEndOfDeclarationMarker(e)),je.setEmitFlags(f,4194304|je.getEmitFlags(f))),je.singleOrMany(_)}(e);case 207:return function(e){var n=C,t=B(e,!(C=void 0)),r=je.visitNodes(e.heritageClauses,k,je.isHeritageClause),a=F(e,je.some(r,function(e){return 85===e.token})),i=je.createClassExpression(void 0,e.name,void 0,r,a);if(je.setOriginalNode(i,e),je.setTextRange(i,e),je.some(t)||je.some(C)){var o=[],s=8388608&A.getNodeCheckFlags(e),c=je.createTempVariable(D,!!s);if(s){Ve();var l=je.getSynthesizedClone(c);l.autoGenerateFlags&=-9,x[je.getOriginalNodeId(e)]=l}return je.setEmitFlags(i,65536|je.getEmitFlags(i)),o.push(je.startOnNewLine(je.createAssignment(c,i))),je.addRange(o,je.map(C,je.startOnNewLine)),C=n,je.addRange(o,function(e,n){for(var t=[],r=0,a=e;r<a.length;r++){var i=a[r],o=W(i,n);je.startOnNewLine(o),je.setSourceMapRange(o,je.moveRangePastModifiers(i)),je.setCommentRange(o,i),je.setOriginalNode(o,i),t.push(o)}return t}(t,c)),o.push(je.startOnNewLine(c)),je.inlineExpressions(o)}return C=n,i}(e);case 271:return function(e){if(85===e.token){var n=je.visitNodes(e.types,k,je.isExpressionWithTypeArguments,0,1);return je.setTextRange(je.createHeritageClause(85,n),e)}}(e);case 209:return m=e,je.updateExpressionWithTypeArguments(m,void 0,je.visitNode(m.expression,k,je.isLeftHandSideExpression));case 154:return function(e){if(_e(e)){var n=je.updateMethod(e,void 0,je.visitNodes(e.modifiers,O,je.isModifier),e.asteriskToken,fe(e),void 0,void 0,je.visitParameterList(e.parameters,k,T),void 0,je.visitFunctionBody(e.body,k,T));return n!==e&&(je.setCommentRange(n,e),je.setSourceMapRange(n,je.moveRangePastDecorators(e))),n}}(e);case 156:return function(e){if(ge(e)){var n=je.updateGetAccessor(e,void 0,je.visitNodes(e.modifiers,O,je.isModifier),fe(e),je.visitParameterList(e.parameters,k,T),void 0,je.visitFunctionBody(e.body,k,T)||je.createBlock([]));return n!==e&&(je.setCommentRange(n,e),je.setSourceMapRange(n,je.moveRangePastDecorators(e))),n}}(e);case 157:return function(e){if(ge(e)){var n=je.updateSetAccessor(e,void 0,je.visitNodes(e.modifiers,O,je.isModifier),fe(e),je.visitParameterList(e.parameters,k,T),je.visitFunctionBody(e.body,k,T)||je.createBlock([]));return n!==e&&(je.setCommentRange(n,e),je.setSourceMapRange(n,je.moveRangePastDecorators(e))),n}}(e);case 237:return function(e){if(!_e(e))return je.createNotEmittedStatement(e);var n=je.updateFunctionDeclaration(e,void 0,je.visitNodes(e.modifiers,O,je.isModifier),e.asteriskToken,e.name,void 0,je.visitParameterList(e.parameters,k,T),void 0,je.visitFunctionBody(e.body,k,T)||je.createBlock([]));if(Ne(e)){var t=[n];return we(t,e),t}return n}(e);case 194:return _e(p=e)?je.updateFunctionExpression(p,je.visitNodes(p.modifiers,O,je.isModifier),p.asteriskToken,p.name,void 0,je.visitParameterList(p.parameters,k,T),void 0,je.visitFunctionBody(p.body,k,T)||je.createBlock([])):je.createOmittedExpression();case 195:return d=e,je.updateArrowFunction(d,je.visitNodes(d.modifiers,O,je.isModifier),void 0,je.visitParameterList(d.parameters,k,T),void 0,d.equalsGreaterThanToken,je.visitFunctionBody(d.body,k,T));case 149:return function(e){if(!je.parameterIsThisKeyword(e)){var n=je.createParameter(void 0,void 0,e.dotDotDotToken,je.visitNode(e.name,k,je.isBindingName),void 0,void 0,je.visitNode(e.initializer,k,je.isExpression));return je.setOriginalNode(n,e),je.setTextRange(n,je.moveRangePastModifiers(e)),je.setCommentRange(n,e),je.setSourceMapRange(n,je.moveRangePastModifiers(e)),je.setEmitFlags(n.name,32),n}}(e);case 193:return function(e){var n=je.skipOuterExpressions(e.expression,-3);if(je.isAssertionExpression(n)){var t=je.visitNode(e.expression,k,je.isExpression);return je.length(je.getLeadingCommentRangesOfNode(t,S))?je.updateParen(e,t):je.createPartiallyEmittedExpression(t,e)}return je.visitEachChild(e,k,T)}(e);case 192:case 210:return l=e,u=je.visitNode(l.expression,k,je.isExpression),je.createPartiallyEmittedExpression(u,l);case 189:return c=e,je.updateCall(c,je.visitNode(c.expression,k,je.isExpression),void 0,je.visitNodes(c.arguments,k,je.isExpression));case 190:return s=e,je.updateNew(s,je.visitNode(s.expression,k,je.isExpression),void 0,je.visitNodes(s.arguments,k,je.isExpression));case 191:return o=e,je.updateTaggedTemplate(o,je.visitNode(o.tag,k,je.isExpression),void 0,je.visitNode(o.template,k,je.isExpression));case 211:return a=e,i=je.visitNode(a.expression,k,je.isLeftHandSideExpression),je.createPartiallyEmittedExpression(i,a);case 241:return function(e){if(n=e,!je.isEnumConst(n)||b.preserveConstEnums||b.isolatedModules){var n,t=[],r=2,a=Te(t,e);a&&(E===je.ModuleKind.System&&v===S||(r|=512));var i=Fe(e),o=Ge(e),s=je.hasModifier(e,1)?je.getExternalModuleOrNamespaceExportName(g,e,!1,!0):je.getLocalName(e,!1,!0),c=je.createLogicalOr(s,je.createAssignment(s,je.createObjectLiteral()));if(he(e)){var l=je.getLocalName(e,!1,!0);c=je.createAssignment(l,c)}var u=je.createExpressionStatement(je.createCall(je.createFunctionExpression(void 0,void 0,void 0,void 0,[je.createParameter(void 0,void 0,void 0,i)],void 0,function(e,n){var t=g;g=n;var r=[];y();var a=je.map(e.members,ye);return je.addStatementsAfterPrologue(r,h()),je.addRange(r,a),g=t,je.createBlock(je.setTextRange(je.createNodeArray(r),e.members),!0)}(e,o)),void 0,[c]));return je.setOriginalNode(u,e),a&&(je.setSyntheticLeadingComments(u,void 0),je.setSyntheticTrailingComments(u,void 0)),je.setTextRange(u,e),je.addEmitFlags(u,r),t.push(u),t.push(je.createEndOfDeclarationMarker(e)),t}}(e);case 217:return function(e){if(Ne(e)){var n=je.getInitializedVariables(e.declarationList);if(0===n.length)return;return je.setTextRange(je.createExpressionStatement(je.inlineExpressions(je.map(n,ve))),e)}return je.visitEachChild(e,k,T)}(e);case 235:return r=e,je.updateVariableDeclaration(r,je.visitNode(r.name,k,je.isBindingName),void 0,je.visitNode(r.initializer,k,je.isExpression));case 242:return Se(e);case 246:return ke(e);default:return je.Debug.failBadSyntaxKind(e)}var n,t,r,a,i,o,s,c,l,u,d,p,m,f}function P(e){var n=je.getStrictOptionValue(b,"alwaysStrict")&&!(je.isExternalModule(e)&&E>=je.ModuleKind.ES2015)&&!je.isJsonSourceFile(e);return je.updateSourceFileNode(e,je.visitLexicalEnvironment(e.statements,a,T,0,n))}function R(e){return void 0!==e.decorators&&0<e.decorators.length}function F(e,n){var t=[],r=function(e,n){var t=je.forEach(e.members,j),r=262144&e.transformFlags,a=je.getFirstConstructorWithBody(e);if(!t&&!r)return je.visitEachChild(a,k,T);var i,o=(i=a,je.visitParameterList(i&&i.parameters,k,T)||[]),s=function(e,n,t){var r,a=[],i=0;if(c(),n){i=function(e,n){if(e.body){var t=e.body.statements,r=je.addPrologue(n,t,!1,k);if(r===t.length)return r;var a=t[r];return 219===a.kind&&je.isSuperCall(a.expression)?(n.push(je.visitNode(a,k,je.isStatement)),r+1):r}return 0}(n,a);var o=(r=n,je.filter(r.parameters,G));je.addRange(a,je.map(o,V))}else t&&a.push(je.createExpressionStatement(je.createCall(je.createSuper(),void 0,[je.createSpread(je.createIdentifier("arguments"))])));var s=B(e,!1);return U(a,s,je.createThis()),n&&je.addRange(a,je.visitNodes(n.body.statements,k,je.isStatement,i)),a=je.mergeLexicalEnvironment(a,h()),je.setTextRange(je.createBlock(je.setTextRange(je.createNodeArray(a),n?n.body.statements:e.members),!0),n?n.body:void 0)}(e,a,n);return je.startOnNewLine(je.setOriginalNode(je.setTextRange(je.createConstructor(void 0,void 0,o,s),a||e),a))}(e,n);return r&&t.push(r),je.addRange(t,je.visitNodes(e.members,I,je.isClassElement)),je.setTextRange(je.createNodeArray(t),e.members)}function G(e){return je.hasModifier(e,92)&&je.isIdentifier(e.name)}function V(e){je.Debug.assert(je.isIdentifier(e.name));var n=e.name,t=je.getMutableClone(n);je.setEmitFlags(t,1584);var r=je.getMutableClone(n);return je.setEmitFlags(r,1536),je.startOnNewLine(je.setEmitFlags(je.setTextRange(je.createExpressionStatement(je.createAssignment(je.setTextRange(je.createPropertyAccess(je.createThis(),t),e.name),r)),je.moveRangePos(e,-1)),1536))}function B(e,n){return je.filter(e.members,n?K:j)}function K(e){return H(e,!0)}function j(e){return H(e,!1)}function H(e,n){return 152===e.kind&&n===je.hasModifier(e,32)&&void 0!==e.initializer}function U(e,n,t){for(var r=0,a=n;r<a.length;r++){var i=a[r],o=je.createExpressionStatement(W(i,t));je.setSourceMapRange(o,je.moveRangePastModifiers(i)),je.setCommentRange(o,i),je.setOriginalNode(o,i),e.push(o)}}function W(e,n){var t=je.isComputedPropertyName(e.name)&&!de(e.name.expression)?je.updateComputedPropertyName(e.name,je.getGeneratedNameForNode(e.name)):e.name,r=je.visitNode(e.initializer,k,je.isExpression),a=je.createMemberAccessForPropertyName(n,t,t);return je.createAssignment(a,r)}function q(n,e){return je.filter(n.members,e?function(e){return z(e,!0,n)}:function(e){return z(e,!1,n)})}function z(e,n,t){return je.nodeOrChildIsDecorated(e,t)&&n===je.hasModifier(e,32)}function J(e){var n;if(e)for(var t=e.parameters,r=0;r<t.length;r++){var a=t[r];(n||a.decorators)&&(n||(n=new Array(t.length)),n[r]=a.decorators)}return n}function X(e,n){switch(n.kind){case 156:case 157:return function(e,n){if(n.body){var t=je.getAllAccessorDeclarations(e.members,n),r=t.firstAccessor,a=t.secondAccessor,i=t.setAccessor,o=r.decorators?r:a&&a.decorators?a:void 0;if(o&&n===o){var s=o.decorators,c=J(i);return s||c?{decorators:s,parameters:c}:void 0}}}(e,n);case 154:return function(e){if(e.body){var n=e.decorators,t=J(e);return n||t?{decorators:n,parameters:t}:void 0}}(n);case 152:return(t=n.decorators)?{decorators:t}:void 0;default:return}var t}function Y(e,n,t){if(t){var r,a,i,o=[];return je.addRange(o,je.map(t.decorators,$)),je.addRange(o,je.flatMap(t.parameters,ee)),r=e,a=n,i=o,b.emitDecoratorMetadata&&(ne(r)&&i.push(Ue(T,"design:type",ae(r))),re(r)&&i.push(Ue(T,"design:paramtypes",ie(r,a))),te(r)&&i.push(Ue(T,"design:returntype",oe(r)))),o}}function Q(e,n,t){je.addRange(e,je.map(function(e,n){for(var t,r=q(e,n),a=0,i=r;a<i.length;a++){var o=i[a],s=Z(e,o);s&&(t?t.push(s):t=[s])}return t}(n,t),Oe))}function Z(e,n){var t=Y(n,e,X(e,n));if(t){var r,a,i,o=(r=e,a=n,je.hasModifier(a,32)?je.getDeclarationName(r):(i=r,je.createPropertyAccess(je.getDeclarationName(i),"prototype"))),s=pe(n,!0),c=0<L?152===n.kind?je.createVoidZero():je.createNull():void 0,l=He(T,t,o,s,c,je.moveRangePastDecorators(n));return je.setEmitFlags(l,1536),l}}function $(e){return je.visitNode(e.expression,k,je.isExpression)}function ee(e,n){var t;if(e){t=[];for(var r=0,a=e;r<a.length;r++){var i=a[r],o=We(T,$(i),n,i.expression);je.setEmitFlags(o,1536),t.push(o)}}return t}function ne(e){var n=e.kind;return 154===n||156===n||157===n||152===n}function te(e){return 154===e.kind}function re(e){switch(e.kind){case 238:case 207:return void 0!==je.getFirstConstructorWithBody(e);case 154:case 156:case 157:return!0}return!1}function ae(e){switch(e.kind){case 152:case 149:return se(e.type);case 157:case 156:return se((n=e,(t=A.getAllAccessorDeclarations(n)).setAccessor&&je.getSetAccessorTypeAnnotationNode(t.setAccessor)||t.getAccessor&&je.getEffectiveReturnTypeNode(t.getAccessor)));case 238:case 207:case 154:return je.createIdentifier("Function");default:return je.createVoidZero()}var n,t}function ie(e,n){var t=je.isClassLike(e)?je.getFirstConstructorWithBody(e):je.isFunctionLike(e)&&je.nodeIsPresent(e.body)?e:void 0,r=[];if(t)for(var a=function(e,n){if(n&&156===e.kind){var t=je.getAllAccessorDeclarations(n.members,e).setAccessor;if(t)return t.parameters}return e.parameters}(t,n),i=a.length,o=0;o<i;o++){var s=a[o];0===o&&je.isIdentifier(s.name)&&"this"===s.name.escapedText||(s.dotDotDotToken?r.push(se(je.getRestParameterElementType(s.type))):r.push(ae(s)))}return je.createArrayLiteral(r)}function oe(e){return je.isFunctionLike(e)&&e.type?se(e.type):je.isAsyncFunction(e)?je.createIdentifier("Promise"):je.createVoidZero()}function se(e){if(void 0===e)return je.createIdentifier("Object");switch(e.kind){case 105:case 140:case 95:case 131:return je.createVoidZero();case 175:return se(e.type);case 163:case 164:return je.createIdentifier("Function");case 167:case 168:return je.createIdentifier("Array");case 161:case 122:return je.createIdentifier("Boolean");case 137:return je.createIdentifier("String");case 135:return je.createIdentifier("Object");case 180:switch(e.literal.kind){case 9:return je.createIdentifier("String");case 8:return je.createIdentifier("Number");case 101:case 86:return je.createIdentifier("Boolean");default:return je.Debug.failBadSyntaxKind(e.literal)}case 134:return je.createIdentifier("Number");case 138:return L<2?ue():je.createIdentifier("Symbol");case 162:return function(e){var n=A.getTypeReferenceSerializationKind(e.typeName,o||v);switch(n){case je.TypeReferenceSerializationKind.Unknown:var t=function e(n){if(71===n.kind){var t=le(n);return ce(t,t)}if(71===n.left.kind)return ce(le(n.left),le(n));var r=e(n.left),a=je.createTempVariable(D);return je.createLogicalAnd(je.createLogicalAnd(r.left,je.createStrictInequality(je.createAssignment(a,r.right),je.createVoidZero())),je.createPropertyAccess(a,n.right))}(e.typeName),r=je.createTempVariable(D);return je.createConditional(je.createTypeCheck(je.createAssignment(r,t),"function"),r,je.createIdentifier("Object"));case je.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return le(e.typeName);case je.TypeReferenceSerializationKind.VoidNullableOrNeverType:return je.createVoidZero();case je.TypeReferenceSerializationKind.BooleanType:return je.createIdentifier("Boolean");case je.TypeReferenceSerializationKind.NumberLikeType:return je.createIdentifier("Number");case je.TypeReferenceSerializationKind.StringLikeType:return je.createIdentifier("String");case je.TypeReferenceSerializationKind.ArrayLikeType:return je.createIdentifier("Array");case je.TypeReferenceSerializationKind.ESSymbolType:return L<2?ue():je.createIdentifier("Symbol");case je.TypeReferenceSerializationKind.TypeWithCallSignature:return je.createIdentifier("Function");case je.TypeReferenceSerializationKind.Promise:return je.createIdentifier("Promise");case je.TypeReferenceSerializationKind.ObjectType:return je.createIdentifier("Object");default:return je.Debug.assertNever(n)}}(e);case 172:case 171:return function(e){for(var n,t=0,r=e.types;t<r.length;t++){for(var a=r[t];175===a.kind;)a=a.type;if(131!==a.kind&&(l||95!==a.kind&&140!==a.kind)){var i=se(a);if(je.isIdentifier(i)&&"Object"===i.escapedText)return i;if(n){if(!je.isIdentifier(n)||!je.isIdentifier(i)||n.escapedText!==i.escapedText)return je.createIdentifier("Object")}else n=i}}return n||je.createVoidZero()}(e);case 165:case 177:case 178:case 179:case 166:case 119:case 142:case 176:case 181:break;default:return je.Debug.failBadSyntaxKind(e)}return je.createIdentifier("Object")}function ce(e,n){return je.createLogicalAnd(je.createStrictInequality(je.createTypeOf(e),je.createLiteral("undefined")),n)}function le(e){switch(e.kind){case 71:var n=je.getMutableClone(e);return n.flags&=-9,n.original=void 0,n.parent=je.getParseTreeNode(v),n;case 146:return t=e,je.createPropertyAccess(le(t.left),t.right)}var t}function ue(){return je.createConditional(je.createTypeCheck(je.createIdentifier("Symbol"),"function"),je.createIdentifier("Symbol"),je.createIdentifier("Object"))}function de(e){return!je.isIdentifier(e)&&je.isSimpleCopiableExpression(e)||je.isWellKnownSymbolSyntactically(e)}function pe(e,n){var t=e.name;return je.isComputedPropertyName(t)?n&&!de(t.expression)?je.getGeneratedNameForNode(t):t.expression:je.isIdentifier(t)?je.createLiteral(je.idText(t)):je.getSynthesizedClone(t)}function me(e,n,t){if(je.isComputedPropertyName(e)){var r=je.visitNode(e.expression,k,je.isExpression),a=je.skipPartiallyEmittedExpressions(r),i=de(a);if(i||!n)return t&&(i||je.isIdentifier(a))?void 0:r;var o=je.getGeneratedNameForNode(e);return D(o),je.createAssignment(o,r)}}function fe(e){var n=e.name,t=me(n,je.some(e.decorators),!1);return t?(je.some(C)&&(t=je.inlineExpressions(C.concat([t])),C.length=0),je.updateComputedPropertyName(n,t)):n}function _e(e){return!je.nodeIsMissing(e.body)}function ge(e){return!(je.nodeIsMissing(e.body)&&je.hasModifier(e,128))}function ve(e){var n=e.name;return je.isBindingPattern(n)?je.flattenDestructuringAssignment(e,k,T,0,!1,Pe):je.setTextRange(je.createAssignment(Re(n),je.visitNode(e.initializer,k,je.isExpression)),e)}function ye(e){var n,t,r=pe(e,!1),a=(n=e,void 0!==(t=A.getConstantValue(n))?je.createLiteral(t):(0==(8&d)&&(d|=8,T.enableSubstitution(71)),n.initializer?je.visitNode(n.initializer,k,je.isExpression):je.createVoidZero())),i=je.createAssignment(je.createElementAccess(g,r),a),o=9===a.kind?i:je.createAssignment(je.createElementAccess(g,i),r);return je.setTextRange(je.createExpressionStatement(je.setTextRange(o,e)),e)}function he(e){return Ne(e)||Ie(e)&&E!==je.ModuleKind.ES2015&&E!==je.ModuleKind.ESNext&&E!==je.ModuleKind.System}function be(e){p||(p=je.createUnderscoreEscapedMap());var n=Ee(e);p.has(n)||p.set(n,e)}function Ee(e){return je.Debug.assertNode(e.name,je.isIdentifier),e.name.escapedText}function Te(e,n){var t=je.createVariableStatement(je.visitNodes(n.modifiers,O,je.isModifier),je.createVariableDeclarationList([je.createVariableDeclaration(je.getLocalName(n,!1,!0))],277===v.kind?0:1));if(je.setOriginalNode(t,n),be(n),function(e){if(p){var n=Ee(e);return p.get(n)===e}return!0}(n))return 241===n.kind?je.setSourceMapRange(t.declarationList,n):je.setSourceMapRange(t,n),je.setCommentRange(t,n),je.addEmitFlags(t,4195328),e.push(t),!0;var r=je.createMergeDeclarationMarker(t);return je.setEmitFlags(r,4195840),e.push(r),!1}function Se(e){if(n=e,!je.isInstantiatedModule(n,!!b.preserveConstEnums||!!b.isolatedModules))return je.createNotEmittedStatement(e);var n;je.Debug.assertNode(e.name,je.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&d)&&(d|=2,T.enableSubstitution(71),T.enableSubstitution(274),T.enableEmitNotification(242));var t=[],r=2,a=Te(t,e);a&&(E===je.ModuleKind.System&&v===S||(r|=512));var i=Fe(e),o=Ge(e),s=je.hasModifier(e,1)?je.getExternalModuleOrNamespaceExportName(g,e,!1,!0):je.getLocalName(e,!1,!0),c=je.createLogicalOr(s,je.createAssignment(s,je.createObjectLiteral()));if(he(e)){var l=je.getLocalName(e,!1,!0);c=je.createAssignment(l,c)}var u=je.createExpressionStatement(je.createCall(je.createFunctionExpression(void 0,void 0,void 0,void 0,[je.createParameter(void 0,void 0,void 0,i)],void 0,function(e,n){var t=g,r=_,a=p;g=n,_=e,p=void 0;var i,o,s=[];y();var c=e.body;if(243===c.kind)m(c,function(e){return je.addRange(s,je.visitNodes(e.statements,f,je.isStatement))}),i=c.statements,o=c;else{var l=Se(c);l&&(je.isArray(l)?je.addRange(s,l):s.push(l));var u=function e(n){if(242===n.body.kind){var t=e(n.body);return t||n.body}}(e).body;i=je.moveRangePos(u.statements,-1)}je.addStatementsAfterPrologue(s,h()),g=t,_=r,p=a;var d=je.createBlock(je.setTextRange(je.createNodeArray(s),i),!0);return je.setTextRange(d,o),243!==c.kind&&je.setEmitFlags(d,1536|je.getEmitFlags(d)),d}(e,o)),void 0,[c]));return je.setOriginalNode(u,e),a&&(je.setSyntheticLeadingComments(u,void 0),je.setSyntheticTrailingComments(u,void 0)),je.setTextRange(u,e),je.addEmitFlags(u,r),t.push(u),t.push(je.createEndOfDeclarationMarker(e)),t}function xe(e){var n=A.isReferencedAliasDeclaration(e)?e.name:void 0,t=je.visitNode(e.namedBindings,Ce,je.isNamedImportBindings);return n||t?je.updateImportClause(e,n,t):void 0}function Ce(e){if(249===e.kind)return A.isReferencedAliasDeclaration(e)?e:void 0;var n=je.visitNodes(e.elements,De,je.isImportSpecifier);return je.some(n)?je.updateNamedImports(e,n):void 0}function De(e){return A.isReferencedAliasDeclaration(e)?e:void 0}function Ae(e){var n=je.visitNodes(e.elements,Le,je.isExportSpecifier);return je.some(n)?je.updateNamedExports(e,n):void 0}function Le(e){return A.isValueAliasDeclaration(e)?e:void 0}function ke(e){if(je.isExternalModuleImportEqualsDeclaration(e))return A.isReferencedAliasDeclaration(e)?je.visitEachChild(e,k,T):void 0;if(n=e,A.isReferencedAliasDeclaration(n)||!je.isExternalModule(S)&&A.isTopLevelValueImportEqualsWithEntityName(n)){var n,t,r,a,i=je.createExpressionFromEntityName(e.moduleReference);return je.setEmitFlags(i,3584),Me(e)||!Ne(e)?je.setOriginalNode(je.setTextRange(je.createVariableStatement(je.visitNodes(e.modifiers,O,je.isModifier),je.createVariableDeclarationList([je.setOriginalNode(je.createVariableDeclaration(e.name,void 0,i),e)])),e),e):je.setOriginalNode((t=e.name,r=i,a=e,je.setTextRange(je.createExpressionStatement(je.createAssignment(je.getNamespaceMemberName(g,t,!1,!0),r)),a)),e)}}function Ne(e){return void 0!==_&&je.hasModifier(e,1)}function Ie(e){return void 0===_&&je.hasModifier(e,1)}function Me(e){return Ie(e)&&!je.hasModifier(e,512)}function Oe(e){return je.createExpressionStatement(e)}function we(e,n){var t=je.createAssignment(je.getExternalModuleOrNamespaceExportName(g,n,!1,!0),je.getLocalName(n));je.setSourceMapRange(t,je.createRange(n.name?n.name.pos:n.pos,n.end));var r=je.createExpressionStatement(t);je.setSourceMapRange(r,je.createRange(-1,n.end)),e.push(r)}function Pe(e,n,t){return je.setTextRange(je.createAssignment(Re(e),n),t)}function Re(e){return je.getNamespaceMemberName(g,e,!1,!0)}function Fe(e){var n=je.getGeneratedNameForNode(e);return je.setSourceMapRange(n,e.name),n}function Ge(e){return je.getGeneratedNameForNode(e)}function Ve(){0==(1&d)&&(d|=1,T.enableSubstitution(71),x=[])}function Be(e){if(d&s&&!je.isGeneratedIdentifier(e)&&!je.isLocalName(e)){var n=A.getReferencedExportContainer(e,!1);if(n&&277!==n.kind&&(2&s&&242===n.kind||8&s&&241===n.kind))return je.setTextRange(je.createPropertyAccess(je.getGeneratedNameForNode(n),e),e)}}function Ke(e){var n=function(e){if(!b.isolatedModules)return je.isPropertyAccessExpression(e)||je.isElementAccessExpression(e)?A.getConstantValue(e):void 0}(e);if(void 0===n)return e;je.setConstantValue(e,n);var t=je.createLiteral(n);if(!b.removeComments){var r=je.isPropertyAccessExpression(e)?je.declarationNameToString(e.name):je.getTextOfNode(e.argumentExpression);je.addSyntheticTrailingComment(t,3," "+r+" ")}return t}}),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 Ue(e,n,t){return e.requestEmitHelper(a),je.createCall(je.getHelperName("__metadata"),void 0,[je.createLiteral(n),t])}var a={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 We(e,n,t,r){return e.requestEmitHelper(i),je.setTextRange(je.createCall(je.getHelperName("__param"),void 0,[je.createLiteral(t),n]),r)}var i={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            };"}}(ts||(ts={})),function(D){var e,n;(n=e||(e={}))[n.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";var i={name:"typescript:awaiter",scoped:!(D.transformES2017=function(f){var o,_,g=f.resumeLexicalEnvironment,v=f.endLexicalEnvironment,i=f.hoistVariableDeclaration,y=f.getEmitResolver(),e=f.getCompilerOptions(),h=D.getEmitScriptTarget(e),s=0,c=f.onEmitNode,t=f.onSubstituteNode;return f.onEmitNode=function(e,n,t){if(1&o&&(238===(i=n.kind)||155===i||154===i||156===i||157===i)){var r=6144&y.getNodeCheckFlags(n);if(r!==s){var a=s;return s=r,c(e,n,t),void(s=a)}}var i;c(e,n,t)},f.onSubstituteNode=function(e,n){return n=t(e,n),1===e&&s?function(e){switch(e.kind){case 187:return r(e);case 188:return C(e);case 189:return function(e){var n=e.expression;if(D.isSuperProperty(n)){var t=D.isPropertyAccessExpression(n)?r(n):C(n);return D.createCall(D.createPropertyAccess(t,"call"),void 0,[D.createThis()].concat(e.arguments))}return e}(e)}return e}(n):n},D.chainBundle(function(e){if(e.isDeclarationFile)return e;var n=D.visitEachChild(e,b,f);return D.addEmitHelpers(n,f.readEmitHelpers()),n});function b(e){if(0==(16&e.transformFlags))return e;switch(e.kind){case 120:return;case 199:return i=e,D.setOriginalNode(D.setTextRange(D.createYield(void 0,D.visitNode(i.expression,b,D.isExpression)),i),i);case 154:return a=e,D.updateMethod(a,void 0,D.visitNodes(a.modifiers,b,D.isModifier),a.asteriskToken,a.name,void 0,void 0,D.visitParameterList(a.parameters,b,f),void 0,2&D.getFunctionFlags(a)?T(a):D.visitFunctionBody(a.body,b,f));case 237:return r=e,D.updateFunctionDeclaration(r,void 0,D.visitNodes(r.modifiers,b,D.isModifier),r.asteriskToken,r.name,void 0,D.visitParameterList(r.parameters,b,f),void 0,2&D.getFunctionFlags(r)?T(r):D.visitFunctionBody(r.body,b,f));case 194:return t=e,D.updateFunctionExpression(t,D.visitNodes(t.modifiers,b,D.isModifier),t.asteriskToken,t.name,void 0,D.visitParameterList(t.parameters,b,f),void 0,2&D.getFunctionFlags(t)?T(t):D.visitFunctionBody(t.body,b,f));case 195:return n=e,D.updateArrowFunction(n,D.visitNodes(n.modifiers,b,D.isModifier),void 0,D.visitParameterList(n.parameters,b,f),void 0,n.equalsGreaterThanToken,2&D.getFunctionFlags(n)?T(n):D.visitFunctionBody(n.body,b,f));default:return D.visitEachChild(e,b,f)}var n,t,r,a,i}function l(e){if(D.isNodeWithPossibleHoistedDeclaration(e))switch(e.kind){case 217:return function(e){if(u(e.declarationList)){var n=d(e.declarationList,!1);return n?D.createExpressionStatement(n):void 0}return D.visitEachChild(e,b,f)}(e);case 223:return a=(r=e).initializer,D.updateFor(r,u(a)?d(a,!1):D.visitNode(r.initializer,b,D.isForInitializer),D.visitNode(r.condition,b,D.isExpression),D.visitNode(r.incrementor,b,D.isExpression),D.visitNode(r.statement,l,D.isStatement,D.liftToBlock));case 224:return t=e,D.updateForIn(t,u(t.initializer)?d(t.initializer,!0):D.visitNode(t.initializer,b,D.isForInitializer),D.visitNode(t.expression,b,D.isExpression),D.visitNode(t.statement,l,D.isStatement,D.liftToBlock));case 225:return n=e,D.updateForOf(n,D.visitNode(n.awaitModifier,b,D.isToken),u(n.initializer)?d(n.initializer,!0):D.visitNode(n.initializer,b,D.isForInitializer),D.visitNode(n.expression,b,D.isExpression),D.visitNode(n.statement,l,D.isStatement,D.liftToBlock));case 272:return function(e){var t,n=D.createUnderscoreEscapedMap();if(E(e.variableDeclaration,n),n.forEach(function(e,n){_.has(n)&&(t||(t=D.cloneMap(_)),t.delete(n))}),t){var r=_;_=t;var a=D.visitEachChild(e,l,f);return _=r,a}return D.visitEachChild(e,l,f)}(e);case 216:case 230:case 244:case 269:case 270:case 233:case 221:case 222:case 220:case 229:case 231:return D.visitEachChild(e,l,f);default:return D.Debug.assertNever(e,"Unhandled node.")}var n,t,r,a;return b(e)}function E(e,n){var t=e.name;if(D.isIdentifier(t))n.set(t.escapedText,!0);else for(var r=0,a=t.elements;r<a.length;r++){var i=a[r];D.isOmittedExpression(i)||E(i,n)}}function u(e){return!!e&&D.isVariableDeclarationList(e)&&!(3&e.flags)&&e.declarations.some(m)}function d(e,n){var t;t=e,D.forEach(t.declarations,p);var r=D.getInitializedVariables(e);return 0===r.length?n?D.visitNode(D.convertToAssignmentElementTarget(e.declarations[0].name),b,D.isExpression):void 0:D.inlineExpressions(D.map(r,a))}function p(e){var n=e.name;if(D.isIdentifier(n))i(n);else for(var t=0,r=n.elements;t<r.length;t++){var a=r[t];D.isOmittedExpression(a)||p(a)}}function a(e){var n=D.setSourceMapRange(D.createAssignment(D.convertToAssignmentElementTarget(e.name),e.initializer),e);return D.visitNode(n,b,D.isExpression)}function m(e){var n=e.name;if(D.isIdentifier(n))return _.has(n.escapedText);for(var t=0,r=n.elements;t<r.length;t++){var a=r[t];if(!D.isOmittedExpression(a)&&m(a))return!0}return!1}function T(e){g();var n,t=D.getOriginalNode(e,D.isFunctionLike).type,r=h<2?function(e){var n=e&&D.getEntityNameFromTypeNode(e);if(n&&D.isEntityName(n)){var t=y.getTypeReferenceSerializationKind(n);if(t===D.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||t===D.TypeReferenceSerializationKind.Unknown)return n}}(t):void 0,a=195===e.kind,i=0!=(8192&y.getNodeCheckFlags(e)),o=_;_=D.createUnderscoreEscapedMap();for(var s=0,c=e.parameters;s<c.length;s++)E(c[s],_);if(a){var l=A(f,i,r,S(e.body)),u=v();n=D.some(u)?(m=D.convertToFunctionBody(l),D.updateBlock(m,D.setTextRange(D.createNodeArray(D.concatenate(u,m.statements)),m.statements))):l}else{var d=[],p=D.addPrologue(d,e.body.statements,!1,b);d.push(D.createReturn(A(f,i,r,S(e.body,p)))),D.addStatementsAfterPrologue(d,v());var m=D.createBlock(d,!0);D.setTextRange(m,e.body),2<=h&&(4096&y.getNodeCheckFlags(e)?(x(),D.addEmitHelper(m,D.advancedAsyncSuperHelper)):2048&y.getNodeCheckFlags(e)&&(x(),D.addEmitHelper(m,D.asyncSuperHelper))),n=m}return _=o,n}function S(e,n){return D.isBlock(e)?D.updateBlock(e,D.visitNodes(e.statements,l,D.isStatement,n)):D.convertToFunctionBody(D.visitNode(e,l,D.isConciseBody))}function x(){0==(1&o)&&(o|=1,f.enableSubstitution(189),f.enableSubstitution(187),f.enableSubstitution(188),f.enableEmitNotification(238),f.enableEmitNotification(154),f.enableEmitNotification(156),f.enableEmitNotification(157),f.enableEmitNotification(155))}function r(e){return 97===e.expression.kind?n(D.createLiteral(D.idText(e.name)),e):e}function C(e){return 97===e.expression.kind?n(e.argumentExpression,e):e}function n(e,n){return 4096&s?D.setTextRange(D.createPropertyAccess(D.createCall(D.createFileLevelUniqueName("_super"),void 0,[e]),"value"),n):D.setTextRange(D.createCall(D.createFileLevelUniqueName("_super"),void 0,[e]),n)}}),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 A(e,n,t,r){e.requestEmitHelper(i);var a=D.createFunctionExpression(void 0,D.createToken(39),void 0,void 0,[],void 0,r);return(a.emitNode||(a.emitNode={})).flags|=786432,D.createCall(D.getHelperName("__awaiter"),void 0,[D.createThis(),n?D.createIdentifier("arguments"):D.createVoidZero(),t?D.createExpressionFromEntityName(t):D.createVoidZero(),a])}D.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:D.helperString(__makeTemplateObject(["\n            const "," = name => super[name];"],["\n            const "," = name => super[name];"]),"_super")},D.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:D.helperString(__makeTemplateObject(["\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);"]),"_super")}}(ts||(ts={})),function(C){var e,n;(n=e||(e={}))[n.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";var t={name:"typescript:assign",scoped:!(C.transformESNext=function(E){var o=E.resumeLexicalEnvironment,s=E.endLexicalEnvironment,T=E.hoistVariableDeclaration,c=E.getEmitResolver(),e=E.getCompilerOptions(),l=C.getEmitScriptTarget(e),u=E.onEmitNode;E.onEmitNode=function(e,n,t){if(1&d&&(238===(i=n.kind)||155===i||154===i||156===i||157===i)){var r=6144&c.getNodeCheckFlags(n);if(r!==p){var a=p;return p=r,u(e,n,t),void(p=a)}}var i;u(e,n,t)};var d,f,t=E.onSubstituteNode;E.onSubstituteNode=function(e,n){return n=t(e,n),1===e&&p?function(e){switch(e.kind){case 187:return r(e);case 188:return a(e);case 189:return function(e){var n=e.expression;if(C.isSuperProperty(n)){var t=C.isPropertyAccessExpression(n)?r(n):a(n);return C.createCall(C.createPropertyAccess(t,"call"),void 0,[C.createThis()].concat(e.arguments))}return e}(e)}return e}(n):n};var p=0;return C.chainBundle(function(e){if(e.isDeclarationFile)return e;var n=C.visitEachChild(e,S,E);return C.addEmitHelpers(n,E.readEmitHelpers()),n});function S(e){return n(e,!1)}function _(e){return n(e,!0)}function g(e){if(120!==e.kind)return e}function n(e,n){if(0==(8&e.transformFlags))return e;switch(e.kind){case 199:return s=e,2&f&&1&f?C.setOriginalNode(C.setTextRange(C.createYield(L(E,C.visitNode(s.expression,S,C.isExpression))),s),s):C.visitEachChild(s,S,E);case 205:return function(e){if(2&f&&1&f){if(e.asteriskToken){var n=C.visitNode(e.expression,S,C.isExpression);return C.setOriginalNode(C.setTextRange(C.createYield(L(E,C.updateYield(e,e.asteriskToken,(r=I(t=E,n,n),a=n,t.requestEmitHelper(A),t.requestEmitHelper(N),C.setTextRange(C.createCall(C.getHelperName("__asyncDelegator"),void 0,[r]),a))))),e),e)}return C.setOriginalNode(C.setTextRange(C.createYield(x(e.expression?C.visitNode(e.expression,S,C.isExpression):C.createVoidZero())),e),e)}var t,r,a;return C.visitEachChild(e,S,E)}(e);case 228:return o=e,2&f&&1&f?C.updateReturn(o,x(o.expression?C.visitNode(o.expression,S,C.isExpression):C.createVoidZero())):C.visitEachChild(o,S,E);case 231:return function(e){if(2&f){var n=C.unwrapInnermostStatementOfLabel(e);return 225===n.kind&&n.awaitModifier?v(n,e):C.restoreEnclosingLabel(C.visitEachChild(n,S,E),e)}return C.visitEachChild(e,S,E)}(e);case 186:return function(e){if(1048576&e.transformFlags){var n=function(e){for(var n,t=[],r=0,a=e;r<a.length;r++){var i=a[r];if(275===i.kind){n&&(t.push(C.createObjectLiteral(n)),n=void 0);var o=i.expression;t.push(C.visitNode(o,S,C.isExpression))}else n=C.append(n,273===i.kind?C.createPropertyAssignment(i.name,C.visitNode(i.initializer,S,C.isExpression)):C.visitNode(i,S,C.isObjectLiteralElementLike))}return n&&t.push(C.createObjectLiteral(n)),t}(e.properties);return n.length&&186!==n[0].kind&&n.unshift(C.createObjectLiteral()),D(E,n)}return C.visitEachChild(e,S,E)}(e);case 202:return a=e,i=n,C.isDestructuringAssignment(a)&&1048576&a.left.transformFlags?C.flattenDestructuringAssignment(a,S,E,1,!i):26===a.operatorToken.kind?C.updateBinary(a,C.visitNode(a.left,_,C.isExpression),C.visitNode(a.right,i?_:S,C.isExpression)):C.visitEachChild(a,S,E);case 235:return r=e,C.isBindingPattern(r.name)&&1048576&r.name.transformFlags?C.flattenDestructuringBinding(r,S,E,1):C.visitEachChild(r,S,E);case 225:return v(e,void 0);case 223:return m=e,C.updateFor(m,C.visitNode(m.initializer,_,C.isForInitializer),C.visitNode(m.condition,S,C.isExpression),C.visitNode(m.incrementor,S,C.isExpression),C.visitNode(m.statement,S,C.isStatement));case 198:return p=e,C.visitEachChild(p,_,E);case 155:return function(e){var n=f;f=0;var t=C.updateConstructor(e,void 0,e.modifiers,C.visitParameterList(e.parameters,S,E),h(e));return f=n,t}(e);case 154:return function(e){var n=f;f=C.getFunctionFlags(e);var t=C.updateMethod(e,void 0,1&f?C.visitNodes(e.modifiers,g,C.isModifier):e.modifiers,2&f?void 0:e.asteriskToken,C.visitNode(e.name,S,C.isPropertyName),C.visitNode(void 0,S,C.isToken),void 0,C.visitParameterList(e.parameters,S,E),void 0,2&f&&1&f?y(e):h(e));return f=n,t}(e);case 156:return function(e){var n=f;f=0;var t=C.updateGetAccessor(e,void 0,e.modifiers,C.visitNode(e.name,S,C.isPropertyName),C.visitParameterList(e.parameters,S,E),void 0,h(e));return f=n,t}(e);case 157:return function(e){var n=f;f=0;var t=C.updateSetAccessor(e,void 0,e.modifiers,C.visitNode(e.name,S,C.isPropertyName),C.visitParameterList(e.parameters,S,E),h(e));return f=n,t}(e);case 237:return function(e){var n=f;f=C.getFunctionFlags(e);var t=C.updateFunctionDeclaration(e,void 0,1&f?C.visitNodes(e.modifiers,g,C.isModifier):e.modifiers,2&f?void 0:e.asteriskToken,e.name,void 0,C.visitParameterList(e.parameters,S,E),void 0,2&f&&1&f?y(e):h(e));return f=n,t}(e);case 194:return function(e){var n=f;f=C.getFunctionFlags(e);var t=C.updateFunctionExpression(e,1&f?C.visitNodes(e.modifiers,g,C.isModifier):e.modifiers,2&f?void 0:e.asteriskToken,e.name,void 0,C.visitParameterList(e.parameters,S,E),void 0,2&f&&1&f?y(e):h(e));return f=n,t}(e);case 195:return function(e){var n=f;f=C.getFunctionFlags(e);var t=C.updateArrowFunction(e,e.modifiers,void 0,C.visitParameterList(e.parameters,S,E),void 0,e.equalsGreaterThanToken,h(e));return f=n,t}(e);case 149:return 1048576&(t=e).transformFlags?C.updateParameter(t,void 0,void 0,t.dotDotDotToken,C.getGeneratedNameForNode(t),void 0,void 0,C.visitNode(t.initializer,S,C.isExpression)):C.visitEachChild(t,S,E);case 219:return d=e,C.visitEachChild(d,_,E);case 193:return l=e,u=n,C.visitEachChild(l,u?_:S,E);case 272:return(c=e).variableDeclaration?C.visitEachChild(c,S,E):C.updateCatchClause(c,C.createVariableDeclaration(C.createTempVariable(void 0)),C.visitNode(c.block,S,C.isBlock));default:return C.visitEachChild(e,S,E)}var t,r,a,i,o,s,c,l,u,d,p,m}function v(e,n){return 1048576&e.initializer.transformFlags&&(e=function(e){var n=C.skipParentheses(e.initializer);if(C.isVariableDeclarationList(n)||C.isAssignmentPattern(n)){var t=void 0,r=void 0,a=C.createTempVariable(void 0),i=[C.createForOfBindingStatement(n,a)];return C.isBlock(e.statement)?(C.addRange(i,e.statement.statements),t=e.statement,r=e.statement.statements):e.statement&&(C.append(i,e.statement),t=e.statement,r=e.statement),C.updateForOf(e,e.awaitModifier,C.setTextRange(C.createVariableDeclarationList([C.setTextRange(C.createVariableDeclaration(a),e.initializer)],1),e.initializer),e.expression,C.setTextRange(C.createBlock(C.setTextRange(C.createNodeArray(i),r),!0),t))}return e}(e)),e.awaitModifier?function(e,n){var t=C.visitNode(e.expression,S,C.isExpression),r=C.isIdentifier(t)?C.getGeneratedNameForNode(t):C.createTempVariable(void 0),a=C.isIdentifier(t)?C.getGeneratedNameForNode(r):C.createTempVariable(void 0),i=C.createUniqueName("e"),o=C.getGeneratedNameForNode(i),s=C.createTempVariable(void 0),c=I(E,t,e.expression),l=C.createCall(C.createPropertyAccess(r,"next"),void 0,[]),u=C.createPropertyAccess(a,"done"),d=C.createPropertyAccess(a,"value"),p=C.createFunctionCall(s,r,[]);T(i),T(s);var m,f,_,g,v,y,h,b=C.setEmitFlags(C.setTextRange(C.createFor(C.setEmitFlags(C.setTextRange(C.createVariableDeclarationList([C.setTextRange(C.createVariableDeclaration(r,void 0,c),e.expression),C.createVariableDeclaration(a)]),e.expression),2097152),C.createComma(C.createAssignment(a,x(l)),C.createLogicalNot(u)),void 0,(m=e,f=d,v=C.createForOfBindingStatement(m.initializer,f),y=[C.visitNode(v,S,C.isStatement)],h=C.visitNode(m.statement,S,C.isStatement),C.isBlock(h)?(C.addRange(y,h.statements),g=(_=h).statements):y.push(h),C.setEmitFlags(C.setTextRange(C.createBlock(C.setTextRange(C.createNodeArray(y),g),!0),_),432))),e),256);return C.createTry(C.createBlock([C.restoreEnclosingLabel(b,n)]),C.createCatchClause(C.createVariableDeclaration(o),C.setEmitFlags(C.createBlock([C.createExpressionStatement(C.createAssignment(i,C.createObjectLiteral([C.createPropertyAssignment("error",o)])))]),1)),C.createBlock([C.createTry(C.createBlock([C.setEmitFlags(C.createIf(C.createLogicalAnd(C.createLogicalAnd(a,C.createLogicalNot(u)),C.createAssignment(s,C.createPropertyAccess(r,"return"))),C.createExpressionStatement(x(p))),1)]),void 0,C.setEmitFlags(C.createBlock([C.setEmitFlags(C.createIf(i,C.createThrow(C.createPropertyAccess(i,"error"))),1)]),1))]))}(e,n):C.restoreEnclosingLabel(C.visitEachChild(e,S,E),n)}function x(e){return 1&f?C.createYield(void 0,L(E,e)):C.createAwait(e)}function y(e){o();var n,t,r=[],a=C.addPrologue(r,e.body.statements,!1,S);m(r,e),r.push(C.createReturn((n=E,t=C.createFunctionExpression(void 0,C.createToken(39),e.name&&C.getGeneratedNameForNode(e.name),void 0,[],void 0,C.updateBlock(e.body,C.visitLexicalEnvironment(e.body.statements,S,E,a))),n.requestEmitHelper(A),n.requestEmitHelper(k),(t.emitNode||(t.emitNode={})).flags|=262144,C.createCall(C.getHelperName("__asyncGenerator"),void 0,[C.createThis(),C.createIdentifier("arguments"),t])))),C.addStatementsAfterPrologue(r,s());var i=C.updateBlock(e.body,r);return 2<=l&&(4096&c.getNodeCheckFlags(e)?(b(),C.addEmitHelper(i,C.advancedAsyncSuperHelper)):2048&c.getNodeCheckFlags(e)&&(b(),C.addEmitHelper(i,C.asyncSuperHelper))),i}function h(e){o();var n=0,t=[],r=C.visitNode(e.body,S,C.isConciseBody);C.isBlock(r)&&(n=C.addPrologue(t,r.statements,!1,S)),C.addRange(t,m(void 0,e));var a=s();if(0<n||C.some(t)||C.some(a)){var i=C.convertToFunctionBody(r,!0);return C.addStatementsAfterPrologue(t,a),C.addRange(t,i.statements.slice(n)),C.updateBlock(i,C.setTextRange(C.createNodeArray(t),i.statements))}return r}function m(e,n){for(var t=0,r=n.parameters;t<r.length;t++){var a=r[t];if(1048576&a.transformFlags){var i=C.getGeneratedNameForNode(a),o=C.flattenDestructuringBinding(a,S,E,1,i,!1,!0);if(C.some(o)){var s=C.createVariableStatement(void 0,C.createVariableDeclarationList(o));C.setEmitFlags(s,1048576),e=C.append(e,s)}}}return e}function b(){0==(1&d)&&(d|=1,E.enableSubstitution(189),E.enableSubstitution(187),E.enableSubstitution(188),E.enableEmitNotification(238),E.enableEmitNotification(154),E.enableEmitNotification(156),E.enableEmitNotification(157),E.enableEmitNotification(155))}function r(e){return 97===e.expression.kind?i(C.createLiteral(C.idText(e.name)),e):e}function a(e){return 97===e.expression.kind?i(e.argumentExpression,e):e}function i(e,n){return 4096&p?C.setTextRange(C.createPropertyAccess(C.createCall(C.createIdentifier("_super"),void 0,[e]),"value"),n):C.setTextRange(C.createCall(C.createIdentifier("_super"),void 0,[e]),n)}}),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 D(e,n){return 2<=e.getCompilerOptions().target?C.createCall(C.createPropertyAccess(C.createIdentifier("Object"),"assign"),void 0,n):(e.requestEmitHelper(t),C.createCall(C.getHelperName("__assign"),void 0,n))}C.createAssignHelper=D;var A={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 L(e,n){return e.requestEmitHelper(A),C.createCall(C.getHelperName("__await"),void 0,[n])}var k={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 N={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 r={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 I(e,n,t){return e.requestEmitHelper(r),C.setTextRange(C.createCall(C.getHelperName("__asyncValues"),void 0,[n]),t)}}(ts||(ts={})),function(g){g.transformJsx=function(l){var u,d=l.getCompilerOptions();return g.chainBundle(function(e){if(e.isDeclarationFile)return e;u=e;var n=g.visitEachChild(e,t,l);return g.addEmitHelpers(n,l.readEmitHelpers()),n});function t(e){return 4&e.transformFlags?function(e){switch(e.kind){case 258:return r(e,!1);case 259:return a(e,!1);case 262:return i(e,!1);case 268:return _(e);default:return g.visitEachChild(e,t,l)}}(e):e}function p(e){switch(e.kind){case 10:return n=e,void 0===(t=function(e){for(var n,t=0,r=-1,a=0;a<e.length;a++){var i=e.charCodeAt(a);g.isLineBreak(i)?(-1!==t&&-1!==r&&(n=s(n,e.substr(t,r-t+1))),t=-1):g.isWhiteSpaceSingleLine(i)||(r=a,-1===t&&(t=a))}return-1!==t?s(n,e.substr(t)):n}(g.getTextOfNode(n,!0)))?void 0:g.createLiteral(t);case 268:return _(e);case 258:return r(e,!0);case 259:return a(e,!0);case 262:return i(e,!0);default:return g.Debug.failBadSyntaxKind(e)}var n,t}function r(e,n){return o(e.openingElement,e.children,n,e)}function a(e,n){return o(e,void 0,n,e)}function i(e,n){return t=e.openingFragment,r=e.children,a=n,i=e,o=g.createExpressionForJsxFragment(l.getEmitResolver().getJsxFactoryEntity(u),d.reactNamespace,g.mapDefined(r,p),t,i),a&&g.startOnNewLine(o),o;var t,r,a,i,o}function o(e,n,t,r){var a,i=function e(n){if(258===n.kind)return e(n.openingElement);var t=n.tagName;return g.isIdentifier(t)&&g.isIntrinsicJsxName(t.escapedText)?g.createLiteral(g.idText(t)):g.createExpressionFromEntityName(t)}(e),o=e.attributes.properties;if(0===o.length)a=g.createNull();else{var s=g.flatten(g.spanMap(o,g.isJsxSpreadAttribute,function(e,n){return n?g.map(e,m):g.createObjectLiteral(g.map(e,f))}));g.isJsxSpreadAttribute(o[0])&&s.unshift(g.createObjectLiteral()),(a=g.singleOrUndefined(s))||(a=g.createAssignHelper(l,s))}var c=g.createExpressionForJsxElement(l.getEmitResolver().getJsxFactoryEntity(u),d.reactNamespace,i,a,g.mapDefined(n,p),e,r);return t&&g.startOnNewLine(c),c}function m(e){return g.visitNode(e.expression,t,g.isExpression)}function f(e){var n,t,r=(n=e.name,t=g.idText(n),/^[A-Za-z_]\w*$/.test(t)?n:g.createLiteral(t)),a=function(e){if(void 0===e)return g.createTrue();if(9!==e.kind)return 268===e.kind?void 0===e.expression?g.createTrue():_(e):g.Debug.failBadSyntaxKind(e);var n,t,r=g.createLiteral((n=e.text,((t=c(n))===n?void 0:t)||e.text));return r.singleQuote=void 0!==e.singleQuote?e.singleQuote:!g.isStringDoubleQuoted(e,u),g.setTextRange(r,e)}(e.initializer);return g.createPropertyAssignment(r,a)}function s(e,n){var t=c(n);return void 0===e?t:e+" "+t}function c(e){return e.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(e,n,t,r,a,i,o){if(a)return String.fromCharCode(parseInt(a,10));if(i)return String.fromCharCode(parseInt(i,16));var s=v.get(o);return s?String.fromCharCode(s):e})}function _(e){return g.visitNode(e.expression,t,g.isExpression)}};var v=g.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})}(ts||(ts={})),function(l){l.transformES2016=function(a){var s=a.hoistVariableDeclaration;return l.chainBundle(function(e){return e.isDeclarationFile?e:l.visitEachChild(e,c,a)});function c(e){if(0==(32&e.transformFlags))return e;switch(e.kind){case 202:return function(e){switch(e.operatorToken.kind){case 62:return function(e){var n,t,r=l.visitNode(e.left,c,l.isExpression),a=l.visitNode(e.right,c,l.isExpression);if(l.isElementAccessExpression(r)){var i=l.createTempVariable(s),o=l.createTempVariable(s);n=l.setTextRange(l.createElementAccess(l.setTextRange(l.createAssignment(i,r.expression),r.expression),l.setTextRange(l.createAssignment(o,r.argumentExpression),r.argumentExpression)),r),t=l.setTextRange(l.createElementAccess(i,o),r)}else if(l.isPropertyAccessExpression(r)){var i=l.createTempVariable(s);n=l.setTextRange(l.createPropertyAccess(l.setTextRange(l.createAssignment(i,r.expression),r.expression),r.name),r),t=l.setTextRange(l.createPropertyAccess(i,r.name),r)}else t=n=r;return l.setTextRange(l.createAssignment(n,l.createMathPow(t,a,e)),e)}(e);case 40:return n=e,t=l.visitNode(n.left,c,l.isExpression),r=l.visitNode(n.right,c,l.isExpression),l.createMathPow(t,r,n);default:return l.visitEachChild(e,c,a)}var n,t,r}(e);default:return l.visitEachChild(e,c,a)}}}}(ts||(ts={})),function(ve){var e,n,t,r,a,i,o,s,c,l;(n=e||(e={}))[n.CapturedThis=1]="CapturedThis",n[n.BlockScopedBindings=2]="BlockScopedBindings",(r=t||(t={}))[r.ToOriginal=0]="ToOriginal",r[r.ToOutParameter=1]="ToOutParameter",(i=a||(a={}))[i.Break=2]="Break",i[i.Continue=4]="Continue",i[i.Return=8]="Return",(s=o||(o={}))[s.NoReplacement=0]="NoReplacement",s[s.ReplaceSuperCapture=1]="ReplaceSuperCapture",s[s.ReplaceWithReturn=2]="ReplaceWithReturn",(l=c||(c={}))[l.None=0]="None",l[l.Function=1]="Function",l[l.ArrowFunction=2]="ArrowFunction",l[l.AsyncFunctionBody=4]="AsyncFunctionBody",l[l.NonStaticClassElement=8]="NonStaticClassElement",l[l.CapturesThis=16]="CapturesThis",l[l.ExportedVariableStatement=32]="ExportedVariableStatement",l[l.TopLevel=64]="TopLevel",l[l.Block=128]="Block",l[l.IterationStatement=256]="IterationStatement",l[l.IterationStatementBlock=512]="IterationStatementBlock",l[l.ForStatement=1024]="ForStatement",l[l.ForInOrForOfStatement=2048]="ForInOrForOfStatement",l[l.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",l[l.ComputedPropertyName=8192]="ComputedPropertyName",l[l.AncestorFactsMask=16383]="AncestorFactsMask",l[l.BlockScopeIncludes=0]="BlockScopeIncludes",l[l.BlockScopeExcludes=4032]="BlockScopeExcludes",l[l.SourceFileIncludes=64]="SourceFileIncludes",l[l.SourceFileExcludes=3968]="SourceFileExcludes",l[l.FunctionIncludes=65]="FunctionIncludes",l[l.FunctionExcludes=16286]="FunctionExcludes",l[l.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",l[l.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",l[l.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",l[l.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",l[l.ConstructorIncludes=73]="ConstructorIncludes",l[l.ConstructorExcludes=16278]="ConstructorExcludes",l[l.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",l[l.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",l[l.ForStatementIncludes=1280]="ForStatementIncludes",l[l.ForStatementExcludes=3008]="ForStatementExcludes",l[l.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",l[l.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",l[l.BlockIncludes=128]="BlockIncludes",l[l.BlockExcludes=3904]="BlockExcludes",l[l.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",l[l.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",l[l.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",l[l.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",l[l.NewTarget=16384]="NewTarget",l[l.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",l[l.SubtreeFactsMask=-16384]="SubtreeFactsMask",l[l.PropagateNewTargetMask=49152]="PropagateNewTargetMask";var ye={name:"typescript:extends",scoped:!(ve.transformES2015=function(M){var b,m,O,E,w,a,P=M.startLexicalEnvironment,f=M.resumeLexicalEnvironment,R=M.endLexicalEnvironment,T=M.hoistVariableDeclaration,c=M.getCompilerOptions(),S=M.getEmitResolver(),t=M.onSubstituteNode,i=M.onEmitNode;return M.onEmitNode=function(e,n,t){if(1&a&&ve.isFunctionLike(n)){var r=x(16286,8&ve.getEmitFlags(n)?81:65);return i(e,n,t),void C(r,0,0)}i(e,n,t)},M.onSubstituteNode=function(e,n){return n=t(e,n),1===e?function(e){switch(e.kind){case 71:return function(e){if(2&a&&!ve.isInternalName(e)){var n=S.getReferencedDeclarationWithCollidingName(e);if(n&&(!ve.isClassLike(n)||!function(e,n){var t=ve.getParseTreeNode(n);if(!t||t===e||t.end<=e.pos||t.pos>=e.end)return!1;for(var r=ve.getEnclosingBlockScopeContainer(e);t;){if(t===r||t===e)return!1;if(ve.isClassElement(t)&&t.parent===e)return!0;t=t.parent}return!1}(n,e)))return ve.setTextRange(ve.getGeneratedNameForNode(ve.getNameOfDeclaration(n)),e)}return e}(e);case 99:return n=e,1&a&&16&O?ve.setTextRange(ve.createFileLevelUniqueName("_this"),n):n}var n;return e}(n):ve.isIdentifier(n)?function(e){if(2&a&&!ve.isInternalName(e)){var n=ve.getParseTreeNode(e,ve.isIdentifier);if(n&&function(e){switch(e.parent.kind){case 184:case 238:case 241:case 235:return e.parent.name===e&&S.isDeclarationWithCollidingName(e.parent)}return!1}(n))return ve.setTextRange(ve.getGeneratedNameForNode(n),e)}return e}(n):n},ve.chainBundle(function(e){if(e.isDeclarationFile)return e;m=(b=e).text;var n=function(e){var n=x(3968,64),t=[];P();var r=ve.addStandardPrologue(t,e.statements,!1);return h(t,e),r=ve.addCustomPrologue(t,e.statements,r,F),ve.addRange(t,ve.visitNodes(e.statements,F,ve.isStatement,r)),E&&t.push(ve.createVariableStatement(void 0,ve.createVariableDeclarationList(E))),ve.addStatementsAfterPrologue(t,R()),C(n,0,0),ve.updateSourceFileNode(e,ve.setTextRange(ve.createNodeArray(t),e.statements))}(e);return ve.addEmitHelpers(n,M.readEmitHelpers()),E=m=b=void 0,O=0,n});function x(e,n){var t=O;return O=16383&(O&~e|n),t}function C(e,n,t){O=-16384&(O&~n|t)|e}function D(e){return 0!=(4096&O)&&228===e.kind&&!e.expression}function n(e){return 0!=(128&e.transformFlags)||void 0!==w||4096&O&&(ve.isStatement(e)||216===e.kind)||ve.isIterationStatement(e,!1)&&ne(e)||0!=(33554432&ve.getEmitFlags(e))}function F(e){return n(e)?function(e){switch(e.kind){case 115:return;case 238:return function(e){var n=ve.createVariableDeclaration(ve.getLocalName(e,!0),void 0,k(e));ve.setOriginalNode(n,e);var t=[],r=ve.createVariableStatement(void 0,ve.createVariableDeclarationList([n]));if(ve.setOriginalNode(r,e),ve.setTextRange(r,e),ve.startOnNewLine(r),t.push(r),ve.hasModifier(e,1)){var a=ve.hasModifier(e,512)?ve.createExportDefault(ve.getLocalName(e)):ve.createExternalModuleExport(ve.getLocalName(e));ve.setOriginalNode(a,r),t.push(a)}var i=ve.getEmitFlags(e);return 0==(4194304&i)&&(t.push(ve.createEndOfDeclarationMarker(e)),ve.setEmitFlags(r,4194304|i)),ve.singleOrMany(t)}(e);case 207:return k(e);case 149:return(h=e).dotDotDotToken?void 0:ve.isBindingPattern(h.name)?ve.setOriginalNode(ve.setTextRange(ve.createParameter(void 0,void 0,void 0,ve.getGeneratedNameForNode(h),void 0,void 0,void 0),h),h):h.initializer?ve.setOriginalNode(ve.setTextRange(ve.createParameter(void 0,void 0,void 0,h.name,void 0,void 0,void 0),h),h):h;case 237:return function(e){var n=w;w=void 0;var t=x(16286,65),r=ve.visitParameterList(e.parameters,F,M),a=64&e.transformFlags?K(e):j(e),i=16384&O?ve.getLocalName(e):e.name;return C(t,49152,0),w=n,ve.updateFunctionDeclaration(e,void 0,ve.visitNodes(e.modifiers,F,ve.isModifier),e.asteriskToken,i,void 0,r,void 0,a)}(e);case 195:return function(e){16384&e.transformFlags&&_e();var n=w;w=void 0;var t=x(16256,66),r=ve.createFunctionExpression(void 0,void 0,void 0,void 0,ve.visitParameterList(e.parameters,F,M),void 0,K(e));return ve.setTextRange(r,e),ve.setOriginalNode(r,e),ve.setEmitFlags(r,8),C(t,0,0),w=n,r}(e);case 194:return function(e){var n=262144&ve.getEmitFlags(e)?x(16278,69):x(16286,65),t=w;w=void 0;var r=ve.visitParameterList(e.parameters,F,M),a=64&e.transformFlags?K(e):j(e),i=16384&O?ve.getLocalName(e):e.name;return C(n,49152,0),w=t,ve.updateFunctionExpression(e,void 0,e.asteriskToken,i,void 0,r,void 0,a)}(e);case 235:return z(e);case 71:return c=e,w?ve.isGeneratedIdentifier(c)?c:"arguments"===c.escapedText&&S.isArgumentsLocalBinding(c)?w.argumentsName||(w.argumentsName=ve.createUniqueName("arguments")):c:c;case 236:return function(e){if(64&e.transformFlags){3&e.flags&&fe();var n=ve.flatMap(e.declarations,1&e.flags?q:z),t=ve.createVariableDeclarationList(n);return ve.setOriginalNode(t,e),ve.setTextRange(t,e),ve.setCommentRange(t,e),8388608&e.transformFlags&&(ve.isBindingPattern(e.declarations[0].name)||ve.isBindingPattern(ve.last(e.declarations).name))&&ve.setSourceMapRange(t,function(e){for(var n=-1,t=-1,r=0,a=e;r<a.length;r++){var i=a[r];n=-1===n?i.pos:-1===i.pos?n:Math.min(n,i.pos),t=Math.max(t,i.end)}return ve.createRange(n,t)}(n)),t}return ve.visitEachChild(e,F,M)}(e);case 230:return function(e){if(void 0===w)return ve.visitEachChild(e,F,M);var n=w.allowedNonLabeledJumps;w.allowedNonLabeledJumps|=2;var t=ve.visitEachChild(e,F,M);return w.allowedNonLabeledJumps=n,t}(e);case 244:return g=e,v=x(4032,0),y=ve.visitEachChild(g,F,M),C(v,0,0),y;case 216:return H(e,!1);case 227:case 226:return function(e){if(w){var n=227===e.kind?2:4,t=e.label&&w.labels&&w.labels.get(ve.idText(e.label))||!e.label&&w.allowedNonLabeledJumps&n;if(!t){var r=void 0,a=e.label;a?227===e.kind?(r="break-"+a.escapedText,ae(w,!0,ve.idText(a),r)):(r="continue-"+a.escapedText,ae(w,!1,ve.idText(a),r)):r=227===e.kind?(w.nonLocalJumps|=2,"break"):(w.nonLocalJumps|=4,"continue");var i=ve.createLiteral(r);if(w.loopOutParameters.length){for(var o=w.loopOutParameters,s=void 0,c=0;c<o.length;c++){var l=te(o[c],1);s=0===c?l:ve.createBinary(s,26,l)}i=ve.createBinary(s,26,i)}return ve.createReturn(i)}}return ve.visitEachChild(e,F,M)}(e);case 231:return function(e){w&&!w.labels&&(w.labels=ve.createMap());var n=ve.unwrapInnermostStatementOfLabel(e,w&&J);return ve.isIterationStatement(n,!1)?function(e,n){switch(e.kind){case 221:case 222:return Y(e,n);case 223:return Q(e,n);case 224:return Z(e,n);case 225:return $(e,n)}}(n,e):ve.restoreEnclosingLabel(ve.visitNode(n,F,ve.isStatement,ve.liftToBlock),e,w&&X)}(e);case 221:case 222:return Y(e,void 0);case 223:return Q(e,void 0);case 224:return Z(e,void 0);case 225:return $(e,void 0);case 219:return function(e){switch(e.expression.kind){case 193:return ve.updateExpressionStatement(e,U(e.expression,!1));case 202:return ve.updateExpressionStatement(e,W(e.expression,!1))}return ve.visitEachChild(e,F,M)}(e);case 186:return function(e){for(var n=e.properties,t=n.length,r=t,a=t,i=0;i<t;i++){var o=n[i];if(16777216&o.transformFlags&&4&O&&i<a&&(a=i),147===o.name.kind){r=i;break}}if(r===t)return ve.visitEachChild(e,F,M);a<r&&(r=a);var s=ve.createTempVariable(T),c=[],l=ve.createAssignment(s,ve.setEmitFlags(ve.createObjectLiteral(ve.visitNodes(n,F,ve.isObjectLiteralElementLike,0,r),e.multiLine),65536));return e.multiLine&&ve.startOnNewLine(l),c.push(l),function(e,n,t,r){for(var a=n.properties,i=a.length,o=r;o<i;o++){var s=a[o];switch(s.kind){case 156:case 157:var c=ve.getAllAccessorDeclarations(n.properties,s);s===c.firstAccessor&&e.push(V(t,c,n,!!n.multiLine));break;case 154:e.push((v=s,y=t,b=(h=n).multiLine,void 0,E=x(0,0),T=ve.createAssignment(ve.createMemberAccessForPropertyName(y,ve.visitNode(v.name,F,ve.isPropertyName)),B(v,v,void 0,h)),ve.setTextRange(T,v),b&&ve.startOnNewLine(T),C(E,49152,49152&O?16384:0),T));break;case 273:e.push((m=s,f=t,_=n.multiLine,void 0,g=ve.createAssignment(ve.createMemberAccessForPropertyName(f,ve.visitNode(m.name,F,ve.isPropertyName)),ve.visitNode(m.initializer,F,ve.isExpression)),ve.setTextRange(g,m),_&&ve.startOnNewLine(g),g));break;case 274:e.push((l=s,u=t,d=n.multiLine,void 0,p=ve.createAssignment(ve.createMemberAccessForPropertyName(u,ve.visitNode(l.name,F,ve.isPropertyName)),ve.getSynthesizedClone(l.name)),ve.setTextRange(p,l),d&&ve.startOnNewLine(p),p));break;default:ve.Debug.failBadSyntaxKind(n)}}var l,u,d,p,m,f,_,g,v,y,h,b,E,T}(c,e,s,r),c.push(e.multiLine?ve.startOnNewLine(ve.getMutableClone(s)):s),ve.inlineExpressions(c)}(e);case 272:return function(e){var n,t,r,a,i=x(4032,0);if(ve.Debug.assert(!!e.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),ve.isBindingPattern(e.variableDeclaration.name)){var o=ve.createTempVariable(void 0),s=ve.createVariableDeclaration(o);ve.setTextRange(s,e.variableDeclaration);var c=ve.flattenDestructuringBinding(e.variableDeclaration,F,M,0,o),l=ve.createVariableDeclarationList(c);ve.setTextRange(l,e.variableDeclaration);var u=ve.createVariableStatement(void 0,l);n=ve.updateCatchClause(e,s,(t=e.block,r=u,a=ve.visitNodes(t.statements,F,ve.isStatement),ve.updateBlock(t,[r].concat(a))))}else n=ve.visitEachChild(e,F,M);return C(i,0,0),n}(e);case 274:return _=e,ve.setTextRange(ve.createPropertyAssignment(_.name,ve.getSynthesizedClone(_.name)),_);case 147:return p=e,m=x(0,8192),f=ve.visitEachChild(p,F,M),C(m,49152,49152&O?32768:0),f;case 185:return 64&(s=e).transformFlags?ce(s.elements,!0,!!s.multiLine,!!s.elements.hasTrailingComma):ve.visitEachChild(s,F,M);case 189:return o=e,33554432&ve.getEmitFlags(o)?function(e){var n=ve.cast(ve.cast(ve.skipOuterExpressions(e.expression),ve.isArrowFunction).body,ve.isBlock),t=function(e){return ve.isVariableStatement(e)&&!!ve.first(e.declarationList.declarations).initializer},r=ve.visitNodes(n.statements,F,ve.isStatement),a=ve.filter(r,t),i=ve.filter(r,function(e){return!t(e)}),o=ve.cast(ve.first(a),ve.isVariableStatement).declarationList.declarations[0],s=ve.skipOuterExpressions(o.initializer),c=ve.tryCast(s,ve.isAssignmentExpression),l=ve.cast(c?ve.skipOuterExpressions(c.right):s,ve.isCallExpression),u=ve.cast(ve.skipOuterExpressions(l.expression),ve.isFunctionExpression),d=u.body.statements,p=0,m=-1,f=[];if(c){var _=ve.tryCast(d[p],ve.isExpressionStatement);_&&(f.push(_),p++),f.push(d[p]),p++,f.push(ve.createExpressionStatement(ve.createAssignment(c.left,ve.cast(o.name,ve.isIdentifier))))}for(;!ve.isReturnStatement(ve.elementAt(d,m));)m--;return ve.addRange(f,d,p,m),m<-1&&ve.addRange(f,d,m+1),ve.addRange(f,i),ve.addRange(f,a,1),ve.recreateOuterExpressions(e.expression,ve.recreateOuterExpressions(o.initializer,ve.recreateOuterExpressions(c&&c.right,ve.updateCall(l,ve.recreateOuterExpressions(l.expression,ve.updateFunctionExpression(u,void 0,void 0,void 0,void 0,u.parameters,void 0,ve.updateBlock(u.body,f))),void 0,l.arguments))))}(o):64&o.transformFlags?se(o,!0):ve.updateCall(o,ve.visitNode(o.expression,A,ve.isExpression),void 0,ve.visitNodes(o.arguments,F,ve.isExpression));case 190:return function(e){if(524288&e.transformFlags){var n=ve.createCallBinding(ve.createPropertyAccess(e.expression,"bind"),T),t=n.target,r=n.thisArg;return ve.createNew(ve.createFunctionApply(ve.visitNode(t,F,ve.isExpression),r,ce(ve.createNodeArray([ve.createVoidZero()].concat(e.arguments)),!1,!1,!1)),void 0,[])}return ve.visitEachChild(e,F,M)}(e);case 193:return U(e,!0);case 202:return W(e,!0);case 13:case 14:case 15:case 16:return d=e,ve.setTextRange(ve.createLiteral(d.text),d);case 9:return(i=e).hasExtendedUnicodeEscape?ve.setTextRange(ve.createLiteral(i.text),i):i;case 8:return 384&(a=e).numericLiteralFlags?ve.setTextRange(ve.createNumericLiteral(a.text),a):a;case 191:return function(e){var n=ve.visitNode(e.tag,F,ve.isExpression),t=[void 0],r=[],a=[],i=e.template;if(ve.isNoSubstitutionTemplateLiteral(i))r.push(ve.createLiteral(i.text)),a.push(pe(i));else{r.push(ve.createLiteral(i.head.text)),a.push(pe(i.head));for(var o=0,s=i.templateSpans;o<s.length;o++){var c=s[o];r.push(ve.createLiteral(c.literal.text)),a.push(pe(c.literal)),t.push(ve.visitNode(c.expression,F,ve.isExpression))}}var l,u,d,p,m=(l=M,u=ve.createArrayLiteral(r),d=ve.createArrayLiteral(a),l.requestEmitHelper(he),ve.createCall(ve.getHelperName("__makeTemplateObject"),void 0,[u,d]));if(ve.isExternalModule(b)){var f=ve.createUniqueName("templateObject");p=f,E=ve.append(E,ve.createVariableDeclaration(p)),t[0]=ve.createLogicalOr(f,ve.createAssignment(f,m))}else t[0]=m;return ve.createCall(n,void 0,t)}(e);case 204:return function(e){var n,t,r,a=[];n=a,r=t=e,ve.Debug.assert(0!==r.templateSpans.length),(0!==r.head.text.length||0===r.templateSpans[0].literal.text.length)&&n.push(ve.createLiteral(t.head.text)),function(e,n){for(var t=0,r=n.templateSpans;t<r.length;t++){var a=r[t];e.push(ve.visitNode(a.expression,F,ve.isExpression)),0!==a.literal.text.length&&e.push(ve.createLiteral(a.literal.text))}}(a,e);var i=ve.reduceLeft(a,ve.createAdd);return ve.nodeIsSynthesized(i)&&(i.pos=e.pos,i.end=e.end),i}(e);case 205:return u=e,ve.visitEachChild(u,F,M);case 206:return l=e,ve.visitNode(l.expression,F,ve.isExpression);case 97:return me(!1);case 99:return r=e,w?2&O?(w.containsLexicalThis=!0,r):w.thisName||(w.thisName=ve.createUniqueName("this")):r;case 212:return 94!==(t=e).keywordToken||"target"!==t.name.escapedText?t:(O|=8192&O?32768:16384,ve.createFileLevelUniqueName("_newTarget"));case 154:return function(e){ve.Debug.assert(!ve.isComputedPropertyName(e.name));var n=B(e,ve.moveRangePos(e,-1),void 0,void 0);return ve.setEmitFlags(n,512|ve.getEmitFlags(n)),ve.setTextRange(ve.createPropertyAssignment(e.name,n),e)}(e);case 156:case 157:return function(e){ve.Debug.assert(!ve.isComputedPropertyName(e.name));var n=w;w=void 0;var t,r=x(16286,65),a=ve.visitParameterList(e.parameters,F,M),i=32896&e.transformFlags?K(e):j(e);return t=156===e.kind?ve.updateGetAccessor(e,e.decorators,e.modifiers,e.name,a,e.type,i):ve.updateSetAccessor(e,e.decorators,e.modifiers,e.name,a,i),C(r,49152,0),w=n,t}(e);case 217:return function(e){var n,i,t,r=x(0,ve.hasModifier(e,1)?32:0);if(w&&0==(3&e.declarationList.flags)){for(var a=void 0,o=0,s=e.declarationList.declarations;o<s.length;o++){var c=s[o];if(t=c,(i=w).hoistedLocalVariables||(i.hoistedLocalVariables=[]),function e(n){if(71===n.kind)i.hoistedLocalVariables.push(n);else for(var t=0,r=n.elements;t<r.length;t++){var a=r[t];ve.isOmittedExpression(a)||e(a.name)}}(t.name),c.initializer){var l=void 0;ve.isBindingPattern(c.name)?l=ve.flattenDestructuringAssignment(c,F,M,0):(l=ve.createBinary(c.name,58,ve.visitNode(c.initializer,F,ve.isExpression)),ve.setTextRange(l,c)),a=ve.append(a,l)}}n=a?ve.setTextRange(ve.createExpressionStatement(ve.inlineExpressions(a)),e):void 0}else n=ve.visitEachChild(e,F,M);return C(r,0,0),n}(e);case 228:return n=e,w?(w.nonLocalJumps|=8,D(n)&&(n=L(n)),ve.createReturn(ve.createObjectLiteral([ve.createPropertyAssignment(ve.createIdentifier("value"),n.expression?ve.visitNode(n.expression,F,ve.isExpression):ve.createVoidZero())]))):D(n)?L(n):ve.visitEachChild(n,F,M);default:return ve.visitEachChild(e,F,M)}var n,t,r,a,i,o,s,c,l,u,d,p,m,f,_,g,v,y,h}(e):e}function r(e){return n(e)?H(e,!0):e}function A(e){return 97===e.kind?me(!0):F(e)}function L(e){return ve.setOriginalNode(ve.createReturn(ve.createFileLevelUniqueName("_this")),e)}function k(e){e.name&&fe();var n=ve.getEffectiveBaseTypeNode(e),t=ve.createFunctionExpression(void 0,void 0,void 0,void 0,n?[ve.createParameter(void 0,void 0,void 0,ve.createFileLevelUniqueName("_super"))]:[],void 0,function(e,n){var t,r,a,i,o,s=[];P(),t=s,r=e,(a=n)&&t.push(ve.setTextRange(ve.createExpressionStatement((i=M,o=ve.getInternalName(r),i.requestEmitHelper(ye),ve.createCall(ve.getHelperName("__extends"),void 0,[o,ve.createFileLevelUniqueName("_super")]))),a)),function(e,n,t){var r=w;w=void 0;var a,i,o=x(16278,73),s=ve.getFirstConstructorWithBody(n),c=function(e,n){if(!e||!n)return!1;if(ve.some(e.parameters))return!1;var t=ve.firstOrUndefined(e.body.statements);if(!t||!ve.nodeIsSynthesized(t)||219!==t.kind)return!1;var r=t.expression;if(!ve.nodeIsSynthesized(r)||189!==r.kind)return!1;var a=r.expression;if(!ve.nodeIsSynthesized(a)||97!==a.kind)return!1;var i=ve.singleOrUndefined(r.arguments);if(!i||!ve.nodeIsSynthesized(i)||206!==i.kind)return!1;var o=i.expression;return ve.isIdentifier(o)&&"arguments"===o.escapedText}(s,void 0!==t),l=ve.createFunctionDeclaration(void 0,void 0,void 0,ve.getInternalName(n),void 0,(a=s,i=c,ve.visitParameterList(a&&!i?a.parameters:void 0,F,M)||[]),void 0,function(e,n,t,r){var a=[];f();var i=-1;r?i=0:e&&(i=ve.addStandardPrologue(a,e.body.statements,!1)),e&&(v(a,e),y(a,e,r),r||(i=ve.addCustomPrologue(a,e.body.statements,i,F)),ve.Debug.assert(0<=i,"statementOffset not initialized correctly!"));var o=!!t&&95!==ve.skipOuterExpressions(t.expression).kind,s=function(e,n,t,r,a){if(!t)return n&&h(e,n),0;if(!n)return e.push(ve.createReturn(g())),2;if(r)return N(e,n,g()),_e(),1;var i,o,s,c=n.body.statements;if(a<c.length&&219===(i=c[a]).kind&&ve.isSuperCall(i.expression)&&(s=i.expression,o=se(s,!1)),!o||a!==c.length-1||49152&n.transformFlags)return N(e,n,o||_()),o?1:0;var l=ve.createReturn(o);return 202===o.kind&&189===o.left.kind||ve.Debug.fail("Assumed generated super call would have form 'super.call(...) || this'."),ve.setCommentRange(l,ve.getCommentRange(ve.setEmitFlags(o.left,1536))),e.push(l),2}(a,e,o,r,i);1!==s&&2!==s||i++,e&&(1===s&&(O|=4096),ve.addRange(a,ve.visitNodes(e.body.statements,F,ve.isStatement,i))),!o||2===s||e&&function e(n){if(228===n.kind)return!0;if(220===n.kind){var t=n;if(t.elseStatement)return e(t.thenStatement)&&e(t.elseStatement)}else if(216===n.kind){var r=ve.lastOrUndefined(n.statements);if(r&&e(r))return!0}return!1}(e.body)||a.push(ve.createReturn(ve.createFileLevelUniqueName("_this"))),ve.addStatementsAfterPrologue(a,R()),e&&I(a,e,!1);var c=ve.createBlock(ve.setTextRange(ve.createNodeArray(a),e?e.body.statements:n.members),!0);return ve.setTextRange(c,e?e.body:n),e||ve.setEmitFlags(c,1536),c}(s,n,t,c));ve.setTextRange(l,s||n),t&&ve.setEmitFlags(l,8),e.push(l),C(o,49152,0),w=r}(s,e,n),function(e,n){for(var t=0,r=n.members;t<r.length;t++){var a=r[t];switch(a.kind){case 215:e.push((u=a,ve.setTextRange(ve.createEmptyStatement(),u)));break;case 154:e.push(G(ge(n,a),a,n));break;case 156:case 157:var i=ve.getAllAccessorDeclarations(n.members,a);a===i.firstAccessor&&e.push((o=ge(n,a),s=i,c=n,void 0,l=ve.createExpressionStatement(V(o,s,c,!1)),ve.setEmitFlags(l,1536),ve.setSourceMapRange(l,ve.getSourceMapRange(s.firstAccessor)),l));break;case 155:break;default:ve.Debug.failBadSyntaxKind(n)}}var o,s,c,l,u}(s,e);var c=ve.createTokenRange(ve.skipTrivia(m,e.members.end),18),l=ve.getInternalName(e),u=ve.createPartiallyEmittedExpression(l);u.end=c.end,ve.setEmitFlags(u,1536);var d=ve.createReturn(u);d.pos=c.pos,ve.setEmitFlags(d,1920),s.push(d),ve.addStatementsAfterPrologue(s,R());var p=ve.createBlock(ve.setTextRange(ve.createNodeArray(s),e.members),!0);return ve.setEmitFlags(p,1536),p}(e,n));ve.setEmitFlags(t,65536&ve.getEmitFlags(e)|524288);var r=ve.createPartiallyEmittedExpression(t);r.end=e.end,ve.setEmitFlags(r,1536);var a=ve.createPartiallyEmittedExpression(r);a.end=ve.skipTrivia(m,e.pos),ve.setEmitFlags(a,1536);var i=ve.createParen(ve.createCall(a,void 0,n?[ve.visitNode(n.expression,F,ve.isExpression)]:[]));return ve.addSyntheticLeadingComment(i,3,"* @class "),i}function _(){return ve.setEmitFlags(ve.createThis(),4)}function g(){return ve.createLogicalOr(ve.createLogicalAnd(ve.createStrictInequality(ve.createFileLevelUniqueName("_super"),ve.createNull()),ve.createFunctionApply(ve.createFileLevelUniqueName("_super"),_(),ve.createIdentifier("arguments"))),_())}function v(e,n){if(0!=(131072&n.transformFlags))for(var t=0,r=n.parameters;t<r.length;t++){var a=r[t],i=a.name,o=a.initializer;a.dotDotDotToken||(ve.isBindingPattern(i)?(s=e,c=a,l=i,u=o,void 0,d=ve.getGeneratedNameForNode(c),0<l.elements.length?s.push(ve.setEmitFlags(ve.createVariableStatement(void 0,ve.createVariableDeclarationList(ve.flattenDestructuringBinding(c,F,M,0,d))),1048576)):u&&s.push(ve.setEmitFlags(ve.createExpressionStatement(ve.createAssignment(d,ve.visitNode(u,F,ve.isExpression))),1048576))):o&&p(e,a,i,o))}var s,c,l,u,d}function p(e,n,t,r){r=ve.visitNode(r,F,ve.isExpression);var a=ve.createIf(ve.createTypeCheck(ve.getSynthesizedClone(t),"undefined"),ve.setEmitFlags(ve.setTextRange(ve.createBlock([ve.createExpressionStatement(ve.setEmitFlags(ve.setTextRange(ve.createAssignment(ve.setEmitFlags(ve.getMutableClone(t),48),ve.setEmitFlags(r,1584|ve.getEmitFlags(r))),n),1536))]),n),1953));ve.startOnNewLine(a),ve.setTextRange(a,n),ve.setEmitFlags(a,1050528),e.push(a)}function y(e,n,t){var r=ve.lastOrUndefined(n.parameters);if(i=t,(a=r)&&a.dotDotDotToken&&71===a.name.kind&&!i){var a,i,o=ve.getMutableClone(r.name);ve.setEmitFlags(o,48);var s=ve.getSynthesizedClone(r.name),c=n.parameters.length-1,l=ve.createLoopVariable();e.push(ve.setEmitFlags(ve.setTextRange(ve.createVariableStatement(void 0,ve.createVariableDeclarationList([ve.createVariableDeclaration(o,void 0,ve.createArrayLiteral([]))])),r),1048576));var u=ve.createFor(ve.setTextRange(ve.createVariableDeclarationList([ve.createVariableDeclaration(l,void 0,ve.createLiteral(c))]),r),ve.setTextRange(ve.createLessThan(l,ve.createPropertyAccess(ve.createIdentifier("arguments"),"length")),r),ve.setTextRange(ve.createPostfixIncrement(l),r),ve.createBlock([ve.startOnNewLine(ve.setTextRange(ve.createExpressionStatement(ve.createAssignment(ve.createElementAccess(s,0===c?l:ve.createSubtract(l,ve.createLiteral(c))),ve.createElementAccess(ve.createIdentifier("arguments"),l))),r))]));ve.setEmitFlags(u,1048576),ve.startOnNewLine(u),e.push(u)}}function h(e,n){32768&n.transformFlags&&195!==n.kind&&N(e,n,ve.createThis())}function N(e,n,t){_e();var r=ve.createVariableStatement(void 0,ve.createVariableDeclarationList([ve.createVariableDeclaration(ve.createFileLevelUniqueName("_this"),void 0,t)]));ve.setEmitFlags(r,1050112),ve.setSourceMapRange(r,n),e.push(r)}function I(e,n,t){if(16384&O){var r=void 0;switch(n.kind){case 195:return e;case 154:case 156:case 157:r=ve.createVoidZero();break;case 155:r=ve.createPropertyAccess(ve.setEmitFlags(ve.createThis(),4),"constructor");break;case 237:case 194:r=ve.createConditional(ve.createLogicalAnd(ve.setEmitFlags(ve.createThis(),4),ve.createBinary(ve.setEmitFlags(ve.createThis(),4),93,ve.getLocalName(n))),ve.createPropertyAccess(ve.setEmitFlags(ve.createThis(),4),"constructor"),ve.createVoidZero());break;default:return ve.Debug.failBadSyntaxKind(n)}var a=ve.createVariableStatement(void 0,ve.createVariableDeclarationList([ve.createVariableDeclaration(ve.createFileLevelUniqueName("_newTarget"),void 0,r)]));if(t)return[a].concat(e);e.unshift(a)}return e}function G(e,n,t){var r=x(0,0),a=ve.getCommentRange(n),i=ve.getSourceMapRange(n),o=ve.createMemberAccessForPropertyName(e,ve.visitNode(n.name,F,ve.isPropertyName),n.name),s=B(n,n,void 0,t);ve.setEmitFlags(s,1536),ve.setSourceMapRange(s,i);var c=ve.setTextRange(ve.createExpressionStatement(ve.createAssignment(o,s)),n);return ve.setOriginalNode(c,n),ve.setCommentRange(c,a),ve.setEmitFlags(c,48),C(r,49152,49152&O?16384:0),c}function V(e,n,t,r){var a=n.firstAccessor,i=n.getAccessor,o=n.setAccessor,s=x(0,0),c=ve.getMutableClone(e);ve.setEmitFlags(c,1568),ve.setSourceMapRange(c,a.name);var l=ve.createExpressionForPropertyName(ve.visitNode(a.name,F,ve.isPropertyName));ve.setEmitFlags(l,1552),ve.setSourceMapRange(l,a.name);var u=[];if(i){var d=B(i,void 0,void 0,t);ve.setSourceMapRange(d,ve.getSourceMapRange(i)),ve.setEmitFlags(d,512);var p=ve.createPropertyAssignment("get",d);ve.setCommentRange(p,ve.getCommentRange(i)),u.push(p)}if(o){var m=B(o,void 0,void 0,t);ve.setSourceMapRange(m,ve.getSourceMapRange(o)),ve.setEmitFlags(m,512);var f=ve.createPropertyAssignment("set",m);ve.setCommentRange(f,ve.getCommentRange(o)),u.push(f)}u.push(ve.createPropertyAssignment("enumerable",ve.createTrue()),ve.createPropertyAssignment("configurable",ve.createTrue()));var _=ve.createCall(ve.createPropertyAccess(ve.createIdentifier("Object"),"defineProperty"),void 0,[c,l,ve.createObjectLiteral(u,!0)]);return r&&ve.startOnNewLine(_),C(s,49152,49152&O?16384:0),_}function B(e,n,t,r){var a=w;w=void 0;var i=r&&ve.isClassLike(r)&&!ve.hasModifier(e,32)?x(16286,73):x(16286,65),o=ve.visitParameterList(e.parameters,F,M),s=K(e);return 16384&O&&!t&&(237===e.kind||194===e.kind)&&(t=ve.getGeneratedNameForNode(e)),C(i,49152,0),w=a,ve.setOriginalNode(ve.setTextRange(ve.createFunctionExpression(void 0,e.asteriskToken,t,void 0,o,void 0,s),n),e)}function K(e){var n,t,r,a=!1,i=!1,o=[],s=[],c=e.body;if(f(),ve.isBlock(c)&&(r=ve.addStandardPrologue(o,c.statements,!1)),h(o,e),v(o,e),y(o,e,!1),ve.isBlock(c))r=ve.addCustomPrologue(o,c.statements,r,F),n=c.statements,ve.addRange(s,ve.visitNodes(c.statements,F,ve.isStatement,r)),!a&&c.multiLine&&(a=!0);else{ve.Debug.assert(195===e.kind),n=ve.moveRangeEnd(c,-1);var l=e.equalsGreaterThanToken;ve.nodeIsSynthesized(l)||ve.nodeIsSynthesized(c)||(ve.rangeEndIsOnSameLineAsRangeStart(l,c,b)?i=!0:a=!0);var u=ve.visitNode(c,F,ve.isExpression),d=ve.createReturn(u);ve.setTextRange(d,c),ve.moveSyntheticComments(d,c),ve.setEmitFlags(d,1440),s.push(d),t=c}var p=M.endLexicalEnvironment();ve.addStatementsAfterPrologue(s,p),I(s,e,!1),(ve.some(o)||ve.some(p))&&(a=!0);var m=ve.createBlock(ve.setTextRange(ve.createNodeArray(o.concat(s)),n),a);return ve.setTextRange(m,e.body),!a&&i&&ve.setEmitFlags(m,1),t&&ve.setTokenSourceMapRange(m,18,t),ve.setOriginalNode(m,e.body),m}function j(e){var n=ve.visitFunctionBody(e.body,r,M);return ve.updateBlock(n,ve.setTextRange(ve.createNodeArray(I(n.statements,e,!0)),n.statements))}function H(e,n){if(n)return ve.visitEachChild(e,F,M);var t=256&O?x(4032,512):x(3904,128),r=ve.visitEachChild(e,F,M);return C(t,0,0),r}function U(e,n){if(!n)switch(e.expression.kind){case 193:return ve.updateParen(e,U(e.expression,!1));case 202:return ve.updateParen(e,W(e.expression,!1))}return ve.visitEachChild(e,F,M)}function W(e,n){return ve.isDestructuringAssignment(e)?ve.flattenDestructuringAssignment(e,F,M,0,n):ve.visitEachChild(e,F,M)}function q(e){var n,t,r,a,i=e.name;if(ve.isBindingPattern(i))return z(e);if(e.initializer||(n=e,t=S.getNodeCheckFlags(n),r=131072&t,a=262144&t,0!=(64&O)||r&&a&&0!=(512&O)||0!=(2048&O)||S.isDeclarationWithCollidingName(n)&&(!a||r||0!=(3072&O))))return ve.visitEachChild(e,F,M);var o=ve.getMutableClone(e);return o.initializer=ve.createVoidZero(),o}function z(e){var n,t=x(32,0);return n=ve.isBindingPattern(e.name)?ve.flattenDestructuringBinding(e,F,M,0,void 0,0!=(32&t)):ve.visitEachChild(e,F,M),C(t,0,0),n}function J(e){w.labels.set(ve.idText(e.label),!0)}function X(e){w.labels.set(ve.idText(e.label),!1)}function o(e,n,t,r,a){var i=x(e,n),o=function(e,n,t){if(!ne(e)){var r=void 0;w&&(r=w.allowedNonLabeledJumps,w.allowedNonLabeledJumps=6);var a=t?t(e,n,void 0):ve.restoreEnclosingLabel(ve.visitEachChild(e,F,M),n,w&&X);return w&&(w.allowedNonLabeledJumps=r),a}var i,o=ve.createUniqueName("_loop");switch(e.kind){case 223:case 224:case 225:var s=e.initializer;s&&236===s.kind&&(i=s)}var c=[],l=[];if(i&&3&ve.getCombinedNodeFlags(i))for(var u=0,d=i.declarations;u<d.length;u++){var p=d[u];oe(p,c,l)}var m=w;w={loopOutParameters:l},m&&(m.argumentsName&&(w.argumentsName=m.argumentsName),m.thisName&&(w.thisName=m.thisName),m.hoistedLocalVariables&&(w.hoistedLocalVariables=m.hoistedLocalVariables)),P();var f=ve.visitNode(e.statement,F,ve.isStatement,ve.liftToBlock),_=R(),g=w;if(w=m,l.length||_){var v=ve.isBlock(f)?f.statements.slice():[f];l.length&&re(l,1,v),ve.addStatementsAfterPrologue(v,_),f=ve.createBlock(v,!0)}ve.isBlock(f)?f.multiLine=!0:f=ve.createBlock([f],!0);var y=0!=(16777216&e.statement.transformFlags),h=y&&0!=(4&O),b=0;g.containsLexicalThis&&(b|=8),h&&(b|=262144);var E,T=[ve.createVariableStatement(void 0,ve.setEmitFlags(ve.createVariableDeclarationList([ve.createVariableDeclaration(o,void 0,ve.setEmitFlags(ve.createFunctionExpression(void 0,y?ve.createToken(39):void 0,void 0,void 0,c,void 0,f),b))]),2097152))];if(g.argumentsName&&(m?m.argumentsName=g.argumentsName:(E||(E=[])).push(ve.createVariableDeclaration(g.argumentsName,void 0,ve.createIdentifier("arguments")))),g.thisName&&(m?m.thisName=g.thisName:(E||(E=[])).push(ve.createVariableDeclaration(g.thisName,void 0,ve.createIdentifier("this")))),g.hoistedLocalVariables)if(m)m.hoistedLocalVariables=g.hoistedLocalVariables;else{E||(E=[]);for(var S=0,x=g.hoistedLocalVariables;S<x.length;S++){var C=x[S];E.push(ve.createVariableDeclaration(C))}}if(l.length){E||(E=[]);for(var D=0,A=l;D<A.length;D++){var L=A[D];E.push(ve.createVariableDeclaration(L.outParamName))}}E&&T.push(ve.createVariableStatement(void 0,ve.createVariableDeclarationList(E)));var k,N=function(e,n,t,r){var a=w,i=[],o=!(-5&t.nonLocalJumps||t.labeledNonLocalBreaks||t.labeledNonLocalContinues),s=ve.createCall(e,void 0,ve.map(n,function(e){return e.name})),c=r?ve.createYield(ve.createToken(39),ve.setEmitFlags(s,8388608)):s;if(o)i.push(ve.createExpressionStatement(c)),re(t.loopOutParameters,0,i);else{var l=ve.createUniqueName("state"),u=ve.createVariableStatement(void 0,ve.createVariableDeclarationList([ve.createVariableDeclaration(l,void 0,c)]));if(i.push(u),re(t.loopOutParameters,0,i),8&t.nonLocalJumps){var d=void 0;d=a?(a.nonLocalJumps|=8,ve.createReturn(l)):ve.createReturn(ve.createPropertyAccess(l,"value")),i.push(ve.createIf(ve.createBinary(ve.createTypeOf(l),34,ve.createLiteral("object")),d))}if(2&t.nonLocalJumps&&i.push(ve.createIf(ve.createBinary(l,34,ve.createLiteral("break")),ve.createBreak())),t.labeledNonLocalBreaks||t.labeledNonLocalContinues){var p=[];ie(t.labeledNonLocalBreaks,!0,l,a,p),ie(t.labeledNonLocalContinues,!1,l,a,p),i.push(ve.createSwitch(l,ve.createCaseBlock(p)))}}return i}(o,c,g,y);if(t)k=t(e,n,N);else{var I=ve.getMutableClone(e);I.statement=void 0,(I=ve.visitEachChild(I,F,M)).statement=ve.createBlock(N,!0),I.transformFlags=0,ve.aggregateTransformFlags(I),k=ve.restoreEnclosingLabel(I,n,w&&X)}return T.push(k),T}(t,r,a);return C(i,0,0),o}function Y(e,n){return o(0,256,e,n)}function Q(e,n){return o(3008,1280,e,n)}function Z(e,n){return o(1984,2304,e,n)}function $(e,n){return o(1984,2304,e,n,c.downlevelIteration?l:s)}function ee(e,n,t){var r=[],a=e.initializer;if(ve.isVariableDeclarationList(a)){3&e.initializer.flags&&fe();var i=ve.firstOrUndefined(a.declarations);if(i&&ve.isBindingPattern(i.name)){var o=ve.flattenDestructuringBinding(i,F,M,0,n),s=ve.setTextRange(ve.createVariableDeclarationList(o),e.initializer);ve.setOriginalNode(s,e.initializer),ve.setSourceMapRange(s,ve.createRange(o[0].pos,ve.last(o).end)),r.push(ve.createVariableStatement(void 0,s))}else r.push(ve.setTextRange(ve.createVariableStatement(void 0,ve.setOriginalNode(ve.setTextRange(ve.createVariableDeclarationList([ve.createVariableDeclaration(i?i.name:ve.createTempVariable(void 0),void 0,n)]),ve.moveRangePos(a,-1)),a)),ve.moveRangeEnd(a,-1)))}else{var c=ve.createAssignment(a,n);ve.isDestructuringAssignment(c)?(ve.aggregateTransformFlags(c),r.push(ve.createExpressionStatement(W(c,!1)))):(c.end=a.end,r.push(ve.setTextRange(ve.createExpressionStatement(ve.visitNode(c,F,ve.isExpression)),ve.moveRangeEnd(a,-1))))}if(t)return u(ve.addRange(r,t));var l=ve.visitNode(e.statement,F,ve.isStatement,ve.liftToBlock);return ve.isBlock(l)?ve.updateBlock(l,ve.setTextRange(ve.createNodeArray(ve.concatenate(r,l.statements)),l.statements)):(r.push(l),u(r))}function u(e){return ve.setEmitFlags(ve.createBlock(ve.createNodeArray(e),!0),432)}function s(e,n,t){var r=ve.visitNode(e.expression,F,ve.isExpression),a=ve.createLoopVariable(),i=ve.isIdentifier(r)?ve.getGeneratedNameForNode(r):ve.createTempVariable(void 0);ve.setEmitFlags(r,48|ve.getEmitFlags(r));var o=ve.setTextRange(ve.createFor(ve.setEmitFlags(ve.setTextRange(ve.createVariableDeclarationList([ve.setTextRange(ve.createVariableDeclaration(a,void 0,ve.createLiteral(0)),ve.moveRangePos(e.expression,-1)),ve.setTextRange(ve.createVariableDeclaration(i,void 0,r),e.expression)]),e.expression),2097152),ve.setTextRange(ve.createLessThan(a,ve.createPropertyAccess(i,"length")),e.expression),ve.setTextRange(ve.createPostfixIncrement(a),e.expression),ee(e,ve.createElementAccess(i,a),t)),e);return ve.setEmitFlags(o,256),ve.setTextRange(o,e),ve.restoreEnclosingLabel(o,n,w&&X)}function l(e,n,t){var r=ve.visitNode(e.expression,F,ve.isExpression),a=ve.isIdentifier(r)?ve.getGeneratedNameForNode(r):ve.createTempVariable(void 0),i=ve.isIdentifier(r)?ve.getGeneratedNameForNode(a):ve.createTempVariable(void 0),o=ve.createUniqueName("e"),s=ve.getGeneratedNameForNode(o),c=ve.createTempVariable(void 0),l=ve.createValuesHelper(M,r,e.expression),u=ve.createCall(ve.createPropertyAccess(a,"next"),void 0,[]);T(o),T(c);var d=ve.setEmitFlags(ve.setTextRange(ve.createFor(ve.setEmitFlags(ve.setTextRange(ve.createVariableDeclarationList([ve.setTextRange(ve.createVariableDeclaration(a,void 0,l),e.expression),ve.createVariableDeclaration(i,void 0,u)]),e.expression),2097152),ve.createLogicalNot(ve.createPropertyAccess(i,"done")),ve.createAssignment(i,u),ee(e,ve.createPropertyAccess(i,"value"),t)),e),256);return ve.createTry(ve.createBlock([ve.restoreEnclosingLabel(d,n,w&&X)]),ve.createCatchClause(ve.createVariableDeclaration(s),ve.setEmitFlags(ve.createBlock([ve.createExpressionStatement(ve.createAssignment(o,ve.createObjectLiteral([ve.createPropertyAssignment("error",s)])))]),1)),ve.createBlock([ve.createTry(ve.createBlock([ve.setEmitFlags(ve.createIf(ve.createLogicalAnd(ve.createLogicalAnd(i,ve.createLogicalNot(ve.createPropertyAccess(i,"done"))),ve.createAssignment(c,ve.createPropertyAccess(a,"return"))),ve.createExpressionStatement(ve.createFunctionCall(c,a,[]))),1)]),void 0,ve.setEmitFlags(ve.createBlock([ve.setEmitFlags(ve.createIf(o,ve.createThrow(ve.createPropertyAccess(o,"error"))),1)]),1))]))}function ne(e){return 0!=(65536&S.getNodeCheckFlags(e))}function te(e,n){var t=0===n?e.outParamName:e.originalName,r=0===n?e.originalName:e.outParamName;return ve.createBinary(r,58,t)}function re(e,n,t){for(var r=0,a=e;r<a.length;r++){var i=a[r];t.push(ve.createExpressionStatement(te(i,n)))}}function ae(e,n,t,r){n?(e.labeledNonLocalBreaks||(e.labeledNonLocalBreaks=ve.createMap()),e.labeledNonLocalBreaks.set(t,r)):(e.labeledNonLocalContinues||(e.labeledNonLocalContinues=ve.createMap()),e.labeledNonLocalContinues.set(t,r))}function ie(e,a,i,o,s){e&&e.forEach(function(e,n){var t=[];if(!o||o.labels&&o.labels.get(n)){var r=ve.createIdentifier(n);t.push(a?ve.createBreak(r):ve.createContinue(r))}else ae(o,a,n,e),t.push(ve.createReturn(i));s.push(ve.createCaseClause(ve.createLiteral(e),t))})}function oe(e,n,t){var r=e.name;if(ve.isBindingPattern(r))for(var a=0,i=r.elements;a<i.length;a++){var o=i[a];ve.isOmittedExpression(o)||oe(o,n,t)}else if(n.push(ve.createParameter(void 0,void 0,void 0,r)),2097152&S.getNodeCheckFlags(e)){var s=ve.createUniqueName("out_"+ve.idText(r));t.push({originalName:r,outParamName:s})}}function se(e,n){if(524288&e.transformFlags||97===e.expression.kind||ve.isSuperProperty(ve.skipOuterExpressions(e.expression))){var t=ve.createCallBinding(e.expression,T),r=t.target,a=t.thisArg;97===e.expression.kind&&ve.setEmitFlags(a,4);var i=void 0;if(i=524288&e.transformFlags?ve.createFunctionApply(ve.visitNode(r,A,ve.isExpression),ve.visitNode(a,F,ve.isExpression),ce(e.arguments,!1,!1,!1)):ve.createFunctionCall(ve.visitNode(r,A,ve.isExpression),ve.visitNode(a,F,ve.isExpression),ve.visitNodes(e.arguments,F,ve.isExpression),e),97===e.expression.kind){var o=ve.createThis();ve.setEmitFlags(o,4);var s=ve.createLogicalOr(i,o);i=n?ve.createAssignment(ve.createFileLevelUniqueName("_this"),s):s}return ve.setOriginalNode(i,e)}return ve.visitEachChild(e,F,M)}function ce(e,n,a,i){var o=e.length,t=ve.flatten(ve.spanMap(e,d,function(e,n,t,r){return n(e,a,i&&r===o)}));if(c.downlevelIteration){if(1===t.length){var r=t[0];if(ve.isCallExpression(r)&&ve.isIdentifier(r.expression)&&4096&ve.getEmitFlags(r.expression)&&"___spread"===r.expression.escapedText)return t[0]}return ve.createSpreadHelper(M,t)}if(1!==t.length)return ve.createArrayConcat(t.shift(),t);var s=e[0];return n&&ve.isSpreadElement(s)&&185!==s.expression.kind?ve.createArraySlice(t[0]):t[0]}function d(e){return ve.isSpreadElement(e)?le:ue}function le(e){return ve.map(e,de)}function ue(e,n,t){return ve.createArrayLiteral(ve.visitNodes(ve.createNodeArray(e,t),F,ve.isExpression),n)}function de(e){return ve.visitNode(e.expression,F,ve.isExpression)}function pe(e){var n=ve.getSourceTextOfNodeFromSourceFile(b,e),t=13===e.kind||16===e.kind;return n=(n=n.substring(1,n.length-(t?1:2))).replace(/\r\n?/g,"\n"),ve.setTextRange(ve.createLiteral(n),e)}function me(e){return 8&O&&!e?ve.createPropertyAccess(ve.createFileLevelUniqueName("_super"),"prototype"):ve.createFileLevelUniqueName("_super")}function fe(){0==(2&a)&&(a|=2,M.enableSubstitution(71))}function _e(){0==(1&a)&&(a|=1,M.enableSubstitution(99),M.enableEmitNotification(155),M.enableEmitNotification(154),M.enableEmitNotification(156),M.enableEmitNotification(157),M.enableEmitNotification(195),M.enableEmitNotification(194),M.enableEmitNotification(237))}function ge(e,n){return ve.hasModifier(n,32)?ve.getInternalName(e):ve.createPropertyAccess(ve.getInternalName(e),"prototype")}}),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            })();"},he={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            };'}}(ts||(ts={})),function(l){l.transformES5=function(e){var a,o,n=e.getCompilerOptions();1!==n.jsx&&3!==n.jsx||(a=e.onEmitNode,e.onEmitNode=function(e,n,t){switch(n.kind){case 260:case 261:case 259:var r=n.tagName;o[l.getOriginalNodeId(r)]=!0}a(e,n,t)},e.enableEmitNotification(260),e.enableEmitNotification(261),e.enableEmitNotification(259),o=[]);var s=e.onSubstituteNode;return e.onSubstituteNode=function(e,n){return n.id&&o&&o[n.id]?s(e,n):(n=s(e,n),l.isPropertyAccessExpression(n)?(i=c((a=n).name))?l.setTextRange(l.createElementAccess(a.expression,i),a):a:l.isPropertyAssignment(n)?(t=n,(r=l.isIdentifier(t.name)&&c(t.name))?l.updatePropertyAssignment(t,r,t.initializer):t):n);var t,r,a,i},e.enableSubstitution(187),e.enableSubstitution(273),l.chainBundle(function(e){return e});function c(e){var n=e.originalKeywordKind||(l.nodeIsSynthesized(e)?l.stringToToken(l.idText(e)):void 0);if(void 0!==n&&72<=n&&n<=107)return l.setTextRange(l.createLiteral(e),e)}}}(ts||(ts={})),function(ke){var e,n,t,r,a,i,o,s,c,l;(n=e||(e={}))[n.Nop=0]="Nop",n[n.Statement=1]="Statement",n[n.Assign=2]="Assign",n[n.Break=3]="Break",n[n.BreakWhenTrue=4]="BreakWhenTrue",n[n.BreakWhenFalse=5]="BreakWhenFalse",n[n.Yield=6]="Yield",n[n.YieldStar=7]="YieldStar",n[n.Return=8]="Return",n[n.Throw=9]="Throw",n[n.Endfinally=10]="Endfinally",(r=t||(t={}))[r.Open=0]="Open",r[r.Close=1]="Close",(i=a||(a={}))[i.Exception=0]="Exception",i[i.With=1]="With",i[i.Switch=2]="Switch",i[i.Loop=3]="Loop",i[i.Labeled=4]="Labeled",(s=o||(o={}))[s.Try=0]="Try",s[s.Catch=1]="Catch",s[s.Finally=2]="Finally",s[s.Done=3]="Done",(l=c||(c={}))[l.Next=0]="Next",l[l.Throw=1]="Throw",l[l.Return=2]="Return",l[l.Break=3]="Break",l[l.Yield=4]="Yield",l[l.YieldStar=5]="YieldStar",l[l.Catch=6]="Catch",l[l.Endfinally=7]="Endfinally";var Ne={name:"typescript:generator",scoped:!(ke.transformGenerators=function(h){var b,E,v,y,T,S,x,C,D,A,L=h.resumeLexicalEnvironment,k=h.endLexicalEnvironment,r=h.hoistFunctionDeclaration,N=h.hoistVariableDeclaration,e=h.getCompilerOptions(),s=ke.getEmitScriptTarget(e),i=h.getEmitResolver(),a=h.onSubstituteNode;h.onSubstituteNode=function(e,n){return n=a(e,n),1!==e?n:(t=n,ke.isIdentifier(t)?function(e){if(!ke.isGeneratedIdentifier(e)&&b&&b.has(ke.idText(e))){var n=ke.getOriginalNode(e);if(ke.isIdentifier(n)&&n.parent){var t=i.getReferencedValueDeclaration(n);if(t){var r=E[ke.getOriginalNodeId(t)];if(r){var a=ke.getMutableClone(r);return ke.setSourceMapRange(a,e),ke.setCommentRange(a,e),a}}}}return e}(t):t);var t};var I,M,O,w,P,R,F,G,V,B,K,j,H=1,U=0,W=0;return ke.chainBundle(function(e){if(e.isDeclarationFile||0==(512&e.transformFlags))return e;var n=ke.visitEachChild(e,q,h);return ke.addEmitHelpers(n,h.readEmitHelpers()),n});function q(e){var n=e.transformFlags;return y?function(e){switch(e.kind){case 221:return a=e,y?(_(),a=ke.visitEachChild(a,q,h),oe(),a):ke.visitEachChild(a,q,h);case 222:return r=e,y?(_(),r=ke.visitEachChild(r,q,h),oe(),r):ke.visitEachChild(r,q,h);case 230:return t=e,y&&ne({kind:2,isScript:!0,breakLabel:-1}),t=ke.visitEachChild(t,q,h),y&&se(),t;case 231:return n=e,y&&ne({kind:4,isScript:!0,labelText:ke.idText(n.label),breakLabel:-1}),n=ke.visitEachChild(n,q,h),y&&ce(),n;default:return o(e)}var n,t,r,a}(e):v?o(e):256&n?function(e){switch(e.kind){case 237:return c(e);case 194:return l(e);default:return ke.Debug.failBadSyntaxKind(e)}}(e):512&n?ke.visitEachChild(e,q,h):e}function o(e){switch(e.kind){case 237:return c(e);case 194:return l(e);case 156:case 157:return a=e,i=v,o=y,y=v=!1,a=ke.visitEachChild(a,q,h),v=i,y=o,a;case 217:return function(e){if(16777216&e.transformFlags)X(e.declarationList);else{if(1048576&ke.getEmitFlags(e))return e;for(var n=0,t=e.declarationList.declarations;n<t.length;n++){var r=t[n];N(r.name)}var a=ke.getInitializedVariables(e.declarationList);if(0!==a.length)return ke.setSourceMapRange(ke.createExpressionStatement(ke.inlineExpressions(ke.map(a,m))),e)}}(e);case 223:return function(e){y&&_();var n=e.initializer;if(n&&ke.isVariableDeclarationList(n)){for(var t=0,r=n.declarations;t<r.length;t++){var a=r[t];N(a.name)}var i=ke.getInitializedVariables(n);e=ke.updateFor(e,0<i.length?ke.inlineExpressions(ke.map(i,m)):void 0,ke.visitNode(e.condition,q,ke.isExpression),ke.visitNode(e.incrementor,q,ke.isExpression),ke.visitNode(e.statement,q,ke.isStatement,ke.liftToBlock))}else e=ke.visitEachChild(e,q,h);return y&&oe(),e}(e);case 224:return function(e){y&&_();var n=e.initializer;if(ke.isVariableDeclarationList(n)){for(var t=0,r=n.declarations;t<r.length;t++){var a=r[t];N(a.name)}e=ke.updateForIn(e,n.declarations[0].name,ke.visitNode(e.expression,q,ke.isExpression),ke.visitNode(e.statement,q,ke.isStatement,ke.liftToBlock))}else e=ke.visitEachChild(e,q,h);return y&&oe(),e}(e);case 227:return function(e){if(y){var n=pe(e.label&&ke.idText(e.label));if(0<n)return ge(n,e)}return ke.visitEachChild(e,q,h)}(e);case 226:return function(e){if(y){var n=me(e.label&&ke.idText(e.label));if(0<n)return ge(n,e)}return ke.visitEachChild(e,q,h)}(e);case 228:return n=e,t=ke.visitNode(n.expression,q,ke.isExpression),r=n,ke.setTextRange(ke.createReturn(ke.createArrayLiteral(t?[_e(2),t]:[_e(2)])),r);default:return 16777216&e.transformFlags?function(e){switch(e.kind){case 202:return function(e){var n=ke.getExpressionAssociativity(e);switch(n){case 0:return function(e){if(Y(e.right)){if(ke.isLogicalOperator(e.operatorToken.kind))return t=e,r=$(),he(a=Z(),ke.visitNode(t.left,q,ke.isExpression),t.left),53===t.operatorToken.kind?Te(r,a,t.left):Ee(r,a,t.left),he(a,ke.visitNode(t.right,q,ke.isExpression),t.right),ee(r),a;if(26===e.operatorToken.kind)return function(e){var n=[];return t(e.left),t(e.right),ke.inlineExpressions(n);function t(e){ke.isBinaryExpression(e)&&26===e.operatorToken.kind?(t(e.left),t(e.right)):(Y(e)&&0<n.length&&(Se(1,[ke.createExpressionStatement(ke.inlineExpressions(n))]),n=[]),n.push(ke.visitNode(e,q,ke.isExpression)))}}(e);var n=ke.getMutableClone(e);return n.left=Q(ke.visitNode(e.left,q,ke.isExpression)),n.right=ke.visitNode(e.right,q,ke.isExpression),n}var t,r,a;return ke.visitEachChild(e,q,h)}(e);case 1:return function(e){var n,t=e.left,r=e.right;if(Y(r)){var a=void 0;switch(t.kind){case 187:a=ke.updatePropertyAccess(t,Q(ke.visitNode(t.expression,q,ke.isLeftHandSideExpression)),t.name);break;case 188:a=ke.updateElementAccess(t,Q(ke.visitNode(t.expression,q,ke.isLeftHandSideExpression)),Q(ke.visitNode(t.argumentExpression,q,ke.isExpression)));break;default:a=ke.visitNode(t,q,ke.isExpression)}var i=e.operatorToken.kind;return 59<=(n=i)&&n<=70?ke.setTextRange(ke.createAssignment(a,ke.setTextRange(ke.createBinary(Q(a),function(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}(i),ke.visitNode(r,q,ke.isExpression)),e)),e):ke.updateBinary(e,a,ke.visitNode(r,q,ke.isExpression))}return ke.visitEachChild(e,q,h)}(e);default:return ke.Debug.assertNever(n)}}(e);case 203:return function(e){if(Y(e.whenTrue)||Y(e.whenFalse)){var n=$(),t=$(),r=Z();return Te(n,ke.visitNode(e.condition,q,ke.isExpression),e.condition),he(r,ke.visitNode(e.whenTrue,q,ke.isExpression),e.whenTrue),be(t),ee(n),he(r,ke.visitNode(e.whenFalse,q,ke.isExpression),e.whenFalse),ee(t),r}return ke.visitEachChild(e,q,h)}(e);case 205:return function(e){var n,t=$(),r=ke.visitNode(e.expression,q,ke.isExpression);if(e.asteriskToken){var a=0==(8388608&ke.getEmitFlags(e.expression))?ke.createValuesHelper(h,r,e):r;Se(7,[a],e)}else Se(6,[r],e);return ee(t),n=e,ke.setTextRange(ke.createCall(ke.createPropertyAccess(w,"sent"),void 0,[]),n)}(e);case 185:return d((n=e).elements,void 0,void 0,n.multiLine);case 186:return function(a){var e=a.properties,i=a.multiLine,n=f(e),o=Z();he(o,ke.createObjectLiteral(ke.visitNodes(e,q,ke.isObjectLiteralElementLike,0,n),i));var t=ke.reduceLeft(e,function(e,n){Y(n)&&0<e.length&&(ye(ke.createExpressionStatement(ke.inlineExpressions(e))),e=[]);var t=ke.createExpressionForObjectLiteralElementLike(a,n,o),r=ke.visitNode(t,q,ke.isExpression);return r&&(i&&ke.startOnNewLine(r),e.push(r)),e},[],n);return t.push(i?ke.startOnNewLine(ke.getMutableClone(o)):o),ke.inlineExpressions(t)}(e);case 188:return function(e){if(Y(e.argumentExpression)){var n=ke.getMutableClone(e);return n.expression=Q(ke.visitNode(e.expression,q,ke.isLeftHandSideExpression)),n.argumentExpression=ke.visitNode(e.argumentExpression,q,ke.isExpression),n}return ke.visitEachChild(e,q,h)}(e);case 189:return function(e){if(ke.isImportCall(e)||!ke.forEach(e.arguments,Y))return ke.visitEachChild(e,q,h);var n=ke.createCallBinding(e.expression,N,s,!0),t=n.target,r=n.thisArg;return ke.setOriginalNode(ke.createFunctionApply(Q(ke.visitNode(t,q,ke.isLeftHandSideExpression)),r,d(e.arguments),e),e)}(e);case 190:return function(e){if(ke.forEach(e.arguments,Y)){var n=ke.createCallBinding(ke.createPropertyAccess(e.expression,"bind"),N),t=n.target,r=n.thisArg;return ke.setOriginalNode(ke.setTextRange(ke.createNew(ke.createFunctionApply(Q(ke.visitNode(t,q,ke.isExpression)),r,d(e.arguments,ke.createVoidZero())),void 0,[]),e),e)}return ke.visitEachChild(e,q,h)}(e);default:return ke.visitEachChild(e,q,h)}var n}(e):33554944&e.transformFlags?ke.visitEachChild(e,q,h):e}var n,t,r,a,i,o}function c(e){if(e.asteriskToken)e=ke.setOriginalNode(ke.setTextRange(ke.createFunctionDeclaration(void 0,e.modifiers,void 0,e.name,void 0,ke.visitParameterList(e.parameters,q,h),void 0,u(e.body)),e),e);else{var n=v,t=y;y=v=!1,e=ke.visitEachChild(e,q,h),v=n,y=t}return v?void r(e):e}function l(e){if(e.asteriskToken)e=ke.setOriginalNode(ke.setTextRange(ke.createFunctionExpression(void 0,void 0,e.name,void 0,ke.visitParameterList(e.parameters,q,h),void 0,u(e.body)),e),e);else{var n=v,t=y;y=v=!1,e=ke.visitEachChild(e,q,h),v=n,y=t}return e}function u(e){var n=[],t=v,r=y,a=T,i=S,o=x,s=C,c=D,l=A,u=H,d=I,p=M,m=O,f=w;y=!(v=!0),H=1,O=M=I=A=D=C=x=S=T=void 0,w=ke.createTempVariable(void 0),L();var _=ke.addPrologue(n,e.statements,!1,q);z(e.statements,_);var g=function(){W=U=0,F=R=!1,j=K=B=V=G=P=void 0;var e,n,t=function(){if(I){for(var e=0;e<I.length;e++)De(e);xe(I.length)}else xe(0);if(G){var n=ke.createPropertyAccess(w,"label"),t=ke.createSwitch(n,ke.createCaseBlock(G));return[ke.startOnNewLine(t)]}return V||[]}();return e=h,n=ke.setEmitFlags(ke.createFunctionExpression(void 0,void 0,void 0,void 0,[ke.createParameter(void 0,void 0,void 0,w)],void 0,ke.createBlock(t,0<t.length)),524288),e.requestEmitHelper(Ne),ke.createCall(ke.getHelperName("__generator"),void 0,[ke.createThis(),n])}();return ke.addStatementsAfterPrologue(n,k()),n.push(ke.createReturn(g)),v=t,y=r,T=a,S=i,x=o,C=s,D=c,A=l,H=u,I=d,M=p,O=m,w=f,ke.setTextRange(ke.createBlock(n,e.multiLine),e)}function d(e,r,n,a){var i,t=f(e);if(0<t){i=Z();var o=ke.visitNodes(e,q,ke.isExpression,0,t);he(i,ke.createArrayLiteral(r?[r].concat(o):o)),r=void 0}var s=ke.reduceLeft(e,function(e,n){if(Y(n)&&0<e.length){var t=void 0!==i;i||(i=Z()),he(i,t?ke.createArrayConcat(i,[ke.createArrayLiteral(e,a)]):ke.createArrayLiteral(r?[r].concat(e):e,a)),r=void 0,e=[]}return e.push(ke.visitNode(n,q,ke.isExpression)),e},[],t);return i?ke.createArrayConcat(i,[ke.createArrayLiteral(s,a)]):ke.setTextRange(ke.createArrayLiteral(r?[r].concat(s):s,a),n)}function z(e,n){void 0===n&&(n=0);for(var t=e.length,r=n;r<t;r++)p(e[r])}function J(e){ke.isBlock(e)?z(e.statements):p(e)}function p(e){var n=y;y||(y=Y(e)),function(e){switch(e.kind){case 216:return Y(y=e)?z(y.statements):ye(ke.visitNode(y,q,ke.isStatement));case 219:return v=e,ye(ke.visitNode(v,q,ke.isStatement));case 220:return function(e){if(Y(e))if(Y(e.thenStatement)||Y(e.elseStatement)){var n=$(),t=e.elseStatement?$():void 0;Te(e.elseStatement?t:n,ke.visitNode(e.expression,q,ke.isExpression),e.expression),J(e.thenStatement),e.elseStatement&&(be(n),ee(t),J(e.elseStatement)),ee(n)}else ye(ke.visitNode(e,q,ke.isStatement));else ye(ke.visitNode(e,q,ke.isStatement))}(e);case 221:return function(e){if(Y(e)){var n=$(),t=$();ie(n),ee(t),J(e.statement),ee(n),Ee(t,ke.visitNode(e.expression,q,ke.isExpression)),oe()}else ye(ke.visitNode(e,q,ke.isStatement))}(e);case 222:return function(e){if(Y(e)){var n=$(),t=ie(n);ee(n),Te(t,ke.visitNode(e.expression,q,ke.isExpression)),J(e.statement),be(n),oe()}else ye(ke.visitNode(e,q,ke.isStatement))}(e);case 223:return function(e){if(Y(e)){var n=$(),t=$(),r=ie(t);if(e.initializer){var a=e.initializer;ke.isVariableDeclarationList(a)?X(a):ye(ke.setTextRange(ke.createExpressionStatement(ke.visitNode(a,q,ke.isExpression)),a))}ee(n),e.condition&&Te(r,ke.visitNode(e.condition,q,ke.isExpression)),J(e.statement),ee(t),e.incrementor&&ye(ke.setTextRange(ke.createExpressionStatement(ke.visitNode(e.incrementor,q,ke.isExpression)),e.incrementor)),be(n),oe()}else ye(ke.visitNode(e,q,ke.isStatement))}(e);case 224:return function(e){if(Y(e)){var n=Z(),t=Z(),r=ke.createLoopVariable(),a=e.initializer;N(r),he(n,ke.createArrayLiteral()),ye(ke.createForIn(t,ke.visitNode(e.expression,q,ke.isExpression),ke.createExpressionStatement(ke.createCall(ke.createPropertyAccess(n,"push"),void 0,[t])))),he(r,ke.createLiteral(0));var i=$(),o=$(),s=ie(o);ee(i),Te(s,ke.createLessThan(r,ke.createPropertyAccess(n,"length")));var c=void 0;if(ke.isVariableDeclarationList(a)){for(var l=0,u=a.declarations;l<u.length;l++){var d=u[l];N(d.name)}c=ke.getSynthesizedClone(a.declarations[0].name)}else c=ke.visitNode(a,q,ke.isExpression),ke.Debug.assert(ke.isLeftHandSideExpression(c));he(c,ke.createElementAccess(n,r)),J(e.statement),ee(o),ye(ke.createExpressionStatement(ke.createPostfixIncrement(r))),be(i),oe()}else ye(ke.visitNode(e,q,ke.isStatement))}(e);case 226:return 0<(g=me((_=e).label?ke.idText(_.label):void 0))?be(g,_):ye(_);case 227:return 0<(f=pe((m=e).label?ke.idText(m.label):void 0))?be(f,m):ye(m);case 228:return p=e,Se(8,[ke.visitNode(p.expression,q,ke.isExpression)],p);case 229:return Y(c=e)?(l=Q(ke.visitNode(c.expression,q,ke.isExpression)),u=$(),d=$(),ee(u),ne({kind:1,expression:l,startLabel:u,endLabel:d}),J(c.statement),ke.Debug.assert(1===ae()),ee(te().endLabel)):ye(ke.visitNode(c,q,ke.isStatement));case 230:return function(e){if(Y(e.caseBlock)){for(var n=e.caseBlock,t=n.clauses.length,r=(ne({kind:2,isScript:!1,breakLabel:p=$()}),p),a=Q(ke.visitNode(e.expression,q,ke.isExpression)),i=[],o=-1,s=0;s<t;s++){var c=n.clauses[s];i.push($()),270===c.kind&&-1===o&&(o=s)}for(var l=0,u=[];l<t;){for(var d=0,s=l;s<t;s++){var c=n.clauses[s];if(269===c.kind){if(Y(c.expression)&&0<u.length)break;u.push(ke.createCaseClause(ke.visitNode(c.expression,q,ke.isExpression),[ge(i[s],c.expression)]))}else d++}u.length&&(ye(ke.createSwitch(a,ke.createCaseBlock(u))),l+=u.length,u=[]),0<d&&(l+=d,d=0)}be(0<=o?i[o]:r);for(var s=0;s<t;s++)ee(i[s]),z(n.clauses[s].statements);se()}else ye(ke.visitNode(e,q,ke.isStatement));var p}(e);case 231:return Y(i=e)?(o=ke.idText(i.label),s=$(),ne({kind:4,isScript:!1,labelText:o,breakLabel:s}),J(i.statement),ce()):ye(ke.visitNode(i,q,ke.isStatement));case 232:return a=e,Se(9,[ke.visitNode(a.expression,q,ke.isExpression)],a);case 233:return Y(n=e)?(t=$(),r=$(),ee(t),ne({kind:0,state:0,startLabel:t,endLabel:r}),ve(),J(n.tryBlock),n.catchClause&&(function(e){var n;if(ke.Debug.assert(0===ae()),ke.isGeneratedIdentifier(e.name))n=e.name,N(e.name);else{var t=ke.idText(e.name);n=Z(t),b||(b=ke.createMap(),E=[],h.enableSubstitution(71)),b.set(t,!0),E[ke.getOriginalNodeId(e)]=n}var r=re();ke.Debug.assert(r.state<1),be(r.endLabel);var a=$();ee(a),r.state=1,r.catchVariable=n,r.catchLabel=a,he(n,ke.createCall(ke.createPropertyAccess(w,"sent"),void 0,[])),ve()}(n.catchClause.variableDeclaration),J(n.catchClause.block)),n.finallyBlock&&(function(){ke.Debug.assert(0===ae());var e=re();ke.Debug.assert(e.state<2),be(e.endLabel);var n=$();ee(n),e.state=2,e.finallyLabel=n}(),J(n.finallyBlock)),function(){ke.Debug.assert(0===ae());var e=te();e.state<2?be(e.endLabel):Se(10),ee(e.endLabel),ve(),e.state=3}()):ye(ke.visitEachChild(n,q,h));default:return ye(ke.visitNode(e,q,ke.isStatement))}var n,t,r,a,i,o,s,c,l,u,d,p,m,f,_,g,v,y}(e),y=n}function X(e){for(var n=0,t=e.declarations;n<t.length;n++){var r=t[n],a=ke.getSynthesizedClone(r.name);ke.setCommentRange(a,r.name),N(a)}for(var i=ke.getInitializedVariables(e),o=i.length,s=0,c=[];s<o;){for(var l=s;l<o&&!(Y((r=i[l]).initializer)&&0<c.length);l++)c.push(m(r));c.length&&(ye(ke.createExpressionStatement(ke.inlineExpressions(c))),s+=c.length,c=[])}}function m(e){return ke.setSourceMapRange(ke.createAssignment(ke.setSourceMapRange(ke.getSynthesizedClone(e.name),e.name),ke.visitNode(e.initializer,q,ke.isExpression)),e)}function Y(e){return!!e&&0!=(16777216&e.transformFlags)}function f(e){for(var n=e.length,t=0;t<n;t++)if(Y(e[t]))return t;return-1}function Q(e){var n;return ke.isGeneratedIdentifier(e)||4096&ke.getEmitFlags(e)?e:(he(n=ke.createTempVariable(N),e,e),n)}function Z(e){var n=e?ke.createUniqueName(e):ke.createTempVariable(void 0);return N(n),n}function $(){D||(D=[]);var e=H;return H++,D[e]=-1,e}function ee(e){ke.Debug.assert(void 0!==D,"No labels were defined."),D[e]=I?I.length:0}function ne(e){T||(T=[],x=[],S=[],C=[]);var n=x.length;return x[n]=0,S[n]=I?I.length:0,T[n]=e,C.push(e),n}function te(){var e=re();if(void 0===e)return ke.Debug.fail("beginBlock was never called.");var n=x.length;return x[n]=1,S[n]=I?I.length:0,T[n]=e,C.pop(),e}function re(){return ke.lastOrUndefined(C)}function ae(){var e=re();return e&&e.kind}function _(){ne({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function ie(e){var n=$();return ne({kind:3,isScript:!1,breakLabel:n,continueLabel:e}),n}function oe(){ke.Debug.assert(3===ae());var e=te(),n=e.breakLabel;e.isScript||ee(n)}function se(){ke.Debug.assert(2===ae());var e=te(),n=e.breakLabel;e.isScript||ee(n)}function ce(){ke.Debug.assert(4===ae());var e=te();e.isScript||ee(e.breakLabel)}function g(e){return 2===e.kind||3===e.kind}function le(e){return 4===e.kind}function ue(e){return 3===e.kind}function de(e,n){for(var t=n;0<=t;t--){var r=C[t];if(!le(r))break;if(r.labelText===e)return!0}return!1}function pe(e){if(C)if(e)for(var n=C.length-1;0<=n;n--){if(le(t=C[n])&&t.labelText===e)return t.breakLabel;if(g(t)&&de(e,n-1))return t.breakLabel}else for(n=C.length-1;0<=n;n--){var t;if(g(t=C[n]))return t.breakLabel}return 0}function me(e){if(C)if(e){for(var n=C.length-1;0<=n;n--)if(ue(t=C[n])&&de(e,n-1))return t.continueLabel}else for(n=C.length-1;0<=n;n--){var t;if(ue(t=C[n]))return t.continueLabel}return 0}function fe(e){if(void 0!==e&&0<e){void 0===A&&(A=[]);var n=ke.createLiteral(-1);return void 0===A[e]?A[e]=[n]:A[e].push(n),n}return ke.createOmittedExpression()}function _e(e){var n=ke.createLiteral(e);return ke.addSyntheticTrailingComment(n,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}}(e)),n}function ge(e,n){return ke.Debug.assertLessThan(0,e,"Invalid label"),ke.setTextRange(ke.createReturn(ke.createArrayLiteral([_e(3),fe(e)])),n)}function ve(){Se(0)}function ye(e){e?Se(1,[e]):ve()}function he(e,n,t){Se(2,[e,n],t)}function be(e,n){Se(3,[e],n)}function Ee(e,n,t){Se(4,[e,n],t)}function Te(e,n,t){Se(5,[e,n],t)}function Se(e,n,t){void 0===I&&(I=[],M=[],O=[]),void 0===D&&ee($());var r=I.length;I[r]=e,M[r]=n,O[r]=t}function xe(e){(function(e){if(!F)return!0;if(!D||!A)return!1;for(var n=0;n<D.length;n++)if(D[n]===e&&A[n])return!0;return!1})(e)&&(Ce(e),Le(j=void 0,void 0)),V&&G&&t(!1),function(){if(void 0!==A&&void 0!==P)for(var e=0;e<P.length;e++){var n=P[e];if(void 0!==n)for(var t=0,r=n;t<r.length;t++){var a=r[t],i=A[a];if(void 0!==i)for(var o=0,s=i;o<s.length;o++){var c=s[o];c.text=String(e)}}}}()}function t(e){if(G||(G=[]),V){if(j)for(var n=j.length-1;0<=n;n--){var t=j[n];V=[ke.createWith(t.expression,ke.createBlock(V))]}if(K){var r=K.startLabel,a=K.catchLabel,i=K.finallyLabel,o=K.endLabel;V.unshift(ke.createExpressionStatement(ke.createCall(ke.createPropertyAccess(ke.createPropertyAccess(w,"trys"),"push"),void 0,[ke.createArrayLiteral([fe(r),fe(a),fe(i),fe(o)])]))),K=void 0}e&&V.push(ke.createExpressionStatement(ke.createAssignment(ke.createPropertyAccess(w,"label"),ke.createLiteral(W+1))))}G.push(ke.createCaseClause(ke.createLiteral(W),V||[])),V=void 0}function Ce(e){if(D)for(var n=0;n<D.length;n++)D[n]===e&&(V&&(t(!R),F=R=!1,W++),void 0===P&&(P=[]),void 0===P[W]?P[W]=[n]:P[W].push(n))}function De(e){if(Ce(e),function(e){if(T)for(;U<x.length&&S[U]<=e;U++){var n=T[U],t=x[U];switch(n.kind){case 0:0===t?(B||(B=[]),V||(V=[]),B.push(K),K=n):1===t&&(K=B.pop());break;case 1:0===t?(j||(j=[]),j.push(n)):1===t&&j.pop()}}}(e),!R){F=R=!1;var n=I[e];if(0!==n){if(10===n)return R=!0,void Ae(ke.createReturn(ke.createArrayLiteral([_e(7)])));var t=M[e];if(1===n)return Ae(t[0]);var r,a,i,o,s,c,l,u,d,p,m,f,_,g,v,y,h,b=O[e];switch(n){case 2:return v=t[0],y=t[1],h=b,void Ae(ke.setTextRange(ke.createExpressionStatement(ke.createAssignment(v,y)),h));case 3:return _=t[0],g=b,R=!0,void Ae(ke.setEmitFlags(ke.setTextRange(ke.createReturn(ke.createArrayLiteral([_e(3),fe(_)])),g),384));case 4:return p=t[0],m=t[1],f=b,void Ae(ke.setEmitFlags(ke.createIf(m,ke.setEmitFlags(ke.setTextRange(ke.createReturn(ke.createArrayLiteral([_e(3),fe(p)])),f),384)),1));case 5:return l=t[0],u=t[1],d=b,void Ae(ke.setEmitFlags(ke.createIf(ke.createLogicalNot(u),ke.setEmitFlags(ke.setTextRange(ke.createReturn(ke.createArrayLiteral([_e(3),fe(l)])),d),384)),1));case 6:return s=t[0],c=b,R=!0,void Ae(ke.setEmitFlags(ke.setTextRange(ke.createReturn(ke.createArrayLiteral(s?[_e(4),s]:[_e(4)])),c),384));case 7:return i=t[0],o=b,R=!0,void Ae(ke.setEmitFlags(ke.setTextRange(ke.createReturn(ke.createArrayLiteral([_e(5),i])),o),384));case 8:return Le(t[0],b);case 9:return r=t[0],a=b,F=R=!0,void Ae(ke.setTextRange(ke.createThrow(r),a))}}}}function Ae(e){e&&(V?V.push(e):V=[e])}function Le(e,n){F=R=!0,Ae(ke.setEmitFlags(ke.setTextRange(ke.createReturn(ke.createArrayLiteral(e?[_e(2),e]:[_e(2)])),n),384))}}),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            };'}}(ts||(ts={})),function(z){z.transformModule=function(u){var i=u.startLexicalEnvironment,o=u.endLexicalEnvironment,a=u.hoistVariableDeclaration,m=u.getCompilerOptions(),f=u.getEmitResolver(),_=u.getEmitHost(),c=z.getEmitScriptTarget(m),l=z.getEmitModuleKind(m),t=u.onSubstituteNode,r=u.onEmitNode;u.onSubstituteNode=function(e,n){return(n=t(e,n)).id&&s[n.id]?n:1===e?function(e){switch(e.kind){case 71:return W(e);case 202:return function(e){if(z.isAssignmentOperator(e.operatorToken.kind)&&z.isIdentifier(e.left)&&!z.isGeneratedIdentifier(e.left)&&!z.isLocalName(e.left)&&!z.isDeclarationNameOfEnumOrNamespace(e.left)){var n=q(e.left);if(n){for(var t=e,r=0,a=n;r<a.length;r++){var i=a[r];s[z.getNodeId(t)]=!0,t=H(i,t,e)}return t}}return e}(e);case 201:case 200:return function(e){if((43===e.operator||44===e.operator)&&z.isIdentifier(e.operand)&&!z.isGeneratedIdentifier(e.operand)&&!z.isLocalName(e.operand)&&!z.isDeclarationNameOfEnumOrNamespace(e.operand)){var n=q(e.operand);if(n){for(var t=201===e.kind?z.setTextRange(z.createBinary(e.operand,z.createToken(43===e.operator?59:60),z.createLiteral(1)),e):e,r=0,a=n;r<a.length;r++){var i=a[r];s[z.getNodeId(t)]=!0,t=H(i,t)}return t}}return e}(e)}return e}(n):z.isShorthandPropertyAssignment(n)?function(e){var n=e.name,t=W(n);if(t===n)return e;if(e.objectAssignmentInitializer){var r=z.createAssignment(t,e.objectAssignmentInitializer);return z.setTextRange(z.createPropertyAssignment(n,r),e)}return z.setTextRange(z.createPropertyAssignment(n,t),e)}(n):n},u.onEmitNode=function(e,n,t){277===n.kind?(g=n,v=p[z.getOriginalNodeId(g)],s=[],r(e,n,t),s=v=g=void 0):r(e,n,t)},u.enableSubstitution(71),u.enableSubstitution(202),u.enableSubstitution(200),u.enableSubstitution(201),u.enableSubstitution(274),u.enableEmitNotification(277);var g,v,s,d,p=[],y=[];return z.chainBundle(function(e){if(e.isDeclarationFile||!(z.isEffectiveExternalModule(e,m)||67108864&e.transformFlags||z.isJsonSourceFile(e)&&z.hasJsonModuleEmitEnabled(m)&&(m.out||m.outFile)))return e;g=e,v=z.collectExternalModuleInfo(e,f,m),p[z.getOriginalNodeId(e)]=v;var n=function(e){switch(e){case z.ModuleKind.AMD:return E;case z.ModuleKind.UMD:return T;default:return b}}(l)(e);return v=g=void 0,d=!1,z.aggregateTransformFlags(n)});function h(){return!(v.exportEquals||!z.isExternalModule(g))}function b(e){i();var n=[],t=z.getStrictOptionValue(m,"alwaysStrict")||!m.noImplicitUseStrict&&z.isExternalModule(g),r=z.addPrologue(n,e.statements,t,A);h()&&z.append(n,j()),z.append(n,z.visitNode(v.externalHelpersImportDeclaration,A,z.isStatement)),z.addRange(n,z.visitNodes(e.statements,A,z.isStatement,r)),D(n,!1),z.addStatementsAfterPrologue(n,o());var a=z.updateSourceFileNode(e,z.setTextRange(z.createNodeArray(n),e.statements));return v.hasExportStarsToExportValues&&!m.importHelpers&&z.addEmitHelper(a,J),z.addEmitHelpers(a,u.readEmitHelpers()),a}function E(e){var n=z.createIdentifier("define"),t=z.tryGetModuleNameFromFile(e,_,m),r=z.isJsonSourceFile(e)&&e,a=S(e,!0),i=a.aliasedModuleNames,o=a.unaliasedModuleNames,s=a.importAliasNames,c=z.updateSourceFileNode(e,z.setTextRange(z.createNodeArray([z.createExpressionStatement(z.createCall(n,void 0,(t?[t]:[]).concat([z.createArrayLiteral(r?z.emptyArray:[z.createLiteral("require"),z.createLiteral("exports")].concat(i,o)),r?r.statements.length?r.statements[0].expression:z.createObjectLiteral():z.createFunctionExpression(void 0,void 0,void 0,void 0,[z.createParameter(void 0,void 0,void 0,"require"),z.createParameter(void 0,void 0,void 0,"exports")].concat(s),void 0,C(e))])))]),e.statements));return z.addEmitHelpers(c,u.readEmitHelpers()),c}function T(e){var n=S(e,!1),t=n.aliasedModuleNames,r=n.unaliasedModuleNames,a=n.importAliasNames,i=z.tryGetModuleNameFromFile(e,_,m),o=z.createFunctionExpression(void 0,void 0,void 0,void 0,[z.createParameter(void 0,void 0,void 0,"factory")],void 0,z.setTextRange(z.createBlock([z.createIf(z.createLogicalAnd(z.createTypeCheck(z.createIdentifier("module"),"object"),z.createTypeCheck(z.createPropertyAccess(z.createIdentifier("module"),"exports"),"object")),z.createBlock([z.createVariableStatement(void 0,[z.createVariableDeclaration("v",void 0,z.createCall(z.createIdentifier("factory"),void 0,[z.createIdentifier("require"),z.createIdentifier("exports")]))]),z.setEmitFlags(z.createIf(z.createStrictInequality(z.createIdentifier("v"),z.createIdentifier("undefined")),z.createExpressionStatement(z.createAssignment(z.createPropertyAccess(z.createIdentifier("module"),"exports"),z.createIdentifier("v")))),1)]),z.createIf(z.createLogicalAnd(z.createTypeCheck(z.createIdentifier("define"),"function"),z.createPropertyAccess(z.createIdentifier("define"),"amd")),z.createBlock([z.createExpressionStatement(z.createCall(z.createIdentifier("define"),void 0,(i?[i]:[]).concat([z.createArrayLiteral([z.createLiteral("require"),z.createLiteral("exports")].concat(t,r)),z.createIdentifier("factory")])))])))],!0),void 0)),s=z.updateSourceFileNode(e,z.setTextRange(z.createNodeArray([z.createExpressionStatement(z.createCall(o,void 0,[z.createFunctionExpression(void 0,void 0,void 0,void 0,[z.createParameter(void 0,void 0,void 0,"require"),z.createParameter(void 0,void 0,void 0,"exports")].concat(a),void 0,C(e))]))]),e.statements));return z.addEmitHelpers(s,u.readEmitHelpers()),s}function S(e,n){for(var t=[],r=[],a=[],i=0,o=e.amdDependencies;i<o.length;i++){var s=o[i];s.name?(t.push(z.createLiteral(s.path)),a.push(z.createParameter(void 0,void 0,void 0,s.name))):r.push(z.createLiteral(s.path))}for(var c=0,l=v.externalImports;c<l.length;c++){var u=l[c],d=z.getExternalModuleNameLiteral(u,g,_,f,m),p=z.getLocalNameForExternalImport(u,g);d&&(n&&p?(z.setEmitFlags(p,4),t.push(d),a.push(z.createParameter(void 0,void 0,void 0,p))):r.push(d))}return{aliasedModuleNames:t,unaliasedModuleNames:r,importAliasNames:a}}function x(e){if(!z.isImportEqualsDeclaration(e)&&!z.isExportDeclaration(e)&&z.getExternalModuleNameLiteral(e,g,_,f,m)){var n=z.getLocalNameForExternalImport(e,g),t=I(e,n);if(t!==n)return z.createExpressionStatement(z.createAssignment(n,t))}}function C(e){i();var n=[],t=z.addPrologue(n,e.statements,!m.noImplicitUseStrict,A);h()&&z.append(n,j()),z.append(n,z.visitNode(v.externalHelpersImportDeclaration,A,z.isStatement)),l===z.ModuleKind.AMD&&z.addRange(n,z.mapDefined(v.externalImports,x)),z.addRange(n,z.visitNodes(e.statements,A,z.isStatement,t)),D(n,!0),z.addStatementsAfterPrologue(n,o());var r=z.createBlock(n,!0);return v.hasExportStarsToExportValues&&!m.importHelpers&&z.addEmitHelper(r,J),d&&z.addEmitHelper(r,X),r}function D(e,n){if(v.exportEquals){var t=z.visitNode(v.exportEquals.expression,L);if(t)if(n){var r=z.createReturn(t);z.setTextRange(r,v.exportEquals),z.setEmitFlags(r,1920),e.push(r)}else r=z.createExpressionStatement(z.createAssignment(z.createPropertyAccess(z.createIdentifier("module"),"exports"),t)),z.setTextRange(r,v.exportEquals),z.setEmitFlags(r,1536),e.push(r)}}function A(e){switch(e.kind){case 247:return function(e){var n,t=z.getNamespaceDeclarationNode(e);if(l!==z.ModuleKind.AMD){if(!e.importClause)return z.setOriginalNode(z.setTextRange(z.createExpressionStatement(M(e)),e),e);var r=[];t&&!z.isDefaultImport(e)?r.push(z.createVariableDeclaration(z.getSynthesizedClone(t.name),void 0,I(e,M(e)))):(r.push(z.createVariableDeclaration(z.getGeneratedNameForNode(e),void 0,I(e,M(e)))),t&&z.isDefaultImport(e)&&r.push(z.createVariableDeclaration(z.getSynthesizedClone(t.name),void 0,z.getGeneratedNameForNode(e)))),n=z.append(n,z.setOriginalNode(z.setTextRange(z.createVariableStatement(void 0,z.createVariableDeclarationList(r,2<=c?2:0)),e),e))}else t&&z.isDefaultImport(e)&&(n=z.append(n,z.createVariableStatement(void 0,z.createVariableDeclarationList([z.setOriginalNode(z.setTextRange(z.createVariableDeclaration(z.getSynthesizedClone(t.name),void 0,z.getGeneratedNameForNode(e)),e),e)],2<=c?2:0))));if(w(e)){var a=z.getOriginalNodeId(e);y[a]=P(y[a],e)}else n=P(n,e);return z.singleOrMany(n)}(e);case 246:return function(e){var n;if(z.Debug.assert(z.isExternalModuleImportEqualsDeclaration(e),"import= for internal module references should be handled in an earlier transformer."),l!==z.ModuleKind.AMD?n=z.hasModifier(e,1)?z.append(n,z.setOriginalNode(z.setTextRange(z.createExpressionStatement(H(e.name,M(e))),e),e)):z.append(n,z.setOriginalNode(z.setTextRange(z.createVariableStatement(void 0,z.createVariableDeclarationList([z.createVariableDeclaration(z.getSynthesizedClone(e.name),void 0,M(e))],2<=c?2:0)),e),e)):z.hasModifier(e,1)&&(n=z.append(n,z.setOriginalNode(z.setTextRange(z.createExpressionStatement(H(z.getExportName(e),z.getLocalName(e))),e),e))),w(e)){var t=z.getOriginalNodeId(e);y[t]=R(y[t],e)}else n=R(n,e);return z.singleOrMany(n)}(e);case 253:return function(e){if(e.moduleSpecifier){var n,t,r=z.getGeneratedNameForNode(e);if(e.exportClause){var a=[];l!==z.ModuleKind.AMD&&a.push(z.setOriginalNode(z.setTextRange(z.createVariableStatement(void 0,z.createVariableDeclarationList([z.createVariableDeclaration(r,void 0,M(e))])),e),e));for(var i=0,o=e.exportClause.elements;i<o.length;i++){var s=o[i],c=z.createPropertyAccess(r,s.propertyName||s.name);a.push(z.setOriginalNode(z.setTextRange(z.createExpressionStatement(H(z.getExportName(s),c)),s),s))}return z.singleOrMany(a)}return z.setOriginalNode(z.setTextRange(z.createExpressionStatement((n=u,t=l!==z.ModuleKind.AMD?M(e):r,n.getCompilerOptions().importHelpers?z.createCall(z.getHelperName("__exportStar"),void 0,[t,z.createIdentifier("exports")]):z.createCall(z.createIdentifier("__export"),void 0,[t]))),e),e)}}(e);case 252:return function(e){if(!e.isExportEquals){var n,t=e.original;if(t&&w(t)){var r=z.getOriginalNodeId(e);y[r]=K(y[r],z.createIdentifier("default"),z.visitNode(e.expression,L),e,!0)}else n=K(n,z.createIdentifier("default"),z.visitNode(e.expression,L),e,!0);return z.singleOrMany(n)}}(e);case 217:return function(e){var n,t,r,a;if(z.hasModifier(e,1)){for(var i=void 0,o=0,s=e.declarationList.declarations;o<s.length;o++){var c=s[o];z.isIdentifier(c.name)&&z.isLocalName(c.name)?(i||(i=z.visitNodes(e.modifiers,U,z.isModifier)),t=z.append(t,c)):c.initializer&&(r=z.append(r,(a=c,z.isBindingPattern(a.name)?z.flattenDestructuringAssignment(z.visitNode(a,L),void 0,u,0,!1,O):z.createAssignment(z.setTextRange(z.createPropertyAccess(z.createIdentifier("exports"),a.name),a.name),z.visitNode(a.initializer,L)))))}t&&(n=z.append(n,z.updateVariableStatement(e,i,z.updateVariableDeclarationList(e.declarationList,t)))),r&&(n=z.append(n,z.setOriginalNode(z.setTextRange(z.createExpressionStatement(z.inlineExpressions(r)),e),e)))}else n=z.append(n,z.visitEachChild(e,L,u));if(w(e)){var l=z.getOriginalNodeId(e);y[l]=F(y[l],e)}else n=F(n,e);return z.singleOrMany(n)}(e);case 237:return function(e){var n;if(n=z.hasModifier(e,1)?z.append(n,z.setOriginalNode(z.setTextRange(z.createFunctionDeclaration(void 0,z.visitNodes(e.modifiers,U,z.isModifier),e.asteriskToken,z.getDeclarationName(e,!0,!0),void 0,z.visitNodes(e.parameters,L),void 0,z.visitEachChild(e.body,L,u)),e),e)):z.append(n,z.visitEachChild(e,L,u)),w(e)){var t=z.getOriginalNodeId(e);y[t]=V(y[t],e)}else n=V(n,e);return z.singleOrMany(n)}(e);case 238:return function(e){var n;if(n=z.hasModifier(e,1)?z.append(n,z.setOriginalNode(z.setTextRange(z.createClassDeclaration(void 0,z.visitNodes(e.modifiers,U,z.isModifier),z.getDeclarationName(e,!0,!0),void 0,z.visitNodes(e.heritageClauses,L),z.visitNodes(e.members,L)),e),e)):z.append(n,z.visitEachChild(e,L,u)),w(e)){var t=z.getOriginalNodeId(e);y[t]=V(y[t],e)}else n=V(n,e);return z.singleOrMany(n)}(e);case 308:return function(e){if(w(e)&&217===e.original.kind){var n=z.getOriginalNodeId(e);y[n]=F(y[n],e.original)}return e}(e);case 309:return n=e,t=z.getOriginalNodeId(n),(r=y[t])?(delete y[t],z.append(r,n)):n;default:return z.visitEachChild(e,L,u)}var n,t,r}function L(e){return 67108864&e.transformFlags||2048&e.transformFlags?z.isImportCall(e)?function(e){var n=z.visitNode(z.firstOrUndefined(e.arguments),L),t=!!(16384&e.transformFlags);switch(m.module){case z.ModuleKind.AMD:return k(n,t);case z.ModuleKind.UMD:return function(e,n){if(d=!0,z.isSimpleCopiableExpression(e)){var t=z.isGeneratedIdentifier(e)?e:z.isStringLiteral(e)?z.createLiteral(e):z.setEmitFlags(z.setTextRange(z.getSynthesizedClone(e),e),1536);return z.createConditional(z.createIdentifier("__syncRequire"),N(e,n),k(t,n))}var r=z.createTempVariable(a);return z.createComma(z.createAssignment(r,e),z.createConditional(z.createIdentifier("__syncRequire"),N(r,n),k(r,n)))}(n,t);case z.ModuleKind.CommonJS:default:return N(n,t)}}(e):1024&e.transformFlags&&z.isBinaryExpression(e)?function e(n){if(z.isObjectLiteralExpression(n))for(var t=0,r=n.properties;t<r.length;t++){var a=r[t];switch(a.kind){case 273:if(e(a.initializer))return!0;break;case 274:if(e(a.name))return!0;break;case 275:if(e(a.expression))return!0;break;case 154:case 156:case 157:return!1;default:z.Debug.assertNever(a,"Unhandled object member kind")}}else if(z.isArrayLiteralExpression(n))for(var i=0,o=n.elements;i<o.length;i++){var a=o[i];if(z.isSpreadElement(a)){if(e(a.expression))return!0}else if(e(a))return!0}else if(z.isIdentifier(n))return z.length(q(n))>(z.isExportName(n)?1:0);return!1}((n=e).left)?z.flattenDestructuringAssignment(n,L,u,0,!1,O):z.visitEachChild(n,L,u):z.visitEachChild(e,L,u):e;var n}function k(e,n){var t,r=z.createUniqueName("resolve"),a=z.createUniqueName("reject"),i=[z.createParameter(void 0,void 0,void 0,r),z.createParameter(void 0,void 0,void 0,a)],o=z.createBlock([z.createExpressionStatement(z.createCall(z.createIdentifier("require"),void 0,[z.createArrayLiteral([e||z.createOmittedExpression()]),r,a]))]);2<=c?t=z.createArrowFunction(void 0,void 0,i,void 0,void 0,o):(t=z.createFunctionExpression(void 0,void 0,void 0,void 0,i,void 0,o),n&&z.setEmitFlags(t,8));var s=z.createNew(z.createIdentifier("Promise"),void 0,[t]);return m.esModuleInterop?(u.requestEmitHelper(Y),z.createCall(z.createPropertyAccess(s,z.createIdentifier("then")),void 0,[z.getHelperName("__importStar")])):s}function N(e,n){var t,r=z.createCall(z.createPropertyAccess(z.createIdentifier("Promise"),"resolve"),void 0,[]),a=z.createCall(z.createIdentifier("require"),void 0,e?[e]:[]);return m.esModuleInterop&&(u.requestEmitHelper(Y),a=z.createCall(z.getHelperName("__importStar"),void 0,[a])),2<=c?t=z.createArrowFunction(void 0,void 0,[],void 0,void 0,a):(t=z.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,z.createBlock([z.createReturn(a)])),n&&z.setEmitFlags(t,8)),z.createCall(z.createPropertyAccess(r,"then"),void 0,[t])}function I(e,n){return!m.esModuleInterop||67108864&z.getEmitFlags(e)?n:z.getImportNeedsImportStarHelper(e)?(u.requestEmitHelper(Y),z.createCall(z.getHelperName("__importStar"),void 0,[n])):z.getImportNeedsImportDefaultHelper(e)?(u.requestEmitHelper(Q),z.createCall(z.getHelperName("__importDefault"),void 0,[n])):n}function M(e){var n=z.getExternalModuleNameLiteral(e,g,_,f,m),t=[];return n&&t.push(n),z.createCall(z.createIdentifier("require"),void 0,t)}function O(e,n,t){var r=q(e);if(r){for(var a=z.isExportName(e)?n:z.createAssignment(e,n),i=0,o=r;i<o.length;i++){var s=o[i];z.setEmitFlags(a,4),a=H(s,a,t)}return a}return z.createAssignment(e,n)}function w(e){return 0!=(4194304&z.getEmitFlags(e))}function P(e,n){if(v.exportEquals)return e;var t=n.importClause;if(!t)return e;t.name&&(e=B(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 249:e=B(e,r);break;case 250:for(var a=0,i=r.elements;a<i.length;a++)e=B(e,i[a])}return e}function R(e,n){return v.exportEquals?e:B(e,n)}function F(e,n){if(v.exportEquals)return e;for(var t=0,r=n.declarationList.declarations;t<r.length;t++)e=G(e,r[t]);return e}function G(e,n){if(v.exportEquals)return e;if(z.isBindingPattern(n.name))for(var t=0,r=n.name.elements;t<r.length;t++){var a=r[t];z.isOmittedExpression(a)||(e=G(e,a))}else z.isGeneratedIdentifier(n.name)||(e=B(e,n));return e}function V(e,n){return v.exportEquals||(z.hasModifier(n,1)&&(e=K(e,z.hasModifier(n,512)?z.createIdentifier("default"):z.getDeclarationName(n),z.getLocalName(n),n)),n.name&&(e=B(e,n))),e}function B(e,n){var t=z.getDeclarationName(n),r=v.exportSpecifiers.get(z.idText(t));if(r)for(var a=0,i=r;a<i.length;a++){var o=i[a];e=K(e,o.name,t,o.name)}return e}function K(e,n,t,r,a){return e=z.append(e,(i=n,o=t,s=r,c=a,l=z.setTextRange(z.createExpressionStatement(H(i,o)),s),z.startOnNewLine(l),c||z.setEmitFlags(l,1536),l));var i,o,s,c,l}function j(){var e;return e=0===c?z.createExpressionStatement(H(z.createIdentifier("__esModule"),z.createLiteral(!0))):z.createExpressionStatement(z.createCall(z.createPropertyAccess(z.createIdentifier("Object"),"defineProperty"),void 0,[z.createIdentifier("exports"),z.createLiteral("__esModule"),z.createObjectLiteral([z.createPropertyAssignment("value",z.createLiteral(!0))])])),z.setEmitFlags(e,1048576),e}function H(e,n,t){return z.setTextRange(z.createAssignment(z.createPropertyAccess(z.createIdentifier("exports"),z.getSynthesizedClone(e)),n),t)}function U(e){switch(e.kind){case 84:case 79:return}return e}function W(e){if(4096&z.getEmitFlags(e)){var n=z.getExternalHelpersModuleName(g);return n?z.createPropertyAccess(n,e):e}if(!z.isGeneratedIdentifier(e)&&!z.isLocalName(e)){var t=f.getReferencedExportContainer(e,z.isExportName(e));if(t&&277===t.kind)return z.setTextRange(z.createPropertyAccess(z.createIdentifier("exports"),z.getSynthesizedClone(e)),e);var r=f.getReferencedImportDeclaration(e);if(r){if(z.isImportClause(r))return z.setTextRange(z.createPropertyAccess(z.getGeneratedNameForNode(r.parent),z.createIdentifier("default")),e);if(z.isImportSpecifier(r)){var a=r.propertyName||r.name;return z.setTextRange(z.createPropertyAccess(z.getGeneratedNameForNode(r.parent.parent.parent),z.getSynthesizedClone(a)),e)}}}return e}function q(e){if(!z.isGeneratedIdentifier(e)){var n=f.getReferencedImportDeclaration(e)||f.getReferencedValueDeclaration(e);if(n)return v&&v.exportedBindings[z.getOriginalNodeId(n)]}}};var J={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 X={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n            var __syncRequire = typeof module === "object" && typeof module.exports === "object";'},Y={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};'},Q={name:"typescript:commonjsimportdefault",scoped:!1,text:'\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { "default": mod };\n};'}}(ts||(ts={})),function(J){J.transformSystemModule=function(E){var c=E.startLexicalEnvironment,l=E.endLexicalEnvironment,T=E.hoistVariableDeclaration,u=E.getCompilerOptions(),d=E.getEmitResolver(),p=E.getEmitHost(),r=E.onSubstituteNode,a=E.onEmitNode;E.onSubstituteNode=function(e,n){return t=n=r(e,n),f&&t.id&&f[t.id]?n:1===e?function(e){switch(e.kind){case 71:return function(e){if(4096&J.getEmitFlags(e)){var n=J.getExternalHelpersModuleName(v);return n?J.createPropertyAccess(n,e):e}if(!J.isGeneratedIdentifier(e)&&!J.isLocalName(e)){var t=d.getReferencedImportDeclaration(e);if(t){if(J.isImportClause(t))return J.setTextRange(J.createPropertyAccess(J.getGeneratedNameForNode(t.parent),J.createIdentifier("default")),e);if(J.isImportSpecifier(t))return J.setTextRange(J.createPropertyAccess(J.getGeneratedNameForNode(t.parent.parent.parent),J.getSynthesizedClone(t.propertyName||t.name)),e)}}return e}(e);case 202:return function(e){if(J.isAssignmentOperator(e.operatorToken.kind)&&J.isIdentifier(e.left)&&!J.isGeneratedIdentifier(e.left)&&!J.isLocalName(e.left)&&!J.isDeclarationNameOfEnumOrNamespace(e.left)){var n=q(e.left);if(n){for(var t=e,r=0,a=n;r<a.length;r++){var i=a[r];t=B(i,z(t))}return t}}return e}(e);case 200:case 201:return function(e){if((43===e.operator||44===e.operator)&&J.isIdentifier(e.operand)&&!J.isGeneratedIdentifier(e.operand)&&!J.isLocalName(e.operand)&&!J.isDeclarationNameOfEnumOrNamespace(e.operand)){var n=q(e.operand);if(n){for(var t=201===e.kind?J.setTextRange(J.createPrefix(e.operator,e.operand),e):e,r=0,a=n;r<a.length;r++){var i=a[r];t=B(i,z(t))}return 201===e.kind&&(t=43===e.operator?J.createSubtract(z(t),J.createLiteral(1)):J.createAdd(z(t),J.createLiteral(1))),t}}return e}(e)}return e}(n):4===e?function(e){switch(e.kind){case 274:return function(e){var n=e.name;if(!J.isGeneratedIdentifier(n)&&!J.isLocalName(n)){var t=d.getReferencedImportDeclaration(n);if(t){if(J.isImportClause(t))return J.setTextRange(J.createPropertyAssignment(J.getSynthesizedClone(n),J.createPropertyAccess(J.getGeneratedNameForNode(t.parent),J.createIdentifier("default"))),e);if(J.isImportSpecifier(t))return J.setTextRange(J.createPropertyAssignment(J.getSynthesizedClone(n),J.createPropertyAccess(J.getGeneratedNameForNode(t.parent.parent.parent),J.getSynthesizedClone(t.propertyName||t.name))),e)}}return e}(e)}return e}(n):n;var t},E.onEmitNode=function(e,n,t){if(277===n.kind){var r=J.getOriginalNodeId(n);v=n,y=_[r],h=g[r],(f=b[r])&&delete b[r],a(e,n,t),f=h=y=v=void 0}else a(e,n,t)},E.enableSubstitution(71),E.enableSubstitution(274),E.enableSubstitution(202),E.enableSubstitution(200),E.enableSubstitution(201),E.enableEmitNotification(277);var v,y,h,m,S,x,f,_=[],C=[],g=[],b=[];return J.chainBundle(function(e){if(e.isDeclarationFile||!(J.isEffectiveExternalModule(e,u)||67108864&e.transformFlags))return e;var n=J.getOriginalNodeId(e);x=v=e,y=_[n]=J.collectExternalModuleInfo(e,d,u),h=J.createUniqueName("exports"),g[n]=h,m=J.createUniqueName("context");var t=function(e){for(var n=J.createMap(),t=[],r=0,a=e;r<a.length;r++){var i=a[r],o=J.getExternalModuleNameLiteral(i,v,p,d,u);if(o){var s=o.text,c=n.get(s);void 0!==c?t[c].externalImports.push(i):(n.set(s,t.length),t.push({name:o,externalImports:[i]}))}}return t}(y.externalImports),r=function(e,n){var t=[];c();var r=J.getStrictOptionValue(u,"alwaysStrict")||!u.noImplicitUseStrict&&J.isExternalModule(v),a=J.addPrologue(t,e.statements,r,A);t.push(J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration("__moduleName",void 0,J.createLogicalAnd(m,J.createPropertyAccess(m,"id")))]))),J.visitNode(y.externalHelpersImportDeclaration,A,J.isStatement);var i=J.visitNodes(e.statements,A,J.isStatement,a);J.addRange(t,S),J.addStatementsAfterPrologue(t,l());var o=function(e){if(y.hasExportStarsToExportValues){if(!y.exportedNames&&0===y.exportSpecifiers.size){for(var n=!1,t=0,r=y.externalImports;t<r.length;t++){var a=r[t];if(253===a.kind&&a.exportClause){n=!0;break}}if(!n){var i=D(void 0);return e.push(i),i.name}}var o=[];if(y.exportedNames)for(var s=0,c=y.exportedNames;s<c.length;s++){var l=c[s];"default"!==l.escapedText&&o.push(J.createPropertyAssignment(J.createLiteral(l),J.createTrue()))}for(var u=0,d=y.externalImports;u<d.length;u++){var a=d[u];if(253===a.kind&&a.exportClause)for(var p=0,m=a.exportClause.elements;p<m.length;p++){var f=m[p];o.push(J.createPropertyAssignment(J.createLiteral(J.idText(f.name||f.propertyName)),J.createTrue()))}}var _=J.createUniqueName("exportedNames");e.push(J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(_,void 0,J.createObjectLiteral(o,!0))])));var g=D(_);return e.push(g),g.name}}(t),s=J.createObjectLiteral([J.createPropertyAssignment("setters",function(e,n){for(var t=[],r=0,a=n;r<a.length;r++){for(var i=a[r],o=J.forEach(i.externalImports,function(e){return J.getLocalNameForExternalImport(e,v)}),s=o?J.getGeneratedNameForNode(o):J.createUniqueName(""),c=[],l=0,u=i.externalImports;l<u.length;l++){var d=u[l],p=J.getLocalNameForExternalImport(d,v);switch(d.kind){case 247:if(!d.importClause)break;case 246:J.Debug.assert(void 0!==p),c.push(J.createExpressionStatement(J.createAssignment(p,s)));break;case 253:if(J.Debug.assert(void 0!==p),d.exportClause){for(var m=[],f=0,_=d.exportClause.elements;f<_.length;f++){var g=_[f];m.push(J.createPropertyAssignment(J.createLiteral(J.idText(g.name)),J.createElementAccess(s,J.createLiteral(J.idText(g.propertyName||g.name)))))}c.push(J.createExpressionStatement(J.createCall(h,void 0,[J.createObjectLiteral(m,!0)])))}else c.push(J.createExpressionStatement(J.createCall(e,void 0,[s])))}}t.push(J.createFunctionExpression(void 0,void 0,void 0,void 0,[J.createParameter(void 0,void 0,void 0,s)],void 0,J.createBlock(c,!0)))}return J.createArrayLiteral(t,!0)}(o,n)),J.createPropertyAssignment("execute",J.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,J.createBlock(i,!0)))]);return s.multiLine=!0,t.push(J.createReturn(s)),J.createBlock(t,!0)}(e,t),a=J.createFunctionExpression(void 0,void 0,void 0,void 0,[J.createParameter(void 0,void 0,void 0,h),J.createParameter(void 0,void 0,void 0,m)],void 0,r),i=J.tryGetModuleNameFromFile(e,p,u),o=J.createArrayLiteral(J.map(t,function(e){return e.name})),s=J.setEmitFlags(J.updateSourceFileNode(e,J.setTextRange(J.createNodeArray([J.createExpressionStatement(J.createCall(J.createPropertyAccess(J.createIdentifier("System"),"register"),void 0,i?[i,o,a]:[o,a]))]),e.statements)),1024);return u.outFile||u.out||J.moveEmitHelpers(s,r,function(e){return!e.scoped}),f&&(b[n]=f,f=void 0),x=S=m=h=y=v=void 0,J.aggregateTransformFlags(s)});function D(e){var n=J.createUniqueName("exportStar"),t=J.createIdentifier("m"),r=J.createIdentifier("n"),a=J.createIdentifier("exports"),i=J.createStrictInequality(r,J.createLiteral("default"));return e&&(i=J.createLogicalAnd(i,J.createLogicalNot(J.createCall(J.createPropertyAccess(e,"hasOwnProperty"),void 0,[r])))),J.createFunctionDeclaration(void 0,void 0,void 0,n,void 0,[J.createParameter(void 0,void 0,void 0,t)],void 0,J.createBlock([J.createVariableStatement(void 0,J.createVariableDeclarationList([J.createVariableDeclaration(a,void 0,J.createObjectLiteral([]))])),J.createForIn(J.createVariableDeclarationList([J.createVariableDeclaration(r,void 0)]),t,J.createBlock([J.setEmitFlags(J.createIf(i,J.createExpressionStatement(J.createAssignment(J.createElementAccess(a,r),J.createElementAccess(t,r)))),1)])),J.createExpressionStatement(J.createCall(h,void 0,[a]))],!0))}function A(e){switch(e.kind){case 247:return function(e){var n;if(e.importClause&&T(J.getLocalNameForExternalImport(e,v)),I(e)){var t=J.getOriginalNodeId(e);C[t]=M(C[t],e)}else n=M(n,e);return J.singleOrMany(n)}(e);case 246:return function(e){var n;if(J.Debug.assert(J.isExternalModuleImportEqualsDeclaration(e),"import= for internal module references should be handled in an earlier transformer."),T(J.getLocalNameForExternalImport(e,v)),I(e)){var t=J.getOriginalNodeId(e);C[t]=O(C[t],e)}else n=O(n,e);return J.singleOrMany(n)}(e);case 253:return;case 252:return function(e){if(!e.isExportEquals){var n=J.visitNode(e.expression,H,J.isExpression),t=e.original;if(!t||!I(t))return V(J.createIdentifier("default"),n,!0);var r=J.getOriginalNodeId(e);C[r]=G(C[r],J.createIdentifier("default"),n,!0)}}(e);default:return K(e)}}function L(e){if(J.isBindingPattern(e.name))for(var n=0,t=e.name.elements;n<t.length;n++){var r=t[n];J.isOmittedExpression(r)||L(r)}else T(J.getSynthesizedClone(e.name))}function k(e){return 0==(2097152&J.getEmitFlags(e))&&(277===x.kind||0==(3&J.getOriginalNode(e).flags))}function N(e,n){var t=n?i:o;return J.isBindingPattern(e.name)?J.flattenDestructuringAssignment(e,H,E,0,!1,t):e.initializer?t(e.name,J.visitNode(e.initializer,H,J.isExpression)):e.name}function i(e,n,t){return s(e,n,t,!0)}function o(e,n,t){return s(e,n,t,!1)}function s(e,n,t,r){return T(J.getSynthesizedClone(e)),r?B(e,z(J.setTextRange(J.createAssignment(e,n),t))):z(J.setTextRange(J.createAssignment(e,n),t))}function I(e){return 0!=(4194304&J.getEmitFlags(e))}function M(e,n){if(y.exportEquals)return e;var t=n.importClause;if(!t)return e;t.name&&(e=F(e,t));var r=t.namedBindings;if(r)switch(r.kind){case 249:e=F(e,r);break;case 250:for(var a=0,i=r.elements;a<i.length;a++)e=F(e,i[a])}return e}function O(e,n){return y.exportEquals?e:F(e,n)}function w(e,n,t){if(y.exportEquals)return e;for(var r=0,a=n.declarationList.declarations;r<a.length;r++){var i=a[r];(i.initializer||t)&&(e=P(e,i,t))}return e}function P(e,n,t){if(y.exportEquals)return e;if(J.isBindingPattern(n.name))for(var r=0,a=n.name.elements;r<a.length;r++){var i=a[r];J.isOmittedExpression(i)||(e=P(e,i,t))}else if(!J.isGeneratedIdentifier(n.name)){var o=void 0;t&&(e=G(e,n.name,J.getLocalName(n)),o=J.idText(n.name)),e=F(e,n,o)}return e}function R(e,n){if(y.exportEquals)return e;var t;if(J.hasModifier(n,1)){var r=J.hasModifier(n,512)?J.createLiteral("default"):n.name;e=G(e,r,J.getLocalName(n)),t=J.getTextOfIdentifierOrLiteral(r)}return n.name&&(e=F(e,n,t)),e}function F(e,n,t){if(y.exportEquals)return e;var r=J.getDeclarationName(n),a=y.exportSpecifiers.get(J.idText(r));if(a)for(var i=0,o=a;i<o.length;i++){var s=o[i];s.name.escapedText!==t&&(e=G(e,s.name,r))}return e}function G(e,n,t,r){return e=J.append(e,V(n,t,r))}function V(e,n,t){var r=J.createExpressionStatement(B(e,n));return J.startOnNewLine(r),t||J.setEmitFlags(r,1536),r}function B(e,n){var t=J.isIdentifier(e)?J.createLiteral(e):e;return J.setEmitFlags(n,1536|J.getEmitFlags(n)),J.setCommentRange(J.createCall(h,void 0,[t,n]),n)}function K(e){switch(e.kind){case 217:return function(e){if(!k(e.declarationList))return J.visitNode(e,H,J.isStatement);for(var n,t,r=J.hasModifier(e,1),a=I(e),i=0,o=e.declarationList.declarations;i<o.length;i++){var s=o[i];s.initializer?n=J.append(n,N(s,r&&!a)):L(s)}if(n&&(t=J.append(t,J.setTextRange(J.createExpressionStatement(J.inlineExpressions(n)),e))),a){var c=J.getOriginalNodeId(e);C[c]=w(C[c],e,r)}else t=w(t,e,!1);return J.singleOrMany(t)}(e);case 237:return function(e){if(S=J.hasModifier(e,1)?J.append(S,J.updateFunctionDeclaration(e,e.decorators,J.visitNodes(e.modifiers,W,J.isModifier),e.asteriskToken,J.getDeclarationName(e,!0,!0),void 0,J.visitNodes(e.parameters,H,J.isParameterDeclaration),void 0,J.visitNode(e.body,H,J.isBlock))):J.append(S,J.visitEachChild(e,H,E)),I(e)){var n=J.getOriginalNodeId(e);C[n]=R(C[n],e)}else S=R(S,e)}(e);case 238:return function(e){var n,t=J.getLocalName(e);if(T(t),n=J.append(n,J.setTextRange(J.createExpressionStatement(J.createAssignment(t,J.setTextRange(J.createClassExpression(void 0,e.name,void 0,J.visitNodes(e.heritageClauses,H,J.isHeritageClause),J.visitNodes(e.members,H,J.isClassElement)),e))),e)),I(e)){var r=J.getOriginalNodeId(e);C[r]=R(C[r],e)}else n=R(n,e);return J.singleOrMany(n)}(e);case 223:return b=x,x=h=e,h=J.updateFor(h,h.initializer&&j(h.initializer),J.visitNode(h.condition,H,J.isExpression),J.visitNode(h.incrementor,H,J.isExpression),J.visitNode(h.statement,K,J.isStatement)),x=b,h;case 224:return y=x,x=v=e,v=J.updateForIn(v,j(v.initializer),J.visitNode(v.expression,H,J.isExpression),J.visitNode(v.statement,K,J.isStatement,J.liftToBlock)),x=y,v;case 225:return g=x,x=_=e,_=J.updateForOf(_,_.awaitModifier,j(_.initializer),J.visitNode(_.expression,H,J.isExpression),J.visitNode(_.statement,K,J.isStatement,J.liftToBlock)),x=g,_;case 221:return f=e,J.updateDo(f,J.visitNode(f.statement,K,J.isStatement,J.liftToBlock),J.visitNode(f.expression,H,J.isExpression));case 222:return m=e,J.updateWhile(m,J.visitNode(m.expression,H,J.isExpression),J.visitNode(m.statement,K,J.isStatement,J.liftToBlock));case 231:return p=e,J.updateLabel(p,p.label,J.visitNode(p.statement,K,J.isStatement,J.liftToBlock));case 229:return d=e,J.updateWith(d,J.visitNode(d.expression,H,J.isExpression),J.visitNode(d.statement,K,J.isStatement,J.liftToBlock));case 230:return u=e,J.updateSwitch(u,J.visitNode(u.expression,H,J.isExpression),J.visitNode(u.caseBlock,K,J.isCaseBlock));case 244:return l=x,x=c=e,c=J.updateCaseBlock(c,J.visitNodes(c.clauses,K,J.isCaseOrDefaultClause)),x=l,c;case 269:return s=e,J.updateCaseClause(s,J.visitNode(s.expression,H,J.isExpression),J.visitNodes(s.statements,K,J.isStatement));case 270:return o=e,J.visitEachChild(o,K,E);case 233:return i=e,J.visitEachChild(i,K,E);case 272:return a=x,x=r=e,r=J.updateCatchClause(r,r.variableDeclaration,J.visitNode(r.block,K,J.isBlock)),x=a,r;case 216:return t=x,x=n=e,n=J.visitEachChild(n,K,E),x=t,n;case 308:return function(e){if(I(e)&&217===e.original.kind){var n=J.getOriginalNodeId(e),t=J.hasModifier(e.original,1);C[n]=w(C[n],e.original,t)}return e}(e);case 309:return function(e){var n=J.getOriginalNodeId(e),t=C[n];if(t)return delete C[n],J.append(t,e);var r=J.getOriginalNode(e);return J.isModuleOrEnumDeclaration(r)?J.append(F(t,r),e):e}(e);default:return H(e)}var n,t,r,a,i,o,s,c,l,u,d,p,m,f,_,g,v,y,h,b}function j(e){if(i=e,J.isVariableDeclarationList(i)&&k(i)){for(var n=void 0,t=0,r=e.declarations;t<r.length;t++){var a=r[t];n=J.append(n,N(a,!1)),a.initializer||L(a)}return n?J.inlineExpressions(n):J.createOmittedExpression()}return J.visitEachChild(e,K,E);var i}function H(e){return 1024&e.transformFlags&&202===e.kind?U((n=e).left)?J.flattenDestructuringAssignment(n,H,E,0,!0):J.visitEachChild(n,H,E):J.isImportCall(e)?(t=e,J.createCall(J.createPropertyAccess(m,J.createIdentifier("import")),void 0,J.some(t.arguments)?[J.visitNode(t.arguments[0],H)]:[])):2048&e.transformFlags||67108864&e.transformFlags?J.visitEachChild(e,H,E):e;var n,t}function U(e){if(J.isAssignmentExpression(e,!0))return U(e.left);if(J.isSpreadElement(e))return U(e.expression);if(J.isObjectLiteralExpression(e))return J.some(e.properties,U);if(J.isArrayLiteralExpression(e))return J.some(e.elements,U);if(J.isShorthandPropertyAssignment(e))return U(e.name);if(J.isPropertyAssignment(e))return U(e.initializer);if(J.isIdentifier(e)){var n=d.getReferencedExportContainer(e);return void 0!==n&&277===n.kind}return!1}function W(e){switch(e.kind){case 84:case 79:return}return e}function q(e){var n;if(!J.isGeneratedIdentifier(e)){var t=d.getReferencedImportDeclaration(e)||d.getReferencedValueDeclaration(e);if(t){var r=d.getReferencedExportContainer(e,!1);r&&277===r.kind&&(n=J.append(n,J.getDeclarationName(t))),n=J.addRange(n,y&&y.exportedBindings[J.getOriginalNodeId(t)])}}return n}function z(e){return void 0===f&&(f=[]),f[J.getNodeId(e)]=!0,e}}}(ts||(ts={})),function(c){c.transformES2015Module=function(i){var r,o=i.getCompilerOptions(),a=i.onEmitNode,t=i.onSubstituteNode;return i.onEmitNode=function(e,n,t){c.isSourceFile(n)?(a(e,r=n,t),r=void 0):a(e,n,t)},i.onSubstituteNode=function(e,n){return n=t(e,n),c.isIdentifier(n)&&1===e?function(e){if(4096&c.getEmitFlags(e)){var n=c.getExternalHelpersModuleName(r);if(n)return c.createPropertyAccess(n,e)}return e}(n):n},i.enableEmitNotification(277),i.enableSubstitution(71),c.chainBundle(function(e){if(e.isDeclarationFile)return e;if(c.isExternalModule(e)||o.isolatedModules){var n=c.getOrCreateExternalHelpersModuleNameIfNeeded(e,o);if(n){var t=[],r=c.addPrologue(t,e.statements),a=c.createImportDeclaration(void 0,void 0,c.createImportClause(void 0,c.createNamespaceImport(n)),c.createLiteral(c.externalHelpersModuleNameText));return c.addEmitFlags(a,67108864),c.append(t,a),c.addRange(t,c.visitNodes(e.statements,s,c.isStatement,r)),c.updateSourceFileNode(e,c.setTextRange(c.createNodeArray(t),e.statements))}return c.visitEachChild(e,s,i)}return e});function s(e){switch(e.kind){case 246:return;case 252:return(n=e).isExportEquals?void 0:n}var n;return e}}}(ts||(ts={})),function(a){function e(r){return a.isVariableDeclaration(r)||a.isPropertyDeclaration(r)||a.isPropertySignature(r)||a.isBindingElement(r)||a.isConstructorDeclaration(r)?e:a.isSetAccessor(r)||a.isGetAccessor(r)?function(e){var n;n=157===r.kind?a.hasModifier(r,32)?e.errorModuleName?a.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?a.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:a.hasModifier(r,32)?e.errorModuleName?2===e.accessibility?a.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:a.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?2===e.accessibility?a.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:n,errorNode:r.name,typeName:r.name}}:a.isConstructSignatureDeclaration(r)||a.isCallSignatureDeclaration(r)||a.isMethodDeclaration(r)||a.isMethodSignature(r)||a.isFunctionDeclaration(r)||a.isIndexSignatureDeclaration(r)?function(e){var n;switch(r.kind){case 159:n=e.errorModuleName?a.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 158:n=e.errorModuleName?a.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 160:n=e.errorModuleName?a.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 154:case 153:n=a.hasModifier(r,32)?e.errorModuleName?2===e.accessibility?a.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:a.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:a.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:238===r.parent.kind?e.errorModuleName?2===e.accessibility?a.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:a.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:a.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:e.errorModuleName?a.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:a.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 237:n=e.errorModuleName?2===e.accessibility?a.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:a.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:a.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return a.Debug.fail("This is unknown kind for signature: "+r.kind)}return{diagnosticMessage:n,errorNode:r.name||r}}:a.isParameter(r)?a.isParameterPropertyDeclaration(r)&&a.hasModifier(r.parent,8)?e:function(e){var n=function(e){switch(r.parent.kind){case 155:return e.errorModuleName?2===e.accessibility?a.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 159:case 164:return e.errorModuleName?a.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 158:return e.errorModuleName?a.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 160:return e.errorModuleName?a.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 154:case 153:return a.hasModifier(r.parent,32)?e.errorModuleName?2===e.accessibility?a.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:238===r.parent.parent.kind?e.errorModuleName?2===e.accessibility?a.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.errorModuleName?a.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 237:case 163:return e.errorModuleName?2===e.accessibility?a.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:return a.Debug.fail("Unknown parent for parameter: "+a.SyntaxKind[r.parent.kind])}}(e);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:a.isTypeParameterDeclaration(r)?function(){var e;switch(r.parent.kind){case 238:e=a.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 239:e=a.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 159:e=a.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 158:e=a.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 154:case 153:e=a.hasModifier(r.parent,32)?a.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:238===r.parent.parent.kind?a.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:a.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 237:e=a.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 240:e=a.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return a.Debug.fail("This is unknown parent for type parameter: "+r.parent.kind)}return{diagnosticMessage:e,errorNode:r,typeName:r.name}}:a.isExpressionWithTypeArguments(r)?function(){var e;e=238===r.parent.parent.kind?108===r.parent.token?a.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:a.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:a.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:e,errorNode:r,typeName:a.getNameOfDeclaration(r.parent.parent)}}:a.isImportEqualsDeclaration(r)?function(){return{diagnosticMessage:a.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:r,typeName:r.name}}:a.isTypeAliasDeclaration(r)?function(){return{diagnosticMessage:a.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:r.type,typeName:r.name}}:a.Debug.assertNever(r,"Attempted to set a declaration diagnostic context for unhandled node kind: "+a.SyntaxKind[r.kind]);function e(e){var n,t=(n=e,235===r.kind||184===r.kind?n.errorModuleName?2===n.accessibility?a.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:152===r.kind||151===r.kind||149===r.kind&&a.hasModifier(r.parent,8)?a.hasModifier(r,32)?n.errorModuleName?2===n.accessibility?a.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:238===r.parent.kind||149===r.kind?n.errorModuleName?2===n.accessibility?a.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?a.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0);return void 0!==t?{diagnosticMessage:t,errorNode:r,typeName:r.name}:void 0}}a.canProduceDiagnostics=function(e){return a.isVariableDeclaration(e)||a.isPropertyDeclaration(e)||a.isPropertySignature(e)||a.isBindingElement(e)||a.isSetAccessor(e)||a.isGetAccessor(e)||a.isConstructSignatureDeclaration(e)||a.isCallSignatureDeclaration(e)||a.isMethodDeclaration(e)||a.isMethodSignature(e)||a.isFunctionDeclaration(e)||a.isParameter(e)||a.isTypeParameterDeclaration(e)||a.isExpressionWithTypeArguments(e)||a.isImportEqualsDeclaration(e)||a.isTypeAliasDeclaration(e)||a.isConstructorDeclaration(e)||a.isIndexSignatureDeclaration(e)},a.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return a.isSetAccessor(r)||a.isGetAccessor(r)?function(e){var n,t=(n=e,a.hasModifier(r,32)?n.errorModuleName?2===n.accessibility?a.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:238===r.parent.kind?n.errorModuleName?2===n.accessibility?a.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?a.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1);return void 0!==t?{diagnosticMessage:t,errorNode:r,typeName:r.name}:void 0}:a.isMethodSignature(r)||a.isMethodDeclaration(r)?function(e){var n,t=(n=e,a.hasModifier(r,32)?n.errorModuleName?2===n.accessibility?a.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:238===r.parent.kind?n.errorModuleName?2===n.accessibility?a.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:a.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?a.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:a.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1);return void 0!==t?{diagnosticMessage:t,errorNode:r,typeName:r.name}:void 0}:e(r)},a.createGetSymbolAccessibilityDiagnosticForNode=e}(ts||(ts={})),function(re){re.getDeclarationDiagnostics=function(e,n,t){if(t&&re.isSourceFileJS(t))return[];var r=e.getCompilerOptions();return re.transformNodes(n,e,r,t?[t]:re.filter(e.getSourceFiles(),re.isSourceFileNotJS),[a],!1).diagnostics};var ae=531469;function a(v){var C,g,y,D,h,b,E,T,S,x,A=function(){return re.Debug.fail("Diagnostic emitted without context")},L=A,k=!0,N=!1,I=!1,M=!1,O=!1,w=v.getEmitHost(),P={trackSymbol:function(e,n,t){if(262144&e.flags)return;r(R.isSymbolAccessible(e,n,t,!0)),a(R.getTypeReferenceDirectivesForSymbol(e,t))},reportInaccessibleThisError:function(){E&&v.addDiagnostic(re.createDiagnosticForNode(E,re.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,re.declarationNameToString(E),"this"))},reportInaccessibleUniqueSymbolError:function(){E&&v.addDiagnostic(re.createDiagnosticForNode(E,re.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,re.declarationNameToString(E),"unique symbol"))},reportPrivateInBaseOfClassExpression:function(e){E&&v.addDiagnostic(re.createDiagnosticForNode(E,re.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,e))},moduleResolverHost:w,trackReferencedAmbientModule:function(e,n){var t=R.getTypeReferenceDirectivesForSymbol(n,67108863);if(re.length(t))return a(t);var r=re.getSourceFileOfNode(e);S.set(""+re.getOriginalNodeId(r),r)},trackExternalModuleSymbolOfImportTypeNode:function(e){N||(b||(b=[])).push(e)}},R=v.getEmitResolver(),e=v.getCompilerOptions(),c=re.getNewLineCharacter(e),n=e.noResolve,t=e.stripInternal;return function(o){if(277===o.kind&&(o.isDeclarationFile||re.isSourceFileJS(o)))return o;if(278===o.kind){N=!0,S=re.createMap(),x=re.createMap();var a=!1,e=re.createBundle(re.map(o.sourceFiles,function(e){if(!e.isDeclarationFile&&!re.isSourceFileJS(e)){if(a=a||e.hasNoDefaultLib,C=T=e,y=void 0,h=!1,D=re.createMap(),L=A,O=M=!1,F(e,S),G(e,x),re.isExternalModule(e)){k=I=!1;var n=re.visitNodes(e.statements,Q),t=re.updateSourceFileNode(e,[re.createModuleDeclaration([],[re.createModifier(124)],re.createLiteral(re.getResolvedExternalModuleName(v.getEmitHost(),e)),re.createModuleBlock(re.setTextRange(re.createNodeArray(X(n)),e.statements)))],!0,[],[],!1,[]);return t}k=!0;var r=re.visitNodes(e.statements,Q);return re.updateSourceFileNode(e,X(r),!0,[],[],!1,[])}}),re.mapDefined(o.prepends,function(e){if(280===e.kind)return re.createUnparsedSourceFile(e.declarationText,e.declarationMapPath,e.declarationMapText)}));e.syntheticFileReferences=[],e.syntheticTypeReferences=m(),e.syntheticLibReferences=p(),e.hasNoDefaultLib=a;var n=re.getDirectoryPath(re.normalizeSlashes(re.getOutputPathsFor(o,w,!0).declarationFilePath)),t=_(e.syntheticFileReferences,n);return S.forEach(t),e}k=!0,T=C=o,L=A,h=I=N=O=M=!1,y=void 0,D=re.createMap(),g=void 0,S=F(T,re.createMap()),x=G(T,re.createMap());var r=[],i=re.getDirectoryPath(re.normalizeSlashes(re.getOutputPathsFor(o,w,!0).declarationFilePath)),s=_(r,i),c=re.visitNodes(o.statements,Q),l=re.setTextRange(re.createNodeArray(X(c)),o.statements);S.forEach(s);var u=re.filter(l,re.isAnyImportSyntax);re.isExternalModule(o)&&(!I||M&&!O)&&(l=re.setTextRange(re.createNodeArray(l.concat([re.createExportDeclaration(void 0,void 0,re.createNamedExports([]),void 0)])),l));var d=re.updateSourceFileNode(o,l,!0,r,m(),o.hasNoDefaultLib,p());return d.exportedModulesFromDeclarationEmit=b,d;function p(){return re.map(re.arrayFrom(x.keys()),function(e){return{fileName:e,pos:-1,end:-1}})}function m(){return g?re.mapDefined(re.arrayFrom(g.keys()),f):[]}function f(e){if(u)for(var n=0,t=u;n<t.length;n++){var r=t[n];if(re.isImportEqualsDeclaration(r)&&re.isExternalModuleReference(r.moduleReference)){var a=r.moduleReference.expression;if(re.isStringLiteralLike(a)&&a.text===e)return}else if(re.isImportDeclaration(r)&&re.isStringLiteral(r.moduleSpecifier)&&r.moduleSpecifier.text===e)return}return{fileName:e,pos:-1,end:-1}}function _(a,i){return function(e){var n;if(e.isDeclarationFile)n=e.fileName;else{if(N&&re.contains(o.sourceFiles,e))return;var t=re.getOutputPathsFor(e,w,!0);n=t.declarationFilePath||t.jsFilePath}if(n){var r=re.getRelativePathToDirectoryOrUrl(i,n,w.getCurrentDirectory(),w.getCanonicalFileName,!1);if(re.startsWith(r,"./")&&re.hasExtension(r)&&(r=r.substring(2)),re.startsWith(r,"node_modules/")||-1!==r.indexOf("/node_modules/"))return;a.push({pos:-1,end:-1,fileName:r})}}}};function a(e){if(e){g=g||re.createMap();for(var n=0,t=e;n<t.length;n++){var r=t[n];g.set(r,!0)}}}function r(e){if(0===e.accessibility){if(e&&e.aliasesToMakeVisible)if(y)for(var n=0,t=e.aliasesToMakeVisible;n<t.length;n++){var r=t[n];re.pushIfUnique(y,r)}else y=e.aliasesToMakeVisible}else{var a=L(e);a&&(a.typeName?v.addDiagnostic(re.createDiagnosticForNode(e.errorNode||a.errorNode,a.diagnosticMessage,re.getTextOfNode(a.typeName),e.errorSymbolName,e.errorModuleName)):v.addDiagnostic(re.createDiagnosticForNode(e.errorNode||a.errorNode,a.diagnosticMessage,e.errorSymbolName,e.errorModuleName)))}}function F(t,r){return n||re.isSourceFileJS(t)||re.forEach(t.referencedFiles,function(e){var n=re.tryResolveScriptReference(w,t,e);n&&r.set(""+re.getOriginalNodeId(n),n)}),r}function G(e,n){return re.forEach(e.libReferenceDirectives,function(e){w.getLibFileFromReference(e)&&n.set(e.fileName.toLocaleLowerCase(),!0)}),n}function i(e,n){var t;h||(t=L,L=re.createGetSymbolAccessibilityDiagnosticForNode(e));var r=re.updateParameter(e,void 0,m(e,n),e.dotDotDotToken,function n(e){return 71===e.kind?e:183===e.kind?re.updateArrayBindingPattern(e,re.visitNodes(e.elements,t)):re.updateObjectBindingPattern(e,re.visitNodes(e.elements,t));function t(e){return 208===e.kind?e:re.updateBindingElement(e,e.dotDotDotToken,e.propertyName,n(e.name),o(e)?e.initializer:void 0)}}(e.name),R.isOptionalParameter(e)?e.questionToken||re.createToken(55):void 0,B(e,e.type,!0),V(e));return h||(L=t),r}function o(e){return function(e){switch(e.kind){case 152:case 151:return!re.hasModifier(e,8);case 149:case 235:return!0}return!1}(e)&&R.isLiteralConstDeclaration(re.getParseTreeNode(e))}function V(e){if(o(e))return R.createLiteralConstValue(re.getParseTreeNode(e))}function B(e,n,t){if((t||!re.hasModifier(e,8))&&!o(e)){var r,a=149===e.kind&&(R.isRequiredInitializedParameter(e)||R.isOptionalUninitializedParameterProperty(e));return n&&!a?re.visitNode(n,Y):re.getParseTreeNode(e)?157===e.kind?re.createKeywordTypeNode(119):(E=e.name,h||(r=L,L=re.createGetSymbolAccessibilityDiagnosticForNode(e)),235===e.kind||184===e.kind?i(R.createTypeOfDeclaration(e,C,ae,P)):149===e.kind||152===e.kind||151===e.kind?e.initializer?i(R.createTypeOfDeclaration(e,C,ae,P,a)||R.createTypeOfExpression(e.initializer,C,ae,P)):i(R.createTypeOfDeclaration(e,C,ae,P,a)):i(R.createReturnTypeOfSignatureDeclaration(e,C,ae,P))):n?re.visitNode(n,Y):re.createKeywordTypeNode(119)}function i(e){return E=void 0,h||(L=r),e||re.createKeywordTypeNode(119)}}function K(e){switch((e=re.getParseTreeNode(e)).kind){case 237:case 242:case 239:case 238:case 240:case 241:return!R.isDeclarationVisible(e);case 235:return!j(e);case 246:case 247:case 253:case 252:return!1}return!1}function j(e){return!re.isOmittedExpression(e)&&(re.isBindingPattern(e.name)?re.some(e.name.elements,j):R.isDeclarationVisible(e))}function H(e,n,t){if(!re.hasModifier(e,8)){var r=re.map(n,function(e){return i(e,t)});if(r)return re.createNodeArray(r,n.hasTrailingComma)}}function U(e,n){return re.hasModifier(e,8)?void 0:re.visitNodes(n,Y)}function W(e){return re.isSourceFile(e)||re.isTypeAliasDeclaration(e)||re.isModuleDeclaration(e)||re.isClassDeclaration(e)||re.isInterfaceDeclaration(e)||re.isFunctionLike(e)||re.isIndexSignatureDeclaration(e)||re.isMappedTypeNode(e)}function q(e,n){r(R.isEntityNameVisible(e,n)),a(R.getTypeReferenceDirectivesForEntityName(e))}function z(e,n){return re.hasJSDocNodes(e)&&re.hasJSDocNodes(n)&&(e.jsDoc=n.jsDoc),re.setCommentRange(e,re.getCommentRange(n))}function J(e,n){if(n){if(I=I||242!==e.kind&&181!==e.kind,re.isStringLiteralLike(n))if(N){var t=re.getExternalModuleNameFromDeclaration(v.getEmitHost(),R,e);if(t)return re.createLiteral(t)}else{var r=R.getSymbolOfExternalModuleSpecifier(n);r&&(b||(b=[])).push(r)}return n}}function X(e){for(;re.length(y);){var n=y.shift();if(!re.isLateVisibilityPaintedStatement(n))return re.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: "+(re.SyntaxKind?re.SyntaxKind[n.kind]:n.kind));var t=u(n,!0);D.set(""+re.getOriginalNodeId(n),t)}return re.visitNodes(e,function(e){if(re.isLateVisibilityPaintedStatement(e)){var n=""+re.getOriginalNodeId(e);if(D.has(n)){var t=D.get(n);return D.delete(n),t&&re.isSourceFile(e.parent)&&((re.isArray(t)?re.some(t,l):l(t))&&(M=!0),(re.isArray(t)?re.some(t,s):s(t))&&(I=!0)),t}}return e})}function s(e){return re.isAnyImportOrReExport(e)||re.isExportAssignment(e)||re.hasModifier(e,1)}function l(e){return!(re.isAnyImportOrReExport(e)||re.isExportAssignment(e)||re.hasModifier(e,1)||re.isAmbientModule(e))}function Y(n){if(!$(n)){if(re.isDeclaration(n)){if(K(n))return;if(re.hasDynamicName(n)&&!R.isLateBound(re.getParseTreeNode(n)))return}if(!(re.isFunctionLike(n)&&R.isImplementationOfOverload(n)||re.isSemicolonClassElement(n))){var t;W(n)&&(t=C,C=n);var r=L;if((re.isMethodDeclaration(n)||re.isMethodSignature(n))&&re.hasModifier(n,8)){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations[0]!==n)return;return g(re.createProperty(void 0,ee(n),n.name,void 0,void 0,void 0))}var a=re.canProduceDiagnostics(n);a&&!h&&(L=re.createGetSymbolAccessibilityDiagnosticForNode(n)),re.isTypeQueryNode(n)&&q(n.exprName,C);var e,i=h,o=(166===n.kind||179===n.kind)&&240!==n.parent.kind;if(o&&(h=!0),function(e){switch(e.kind){case 159:case 155:case 154:case 156:case 157:case 152:case 151:case 153:case 158:case 160:case 235:case 148:case 209:case 162:case 173:case 163:case 164:case 181:return!0}return!1}(n))switch(n.kind){case 209:(re.isEntityName(n.expression)||re.isEntityNameExpression(n.expression))&&q(n.expression,C);var s=re.visitEachChild(n,Y,v);return g(re.updateExpressionWithTypeArguments(s,re.parenthesizeTypeParameters(s.typeArguments),s.expression));case 162:q(n.typeName,C);s=re.visitEachChild(n,Y,v);return g(re.updateTypeReferenceNode(s,s.typeName,re.parenthesizeTypeParameters(s.typeArguments)));case 159:return g(re.updateConstructSignature(n,U(n,n.typeParameters),H(n,n.parameters),B(n,n.type)));case 155:var c=re.hasModifier(n,8),l=re.createSignatureDeclaration(155,c?void 0:U(n,n.typeParameters),c?void 0:H(n,n.parameters,0),void 0);return l.modifiers=re.createNodeArray(ee(n)),g(l);case 154:var u=re.createSignatureDeclaration(153,U(n,n.typeParameters),H(n,n.parameters),B(n,n.type));return u.name=n.name,u.modifiers=re.createNodeArray(ee(n)),u.questionToken=n.questionToken,g(u);case 156:case 157:return g(ne(n));case 152:return g(re.updateProperty(n,void 0,ee(n),n.name,n.questionToken,re.hasModifier(n,8)?void 0:B(n,n.type),V(n)));case 151:return g(re.updatePropertySignature(n,ee(n),n.name,n.questionToken,re.hasModifier(n,8)?void 0:B(n,n.type),V(n)));case 153:return g(re.updateMethodSignature(n,U(n,n.typeParameters),H(n,n.parameters),B(n,n.type),n.name,n.questionToken));case 158:return g(re.updateCallSignature(n,U(n,n.typeParameters),H(n,n.parameters),B(n,n.type)));case 160:return g(re.updateIndexSignature(n,void 0,ee(n),H(n,n.parameters),re.visitNode(n.type,Y)||re.createKeywordTypeNode(119)));case 235:return re.isBindingPattern(n.name)?Z(n.name):(h=o=!0,g(re.updateVariableDeclaration(n,n.name,B(n,n.type),V(n))));case 148:return 154===(e=n).parent.kind&&re.hasModifier(e.parent,8)&&(n.default||n.constraint)?g(re.updateTypeParameterDeclaration(n,n.name,void 0,void 0)):g(re.visitEachChild(n,Y,v));case 173:var d=re.visitNode(n.checkType,Y),p=re.visitNode(n.extendsType,Y),m=C;C=n.trueType;var f=re.visitNode(n.trueType,Y);C=m;var _=re.visitNode(n.falseType,Y);return g(re.updateConditionalTypeNode(n,d,p,f,_));case 163:return g(re.updateFunctionTypeNode(n,re.visitNodes(n.typeParameters,Y),H(n,n.parameters),re.visitNode(n.type,Y)));case 164:return g(re.updateConstructorTypeNode(n,re.visitNodes(n.typeParameters,Y),H(n,n.parameters),re.visitNode(n.type,Y)));case 181:return re.isLiteralImportTypeNode(n)?g(re.updateImportTypeNode(n,re.updateLiteralTypeNode(n.argument,J(n,n.argument.literal)),n.qualifier,re.visitNodes(n.typeArguments,Y,re.isTypeNode),n.isTypeOf)):g(n);default:re.Debug.assertNever(n,"Attempted to process unhandled node kind: "+re.SyntaxKind[n.kind])}return g(re.visitEachChild(n,Y,v))}}function g(e){return e&&a&&re.hasDynamicName(n)&&function(e){var n;h||(n=L,L=re.createGetSymbolAccessibilityDiagnosticForNodeName(e));E=e.name,re.Debug.assert(R.isLateBound(re.getParseTreeNode(e))),q(e.name.expression,C),h||(L=n);E=void 0}(n),W(n)&&(C=t),a&&!h&&(L=r),o&&(h=i),e===n?e:e&&re.setOriginalNode(z(e,n),n)}}function Q(e){if(function(e){switch(e.kind){case 237:case 242:case 246:case 239:case 238:case 240:case 241:case 217:case 247:case 253:case 252:return!0}return!1}(e)&&!$(e)){switch(e.kind){case 253:return re.isSourceFile(e.parent)&&(O=I=!0),re.updateExportDeclaration(e,void 0,e.modifiers,e.exportClause,J(e,e.moduleSpecifier));case 252:if(re.isSourceFile(e.parent)&&(O=I=!0),71===e.expression.kind)return e;var n=re.createOptimisticUniqueName("_default");L=function(){return{diagnosticMessage:re.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:e}};var t=re.createVariableDeclaration(n,R.createTypeOfExpression(e.expression,e,ae,P),void 0);return[re.createVariableStatement(k?[re.createModifier(124)]:[],re.createVariableDeclarationList([t],2)),re.updateExportAssignment(e,e.decorators,e.modifiers,n)]}var r=u(e);return D.set(""+re.getOriginalNodeId(e),r),e}}function u(n,e){if(!$(n)){switch(n.kind){case 246:return function(e){if(R.isDeclarationVisible(e)){if(257===e.moduleReference.kind){var n=re.getExternalModuleImportEqualsDeclarationExpression(e);return re.updateImportEqualsDeclaration(e,void 0,e.modifiers,e.name,re.updateExternalModuleReference(e.moduleReference,J(e,n)))}var t=L;return L=re.createGetSymbolAccessibilityDiagnosticForNode(e),q(e.moduleReference,C),L=t,e}}(n);case 247:return function(e){if(!e.importClause)return re.updateImportDeclaration(e,void 0,e.modifiers,e.importClause,J(e,e.moduleSpecifier));var n=e.importClause&&e.importClause.name&&R.isDeclarationVisible(e.importClause)?e.importClause.name:void 0;if(!e.importClause.namedBindings)return n&&re.updateImportDeclaration(e,void 0,e.modifiers,re.updateImportClause(e.importClause,n,void 0),J(e,e.moduleSpecifier));if(249===e.importClause.namedBindings.kind){var t=R.isDeclarationVisible(e.importClause.namedBindings)?e.importClause.namedBindings:void 0;return n||t?re.updateImportDeclaration(e,void 0,e.modifiers,re.updateImportClause(e.importClause,n,t),J(e,e.moduleSpecifier)):void 0}var r=re.mapDefined(e.importClause.namedBindings.elements,function(e){return R.isDeclarationVisible(e)?e:void 0});return r&&r.length||n?re.updateImportDeclaration(e,void 0,e.modifiers,re.updateImportClause(e.importClause,n,r&&r.length?re.updateNamedImports(e.importClause.namedBindings,r):void 0),J(e,e.moduleSpecifier)):void 0}(n)}if(!(re.isDeclaration(n)&&K(n)||re.isFunctionLike(n)&&R.isImplementationOfOverload(n))){var t;W(n)&&(t=C,C=n);var r=re.canProduceDiagnostics(n),a=L;r&&(L=re.createGetSymbolAccessibilityDiagnosticForNode(n));var i=k;switch(n.kind){case 240:return x(re.updateTypeAliasDeclaration(n,void 0,ee(n,e),n.name,re.visitNodes(n.typeParameters,Y,re.isTypeParameterDeclaration),re.visitNode(n.type,Y,re.isTypeNode)));case 239:return x(re.updateInterfaceDeclaration(n,void 0,ee(n,e),n.name,U(n,n.typeParameters),te(n.heritageClauses),re.visitNodes(n.members,Y)));case 237:var o=x(re.updateFunctionDeclaration(n,void 0,ee(n,e),void 0,n.name,U(n,n.typeParameters),H(n,n.parameters),B(n,n.type),void 0));if(o&&R.isExpandoFunctionDeclaration(n)){var s=re.mapDefined(R.getPropertiesOfContainerFunction(n),function(e){if(re.isPropertyAccessExpression(e.valueDeclaration)){var n=R.createTypeOfDeclaration(e.valueDeclaration,C,ae,P),t=re.createVariableDeclaration(re.unescapeLeadingUnderscores(e.escapedName),n,void 0);return re.createVariableStatement(void 0,re.createVariableDeclarationList([t]))}});return[o,re.createModuleDeclaration(void 0,ee(n,e),n.name,re.createModuleBlock(s),16)]}return o;case 242:k=!1;var c=n.body;if(c&&243===c.kind){var l=re.visitNodes(c.statements,Q),u=re.updateModuleBlock(c,X(l));k=i;var d=ee(n,e);return x(re.updateModuleDeclaration(n,void 0,d,re.isExternalModuleAugmentation(n)?J(n,n.name):n.name,u))}k=i;d=ee(n,e);k=!1,re.visitNode(c,Q);var p=""+re.getOriginalNodeId(c);u=D.get(p);return D.delete(p),x(re.updateModuleDeclaration(n,void 0,d,n.name,u));case 238:var m=re.createNodeArray(ee(n,e)),f=U(n,n.typeParameters),_=re.getFirstConstructorWithBody(n),g=void 0;if(_){var v=L;g=re.compact(re.flatMap(_.parameters,function(o){if(re.hasModifier(o,92))return L=re.createGetSymbolAccessibilityDiagnosticForNode(o),71===o.name.kind?z(re.createProperty(void 0,ee(o),o.name,o.questionToken,B(o,o.type),V(o)),o):function e(n){var t;for(var r=0,a=n.elements;r<a.length;r++){var i=a[r];re.isOmittedExpression(i)||(re.isBindingPattern(i.name)&&(t=re.concatenate(t,e(i.name))),(t=t||[]).push(re.createProperty(void 0,ee(o),i.name,void 0,B(i,void 0),void 0)))}return t}(o.name)})),L=v}var y=re.createNodeArray(re.concatenate(g,re.visitNodes(n.members,Y))),h=re.getEffectiveBaseTypeNode(n);if(h&&!re.isEntityNameExpression(h.expression)&&95!==h.expression.kind){var b=re.createOptimisticUniqueName(re.unescapeLeadingUnderscores(n.name.escapedText)+"_base");L=function(){return{diagnosticMessage:re.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:h,typeName:n.name}};var E=re.createVariableDeclaration(b,R.createTypeOfExpression(h.expression,n,ae,P),void 0),T=re.createVariableStatement(k?[re.createModifier(124)]:[],re.createVariableDeclarationList([E],2)),S=re.createNodeArray(re.map(n.heritageClauses,function(e){if(85!==e.token)return re.updateHeritageClause(e,re.visitNodes(re.createNodeArray(re.filter(e.types,function(e){return re.isEntityNameExpression(e.expression)||95===e.expression.kind})),Y));var n=L;L=re.createGetSymbolAccessibilityDiagnosticForNode(e.types[0]);var t=re.updateHeritageClause(e,re.map(e.types,function(e){return re.updateExpressionWithTypeArguments(e,re.visitNodes(e.typeArguments,Y),b)}));return L=n,t}));return[T,x(re.updateClassDeclaration(n,void 0,m,n.name,f,S,y))]}S=te(n.heritageClauses);return x(re.updateClassDeclaration(n,void 0,m,n.name,f,S,y));case 217:return x(function(e,n){if(!re.forEach(e.declarationList.declarations,j))return;var t=re.visitNodes(e.declarationList.declarations,Y);if(!re.length(t))return;return re.updateVariableStatement(e,re.createNodeArray(ee(e,n)),re.updateVariableDeclarationList(e.declarationList,t))}(n,e));case 241:return x(re.updateEnumDeclaration(n,void 0,re.createNodeArray(ee(n,e)),n.name,re.createNodeArray(re.mapDefined(n.members,function(e){if(!$(e)){var n=R.getConstantValue(e);return z(re.updateEnumMember(e,e.name,void 0!==n?re.createLiteral(n):void 0),e)}}))))}return re.Debug.assertNever(n,"Unhandled top-level node in declaration emit: "+re.SyntaxKind[n.kind])}}function x(e){return W(n)&&(C=t),r&&(L=a),242===n.kind&&(k=i),e===n?e:e&&re.setOriginalNode(z(e,n),n)}}function Z(e){return re.flatten(re.mapDefined(e.elements,function(e){return function(e){if(208===e.kind)return;if(e.name){if(!j(e))return;return re.isBindingPattern(e.name)?Z(e.name):re.createVariableDeclaration(e.name,B(e,void 0),void 0)}}(e)}))}function d(e){var n=T.text.substring(e.pos,e.end);return re.stringContains(n,"@internal")}function $(e){if(t&&e){var n=re.getLeadingCommentRangesOfNode(re.getParseTreeNode(e),T);if(re.forEach(n,d))return!0}return!1}function p(e){return re.isExportAssignment(e)||re.isExportDeclaration(e)}function ee(e,n){var t=re.getModifierFlags(e),r=function(e,n){var t=2811,r=k&&(i=e,239!==i.kind)?2:0,a=277===e.parent.kind;var i;(!a||N&&a&&re.isExternalModule(e.parent))&&(t^=2|(n||N&&a||(o=e.parent,re.isModuleBlock(o)&&re.some(o.statements,p))?0:1),r=0);var o;return f(e,t,r)}(e,n);return t===r?e.modifiers:re.createModifiersFromModifierFlags(r)}function ne(e){var n=R.getAllAccessorDeclarations(e);if(e.kind===n.firstAccessor.kind){var t=_(e);!t&&n.secondAccessor&&(t=_(n.secondAccessor),L=re.createGetSymbolAccessibilityDiagnosticForNode(n.secondAccessor));var i=re.createProperty(void 0,m(e,void 0,n.setAccessor?0:64),e.name,e.questionToken,B(e,t),void 0),r=n.secondAccessor&&re.getLeadingCommentRangesOfNode(n.secondAccessor,T);if(r)for(var a=function(e){if(3===e.kind){var n=T.text.slice(e.pos+2,e.end-2),t=n.split(/\r\n?|\n/g);if(1<t.length){var r=t.slice(1),a=re.guessIndentation(r);n=[t[0]].concat(re.map(r,function(e){return e.slice(a)})).join(c)}re.addSyntheticLeadingComment(i,e.kind,n,e.hasTrailingNewLine)}},o=0,s=r;o<s.length;o++){a(s[o])}return i}}function te(e){return re.createNodeArray(re.filter(re.map(e,function(n){return re.updateHeritageClause(n,re.visitNodes(re.createNodeArray(re.filter(n.types,function(e){return re.isEntityNameExpression(e.expression)||85===n.token&&95===e.expression.kind})),Y))}),function(e){return e.types&&!!e.types.length}))}}function m(e,n,t){return re.createModifiersFromModifierFlags(f(e,n,t))}function f(e,n,t){void 0===n&&(n=3067),void 0===t&&(t=0);var r=re.getModifierFlags(e)&n|t;return 512&r&&!(1&r)&&(r^=1),512&r&&2&r&&(r^=2),r}function _(e){if(e)return 156===e.kind?e.type:0<e.parameters.length?e.parameters[0].type:void 0}re.transformDeclarations=a}(ts||(ts={})),function(D){var e,n,t,r;(n=e||(e={}))[n.Uninitialized=0]="Uninitialized",n[n.Initialized=1]="Initialized",n[n.Completed=2]="Completed",n[n.Disposed=3]="Disposed",(r=t||(t={}))[r.Substitution=1]="Substitution",r[r.EmitNotifications=2]="EmitNotifications",D.getTransformers=function(e,n){var t=e.jsx,r=D.getEmitScriptTarget(e),a=D.getEmitModuleKind(e),i=[];return D.addRange(i,n&&n.before),i.push(D.transformTypeScript),2===t&&i.push(D.transformJsx),r<6&&i.push(D.transformESNext),r<4&&i.push(D.transformES2017),r<3&&i.push(D.transformES2016),r<2&&(i.push(D.transformES2015),i.push(D.transformGenerators)),i.push(function(e){switch(e){case D.ModuleKind.ESNext:case D.ModuleKind.ES2015:return D.transformES2015Module;case D.ModuleKind.System:return D.transformSystemModule;default:return D.transformModule}}(a)),r<1&&i.push(D.transformES5),D.addRange(i,n&&n.after),i},D.transformNodes=function(e,n,t,r,a,i){for(var o,s,c,l=new Array(310),u=[],d=[],p=0,m=!1,f=function(e,n){return n},_=function(e,n,t){return t(e,n)},g=0,v=[],y={getCompilerOptions:function(){return t},getEmitResolver:function(){return e},getEmitHost:function(){return n},startLexicalEnvironment:function(){D.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),D.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),D.Debug.assert(!m,"Lexical environment is suspended."),u[p]=o,d[p]=s,p++,s=o=void 0},suspendLexicalEnvironment:function(){D.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),D.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),D.Debug.assert(!m,"Lexical environment is already suspended."),m=!0},resumeLexicalEnvironment:function(){D.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),D.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),D.Debug.assert(m,"Lexical environment is not suspended."),m=!1},endLexicalEnvironment:function(){var e;if(D.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),D.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),D.Debug.assert(!m,"Lexical environment is suspended."),(o||s)&&(s&&(e=s.slice()),o)){var n=D.createVariableStatement(void 0,D.createVariableDeclarationList(o));e?e.push(n):e=[n]}return o=u[--p],s=d[p],0===p&&(u=[],d=[]),e},hoistVariableDeclaration:function(e){D.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),D.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed.");var n=D.setEmitFlags(D.createVariableDeclaration(e),64);o?o.push(n):o=[n]},hoistFunctionDeclaration:function(e){D.Debug.assert(0<g,"Cannot modify the lexical environment during initialization."),D.Debug.assert(g<2,"Cannot modify the lexical environment after transformation has completed."),s?s.push(e):s=[e]},requestEmitHelper:function(e){D.Debug.assert(0<g,"Cannot modify the transformation context during initialization."),D.Debug.assert(g<2,"Cannot modify the transformation context after transformation has completed."),D.Debug.assert(!e.scoped,"Cannot request a scoped emit helper."),c=D.append(c,e)},readEmitHelpers:function(){D.Debug.assert(0<g,"Cannot modify the transformation context during initialization."),D.Debug.assert(g<2,"Cannot modify the transformation context after transformation has completed.");var e=c;return c=void 0,e},enableSubstitution:function(e){D.Debug.assert(g<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=1},enableEmitNotification:function(e){D.Debug.assert(g<2,"Cannot modify the transformation context after transformation has completed."),l[e]|=2},isSubstitutionEnabled:x,isEmitNotificationEnabled:C,get onSubstituteNode(){return f},set onSubstituteNode(e){D.Debug.assert(g<1,"Cannot modify transformation hooks after initialization has completed."),D.Debug.assert(void 0!==e,"Value must not be 'undefined'"),f=e},get onEmitNode(){return _},set onEmitNode(e){D.Debug.assert(g<1,"Cannot modify transformation hooks after initialization has completed."),D.Debug.assert(void 0!==e,"Value must not be 'undefined'"),_=e},addDiagnostic:function(e){v.push(e)}},h=0,b=r;h<b.length;h++){var E=b[h];D.disposeEmitNodes(D.getSourceFileOfNode(D.getParseTreeNode(E)))}D.performance.mark("beforeTransform");var T=D.chain.apply(void 0,a)(y);g=1;var S=D.map(r,i?T:function(e){return!e||D.isSourceFile(e)&&e.isDeclarationFile?e:T(e)});return g=2,D.performance.mark("afterTransform"),D.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:S,substituteNode:function(e,n){return D.Debug.assert(g<3,"Cannot substitute a node after the result is disposed."),n&&x(n)&&f(e,n)||n},emitNodeWithNotification:function(e,n,t){D.Debug.assert(g<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),n&&(C(n)?_(e,n,t):t(e,n))},dispose:function(){if(g<3){for(var e=0,n=r;e<n.length;e++){var t=n[e];D.disposeEmitNodes(D.getSourceFileOfNode(D.getParseTreeNode(t)))}c=_=f=d=s=u=o=void 0,g=3}},diagnostics:v};function x(e){return 0!=(1&l[e.kind])&&0==(4&D.getEmitFlags(e))}function C(e){return 0!=(2&l[e.kind])||0!=(2&D.getEmitFlags(e))}}}(ts||(ts={})),function(q){var p={emittedLine:0,emittedColumn:0,sourceLine:0,sourceColumn:0,sourceIndex:0};q.createSourceMapWriter=function(O,w,P){void 0===P&&(P=O.getCompilerOptions());var R,a,F,i,G,o,s,V,c,l=P.extendedDiagnostics,B=!(P.sourceMap||P.inlineSourceMap);return{initialize:function(e,n,t,r){B||q.fileExtensionIs(e,".json")||(V&&u(),c=r,i=-1,G=a=R=void 0,o=p,s=0,(V={sourceMapFilePath:n,jsSourceMappingURL:P.inlineSourceMap?void 0:q.getBaseFileName(q.normalizeSlashes(n)),sourceMapFile:q.getBaseFileName(q.normalizeSlashes(e)),sourceMapSourceRoot:P.sourceRoot||"",sourceMapSources:[],inputSourceFileNames:[],sourceMapNames:[],sourceMapMappings:"",sourceMapSourcesContent:P.inlineSources?[]:void 0}).sourceMapSourceRoot=q.normalizeSlashes(V.sourceMapSourceRoot),V.sourceMapSourceRoot.length&&47!==V.sourceMapSourceRoot.charCodeAt(V.sourceMapSourceRoot.length-1)&&(V.sourceMapSourceRoot+=q.directorySeparator),P.mapRoot?(F=q.normalizeSlashes(P.mapRoot),277===t.kind&&(F=q.getDirectoryPath(q.getSourceFilePathInNewDir(t.fileName,O,F))),q.isRootedDiskPath(F)||q.isUrl(F)?V.jsSourceMappingURL=q.combinePaths(F,V.jsSourceMappingURL):(F=q.combinePaths(O.getCommonSourceDirectory(),F),V.jsSourceMappingURL=q.getRelativePathToDirectoryOrUrl(q.getDirectoryPath(q.normalizePath(e)),q.combinePaths(F,V.jsSourceMappingURL),O.getCurrentDirectory(),O.getCanonicalFileName,!0))):F=q.getDirectoryPath(q.normalizePath(e)))},reset:u,setSourceFile:U,emitPos:H,emitNodeWithSourceMap:function(e,n,t){var r,a;if(B||q.isInJsonFile(n))return t(e,n);if(n){if(q.isUnparsedSource(n)&&void 0!==n.sourceMapText){var i=n.sourceMapText,o=void 0;try{o=JSON.parse(i)}catch(e){}if(!o||"object"!=typeof(a=o)||!a.mappings||"string"!=typeof a.mappings||!a.sources)return t(e,n);for(var s=w.getLine(),c=w.getColumn(),l=o,u=P.sourceRoot?O.getCommonSourceDirectory():F,d=q.createMap(),p=q.createMap(),m=q.sourcemaps.decodeMappings(l),f=m.next(),_=f.value,g=f.done;!g;r=m.next(),_=r.value,g=r.done,r){var v=""+_.sourceIndex;if(!d.has(v)){var y=l.sources[_.sourceIndex],h=l.sourceRoot?q.combinePaths(l.sourceRoot,y):y,b=q.combinePaths(q.getDirectoryPath(n.sourceMapPath),h),E=q.getRelativePathToDirectoryOrUrl(u,b,O.getCurrentDirectory(),O.getCanonicalFileName,!0);d.set(v,E),p.set(v,q.getNormalizedAbsolutePath(E,u))}var T=d.get(v),S=p.get(v);W(S,l.sourcesContent?l.sourcesContent[_.sourceIndex]:null,T);var x=V.sourceMapSources.indexOf(T);j(),G=__assign({},_,{emittedLine:_.emittedLine+s,emittedColumn:0===_.emittedLine?_.emittedColumn+c:_.emittedColumn,sourceIndex:x})}return t(e,n)}var C=n.emitNode,D=C&&C.flags||0,A=C&&C.sourceMapRange,L=A||n,k=L.pos,N=L.end,I=A&&A.source,M=R;I===M&&(I=void 0),I&&U(I),305!==n.kind&&0==(16&D)&&0<=k&&H(K(k)),I&&U(M),64&D?(B=!0,t(e,n),B=!1):t(e,n),I&&U(I),305!==n.kind&&0==(32&D)&&0<=N&&H(N),I&&U(M)}},emitTokenWithSourceMap:function(e,n,t,r,a){if(B||q.isInJsonFile(e))return a(n,t,r);var i=e&&e.emitNode,o=i&&i.flags||0,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[n];return r=K(s?s.pos:r),0==(128&o)&&0<=r&&H(r),r=a(n,t,r),s&&(r=s.end),0==(256&o)&&0<=r&&H(r),r},getText:n,getSourceMappingURL:function(){if(!B&&!d(R)){if(P.inlineSourceMap){var e=q.base64encode(q.sys,n());return V.jsSourceMappingURL="data:application/json;base64,"+e}return V.jsSourceMappingURL}}};function K(e){return R.skipTrivia?R.skipTrivia(e):q.skipTrivia(a,e)}function u(){B||(c&&c.push(V),c=V=s=o=G=i=F=R=void 0)}function j(){if(G&&G!==o){q.Debug.assert(0<=G.emittedColumn,"lastEncodedSourceMapSpan.emittedColumn was negative"),q.Debug.assert(0<=G.sourceIndex,"lastEncodedSourceMapSpan.sourceIndex was negative"),q.Debug.assert(0<=G.sourceLine,"lastEncodedSourceMapSpan.sourceLine was negative"),q.Debug.assert(0<=G.sourceColumn,"lastEncodedSourceMapSpan.sourceColumn was negative");var e=o.emittedColumn;if(o.emittedLine===G.emittedLine)V.sourceMapMappings&&(V.sourceMapMappings+=",");else{for(var n=o.emittedLine;n<G.emittedLine;n++)V.sourceMapMappings+=";";e=0}V.sourceMapMappings+=t(G.emittedColumn-e),V.sourceMapMappings+=t(G.sourceIndex-o.sourceIndex),V.sourceMapMappings+=t(G.sourceLine-o.sourceLine),V.sourceMapMappings+=t(G.sourceColumn-o.sourceColumn),0<=G.nameIndex&&(q.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),V.sourceMapMappings+=t(G.nameIndex-s),s=G.nameIndex),o=G}}function H(e){if(!(B||q.positionIsSynthesized(e)||d(R))){l&&q.performance.mark("beforeSourcemap");var n=q.getLineAndCharacterOfPosition(R,e),t=w.getLine(),r=w.getColumn();!G||G.emittedLine!==t||G.emittedColumn!==r||G.sourceIndex===i&&(G.sourceLine>n.line||G.sourceLine===n.line&&G.sourceColumn>n.character)?(j(),G={emittedLine:t,emittedColumn:r,sourceLine:n.line,sourceColumn:n.character,sourceIndex:i}):(G.sourceLine=n.line,G.sourceColumn=n.character,G.sourceIndex=i),l&&(q.performance.mark("afterSourcemap"),q.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function d(e){return q.fileExtensionIs(e.fileName,".json")}function U(e){B||(a=(R=e).text,d(e)||W(e.fileName,e.text))}function W(e,n,t){if(!t){var r=P.sourceRoot?O.getCommonSourceDirectory():F;t=q.getRelativePathToDirectoryOrUrl(r,e,O.getCurrentDirectory(),O.getCanonicalFileName,!0)}-1===(i=V.sourceMapSources.indexOf(t))&&(i=V.sourceMapSources.length,V.sourceMapSources.push(t),V.inputSourceFileNames.push(e),P.inlineSources&&V.sourceMapSourcesContent.push(n))}function n(){if(!B&&!d(R))return j(),JSON.stringify({version:3,file:V.sourceMapFile,sourceRoot:V.sourceMapSourceRoot,sources:V.sourceMapSources,names:V.sourceMapNames,mappings:V.sourceMapMappings,sourcesContent:V.sourceMapSourcesContent})}};var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function r(e){if(e<64)return n.charAt(e);throw TypeError(e+": not a 64 based value")}function t(e){e<0?e=1+(-e<<1):e<<=1;var n="";do{var t=31&e;0<(e>>=5)&&(t|=32),n+=r(t)}while(0<e);return n}}(ts||(ts={})),function(L){L.createCommentWriter=function(t,o){var l,n,u,d,p,f=t.extendedDiagnostics,m=L.getNewLineCharacter(t),_=-1,g=-1,v=-1,y=!1,h=!!t.removeComments;return{reset:function(){p=d=u=n=void 0},setWriter:function(e){l=e},setSourceFile:function(e){u=(n=e).text,d=L.getLineStarts(n),p=void 0},emitNodeWithComments:function(e,n,t){if(h)t(e,n);else if(n){y=!1;var r=n.emitNode,a=r&&r.flags||0,i=r&&r.commentRange||n,o=i.pos,s=i.end;if(o<0&&s<0||o===s)b(e,n,r,a,t);else{f&&L.performance.mark("preEmitNodeWithComment");var c=305!==n.kind,l=o<0||0!=(512&a)||10===n.kind,u=s<0||0!=(1024&a)||10===n.kind;l||S(o,c);var d=_,p=g,m=v;(!l||0<=o&&0!=(512&a))&&(_=o),(!u||0<=s&&0!=(1024&a))&&(g=s,236===n.kind&&(v=s)),f&&L.performance.measure("commentTime","preEmitNodeWithComment"),b(e,n,r,a,t),f&&L.performance.mark("postEmitNodeWithComment"),_=d,g=p,v=m,!u&&c&&D(s,x),f&&L.performance.measure("commentTime","postEmitNodeWithComment")}}},emitBodyWithDetachedComments:function(e,n,t){f&&L.performance.mark("preEmitBodyWithDetachedComments");var r,a,i=n.pos,o=n.end,s=L.getEmitFlags(e),c=h||o<0||0!=(1024&s);i<0||0!=(512&s)||(r=n,(a=L.emitDetachedComments(u,d,l,A,r,m,h))&&(p?p.push(a):p=[a])),f&&L.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&s&&!h?(h=!0,t(e),h=!1):t(e),f&&L.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(S(n.end,!0),y&&!l.isAtStartOfLine()&&l.writeLine()),f&&L.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")},emitTrailingCommentsOfPosition:function(e,n){h||(f&&L.performance.mark("beforeEmitTrailingCommentsOfPosition"),D(e,n?x:i),f&&L.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))},emitLeadingCommentsOfPosition:function(e){h||-1===e||S(e,!0)}};function b(e,n,t,r,a){var i,o,s,c=t&&t.leadingComments;L.some(c)&&(f&&L.performance.mark("preEmitNodeWithSynthesizedComments"),L.forEach(c,E),f&&L.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),i=e,o=n,s=a,2048&r?(h=!0,s(i,o),h=!1):s(i,o);var l=t&&t.trailingComments;L.some(l)&&(f&&L.performance.mark("postEmitNodeWithSynthesizedComments"),L.forEach(l,T),f&&L.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function E(e){2===e.kind&&l.writeLine(),r(e),e.hasTrailingNewLine||2===e.kind?l.writeLine():l.write(" ")}function T(e){l.isAtStartOfLine()||l.write(" "),r(e),e.hasTrailingNewLine&&l.writeLine()}function r(e){var n,t=3===(n=e).kind?"/*"+n.text+"*/":"//"+n.text,r=3===e.kind?L.computeLineStarts(t):void 0;L.writeCommentRange(t,r,l,0,t.length,m)}function S(e,n){y=!1,n?C(e,c):0===e&&C(e,a)}function a(e,n,t,r,a){var i,o;i=e,o=n,L.isRecognizedTripleSlashComment(u,i,o)&&c(e,n,t,r,a)}function s(e,n){return!t.onlyPrintJsDocStyle||L.isJSDocLikeText(e,n)||L.isPinnedComment(e,n)}function c(e,n,t,r,a){s(u,e)&&(y||(L.emitNewLineBeforeLeadingCommentOfPosition(d,l,a,e),y=!0),o&&o(e),L.writeCommentRange(u,d,l,e,n,m),o&&o(n),r?l.writeLine():3===t&&l.write(" "))}function x(e,n,t,r){s(u,e)&&(l.isAtStartOfLine()||l.write(" "),o&&o(e),L.writeCommentRange(u,d,l,e,n,m),o&&o(n),r&&l.writeLine())}function i(e,n,t,r){o&&o(e),L.writeCommentRange(u,d,l,e,n,m),o&&o(n),r?l.writeLine():l.write(" ")}function C(e,n){var t,r,a;-1!==_&&e===_||(t=e,void 0!==p&&L.last(p).nodePos===t?(r=n,a=L.last(p).detachedCommentEndPos,p.length-1?p.pop():p=void 0,L.forEachLeadingCommentRange(u,a,r,a)):L.forEachLeadingCommentRange(u,e,n,e))}function D(e,n){(-1===g||e!==g&&e!==v)&&L.forEachTrailingCommentRange(u,e,n)}function A(e,n,t,r,a,i){s(u,r)&&(o&&o(r),L.writeCommentRange(e,n,t,r,a,i),o&&o(a))}}}(ts||(ts={})),function(Mt){var e,n,t,r,a,c=".tsbundleinfo",be=((e=[])[512]=["{","}"],e[1024]=["(",")"],e[2048]=["<",">"],e[4096]=["[","]"],e);function i(e,n,t,r){void 0===r&&(r=!1);var a=Mt.isArray(t)?t:Mt.getSourceFilesToEmit(e,t),i=e.getCompilerOptions();if(i.outFile||i.out){if(a.length){var o=Mt.createBundle(a,e.getPrependNodes());if(l=n(d(o,e,r),o))return l}}else for(var s=0,c=a;s<c.length;s++){var l,u=c[s];if(l=n(d(u,e,r),u))return l}}function d(e,n,t){var r=n.getCompilerOptions();if(278===e.kind)return{jsFilePath:i=r.outFile||r.out,sourceMapFilePath:o=l(i,r),declarationFilePath:a=t||Mt.getEmitDeclarations(r)?Mt.removeFileExtension(i)+".d.ts":void 0,declarationMapPath:Mt.getAreDeclarationMapsEnabled(r)?a+".map":void 0,bundleInfoPath:r.references&&i?Mt.removeFileExtension(i)+c:void 0};var a,i=Mt.getOwnEmitOutputFilePath(e.fileName,n,u(e,r)),o=Mt.isJsonSourceFile(e)?void 0:l(i,r),s=Mt.isSourceFileJS(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:a=!t&&!Mt.getEmitDeclarations(r)||s?void 0:Mt.getDeclarationEmitOutputFilePath(e.fileName,n),declarationMapPath:Mt.getAreDeclarationMapsEnabled(r)?a+".map":void 0,bundleInfoPath:void 0}}function l(e,n){return n.sourceMap&&!n.inlineSourceMap?e+".map":void 0}function u(e,n){if(Mt.isJsonSourceFile(e))return".json";if(1===n.jsx)if(Mt.isSourceFileJS(e)){if(Mt.fileExtensionIs(e.fileName,".jsx"))return".jsx"}else if(1===e.languageVariant)return".jsx";return".js"}function D(hn,e){void 0===hn&&(hn={}),void 0===e&&(e={});var bn,r,t,o,n,a,i,s,En,c,l=e.hasGlobalName,u=e.onEmitSourceMapOfNode,d=e.onEmitSourceMapOfToken,p=e.onEmitSourceMapOfPosition,m=e.onEmitNode,f=e.onSetSourceFile,_=e.substituteNode,g=e.onBeforeEmitNodeArray,v=e.onAfterEmitNodeArray,y=e.onBeforeEmitToken,h=e.onAfterEmitToken,b=Mt.getNewLineCharacter(hn),E=Mt.createCommentWriter(hn,p),T=E.emitNodeWithComments,Tn=E.emitBodyWithDetachedComments,Sn=E.emitTrailingCommentsOfPosition,xn=E.emitLeadingCommentsOfPosition,Cn=function(e){Dn(),En.write(e)},Dn=Mt.noop,An=ie,S=!1;hn.omitTrailingSemicolon&&(Dn=function(){S&&(ie(),S=!1)},An=function(){S=!0});var x,C={pos:-1,end:-1},D=Mt.getEmitModuleKind(hn),A=Mt.createMap();return V(),{printNode:function(e,n,t){switch(e){case 0:Mt.Debug.assert(Mt.isSourceFile(n),"Expected a SourceFile node.");break;case 2:Mt.Debug.assert(Mt.isIdentifier(n),"Expected an Identifier node.");break;case 1:Mt.Debug.assert(Mt.isExpression(n),"Expected an Expression node.")}switch(n.kind){case 277:return k(n);case 278:return L(n);case 279:return r=n,a=w(),i=En,G(a),R(4,r,void 0),V(),En=i,P()}var r,a,i;return N(e,n,t,w()),P()},printList:function(e,n,t){return I(e,n,t,w()),P()},printFile:k,printBundle:L,writeNode:N,writeList:I,writeFile:O,writeBundle:M};function L(e){return M(e,w()),P()}function k(e){return O(e,w()),P()}function N(e,n,t,r){var a=En;G(r),R(e,n,t),V(),En=a}function I(e,n,t,r){var a=En;G(r),t&&F(t),ot(C,n,e),V(),En=a}function M(e,n,t){x=!1;var r,a=En;G(n),ne(e),ee(e),z(e),Z(!!(r=e).hasNoDefaultLib,r.syntheticFileReferences||[],r.syntheticTypeReferences||[],r.syntheticLibReferences||[]);for(var i=0,o=e.prepends;i<o.length;i++){R(4,o[i],void 0),ft()}t&&(t.originalOffset=En.getTextPos());for(var s=0,c=e.sourceFiles;s<c.length;s++){var l=c[s];R(0,l,l)}V(),En=a}function O(e,n){x=!0;var t=En;G(n),ne(e),ee(e),R(0,e,e),V(),En=t}function w(){return c||(c=Mt.createTextWriter(b))}function P(){var e=c.getText();return c.clear(),e}function R(e,n,t){t&&F(t),Nn(0,e)(e,n)}function F(e){bn=e,E.setSourceFile(e),f&&f(e)}function G(e){En=e,E.setWriter(e)}function V(){r=[],t=[],o=Mt.createMap(),n=[],a=0,i=[],E.reset(),G(void 0)}function Ln(e){e&&Nn(0,4)(4,e)}function B(e){e&&Nn(0,2)(2,e)}function kn(e){e&&Nn(0,1)(1,e)}function Nn(e,n){switch(e){case 0:if(m)return j;case 1:return T&&0!==n?H:U;case 2:if(u&&0!==n)return W;case 3:return q;default:return Mt.Debug.assertNever(e,"Unexpected value for PipelinePhase: "+e)}}function K(e,n){return Nn(e+1,n)}function j(e,n){Mt.Debug.assertDefined(m)(e,n,K(0,e))}function H(e,n){Mt.Debug.assertDefined(T),Mt.Debug.assert(0!==e),T(e,In(e,n),K(1,e))}function U(e,n){K(1,e)(e,In(e,n))}function W(e,n){Mt.Debug.assert(0!==e),Mt.Debug.assertDefined(u)(e,n,q)}function q(e,n){if(0===e)return function(e){ft();var n=e.statements;if(Tn){var t=0===n.length||!Mt.isPrologueDirective(n[0])||Mt.nodeIsSynthesized(n[0]);if(t)return void Tn(e,n,zn)}zn(e)}(Mt.cast(n,Mt.isSourceFile));if(2===e)return On(Mt.cast(n,Mt.isIdentifier));if(3===e)return Ln((t=Mt.cast(n,Mt.isTypeParameterDeclaration)).name),pt(),lt("in"),pt(),void Ln(t.constraint);var t,r,a,i,o,s,c,l,u,d,p,m,f,_,g,v,y,h,b,E,T,S,x,C,D,A,L,k,N,I,M,O,w,P,R,F,G,V,B,K,j,H,U,W,q,z,J,X,Y,Q,Z,$,ee,ne,te,re,ae,ie,oe,se,ce,le,ue,de,pe,me,fe,_e,ge,ve,ye,he,be,Ee,Te,Se,xe,Ce,De,Ae,Le,ke,Ne,Ie,Me,Oe,we,Pe,Re,Fe,Ge,Ve,Be,Ke,je,He,Ue,We,qe,ze,Je,Xe,Ye,Qe,Ze,$e,en,nn,tn,rn,an,on,sn,cn,ln,un,dn,pn,mn,fn,_n,gn,vn,yn;if(4===e){if(Mt.isKeyword(n.kind))return yt(n,lt);switch(n.kind){case 14:case 15:case 16:return Mn(n);case 279:return Pe=n,void En.rawWrite(Pe.text);case 71:return On(n);case 146:return 71===(we=(Oe=n).left).kind?kn(we):Ln(we),ct("."),void Ln(Oe.right);case 147:return Me=n,ct("["),kn(Me.expression),void ct("]");case 148:return function(e){Ln(e.name),e.constraint&&(pt(),lt("extends"),pt(),Ln(e.constraint));e.default&&(pt(),ut("="),pt(),Ln(e.default))}(n);case 149:return function(e){nt(e,e.decorators),Xn(e,e.modifiers),Ln(e.dotDotDotToken),Jn(e.name,dt),Ln(e.questionToken),e.parent&&287===e.parent.kind&&!e.name?Ln(e.type):Yn(e.type);Qn(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)}(n);case 150:return Ie=n,ct("@"),void kn(Ie.expression);case 151:return nt(Ne=n,Ne.decorators),Xn(Ne,Ne.modifiers),Jn(Ne.name,mt),Ln(Ne.questionToken),Yn(Ne.type),void An();case 152:return nt(ke=n,ke.decorators),Xn(ke,ke.modifiers),Ln(ke.name),Ln(ke.questionToken),Ln(ke.exclamationToken),Yn(ke.type),Qn(ke.initializer,ke.type?ke.type.end:ke.questionToken?ke.questionToken.end:ke.name.end,ke),void An();case 153:return At(Le=n),nt(Le,Le.decorators),Xn(Le,Le.modifiers),Ln(Le.name),Ln(Le.questionToken),rt(Le,Le.typeParameters),at(Le,Le.parameters),Yn(Le.type),An(),void Lt(Le);case 154:return nt(Ae=n,Ae.decorators),Xn(Ae,Ae.modifiers),Ln(Ae.asteriskToken),Ln(Ae.name),Ln(Ae.questionToken),void Bn(Ae,Kn);case 155:return Xn(De=n,De.modifiers),lt("constructor"),void Bn(De,Kn);case 156:case 157:return nt(Ce=n,Ce.decorators),Xn(Ce,Ce.modifiers),lt(156===Ce.kind?"get":"set"),pt(),Ln(Ce.name),void Bn(Ce,Kn);case 158:return At(xe=n),nt(xe,xe.decorators),Xn(xe,xe.modifiers),rt(xe,xe.typeParameters),at(xe,xe.parameters),Yn(xe.type),An(),void Lt(xe);case 159:return At(Se=n),nt(Se,Se.decorators),Xn(Se,Se.modifiers),lt("new"),pt(),rt(Se,Se.typeParameters),at(Se,Se.parameters),Yn(Se.type),An(),void Lt(Se);case 160:return nt(be=n,be.decorators),Xn(be,be.modifiers),Te=(Ee=be).parameters,ot(Ee,Te,4432),Yn(be.type),void An();case 161:return Ln((he=n).parameterName),pt(),lt("is"),pt(),void Ln(he.type);case 162:return Ln((ye=n).typeName),void tt(ye,ye.typeArguments);case 163:return At(ve=n),rt(ve,ve.typeParameters),it(ve,ve.parameters),pt(),ct("=>"),pt(),Ln(ve.type),void Lt(ve);case 287:return ge=n,Cn("function"),at(ge,ge.parameters),Cn(":"),void Ln(ge.type);case 164:return At(_e=n),lt("new"),pt(),rt(_e,_e.typeParameters),at(_e,_e.parameters),pt(),ct("=>"),pt(),Ln(_e.type),void Lt(_e);case 165:return fe=n,lt("typeof"),pt(),void Ln(fe.exprName);case 166:return function(e){ct("{");var n=1&Mt.getEmitFlags(e)?384:16449;ot(e,e.members,262144|n),ct("}")}(n);case 167:return Ln(n.elementType),ct("["),void ct("]");case 168:return me=n,ct("["),ot(me,me.elementTypes,272),void ct("]");case 169:return Ln(n.type),void Cn("?");case 171:return void ot(pe=n,pe.types,260);case 172:return void ot(de=n,de.types,264);case 173:return Ln((ue=n).checkType),pt(),lt("extends"),pt(),Ln(ue.extendsType),pt(),ct("?"),pt(),Ln(ue.trueType),pt(),ct(":"),pt(),void Ln(ue.falseType);case 174:return le=n,lt("infer"),pt(),void Ln(le.typeParameter);case 175:return ce=n,ct("("),Ln(ce.type),void ct(")");case 209:return kn((se=n).expression),void tt(se,se.typeArguments);case 176:return void lt("this");case 177:return ht((oe=n).operator,lt),pt(),void Ln(oe.type);case 178:return Ln((ie=n).objectType),ct("["),Ln(ie.indexType),void ct("]");case 179:return function(e){var n=Mt.getEmitFlags(e);ct("{"),1&n?pt():(ft(),_t());e.readonlyToken&&(Ln(e.readonlyToken),132!==e.readonlyToken.kind&&lt("readonly"),pt());ct("["),Nn(0,3)(3,e.typeParameter),ct("]"),e.questionToken&&(Ln(e.questionToken),55!==e.questionToken.kind&&ct("?"));ct(":"),pt(),Ln(e.type),An(),1&n?pt():(ft(),gt());ct("}")}(n);case 180:return void kn(n.literal);case 181:return function(e){e.isTypeOf&&(lt("typeof"),pt());lt("import"),ct("("),Ln(e.argument),ct(")"),e.qualifier&&(ct("."),Ln(e.qualifier));tt(e,e.typeArguments)}(n);case 282:return void Cn("*");case 283:return void Cn("?");case 284:return ae=n,Cn("?"),void Ln(ae.type);case 285:return re=n,Cn("!"),void Ln(re.type);case 286:return Ln(n.type),void Cn("=");case 170:case 288:return te=n,Cn("..."),void Ln(te.type);case 182:return ne=n,ct("{"),ot(ne,ne.elements,262576),void ct("}");case 183:return ee=n,ct("["),ot(ee,ee.elements,262448),void ct("]");case 184:return function(e){Ln(e.dotDotDotToken),e.propertyName&&(Ln(e.propertyName),ct(":"),pt());Ln(e.name),Qn(e.initializer,e.name.end,e)}(n);case 214:return kn(($=n).expression),void Ln($.literal);case 215:return void An();case 216:return void Pn(Z=n,!Z.multiLine&&xt(Z));case 217:return Xn(Q=n,Q.modifiers),Ln(Q.declarationList),void An();case 218:return void An();case 219:return kn((Y=n).expression),void((!Mt.isJsonSourceFile(bn)||Mt.nodeIsSynthesized(Y.expression))&&An());case 220:return X=Gn(90,(J=n).pos,lt,J),pt(),Gn(19,X,ct,J),kn(J.expression),Gn(20,J.expression.end,ct,J),et(J,J.thenStatement),void(J.elseStatement&&(bt(J),Gn(82,J.thenStatement.end,lt,J),220===J.elseStatement.kind?(pt(),Ln(J.elseStatement)):et(J,J.elseStatement)));case 221:return function(e){Gn(81,e.pos,lt,e),et(e,e.statement),Mt.isBlock(e.statement)?pt():bt(e);Rn(e,e.statement.end),ct(";")}(n);case 222:return Rn(z=n,z.pos),void et(z,z.statement);case 223:return function(e){var n=Gn(88,e.pos,lt,e);pt();var t=Gn(19,n,ct,e);Fn(e.initializer),t=Gn(25,e.initializer?e.initializer.end:t,An,e),$n(e.condition),t=Gn(25,e.condition?e.condition.end:t,An,e),$n(e.incrementor),Gn(20,e.incrementor?e.incrementor.end:t,ct,e),et(e,e.statement)}(n);case 224:return q=Gn(88,(W=n).pos,lt,W),pt(),Gn(19,q,ct,W),Fn(W.initializer),pt(),Gn(92,W.initializer.end,lt,W),pt(),kn(W.expression),Gn(20,W.expression.end,ct,W),void et(W,W.statement);case 225:return H=Gn(88,(j=n).pos,lt,j),pt(),(U=j.awaitModifier)&&(Ln(U),pt()),Gn(19,H,ct,j),Fn(j.initializer),pt(),Gn(145,j.initializer.end,lt,j),pt(),kn(j.expression),Gn(20,j.expression.end,ct,j),void et(j,j.statement);case 226:return Gn(77,(K=n).pos,lt,K),Zn(K.label),void An();case 227:return Gn(72,(B=n).pos,lt,B),Zn(B.label),void An();case 228:return Gn(96,(V=n).pos,lt,V),$n(V.expression),void An();case 229:return G=Gn(107,(F=n).pos,lt,F),pt(),Gn(19,G,ct,F),kn(F.expression),Gn(20,F.expression.end,ct,F),void et(F,F.statement);case 230:return R=Gn(98,(P=n).pos,lt,P),pt(),Gn(19,R,ct,P),kn(P.expression),Gn(20,P.expression.end,ct,P),pt(),void Ln(P.caseBlock);case 231:return Ln((w=n).label),Gn(56,w.label.end,ct,w),pt(),void Ln(w.statement);case 232:return Gn(100,(O=n).pos,lt,O),$n(O.expression),void An();case 233:return function(e){Gn(102,e.pos,lt,e),pt(),Ln(e.tryBlock),e.catchClause&&(bt(e),Ln(e.catchClause));e.finallyBlock&&(bt(e),Gn(87,(e.catchClause||e.tryBlock).end,lt,e),pt(),Ln(e.finallyBlock))}(n);case 234:return vt(78,n.pos,lt),void An();case 235:return Ln((M=n).name),Yn(M.type),void Qn(M.initializer,M.type?M.type.end:M.name.end,M);case 236:return I=n,lt(Mt.isLet(I)?"let":Mt.isVarConst(I)?"const":"var"),pt(),void ot(I,I.declarations,272);case 237:return void Vn(n);case 238:return void jn(n);case 239:return nt(N=n,N.decorators),Xn(N,N.modifiers),lt("interface"),pt(),Ln(N.name),rt(N,N.typeParameters),ot(N,N.heritageClauses,256),pt(),ct("{"),ot(N,N.members,65),void ct("}");case 240:return nt(k=n,k.decorators),Xn(k,k.modifiers),lt("type"),pt(),Ln(k.name),rt(k,k.typeParameters),pt(),ct("="),pt(),Ln(k.type),void An();case 241:return Xn(L=n,L.modifiers),lt("enum"),pt(),Ln(L.name),pt(),ct("{"),ot(L,L.members,81),void ct("}");case 242:return function(e){Xn(e,e.modifiers),512&~e.flags&&(lt(16&e.flags?"namespace":"module"),pt());Ln(e.name);var n=e.body;if(!n)return An();for(;242===n.kind;)ct("."),Ln(n.name),n=n.body;pt(),Ln(n)}(n);case 243:return At(A=n),Mt.forEach(A.statements,kt),Pn(A,xt(A)),void Lt(A);case 244:return Gn(17,(D=n).pos,ct,D),ot(D,D.clauses,65),void Gn(18,D.clauses.end,ct,D,!0);case 245:return C=Gn(84,(x=n).pos,lt,x),pt(),C=Gn(118,C,lt,x),pt(),C=Gn(130,C,lt,x),pt(),Ln(x.name),void An();case 246:return Xn(T=n,T.modifiers),Gn(91,T.modifiers?T.modifiers.end:T.pos,lt,T),pt(),Ln(T.name),pt(),Gn(58,T.name.end,ct,T),pt(),71===(S=T.moduleReference).kind?kn(S):Ln(S),void An();case 247:return function(e){Xn(e,e.modifiers),Gn(91,e.modifiers?e.modifiers.end:e.pos,lt,e),pt(),e.importClause&&(Ln(e.importClause),pt(),Gn(143,e.importClause.end,lt,e),pt());kn(e.moduleSpecifier),An()}(n);case 248:return function(e){Ln(e.name),e.name&&e.namedBindings&&(Gn(26,e.name.end,ct,e),pt());Ln(e.namedBindings)}(n);case 249:return E=Gn(39,(b=n).pos,ct,b),pt(),Gn(118,E,lt,b),pt(),void Ln(b.name);case 250:return void Hn(n);case 251:return void Un(n);case 252:return function(e){var n=Gn(84,e.pos,lt,e);pt(),e.isExportEquals?Gn(58,n,ut,e):Gn(79,n,lt,e);pt(),kn(e.expression),An()}(n);case 253:return function(e){var n=Gn(84,e.pos,lt,e);pt(),e.exportClause?Ln(e.exportClause):n=Gn(39,n,ct,e);if(e.moduleSpecifier){pt();var t=e.exportClause?e.exportClause.end:n;Gn(143,t,lt,e),pt(),kn(e.moduleSpecifier)}An()}(n);case 254:return void Hn(n);case 255:return void Un(n);case 256:return;case 257:return h=n,lt("require"),ct("("),kn(h.expression),void ct(")");case 10:return y=n,Dn(),void En.writeLiteral(Ct(y,!0));case 260:case 263:return function(e){ct("<"),Mt.isJsxOpeningElement(e)&&(Wn(e.tagName),e.attributes.properties&&0<e.attributes.properties.length&&pt(),Ln(e.attributes));ct(">")}(n);case 261:case 264:return function(e){ct("</"),Mt.isJsxClosingElement(e)&&Wn(e.tagName);ct(">")}(n);case 265:return Ln((m=n).name),f="=",_=ct,g=m.initializer,v=Ln,void(g&&(_(f),v(g)));case 266:return void ot(p=n,p.properties,131328);case 267:return d=n,ct("{..."),kn(d.expression),void ct("}");case 268:return void((u=n).expression&&(ct("{"),Ln(u.dotDotDotToken),kn(u.expression),ct("}")));case 269:return Gn(73,(l=n).pos,lt,l),pt(),kn(l.expression),void qn(l,l.statements,l.expression.end);case 270:return c=Gn(79,(s=n).pos,lt,s),void qn(s,s.statements,c);case 271:return o=n,pt(),ht(o.token,lt),pt(),void ot(o,o.types,272);case 272:return function(e){var n=Gn(74,e.pos,lt,e);pt(),e.variableDeclaration&&(Gn(19,n,ct,e),Ln(e.variableDeclaration),Gn(20,e.variableDeclaration.end,ct,e),pt());Ln(e.block)}(n);case 273:return function(e){Ln(e.name),ct(":"),pt();var n=e.initializer;if(Sn&&0==(512&Mt.getEmitFlags(n))){var t=Mt.getCommentRange(n);Sn(t.pos)}kn(n)}(n);case 274:return Ln((i=n).name),void(i.objectAssignmentInitializer&&(pt(),ct("="),pt(),kn(i.objectAssignmentInitializer)));case 275:return void((a=n).expression&&(ct("..."),kn(a.expression)));case 276:return Ln((r=n).name),void Qn(r.initializer,r.name.end,r)}if(Mt.isExpression(n))n=In(e=1,n);else if(Mt.isToken(n))return yt(n,ct)}if(1===e)switch(n.kind){case 8:return void Mn(n);case 9:case 12:case 13:return Mn(n);case 71:return On(n);case 86:case 95:case 97:case 101:case 99:case 91:return void yt(n,lt);case 185:return vn=(gn=n).elements,yn=gn.multiLine?32768:0,void st(gn,vn,4466|yn);case 186:return function(e){Mt.forEach(e.properties,Nt);var n=65536&Mt.getEmitFlags(e);n&&_t();var t=e.multiLine?32768:0,r=1<=bn.languageVersion&&!Mt.isJsonSourceFile(bn)?32:0;ot(e,e.properties,263122|r|t),n&&gt()}(n);case 187:return function(e){var n=!1,t=!1;if(!(131072&Mt.getEmitFlags(e))){var r=e.expression.end,a=Mt.skipTrivia(bn.text,e.expression.end)+1,i=Mt.createToken(23);i.pos=r,i.end=a,n=St(e,e.expression,i),t=St(e,i,e.name)}kn(e.expression),Et(n),!n&&function(e){if(e=Mt.skipPartiallyEmittedExpressions(e),Mt.isNumericLiteral(e)){var n=Dt(e,!0);return!e.numericLiteralFlags&&!Mt.stringContains(n,Mt.tokenToString(23))}if(Mt.isPropertyAccessExpression(e)||Mt.isElementAccessExpression(e)){var t=Mt.getConstantValue(e);return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&hn.removeComments}}(e.expression)&&ct(".");Gn(23,e.expression.end,ct,e),Et(t),Ln(e.name),Tt(n,t)}(n);case 188:return kn((_n=n).expression),Gn(21,_n.expression.end,ct,_n),kn(_n.argumentExpression),void Gn(22,_n.argumentExpression.end,ct,_n);case 189:return kn((fn=n).expression),tt(fn,fn.typeArguments),void st(fn,fn.arguments,1296);case 190:return Gn(94,(mn=n).pos,lt,mn),pt(),kn(mn.expression),tt(mn,mn.typeArguments),void st(mn,mn.arguments,9488);case 191:return kn((pn=n).tag),tt(pn,pn.typeArguments),pt(),void kn(pn.template);case 192:return dn=n,ct("<"),Ln(dn.type),ct(">"),void kn(dn.expression);case 193:return un=Gn(19,(ln=n).pos,ct,ln),kn(ln.expression),void Gn(20,ln.expression?ln.expression.end:un,ct,ln);case 194:return It((cn=n).name),void Vn(cn);case 195:return nt(sn=n,sn.decorators),Xn(sn,sn.modifiers),void Bn(sn,wn);case 196:return Gn(80,(on=n).pos,lt,on),pt(),void kn(on.expression);case 197:return Gn(103,(an=n).pos,lt,an),pt(),void kn(an.expression);case 198:return Gn(105,(rn=n).pos,lt,rn),pt(),void kn(rn.expression);case 199:return Gn(121,(tn=n).pos,lt,tn),pt(),void kn(tn.expression);case 200:return function(e){ht(e.operator,ut),n=e,t=n.operand,200!==t.kind||(37!==n.operator||37!==t.operator&&43!==t.operator)&&(38!==n.operator||38!==t.operator&&44!==t.operator)||pt();var n,t;kn(e.operand)}(n);case 201:return kn((nn=n).operand),void ht(nn.operator,ut);case 202:return Ze=26!==(Qe=n).operatorToken.kind,$e=St(Qe,Qe.left,Qe.operatorToken),en=St(Qe,Qe.operatorToken,Qe.right),kn(Qe.left),Et($e,Ze?" ":void 0),xn(Qe.operatorToken.pos),yt(Qe.operatorToken,ut),Sn(Qe.operatorToken.end,!0),Et(en," "),kn(Qe.right),void Tt($e,en);case 203:return ze=St(qe=n,qe.condition,qe.questionToken),Je=St(qe,qe.questionToken,qe.whenTrue),Xe=St(qe,qe.whenTrue,qe.colonToken),Ye=St(qe,qe.colonToken,qe.whenFalse),kn(qe.condition),Et(ze," "),Ln(qe.questionToken),Et(Je," "),kn(qe.whenTrue),Tt(ze,Je),Et(Xe," "),Ln(qe.colonToken),Et(Ye," "),kn(qe.whenFalse),void Tt(Xe,Ye);case 204:return Ln((We=n).head),void ot(We,We.templateSpans,131072);case 205:return Gn(116,(Ue=n).pos,lt,Ue),Ln(Ue.asteriskToken),void $n(Ue.expression);case 206:return He=n,ct("..."),void kn(He.expression);case 207:return It((je=n).name),void jn(je);case 208:return;case 210:return kn((Ke=n).expression),void(Ke.type&&(pt(),lt("as"),pt(),Ln(Ke.type)));case 211:return kn(n.expression),void ut("!");case 212:return vt((Be=n).keywordToken,Be.pos,ct),ct("."),void Ln(Be.name);case 258:return Ln((Ve=n).openingElement),ot(Ve,Ve.children,131072),void Ln(Ve.closingElement);case 259:return Ge=n,ct("<"),Wn(Ge.tagName),pt(),Ln(Ge.attributes),void ct("/>");case 262:return Ln((Fe=n).openingFragment),ot(Fe,Fe.children,131072),void Ln(Fe.closingFragment);case 306:return void kn(n.expression);case 307:return void st(Re=n,Re.elements,272)}}function In(e,n){return n&&_&&_(e,n)||n}function z(e){var n=!1,t=278===e.kind?e:void 0;if(!t||D!==Mt.ModuleKind.None){for(var r=t?t.sourceFiles.length:1,a=0;a<r;a++){var i=t?t.sourceFiles[a]:e,o=Mt.isSourceFile(i)?i:bn,s=hn.noEmitHelpers||void 0!==Mt.getExternalHelpersModuleName(o),c=Mt.isSourceFile(i)&&!x,l=Mt.getEmitHelpers(i);if(l)for(var u=0,d=Mt.stableSort(l,Mt.compareEmitHelpers);u<d.length;u++){var p=d[u];if(p.scoped){if(t)continue}else{if(s)continue;if(c){if(A.get(p.name))continue;A.set(p.name,!0)}}"string"==typeof p.text?oe(p.text):oe(p.text(he)),n=!0}}return n}}function Mn(e){var n,t,r=Dt(e,hn.neverAsciiEscape);!hn.sourceMap&&!hn.inlineSourceMap||9!==e.kind&&!Mt.isTemplateLiteralKind(e.kind)?(n=r,Dn(),En.writeStringLiteral(n)):(t=r,Dn(),En.writeLiteral(t))}function On(e){(e.symbol?ae:Cn)(Ct(e,!1),e.symbol),ot(e,e.typeArguments,26896)}function wn(e){rt(e,e.typeParameters),it(e,e.parameters),Yn(e.type),pt(),Ln(e.equalsGreaterThanToken)}function Pn(e,n){Gn(17,e.pos,ct,e);var t=n||1&Mt.getEmitFlags(e)?384:65;ot(e,e.statements,t),Gn(18,e.statements.end,ct,e,!!(1&t))}function Rn(e,n){var t=Gn(106,n,lt,e);pt(),Gn(19,t,ct,e),kn(e.expression),Gn(20,e.expression.end,ct,e)}function Fn(e){void 0!==e&&(236===e.kind?Ln(e):kn(e))}function Gn(e,n,t,r,a){var i=Mt.getParseTreeNode(r),o=i&&i.kind===r.kind,s=n;if(o&&(n=Mt.skipTrivia(bn.text,n)),xn&&o&&r.pos!==s){var c=a&&!Mt.positionsAreOnSameLine(s,n,bn);c&&_t(),xn(s),c&&gt()}return n=ht(e,t,n),Sn&&o&&r.end!==n&&Sn(n,!0),n}function Vn(e){nt(e,e.decorators),Xn(e,e.modifiers),lt("function"),Ln(e.asteriskToken),pt(),B(e.name),Bn(e,Kn)}function J(e,n){X(n)}function Bn(e,n){var t=e.body;if(t)if(Mt.isBlock(t)){var r=65536&Mt.getEmitFlags(e);r&&_t(),At(e),Mt.forEach(e.parameters,kt),kt(e.body),n(e),m?m(4,t,J):X(t),Lt(e),r&&gt()}else n(e),pt(),kn(t);else n(e),An()}function Kn(e){rt(e,e.typeParameters),at(e,e.parameters),Yn(e.type)}function X(e){pt(),ct("{"),_t();var n=function(e){if(1&Mt.getEmitFlags(e))return!0;if(e.multiLine)return!1;if(!Mt.nodeIsSynthesized(e)&&!Mt.rangeIsOnSingleLine(e,bn))return!1;if(se(e,e.statements,2)||le(e,e.statements,2))return!1;for(var n,t=0,r=e.statements;t<r.length;t++){var a=r[t];if(ce(n,a,2))return!1;n=a}return!0}(e)?Y:Q;Tn?Tn(e,e.statements,n):n(e),gt(),vt(18,e.statements.end,ct,e)}function Y(e){Q(e,!0)}function Q(e,n){var t=$(e.statements,!0),r=En.getTextPos();z(e),0===t&&r===En.getTextPos()&&n?(gt(),ot(e,e.statements,384),_t()):ot(e,e.statements,1,t)}function jn(e){Mt.forEach(e.members,Nt),nt(e,e.decorators),Xn(e,e.modifiers),lt("class"),e.name&&(pt(),B(e.name));var n=65536&Mt.getEmitFlags(e);n&&_t(),rt(e,e.typeParameters),ot(e,e.heritageClauses,0),pt(),ct("{"),ot(e,e.members,65),ct("}"),n&&gt()}function Hn(e){ct("{"),ot(e,e.elements,262576),ct("}")}function Un(e){e.propertyName&&(Ln(e.propertyName),pt(),Gn(118,e.propertyName.end,lt,e),pt()),Ln(e.name)}function Wn(e){71===e.kind?kn(e):Ln(e)}function qn(e,n,t){var r=81985;1===n.length&&(Mt.nodeIsSynthesized(e)||Mt.nodeIsSynthesized(n[0])||Mt.rangeStartPositionsAreOnSameLine(e,n[0],bn))?(vt(56,t,ct,e),pt(),r&=-66):Gn(56,t,ct,e),ot(e,n,r)}function Z(e,n,t,r){if(e&&(Cn('/// <reference no-default-lib="true"/>'),ft()),bn&&bn.moduleName&&(Cn('/// <amd-module name="'+bn.moduleName+'" />'),ft()),bn&&bn.amdDependencies)for(var a=0,i=bn.amdDependencies;a<i.length;a++){var o=i[a];o.name?Cn('/// <amd-dependency name="'+o.name+'" path="'+o.path+'" />'):Cn('/// <amd-dependency path="'+o.path+'" />'),ft()}for(var s=0,c=n;s<c.length;s++){var l=c[s];Cn('/// <reference path="'+l.fileName+'" />'),ft()}for(var u=0,d=t;u<d.length;u++){l=d[u];Cn('/// <reference types="'+l.fileName+'" />'),ft()}for(var p=0,m=r;p<m.length;p++){l=m[p];Cn('/// <reference lib="'+l.fileName+'" />'),ft()}}function zn(e){var n=e.statements;At(e),Mt.forEach(e.statements,kt),z(e);var t,r=Mt.findIndex(n,function(e){return!Mt.isPrologueDirective(e)});(t=e).isDeclarationFile&&Z(t.hasNoDefaultLib,t.referencedFiles,t.typeReferenceDirectives,t.libReferenceDirectives),ot(e,n,1,-1===r?n.length:r),Lt(e)}function $(e,n,t){for(var r=0;r<e.length;r++){var a=e[r];if(!Mt.isPrologueDirective(a))return r;(!t||!t.has(a.expression.text))&&((n||0<r)&&ft(),Ln(a),t&&t.set(a.expression.text,!0))}return e.length}function ee(e){if(Mt.isSourceFile(e))F(e),$(e.statements);else for(var n=Mt.createMap(),t=0,r=e.sourceFiles;t<r.length;t++){var a=r[t];F(a),$(a.statements,!0,n)}}function ne(e){if(Mt.isSourceFile(e)){var n=Mt.getShebang(e.text);if(n)return Cn(n),ft(),!0}else for(var t=0,r=e.sourceFiles;t<r.length;t++){if(ne(r[t]))break}}function Jn(e,n){if(e){var t=Cn;Cn=n,Ln(e),Cn=t}}function Xn(e,n){n&&n.length&&(ot(e,n,131328),pt())}function Yn(e){e&&(ct(":"),pt(),Ln(e))}function Qn(e,n,t){e&&(pt(),Gn(58,n,ut,t),pt(),kn(e))}function Zn(e){e&&(pt(),Ln(e))}function $n(e){e&&(pt(),kn(e))}function et(e,n){Mt.isBlock(n)||1&Mt.getEmitFlags(e)?(pt(),Ln(n)):(ft(),_t(),Ln(n),gt())}function nt(e,n){ot(e,n,24577)}function tt(e,n){ot(e,n,26896)}function rt(e,n){if(Mt.isFunctionLike(e)&&e.typeArguments)return tt(e,e.typeArguments);ot(e,n,26896)}function at(e,n){ot(e,n,1296)}function it(e,n){var t,r,a;t=e,r=n,!(a=Mt.singleOrUndefined(r))||a.pos!==t.pos||!Mt.isArrowFunction(t)||t.type||Mt.some(t.decorators)||Mt.some(t.modifiers)||Mt.some(t.typeParameters)||Mt.some(a.decorators)||Mt.some(a.modifiers)||a.dotDotDotToken||a.questionToken||a.type||a.initializer||!Mt.isIdentifier(a.name)?at(e,n):ot(e,n,272)}function ot(e,n,t,r,a){re(Ln,e,n,t,r,a)}function st(e,n,t,r,a){re(kn,e,n,t,r,a)}function te(e){switch(28&e){case 0:break;case 16:ct(",");break;case 4:pt(),ct("|");break;case 8:pt(),ct("&")}}function re(e,n,t,r,a,i){void 0===a&&(a=0),void 0===i&&(i=t?t.length-a:0);var o=void 0===t;if(!(o&&8192&r)){var s=void 0===t||a>=t.length||0===i;if(s&&16384&r)return g&&g(t),void(v&&v(t));if(7680&r&&(ct(be[7680&r][0]),s&&!o&&Sn(t.pos,!0)),g&&g(t),s)1&r?ft():128&r&&!(262144&r)&&pt();else{var c=0==(131072&r),l=c;se(n,t,r)?(ft(),l=!1):128&r&&pt(),64&r&&_t();for(var u=void 0,d=!1,p=0;p<i;p++){var m=t[a+p];if(u&&(28&r&&u.end!==n.end&&xn(u.end),te(r),ce(u,m,r)?(0==(67&r)&&(_t(),d=!0),ft(),l=!1):u&&256&r&&pt()),l){if(Sn){var f=Mt.getCommentRange(m);Sn(f.pos)}}else l=c;e(m),d&&(gt(),d=!1),u=m}var _=32&r&&t.hasTrailingComma;16&r&&_&&ct(","),u&&28&r&&u.end!==n.end&&!(1024&Mt.getEmitFlags(u))&&xn(u.end),64&r&&gt(),le(n,t,r)?ft():128&r&&pt()}v&&v(t),7680&r&&(s&&!o&&xn(t.end),ct(be[7680&r][1]))}}function ae(e,n){Dn(),En.writeSymbol(e,n)}function ct(e){Dn(),En.writePunctuation(e)}function ie(){En.writePunctuation(";")}function lt(e){Dn(),En.writeKeyword(e)}function ut(e){Dn(),En.writeOperator(e)}function dt(e){Dn(),En.writeParameter(e)}function pt(){Dn(),En.writeSpace(" ")}function mt(e){Dn(),En.writeProperty(e)}function ft(){Dn(),En.writeLine()}function _t(){Dn(),En.increaseIndent()}function gt(){Dn(),En.decreaseIndent()}function vt(e,n,t,r){return d?d(r,e,t,n,ht):ht(e,t,n)}function yt(e,n){y&&y(e),n(Mt.tokenToString(e.kind)),h&&h(e)}function ht(e,n,t){var r=Mt.tokenToString(e);return n(r),t<0?t:t+r.length}function bt(e){1&Mt.getEmitFlags(e)?pt():ft()}function oe(e){for(var n=e.split(/\r\n?|\n/g),t=Mt.guessIndentation(n),r=0,a=n;r<a.length;r++){var i=a[r],o=t?i.slice(t):i;o.length&&(ft(),Cn(o),ft())}}function Et(e,n){e?(_t(),ft()):n&&Cn(n)}function Tt(e,n){e&&gt(),n&&gt()}function se(e,n,t){if(1&t)return!0;if(2&t){if(32768&t)return!0;var r=n[0];return void 0===r?!Mt.rangeIsOnSingleLine(e,bn):Mt.positionIsSynthesized(e.pos)||Mt.nodeIsSynthesized(r)?ue(r,t):!Mt.rangeStartPositionsAreOnSameLine(e,r,bn)}return!1}function ce(e,n,t){return!!(1&t)||(2&t?void 0!==e&&void 0!==n&&(Mt.nodeIsSynthesized(e)||Mt.nodeIsSynthesized(n)?ue(e,t)||ue(n,t):!Mt.rangeEndIsOnSameLineAsRangeStart(e,n,bn)):Mt.getStartsOnNewLine(n))}function le(e,n,t){if(1&t)return 0==(65536&t);if(2&t){if(32768&t)return!0;var r=Mt.lastOrUndefined(n);return void 0===r?!Mt.rangeIsOnSingleLine(e,bn):Mt.positionIsSynthesized(e.pos)||Mt.nodeIsSynthesized(r)?ue(r,t):!Mt.rangeEndPositionsAreOnSameLine(e,r,bn)}return!1}function ue(e,n){if(Mt.nodeIsSynthesized(e)){var t=Mt.getStartsOnNewLine(e);return void 0===t?0!=(32768&n):t}return 0!=(32768&n)}function St(e,n,t){return e=de(e),n=de(n),t=de(t),!!Mt.getStartsOnNewLine(t)||!(Mt.nodeIsSynthesized(e)||Mt.nodeIsSynthesized(n)||Mt.nodeIsSynthesized(t)||Mt.rangeEndIsOnSameLineAsRangeStart(n,t,bn))}function xt(e){return 0===e.statements.length&&Mt.rangeEndIsOnSameLineAsRangeStart(e,e,bn)}function de(e){for(;193===e.kind&&Mt.nodeIsSynthesized(e);)e=e.expression;return e}function Ct(e,n){return Mt.isGeneratedIdentifier(e)?me(e):Mt.isIdentifier(e)&&(Mt.nodeIsSynthesized(e)||!e.parent||!bn||e.parent&&bn&&Mt.getSourceFileOfNode(e)!==Mt.getOriginalNode(bn))?Mt.idText(e):9===e.kind&&e.textSourceNode?Ct(e.textSourceNode,n):!Mt.isLiteralExpression(e)||!Mt.nodeIsSynthesized(e)&&e.parent?Mt.getSourceTextOfNodeFromSourceFile(bn,e,n):e.text}function Dt(e,n){if(9===e.kind&&e.textSourceNode){var t=e.textSourceNode;return Mt.isIdentifier(t)?n||16777216&Mt.getEmitFlags(e)?'"'+Mt.escapeString(Ct(t))+'"':'"'+Mt.escapeNonAsciiString(Ct(t))+'"':Dt(t,n)}return Mt.getLiteralText(e,bn,n)}function At(e){e&&524288&Mt.getEmitFlags(e)||(n.push(a),a=0,i.push(s))}function Lt(e){e&&524288&Mt.getEmitFlags(e)||(a=n.pop(),s=i.pop())}function pe(e){s&&s!==Mt.lastOrUndefined(i)||(s=Mt.createMap()),s.set(e,!0)}function kt(e){if(e)switch(e.kind){case 216:Mt.forEach(e.statements,kt);break;case 231:case 229:case 221:case 222:kt(e.statement);break;case 220:kt(e.thenStatement),kt(e.elseStatement);break;case 223:case 225:case 224:kt(e.initializer),kt(e.statement);break;case 230:kt(e.caseBlock);break;case 244:Mt.forEach(e.clauses,kt);break;case 269:case 270:Mt.forEach(e.statements,kt);break;case 233:kt(e.tryBlock),kt(e.catchClause),kt(e.finallyBlock);break;case 272:kt(e.variableDeclaration),kt(e.block);break;case 217:kt(e.declarationList);break;case 236:Mt.forEach(e.declarations,kt);break;case 235:case 149:case 184:case 238:It(e.name);break;case 237:It(e.name),524288&Mt.getEmitFlags(e)&&(Mt.forEach(e.parameters,kt),kt(e.body));break;case 182:case 183:Mt.forEach(e.elements,kt);break;case 247:kt(e.importClause);break;case 248:It(e.name),kt(e.namedBindings);break;case 249:It(e.name);break;case 250:Mt.forEach(e.elements,kt);break;case 251:It(e.propertyName||e.name)}}function Nt(e){if(e)switch(e.kind){case 273:case 274:case 152:case 154:case 156:case 157:It(e.name)}}function It(e){e&&(Mt.isGeneratedIdentifier(e)?me(e):Mt.isBindingPattern(e)&&kt(e))}function me(e){if(4==(7&e.autoGenerateFlags))return fe(function(e){var n=e.autoGenerateId,t=e,r=t.original;for(;r&&(t=r,!(Mt.isIdentifier(t)&&4&t.autoGenerateFlags&&t.autoGenerateId!==n));)r=t.original;return t}(e),e.autoGenerateFlags);var n=e.autoGenerateId;return t[n]||(t[n]=function(e){switch(7&e.autoGenerateFlags){case 1:return ve(0,!!(8&e.autoGenerateFlags));case 2:return ve(268435456,!!(8&e.autoGenerateFlags));case 3:return ye(Mt.idText(e),32&e.autoGenerateFlags?ge:_e,!!(16&e.autoGenerateFlags),!!(8&e.autoGenerateFlags))}return Mt.Debug.fail("Unsupported GeneratedIdentifierKind.")}(e))}function fe(e,n){var t=Mt.getNodeId(e);return r[t]||(r[t]=function(e,n){switch(e.kind){case 71:return ye(Ct(e),_e,!!(16&n),!!(8&n));case 242:case 241:return function(e,n){for(var t=n;Mt.isNodeDescendantOf(t,n);t=t.nextContainer)if(t.locals){var r=t.locals.get(Mt.escapeLeadingUnderscores(e));if(r&&70366143&r.flags)return!1}return!0}(i=Ct((a=e).name),a)?i:ye(i);case 247:case 253:return t=e,r=Mt.getExternalModuleName(t),ye(Mt.isStringLiteral(r)?Mt.makeIdentifierFromModuleName(r.text):"module");case 237:case 238:case 252:return ye("default");case 207:return ye("class");case 154:case 156:case 157:return function(e){if(Mt.isIdentifier(e.name))return fe(e.name);return ve(0)}(e);default:return ve(0)}var t,r;var a,i}(e,n))}function _e(e){return ge(e)&&!o.has(e)&&!(s&&s.has(e))}function ge(e){return!bn||Mt.isFileLevelUniqueName(bn,e,l)}function ve(e,n){if(e&&!(a&e)&&_e(t=268435456===e?"_i":"_n"))return a|=e,n&&pe(t),t;for(;;){var t,r=268435455&a;if(a++,8!==r&&13!==r)if(_e(t=r<26?"_"+String.fromCharCode(97+r):"_"+(r-26)))return n&&pe(t),t}}function ye(e,n,t,r){if(void 0===n&&(n=_e),t&&n(e))return r?pe(e):o.set(e,!0),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var a=1;;){var i=e+a;if(n(i))return r?pe(i):o.set(i,!0),i;a++}}function he(e){return ye(e,ge,!0)}}Mt.forEachEmittedFile=i,Mt.getOutputPathsFor=d,Mt.getOutputExtension=u,Mt.emitFiles=function(m,f,e,_,s,g){var v,y=f.getCompilerOptions(),u=y.sourceMap||y.inlineSourceMap||Mt.getAreDeclarationMapsEnabled(y)?[]:void 0,c=y.listEmittedFiles?[]:void 0,h=Mt.createDiagnosticCollection(),n=f.getNewLine(),d=Mt.createTextWriter(n),l=Mt.createSourceMapWriter(f,d),b=Mt.createSourceMapWriter(f,d,{sourceMap:y.declarationMap,sourceRoot:y.sourceRoot,mapRoot:y.mapRoot,extendedDiagnostics:y.extendedDiagnostics}),p={originalOffset:-1,totalLength:-1},E=!1;return Mt.performance.mark("beforePrint"),i(f,function(e,n){var t=e.jsFilePath,r=e.sourceMapFilePath,a=e.declarationFilePath,i=e.declarationMapPath,o=e.bundleInfoPath;(function(e,n,t,r){if(f.isEmitBlocked(n)||y.noEmit||y.emitDeclarationOnly)return E=!0;if(!_){var a=Mt.transformNodes(m,f,y,[e],s,!1),i=D(__assign({},y,{noEmitHelpers:y.noEmitHelpers}),{hasGlobalName:m.hasGlobalName,onEmitNode:a.emitNodeWithNotification,substituteNode:a.substituteNode,onEmitSourceMapOfNode:l.emitNodeWithSourceMap,onEmitSourceMapOfToken:l.emitTokenWithSourceMap,onEmitSourceMapOfPosition:l.emitPos,onSetSourceFile:x});Mt.Debug.assert(1===a.transformed.length,"Should only see one output from the transform"),S(n,t,a.transformed[0],r,i,l),a.dispose()}})(n,t,r,o),function(e,n,t){if(n&&!Mt.isInJSFile(e)){var r=Mt.isSourceFile(e)?[e]:e.sourceFiles,a=Mt.filter(r,Mt.isSourceFileNotJS),i=y.outFile||y.out?[Mt.createBundle(a,Mt.isSourceFile(e)?void 0:e.prepends)]:a;_&&!Mt.getEmitDeclarations(y)&&a.forEach(T);var o=Mt.transformNodes(m,f,y,i,Mt.concatenate([Mt.transformDeclarations],g),!1);if(Mt.length(o.diagnostics))for(var s=0,c=o.diagnostics;s<c.length;s++){var l=c[s];h.add(l)}var u=D(__assign({},y,{onlyPrintJsDocStyle:!0,noEmitHelpers:!0}),{hasGlobalName:m.hasGlobalName,onEmitSourceMapOfNode:b.emitNodeWithSourceMap,onEmitSourceMapOfToken:b.emitTokenWithSourceMap,onEmitSourceMapOfPosition:b.emitPos,onSetSourceFile:C,onEmitNode:o.emitNodeWithNotification,substituteNode:o.substituteNode}),d=!!o.diagnostics&&!!o.diagnostics.length||!!f.isEmitBlocked(n)||!!y.noEmit;if(E=E||d,(!d||_)&&(Mt.Debug.assert(1===o.transformed.length,"Should only see one output from the decl transform"),S(n,t,o.transformed[0],void 0,u,b),_&&277===o.transformed[0].kind)){var p=o.transformed[0];v=p.exportedModulesFromDeclarationEmit}o.dispose()}}(n,a,i),!E&&c&&(_||c.push(t),r&&c.push(r),a&&c.push(a),o&&c.push(o))},Mt.getSourceFilesToEmit(f,e),_),Mt.performance.measure("printTime","beforePrint"),{emitSkipped:E,diagnostics:h.getDiagnostics(),emittedFiles:c,sourceMaps:u,exportedModulesFromDeclarationEmit:v};function T(e){Mt.isExportAssignment(e)?71===e.expression.kind&&m.collectLinkedAliases(e.expression,!0):Mt.isExportSpecifier(e)?m.collectLinkedAliases(e.propertyName||e.name,!0):Mt.forEachChild(e,T)}function S(e,n,t,r,a,i){var o=278===t.kind?t:void 0,s=277===t.kind?t:void 0,c=o?o.sourceFiles:[s];i.initialize(e,n||"",t,u),o?a.writeBundle(o,d,p):a.writeFile(s,d),d.writeLine();var l=i.getSourceMappingURL();l&&d.write("//# sourceMappingURL="+l),n&&Mt.writeFile(f,h,n,i.getText(),!1,c),Mt.writeFile(f,h,e,d.getText(),!!y.emitBOM,c),r&&(p.totalLength=d.getTextPos(),Mt.writeFile(f,h,r,JSON.stringify(p,void 0,2),!1)),i.reset(),d.clear(),p={originalOffset:-1,totalLength:-1}}function x(e){l.setSourceFile(e)}function C(e){b.setSourceFile(e)}},(t=n||(n={}))[t.Notification=0]="Notification",t[t.Comments=1]="Comments",t[t.SourceMaps=2]="SourceMaps",t[t.Emit=3]="Emit",Mt.createPrinter=D,(a=r||(r={}))[a.Auto=0]="Auto",a[a.CountMask=268435455]="CountMask",a[a._i=268435456]="_i"}(ts||(ts={})),function(v){var e,a,n;function i(e,n,t,r){return e.watchFile(n,t,r)}function m(e,n,t,r){return e.watchDirectory(n,t,0!=(1&r))}function f(e,n){switch(e){case a.None:return n;case a.TriggerOnly:return _;case a.Verbose:return n===m?r:t}}function t(e,n,t,r,a,i,o,s,c,l,u){c(l+":: Added:: "+g(n,r,i,o,u));var d=_(e,n,t,r,a,i,o,s,c,l,u);return{close:function(){c(l+":: Close:: "+g(n,r,i,o,u)),d.close()}}}function r(e,r,n,a,t,i,o,s,c,l,u){var d=l+":: Added:: "+g(r,a,i,o,u);c(d);var p=v.timestamp(),m=_(e,r,n,a,t,i,o,s,c,l,u),f=v.timestamp()-p;return c("Elapsed:: "+f+"ms "+d),{close:function(){var e=l+":: Close:: "+g(r,a,i,o,u);c(e);var n=v.timestamp();m.close();var t=v.timestamp()-n;c("Elapsed:: "+t+"ms "+e)}}}function _(e,i,o,s,c,l,u,n,d,p,m){return n(e,i,function(e,n){var t=p+":: Triggered with "+e+" "+(void 0!==n?n:"")+":: "+g(i,s,l,u,m);d(t);var r=v.timestamp();o(e,n,c);var a=v.timestamp()-r;d("Elapsed:: "+a+"ms "+t)},s)}function g(e,n,t,r,a){return"WatchInfo: "+e+" "+n+" "+(a?a(t,r):t)}function o(e){e.watcher.close()}v.createCachedDirectoryStructureHost=function(s,c,l){if(s.getDirectories&&s.readDirectory){var o=v.createMap(),t=v.createGetCanonicalFileName(l);return{useCaseSensitiveFileNames:l,fileExists:function(e){var n=i(u(e));return n&&f(n.files,p(e))||s.fileExists(e)},readFile:function(e,n){return s.readFile(e,n)},directoryExists:s.directoryExists&&function(e){var n=u(e);return o.has(v.ensureTrailingDirectorySeparator(n))||s.directoryExists(e)},getDirectories:function(e){var n=u(e),t=m(e,n);return t?t.directories.slice():s.getDirectories(e)},readDirectory:function(e,n,t,r,a){var i=u(e),o=m(e,i);return o?v.matchFiles(e,n,t,r,l,c,a,function(e){var n=u(e);return n!==i?m(e,n)||v.emptyFileSystemEntries:o}):s.readDirectory(e,n,t,r,a)},createDirectory:s.createDirectory&&function(e){var n=i(u(e)),t=p(e);n&&a(n.directories,t,!0),s.createDirectory(e)},writeFile:s.writeFile&&function(e,n,t){var r=i(u(e));return r&&_(r,p(e),!0),s.writeFile(e,n,t)},addOrDeleteFileOrDirectory:function(e,n){if(d(n))g();else{var t=i(n);if(t){if(s.directoryExists){var r=p(e),a={fileExists:s.fileExists(n),directoryExists:s.directoryExists(n)};return a.directoryExists||f(t.directories,r)?g():_(t,r,a.fileExists),a}g()}}},addOrDeleteFile:function(e,n,t){if(t!==v.FileWatcherEventKind.Changed){var r=i(n);r&&_(r,p(e),t===v.FileWatcherEventKind.Created)}},clearCache:g}}function u(e){return v.toPath(e,c,t)}function d(e){return o.get(v.ensureTrailingDirectorySeparator(e))}function i(e){return d(v.getDirectoryPath(e))}function p(e){return v.getBaseFileName(v.normalizePath(e))}function m(e,n){var t,r,a,i=d(n=v.ensureTrailingDirectorySeparator(n));if(i)return i;try{return t=e,r=n,a={files:v.map(s.readDirectory(t,void 0,void 0,["*.*"]),p)||[],directories:s.getDirectories(t)||[]},o.set(v.ensureTrailingDirectorySeparator(r),a),a}catch(e){return void v.Debug.assert(!o.has(v.ensureTrailingDirectorySeparator(n)))}}function r(e,n){return t(e)===t(n)}function f(e,n){return v.some(e,function(e){return r(e,n)})}function a(e,n,t){if(f(e,n)){if(!t)return v.filterMutate(e,function(e){return!r(e,n)})}else if(t)return e.push(n)}function _(e,n,t){a(e.files,n,t)}function g(){o.clear()}},(e=v.ConfigFileProgramReloadLevel||(v.ConfigFileProgramReloadLevel={}))[e.None=0]="None",e[e.Partial=1]="Partial",e[e.Full=2]="Full",v.updateMissingFilePathsWatch=function(e,n,t){var r=e.getMissingFilePaths(),a=v.arrayToSet(r);v.mutateMap(n,a,{createNewValue:t,onDeleteValue:v.closeFileWatcher})},v.updateWatchingWildcardDirectories=function(r,e,t){function a(e,n){return{watcher:t(e,n),flags:n}}v.mutateMap(r,e,{createNewValue:a,onDeleteValue:o,onExistingValue:function(e,n,t){e.flags!==n&&(e.watcher.close(),r.set(t,a(t,n)))}})},v.isEmittedFileOfProgram=function(e,n){return!!e&&e.isEmittedFile(n)},(n=a=v.WatchLogLevel||(v.WatchLogLevel={}))[n.None=0]="None",n[n.TriggerOnly=1]="TriggerOnly",n[n.Verbose=2]="Verbose",v.getWatchFactory=function(e,n,t){return s=n,c=t,o=m,u=f(r=e,l=i),d=r===a.None?function(e,n,t,r,a){return l(e,n,function(e,n){return t(e,n,a)},r)}:u,p=f(r,o),{watchFile:function(e,n,t,r,a,i){return u(e,n,t,r,void 0,a,i,l,s,"FileWatcher",c)},watchFilePath:function(e,n,t,r,a,i,o){return d(e,n,t,r,a,i,o,l,s,"FileWatcher",c)},watchDirectory:function(e,n,t,r,a,i){return p(e,n,t,r,void 0,a,i,o,s,"DirectoryWatcher",c)}};var r,s,c,l,o,u,d,p},v.closeFileWatcherOf=o}(ts||(ts={})),function(fn){var m,e,_n=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;function gn(e,n){var t=fn.getDirectoryPath(n),r=fn.isRootedDiskPath(e)?e:fn.combinePaths(t,e);return fn.normalizePath(r)}function vn(e,a,i){var o;return fn.forEach(e,function(e){var n=fn.getNormalizedPathComponents(e,a);if(n.pop(),o){for(var t=Math.min(o.length,n.length),r=0;r<t;r++)if(i(o[r])!==i(n[r])){if(0===r)return!0;o.length=r;break}n.length<o.length&&(o.length=n.length)}else o=n})?"":o?fn.getPathFromPathComponents(o):a}function yn(e,n){return t(e,n)}function t(a,i,s){void 0===s&&(s=fn.sys);var c,t=fn.createMap();function o(e){var n;e.length>fn.getRootLength(e)&&(n=e,!(t.has(n)||s.directoryExists(n)&&(t.set(n,!0),1)))&&(o(fn.getDirectoryPath(e)),s.createDirectory(e))}function n(){return fn.getDirectoryPath(fn.normalizePath(s.getExecutingFilePath()))}var r=fn.getNewLineCharacter(a,function(){return s.newLine}),e=s.realpath&&function(e){return s.realpath(e)};return{getSourceFile:function(e,n,t){var r;try{fn.performance.mark("beforeIORead"),r=s.readFile(e,a.charset),fn.performance.mark("afterIORead"),fn.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){t&&t(e.message),r=""}return void 0!==r?fn.createSourceFile(e,r,n,i):void 0},getDefaultLibLocation:n,getDefaultLibFileName:function(e){return fn.combinePaths(n(),fn.getDefaultLibFileName(e))},writeFile:function(e,n,t,r){try{fn.performance.mark("beforeIOWrite"),o(fn.getDirectoryPath(fn.normalizePath(e))),fn.isWatchSet(a)&&s.createHash&&s.getModifiedTime?function(e,n,t){c||(c=fn.createMap());var r=s.createHash(n),a=s.getModifiedTime(e);if(a){var i=c.get(e);if(i&&i.byteOrderMark===t&&i.hash===r&&i.mtime.getTime()===a.getTime())return}s.writeFile(e,n,t);var o=s.getModifiedTime(e)||fn.missingFileModifiedTime;c.set(e,{hash:r,byteOrderMark:t,mtime:o})}(e,n,t):s.writeFile(e,n,t),fn.performance.mark("afterIOWrite"),fn.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){r&&r(e.message)}},getCurrentDirectory:fn.memoize(function(){return s.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return s.useCaseSensitiveFileNames},getCanonicalFileName:function(e){return s.useCaseSensitiveFileNames?e:e.toLowerCase()},getNewLine:function(){return r},fileExists:function(e){return s.fileExists(e)},readFile:function(e){return s.readFile(e)},trace:function(e){return s.write(e+r)},directoryExists:function(e){return s.directoryExists(e)},getEnvironmentVariable:function(e){return s.getEnvironmentVariable?s.getEnvironmentVariable(e):""},getDirectories:function(e){return s.getDirectories(e)},realpath:e,readDirectory:function(e,n,t,r,a){return s.readDirectory(e,n,t,r,a)}}}function i(e,n){var t=fn.diagnosticCategoryName(e)+" TS"+e.code+": "+v(e.messageText,n.getNewLine())+n.getNewLine();if(e.file){var r=fn.getLineAndCharacterOfPosition(e.file,e.start),a=r.line,i=r.character,o=e.file.fileName;return fn.convertToRelativePath(o,n.getCurrentDirectory(),function(e){return n.getCanonicalFileName(e)})+"("+(a+1)+","+(i+1)+"): "+t}return t}fn.findConfigFile=function(e,t,r){return void 0===r&&(r="tsconfig.json"),fn.forEachAncestorDirectory(e,function(e){var n=fn.combinePaths(e,r);return t(n)?n:void 0})},fn.resolveTripleslashReference=gn,fn.computeCommonSourceDirectoryOfFilenames=vn,fn.createCompilerHost=yn,fn.createCompilerHostWorker=t,fn.getPreEmitDiagnostics=function(e,n,t){var r=e.getConfigFileParsingDiagnostics().concat(e.getOptionsDiagnostics(t),e.getSyntacticDiagnostics(n,t),e.getGlobalDiagnostics(t),e.getSemanticDiagnostics(n,t));return fn.getEmitDeclarations(e.getCompilerOptions())&&fn.addRange(r,e.getDeclarationDiagnostics(n,t)),fn.sortAndDeduplicateDiagnostics(r)},fn.formatDiagnostics=function(e,n){for(var t="",r=0,a=e;r<a.length;r++)t+=i(a[r],n);return t},fn.formatDiagnostic=i,(e=m=fn.ForegroundColorEscapeSequences||(fn.ForegroundColorEscapeSequences={})).Grey="[90m",e.Red="[91m",e.Yellow="[93m",e.Blue="[94m",e.Cyan="[96m";var E="[7m",T=" ",S="[0m",x="...";function f(e){switch(e){case fn.DiagnosticCategory.Error:return m.Red;case fn.DiagnosticCategory.Warning:return m.Yellow;case fn.DiagnosticCategory.Suggestion:return fn.Debug.fail("Should never get an Info diagnostic on the command line.");case fn.DiagnosticCategory.Message:return m.Blue}}function C(e,n){return n+e+S}function D(e,n){for(;e.length<n;)e=" "+e;return e}function _(e,n,t,r,a,i){var o=fn.getLineAndCharacterOfPosition(e,n),s=o.line,c=o.character,l=fn.getLineAndCharacterOfPosition(e,n+t),u=l.line,d=l.character,p=fn.getLineAndCharacterOfPosition(e,e.text.length).line,m=4<=u-s,f=(u+1+"").length;m&&(f=Math.max(x.length,f));for(var _="",g=s;g<=u;g++){_+=i.getNewLine(),m&&s+1<g&&g<u-1&&(_+=r+C(D(x,f),E)+T+i.getNewLine(),g=u-1);var v=fn.getPositionOfLineAndCharacter(e,g,0),y=g<p?fn.getPositionOfLineAndCharacter(e,g+1,0):e.text.length,h=e.text.slice(v,y);if(h=(h=h.replace(/\s+$/g,"")).replace("\t"," "),_+=r+C(D(g+1+"",f),E)+T,_+=h+i.getNewLine(),_+=r+C(D("",f),E)+T,_+=a,g===s){var b=g===u?d:void 0;_+=h.slice(0,c).replace(/\S/g," "),_+=h.slice(c,b).replace(/./g,"~")}else _+=g===u?h.slice(0,d).replace(/./g,"~"):h.replace(/./g,"~");_+=S}return _}function g(e,n,t,r){void 0===r&&(r=C);var a=fn.getLineAndCharacterOfPosition(e,n),i=a.line,o=a.character,s="";return s+=r(t?fn.convertToRelativePath(e.fileName,t.getCurrentDirectory(),function(e){return t.getCanonicalFileName(e)}):e.fileName,m.Cyan),s+=":",s+=r(""+(i+1),m.Yellow),s+=":",s+=r(""+(o+1),m.Yellow)}function v(e,n){if(fn.isString(e))return e;for(var t=e,r="",a=0;t;){if(a){r+=n;for(var i=0;i<a;i++)r+="  "}r+=t.messageText,a++,t=t.next}return r}function hn(e,n,t){if(0===e.length)return[];for(var r=[],a=fn.createMap(),i=0,o=e;i<o.length;i++){var s=o[i],c=void 0;a.has(s)?c=a.get(s):a.set(s,c=t(s,n)),r.push(c)}return r}function bn(i){return{fileExists:function(e){return i.fileExists(e)},readDirectory:function(e,n,t,r,a){return fn.Debug.assertDefined(i.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),i.readDirectory(e,n,t,r,a)},readFile:function(e){return i.readFile(e)},useCaseSensitiveFileNames:i.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return i.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:function(){}}}function En(e,n){var t=n||e;return fn.resolveConfigFileProjectName(t.path)}function Tn(e){return e.declaration?"declaration":"composite"}function Sn(e,n){switch(n.extension){case".ts":case".d.ts":return;case".tsx":return t();case".jsx":return t()||r();case".js":return r();case".json":return e.resolveJsonModule?void 0:fn.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function t(){return e.jsx?void 0:fn.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function r(){return e.allowJs||!fn.getStrictOptionValue(e,"noImplicitAny")?void 0:fn.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function xn(e){for(var n=e.imports,t=e.moduleAugmentations,r=n.map(function(e){return e.text}),a=0,i=t;a<i.length;a++){var o=i[a];9===o.kind&&r.push(o.text)}return r}fn.formatColorAndReset=C,fn.formatLocation=g,fn.formatDiagnosticsWithColorAndContext=function(e,n){for(var t="",r=0,a=e;r<a.length;r++){var i=a[r];if(i.file&&(t+=g(l=i.file,u=i.start,n),t+=" - "),t+=C(fn.diagnosticCategoryName(i),f(i.category)),t+=C(" TS"+i.code+": ",m.Grey),t+=v(i.messageText,n.getNewLine()),i.file&&(t+=n.getNewLine(),t+=_(i.file,i.start,i.length,"",f(i.category),n),i.relatedInformation)){t+=n.getNewLine();for(var o=0,s=i.relatedInformation;o<s.length;o++){var c=s[o],l=c.file,u=c.start,d=c.length,p=c.messageText;l&&(t+=n.getNewLine(),t+="  "+g(l,u,n),t+=_(l,u,d,"    ",m.Cyan,n)),t+=n.getNewLine(),t+="    "+v(p,n.getNewLine())}}t+=n.getNewLine()}return t},fn.flattenDiagnosticMessageText=v,fn.isProgramUptoDate=function(a,e,n,t,i,r,o,s){if(!a||o)return!1;if(a.getRootFileNames().length!==e.length)return!1;if(!fn.arrayIsEqualTo(a.getProjectReferences(),s,function(e,n,t){if(!fn.projectReferenceIsEqualTo(e,n))return!1;var r=a.getResolvedProjectReferences()[t];return r?l(r.sourceFile):!i(En(e))}))return!1;if(a.getSourceFiles().some(function(e){return!l(e)||r(e.resolvedPath)}))return!1;if(a.getMissingFilePaths().some(i))return!1;var c=a.getCompilerOptions();return!(!fn.compareDataObjects(c,n)||c.configFile&&n.configFile&&c.configFile.text!==n.configFile.text);function l(e){return e.version===t(e.resolvedPath)}},fn.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?e.options.configFile.parseDiagnostics.concat(e.errors):e.errors},fn.createProgram=function(e,n,t,r,a){var i,C,D,B,o,s,c,l,u=fn.isArray(e)?{rootNames:e,options:n,host:t,oldProgram:r,configFileParsingDiagnostics:a}:e,K=u.rootNames,j=u.options,d=u.configFileParsingDiagnostics,H=u.projectReferences,U=u.oldProgram,W=fn.createMap(),p={},m={},q=fn.createMap(),z=fn.createDiagnosticCollection(),A="number"==typeof j.maxNodeModuleJsDepth?j.maxNodeModuleJsDepth:0,L=0,k=fn.createMap(),J=fn.createMap();fn.performance.mark("beforeProgram");var f,_,g,X,Y,Q=u.host||yn(j),v=bn(Q),N=j.noLib,y=fn.memoize(function(){return Q.getDefaultLibFileName(j)}),h=Q.getDefaultLibLocation?Q.getDefaultLibLocation():fn.getDirectoryPath(y()),T=fn.createDiagnosticCollection(),Z=Q.getCurrentDirectory(),b=fn.getSupportedExtensions(j),E=j.resolveJsonModule?b.concat([".json"]):void 0,S=fn.createMap(),$=Q.hasInvalidatedResolution||fn.returnFalse;if(Q.resolveModuleNames)X=function(e,n,t){return Q.resolveModuleNames(fn.Debug.assertEachDefined(e),n,t).map(function(e){if(!e||void 0!==e.extension)return e;var n=fn.clone(e);return n.extension=fn.extensionFromPath(e.resolvedFileName),n})};else{g=fn.createModuleResolutionCache(Z,function(e){return Q.getCanonicalFileName(e)});var x=function(e,n){return fn.resolveModuleName(e,n,j,Q,g).resolvedModule};X=function(e,n){return hn(fn.Debug.assertEachDefined(e),n,x)}}if(Q.resolveTypeReferenceDirectives)Y=function(e,n){return Q.resolveTypeReferenceDirectives(fn.Debug.assertEachDefined(e),n)};else{var I=function(e,n){return fn.resolveTypeReferenceDirective(e,n,j,Q).resolvedTypeReferenceDirective};Y=function(e,n){return hn(fn.Debug.assertEachDefined(e),n,I)}}var ee,M,O=fn.createMap(),ne=fn.createMap(),te=fn.createMultiMap(),re=fn.createMap(),w=Q.useCaseSensitiveFileNames()?fn.createMap():void 0,ae=H?[]:void 0,ie=function(e,n){if(!e)return!1;var t=e.getCompilerOptions();return!!fn.sourceFileAffectingCompilerOptions.some(function(e){return!fn.isJsonEqual(fn.getCompilerOptionValue(t,e),fn.getCompilerOptionValue(n,e))})}(U,j),P=function(){if(!U)return 0;var e=U.getCompilerOptions();if(fn.changesAffectModuleResolution(e,j))return U.structureIsReused=0;fn.Debug.assert(!(3&U.structureIsReused));var n=U.getRootFileNames();if(!fn.arrayIsEqualTo(n,K))return U.structureIsReused=0;if(!fn.arrayIsEqualTo(j.types,e.types))return U.structureIsReused=0;var t=U.getProjectReferences();if(!fn.arrayIsEqualTo(t,H,fn.projectReferenceIsEqualTo))return U.structureIsReused=0;var r=U.getResolvedProjectReferences();if(H){fn.Debug.assert(!!r);for(var a=0;a<H.length;a++){var i=r[a],o=en(H[a]);if(i){if(!o||o.sourceFile!==i.sourceFile)return U.structureIsReused=0}else if(void 0!==o)return U.structureIsReused=0}}else fn.Debug.assert(!r);var s=[],c=[],l=[];if(U.structureIsReused=2,U.getMissingFilePaths().some(function(e){return Q.fileExists(e)}))return U.structureIsReused=0;var u,d,p=U.getSourceFiles();(d=u||(u={}))[d.Exists=0]="Exists",d[d.Modified=1]="Modified";for(var m=fn.createMap(),f=0,_=p;f<_.length;f++){var g=_[f],v=Q.getSourceFileByPath?Q.getSourceFileByPath(g.fileName,g.resolvedPath,j.target,void 0,ie):Q.getSourceFile(g.fileName,j.target,void 0,ie);if(!v)return U.structureIsReused=0;fn.Debug.assert(!v.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var y=void 0;if(g.redirectInfo){if(v!==g.redirectInfo.unredirected)return U.structureIsReused=0;y=!1,v=g}else if(U.redirectTargetsMap.has(g.path)){if(v!==g)return U.structureIsReused=0;y=!1}else y=v!==g;v.path=g.path,v.originalFileName=g.originalFileName,v.resolvedPath=g.resolvedPath,v.fileName=g.fileName,c.push(v.path);var h=U.sourceFileToPackageName.get(g.path);if(void 0!==h){var b=m.get(h),E=y?1:0;if(void 0!==b&&1===E||1===b)return U.structureIsReused=0;m.set(h,E)}if(y){if(!fn.arrayIsEqualTo(g.libReferenceDirectives,v.libReferenceDirectives,Ge))return U.structureIsReused=0;g.hasNoDefaultLib!==v.hasNoDefaultLib&&(U.structureIsReused=1),fn.arrayIsEqualTo(g.referencedFiles,v.referencedFiles,Ge)||(U.structureIsReused=1),Be(v),fn.arrayIsEqualTo(g.imports,v.imports,Ve)||(U.structureIsReused=1),fn.arrayIsEqualTo(g.moduleAugmentations,v.moduleAugmentations,Ve)||(U.structureIsReused=1),(1572864&g.flags)!=(1572864&v.flags)&&(U.structureIsReused=1),fn.arrayIsEqualTo(g.typeReferenceDirectives,v.typeReferenceDirectives,Ge)||(U.structureIsReused=1),l.push({oldFile:g,newFile:v})}else $(g.path)&&(U.structureIsReused=1,l.push({oldFile:g,newFile:v}));s.push(v)}if(2!==U.structureIsReused)return U.structureIsReused;for(var T=l.map(function(e){return e.oldFile}),S=0,x=p;S<x.length;S++){var C=x[S];if(!fn.contains(T,C))for(var D=0,A=C.ambientModuleNames;D<A.length;D++){var L=A[D];W.set(L,C.fileName)}}for(var k=0,N=l;k<N.length;k++){var I=N[k],g=I.oldFile,v=I.newFile,M=fn.getNormalizedAbsolutePath(v.originalFileName,Z);if(X){var O=xn(v),w=ye(O,M,v),P=fn.hasChangesInResolutions(O,w,g.resolvedModules,fn.moduleResolutionIsEqualTo);v.resolvedModules=P?(U.structureIsReused=1,fn.zipToMap(O,w)):g.resolvedModules}if(Y){var R=fn.map(v.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),w=Y(R,M),P=fn.hasChangesInResolutions(R,w,g.resolvedTypeReferenceDirectiveNames,fn.typeDirectiveIsEqualTo);v.resolvedTypeReferenceDirectiveNames=P?(U.structureIsReused=1,fn.zipToMap(R,w)):g.resolvedTypeReferenceDirectiveNames}}if(2!==U.structureIsReused)return U.structureIsReused;if(Q.hasChangedAutomaticTypeDirectiveNames)return U.structureIsReused=1;ee=U.getMissingFilePaths();for(var a=0;a<s.length;a++)re.set(c[a],s[a]),U.isSourceFileFromExternalLibrary(U.getSourceFileByPath(c[a]))&&J.set(c[a],!0);B=s,z=U.getFileProcessingDiagnostics();for(var F=0,G=l;F<G.length;F++){var V=G[F];z.reattachFileDiagnostics(V.newFile)}return q=U.getResolvedTypeReferenceDirectives(),(ae=U.getResolvedProjectReferences())&&ae.forEach(function(e){e&&nn(e.commandLine)}),ne=U.sourceFileToPackageName,te=U.redirectTargetsMap,U.structureIsReused=2}();if(2!==P){if(C=[],D=[],H)for(var R=0,F=H;R<F.length;R++){var G=en(F[R]);if(ae.push(G),G){var V=G.commandLine.options.outFile||G.commandLine.options.out;V&&je(fn.changeExtension(V,".d.ts"),!1,!1,void 0),nn(G.commandLine)}}fn.forEach(K,function(e){return Fe(e,!1,!1)});var oe=fn.getAutomaticTypeDirectiveNames(j,Q);if(oe.length)for(var se=j.configFilePath?fn.getDirectoryPath(j.configFilePath):Q.getCurrentDirectory(),ce=fn.combinePaths(se,"__inferred type names__.ts"),le=Y(oe,ce),ue=0;ue<oe.length;ue++)Je(oe[ue],le[ue]);if(!N){var de=y();!j.lib&&de?Fe(de,!0,!1):fn.forEach(j.lib,function(e){Fe(fn.combinePaths(h,e),!0,!1)})}ee=fn.arrayFrom(re.keys(),function(e){return e}).filter(function(e){return!re.get(e)}),B=fn.stableSort(C,function(e,n){return fn.compareValues(_e(e),_e(n))}).concat(D),D=C=void 0}if(fn.Debug.assert(!!ee),U&&Q.onReleaseOldSourceFile)for(var pe=0,me=U.getSourceFiles();pe<me.length;pe++){var fe=me[pe];Ce(fe.path)&&!ie||Q.onReleaseOldSourceFile(fe,U.getCompilerOptions())}return U=void 0,i={getRootFileNames:function(){return K},getSourceFile:Ce,getSourceFileByPath:De,getSourceFiles:function(){return B},getMissingFilePaths:function(){return ee},getCompilerOptions:function(){return j},getSyntacticDiagnostics:function(e,n){return Ae(e,Le,n)},getOptionsDiagnostics:function(){return fn.sortAndDeduplicateDiagnostics(fn.concatenate(z.getGlobalDiagnostics(),fn.concatenate(T.getGlobalDiagnostics(),j.configFile?T.getDiagnostics(j.configFile.fileName):[])))},getGlobalDiagnostics:function(){return fn.sortAndDeduplicateDiagnostics(Te().getGlobalDiagnostics().slice())},getSemanticDiagnostics:function(e,n){return Ae(e,Ne,n)},getSuggestionDiagnostics:function(e,n){return ke(function(){return Te().getSuggestionDiagnostics(e,n)})},getDeclarationDiagnostics:function(e,n){var t=i.getCompilerOptions();return!e||t.out||t.outFile?Oe(e,n):Ae(e,Re,n)},getTypeChecker:Se,getClassifiableNames:function(){if(!l){Se(),l=fn.createUnderscoreEscapedMap();for(var e=0,n=B;e<n.length;e++){var t=n[e];fn.copyEntries(t.classifiableNames,l)}}return l},getDiagnosticsProducingTypeChecker:Te,getCommonSourceDirectory:ve,emit:function(e,n,t,r,a){return ke(function(){return function(e,n,t,r,a,i){var o=[];if(!a){if(j.noEmit)return{diagnostics:o,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};if(j.noEmitOnError){var s=e.getOptionsDiagnostics(r).concat(e.getSyntacticDiagnostics(n,r),e.getGlobalDiagnostics(r),e.getSemanticDiagnostics(n,r));if(0===s.length&&fn.getEmitDeclarations(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,r)),0<s.length||0<o.length)return{diagnostics:fn.concatenate(s,o),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var c=Te().getEmitResolver(j.outFile||j.out?void 0:n,r);fn.performance.mark("beforeEmit");var l=a?[]:fn.getTransformers(j,i),u=fn.emitFiles(c,he(t),n,a,l,i&&i.afterDeclarations);return fn.performance.mark("afterEmit"),fn.performance.measure("Emit","beforeEmit","afterEmit"),u}(i,e,n,t,r,a)})},getCurrentDirectory:function(){return Z},getNodeCount:function(){return Te().getNodeCount()},getIdentifierCount:function(){return Te().getIdentifierCount()},getSymbolCount:function(){return Te().getSymbolCount()},getTypeCount:function(){return Te().getTypeCount()},getFileProcessingDiagnostics:function(){return z},getResolvedTypeReferenceDirectives:function(){return q},isSourceFileFromExternalLibrary:Ee,isSourceFileDefaultLibrary:function(n){if(n.hasNoDefaultLib)return!0;if(!j.noLib)return!1;var t=Q.useCaseSensitiveFileNames()?fn.equateStringsCaseSensitive:fn.equateStringsCaseInsensitive;return j.lib?fn.some(j.lib,function(e){return t(n.fileName,fn.combinePaths(h,e))}):t(n.fileName,y())},dropDiagnosticsProducingTypeChecker:function(){s=void 0},getSourceFileFromReference:function(e,n){return Ke(gn(n.fileName,e.fileName),function(e){return re.get(ge(e))})},getLibFileFromReference:function(e){var n=e.fileName.toLocaleLowerCase(),t=fn.libMap.get(n);if(t)return Ce(fn.combinePaths(h,t))},sourceFileToPackageName:ne,redirectTargetsMap:te,isEmittedFile:function(e){if(j.noEmit)return!1;var n=ge(e);if(De(n))return!1;var t=j.outFile||j.out;if(t)return mn(n,t)||mn(n,fn.removeFileExtension(t)+".d.ts");if(j.declarationDir&&fn.containsPath(j.declarationDir,n,Z,!Q.useCaseSensitiveFileNames()))return!0;if(j.outDir)return fn.containsPath(j.outDir,n,Z,!Q.useCaseSensitiveFileNames());if(fn.fileExtensionIsOneOf(n,fn.supportedJSExtensions)||fn.fileExtensionIs(n,".d.ts")){var r=fn.removeFileExtension(n);return!!De(r+".ts")||!!De(r+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return d||fn.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,n){return g&&fn.resolveModuleNameFromCache(e,n,g)},getProjectReferences:function(){return H},getResolvedProjectReferences:function(){return ae},getProjectReferenceRedirect:We},function(){if(j.strictPropertyInitialization&&!fn.getStrictOptionValue(j,"strictNullChecks")&&on(fn.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),j.isolatedModules&&(fn.getEmitDeclarations(j)&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,Tn(j),"isolatedModules"),j.noEmitOnError&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules"),j.out&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),j.outFile&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),j.inlineSourceMap&&(j.sourceMap&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),j.mapRoot&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),j.paths&&void 0===j.baseUrl&&on(fn.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),j.composite&&!1===j.declaration&&on(fn.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),H)for(var e=0;e<H.length;e++){var n=H[e],t=ae[e]&&ae[e].commandLine.options;if(void 0!==t){if(t.composite||cn(e,fn.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,n.path),n.prepend){var r=t.outFile||t.out;r?Q.fileExists(r)||cn(e,fn.Diagnostics.Output_file_0_from_project_1_does_not_exist,r,n.path):cn(e,fn.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,n.path)}}else cn(e,fn.Diagnostics.File_0_does_not_exist,n.path)}if(j.composite){var a=B.filter(function(e){return!e.isDeclarationFile});if(K.length<a.length)for(var i=K.map(function(e){return fn.normalizePath(e).toLowerCase()}),o=0,s=a.map(function(e){return fn.normalizePath(e.path).toLowerCase()});o<s.length;o++){var c=s[o];-1===i.indexOf(c)&&T.add(fn.createCompilerDiagnostic(fn.Diagnostics.File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern,c))}}if(j.paths)for(var l in j.paths)if(fn.hasProperty(j.paths,l))if(fn.hasZeroOrOneAsteriskCharacter(l)||rn(!0,l,fn.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,l),fn.isArray(j.paths[l])){var u=j.paths[l].length;0===u&&rn(!1,l,fn.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,l);for(var e=0;e<u;e++){var d=j.paths[l][e],p=typeof d;"string"===p?fn.hasZeroOrOneAsteriskCharacter(d)||tn(l,e,fn.Diagnostics.Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character,d,l):tn(l,e,fn.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,d,l,p)}}else rn(!1,l,fn.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,l);j.sourceMap||j.inlineSourceMap||(j.inlineSources&&on(fn.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),j.sourceRoot&&on(fn.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),j.out&&j.outFile&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!j.mapRoot||j.sourceMap||j.declarationMap||on(fn.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),j.declarationDir&&(fn.getEmitDeclarations(j)||on(fn.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),(j.out||j.outFile)&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",j.out?"out":"outFile")),j.declarationMap&&!fn.getEmitDeclarations(j)&&on(fn.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),j.lib&&j.noLib&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),j.noImplicitUseStrict&&fn.getStrictOptionValue(j,"alwaysStrict")&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var m=j.target||0,f=j.outFile||j.out,_=fn.forEach(B,function(e){return fn.isExternalModule(e)&&!e.isDeclarationFile?e:void 0});if(j.isolatedModules){j.module===fn.ModuleKind.None&&m<2&&on(fn.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target");var g=fn.forEach(B,function(e){return fn.isExternalModule(e)||e.isDeclarationFile?void 0:e});if(g){var v=fn.getErrorSpanForNode(g,g);T.add(fn.createFileDiagnostic(g,v.start,v.length,fn.Diagnostics.Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided))}}else if(_&&m<2&&j.module===fn.ModuleKind.None){var v=fn.getErrorSpanForNode(_,_.externalModuleIndicator);T.add(fn.createFileDiagnostic(_,v.start,v.length,fn.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(f)if(j.module&&j.module!==fn.ModuleKind.AMD&&j.module!==fn.ModuleKind.System)on(fn.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,j.out?"out":"outFile","module");else if(void 0===j.module&&_){var v=fn.getErrorSpanForNode(_,_.externalModuleIndicator);T.add(fn.createFileDiagnostic(_,v.start,v.length,fn.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,j.out?"out":"outFile"))}if(j.resolveJsonModule&&(fn.getEmitModuleResolutionKind(j)!==fn.ModuleResolutionKind.NodeJs?on(fn.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):fn.hasJsonModuleEmitEnabled(j)||on(fn.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),j.outDir||j.sourceRoot||j.mapRoot){var y=ve();j.outDir&&""===y&&fn.forEach(B,function(e){return 1<fn.getRootLength(e.fileName)})&&on(fn.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!j.noEmit&&j.allowJs&&fn.getEmitDeclarations(j)&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs",Tn(j)),j.checkJs&&!j.allowJs&&T.add(fn.createCompilerDiagnostic(fn.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),j.emitDeclarationOnly&&(fn.getEmitDeclarations(j)||on(fn.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),j.noEmit&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),j.emitDecoratorMetadata&&!j.experimentalDecorators&&on(fn.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),j.jsxFactory?(j.reactNamespace&&on(fn.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),fn.parseIsolatedEntityName(j.jsxFactory,m)||sn("jsxFactory",fn.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,j.jsxFactory)):j.reactNamespace&&!fn.isIdentifierText(j.reactNamespace,m)&&sn("reactNamespace",fn.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,j.reactNamespace),!j.noEmit&&!j.suppressOutputPathCheck){var h=he(),b=fn.createMap();fn.forEachEmittedFile(h,function(e){j.emitDeclarationOnly||E(e.jsFilePath,b),E(e.declarationFilePath,b)})}function E(e,n){if(e){var t,r=ge(e);re.has(r)&&(j.configFilePath||(t=fn.chainDiagnosticMessages(void 0,fn.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)),t=fn.chainDiagnosticMessages(t,fn.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,e),pn(e,fn.createCompilerDiagnosticFromMessageChain(t)));var a=Q.useCaseSensitiveFileNames()?r:r.toLocaleLowerCase();n.has(a)?pn(e,fn.createCompilerDiagnostic(fn.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):n.set(a,!0)}}}(),fn.performance.mark("afterProgram"),fn.performance.measure("Program","beforeProgram","afterProgram"),i;function _e(e){if(fn.containsPath(h,e.fileName,!1)){var n=fn.getBaseFileName(e.fileName);if("lib.d.ts"===n||"lib.es6.d.ts"===n)return 0;var t=fn.removeSuffix(fn.removePrefix(n,"lib."),".d.ts"),r=fn.libs.indexOf(t);if(-1!==r)return r+1}return fn.libs.length+2}function ge(e){return fn.toPath(e,Z,Qe)}function ve(){if(void 0===o){var e=fn.filter(B,function(e){return fn.sourceFileMayBeEmitted(e,j,Ee)});j.rootDir&&$e(e,j.rootDir)?o=fn.getNormalizedAbsolutePath(j.rootDir,Z):j.composite&&j.configFilePath?$e(e,o=fn.getDirectoryPath(fn.normalizeSlashes(j.configFilePath))):(n=e,o=vn(fn.mapDefined(n,function(e){return e.isDeclarationFile?void 0:e.fileName}),Z,Qe)),o&&o[o.length-1]!==fn.directorySeparator&&(o+=fn.directorySeparator)}var n;return o}function ye(e,n,t){if(0===P&&!t.ambientModuleNames.length)return X(e,n);var r,a,i,o=U&&U.getSourceFile(n);if(o!==t&&t.resolvedModules){for(var s=[],c=0,l=e;c<l.length;c++){var u=l[c],d=t.resolvedModules.get(u);s.push(d)}return s}for(var p={},m=0;m<e.length;m++){if(u=e[m],t===o&&!$(o.path)){var f=o&&o.resolvedModules.get(u);if(f){fn.isTraceEnabled(j,Q)&&fn.trace(Q,fn.Diagnostics.Reusing_resolution_of_module_0_to_file_1_from_old_program,u,n),(a||(a=new Array(e.length)))[m]=f,(i||(i=[])).push(u);continue}}var _=!1;fn.contains(t.ambientModuleNames,u)?(_=!0,fn.isTraceEnabled(j,Q)&&fn.trace(Q,fn.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,u,n)):_=y(u),_?(a||(a=new Array(e.length)))[m]=p:(r||(r=[])).push(u)}var g=r&&r.length?X(r,n,i):fn.emptyArray;if(!a)return fn.Debug.assert(g.length===e.length),g;var v=0;for(m=0;m<a.length;m++)a[m]?a[m]===p&&(a[m]=void 0):(a[m]=g[v],v++);return fn.Debug.assert(v===g.length),a;function y(e){var n=fn.getResolvedModule(o,e),t=n&&U.getSourceFile(n.resolvedFileName);if(n&&t&&!t.externalModuleIndicator)return!1;var r=W.get(e);return!!r&&(fn.isTraceEnabled(j,Q)&&fn.trace(Q,fn.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,e,r),!0)}}function he(e){return __assign({getPrependNodes:be,getCanonicalFileName:Qe,getCommonSourceDirectory:i.getCommonSourceDirectory,getCompilerOptions:i.getCompilerOptions,getCurrentDirectory:function(){return Z},getNewLine:function(){return Q.getNewLine()},getSourceFile:i.getSourceFile,getSourceFileByPath:i.getSourceFileByPath,getSourceFiles:i.getSourceFiles,getLibFileFromReference:i.getLibFileFromReference,isSourceFileFromExternalLibrary:Ee,writeFile:e||function(e,n,t,r,a){return Q.writeFile(e,n,t,r,a)},isEmitBlocked:xe,readFile:function(e){return Q.readFile(e)},fileExists:function(e){var n=ge(e);return!!De(n)||!fn.contains(ee,n)&&Q.fileExists(e)}},Q.directoryExists?{directoryExists:function(e){return Q.directoryExists(e)}}:{},{useCaseSensitiveFileNames:function(){return Q.useCaseSensitiveFileNames()}})}function be(){if(!H)return fn.emptyArray;for(var e=[],n=0;n<H.length;n++){var t=H[n],r=ae[n].commandLine;if(t.prepend&&r&&r.options){var a=r.options.outFile||r.options.out;if(!a)continue;var i=fn.changeExtension(a,".d.ts"),o=Q.readFile(a)||"/* Input file "+a+" was missing */\r\n",s=a+".map",c=Q.readFile(s),l=Q.readFile(i)||"/* Input file "+i+" was missing */\r\n",u=i+".map",d=Q.readFile(u),p=fn.createInputFiles(o,l,c&&s,c,d&&u,d);e.push(p)}}return e}function Ee(e){return!!J.get(e.path)}function Te(){return s||(s=fn.createTypeChecker(i,!0))}function Se(){return c||(c=fn.createTypeChecker(i,!1))}function xe(e){return S.has(ge(e))}function Ce(e){return De(ge(e))}function De(e){return re.get(e)}function Ae(e,n,t){return e?n(e,t):fn.sortAndDeduplicateDiagnostics(fn.flatMap(i.getSourceFiles(),function(e){return t&&t.throwIfCancellationRequested(),n(e,t)}))}function Le(e){return fn.isSourceFileJS(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=(o=e,ke(function(){var s=[],c=o;return l(o),s;function l(e){switch(c.kind){case 149:case 152:if(c.questionToken===e)return void s.push(d(e,fn.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 154:case 153:case 155:case 156:case 157:case 194:case 237:case 195:case 235:if(c.type===e)return void s.push(d(e,fn.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(e.kind){case 246:return void s.push(d(e,fn.Diagnostics.import_can_only_be_used_in_a_ts_file));case 252:if(e.isExportEquals)return void s.push(d(e,fn.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 271:var n=e;if(108===n.token)return void s.push(d(e,fn.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 239:return void s.push(d(e,fn.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 242:return void s.push(d(e,fn.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 240:return void s.push(d(e,fn.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 241:return void s.push(d(e,fn.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 211:return void s.push(d(e,fn.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 210:return void s.push(d(e.type,fn.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 192:fn.Debug.fail()}var t=c;c=e,fn.forEachChild(e,l,r),c=t}function r(e){switch(c.decorators!==e||j.experimentalDecorators||s.push(d(c,fn.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)),c.kind){case 238:case 154:case 153:case 155:case 156:case 157:case 194:case 237:case 195:if(e===c.typeParameters)return void s.push(u(e,fn.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 217:if(e===c.modifiers)return function(e,n){for(var t=0,r=e;t<r.length;t++){var a=r[t];switch(a.kind){case 76:if(n)continue;case 114:case 112:case 113:case 132:case 124:case 117:s.push(d(a,fn.Diagnostics._0_can_only_be_used_in_a_ts_file,fn.tokenToString(a.kind)))}}}(e,217===c.kind);break;case 152:if(e!==c.modifiers)break;for(var n=0,t=e;n<t.length;n++){var r=t[n];115!==r.kind&&s.push(d(r,fn.Diagnostics._0_can_only_be_used_in_a_ts_file,fn.tokenToString(r.kind)))}return;case 149:if(e===c.modifiers)return void s.push(u(e,fn.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));break;case 189:case 190:case 209:case 259:case 260:if(e===c.typeArguments)return void s.push(u(e,fn.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file))}for(var a=0,i=e;a<i.length;a++){var o=i[a];l(o)}}function u(e,n,t,r,a){var i=e.pos;return fn.createFileDiagnostic(o,i,e.end-i,n,t,r,a)}function d(e,n,t,r,a){return fn.createDiagnosticForNodeInSourceFile(o,e,n,t,r,a)}}))),fn.concatenate(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics;var o}function ke(e){try{return e()}catch(e){throw e instanceof fn.OperationCanceledException&&(s=c=void 0),e}}function Ne(e,n){return Pe(e,n,p,Ie)}function Ie(u,d){return ke(function(){if(fn.skipTypeChecking(u,j))return fn.emptyArray;var e=Te();fn.Debug.assert(!!u.bindDiagnostics);for(var n,t=fn.isCheckJsEnabledForFile(u,j),r=3===u.scriptKind||4===u.scriptKind||5===u.scriptKind||t||7===u.scriptKind,a=0,i=[r?u.bindDiagnostics:fn.emptyArray,r?e.getDiagnostics(u,d):fn.emptyArray,z.getDiagnostics(u.fileName),T.getDiagnostics(u.fileName),t?u.jsDocDiagnostics:void 0];a<i.length;a++){var o=i[a];if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];Me(l)&&(n=fn.append(n,l))}}return n})}function Me(e){var n=e.file,t=e.start;if(n)for(var r=fn.getLineStarts(n),a=fn.computeLineAndCharacterOfPosition(r,t).line;0<a;){var i=n.text.slice(r[a-1],r[a]),o=_n.exec(i);if(!o)return!0;if(o[3])return!1;a--}return!0}function Oe(e,n){return Pe(e,n,m,we)}function we(n,t){return ke(function(){var e=Te().getEmitResolver(n,t);return fn.getDeclarationDiagnostics(he(fn.noop),e,n)})}function Pe(e,n,t,r){var a=e?t.perFile&&t.perFile.get(e.path):t.allDiagnostics;if(a)return a;var i=r(e,n)||fn.emptyArray;return e?(t.perFile||(t.perFile=fn.createMap()),t.perFile.set(e.path,i)):t.allDiagnostics=i,i}function Re(e,n){return e.isDeclarationFile?[]:Oe(e,n)}function Fe(e,n,t){je(fn.normalizePath(e),n,t,void 0)}function Ge(e,n){return e.fileName===n.fileName}function Ve(e,n){return 71===e.kind?71===n.kind&&e.escapedText===n.escapedText:9===n.kind&&e.text===n.text}function Be(s){if(!s.imports){var c,l,u,e=fn.isSourceFileJS(s),d=fn.isExternalModule(s);if(j.importHelpers&&(j.isolatedModules||d)&&!s.isDeclarationFile){var n=fn.createLiteral(fn.externalHelpersModuleNameText),t=fn.createImportDeclaration(void 0,void 0,void 0,n);fn.addEmitFlags(t,67108864),(n.parent=t).parent=s,c=[n]}for(var r=0,a=s.statements;r<a.length;r++){var i=a[r];p(i,!1),(524288&s.flags||e)&&o(i)}return(524288&s.flags||e)&&o(s.endOfFileToken),s.imports=c||fn.emptyArray,s.moduleAugmentations=l||fn.emptyArray,void(s.ambientModuleNames=u||fn.emptyArray)}function p(e,n){if(fn.isAnyImportOrReExport(e)){var t=fn.getExternalModuleName(e);!(t&&fn.isStringLiteral(t)&&t.text)||n&&fn.isExternalModuleNameRelative(t.text)||(c=fn.append(c,t))}else if(fn.isModuleDeclaration(e)&&fn.isAmbientModule(e)&&(n||fn.hasModifier(e,2)||s.isDeclarationFile)){var r=fn.getTextOfIdentifierOrLiteral(e.name);if(d||n&&!fn.isExternalModuleNameRelative(r))(l||(l=[])).push(e.name);else if(!n){s.isDeclarationFile&&(u||(u=[])).push(r);var a=e.body;if(a)for(var i=0,o=a.statements;i<o.length;i++)p(o[i],!0)}}}function o(e){fn.isRequireCall(e,!0)?c=fn.append(c,e.arguments[0]):fn.isImportCall(e)&&1===e.arguments.length&&fn.isStringLiteralLike(e.arguments[0])?c=fn.append(c,e.arguments[0]):fn.isLiteralImportTypeNode(e)&&(c=fn.append(c,e.argument.literal)),m(e),fn.hasJSDocNodes(e)&&fn.forEach(e.jsDoc,m)}function m(e){fn.forEachChild(e,o)}}function Ke(n,t,e,r){if(fn.hasExtension(n)){if(!j.allowNonTsExtensions&&!fn.forEach(E||b,function(e){return fn.fileExtensionIs(Q.getCanonicalFileName(n),e)}))return void(e&&e(fn.Diagnostics.File_0_has_unsupported_extension_The_only_supported_extensions_are_1,n,"'"+b.join("', '")+"'"));var a=t(n);if(e)if(a)r&&Q.getCanonicalFileName(n)===Q.getCanonicalFileName(r.fileName)&&e(fn.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var i=We(n);i?e(fn.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,i,n):e(fn.Diagnostics.File_0_not_found,n)}return a}var o=j.allowNonTsExtensions&&t(n);if(o)return o;if(!e||!j.allowNonTsExtensions){var s=fn.forEach(b,function(e){return t(n+e)});return e&&!s&&e(fn.Diagnostics.File_0_not_found,n+".ts"),s}e(fn.Diagnostics.File_0_not_found,n)}function je(e,n,t,r,a,i,o){Ke(e,function(e){return Ue(e,ge(e),n,t,a,i,o,r)},function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];z.add(void 0!==a&&void 0!==o&&void 0!==i?fn.createFileDiagnostic.apply(void 0,[a,i,o-i,e].concat(n)):fn.createCompilerDiagnostic.apply(void 0,[e].concat(n)))},a)}function He(e,n,t,r,a){void 0!==t&&void 0!==r&&void 0!==a?z.add(fn.createFileDiagnostic(t,r,a-r,fn.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,e,n)):z.add(fn.createCompilerDiagnostic(fn.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,e,n))}function Ue(n,e,t,r,a,i,o,s){var c,l=n;if(re.has(e)){var u=re.get(e);if(u&&j.forceConsistentCasingInFileNames){var d=n,p=u.fileName;ge(p)!==ge(d)&&(d=We(n)||n),fn.getNormalizedAbsolutePath(p,Z)!==fn.getNormalizedAbsolutePath(d,Z)&&He(d,p,a,i,o)}return u&&J.get(u.path)&&0===L?(J.set(u.path,!1),j.noResolve||(qe(u,t),ze(u)),Xe(u),k.set(u.path,!1),Ze(u)):u&&k.get(u.path)&&L<A&&(k.set(u.path,!1),Ze(u)),u}if(a){var m=We(n);m&&((a.redirectedReferences||(a.redirectedReferences=[])).push(n),c=ge(n=m))}var f,_,g,v,y,h=Q.getSourceFile(n,j.target,function(e){void 0!==a&&void 0!==i&&void 0!==o?z.add(fn.createFileDiagnostic(a,i,o-i,fn.Diagnostics.Cannot_read_file_0_Colon_1,n,e)):z.add(fn.createCompilerDiagnostic(fn.Diagnostics.Cannot_read_file_0_Colon_1,n,e))},ie);if(s){var b=fn.packageIdToString(s),E=O.get(b);if(E){var T=(f=E,_=h,g=n,v=e,(y=Object.create(f)).fileName=g,y.path=v,y.redirectInfo={redirectTarget:f,unredirected:_},Object.defineProperties(y,{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}}}),y);return te.add(E.path,n),re.set(e,T),ne.set(e,s.name),D.push(T),T}h&&(O.set(b,h),ne.set(e,s.name))}if(re.set(e,h),c&&re.set(c,h),h){if(J.set(e,0<L),h.path=e,h.resolvedPath=ge(n),h.originalFileName=l,Q.useCaseSensitiveFileNames()){var S=e.toLowerCase(),x=w.get(S);x?He(n,x.fileName,a,i,o):w.set(S,h)}N=N||h.hasNoDefaultLib&&!r,j.noResolve||(qe(h,t),ze(h)),Xe(h),Ze(h),t?C.push(h):D.push(h)}return h}function We(t){if(M&&!fn.fileExtensionIs(t,".d.ts")&&fn.fileExtensionIsOneOf(t,fn.supportedTSExtensions))return fn.forEach(M,function(e){if(fn.contains(e.fileNames,t,mn)){var n=e.options.outFile||e.options.out;return n?fn.changeExtension(n,".d.ts"):fn.getOutputDeclarationFileName(t,e)}})}function qe(n,t){fn.forEach(n.referencedFiles,function(e){je(gn(e.fileName,n.originalFileName),t,!1,void 0,n,e.pos,e.end)})}function ze(e){var n=fn.map(e.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()});if(n)for(var t=Y(n,e.originalFileName),r=0;r<n.length;r++){var a=e.typeReferenceDirectives[r],i=t[r],o=a.fileName.toLocaleLowerCase();fn.setResolvedTypeReferenceDirective(e,o,i),Je(o,i,e,a.pos,a.end)}}function Je(e,n,t,r,a){var i=q.get(e);if(!i||!i.primary){var o=!0;n?n.primary?je(n.resolvedFileName,!1,!1,n.packageId,t,r,a):i?(n.resolvedFileName!==i.resolvedFileName&&Q.readFile(n.resolvedFileName)!==Ce(i.resolvedFileName).text&&z.add(Ye(t,r,a,fn.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,e,n.resolvedFileName,i.resolvedFileName)),o=!1):je(n.resolvedFileName,!1,!1,n.packageId,t,r,a):z.add(Ye(t,r,a,fn.Diagnostics.Cannot_find_type_definition_file_for_0,e)),o&&q.set(e,n)}}function Xe(o){fn.forEach(o.libReferenceDirectives,function(e){var n=e.fileName.toLocaleLowerCase(),t=fn.libMap.get(n);if(t)Fe(fn.combinePaths(h,t),!0,!0);else{var r=fn.removeSuffix(fn.removePrefix(n,"lib."),".d.ts"),a=fn.getSpellingSuggestion(r,fn.libs,fn.identity),i=a?fn.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:fn.Diagnostics.Cannot_find_lib_definition_for_0;z.add(Ye(o,e.pos,e.end,i,n,a))}})}function Ye(e,n,t,r){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];return void 0===e||void 0===n||void 0===t?fn.createCompilerDiagnostic.apply(void 0,[r].concat(a)):fn.createFileDiagnostic.apply(void 0,[e,n,t-n,r].concat(a))}function Qe(e){return Q.getCanonicalFileName(e)}function Ze(e){if(Be(e),e.imports.length||e.moduleAugmentations.length){var n=xn(e),t=ye(n,fn.getNormalizedAbsolutePath(e.originalFileName,Z),e);fn.Debug.assert(t.length===n.length);for(var r=0;r<n.length;r++){var a=t[r];if(fn.setResolvedModule(e,n[r],a),a){var i=a.isExternalLibraryImport,o=!fn.resolutionExtensionIsTSOrJson(a.extension),s=i&&o,c=a.resolvedFileName;i&&L++;var l=s&&A<L,u=c&&!Sn(j,a)&&!j.noResolve&&r<e.imports.length&&!l&&!(o&&!j.allowJs)&&(fn.isInJSFile(e.imports[r])||!(2097152&e.imports[r].flags));l?k.set(e.path,!0):u&&Ue(c,ge(c),!1,!1,e,fn.skipTrivia(e.text,e.imports[r].pos),e.imports[r].end,a.packageId),i&&L--}}}else e.resolvedModules=void 0}function $e(e,n){for(var t=!0,r=Q.getCanonicalFileName(fn.getNormalizedAbsolutePath(n,Z)),a=0,i=e;a<i.length;a++){var o=i[a];o.isDeclarationFile||0!==Q.getCanonicalFileName(fn.getNormalizedAbsolutePath(o.fileName,Z)).indexOf(r)&&(T.add(fn.createCompilerDiagnostic(fn.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,o.fileName,n)),t=!1)}return t}function en(e){var n=En(e),t=fn.getNormalizedAbsolutePath(fn.getDirectoryPath(n),Q.getCurrentDirectory()),r=Q.getSourceFile(n,100);if(void 0!==r)return r.path=ge(n),{commandLine:fn.parseJsonSourceFileConfigFileContent(r,v,t,void 0,n),sourceFile:r}}function nn(e){(M||(M=[])).push(e)}function tn(e,n,t,r,a,i){for(var o=!0,s=0,c=an();s<c.length;s++){var l=c[s];if(fn.isObjectLiteralExpression(l.initializer))for(var u=0,d=fn.getPropertyAssignment(l.initializer,e);u<d.length;u++){var p=d[u].initializer;fn.isArrayLiteralExpression(p)&&p.elements.length>n&&(T.add(fn.createDiagnosticForNodeInSourceFile(j.configFile,p.elements[n],t,r,a,i)),o=!1)}}o&&T.add(fn.createCompilerDiagnostic(t,r,a,i))}function rn(e,n,t,r){for(var a=!0,i=0,o=an();i<o.length;i++){var s=o[i];fn.isObjectLiteralExpression(s.initializer)&&dn(s.initializer,e,n,void 0,t,r)&&(a=!1)}a&&T.add(fn.createCompilerDiagnostic(t,r))}function an(){return function(e){var n=un();if(n)return fn.getPropertyAssignment(n,e)}("paths")||fn.emptyArray}function on(e,n,t,r){ln(!0,n,t,e,n,t,r)}function sn(e,n,t){ln(!1,e,void 0,n,t)}function cn(e,n,t,r){var a=function(){if(void 0===_&&(_=null,j.configFile))for(var e=fn.getTsConfigObjectLiteralExpression(j.configFile),n=0,t=fn.getPropertyAssignment(e,"references");n<t.length;n++){var r=t[n];if(fn.isArrayLiteralExpression(r.initializer)){_=r.initializer;break}}return _}();a&&a.elements.length>e?T.add(fn.createDiagnosticForNodeInSourceFile(j.configFile,a.elements[e],n,t,r)):T.add(fn.createCompilerDiagnostic(n,t,r))}function ln(e,n,t,r,a,i,o){var s=un();(!s||!dn(s,e,n,t,r,a,i,o))&&T.add(fn.createCompilerDiagnostic(r,a,i,o))}function un(){if(void 0===f){f=null;var e=fn.getTsConfigObjectLiteralExpression(j.configFile);if(e)for(var n=0,t=fn.getPropertyAssignment(e,"compilerOptions");n<t.length;n++){var r=t[n];if(fn.isObjectLiteralExpression(r.initializer)){f=r.initializer;break}}}return f}function dn(e,n,t,r,a,i,o,s){for(var c=fn.getPropertyAssignment(e,t,r),l=0,u=c;l<u.length;l++){var d=u[l];T.add(fn.createDiagnosticForNodeInSourceFile(j.configFile,n?d.name:d.initializer,a,i,o,s))}return!!c.length}function pn(e,n){S.set(ge(e),!0),T.add(n)}function mn(e,n){return 0===fn.comparePaths(e,n,Z,!Q.useCaseSensitiveFileNames())}},fn.parseConfigHostFromCompilerHost=bn,fn.resolveProjectReferencePath=En,fn.getResolutionDiagnostic=Sn}(ts||(ts={})),(ts||(ts={})).getFileEmitOutput=function(e,n,t,r,a){var i=[],o=e.emit(n,function(e,n,t){i.push({name:e,writeByteOrderMark:t,text:n})},r,t,a);return{outputFiles:i,emitSkipped:o.emitSkipped,exportedModulesFromDeclarationEmit:o.exportedModulesFromDeclarationEmit}},function(E){!function(e){function g(e){if(e.declarations&&e.declarations[0]){var n=E.getSourceFileOfNode(e.declarations[0]);return n&&n.resolvedPath}}function v(e,n,t,r){return E.toPath(e.getProjectReferenceRedirect(n)||n,t,r)}function _(t,e,r){var n,a,i;if(e.imports&&0<e.imports.length)for(var o=t.getTypeChecker(),s=0,c=e.imports;s<c.length;s++){var l=c[s],u=(a=l,void 0,(i=o.getSymbolAtLocation(a))&&g(i));u&&_(u)}var d=E.getDirectoryPath(e.path);if(e.referencedFiles&&0<e.referencedFiles.length)for(var p=0,m=e.referencedFiles;p<m.length;p++){var f=m[p];_(v(t,f.fileName,d,r))}return e.resolvedTypeReferenceDirectiveNames&&e.resolvedTypeReferenceDirectiveNames.forEach(function(e){if(e){var n=e.resolvedFileName;_(v(t,n,d,r))}}),n;function _(e){n||(n=E.createMap()),n.set(e,!0)}}function y(e,n){return n&&!n.referencedMap==!e}function u(t,e){e.forEach(function(e,n){t.fileInfos.get(n).signature=e,t.hasCalledUpdateShapeSignature.set(n,!0)})}function p(e,n,t,r,a,i,o){if(E.Debug.assert(!!t),E.Debug.assert(!o||!!e.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),e.hasCalledUpdateShapeSignature.has(t.path)||r.has(t.path))return!1;var s=e.fileInfos.get(t.path);if(!s)return E.Debug.fail();var c,l=s.signature;if(t.isDeclarationFile)c=t.version;else{var u=E.getFileEmitOutput(n,t,!0,a);u.outputFiles&&0<u.outputFiles.length?(c=i(u.outputFiles[0].text),o&&c!==l&&function(e,n,t){if(!n)return t.set(e.path,!1);var r;n.forEach(function(e){var n;(n=g(e))&&(r||(r=E.createMap()),r.set(n,!0))}),t.set(e.path,r||!1)}(t,u.exportedModulesFromDeclarationEmit,o)):c=l}return r.set(t.path,c),!l||c!==l}function m(e,n){if(!e.allFileNames){var t=n.getSourceFiles();e.allFileNames=t===E.emptyArray?E.emptyArray:t.map(function(e){return e.fileName})}return e.allFileNames}function f(e,t){return E.arrayFrom(E.mapDefinedIterator(e.referencedMap.entries(),function(e){var n=e[0];return e[1].has(t)?n:void 0}))}function h(e){for(var n=0,t=e.statements;n<t.length;n++){var r=t[n];if(!E.isModuleWithStringLiteralName(r))return!1}return!0}function b(e,n,t){if(e.allFilesExcludingDefaultLibraryFile)return e.allFilesExcludingDefaultLibraryFile;var r;s(t);for(var a=0,i=n.getSourceFiles();a<i.length;a++){var o=i[a];o!==t&&s(o)}return e.allFilesExcludingDefaultLibraryFile=r||E.emptyArray,e.allFilesExcludingDefaultLibraryFile;function s(e){n.isSourceFileDefaultLibrary(e)||(r||(r=[])).push(e)}}e.canReuseOldState=y,e.create=function(e,n,t){for(var r=E.createMap(),a=e.getCompilerOptions().module!==E.ModuleKind.None?E.createMap():void 0,i=a?E.createMap():void 0,o=E.createMap(),s=y(a,t),c=0,l=e.getSourceFiles();c<l.length;c++){var u=l[c],d=u.version,p=s?t.fileInfos.get(u.path):void 0;if(a){var m=_(e,u,n);if(m&&a.set(u.path,m),s){var f=t.exportedModulesMap.get(u.path);f&&i.set(u.path,f)}}r.set(u.path,{version:d,signature:p&&p.signature})}return{fileInfos:r,referencedMap:a,exportedModulesMap:i,hasCalledUpdateShapeSignature:o,allFilesExcludingDefaultLibraryFile:void 0,allFileNames:void 0}},e.getFilesAffectedBy=function(e,n,t,r,a,i,o){var s=i||E.createMap(),c=n.getSourceFileByPath(t);if(!c)return E.emptyArray;if(!p(e,n,c,s,r,a,o))return[c];var l=(e.referencedMap?function(e,n,t,r,a,i,o){if(!E.isExternalModule(t)&&!h(t))return b(e,n,t);var s=n.getCompilerOptions();if(s&&(s.isolatedModules||s.out||s.outFile))return[t];var c=E.createMap();c.set(t.path,t);for(var l=f(e,t.path);0<l.length;){var u=l.pop();if(!c.has(u)){var d=n.getSourceFileByPath(u);c.set(u,d),d&&p(e,n,d,r,a,i,o)&&l.push.apply(l,f(e,u))}}return E.arrayFrom(E.mapDefinedIterator(c.values(),function(e){return e}))}:function(e,n,t){var r=n.getCompilerOptions();return r&&(r.out||r.outFile)?[t]:b(e,n,t)})(e,n,c,s,r,a,o);return i||u(e,s),l},e.updateSignaturesFromCache=u,e.updateExportedFilesMapFromCache=function(t,e){e&&(E.Debug.assert(!!t.exportedModulesMap),e.forEach(function(e,n){e?t.exportedModulesMap.set(n,e):t.exportedModulesMap.delete(n)}))},e.getAllDependencies=function(e,t,n){var r,a=t.getCompilerOptions();if(a.outFile||a.out)return m(e,t);if(!e.referencedMap||!E.isExternalModule(n)&&!h(n))return m(e,t);for(var i=E.createMap(),o=[n.path];o.length;){var s=o.pop();if(!i.has(s)){i.set(s,!0);var c=e.referencedMap.get(s);if(c)for(var l=c.keys(),u=l.next(),d=u.value,p=u.done;!p;d=(r=l.next()).value,p=r.done,r)o.push(d)}}return E.arrayFrom(E.mapDefinedIterator(i.keys(),function(e){var n=t.getSourceFileByPath(e);return n?n.fileName:e}))}}(E.BuilderState||(E.BuilderState={}))}(ts||(ts={})),function(f){function s(e,n,s){var c=f.BuilderState.create(e,n,s),t=(c.program=e).getCompilerOptions();t.outFile||t.out||(c.semanticDiagnosticsPerFile=f.createMap()),c.changedFilesSet=f.createMap();var l=f.BuilderState.canReuseOldState(c.referencedMap,s),u=l&&s.semanticDiagnosticsPerFile&&!!c.semanticDiagnosticsPerFile&&!f.compilerOptionsAffectSemanticDiagnostics(t,s.program.getCompilerOptions());l&&(s.currentChangedFilePath||f.Debug.assert(!(s.affectedFiles||s.currentAffectedFilesSignatures&&s.currentAffectedFilesSignatures.size),"Cannot reuse if only few affected files of currentChangedFile were iterated"),u&&f.Debug.assert(!f.forEachKey(s.changedFilesSet,function(e){return s.semanticDiagnosticsPerFile.has(e)}),"Semantic diagnostics shouldnt be available for changed files"),f.copyEntries(s.changedFilesSet,c.changedFilesSet));var d=c.referencedMap,p=l?s.referencedMap:void 0;return c.fileInfos.forEach(function(e,n){var t,r,a,i;if(!l||!(t=s.fileInfos.get(n))||t.version!==e.version||(a=r=d&&d.get(n),i=p&&p.get(n),a!==i&&(void 0===a||void 0===i||a.size!==i.size||f.forEachKey(a,function(e){return!i.has(e)})))||r&&f.forEachKey(r,function(e){return!c.fileInfos.has(e)&&s.fileInfos.has(e)}))c.changedFilesSet.set(n,!0);else if(u){var o=s.semanticDiagnosticsPerFile.get(n);o&&(c.semanticDiagnosticsPerFile.set(n,o),c.semanticDiagnosticsFromOldState||(c.semanticDiagnosticsFromOldState=f.createMap()),c.semanticDiagnosticsFromOldState.set(n,!0))}}),c}function _(e,n){f.Debug.assert(!n||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==n||!e.semanticDiagnosticsPerFile.has(n.path))}function l(e,n,t){for(;;){var r=e.affectedFiles;if(r){for(var a=e.seenAffectedFiles,i=e.affectedFilesIndex;i<r.length;){var o=r[i];if(!a.has(o.path))return e.affectedFilesIndex=i,u(e,o),o;a.set(o.path,!0),i++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,f.BuilderState.updateSignaturesFromCache(e,e.currentAffectedFilesSignatures),e.currentAffectedFilesSignatures.clear(),f.BuilderState.updateExportedFilesMapFromCache(e,e.currentAffectedFilesExportedModulesMap),e.affectedFiles=void 0}var s=e.changedFilesSet.keys().next();if(s.done)return;var c=e.program.getCompilerOptions();if(c.outFile||c.out)return f.Debug.assert(!e.semanticDiagnosticsPerFile),e.program;e.currentAffectedFilesSignatures=e.currentAffectedFilesSignatures||f.createMap(),e.exportedModulesMap&&(e.currentAffectedFilesExportedModulesMap=e.currentAffectedFilesExportedModulesMap||f.createMap()),e.affectedFiles=f.BuilderState.getFilesAffectedBy(e,e.program,s.value,n,t,e.currentAffectedFilesSignatures,e.currentAffectedFilesExportedModulesMap),e.currentChangedFilePath=s.value,e.affectedFilesIndex=0,e.seenAffectedFiles=e.seenAffectedFiles||f.createMap()}}function u(t,r){i(t,r.path)||t.exportedModulesMap&&1!==t.affectedFiles.length&&t.changedFilesSet.has(r.path)&&(f.Debug.assert(!!t.currentAffectedFilesExportedModulesMap),f.forEachEntry(t.currentAffectedFilesExportedModulesMap,function(e,n){return e&&e.has(r.path)&&a(t,n)})||f.forEachEntry(t.exportedModulesMap,function(e,n){return!t.currentAffectedFilesExportedModulesMap.has(n)&&e.has(r.path)&&a(t,n)}))}function a(t,r){return f.forEachEntry(t.referencedMap,function(e,n){return e.has(r)&&i(t,n)})}function i(e,n){return!!e.semanticDiagnosticsFromOldState&&(e.semanticDiagnosticsFromOldState.delete(n),e.semanticDiagnosticsPerFile.delete(n),!e.semanticDiagnosticsFromOldState.size)}function g(e,n){n===e.program?e.changedFilesSet.clear():(e.seenAffectedFiles.set(n.path,!0),e.affectedFilesIndex++)}function v(e,n,t){return g(e,t),{result:n,affected:t}}function y(e,n,t){var r=n.path,a=e.semanticDiagnosticsPerFile.get(r);if(a)return a;var i=e.program.getSemanticDiagnostics(n,t);return e.semanticDiagnosticsPerFile.set(r,i),i}var h,e;(e=h=f.BuilderProgramKind||(f.BuilderProgramKind={}))[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",f.getBuilderCreationParameters=function(e,n,t,r,a,i){var o,s,c;return void 0===e?(f.Debug.assert(void 0===n),o=t,c=r,f.Debug.assert(!!c),s=c.getProgram()):f.isArray(e)?(c=r,s=f.createProgram({rootNames:e,options:n,host:t,oldProgram:c&&c.getProgram(),configFileParsingDiagnostics:a,projectReferences:i}),o=t):(s=e,o=n,c=t,a=r),{host:o,newProgram:s,oldProgram:c,configFileParsingDiagnostics:a||f.emptyArray}},f.createBuilderProgram=function(u,e){var n=e.newProgram,d=e.host,t=e.oldProgram,r=e.configFileParsingDiagnostics,a=t&&t.getState();if(a&&n===a.program&&r===n.getConfigFileParsingDiagnostics())return a=n=void 0,t;var i=f.createGetCanonicalFileName(d.useCaseSensitiveFileNames()),c=d.createHash||f.identity,p=s(n,i,a);a=t=n=void 0;var o={getState:function(){return p},getProgram:function(){return p.program},getCompilerOptions:function(){return p.program.getCompilerOptions()},getSourceFile:function(e){return p.program.getSourceFile(e)},getSourceFiles:function(){return p.program.getSourceFiles()},getOptionsDiagnostics:function(e){return p.program.getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return p.program.getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return r||p.program.getConfigFileParsingDiagnostics()},getSyntacticDiagnostics:function(e,n){return p.program.getSyntacticDiagnostics(e,n)},getSemanticDiagnostics:function(e,n){_(p,e);var t,r=p.program.getCompilerOptions();if(r.outFile||r.out)return f.Debug.assert(!p.semanticDiagnosticsPerFile),p.program.getSemanticDiagnostics(e,n);if(e)return y(p,e,n);if(u===h.SemanticDiagnosticsBuilderProgram)for(var a=void 0;a=l(p,n,c);)g(p,a);for(var i=0,o=p.program.getSourceFiles();i<o.length;i++){var s=o[i];t=f.addRange(t,y(p,s,n))}return t||f.emptyArray},emit:function(e,n,t,r,a){if(u!==h.EmitAndSemanticDiagnosticsBuilderProgram||(_(p,e),e))return p.program.emit(e,n||d.writeFile,t,r,a);for(var i=[],o=!1,s=void 0,c=[],l=void 0;l=m(n,t,r,a);)o=o||l.result.emitSkipped,s=f.addRange(s,l.result.diagnostics),c=f.addRange(c,l.result.emittedFiles),i=f.addRange(i,l.result.sourceMaps);return{emitSkipped:o,diagnostics:s||f.emptyArray,emittedFiles:c,sourceMaps:i}},getAllDependencies:function(e){return f.BuilderState.getAllDependencies(p,p.program,e)},getCurrentDirectory:function(){return p.program.getCurrentDirectory()}};return u===h.SemanticDiagnosticsBuilderProgram?o.getSemanticDiagnosticsOfNextAffectedFile=function(e,n){for(;;){var t=l(p,e,c);if(!t)return;if(t===p.program)return v(p,p.program.getSemanticDiagnostics(void 0,e),t);if(!n||!n(t))return v(p,y(p,t,e),t);g(p,t)}}:u===h.EmitAndSemanticDiagnosticsBuilderProgram?o.emitNextAffectedFile=m:f.notImplemented(),o;function m(e,n,t,r){var a=l(p,n,c);if(a)return v(p,p.program.emit(a===p.program?void 0:a,e||d.writeFile,n,t,r),a)}}}(ts||(ts={})),function(s){s.createSemanticDiagnosticsBuilderProgram=function(e,n,t,r,a,i){return s.createBuilderProgram(s.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,s.getBuilderCreationParameters(e,n,t,r,a,i))},s.createEmitAndSemanticDiagnosticsBuilderProgram=function(e,n,t,r,a,i){return s.createBuilderProgram(s.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,s.getBuilderCreationParameters(e,n,t,r,a,i))},s.createAbstractBuilder=function(e,n,t,r,a,i){var o=s.getBuilderCreationParameters(e,n,t,r,a,i).newProgram;return{getProgram:function(){return o},getState:s.notImplemented,getCompilerOptions:s.notImplemented,getSourceFile:s.notImplemented,getSourceFiles:s.notImplemented,getOptionsDiagnostics:s.notImplemented,getGlobalDiagnostics:s.notImplemented,getConfigFileParsingDiagnostics:s.notImplemented,getSyntacticDiagnostics:s.notImplemented,getSemanticDiagnostics:s.notImplemented,emit:s.notImplemented,getAllDependencies:s.notImplemented,getCurrentDirectory:s.notImplemented}}}(ts||(ts={})),function(Y){Y.maxNumberOfFilesToIterateForInvalidation=256,Y.createResolutionCache=function(C,e,r){var D,s,t,A=!1,L=Y.createMultiMap(),a=Y.memoize(function(){return C.getCurrentDirectory()}),c=C.getCachedDirectoryStructureHost(),i=Y.createMap(),o=Y.createMap(),n=Y.createMap(),l=Y.createModuleResolutionCacheWithMaps(o,n,a(),C.getCanonicalFileName),u=Y.createMap(),d=Y.createMap(),p=[".ts",".tsx",".js",".jsx",".json"],m=Y.createMap(),f=Y.createMap(),_=e&&Y.removeTrailingDirectorySeparator(Y.getNormalizedAbsolutePath(e,a())),g=_&&C.toPath(_),v=Y.createMap();return{startRecordingFilesWithChangedResolutions:function(){D=[]},finishRecordingFilesWithChangedResolutions:function(){var e=D;return D=void 0,e},startCachingPerDirectoryResolution:E,finishCachingPerDirectoryResolution:function(){A=!1,t=void 0,E(),f.forEach(function(e,n){0===e.refCount&&(f.delete(n),e.watcher.close())})},resolveModuleNames:function(e,n,t){return S(e,n,i,o,T,y,t,r)},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,n){var t=i.get(C.toPath(n));return t&&t.get(e)},resolveTypeReferenceDirectives:function(e,n){return S(e,n,u,d,Y.resolveTypeReferenceDirective,h,void 0,!1)},removeResolutionsOfFile:H,invalidateResolutionOfFile:function(r){H(r),W(function(e,n){var t=n(e);return!!t&&C.toPath(t.resolvedFileName)===r})},setFilesWithInvalidatedNonRelativeUnresolvedImports:function(e){Y.Debug.assert(t===e||void 0===t),t=e},createHasInvalidatedResolution:function(e){if(A||e)return s=void 0,Y.returnTrue;var n=s;return s=void 0,function(e){return!!n&&n.has(e)||k(e)}},updateTypeRootsWatch:function(){var e=C.getCompilationSettings();if(e.types)z();else{var n=Y.getEffectiveTypeRoots(e,{directoryExists:X,getCurrentDirectory:a});n?Y.mutateMap(v,Y.arrayToMap(n,function(e){return C.toPath(e)}),{createNewValue:J,onDeleteValue:Y.closeFileWatcher}):z()}},closeTypeRootsWatch:z,clear:function(){Y.clearMap(f,Y.closeFileWatcherOf),m.clear(),L.clear(),z(),i.clear(),u.clear(),A=!1,E()}};function y(e){return e.resolvedModule}function h(e){return e.resolvedTypeReferenceDirective}function b(e,n){return!(void 0===e||n.length<=e.length)&&Y.startsWith(n,e)&&n[e.length]===Y.directorySeparator}function k(e){if(!t)return!1;var n=t.get(e);return!!n&&!!n.length}function E(){o.clear(),n.clear(),d.clear(),L.forEach(G),L.clear()}function T(e,n,t,r){var a=Y.resolveModuleName(e,n,t,r,l);if(!C.getGlobalCache)return a;var i=C.getGlobalCache();if(!(void 0===i||Y.isExternalModuleNameRelative(e)||a.resolvedModule&&Y.extensionIsTS(a.resolvedModule.extension))){var o=Y.loadModuleFromGlobalCache(e,C.projectName,t,r,i),s=o.resolvedModule,c=o.failedLookupLocations;if(s)return{resolvedModule:s,failedLookupLocations:Y.addRange(a.failedLookupLocations,c)}}return a}function S(e,n,t,r,a,i,o,s){var c,l,u=C.toPath(n),d=t.get(u)||t.set(u,Y.createMap()).get(u),p=Y.getDirectoryPath(u),m=r.get(p);m||(m=Y.createMap(),r.set(p,m));for(var f=[],_=C.getCompilationSettings(),g=s&&k(u),v=Y.createMap(),y=0,h=e;y<h.length;y++){var b=h[y],E=d.get(b);if(!v.has(b)&&A||!E||E.isInvalidated||g&&!Y.isExternalModuleNameRelative(b)&&!i(E)){var T=E,S=m.get(b);S?E=S:(E=a(b,n,_,C),m.set(b,E)),d.set(b,E),c=b,(l=E).failedLookupLocations&&l.failedLookupLocations.length&&(l.refCount?l.refCount++:(l.refCount=1,Y.isExternalModuleNameRelative(c)?R(l):L.add(c,l))),T&&B(T),s&&D&&!x(T,E)&&(D.push(u),s=!1)}Y.Debug.assert(void 0!==E&&!E.isInvalidated),v.set(b,!0),f.push(i(E))}return d.forEach(function(e,n){v.has(n)||Y.contains(o,n)||(B(e),d.delete(n))}),f;function x(e,n){if(e===n)return!0;if(!e||!n)return!1;var t=i(e),r=i(n);return t===r||!(!t||!r)&&t.resolvedFileName===r.resolvedFileName}}function x(e){return Y.endsWith(e,"/node_modules")}function N(e){return Y.endsWith(e,"/node_modules/@types")}function I(e){var n=Y.getRootLength(e);if(e.length===n)return!1;var t=e.indexOf(Y.directorySeparator,n);if(-1===t)return!1;if(47!==e.charCodeAt(0)&&-1===e.substr(n,t).search(/users/i))return!0;for(var r=t+1,a=2;0<a;a--)if(0===(r=e.indexOf(Y.directorySeparator,r)+1))return!1;return!0}function M(e,n){return I(n)||(e.ignore=!0),e}function O(e,n){if(b(g,n)){e=Y.isRootedDiskPath(e)?e:Y.getNormalizedAbsolutePath(e,a()),Y.Debug.assert(e.length===n.length,"FailedLookup: "+e+" failedLookupLocationPath: "+n);var t=n.indexOf(Y.directorySeparator,g.length+1);return-1!==t?{dir:e.substr(0,t),dirPath:n.substr(0,t)}:{dir:_,dirPath:g,nonRecursive:!1}}return w(Y.getDirectoryPath(Y.getNormalizedAbsolutePath(e,a())),Y.getDirectoryPath(n))}function w(e,n){for(;Y.stringContains(n,Y.nodeModulesPathPart);)e=Y.getDirectoryPath(e),n=Y.getDirectoryPath(n);if(x(n))return M({dir:e,dirPath:n},Y.getDirectoryPath(n));var t,r,a=!0;if(void 0!==g)for(;!b(n,g);){var i=Y.getDirectoryPath(n);if(i===n)break;a=!1,t=n,r=e,n=i,e=Y.getDirectoryPath(e)}return M({dir:r||e,dirPath:t||n,nonRecursive:a},n)}function P(e){return Y.fileExtensionIsOneOf(e,p)}function R(e){Y.Debug.assert(!!e.refCount);for(var n=!1,t=0,r=e.failedLookupLocations;t<r.length;t++){var a=r[t],i=C.toPath(a),o=O(a,i),s=o.dir,c=o.dirPath,l=o.nonRecursive;if(!o.ignore){if(!P(i)){var u=m.get(i)||0;m.set(i,u+1)}c===g?(Y.Debug.assert(!l),n=!0):V(s,c,l)}}n&&V(_,g,!0)}function F(e){e.refCount=void 0}function G(e,n){var t=C.getCurrentProgram(),r=t&&t.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(n)?F:R;e.forEach(r)}function V(e,n,t){var r,a,i,o=f.get(n);o?(Y.Debug.assert(!!t==!!o.nonRecursive),o.refCount++):f.set(n,{watcher:(r=e,a=n,i=t,C.watchDirectoryOfFailedLookupLocation(r,function(e){var n=C.toPath(e);c&&c.addOrDeleteFileOrDirectory(e,n),!A&&q(n,a===n)&&C.onInvalidatedResolution()},i?0:1)),refCount:1,nonRecursive:t})}function B(e){if(e.refCount&&(e.refCount--,!e.refCount)){for(var n=!1,t=0,r=e.failedLookupLocations;t<r.length;t++){var a=r[t],i=C.toPath(a),o=O(a,i),s=o.dirPath;if(!o.ignore){var c=m.get(i);c&&(1===c?m.delete(i):(Y.Debug.assert(1<c),m.set(i,c-1))),s===g?n=!0:K(s)}}n&&K(g)}}function K(e){f.get(e).refCount--}function j(e,n){var t=e.get(n);t&&(t.forEach(B),e.delete(n))}function H(e){j(i,e),j(u,e)}function U(e,a,i){var o=Y.createMap();e.forEach(function(e,t){var n=Y.getDirectoryPath(t),r=o.get(n);r||(r=Y.createMap(),o.set(n,r)),e.forEach(function(e,n){r.has(n)||(r.set(n,!0),!e.isInvalidated&&a(e,i)&&(e.isInvalidated=!0,(s||(s=Y.createMap())).set(t,!0)))})})}function W(e){var n;n=C.maxNumberOfFilesToIterateForInvalidation||Y.maxNumberOfFilesToIterateForInvalidation,i.size>n||u.size>n?A=!0:(U(i,e,y),U(u,e,h))}function q(n,e){var t;if(e)t=function(e){return b(n,C.toPath(e))};else{var r=Y.getDirectoryPath(n);if(N(n)||x(n)||N(r)||x(r))t=function(e){return C.toPath(e)===n||Y.startsWith(C.toPath(e),n)};else{if(!P(n)&&!m.has(n))return!1;if(Y.isEmittedFileOfProgram(C.getCurrentProgram(),n))return!1;t=function(e){return C.toPath(e)===n}}}var a=s&&s.size;return W(function(e){return Y.some(e.failedLookupLocations,t)}),A||s&&s.size!==a}function z(){Y.clearMap(v,Y.closeFileWatcher)}function J(r,a){return C.watchTypeRootsDirectory(a,function(e){var n=C.toPath(e);c&&c.addOrDeleteFileOrDirectory(e,n),C.onChangedAutomaticTypeDirectiveNames();var t=function(e,n){if(!A){if(b(g,n))return g;var t=w(e,n),r=t.dirPath;return!t.ignore&&f.has(r)?r:void 0}}(a,r);t&&q(n,t===n)&&C.onInvalidatedResolution()},1)}function X(e){var n=Y.getDirectoryPath(Y.getDirectoryPath(e)),t=C.toPath(n);return t===g||I(t)}}}(ts||(ts={})),function(C){!function(e){var n,t,r,a;function m(e,n,t){var r=e.importModuleSpecifierPreference,a=e.importModuleSpecifierEnding;return{relativePreference:"relative"===r?0:"non-relative"===r?1:2,ending:function(){switch(a){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return e=t.imports,C.firstDefined(e,function(e){var n=e.text;return C.pathIsRelative(n)?C.hasJSOrJsonFileExtension(n):void 0})?2:C.getEmitModuleResolutionKind(n)!==C.ModuleResolutionKind.NodeJs?1:0}var e}()}}function u(n,e,t,r,a,i,o){var s=f(e,r),c=y(a,e,t,s.getCanonicalFileName,r,i);return C.firstDefined(c,function(e){return b(e,s,r,n)})||_(t,s,n,o)}function f(e,n){return{getCanonicalFileName:C.createGetCanonicalFileName(!n.useCaseSensitiveFileNames||n.useCaseSensitiveFileNames()),sourceDirectory:C.getDirectoryPath(e)}}function _(e,n,t,r){var a=n.getCanonicalFileName,i=n.sourceDirectory,o=r.ending,s=r.relativePreference,c=t.baseUrl,l=t.paths,u=t.rootDirs,d=u&&function(e,n,t,r){var a=E(n,e,r);if(void 0===a)return;var i=E(t,e,r),o=void 0!==i?C.ensurePathIsNonModuleName(C.getRelativePathFromDirectory(i,a,r)):a;return C.removeFileExtension(o)}(u,e,i,a)||T(C.ensurePathIsNonModuleName(C.getRelativePathFromDirectory(i,e,a)),o,t);if(!c||0===s)return d;var p=S(e,c,a);if(!p)return d;var m=T(p,o,t),f=l&&h(C.removeFileExtension(p),m,l),_=void 0===f?m:f;return 1===s?_:(2!==s&&C.Debug.assertNever(s),x(_)||g(d)<g(_)?d:_)}function g(e){for(var n=0,t=C.startsWith(e,"./")?2:0;t<e.length;t++)47===e.charCodeAt(t)&&n++;return n}function l(e,n){return"node_modules"===n(e)||C.startsWith(e,"@")}function v(e,n,t,r){for(var a,i,o,s=C.getPathComponents(C.toPath(e,t,r)),c=C.getPathComponents(C.toPath(n,t,r));!l(s[s.length-2],r)&&!l(c[c.length-2],r)&&(a=s[s.length-1],i=c[c.length-1],(o=r)(a)===o(i));)s.pop(),c.pop();return[C.getPathFromPathComponents(s),C.getPathFromPathComponents(c)]}function y(e,i,n,o,s,t){var r=t.get(n),a=r?r.concat([n]):[n],c=s.getCurrentDirectory?s.getCurrentDirectory():"",l=a.map(function(e){return C.getNormalizedAbsolutePath(e,c)}),u=function(e,n,t){for(var r=C.createMap(),a=0,i=C.mapDefined(e,function(e){return e.resolvedModules&&C.firstDefinedIterator(e.resolvedModules.values(),function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:void 0})});a<i.length;a++){var o=i[a],s=v(o[0],o[1],t,n),c=s[0],l=s[1];r.set(l,c)}return r}(e,o,c),d=[],p=!s.useCaseSensitiveFileNames||s.useCaseSensitiveFileNames()?C.compareStringsCaseSensitive:C.compareStringsCaseInsensitive;return u.forEach(function(n,e){if(!C.startsWithDirectory(i,n,o)){var t=l.find(function(e){return 0===p(e.slice(0,n.length+1),n+"/")});if(void 0!==t){var r=C.getRelativePathFromDirectory(n,t,o),a=C.resolvePath(e,r);s.fileExists&&!s.fileExists(a)||d.push(a)}}}),d.push.apply(d,l),d}function h(e,n,t){for(var r in t)for(var a=0,i=t[r];a<i.length;a++){var o=i[a],s=C.removeFileExtension(C.normalizePath(o)),c=s.indexOf("*");if(-1!==c){var l=s.substr(0,c),u=s.substr(c+1);if(n.length>=l.length+u.length&&C.startsWith(n,l)&&C.endsWith(n,u)||!u&&n===C.removeTrailingDirectorySeparator(l)){var d=n.substr(l.length,n.length-u.length);return r.replace("*",d)}}else if(s===n||s===e)return r}}function b(e,n,a,t){var i=n.getCanonicalFileName,r=n.sourceDirectory,o=function(e){var n,t=0,r=0,a=0,i=0;o=n||(n={}),o[o.BeforeNodeModules=0]="BeforeNodeModules",o[o.NodeModules=1]="NodeModules",o[o.Scope=2]="Scope",o[o.PackageContent=3]="PackageContent";var o;var s=0,c=0,l=0;for(;0<=c;)switch(s=c,c=e.indexOf("/",s+1),l){case 0:e.indexOf(C.nodeModulesPathPart,s)===s&&(t=s,r=c,l=1);break;case 1:case 2:l=1===l&&"@"===e.charAt(s+1)?2:(a=c,3);break;case 3:l=e.indexOf(C.nodeModulesPathPart,s)===s?1:3}return i=s,1<l?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:a,fileNameIndex:i}:void 0}(e);if(o){var s=e.substring(0,o.packageRootIndex),c=C.combinePaths(s,"package.json"),l=a.fileExists(c)?JSON.parse(a.readFile(c)):void 0,u=l&&l.typesVersions?C.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(u){var d=e.slice(o.packageRootIndex+1),p=h(C.removeFileExtension(d),T(d,0,t),u.paths);void 0!==p&&(e=C.combinePaths(e.slice(0,o.packageRootIndex),p))}var m=function(e){if(l){var n=l.typings||l.types||l.main;if(n){var t=C.toPath(n,s,i);if(C.removeFileExtension(t)===C.removeFileExtension(i(e)))return s}}var r=C.removeFileExtension(e);return"/index"!==i(r.substring(o.fileNameIndex))||function(e,n){for(var t=C.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),r=0,a=t;r<a.length;r++){var i=a[r],o=n+i;if(e.fileExists(o))return o}}(a,r.substring(0,o.fileNameIndex))?r:r.substring(0,o.fileNameIndex)}(e);if(C.startsWith(r,i(m.substring(0,o.topLevelNodeModulesIndex)))){var f=m.substring(o.topLevelPackageNameIndex+1),_=C.getPackageNameFromTypesPackageName(f);return C.getEmitModuleResolutionKind(t)!==C.ModuleResolutionKind.NodeJs&&_===f?void 0:_}}}function E(t,e,r){return C.firstDefined(e,function(e){var n=S(t,e,r);return x(n)?void 0:n})}function T(e,n,t){if(C.fileExtensionIs(e,".json"))return e;var r=C.removeFileExtension(e);switch(n){case 0:return C.removeSuffix(r,"/index");case 1:return r;case 2:return r+function(e,n){var t=C.extensionFromPath(e);switch(t){case".ts":case".d.ts":return".js";case".tsx":return 1===n.jsx?".jsx":".js";case".js":case".jsx":case".json":return t;default:return C.Debug.assertNever(t)}}(e,t);default:return C.Debug.assertNever(n)}}function S(e,n,t){var r=C.getRelativePathToDirectoryOrUrl(n,e,n,t,!1);return C.isRootedDiskPath(r)?void 0:r}function x(e){return C.startsWith(e,"..")}(t=n||(n={}))[t.Relative=0]="Relative",t[t.NonRelative=1]="NonRelative",t[t.Auto=2]="Auto",(a=r||(r={}))[a.Minimal=0]="Minimal",a[a.Index=1]="Index",a[a.JsExtension=2]="JsExtension",e.updateModuleSpecifier=function(e,n,t,r,a,i,o){var s,c,l=u(e,n,t,r,a,i,(s=e,c=o,{relativePreference:C.isExternalModuleNameRelative(c)?0:1,ending:C.hasJSOrJsonFileExtension(c)?2:C.getEmitModuleResolutionKind(s)!==C.ModuleResolutionKind.NodeJs||C.endsWith(c,"index")?1:0}));if(l!==o)return l},e.getModuleSpecifier=function(e,n,t,r,a,i,o,s){return void 0===o&&(o={}),u(e,t,r,a,i,s,m(o,e,n))},e.getModuleSpecifiers=function(e,n,t,r,a,i,o){var s=function(e){var n=C.find(e.declarations,function(e){return C.isNonGlobalAmbientModule(e)&&(!C.isExternalModuleAugmentation(e)||!C.isExternalModuleNameRelative(C.getTextOfIdentifierOrLiteral(e.name)))});if(n)return n.name.text}(e);if(s)return[s];var c=f(t.path,r),l=C.getSourceFileOfNode(e.valueDeclaration||C.getNonAugmentationDeclaration(e)),u=y(a,t.path,l.fileName,c.getCanonicalFileName,r,o),d=m(i,n,t),p=C.mapDefined(u,function(e){return b(e,c,r,n)});return p.length?p:u.map(function(e){return _(e,c,n,d)})}}(C.moduleSpecifiers||(C.moduleSpecifiers={}))}(ts||(ts={})),function(m){var a=m.sys?{getCurrentDirectory:function(){return m.sys.getCurrentDirectory()},getNewLine:function(){return m.sys.newLine},getCanonicalFileName:m.createGetCanonicalFileName(m.sys.useCaseSensitiveFileNames)}:void 0;function c(n,e){var t=n===m.sys?a:{getCurrentDirectory:function(){return n.getCurrentDirectory()},getNewLine:function(){return n.newLine},getCanonicalFileName:m.createGetCanonicalFileName(n.useCaseSensitiveFileNames)};if(!e)return function(e){return n.write(m.formatDiagnostic(e,t))};var r=new Array(1);return function(e){r[0]=e,n.write(m.formatDiagnosticsWithColorAndContext(r,t)+t.getNewLine()),r[0]=void 0}}function s(e,n,t){return!(!e.clearScreen||t.preserveWatchOutput||t.extendedDiagnostics||t.diagnostics||!m.contains(m.screenStartingMessageCodes,n.code))&&(e.clearScreen(),!0)}function n(o,e){return e?function(e,n,t){s(o,e,t);var r="["+m.formatColorAndReset((new Date).toLocaleTimeString(),m.ForegroundColorEscapeSequences.Grey)+"] ";r+=""+m.flattenDiagnosticMessageText(e.messageText,o.newLine)+(n+n),o.write(r)}:function(e,n,t){var r,a,i="";s(o,e,t)||(i+=n),i+=(new Date).toLocaleTimeString()+" - ",i+=""+m.flattenDiagnosticMessageText(e.messageText,o.newLine)+(r=e,a=n,m.contains(m.screenStartingMessageCodes,r.code)?a+a:a),o.write(i)}}function p(e,n,t,r,a){var i=e.getConfigFileParsingDiagnostics().slice(),o=i.length;m.addRange(i,e.getSyntacticDiagnostics());var s=!1;i.length===o&&(m.addRange(i,e.getOptionsDiagnostics()),m.addRange(i,e.getGlobalDiagnostics()),i.length===o&&(s=!0));var c=e.emit(void 0,a),l=c.emittedFiles,u=c.emitSkipped,d=c.diagnostics;if(m.addRange(i,d),s&&m.addRange(i,e.getSemanticDiagnostics()),m.sortAndDeduplicateDiagnostics(i).forEach(n),t){var p=e.getCurrentDirectory();m.forEach(l,function(e){var n=m.getNormalizedAbsolutePath(e,p);t("TSFILE: "+n)}),e.getCompilerOptions().listFiles&&m.forEach(e.getSourceFiles(),function(e){t(e.fileName)})}return r&&r(i.filter(function(e){return e.category===m.DiagnosticCategory.Error}).length),u&&0<i.length?m.ExitStatus.DiagnosticsPresent_OutputsSkipped:0<i.length?m.ExitStatus.DiagnosticsPresent_OutputsGenerated:m.ExitStatus.Success}m.createDiagnosticReporter=c,m.screenStartingMessageCodes=[m.Diagnostics.Starting_compilation_in_watch_mode.code,m.Diagnostics.File_change_detected_Starting_incremental_compilation.code],m.createWatchStatusReporter=n,m.parseConfigFileWithSystem=function(e,n,t,r){var a=t;a.onUnRecoverableConfigFileDiagnostic=function(e){return u(m.sys,r,e)};var i=m.getParsedCommandLineOfConfigFile(e,n,a);return a.onUnRecoverableConfigFileDiagnostic=void 0,i},m.emitFilesAndReportErrors=p;var t={close:m.noop};function f(i,e){return void 0===i&&(i=m.sys),{onWatchStatusChange:e||n(i),watchFile:i.watchFile?function(e,n,t){return i.watchFile(e,n,t)}:function(){return t},watchDirectory:i.watchDirectory?function(e,n,t){return i.watchDirectory(e,n,t)}:function(){return t},setTimeout:i.setTimeout?function(e,n){for(var t,r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];return(t=i.setTimeout).call.apply(t,[i,e,n].concat(r))}:m.noop,clearTimeout:i.clearTimeout?function(e){return i.clearTimeout(e)}:m.noop}}function l(i,e,r,n){void 0===i&&(i=m.sys),e||(e=m.createEmitAndSemanticDiagnosticsBuilderProgram);var a=function(e){return i.write(e+i.newLine)},t=f(i,n),o=t.onWatchStatusChange,s=t.watchFile,c=t.watchDirectory,l=t.setTimeout,u=t.clearTimeout;return{useCaseSensitiveFileNames:function(){return i.useCaseSensitiveFileNames},getNewLine:function(){return i.newLine},getCurrentDirectory:function(){return i.getCurrentDirectory()},getDefaultLibLocation:d,getDefaultLibFileName:function(e){return m.combinePaths(d(),m.getDefaultLibFileName(e))},fileExists:function(e){return i.fileExists(e)},readFile:function(e,n){return i.readFile(e,n)},directoryExists:function(e){return i.directoryExists(e)},getDirectories:function(e){return i.getDirectories(e)},readDirectory:function(e,n,t,r,a){return i.readDirectory(e,n,t,r,a)},realpath:i.realpath&&function(e){return i.realpath(e)},getEnvironmentVariable:i.getEnvironmentVariable&&function(e){return i.getEnvironmentVariable(e)},watchFile:s,watchDirectory:c,setTimeout:l,clearTimeout:u,trace:function(e){return i.write(e)},onWatchStatusChange:o,createDirectory:function(e){return i.createDirectory(e)},writeFile:function(e,n,t){return i.writeFile(e,n,t)},onCachedDirectoryStructureHostCreate:function(e){return e||i},createHash:i.createHash&&function(e){return i.createHash(e)},createProgram:e,afterProgramCreate:function(e){var n=e.getCompilerOptions(),t=m.getNewLineCharacter(n,function(){return i.newLine});p(e,r,a,function(e){o(1===e?m.createCompilerDiagnostic(m.Diagnostics.Found_1_error_Watching_for_file_changes,e):m.createCompilerDiagnostic(m.Diagnostics.Found_0_errors_Watching_for_file_changes,e,e),t,n)})}};function d(){return m.getDirectoryPath(m.normalizePath(i.getExecutingFilePath()))}}function u(e,n,t){n(t),e.exit(m.ExitStatus.DiagnosticsPresent_OutputsSkipped)}m.createWatchHost=f,m.createWatchCompilerHostOfConfigFile=function(e,n,t,r,a,i){var o=a||c(t),s=l(t,r,o,i);return s.onUnRecoverableConfigFileDiagnostic=function(e){return u(t,o,e)},s.configFileName=e,s.optionsToExtend=n,s},m.createWatchCompilerHostOfFilesAndCompilerOptions=function(e,n,t,r,a,i,o){var s=l(t,r,a||c(t),i);return s.rootFiles=e,s.options=n,s.projectReferences=o,s}}(ts||(ts={})),function(se){se.createWatchCompilerHost=function(e,n,t,r,a,i,o){return se.isArray(e)?se.createWatchCompilerHostOfFilesAndCompilerOptions(e,n,t,r,a,i,o):se.createWatchCompilerHostOfConfigFile(e,n,t,r,a,i)};se.createWatchProgram=function(c){var o,r,s,e,n,l,t,u,d=se.createMap(),p=!1,m=!1,a=c.useCaseSensitiveFileNames(),i=c.getCurrentDirectory(),f=function(){return i},_=function(e,n){return c.readFile(e,n)},g=c.configFileName,v=c.optionsToExtend,y=void 0===v?{}:v,h=c.createProgram,b=c.rootFiles,E=c.options,T=c.projectReferences,S=!1,x=void 0===g?void 0:se.createCachedDirectoryStructureHost(c,i,a);x&&c.onCachedDirectoryStructureHostCreate&&c.onCachedDirectoryStructureHostCreate(x);var C=x||c,D={useCaseSensitiveFileNames:a,readDirectory:function(e,n,t,r,a){return C.readDirectory(e,n,t,r,a)},fileExists:function(e){return c.fileExists(e)},readFile:_,getCurrentDirectory:f,onUnRecoverableConfigFileDiagnostic:c.onUnRecoverableConfigFileDiagnostic},A=j();g&&c.configFileParsingResult&&(ee(c.configFileParsingResult),A=j()),Y(se.Diagnostics.Starting_compilation_in_watch_mode),g&&!c.configFileParsingResult&&(A=se.getNewLineCharacter(y,function(){return c.getNewLine()}),se.Debug.assert(!b),$(),A=j());var L=c.trace&&function(e){c.trace(e+A)},k=L?E.extendedDiagnostics?se.WatchLogLevel.Verbose:E.diagnostics?se.WatchLogLevel.TriggerOnly:se.WatchLogLevel.None:se.WatchLogLevel.None,N=k!==se.WatchLogLevel.None?L:se.noop,I=se.getWatchFactory(k,N),M=I.watchFile,O=I.watchFilePath,w=I.watchDirectory,P=se.createGetCanonicalFileName(a);N("Current directory: "+i+" CaseSensitiveFileNames: "+a),g&&M(c,g,function(){se.Debug.assert(!!g),r=se.ConfigFileProgramReloadLevel.Full,Q()},se.PollingInterval.High,"Config file");var R={getSourceFile:function(e,n,t,r){return z(e,H(e),n,t,r)},getSourceFileByPath:z,getDefaultLibLocation:c.getDefaultLibLocation&&function(){return c.getDefaultLibLocation()},getDefaultLibFileName:function(e){return c.getDefaultLibFileName(e)},writeFile:function(e,n,t,r){try{se.performance.mark("beforeIOWrite"),function e(n){if(n.length>se.getRootLength(n)&&!c.directoryExists(n)){var t=se.getDirectoryPath(n);e(t),c.createDirectory(n)}}(se.getDirectoryPath(se.normalizePath(e))),c.writeFile(e,n,t),se.performance.mark("afterIOWrite"),se.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){r&&r(e.message)}},getCurrentDirectory:f,useCaseSensitiveFileNames:function(){return a},getCanonicalFileName:P,getNewLine:function(){return A},fileExists:q,readFile:_,trace:L,directoryExists:C.directoryExists&&function(e){return C.directoryExists(e)},getDirectories:C.getDirectories&&function(e){return C.getDirectories(e)},realpath:c.realpath&&function(e){return c.realpath(e)},getEnvironmentVariable:c.getEnvironmentVariable?function(e){return c.getEnvironmentVariable(e)}:function(){return""},onReleaseOldSourceFile:function(e,n){var t=d.get(e.path);t&&(U(t)?(l||(l=[])).push(e.path):t.sourceFile===e&&(t.fileWatcher&&t.fileWatcher.close(),d.delete(e.path),F.removeResolutionsOfFile(e.path)))},createHash:c.createHash&&function(e){return c.createHash(e)},toPath:H,getCompilationSettings:function(){return E},watchDirectoryOfFailedLookupLocation:function(e,n,t){return w(c,e,n,t,"Failed Lookup Locations")},watchTypeRootsDirectory:function(e,n,t){return w(c,e,n,t,"Type roots")},getCachedDirectoryStructureHost:function(){return x},onInvalidatedResolution:Q,onChangedAutomaticTypeDirectiveNames:function(){m=!0,Q()},maxNumberOfFilesToIterateForInvalidation:c.maxNumberOfFilesToIterateForInvalidation,getCurrentProgram:B,writeLog:N,readDirectory:function(e,n,t,r,a){return C.readDirectory(e,n,t,r,a)}},F=se.createResolutionCache(R,g?se.getDirectoryPath(se.getNormalizedAbsolutePath(g,i)):i,!1);R.resolveModuleNames=c.resolveModuleNames?function(e,n,t){return c.resolveModuleNames(e,n,t)}:function(e,n,t){return F.resolveModuleNames(e,n,t)},R.resolveTypeReferenceDirectives=c.resolveTypeReferenceDirectives?function(e,n){return c.resolveTypeReferenceDirectives(e,n)}:function(e,n){return F.resolveTypeReferenceDirectives(e,n)};var G=!!c.resolveModuleNames||!!c.resolveTypeReferenceDirectives;return K(),ie(),g?{getCurrentProgram:V,getProgram:K}:{getCurrentProgram:V,getProgram:K,updateRootFileNames:function(e){se.Debug.assert(!g,"Cannot update root file names with config file watch mode"),b=e,Q()}};function V(){return o}function B(){return o&&o.getProgram()}function K(){N("Synchronizing program");var e=B();p&&(A=j(),e&&se.changesAffectModuleResolution(e.getCompilerOptions(),E)&&F.clear());var n=F.createHasInvalidatedResolution(G);return se.isProgramUptoDate(B(),b,E,X,q,n,m,T)?S&&(o=h(void 0,void 0,R,o,u,T),S=!1):function(e,n){k!==se.WatchLogLevel.None&&(N("CreatingProgramWith::"),N("  roots: "+JSON.stringify(b)),N("  options: "+JSON.stringify(E)));var t=p||!e;if(S=p=!1,F.startCachingPerDirectoryResolution(),R.hasInvalidatedResolution=n,R.hasChangedAutomaticTypeDirectiveNames=m,o=h(b,E,R,o,u,T),F.finishCachingPerDirectoryResolution(),se.updateMissingFilePathsWatch(o.getProgram(),s||(s=se.createMap()),re),t&&F.updateTypeRootsWatch(),l){for(var r=0,a=l;r<a.length;r++){var i=a[r];s.has(i)||d.delete(i)}l=void 0}}(e,n),c.afterProgramCreate&&c.afterProgramCreate(o),o}function j(){return se.getNewLineCharacter(E||y,function(){return c.getNewLine()})}function H(e){return se.toPath(e,i,P)}function U(e){return"number"==typeof e}function W(e){return!!e.sourceFile}function q(e){var n=H(e);return!!U(d.get(n))||C.fileExists(e)}function z(n,e,t,r,a){var i=d.get(e);if(!U(i)){if(i&&!a&&W(i)&&i.version.toString()===i.sourceFile.version)return i.sourceFile;var o=function(){var e;try{se.performance.mark("beforeIORead"),e=c.readFile(n,E.charset),se.performance.mark("afterIORead"),se.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){r&&r(e.message)}return void 0!==e?se.createSourceFile(n,e,t):void 0}();if(i)a&&i.version++,o?((i.sourceFile=o).version=i.version.toString(),i.fileWatcher||(i.fileWatcher=O(c,n,ne,se.PollingInterval.Low,e,"Source file"))):(W(i)&&i.fileWatcher.close(),d.set(e,i.version));else if(o){o.version=1..toString();var s=O(c,n,ne,se.PollingInterval.Low,e,"Source file");d.set(e,{sourceFile:o,version:1,fileWatcher:s})}else d.set(e,1);return o}}function J(e){var n=d.get(e);void 0!==n&&(U(n)?d.set(e,{version:Number(n)+1}):n.version++)}function X(e){var n=d.get(e);return!n||U(n)?void 0:n.version.toString()}function Y(e){c.onWatchStatusChange&&c.onWatchStatusChange(se.createCompilerDiagnostic(e),A,E||y)}function Q(){c.setTimeout&&c.clearTimeout&&(n&&c.clearTimeout(n),N("Scheduling update"),n=c.setTimeout(Z,250))}function Z(){switch(n=void 0,Y(se.Diagnostics.File_change_detected_Starting_incremental_compilation),r){case se.ConfigFileProgramReloadLevel.Partial:return function(){N("Reloading new file names and options");var e=se.getFileNamesFromConfigSpecs(t,se.getDirectoryPath(g),E,D);e.fileNames.length?(u=se.filter(u,function(e){return!se.isErrorNoInputFiles(e)}),S=!0):t.filesSpecs||se.some(u,se.isErrorNoInputFiles)||(u=u.concat(se.getErrorForNoInputFiles(t,g)),S=!0),b=e.fileNames,K()}();case se.ConfigFileProgramReloadLevel.Full:return N("Reloading config file: "+g),r=se.ConfigFileProgramReloadLevel.None,x&&x.clearCache(),$(),p=!0,K(),void ie();default:return void K()}}function $(){ee(se.getParsedCommandLineOfConfigFile(g,y,D))}function ee(e){b=e.fileNames,E=e.options,t=e.configFileSpecs,T=e.projectReferences,u=se.getConfigFileParsingDiagnostics(e),S=!0}function ne(e,n,t){te(e,t,n),n===se.FileWatcherEventKind.Deleted&&d.get(t)&&F.invalidateResolutionOfFile(t),J(t),Q()}function te(e,n,t){x&&x.addOrDeleteFile(e,n,t)}function re(e){return O(c,e,ae,se.PollingInterval.Medium,e,"Missing file")}function ae(e,n,t){te(e,t,n),n===se.FileWatcherEventKind.Created&&s.has(t)&&(s.get(t).close(),s.delete(t),J(t),Q())}function ie(){t?se.updateWatchingWildcardDirectories(e||(e=se.createMap()),se.createMapFromTemplate(t.wildcardDirectories),oe):e&&se.clearMap(e,se.closeFileWatcherOf)}function oe(t,e){return w(c,t,function(e){se.Debug.assert(!!g);var n=H(e);x&&x.addOrDeleteFileOrDirectory(e,n),J(n),n===t||!se.hasExtension(n)||se.isSupportedSourceFileName(e,E)?r!==se.ConfigFileProgramReloadLevel.Full&&(r=se.ConfigFileProgramReloadLevel.Partial,Q()):N("Project: "+g+" Detected file add/remove of non supported extension: "+e)},e,"Wild card directories")}}}(ts||(ts={})),function(Y){var Q,e,Z,n,$=new Date(-864e13),ee=new Date(864e13);function ne(t){var r=Y.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 te(e,n,t){var r,a=e.getValue(n);return a||(r=t(),e.setValue(n,r)),a||r}function re(e,n){return te(e,n,Y.createMap)}function u(e,n){var t=Y.getRelativePathFromDirectory(d(n.options,n.options.configFilePath),e,!0),r=Y.resolvePath(n.options.declarationDir||n.options.outDir||Y.getDirectoryPath(n.options.configFilePath),t);return Y.changeExtension(r,".d.ts")}function i(e,n){if(n.options.outFile||n.options.out||Y.fileExtensionIs(e,".d.ts"))return Y.emptyArray;var t,r,a,i,o,s=[],c=(t=e,r=n,a=Y.getRelativePathFromDirectory(d(r.options,r.options.configFilePath),t,!0),i=Y.resolvePath(r.options.outDir||Y.getDirectoryPath(r.options.configFilePath),a),o=Y.fileExtensionIs(t,".json")?".json":Y.fileExtensionIs(t,".tsx")&&1===r.options.jsx?".jsx":".js",Y.changeExtension(i,o));if(s.push(c),n.options.sourceMap&&s.push(c+".map"),Y.getEmitDeclarations(n.options)&&!Y.fileExtensionIs(e,".json")){var l=u(e,n);s.push(l),n.options.declarationMap&&s.push(l+".map")}return s}function d(e,n){return e.rootDir||Y.getDirectoryPath(n)}function ae(e,n){return e<n?n:e}function ie(e){return Y.fileExtensionIs(e,".d.ts")}function a(t,r){return function(e){var n=r?"["+Y.formatColorAndReset((new Date).toLocaleTimeString(),Y.ForegroundColorEscapeSequences.Grey)+"] ":(new Date).toLocaleTimeString()+" - ";n+=""+Y.flattenDiagnosticMessageText(e.messageText,t.newLine)+(t.newLine+t.newLine),t.write(n)}}function o(t,e,n){void 0===t&&(t=Y.sys);var r=Y.createCompilerHostWorker({},void 0,t);return r.getModifiedTime=t.getModifiedTime?function(e){return t.getModifiedTime(e)}:function(){},r.setModifiedTime=t.setModifiedTime?function(e,n){return t.setModifiedTime(e,n)}:Y.noop,r.deleteFile=t.deleteFile?function(e){return t.deleteFile(e)}:Y.noop,r.reportDiagnostic=e||Y.createDiagnosticReporter(t),r.reportSolutionBuilderStatus=n||a(t),r}function oe(n){var t={};return Y.commonOptionsWithBuild.forEach(function(e){t[e.name]=n[e.name]}),t}function se(e){return Y.fileExtensionIs(e,".json")?e:Y.combinePaths(e,"tsconfig.json")}function ce(e){if(e.options.outFile||e.options.out)return function(e){var n=e.options.outFile||e.options.out;if(!n)return Y.Debug.fail("outFile must be set");var t=[];if(t.push(n),e.options.sourceMap&&t.push(n+".map"),Y.getEmitDeclarations(e.options)){var r=Y.changeExtension(n,".d.ts");t.push(r),e.options.declarationMap&&t.push(r+".map")}return t}(e);for(var n=[],t=0,r=e.fileNames;t<r.length;t++){var a=r[t];n.push.apply(n,i(a,e))}return n}function le(e,n,t,r){switch(n.type){case Z.OutOfDateWithSelf:return r(Y.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,t(e),t(n.outOfDateOutputFileName),t(n.newerInputFileName));case Z.OutOfDateWithUpstream:return r(Y.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,t(e),t(n.outOfDateOutputFileName),t(n.newerProjectName));case Z.OutputMissing:return r(Y.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,t(e),t(n.missingOutputFileName));case Z.UpToDate:if(void 0!==n.newestInputFileTime)return r(Y.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,t(e),t(n.newestInputFileName||""),t(n.oldestOutputFileName||""));break;case Z.UpToDateWithUpstreamTypes:return r(Y.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,t(e));case Z.UpstreamOutOfDate:return r(Y.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,t(e),t(n.upstreamProjectName));case Z.UpstreamBlocked:return r(Y.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,t(e),t(n.upstreamProjectName));case Z.Unbuildable:return r(Y.Diagnostics.Failed_to_parse_file_0_Colon_1,t(e),n.reason);case Z.ContainerOnly:case Z.ComputingUpstream:break;default:Y.assertType(n)}}(e=Q||(Q={}))[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",(n=Z=Y.UpToDateStatusType||(Y.UpToDateStatusType={}))[n.Unbuildable=0]="Unbuildable",n[n.UpToDate=1]="UpToDate",n[n.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",n[n.OutputMissing=3]="OutputMissing",n[n.OutOfDateWithSelf=4]="OutOfDateWithSelf",n[n.OutOfDateWithUpstream=5]="OutOfDateWithUpstream",n[n.UpstreamOutOfDate=6]="UpstreamOutOfDate",n[n.UpstreamBlocked=7]="UpstreamBlocked",n[n.ComputingUpstream=8]="ComputingUpstream",n[n.ContainerOnly=9]="ContainerOnly",Y.getOutputDeclarationFileName=u,Y.createBuilderStatusReporter=a,Y.createSolutionBuilderHost=o,Y.createSolutionBuilderWithWatchHost=function(e,n,t,r){void 0===e&&(e=Y.sys);var a=o(e,n,t),i=Y.createWatchHost(e,r);return a.onWatchStatusChange=i.onWatchStatusChange,a.watchFile=i.watchFile,a.watchDirectory=i.watchDirectory,a.setTimeout=i.setTimeout,a.clearTimeout=i.clearTimeout,a},Y.createSolutionBuilder=function(k,e,d){var t,n,i=k,o=k.getCurrentDirectory(),r=Y.createGetCanonicalFileName(k.useCaseSensitiveFileNames()),p=Y.parseConfigHostFromCompilerHost(k),m=d,a=oe(m),s=ne(T),N=ne(T),I=ne(T),c=Y.createMap(),f=function(e){return k.trace&&k.trace(e)},l=ne(T),u=ne(T),_=ne(T),g=[],v=0,y=!1,h=ne(T),b=ne(T),E=ne(T);return{buildAllProjects:function(){m.watch&&x(Y.Diagnostics.Starting_compilation_in_watch_mode);var e,n=P();e=n,m.verbose&&S(Y.Diagnostics.Projects_in_this_build_Colon_0,e.buildQueue.map(function(e){return"\r\n    * "+J(e)}).join(""));for(var t=!1,r=0,a=n.buildQueue;r<a.length;r++){var i=a[r],o=M(i);if(void 0===o){W(i),t=!0;break}var s=o.errors,c=R(o);X(i,c);var l=o.options.configFilePath;if(c.type!==Z.UpToDate||m.force)if(c.type!==Z.UpToDateWithUpstreamTypes||m.force)if(c.type!==Z.UpstreamBlocked)if(c.type!==Z.ContainerOnly){var u=j(i);t=t||!!(u&Q.AnyErrors)}else q(i,s);else q(i,s),m.verbose&&S(Y.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,l,c.upstreamProjectName);else q(i,s),H(o);else q(i,s),d.dry&&S(Y.Diagnostics.Project_0_is_up_to_date,l)}return K(),t?Y.ExitStatus.DiagnosticsPresent_OutputsSkipped:Y.ExitStatus.Success},getUpToDateStatusOfFile:function(e){return R(M(e))},cleanAllProjects:function(){var e=function(){for(var e=P(),n=[],t=0,r=e.buildQueue;t<r.length;t++){var a=r[t],i=M(a);if(void 0!==i)for(var o=ce(i),s=0,c=o;s<c.length;s++){var l=c[s];k.fileExists(l)&&n.push(l)}else W(a)}return n}();if(m.dry)return S(Y.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,e.map(function(e){return"\r\n * "+e}).join("")),Y.ExitStatus.Success;for(var n=0,t=e;n<t.length;n++){var r=t[n];k.deleteFile(r)}return Y.ExitStatus.Success},resetBuildContext:function(e){void 0===e&&(e=d),a=oe(m=e),s.clear(),N.clear(),I.clear(),c.clear(),t=void 0,l.clear(),u.clear(),_.clear(),g.length=0,v=0,n&&(clearTimeout(n),n=void 0),y=!1,Y.clearMap(h,function(e){return Y.clearMap(e,Y.closeFileWatcherOf)}),Y.clearMap(b,function(e){return Y.clearMap(e,Y.closeFileWatcher)}),Y.clearMap(E,Y.closeFileWatcher)},getBuildGraph:w,invalidateProject:function(e,n){F(U(e),n)},buildInvalidatedProject:B,resolveProjectName:U,startWatching:function(){for(var e=P(),n=0,t=e.buildQueue;n<t.length;n++){var r=t[n];C(r);var a=M(r);a&&(D(r,a),A(r,a))}}};function T(e){return Y.toPath(e,o,r)}function M(e){var n,t=s.getValue(e);if(t)return t.options?t:void 0;p.onUnRecoverableConfigFileDiagnostic=function(e){return n=e};var r=Y.getParsedCommandLineOfConfigFile(e,a,p);return p.onUnRecoverableConfigFileDiagnostic=Y.noop,s.setValue(e,r||n),r}function S(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];k.reportSolutionBuilderStatus(Y.createCompilerDiagnostic.apply(void 0,[e].concat(n)))}function x(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];i.onWatchStatusChange&&i.onWatchStatusChange(Y.createCompilerDiagnostic.apply(void 0,[e].concat(n)),k.getNewLine(),a)}function C(e){m.watch&&!E.hasKey(e)&&E.setValue(e,i.watchFile(e,function(){O(e,Y.ConfigFileProgramReloadLevel.Full)}))}function D(r,a){m.watch&&Y.updateWatchingWildcardDirectories(re(h,r),Y.createMapFromTemplate(a.configFileSpecs.wildcardDirectories),function(t,e){return i.watchDirectory(t,function(e){var n=T(e);n!==T(t)&&Y.hasExtension(n)&&!Y.isSupportedSourceFileName(e,a.options)||function(n,e){if(e.options.noEmit)return!1;if(!Y.fileExtensionIs(n,".d.ts")&&(Y.fileExtensionIs(n,".ts")||Y.fileExtensionIs(n,".tsx")))return!1;var t=e.options.outFile||e.options.out;return!(!t||!L(n,t)&&!L(n,Y.removeFileExtension(t)+".d.ts"))||(!(!e.options.declarationDir||!Y.containsPath(e.options.declarationDir,n,o,!k.useCaseSensitiveFileNames()))||(!(!e.options.outDir||!Y.containsPath(e.options.outDir,n,o,!k.useCaseSensitiveFileNames()))||!Y.forEach(e.fileNames,function(e){return L(n,e)})))}(e,a)||O(r,Y.ConfigFileProgramReloadLevel.Partial)},!!(1&e))})}function A(t,e){m.watch&&Y.mutateMap(re(b,t),Y.arrayToMap(e.fileNames,T),{createNewValue:function(e,n){return i.watchFile(n,function(){O(t,Y.ConfigFileProgramReloadLevel.None)})},onDeleteValue:Y.closeFileWatcher})}function L(e,n){return 0===Y.comparePaths(e,n,o,!k.useCaseSensitiveFileNames())}function O(e,n){y=!0,F(e,n),V()}function w(e){return function(e){for(var c=ne(T),l=ne(T),u=[],d=[],p=ne(T),n=0,t=e;n<t.length;n++){var r=t[n];m(r)}return{buildQueue:d,referencingProjectsMap:p};function m(e,n){if(!l.hasKey(e))if(c.hasKey(e))n||S(Y.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,u.join("\r\n"));else{c.setValue(e,!0),u.push(e);var t=M(e);if(t&&t.projectReferences)for(var r=0,a=t.projectReferences;r<a.length;r++){var i=a[r],o=U(i.path);m(o,n||i.circular);var s=te(p,o,function(){return ne(T)});s.setValue(e,!!i.prepend)}u.pop(),l.setValue(e,!0),d.push(e)}}}(e.map(U))}function P(){return t||(t=w(e))}function R(e){if(void 0===e)return{type:Z.Unbuildable,reason:"File deleted mid-build"};var n=I.getValue(e.options.configFilePath);if(void 0!==n)return n;var t=function(e){for(var n=void 0,t=$,r=0,a=e.fileNames;r<a.length;r++){var i=a[r];if(!k.fileExists(i))return{type:Z.Unbuildable,reason:i+" does not exist"};var o=k.getModifiedTime(i)||Y.missingFileModifiedTime;t<o&&(n=i,t=o)}var s=ce(e);if(0===s.length)return{type:Z.ContainerOnly};for(var c,l="(none)",u=ee,d="(none)",p=$,m=$,f=!1,_=0,g=s;_<g.length;_++){var v=g[_];if(!k.fileExists(v)){c=v;break}var y=k.getModifiedTime(v)||Y.missingFileModifiedTime;if(y<u&&(u=y,l=v),y<t){f=!0;break}if(p<y&&(p=y,d=v),ie(v)){var h=N.getValue(v);if(void 0!==h)m=ae(h,m);else{var b=k.getModifiedTime(v)||Y.missingFileModifiedTime;m=ae(m,b)}}}var E,T=!1,S=!1;if(e.projectReferences){I.setValue(e.options.configFilePath,{type:Z.ComputingUpstream});for(var x=0,C=e.projectReferences;x<C.length;x++){var D=C[x];S=S||!!D.prepend;var A=Y.resolveProjectReferencePath(D),L=R(M(A));if(L.type!==Z.ComputingUpstream){if(L.type===Z.Unbuildable)return{type:Z.UpstreamBlocked,upstreamProjectName:D.path};if(L.type!==Z.UpToDate)return{type:Z.UpstreamOutOfDate,upstreamProjectName:D.path};if(!(L.newestInputFileTime&&L.newestInputFileTime<=u)){if(!(L.newestDeclarationFileContentChangedTime&&L.newestDeclarationFileContentChangedTime<=u))return Y.Debug.assert(void 0!==l,"Should have an oldest output filename here"),{type:Z.OutOfDateWithUpstream,outOfDateOutputFileName:l,newerProjectName:D.path};T=!0,E=D.path}}}}return void 0!==c?{type:Z.OutputMissing,missingOutputFileName:c}:f?{type:Z.OutOfDateWithSelf,outOfDateOutputFileName:l,newerInputFileName:n}:S&&T?{type:Z.OutOfDateWithUpstream,outOfDateOutputFileName:l,newerProjectName:E}:{type:T?Z.UpToDateWithUpstreamTypes:Z.UpToDate,newestDeclarationFileContentChangedTime:m,newestInputFileTime:t,newestOutputFileTime:p,newestInputFileName:n,newestOutputFileName:d,oldestOutputFileName:l}}(e);return I.setValue(e.options.configFilePath,t),t}function F(e,n){n===Y.ConfigFileProgramReloadLevel.Full&&(s.removeKey(e),t=void 0),I.removeKey(e),m.watch&&l.removeKey(e),G(e,n)}function G(e,n){var t=u.getValue(e);void 0===t?(u.setValue(e,n||Y.ConfigFileProgramReloadLevel.None),g.push(e)):t<(n||Y.ConfigFileProgramReloadLevel.None)&&u.setValue(e,n||Y.ConfigFileProgramReloadLevel.None)}function V(){i.setTimeout&&i.clearTimeout&&(n&&i.clearTimeout(n),n=i.setTimeout(B,250))}function B(){n=void 0,y&&(y=!1,_.clear(),x(Y.Diagnostics.File_change_detected_Starting_incremental_compilation));var e=function(){if(v<g.length){var e=g[v];v++;var n=u.getValue(e);return u.removeKey(e),u.getSize()||(g.length=0,v=0),{project:e,reloadLevel:n}}}();e&&(function(e,n){var t=M(e);if(!t)return W(e);if(n===Y.ConfigFileProgramReloadLevel.Full)C(e),D(e,t),A(e,t);else if(n===Y.ConfigFileProgramReloadLevel.Partial){var r=Y.getFileNamesFromConfigSpecs(t.configFileSpecs,Y.getDirectoryPath(e),t.options,p);0!==r.fileNames.length?Y.filterMutate(t.errors,function(e){return!Y.isErrorNoInputFiles(e)}):t.configFileSpecs.filesSpecs||Y.some(t.errors,Y.isErrorNoInputFiles)||t.errors.push(Y.getErrorForNoInputFiles(t.configFileSpecs,e)),t.fileNames=r.fileNames,A(e,t)}var a=R(t);if(X(e,a),a.type===Z.UpstreamBlocked)return m.verbose&&S(Y.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,e,a.upstreamProjectName);var i=j(e),o=P(),s=o.referencingProjectsMap.getValue(e);if(s)for(var c=0,l=o.buildQueue;c<l.length;c++){var u=l[c],d=s.getValue(u);!d&&(void 0===d||i&Q.DeclarationOutputUnchanged)||G(u)}}(e.project,e.reloadLevel),u.getSize()?m.watch&&!n&&V():K())}function K(){if(m.watch){P().buildQueue.forEach(function(e){_.hasKey(e)||z(l.getValue(e)||Y.emptyArray)});var n=0;l.forEach(function(e){return n+=e.filter(function(e){return e.category===Y.DiagnosticCategory.Error}).length}),x(1===n?Y.Diagnostics.Found_1_error_Watching_for_file_changes:Y.Diagnostics.Found_0_errors_Watching_for_file_changes,n)}}function j(r){if(m.dry)return S(Y.Diagnostics.A_non_dry_build_would_build_project_0,r),Q.Success;m.verbose&&S(Y.Diagnostics.Building_project_0,r);var i=Q.None;i|=Q.DeclarationOutputUnchanged;var e=M(r);if(!e)return i|=Q.ConfigFileErrors,W(r),I.setValue(r,{type:Z.Unbuildable,reason:"Config file errors"}),i;if(0===e.fileNames.length)return Q.None;var n={projectReferences:e.projectReferences,host:k,rootNames:e.fileNames,options:e.options,configFileParsingDiagnostics:e.errors},t=Y.createProgram(n),a=t.getOptionsDiagnostics().concat(t.getConfigFileParsingDiagnostics(),t.getSyntacticDiagnostics());if(a.length)return p(a,Q.SyntaxErrors,"Syntactic");if(Y.getEmitDeclarations(t.getCompilerOptions())){var o=t.getDeclarationDiagnostics();if(o.length)return p(o,Q.DeclarationEmitErrors,"Declaration file")}var s=t.getSemanticDiagnostics();if(s.length)return p(s,Q.TypeErrors,"Semantic");var c,l=$,u=!1;if(Y.emitFilesAndReportErrors(t,function(e){return(c||(c=[])).push(e)},f,void 0,function(e,n,t,r){var a;!u&&ie(e)&&(k.fileExists(e)&&k.readFile(e)===n?a=k.getModifiedTime(e):(i&=~Q.DeclarationOutputUnchanged,u=!0)),k.writeFile(e,n,t,r,Y.emptyArray),void 0!==a&&(l=ae(a,l),N.setValue(e,a))}),c)return p(c,Q.EmitErrors,"Emit");var d={type:Z.UpToDate,newestDeclarationFileContentChangedTime:u?ee:l};return I.setValue(r,d),i;function p(e,n,t){return i|=n,q(r,e),I.setValue(r,{type:Z.Unbuildable,reason:t+" errors"}),i}}function H(e){if(m.dry)return S(Y.Diagnostics.A_non_dry_build_would_build_project_0,e.options.configFilePath);m.verbose&&S(Y.Diagnostics.Updating_output_timestamps_of_project_0,e.options.configFilePath);for(var n=new Date,t=ce(e),r=$,a=0,i=t;a<i.length;a++){var o=i[a];ie(o)&&(r=ae(r,k.getModifiedTime(o)||Y.missingFileModifiedTime)),k.setModifiedTime(o,n)}I.setValue(e.options.configFilePath,{type:Z.UpToDate,newestDeclarationFileContentChangedTime:r})}function U(e){return se(Y.resolvePath(k.getCurrentDirectory(),e))}function W(e){q(e,[s.getValue(e)])}function q(e,n){z(n),m.watch&&(_.setValue(e,!0),l.setValue(e,n))}function z(e){e.forEach(function(e){return k.reportDiagnostic(e)})}function J(e){return Y.convertToRelativePath(e,k.getCurrentDirectory(),function(e){return k.getCanonicalFileName(e)})}function X(e,n){if(m.verbose)return le(e,n,J,S)}},Y.resolveConfigFileProjectName=se,Y.getAllProjectOutputs=ce,Y.formatUpToDateStatus=le}(ts||(ts={})),function(y){var e;function n(e,n){return h(e,n,(i=new Set,o=[],function(e,n,t,r){if(i.has(e)||4<o.length)return r(i.has(e),o);i.add(e),o.push(n);var a=t();return o.pop(),i.delete(e),a}));var i,o}function h(_,g,v){return v(g,_,function(){if("function"==typeof g)return n=_,c=r=v,l=(e=g).prototype,t="object"!=typeof l||null===l?y.emptyArray:y.mapDefined(E(l),function(e){var n=e.key,t=e.value;return"constructor"===n?void 0:h(n,t,c)}),a=y.flatMap(E(e),function(e){var n=e.key,t=e.value;return h(n,t,r)}),i=y.cast(Function.prototype.toString.call(e),y.isString),o=y.stringContains(i,"{ [native code] }")?(s=e,y.tryCast(T(s,"length"),y.isNumber)||0):i,{kind:2,name:n,source:o,namespaceMembers:a,prototypeMembers:t};var e,n,r,t,a,i,o,s,c,l,u,d,p;if("object"!=typeof g)return{kind:0,name:_,typeName:S(g)?"any":typeof g};var m=(u=_,d=g,p=v,y.isArray(d)?{name:u,kind:1,inner:d.length&&h("element",y.first(d),p)||x(u)}:y.forEachEntry(b(),function(e,n){return d instanceof e?{kind:0,name:u,typeName:n}:void 0}));if(void 0!==m)return m;var f=E(g);return{kind:3,name:_,members:y.flatMap(f,function(e){return h(e.key,e.value,v)})}},function(e,n){return x(_," "+(e?"Circular reference":"Too-deep object hierarchy")+" from "+n.join("."))})}(e=y.ValueKind||(y.ValueKind={}))[e.Const=0]="Const",e[e.Array=1]="Array",e[e.FunctionOrClass=2]="FunctionOrClass",e[e.Object=3]="Object",y.inspectModule=function(e){return n(y.removeFileExtension(y.getBaseFileName(e)),function(e){try{return}catch(e){return}}())},y.inspectValue=n;var b=y.memoize(function(){for(var e=y.createMap(),n=0,t=E(global);n<t.length;n++){var r=t[n],a=r.key,i=r.value;"function"==typeof i&&"object"==typeof i.prototype&&i!==Object&&e.set(a,i)}return e});var c=new Set(["arguments","caller","constructor","eval","super_"]),l=new Set(Object.getOwnPropertyNames(y.noop));function E(e){for(var n=y.createMap(),t=[],r=e;!S(r)&&r!==Object.prototype&&r!==Function.prototype;){for(var a=0,i=Object.getOwnPropertyNames(r);a<i.length;a++){var o=i[a];if(!u(o)&&!c.has(o)&&("function"!=typeof e||!l.has(o))&&y.addToSeen(n,o)){var s=T(r,o);"toString"===o&&"function"==typeof s&&0===s.length||t.push({key:o,value:s})}}r=Object.getPrototypeOf(r)}return t.sort(function(e,n){return y.compareStringsCaseSensitive(e.key,n.key)})}function T(e,n){var t=Object.getOwnPropertyDescriptor(e,n);return t&&t.value}function S(e){return null==e}function x(e,n){return{kind:0,name:e,typeName:"any",comment:n}}function u(e){return e.startsWith("_")}y.isJsPrivate=u}(ts||(ts={})),function(t){var e,n;(e=t.server||(t.server={})).ActionSet="action::set",e.ActionInvalidate="action::invalidate",e.ActionPackageInstalled="action::packageInstalled",e.ActionValueInspected="action::valueInspected",e.EventTypesRegistry="event::typesRegistry",e.EventBeginInstallTypes="event::beginInstallTypes",e.EventEndInstallTypes="event::endInstallTypes",e.EventInitializationFailed="event::initializationFailed",(n=e.Arguments||(e.Arguments={})).GlobalCacheLocation="--globalTypingsCacheLocation",n.LogFile="--logFile",n.EnableTelemetry="--enableTelemetry",n.TypingSafeListLocation="--typingSafeListLocation",n.TypesMapLocation="--typesMapLocation",n.NpmLocation="--npmLocation",e.hasArgument=function(e){return 0<=t.sys.args.indexOf(e)},e.findArgument=function(e){var n=t.sys.args.indexOf(e);return 0<=n&&n<t.sys.args.length-1?t.sys.args[n+1]:void 0},e.nowString=function(){var e=new Date;return e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()+"."+e.getMilliseconds()}}(ts||(ts={})),function(A){!function(C){function D(e,n){return new A.Version(A.getProperty(n,"ts"+A.versionMajorMinor)||A.getProperty(n,"latest")).compareTo(e.version)<=0}var e;C.isTypingUpToDate=D,C.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"],C.nodeCoreModules=A.arrayToSet(C.nodeCoreModuleList),C.loadSafeList=function(n,e){var t=A.readConfigFile(e,function(e){return n.readFile(e)});return A.createMapFromTemplate(t.config)},C.loadTypesMap=function(n,e){var t=A.readConfigFile(e,function(e){return n.readFile(e)});if(t.config)return A.createMapFromTemplate(t.config.simpleMap)},C.discoverTypings=function(p,m,e,n,r,t,a,i,o){if(!a||!a.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var f=A.createMap();e=A.mapDefined(e,function(e){var n=A.normalizePath(e);if(A.hasJSFileExtension(n))return n});var s=[];a.include&&T(a.include,"Explicitly included types");var c=a.exclude||[],l=A.arrayToSet(e,A.getDirectoryPath);l.set(n,!0),l.forEach(function(e,n){S(A.combinePaths(n,"package.json"),s),S(A.combinePaths(n,"bower.json"),s),x(A.combinePaths(n,"bower_components"),s),x(A.combinePaths(n,"node_modules"),s)}),u=e,d=A.mapDefined(u,function(e){if(A.hasJSFileExtension(e)){var n=A.removeFileExtension(A.getBaseFileName(e.toLowerCase())),t=A.removeMinAndVersionNumbers(n);return r.get(t)}}),d.length&&T(d,"Inferred typings from file names"),A.some(u,function(e){return A.fileExtensionIs(e,".jsx")})&&(m&&m("Inferred 'react' typings due to presence of '.jsx' extension"),E("react")),i&&T(A.deduplicate(i.map(function(e){return C.nodeCoreModules.has(e)?"node":e}),A.equateStringsCaseSensitive,A.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),t.forEach(function(e,n){var t=o.get(n);f.has(n)&&void 0===f.get(n)&&void 0!==t&&D(e,t)&&f.set(n,e.typingLocation)});var u,d;for(var _=0,g=c;_<g.length;_++){var v=g[_];f.delete(v)&&m&&m("Typing for "+v+" is in exclude list, will be ignored.")}var y=[],h=[];f.forEach(function(e,n){void 0!==e?h.push(e):y.push(n)});var b={cachedTypingPaths:h,newTypingNames:y,filesToWatch:s};return m&&m("Result: "+JSON.stringify(b)),b;function E(e){f.has(e)||f.set(e,void 0)}function T(e,n){m&&m(n+": "+JSON.stringify(e)),A.forEach(e,E)}function S(e,n){if(p.fileExists(e)){n.push(e);var t=A.readConfigFile(e,function(e){return p.readFile(e)}).config;T(A.flatMap([t.dependencies,t.devDependencies,t.optionalDependencies,t.peerDependencies],A.getOwnKeys),"Typing names in '"+e+"' dependencies")}}function x(e,n){if(n.push(e),p.directoryExists(e)){var t=p.readDirectory(e,[".json"],void 0,void 0,2);m&&m("Searching for typing names in "+e+"; all files: "+JSON.stringify(t));for(var r=[],a=0,i=t;a<i.length;a++){var o=i[a],s=A.normalizePath(o),c=A.getBaseFileName(s);if("package.json"===c||"bower.json"===c){var l=A.readConfigFile(s,function(e){return p.readFile(e)}).config;if(("package.json"!==c||!l._requiredBy||0!==A.filter(l._requiredBy,function(e){return"#"===e[0]||"/"===e}).length)&&l.name){var u=l.types||l.typings;if(u){var d=A.getNormalizedAbsolutePath(u,A.getDirectoryPath(s));m&&m("    Package '"+l.name+"' provides its own types."),f.set(l.name,d)}else r.push(l.name)}}}T(r,"    Found package names")}}},(e=C.PackageNameValidationResult||(C.PackageNameValidationResult={}))[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";C.validatePackageName=function(e){return e?214<e.length?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^/]+\/[^/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2},C.renderPackageNameValidationFailure=function(e,n){switch(e){case 2:return"Package name '"+n+"' cannot be empty";case 3:return"Package name '"+n+"' should be less than 214 characters";case 4:return"Package name '"+n+"' cannot start with '.'";case 5:return"Package name '"+n+"' cannot start with '_'";case 1:return"Package '"+n+"' is scoped and currently is not supported";case 6:return"Package name '"+n+"' contains non URI safe characters";case 0:return A.Debug.fail();default:throw A.Debug.assertNever(e)}}}(A.JsTyping||(A.JsTyping={}))}(ts||(ts={})),function(e){var n,t;n=e.ScriptSnapshot||(e.ScriptSnapshot={}),t=function(){function e(e){this.text=e}return e.prototype.getText=function(e,n){return 0===e&&n===this.text.length?this.text:this.text.substring(e,n)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}(),n.fromString=function(e){return new t(e)},e.emptyOptions={};var r,a,i,o,s,c,l,u,d,p,m,f,_=function(){};e.TextChange=_,(r=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",r.definition="definition",r.reference="reference",r.writtenReference="writtenReference",(i=a=e.IndentStyle||(e.IndentStyle={}))[i.None=0]="None",i[i.Block=1]="Block",i[i.Smart=2]="Smart",e.testFormatSettings={baseIndentSize:0,indentSize:4,tabSize:4,newLineCharacter:"\n",convertTabsToSpaces:!0,indentStyle:a.Smart,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterConstructor:!1,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceAfterTypeAssertion:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,insertSpaceBeforeTypeAnnotation:!1},(o=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[o.aliasName=0]="aliasName",o[o.className=1]="className",o[o.enumName=2]="enumName",o[o.fieldName=3]="fieldName",o[o.interfaceName=4]="interfaceName",o[o.keyword=5]="keyword",o[o.lineBreak=6]="lineBreak",o[o.numericLiteral=7]="numericLiteral",o[o.stringLiteral=8]="stringLiteral",o[o.localName=9]="localName",o[o.methodName=10]="methodName",o[o.moduleName=11]="moduleName",o[o.operator=12]="operator",o[o.parameterName=13]="parameterName",o[o.propertyName=14]="propertyName",o[o.punctuation=15]="punctuation",o[o.space=16]="space",o[o.text=17]="text",o[o.typeParameterName=18]="typeParameterName",o[o.enumMemberName=19]="enumMemberName",o[o.functionName=20]="functionName",o[o.regularExpressionLiteral=21]="regularExpressionLiteral",(s=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",s.Region="region",s.Code="code",s.Imports="imports",(c=e.OutputFileType||(e.OutputFileType={}))[c.JavaScript=0]="JavaScript",c[c.SourceMap=1]="SourceMap",c[c.Declaration=2]="Declaration",(l=e.EndOfLineState||(e.EndOfLineState={}))[l.None=0]="None",l[l.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",l[l.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",l[l.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",l[l.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",l[l.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",l[l.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(u=e.TokenClass||(e.TokenClass={}))[u.Punctuation=0]="Punctuation",u[u.Keyword=1]="Keyword",u[u.Operator=2]="Operator",u[u.Comment=3]="Comment",u[u.Whitespace=4]="Whitespace",u[u.Identifier=5]="Identifier",u[u.NumberLiteral=6]="NumberLiteral",u[u.StringLiteral=7]="StringLiteral",u[u.RegExpLiteral=8]="RegExpLiteral",(d=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",d.warning="warning",d.keyword="keyword",d.scriptElement="script",d.moduleElement="module",d.classElement="class",d.localClassElement="local class",d.interfaceElement="interface",d.typeElement="type",d.enumElement="enum",d.enumMemberElement="enum member",d.variableElement="var",d.localVariableElement="local var",d.functionElement="function",d.localFunctionElement="local function",d.memberFunctionElement="method",d.memberGetAccessorElement="getter",d.memberSetAccessorElement="setter",d.memberVariableElement="property",d.constructorImplementationElement="constructor",d.callSignatureElement="call",d.indexSignatureElement="index",d.constructSignatureElement="construct",d.parameterElement="parameter",d.typeParameterElement="type parameter",d.primitiveType="primitive type",d.label="label",d.alias="alias",d.constElement="const",d.letElement="let",d.directory="directory",d.externalModuleName="external module name",d.jsxAttribute="JSX attribute",d.string="string",(p=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",p.publicMemberModifier="public",p.privateMemberModifier="private",p.protectedMemberModifier="protected",p.exportedModifier="export",p.ambientModifier="declare",p.staticModifier="static",p.abstractModifier="abstract",p.optionalModifier="optional",(m=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",m.identifier="identifier",m.keyword="keyword",m.numericLiteral="number",m.operator="operator",m.stringLiteral="string",m.whiteSpace="whitespace",m.text="text",m.punctuation="punctuation",m.className="class name",m.enumName="enum name",m.interfaceName="interface name",m.moduleName="module name",m.typeParameterName="type parameter name",m.typeAliasName="type alias name",m.parameterName="parameter name",m.docCommentTagName="doc comment tag name",m.jsxOpenTagName="jsx open tag name",m.jsxCloseTagName="jsx close tag name",m.jsxSelfClosingTagName="jsx self closing tag name",m.jsxAttribute="jsx attribute",m.jsxText="jsx text",m.jsxAttributeStringLiteralValue="jsx attribute string literal value",(f=e.ClassificationType||(e.ClassificationType={}))[f.comment=1]="comment",f[f.identifier=2]="identifier",f[f.keyword=3]="keyword",f[f.numericLiteral=4]="numericLiteral",f[f.operator=5]="operator",f[f.stringLiteral=6]="stringLiteral",f[f.regularExpressionLiteral=7]="regularExpressionLiteral",f[f.whiteSpace=8]="whiteSpace",f[f.text=9]="text",f[f.punctuation=10]="punctuation",f[f.className=11]="className",f[f.enumName=12]="enumName",f[f.interfaceName=13]="interfaceName",f[f.moduleName=14]="moduleName",f[f.typeParameterName=15]="typeParameterName",f[f.typeAliasName=16]="typeAliasName",f[f.parameterName=17]="parameterName",f[f.docCommentTagName=18]="docCommentTagName",f[f.jsxOpenTagName=19]="jsxOpenTagName",f[f.jsxCloseTagName=20]="jsxCloseTagName",f[f.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",f[f.jsxAttribute=22]="jsxAttribute",f[f.jsxText=23]="jsxText",f[f.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue"}(ts||(ts={})),function(m){var e;function a(e){switch(e.kind){case 235:return m.isInJSFile(e)&&m.getJSDocEnumTag(e)?7:1;case 149:case 184:case 152:case 151:case 273:case 274:case 154:case 153:case 155:case 156:case 157:case 237:case 194:case 195:case 272:case 265:return 1;case 148:case 239:case 240:case 166:return 2;case 302:return void 0===e.name?3:2;case 276:case 238:return 3;case 242:return m.isAmbientModule(e)?5:1===m.getModuleInstanceState(e)?5:4;case 241:case 250:case 251:case 246:case 247:case 252:case 253:return 7;case 277:return 5}return 7}function i(e){for(;146===e.parent.kind;)e=e.parent;return m.isInternalModuleImportEqualsDeclaration(e.parent)&&e.parent.moduleReference===e}function n(e,n){var t=r(e);return!!t&&!!t.parent&&n(t.parent)&&t.parent.expression===t}function r(e){return s(e)?e.parent:e}function t(e){return 71===e.kind&&m.isBreakOrContinueStatement(e.parent)&&e.parent.label===e}function o(e){return 71===e.kind&&m.isLabeledStatement(e.parent)&&e.parent.label===e}function s(e){return e&&e.parent&&187===e.parent.kind&&e.parent.name===e}m.scanner=m.createScanner(6,!0),(e=m.SemanticMeaning||(m.SemanticMeaning={}))[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",m.getMeaningFromDeclaration=a,m.getMeaningFromLocation=function(e){return 277===e.kind?1:252===e.parent.kind||257===e.parent.kind?7:i(e)?(r=146===(t=e).kind?t:m.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0)&&246===r.parent.kind?7:4:m.isDeclarationName(e)?a(e.parent):function(e){switch(m.isRightSideOfQualifiedNameOrPropertyAccess(e)&&(e=e.parent),e.kind){case 99:return!m.isExpressionNode(e);case 176:return!0}switch(e.parent.kind){case 162:return!0;case 181:return!e.parent.isTypeOf;case 209:return!m.isExpressionWithTypeArgumentsInClassExtendsClause(e.parent)}return!1}(e)?2:function(e){var n=e,t=!0;if(146===n.parent.kind){for(;n.parent&&146===n.parent.kind;)n=n.parent;t=n.right===e}return 162===n.parent.kind&&!t}(n=e)||function(e){var n=e,t=!0;if(187===n.parent.kind){for(;n.parent&&187===n.parent.kind;)n=n.parent;t=n.name===e}if(t||209!==n.parent.kind||271!==n.parent.parent.kind)return!1;var r=n.parent.parent.parent;return 238===r.kind&&108===n.parent.parent.token||239===r.kind&&85===n.parent.parent.token}(n)?4:m.isTypeParameterDeclaration(e.parent)?(m.Debug.assert(m.isJSDocTemplateTag(e.parent.parent)),2):m.isLiteralTypeNode(e.parent)?3:1;var n,t,r},m.isInRightSideOfInternalImportEqualsDeclaration=i,m.isCallExpressionTarget=function(e){return n(e,m.isCallExpression)},m.isNewExpressionTarget=function(e){return n(e,m.isNewExpression)},m.isCallOrNewExpressionTarget=function(e){return n(e,m.isCallOrNewExpression)},m.climbPastPropertyAccess=r,m.getTargetLabel=function(e,n){for(;e;){if(231===e.kind&&e.label.escapedText===n)return e.label;e=e.parent}},m.hasPropertyAccessExpressionWithName=function(e,n){return!!m.isPropertyAccessExpression(e.expression)&&e.expression.name.text===n},m.isJumpStatementTarget=t,m.isLabelOfLabeledStatement=o,m.isLabelName=function(e){return o(e)||t(e)},m.isRightSideOfQualifiedName=function(e){return 146===e.parent.kind&&e.parent.right===e},m.isRightSideOfPropertyAccess=s,m.isNameOfModuleDeclaration=function(e){return 242===e.parent.kind&&e.parent.name===e},m.isNameOfFunctionDeclaration=function(e){return 71===e.kind&&m.isFunctionLike(e.parent)&&e.parent.name===e},m.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(e){switch(e.parent.kind){case 152:case 151:case 273:case 276:case 154:case 153:case 156:case 157:case 242:return m.getNameOfDeclaration(e.parent)===e;case 188:return e.parent.argumentExpression===e;case 147:return!0;case 180:return 178===e.parent.parent.kind;default:return!1}},m.isExpressionOfExternalModuleImportEqualsDeclaration=function(e){return m.isExternalModuleImportEqualsDeclaration(e.parent.parent)&&m.getExternalModuleImportEqualsDeclarationExpression(e.parent.parent)===e},m.getContainerNode=function(e){for(m.isJSDocTypeAlias(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 277:case 154:case 153:case 237:case 194:case 156:case 157:case 238:case 239:case 241:case 242:return e}}},m.getNodeKind=function e(n){switch(n.kind){case 277:return m.isExternalModule(n)?"module":"script";case 242:return"module";case 238:case 207:return"class";case 239:return"interface";case 240:case 295:case 302:return"type";case 241:return"enum";case 235:return i(n);case 184:return i(m.getRootDeclaration(n));case 195:case 237:case 194:return"function";case 156:return"getter";case 157:return"setter";case 154:case 153:return"method";case 152:case 151:return"property";case 160:return"index";case 159:return"construct";case 158:return"call";case 155:return"constructor";case 148:return"type parameter";case 276:return"enum member";case 149:return m.hasModifier(n,92)?"property":"parameter";case 246:case 251:case 255:case 249:return"alias";case 202:var t=m.getAssignmentDeclarationKind(n),r=n.right;switch(t){case 0:return"";case 1:case 2:var a=e(r);return""===a?"const":a;case 3:return m.isFunctionExpression(r)?"method":"property";case 4:return"property";case 5:return m.isFunctionExpression(r)?"method":"property";case 6:return"local class";default:return m.assertType(t),""}case 71:return m.isImportClause(n.parent)?"alias":"";default:return""}function i(e){return m.isVarConst(e)?"const":m.isLet(e)?"let":"var"}},m.isThis=function(e){switch(e.kind){case 99:return!0;case 71:return m.identifierIsThisKeyword(e)&&149===e.parent.kind;default:return!1}};var c,l=/^\/\/\/\s*</;function u(e,n){return p(e.pos,e.end,n)}function d(e,n){return e.pos<n&&n<e.end}function p(e,n,t){return e<=t.pos&&n>=t.end}function f(e,n,t,r){return Math.max(e,t)<Math.min(n,r)}function _(e,n,t){var r=e.getChildren(t);if(r.length){var a=m.last(r);if(a.kind===n)return!0;if(25===a.kind&&1!==r.length)return r[r.length-2].kind===n}return!1}function g(e,n,t){return!!v(e,n,t)}function v(e,n,t){return m.find(e.getChildren(t),function(e){return e.kind===n})}function y(n){var e=m.find(n.parent.getChildren(),function(e){return m.isSyntaxList(e)&&u(e,n)});return m.Debug.assert(!e||m.contains(e.getChildren(),n)),e}function h(e,n,t){return E(e,n,!1,t,!1)}function b(e,n){return E(e,n,!0,void 0,!1)}function E(e,n,t,r,a){var i=e;e:for(;;){for(var o=0,s=i.getChildren(e);o<s.length;o++){var c=s[o];if(n<(t?c.getFullStart():c.getStart(e,!0)))break;var l=c.getEnd();if(n<l||n===l&&(1===c.kind||a)){i=c;continue e}if(r&&l===n){var u=T(n,e,c);if(u&&r(u))return u}}return i}}function T(l,u,d,p){var e=function e(n){if(S(n)&&1!==n.kind)return n;var t=n.getChildren(u);for(var r=0;r<t.length;r++){var a=t[r];if(l<a.end){var i=a.getStart(u,!p),o=l<=i||!I(a,u)||D(a);if(o){var s=C(t,r,u);return s&&x(s,u)}return e(a)}}m.Debug.assert(void 0!==d||277===n.kind||1===n.kind||m.isJSDocCommentContainingNode(n));var c=C(t,t.length,u);return c&&x(c,u)}(d||u);return m.Debug.assert(!(e&&D(e))),e}function S(e){return m.isToken(e)&&!D(e)}function x(e,n){if(S(e))return e;var t=e.getChildren(n),r=C(t,t.length,n);return r&&x(r,n)}function C(e,n,t){for(var r=n-1;0<=r;r--){if(D(e[r]))m.Debug.assert(0<r,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(I(e[r],t))return e[r]}}function D(e){return m.isJsxText(e)&&e.containsOnlyWhiteSpaces}function A(e,n,t){for(var r=e.kind,a=0;;){var i=T(e.getFullStart(),t);if(!i)return;if((e=i).kind===n){if(0===a)return e;a--}else e.kind===r&&a++}}function L(e,n,t){var r=t.getTypeAtLocation(e);return(m.isNewExpression(e.parent)?r.getConstructSignatures():r.getCallSignatures()).filter(function(e){return!!e.typeParameters&&e.typeParameters.length>=n})}function k(e,n){for(var t=e,r=0,a=0;t;){switch(t.kind){case 27:if(!(t=T(t.getFullStart(),n))||!m.isIdentifier(t))return;if(!r)return m.isDeclarationName(t)?void 0:{called:t,nTypeArguments:a};r--;break;case 47:r=3;break;case 46:r=2;break;case 29:r++;break;case 18:if(!(t=A(t,17,n)))return;break;case 20:if(!(t=A(t,19,n)))return;break;case 22:if(!(t=A(t,21,n)))return;break;case 26:a++;break;case 36:case 71:case 9:case 8:case 101:case 86:case 103:case 85:case 128:case 23:case 49:case 55:case 56:break;default:if(m.isTypeNode(t))break;return}t=T(t.getFullStart(),n)}}function N(e,n,t){return m.formatting.getRangeOfEnclosingComment(e,n,void 0,t)}function I(e,n){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(n)}function M(e,n,t){var r=N(e,n,void 0);return!!r&&t===l.test(e.text.substring(r.pos,r.end))}function O(e,n){return{span:e,newText:n}}function w(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function P(e,n,t,r){return m.createImportDeclaration(void 0,void 0,e||n?m.createImportClause(e,n&&n.length?m.createNamedImports(n):void 0):void 0,"string"==typeof t?R(t,r):t)}function R(e,n){return m.createLiteral(e,0===n)}function F(e,n){return m.isStringDoubleQuoted(e,n)?1:0}function G(e){return"default"!==e.escapedName?e.escapedName:m.firstDefined(e.declarations,function(e){var n=m.getNameOfDeclaration(e);return n&&71===n.kind?n.escapedText:void 0})}function V(e,a,i,o){var n=m.createMap();return function r(e){if(!(96&e.flags&&m.addToSeen(n,m.getSymbolId(e))))return;return m.firstDefined(e.declarations,function(e){return m.firstDefined(m.getAllSuperTypeNodes(e),function(e){var n=i.getTypeAtLocation(e),t=n&&n.symbol&&i.getPropertyOfType(n,a);return n&&t&&(m.firstDefined(i.getRootSymbols(t),o)||r(n.symbol))})})}(e)}function B(e,n){return!!e&&!!n&&e.start===n.start&&e.length===n.length}m.getLineStartPositionForPosition=function(e,n){return m.getLineStarts(n)[n.getLineAndCharacterOfPosition(e).line]},m.rangeContainsRange=u,m.rangeContainsRangeExclusive=function(e,n){return d(e,n.pos)&&d(e,n.end)},m.rangeContainsPosition=function(e,n){return e.pos<=n&&n<=e.end},m.rangeContainsPositionExclusive=d,m.startEndContainsRange=p,m.rangeContainsStartEnd=function(e,n,t){return e.pos<=n&&e.end>=t},m.rangeOverlapsWithStartEnd=function(e,n,t){return f(e.pos,e.end,n,t)},m.nodeOverlapsWithStartEnd=function(e,n,t,r){return f(e.getStart(n),e.end,t,r)},m.startEndOverlapsWithStartEnd=f,m.positionBelongsToNode=function(e,n,t){return m.Debug.assert(e.pos<=n),n<e.end||!function e(n,t){if(void 0===n||m.nodeIsMissing(n))return!1;switch(n.kind){case 238:case 239:case 241:case 186:case 182:case 166:case 216:case 243:case 244:case 250:case 254:return _(n,18,t);case 272:return e(n.block,t);case 190:if(!n.arguments)return!0;case 189:case 193:case 175:return _(n,20,t);case 163:case 164:return e(n.type,t);case 155:case 156:case 157:case 237:case 194:case 154:case 153:case 159:case 158:case 195:return n.body?e(n.body,t):n.type?e(n.type,t):g(n,20,t);case 242:return!!n.body&&e(n.body,t);case 220:return n.elseStatement?e(n.elseStatement,t):e(n.thenStatement,t);case 219:return e(n.expression,t)||g(n,25,t);case 185:case 183:case 188:case 147:case 168:return _(n,22,t);case 160:return n.type?e(n.type,t):g(n,22,t);case 269:case 270:return!1;case 223:case 224:case 225:case 222:return e(n.statement,t);case 221:return g(n,106,t)?_(n,20,t):e(n.statement,t);case 165:return e(n.exprName,t);case 197:case 196:case 198:case 205:case 206:var r=n;return e(r.expression,t);case 191:return e(n.template,t);case 204:var a=m.lastOrUndefined(n.templateSpans);return e(a,t);case 214:return m.nodeIsPresent(n.literal);case 253:case 247:return m.nodeIsPresent(n.moduleSpecifier);case 200:return e(n.operand,t);case 202:return e(n.right,t);case 203:return e(n.whenFalse,t);default:return!0}}(e,t)},m.findListItemInfo=function(e){var n=y(e);if(n){var t=n.getChildren();return{listItemIndex:m.indexOfNode(t,e),list:n}}},m.hasChildOfKind=g,m.findChildOfKind=v,m.findContainingList=y,m.getTouchingPropertyName=function(e,n){return h(e,n,function(e){return m.isPropertyNameLiteral(e)||m.isKeyword(e.kind)})},m.getTouchingToken=h,m.getTokenAtPosition=b,m.findTokenOnLeftOfPosition=function(e,n){var t=b(e,n);return m.isToken(t)&&n>t.getStart(e)&&n<t.getEnd()?t:T(n,e)},m.findNextToken=function(r,e,a){return function t(e){return m.isToken(e)&&e.pos===r.end?e:m.firstDefined(e.getChildren(),function(e){var n=e.pos<=r.pos&&e.end>r.end||e.pos===r.end;return n&&I(e,a)?t(e):void 0})}(e)},m.findPrecedingToken=T,m.isInString=function(e,n,t){if(void 0===t&&(t=T(n,e)),t&&m.isStringTextContainingNode(t)){var r=t.getStart(e),a=t.getEnd();if(r<n&&n<a)return!0;if(n===a)return!!t.isUnterminated}return!1},m.isInsideJsxElementOrAttribute=function(e,n){var t=b(e,n);return!!t&&(10===t.kind||27===t.kind&&10===t.parent.kind||27===t.kind&&268===t.parent.kind||!(!t||18!==t.kind||268!==t.parent.kind)||27===t.kind&&261===t.parent.kind)},m.isInTemplateString=function(e,n){var t=b(e,n);return m.isTemplateLiteralKind(t.kind)&&n>t.getStart(e)},m.findPrecedingMatchingToken=A,m.isPossiblyTypeArgumentPosition=function e(n,t,r){var a=k(n,t);return void 0!==a&&(m.isPartOfTypeNode(a.called)||0!==L(a.called,a.nTypeArguments,r).length||e(a.called,t,r))},m.getPossibleGenericSignatures=L,m.getPossibleTypeArgumentsInfo=k,m.isInComment=N,m.hasDocComment=function(e,n){var t=b(e,n);return!!m.findAncestor(t,m.isJSDoc)},m.getNodeModifiers=function(e){var n=m.isDeclaration(e)?m.getCombinedModifierFlags(e):0,t=[];return 8&n&&t.push("private"),16&n&&t.push("protected"),4&n&&t.push("public"),32&n&&t.push("static"),128&n&&t.push("abstract"),1&n&&t.push("export"),4194304&e.flags&&t.push("declare"),0<t.length?t.join(","):""},m.getTypeArgumentOrTypeParameterList=function(e){return 162===e.kind||189===e.kind?e.typeArguments:m.isFunctionLike(e)||238===e.kind||239===e.kind?e.typeParameters:void 0},m.isComment=function(e){return 2===e||3===e},m.isStringOrRegularExpressionOrTemplateLiteral=function(e){return!(9!==e&&12!==e&&!m.isTemplateLiteralKind(e))},m.isPunctuation=function(e){return 17<=e&&e<=70},m.isInsideTemplateLiteral=function(e,n,t){return m.isTemplateLiteralKind(e.kind)&&e.getStart(t)<n&&n<e.end||!!e.isUnterminated&&n===e.end},m.isAccessibilityModifier=function(e){switch(e){case 114:case 112:case 113:return!0}return!1},m.cloneCompilerOptions=function(e){var n=m.clone(e);return m.setConfigFileInOptions(n,e&&e.configFile),n},m.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(n){if(185===n.kind||186===n.kind){if(202===n.parent.kind&&n.parent.left===n&&58===n.parent.operatorToken.kind)return!0;if(225===n.parent.kind&&n.parent.initializer===n)return!0;if(e(273===n.parent.kind?n.parent.parent:n.parent))return!0}return!1},m.isInReferenceComment=function(e,n){return M(e,n,!0)},m.isInNonReferenceComment=function(e,n){return M(e,n,!1)},m.createTextSpanFromNode=function(e,n){return m.createTextSpanFromBounds(e.getStart(n),e.getEnd())},m.createTextRangeFromNode=function(e,n){return m.createRange(e.getStart(n),e.end)},m.createTextSpanFromRange=function(e){return m.createTextSpanFromBounds(e.pos,e.end)},m.createTextRangeFromSpan=function(e){return m.createRange(e.start,e.start+e.length)},m.createTextChangeFromStartLength=function(e,n,t){return O(m.createTextSpan(e,n),t)},m.createTextChange=O,m.typeKeywords=[119,122,86,128,131,95,134,135,137,138,101,105,140,141,142],m.isTypeKeyword=function(e){return m.contains(m.typeKeywords,e)},m.isExternalModuleSymbol=function(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)},m.nodeSeenTracker=function(){var t=[];return function(e){var n=m.getNodeId(e);return!t[n]&&(t[n]=!0)}},m.getSnapshotText=function(e){return e.getText(0,e.getLength())},m.repeatString=function(e,n){for(var t="",r=0;r<n;r++)t+=e;return t},m.skipConstraint=function(e){return e.isTypeParameter()&&e.getConstraint()||e},m.getNameFromPropertyName=function(e){return 147===e.kind?m.isStringOrNumericLiteralLike(e.expression)?e.expression.text:void 0:m.getTextOfIdentifierOrLiteral(e)},m.programContainsEs6Modules=function(n){return n.getSourceFiles().some(function(e){return!e.isDeclarationFile&&!n.isSourceFileFromExternalLibrary(e)&&!!e.externalModuleIndicator})},m.compilerOptionsIndicateEs6Modules=function(e){return!!e.module||2<=e.target||!!e.noEmit},m.hostUsesCaseSensitiveFileNames=w,m.hostGetCanonicalFileName=function(e){return m.createGetCanonicalFileName(w(e))},m.makeImportIfNecessary=function(e,n,t,r){return e||n&&n.length?P(e,n,t,r):void 0},m.makeImport=P,m.makeStringLiteral=R,(c=m.QuotePreference||(m.QuotePreference={}))[c.Single=0]="Single",c[c.Double=1]="Double",m.quotePreferenceFromString=F,m.getQuotePreference=function(e,n){if(n.quotePreference)return"single"===n.quotePreference?0:1;var t=e.imports&&m.find(e.imports,m.isStringLiteral);return t?F(t,e):1},m.getQuoteFromPreference=function(e){switch(e){case 0:return"'";case 1:return'"';default:return m.Debug.assertNever(e)}},m.symbolNameNoDefault=function(e){var n=G(e);return void 0===n?void 0:m.unescapeLeadingUnderscores(n)},m.symbolEscapedNameNoDefault=G,m.getPropertySymbolFromBindingElement=function(e,n){var t=e.getTypeAtLocation(n.parent),r=t&&e.getPropertyOfType(t,n.name.text);return r&&98304&r.flags?(m.Debug.assert(!!(33554432&r.flags)),r.target):r},m.getPropertySymbolsFromBaseTypes=V,m.isMemberSymbolInBaseType=function(e,n){return V(e.parent,e.name,n,function(e){return!0})||!1},m.getParentNodeInSpan=function(e,n,t){var r,a,i;if(e)for(;e.parent;){if(m.isSourceFile(e.parent)||(r=t,a=e.parent,i=n,!(m.textSpanContainsPosition(r,a.getStart(i))&&a.getEnd()<=m.textSpanEnd(r))))return e;e=e.parent}},m.findModifier=function(e,n){return e.modifiers&&m.find(e.modifiers,function(e){return e.kind===n})},m.insertImport=function(e,n,t){var r=m.findLast(n.statements,m.isAnyImportSyntax);r?e.insertNodeAfter(n,r,t):e.insertNodeAtTopOfFile(n,t,!0)},m.textSpansEqual=B,m.documentSpansEqual=function(e,n){return e.fileName===n.fileName&&B(e.textSpan,n.textSpan)}}(ts||(ts={})),function(v){function t(e){return e.declarations&&0<e.declarations.length&&149===e.declarations[0].kind}v.isFirstDeclarationOfSymbolParameter=t;var n=function(){var t,n,r,a,i=10*v.defaultMaximumTruncationLength;c();var e=function(e){return s(e,v.SymbolDisplayPartKind.text)};return{displayParts:function(){var e=t.length&&t[t.length-1].text;return i<a&&e&&"..."!==e&&(v.isWhiteSpaceLike(e.charCodeAt(e.length-1))||t.push(u(" ",v.SymbolDisplayPartKind.space)),t.push(u("...",v.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(e){return s(e,v.SymbolDisplayPartKind.keyword)},writeOperator:function(e){return s(e,v.SymbolDisplayPartKind.operator)},writePunctuation:function(e){return s(e,v.SymbolDisplayPartKind.punctuation)},writeSpace:function(e){return s(e,v.SymbolDisplayPartKind.space)},writeStringLiteral:function(e){return s(e,v.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(e){return s(e,v.SymbolDisplayPartKind.parameterName)},writeProperty:function(e){return s(e,v.SymbolDisplayPartKind.propertyName)},writeLiteral:function(e){return s(e,v.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,n){if(i<a)return;o(),a+=e.length,t.push(l(e,n))},writeLine:function(){if(i<a)return;a+=1,t.push(d()),n=!0},write:e,writeTextOfNode:e,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:v.notImplemented,getIndent:function(){return r},increaseIndent:function(){r++},decreaseIndent:function(){r--},clear:c,trackSymbol:v.noop,reportInaccessibleThisError:v.noop,reportInaccessibleUniqueSymbolError:v.noop,reportPrivateInBaseOfClassExpression:v.noop};function o(){if(!(i<a)&&n){var e=v.getIndentString(r);e&&(a+=e.length,t.push(u(e,v.SymbolDisplayPartKind.space))),n=!1}}function s(e,n){i<a||(o(),a+=e.length,t.push(u(e,n)))}function c(){t=[],n=!0,a=r=0}}();function l(e,n){return u(e,function(e){var n=e.flags;{if(3&n)return t(e)?v.SymbolDisplayPartKind.parameterName:v.SymbolDisplayPartKind.localName;if(4&n)return v.SymbolDisplayPartKind.propertyName;if(32768&n)return v.SymbolDisplayPartKind.propertyName;if(65536&n)return v.SymbolDisplayPartKind.propertyName;if(8&n)return v.SymbolDisplayPartKind.enumMemberName;if(16&n)return v.SymbolDisplayPartKind.functionName;if(32&n)return v.SymbolDisplayPartKind.className;if(64&n)return v.SymbolDisplayPartKind.interfaceName;if(384&n)return v.SymbolDisplayPartKind.enumName;if(1536&n)return v.SymbolDisplayPartKind.moduleName;if(8192&n)return v.SymbolDisplayPartKind.methodName;if(262144&n)return v.SymbolDisplayPartKind.typeParameterName;if(524288&n)return v.SymbolDisplayPartKind.aliasName;if(2097152&n)return v.SymbolDisplayPartKind.aliasName}return v.SymbolDisplayPartKind.text}(n))}function u(e,n){return{text:e,kind:v.SymbolDisplayPartKind[n]}}function r(e){return u(v.tokenToString(e),v.SymbolDisplayPartKind.keyword)}function a(e){return u(e,v.SymbolDisplayPartKind.text)}v.symbolPart=l,v.displayPart=u,v.spacePart=function(){return u(" ",v.SymbolDisplayPartKind.space)},v.keywordPart=r,v.punctuationPart=function(e){return u(v.tokenToString(e),v.SymbolDisplayPartKind.punctuation)},v.operatorPart=function(e){return u(v.tokenToString(e),v.SymbolDisplayPartKind.operator)},v.textOrKeywordPart=function(e){var n=v.stringToToken(e);return void 0===n?a(e):r(n)},v.textPart=a;function d(){return u("\n",v.SymbolDisplayPartKind.lineBreak)}function e(e){try{return e(n),n.displayParts()}finally{n.clear()}}function i(e){return v.isSingleOrDoubleQuote(e.charCodeAt(0))}function o(e,n){return v.ensureScriptKind(e,n&&n.getScriptKind&&n.getScriptKind(e))}function s(e,n){void 0===n&&(n=!0);var t=e&&p(e);return t&&!n&&m(t),t}function c(e,n,t,r,a){var i;if(void 0===n&&(n=!0),v.isIdentifier(e)&&t&&r){var o=r.getSymbolAtLocation(e),s=o&&t.get(String(v.getSymbolId(o)));s&&(i=v.createIdentifier(s.text))}return i||(i=p(e,t,r,a)),i&&!n&&m(i),a&&i&&a(e,i),i}function p(e,n,t,r){var a=n||t||r?v.visitEachChild(e,function(e){return c(e,!0,n,t,r)},v.nullTransformationContext):v.visitEachChild(e,s,v.nullTransformationContext);if(a!==e)return a.parent=void 0,a;var i=v.getSynthesizedClone(e);return v.isStringLiteral(i)?i.textSourceNode=e:v.isNumericLiteral(i)&&(i.numericLiteralFlags=e.numericLiteralFlags),v.setTextRange(i,e)}function m(e){f(e),_(e)}function f(e){g(e,512,y)}function _(e){g(e,1024,v.getLastChild)}function g(e,n,t){v.addEmitFlags(e,n);var r=t(e);r&&g(r,n,t)}function y(e){return e.forEachChild(function(e){return e})}function h(e,n){if(v.startsWith(e,n))return 0;var t=e.indexOf(" "+n);return-1===t&&(t=e.indexOf("."+n)),-1===t&&(t=e.indexOf('"'+n)),-1===t?-1:t+1}v.getNewLineOrDefaultFromHost=function(e,n){return n&&n.newLineCharacter||e.getNewLine&&e.getNewLine()||"\r\n"},v.lineBreakPart=d,v.mapToDisplayParts=e,v.typeToDisplayParts=function(n,t,r,a){return void 0===a&&(a=0),e(function(e){n.writeType(t,r,17408|a,e)})},v.symbolToDisplayParts=function(n,t,r,a,i){return void 0===i&&(i=0),e(function(e){n.writeSymbol(t,r,a,8|i,e)})},v.signatureToDisplayParts=function(n,t,r,a){return void 0===a&&(a=0),a|=25632,e(function(e){n.writeSignature(t,r,a,void 0,e)})},v.isImportOrExportSpecifierName=function(e){return!!e.parent&&(251===e.parent.kind||255===e.parent.kind)&&e.parent.propertyName===e},v.stripQuotes=function(e){var n=e.length;return 2<=n&&e.charCodeAt(0)===e.charCodeAt(n-1)&&i(e)?e.substring(1,n-1):e},v.startsWithQuote=i,v.scriptKindIs=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var a=o(e,n);return v.some(t,function(e){return e===a})},v.getScriptKind=o,v.getUniqueSymbolId=function(e,n){return v.getSymbolId(v.skipAlias(e,n))},v.getFirstNonSpaceCharacterPosition=function(e,n){for(;v.isWhiteSpaceLike(e.charCodeAt(n));)n+=1;return n},v.getSynthesizedDeepClone=s,v.getSynthesizedDeepCloneWithRenames=c,v.getSynthesizedDeepClones=function(e,n){return void 0===n&&(n=!0),e&&v.createNodeArray(e.map(function(e){return s(e,n)}),e.hasTrailingComma)},v.suppressLeadingAndTrailingTrivia=m,v.suppressLeadingTrivia=f,v.suppressTrailingTrivia=_,v.getUniqueName=function(e,n){for(var t=e,r=1;!v.isFileLevelUniqueName(n,t);r++)t=e+"_"+r;return t},v.getRenameLocation=function(e,n,t,r){for(var a=0,i=-1,o=0,s=e;o<s.length;o++){var c=s[o],l=c.fileName,u=c.textChanges;v.Debug.assert(l===n);for(var d=0,p=u;d<p.length;d++){var m=p[d],f=m.span,_=m.newText,g=h(_,t);if(-1!==g&&(i=f.start+a+g,!r))return i;a+=_.length-f.length}}return v.Debug.assert(r),v.Debug.assert(0<=i),i},v.copyComments=function(e,a,i,o,s){v.forEachLeadingCommentRange(i.text,e.pos,function(e,n,t,r){3===t?(e+=2,n-=2):e+=2,v.addSyntheticLeadingComment(a,o||t,i.text.slice(e,n),void 0!==s?s:r)})}}(ts||(ts={})),function(h){h.createClassifier=function(){var g=h.createScanner(6,!1);function r(e,n,t){var r=0,a=0,i=[],o=function(e){switch(e){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 h.Debug.assertNever(e)}}(n),s=o.prefix,c=o.pushTemplate;e=s+e;var l=s.length;c&&i.push(14),g.setText(e);var u=0,d=[],p=0;do{r=g.scan(),h.isTrivia(r)||(_(),a=r);var m=g.getTextPos();if(b(g.getTokenPos(),m,l,E(r),d),m>=e.length){var f=y(g,r,h.lastOrUndefined(i));void 0!==f&&(u=f)}}while(1!==r);function _(){switch(r){case 41:case 63:v[a]||12!==g.reScanSlashToken()||(r=12);break;case 27:71===a&&p++;break;case 29:0<p&&p--;break;case 119:case 137:case 134:case 122:case 138:0<p&&!t&&(r=71);break;case 14:i.push(r);break;case 17:0<i.length&&i.push(r);break;case 18:if(0<i.length){var e=h.lastOrUndefined(i);14===e?16===(r=g.reScanTemplateToken())?i.pop():h.Debug.assertEqual(r,15,"Should have been a template middle."):(h.Debug.assertEqual(e,17,"Should have been an open brace"),i.pop())}break;default:if(!h.isKeyword(r))break;23===a?r=71:h.isKeyword(a)&&h.isKeyword(r)&&!function(e,n){if(!h.isAccessibilityModifier(e))return!0;switch(n){case 125:case 136:case 123:case 115:return!0;default:return!1}}(a,r)&&(r=71)}}return{endOfLineState:u,spans:d}}return{getClassificationsForLine:function(e,n,t){return function(e,n){for(var t=[],r=e.spans,a=0,i=0;i<r.length;i+=3){var o=r[i],s=r[i+1],c=r[i+2];if(0<=a){var l=o-a;0<l&&t.push({length:l,classification:h.TokenClass.Whitespace})}t.push({length:s,classification:d(c)}),a=o+s}var u=n.length-a;return 0<u&&t.push({length:u,classification:h.TokenClass.Whitespace}),{entries:t,finalLexState:e.endOfLineState}}(r(e,n,t),e)},getEncodedLexicalClassifications:r}};var v=h.arrayToNumericMap([71,9,8,12,99,43,44,20,22,18,101,86],function(e){return e},function(){return!0});function y(e,n,t){switch(n){case 9:if(!e.isUnterminated())return;for(var r=e.getTokenText(),a=r.length-1,i=0;92===r.charCodeAt(a-i);)i++;if(0==(1&i))return;return 34===r.charCodeAt(0)?3:2;case 3:return e.isUnterminated()?1:void 0;default:if(h.isTemplateLiteralKind(n)){if(!e.isUnterminated())return;switch(n){case 16:return 5;case 13:return 4;default:return h.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+n)}}return 14===t?6:void 0}}function b(e,n,t,r,a){if(8!==r){0===e&&0<t&&(e+=t);var i=n-e;0<i&&a.push(e-t,i,r)}}function d(e){switch(e){case 1:return h.TokenClass.Comment;case 3:return h.TokenClass.Keyword;case 4:return h.TokenClass.NumberLiteral;case 5:return h.TokenClass.Operator;case 6:return h.TokenClass.StringLiteral;case 8:return h.TokenClass.Whitespace;case 10:return h.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return h.TokenClass.Identifier;default:return}}function E(e){if(h.isKeyword(e))return 3;if(function(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}(e)||function(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}(e))return 5;if(17<=e&&e<=70)return 10;switch(e){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return h.isTemplateLiteralKind(e)?6:2}}function T(e,n){switch(n){case 242:case 238:case 239:case 237:e.throwIfCancellationRequested()}}function i(s,c,l,u,d){var p=[];return l.forEachChild(function e(n){if(n&&h.textSpanIntersectsWith(d,n.pos,n.getFullWidth())){if(T(c,n.kind),h.isIdentifier(n)&&!h.nodeIsMissing(n)&&u.has(n.escapedText)){var t=s.getSymbolAtLocation(n),r=t&&function e(n,t,r){var a=n.getFlags();return 0==(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&t||1&t&&(i=n,h.some(i.declarations,function(e){return h.isModuleDeclaration(e)&&1===h.getModuleInstanceState(e)}))?14:void 0:2097152&a?e(r.getAliasedSymbol(n),t,r):2&t?64&a?13:262144&a?15:void 0:void 0;var i}(t,h.getMeaningFromLocation(n),s);r&&(a=n.getStart(l),i=n.getEnd(),o=r,p.push(a),p.push(i-a),p.push(o))}var a,i,o;n.forEachChild(e)}}),{spans:p,endOfLineState:0}}function a(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function o(e){h.Debug.assert(e.spans.length%3==0);for(var n=e.spans,t=[],r=0;r<n.length;r+=3)t.push({textSpan:h.createTextSpan(n[r],n[r+1]),classificationType:a(n[r+2])});return t}function r(a,s,e){var i=e.start,o=e.length,c=h.createScanner(6,!1,s.languageVariant,s.text),l=h.createScanner(6,!1,s.languageVariant,s.text),r=[];return y(s),{spans:r,endOfLineState:0};function u(e,n,t){r.push(e),r.push(n),r.push(t)}function d(e,n,t,r){if(3===n){var a=h.parseIsolatedJSDocComment(s.text,t,r);if(a&&a.jsDoc)return a.jsDoc.parent=e,void function(e){var n=e.pos;if(e.tags)for(var t=0,r=e.tags;t<r.length;t++){var a=r[t];switch(a.pos!==n&&p(n,a.pos-n),u(a.atToken.pos,a.atToken.end-a.atToken.pos,10),u(a.tagName.pos,a.tagName.end-a.tagName.pos,18),n=a.tagName.end,a.kind){case 297:i(a);break;case 301:m(a),n=a.end;break;case 300:case 298:y(a.typeExpression),n=a.end}}n!==e.end&&p(n,e.end-n);return;function i(e){e.isNameFirst&&(p(n,e.name.pos-n),u(e.name.pos,e.name.end-e.name.pos,17),n=e.name.end),e.typeExpression&&(p(n,e.typeExpression.pos-n),y(e.typeExpression),n=e.typeExpression.end),e.isNameFirst||(p(n,e.name.pos-n),u(e.name.pos,e.name.end-e.name.pos,17),n=e.name.end)}}(a.jsDoc)}p(t,r)}function p(e,n){u(e,n,1)}function m(e){for(var n=0,t=e.getChildren();n<t.length;n++){y(t[n])}}function f(e,n,t){var r;for(r=n;r<t&&!h.isLineBreak(e.charCodeAt(r));r++);for(u(n,r-n,1),l.setTextPos(r);l.getTextPos()<t;)_()}function _(){var e=l.getTextPos(),n=l.scan(),t=l.getTextPos(),r=v(n);r&&u(e,t-e,r)}function g(e){if(h.isJSDoc(e))return!0;if(h.nodeIsMissing(e))return!0;var n=function(e){switch(e.parent&&e.parent.kind){case 260:if(e.parent.tagName===e)return 19;break;case 261:if(e.parent.tagName===e)return 20;break;case 259:if(e.parent.tagName===e)return 21;break;case 265:if(e.parent.name===e)return 22}return}(e);if(!h.isToken(e)&&10!==e.kind&&void 0===n)return!1;var t=10===e.kind?e.pos:function(e){for(c.setTextPos(e.pos);;){var n=c.getTextPos();if(!h.couldStartTrivia(s.text,n))return n;var t=c.scan(),r=c.getTextPos(),a=r-n;if(!h.isTrivia(t))return n;switch(t){case 4:case 5:continue;case 2:case 3:d(e,t,n,a),c.setTextPos(r);continue;case 7:var i=s.text,o=i.charCodeAt(n);if(60===o||62===o){u(n,a,1);continue}h.Debug.assert(124===o||61===o),f(i,n,r);break;case 6:break;default:h.Debug.assertNever(t)}}}(e),r=e.end-t;if(h.Debug.assert(0<=r),0<r){var a=n||v(e.kind,e);a&&u(t,r,a)}return!0}function v(e,n){if(h.isKeyword(e))return 3;if((27===e||29===e)&&n&&h.getTypeArgumentOrTypeParameterList(n.parent))return 10;if(h.isPunctuation(e)){if(n){var t=n.parent;if(58===e&&(235===t.kind||152===t.kind||149===t.kind||265===t.kind))return 5;if(202===t.kind||200===t.kind||201===t.kind||203===t.kind)return 5}return 10}if(8===e)return 4;if(9===e)return 265===n.parent.kind?24:6;if(12===e)return 6;if(h.isTemplateLiteralKind(e))return 6;if(10===e)return 23;if(71===e){if(n)switch(n.parent.kind){case 238:return n.parent.name===n?11:void 0;case 148:return n.parent.name===n?15:void 0;case 239:return n.parent.name===n?13:void 0;case 241:return n.parent.name===n?12:void 0;case 242:return n.parent.name===n?14:void 0;case 149:return n.parent.name===n?h.isThisIdentifier(n)?3:17:void 0}return 2}}function y(e){if(e&&h.decodedTextSpanIntersectsWith(i,o,e.pos,e.getFullWidth())){T(a,e.kind);for(var n=0,t=e.getChildren(s);n<t.length;n++){var r=t[n];g(r)||y(r)}}}}h.getSemanticClassifications=function(e,n,t,r,a){return o(i(e,n,t,r,a))},h.getEncodedSemanticClassifications=i,h.getSyntacticClassifications=function(e,n,t){return o(r(e,n,t))},h.getEncodedSyntacticClassifications=r}(ts||(ts={})),function(P){var e;(function(e){function k(e,n){return{name:e,kind:n}}function f(e,n,t){var r,a,i,o,s,c=(r=e,a=n,i=Math.max(r.lastIndexOf(P.directorySeparator),r.lastIndexOf("\\")),o=-1!==i?i+1:0,0==(s=r.length-o)||P.isIdentifierText(r.substr(o,s),6)?void 0:P.createTextSpan(a+o,s));return t.map(function(e){return{name:e.name,kind:e.kind,span:c}})}function b(e){var n=P.getSupportedExtensions(e);return e.resolveJsonModule&&P.getEmitModuleResolutionKind(e)===P.ModuleResolutionKind.NodeJs?n.concat(".json"):n}function E(e,n,t,r,a,i,o){void 0===o&&(o=[]),void 0===e&&(e=""),e=P.normalizeSlashes(e),P.hasTrailingDirectorySeparator(e)||(e=P.getDirectoryPath(e)),""===e&&(e="."+P.directorySeparator),e=P.ensureTrailingDirectorySeparator(e);var s,c,l,u=P.resolvePath(n,e),d=P.hasTrailingDirectorySeparator(u)?u:P.getDirectoryPath(u),p=!(a.useCaseSensitiveFileNames&&a.useCaseSensitiveFileNames());if(w(a,d)){var m=M(a,d,t,void 0,["./*"]);if(m){for(var f=P.createMap(),_=0,g=m;_<g.length;_++){var v=g[_];if(v=P.normalizePath(v),!i||0!==P.comparePaths(v,i,n,p)){var y=r||P.fileExtensionIs(v,".json")?P.getBaseFileName(v):P.removeFileExtension(P.getBaseFileName(v));f.has(y)||f.set(y,!0)}}P.forEachKey(f,function(e){o.push(k(e,"script"))})}var h=I(a,d);if(h)for(var b=0,E=h;b<E.length;b++){var T=E[b],S=P.getBaseFileName(P.normalizePath(T));"@types"!==S&&o.push(k(S,"directory"))}var x=(s=d,c=a,P.forEachAncestorDirectory(s,function(e){return"node_modules"===e||!!(l=P.findConfigFile(e,function(e){return O(c,e)},"package.json"))||void 0}),l);if(x){var C=P.readJson(x,a).typesVersions;if("object"==typeof C){var D=P.getPackageJsonTypesVersionsPaths(C),A=D&&D.paths,L=u.slice(P.ensureTrailingDirectorySeparator(d).length);A&&N(o,L,d,t,A,a)}}}return o}function N(t,e,n,r,a,i){for(var o in a)if(P.hasProperty(a,o)){var s=a[o];if(s)for(var c=function(n,e){t.some(function(e){return e.name===n})||t.push(k(n,e))},l=0,u=p(o,s,e,n,r,i);l<u.length;l++){var d=u[l];c(d.name,d.kind)}}}function p(e,n,t,r,a,i){if(!P.endsWith(e,"*"))return P.stringContains(e,"*")?P.emptyArray:c(e);var o=e.slice(0,e.length-1),s=P.tryRemovePrefix(t,o);return void 0===s?c(o):P.flatMap(n,function(e){return function(e,n,t,r,a){if(a.readDirectory){var i=P.hasZeroOrOneAsteriskCharacter(t)?P.tryParsePattern(t):void 0;if(i){var o=P.resolvePath(i.prefix),s=P.hasTrailingDirectorySeparator(i.prefix)?o:P.getDirectoryPath(o),c=P.hasTrailingDirectorySeparator(i.prefix)?"":P.getBaseFileName(o),l=C(e),u=l?P.hasTrailingDirectorySeparator(e)?e:P.getDirectoryPath(e):void 0,d=l?P.combinePaths(s,c+u):s,p=P.normalizePath(i.suffix),m=P.normalizePath(P.combinePaths(n,d)),f=l?m:P.ensureTrailingDirectorySeparator(m)+c,_=M(a,m,r,void 0,[p?"**/*":"./*"]).map(function(e){return{name:e,kind:"script"}}),g=I(a,m).map(function(e){return P.combinePaths(m,e)}).map(function(e){return{name:e,kind:"directory"}});return P.mapDefined(P.concatenate(_,g),function(e){var n,t,r,a,i=e.name,o=e.kind,s=P.normalizePath(i),c=(n=s,t=f,r=p,P.startsWith(n,t)&&P.endsWith(n,r)?n.slice(t.length,n.length-r.length):void 0);return void 0!==c?{name:(a=P.removeFileExtension(c),a[0]===P.directorySeparator?a.slice(1):a),kind:o}:void 0})}}}(s,r,e,a,i)});function c(e){return P.startsWith(e,t)?[{name:e,kind:"directory"}]:P.emptyArray}}function T(o,e,n,t){void 0===t&&(t=[]);var r=P.createMap();if(e.types)for(var a=0,i=e.types;a<i.length;a++){var s=i[a];_(P.unmangleScopedPackageName(s))}else if(o.getDirectories){var c=void 0;try{c=P.getEffectiveTypeRoots(e,o)}catch(e){}if(c)for(var l=0,u=c;l<u.length;l++)f(u[l]);for(var d=0,p=S(n,o);d<p.length;d++){var m=p[d];f(P.combinePaths(P.getDirectoryPath(m),"node_modules/@types"))}}return t;function f(e){if(P.Debug.assert(!!o.getDirectories),w(o,e)){var n=I(o,e);if(n)for(var t=0,r=n;t<r.length;t++){var a=r[t];a=P.normalizePath(a);var i=P.getBaseFileName(a);_(P.unmangleScopedPackageName(i))}}}function _(e){r.has(e)||(t.push(k(e,"external module name")),r.set(e,!0))}}function S(e,t){var r=[];return P.forEachAncestorDirectory(e,function(e){var n=P.findConfigFile(e,function(e){return O(t,e)},"package.json");if(!n)return!0;r.push(n)}),r}e.getStringLiteralCompletionsFromModuleNames=function(e,n,t,r,a){return f(n.text,n.getStart(e)+1,function(e,n,t,r,a){var i=P.normalizeSlashes(n.text),o=e.path,s=P.getDirectoryPath(o);if(function(e){if(e&&2<=e.length&&46===e.charCodeAt(0)){var n=3<=e.length&&46===e.charCodeAt(1)?2:1,t=e.charCodeAt(n);return 47===t||92===t}return!1}(i)||P.isRootedDiskPath(i)){var c=b(t);return t.rootDirs?function(e,n,t,r,a,i,o,s){for(var c=i.project||o.getCurrentDirectory(),l=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),u=function(e,n,t,r){e=e.map(function(e){return P.normalizePath(P.isRootedDiskPath(e)?e:P.combinePaths(n,e))});var a=P.firstDefined(e,function(e){return P.containsPath(e,t,n,r)?t.substr(e.length):void 0});return P.deduplicate(e.map(function(e){return P.combinePaths(e,a)}),P.equateStringsCaseSensitive,P.compareStringsCaseSensitive)}(e,c,t,l),d=[],p=0,m=u;p<m.length;p++){var f=m[p];E(n,f,r,a,o,s,d)}return d}(t.rootDirs,i,s,c,!1,t,r,o):E(i,s,c,!1,r,o)}return function(t,e,n,r,a){var i=n.baseUrl,o=n.paths,s=[],c=b(n);if(i){var l=n.project||r.getCurrentDirectory(),u=P.normalizePath(P.combinePaths(l,i));E(t,u,c,!1,r,void 0,s),o&&N(s,t,u,c,o,r)}for(var d=C(t)?P.hasTrailingDirectorySeparator(t)?t:P.getDirectoryPath(t):void 0,p=0,m=function(n,e,t){var r=t.getAmbientModules().map(function(e){return P.stripQuotes(e.name)}).filter(function(e){return P.startsWith(e,n)});if(void 0===e)return r;var a=P.ensureTrailingDirectorySeparator(e);return r.map(function(e){return P.removePrefix(e,a)})}(t,d,a);p<m.length;p++){var f=m[p];s.push(k(f,"external module name"))}if(T(r,n,e,s),P.getEmitModuleResolutionKind(n)===P.ModuleResolutionKind.NodeJs){var _=!1;if(void 0===d)for(var g=function(n){s.some(function(e){return e.name===n})||(_=!0,s.push(k(n,"external module name")))},v=0,y=function(e,n){if(!e.readFile||!e.fileExists)return P.emptyArray;for(var t=[],r=0,a=S(n,e);r<a.length;r++)for(var i=a[r],o=P.readJson(i,e),s=0,c=x;s<c.length;s++){var l=c[s],u=o[l];if(u)for(var d in u)u.hasOwnProperty(d)&&!P.startsWith(d,"@types/")&&t.push(d)}return t}(r,e);v<y.length;v++){var h=y[v];g(h)}_||P.forEachAncestorDirectory(e,function(e){var n=P.combinePaths(e,"node_modules");w(r,n)&&E(t,n,c,!1,r,void 0,s)})}return s}(i,s,t,r,a)}(e,n,t,r,a))},e.getTripleSlashReferenceCompletion=function(e,n,t,r){var a=P.getTokenAtPosition(e,n),i=P.getLeadingCommentRanges(e.text,a.pos),o=i&&P.find(i,function(e){return n>=e.pos&&n<=e.end});if(o){var s=e.text.slice(o.pos,n),c=_.exec(s);if(c){var l=c[1],u=c[2],d=c[3],p=P.getDirectoryPath(e.path),m="path"===u?E(d,p,P.getSupportedExtensions(t),!0,r,e.path):"types"===u?T(r,t,p):void 0;return m&&f(d,o.pos+l.length,m)}}};var _=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,x=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function I(e,n){return i(e,e.getDirectories,n)||[]}function M(e,n,t,r,a){return i(e,e.readDirectory,n,t,r,a)||P.emptyArray}function O(e,n){return i(e,e.fileExists,n)}function w(e,n){try{return P.directoryProbablyExists(n,e)}catch(e){}return!1}function i(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];try{return n&&n.apply(e,t)}catch(e){}}function C(e){return P.stringContains(e,P.directorySeparator)}})((e=P.Completions||(P.Completions={})).PathCompletions||(e.PathCompletions={}))}(ts||(ts={})),function(_e){!function(b){var e,n,t,r,a,i;function T(e){return 2===e.kind||3===e.kind}function p(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(function(e){return{name:e.name,kind:e.kind,kindModifiers:"",sortText:"0",replacementSpan:e.span}})}}function m(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function w(e,n){return _e.isSourceFileJS(e)&&!_e.isCheckJsEnabledForFile(e,n)}(n=e||(e={}))[n.ThisType=0]="ThisType",n[n.SymbolMemberNoExport=1]="SymbolMemberNoExport",n[n.SymbolMemberExport=2]="SymbolMemberExport",n[n.Export=3]="Export",(r=t||(t={}))[r.None=0]="None",r[r.All=1]="All",r[r.ClassElementKeywords=2]="ClassElementKeywords",r[r.InterfaceElementKeywords=3]="InterfaceElementKeywords",r[r.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",r[r.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",r[r.TypeKeywords=6]="TypeKeywords",(i=a||(a={}))[i.Continue=0]="Continue",i[i.Success=1]="Success",i[i.Fail=2]="Fail",b.getCompletionsAtPosition=function(e,n,t,r,a,i,o){var s=n.getTypeChecker(),c=n.getCompilerOptions();if(_e.isInReferenceComment(r,a)){var l=b.PathCompletions.getTripleSlashReferenceCompletion(r,a,c,e);return l&&p(l)}var u=_e.findPrecedingToken(a,r);if(!o||u&&function(e,n,t,r){switch(n){case".":case"@":return!0;case'"':case"'":case"`":return function(e){switch(e.kind){case 9:case 13:case 204:case 191:return!0;default:return!1}}(t)&&r===t.getStart(e)+1;case"<":return 27===t.kind&&(!_e.isBinaryExpression(t.parent)||fe(t.parent));case"/":return _e.isStringLiteralLike(t)?!!_e.tryGetImportFromModuleSpecifier(t):41===t.kind&&_e.isJsxClosingElement(t.parent);default:return _e.Debug.assertNever(n)}}(r,o,u,a)){if(_e.isInString(r,a,u))return u&&_e.isStringLiteralLike(u)?function(e,n,t,r,a){if(void 0!==e)switch(e.kind){case 0:return p(e.paths);case 1:var i=[];return R(e.symbols,i,n,n,t,6,r,4,a),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,entries:i};case 2:var i=e.types.map(function(e){return{name:e.value,kindModifiers:"",kind:"string",sortText:"0"}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,entries:i};default:return _e.Debug.assertNever(e)}}(D(r,u,a,s,c,e),r,s,t,i):void 0;if(u&&_e.isBreakOrContinueStatement(u.parent)&&(72===u.kind||77===u.kind||71===u.kind))return function(e){var n=function(e){for(var n=[],t=_e.createMap(),r=e;r&&!_e.isFunctionLike(r);){if(_e.isLabeledStatement(r)){var a=r.label.text;t.has(a)||(t.set(a,!0),n.push({name:a,kindModifiers:"",kind:"label",sortText:"0"}))}r=r.parent}return n}(e);if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n}}(u.parent);var d=_(n,t,r,w(r,c),a,i,void 0);if(d)switch(d.kind){case 0:return function(e,n,t,r,a,i){var o=a.symbols,s=a.completionKind,c=a.isInSnippetScope,l=a.isNewIdentifierLocation,u=a.location,d=a.propertyAccessToConvert,p=a.keywordFilters,m=a.literals,f=a.symbolToOriginInfoMap,_=a.recommendedCompletion,g=a.isJsxInitializer;if(u&&u.parent&&_e.isJsxClosingElement(u.parent)){var v=u.parent.parent.openingElement.tagName,y=!!_e.findChildOfKind(u.parent,29,e),h={name:v.getFullText(e)+(y?"":">"),kind:"class",kindModifiers:void 0,sortText:"0"};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,entries:[h]}}var b,E,T,S,x,C=[];if(w(e,t)){var D=R(o,C,u,e,n,t.target,r,s,i,d,g,_,f);b=e,E=u.pos,T=D,S=t.target,x=C,_e.getNameTable(b).forEach(function(e,n){if(e!==E){var t=_e.unescapeLeadingUnderscores(n);_e.addToSeen(T,t)&&_e.isIdentifierText(t,S)&&x.push({name:t,kind:"warning",kindModifiers:"",sortText:"1"})}})}else{if((!o||0===o.length)&&0===p)return;R(o,C,u,e,n,t.target,r,s,i,d,g,_,f)}if(0!==p)for(var A=_e.arrayToSet(C,function(e){return e.name}),L=0,k=function(r){return F[r]||(F[r]=G().filter(function(e){var n,t=_e.stringToToken(e.name);switch(r){case 0:return!1;case 1:return 120===t||!_e.isContextualKeyword(t)&&!ce(t)||124===t||129===t||_e.isTypeKeyword(t)&&140!==t;case 2:return ce(t);case 3:return se(t);case 4:return _e.isParameterPropertyModifier(t);case 5:return 120===(n=t)||!_e.isContextualKeyword(n)&&!ce(n);case 6:return _e.isTypeKeyword(t);default:return _e.Debug.assertNever(r)}}))}(p);L<k.length;L++){var N=k[L];A.has(N.name)||C.push(N)}for(var I=0,M=m;I<M.length;I++){var O=M[I];C.push({name:P(O),kind:"string",kindModifiers:"",sortText:"0"})}return{isGlobalCompletion:c,isMemberCompletion:function(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}(s),isNewIdentifierLocation:l,entries:C}}(r,s,c,t,d,i);case 1:return m(_e.JsDoc.getJSDocTagNameCompletions());case 2:return m(_e.JsDoc.getJSDocTagCompletions());case 3:return m(_e.JsDoc.getJSDocParameterNameCompletions(d.tag));default:return _e.Debug.assertNever(d)}}};var o,s,c,l,u,d,P=JSON.stringify;function E(e,n,t,r,a,i,o,s,c,l,u){var d=O(e,a,o,i);if(d){var p,m,f,_,g,v,y=d.name,h=d.needsConvertPropertyAccess;if(o&&0===o.kind)p=h?"this["+S(y,u)+"]":"this."+y;else if((o&&(2===(f=o).kind||1===f.kind)||h)&&c){p=h?"["+S(y,u)+"]":"["+y+"]";var b=_e.findChildOfKind(c,23,t),E=_e.startsWith(y,c.name.text)?c.name.end:b.end;m=_e.createTextSpanFromBounds(b.getStart(t),E)}if(l&&(void 0===p&&(p=y),p="{"+p+"}","boolean"!=typeof l&&(m=_e.createTextSpanFromNode(l,t))),void 0===p||u.includeCompletionsWithInsertText)return{name:y,kind:_e.SymbolDisplay.getSymbolKind(r,e,n),kindModifiers:_e.SymbolDisplay.getSymbolModifiers(e),sortText:"0",source:C(o),hasAction:x(!!o&&T(o)),isRecommended:x((_=e,g=s,v=r,_===g||!!(1048576&_.flags)&&v.getExportSymbolOfSymbol(_)===g)),insertText:p,replacementSpan:m}}}function S(e,n){if(/^\d+$/.test(e))return e;var t=JSON.stringify(e);switch(n.quotePreference){case void 0:case"double":return t;case"single":return"'"+_e.stripQuotes(t).replace("'","\\'").replace('\\"','"')+"'";default:return _e.Debug.assertNever(n.quotePreference)}}function x(e){return!!e||void 0}function C(e){return e&&T(e)?_e.stripQuotes(e.moduleSymbol.name):void 0}function R(e,n,t,r,a,i,o,s,c,l,u,d,p){for(var m=_e.timestamp(),f=_e.createMap(),_=0,g=e;_<g.length;_++){var v=g[_],y=p?p[_e.getSymbolId(v)]:void 0,h=E(v,t,r,a,i,s,y,d,l,u,c);if(h){var b=h.name;f.has(b)||(y||void 0===v.parent&&!_e.some(v.declarations,function(e){return e.getSourceFile()===t.getSourceFile()})||f.set(b,!0),n.push(h))}}return o("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(_e.timestamp()-m)),f}function D(e,n,t,r,a,i){var o,s,c,l,u,d,p,m=n.parent;switch(m.kind){case 180:switch(m.parent.kind){case 162:return{kind:2,types:L(r.getTypeArgumentConstraint(m)),isNewIdentifier:!1};case 178:return A(r.getTypeFromTypeNode(m.parent.objectType));case 181:return{kind:0,paths:b.PathCompletions.getStringLiteralCompletionsFromModuleNames(e,n,a,i,r)};case 171:if(!_e.isTypeReferenceNode(m.parent.parent))return;var f=(d=m.parent,p=m,_e.mapDefined(d.types,function(e){return e!==p&&_e.isLiteralTypeNode(e)&&_e.isStringLiteral(e.literal)?e.literal.text:void 0}));return{kind:2,types:L(r.getTypeArgumentConstraint(m.parent)).filter(function(e){return!_e.contains(f,e.value)}),isNewIdentifier:!1};default:return}case 273:return _e.isObjectLiteralExpression(m.parent)&&m.name===n?A(r.getContextualType(m.parent)):h();case 188:var _=m,g=_.expression,v=_.argumentExpression;return n===v?A(r.getTypeAtLocation(g)):void 0;case 189:case 190:if(!_e.isRequireCall(m,!1)&&!_e.isImportCall(m)){var y=_e.SignatureHelp.getArgumentInfoForCompletions(n,t,e);return y?(o=y,s=r,c=!1,l=_e.createMap(),u=[],s.getResolvedSignature(o.invocation,u,o.argumentCount),{kind:2,types:_e.flatMap(u,function(e){if(e.hasRestParameter||!(o.argumentCount>e.parameters.length)){var n=s.getParameterType(e,o.argumentIndex);return c=c||!!(4&n.flags),L(n,l)}}),isNewIdentifier:c}):h()}case 247:case 253:case 257:return{kind:0,paths:b.PathCompletions.getStringLiteralCompletionsFromModuleNames(e,n,a,i,r)};default:return h()}function h(){return{kind:2,types:L(ae(n,r)),isNewIdentifier:!1}}}function A(e){return e&&{kind:1,symbols:e.getApparentProperties(),hasIndexSignature:me(e)}}function L(e,n){return void 0===n&&(n=_e.createMap()),e?(e=_e.skipConstraint(e)).isUnion()?_e.flatMap(e.types,function(e){return L(e,n)}):!e.isStringLiteral()||512&e.flags||!_e.addToSeen(n,e.value)?_e.emptyArray:[e]:_e.emptyArray}function k(e,n,t,r,a){var i=e.getCompilerOptions(),o=_(e,n,t,w(t,i),r,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},a);if(!o)return{type:"none"};if(0!==o.kind)return{type:"request",request:o};var s=o.symbols,c=o.literals,l=o.location,u=o.completionKind,d=o.symbolToOriginInfoMap,p=o.previousToken,m=o.isJsxInitializer,f=_e.find(c,function(e){return P(e)===a.name});return void 0!==f?{type:"literal",literal:f}:_e.firstDefined(s,function(e){var n=d[_e.getSymbolId(e)],t=O(e,i.target,n,u);return t&&t.name===a.name&&C(n)===a.source?{type:"symbol",symbol:e,location:l,symbolToOriginInfoMap:d,previousToken:p,isJsxInitializer:m}:void 0})||{type:"none"}}function re(e,n,t){return n&&T(n)&&n.isDefaultExport&&"default"===e.escapedName?_e.firstDefined(e.declarations,function(e){return _e.isExportAssignment(e)&&_e.isIdentifier(e.expression)?e.expression.text:void 0})||_e.codefix.moduleSymbolToValidIdentifier(n.moduleSymbol,t):e.name}function N(e,n,t){return M(e,"",n,[_e.displayPart(e,t)])}function I(n,e,t,r,a,i,o){var s=e.runWithCancellationToken(a,function(e){return _e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(e,n,t,r,r,7)}),c=s.displayParts,l=s.documentation,u=s.symbolKind,d=s.tags;return M(n.name,_e.SymbolDisplay.getSymbolModifiers(n),u,c,l,d,i,o)}function M(e,n,t,r,a,i,o,s){return{name:e,kindModifiers:n,kind:t,displayParts:r,documentation:a,tags:i,codeActions:o,source:s}}function ae(e,n){var t=e.parent;switch(t.kind){case 190:return n.getContextualType(t);case 202:var r=t,a=r.left,i=r.operatorToken,o=r.right;return ue(i.kind)?n.getTypeAtLocation(e===o?a:o):n.getContextualType(e);case 269:return t.expression===e?ie(t,n):void 0;default:return n.getContextualType(e)}}function ie(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}function oe(e,n,t){var r=t.getAccessibleSymbolChain(e,n,67108863,!1);return r?_e.first(r):e.parent&&(e.parent.declarations.some(function(e){return 277===e.kind})?e:oe(e.parent,n,t))}function _(d,e,m,p,f,_,g){var v=d.getTypeChecker(),n=_e.timestamp(),t=_e.getTokenAtPosition(m,f);e("getCompletionData: Get current token: "+(_e.timestamp()-n)),n=_e.timestamp();var r=_e.isInComment(m,f,t);e("getCompletionData: Is inside comment: "+(_e.timestamp()-n));var a,i,o,y=!1,h=!1;if(r){if(_e.hasDocComment(m,f)){if(64===m.text.charCodeAt(f-1))return{kind:1};var s=_e.getLineStartPositionForPosition(f,m);if(!m.text.substring(s,f).match(/[^\*|\s|(/\*\*)]/))return{kind:2}}var c=(a=t,i=f,(o=_e.findAncestor(a,_e.isJSDoc))&&o.tags&&(_e.rangeContainsPosition(o,i)?_e.findLast(o.tags,function(e){return e.pos<i}):void 0));if(c){if(c.tagName.pos<=f&&f<=c.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 297:case 303:case 298:case 300:case 302:return!0;default:return!1}}(c)&&c.typeExpression&&281===c.typeExpression.kind&&((t=_e.getTokenAtPosition(m,f))&&(_e.isDeclarationName(t)||303===t.parent.kind&&t.parent.name===t)||(y=te(c.typeExpression))),_e.isJSDocParameterTag(c)&&(_e.nodeIsMissing(c.name)||c.name.pos<=f&&f<=c.name.end))return{kind:3,tag:c}}if(!y)return void e("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}n=_e.timestamp();var b=_e.findPrecedingToken(f,m,void 0);e("getCompletionData: Get previous token 1: "+(_e.timestamp()-n));var E=b;if(E&&f<=E.end&&(_e.isIdentifier(E)||_e.isKeyword(E.kind))){var l=_e.timestamp();E=_e.findPrecedingToken(E.getFullStart(),m,void 0),e("getCompletionData: Get previous token 2: "+(_e.timestamp()-l))}var u,T,S,x,C,D=t,A=!1,L=!1,k=!1,N=!1,I=_e.getTouchingPropertyName(m,f);if(E){if(T=E,S=_e.timestamp(),C=T,x=(_e.isRegularExpressionLiteral(C)||_e.isStringTextContainingNode(C))&&(_e.rangeContainsPositionExclusive(_e.createTextRangeFromSpan(_e.createTextSpanFromNode(C)),f)||f===C.end&&(!!C.isUnterminated||_e.isRegularExpressionLiteral(C)))||function(e){var n=e.parent,t=n.kind;switch(e.kind){case 26:return 235===t||236===t||217===t||241===t||ne(t)||239===t||183===t||240===t||_e.isClassLike(n)&&!!n.typeParameters&&n.typeParameters.end>=e.pos;case 23:return 183===t;case 56:return 184===t;case 21:return 183===t;case 19:return 272===t||ne(t);case 17:return 241===t;case 27:return 238===t||207===t||239===t||240===t||_e.isFunctionLikeKind(t);case 115:return 152===t&&!_e.isClassLike(n.parent);case 24:return 149===t||!!n.parent&&183===n.parent.kind;case 114:case 112:case 113:return 149===t&&!_e.isConstructorDeclaration(n.parent);case 118:return 251===t||255===t||249===t;case 125:case 136:return!pe(e);case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 139:return!0;case 39:return _e.isFunctionLike(e.parent)&&!_e.isMethodDeclaration(e.parent)}if(ce(le(e))&&pe(e))return!1;if(ee(e)&&(!_e.isIdentifier(e)||_e.isParameterPropertyModifier(le(e))||te(e)))return!1;switch(le(e)){case 117:case 120:case 75:case 76:case 124:case 83:case 89:case 109:case 110:case 112:case 113:case 114:case 115:case 104:case 116:return!0}return _e.isDeclarationName(e)&&!_e.isJsxAttribute(e.parent)&&!(_e.isClassLike(e.parent)&&(e!==b||f>b.end))}(T)||function(e){if(8!==e.kind)return!1;var n=e.getFullText();return"."===n.charAt(n.length-1)}(T)||function(e){if(10===e.kind)return!0;if(29===e.kind&&e.parent){if(260===e.parent.kind)return!0;if(261===e.parent.kind||259===e.parent.kind)return!!e.parent.parent&&258===e.parent.parent.kind}return!1}(T),e("getCompletionsAtPosition: isCompletionListBlocker: "+(_e.timestamp()-S)),x)return void e("Returning an empty list because completion was requested in an invalid position.");var M=E.parent;if(23===E.kind)switch(A=!0,M.kind){case 187:D=(u=M).expression;break;case 146:D=M.left;break;case 242:D=M.name;break;case 181:case 212:D=M;break;default:return}else if(1===m.languageVariant){if(M&&187===M.kind&&(M=(E=M).parent),t.parent===I)switch(t.kind){case 29:258!==t.parent.kind&&260!==t.parent.kind||(I=t);break;case 41:259===t.parent.kind&&(I=t)}switch(M.kind){case 261:41===E.kind&&(k=!0,I=E);break;case 202:if(!fe(M))break;case 259:case 258:case 260:27===E.kind&&(L=!0,I=E);break;case 265:switch(b.kind){case 58:N=!0;break;case 71:M!==b.parent&&!M.initializer&&_e.findChildOfKind(M,58,m)&&(N=b)}}}}var O=_e.timestamp(),w=5,P=!1,R=0,F=[],G=[];if(A)!function(){w=2;var n=_e.isLiteralImportTypeNode(D),e=y||n&&!D.isTypeOf||_e.isPartOfTypeNode(D.parent),t=_e.isInRightSideOfInternalImportEqualsDeclaration(D)||!e&&_e.isPossiblyTypeArgumentPosition(E,m,v);if(_e.isEntityName(D)||n){var r=_e.isModuleDeclaration(D.parent);r&&(P=!0);var a=v.getSymbolAtLocation(D);if(a&&1920&(a=_e.skipAlias(a,v)).flags){for(var i=_e.Debug.assertEachDefined(v.getExportsOfModule(a),"getExportsOfModule() should all be defined"),o=function(e){return v.isValidPropertyAccess(n?D:D.parent,e.name)},s=function(e){return Z(e)},c=r?function(e){return!!(1920&e.flags)&&!e.declarations.every(function(e){return e.parent===D.parent})}:t?function(e){return s(e)||o(e)}:e?s:o,l=0,u=i;l<u.length;l++){var d=u[l];c(d)&&F.push(d)}return!e&&a.declarations.some(function(e){return 277!==e.kind&&242!==e.kind&&241!==e.kind})&&J(v.getTypeOfSymbolAtLocation(a,D))}}if(_e.isMetaProperty(D)&&(94===D.keywordToken||91===D.keywordToken)){var p=94===D.keywordToken?"target":"meta";return F.push(v.createSymbol(4,_e.escapeLeadingUnderscores(p)))}e||J(v.getTypeAtLocation(D))}();else if(L){var V=_e.Debug.assertEachDefined(v.getJsxIntrinsicTagNamesAt(I),"getJsxIntrinsicTagNames() should all be defined");Y(),F=V.concat(F),w=3,R=0}else if(k){var B=E.parent.parent.openingElement.tagName,K=v.getSymbolAtLocation(B);K&&(F=[K]),w=3,R=0}else if(!Y())return;e("getCompletionData: Semantic work: "+(_e.timestamp()-O));var j,H,U,W=b&&function(e,n,t,r){var a=e.parent;switch(e.kind){case 71:return ae(e,r);case 58:switch(a.kind){case 235:return r.getContextualType(a.initializer);case 202:return r.getTypeAtLocation(a.left);case 265:return r.getContextualTypeForJsxAttribute(a);default:return}case 94:return r.getContextualType(a);case 73:return ie(_e.cast(a,_e.isCaseClause),r);case 17:return _e.isJsxExpression(a)&&258!==a.parent.kind?r.getContextualTypeForJsxAttribute(a.parent):void 0;default:var i=_e.SignatureHelp.getArgumentInfoForCompletions(e,n,t);return i?r.getContextualTypeForArgumentAtIndex(i.invocation,i.argumentIndex+(26===e.kind?1:0)):ue(e.kind)&&_e.isBinaryExpression(a)&&ue(a.operatorToken.kind)?r.getTypeAtLocation(a.left):r.getContextualType(e)}}(b,f,m,v),q=_e.mapDefined(W&&(W.isUnion()?W.types:[W]),function(e){return e.isLiteral()?e.value:void 0}),z=b&&W&&(j=b,H=W,U=v,_e.firstDefined(H&&(H.isUnion()?H.types:[H]),function(e){var n=e&&e.symbol;return n&&424&n.flags&&!_e.isAbstractConstructorSymbol(n)?oe(n,j,U):void 0}));return{kind:0,symbols:F,completionKind:w,isInSnippetScope:h,propertyAccessToConvert:u,isNewIdentifierLocation:P,location:I,keywordFilters:R,literals:q,symbolToOriginInfoMap:G,recommendedCompletion:z,previousToken:b,isJsxInitializer:N};function J(e){if(P=!!e.getStringIndexType(),p)F.push.apply(F,de(e,v));else for(var n=0,t=e.getApparentProperties();n<t.length;n++){var r=t[n];v.isValidPropertyAccessForCompletions(181===D.kind?D:D.parent,e,r)&&X(r)}}function X(e){var n=_e.firstDefined(e.declarations,function(e){return _e.tryCast(_e.getNameOfDeclaration(e),_e.isComputedPropertyName)});if(n){var t=function e(n){return _e.isIdentifier(n)?n:_e.isPropertyAccessExpression(n)?e(n.expression):void 0}(n.expression),r=t&&v.getSymbolAtLocation(t),a=r&&oe(r,E,v);if(a&&!G[_e.getSymbolId(a)]){F.push(a);var i=a.parent;G[_e.getSymbolId(a)]=i&&_e.isExternalModuleSymbol(i)?{kind:2,moduleSymbol:i,isDefaultExport:!1}:{kind:1}}}else F.push(e)}function Y(){var e,n;return 1===(function(){var e,n,t=function(e){if(e){var n=e.parent;switch(e.kind){case 17:case 26:if(_e.isObjectLiteralExpression(n)||_e.isObjectBindingPattern(n))return n;break;case 39:return _e.isMethodDeclaration(n)?_e.tryCast(n.parent,_e.isObjectLiteralExpression):void 0}}return}(E);if(!t)return 0;if(w=0,186===t.kind){var r=v.getContextualType(t);if(!r)return 2;P=me(r),s=t,c=v,e=(o=r).isUnion()?c.getAllPossiblePropertiesOfTypes(o.types.filter(function(e){return!(32764&e.flags||c.isArrayLikeType(e)||_e.typeHasCallOrConstructSignatures(e,c)||c.isTypeInvalidDueToUnionDiscriminant(e,s))})):o.getApparentProperties(),n=t.properties}else{_e.Debug.assert(182===t.kind),P=!1;var a=_e.getRootDeclaration(t.parent);if(!_e.isVariableLike(a))return _e.Debug.fail("Root declaration is not variable-like.");var i=_e.hasInitializer(a)||_e.hasType(a)||225===a.parent.parent.kind;if(i||149!==a.kind||(_e.isExpression(a.parent)?i=!!v.getContextualType(a.parent):154!==a.parent.kind&&157!==a.parent.kind||(i=_e.isExpression(a.parent.parent)&&!!v.getContextualType(a.parent.parent))),i){var r=v.getTypeAtLocation(t);if(!r)return 2;e=v.getPropertiesOfType(r).filter(function(e){return!(24&_e.getDeclarationModifierFlagsFromSymbol(e))}),n=t.elements}}var o,s,c;e&&0<e.length&&(F=function(e,n){if(0===n.length)return e;for(var t=_e.createUnderscoreEscapedMap(),r=0,a=n;r<a.length;r++){var i=a[r];if((273===i.kind||274===i.kind||184===i.kind||154===i.kind||156===i.kind||157===i.kind)&&!te(i)){var o=void 0;if(_e.isBindingElement(i)&&i.propertyName)71===i.propertyName.kind&&(o=i.propertyName.escapedText);else{var s=_e.getNameOfDeclaration(i);o=s&&_e.isPropertyNameLiteral(s)?_e.getEscapedTextOfIdentifierOrLiteral(s):void 0}t.set(o,!0)}}return e.filter(function(e){return!t.get(e.escapedName)})}(e,_e.Debug.assertDefined(n)));return 1}()||function(){var e=!E||17!==E.kind&&26!==E.kind?void 0:_e.tryCast(E.parent,_e.isNamedImportsOrExports);if(!e)return 0;var n=(250===e.kind?e.parent.parent:e.parent).moduleSpecifier,t=v.getSymbolAtLocation(n);if(!t)return 2;w=3,P=!1;var r=v.getExportsAndPropertiesOfModule(t),a=_e.arrayToSet(e.elements,function(e){return te(e)?void 0:(e.propertyName||e.name).escapedText});return F=r.filter(function(e){return"default"!==e.escapedName&&!a.get(e.escapedName)}),1}()||(function(e){if(e){var n=e.parent;switch(e.kind){case 19:case 26:return _e.isConstructorDeclaration(e.parent)?e.parent:void 0;default:if(ee(e))return n.parent}}}(E)?(w=5,P=!0,R=4,1):0)||function(){var t=function(e,n,t){switch(t.kind){case 304:return _e.tryCast(t.parent,_e.isObjectTypeDeclaration);case 1:var r=_e.tryCast(_e.lastOrUndefined(_e.cast(t.parent,_e.isSourceFile).statements),_e.isObjectTypeDeclaration);if(r&&!_e.findChildOfKind(r,18,e))return r}if(!n)return;switch(n.kind){case 25:case 18:return pe(t)&&t.parent.name===t?t.parent.parent:_e.tryCast(t,_e.isObjectTypeDeclaration);case 17:case 26:return _e.tryCast(n.parent,_e.isObjectTypeDeclaration);default:if(!pe(n))return;var a=_e.isClassLike(n.parent.parent)?ce:se;return a(n.kind)||39===n.kind||_e.isIdentifier(n)&&a(_e.stringToToken(n.text))?n.parent.parent:void 0}}(m,E,I);if(!t)return 0;if(w=3,P=!0,R=39===E.kind?0:_e.isClassLike(t)?2:3,!_e.isClassLike(t))return 1;var e=E.parent,r=_e.isClassElement(e)?_e.getModifierFlags(e):0;if(71===E.kind&&!te(E))switch(E.getText()){case"private":r|=8;break;case"static":r|=32}if(!(8&r)){var n=_e.flatMap(_e.getAllSuperTypeNodes(t),function(e){var n=v.getTypeAtLocation(e);return n&&v.getPropertiesOfType(32&r?v.getTypeOfSymbolAtLocation(n.symbol,t):n)});F=function(e,n,t){for(var r=_e.createUnderscoreEscapedMap(),a=0,i=n;a<i.length;a++){var o=i[a];if((152===o.kind||154===o.kind||156===o.kind||157===o.kind)&&(!te(o)&&!_e.hasModifier(o,8)&&_e.hasModifier(o,32)===!!(32&t))){var s=_e.getPropertyNameForPropertyNameNode(o.name);s&&r.set(s,!0)}}return e.filter(function(e){return!(r.has(e.escapedName)||!e.declarations||8&_e.getDeclarationModifierFlagsFromSymbol(e))})}(n,t.members,r)}return 1}()||(e=function(e){if(e){var n=e.parent;switch(e.kind){case 28:case 41:case 71:case 187:case 266:case 265:case 267:if(n&&(259===n.kind||260===n.kind))return n;if(265===n.kind)return n.parent.parent;break;case 9:if(n&&(265===n.kind||267===n.kind))return n.parent.parent;break;case 18:if(n&&268===n.kind&&n.parent&&265===n.parent.kind)return n.parent.parent.parent;if(n&&267===n.kind)return n.parent.parent}}return}(E),(n=e&&v.getAllAttributesTypeFromJsxOpeningLikeElement(e))?(F=function(e,n){for(var t=_e.createUnderscoreEscapedMap(),r=0,a=n;r<a.length;r++){var i=a[r];te(i)||265===i.kind&&t.set(i.name.escapedText,!0)}return e.filter(function(e){return!t.get(e.escapedName)})}(v.getPropertiesOfType(n),e.attributes.properties),P=!(w=3),1):0)||(function(){R=function(e){if(e){var n,t=_e.findAncestor(e.parent,function(e){return _e.isClassLike(e)?"quit":!(!_e.isFunctionLikeDeclaration(e)||n!==e.body)||(n=e,!1)});return t&&t}}(E)?5:1,w=1,P=function(e){if(e){var n=e.parent.kind;switch(le(e)){case 26:return 189===n||155===n||190===n||185===n||202===n||163===n;case 19:return 189===n||155===n||190===n||193===n||175===n;case 21:return 185===n||160===n||147===n;case 129:case 130:return!0;case 23:return 242===n;case 17:return 238===n;case 58:return 235===n||202===n;case 14:return 204===n;case 15:return 214===n;case 114:case 112:case 113:return 152===n}}return!1}(E),b!==E&&_e.Debug.assert(!!b,"Expected 'contextToken' to be defined when different from 'previousToken'.");var e=b!==E?b.getStart():f,n=function(e,n,t){var r=e;for(;r&&!_e.positionBelongsToNode(r,n,t);)r=r.parent;return r}(E,e,m)||m;h=function(e){switch(e.kind){case 277:case 204:case 268:case 216:return!0;default:return _e.isStatement(e)}}(n);if(F=_e.Debug.assertEachDefined(v.getSymbolsInScope(n,70107135),"getSymbolsInScope() should all be defined"),_.includeCompletionsWithInsertText&&277!==n.kind){var t=v.tryGetThisTypeAt(n);if(t)for(var r=0,a=de(t,v);r<a.length;r++){var i=a[r];G[_e.getSymbolId(i)]={kind:0},F.push(i)}}_.includeCompletionsForModuleExports&&(m.externalModuleIndicator||!m.commonJsModuleIndicator&&!p&&(_e.programContainsEs6Modules(d)||_e.compilerOptionsIndicateEs6Modules(d.getCompilerOptions())))&&(s=F,o=b&&_e.isIdentifier(b)?b.text:"",c=d.getCompilerOptions().target,l=o.toLowerCase(),u=_e.createMap(),_e.codefix.forEachExternalModuleToImportFrom(v,m,d.getSourceFiles(),function(e){if(!g||!g.source||_e.stripQuotes(e.name)===g.source){var n=v.resolveExternalModuleSymbol(e);if(_e.addToSeen(u,_e.getSymbolId(n))){n!==e&&_e.some(n.declarations,function(e){return!!e.getSourceFile().externalModuleIndicator})&&(s.push(n),G[_e.getSymbolId(n)]={kind:3,moduleSymbol:e,isDefaultExport:!1});for(var t=0,r=v.getExportsOfModule(e);t<r.length;t++){var a=r[t];if(v.getMergedSymbol(a.parent)===n&&!_e.some(a.declarations,function(e){return _e.isExportSpecifier(e)&&!!e.parent.parent.moduleSpecifier})){var i="default"===a.name;i&&(a=_e.getLocalSymbolForExportDefault(a)||a);var o={kind:3,moduleSymbol:e,isDefaultExport:i};(g||$(re(a,o,c).toLowerCase(),l))&&(s.push(a),G[_e.getSymbolId(a)]=o)}}}}}));var s,o,c,l,u;!function(e){var t=y||!Q(E)&&(_e.isPartOfTypeNode(I)||function(e){if(e){var n=e.parent.kind;switch(e.kind){case 56:return 152===n||151===n||149===n||235===n||_e.isFunctionLikeKind(n);case 58:return 240===n;case 118:return 210===n}}return!1}(E)),r=t||!Q(E)&&_e.isPossiblyTypeArgumentPosition(E,m,v);t&&(R=6);_e.filterMutate(e,function(e){if(!_e.isSourceFile(I)){if(_e.isExportAssignment(I.parent))return!0;if(e=_e.skipAlias(e,v),_e.isInRightSideOfInternalImportEqualsDeclaration(I))return!!(1920&e.flags);if(r){var n=Z(e);if(n||t)return n}}return!!(67220415&_e.getCombinedLocalAndExportSymbolFlags(e))})}(F)}(),1))}function Q(e){return e&&103===e.kind&&(165===e.parent.kind||_e.isTypeOfExpression(e.parent))}function Z(e){return e=e.exportSymbol||e,!!(67897832&(e=_e.skipAlias(e,v)).flags)||!!(1536&e.flags)&&v.getExportsOfModule(e).some(Z)}function $(e,n){if(0===n.length)return!0;for(var t=0,r=0;r<e.length;r++)if(e.charCodeAt(r)===n.charCodeAt(t)&&++t===n.length)return!0;return!1}function ee(e){return!!e.parent&&_e.isParameter(e.parent)&&_e.isConstructorDeclaration(e.parent.parent)&&(_e.isParameterPropertyModifier(e.kind)||_e.isDeclarationName(e))}function ne(e){return _e.isFunctionLikeKind(e)&&155!==e}function te(e){return e.getStart(m)<=f&&f<=e.getEnd()}}function O(e,n,t,r){var a=re(e,t,n);if(!(void 0===a||1536&e.flags&&_e.startsWithQuote(a)||_e.isKnownSymbol(e))){var i={name:a,needsConvertPropertyAccess:!1};if(_e.isIdentifierText(a,n))return i;switch(r){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 i;default:_e.Debug.assertNever(r)}}}(s=o||(o={}))[s.Paths=0]="Paths",s[s.Properties=1]="Properties",s[s.Types=2]="Types",b.getCompletionEntryDetails=function(e,n,t,r,a,i,o,s,c){var l=e.getTypeChecker(),u=e.getCompilerOptions(),d=a.name,p=_e.findPrecedingToken(r,t);if(_e.isInString(t,r,p)){var m=p&&_e.isStringLiteralLike(p)?D(t,p,r,l,u,i):void 0;return m&&function(n,e,t,r,a,i){switch(t.kind){case 0:var o=_e.find(t.paths,function(e){return e.name===n});return o&&M(n,"",o.kind,[_e.textPart(n)]);case 1:var o=_e.find(t.symbols,function(e){return e.name===n});return o&&I(o,a,r,e,i);case 2:return _e.find(t.types,function(e){return e.value===n})?M(n,"","type",[_e.textPart(n)]):void 0;default:return _e.Debug.assertNever(t)}}(d,p,m,t,l,c)}var f=k(e,n,t,r,a);switch(f.type){case"request":var _=f.request;switch(_.kind){case 1:return _e.JsDoc.getJSDocTagNameCompletionDetails(d);case 2:return _e.JsDoc.getJSDocTagCompletionDetails(d);case 3:return _e.JsDoc.getJSDocParameterNameCompletionDetails(d);default:return _e.Debug.assertNever(_)}case"symbol":var g=f.symbol,v=f.location,y=function(e,n,t,r,a,i,o,s,c,l,u){var d=e[_e.getSymbolId(n)];if(!d||!T(d))return{codeActions:void 0,sourceDisplay:void 0};var p=d.moduleSymbol,m=r.getMergedSymbol(_e.skipAlias(n.exportSymbol||n,r)),f=_e.codefix.getImportCompletionAction(m,p,o,re(n,d,i.target),a,t,l,c&&_e.isIdentifier(c)?c.getStart(o):s,u),_=f.moduleSpecifier,g=f.codeAction;return{sourceDisplay:[_e.textPart(_)],codeActions:[g]}}(f.symbolToOriginInfoMap,g,e,l,i,u,t,r,f.previousToken,o,s);return I(g,l,t,v,c,y.codeActions,y.sourceDisplay);case"literal":var h=f.literal;return N(P(h),"string","string"==typeof h?_e.SymbolDisplayPartKind.stringLiteral:_e.SymbolDisplayPartKind.numericLiteral);case"none":return G().some(function(e){return e.name===d})?N(d,"keyword",_e.SymbolDisplayPartKind.keyword):void 0;default:_e.Debug.assertNever(f)}},b.getCompletionEntrySymbol=function(e,n,t,r,a){var i=k(e,n,t,r,a);return"symbol"===i.type?i.symbol:void 0},(l=c||(c={}))[l.Data=0]="Data",l[l.JsDocTagName=1]="JsDocTagName",l[l.JsDocTag=2]="JsDocTag",l[l.JsDocParameterName=3]="JsDocParameterName",(d=u||(u={}))[d.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",d[d.Global=1]="Global",d[d.PropertyAccess=2]="PropertyAccess",d[d.MemberLike=3]="MemberLike",d[d.String=4]="String",d[d.None=5]="None";var F=[],G=_e.memoize(function(){for(var e=[],n=72;n<=145;n++)e.push({name:_e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:"0"});return e});function se(e){return 132===e}function ce(e){switch(e){case 117:case 123:case 125:case 136:case 120:return!0;default:return _e.isClassMemberModifier(e)}}function le(e){return _e.isIdentifier(e)?e.originalKeywordKind||0:e.kind}function ue(e){switch(e){case 34:case 32:case 35:case 33:return!0;default:return!1}}function de(e,n){return e.isUnion()?_e.Debug.assertEachDefined(n.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):_e.Debug.assertEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function pe(e){return e.parent&&_e.isClassOrTypeElement(e.parent)&&_e.isObjectTypeDeclaration(e.parent.parent)}function me(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function fe(e){var n=e.left;return _e.nodeIsMissing(n)}}(_e.Completions||(_e.Completions={}))}(ts||(ts={})),function(b){!function(e){function u(e,n){return{fileName:n.fileName,textSpan:b.createTextSpanFromNode(e,n),kind:"none"}}function a(e){return b.isThrowStatement(e)?[e]:b.isTryStatement(e)?b.concatenate(e.catchClause?a(e.catchClause):e.tryBlock&&a(e.tryBlock),e.finallyBlock&&a(e.finallyBlock)):b.isFunctionLike(e)?void 0:n(e,a)}function i(e){return b.isBreakOrContinueStatement(e)?[e]:b.isFunctionLike(e)?void 0:n(e,i)}function n(e,t){var r=[];return e.forEachChild(function(e){var n=t(e);void 0!==n&&r.push.apply(r,b.toArray(n))}),r}function o(e,n){var t=r(n);return!!t&&t===e}function r(r){return b.findAncestor(r,function(e){switch(e.kind){case 230:if(226===r.kind)return!1;case 223:case 224:case 225:case 222:case 221:return!r.label||(n=e,t=r.label.escapedText,!!b.findAncestor(n.parent,function(e){return b.isLabeledStatement(e)?e.label.escapedText===t:"quit"}));default:return b.isFunctionLike(e)&&"quit"}var n,t})}function d(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return!(!n||!b.contains(t,n.kind))&&(e.push(n),!0)}function p(n){var t=[];if(d(t,n.getFirstToken(),88,106,81)&&221===n.kind)for(var e=n.getChildren(),r=e.length-1;0<=r&&!d(t,e[r],106);r--);return b.forEach(i(n.statement),function(e){o(n,e)&&d(t,e.getFirstToken(),72,77)}),t}function m(e){var n=r(e);if(n)switch(n.kind){case 223:case 224:case 225:case 221:case 222:return p(n);case 230:return f(n)}}function f(n){var t=[];return d(t,n.getFirstToken(),98),b.forEach(n.caseBlock.clauses,function(e){d(t,e.getFirstToken(),73,79),b.forEach(i(e),function(e){o(n,e)&&d(t,e.getFirstToken(),72)})}),t}function _(e,n){var t=[];(d(t,e.getFirstToken(),102),e.catchClause&&d(t,e.catchClause.getFirstToken(),74),e.finallyBlock)&&d(t,b.findChildOfKind(e,87,n),87);return t}function g(e,n){var t=function(e){for(var n=e;n.parent;){var t=n.parent;if(b.isFunctionBlock(t)||277===t.kind)return t;if(b.isTryStatement(t)&&t.tryBlock===n&&t.catchClause)return n;n=t}}(e);if(t){var r=[];return b.forEach(a(t),function(e){r.push(b.findChildOfKind(e,100,n))}),b.isFunctionBlock(t)&&b.forEachReturnStatement(t,function(e){r.push(b.findChildOfKind(e,96,n))}),r}}function v(e,n){var t=b.getContainingFunction(e);if(t){var r=[];return b.forEachReturnStatement(b.cast(t.body,b.isBlock),function(e){r.push(b.findChildOfKind(e,96,n))}),b.forEach(a(t.body),function(e){r.push(b.findChildOfKind(e,100,n))}),r}}function y(e){var n=b.getContainingFunction(e);if(n){var t=[];return n.modifiers&&n.modifiers.forEach(function(e){d(t,e,120)}),b.forEachChild(n,function(e){h(e,function(e){b.isAwaitExpression(e)&&d(t,e.getFirstToken(),121)})}),t}}function h(e,n){n(e),b.isFunctionLike(e)||b.isClassLike(e)||b.isInterfaceDeclaration(e)||b.isModuleDeclaration(e)||b.isTypeAliasDeclaration(e)||b.isTypeNode(e)||b.forEachChild(e,function(e){return h(e,n)})}(b.DocumentHighlights||(b.DocumentHighlights={})).getDocumentHighlights=function(e,n,t,r,a){var i,o,s=b.getTouchingPropertyName(t,r);if(s.parent&&(b.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||b.isJsxClosingElement(s.parent))){var c=s.parent.parent,l=[c.openingElement,c.closingElement].map(function(e){return u(e.tagName,t)});return[{fileName:t.fileName,highlightSpans:l}]}return function(e,n,i,t,o){var s=b.arrayToSet(o,function(e){return e.fileName}),r=b.FindAllReferences.getReferenceEntriesForNode(e,n,i,o,t,void 0,s);if(r){var a=b.arrayToMultiMap(r.map(b.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return b.arrayFrom(a.entries(),function(e){var n=e[0],t=e[1];if(!s.has(n)){b.Debug.assert(i.redirectTargetsMap.has(n));var r=i.getSourceFile(n),a=b.find(o,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===r});n=a.fileName,b.Debug.assert(s.has(n))}return{fileName:n,highlightSpans:t}})}}(r,s,e,n,a)||(o=function(e,r){switch(e.kind){case 90:case 82:return b.isIfStatement(e.parent)?function(e,n){for(var t=function(e,n){for(var t=[];b.isIfStatement(e.parent)&&e.parent.elseStatement===e;)e=e.parent;for(;;){var r=e.getChildren(n);d(t,r[0],90);for(var a=r.length-1;0<=a&&!d(t,r[a],82);a--);if(!e.elseStatement||!b.isIfStatement(e.elseStatement))break;e=e.elseStatement}return t}(e,n),r=[],a=0;a<t.length;a++){if(82===t[a].kind&&a<t.length-1){for(var i=t[a],o=t[a+1],s=!0,c=o.getStart(n)-1;c>=i.end;c--)if(!b.isWhiteSpaceSingleLine(n.text.charCodeAt(c))){s=!1;break}if(s){r.push({fileName:n.fileName,textSpan:b.createTextSpanFromBounds(i.getStart(),o.end),kind:"reference"}),a++;continue}}r.push(u(t[a],n))}return r}(e.parent,r):void 0;case 96:return o(e.parent,b.isReturnStatement,v);case 100:return o(e.parent,b.isThrowStatement,g);case 102:case 74:case 87:var n=74===e.kind?e.parent.parent:e.parent;return o(n,b.isTryStatement,_);case 98:return o(e.parent,b.isSwitchStatement,f);case 73:case 79:return o(e.parent.parent.parent,b.isSwitchStatement,f);case 72:case 77:return o(e.parent,b.isBreakOrContinueStatement,m);case 88:case 106:case 81:return o(e.parent,function(e){return b.isIterationStatement(e,!0)},p);case 123:return i(b.isConstructorDeclaration,[123]);case 125:case 136:return i(b.isAccessor,[125,136]);case 121:return o(e.parent,b.isAwaitExpression,y);case 120:return s(y(e));case 116:return s(function(e){var n=b.getContainingFunction(e);if(n){var t=[];return b.forEachChild(n,function(e){h(e,function(e){b.isYieldExpression(e)&&d(t,e.getFirstToken(),116)})}),t}}(e));default:return b.isModifierKind(e.kind)&&(b.isDeclaration(e.parent)||b.isVariableStatement(e.parent))?s((t=e.kind,a=e.parent,b.mapDefined(function(e,n){var t=e.parent;switch(t.kind){case 243:case 277:case 216:case 269:case 270:return 128&n&&b.isClassDeclaration(e)?e.members.concat([e]):t.statements;case 155:case 154:case 237:return t.parameters.concat(b.isClassLike(t.parent)?t.parent.members:[]);case 238:case 207:var r=t.members;if(28&n){var a=b.find(t.members,b.isConstructorDeclaration);if(a)return r.concat(a.parameters)}else if(128&n)return r.concat([t]);return r;default:b.Debug.assertNever(t,"Invalid container kind.")}}(a,b.modifierToFlag(t)),function(e){return b.findModifier(e,t)}))):void 0}var t,a;function i(n,t){return o(e.parent,n,function(e){return b.mapDefined(e.symbol.declarations,function(e){return n(e)?b.find(e.getChildren(r),function(e){return b.contains(t,e.kind)}):void 0})})}function o(e,n,t){return n(e)?s(t(e,r)):void 0}function s(e){return e&&e.map(function(e){return u(e,r)})}}(s,i=t))&&[{fileName:i.fileName,highlightSpans:o}]}}()}(ts||(ts={})),function(f){function t(e,i,p){void 0===i&&(i="");var a=f.createMap(),o=f.createGetCanonicalFileName(!!e);function m(e,n){var t=a.get(e);return!t&&n&&a.set(e,t=f.createMap()),t}function s(e,n,t,r,a,i,o){return l(e,n,t,r,a,i,!0,o)}function c(e,n,t,r,a,i,o){return l(e,n,t,r,a,i,!1,o)}function l(e,n,t,r,a,i,o,s){var c=m(r,!0),l=c.get(n),u=6===s?100:t.target||1;!l&&p&&((d=p.getDocument(r,n))&&(f.Debug.assert(o),l={sourceFile:d,languageServiceRefCount:0},c.set(n,l)));if(l)l.sourceFile.version!==i&&(l.sourceFile=f.updateLanguageServiceSourceFile(l.sourceFile,a,i,a.getChangeRange(l.sourceFile.scriptSnapshot)),p&&p.setDocument(r,n,l.sourceFile)),o&&l.languageServiceRefCount++;else{var d=f.createLanguageServiceSourceFile(e,a,u,i,!1,s);p&&p.setDocument(r,n,d),l={sourceFile:d,languageServiceRefCount:1},c.set(n,l)}return f.Debug.assert(0!==l.languageServiceRefCount),l.sourceFile}function t(e,n){var t=m(n,!1);f.Debug.assert(void 0!==t);var r=t.get(e);r.languageServiceRefCount--,f.Debug.assert(0<=r.languageServiceRefCount),0===r.languageServiceRefCount&&t.delete(e)}return{acquireDocument:function(e,n,t,r,a){return s(e,f.toPath(e,i,o),n,u(n),t,r,a)},acquireDocumentWithKey:s,updateDocument:function(e,n,t,r,a){return c(e,f.toPath(e,i,o),n,u(n),t,r,a)},updateDocumentWithKey:c,releaseDocument:function(e,n){return t(f.toPath(e,i,o),u(n))},releaseDocumentWithKey:t,getLanguageServiceRefCounts:function(r){return f.arrayFrom(a.entries(),function(e){var n=e[0],t=e[1].get(r);return[n,t&&t.languageServiceRefCount]})},reportStats:function(){var e=f.arrayFrom(a.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var n=a.get(e),t=[];return n.forEach(function(e,n){t.push({name:n,refCount:e.languageServiceRefCount})}),t.sort(function(e,n){return n.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(e,void 0,2)},getKeyForCompilationSettings:u}}function u(n){return f.sourceFileAffectingCompilerOptions.map(function(e){return f.getCompilerOptionValue(n,e)}).join("|")}f.createDocumentRegistry=function(e,n){return t(e,n)},f.createDocumentRegistryInternal=t}(ts||(ts={})),function(E){!function(e){var n,t;function h(e,n){return E.forEach(277===e.kind?e.statements:e.body.statements,function(e){return n(e)||a(e)&&E.forEach(e.body&&e.body.statements,n)})}function _(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(var n=0,r=e.imports;n<r.length;n++){var a=r[n];t(E.importFromModuleSpecifier(a),a)}else h(e,function(e){switch(e.kind){case 253:case 247:(n=e).moduleSpecifier&&E.isStringLiteral(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break;case 246:var n;g(n=e)&&t(n,n.moduleReference.expression)}})}function r(e,n,t){var r=e.parent;if(r){var a=t.getMergedSymbol(r);return E.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:n}:void 0}}function b(e){if(189===e.kind)return e.getSourceFile();var n=e.parent;return 277===n.kind?n:(E.Debug.assert(243===n.kind),E.cast(n.parent,a))}function a(e){return 242===e.kind&&9===e.name.kind}function g(e){return 257===e.moduleReference.kind&&9===e.moduleReference.expression.kind}e.createImportTracker=function(o,s,c,l){var u=function(e,i,n){for(var o=E.createMap(),t=0,r=e;t<r.length;t++){var a=r[t];n&&n.throwIfCancellationRequested(),_(a,function(e,n){var t=i.getSymbolAtLocation(n);if(t){var r=E.getSymbolId(t).toString(),a=o.get(r);a||o.set(r,a=[]),a.push(e)}})}return o}(o,c,l);return function(e,n,t){var r=function(r,a,n,e,u,d){var i=e.exportingModuleSymbol,p=e.exportKind,m=E.nodeSeenTracker(),t=E.nodeSeenTracker(),f=[],_=!!i.globalExports,o=_?void 0:[];return function e(n){var t,r=y(n);if(r)for(var a=0,i=r;a<i.length;a++){var o=i[a];if(m(o))switch(d&&d.throwIfCancellationRequested(),o.kind){case 189:if(!_){var s=o.parent;if(2===p&&235===s.kind){var c=s.name;if(71===c.kind){f.push(c);break}}v(o.getSourceFile())}break;case 71:break;case 246:g(o,o.name,E.hasModifier(o,1),!1);break;case 247:f.push(o);var l=o.importClause&&o.importClause.namedBindings;l&&249===l.kind?g(o,l.name,!1,!0):!_&&E.isDefaultImport(o)&&v(b(o));break;case 253:o.exportClause?f.push(o):e((t=o,u.getMergedSymbol(b(t).symbol)));break;case 181:f.push(o);break;default:E.Debug.assertNever(o,"Unexpected import kind: "+E.Debug.showSyntaxKind(o))}}}(i),{directImports:f,indirectUsers:function(){if(_)return r;for(var e=0,n=i.declarations;e<n.length;e++){var t=n[e];E.isExternalModuleAugmentation(t)&&a.has(t.getSourceFile().fileName)&&v(t)}return o.map(E.getSourceFileOfNode)}()};function g(e,n,t,r){if(2===p)r||f.push(e);else if(!_){var a=b(e);E.Debug.assert(277===a.kind||242===a.kind),t||(i=a,o=n,c=(s=u).getSymbolAtLocation(o),h(i,function(e){if(E.isExportDeclaration(e)){var n=e.exportClause,t=e.moduleSpecifier;return!t&&n&&n.elements.some(function(e){return s.getExportSpecifierLocalTargetSymbol(e)===c})}}))?function e(n){if(v(n)){var t=u.getMergedSymbol(n.symbol);E.Debug.assert(!!(1536&t.flags));var r=y(t);if(r)for(var a=0,i=r;a<i.length;a++){var o=i[a];e(b(o))}}}(a):v(a)}var i,o,s,c}function v(e){E.Debug.assert(!_);var n=t(e);return n&&o.push(e),n}function y(e){return n.get(E.getSymbolId(e).toString())}}(o,s,u,n,c,l),a=r.directImports,i=r.indirectUsers;return __assign({indirectUsers:i},function(e,s,i,c,l){var t=[],u=[];function d(e,n){t.push([e,n])}if(e)for(var n=0,r=e;n<r.length;n++){var a=r[n];o(a)}return{importSearches:t,singleReferences:u};function o(e){if(246!==e.kind)if(71!==e.kind)if(181!==e.kind){if(9===e.moduleSpecifier.kind)if(253!==e.kind){var n=e.importClause||{name:void 0,namedBindings:void 0},t=n.name,r=n.namedBindings;if(r)switch(r.kind){case 249:p(r.name);break;case 250:0!==i&&1!==i||m(r);break;default:E.Debug.assertNever(r)}if(t&&(1===i||2===i)&&(!l||t.escapedText===E.symbolEscapedNameNoDefault(s))){var a=c.getSymbolAtLocation(t);d(t,a)}}else m(e.exportClause)}else e.qualifier?E.isIdentifier(e.qualifier)&&e.qualifier.escapedText===E.symbolName(s)&&u.push(e.qualifier):2===i&&u.push(e.argument.literal);else p(e);else g(e)&&p(e.name)}function p(e){2!==i||l&&!f(e.escapedText)||d(e,c.getSymbolAtLocation(e))}function m(e){if(e)for(var n=0,t=e.elements;n<t.length;n++){var r=t[n],a=r.name,i=r.propertyName;if(f((i||a).escapedText))if(i)u.push(i),l&&a.escapedText!==s.escapedName||d(a,c.getSymbolAtLocation(a));else{var o=255===r.kind&&r.propertyName?c.getExportSpecifierLocalTargetSymbol(r):c.getSymbolAtLocation(a);d(a,o)}}}function f(e){return e===s.escapedName||0!==i&&"default"===e}}(a,e,n.exportKind,c,t))}},(n=e.ExportKind||(e.ExportKind={}))[n.Named=0]="Named",n[n.Default=1]="Default",n[n.ExportEquals=2]="ExportEquals",(t=e.ImportExport||(e.ImportExport={}))[t.Import=0]="Import",t[t.Export=1]="Export",e.findModuleReferences=function(e,n,t){for(var r=[],a=e.getTypeChecker(),i=0,o=n;i<o.length;i++){var s=o[i],c=t.valueDeclaration;if(277===c.kind){for(var l=0,u=s.referencedFiles;l<u.length;l++){var d=u[l];e.getSourceFileFromReference(s,d)===c&&r.push({kind:"reference",referencingFile:s,ref:d})}for(var p=0,m=s.typeReferenceDirectives;p<m.length;p++){d=m[p];var f=e.getResolvedTypeReferenceDirectives().get(d.fileName);void 0!==f&&f.resolvedFileName===c.fileName&&r.push({kind:"reference",referencingFile:s,ref:d})}}_(s,function(e,n){a.getSymbolAtLocation(n)===t&&r.push({kind:"import",literal:n})})}return r},e.getImportOrExportSymbol=function(i,o,s,c){return c?e():e()||function(){var e=function(e){var n=e.parent;switch(n.kind){case 246:return n.name===e&&g(n)?{isNamedImport:!1}:void 0;case 251:return n.propertyName?void 0:{isNamedImport:!0};case 248:case 249:return E.Debug.assert(n.name===e),{isNamedImport:!1};default:return}}(i);if(e){var n=s.getImmediateAliasedSymbol(o);if(n){"export="===(n=function(e,n){if(e.declarations)for(var t=0,r=e.declarations;t<r.length;t++){var a=r[t];if(E.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return n.getExportSpecifierLocalTargetSymbol(a)}return e}(n,s)).escapedName&&(n=function(e,n){if(2097152&e.flags)return E.Debug.assertDefined(n.getImmediateAliasedSymbol(e));var t=e.valueDeclaration;return E.isExportAssignment(t)?E.Debug.assertDefined(t.expression.symbol):E.isBinaryExpression(t)?E.Debug.assertDefined(t.right.symbol):E.isSourceFile(t)?E.Debug.assertDefined(t.symbol):E.Debug.fail()}(n,s));var t=E.symbolEscapedNameNoDefault(n);return void 0===t||"default"===t||t===o.escapedName?__assign({kind:0,symbol:n},e):void 0}}}();function e(){var n=i.parent,e=n.parent;if(o.exportSymbol)return 187===n.kind?o.declarations.some(function(e){return e===n})&&E.isBinaryExpression(e)?a(e,!1):void 0:l(o.exportSymbol,u(n));var t=function(e,n){if(235!==e.kind)return e;var t=e;return t.name!==n?void 0:272===t.parent.kind?void 0:217===t.parent.parent.kind?t.parent.parent:void 0}(n,i);if(t&&E.hasModifier(t,1)){if(E.isImportEqualsDeclaration(t)&&t.moduleReference===i){if(c)return;return{kind:0,symbol:s.getSymbolAtLocation(t.name),isNamedImport:!1}}return l(o,u(t))}if(E.isExportAssignment(n))return r(n);if(E.isExportAssignment(e))return r(e);if(E.isBinaryExpression(n))return a(n,!0);if(E.isBinaryExpression(e))return a(e,!0);if(E.isJSDocTypedefTag(n))return l(o,0);function r(e){var n=E.Debug.assertDefined(e.symbol.parent,"Expected export symbol to have a parent"),t=e.isExportEquals?2:1;return{kind:1,symbol:o,exportInfo:{exportingModuleSymbol:n,exportKind:t}}}function a(e,n){var t;switch(E.getAssignmentDeclarationKind(e)){case 1:t=0;break;case 2:t=2;break;default:return}var r=n?s.getSymbolAtLocation(E.cast(e.left,E.isPropertyAccessExpression).name):o;return!r||1536&s.getMergedSymbol(r.parent).flags||E.Debug.fail("Special property assignment kind does not have a module as its parent. Assignment is "+E.Debug.showSymbol(r)+", parent is "+E.Debug.showSymbol(r.parent)),r&&l(r,t)}}function l(e,n){var t=r(e,n,s);return t&&{kind:1,symbol:e,exportInfo:t}}function u(e){return E.hasModifier(e,512)?1:0}},e.getExportInfo=r}(E.FindAllReferences||(E.FindAllReferences={}))}(ts||(ts={})),function(g){!function(l){var e;function c(e,n){return{type:"node",node:e.name||e,isInString:n}}function u(e,n,t,r,a,i,o){return void 0===i&&(i={}),void 0===o&&(o=g.arrayToSet(r,function(e){return e.fileName})),s(l.Core.getReferencedSymbolsForNode(e,n,t,r,a,i,o))}function s(e){return e&&g.flatMap(e,function(e){return e.references})}function f(e,n,t){var r=l.Core.getIntersectingMeaningFromDeclarations(t,e),a=g.firstOrUndefined(e.declarations)||t,i=g.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,e,a.getSourceFile(),a,a,r);return{displayParts:i.displayParts,kind:i.symbolKind}}function d(e){if("span"===e.type)return{textSpan:e.textSpan,fileName:e.fileName,isWriteAccess:!1,isDefinition:!1};var n=e.node,t=e.isInString,r=n.getSourceFile();return{fileName:r.fileName,textSpan:_(n,r),isWriteAccess:o(n),isDefinition:79===n.kind||!!g.getDeclarationFromName(n)||g.isLiteralComputedPropertyDeclarationName(n),isInString:t}}function _(e,n){var t=e.getStart(n),r=e.getEnd();return 9===e.kind&&(t+=1,r-=1),g.createTextSpanFromBounds(t,r)}function o(e){var n=g.getDeclarationFromName(e);return!!n&&function(e){if(4194304&e.flags)return!0;switch(e.kind){case 202:case 184:case 238:case 207:case 79:case 241:case 276:case 255:case 248:case 246:case 251:case 239:case 295:case 302:case 265:case 242:case 245:case 249:case 149:case 274:case 240:case 148:return!0;case 273:return!g.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent);case 237:case 194:case 155:case 154:case 156:case 157:return!!e.body;case 235:case 152:return!!e.initializer||g.isCatchClause(e.parent);case 153:case 151:case 303:case 297:return!1;default:return g.Debug.failBadSyntaxKind(e)}}(n)||79===e.kind||g.isWriteAccess(e)}(e=l.DefinitionKind||(l.DefinitionKind={}))[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",l.nodeEntry=c,l.findReferencedSymbols=function(e,t,n,r,a){var c=g.getTouchingPropertyName(r,a),i=l.Core.getReferencedSymbolsForNode(a,c,e,n,t),o=e.getTypeChecker();return i&&i.length?g.mapDefined(i,function(e){var s=e.definition,n=e.references;return s&&{definition:o.runWithCancellationToken(t,function(e){return d=s,p=e,m=c,n=function(){switch(d.type){case 0:var e=d.symbol,n=f(e,p,m),t=n.displayParts,r=n.kind,a=t.map(function(e){return e.text}).join("");return{node:e.declarations?g.getNameOfDeclaration(g.first(e.declarations))||g.first(e.declarations):m,name:a,kind:r,displayParts:t};case 1:var i=d.node;return{node:i,name:i.text,kind:"label",displayParts:[g.displayPart(i.text,g.SymbolDisplayPartKind.text)]};case 2:var o=d.node,s=g.tokenToString(o.kind);return{node:o,name:s,kind:"keyword",displayParts:[{text:s,kind:"keyword"}]};case 3:var c=d.node,e=p.getSymbolAtLocation(c),l=e&&g.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(p,e,c.getSourceFile(),g.getContainerNode(c),c).displayParts||[g.textPart("this")];return{node:c,name:"this",kind:"var",displayParts:l};case 4:var u=d.node;return{node:u,name:u.text,kind:"var",displayParts:[g.displayPart(g.getTextOfNode(u),g.SymbolDisplayPartKind.stringLiteral)]};default:return g.Debug.assertNever(d)}}(),t=n.node,r=n.name,a=n.kind,i=n.displayParts,{containerKind:"",containerName:"",fileName:(o=t.getSourceFile()).fileName,kind:a,name:r,textSpan:_(g.isComputedPropertyName(t)?t.expression:t,o),displayParts:i};var d,p,m,n,t,r,a,i,o}),references:n.map(d)}}):void 0},l.getImplementationsAtPosition=function(e,n,t,r,a){var i=function(e,n,t,r,a){if(277!==r.kind){var i=e.getTypeChecker();if(274===r.parent.kind){var o=[];return l.Core.getReferenceEntriesForShorthandPropertyAssignment(r,i,function(e){return o.push(c(e))}),o}if(97===r.kind||g.isSuperProperty(r.parent)){var s=i.getSymbolAtLocation(r);return s.valueDeclaration&&[c(s.valueDeclaration)]}return u(a,r,e,t,n,{implementations:!0})}}(e,n,t,g.getTouchingPropertyName(r,a),a),o=e.getTypeChecker();return g.map(i,function(e){return function(e,n){if("node"===e.type){var t=e.node,r=t.getSourceFile();return __assign({textSpan:_(t,r),fileName:r.fileName},(a=t,(o=(i=n).getSymbolAtLocation(g.isDeclaration(a)&&a.name?a.name:a))?f(o,i,a):186===a.kind?{kind:"interface",displayParts:[g.punctuationPart(19),g.textPart("object literal"),g.punctuationPart(20)]}:207===a.kind?{kind:"local class",displayParts:[g.punctuationPart(19),g.textPart("anonymous local class"),g.punctuationPart(20)]}:{kind:g.getNodeKind(a),displayParts:[]}))}var a,i,o,s=e.textSpan,c=e.fileName;return{textSpan:s,fileName:c,kind:"",displayParts:[]}}(e,o)})},l.findReferencedEntries=function(e,n,t,r,a,i){return g.map(s(l.Core.getReferencedSymbolsForNode(a,r,e,t,n,i)),d)},l.getReferenceEntriesForNode=u,l.toHighlightSpan=function(e){if("span"===e.type)return{fileName:e.fileName,span:{textSpan:e.textSpan,kind:"reference"}};var n=e.node,t=e.isInString,r=n.getSourceFile(),a=o(n),i={textSpan:_(n,r),kind:a?"writtenReference":"reference",isInString:t};return{fileName:r.fileName,span:i}}}(g.FindAllReferences||(g.FindAllReferences={}))}(ts||(ts={})),function(F){var G;(function(e){function E(e,n,r,t,a){F.Debug.assert(!!n.valueDeclaration);for(var i=F.mapDefined(G.findModuleReferences(e,t,n),function(e){if("import"!==e.kind)return{type:"span",fileName:e.referencingFile.fileName,textSpan:F.createTextSpanFromRange(e.ref)};var n=e.literal.parent;if(F.isLiteralTypeNode(n)){var t=F.cast(n.parent,F.isImportTypeNode);if(r&&!t.qualifier)return}return{type:"node",node:e.literal}}),o=0,s=n.declarations;o<s.length;o++){var c=s[o];switch(c.kind){case 277:break;case 242:a.has(c.getSourceFile().fileName)&&i.push({type:"node",node:c.name});break;default:F.Debug.fail("Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}return i.length?[{definition:{type:0,symbol:n},references:i}]:F.emptyArray}var n,t;e.getReferencedSymbolsForNode=function(e,n,t,r,a,i,o){if(void 0===i&&(i={}),void 0===o&&(o=F.arrayToSet(r,function(e){return e.fileName})),F.isSourceFile(n)){var s=F.GoToDefinition.getReferenceAtPosition(n,e,t),c=s&&t.getTypeChecker().getMergedSymbol(s.file.symbol);return c&&E(t,c,!1,r,o)}if(!i.implementations){var l=function(e,n,t){if(F.isTypeKeyword(e.kind))return r=n,a=e.kind,i=t,(o=F.flatMap(r,function(e){return i.throwIfCancellationRequested(),F.mapDefined(S(e,F.tokenToString(a),e),function(e){return e.kind===a?G.nodeEntry(e):void 0})})).length?[{definition:{type:2,node:o[0].node},references:o}]:void 0;var r,a,i,o;if(F.isJumpStatementTarget(e)){var s=F.getTargetLabel(e.parent,e.text);return s&&L(s.parent,s)}return F.isLabelOfLabeledStatement(e)?L(e.parent,e):F.isThis(e)?function(e,n,t){var r=F.getThisContainer(e,!1),a=32;switch(r.kind){case 154:case 153:if(F.isObjectLiteralMethod(r))break;case 152:case 151:case 155:case 156:case 157:a&=F.getModifierFlags(r),r=r.parent;break;case 277:if(F.isExternalModule(r))return;case 237:case 194:break;default:return}var i=F.flatMap(277===r.kind?n:[r.getSourceFile()],function(e){return t.throwIfCancellationRequested(),S(e,"this",F.isSourceFile(r)?e:r).filter(function(e){if(!F.isThis(e))return!1;var n=F.getThisContainer(e,!1);switch(r.kind){case 194:case 237:return r.symbol===n.symbol;case 154:case 153:return F.isObjectLiteralMethod(r)&&r.symbol===n.symbol;case 207:case 238:return n.parent&&r.symbol===n.parent.symbol&&(32&F.getModifierFlags(n))===a;case 277:return 277===n.kind&&!F.isExternalModule(n)}})}).map(function(e){return G.nodeEntry(e)});return[{definition:{type:3,node:F.firstDefined(i,function(e){return F.isParameter(e.node.parent)?e.node:void 0})||e},references:i}]}(e,n,t):97===e.kind?function(e){var t=F.getSuperContainer(e,!1);if(t){var r=32;switch(t.kind){case 152:case 151:case 154:case 153:case 155:case 156:case 157:r&=F.getModifierFlags(t),t=t.parent;break;default:return}var n=t.getSourceFile(),a=F.mapDefined(S(n,"super",t),function(e){if(97===e.kind){var n=F.getSuperContainer(e,!1);return n&&(32&F.getModifierFlags(n))===r&&n.parent.symbol===t.symbol?G.nodeEntry(e):void 0}});return[{definition:{type:0,symbol:t.symbol},references:a}]}}(e):void 0}(n,r,a);if(l)return l}var u,d,p,m,f=t.getTypeChecker(),_=f.getSymbolAtLocation(n);if(!_)return!i.implementations&&F.isStringLiteral(n)?(u=n,d=r,p=a,m=F.flatMap(d,function(e){return p.throwIfCancellationRequested(),F.mapDefined(S(e,u.text),function(e){return F.isStringLiteral(e)&&e.text===u.text?G.nodeEntry(e,!0):void 0})}),[{definition:{type:4,node:u},references:m}]):void 0;var g,v=F.emptyArray,y=1536&(g=_).flags?F.find(g.declarations,F.isSourceFile):void 0,h=n;if(y){var b=_.exports.get("export=");if(v=E(t,_,!!b,r,o),!b||!o.has(y.fileName))return v;_=F.skipAlias(b,f),h=void 0}return F.concatenate(v,function(e,n,t,r,a,i,o){var s,c,l,u;e=n&&(s=e,l=a,u=(c=n).parent,F.isExportSpecifier(u)?M(c,s,u,l):F.isImportSpecifier(u)&&u.propertyName===c?l.getImmediateAliasedSymbol(s):F.firstDefined(s.declarations,function(e){return e.parent||F.Debug.fail("Unexpected symbol at "+F.Debug.showSyntaxKind(c)+": "+F.Debug.showSymbol(s)),F.isTypeLiteralNode(e.parent)&&F.isUnionTypeNode(e.parent.parent)?l.getPropertyOfType(l.getTypeFromTypeNode(e.parent.parent),s.name):void 0}))||e;var d,p,m,f,_,g=n?P(n,e):7,v=[],y=new x(t,r,n?function(e){switch(e.kind){case 123:return 1;case 71:if(F.isClassLike(e.parent))return F.Debug.assert(e.parent.name===e),2;default:return 0}}(n):0,a,i,g,o,v);if(n&&79===n.kind)O(n,e,y),C(n,e,{exportingModuleSymbol:F.Debug.assertDefined(e.parent,"Expected export symbol to have a parent"),exportKind:1},y);else{var h=y.createSearch(n,e,void 0,{allSearchSymbols:n?(d=e,p=n,m=a,f=!!o.implementations,_=[],w(d,p,m,function(e,n,t){_.push(t||n||e)},function(){return!f}),_):[e]}),b=function(e){var n=e.declarations,t=e.flags,r=e.parent,a=e.valueDeclaration;if(a&&(194===a.kind||207===a.kind))return a;if(n){if(8196&t){var i=F.find(n,function(e){return F.hasModifier(e,8)});return i?F.getAncestor(i,238):void 0}if(!A(e)){var o,s=r&&!(262144&e.flags);if(!s||F.isExternalModuleSymbol(r)&&!r.globalExports){for(var c=0,l=n;c<l.length;c++){var u=l[c],d=F.getContainerNode(u);if(o&&o!==d)return;if(!d||277===d.kind&&!F.isExternalOrCommonJsModule(d))return;o=d}return s?o.getSourceFile():o}}}}(e);if(b)N(b,b.getSourceFile(),h,y,!(F.isSourceFile(b)&&!F.contains(t,b)));else for(var E=0,T=y.sourceFiles;E<T.length;E++){var S=T[E];y.cancellationToken.throwIfCancellationRequested(),D(S,h,y)}}return v}(_,h,r,o,f,a,i))},(t=n||(n={}))[t.None=0]="None",t[t.Constructor=1]="Constructor",t[t.Class=2]="Class";var x=function(){function e(e,n,t,r,a,i,o,s){this.sourceFiles=e,this.sourceFilesSet=n,this.specialSearchKind=t,this.checker=r,this.cancellationToken=a,this.searchMeaning=i,this.options=o,this.result=s,this.inheritsFromCache=F.createMap(),this.markSeenContainingTypeReference=F.nodeSeenTracker(),this.markSeenReExportRHS=F.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return e.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},e.prototype.getImportSearches=function(e,n){return this.importTracker||(this.importTracker=G.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,n,!!this.options.isForRename)},e.prototype.createSearch=function(e,n,t,r){void 0===r&&(r={});var a,i,o,s,c,l,u=r.text,d=void 0===u?F.stripQuotes(F.unescapeLeadingUnderscores((F.getLocalSymbolForExportDefault(n)||n).escapedName)):u,p=r.allSearchSymbols,m=void 0===p?[n]:p;return{symbol:n,comingFrom:t,text:d,escapedText:F.escapeLeadingUnderscores(d),parents:this.options.implementations&&e?(a=e,i=n,o=this.checker,s=F.isRightSideOfPropertyAccess(a)?a.parent:void 0,c=s&&o.getTypeAtLocation(s.expression),0===(l=F.mapDefined(c&&(c.isUnionOrIntersection()?c.types:c.symbol===i.parent?void 0:[c]),function(e){return e.symbol&&96&e.symbol.flags?e.symbol:void 0})).length?void 0:l):void 0,allSearchSymbols:m,includes:function(e){return F.contains(m,e)}}},e.prototype.referenceAdder=function(e){var n=F.getSymbolId(e),t=this.symbolIdToReferences[n];return t||(t=this.symbolIdToReferences[n]=[],this.result.push({definition:{type:0,symbol:e},references:t})),function(e){return t.push(G.nodeEntry(e))}},e.prototype.addStringOrCommentReference=function(e,n){this.result.push({definition:void 0,references:[{type:"span",fileName:e,textSpan:n}]})},e.prototype.markSearchedSymbols=function(e,n){for(var t=F.getNodeId(e),r=this.sourceFileToSeenSymbols[t]||(this.sourceFileToSeenSymbols[t]=F.createMap()),a=!1,i=0,o=n;i<o.length;i++){var s=o[i];a=F.addToSeen(r,F.getSymbolId(s))||a}return a},e}();function C(e,n,t,r){var a,i,o=r.getImportSearches(n,t),s=o.importSearches,c=o.singleReferences,l=o.indirectUsers;if(c.length)for(var u=r.referenceAdder(n),d=0,p=c;d<p.length;d++){var m=p[d];I(a=m,i=r)&&(!i.options.isForRename||F.isIdentifier(a)&&(!F.isExportSpecifier(a.parent)&&!F.isImportSpecifier(a.parent)||"default"!==a.escapedText))&&u(m)}for(var f=0,_=s;f<_.length;f++){var g=_[f],v=g[0],y=g[1];k(v.getSourceFile(),r.createSearch(v,y,1),r)}if(l.length){var h=void 0;switch(t.exportKind){case 0:h=r.createSearch(e,n,1);break;case 1:h=r.options.isForRename?void 0:r.createSearch(e,n,1,{text:"default"})}if(h)for(var b=0,E=l;b<E.length;b++)D(E[b],h,r)}}function T(e,n){for(var t=0,r=e.declarations;t<r.length;t++){var a=r[t],i=a.getSourceFile();k(i,n.createSearch(a,e,0),n,n.includesSourceFile(i))}}function D(e,n,t){void 0!==F.getNameTable(e).get(n.escapedText)&&k(e,n,t)}function A(e){var n=F.getDeclarationOfKind(e,184);if(n&&182===n.parent.kind&&F.isIdentifier(n.name)&&!n.propertyName)return n}function r(e,n,t,r){var a=n.getSymbolAtLocation(e);if(a)for(var i=0,o=S(t,a.name);i<o.length;i++){var s=o[i];if(F.isIdentifier(s)&&s!==e&&s.escapedText===e.escapedText){var c=n.getSymbolAtLocation(s);if(c===a||n.getShorthandAssignmentValueSymbol(s.parent)===a||F.isExportSpecifier(s.parent)&&M(s,c,s.parent,n)===a){var l=r(s);if(l)return l}}}}function S(n,e,t){return void 0===t&&(t=n),s(n,e,t).map(function(e){return F.getTouchingPropertyName(n,e)})}function s(e,n,t){void 0===t&&(t=e);var r=[];if(!n||!n.length)return r;for(var a=e.text,i=a.length,o=n.length,s=a.indexOf(n,t.pos);0<=s&&!(s>t.end);){var c=s+o;0!==s&&F.isIdentifierPart(a.charCodeAt(s-1),6)||c!==i&&F.isIdentifierPart(a.charCodeAt(c),6)||r.push(s),s=a.indexOf(n,s+o+1)}return r}function L(e,n){var t=e.getSourceFile(),r=n.text,a=F.mapDefined(S(t,r,e),function(e){return e===n||F.isJumpStatementTarget(e)&&F.getTargetLabel(e,r)===n?G.nodeEntry(e):void 0});return[{definition:{type:1,node:n},references:a}]}function k(e,n,t,r){return void 0===r&&(r=!0),t.cancellationToken.throwIfCancellationRequested(),N(e,e,n,t,r)}function N(e,n,t,r,a){if(r.markSearchedSymbols(n,t.allSearchSymbols))for(var i=0,o=s(n,t.text,e);i<o.length;i++)c(n,o[i],t,r,a)}function I(e,n){return!!(F.getMeaningFromLocation(e)&n.searchMeaning)}function c(e,n,t,r,a){var i=F.getTouchingPropertyName(e,n);if(function(e,n){switch(e.kind){case 71:return e.text.length===n.length;case 9:var t=e;return(F.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||F.isNameOfModuleDeclaration(e)||F.isExpressionOfExternalModuleImportEqualsDeclaration(e))&&t.text.length===n.length;case 8:return F.isLiteralNameOfPropertyDeclarationOrIndexAccess(e)&&e.text.length===n.length;case 79:return"default".length===n.length;default:return!1}}(i,t.text)){if(I(i,r)){var o=r.checker.getSymbolAtLocation(i);if(o){var s=i.parent;if(!F.isImportSpecifier(s)||s.propertyName!==i){if(F.isExportSpecifier(s))return F.Debug.assert(71===i.kind),void function(e,n,t,r,a,i){var o=t.parent,s=t.propertyName,c=t.name,l=o.parent,u=M(e,n,t,a.checker);if(r.includes(u)){if(s?e===s?(l.moduleSpecifier||f(),i&&!a.options.isForRename&&a.markSeenReExportRHS(c)&&O(c,n,a)):a.markSeenReExportRHS(e)&&f():a.options.isForRename&&"default"===c.escapedText||f(),e!==s||!a.options.isForRename){var d=79===e.originalKeywordKind?1:0,p=G.getExportInfo(n,d,a.checker);if(!p)return F.Debug.fail();C(e,n,p,a)}if(1!==r.comingFrom&&l.moduleSpecifier&&!s){var m=a.checker.getExportSpecifierLocalTargetSymbol(t);m&&T(m,a)}}function f(){i&&O(e,u,a)}}(i,o,s,t,r,a);var c,l,u,d,p,m,f,_,g,v,y,h,b=(c=t,l=o,u=i,p=(d=r).checker,w(l,u,p,function(e,n,t){return c.includes(t||n||e)?!n||6&F.getCheckFlags(e)?e:n:void 0},function(n){return!(c.parents&&!c.parents.some(function(e){return function t(e,r,a,i){if(e===r)return!0;var n=F.getSymbolId(e)+","+F.getSymbolId(r),o=a.get(n);if(void 0!==o)return o;a.set(n,!1);var s=e.declarations.some(function(e){return F.getAllSuperTypeNodes(e).some(function(e){var n=i.getTypeAtLocation(e);return!!n&&!!n.symbol&&t(n.symbol,r,a,i)})});return a.set(n,s),s}(n.parent,e,d.inheritsFromCache,p)}))}));if(!b)return f=t,_=r,g=(m=o).flags,v=m.valueDeclaration,y=_.checker.getShorthandAssignmentValueSymbol(v),h=v&&F.getNameOfDeclaration(v),void(33554432&g||!h||!f.includes(y)||O(h,y,_));switch(r.specialSearchKind){case 0:a&&O(i,b,r);break;case 1:!function(e,n,t,r){F.isNewExpressionTarget(e)&&O(e,t.symbol,r);var a,i=function(){return r.referenceAdder(t.symbol)};if(F.isClassLike(e.parent))F.Debug.assert(79===e.kind||e.parent.name===e),function(e,n,r){for(var t=0,a=e.members.get("__constructor").declarations;t<a.length;t++){var i=a[t],o=F.findChildOfKind(i,123,n);F.Debug.assert(155===i.kind&&!!o),r(o)}e.exports.forEach(function(e){var n=e.valueDeclaration;if(n&&154===n.kind){var t=n.body;t&&R(t,99,function(e){F.isNewExpressionTarget(e)&&r(e)})}})}(t.symbol,n,i());else{var o=(a=e,F.tryGetClassExtendingExpressionWithTypeArguments(F.climbPastPropertyAccess(a).parent));o&&function(e,n){var t=e.symbol.members.get("__constructor");if(t)for(var r=0,a=t.declarations;r<a.length;r++){var i=a[r];F.Debug.assert(155===i.kind);var o=i.body;o&&R(o,97,function(e){F.isCallExpressionTarget(e)&&n(e)})}}(o,i())}}(i,e,t,r);break;case 2:!function(e,n,t){O(e,n.symbol,t);var r=e.parent;if(!t.options.isForRename&&F.isClassLike(r)){F.Debug.assert(r.name===e);for(var a=t.referenceAdder(n.symbol),i=0,o=r.members;i<o.length;i++){var s=o[i];F.isMethodOrAccessor(s)&&F.hasModifier(s,32)&&s.body&&s.body.forEachChild(function e(n){99===n.kind?a(n):F.isFunctionLike(n)||F.isClassLike(n)||n.forEachChild(e)})}}}(i,t,r);break;default:F.Debug.assertNever(r.specialSearchKind)}!function(e,n,t,r){var a=G.getImportOrExportSymbol(e,n,r.checker,1===t.comingFrom);if(a){var i=a.symbol;0===a.kind?r.options.isForRename&&!a.isNamedImport||T(i,r):C(e,i,a.exportInfo,r)}}(i,o,t,r)}}}}else!r.options.implementations&&(r.options.findInStrings&&F.isInString(e,n)||r.options.findInComments&&F.isInNonReferenceComment(e,n))&&r.addStringOrCommentReference(e.fileName,F.createTextSpan(n,t.text.length))}function M(e,n,t,r){return a=e,o=(i=t).parent,s=i.propertyName,c=i.name,F.Debug.assert(s===a||c===a),(s?s===a:!o.parent.moduleSpecifier)&&r.getExportSpecifierLocalTargetSymbol(t)||n;var a,i,o,s,c}function O(e,n,t){var r=t.referenceAdder(n);t.options.implementations?function(e,n,t){if(F.isDeclarationName(e)&&(4194304&(r=e.parent).flags||(F.isVariableLike(r)?F.hasInitializer(r):F.isFunctionLikeDeclaration(r)?r.body:F.isClassLike(r)||F.isModuleOrEnumDeclaration(r))))return n(e);var r;if(71===e.kind){274===e.parent.kind&&l(e,t.checker,n);var a=function e(n){return F.isIdentifier(n)||F.isPropertyAccessExpression(n)?e(n.parent):F.isExpressionWithTypeArguments(n)?F.tryCast(n.parent.parent,F.isClassLike):void 0}(e);if(a)return n(a);var i=F.findAncestor(e,function(e){return!F.isQualifiedName(e.parent)&&!F.isTypeNode(e.parent)&&!F.isTypeElement(e.parent)}),o=i.parent;if(F.hasType(o)&&o.type===i&&t.markSeenContainingTypeReference(o))if(F.hasInitializer(o))c(o.initializer);else if(F.isFunctionLike(o)&&o.body){var s=o.body;216===s.kind?F.forEachReturnStatement(s,function(e){e.expression&&c(e.expression)}):c(s)}else F.isAssertionExpression(o)&&c(o.expression)}function c(e){(function e(n){switch(n.kind){case 193:return e(n.expression);case 195:case 194:case 186:case 207:case 185:return!0;default:return!1}})(e)&&n(e)}}(e,r,t):r(e)}function w(e,n,r,a,i){var t,o,s=F.getContainingObjectLiteralElement(n);if(s){var c=r.getContextualType(s.parent),l=c&&F.firstDefined(F.getPropertySymbolsFromContextualType(s,r,c,!0),h);if(l)return l;var u=(t=n,o=r,F.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)?o.getPropertySymbolOfDestructuringAssignment(t):void 0),d=u&&a(u);if(d)return d;var p=r.getShorthandAssignmentValueSymbol(n.parent),m=p&&a(p);if(m)return m}var f=h(e);if(f)return f;if(e.valueDeclaration&&F.isParameterPropertyDeclaration(e.valueDeclaration)){var _=r.getSymbolsOfParameterPropertyDeclaration(F.cast(e.valueDeclaration,F.isParameter),e.name);return F.Debug.assert(2===_.length&&!!(1&_[0].flags)&&!!(4&_[1].flags)),h(1&e.flags?_[1]:_[0])}var g,v,y=(g=r,(v=A(e))&&F.getPropertySymbolFromBindingElement(g,v));return y&&h(y);function h(t){return F.firstDefined(r.getRootSymbols(t),function(n){return a(t,n)||(n.parent&&96&n.parent.flags&&i(n)?F.getPropertySymbolsFromBaseTypes(n.parent,n.name,r,function(e){return a(t,n,e)}):void 0)})}}function P(e,n){var t=F.getMeaningFromLocation(e),r=n.declarations;if(r){var a=void 0;do{a=t;for(var i=0,o=r;i<o.length;i++){var s=o[i],c=F.getMeaningFromDeclaration(s);c&t&&(t|=c)}}while(t!==a)}return t}function l(e,n,t){var r=n.getSymbolAtLocation(e),a=n.getShorthandAssignmentValueSymbol(r.valueDeclaration);if(a)for(var i=0,o=a.getDeclarations();i<o.length;i++){var s=o[i];1&F.getMeaningFromDeclaration(s)&&t(s)}}function R(e,n,t){F.forEachChild(e,function(e){e.kind===n&&t(e),R(e,n,t)})}e.eachExportReference=function(e,n,t,r,a,i,o,s){for(var c=G.createImportTracker(e,F.arrayToSet(e,function(e){return e.fileName}),n,t)(r,{exportKind:o?1:0,exportingModuleSymbol:a},!1),l=c.importSearches,u=c.indirectUsers,d=0,p=l;d<p.length;d++)s(p[d][0]);for(var m=0,f=u;m<f.length;m++)for(var _=0,g=S(f[m],o?"default":i);_<g.length;_++){var v=g[_];F.isIdentifier(v)&&n.getSymbolAtLocation(v)===r&&s(v)}},e.isSymbolReferencedInFile=function(e,n,t){return r(e,n,t,function(){return!0})||!1},e.eachSymbolReferenceInFile=r,e.eachSignatureCall=function(e,n,t,r){if(e.name&&F.isIdentifier(e.name))for(var a=F.Debug.assertDefined(t.getSymbolAtLocation(e.name)),i=0,o=n;i<o.length;i++)for(var s=0,c=S(o[i],a.name);s<c.length;s++){var l=c[s];if(F.isIdentifier(l)&&l!==e.name&&l.escapedText===e.name.escapedText){var u=F.climbPastPropertyAccess(l),d=u.parent;if(F.isCallExpression(d)&&d.expression===u){var p=t.getSymbolAtLocation(l);p&&t.getRootSymbols(p).some(function(e){return e===a})&&r(d)}}}},e.getIntersectingMeaningFromDeclarations=P,e.getReferenceEntriesForShorthandPropertyAssignment=l})((G=F.FindAllReferences||(F.FindAllReferences={})).Core||(G.Core={}))}(ts||(ts={})),function(_){function d(e,c,l,u){var d=l(e);return function(e){var n,t,r,a,i,o=u&&u.tryGetOriginalLocation({fileName:e,position:0}),s=function(e){if(l(e)===d)return c;var n=_.tryRemoveDirectoryPrefix(e,d,l);return void 0===n?void 0:c+"/"+n}(o?o.fileName:e);return o?void 0===s?void 0:(n=o.fileName,t=s,r=e,a=l,i=_.getRelativePathFromFile(n,t,a),g(_.getDirectoryPath(r),i)):s}}function g(e,n){return _.ensurePathIsNonModuleName((t=e,r=n,_.normalizePath(_.combinePaths(t,r))));var t,r}function v(n,t,r){return e(function(e){var n=t(e);return void 0!==n&&r.fileExists(n)?{newFileName:n,updated:!0}:void 0})||e(function(e){var n=t(e);return r.fileExists(e)?void 0!==n?{newFileName:n,updated:!0}:{newFileName:e,updated:!1}:void 0});function e(e){return n&&(n.resolvedModule&&e(n.resolvedModule.resolvedFileName)||_.firstDefined(n.failedLookupLocations,e))}}function y(e,n){return _.createRange(e.getStart(n)+1,e.end-1)}function f(e,n){if(_.isObjectLiteralExpression(e))for(var t=0,r=e.properties;t<r.length;t++){var a=r[t];_.isPropertyAssignment(a)&&_.isStringLiteral(a.name)&&n(a,a.name.text)}}_.getEditsForFileRename=function(n,e,t,r,a,i,o){var s=_.hostUsesCaseSensitiveFileNames(r),c=_.createGetCanonicalFileName(s),l=d(e,t,c,o),u=d(t,e,c,o);return _.textChanges.ChangeTracker.with({host:r,formatContext:a},function(e){!function(e,i,r,o,s,c){var l=e.getCompilerOptions().configFile;if(l){var u=_.getDirectoryPath(l.fileName),n=_.getTsConfigObjectLiteralExpression(l);n&&f(n,function(e,n){switch(n){case"files":case"include":case"exclude":var t=d(e);if(!t&&"include"===n&&_.isArrayLiteralExpression(e.initializer)){var r=_.mapDefined(e.initializer.elements,function(e){return _.isStringLiteral(e)?e.text:void 0}),a=_.getFileMatcherPatterns(u,[],r,c,s);_.getRegexFromPattern(_.Debug.assertDefined(a.includeFilePattern),c).test(o)||i.insertNodeAfter(l,_.last(e.initializer.elements),_.createStringLiteral(m(o)))}break;case"compilerOptions":f(e.initializer,function(e,n){var t=_.getOptionFromName(n);t&&(t.isFilePath||"list"===t.type&&t.element.isFilePath)?d(e):"paths"===n&&f(e.initializer,function(e){if(_.isArrayLiteralExpression(e.initializer))for(var n=0,t=e.initializer.elements;n<t.length;n++){var r=t[n];p(r)}})})}})}function d(e){for(var n=_.isArrayLiteralExpression(e.initializer)?e.initializer.elements:[e.initializer],t=!1,r=0,a=n;r<a.length;r++){var i=a[r];t=p(i)||t}return t}function p(e){if(!_.isStringLiteral(e))return!1;var n=g(u,e.text),t=r(n);return void 0!==t&&(i.replaceRangeWithText(l,y(e,l),m(t)),!0)}function m(e){return _.getRelativePathFromDirectory(u,e,!c)}}(n,e,l,t,r.getCurrentDirectory(),s),function(u,n,d,t,p,m){for(var f=u.getSourceFiles(),e=function(r){var e=d(r.path),a=void 0!==e?e:r.path,i=_.getDirectoryPath(a),o=t(r.fileName),s=o||r.fileName,c=_.getDirectoryPath(s),l=void 0!==e||void 0!==o;!function(e,n,t,r){for(var a=0,i=e.referencedFiles||_.emptyArray;a<i.length;a++){var o=i[a],s=t(o.fileName);void 0!==s&&s!==e.text.slice(o.pos,o.end)&&n.replaceRangeWithText(e,o,s)}for(var c=0,l=e.imports;c<l.length;c++){var u=l[c],s=r(u);void 0!==s&&s!==u.text&&n.replaceRangeWithText(e,y(u,e),s)}}(r,n,function(e){if(_.pathIsRelative(e)){var n=g(c,e),t=d(n);return void 0===t?void 0:_.ensurePathIsNonModuleName(_.getRelativePathFromDirectory(i,t,m))}},function(e){var n=u.getTypeChecker().getSymbolAtLocation(e);if(!n||!n.declarations.some(function(e){return _.isAmbientModule(e)})){var t=void 0!==o?v(_.resolveModuleName(e.text,s,u.getCompilerOptions(),p),d,p):function(e,n,t,r,a,i){if(e){var o=_.find(e.declarations,_.isSourceFile).fileName,s=i(o);return void 0===s?{newFileName:o,updated:!1}:{newFileName:s,updated:!0}}var c=a.resolveModuleNames?a.getResolvedModuleWithFailedLookupLocationsFromCache&&a.getResolvedModuleWithFailedLookupLocationsFromCache(n.text,t.fileName):r.getResolvedModuleWithFailedLookupLocationsFromCache(n.text,t.fileName);return v(c,i,a)}(n,e,r,u,p,d);return void 0!==t&&(t.updated||l&&_.pathIsRelative(e.text))?_.moduleSpecifiers.updateModuleSpecifier(u.getCompilerOptions(),a,t.newFileName,p,f,u.redirectTargetsMap,e.text):void 0}})},r=0,a=f;r<a.length;r++){var i=a[r];e(i)}}(n,e,l,u,r,c)})},_.getPathUpdater=d}(ts||(ts={})),function(k){!function(e){function o(e,n,t){var r,a,i=x(n,t,e);if(i)return[(r=i.fileName,a=i.file.fileName,{fileName:a,textSpan:k.createTextSpanFromBounds(0,0),kind:"script",name:r,containerName:void 0,containerKind:void 0})];var o=k.getTouchingPropertyName(n,t);if(o!==n){var s=o.parent;if(k.isJumpStatementTarget(o)){var c=k.getTargetLabel(o.parent,o.text);return c?[A(c,"label",o.text,void 0)]:void 0}var l=e.getTypeChecker(),u=function(e,n){var t=n.getSymbolAtLocation(e);if(t&&2097152&t.flags&&function(e,n){if(71!==e.kind)return!1;if(e.parent===n)return!0;switch(n.kind){case 248:case 246:return!0;case 251:return 250===n.parent.kind;default:return!1}}(e,t.declarations[0])){var r=n.getAliasedSymbol(t);if(r.declarations)return r}return t}(o,l);if(!u)return function(e,t){if(!k.isPropertyAccessExpression(e.parent)||e.parent.name!==e)return;var n=t.getTypeAtLocation(e.parent.expression);return k.mapDefined(n.isUnionOrIntersection()?n.types:[n],function(e){var n=t.getIndexInfoOfType(e,0);return n&&n.declaration&&L(t,n.declaration)})}(o,l);var d,p,m,f,_,g=(d=l,f=function e(n){return k.isRightSideOfPropertyAccess(n)?e(n.parent):n}(o),_=f.parent,p=_&&k.isCallLikeExpression(_)&&k.getInvokedExpression(_)===f?_:void 0,m=p&&d.getResolvedSignature(p),k.tryCast(m&&m.declaration,function(e){return k.isFunctionLike(e)&&!k.isFunctionTypeNode(e)}));if(g&&(!k.isJsxOpeningLikeElement(o.parent)||!function(e){switch(e.kind){case 155:case 164:case 159:return!0;default:return!1}}(g))){var v=L(l,g);if(l.getRootSymbols(u).some(function(e){return(n=e)===(t=g).symbol||n===t.symbol.parent||!k.isCallLikeExpression(t.parent)&&n===t.parent.symbol;var n,t})||u.declarations&&u.declarations.some(function(e){return k.isVariableDeclaration(e)&&!!e.initializer&&k.isRequireCall(e.initializer,!1)}))return[v];var y=C(l,u,o)||k.emptyArray;return 97===o.kind?[v].concat(y):y.concat([v])}if(274===o.parent.kind){var h=l.getShorthandAssignmentValueSymbol(u.valueDeclaration);return h?h.declarations.map(function(e){return D(e,l,h,o)}):[]}if(k.isPropertyName(o)&&k.isBindingElement(s)&&k.isObjectBindingPattern(s.parent)&&o===(s.propertyName||s.name)){var b=k.getNameFromPropertyName(o),E=l.getTypeAtLocation(s.parent);return void 0===b?k.emptyArray:k.flatMap(E.isUnion()?E.types:[E],function(e){var n=e.getProperty(b);return n&&C(l,n,o)})}var T=k.getContainingObjectLiteralElement(o);if(T){var S=T&&l.getContextualType(T.parent);if(S)return k.flatMap(k.getPropertySymbolsFromContextualType(T,l,S,!1),function(e){return C(l,e,o)})}return C(l,u,o)}}function x(e,n,t){var r=l(e.referencedFiles,n);if(r)return(o=k.tryResolveScriptReference(t,e,r))&&{fileName:r.fileName,file:o};var a=l(e.typeReferenceDirectives,n);if(a){var i=t.getResolvedTypeReferenceDirectives().get(a.fileName);return(o=i&&t.getSourceFile(i.resolvedFileName))&&{fileName:a.fileName,file:o}}var o,s=l(e.libReferenceDirectives,n);return s?(o=t.getLibFileFromReference(s))&&{fileName:s.fileName,file:o}:void 0}function c(e,n,t){return k.flatMap(!e.isUnion()||32&e.flags?[e]:e.types,function(e){return e.symbol&&C(n,e.symbol,t)})}function C(r,a,i){return function(){if(32&a.flags&&(k.isNewExpressionTarget(i)||123===i.kind)){var e=k.find(a.declarations,k.isClassLike)||k.Debug.fail("Expected declaration to have at least one class-like declaration");return n(e.members,!0)}}()||(k.isCallOrNewExpressionTarget(i)||k.isNameOfFunctionDeclaration(i)?n(a.declarations,!1):void 0)||k.map(a.declarations,function(e){return D(e,r,a,i)});function n(e,n){if(e){var t=e.filter(n?k.isConstructorDeclaration:k.isFunctionLike);return t.length?[D(k.find(t,function(e){return!!e.body})||k.last(t),r,a,i)]:void 0}}}function D(e,n,t,r){var a=n.symbolToString(t);return A(e,k.SymbolDisplay.getSymbolKind(n,t,r),a,t.parent?n.symbolToString(t.parent,r):"")}function A(e,n,t,r){var a=k.getNameOfDeclaration(e)||e,i=a.getSourceFile();return{fileName:i.fileName,textSpan:k.createTextSpanFromNode(a,i),kind:n,name:t,containerKind:void 0,containerName:r}}function L(e,n){return D(n,e,n.symbol,n)}function l(e,n){return k.find(e,function(e){return k.textRangeContainsPositionInclusive(e,n)})}e.getDefinitionAtPosition=o,e.getReferenceAtPosition=x,e.getTypeDefinitionAtPosition=function(e,n,t){var r=k.getTouchingPropertyName(n,t);if(r!==n){var a=e.getSymbolAtLocation(r);if(a){var i=e.getTypeOfSymbolAtLocation(a,r),o=function(e,n,t){if(n.symbol===e||e.valueDeclaration&&n.symbol&&k.isVariableDeclaration(e.valueDeclaration)&&e.valueDeclaration.initializer===n.symbol.valueDeclaration){var r=n.getCallSignatures();if(1===r.length)return t.getReturnTypeOfSignature(k.first(r))}}(a,i,e),s=o&&c(o,e,r);return s&&0!==s.length?s:c(i,e,r)}}},e.getDefinitionAndBoundSpan=function(e,n,t){var r=o(e,n,t);if(r&&0!==r.length){var a=l(n.referencedFiles,t)||l(n.typeReferenceDirectives,t)||l(n.libReferenceDirectives,t);if(a)return{definitions:r,textSpan:k.createTextSpanFromRange(a)};var i=k.getTouchingPropertyName(n,t);return{definitions:r,textSpan:k.createTextSpan(i.getStart(),i.getWidth())}}},e.findReferenceInPosition=l}(k.GoToDefinition||(k.GoToDefinition={}))}(ts||(ts={})),function(v){!function(e){var n,t,r=["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 i(e){var n=e.comment;switch(e.kind){case 293:return r(e.class);case 301:return a(e.typeParameters.map(function(e){return e.getText()}).join(", "));case 300:return r(e.typeExpression);case 302:case 295:case 303:case 297:var t=e.name;return t?r(t):n;default:return n}function r(e){return a(e.getText())}function a(e){return void 0===n?e:e+" "+n}}function o(e,n){if(e)for(var t=0;t<e.length;t++)if(e.indexOf(e[t])===t){var r=n(e[t],t);if(r)return r}}function a(e){return{name:e,kind:"",kindModifiers:"",displayParts:[v.textPart(e)],documentation:v.emptyArray,tags:void 0,codeActions:void 0}}function g(e){switch(e.kind){case 237:case 194:case 154:case 155:case 153:return{commentOwner:e,parameters:e.parameters};case 273:return g(e.initializer);case 238:case 239:case 151:case 241:case 276:case 240:return{commentOwner:e};case 217:var n=e.declarationList.declarations;return{commentOwner:e,parameters:1===n.length&&n[0].initializer?function(e){for(;193===e.kind;)e=e.expression;switch(e.kind){case 194:case 195:return e.parameters;case 207:var n=v.find(e.members,v.isConstructorDeclaration);return n?n.parameters:v.emptyArray}return v.emptyArray}(n[0].initializer):void 0};case 277:return"quit";case 242:return 242===e.parent.kind?void 0:{commentOwner:e};case 202:var t=e;return 0===v.getAssignmentDeclarationKind(t)?"quit":{commentOwner:e,parameters:v.isFunctionLike(t.right)?t.right.parameters:v.emptyArray}}}e.getJsDocCommentsFromDeclarations=function(e){var a=[];return o(e,function(e){for(var n=0,t=function(e){switch(e.kind){case 297:case 303:return[e];case 295:case 302:return[e,e.parent];default:return v.getJSDocCommentsAndTags(e)}}(e);n<t.length;n++){var r=t[n].comment;void 0!==r&&(a.length&&a.push(v.lineBreakPart()),a.push(v.textPart(r)))}}),a},e.getJsDocTagsFromDeclarations=function(e){var a=[];return o(e,function(e){for(var n=0,t=v.getJSDocTags(e);n<t.length;n++){var r=t[n];a.push({name:r.tagName.text,text:i(r)})}}),a},e.getJSDocTagNameCompletions=function(){return n||(n=v.map(r,function(e){return{name:e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},e.getJSDocTagNameCompletionDetails=a,e.getJSDocTagCompletions=function(){return t||(t=v.map(r,function(e){return{name:"@"+e,kind:"keyword",kindModifiers:"",sortText:"0"}}))},e.getJSDocTagCompletionDetails=a,e.getJSDocParameterNameCompletions=function(t){if(!v.isIdentifier(t.name))return v.emptyArray;var r=t.name.text,a=t.parent,e=a.parent;return v.isFunctionLike(e)?v.mapDefined(e.parameters,function(e){if(v.isIdentifier(e.name)){var n=e.name.text;if(!a.tags.some(function(e){return e!==t&&v.isJSDocParameterTag(e)&&v.isIdentifier(e.name)&&e.name.escapedText===n})&&(void 0===r||v.startsWith(n,r)))return{name:n,kind:"parameter",kindModifiers:"",sortText:"0"}}}):[]},e.getJSDocParameterNameCompletionDetails=function(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[v.textPart(e)],documentation:v.emptyArray,tags:void 0,codeActions:void 0}},e.getDocCommentTemplateAtPosition=function(e,n,t){var r=v.getTokenAtPosition(n,t),a=v.findAncestor(r,v.isJSDoc);if(!a||void 0===a.comment&&!v.length(a.tags)){var i=r.getStart(n);if(a||!(i<t)){var o,s=(o=r,v.forEachAncestor(o,g));if(s){var c=s.commentOwner,l=s.parameters;if(!(c.getStart(n)<t)){if(!l||0===l.length)return{newText:"/** */",caretOffset:3};var u,d,p,m,f=function(e,n){for(var t=e.text,r=v.getLineStartPositionForPosition(n,e),a=r;a<=n&&v.isWhiteSpaceSingleLine(t.charCodeAt(a));a++);return t.slice(r,a)}(n,t),_="/**"+e+f+" * ";return{newText:_+e+(u=l,d=v.hasJSFileExtension(n.fileName),p=f,m=e,u.map(function(e,n){var t=e.name,r=e.dotDotDotToken,a=71===t.kind?t.text:"param"+n,i=d?r?"{...any} ":"{any} ":"";return p+" * @param "+i+a+m}).join(""))+f+" */"+(i===t?e+f:""),caretOffset:_.length}}}}}}}(v.JsDoc||(v.JsDoc={}))}(ts||(ts={})),function(_){!function(e){function d(e,n){switch(e.kind){case 248:case 251:case 246:var t=n.getSymbolAtLocation(e.name),r=n.getAliasedSymbol(t);return t.escapedName!==r.escapedName;default:return!0}}function s(e,n){return c(e,n)||_.isPropertyAccessExpression(e)&&(n.push(e.name.text),!0)&&s(e.expression,n)}function c(e,n){return _.isPropertyNameLiteral(e)&&(n.push(_.getTextOfIdentifierOrLiteral(e)),!0)}function p(e){var n=[],t=_.getNameOfDeclaration(e);if(t&&147===t.kind&&!s(t.expression,n))return _.emptyArray;n.shift();for(var r,a,i,o=_.getContainerNode(e);o;){if(r=o,a=n,void 0,!(i=_.getNameOfDeclaration(r))||!(c(i,a)||147===i.kind&&s(i.expression,a)))return _.emptyArray;o=_.getContainerNode(o)}return n.reverse()}function m(e,n){return _.compareValues(e.matchKind,n.matchKind)||_.compareStringsCaseSensitiveUI(e.name,n.name)}function f(e){var n=e.declaration,t=_.getContainerNode(n),r=t&&_.getNameOfDeclaration(t);return{name:e.name,kind:_.getNodeKind(n),kindModifiers:_.getNodeModifiers(n),matchKind:_.PatternMatchKind[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:_.createTextSpanFromNode(n),containerName:r?r.text:"",containerKind:r?_.getNodeKind(t):""}}(_.NavigateTo||(_.NavigateTo={})).getNavigateToItems=function(e,r,n,t,a,i){var o=_.createPatternMatcher(t);if(!o)return _.emptyArray;for(var s=[],c=function(t){if(n.throwIfCancellationRequested(),i&&t.isDeclarationFile)return"continue";t.getNamedDeclarations().forEach(function(e,n){!function(e,n,t,r,a,i){var o=e.getMatchForLastSegmentOfPattern(n);if(o)for(var s=0,c=t;s<c.length;s++){var l=c[s];if(d(l,r))if(e.patternContainsDots){var u=e.getFullMatch(p(l),n);u&&i.push({name:n,fileName:a,matchKind:u.kind,isCaseSensitive:u.isCaseSensitive,declaration:l})}else i.push({name:n,fileName:a,matchKind:o.kind,isCaseSensitive:o.isCaseSensitive,declaration:l})}}(o,n,e,r,t.fileName,s)})},l=0,u=e;l<u.length;l++)c(u[l]);return s.sort(m),(void 0===a?s:s.slice(0,a)).map(f)}}()}(ts||(ts={})),function(M){!function(e){var h,t,a,n=/\s+/g,i=[],r=[];function o(){i=[],a=h=t=void 0,r=[]}function l(e){return e.getText(t)}function s(e){return e.node.kind}function c(e,n){e.children?e.children.push(n):e.children=[n]}function u(e){M.Debug.assert(!i.length);var n={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};a=n;for(var t=0,r=e.statements;t<r.length;t++){x(r[t])}return T(),M.Debug.assert(!a&&!i.length),n}function b(e){c(a,d(e))}function d(e){return{node:e,name:M.isDeclaration(e)||M.isExpression(e)?M.getNameOfDeclaration(e):void 0,additionalNodes:void 0,parent:a,children:void 0,indent:a.indent+1}}function E(e){var n=d(e);c(a,n),i.push(a),a=n}function T(){a.children&&(p(a.children,a),_(a.children)),a=i.pop()}function S(e,n){E(e),x(n),T()}function x(e){var n;if(h.throwIfCancellationRequested(),e&&!M.isToken(e))switch(e.kind){case 155:var t=e;S(t,t.body);for(var r=0,a=t.parameters;r<a.length;r++){var i=a[r];M.isParameterPropertyDeclaration(i)&&b(i)}break;case 154:case 156:case 157:case 153:M.hasDynamicName(e)||S(e,e.body);break;case 152:case 151:M.hasDynamicName(e)||b(e);break;case 248:var o=e;o.name&&b(o.name);var s=o.namedBindings;if(s)if(249===s.kind)b(s);else for(var c=0,l=s.elements;c<l.length;c++){b(l[c])}break;case 184:case 235:var u=e,d=u.name,p=u.initializer;M.isBindingPattern(d)?x(d):p&&function(e){switch(e.kind){case 195:case 194:case 207:return!0;default:return!1}}(p)?p.name?x(p):(E(e),M.forEachChild(p,x),T()):S(e,p);break;case 195:case 237:case 194:S(e,e.body);break;case 241:E(e);for(var m=0,f=e.members;m<f.length;m++){var _=f[m];(n=_).name&&147!==n.name.kind&&b(_)}T();break;case 238:case 207:case 239:E(e);for(var g=0,v=e.members;g<v.length;g++){x(_=v[g])}T();break;case 242:S(e,function e(n){return n.body&&M.isModuleDeclaration(n.body)?e(n.body):n}(e).body);break;case 255:case 246:case 160:case 158:case 159:case 240:b(e);break;case 202:var y=M.getAssignmentDeclarationKind(e);switch(y){case 1:case 2:case 3:case 6:return void S(e,e.right);case 4:case 5:case 0:break;default:M.Debug.assertNever(y)}default:M.hasJSDocNodes(e)&&M.forEach(e.jsDoc,function(e){M.forEach(e.tags,function(e){M.isJSDocTypeAlias(e)&&b(e)})}),M.forEachChild(e,x)}}function p(e,s){var c=M.createMap();M.filterMutate(e,function(e){var n=M.getNameOfDeclaration(e.node),t=n&&l(n);if(!t)return!0;var r=c.get(t);if(!r)return c.set(t,e),!0;if(r instanceof Array){for(var a=0,i=r;a<i.length;a++){var o;if(m(o=i[a],e,s))return!1}return r.push(e),!0}return!m(o=r,e,s)&&(c.set(t,[o,e]),!0)})}function m(e,n,t){return!!function(e,n,t){if(e.kind!==n.kind||e.parent!==n.parent&&(!f(e,t)||!f(n,t)))return!1;switch(e.kind){case 152:case 154:case 156:case 157:return M.hasModifier(e,32)===M.hasModifier(n,32);case 242:return function e(n,t){return n.body.kind===t.body.kind&&(242!==n.body.kind||e(n.body,t.body))}(e,n);default:return!0}}(e.node,n.node,t)&&(function(e,n){var t;e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(n.node),n.additionalNodes&&(t=e.additionalNodes).push.apply(t,n.additionalNodes);e.children=M.concatenate(e.children,n.children),e.children&&(p(e.children,e),_(e.children))}(e,n),!0)}function f(e,n){var t=M.isModuleBlock(e.parent)?e.parent.parent:e.parent;return t===n.node||M.contains(n.additionalNodes,t)}function _(e){e.sort(g)}function g(e,n){return M.compareStringsCaseSensitiveUI(v(e.node),v(n.node))||M.compareValues(s(e),s(n))}function v(e){if(242===e.kind)return L(e);var n=M.getNameOfDeclaration(e);if(n&&M.isPropertyName(n))return M.unescapeLeadingUnderscores(M.getPropertyNameForPropertyNameNode(n));switch(e.kind){case 194:case 195:case 207:return I(e);default:return}}function y(e,n){if(242===e.kind)return L(e);if(n){var t=l(n);if(0<t.length)return t}switch(e.kind){case 277:var r=e;return M.isExternalModule(r)?'"'+M.escapeString(M.getBaseFileName(M.removeFileExtension(M.normalizePath(r.fileName))))+'"':"<global>";case 195:case 237:case 194:case 238:case 207:return 512&M.getModifierFlags(e)?"default":I(e);case 155:return"constructor";case 159:return"new()";case 158:return"()";case 160:return"[]";default:return"<unknown>"}}function C(e){return{text:y(e.node,e.name),kind:M.getNodeKind(e.node),kindModifiers:N(e.node),spans:A(e),nameSpan:e.name&&k(e.name),childItems:M.map(e.children,C)}}function D(e){return{text:y(e.node,e.name),kind:M.getNodeKind(e.node),kindModifiers:N(e.node),spans:A(e),childItems:M.map(e.children,function(e){return{text:y(e.node,e.name),kind:M.getNodeKind(e.node),kindModifiers:M.getNodeModifiers(e.node),spans:A(e),childItems:r,indent:0,bolded:!1,grayed:!1}})||r,indent:e.indent,bolded:!1,grayed:!1}}function A(e){var n=[k(e.node)];if(e.additionalNodes)for(var t=0,r=e.additionalNodes;t<r.length;t++){var a=r[t];n.push(k(a))}return n}function L(e){if(M.isAmbientModule(e))return M.getTextOfNode(e.name);var n=[];for(n.push(M.getTextOfIdentifierOrLiteral(e.name));e.body&&242===e.body.kind;)e=e.body,n.push(M.getTextOfIdentifierOrLiteral(e.name));return n.join(".")}function k(e){return 277===e.kind?M.createTextSpanFromRange(e):M.createTextSpanFromNode(e,t)}function N(e){return e.parent&&235===e.parent.kind&&(e=e.parent),M.getNodeModifiers(e)}function I(e){return e.name&&0<M.getFullWidth(e.name)?M.declarationNameToString(e.name):235===e.parent.kind?M.declarationNameToString(e.parent.name):202===e.parent.kind&&58===e.parent.operatorToken.kind?l(e.parent.left).replace(n,""):273===e.parent.kind&&e.parent.name?l(e.parent.name):512&M.getModifierFlags(e)?"default":M.isClassLike(e)?"<class>":"<function>"}e.getNavigationBarItems=function(e,n){h=n,t=e;try{return M.map(function(e){var i=[];return function e(n){if(o(n)&&(i.push(n),n.children))for(var t=0,r=n.children;t<r.length;t++){var a=r[t];e(a)}}(e),i;function o(e){switch(s(e)){case 238:case 207:case 241:case 239:case 242:case 277:case 240:case 302:case 295:return!0;case 155:case 154:case 156:case 157:case 235:return n(e);case 195:case 237:case 194:return function(e){if(!e.node.body)return!1;switch(s(e.parent)){case 243:case 277:case 154:case 155:return!0;default:return n(e)}}(e);default:return!1}function n(e){return M.some(e.children,function(e){var n=s(e);return 235!==n&&184!==n})}}}(u(e)),D)}finally{o()}},e.getNavigationTree=function(e,n){h=n,t=e;try{return C(u(e))}finally{o()}}}(M.NavigationBar||(M.NavigationBar={}))}(ts||(ts={})),function(E){!function(e){function d(e){var n=e.body;return n&&!E.isIdentifier(n)?E.isModuleBlock(n)?n:d(n):void 0}function p(e){return void 0!==e&&E.isStringLiteralLike(e)?e.text:void 0}function m(e){if(0===e.length)return e;var n=function(e){for(var n,t=[],r=[],a=[],i=0,o=e;i<o.length;i++){var s=o[i];if(void 0!==s.importClause){var c=s.importClause,l=c.name,u=c.namedBindings;l&&t.push(s),u&&(E.isNamespaceImport(u)?r.push(s):a.push(s))}else n=n||s}return{importWithoutClause:n,defaultImports:t,namespaceImports:r,namedImports:a}}(e),t=n.importWithoutClause,r=n.defaultImports,a=n.namespaceImports,i=n.namedImports,o=[];if(t&&o.push(t),1===r.length&&1===a.length&&0===i.length){var s=r[0];return o.push(y(s,s.importClause.name,a[0].importClause.namedBindings)),o}for(var c,l=0,u=E.stableSort(a,function(e,n){return b(e.importClause.namedBindings.name,n.importClause.namedBindings.name)});l<u.length;l++){var d=u[l];o.push(y(d,void 0,d.importClause.namedBindings))}if(0===r.length&&0===i.length)return o;var p=[];if(1===r.length)c=r[0].importClause.name;else for(var m=0,f=r;m<f.length;m++){s=f[m];p.push(E.createImportSpecifier(E.createIdentifier("default"),s.importClause.name))}p.push.apply(p,E.flatMap(i,function(e){return e.importClause.namedBindings.elements}));var _=h(p),g=0<r.length?r[0]:i[0],v=0===_.length?c?void 0:E.createNamedImports(E.emptyArray):0===i.length?E.createNamedImports(_):E.updateNamedImports(i[0].importClause.namedBindings,_);return o.push(y(g,c,v)),o}function f(e){if(0===e.length)return e;var n=function(e){for(var n,t=[],r=0,a=e;r<a.length;r++){var i=a[r];void 0===i.exportClause?n=n||i:t.push(i)}return{exportWithoutClause:n,namedExports:t}}(e),t=n.exportWithoutClause,r=n.namedExports,a=[];if(t&&a.push(t),0===r.length)return a;var i=[];i.push.apply(i,E.flatMap(r,function(e){return e.exportClause.elements}));var o=h(i),s=r[0];return a.push(E.updateExportDeclaration(s,s.decorators,s.modifiers,E.updateNamedExports(s.exportClause,o),s.moduleSpecifier)),a}function y(e,n,t){return E.updateImportDeclaration(e,e.decorators,e.modifiers,E.updateImportClause(e.importClause,n,t),e.moduleSpecifier)}function h(e){return E.stableSort(e,function(e,n){return b(e.propertyName||e.name,n.propertyName||n.name)||b(e.name,n.name)})}function _(e,n){var t=p(e),r=p(n);return E.compareBooleans(void 0===t,void 0===r)||E.compareBooleans(E.isExternalModuleNameRelative(t),E.isExternalModuleNameRelative(r))||E.compareStringsCaseInsensitive(t,r)}function b(e,n){return E.compareStringsCaseInsensitive(e.text,n.text)}e.organizeImports=function(o,s,c,n,e){var l=E.textChanges.ChangeTracker.fromContext({host:c,formatContext:s}),t=function(e){return m(function(e,n,t){for(var r=t.getTypeChecker(),a=r.getJsxNamespace(),i=!!(4&n.transformFlags),o=[],s=0,c=e;s<c.length;s++){var l=c[s],u=l.importClause;if(u){var d=u.name,p=u.namedBindings;if(d&&!f(d)&&(d=void 0),p)if(E.isNamespaceImport(p))f(p.name)||(p=void 0);else{var m=p.elements.filter(function(e){return f(e.name)});m.length<p.elements.length&&(p=m.length?E.updateNamedImports(p,m):void 0)}(d||p)&&o.push(y(l,d,p))}else o.push(l)}return o;function f(e){return i&&e.text===a||E.FindAllReferences.Core.isSymbolReferencedInFile(e,r,n)}}(e,o,n))};u(o.statements.filter(E.isImportDeclaration),t),u(o.statements.filter(E.isExportDeclaration),f);for(var r=0,a=o.statements.filter(E.isAmbientModule);r<a.length;r++){var i=d(a[r]);u(i.statements.filter(E.isImportDeclaration),t),u(i.statements.filter(E.isExportDeclaration),f)}return l.getChanges();function u(e,n){if(0!==E.length(e)){E.suppressLeadingTrivia(e[0]);var t=E.group(e,function(e){return p(e.moduleSpecifier)}),r=E.stableSort(t,function(e,n){return _(e[0].moduleSpecifier,n[0].moduleSpecifier)}),a=E.flatMap(r,function(e){return p(e[0].moduleSpecifier)?n(e):e});0===a.length?l.delete(o,e[0]):l.replaceNodeWithNodes(o,e[0],a,{useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!1,suffix:E.getNewLineOrDefaultFromHost(c,s.options)});for(var i=1;i<e.length;i++)l.delete(o,e[i])}}},e.coalesceImports=m,e.coalesceExports=f,e.compareModuleSpecifiers=_}(E.OrganizeImports||(E.OrganizeImports={}))}(ts||(ts={})),function(y){!function(e){(y.OutliningElementsCollector||(y.OutliningElementsCollector={})).collectElements=function(e,n){var t=[];return function(t,r,a){for(var i=40,e=0,n=t.statements,o=n.length;e<o;){for(;e<o&&!y.isAnyImportSyntax(n[e]);)l(n[e]),e++;if(e===o)break;for(var s=e;e<o&&y.isAnyImportSyntax(n[e]);)u(n[e],t,r,a),e++;var c=e-1;c!==s&&a.push(v(y.findChildOfKind(n[s],91,t).getStart(t),n[c].getEnd(),"imports"))}function l(e){if(0!==i){r.throwIfCancellationRequested(),y.isDeclaration(e)&&u(e,t,r,a);var n=function(c,l){switch(c.kind){case 216:if(y.isFunctionBlock(c))return o(c.parent,195!==c.parent.kind);switch(c.parent.kind){case 221:case 224:case 225:case 223:case 220:case 222:case 229:case 272:return o(c.parent);case 233:var e=c.parent;if(e.tryBlock===c)return o(c.parent);if(e.finallyBlock===c)return o(y.findChildOfKind(e,87,l));default:return d(y.createTextSpanFromNode(c,l),"code")}case 243:return o(c.parent);case 238:case 239:case 241:case 244:return o(c);case 186:return i(c);case 185:return i(c,21);case 258:return t=c,r=y.createTextSpanFromBounds(t.openingElement.getStart(l),t.closingElement.getEnd()),a=t.openingElement.tagName.getText(l),d(r,"code",r,!1,"<"+a+">...</"+a+">");case 259:case 260:return 0!==(n=c.attributes).properties.length?v(n.getStart(l),n.getEnd(),"code"):void 0}var n,t,r,a;function i(e,n){return void 0===n&&(n=17),o(e,!1,!y.isArrayLiteralExpression(e.parent),n)}function o(e,n,t,r){void 0===n&&(n=!1),void 0===t&&(t=!0),void 0===r&&(r=17);var a=y.findChildOfKind(c,r,l),i=17===r?18:22,o=y.findChildOfKind(c,i,l);if(a&&o){var s=y.createTextSpanFromBounds(t?a.getFullStart():a.getStart(l),o.getEnd());return d(s,"code",y.createTextSpanFromNode(e,l),n)}}}(e,t);n&&a.push(n),i--,y.isIfStatement(e)&&e.elseStatement&&y.isIfStatement(e.elseStatement)?(l(e.expression),l(e.thenStatement),i++,l(e.elseStatement),i--):e.forEachChild(l),i++}}}(e,n,t),function(e,n){for(var t=[],r=e.getLineStarts(),a=0;a<r.length;a++){var i=r[a],o=a+1===r.length?e.getEnd():r[a+1]-1,s=e.text.substring(i,o),c=g(s);if(c&&!y.isInComment(e,i))if(c[1]){var l=t.pop();l&&(l.textSpan.length=o-l.textSpan.start,l.hintSpan.length=o-l.textSpan.start,n.push(l))}else{var u=y.createTextSpanFromBounds(e.text.indexOf("//",i),o);t.push(d(u,"region",u,!1,c[2]||"#region"))}}}(e,t),t.sort(function(e,n){return e.textSpan.start-n.textSpan.start})};var n=/^\s*\/\/\s*#(end)?region(?:\s+(.*))?(?:\r)?$/;function g(e){return n.exec(e)}function u(e,n,t,r){var a=y.getLeadingCommentRangesOfNode(e,n);if(a){for(var i=-1,o=-1,s=0,c=n.getFullText(),l=0,u=a;l<u.length;l++){var d=u[l],p=d.kind,m=d.pos,f=d.end;switch(t.throwIfCancellationRequested(),p){case 2:if(g(c.slice(m,f))){_(),s=0;break}0===s&&(i=m),o=f,s++;break;case 3:_(),r.push(v(m,f,"comment")),s=0;break;default:y.Debug.assertNever(p)}}_()}function _(){1<s&&r.push(v(i,o,"comment"))}}function v(e,n,t){return d(y.createTextSpanFromBounds(e,n),t)}function d(e,n,t,r,a){return void 0===t&&(t=e),void 0===r&&(r=!1),void 0===a&&(a="..."),{textSpan:e,kind:n,hintSpan:t,bannerText:a,autoCollapse:r}}}()}(ts||(ts={})),function(g){var l,e;function u(e,n){return{kind:e,isCaseSensitive:n}}function d(e,n){var t=n.get(e);return t||n.set(e,t=a(e)),t}function s(e,n,t){var r=function(r,e){for(var n=r.length-e.length,t=function(t){if(x(e,function(e,n){return _(r.charCodeAt(n+t))===e}))return{value:t}},a=0;a<=n;a++){var i=t(a);if("object"==typeof i)return i.value}return-1}(e,n.textLowerCase);if(0===r)return u(n.text.length===e.length?l.exact:l.prefix,g.startsWith(e,n.text));if(n.isLowerCase){if(-1===r)return;for(var a=0,i=d(e,t);a<i.length;a++){var o=i[a];if(m(e,o,n.text,!0))return u(l.substring,m(e,o,n.text,!1))}if(n.text.length<e.length&&v(e.charCodeAt(r)))return u(l.substring,!1)}else{if(0<e.indexOf(n.text))return u(l.substring,!0);if(0<n.characterSpans.length){var s=d(e,t),c=!!f(e,s,n,!1)||!f(e,s,n,!0)&&void 0;if(void 0!==c)return u(l.camelCase,c)}}}function c(e,n,t){if(x(n.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var r=s(e,n.totalTextChunk,t);if(r)return r}for(var a,i=0,o=n.subWordTextChunks;i<o.length;i++){a=p(a,s(e,o[i],t))}return a}function p(e,n){return g.min(e,n,t)}function t(e,n){return void 0===e?1:void 0===n?-1:g.compareValues(e.kind,n.kind)||g.compareBooleans(!e.isCaseSensitive,!n.isCaseSensitive)}function m(r,a,i,o,s){return void 0===s&&(s={start:0,length:i.length}),s.length<=a.length&&S(0,s.length,function(e){return n=i.charCodeAt(s.start+e),t=r.charCodeAt(a.start+e),o?_(n)===_(t):n===t;var n,t})}function f(e,n,t,r){for(var a,i,o=t.characterSpans,s=0,c=0;;){if(c===o.length)return!0;if(s===n.length)return!1;for(var l=n[s],u=!1;c<o.length;c++){var d=o[c];if(u&&(!v(t.text.charCodeAt(o[c-1].start))||!v(t.text.charCodeAt(o[c].start))))break;if(!m(e,l,t.text,r,d))break;u=!0,a=void 0===a?s:a,i=void 0===i||i,l=g.createTextSpan(l.start+d.length,l.length-d.length)}u||void 0===i||(i=!1),s++}}function v(e){if(65<=e&&e<=90)return!0;if(e<127||!g.isUnicodeIdentifierStart(e,6))return!1;var n=String.fromCharCode(e);return n===n.toUpperCase()}function y(e){if(97<=e&&e<=122)return!0;if(e<127||!g.isUnicodeIdentifierStart(e,6))return!1;var n=String.fromCharCode(e);return n===n.toLowerCase()}function _(e){return 65<=e&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function h(e){return 48<=e&&e<=57}function b(e){var n=e.toLowerCase();return{text:e,textLowerCase:n,isLowerCase:e===n,characterSpans:r(e)}}function r(e){return n(e,!1)}function a(e){return n(e,!0)}function n(e,n){for(var t,r,a,i,o,s,c,l=[],u=0,d=1;d<e.length;d++){var p=h(e.charCodeAt(d-1)),m=h(e.charCodeAt(d)),f=(o=n,s=d,void 0,c=v((i=e).charCodeAt(s-1)),v(i.charCodeAt(s))&&(!o||!c)),_=n&&(t=e,(r=d)!==(a=u)&&r+1<t.length&&v(t.charCodeAt(r))&&y(t.charCodeAt(r+1))&&x(t,v,a,r));(E(e.charCodeAt(d-1))||E(e.charCodeAt(d))||p!==m||f||_)&&(T(e,u,d)||l.push(g.createTextSpan(u,d-u)),u=d)}return T(e,u,e.length)||l.push(g.createTextSpan(u,e.length-u)),l}function E(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 T(e,n,t){return x(e,function(e){return E(e)&&95!==e},n,t)}function S(e,n,t){for(var r=e;r<n;r++)if(!t(r))return!1;return!0}function x(n,t,e,r){return void 0===e&&(e=0),void 0===r&&(r=n.length),S(e,r,function(e){return t(n.charCodeAt(e),e)})}(e=l=g.PatternMatchKind||(g.PatternMatchKind={}))[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",g.createPatternMatcher=function(e){var t=g.createMap(),r=e.trim().split(".").map(function(e){return{totalTextChunk:b(n=e.trim()),subWordTextChunks:function(e){for(var n=[],t=0,r=0,a=0;a<e.length;a++){var i=e.charCodeAt(a);v(o=i)||y(o)||h(o)||95===o||36===o?(0===r&&(t=a),r++):0<r&&(n.push(b(e.substr(t,r))),r=0)}var o;return 0<r&&n.push(b(e.substr(t,r))),n}(n)};var n});if(!r.some(function(e){return!e.subWordTextChunks.length}))return{getFullMatch:function(e,n){return function(e,n,t,r){var a;if(c(n,g.last(t),r)&&!(t.length-1>e.length)){for(var i=t.length-2,o=e.length-1;0<=i;i-=1,o-=1)a=p(a,c(e[o],t[i],r));return a}}(e,n,r,t)},getMatchForLastSegmentOfPattern:function(e){return c(e,g.last(r),t)},patternContainsDots:1<r.length}},g.breakIntoCharacterSpans=r,g.breakIntoWordSpans=a}(ts||(ts={})),function(C){C.preProcessFile=function(e,n,t){void 0===n&&(n=!0),void 0===t&&(t=!1);var r,a,i,o={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[],c=0,l=!1;function u(){return a=i,17===(i=C.scanner.scan())?c++:18===i&&c--,i}function d(){var e=C.scanner.getTokenValue(),n=C.scanner.getTokenPos();return{fileName:e,pos:n,end:n+e.length}}function p(){s.push(d()),m()}function m(){0===c&&(l=!0)}function f(){var e=C.scanner.getToken();return 124===e&&(129===(e=u())&&9===(e=u())&&(r||(r=[]),r.push({ref:d(),depth:c})),!0)}function _(){if(23===a)return!1;var e=C.scanner.getToken();if(91!==e)return!1;if(19===(e=u())){if(9===(e=u()))return p(),!0}else{if(9===e)return p(),!0;if(71===e||C.isKeyword(e))if(143===(e=u())){if(9===(e=u()))return p(),!0}else if(58===e){if(v(!0))return!0}else{if(26!==e)return!0;e=u()}if(17===e){for(e=u();18!==e&&1!==e;)e=u();18===e&&143===(e=u())&&9===(e=u())&&p()}else 39===e&&118===(e=u())&&(71===(e=u())||C.isKeyword(e))&&143===(e=u())&&9===(e=u())&&p()}return!0}function g(){var e=C.scanner.getToken();if(84!==e)return!1;if(m(),17===(e=u())){for(e=u();18!==e&&1!==e;)e=u();18===e&&143===(e=u())&&9===(e=u())&&p()}else if(39===e)143===(e=u())&&9===(e=u())&&p();else if(91===e&&(71===(e=u())||C.isKeyword(e))&&58===(e=u())&&v(!0))return!0;return!0}function v(e){var n=e?u():C.scanner.getToken();return 133===n&&(19===(n=u())&&9===(n=u())&&p(),!0)}function y(){var e=C.scanner.getToken();if(71!==e||"define"!==C.scanner.getTokenValue())return!1;if(19!==(e=u()))return!0;if(9===(e=u())){if(26!==(e=u()))return!0;e=u()}if(21!==e)return!0;for(e=u();22!==e&&1!==e;)9===e&&p(),e=u();return!0}if(n&&function(){for(C.scanner.setText(e),u();1!==C.scanner.getToken();)f()||_()||g()||t&&(v(!1)||y())||u();C.scanner.setText(void 0)}(),C.processCommentPragmas(o,e),C.processPragmasIntoFields(o,C.noop),l){if(r)for(var h=0,b=r;h<b.length;h++){var E=b[h];s.push(E.ref)}return{referencedFiles:o.referencedFiles,typeReferenceDirectives:o.typeReferenceDirectives,libReferenceDirectives:o.libReferenceDirectives,importedFiles:s,isLibFile:!!o.hasNoDefaultLib,ambientExternalModules:void 0}}var T=void 0;if(r)for(var S=0,x=r;S<x.length;S++)0===(E=x[S]).depth?(T||(T=[]),T.push(E.ref.fileName)):s.push(E.ref);return{referencedFiles:o.referencedFiles,typeReferenceDirectives:o.typeReferenceDirectives,libReferenceDirectives:o.libReferenceDirectives,importedFiles:s,isLibFile:!!o.hasNoDefaultLib,ambientExternalModules:T}}}(ts||(ts={})),function(h){!function(e){function y(e){return{canRename:!1,localizedErrorMessage:h.getLocaleSpecificMessage(e)}}(h.Rename||(h.Rename={})).getRenameInfo=function(n,e,t){var r=h.getTouchingPropertyName(e,t);return(r&&function(e){switch(e.kind){case 71:case 9:case 99:return!0;case 8:return h.isLiteralNameOfPropertyDeclarationOrIndexAccess(e);default:return!1}}(r)?function(e,n,t,r){var a=n.getSymbolAtLocation(e);if(a){var i=a.declarations;if(i&&0!==i.length){if(i.some(r))return y(h.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(h.isIdentifier(e)&&79===e.originalKeywordKind&&1536&a.parent.flags)){if(h.isStringLiteralLike(e)&&h.tryGetImportFromModuleSpecifier(e))return function(e,n,t){if(!h.isExternalModuleNameRelative(e.text))return y(h.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var r=h.find(t.declarations,h.isSourceFile);if(r){var a=e.text.endsWith("/index")||e.text.endsWith("/index.js")?void 0:h.tryRemoveSuffix(h.removeFileExtension(r.fileName),"/index"),i=void 0===a?r.fileName:a,o=void 0===a?"module":"directory",s=e.text.lastIndexOf("/")+1,c=h.createTextSpan(e.getStart(n)+1+s,e.text.length-s);return{canRename:!0,fileToRename:i,kind:o,displayName:i,fullDisplayName:i,kindModifiers:"",triggerSpan:c}}}(e,t,a);var o,s,c,l,u,d,p,m,f=h.SymbolDisplay.getSymbolKind(n,a,e),_=h.isImportOrExportSpecifierName(e)||h.isStringOrNumericLiteralLike(e)&&147===e.parent.kind?h.stripQuotes(h.getTextOfIdentifierOrLiteral(e)):void 0,g=_||n.symbolToString(a),v=_||n.getFullyQualifiedName(a);return u=g,d=v,p=f,m=h.SymbolDisplay.getSymbolModifiers(a),{canRename:!0,fileToRename:void 0,kind:p,displayName:u,fullDisplayName:d,kindModifiers:m,triggerSpan:(o=e,s=t,c=o.getStart(s),l=o.getWidth(s),9===o.kind&&(c+=1,l-=2),h.createTextSpan(c,l))}}}}}(r,n.getTypeChecker(),e,function(e){return n.isSourceFileDefaultLibrary(e.getSourceFile())}):void 0)||y(h.Diagnostics.You_cannot_rename_this_element)}}()}(ts||(ts={})),function(A){!function(e){var n,t,r,a;function d(e,n,t){var r=A.Debug.assertDefined(A.findPrecedingToken(e.getFullStart(),n,e.parent,!0));return A.rangeContainsRange(t,r)}function y(e,n){var t=function(e,n){{if(27===e.kind||19===e.kind)return{list:(r=e.parent,a=e,i=n,o=r.getChildren(i),s=o.indexOf(a),A.Debug.assert(0<=s&&o.length>s+1),o[s+1]),argumentIndex:0};var t=A.findContainingList(e);return t&&{list:t,argumentIndex:function(e,n){for(var t=0,r=0,a=e.getChildren();r<a.length;r++){var i=a[r];if(i===n)break;26!==i.kind&&t++}return t}(t,e)}}var r,a,i,o,s}(e,n);if(t){var r,a,i,o,s=t.list,c=t.argumentIndex,l=function(e){var n=e.getChildren(),t=A.countWhere(n,function(e){return 26!==e.kind});0<n.length&&26===A.last(n).kind&&t++;return t}(s);return 0!==c&&A.Debug.assertLessThan(c,l),{list:s,argumentIndex:c,argumentCount:l,argumentsSpan:(a=n,i=(r=s).getFullStart(),o=A.skipTrivia(a.text,r.getEnd(),!1),A.createTextSpan(i,o-i))}}}function c(e,n,t){var r=e.parent;if(A.isCallOrNewExpression(r)){var a=r,i=y(e,t);if(!i)return;var o=i.list,s=i.argumentIndex,c=i.argumentCount,l=i.argumentsSpan;return{isTypeParameterList:!!r.typeArguments&&r.typeArguments.pos===o.pos,invocation:{kind:0,node:a},argumentsSpan:l,argumentIndex:s,argumentCount:c}}if(A.isNoSubstitutionTemplateLiteral(e)&&A.isTaggedTemplateExpression(r))return A.isInsideTemplateLiteral(e,n,t)?h(r,0,t):void 0;if(A.isTemplateHead(e)&&191===r.parent.kind){var u=r,d=u.parent;return A.Debug.assert(204===u.kind),h(d,s=A.isInsideTemplateLiteral(e,n,t)?0:1,t)}if(A.isTemplateSpan(r)&&A.isTaggedTemplateExpression(r.parent.parent)){var p=r;d=r.parent.parent;if(A.isTemplateTail(e)&&!A.isInsideTemplateLiteral(e,n,t))return;return h(d,s=function(e,n,t,r){if(A.Debug.assert(t>=n.getStart(),"Assumed 'position' could not occur before node."),A.isTemplateLiteralToken(n))return A.isInsideTemplateLiteral(n,t,r)?0:e+2;return e+1}(p.parent.templateSpans.indexOf(p),e,n,t),t)}if(A.isJsxOpeningLikeElement(r)){var m=r.attributes.pos,f=A.skipTrivia(t.text,r.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:r},argumentsSpan:A.createTextSpan(m,f-m),argumentIndex:0,argumentCount:1}}var _=A.getPossibleTypeArgumentsInfo(e,t);if(_){var g=_.called,v=_.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:g},argumentsSpan:l=A.createTextSpanFromBounds(g.getStart(t),e.end),argumentIndex:v,argumentCount:v+1}}}function m(e){return A.isBinaryExpression(e.left)?m(e.left)+1:2}function h(e,n,t){var r=A.isNoSubstitutionTemplateLiteral(e.template)?1:e.template.templateSpans.length+1;return 0!==n&&A.Debug.assertLessThan(n,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:function(e,n){var t=e.template,r=t.getStart(),a=t.getEnd();if(204===t.kind){var i=A.last(t.templateSpans);0===i.literal.getFullWidth()&&(a=A.skipTrivia(n.text,a,!1))}return A.createTextSpan(r,a-r)}(e,t),argumentIndex:n,argumentCount:r}}function u(e){return 0===e.kind?A.getInvokedExpression(e.node):e.called}function S(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}(t=n||(n={}))[t.Call=0]="Call",t[t.TypeArgs=1]="TypeArgs",t[t.Contextual=2]="Contextual",e.getSignatureHelpItems=function(e,b,n,t,r){var a=e.getTypeChecker(),i=A.findTokenOnLeftOfPosition(b,n);if(i){var o=!!t&&"characterTyped"===t.kind;if(!o||!A.isInString(b,n,i)&&!A.isInComment(b,n)){var E=function(e,i,o,s){for(var n=function(e){A.Debug.assert(A.rangeContainsRange(e.parent,e),"Not a subspan",function(){return"Child: "+A.Debug.showSyntaxKind(e)+", parent: "+A.Debug.showSyntaxKind(e.parent)});var n,t,r,a=(t=i,function(e,n,t,r){var a=function(e,n,t){if(19===e.kind||26===e.kind){var r=e.parent;switch(r.kind){case 193:case 154:case 194:case 195:var a=y(e,n);if(!a)return;var i=a.argumentIndex,o=a.argumentCount,s=a.argumentsSpan,c=A.isMethodDeclaration(r)?t.getContextualTypeForObjectLiteralElement(r):t.getContextualType(r);return c&&{contextualType:c,argumentIndex:i,argumentCount:o,argumentsSpan:s};case 202:var l=function e(n){return A.isBinaryExpression(n.parent)?e(n.parent):n}(r),u=t.getContextualType(l),d=19===e.kind?0:m(r)-1,p=m(l);return u&&{contextualType:u,argumentIndex:d,argumentCount:p,argumentsSpan:A.createTextSpanFromNode(r)};default:return}}}(e,t,r);if(a){var i,o=a.contextualType,s=a.argumentIndex,c=a.argumentCount,l=a.argumentsSpan,u=o.getCallSignatures();return 1!==u.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:A.first(u),node:e,symbol:(i=o.symbol,"__type"===i.name&&A.firstDefined(i.declarations,function(e){return A.isFunctionTypeNode(e)?e.parent.symbol:void 0})||i)},argumentsSpan:l,argumentIndex:s,argumentCount:c}}}(n=e,0,r=o,s)||c(n,t,r));if(a)return{value:a}},t=e;!A.isBlock(t)&&!A.isSourceFile(t);t=t.parent){var r=n(t);if("object"==typeof r)return r.value}}(i,n,b,a);if(E){r.throwIfCancellationRequested();var T=function(e,n,t,r,a){var i=e.invocation,o=e.argumentCount;switch(i.kind){case 0:if(a&&!function(e,n,t){if(!A.isCallOrNewExpression(n))return!1;var r=n.getChildren(t);switch(e.kind){case 19:return A.contains(r,e);case 26:var a=A.findContainingList(e);return!!a&&A.contains(r,a);case 27:return d(e,t,n.expression);default:return!1}}(r,i.node,t))return;var s=[],c=n.getResolvedSignatureForSignatureHelp(i.node,s,o);return 0===s.length?void 0:{kind:0,candidates:s,resolvedSignature:c};case 1:var l=i.called;if(a&&!d(r,t,A.isIdentifier(l)?l.parent:l))return;var s=A.getPossibleGenericSignatures(l,o,n);if(0!==s.length)return{kind:0,candidates:s,resolvedSignature:A.first(s)};var u=n.getSymbolAtLocation(l);return u&&{kind:1,symbol:u};case 2:return{kind:0,candidates:[i.signature],resolvedSignature:i.signature};default:return A.Debug.assertNever(i)}}(E,a,b,i,o);return r.throwIfCancellationRequested(),T?a.runWithCancellationToken(r,function(e){return 0===T.kind?x(T.candidates,T.resolvedSignature,E,b,e):(n=T.symbol,r=b,a=e,i=(t=E).argumentCount,o=t.argumentsSpan,s=t.invocation,c=t.argumentIndex,(l=a.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(n))?{items:[(u=n,d=l,p=a,m=S(s),f=r,_=A.symbolToDisplayParts(p,u),g=A.createPrinter({removeComments:!0}),v=d.map(function(e){return D(e,p,m,f,g)}),y=u.getDocumentationComment(p),h=u.getJsDocTags(),{isVariadic:!1,prefixDisplayParts:_.concat([A.punctuationPart(27)]),suffixDisplayParts:[A.punctuationPart(29)],separatorDisplayParts:C,parameters:v,documentation:y,tags:h})],applicableSpan:o,selectedItemIndex:0,argumentIndex:c,argumentCount:i}:void 0);var n,t,r,a,i,o,s,c,l,u,d,p,m,f,_,g,v,y,h}):A.isSourceFileJS(b)?function(a,e,i){if(2!==a.invocation.kind){var n=u(a.invocation),t=A.isIdentifier(n)?n.text:A.isPropertyAccessExpression(n)?n.name.text:void 0,o=e.getTypeChecker();return void 0===t?void 0:A.firstDefined(e.getSourceFiles(),function(r){return A.firstDefined(r.getNamedDeclarations().get(t),function(e){var n=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),t=n&&n.getCallSignatures();if(t&&t.length)return o.runWithCancellationToken(i,function(e){return x(t,t[0],a,r,e)})})})}}(E,e,r):void 0}}}},(a=r||(r={}))[a.Candidate=0]="Candidate",a[a.Type=1]="Type",e.getArgumentInfoForCompletions=function(e,n,t){var r=c(e,n,t);return!r||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}};var T=3137536;function x(e,n,t,v,y){var h=t.isTypeParameterList,r=t.argumentCount,a=t.argumentsSpan,i=t.invocation,o=t.argumentIndex,b=S(i),s=2===i.kind?i.symbol:y.getSymbolAtLocation(u(i)),E=s?A.symbolToDisplayParts(y,s,void 0,void 0):A.emptyArray,c=e.map(function(e){return t=E,i=(h?function(r,a,i,o){var e=(r.target||r).typeParameters,s=A.createPrinter({removeComments:!0}),n=(e||A.emptyArray).map(function(e){return D(e,a,i,o,s)}),t=A.mapToDisplayParts(function(e){var n=r.thisParameter?[a.symbolToParameterDeclaration(r.thisParameter,i,T)]:[],t=A.createNodeArray(n.concat(r.parameters.map(function(e){return a.symbolToParameterDeclaration(e,i,T)})));s.writeList(1296,t,o,e)});return{isVariadic:!1,parameters:n,prefix:[A.punctuationPart(27)],suffix:[A.punctuationPart(29)].concat(t)}}:function(t,c,l,u){var e=t.hasRestParameter,d=A.createPrinter({removeComments:!0}),n=A.mapToDisplayParts(function(e){if(t.typeParameters&&t.typeParameters.length){var n=A.createNodeArray(t.typeParameters.map(function(e){return c.typeParameterToDeclaration(e,l)}));d.writeList(26896,n,u,e)}}),r=t.parameters.map(function(e){return t=e,r=c,a=l,i=u,o=d,n=A.mapToDisplayParts(function(e){var n=r.symbolToParameterDeclaration(t,a,T);o.writeNode(4,n,i,e)}),s=r.isOptionalParameter(t.valueDeclaration),{name:t.name,documentation:t.getDocumentationComment(r),displayParts:n,isOptional:s};var t,r,a,i,o,n,s});return{isVariadic:e,parameters:r,prefix:n.concat([A.punctuationPart(19)]),suffix:[A.punctuationPart(20)]}})(n=e,r=y,a=b,v),o=i.isVariadic,s=i.parameters,c=i.prefix,l=i.suffix,u=t.concat(c),d=l.concat((f=n,_=a,g=r,A.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var n=g.getTypePredicateOfSignature(f);n?g.writeTypePredicate(n,_,void 0,e):g.writeType(g.getReturnTypeOfSignature(f),_,void 0,e)}))),p=n.getDocumentationComment(r),m=n.getJsDocTags(),{isVariadic:o,prefixDisplayParts:u,suffixDisplayParts:d,separatorDisplayParts:C,parameters:s,documentation:p,tags:m};var n,t,r,a,i,o,s,c,l,u,d,p,m,f,_,g});0!==o&&A.Debug.assertLessThan(o,r);var l=e.indexOf(n);return A.Debug.assert(-1!==l),{items:c,applicableSpan:a,selectedItemIndex:l,argumentIndex:o,argumentCount:r}}var C=[A.punctuationPart(26),A.spacePart()];function D(t,r,a,i,o){var e=A.mapToDisplayParts(function(e){var n=r.typeParameterToDeclaration(t,a);o.writeNode(4,n,i,e)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:e,isOptional:!1}}}(A.SignatureHelp||(A.SignatureHelp={}))}(ts||(ts={})),function(_){var g=/^\/\/[@#] source[M]appingURL=(.+)\s*$/,v=/^\s*(\/\/[@#] .*)?$/,y=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;_.getSourceMapper=function(u,d,a,p,i){var m;return{tryGetOriginalLocation:function e(n){if(_.isDeclarationFileName(n.fileName)){var t=s(n.fileName);if(t){var r=o(n.fileName,t).getOriginalPosition(n);return r===n?void 0:e(r)||r}}},tryGetGeneratedLocation:function(e){var n=i(),t=_.getDeclarationEmitOutputFilePathWorker(e.fileName,n.getCompilerOptions(),d,n.getCommonSourceDirectory(),u);if(void 0!==t){var r=s(t);if(r){var a=o(t,r).getGeneratedPosition(e);return a===e?void 0:a}}},toLineColumnOffset:function(e,n){var t=_.toPath(e,d,u);return(i().getSourceFile(t)||m.get(t)).getLineAndCharacterOfPosition(n)},clearCache:function(){m=_.createSourceFileLikeCache(p)}};function f(e,n,t){var r;try{r=JSON.parse(n)}catch(e){}return r&&r.sources&&r.file&&r.mappings?e.sourceMapper=_.sourcemaps.decode({readFile:function(e){return p.readFile(e)},fileExists:function(e){return p.fileExists(e)},getCanonicalFileName:u,log:a},t,r,i(),m):e.sourceMapper=_.sourcemaps.identitySourceMapper}function o(e,n){if(!p.readFile||!p.fileExists)return n.sourceMapper=_.sourcemaps.identitySourceMapper;if(n.sourceMapper)return n.sourceMapper;var t=function(e){var n=m.get(_.toPath(e,d,u));if(n)for(var t=_.getLineStarts(n),r=t.length-1;0<=r;r--){var a=n.text.substring(t[r],t[r+1]),i=g.exec(a);if(i)return i[1];if(!a.match(v))break}}(e);if(t){var r=y.exec(t);if(r){if(r[1]){var a=r[1];return f(n,_.base64decode(_.sys,a),e)}t=void 0}}var i=[];t&&i.push(t),i.push(e+".map");for(var o=0,s=i;o<s.length;o++){var c=s[o],l=_.toPath(c,_.getDirectoryPath(e),u);if(p.fileExists(l))return f(n,p.readFile(l),l)}return n.sourceMapper=_.sourcemaps.identitySourceMapper}function s(e){return i().getSourceFile(e)||m.get(_.toPath(e,d,u))}}}(ts||(ts={})),function(m){function f(e){switch(e.kind){case 247:var n=e.importClause,t=e.moduleSpecifier;return n&&!n.name&&n.namedBindings&&249===n.namedBindings.kind&&m.isStringLiteral(t)?n.namedBindings.name:void 0;case 246:return e.name;default:return}}function _(e,n,t){if(!m.isAsyncFunction(e)&&e.body){var r=n.getTypeAtLocation(e),a=n.getSignaturesOfType(r,0),i=a.length?n.getReturnTypeOfSignature(a[0]):void 0;if(i&&n.getPromisedTypeOfPromise(i))0<o(e).length&&t.push(m.createDiagnosticForNode(!e.name&&m.isVariableDeclaration(e.parent)&&m.isIdentifier(e.parent.name)?e.parent.name:e,m.Diagnostics.This_may_be_converted_to_an_async_function))}}function o(e){var n=[];function t(e){m.isFunctionLike(e)||(m.isReturnStatement(e)&&e.expression&&function(e){if(!r(e)||!e.arguments.every(a))return!1;var n=e.expression;for(;r(n)||m.isPropertyAccessExpression(n);){if(m.isCallExpression(n)&&!n.arguments.every(a))return!1;n=n.expression}return!0}(e.expression)&&n.push(e),m.forEachChild(e,t))}return m.isFunctionLike(e)?m.forEachChild(e,t):t(e),n}function r(e){return m.isCallExpression(e)&&(m.hasPropertyAccessExpressionWithName(e,"then")||m.hasPropertyAccessExpressionWithName(e,"catch"))}function a(e){switch(e.kind){case 95:case 71:case 237:case 194:case 195:return!0;default:return!1}}m.computeSuggestionDiagnostics=function(o,e,n){e.getSemanticDiagnostics(o,n);var t,s=[],c=e.getTypeChecker();o.commonJsModuleIndicator&&(m.programContainsEs6Modules(e)||m.compilerOptionsIndicateEs6Modules(e.getCompilerOptions()))&&o.statements.some(function(e){switch(e.kind){case 217:return e.declarationList.declarations.some(function(e){return m.isRequireCall(function e(n){return m.isPropertyAccessExpression(n)?e(n.expression):n}(e.initializer),!0)});case 219:var n=e.expression;if(!m.isBinaryExpression(n))return m.isRequireCall(n,!0);var t=m.getAssignmentDeclarationKind(n);return 1===t||2===t;default:return!1}})&&s.push(m.createDiagnosticForNode((t=o.commonJsModuleIndicator,m.isBinaryExpression(t)?t.left:t),m.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var l=m.isSourceFileJS(o);if(function e(n){if(l)switch(n.kind){case 194:var t=m.getDeclarationOfExpando(n);if(t){var r=t.symbol;if(r&&(r.exports&&r.exports.size||r.members&&r.members.size)){s.push(m.createDiagnosticForNode(m.isVariableDeclaration(n.parent)?n.parent.name:n,m.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));break}}case 237:var a=n.symbol;a.members&&0<a.members.size&&s.push(m.createDiagnosticForNode(m.isVariableDeclaration(n.parent)?n.parent.name:n,m.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}else{if(m.isVariableStatement(n)&&n.parent===o&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){var i=n.declarationList.declarations[0].initializer;i&&m.isRequireCall(i,!0)&&s.push(m.createDiagnosticForNode(i,m.Diagnostics.require_call_may_be_converted_to_an_import))}m.codefix.parameterShouldGetTypeFromJSDoc(n)&&s.push(m.createDiagnosticForNode(n.name||n,m.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}m.isFunctionLikeDeclaration(n)&&_(n,c,s),n.forEachChild(e)}(o),m.getAllowSyntheticDefaultImports(e.getCompilerOptions()))for(var r=0,a=o.imports;r<a.length;r++){var i=a[r],u=f(m.importFromModuleSpecifier(i));if(u){var d=m.getResolvedModule(o,i.text),p=d&&e.getSourceFile(d.resolvedFileName);p&&p.externalModuleIndicator&&m.isExportAssignment(p.externalModuleIndicator)&&p.externalModuleIndicator.isExportEquals&&s.push(m.createDiagnosticForNode(u,m.Diagnostics.Import_may_be_converted_to_a_default_import))}}return m.addRange(s,o.bindSuggestionDiagnostics),m.addRange(s,e.getSuggestionDiagnostics(o,n)),s.sort(function(e,n){return e.start-n.start})},m.getReturnStatementsWithPromiseHandlers=o}(ts||(ts={})),function(Y){!function(e){function J(e,n,t){var r=X(e,n,t);if(""!==r)return r;var a=Y.getCombinedLocalAndExportSymbolFlags(n);return 32&a?Y.getDeclarationOfKind(n,207)?"local class":"class":384&a?"enum":524288&a?"type":64&a?"interface":262144&a?"type parameter":262144&a?"type parameter":8&a?"enum member":2097152&a?"alias":1536&a?"module":r}function X(e,n,t){var r=e.getRootSymbols(n);if(1===r.length&&8192&Y.first(r).flags&&0!==e.getTypeOfSymbolAtLocation(n,t).getNonNullableType().getCallSignatures().length)return"method";if(e.isUndefinedSymbol(n))return"var";if(e.isArgumentsSymbol(n))return"local var";if(99===t.kind&&Y.isExpression(t))return"parameter";var a=Y.getCombinedLocalAndExportSymbolFlags(n);if(3&a)return Y.isFirstDeclarationOfSymbolParameter(n)?"parameter":n.valueDeclaration&&Y.isVarConst(n.valueDeclaration)?"const":Y.forEach(n.declarations,Y.isLet)?"let":o(n)?"local var":"var";if(16&a)return o(n)?"local function":"function";if(32768&a)return"getter";if(65536&a)return"setter";if(8192&a)return"method";if(16384&a)return"constructor";if(4&a){if(33554432&a&&6&n.checkFlags){var i=Y.forEach(e.getRootSymbols(n),function(e){var n=e.getFlags();if(98311&n)return"property";Y.Debug.assert(!!(8208&n))});return i||(e.getTypeOfSymbolAtLocation(n,t).getCallSignatures().length?"method":"property")}switch(t.parent&&t.parent.kind){case 260:case 258:case 259:return 71===t.kind?"property":"JSX attribute";case 265:return"JSX attribute";default:return"property"}}return""}function o(e){return!e.parent&&Y.forEach(e.declarations,function(e){if(194===e.kind)return!0;if(235!==e.kind&&237!==e.kind)return!1;for(var n=e.parent;!Y.isFunctionBlock(n);n=n.parent)if(277===n.kind||243===n.kind)return!1;return!0})}e.getSymbolKind=J,e.getSymbolModifiers=function(e){var n=e&&e.declarations&&0<e.declarations.length?Y.getNodeModifiers(e.declarations[0]):"",t=e&&16777216&e.flags?"optional":"";return n&&t?n+","+t:n||t},e.getSymbolDisplayPartsDocumentationAndSymbolKind=function e(a,r,i,o,n,t,s){void 0===t&&(t=Y.getMeaningFromLocation(n));var c,l,u,d,p,m,f=[],_=Y.getCombinedLocalAndExportSymbolFlags(r),g=1&t?X(a,r,n):"",v=!1,y=99===n.kind&&Y.isInExpressionContext(n);if(99===n.kind&&!y)return{displayParts:[Y.keywordPart(99)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==g||32&_||2097152&_){"getter"!==g&&"setter"!==g||(g="property");var h=void 0;if(u=y?a.getTypeAtLocation(n):a.getTypeOfSymbolAtLocation(r.exportSymbol||r,n),n.parent&&187===n.parent.kind){var b=n.parent.name;(b===n||b&&0===b.getFullWidth())&&(n=n.parent)}var E=void 0;if(Y.isCallOrNewExpression(n)?E=n:Y.isCallExpressionTarget(n)||Y.isNewExpressionTarget(n)?E=n.parent:n.parent&&Y.isJsxOpeningLikeElement(n.parent)&&Y.isFunctionLike(r.valueDeclaration)&&(E=n.parent),E){h=a.getResolvedSignature(E,[]);var T=190===E.kind||Y.isCallExpression(E)&&97===E.expression.kind,S=T?u.getConstructSignatures():u.getCallSignatures();if(Y.contains(S,h.target)||Y.contains(S,h)||(h=S.length?S[0]:void 0),h){switch(T&&32&_?(g="constructor",U(u.symbol,g)):2097152&_?(W(g="alias"),f.push(Y.spacePart()),T&&(f.push(Y.keywordPart(94)),f.push(Y.spacePart())),H(r)):U(r,g),g){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":f.push(Y.punctuationPart(56)),f.push(Y.spacePart()),16&Y.getObjectFlags(u)||!u.symbol||(Y.addRange(f,Y.symbolToDisplayParts(a,u.symbol,o,void 0,5)),f.push(Y.lineBreakPart())),T&&(f.push(Y.keywordPart(94)),f.push(Y.spacePart())),q(h,S,262144);break;default:q(h,S)}v=!0}}else if(Y.isNameOfFunctionDeclaration(n)&&!(98304&_)||123===n.kind&&155===n.parent.kind){var x=n.parent;Y.find(r.declarations,function(e){return e===(123===n.kind?x.parent:x)})&&(S=155===x.kind?u.getNonNullableType().getConstructSignatures():u.getNonNullableType().getCallSignatures(),h=a.isImplementationOfOverload(x)?S[0]:a.getSignatureFromDeclaration(x),155===x.kind?(g="constructor",U(u.symbol,g)):U(158!==x.kind||2048&u.symbol.flags||4096&u.symbol.flags?r:u.symbol,g),q(h,S),v=!0)}}if(32&_&&!v&&!y&&(K(),Y.getDeclarationOfKind(r,207)?W("local class"):f.push(Y.keywordPart(75)),f.push(Y.spacePart()),H(r),z(r,i)),64&_&&2&t&&(B(),f.push(Y.keywordPart(109)),f.push(Y.spacePart()),H(r),z(r,i)),524288&_&&2&t&&(B(),f.push(Y.keywordPart(139)),f.push(Y.spacePart()),H(r),z(r,i),f.push(Y.spacePart()),f.push(Y.operatorPart(58)),f.push(Y.spacePart()),Y.addRange(f,Y.typeToDisplayParts(a,a.getDeclaredTypeOfSymbol(r),o,8388608))),384&_&&(B(),Y.some(r.declarations,function(e){return Y.isEnumDeclaration(e)&&Y.isEnumConst(e)})&&(f.push(Y.keywordPart(76)),f.push(Y.spacePart())),f.push(Y.keywordPart(83)),f.push(Y.spacePart()),H(r)),1536&_){B();var C=(F=Y.getDeclarationOfKind(r,242))&&F.name&&71===F.name.kind;f.push(Y.keywordPart(C?130:129)),f.push(Y.spacePart()),H(r)}if(262144&_&&2&t)if(B(),f.push(Y.punctuationPart(19)),f.push(Y.textPart("type parameter")),f.push(Y.punctuationPart(20)),f.push(Y.spacePart()),H(r),r.parent)j(),H(r.parent,o),z(r.parent,o);else{var D=Y.getDeclarationOfKind(r,148);if(void 0===D)return Y.Debug.fail();(F=D.parent)&&(Y.isFunctionLikeKind(F.kind)?(j(),h=a.getSignatureFromDeclaration(F),159===F.kind?(f.push(Y.keywordPart(94)),f.push(Y.spacePart())):158!==F.kind&&F.name&&H(F.symbol),Y.addRange(f,Y.signatureToDisplayParts(a,h,i,32))):240===F.kind&&(j(),f.push(Y.keywordPart(139)),f.push(Y.spacePart()),H(F.symbol),z(F.symbol,i)))}if(8&_&&(U(r,g="enum member"),276===(F=r.declarations[0]).kind)){var A=a.getConstantValue(F);void 0!==A&&(f.push(Y.spacePart()),f.push(Y.operatorPart(58)),f.push(Y.spacePart()),f.push(Y.displayPart(Y.getTextOfConstantValue(A),"number"==typeof A?Y.SymbolDisplayPartKind.numericLiteral:Y.SymbolDisplayPartKind.stringLiteral)))}if(2097152&_){if(B(),!v){var L=a.getAliasedSymbol(r);if(L!==r&&L.declarations&&0<L.declarations.length){var k=L.declarations[0],N=Y.getNameOfDeclaration(k);if(N){var I=Y.isModuleWithStringLiteralName(k)&&Y.hasModifier(k,2),M="default"!==r.name&&!I,O=e(a,L,Y.getSourceFileOfNode(k),k,N,t,M?r:L);f.push.apply(f,O.displayParts),f.push(Y.lineBreakPart()),p=O.documentation,m=O.tags}}}switch(r.declarations[0].kind){case 245:f.push(Y.keywordPart(84)),f.push(Y.spacePart()),f.push(Y.keywordPart(130));break;case 252:f.push(Y.keywordPart(84)),f.push(Y.spacePart()),f.push(Y.keywordPart(r.declarations[0].isExportEquals?58:79));break;case 255:f.push(Y.keywordPart(84));break;default:f.push(Y.keywordPart(91))}f.push(Y.spacePart()),H(r),Y.forEach(r.declarations,function(e){if(246===e.kind){var n=e;if(Y.isExternalModuleImportEqualsDeclaration(n))f.push(Y.spacePart()),f.push(Y.operatorPart(58)),f.push(Y.spacePart()),f.push(Y.keywordPart(133)),f.push(Y.punctuationPart(19)),f.push(Y.displayPart(Y.getTextOfNode(Y.getExternalModuleImportEqualsDeclarationExpression(n)),Y.SymbolDisplayPartKind.stringLiteral)),f.push(Y.punctuationPart(20));else{var t=a.getSymbolAtLocation(n.moduleReference);t&&(f.push(Y.spacePart()),f.push(Y.operatorPart(58)),f.push(Y.spacePart()),H(t,o))}return!0}})}if(!v)if(""!==g){if(u)if(y?(B(),f.push(Y.keywordPart(99))):U(r,g),"property"===g||"JSX attribute"===g||3&_||"local var"===g||y)if(f.push(Y.punctuationPart(56)),f.push(Y.spacePart()),u.symbol&&262144&u.symbol.flags){var w=Y.mapToDisplayParts(function(e){var n=a.typeParameterToDeclaration(u,o);V().writeNode(4,n,Y.getSourceFileOfNode(Y.getParseTreeNode(o)),e)});Y.addRange(f,w)}else Y.addRange(f,Y.typeToDisplayParts(a,u,o));else(16&_||8192&_||16384&_||131072&_||98304&_||"method"===g)&&(S=u.getNonNullableType().getCallSignatures()).length&&q(S[0],S)}else g=J(a,r,n);if(!c&&(c=r.getDocumentationComment(a),l=r.getJsDocTags(),0===c.length&&4&_&&r.parent&&Y.forEach(r.parent.declarations,function(e){return 277===e.kind})))for(var P=0,R=r.declarations;P<R.length;P++){var F;if((F=R[P]).parent&&202===F.parent.kind){var G=a.getSymbolAtLocation(F.parent.right);if(G&&(c=G.getDocumentationComment(a),l=G.getJsDocTags(),0<c.length))break}}return 0===c.length&&p&&(c=p),0===l.length&&m&&(l=m),{displayParts:f,documentation:c,symbolKind:g,tags:0===l.length?void 0:l};function V(){return d||(d=Y.createPrinter({removeComments:!0})),d}function B(){f.length&&f.push(Y.lineBreakPart()),K()}function K(){s&&(W("alias"),f.push(Y.spacePart()))}function j(){f.push(Y.spacePart()),f.push(Y.keywordPart(92)),f.push(Y.spacePart())}function H(e,n){s&&e===r&&(e=s);var t=Y.symbolToDisplayParts(a,e,n||i,void 0,7);Y.addRange(f,t),16777216&r.flags&&f.push(Y.punctuationPart(55))}function U(e,n){B(),n&&(W(n),e&&!Y.some(e.declarations,function(e){return Y.isArrowFunction(e)||(Y.isFunctionExpression(e)||Y.isClassExpression(e))&&!e.name})&&(f.push(Y.spacePart()),H(e)))}function W(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":return void f.push(Y.textOrKeywordPart(e));default:return f.push(Y.punctuationPart(19)),f.push(Y.textOrKeywordPart(e)),void f.push(Y.punctuationPart(20))}}function q(e,n,t){void 0===t&&(t=0),Y.addRange(f,Y.signatureToDisplayParts(a,e,o,32|t)),1<n.length&&(f.push(Y.spacePart()),f.push(Y.punctuationPart(19)),f.push(Y.operatorPart(37)),f.push(Y.displayPart((n.length-1).toString(),Y.SymbolDisplayPartKind.numericLiteral)),f.push(Y.spacePart()),f.push(Y.textPart(2===n.length?"overload":"overloads")),f.push(Y.punctuationPart(20)));var r=e.getDocumentationComment(a);c=0===r.length?void 0:r,l=e.getJsDocTags()}function z(t,r){var e=Y.mapToDisplayParts(function(e){var n=a.symbolToTypeParameterDeclarations(t,r);V().writeList(26896,n,Y.getSourceFileOfNode(Y.getParseTreeNode(r)),e)});Y.addRange(f,e)}}}(Y.SymbolDisplay||(Y.SymbolDisplay={}))}(ts||(ts={})),function(d){function o(e,n){var t=[],r=n.compilerOptions?p(n.compilerOptions,t):d.getDefaultCompilerOptions();r.isolatedModules=!0,r.suppressOutputPathCheck=!0,r.allowNonTsExtensions=!0,r.noLib=!0,r.lib=void 0,r.types=void 0,r.noEmit=void 0,r.noEmitOnError=void 0,r.paths=void 0,r.rootDirs=void 0,r.declaration=void 0,r.composite=void 0,r.declarationDir=void 0,r.out=void 0,r.outFile=void 0,r.noResolve=!0;var a=n.fileName||(r.jsx?"module.tsx":"module.ts"),i=d.createSourceFile(a,e,r.target);n.moduleName&&(i.moduleName=n.moduleName),n.renamedDependencies&&(i.renamedDependencies=d.createMapFromTemplate(n.renamedDependencies));var o,s,c=d.getNewLineCharacter(r),l={getSourceFile:function(e){return e===d.normalizePath(a)?i:void 0},writeFile:function(e,n){d.fileExtensionIs(e,".map")?(d.Debug.assertEqual(s,void 0,"Unexpected multiple source map outputs, file:",e),s=n):(d.Debug.assertEqual(o,void 0,"Unexpected multiple outputs, file:",e),o=n)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return c},fileExists:function(e){return e===a},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},u=d.createProgram([a],r,l);return n.reportDiagnostics&&(d.addRange(t,u.getSyntacticDiagnostics(i)),d.addRange(t,u.getOptionsDiagnostics())),u.emit(void 0,void 0,void 0,void 0,n.transformers),void 0===o?d.Debug.fail("Output generation failed"):{outputText:o,diagnostics:t,sourceMapText:s}}var i;function p(t,r){i=i||d.filter(d.optionDeclarations,function(e){return"object"==typeof e.type&&!d.forEachEntry(e.type,function(e){return"number"!=typeof e})}),t=d.cloneCompilerOptions(t);for(var e=function(e){if(!d.hasProperty(t,e.name))return"continue";var n=t[e.name];d.isString(n)?t[e.name]=d.parseCustomTypeOption(e,n,r):d.forEachEntry(e.type,function(e){return e===n})||r.push(d.createCompilerDiagnosticForInvalidCustomType(e))},n=0,a=i;n<a.length;n++){e(a[n])}return t}d.transpileModule=o,d.transpile=function(e,n,t,r,a){var i=o(e,{compilerOptions:n,fileName:t,reportDiagnostics:!!r,moduleName:a});return d.addRange(r,i.diagnostics),i.outputText},d.fixupCompilerOptions=p}(ts||(ts={})),function(i){!function(e){var n;(n=e.FormattingRequestKind||(e.FormattingRequestKind={}))[n.FormatDocument=0]="FormatDocument",n[n.FormatSelection=1]="FormatSelection",n[n.FormatOnEnter=2]="FormatOnEnter",n[n.FormatOnSemicolon=3]="FormatOnSemicolon",n[n.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",n[n.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace";var t=function(){function e(e,n,t){this.sourceFile=e,this.formattingRequestKind=n,this.options=t}return e.prototype.updateContext=function(e,n,t,r,a){i.Debug.assert(void 0!==e,"currentTokenSpan is null"),i.Debug.assert(void 0!==n,"currentTokenParent is null"),i.Debug.assert(void 0!==t,"nextTokenSpan is null"),i.Debug.assert(void 0!==r,"nextTokenParent is null"),i.Debug.assert(void 0!==a,"commonParent is null"),this.currentTokenSpan=e,this.currentTokenParent=n,this.nextTokenSpan=t,this.nextTokenParent=r,this.contextNode=a,this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},e.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},e.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},e.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,n=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===n}return this.tokensAreOnSameLine},e.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},e.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},e.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},e.prototype.BlockIsOnOneLine=function(e){var n=i.findChildOfKind(e,17,this.sourceFile),t=i.findChildOfKind(e,18,this.sourceFile);return!(!n||!t)&&this.sourceFile.getLineAndCharacterOfPosition(n.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(t.getStart(this.sourceFile)).line},e}();e.FormattingContext=t}(i.formatting||(i.formatting={}))}(ts||(ts={})),function(_){var e,n,t,g,v;e=_.formatting||(_.formatting={}),g=_.createScanner(6,!1,0),v=_.createScanner(6,!1,1),(t=n||(n={}))[t.Scan=0]="Scan",t[t.RescanGreaterThanToken=1]="RescanGreaterThanToken",t[t.RescanSlashToken=2]="RescanSlashToken",t[t.RescanTemplateToken=3]="RescanTemplateToken",t[t.RescanJsxIdentifier=4]="RescanJsxIdentifier",t[t.RescanJsxText=5]="RescanJsxText",e.getFormattingScanner=function(e,n,r,o,t){var s=1===n?v:g;s.setText(e),s.setTextPos(r);var c,l,u,d,p,a=!0,i=t({advance:function(){p=void 0,s.getStartPos()!==r?a=!!l&&4===_.last(l).kind:s.scan(),l=c=void 0;for(var e=s.getStartPos();e<o;){var n=s.getToken();if(!_.isTrivia(n))break;s.scan();var t={pos:e,end:s.getStartPos(),kind:n};e=s.getStartPos(),c=_.append(c,t)}u=s.getStartPos()},readTokenInfo:function(e){_.Debug.assert(m());var n,t=function(e){switch(e.kind){case 31:case 66:case 67:case 47:case 46:return!0}return!1}(e)?1:12===e.kind?2:15===(n=e).kind||16===n.kind?3:function(e){if(e.parent)switch(e.parent.kind){case 265:case 260:case 261:case 259:return _.isKeyword(e.kind)||71===e.kind}return!1}(e)?4:10===e.kind?5:0;if(p&&t===d)return f(p,e);s.getStartPos()!==u&&(_.Debug.assert(void 0!==p),s.setTextPos(u),s.scan());var r=function(e,n){var t,r=s.getToken();switch(d=0,n){case 1:if(29!==r)break;d=1;var a=s.reScanGreaterToken();return _.Debug.assert(e.kind===a),a;case 2:if(41!==(t=r)&&63!==t)break;d=2;var a=s.reScanSlashToken();return _.Debug.assert(e.kind===a),a;case 3:if(18===r)return d=3,s.reScanTemplateToken();break;case 4:return d=4,s.scanJsxIdentifier();case 5:return d=5,s.reScanJsxToken();case 0:break;default:_.Debug.assertNever(n)}return r}(e,t),a={pos:s.getStartPos(),end:s.getTextPos(),kind:r};for(l&&(l=void 0);s.getStartPos()<o&&(r=s.scan(),_.isTrivia(r));){var i={pos:s.getStartPos(),end:s.getTextPos(),kind:r};if(l||(l=[]),l.push(i),4===r){s.scan();break}}return f(p={leadingTrivia:c,trailingTrivia:l,token:a},e)},isOnToken:m,getCurrentLeadingTrivia:function(){return c},lastTrailingTriviaWasNewLine:function(){return a},skipToEndOf:function(e){s.setTextPos(e.end),u=s.getStartPos(),a=!1,l=c=p=d=void 0}});return p=void 0,s.setText(void 0),i;function m(){var e=p?p.token.kind:s.getToken();return(p?p.token.pos:s.getStartPos())<o&&1!==e&&!_.isTrivia(e)}function f(e,n){return _.isToken(n)&&e.token.kind!==n.kind&&(e.token.kind=n.kind),e}}}(ts||(ts={})),function(e){var n,t,r;(n=e.formatting||(e.formatting={})).anyContext=e.emptyArray,(t=n.RuleAction||(n.RuleAction={}))[t.Ignore=1]="Ignore",t[t.Space=2]="Space",t[t.NewLine=4]="NewLine",t[t.Delete=8]="Delete",(r=n.RuleFlags||(n.RuleFlags={}))[r.None=0]="None",r[r.CanDeleteNewLines=1]="CanDeleteNewLines"}(ts||(ts={})),function(pe){!function(_){function g(e,n,t,r,a,i){return void 0===i&&(i=0),{leftTokenRange:o(n),rightTokenRange:o(t),rule:{debugName:e,context:r,action:a,flags:i}}}function v(e){return{tokens:e,isSpecific:!0}}function o(e){return"number"==typeof e?v([e]):pe.isArray(e)?v(e):e}function y(e,n,t){void 0===t&&(t=[]);for(var r=[],a=e;a<=n;a++)pe.contains(t,a)||r.push(a);return v(r)}function h(n){return function(e){return e.options&&e.options.hasOwnProperty(n)&&!!e.options[n]}}function b(n){return function(e){return e.options&&e.options.hasOwnProperty(n)&&!e.options[n]}}function E(n){return function(e){return!e.options||!e.options.hasOwnProperty(n)||!e.options[n]}}function T(n){return function(e){return!e.options||!e.options.hasOwnProperty(n)||!e.options[n]||e.TokensAreOnSameLine()}}function S(n){return function(e){return!e.options||!e.options.hasOwnProperty(n)||!!e.options[n]}}function x(e){return 223===e.contextNode.kind}function C(e){return!x(e)}function D(e){switch(e.contextNode.kind){case 202:case 203:case 173:case 210:case 255:case 251:case 161:case 171:case 172:return!0;case 184:case 240:case 246:case 235:case 149:case 276:case 152:case 151:return 58===e.currentTokenSpan.kind||58===e.nextTokenSpan.kind;case 224:case 148:return 92===e.currentTokenSpan.kind||92===e.nextTokenSpan.kind;case 225:return 145===e.currentTokenSpan.kind||145===e.nextTokenSpan.kind}return!1}function A(e){return!D(e)}function L(e){return!k(e)}function k(e){var n=e.contextNode.kind;return 152===n||151===n||149===n||235===n||pe.isFunctionLikeKind(n)}function N(e){return 203===e.contextNode.kind||173===e.contextNode.kind}function I(e){return e.TokensAreOnSameLine()||P(e)}function M(e){return 182===e.contextNode.kind||179===e.contextNode.kind||t(n=e)&&(n.ContextNodeAllOnSameLine()||n.ContextNodeBlockIsOnOneLine());var n}function O(e){return P(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function w(e){return t(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function t(e){return n(e.contextNode)}function P(e){return n(e.nextTokenParent)}function n(e){if(r(e))return!0;switch(e.kind){case 216:case 244:case 186:case 243:return!0}return!1}function R(e){switch(e.contextNode.kind){case 237:case 154:case 153:case 156:case 157:case 158:case 194:case 155:case 195:case 239:return!0}return!1}function F(e){return!R(e)}function G(e){return 237===e.contextNode.kind||194===e.contextNode.kind}function V(e){return r(e.contextNode)}function r(e){switch(e.kind){case 238:case 207:case 239:case 241:case 166:case 242:case 253:case 254:case 247:case 250:return!0}return!1}function B(e){switch(e.currentTokenParent.kind){case 238:case 242:case 241:case 272:case 243:case 230:return!0;case 216:var n=e.currentTokenParent.parent;if(!n||195!==n.kind&&194!==n.kind)return!0}return!1}function K(e){switch(e.contextNode.kind){case 220:case 230:case 223:case 224:case 225:case 222:case 233:case 221:case 229:case 272:return!0;default:return!1}}function j(e){return 186===e.contextNode.kind}function H(e){return 189===e.contextNode.kind||190===e.contextNode.kind}function U(e){return 26!==e.currentTokenSpan.kind}function W(e){return 22!==e.nextTokenSpan.kind}function q(e){return 195===e.contextNode.kind}function z(e){return 181===e.contextNode.kind}function J(e){return e.TokensAreOnSameLine()&&10!==e.contextNode.kind}function X(e){return 258!==e.contextNode.kind&&262!==e.contextNode.kind}function Y(e){return 268===e.contextNode.kind||267===e.contextNode.kind}function Q(e){return 265===e.nextTokenParent.kind}function Z(e){return 265===e.contextNode.kind}function $(e){return 259===e.contextNode.kind}function ee(e){return!R(e)&&!P(e)}function ne(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&a(e.currentTokenParent)&&!a(e.nextTokenParent)}function a(e){for(;pe.isExpressionNode(e);)e=e.parent;return 150===e.kind}function te(e){return 236===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function re(e){return 2!==e.formattingRequestKind}function ae(e){return 242===e.contextNode.kind}function ie(e){return 166===e.contextNode.kind}function oe(e){return 159===e.contextNode.kind}function i(e,n){if(27!==e.kind&&29!==e.kind)return!1;switch(n.kind){case 162:case 192:case 240:case 238:case 207:case 239:case 237:case 194:case 195:case 154:case 153:case 158:case 159:case 189:case 190:case 209:return!0;default:return!1}}function se(e){return i(e.currentTokenSpan,e.currentTokenParent)||i(e.nextTokenSpan,e.nextTokenParent)}function ce(e){return 192===e.contextNode.kind}function le(e){return 105===e.currentTokenSpan.kind&&198===e.currentTokenParent.kind}function ue(e){return 205===e.contextNode.kind&&void 0!==e.contextNode.expression}function de(e){return 211===e.contextNode.kind}_.getAllRules=function(){for(var t=[],e=0;e<=145;e++)t.push(e);function n(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return{tokens:t.filter(function(n){return!e.some(function(e){return e===n})}),isSpecific:!1}}var r={tokens:t,isSpecific:!1},a=v(t.concat([3])),i=y(72,145),o=y(27,70),s=[92,93,145,118,127],c=[71].concat(pe.typeKeywords),l=a,u=v([71,3,75,84,91]),d=v([20,3,81,102,87,82]),p=[g("IgnoreBeforeComment",r,[2,3],_.anyContext,1),g("IgnoreAfterLineComment",2,r,_.anyContext,1),g("NotSpaceBeforeColon",r,56,[J,A,L],8),g("SpaceAfterColon",56,r,[J,A],2),g("NoSpaceBeforeQuestionMark",r,55,[J,A],8),g("SpaceAfterQuestionMarkInConditionalOperator",55,r,[J,N],2),g("NoSpaceAfterQuestionMark",55,r,[J],8),g("NoSpaceBeforeDot",r,23,[J],8),g("NoSpaceAfterDot",23,r,[J],8),g("NoSpaceBetweenImportParenInImportType",91,19,[J,z],8),g("NoSpaceAfterUnaryPrefixOperator",[43,44,52,51],[8,71,19,21,17,99,94],[J,A],8),g("NoSpaceAfterUnaryPreincrementOperator",43,[71,19,99,94],[J],8),g("NoSpaceAfterUnaryPredecrementOperator",44,[71,19,99,94],[J],8),g("NoSpaceBeforeUnaryPostincrementOperator",[71,20,22,94],43,[J],8),g("NoSpaceBeforeUnaryPostdecrementOperator",[71,20,22,94],44,[J],8),g("SpaceAfterPostincrementWhenFollowedByAdd",43,37,[J,D],2),g("SpaceAfterAddWhenFollowedByUnaryPlus",37,37,[J,D],2),g("SpaceAfterAddWhenFollowedByPreincrement",37,43,[J,D],2),g("SpaceAfterPostdecrementWhenFollowedBySubtract",44,38,[J,D],2),g("SpaceAfterSubtractWhenFollowedByUnaryMinus",38,38,[J,D],2),g("SpaceAfterSubtractWhenFollowedByPredecrement",38,44,[J,D],2),g("NoSpaceAfterCloseBrace",18,[26,25],[J],8),g("NewLineBeforeCloseBraceInBlockContext",a,18,[w],4),g("SpaceAfterCloseBrace",18,n(20),[J,B],2),g("SpaceBetweenCloseBraceAndElse",18,82,[J],2),g("SpaceBetweenCloseBraceAndWhile",18,106,[J],2),g("NoSpaceBetweenEmptyBraceBrackets",17,18,[J,j],8),g("SpaceAfterConditionalClosingParen",20,21,[K],2),g("NoSpaceBetweenFunctionKeywordAndStar",89,39,[G],8),g("SpaceAfterStarInGeneratorDeclaration",39,[71,19],[G],2),g("SpaceAfterFunctionInFuncDecl",89,r,[R],2),g("NewLineAfterOpenBraceInBlockContext",17,r,[w],4),g("SpaceAfterGetSetInMember",[125,136],71,[R],2),g("NoSpaceBetweenYieldKeywordAndStar",116,39,[J,ue],8),g("SpaceBetweenYieldOrYieldStarAndOperand",[116,39],r,[J,ue],2),g("NoSpaceBetweenReturnAndSemicolon",96,25,[J],8),g("SpaceAfterCertainKeywords",[104,100,94,80,96,103,121],r,[J],2),g("SpaceAfterLetConstInVariableDeclaration",[110,76],r,[J,te],2),g("NoSpaceBeforeOpenParenInFuncCall",r,19,[J,H,U],8),g("SpaceBeforeBinaryKeywordOperator",r,s,[J,D],2),g("SpaceAfterBinaryKeywordOperator",s,r,[J,D],2),g("SpaceAfterVoidOperator",105,r,[J,le],2),g("SpaceBetweenAsyncAndOpenParen",120,19,[q,J],2),g("SpaceBetweenAsyncAndFunctionKeyword",120,89,[J],2),g("NoSpaceBetweenTagAndTemplateString",[71,20],[13,14],[J],8),g("SpaceBeforeJsxAttribute",r,71,[Q,J],2),g("SpaceBeforeSlashInJsxOpeningElement",r,41,[$,J],2),g("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",41,29,[$,J],8),g("NoSpaceBeforeEqualInJsxAttribute",r,58,[Z,J],8),g("NoSpaceAfterEqualInJsxAttribute",58,r,[Z,J],8),g("NoSpaceAfterModuleImport",[129,133],19,[J],8),g("SpaceAfterCertainTypeScriptKeywords",[117,75,124,79,83,84,85,125,108,91,109,129,130,112,114,113,132,136,115,139,143,128,126],r,[J],2),g("SpaceBeforeCertainTypeScriptKeywords",r,[85,108,143],[J],2),g("SpaceAfterModuleName",9,17,[ae],2),g("SpaceBeforeArrow",r,36,[J],2),g("SpaceAfterArrow",36,r,[J],2),g("NoSpaceAfterEllipsis",24,71,[J],8),g("NoSpaceAfterOptionalParameters",55,[20,26],[J,A],8),g("NoSpaceBetweenEmptyInterfaceBraceBrackets",17,18,[J,ie],8),g("NoSpaceBeforeOpenAngularBracket",c,27,[J,se],8),g("NoSpaceBetweenCloseParenAndAngularBracket",20,27,[J,se],8),g("NoSpaceAfterOpenAngularBracket",27,r,[J,se],8),g("NoSpaceBeforeCloseAngularBracket",r,29,[J,se],8),g("NoSpaceAfterCloseAngularBracket",29,[19,21,29,26],[J,se,F],8),g("SpaceBeforeAt",[20,71],57,[J],2),g("NoSpaceAfterAt",57,r,[J],8),g("SpaceAfterDecorator",r,[117,71,84,79,75,115,114,112,113,125,136,21,39],[ne],2),g("NoSpaceBeforeNonNullAssertionOperator",r,51,[J,de],8),g("NoSpaceAfterNewKeywordOnConstructorSignature",94,19,[J,oe],8)],m=[g("SpaceAfterConstructor",123,19,[h("insertSpaceAfterConstructor"),J],2),g("NoSpaceAfterConstructor",123,19,[E("insertSpaceAfterConstructor"),J],8),g("SpaceAfterComma",26,r,[h("insertSpaceAfterCommaDelimiter"),J,X,W],2),g("NoSpaceAfterComma",26,r,[E("insertSpaceAfterCommaDelimiter"),J,X],8),g("SpaceAfterAnonymousFunctionKeyword",89,19,[h("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),R],2),g("NoSpaceAfterAnonymousFunctionKeyword",89,19,[E("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),R],8),g("SpaceAfterKeywordInControl",i,19,[h("insertSpaceAfterKeywordsInControlFlowStatements"),K],2),g("NoSpaceAfterKeywordInControl",i,19,[E("insertSpaceAfterKeywordsInControlFlowStatements"),K],8),g("SpaceAfterOpenParen",19,r,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),J],2),g("SpaceBeforeCloseParen",r,20,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),J],2),g("SpaceBetweenOpenParens",19,19,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),J],2),g("NoSpaceBetweenParens",19,20,[J],8),g("NoSpaceAfterOpenParen",19,r,[E("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),J],8),g("NoSpaceBeforeCloseParen",r,20,[E("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),J],8),g("SpaceAfterOpenBracket",21,r,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),J],2),g("SpaceBeforeCloseBracket",r,22,[h("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),J],2),g("NoSpaceBetweenBrackets",21,22,[J],8),g("NoSpaceAfterOpenBracket",21,r,[E("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),J],8),g("NoSpaceBeforeCloseBracket",r,22,[E("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),J],8),g("SpaceAfterOpenBrace",17,r,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),M],2),g("SpaceBeforeCloseBrace",r,18,[S("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),M],2),g("NoSpaceBetweenEmptyBraceBrackets",17,18,[J,j],8),g("NoSpaceAfterOpenBrace",17,r,[b("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),J],8),g("NoSpaceBeforeCloseBrace",r,18,[b("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),J],8),g("SpaceAfterTemplateHeadAndMiddle",[14,15],r,[h("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),J],2),g("SpaceBeforeTemplateMiddleAndTail",r,[15,16],[h("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),J],2),g("NoSpaceAfterTemplateHeadAndMiddle",[14,15],r,[E("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),J],8),g("NoSpaceBeforeTemplateMiddleAndTail",r,[15,16],[E("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),J],8),g("SpaceAfterOpenBraceInJsxExpression",17,r,[h("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),J,Y],2),g("SpaceBeforeCloseBraceInJsxExpression",r,18,[h("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),J,Y],2),g("NoSpaceAfterOpenBraceInJsxExpression",17,r,[E("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),J,Y],8),g("NoSpaceBeforeCloseBraceInJsxExpression",r,18,[E("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),J,Y],8),g("SpaceAfterSemicolonInFor",25,r,[h("insertSpaceAfterSemicolonInForStatements"),J,x],2),g("NoSpaceAfterSemicolonInFor",25,r,[E("insertSpaceAfterSemicolonInForStatements"),J,x],8),g("SpaceBeforeBinaryOperator",r,o,[h("insertSpaceBeforeAndAfterBinaryOperators"),J,D],2),g("SpaceAfterBinaryOperator",o,r,[h("insertSpaceBeforeAndAfterBinaryOperators"),J,D],2),g("NoSpaceBeforeBinaryOperator",r,o,[E("insertSpaceBeforeAndAfterBinaryOperators"),J,D],8),g("NoSpaceAfterBinaryOperator",o,r,[E("insertSpaceBeforeAndAfterBinaryOperators"),J,D],8),g("SpaceBeforeOpenParenInFuncDecl",r,19,[h("insertSpaceBeforeFunctionParenthesis"),J,R],2),g("NoSpaceBeforeOpenParenInFuncDecl",r,19,[E("insertSpaceBeforeFunctionParenthesis"),J,R],8),g("NewLineBeforeOpenBraceInControl",d,17,[h("placeOpenBraceOnNewLineForControlBlocks"),K,O],4,1),g("NewLineBeforeOpenBraceInFunction",l,17,[h("placeOpenBraceOnNewLineForFunctions"),R,O],4,1),g("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",u,17,[h("placeOpenBraceOnNewLineForFunctions"),V,O],4,1),g("SpaceAfterTypeAssertion",29,r,[h("insertSpaceAfterTypeAssertion"),J,ce],2),g("NoSpaceAfterTypeAssertion",29,r,[E("insertSpaceAfterTypeAssertion"),J,ce],8),g("SpaceBeforeTypeAnnotation",r,56,[h("insertSpaceBeforeTypeAnnotation"),J,k],2),g("NoSpaceBeforeTypeAnnotation",r,56,[E("insertSpaceBeforeTypeAnnotation"),J,k],8)],f=[g("NoSpaceBeforeSemicolon",r,25,[J],8),g("SpaceBeforeOpenBraceInControl",d,17,[T("placeOpenBraceOnNewLineForControlBlocks"),K,re,I],2,1),g("SpaceBeforeOpenBraceInFunction",l,17,[T("placeOpenBraceOnNewLineForFunctions"),R,P,re,I],2,1),g("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",u,17,[T("placeOpenBraceOnNewLineForFunctions"),V,re,I],2,1),g("NoSpaceBeforeComma",r,26,[J],8),g("NoSpaceBeforeOpenBracket",n(120,73),21,[J],8),g("NoSpaceAfterCloseBracket",22,r,[J,ee],8),g("SpaceAfterSemicolon",25,r,[J],2),g("SpaceBetweenForAndAwaitKeyword",88,121,[J],2),g("SpaceBetweenStatements",[20,81,82,73],r,[J,X,C],2),g("SpaceAfterTryFinally",[102,87],17,[J],2)];return p.concat(m,f)}}(pe.formatting||(pe.formatting={}))}(ts||(ts={})),function(f){!function(u){var r;function _(e,n){return f.Debug.assert(e<=145&&n<=145,"Must compute formatting context from tokens"),e*g+n}u.getFormatContext=function(e){return{options:e,getRule:(void 0===r&&(n=u.getAllRules(),t=function(e){for(var n=new Array(g*g),t=new Array(n.length),r=0,a=e;r<a.length;r++)for(var i=a[r],o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific,s=0,c=i.leftTokenRange.tokens;s<c.length;s++)for(var l=c[s],u=0,d=i.rightTokenRange.tokens;u<d.length;u++){var p=d[u],m=_(l,p),f=n[m];void 0===f&&(f=n[m]=[]),v(f,i.rule,o,t,m)}return n}(n),r=function(n){var e=t[_(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];return e&&f.find(e,function(e){return f.every(e.context,function(e){return e(n)})})}),r)};var n,t};var d,e,p=5,m=31,g=146;function v(e,n,t,r,a){var i,o,s,c=1===n.action?t?d.IgnoreRulesSpecific:d.IgnoreRulesAny:n.context!==u.anyContext?t?d.ContextRulesSpecific:d.ContextRulesAny:t?d.NoContextRulesSpecific:d.NoContextRulesAny,l=r[a]||0;e.splice(function(e,n){for(var t=0,r=0;r<=n;r+=p)t+=e&m,e>>=p;return t}(l,c),0,n),r[a]=(s=1+((i=l)>>(o=c)&m),f.Debug.assert((s&m)===s,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),i&~(m<<o)|s<<o)}(e=d||(d={}))[e.IgnoreRulesSpecific=0]="IgnoreRulesSpecific",e[e.IgnoreRulesAny=1*p]="IgnoreRulesAny",e[e.ContextRulesSpecific=2*p]="ContextRulesSpecific",e[e.ContextRulesAny=3*p]="ContextRulesAny",e[e.NoContextRulesSpecific=4*p]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*p]="NoContextRulesAny"}(f.formatting||(f.formatting={}))}(ts||(ts={})),function(B){!function(R){var e,n,t,r,c,l,u;function i(e,n,t){var r=B.findPrecedingToken(e,t);return r&&r.kind===n&&e===r.getEnd()?r:void 0}function o(e){for(var n=e;n&&n.parent&&n.parent.end===e.end&&!a(n.parent,n);)n=n.parent;return n}function a(e,n){switch(e.kind){case 238:case 239:return B.rangeContainsRange(e.members,n);case 242:var t=e.body;return!!t&&243===t.kind&&B.rangeContainsRange(t.statements,n);case 277:case 216:case 243:return B.rangeContainsRange(e.statements,n);case 272:return B.rangeContainsRange(e.block.statements,n)}return!1}function s(e,n,t,r){return e?d({pos:B.getLineStartPositionForPosition(e.getStart(n),n),end:e.end},n,t,r):[]}function d(n,t,r,a){var i,o,s=(i=n,function e(n){var t=B.forEachChild(n,function(e){return B.startEndContainsRange(e.getStart(o),e.end,i)&&e});if(t){var r=e(t);if(r)return r}return n}(o=t));return R.getFormattingScanner(t.text,t.languageVariant,function(e,n,t){var r=e.getStart(t);if(r===n.pos&&e.end===n.end)return r;var a=B.findPrecedingToken(n.pos,t);return a?a.end>=n.pos?e.pos:a.end:e.pos}(s,n,t),n.end,function(e){return p(n,s,R.SmartIndenter.getIndentationForNode(s,n,t,r.options),function(e,n,t){for(var r,a=-1;e;){var i=t.getLineAndCharacterOfPosition(e.getStart(t)).line;if(-1!==a&&i!==a)break;if(R.SmartIndenter.shouldIndentChildNode(n,e,r,t))return n.indentSize;a=i,e=(r=e).parent}return 0}(s,r.options,t),e,r,a,function(e,n){if(!e.length)return a;var t=e.filter(function(e){return B.rangeOverlapsWithStartEnd(n,e.start,e.start+e.length)}).sort(function(e,n){return e.start-n.start});if(!t.length)return a;var r=0;return function(e){for(;;){if(r>=t.length)return!1;var n=t[r];if(e.end<=n.start)return!1;if(B.startEndOverlapsWithStartEnd(e.pos,e.end,n.start,n.start+n.length))return!0;r++}};function a(){return!1}}(t.parseDiagnostics,n),t)})}function p(b,e,n,t,E,r,a,T,S){var x,o,s,C,D,i,c,l,h=r.options,d=r.getRule,p=new R.FormattingContext(S,a,h),u=[];if(E.advance(),E.isOnToken()){var m=S.getLineAndCharacterOfPosition(e.getStart(S)).line,f=m;e.decorators&&(f=S.getLineAndCharacterOfPosition(B.getNonDecoratorTokenPosOfNode(e,S)).line),function g(v,e,n,t,r,a){if(!B.rangeOverlapsWithStartEnd(b,v.getStart(S),v.getEnd()))return;var i=k(v,n,r,a);var h=e;B.forEachChild(v,function(e){m(e,-1,v,i,n,t,!1)},function(e){s(e,v,n,i)});for(;E.isOnToken();){var o=E.readTokenInfo(v);if(o.token.end>v.end)break;y(o,v,i,v)}function m(e,n,t,r,a,i,o,s){var c=e.getStart(S),l=S.getLineAndCharacterOfPosition(c).line,u=l;e.decorators&&(u=S.getLineAndCharacterOfPosition(B.getNonDecoratorTokenPosOfNode(e,S)).line);var d=-1;if(o&&B.rangeContainsRange(b,t)&&-1!==(d=A(c,e.end,a,b,n))&&(n=d),!B.rangeOverlapsWithStartEnd(b,e.pos,e.end))return e.end<b.pos&&E.skipToEndOf(e),n;if(0===e.getFullWidth())return n;for(;E.isOnToken();){var p=E.readTokenInfo(v);if(p.token.end>c)break;y(p,v,r,v)}if(!E.isOnToken())return n;if(B.isToken(e)&&10!==e.kind){var p=E.readTokenInfo(e);return B.Debug.assert(p.token.end===e.end,"Token end is child end"),y(p,v,r,e),n}var m=150===e.kind?l:i,f=L(e,l,d,v,r,m);if(g(e,h,l,u,f.indentation,f.delta),10===e.kind){var _={pos:e.getStart(),end:e.getEnd()};O(_,f.indentation,!0,!1)}return h=v,s&&185===t.kind&&-1===n&&(n=f.indentation),n}function s(e,n,t,r){B.Debug.assert(B.isNodeArray(e));var a=F(n,e),i=r,o=t;if(0!==a)for(;E.isOnToken();){var s=E.readTokenInfo(n);if(s.token.end>e.pos)break;if(s.token.kind===a){o=S.getLineAndCharacterOfPosition(s.token.pos).line;var c=L(s.token,o,-1,n,r,t);i=k(n,t,c.indentation,c.delta),y(s,n,i,n)}else y(s,n,r,n)}for(var l=-1,u=0;u<e.length;u++){var d=e[u];l=m(d,l,v,i,o,o,!0,0===u)}var p=G(a);if(0!==p&&E.isOnToken()){var s=E.readTokenInfo(n);26===s.token.kind&&B.isCallLikeExpression(n)&&(E.advance(),s=E.readTokenInfo(n)),s.token.kind===p&&B.rangeContainsRange(n,s.token)&&y(s,n,i,n)}}function y(e,n,t,r){B.Debug.assert(B.rangeContainsRange(n,e.token));var a=E.lastTrailingTriviaWasNewLine(),i=!1;e.leadingTrivia&&N(e.leadingTrivia,n,h,t);var o=0,s=B.rangeContainsRange(b,e.token),c=S.getLineAndCharacterOfPosition(e.token.pos);if(s){var l=T(e.token),u=x;if(o=I(e.token,c,n,h,t),!l)if(0===o){var d=u&&S.getLineAndCharacterOfPosition(u.end).line;i=a&&c.line!==d}else i=1===o}if(e.trailingTrivia&&N(e.trailingTrivia,n,h,t),i){var p=s&&!T(e.token)?t.getIndentationForToken(c.line,e.token.kind,r):-1,m=!0;if(e.leadingTrivia)for(var f=t.getIndentationForComment(e.token.kind,p,r),_=0,g=e.leadingTrivia;_<g.length;_++){var v=g[_],y=B.rangeContainsRange(b,v);switch(v.kind){case 3:y&&O(v,f,!m),m=!1;break;case 2:m&&y&&M(v.pos,f,!1),m=!1;break;case 4:m=!0}}-1!==p&&m&&(M(e.token.pos,p,1===o),C=c.line,D=p)}E.advance(),h=n}}(e,e,m,f,n,t)}if(!E.isOnToken()){var _=E.getCurrentLeadingTrivia();_&&(N(_,e,e,void 0),i=x?x.end:b.pos,c=S.getLineAndCharacterOfPosition(i).line,l=S.getLineAndCharacterOfPosition(b.end).line,g(c,l+1,x))}return u;function A(e,n,t,r,a){if(B.rangeOverlapsWithStartEnd(r,e,n)||B.rangeContainsStartEnd(r,e,n)){if(-1!==a)return a}else{var i=S.getLineAndCharacterOfPosition(e).line,o=B.getLineStartPositionForPosition(e,S),s=R.SmartIndenter.findFirstNonWhitespaceColumn(o,e,S,h);if(i!==t||e===s){var c=R.SmartIndenter.getBaseIndentation(h);return s<c?c:s}}return-1}function L(e,n,t,r,a,i){var o=R.SmartIndenter.shouldIndentChildNode(h,e)?h.indentSize:0;return i===n?{indentation:n===C?D:a.getIndentation(),delta:Math.min(h.indentSize,a.getDelta(e)+o)}:-1===t?19===e.kind&&n===C?{indentation:D,delta:a.getDelta(e)}:R.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(r,e,n,S)?{indentation:a.getIndentation(),delta:o}:{indentation:a.getIndentation()+a.getDelta(e),delta:o}:{indentation:t,delta:o}}function k(r,a,i,n){return{getIndentationForComment:function(e,n,t){switch(e){case 18:case 22:case 20:return i+o(t)}return-1!==n?n:i},getIndentationForToken:function(e,n,t){return function(e,n,t){switch(n){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return!1;case 41:case 29:switch(t.kind){case 260:case 261:case 259:return!1}break;case 21:case 22:if(179!==t.kind)return!1}return a!==e&&!(r.decorators&&n===function(e){if(e.modifiers&&e.modifiers.length)return e.modifiers[0].kind;switch(e.kind){case 238:return 75;case 239:return 109;case 237:return 89;case 241:return 241;case 156:return 125;case 157:return 136;case 154:if(e.asteriskToken)return 39;case 152:case 149:var n=B.getNameOfDeclaration(e);if(n)return n.kind}}(r))}(e,n,t)?i+o(t):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e){r.parent&&R.SmartIndenter.shouldIndentChildNode(h,r.parent,r,S)&&(i+=e?h.indentSize:-h.indentSize,n=R.SmartIndenter.shouldIndentChildNode(h,r)?h.indentSize:0)}};function o(e){return R.SmartIndenter.nodeWillIndentChild(h,r,e,S,!0)?n:0}}function N(e,n,t,r){for(var a=0,i=e;a<i.length;a++){var o=i[a];if(B.isComment(o.kind)&&B.rangeContainsRange(b,o))I(o,S.getLineAndCharacterOfPosition(o.pos),n,t,r)}}function I(e,n,t,r,a){var i=0;T(e)||(x?i=function(e,n,t,r,a,i,o,s){p.updateContext(r,i,e,t,o);var c,l=d(p),u=0;if(l){switch(u=function(e,n,t,r,a){var i=a!==t;switch(e.action){case 1:return 0;case 8:if(n.end!==r.pos)return w(n.end,r.pos-n.end),i?2:0;break;case 4:if(1!==e.flags&&t!==a)return 0;var o=a-t;if(1!==o)return P(n.end,r.pos-n.end,h.newLineCharacter),i?0:1;break;case 2:if(1!==e.flags&&t!==a)return 0;var s=r.pos-n.end;if(1!==s||32!==S.text.charCodeAt(n.end))return P(n.end,r.pos-n.end," "),i?2:0}return 0}(l,r,a,e,n)){case 2:t.getStart(S)===e.pos&&s.recomputeIndentation(!1);break;case 1:t.getStart(S)===e.pos&&s.recomputeIndentation(!0);break;default:B.Debug.assert(0===u)}c=!(8&l.action)&&1!==l.flags}else c=!0;n!==a&&c&&g(a,n,r);return u}(e,n.line,t,x,s,o,r,a):g(S.getLineAndCharacterOfPosition(b.pos).line,n.line));return x=e,o=t,s=n.line,i}function M(e,n,t){var r,a,i=V(n,h);if(t)P(e,0,i);else{var o=S.getLineAndCharacterOfPosition(e),s=B.getStartPositionOfLine(o.line,S);n===function(e,n){for(var t=0,r=0;r<n;r++)9===S.text.charCodeAt(e+r)?t+=h.tabSize-t%h.tabSize:t++;return t}(s,o.character)&&(a=s,(r=i)===S.text.substr(a,r.length))||P(s,o.character,i)}}function O(e,n,t,r){void 0===r&&(r=!0);var a=S.getLineAndCharacterOfPosition(e.pos).line,i=S.getLineAndCharacterOfPosition(e.end).line;if(a!==i){for(var o=[],s=e.pos,c=a;c<i;c++){var l=B.getEndLinePosition(c,S);o.push({pos:s,end:l}),s=B.getStartPositionOfLine(c+1,S)}if(r&&o.push({pos:s,end:e.end}),0!==o.length){var u=B.getStartPositionOfLine(a,S),d=R.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(u,o[0].pos,S,h);if(n!==d.column){var p=0;t&&(p=1,a++);for(var m=n-d.column,f=p;f<o.length;f++,a++){var _=B.getStartPositionOfLine(a,S),g=0===f?d:R.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(o[f].pos,o[f].end,S,h),v=g.column+m;if(0<v){var y=V(v,h);P(_,g.character,y)}else w(_,g.character)}}}}else t||M(e.pos,n,!1)}function g(e,n,t){for(var r=e;r<n;r++){var a=B.getStartPositionOfLine(r,S),i=B.getEndLinePosition(r,S);if(!(t&&(B.isComment(t.kind)||B.isStringOrRegularExpressionOrTemplateLiteral(t.kind))&&t.pos<=i&&t.end>i)){var o=v(a,i);-1!==o&&(B.Debug.assert(o===a||!B.isWhiteSpaceSingleLine(S.text.charCodeAt(o-1))),w(o,i+1-o))}}}function v(e,n){for(var t=n;e<=t&&B.isWhiteSpaceSingleLine(S.text.charCodeAt(t));)t--;return t!==n?t+1:-1}function w(e,n){n&&u.push(B.createTextChangeFromStartLength(e,n,""))}function P(e,n,t){(n||t)&&u.push(B.createTextChangeFromStartLength(e,n,t))}}function F(e,n){switch(e.kind){case 155:case 237:case 194:case 154:case 153:case 195:if(e.typeParameters===n)return 27;if(e.parameters===n)return 19;break;case 189:case 190:if(e.typeArguments===n)return 27;if(e.arguments===n)return 19;break;case 162:if(e.typeArguments===n)return 27}return 0}function G(e){switch(e){case 19:return 20;case 27:return 29}return 0}function V(e,n){if((!c||c.tabSize!==n.tabSize||c.indentSize!==n.indentSize)&&(c={tabSize:n.tabSize,indentSize:n.indentSize},l=u=void 0),n.convertTabsToSpaces){var t=void 0,r=Math.floor(e/n.indentSize),a=e%n.indentSize;return u||(u=[]),void 0===u[r]?(t=B.repeatString(" ",n.indentSize*r),u[r]=t):t=u[r],a?t+B.repeatString(" ",a):t}var i=Math.floor(e/n.tabSize),o=e-i*n.tabSize,s=void 0;return l||(l=[]),void 0===l[i]?l[i]=s=B.repeatString("\t",i):s=l[i],o?s+B.repeatString(" ",o):s}(n=e||(e={}))[n.Unknown=-1]="Unknown",R.formatOnEnter=function(e,n,t){var r=n.getLineAndCharacterOfPosition(e).line;if(0===r)return[];for(var a=B.getEndLinePosition(r,n);B.isWhiteSpaceSingleLine(n.text.charCodeAt(a));)a--;return B.isLineBreak(n.text.charCodeAt(a))&&a--,d({pos:B.getStartPositionOfLine(r-1,n),end:a+1},n,t,2)},R.formatOnSemicolon=function(e,n,t){return s(o(i(e,25,n)),n,t,3)},R.formatOnOpeningCurly=function(e,n,t){var r=i(e,17,n);if(!r)return[];var a=o(r.parent);return d({pos:B.getLineStartPositionForPosition(a.getStart(n),n),end:e},n,t,4)},R.formatOnClosingCurly=function(e,n,t){return s(o(i(e,18,n)),n,t,5)},R.formatDocument=function(e,n){return d({pos:0,end:e.text.length},e,n,0)},R.formatSelection=function(e,n,t,r){return d({pos:B.getLineStartPositionForPosition(e,t),end:n},t,r,1)},R.formatNodeGivenIndentation=function(n,t,e,r,a,i){var o={pos:0,end:t.text.length};return R.getFormattingScanner(t.text,e,o.pos,o.end,function(e){return p(o,n,r,a,e,i,1,function(e){return!1},t)})},(r=t||(t={}))[r.None=0]="None",r[r.LineAdded=1]="LineAdded",r[r.LineRemoved=2]="LineRemoved",R.getRangeOfEnclosingComment=function(n,t,e,r){void 0===r&&(r=B.getTokenAtPosition(n,t));var a=B.findAncestor(r,B.isJSDoc);if(a&&(r=a.parent),!(r.getStart(n)<=t&&t<r.getEnd())){var i=(e=null===e?void 0:void 0===e?B.findPrecedingToken(t,n):e)&&B.getTrailingCommentRanges(n.text,e.end),o=B.getLeadingCommentRangesOfNode(r,n),s=B.concatenate(i,o);return s&&B.find(s,function(e){return B.rangeContainsPositionExclusive(e,t)||t===e.end&&(2===e.kind||t===n.getFullWidth())})}},R.getIndentationString=V}(B.formatting||(B.formatting={}))}(ts||(ts={})),function(M){var _;(function(e){var n,t,r,a;function x(e){return e.baseIndentSize||0}function v(e,n,t,r,a,i,o){for(var s,c,l,u,d=e.parent;d;){var p=!0;if(t){var m=e.getStart(a);p=m<t.pos||m>t.end}if(p&&-1!==(g=L(e,a,o)))return g+r;var f=(s=d,l=A(e,c=a),u=l?l.pos:s.getStart(c),c.getLineAndCharacterOfPosition(u)),_=f.line===n.line||D(d,e,n.line,a);if(p){var g;if(-1!==(y=e,h=d,b=n,E=_,T=a,S=o,g=!M.isDeclaration(y)&&!M.isStatementButNotDeclaration(y)||277!==h.kind&&E?-1:N(b,T,S)))return g+r;if(-1!==(g=k(e,a,o)))return g+r}I(o,d,e,a,i)&&!_&&(r+=o.indentSize);var v=C(d,e,n.line,a);d=(e=d).parent,n=v?a.getLineAndCharacterOfPosition(e.getStart(a)):f}var y,h,b,E,T,S;return r+x(o)}function y(e,n){return n.getLineAndCharacterOfPosition(e.getStart(n))}function C(e,n,t,r){if(!M.isCallExpression(e)||!M.contains(e.arguments,n))return!1;var a=e.expression.getEnd();return M.getLineAndCharacterOfPosition(r,a).line===t}function D(e,n,t,r){if(220!==e.kind||e.elseStatement!==n)return!1;var a=M.findChildOfKind(e,82,r);return M.Debug.assert(void 0!==a),y(a,r).line===t}function i(e,n,t){return e&&M.rangeContainsStartEnd(e,n,t)?e:void 0}function A(e,n){if(e.parent){var t=e.end;switch(e.parent.kind){case 162:return i(e.parent.typeArguments,e.getStart(n),t);case 186:return e.parent.properties;case 185:return e.parent.elements;case 237:case 194:case 195:case 154:case 153:case 158:case 155:case 164:case 159:var r=e.getStart(n);return i(e.parent.typeParameters,r,t)||i(e.parent.parameters,r,t);case 238:case 207:case 239:case 240:case 301:return i(e.parent.typeParameters,e.getStart(n),t);case 190:case 189:return r=e.getStart(n),i(e.parent.typeArguments,r,t)||i(e.parent.arguments,r,t);case 236:return i(e.parent.declarations,e.getStart(n),t);case 250:case 254:return i(e.parent.elements,e.getStart(n),t);case 182:case 183:return i(e.parent.elements,e.getStart(n),t)}}}function L(e,n,t){var r=A(e,n);if(r){var a=r.indexOf(e);if(-1!==a)return p(r,a,n,t)}return-1}function k(e,n,t){if(20===e.kind)return-1;if(e.parent&&M.isCallOrNewExpression(e.parent)&&e.parent.expression!==e){var r=e.parent.expression,a=function(e){for(;;)switch(e.kind){case 189:case 190:case 187:case 188:e=e.expression;break;default:return e}}(r);if(r===a)return-1;var i=n.getLineAndCharacterOfPosition(r.end),o=n.getLineAndCharacterOfPosition(a.end);return i.line===o.line?-1:N(i,n,t)}return-1}function p(e,n,t,r){M.Debug.assert(0<=n&&n<e.length);for(var a=y(e[n],t),i=n-1;0<=i;i--)if(26!==e[i].kind){if(t.getLineAndCharacterOfPosition(e[i].end).line!==a.line)return N(a,t,r);a=y(e[i],t)}return-1}function N(e,n,t){var r=n.getPositionOfLineAndCharacter(e.line,0);return f(r,r+e.character,n,t)}function m(e,n,t,r){for(var a=0,i=0,o=e;o<n;o++){var s=t.text.charCodeAt(o);if(!M.isWhiteSpaceSingleLine(s))break;9===s?i+=r.tabSize+i%r.tabSize:i++,a++}return{column:i,character:a}}function f(e,n,t,r){return m(e,n,t,r).column}function o(e,n,t,r,a){var i,o,s,c,l,u=t?t.kind:0;switch(n.kind){case 219:case 238:case 207:case 239:case 241:case 240:case 185:case 216:case 243:case 186:case 166:case 179:case 168:case 244:case 270:case 269:case 193:case 187:case 189:case 190:case 217:case 252:case 228:case 203:case 183:case 182:case 260:case 263:case 259:case 268:case 153:case 158:case 159:case 149:case 163:case 164:case 175:case 191:case 199:case 254:case 250:case 255:case 251:case 152:return!0;case 235:case 273:return!(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&r&&186===u)||(i=r,o=t,s=M.skipTrivia(i.text,o.pos),c=i.getLineAndCharacterOfPosition(s).line,l=i.getLineAndCharacterOfPosition(o.end).line,c===l);case 221:case 222:case 224:case 225:case 223:case 220:case 237:case 194:case 154:case 195:case 155:case 156:case 157:return 216!==u;case 253:return 254!==u;case 247:return 248!==u||!!t.namedBindings&&250!==t.namedBindings.kind;case 258:return 261!==u;case 262:return 264!==u;case 172:case 171:if(166===u)return!1}return a}function I(e,n,t,r,a){return void 0===a&&(a=!1),o(e,n,t,r,!1)&&!(a&&t&&function(e,n){switch(e){case 228:case 232:case 226:case 227:return 216!==n.kind;default:return!1}}(t.kind,n))}(t=n||(n={}))[t.Unknown=-1]="Unknown",e.getIndentation=function(e,n,t,r){if(void 0===r&&(r=!1),e>n.text.length)return x(t);if(t.indentStyle===M.IndentStyle.None)return 0;var a=M.findPrecedingToken(e,n,void 0,!0),i=_.getRangeOfEnclosingComment(n,e,a||null);if(i&&3===i.kind)return function(e,n,t,r){var a=M.getLineAndCharacterOfPosition(e,n).line-1,i=M.getLineAndCharacterOfPosition(e,r.pos).line;if(M.Debug.assert(0<=i),a<=i)return f(M.getStartPositionOfLine(i,e),n,e,t);var o=M.getStartPositionOfLine(a,e),s=m(o,n,e,t),c=s.column,l=s.character;return 0!==c&&42===e.text.charCodeAt(o+l)?c-1:c}(n,e,t,i);if(!a)return x(t);if(M.isStringOrRegularExpressionOrTemplateLiteral(a.kind)&&a.getStart(n)<=e&&e<a.end)return 0;var o,s,c,l,u=n.getLineAndCharacterOfPosition(e).line;if(t.indentStyle===M.IndentStyle.Block)return function(e,n,t){for(var r=n;0<r;){var a=e.text.charCodeAt(r);if(!M.isWhiteSpaceLike(a))break;r--}return f(M.getLineStartPositionForPosition(r,e),r,e,t)}(n,e,t);if(26===a.kind&&202!==a.parent.kind){var d=(o=a,s=n,c=t,(l=M.findListItemInfo(o))&&0<l.listItemIndex?p(l.list.getChildren(),l.listItemIndex-1,s,c):-1);if(-1!==d)return d}return function(e,n,t,r,a,i){for(var o,s=t;s;){if(M.positionBelongsToNode(s,n,e)&&I(i,s,o,e,!0)){var c=y(s,e),l=(p=t,m=s,f=r,_=e,void 0,(g=M.findNextToken(p,m,_))?17===g.kind?1:18===g.kind&&f===y(g,_).line?2:0:0),u=0!==l?a&&2===l?i.indentSize:0:r!==c.line?i.indentSize:0;return v(s,c,void 0,u,e,!0,i)}var d=L(s,e,i);if(-1!==d)return d;if(-1!==(d=k(s,e,i)))return d+i.indentSize;s=(o=s).parent}var p,m,f,_,g;return x(i)}(n,e,a,u,r,t)},e.getIndentationForNode=function(e,n,t,r){return v(e,t.getLineAndCharacterOfPosition(e.getStart(t)),n,0,t,!1,r)},e.getBaseIndentation=x,(a=r||(r={}))[a.Unknown=0]="Unknown",a[a.OpenBrace=1]="OpenBrace",a[a.CloseBrace=2]="CloseBrace",e.isArgumentAndStartLineOverlapsExpressionBeingCalled=C,e.childStartsOnTheSameLineWithElseInIfStatement=D,e.getContainingList=A,e.findFirstNonWhitespaceCharacterAndColumn=m,e.findFirstNonWhitespaceColumn=f,e.nodeWillIndentChild=o,e.shouldIndentChildNode=I})((_=M.formatting||(M.formatting={})).SmartIndenter||(_.SmartIndenter={}))}(ts||(ts={})),function(A){!function(i){function s(e){var n=e.__pos;return A.Debug.assert("number"==typeof n),n}function a(e,n){A.Debug.assert("number"==typeof n),e.__pos=n}function c(e){var n=e.__end;return A.Debug.assert("number"==typeof n),n}function o(e,n){A.Debug.assert("number"==typeof n),e.__end=n}var l,e,d,n;function h(e,n){return A.skipTrivia(e,n,!1,!0)}function u(e,n,t,r){return{pos:p(e,n,r,l.Start),end:m(e,t,r)}}function p(e,n,t,r){if(t.useNonAdjustedStartPosition)return n.getStart(e);var a=n.getFullStart(),i=n.getStart(e);if(a===i)return i;var o=A.getLineStartPositionForPosition(a,e);if(A.getLineStartPositionForPosition(i,e)===o)return r===l.Start?i:a;var s=0<a?1:0,c=A.getStartPositionOfLine(A.getLineOfLocalPosition(e,o)+s,e);return c=h(e.text,c),A.getStartPositionOfLine(A.getLineOfLocalPosition(e,c),e)}function m(e,n,t){var r=n.end;if(t.useNonAdjustedEndPosition||A.isExpression(n))return r;var a=A.skipTrivia(e.text,r,!0);return a!==r&&A.isLineBreak(e.text.charCodeAt(a-1))?a:r}function b(e,n){return!!n&&!!e.parent&&(26===n.kind||25===n.kind&&186===e.parent.kind)}(e=l=i.Position||(i.Position={}))[e.FullStart=0]="FullStart",e[e.Start=1]="Start",i.useNonAdjustedPositions={useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!0},(n=d||(d={}))[n.Remove=0]="Remove",n[n.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",n[n.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",n[n.Text=3]="Text";var f,t=function(){function r(e,n){this.newLineCharacter=e,this.formatContext=n,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=A.createMap(),this.deletedNodes=[]}return r.fromContext=function(e){return new r(A.getNewLineOrDefaultFromHost(e.host,e.formatContext.options),e.formatContext)},r.with=function(e,n){var t=r.fromContext(e);return n(t),t.getChanges()},r.prototype.deleteRange=function(e,n){return this.changes.push({kind:d.Remove,sourceFile:e,range:n}),this},r.prototype.delete=function(e,n){this.deletedNodes.push({sourceFile:e,node:n})},r.prototype.deleteModifier=function(e,n){this.deleteRange(e,{pos:n.getStart(e),end:A.skipTrivia(e.text,n.end,!0)})},r.prototype.deleteNodeRange=function(e,n,t,r){void 0===r&&(r={});var a=p(e,n,r,l.FullStart),i=m(e,t,r);return this.deleteRange(e,{pos:a,end:i}),this},r.prototype.deleteNodeRangeExcludingEnd=function(e,n,t,r){void 0===r&&(r={});var a=p(e,n,r,l.FullStart),i=void 0===t?e.text.length:p(e,t,r,l.FullStart);this.deleteRange(e,{pos:a,end:i})},r.prototype.replaceRange=function(e,n,t,r){return void 0===r&&(r={}),this.changes.push({kind:d.ReplaceWithSingleNode,sourceFile:e,range:n,options:r,node:t}),this},r.prototype.replaceNode=function(e,n,t,r){return void 0===r&&(r=i.useNonAdjustedPositions),this.replaceRange(e,u(e,n,n,r),t,r)},r.prototype.replaceNodeRange=function(e,n,t,r,a){void 0===a&&(a=i.useNonAdjustedPositions),this.replaceRange(e,u(e,n,t,a),r,a)},r.prototype.replaceRangeWithNodes=function(e,n,t,r){return void 0===r&&(r={}),this.changes.push({kind:d.ReplaceWithMultipleNodes,sourceFile:e,range:n,options:r,nodes:t}),this},r.prototype.replaceNodeWithNodes=function(e,n,t,r){return void 0===r&&(r=i.useNonAdjustedPositions),this.replaceRangeWithNodes(e,u(e,n,n,r),t,r)},r.prototype.replaceNodeRangeWithNodes=function(e,n,t,r,a){return void 0===a&&(a=i.useNonAdjustedPositions),this.replaceRangeWithNodes(e,u(e,n,t,a),r,a)},r.prototype.nextCommaToken=function(e,n){var t=A.findNextToken(n,n.parent,e);return t&&26===t.kind?t:void 0},r.prototype.replacePropertyAssignment=function(e,n,t){var r=this.nextCommaToken(e,n)?"":","+this.newLineCharacter;return this.replaceNode(e,n,t,{suffix:r})},r.prototype.insertNodeAt=function(e,n,t,r){void 0===r&&(r={}),this.replaceRange(e,A.createRange(n),t,r)},r.prototype.insertNodesAt=function(e,n,t,r){void 0===r&&(r={}),this.changes.push({kind:d.ReplaceWithMultipleNodes,sourceFile:e,options:r,nodes:t,range:{pos:n,end:n}})},r.prototype.insertNodeAtTopOfFile=function(e,n,t){var r=function(e){var n=e.text,t=A.getShebang(n),r=0;void 0!==t&&(r=t.length,c());var a=A.getLeadingCommentRanges(n,r);if(!a)return r;a.length&&3===a[0].kind&&A.isPinnedComment(n,a[0].pos)&&(r=a[0].end,c(),a=a.slice(1));for(var i=0,o=a;i<o.length;i++){var s=o[i];if(2!==s.kind||!A.isRecognizedTripleSlashComment(n,s.pos,s.end))break;r=s.end,c()}return r;function c(){if(r<n.length){var e=n.charCodeAt(r);A.isLineBreak(e)&&++r<n.length&&13===e&&10===n.charCodeAt(r)&&r++}}}(e);this.insertNodeAt(e,r,n,{prefix:0===r?void 0:this.newLineCharacter,suffix:(A.isLineBreak(e.text.charCodeAt(r))?"":this.newLineCharacter)+(t?this.newLineCharacter:"")})},r.prototype.insertNodeBefore=function(e,n,t,r){void 0===r&&(r=!1),this.insertNodeAt(e,p(e,n,{},l.Start),t,this.getOptionsForInsertNodeBefore(n,r))},r.prototype.insertModifierBefore=function(e,n,t){var r=t.getStart(e);this.replaceRange(e,{pos:r,end:r},A.createToken(n),{suffix:" "})},r.prototype.insertLastModifierBefore=function(e,n,t){if(t.modifiers){var r=t.modifiers.end;this.replaceRange(e,{pos:r,end:r},A.createToken(n),{prefix:" "})}else this.insertModifierBefore(e,n,t)},r.prototype.insertCommentBeforeLine=function(e,n,t,r){var a=A.getStartPositionOfLine(n,e),i=A.getFirstNonSpaceCharacterPosition(e.text,a),o=x(e,i),s=A.getTouchingToken(e,o?i:t),c=e.text.slice(a,i),l=(o?"":this.newLineCharacter)+"//"+r+this.newLineCharacter+c;this.insertText(e,s.getStart(e),l)},r.prototype.replaceRangeWithText=function(e,n,t){this.changes.push({kind:d.Text,sourceFile:e,range:n,text:t})},r.prototype.insertText=function(e,n,t){this.replaceRangeWithText(e,A.createRange(n),t)},r.prototype.tryInsertTypeAnnotation=function(e,n,t){var r;if(A.isFunctionLike(n)){if(!(r=A.findChildOfKind(n,20,e))){if(!A.isArrowFunction(n))return;r=A.first(n.parameters)}}else r=235!==n.kind&&n.questionToken?n.questionToken:n.name;this.insertNodeAt(e,r.end,t,{prefix:": "})},r.prototype.insertTypeParameters=function(e,n,t){var r=(A.findChildOfKind(n,19,e)||A.first(n.parameters)).getStart(e);this.insertNodesAt(e,r,t,{prefix:"<",suffix:">"})},r.prototype.getOptionsForInsertNodeBefore=function(e,n){return A.isStatement(e)||A.isClassElement(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:A.isVariableDeclaration(e)?{suffix:", "}:A.isParameter(e)?{}:A.isStringLiteral(e)&&A.isImportDeclaration(e.parent)||A.isNamedImports(e)?{suffix:", "}:A.Debug.failBadSyntaxKind(e)},r.prototype.insertNodeAtConstructorStart=function(e,n,t){var r=A.firstOrUndefined(n.body.statements);r&&n.body.multiLine?this.insertNodeBefore(e,r,t):this.replaceConstructorBody(e,n,[t].concat(n.body.statements))},r.prototype.insertNodeAtConstructorEnd=function(e,n,t){var r=A.lastOrUndefined(n.body.statements);r&&n.body.multiLine?this.insertNodeAfter(e,r,t):this.replaceConstructorBody(e,n,n.body.statements.concat([t]))},r.prototype.replaceConstructorBody=function(e,n,t){this.replaceNode(e,n.body,A.createBlock(t,!0))},r.prototype.insertNodeAtEndOfScope=function(e,n,t){var r=p(e,n.getLastToken(),{},l.Start);this.replaceRange(e,{pos:r,end:r},t,{prefix:A.isLineBreak(e.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},r.prototype.insertNodeAtClassStart=function(e,n,t){this.insertNodeAtStartWorker(e,n,t)},r.prototype.insertNodeAtObjectStart=function(e,n,t){this.insertNodeAtStartWorker(e,n,t)},r.prototype.insertNodeAtStartWorker=function(e,n,t){var r=n.getStart(e),a=A.formatting.SmartIndenter.findFirstNonWhitespaceColumn(A.getLineStartPositionForPosition(r,e),r,e,this.formatContext.options)+this.formatContext.options.indentSize;this.insertNodeAt(e,v(n).pos,t,__assign({indentation:a},this.getInsertNodeAtStartPrefixSuffix(e,n)))},r.prototype.getInsertNodeAtStartPrefixSuffix=function(e,n){var t=A.isObjectLiteralExpression(n)?",":"";if(0!==v(n).length)return{prefix:this.newLineCharacter,suffix:t};if(A.addToSeen(this.classesWithNodesInsertedAtStart,A.getNodeId(n),{node:n,sourceFile:e})){var r=A.positionsAreOnSameLine.apply(void 0,g(n,e).concat([e]));return{prefix:this.newLineCharacter,suffix:t+(r?this.newLineCharacter:"")}}return{prefix:"",suffix:t+this.newLineCharacter}},r.prototype.insertNodeAfterComma=function(e,n,t){var r=this.insertNodeAfterWorker(e,this.nextCommaToken(e,n)||n,t);this.insertNodeAt(e,r,t,this.getInsertNodeAfterOptions(e,n))},r.prototype.insertNodeAfter=function(e,n,t){var r=this.insertNodeAfterWorker(e,n,t);this.insertNodeAt(e,r,t,this.getInsertNodeAfterOptions(e,n))},r.prototype.insertNodeAtEndOfList=function(e,n,t){this.insertNodeAt(e,n.end,t,{prefix:", "})},r.prototype.insertNodesAfter=function(e,n,t){var r=this.insertNodeAfterWorker(e,n,A.first(t));this.insertNodesAt(e,r,t,this.getInsertNodeAfterOptions(e,n))},r.prototype.insertNodeAfterWorker=function(e,n,t){var r,a;return r=n,a=t,((A.isPropertySignature(r)||A.isPropertyDeclaration(r))&&A.isClassOrTypeElement(a)&&147===a.name.kind||A.isStatementButNotDeclaration(r)&&A.isStatementButNotDeclaration(a))&&59!==e.text.charCodeAt(n.end-1)&&this.replaceRange(e,A.createRange(n.end),A.createToken(25)),m(e,n,{})},r.prototype.getInsertNodeAfterOptions=function(e,n){var t=this.getInsertNodeAfterOptionsWorker(n);return __assign({},t,{prefix:n.end===e.end&&A.isStatement(n)?t.prefix?"\n"+t.prefix:"\n":t.prefix})},r.prototype.getInsertNodeAfterOptionsWorker=function(e){switch(e.kind){case 238:case 242:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 235:case 9:case 71:return{prefix:", "};case 273:return{suffix:","+this.newLineCharacter};case 84:return{prefix:" "};case 149:return{};default:return A.Debug.assert(A.isStatement(e)||A.isClassOrTypeElement(e)),{suffix:this.newLineCharacter}}},r.prototype.insertName=function(e,n,t){if(A.Debug.assert(!n.name),195===n.kind){var r=A.findChildOfKind(n,36,e),a=A.findChildOfKind(n,19,e);a?(this.insertNodesAt(e,a.getStart(e),[A.createToken(89),A.createIdentifier(t)],{joiner:" "}),C(this,e,r)):(this.insertText(e,A.first(n.parameters).getStart(e),"function "+t+"("),this.replaceRange(e,r,A.createToken(20))),216!==n.body.kind&&(this.insertNodesAt(e,n.body.getStart(e),[A.createToken(17),A.createToken(96)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,n.body.end,[A.createToken(25),A.createToken(18)],{joiner:" "}))}else{var i=A.findChildOfKind(n,194===n.kind?89:75,e).end;this.insertNodeAt(e,i,A.createIdentifier(t),{prefix:" "})}},r.prototype.insertExportModifier=function(e,n){this.insertText(e,n.getStart(e),"export ")},r.prototype.insertNodeInListAfter=function(e,n,t,r){if(void 0===r&&(r=A.formatting.SmartIndenter.getContainingList(n,e)),!r)return A.Debug.fail("node is not a list element"),this;var a=A.indexOfNode(r,n);if(a<0)return this;var i=n.getEnd();if(a!==r.length-1){var o=A.getTokenAtPosition(e,n.end);if(o&&b(n,o)){var s=A.getLineAndCharacterOfPosition(e,h(e.text,r[a+1].getFullStart())),c=A.getLineAndCharacterOfPosition(e,o.end),l=void 0,u=void 0;c.line===s.line?(u=o.end,l=function(e){for(var n="",t=0;t<e;t++)n+=" ";return n}(s.character-c.character)):u=A.getStartPositionOfLine(s.line,e);var d=""+A.tokenToString(o.kind)+e.text.substring(o.end,r[a+1].getStart(e));this.replaceRange(e,A.createRange(u,r[a+1].getStart(e)),t,{prefix:l,suffix:d})}}else{var p=n.getStart(e),m=A.getLineStartPositionForPosition(p,e),f=void 0,_=!1;if(1===r.length)f=26;else{var g=A.findPrecedingToken(n.pos,e);f=b(n,g)?g.kind:26,_=A.getLineStartPositionForPosition(r[a-1].getStart(e),e)!==m}if(function(e,n){for(var t=n;t<e.length;){var r=e.charCodeAt(t);if(!A.isWhiteSpaceSingleLine(r))return 47===r;t++}return!1}(e.text,n.end)&&(_=!0),_){this.replaceRange(e,A.createRange(i),A.createToken(f));var v=A.formatting.SmartIndenter.findFirstNonWhitespaceColumn(m,p,e,this.formatContext.options),y=A.skipTrivia(e.text,i,!0,!1);y!==i&&A.isLineBreak(e.text.charCodeAt(y-1))&&y--,this.replaceRange(e,A.createRange(y),t,{indentation:v,prefix:this.newLineCharacter})}else this.replaceRange(e,A.createRange(i),t,{prefix:A.tokenToString(f)+" "})}return this},r.prototype.finishClassesWithNodesInsertedAtStart=function(){var o=this;this.classesWithNodesInsertedAtStart.forEach(function(e){var n=e.node,t=e.sourceFile,r=g(n,t),a=r[0],i=r[1];A.positionsAreOnSameLine(a,i,t)&&a!==i-1&&o.deleteRange(t,A.createRange(a,i-1))})},r.prototype.finishDeleteDeclarations=function(){for(var a=this,i=new A.NodeSet,e=function(n,t){r.deletedNodes.some(function(e){return e.sourceFile===n&&A.rangeContainsRangeExclusive(e.node,t)})||(A.isArray(t)?r.deleteRange(n,A.rangeOfTypeParameters(t)):T.deleteDeclaration(r,i,n,t))},r=this,n=0,t=this.deletedNodes;n<t.length;n++){var o=t[n];e(o.sourceFile,o.node)}i.forEach(function(e){var n=e.getSourceFile(),t=A.formatting.SmartIndenter.getContainingList(e,n);if(e===A.last(t)){var r=A.findLastIndex(t,function(e){return!i.has(e)},t.length-2);-1!==r&&a.deleteRange(n,{pos:t[r].end,end:_(n,t[r+1])})}})},r.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var n=f.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),t=0,r=this.newFiles;t<r.length;t++){var a=r[t],i=a.oldFile,o=a.fileName,s=a.statements;n.push(f.newFileChanges(i,o,s,this.newLineCharacter,this.formatContext))}return n},r.prototype.createNewFile=function(e,n,t){this.newFiles.push({oldFile:e,fileName:n,statements:t})},r}();function _(e,n){return A.skipTrivia(e.text,p(e,n,{},l.FullStart),!1,!0)}function g(e,n){return[A.findChildOfKind(e,17,n).end,A.findChildOfKind(e,18,n).end]}function v(e){return A.isObjectLiteralExpression(e)?e.properties:e.members}function y(e,n){for(var t=n.length-1;0<=t;t--){var r=n[t],a=r.span,i=r.newText;e=""+e.substring(0,a.start)+i+e.substring(A.textSpanEnd(a))}return e}function E(e){var n=A.visitEachChild(e,E,A.nullTransformationContext,r,E),t=A.nodeIsSynthesized(n)?n:Object.create(n);return t.pos=s(e),t.end=c(e),t}function r(e,n,t,r,a){var i=A.visitNodes(e,n,t,r,a);if(!i)return i;var o=i===e?A.createNodeArray(i.slice(0)):i;return o.pos=s(e),o.end=c(e),o}i.ChangeTracker=t,i.getNewFileText=function(e,n,t,r){return f.newFileChangesWorker(void 0,n,e,t,r)},function(e){function o(n,e,t,r,a){var i=t.map(function(e){return v(e,n,r).text}).join(r),o=A.createSourceFile("any file name",i,6,!0,e);return y(i,A.formatting.formatDocument(o,a))}function v(e,n,t){var r=new S(t),a="\n"===t?1:0;return A.createPrinter({newLine:a,neverAsciiEscape:!0},r).writeNode(4,e,n,r),{text:r.getText(),node:E(e)}}e.getTextChangesFromChanges=function(e,o,s,c){return A.group(e,function(e){return e.sourceFile.path}).map(function(e){for(var n=e[0].sourceFile,t=A.stableSort(e,function(e,n){return e.range.pos-n.range.pos||e.range.end-n.range.end}),r=function(e){A.Debug.assert(t[e].range.end<=t[e+1].range.pos,"Changes overlap",function(){return JSON.stringify(t[e].range)+" and "+JSON.stringify(t[e+1].range)})},a=0;a<t.length-1;a++)r(a);var i=t.map(function(e){return A.createTextChange(A.createTextSpanFromRange(e.range),function(e,n,t,r,a){if(e.kind===d.Remove)return"";if(e.kind===d.Text)return e.text;var i=e.options,o=void 0===i?{}:i,s=e.range.pos,c=function(e){return function(e,n,t,r,a,i,o){var s=r.indentation,c=r.prefix,l=r.delta,u=v(e,n,a),d=u.node,p=u.text;o&&o(d,p);var m=i.options,f=void 0!==s?s:A.formatting.SmartIndenter.getIndentation(t,n,m,c===a||A.getLineStartPositionForPosition(t,n)===t);void 0===l&&(l=A.formatting.SmartIndenter.shouldIndentChildNode(i.options,e)&&m.indentSize||0);var _={text:p,getLineAndCharacterOfPosition:function(e){return A.getLineAndCharacterOfPosition(this,e)}},g=A.formatting.formatNodeGivenIndentation(d,_,n.languageVariant,f,l,i);return y(p,g)}(e,n,s,o,t,r,a)},l=e.kind===d.ReplaceWithMultipleNodes?e.nodes.map(function(e){return A.removeSuffix(c(e),t)}).join(e.options.joiner||t):c(e.node),u=o.preserveLeadingWhitespace||void 0!==o.indentation||A.getLineStartPositionForPosition(s,n)===s?l:l.replace(/^\s+/,"");return(o.prefix||"")+u+(o.suffix||"")}(e,n,o,s,c))});return{fileName:n.fileName,textChanges:i}})},e.newFileChanges=function(e,n,t,r,a){var i=o(e,A.getScriptKindFromFileName(n),t,r,a);return{fileName:n,textChanges:[A.createTextChange(A.createTextSpan(0,0),i)],isNewFile:!0}},e.newFileChangesWorker=o}(f||(f={})),i.applyChanges=y;var T,S=function(){function e(e){var r=this;this.lastNonTriviaPosition=0,this.writer=A.createTextWriter(e),this.onEmitNode=function(e,n,t){n&&a(n,r.lastNonTriviaPosition),t(e,n),n&&o(n,r.lastNonTriviaPosition)},this.onBeforeEmitNodeArray=function(e){e&&a(e,r.lastNonTriviaPosition)},this.onAfterEmitNodeArray=function(e){e&&o(e,r.lastNonTriviaPosition)},this.onBeforeEmitToken=function(e){e&&a(e,r.lastNonTriviaPosition)},this.onAfterEmitToken=function(e){e&&o(e,r.lastNonTriviaPosition)}}return e.prototype.setLastNonTriviaPosition=function(e,n){if(n||(r=e,A.skipTrivia(r,0)!==r.length)){this.lastNonTriviaPosition=this.writer.getTextPos();for(var t=0;A.isWhiteSpaceLike(e.charCodeAt(e.length-t-1));)t++;this.lastNonTriviaPosition-=t}var r},e.prototype.write=function(e){this.writer.write(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeKeyword=function(e){this.writer.writeKeyword(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeOperator=function(e){this.writer.writeOperator(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writePunctuation=function(e){this.writer.writePunctuation(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeParameter=function(e){this.writer.writeParameter(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeProperty=function(e){this.writer.writeProperty(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeSpace=function(e){this.writer.writeSpace(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeStringLiteral=function(e){this.writer.writeStringLiteral(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeSymbol=function(e,n){this.writer.writeSymbol(e,n),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeTextOfNode=function(e,n){this.writer.writeTextOfNode(e,n)},e.prototype.writeLine=function(){this.writer.writeLine()},e.prototype.increaseIndent=function(){this.writer.increaseIndent()},e.prototype.decreaseIndent=function(){this.writer.decreaseIndent()},e.prototype.getText=function(){return this.writer.getText()},e.prototype.rawWrite=function(e){this.writer.rawWrite(e),this.setLastNonTriviaPosition(e,!1)},e.prototype.writeLiteral=function(e){this.writer.writeLiteral(e),this.setLastNonTriviaPosition(e,!0)},e.prototype.getTextPos=function(){return this.writer.getTextPos()},e.prototype.getLine=function(){return this.writer.getLine()},e.prototype.getColumn=function(){return this.writer.getColumn()},e.prototype.getIndent=function(){return this.writer.getIndent()},e.prototype.isAtStartOfLine=function(){return this.writer.isAtStartOfLine()},e.prototype.clear=function(){this.writer.clear(),this.lastNonTriviaPosition=0},e}();function x(e,n){return!A.isInComment(e,n)&&!A.isInString(e,n)&&!A.isInTemplateString(e,n)}function C(e,n,t,r){void 0===r&&(r={});var a=p(n,t,r,l.FullStart),i=m(n,t,r);e.deleteRange(n,{pos:a,end:i})}function D(e,n,t,r){var a=A.Debug.assertDefined(A.formatting.SmartIndenter.getContainingList(r,t)),i=A.indexOfNode(a,r);A.Debug.assert(-1!==i),1!==a.length?(A.Debug.assert(!n.has(r),"Deleting a node twice"),n.add(r),e.deleteRange(t,{pos:_(t,r),end:i===a.length-1?m(t,r,{}):_(t,a[i+1])})):C(e,t,r)}i.isValidLocationToAddComment=x,function(e){function c(e,n,t){if(t.parent.name){var r=A.Debug.assertDefined(A.getTokenAtPosition(n,t.pos-1));e.deleteRange(n,{pos:r.getStart(n),end:t.end})}else{C(e,n,A.getAncestor(t,247))}}(T||(T={})).deleteDeclaration=function(e,n,t,r){switch(r.kind){case 149:var a=r.parent;if(A.isArrowFunction(a)&&1===a.parameters.length){var i=A.updateArrowFunction(a,a.modifiers,a.typeParameters,void 0,a.type,a.equalsGreaterThanToken,a.body);A.suppressLeadingAndTrailingTrivia(i),e.replaceNode(t,a,i)}else D(e,n,t,r);break;case 247:C(e,t,r,r===t.imports[0].parent?{useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!1}:void 0);break;case 184:var o=r.parent;183===o.kind&&r!==A.last(o.elements)?C(e,t,r):D(e,n,t,r);break;case 235:!function(e,n,t,r){var a=r.parent;if(272===a.kind)return e.deleteNodeRange(t,A.findChildOfKind(a,19,t),A.findChildOfKind(a,20,t));if(1!==a.declarations.length)return D(e,n,t,r);var i=a.parent;switch(i.kind){case 225:case 224:e.replaceNode(t,r,A.createObjectLiteral());break;case 223:C(e,t,a);break;case 217:C(e,t,i);break;default:A.Debug.assertNever(i)}}(e,n,t,r);break;case 148:D(e,n,t,r);break;case 251:var s=r.parent;1===s.elements.length?c(e,t,s):D(e,n,t,r);break;case 249:c(e,t,r);break;default:A.isImportClause(r.parent)&&r.parent.name===r?function(e,n,t){if(t.namedBindings){var r=t.name.getStart(n),a=A.getTokenAtPosition(n,t.name.end);if(a&&26===a.kind){var i=A.skipTrivia(n.text,a.end,!1,!0);e.deleteRange(n,{pos:r,end:i})}else C(e,n,t.name)}else C(e,n,t.parent)}(e,t,r.parent):A.isCallLikeExpression(r.parent)?D(e,n,t,r):C(e,t,r,25===r.kind?{useNonAdjustedEndPosition:!0}:void 0)}}}(),i.deleteNode=C}(A.textChanges||(A.textChanges={}))}(ts||(ts={})),function(u){!function(e){var s=u.createMultiMap(),c=u.createMap();function o(e){return u.isArray(e)?u.formatStringFromArgs(u.getLocaleSpecificMessage(e[0]),e.slice(1)):u.getLocaleSpecificMessage(e)}function l(e,n,t,r,a,i){return{fixName:e,description:n,changes:t,fixId:r,fixAllDescription:a,commands:i?[i]:void 0}}function n(e,n){return{changes:e,commands:n}}function i(e,n,t){for(var r=e.program,a=e.sourceFile,i=e.cancellationToken,o=0,s=r.getSemanticDiagnostics(a,i).concat(u.computeSuggestionDiagnostics(a,r,i));o<s.length;o++){var c=s[o];u.contains(n,c.code)&&t(c)}}e.createCodeFixActionNoFixId=function(e,n,t){return l(e,o(t),n,void 0,void 0)},e.createCodeFixAction=function(e,n,t,r,a,i){return l(e,o(t),n,r,o(a),i)},e.registerCodeFix=function(e){for(var n=0,t=e.errorCodes;n<t.length;n++){var r=t[n];s.add(String(r),e)}if(e.fixIds)for(var a=0,i=e.fixIds;a<i.length;a++){var o=i[a];u.Debug.assert(!c.has(o)),c.set(o,e)}},e.getSupportedErrorCodes=function(){return u.arrayFrom(s.keys())},e.getFixes=function(n){return u.flatMap(s.get(String(n.errorCode))||u.emptyArray,function(e){return e.getCodeActions(n)})},e.getAllFixes=function(e){return c.get(u.cast(e.fixId,u.isString)).getAllCodeActions(e)},e.createCombinedCodeActions=n,e.createFileTextChanges=function(e,n){return{fileName:e,textChanges:n}},e.codeFixAll=function(e,t,r){var a=[];return n(u.textChanges.ChangeTracker.with(e,function(n){return i(e,t,function(e){return r(n,e,a)})}),0===a.length?void 0:a)},e.eachDiagnostic=i}(u.codefix||(u.codefix={}))}(ts||(ts={})),function(r){var e,a;e=r.refactor||(r.refactor={}),a=r.createMap(),e.registerRefactor=function(e,n){a.set(e,n)},e.getApplicableRefactors=function(n){return r.arrayFrom(r.flatMapIterator(a.values(),function(e){return n.cancellationToken&&n.cancellationToken.isCancellationRequested()?void 0:e.getAvailableActions(n)}))},e.getEditsForRefactor=function(e,n,t){var r=a.get(n);return r&&r.getEditsForAction(e,t)},r.getRefactorContextSpan=function(e){var n=e.startPosition,t=e.endPosition;return r.createTextSpanFromBounds(n,void 0===t?n:t)}}(ts||(ts={})),function(o){!function(t){var r="addMissingInvocationForDecorator",n=[o.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 a(e,n,t){var r=o.getTokenAtPosition(n,t),a=o.findAncestor(r,o.isDecorator);o.Debug.assert(!!a,"Expected position to be owned by a decorator.");var i=o.createCall(a.expression,void 0,void 0);e.replaceNode(n,a.expression,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var e=o.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,e,o.Diagnostics.Call_decorator_expression,r,o.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,n){return a(e,n.file,n.start)})}})}(o.codefix||(o.codefix={}))}(ts||(ts={})),function(p){!function(r){var a="annotateWithTypeFromJSDoc",n=[p.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(e,n){var t=p.getTokenAtPosition(e,n);return p.tryCast(p.isParameter(t.parent)?t.parent.parent:t.parent,o)}function o(e){return n=e,(p.isFunctionLikeDeclaration(n)||235===n.kind||151===n.kind||152===n.kind)&&t(e);var n}function t(e){return p.isFunctionLikeDeclaration(e)?e.parameters.some(t)||!e.type&&!!p.getJSDocReturnType(e):!e.type&&!!p.getJSDocType(e)}function s(e,n,t){if(p.isFunctionLikeDeclaration(t)&&(p.getJSDocReturnType(t)||t.parameters.some(function(e){return!!p.getJSDocType(e)}))){if(!t.typeParameters){var r=p.getJSDocTypeParameterDeclarations(t);r.length&&e.insertTypeParameters(n,t,r)}var a=p.isArrowFunction(t)&&!p.findChildOfKind(t,19,n);a&&e.insertNodeBefore(n,p.first(t.parameters),p.createToken(19));for(var i=0,o=t.parameters;i<o.length;i++){var s=o[i];if(!s.type){var c=p.getJSDocType(s);c&&e.tryInsertTypeAnnotation(n,s,d(c))}}if(a&&e.insertNodeAfter(n,p.last(t.parameters),p.createToken(20)),!t.type){var l=p.getJSDocReturnType(t);l&&e.tryInsertTypeAnnotation(n,t,d(l))}}else{var u=p.Debug.assertDefined(p.getJSDocType(t));p.Debug.assert(!t.type),e.tryInsertTypeAnnotation(n,t,d(u))}}function d(e){switch(e.kind){case 282:case 283:return p.createTypeReferenceNode("any",p.emptyArray);case 286:return i=e,p.createUnionTypeNode([p.visitNode(i.type,d),p.createTypeReferenceNode("undefined",p.emptyArray)]);case 285:return d(e.type);case 284:return a=e,p.createUnionTypeNode([p.visitNode(a.type,d),p.createTypeReferenceNode("null",p.emptyArray)]);case 288:return r=e,p.createArrayTypeNode(p.visitNode(r.type,d));case 287:return t=e,p.createFunctionTypeNode(p.emptyArray,t.parameters.map(c),t.type);case 162:return function(e){var n=e.typeName,t=e.typeArguments;if(p.isIdentifier(e.typeName)){if(p.isJSDocIndexSignature(e))return a=e,i=p.createParameter(void 0,void 0,void 0,134===a.typeArguments[0].kind?"n":"s",void 0,p.createTypeReferenceNode(134===a.typeArguments[0].kind?"number":"string",[]),void 0),o=p.createTypeLiteralNode([p.createIndexSignature(void 0,void 0,[i],a.typeArguments[1])]),p.setEmitFlags(o,1),o;var r=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":r=r.toLowerCase();break;case"array":case"date":case"promise":r=r[0].toUpperCase()+r.slice(1)}n=p.createIdentifier(r),t="Array"!==r&&"Promise"!==r||e.typeArguments?p.visitNodes(e.typeArguments,d):p.createNodeArray([p.createTypeReferenceNode("any",p.emptyArray)])}var a,i,o;return p.createTypeReferenceNode(n,t)}(e);default:var n=p.visitEachChild(e,d,void 0);return p.setEmitFlags(n,1),n}var t,r,a,i}function c(e){var n=e.parent.parameters.indexOf(e),t=288===e.type.kind&&n===e.parent.parameters.length-1,r=e.name||(t?"rest":"arg"+n),a=t?p.createToken(24):e.dotDotDotToken;return p.createParameter(e.decorators,e.modifiers,a,r,e.questionToken,p.visitNode(e.type,d),e.initializer)}r.registerCodeFix({errorCodes:n,getCodeActions:function(n){var t=i(n.sourceFile,n.span.start);if(t){var e=p.textChanges.ChangeTracker.with(n,function(e){return s(e,n.sourceFile,t)});return[r.createCodeFixAction(a,e,p.Diagnostics.Annotate_with_type_from_JSDoc,a,p.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[a],getAllCodeActions:function(e){return r.codeFixAll(e,n,function(e,n){var t=i(n.file,n.start);t&&s(e,n.file,t)})}}),r.parameterShouldGetTypeFromJSDoc=o}(p.codefix||(p.codefix={}))}(ts||(ts={})),function(g){!function(r){var t="convertFunctionToEs6Class",e=[g.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function a(m,f,e,n){var r=n.getSymbolAtLocation(g.getTokenAtPosition(f,e));if(r&&19&r.flags){var a,t,i=r.valueDeclaration;switch(i.kind){case 237:a=i,m.delete(f,i),t=function(e){var n=o(r);e.body&&n.unshift(g.createConstructor(void 0,void 0,e.parameters,e.body));var t=_(e,84);return g.createClassDeclaration(void 0,t,e.name,void 0,void 0,n)}(i);break;case 235:a=i.parent.parent,t=function(e){var n=e.initializer;if(!n||194!==n.kind)return;if(71!==e.name.kind)return;var t=o(e.symbol);n.body&&t.unshift(g.createConstructor(void 0,void 0,n.parameters,n.body));var r=_(a,84);return g.createClassDeclaration(void 0,r,e.name,void 0,void 0,t)}(i),1===i.parent.declarations.length?(g.copyComments(a,t,f),m.delete(f,a)):m.delete(f,i)}t&&(g.copyComments(i,t,f),m.insertNodeAfter(f,a,t))}function o(e){var t=[];return e.members&&e.members.forEach(function(e){var n=r(e,void 0);n&&t.push(n)}),e.exports&&e.exports.forEach(function(e){var n=r(e,[g.createToken(115)]);n&&t.push(n)}),t;function r(e,n){if(8192&e.flags){var t=e.valueDeclaration,r=t.parent;if(a=r.right,g.isFunctionLike(a)){var a,i=r.parent&&219===r.parent.kind?r.parent:r;if(m.delete(f,i),!r.right)return g.createProperty([],n,e.name,void 0,void 0,void 0);switch(r.right.kind){case 194:var o=r.right,s=g.concatenate(n,_(o,120)),c=g.createMethod(void 0,s,void 0,t.name,void 0,void 0,o.parameters,void 0,o.body);return g.copyComments(r,c,f),c;case 195:var l=r.right,u=l.body,d=void 0;d=216===u.kind?u:g.createBlock([g.createReturn(u)]);s=g.concatenate(n,_(l,120)),c=g.createMethod(void 0,s,void 0,t.name,void 0,void 0,l.parameters,void 0,d);return g.copyComments(r,c,f),c;default:if(g.isSourceFileJS(f))return;var p=g.createProperty(void 0,n,t.name,void 0,void 0,r.right);return g.copyComments(r.parent,p,f),p}}}}}}function _(e,n){return g.filter(e.modifiers,function(e){return e.kind===n})}r.registerCodeFix({errorCodes:e,getCodeActions:function(n){var e=g.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,n.span.start,n.program.getTypeChecker())});return[r.createCodeFixAction(t,e,g.Diagnostics.Convert_function_to_an_ES2015_class,t,g.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[t],getAllCodeActions:function(t){return r.codeFixAll(t,e,function(e,n){return a(e,n.file,n.start,t.program.getTypeChecker())})}})}(g.codefix||(g.codefix={}))}(ts||(ts={})),function(w){!function(r){var t="convertToAsyncFunction",e=[w.Diagnostics.This_may_be_converted_to_an_async_function.code],E=!0;function a(o,s,e,n,t){var r,a=w.getTokenAtPosition(s,e);if(r=w.isIdentifier(a)&&w.isVariableDeclaration(a.parent)&&a.parent.initializer&&w.isFunctionLikeDeclaration(a.parent.initializer)?a.parent.initializer:w.tryCast(w.getContainingFunction(w.getTokenAtPosition(s,e)),w.isFunctionLikeDeclaration)){var i,_,g,v,y,c,h,b,E,l,u=w.createMap(),d=w.createMap(),p=[],m=w.isInJSFile(r),f=function(e,t){if(!e.body)return w.createMap();var r=w.createMap();return w.forEachChild(e.body,function e(n){k(n,t,"then")?(r.set(w.getNodeId(n).toString(),!0),w.forEach(n.arguments,e)):k(n,t,"catch")?(r.set(w.getNodeId(n).toString(),!0),w.forEachChild(n,e)):k(n,t)?r.set(w.getNodeId(n).toString(),!0):w.forEachChild(n,e)}),r}(r,n),T=(i=r,_=n,g=u,v=t,y=f,c=d,h=p,b=w.createMap(),E=w.createMap(),w.forEachChild(i,function e(n){if(w.isIdentifier(n)){var t,r,a=_.getSymbolAtLocation(n),i=a&&(t=a,r=v.sourceFile,t.valueDeclaration&&t.valueDeclaration.getSourceFile()===r);if(a&&i){var o=O(_.getTypeAtLocation(n),_),s=w.getSymbolId(a).toString();if(!o||w.isFunctionLikeDeclaration(n.parent)||g.has(s)){if(n.parent&&(w.isParameter(n.parent)||w.isVariableDeclaration(n.parent))){var c=n.text,l=E.get(c);if(l&&l.some(function(e){return e!==a})){var u=I(n,E);b.set(s,u.identifier),g.set(s,u),h.push({identifier:u.identifier,symbol:a}),N(E,c,a)}else{var d=w.getSynthesizedDeepClone(n);b.set(s,d),g.set(s,{identifier:d,types:[],numberOfAssignmentsOriginal:h.filter(function(e){return e.identifier.text===n.text}).length}),(w.isParameter(n.parent)&&function(e){var n=e.parent;if(w.isCallExpression(n)||w.isIdentifier(n)&&!y.get(w.getNodeId(n).toString())){var t=_.getTypeAtLocation(n),r=t&&_.getPromisedTypeOfPromise(t);return!!r}return!1}(n.parent.parent)||w.isVariableDeclaration(n.parent))&&(h.push({identifier:d,symbol:a}),N(E,c,a))}}}else{var p=w.firstOrUndefined(o.parameters),m=p&&w.isParameter(p.valueDeclaration)&&w.tryCast(p.valueDeclaration.name,w.isIdentifier)||w.createOptimisticUniqueName("result"),f=I(m,E);g.set(s,f),h.push({identifier:f.identifier,symbol:a}),N(E,m.text,a)}}}else w.forEachChild(n,e)}),w.getSynthesizedDeepCloneWithRenames(i,!0,b,_,function(e,n){if(w.isIdentifier(e)){var t=_.getSymbolAtLocation(e),r=t&&w.getSymbolId(t).toString(),a=t&&g.get(r);if(a){var i=_.getTypeAtLocation(e);c.set(w.getNodeId(n).toString(),i)}}var o=y.get(w.getNodeId(e).toString());void 0!==o&&(y.delete(w.getNodeId(e).toString()),y.set(w.getNodeId(n).toString(),o))})),S=(l=[],u.forEach(function(e){0===e.numberOfAssignmentsOriginal&&l.push(e.identifier)}),l),x=w.getReturnStatementsWithPromiseHandlers(T),C={checker:n,synthNamesMap:u,allVarNames:p,setOfExpressionsToReturn:f,constIdentifiers:S,originalTypeMap:d,isInJSFile:m};if(x.length){o.insertLastModifierBefore(s,120,r);for(var D=function(i){w.forEachChild(i,function e(n){var t,r,a;w.isCallExpression(n)?(r=i,a=M(t=n,C,t),o.replaceNodeWithNodes(s,r,a)):w.isFunctionLike(n)||w.forEachChild(n,e)})},A=0,L=x;A<L.length;A++){D(L[A])}}}}function k(e,n,t){var r=(t?w.isCallExpression(e):w.isExpression(e))&&(!t||w.hasPropertyAccessExpressionWithName(e,t))&&n.getTypeAtLocation(e);return!(!r||!n.getPromisedTypeOfPromise(r))}function N(e,n,t){e.has(n)?e.get(n).push(t):e.set(n,[t])}function I(e,n){var t=(n.get(e.text)||w.emptyArray).length;return{identifier:0===t?e:w.createIdentifier(e.text+"_"+t),types:[],numberOfAssignmentsOriginal:0}}function M(e,n,t,r){if(!e)return w.emptyArray;var a=w.isIdentifier(e)&&n.originalTypeMap.get(w.getNodeId(e).toString())||n.checker.getTypeAtLocation(e);return w.isCallExpression(e)&&w.hasPropertyAccessExpressionWithName(e,"then")&&a&&n.checker.getPromisedTypeOfPromise(a)?function(e,n,t,r){var a=e.arguments,i=a[0],o=a[1];if(!i)return M(e.expression,n,t);var s=y(i,n),c=v(i,r,s,e,n);if(o){var l=y(o,n),u=w.createBlock(M(e.expression,n,e,s).concat(c)),d=v(o,r,l,e,n),p=l?l.identifier.text:"e",m=w.createCatchClause(p,w.createBlock(d));return[w.createTry(u,m,void 0)]}return M(e.expression,n,e,s).concat(c)}(e,n,t,r):w.isCallExpression(e)&&w.hasPropertyAccessExpressionWithName(e,"catch")&&a&&n.checker.getPromisedTypeOfPromise(a)?function(e,r,a){var n=e.arguments[0],t=y(n,r),i=r.setOfExpressionsToReturn.get(w.getNodeId(e).toString());a&&!i&&(a.numberOfAssignmentsOriginal=2,r.synthNamesMap.forEach(function(e,n){if(e.identifier.text===a.identifier.text){var t=g(a);r.synthNamesMap.set(n,t)}}),r.constIdentifiers.some(function(e){return e.text===a.identifier.text})&&r.constIdentifiers.push(g(a).identifier));var o,s=w.createBlock(M(e.expression,r,e,a)),c=v(n,a,t,e,r),l=t?t.identifier.text:"e",u=w.createCatchClause(l,w.createBlock(c));if(a&&!i){var d=a.types,p=r.checker.getUnionType(d,2),m=r.isInJSFile?void 0:r.checker.typeToTypeNode(p),f=[w.createVariableDeclaration(w.getSynthesizedDeepClone(a.identifier),m)];o=w.createVariableStatement(void 0,w.createVariableDeclarationList(f,1))}var _=w.createTry(s,u,void 0);return o?[o,_]:[_]}(e,n,r):w.isPropertyAccessExpression(e)?M(e.expression,n,t,r):a&&n.checker.getPromisedTypeOfPromise(a)?function(e,n,t){var r=n.setOfExpressionsToReturn.get(w.getNodeId(e).toString()),a=e.original?e.original.parent:e.parent;{if(t&&!r&&(!a||w.isPropertyAccessExpression(a)))return S(t,w.createAwait(e),n);if(!t&&!r&&(!a||w.isPropertyAccessExpression(a)))return[w.createStatement(w.createAwait(e))]}return[w.createReturn(w.getSynthesizedDeepClone(e))]}(e,n,r):(E=!1,w.emptyArray)}function g(e){return{identifier:w.createOptimisticUniqueName(e.identifier.text),types:[],numberOfAssignmentsOriginal:0}}function T(n,e){return e.some(function(e){return e.text===n.text})?2:1}function S(e,n,t){return e&&0!==e.identifier.text.length?e.types.length<e.numberOfAssignmentsOriginal?[w.createStatement(w.createAssignment(w.getSynthesizedDeepClone(e.identifier),n))]:[w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(w.getSynthesizedDeepClone(e.identifier),void 0,n)],T(e.identifier,t.constIdentifiers)))]:[w.createStatement(n)]}function v(e,n,t,r,a){var i=a.setOfExpressionsToReturn.get(w.getNodeId(r).toString());switch(e.kind){case 95:break;case 71:if(!t)break;var o=w.createCall(w.getSynthesizedDeepClone(e),void 0,t?[t.identifier]:w.emptyArray);if(i)return[w.createReturn(o)];var s=a.originalTypeMap.get(w.getNodeId(e).toString())||a.checker.getTypeAtLocation(e),c=a.checker.getSignaturesOfType(s,0);if(!c.length){E=!1;break}var l=c[0].getReturnType(),u=S(n,w.createAwait(o),a);return n&&n.types.push(l),u;case 194:case 195:var d=e.body;if(w.isBlock(d)){for(var p=[],m=!1,f=0,_=d.statements;f<_.length;f++){var g=_[f];w.isReturnStatement(g)&&(m=!0),w.getReturnStatementsWithPromiseHandlers(g).length?p=p.concat(x(a,[g],n)):p.push(g)}return i?p.map(function(e){return w.getSynthesizedDeepClone(e)}):function(e,n,t,r){for(var a=[],i=0,o=e;i<o.length;i++){var s=o[i];if(w.isReturnStatement(s)){if(s.expression){var c=k(s.expression,t.checker)?w.createAwait(s.expression):s.expression;void 0===n?a.push(w.createExpressionStatement(c)):a.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(n,void 0,c)],T(n,t.constIdentifiers))))}}else a.push(w.getSynthesizedDeepClone(s))}r||void 0===n||a.push(w.createVariableStatement(void 0,w.createVariableDeclarationList([w.createVariableDeclaration(n,void 0,w.createIdentifier("undefined"))],T(n,t.constIdentifiers))));return a}(p,void 0===n?void 0:n.identifier,a,m)}var v=x(a,w.getReturnStatementsWithPromiseHandlers(w.createReturn(d)),n);if(0<v.length)return v;if(i)return[w.createReturn(w.getSynthesizedDeepClone(d))];var y=O(a.checker.getTypeAtLocation(e),a.checker).getReturnType(),h=w.getSynthesizedDeepClone(d),b=S(n,a.checker.getPromisedTypeOfPromise(y)?w.createAwait(h):h,a);return n&&n.types.push(y),b;default:E=!1}return w.emptyArray}function O(e,n){var t=n.getSignaturesOfType(e,0);return w.lastOrUndefined(t)}function x(r,e,a){for(var i=[],n=0,t=e;n<t.length;n++){var o=t[n];w.forEachChild(o,function e(n){if(w.isCallExpression(n)){var t=M(n,r,n,a);if(0<(i=i.concat(t)).length)return}else w.isFunctionLike(n)||w.forEachChild(n,e)})}return i}function y(e,i){var n,o=[];w.isFunctionLikeDeclaration(e)?0<e.parameters.length&&(n=t(e.parameters[0].name)):w.isIdentifier(e)&&(n=t(e));if(n&&"undefined"!==n.identifier.text)return n;function t(e){var n,t,r=(n=e).original?n.original:n,a=(t=r).symbol?t.symbol:i.checker.getSymbolAtLocation(t);return a&&i.synthNamesMap.get(w.getSymbolId(a).toString())||{identifier:e,types:o,numberOfAssignmentsOriginal:0}}}r.registerCodeFix({errorCodes:e,getCodeActions:function(n){E=!0;var e=w.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n)});return E?[r.createCodeFixAction(t,e,w.Diagnostics.Convert_to_async_function,t,w.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[t],getAllCodeActions:function(t){return r.codeFixAll(t,e,function(e,n){return a(e,n.file,n.start,t.program.getTypeChecker(),t)})}})}(w.codefix||(w.codefix={}))}(ts||(ts={})),function(I){!function(h){function s(e,n,t,r){for(var a=0,i=e.imports;a<i.length;a++){var o=i[a],s=I.getResolvedModule(e,o.text);if(s&&s.resolvedFileName===n.fileName){var c=I.importFromModuleSpecifier(o);switch(c.kind){case 246:t.replaceNode(e,c,I.makeImport(c.name,void 0,o,r));break;case 189:I.isRequireCall(c,!1)&&t.replaceNode(e,c,I.createPropertyAccess(I.getSynthesizedDeepClone(c),"default"))}}}}function E(r,a){r.forEachChild(function e(n){if(I.isPropertyAccessExpression(n)&&I.isExportsOrModuleExportsOrAlias(r,n.expression)){var t=n.parent;a(n,I.isBinaryExpression(t)&&t.left===n&&58===t.operatorToken.kind)}n.forEachChild(e)})}function T(e,n,t,r,a,i,o,s){switch(n.kind){case 217:return l=e,d=r,p=t,m=a,f=i,_=s,g=(u=n).declarationList,v=!1,y=I.flatMap(g.declarations,function(e){var n=e.name,t=e.initializer;if(t){if(I.isExportsOrModuleExportsOrAlias(l,t))return v=!0,[];if(I.isRequireCall(t,!0))return v=!0,function(e,n,t,r,a,i,o,s){switch(n.kind){case 182:var c=I.mapAllOrFail(n.elements,function(e){return e.dotDotDotToken||e.initializer||e.propertyName&&!I.isIdentifier(e.propertyName)||!I.isIdentifier(e.name)?void 0:L(e.propertyName&&e.propertyName.text,e.name.text)});if(c)return[I.makeImport(void 0,c,t,s)];case 183:var l=x(h.moduleSpecifierToValidIdentifier(t.text,o),i);return[I.makeImport(I.createIdentifier(l),void 0,t,s),k(void 0,I.getSynthesizedDeepClone(n),I.createIdentifier(l))];case 71:return function(e,n,t,r,a,i,o){for(var s=a.getSymbolAtLocation(n),c=I.createMap(),l=!1,u=0,d=i.original.get(n.text);u<d.length;u++){var p=d[u];if(a.getSymbolAtLocation(p)===s&&p!==n){var m=p.parent;if(I.isPropertyAccessExpression(m)){var f=m.expression,_=m.name.text;I.Debug.assert(f===p);var g=c.get(_);void 0===g&&(g=x(_,i),c.set(_,g)),r.replaceNode(e,m,I.createIdentifier(g))}else l=!0}}var v=0===c.size?void 0:I.arrayFrom(I.mapIterator(c.entries(),function(e){var n=e[0],t=e[1];return I.createImportSpecifier(n===t?void 0:I.createIdentifier(n),I.createIdentifier(t))}));v||(l=!0);return[I.makeImport(l?I.getSynthesizedDeepClone(n):void 0,v,t,o)]}(e,n,t,r,a,i,s);default:return I.Debug.assertNever(n)}}(l,n,t.arguments[0],d,p,m,f,_);if(I.isPropertyAccessExpression(t)&&I.isRequireCall(t.expression,!0))return v=!0,function(e,n,t,r,a){switch(e.kind){case 182:case 183:var i=x(n,r);return[A(i,n,t,a),k(void 0,e,I.createIdentifier(i))];case 71:return[A(e.text,n,t,a)];default:return I.Debug.assertNever(e)}}(n,t.name.text,t.expression.arguments[0],m,_)}return I.createVariableStatement(void 0,I.createVariableDeclarationList([e],g.flags))}),v&&d.replaceNodeWithNodes(l,u,y),!1;case 219:var c=n.expression;switch(c.kind){case 189:return I.isRequireCall(c,!0)&&r.replaceNode(e,n,I.makeImport(void 0,void 0,c.arguments[0],s)),!1;case 202:return 58===c.operatorToken.kind&&function(e,n,t,r,a){var i=t.left,o=t.right;if(!I.isPropertyAccessExpression(i))return!1;if(I.isExportsOrModuleExportsOrAlias(e,i)){if(!I.isExportsOrModuleExportsOrAlias(e,o)){var s=I.isObjectLiteralExpression(o)?(m=o,(f=I.mapAllOrFail(m.properties,function(e){switch(e.kind){case 156:case 157:case 274:case 275:return;case 273:return I.isIdentifier(e.name)?function(e,n){var t=[I.createToken(84)];switch(n.kind){case 194:var r=n.name;if(r&&r.text!==e)return s();case 195:return D(e,t,n);case 207:return a=e,i=t,o=n,I.createClassDeclaration(I.getSynthesizedDeepClones(o.decorators),I.concatenate(i,I.getSynthesizedDeepClones(o.modifiers)),a,I.getSynthesizedDeepClones(o.typeParameters),I.getSynthesizedDeepClones(o.heritageClauses),I.getSynthesizedDeepClones(o.members));default:return s()}var a,i,o;function s(){return k(t,I.createIdentifier(e),n)}}(e.name.text,e.initializer):void 0;case 154:return I.isIdentifier(e.name)?D(e.name.text,[I.createToken(84)],e):void 0;default:I.Debug.assertNever(e)}}))&&[f,!1]):I.isRequireCall(o,!0)?(c=o.arguments[0],l=n,u=c.text,d=l.getSymbolAtLocation(c),(p=d?d.exports:I.emptyUnderscoreEscapedMap).has("export=")?[[S(u)],!0]:p.has("default")?1<p.size?[[b(u),S(u)],!0]:[[S(u)],!0]:[[b(u)],!1]):void 0;return s?(r.replaceNodeWithNodes(e,t.parent,s[0]),s[1]):(r.replaceRangeWithText(e,I.createRange(i.getStart(e),o.pos),"export default"),!0)}r.delete(e,t.parent)}else I.isExportsOrModuleExportsOrAlias(e,i.expression)&&function(e,n,t,r){var a=n.left.name.text,i=r.get(a);if(void 0!==i){var o=[k(void 0,i,n.right),N([I.createExportSpecifier(i,a)])];t.replaceNodeWithNodes(e,n.parent,o)}else!function(e,n,t){var r=e.left,a=e.right,i=e.parent,o=r.name.text;if(!(I.isFunctionExpression(a)||I.isArrowFunction(a)||I.isClassExpression(a))||a.name&&a.name.text!==o)t.replaceNodeRangeWithNodes(n,r.expression,I.findChildOfKind(r,23,n),[I.createToken(84),I.createToken(76)],{joiner:" ",suffix:" "});else{t.replaceRange(n,{pos:r.getStart(n),end:a.getStart(n)},I.createToken(84),{suffix:" "}),a.name||t.insertName(n,a,o);var s=I.findChildOfKind(i,25,n);s&&t.delete(n,s)}}(n,e,t)}(e,t,r,a);var c,l,u,d,p;var m,f;return!1}(e,t,c,r,o)}default:return!1}var l,u,d,p,m,f,_,g,v,y}function b(e){return N(void 0,e)}function S(e){return N([I.createExportSpecifier(void 0,"default")],e)}function x(e,n){for(;n.original.has(e)||n.additional.has(e);)e="_"+e;return n.additional.set(e,!0),e}function C(e){var n=e.parent;switch(n.kind){case 187:return n.name!==e;case 184:case 251:return n.propertyName!==e;default:return!0}}function D(e,n,t){return I.createFunctionDeclaration(I.getSynthesizedDeepClones(t.decorators),I.concatenate(n,I.getSynthesizedDeepClones(t.modifiers)),I.getSynthesizedDeepClone(t.asteriskToken),e,I.getSynthesizedDeepClones(t.typeParameters),I.getSynthesizedDeepClones(t.parameters),I.getSynthesizedDeepClone(t.type),I.convertToFunctionBody(I.getSynthesizedDeepClone(t.body)))}function A(e,n,t,r){return"default"===n?I.makeImport(I.createIdentifier(e),void 0,t,r):I.makeImport(void 0,[L(n,e)],t,r)}function L(e,n){return I.createImportSpecifier(void 0!==e&&e!==n?I.createIdentifier(e):void 0,I.createIdentifier(n))}function k(e,n,t){return I.createVariableStatement(e,I.createVariableDeclarationList([I.createVariableDeclaration(n,void 0,t)],2))}function N(e,n){return I.createExportDeclaration(void 0,void 0,e&&I.createNamedExports(e),void 0===n?void 0:I.createLiteral(n))}h.registerCodeFix({errorCodes:[I.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(e){var a=e.sourceFile,i=e.program,o=e.preferences,n=I.textChanges.ChangeTracker.with(e,function(e){if(function(e,n,t,r,a){var i={original:(d=e,p=I.createMultiMap(),function n(e,t){I.isIdentifier(e)&&C(e)&&t(e),e.forEachChild(function(e){return n(e,t)})}(d,function(e){return p.add(e.text,e)}),p),additional:I.createMap()},o=(s=e,c=n,l=i,u=I.createMap(),E(s,function(e){var n=e.name,t=n.text,r=n.originalKeywordKind;!u.has(t)&&(void 0!==r&&I.isNonContextualKeyword(r)||c.resolveName(e.name.text,e,67220415,!0))&&u.set(t,x("_"+t,l))}),u);var s,c,l,u;var d,p;m=e,f=o,_=t,E(m,function(e,n){if(!n){var t=e.name.text;_.replaceNode(m,e,I.createIdentifier(f.get(t)||t))}});var m,f,_;for(var g=!1,v=0,y=e.statements;v<y.length;v++){var h=y[v],b=T(e,h,n,t,i,r,o,a);g=g||b}return g}(a,i.getTypeChecker(),e,i.getCompilerOptions().target,I.getQuotePreference(a,o)))for(var n=0,t=i.getSourceFiles();n<t.length;n++){var r=t[n];s(r,a,e,I.getQuotePreference(r,o))}});return[h.createCodeFixActionNoFixId("convertToEs6Module",n,I.Diagnostics.Convert_to_ES6_module)]}})}(I.codefix||(I.codefix={}))}(ts||(ts={})),function(c){!function(a){var i="correctQualifiedNameToIndexedAccessType",n=[c.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 o(e,n){var t=c.findAncestor(c.getTokenAtPosition(e,n),c.isQualifiedName);return c.Debug.assert(!!t,"Expected position to be owned by a qualified name."),c.isIdentifier(t.left)?t:void 0}function s(e,n,t){var r=t.right.text,a=c.createIndexedAccessTypeNode(c.createTypeReferenceNode(t.left,void 0),c.createLiteralTypeNode(c.createLiteral(r)));e.replaceNode(n,t,a)}a.registerCodeFix({errorCodes:n,getCodeActions:function(n){var t=o(n.sourceFile,n.span.start);if(t){var e=c.textChanges.ChangeTracker.with(n,function(e){return s(e,n.sourceFile,t)}),r=t.left.text+'["'+t.right.text+'"]';return[a.createCodeFixAction(i,e,[c.Diagnostics.Rewrite_as_the_indexed_access_type_0,r],i,c.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[i],getAllCodeActions:function(e){return a.codeFixAll(e,n,function(e,n){var t=o(n.file,n.start);t&&s(e,n.file,t)})}})}(c.codefix||(c.codefix={}))}(ts||(ts={})),function(m){!function(d){var e=[m.Diagnostics.Class_0_incorrectly_implements_interface_1.code,m.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],o="fixClassIncorrectlyImplementsInterface";function c(e,n){return m.Debug.assertDefined(m.getContainingClass(m.getTokenAtPosition(e,n)))}function p(e){return!(8&m.getModifierFlags(e.valueDeclaration))}function l(r,e,a,i,o,n){var t=function(e,n){var t=m.getEffectiveBaseTypeNode(e);if(!t)return m.createSymbolTable();var r=n.getTypeAtLocation(t),a=n.getPropertiesOfType(r);return m.createSymbolTable(a.filter(p))}(i,r),s=r.getTypeAtLocation(e),c=r.getPropertiesOfType(s).filter(m.and(p,function(e){return!t.has(e.escapedName)})),l=r.getTypeAtLocation(i);function u(e,n){var t=r.getIndexInfoOfType(e,n);t&&o.insertNodeAtClassStart(a,i,r.indexInfoToIndexSignatureDeclaration(t,n,i))}l.getNumberIndexType()||u(s,1),l.getStringIndexType()||u(s,0),d.createMissingMemberNodes(i,c,r,n,function(e){return o.insertNodeAtClassStart(a,i,e)})}d.registerCodeFix({errorCodes:e,getCodeActions:function(t){var e=t.program,r=t.sourceFile,n=t.span,a=c(r,n.start),i=e.getTypeChecker();return m.mapDefined(m.getClassImplementsHeritageClauseElements(a),function(n){var e=m.textChanges.ChangeTracker.with(t,function(e){return l(i,n,r,a,e,t.preferences)});return 0===e.length?void 0:d.createCodeFixAction(o,e,[m.Diagnostics.Implement_interface_0,n.getText(r)],o,m.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[o],getAllCodeActions:function(o){var s=m.createMap();return d.codeFixAll(o,e,function(e,n){var t=c(n.file,n.start);if(m.addToSeen(s,m.getNodeId(t)))for(var r=0,a=m.getClassImplementsHeritageClauseElements(t);r<a.length;r++){var i=a[r];l(o.program.getTypeChecker(),i,n.file,t,e,o.preferences)}})}})}(m.codefix||(m.codefix={}))}(ts||(ts={})),function(I){!function(l){l.importFixId="fixMissingImport";var e,n,t,r,a=[I.Diagnostics.Cannot_find_name_0.code,I.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,I.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,I.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,I.Diagnostics.Cannot_find_namespace_0.code,I.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,I.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code];function x(e,n){return!(67220415&I.skipAlias(e,n).flags)}function C(e,n,t,r,o,a,i){var s,c,l,u,d,p,m,f,_,g,v,y,h,b=r.getTypeChecker(),E=I.flatMap(e,function(e){return t=b,r=o,a=(n=e).moduleSymbol,i=n.importKind,n.exportedSymbolIsTypeOnly&&I.isSourceFileJS(r)?I.emptyArray:I.mapDefined(r.imports,function(e){var n=I.importFromModuleSpecifier(e);return 247!==n.kind&&246!==n.kind||t.getSymbolAtLocation(e)!==a?void 0:{declaration:n,importKind:i}});var n,t,r,a,i}),T=void 0===t?void 0:(s=E,c=n,l=t,u=b,I.firstDefined(s,function(e){var n=e.declaration,t=function(e){if(247!==e.kind)return e.name;var n=e.importClause&&I.isImportClause(e.importClause)&&e.importClause.namedBindings;return n&&249===n.kind?n.name:void 0}(n);if(t){var r=u.getAliasedSymbol(u.getSymbolAtLocation(t));if(r&&r.exports.has(I.escapeLeadingUnderscores(c)))return{kind:0,namespacePrefix:t.text,position:l}}})),S=(d=E,I.firstDefined(d,function(e){var n=e.declaration,t=e.importKind;if(247===n.kind){var r=n.importClause;if(r){var a=r.name,i=r.namedBindings;return 1===t&&!a||0===t&&(!i||250===i.kind)?{kind:2,importClause:r,importKind:t}:void 0}}})),x=S?[S]:(p=e,m=E,f=r,_=o,g=t,v=a,y=i,(h=I.firstDefined(m,A))?[h]:D(f,_,g,p,v,y));return(T?[T]:I.emptyArray).concat(x)}function D(a,i,o,e,s,c){var l=I.isSourceFileJS(i);return I.flatMap(e,function(e){var n=e.moduleSymbol,t=e.importKind,r=e.exportedSymbolIsTypeOnly;return I.moduleSpecifiers.getModuleSpecifiers(n,a.getCompilerOptions(),i,s,a.getSourceFiles(),c,a.redirectTargetsMap).map(function(e){return r&&l?{kind:1,moduleSpecifier:e,position:I.Debug.assertDefined(o)}:{kind:3,moduleSpecifier:e,importKind:t}})}).sort(function(e,n){return e.moduleSpecifier.length-n.moduleSpecifier.length})}function A(e){var n=e.declaration,t=e.importKind,r=247===n.kind?n.moduleSpecifier:257===n.moduleReference.kind?n.moduleReference.expression:void 0;return r&&I.isStringLiteral(r)?{kind:3,moduleSpecifier:r.text,importKind:t}:void 0}function _(e,n,t){var r,a,i,o,s,c,l,u,d,p=I.getTokenAtPosition(e.sourceFile,t),m=n===I.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?function(e,n){var t=e.sourceFile,r=e.program,a=e.host,i=e.preferences,o=r.getTypeChecker(),s=function(e,n){var t=I.isIdentifier(e)?n.getSymbolAtLocation(e):void 0;if(I.isUMDExportSymbol(t))return t;var r=e.parent;return I.isJsxOpeningLikeElement(r)&&r.tagName===e||I.isJsxOpeningFragment(r)?I.tryCast(n.resolveName(n.getJsxNamespace(r),I.isJsxOpeningLikeElement(r)?e:r,67220415,!1),I.isUMDExportSymbol):void 0}(n,o);if(!s)return;var c=o.getAliasedSymbol(s),l=s.name;return{fixes:C([{moduleSymbol:c,importKind:function(e){if(I.getAllowSyntheticDefaultImports(e))return 1;var n=I.getEmitModuleKind(e);switch(n){case I.ModuleKind.AMD:case I.ModuleKind.CommonJS:case I.ModuleKind.UMD:return 3;case I.ModuleKind.System:case I.ModuleKind.ES2015:case I.ModuleKind.ESNext:case I.ModuleKind.None:return 2;default:return I.Debug.assertNever(n)}}(r.getCompilerOptions()),exportedSymbolIsTypeOnly:!1}],l,I.isIdentifier(n)?n.getStart(t):void 0,r,t,a,i),symbolName:l}}(e,p):I.isIdentifier(p)?(a=p,i=(r=e).sourceFile,o=r.program,s=r.cancellationToken,c=r.host,l=r.preferences,u=o.getTypeChecker(),d=I.isJsxOpeningLikeElement(a.parent)&&a.parent.tagName===a&&(I.isIntrinsicJsxName(a.text)||u.resolveName(a.text,a,67108863,!1))?u.getJsxNamespace():a.text,I.Debug.assert("default"!==d),{fixes:I.arrayFrom(I.flatMapIterator(function(r,a,i,e,o,s){var c=I.createMultiMap();function l(e,n,t){c.add(I.getUniqueSymbolId(n,o).toString(),{moduleSymbol:e,importKind:t,exportedSymbolIsTypeOnly:x(n,o)})}return b(o,e,s.getSourceFiles(),function(e){i.throwIfCancellationRequested();var n=L(e,o,s.getCompilerOptions());n&&n.name===r&&f(n.symbolForMeaning,a)&&l(e,n.symbol,n.kind);var t=o.tryGetMemberInModuleExportsAndProperties(r,e);t&&f(t,a)&&l(e,t,0)}),c}(d,I.getMeaningFromLocation(a),s,i,u,o).entries(),function(e){return e[0],C(e[1],d,a.getStart(i),o,i,c,l)})),symbolName:d}):void 0;return m&&__assign({},m,{fixes:I.sort(m.fixes,function(e,n){return e.kind-n.kind})})}function L(e,n,t){var r=function(e,n){var t=n.tryGetMemberInModuleExports("default",e);if(t)return{symbol:t,kind:1};var r=n.resolveExternalModuleSymbol(e);return r===e?void 0:{symbol:r,kind:3}}(e,n);if(r){var a=r.symbol,i=r.kind,o=function e(n,t,r,a){var i=I.getLocalSymbolForExportDefault(n);if(i)return{symbolForMeaning:i,name:i.name};var o=(s=n,s.declarations&&I.firstDefined(s.declarations,function(e){if(I.isExportAssignment(e)){if(I.isIdentifier(e.expression))return e.expression.text}else if(I.isExportSpecifier(e))return I.Debug.assert("default"===e.name.text),e.propertyName&&e.propertyName.text}));var s;if(void 0!==o)return{symbolForMeaning:n,name:o};{if(2097152&n.flags){var c=r.getImmediateAliasedSymbol(n);return c&&e(c,I.Debug.assertDefined(c.parent),r,a)}return{symbolForMeaning:n,name:d(t,a.target)}}}(a,e,n,t);return o&&__assign({symbol:a,kind:i},o)}}function k(e,n,t,r,a){var i,o=I.textChanges.ChangeTracker.with(e,function(e){i=function(e,n,t,r,a){switch(r.kind){case 0:return v(e,n,r),[I.Diagnostics.Change_0_to_1,t,r.namespacePrefix+"."+t];case 1:return y(e,n,r,a),[I.Diagnostics.Change_0_to_1,t,u(r.moduleSpecifier,a)+t];case 2:var i=r.importClause,o=r.importKind;g(e,n,i,1===o?t:void 0,0===o?[t]:I.emptyArray);var s=I.stripQuotes(i.parent.moduleSpecifier.getText());return[1===o?I.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:I.Diagnostics.Add_0_to_existing_import_declaration_from_1,t,s];case 3:var o=r.importKind,c=r.moduleSpecifier;return h(e,n,c,a,1===o?{defaultImport:t,namedImports:I.emptyArray,namespaceLikeImport:void 0}:0===o?{defaultImport:void 0,namedImports:[t],namespaceLikeImport:void 0}:{defaultImport:void 0,namedImports:I.emptyArray,namespaceLikeImport:{importKind:o,name:t}}),[1===o?I.Diagnostics.Import_default_0_from_module_1:I.Diagnostics.Import_0_from_module_1,t,c];default:return I.Debug.assertNever(r)}}(e,n,t,r,a)});return l.createCodeFixAction("import",o,i,l.importFixId,I.Diagnostics.Add_all_missing_imports)}function g(e,n,t,r,a){if(r&&(I.Debug.assert(!t.name),e.insertNodeAt(n,t.getStart(n),I.createIdentifier(r),{suffix:", "})),a.length){var i=a.map(function(e){return I.createImportSpecifier(void 0,I.createIdentifier(e))});if(t.namedBindings&&I.cast(t.namedBindings,I.isNamedImports).elements.length)for(var o=0,s=i;o<s.length;o++){var c=s[o];e.insertNodeInListAfter(n,I.last(I.cast(t.namedBindings,I.isNamedImports).elements),c)}else if(i.length){var l=I.createNamedImports(i);t.namedBindings?e.replaceNode(n,t.namedBindings,l):e.insertNodeAfter(n,I.Debug.assertDefined(t.name),l)}}}function v(e,n,t){var r=t.namespacePrefix,a=t.position;e.insertText(n,a,r+".")}function y(e,n,t,r){var a=t.moduleSpecifier,i=t.position;e.insertText(n,i,u(a,r))}function u(e,n){var t=I.getQuoteFromPreference(n);return"import("+t+e+t+")."}function h(e,n,t,r,a){var i=a.defaultImport,o=a.namedImports,s=a.namespaceLikeImport,c=I.makeStringLiteral(t,r);(void 0!==i||o.length)&&I.insertImport(e,n,I.makeImport(void 0===i?void 0:I.createIdentifier(i),o.map(function(e){return I.createImportSpecifier(void 0,I.createIdentifier(e))}),t,r)),s&&I.insertImport(e,n,3===s.importKind?I.createImportEqualsDeclaration(void 0,void 0,I.createIdentifier(s.name),I.createExternalModuleReference(c)):I.createImportDeclaration(void 0,void 0,I.createImportClause(void 0,I.createNamespaceImport(I.createIdentifier(s.name))),c))}function f(e,n){var t=e.declarations;return I.some(t,function(e){return!!(I.getMeaningFromDeclaration(e)&n)})}function b(e,i,n,o){N(e,n,function(e,n){var t,r,a;(void 0===n||n!==i&&(t=i.fileName,r=n.fileName,void 0===(a=I.forEachAncestorDirectory(r,function(e){return"node_modules"===I.getBaseFileName(e)?e:void 0}))||I.startsWith(t,I.getDirectoryPath(a))))&&o(e)})}function N(e,n,t){for(var r=0,a=e.getAmbientModules();r<a.length;r++){t(a[r],void 0)}for(var i=0,o=n;i<o.length;i++){var s=o[i];I.isExternalOrCommonJsModule(s)&&t(e.getMergedSymbol(s.symbol),s)}}function d(e,n){return i(I.removeFileExtension(I.stripQuotes(e.name)),n)}function i(e,n){var t=I.getBaseFileName(I.removeSuffix(e,"/index")),r="",a=!0,i=t.charCodeAt(0);I.isIdentifierStart(i,n)?r+=String.fromCharCode(i):a=!1;for(var o=1;o<t.length;o++){var s=t.charCodeAt(o),c=I.isIdentifierPart(s,n);if(c){var l=String.fromCharCode(s);a||(l=l.toUpperCase()),r+=l}a=c}return I.isStringANonContextualKeyword(r)?"_"+r:r||"_"}l.registerCodeFix({errorCodes:a,getCodeActions:function(n){var e=n.errorCode,t=n.preferences,r=n.sourceFile,a=n.span,i=_(n,e,a.start);if(i){var o=i.fixes,s=i.symbolName,c=I.getQuotePreference(r,t);return o.map(function(e){return k(n,r,s,e,c)})}},fixIds:[l.importFixId],getAllCodeActions:function(u){var s=u.sourceFile,c=u.preferences,d=[],p=[],m=I.createMap(),f=I.createMap();return l.eachDiagnostic(u,a,function(e){var n=_(u,e.code,e.start);if(n&&n.fixes.length){var t=n.fixes,r=n.symbolName,a=I.first(t);switch(a.kind){case 0:d.push(a);break;case 1:p.push(a);break;case 2:var i=a.importClause,o=a.importKind,s=String(I.getNodeId(i));(c=m.get(s))||m.set(s,c={importClause:i,defaultImport:void 0,namedImports:[]}),0===o?I.pushIfUnique(c.namedImports,r):(I.Debug.assert(void 0===c.defaultImport||c.defaultImport===r),c.defaultImport=r);break;case 3:var c,l=a.moduleSpecifier;o=a.importKind;switch((c=f.get(l))||f.set(l,c={defaultImport:void 0,namedImports:[],namespaceLikeImport:void 0}),o){case 1:I.Debug.assert(void 0===c.defaultImport||c.defaultImport===r),c.defaultImport=r;break;case 0:I.pushIfUnique(c.namedImports,r);break;case 3:case 2:I.Debug.assert(void 0===c.namespaceLikeImport||c.namespaceLikeImport.name===r),c.namespaceLikeImport={importKind:o,name:r}}break;default:I.Debug.assertNever(a)}}}),l.createCombinedCodeActions(I.textChanges.ChangeTracker.with(u,function(a){for(var t=I.getQuotePreference(s,c),e=0,n=d;e<n.length;e++){var r=n[e];v(a,s,r)}for(var i=0,o=p;i<o.length;i++){r=o[i];y(a,s,r,t)}m.forEach(function(e){var n=e.importClause,t=e.defaultImport,r=e.namedImports;g(a,s,n,t,r)}),f.forEach(function(e,n){h(a,s,n,t,e)})}))}}),(n=e||(e={}))[n.UseNamespace=0]="UseNamespace",n[n.ImportType=1]="ImportType",n[n.AddToExisting=2]="AddToExisting",n[n.AddNew=3]="AddNew",(r=t||(t={}))[r.Named=0]="Named",r[r.Default=1]="Default",r[r.Namespace=2]="Namespace",r[r.Equals=3]="Equals",l.getImportCompletionAction=function(e,n,t,r,a,i,o,s,c){var l,u,d,p,m,f,_,g,v=(l=e,u=n,d=r,p=t,m=i.getCompilerOptions(),f=i.getTypeChecker(),_=i.getSourceFiles(),g=[],N(f,_,function(e,n){if(!n||e===u||!I.startsWith(p.fileName,I.getDirectoryPath(n.fileName))){var t=L(e,f,m);t&&t.name===d&&I.skipAlias(t.symbol,f)===l&&g.push({moduleSymbol:e,importKind:t.kind,exportedSymbolIsTypeOnly:x(t.symbol,f)});for(var r=0,a=f.getExportsOfModule(e);r<a.length;r++){var i=a[r];i.name===d&&I.skipAlias(i,f)===l&&g.push({moduleSymbol:e,importKind:0,exportedSymbolIsTypeOnly:x(i,f)})}}}),g);I.Debug.assert(v.some(function(e){return e.moduleSymbol===n}));var y,h,b,E,T=I.first(D(i,t,s,v,a,c)).moduleSpecifier,S=I.first(C(v,r,s,i,t,a,c));return{moduleSpecifier:T,codeAction:(y=k({host:a,formatContext:o},t,r,S,I.getQuotePreference(t,c)),h=y.description,b=y.changes,E=y.commands,{description:h,changes:b,commands:E})}},l.forEachExternalModuleToImportFrom=b,l.moduleSymbolToValidIdentifier=d,l.moduleSpecifierToValidIdentifier=i}(I.codefix||(I.codefix={}))}(ts||(ts={})),function(d){!function(s){var c="fixSpelling",e=[d.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,d.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,d.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,d.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,d.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_2.code];function l(e,n,t){var r,a=d.getTokenAtPosition(e,n),i=t.program.getTypeChecker();if(d.isPropertyAccessExpression(a.parent)&&a.parent.name===a){d.Debug.assert(71===a.kind);var o=i.getTypeAtLocation(a.parent.expression);r=i.getSuggestionForNonexistentProperty(a,o)}else if(d.isImportSpecifier(a.parent)&&a.parent.name===a){d.Debug.assert(71===a.kind);var s=function(e,n,t){if(!t||!d.isStringLiteralLike(t.moduleSpecifier))return;var r=d.getResolvedModule(e,t.moduleSpecifier.text);return r?n.program.getSourceFile(r.resolvedFileName):void 0}(e,t,d.findAncestor(a,d.isImportDeclaration));s&&s.symbol&&(r=i.getSuggestionForNonexistentExport(a,s.symbol))}else{var c=d.getMeaningFromLocation(a),l=d.getTextOfNode(a);d.Debug.assert(void 0!==l,"name should be defined"),r=i.getSuggestionForNonexistentSymbol(a,l,function(e){var n=0;4&e&&(n|=1920);2&e&&(n|=67897832);1&e&&(n|=67220415);return n}(c))}return void 0===r?void 0:{node:a,suggestion:r}}function u(e,n,t,r,a){!d.isIdentifierText(r,a)&&d.isPropertyAccessExpression(t.parent)?e.replaceNode(n,t.parent,d.createElementAccess(t.parent.expression,d.createLiteral(r))):e.replaceNode(n,t,d.createIdentifier(r))}s.registerCodeFix({errorCodes:e,getCodeActions:function(e){var n=e.sourceFile,t=l(n,e.span.start,e);if(t){var r=t.node,a=t.suggestion,i=e.host.getCompilationSettings().target,o=d.textChanges.ChangeTracker.with(e,function(e){return u(e,n,r,a,i)});return[s.createCodeFixAction("spelling",o,[d.Diagnostics.Change_spelling_to_0,a],c,d.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[c],getAllCodeActions:function(a){return s.codeFixAll(a,e,function(e,n){var t=l(n.file,n.start,a),r=a.host.getCompilationSettings().target;t&&u(e,a.sourceFile,t.node,t.suggestion,r)})}})}(d.codefix||(d.codefix={}))}(ts||(ts={})),function(oe){!function(Q){var e,n,Z="addMissingMember",t=[oe.Diagnostics.Property_0_does_not_exist_on_type_1.code,oe.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code],$="addMissingMember";function ee(e,n,t){var r=oe.getTokenAtPosition(e,n);if(oe.isIdentifier(r)){var a=r.parent;if(oe.isPropertyAccessExpression(a)){var i=oe.skipConstraint(t.getTypeAtLocation(a.expression)),o=i.symbol;if(o&&o.declarations){var s=oe.find(o.declarations,oe.isClassLike)||oe.find(o.declarations,oe.isInterfaceDeclaration);if(s){var c=(i.target||i)!==t.getDeclaredTypeOfSymbol(o),l=s.getSourceFile();return{kind:1,token:r,parentDeclaration:s,makeStatic:c,declSourceFile:l,inJs:oe.isSourceFileJS(l),call:oe.tryCast(a.parent,oe.isCallExpression)}}var u=oe.find(o.declarations,oe.isEnumDeclaration);return u?{kind:0,token:r,parentDeclaration:u}:void 0}}}}function ne(e,n,t,r,a){if(a){if(207===t.kind)return;var i=t.name.getText(),o=l(oe.createIdentifier(i),r);e.insertNodeAfter(n,t,o)}else{var s=oe.getFirstConstructorWithBody(t);if(!s)return;var c=l(oe.createThis(),r);e.insertNodeAtConstructorEnd(n,s,c)}}function l(e,n){return oe.createStatement(oe.createAssignment(oe.createPropertyAccess(e,n),oe.createIdentifier("undefined")))}function te(e,n,t){var r;if(202===t.parent.parent.kind){var a=t.parent.parent,i=t.parent===a.left?a.right:a.left,o=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(i)));r=e.typeToTypeNode(o,n)}return r||oe.createKeywordTypeNode(119)}function re(e,n,t,r,a,i){var o=oe.createProperty(void 0,i?[oe.createToken(115)]:void 0,r,void 0,a,void 0),s=function(e){for(var n,t=0,r=e.members;t<r.length;t++){var a=r[t];if(!oe.isPropertyDeclaration(a))break;n=a}return n}(t);s?e.insertNodeAfter(n,s,o):e.insertNodeAtClassStart(n,t,o)}function ae(e,n,t,r,a,i,o,s,c){var l=Q.createMethodFromCallExpression(e,i,a.text,s,o,c,!oe.isInterfaceDeclaration(r)),u=oe.getAncestor(i,154);u&&u.parent===r?n.insertNodeAfter(t,u,l):n.insertNodeAtClassStart(t,r,l)}function ie(e,t,n,r){var a=oe.some(r.members,function(e){var n=t.getTypeAtLocation(e);return!!(n&&68&n.flags)}),i=oe.createEnumMember(n,a?oe.createStringLiteral(n.text):void 0);e.replaceNode(r.getSourceFile(),r,oe.updateEnumDeclaration(r,r.decorators,r.modifiers,r.name,oe.concatenate(r.members,oe.singleElementArray(i))))}Q.registerCodeFix({errorCodes:t,getCodeActions:function(n){var e=ee(n.sourceFile,n.span.start,n.program.getTypeChecker());if(e){if(0===e.kind){var t=e.token,r=e.parentDeclaration,a=oe.textChanges.ChangeTracker.with(n,function(e){return ie(e,n.program.getTypeChecker(),t,r)});return[Q.createCodeFixAction(Z,a,[oe.Diagnostics.Add_missing_enum_member_0,t.text],$,oe.Diagnostics.Add_all_missing_members)]}var i,o,s,c,l,u,d,p,m,f,_,g,v,y,h,b,E,T,S,x,C,D,A,L,k,N,I,M,O,w,P,R,F,G,V,B,K,j,H=e.parentDeclaration,U=e.declSourceFile,W=e.inJs,q=e.makeStatic,z=e.token,J=e.call,X=J&&(o=U,s=H,c=z,l=J,u=q,d=W,p=(i=n).preferences,m=oe.textChanges.ChangeTracker.with(i,function(e){return ae(i,e,o,s,c,l,u,d,p)}),Q.createCodeFixAction(Z,m,[u?oe.Diagnostics.Declare_static_method_0:oe.Diagnostics.Declare_method_0,c.text],$,oe.Diagnostics.Add_all_missing_members)),Y=W&&!oe.isInterfaceDeclaration(H)?oe.singleElementArray((F=n,G=U,V=H,B=z.text,K=q,0===(j=oe.textChanges.ChangeTracker.with(F,function(e){return ne(e,G,V,B,K)})).length?void 0:Q.createCodeFixAction(Z,j,[K?oe.Diagnostics.Initialize_static_property_0:oe.Diagnostics.Initialize_property_0_in_the_constructor,B],$,oe.Diagnostics.Add_all_missing_members))):(_=U,g=H,v=z,y=q,h=te((f=n).program.getTypeChecker(),g,v),E=f,T=_,S=g,x=y,C=v.text,D=h,A=oe.textChanges.ChangeTracker.with(E,function(e){return re(e,T,S,C,D,x)}),b=Q.createCodeFixAction(Z,A,[x?oe.Diagnostics.Declare_static_property_0:oe.Diagnostics.Declare_property_0,C],$,oe.Diagnostics.Add_all_missing_members),y?[b]:[b,(L=f,k=_,N=g,I=v.text,M=h,O=oe.createKeywordTypeNode(137),w=oe.createParameter(void 0,void 0,void 0,"x",void 0,O,void 0),P=oe.createIndexSignature(void 0,void 0,[w],M),R=oe.textChanges.ChangeTracker.with(L,function(e){return e.insertNodeAtClassStart(k,N,P)}),Q.createCodeFixActionNoFixId(Z,R,[oe.Diagnostics.Add_index_signature_for_property_0,I]))]);return oe.concatenate(oe.singleElementArray(X),Y)}},fixIds:[$],getAllCodeActions:function(u){var d=u.program,p=u.preferences,o=d.getTypeChecker(),s=oe.createMap(),m=new oe.NodeMap;return Q.createCombinedCodeActions(oe.textChanges.ChangeTracker.with(u,function(l){Q.eachDiagnostic(u,t,function(e){var n=ee(e.file,e.start,o);if(n&&oe.addToSeen(s,oe.getNodeId(n.parentDeclaration)+"#"+n.token.text))if(0===n.kind){var t=n.token,r=n.parentDeclaration;ie(l,o,t,r)}else{r=n.parentDeclaration;var a=n.token,i=m.getOrUpdate(r,function(){return[]});i.some(function(e){return e.token.text===a.text})||i.push(n)}}),m.forEach(function(e,n){for(var c=function(e,n){var t=[];for(;e;){var r=oe.getClassExtendsHeritageElement(e),a=r&&n.getSymbolAtLocation(r.expression),i=a&&oe.find(a.declarations,oe.isClassLike);i&&t.push(i),e=i}return t}(n,o),t=function(t){if(c.some(function(e){var n=m.get(e);return!!n&&n.some(function(e){return e.token.text===t.token.text})}))return"continue";var e=t.parentDeclaration,n=t.declSourceFile,r=t.inJs,a=t.makeStatic,i=t.token,o=t.call;if(o)ae(u,l,n,e,i,o,a,r,p);else if(r&&!oe.isInterfaceDeclaration(e))ne(l,n,e,i.text,a);else{var s=te(d.getTypeChecker(),e,i);re(l,n,e,i.text,s,a)}},r=0,a=e;r<a.length;r++){t(a[r])}})}))}}),(n=e||(e={}))[n.Enum=0]="Enum",n[n.ClassOrInterface=1]="ClassOrInterface"}(oe.codefix||(oe.codefix={}))}(ts||(ts={})),function(C){!function(l){var u="fixCannotFindModule",d="installTypesPackage",p="generateTypes",r=C.Diagnostics.Cannot_find_module_0.code,e=[r,C.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function m(e,n,t){var r=t.sourceFile.fileName,a=C.tryResolveJSModule(n,C.getDirectoryPath(r),t.host);if(void 0!==a){var i=C.resolvePath(C.getDirectoryPath(t.program.getCompilerOptions().configFile.fileName),e,n+".d.ts");if(!t.host.fileExists(i))return{type:"generate types",file:r,fileToGenerateTypesFor:a,outputFileName:i}}}function f(e,n){var t=n.program.getCompilerOptions().configFile;if(t){var r=C.getTsConfigObjectLiteralExpression(t);if(r){var a=E(r,"compilerOptions");if(!a){var i=C.createObjectLiteral([g(),h()]);return e.insertNodeAtObjectStart(t,r,b("compilerOptions",i)),v}var o=a.initializer;if(!C.isObjectLiteralExpression(o))return v;var s,c,l,u,d=(s=e,c=t,(u=E(l=o,"baseUrl"))?C.isStringLiteral(u.initializer)?u.initializer.text:_:(s.insertNodeAtObjectStart(c,l,g()),_)),p=function(e,n,t){var r=E(t,"paths");if(!r||!C.isObjectLiteralExpression(r.initializer))return e.insertNodeAtObjectStart(n,t,h()),v;var a=C.firstDefined(r.initializer.properties,function(e){return C.isPropertyAssignment(e)&&C.isStringLiteral(e.name)&&"*"===e.name.text&&C.isArrayLiteralExpression(e.initializer)?C.firstDefined(e.initializer.elements,function(e){return C.isStringLiteral(e)?C.tryRemoveSuffix(e.text,"/*"):void 0}):void 0});return a||(e.insertNodeAtObjectStart(n,r.initializer,y()),v)}(e,t,o);return C.combinePaths(d,p)}}}l.registerCodeFix({errorCodes:e,getCodeActions:function(e){var n=e.host,t=e.sourceFile,r=S(t,e.span.start);if(void 0!==r){var a,i,o,s,c=x(r,n,e.errorCode);return void 0===c?C.singleElementArray((a=e,i=r,s=C.textChanges.ChangeTracker.with(a,function(e){var n=f(e,a);o=void 0===n?void 0:m(n,i,a)}),o&&l.createCodeFixAction(u,s,[C.Diagnostics.Generate_types_for_0,i],p,C.Diagnostics.Generate_types_for_all_packages_without_types,o))):[l.createCodeFixAction(u,[],[C.Diagnostics.Install_0,c],d,C.Diagnostics.Install_all_missing_types_packages,T(t.fileName,c))]}},fixIds:[d,p],getAllCodeActions:function(s){var c=null;return l.codeFixAll(s,e,function(e,n,t){var r=S(n.file,n.start);if(void 0!==r)switch(s.fixId){case d:var a=x(r,s.host,n.code);a&&t.push(T(n.file.fileName,a));break;case p:var i=null!==c?c:c=f(e,s),o=void 0===i?void 0:m(i,r,s);o&&t.push(o);break;default:C.Debug.fail("Bad fixId: "+s.fixId)}})}});var _=".";function g(){return b("baseUrl",C.createStringLiteral(_))}var v="types";function y(){return b("*",C.createArrayLiteral([C.createStringLiteral(v+"/*")]))}function h(){return b("paths",C.createObjectLiteral([y()]))}function b(e,n){return C.createPropertyAssignment(C.createStringLiteral(e),n)}function E(e,n){return C.find(e.properties,function(e){return C.isPropertyAssignment(e)&&!!e.name&&C.isStringLiteral(e.name)&&e.name.text===n})}function T(e,n){return{type:"install package",file:e,packageName:n}}function S(e,n){var t=C.cast(C.getTokenAtPosition(e,n),C.isStringLiteral).text,r=C.parsePackageName(t).packageName;return C.isExternalModuleNameRelative(r)?void 0:r}function x(e,n,t){return t===r?C.JsTyping.nodeCoreModules.has(e)?"@types/node":void 0:n.isKnownTypesPackageName(e)?C.getTypesPackageName(e):void 0}}(C.codefix||(C.codefix={}))}(ts||(ts={})),function(u){!function(c){var e=[u.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,u.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],i="fixClassDoesntImplementInheritedAbstractMember";function o(e,n){var t=u.getTokenAtPosition(e,n);return u.cast(t.parent,u.isClassLike)}function s(n,t,e,r,a){var i=u.getEffectiveBaseTypeNode(n),o=e.getTypeAtLocation(i),s=e.getPropertiesOfType(o).filter(l);c.createMissingMemberNodes(n,s,e,a,function(e){return r.insertNodeAtClassStart(t,n,e)})}function l(e){var n=u.getModifierFlags(u.first(e.getDeclarations()));return!(8&n||!(128&n))}c.registerCodeFix({errorCodes:e,getCodeActions:function(n){var t=n.program,r=n.sourceFile,a=n.span,e=u.textChanges.ChangeTracker.with(n,function(e){return s(o(r,a.start),r,t.getTypeChecker(),e,n.preferences)});return 0===e.length?void 0:[c.createCodeFixAction(i,e,u.Diagnostics.Implement_inherited_abstract_class,i,u.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[i],getAllCodeActions:function(r){var a=u.createMap();return c.codeFixAll(r,e,function(e,n){var t=o(n.file,n.start);u.addToSeen(a,u.getNodeId(t))&&s(t,r.sourceFile,r.program.getTypeChecker(),e,r.preferences)})}})}(u.codefix||(u.codefix={}))}(ts||(ts={})),function(d){!function(s){var c="classSuperMustPrecedeThisAccess",n=[d.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function l(e,n,t,r){e.insertNodeAtConstructorStart(n,t,r),e.delete(n,r)}function u(e,n){var t=d.getTokenAtPosition(e,n);if(99===t.kind){var r=d.getContainingFunction(t),a=i(r.body);return a&&!a.expression.arguments.some(function(e){return d.isPropertyAccessExpression(e)&&e.expression===t})?{constructor:r,superCall:a}:void 0}}function i(e){return d.isExpressionStatement(e)&&d.isSuperCall(e.expression)?e:d.isFunctionLike(e)?void 0:d.forEachChild(e,i)}s.registerCodeFix({errorCodes:n,getCodeActions:function(e){var n=e.sourceFile,t=e.span,r=u(n,t.start);if(r){var a=r.constructor,i=r.superCall,o=d.textChanges.ChangeTracker.with(e,function(e){return l(e,n,a,i)});return[s.createCodeFixAction(c,o,d.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,c,d.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[c],getAllCodeActions:function(e){var i=e.sourceFile,o=d.createMap();return s.codeFixAll(e,n,function(e,n){var t=u(n.file,n.start);if(t){var r=t.constructor,a=t.superCall;d.addToSeen(o,d.getNodeId(r.parent))&&l(e,i,r,a)}})}})}(d.codefix||(d.codefix={}))}(ts||(ts={})),function(l){!function(i){var o="constructorForDerivedNeedSuperCall",e=[l.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function s(e,n){var t=l.getTokenAtPosition(e,n);return l.Debug.assert(123===t.kind),t.parent}function c(e,n,t){var r=l.createStatement(l.createCall(l.createSuper(),void 0,l.emptyArray));e.insertNodeAtConstructorStart(n,t,r)}i.registerCodeFix({errorCodes:e,getCodeActions:function(e){var n=e.sourceFile,t=e.span,r=s(n,t.start),a=l.textChanges.ChangeTracker.with(e,function(e){return c(e,n,r)});return[i.createCodeFixAction(o,a,l.Diagnostics.Add_missing_super_call,o,l.Diagnostics.Add_all_missing_super_calls)]},fixIds:[o],getAllCodeActions:function(t){return i.codeFixAll(t,e,function(e,n){return c(e,t.sourceFile,s(n.file,n.start))})}})}(l.codefix||(l.codefix={}))}(ts||(ts={})),function(u){!function(o){var s="extendsInterfaceBecomesImplements",n=[u.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function c(e,n){var t=u.getTokenAtPosition(e,n),r=u.getContainingClass(t).heritageClauses,a=r[0].getFirstToken();return 85===a.kind?{extendsToken:a,heritageClauses:r}:void 0}function l(e,n,t,r){if(e.replaceNode(n,t,u.createToken(108)),2===r.length&&85===r[0].token&&108===r[1].token){var a=r[1].getFirstToken(),i=a.getFullStart();e.replaceRange(n,{pos:i,end:i},u.createToken(26));for(var o=n.text,s=a.end;s<o.length&&u.isWhiteSpaceSingleLine(o.charCodeAt(s));)s++;e.deleteRange(n,{pos:a.getStart(),end:s})}}o.registerCodeFix({errorCodes:n,getCodeActions:function(e){var n=e.sourceFile,t=c(n,e.span.start);if(t){var r=t.extendsToken,a=t.heritageClauses,i=u.textChanges.ChangeTracker.with(e,function(e){return l(e,n,r,a)});return[o.createCodeFixAction(s,i,u.Diagnostics.Change_extends_to_implements,s,u.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[s],getAllCodeActions:function(e){return o.codeFixAll(e,n,function(e,n){var t=c(n.file,n.start);t&&l(e,n.file,t.extendsToken,t.heritageClauses)})}})}(u.codefix||(u.codefix={}))}(ts||(ts={})),function(l){!function(a){var i="forgottenThisPropertyAccess",o=l.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e=[l.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,o];function s(e,n,t){var r=l.getTokenAtPosition(e,n);if(l.isIdentifier(r))return{node:r,className:t===o?l.getContainingClass(r).name.text:void 0}}function c(e,n,t){var r=t.node,a=t.className;l.suppressLeadingAndTrailingTrivia(r),e.replaceNode(n,r,l.createPropertyAccess(a?l.createIdentifier(a):l.createThis(),r))}a.registerCodeFix({errorCodes:e,getCodeActions:function(e){var n=e.sourceFile,t=s(n,e.span.start,e.errorCode);if(t){var r=l.textChanges.ChangeTracker.with(e,function(e){return c(e,n,t)});return[a.createCodeFixAction(i,r,[l.Diagnostics.Add_0_to_unresolved_variable,t.className||"this"],i,l.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[i],getAllCodeActions:function(r){return a.codeFixAll(r,e,function(e,n){var t=s(n.file,n.start,n.code);t&&c(e,r.sourceFile,t)})}})}(l.codefix||(l.codefix={}))}(ts||(ts={})),function(L){!function(_){var g="unusedIdentifier",v="unusedIdentifier_prefix",c="unusedIdentifier_delete",y="unusedIdentifier_infer",n=[L.Diagnostics._0_is_declared_but_its_value_is_never_read.code,L.Diagnostics._0_is_declared_but_never_used.code,L.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,L.Diagnostics.All_imports_in_import_declaration_are_unused.code,L.Diagnostics.All_destructured_elements_are_unused.code,L.Diagnostics.All_variables_are_unused.code,L.Diagnostics.All_type_parameters_are_unused.code];function h(e,n,t){e.replaceNode(n,t.parent,L.createKeywordTypeNode(142))}function b(e,n){return _.createCodeFixAction(g,e,n,c,L.Diagnostics.Delete_all_unused_declarations)}function E(e,n,t){e.delete(n,L.Debug.assertDefined(L.cast(t.parent,L.isDeclarationWithTypeParameterChildren).typeParameters))}function T(e){return 91===e.kind?L.tryCast(e.parent,L.isImportDeclaration):void 0}function S(e,n,t,r,a,i){if(17!==e.kind||!L.isObjectBindingPattern(e.parent))return!1;var o=e.parent.parent;return 149===o.kind?A(n,t,o,r,a,i):n.delete(t,o),!0}function x(e,n,t){var r=L.tryCast(n.parent,L.isVariableDeclarationList);return!(!r||r.getChildren(e)[0]!==n)&&(t.delete(e,217===r.parent.kind?r.parent:r),!0)}function C(e,n,t,r){n!==L.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(126===r.kind&&(r=L.cast(r.parent,L.isInferTypeNode).typeParameter.name),L.isIdentifier(r)&&function(e){switch(e.parent.kind){case 149:case 148:return!0;case 235:var n=e.parent;switch(n.parent.parent.kind){case 225:case 224:return!0}}return!1}(r)&&e.replaceNode(t,r,L.createIdentifier("_"+r.text)))}function D(e,n,t,r,a,i){var o,s,c,l,u,d,p,m,f,_,g;s=t,c=e,l=r,u=a,d=i,p=(o=n).parent,L.isParameter(p)?A(s,c,p,l,u,d):s.delete(c,L.isImportClause(p)?o:L.isComputedPropertyName(p)?p.parent:p),L.isIdentifier(n)&&(m=t,f=e,_=n,g=r,L.FindAllReferences.Core.eachSymbolReferenceInFile(_,g,f,function(e){187===e.parent.kind&&(e=e.parent),202===e.parent.kind&&219===e.parent.parent.kind&&m.delete(f,e.parent.parent)}))}function A(e,n,t,r,a,i){var o,s,c,l,u;(function(e,n,t){var r=e.parent;switch(r.kind){case 154:var a=n.getSymbolAtLocation(r.name);if(L.isMemberSymbolInBaseType(a,n))return!1;case 155:case 237:return!0;case 194:case 195:var i=r.parameters,o=i.indexOf(e);return L.Debug.assert(-1!==o),t?i.slice(o+1).every(function(e){return 71===e.name.kind&&!e.symbol.isReferenced}):o===i.length-1;case 157:return!1;default:return L.Debug.failBadSyntaxKind(r)}})(t,r,i)&&(e.delete(n,t),o=e,s=n,c=t,l=a,u=r,L.FindAllReferences.Core.eachSignatureCall(c.parent,l,u,function(e){var n=c.parent.parameters.indexOf(c);e.arguments.length>n&&o.delete(s,e.arguments[n])}))}_.registerCodeFix({errorCodes:n,getCodeActions:function(e){var n=e.errorCode,t=e.sourceFile,r=e.program,a=r.getTypeChecker(),i=r.getSourceFiles(),o=L.getTokenAtPosition(t,e.span.start);if(L.isJSDocTemplateTag(o))return[b(L.textChanges.ChangeTracker.with(e,function(e){return e.delete(t,o)}),L.Diagnostics.Remove_template_tag)];if(27===o.kind)return[b(d=L.textChanges.ChangeTracker.with(e,function(e){return E(e,t,o)}),L.Diagnostics.Remove_type_parameters)];var s=T(o);if(s)return[b(d=L.textChanges.ChangeTracker.with(e,function(e){return e.delete(t,s)}),[L.Diagnostics.Remove_import_from_0,L.showModuleSpecifier(s)])];var c=L.textChanges.ChangeTracker.with(e,function(e){return S(o,e,t,a,i,!1)});if(c.length)return[b(c,L.Diagnostics.Remove_destructuring)];var l=L.textChanges.ChangeTracker.with(e,function(e){return x(t,o,e)});if(l.length)return[b(l,L.Diagnostics.Remove_variable_statement)];var u=[];if(126===o.kind){var d=L.textChanges.ChangeTracker.with(e,function(e){return h(e,t,o)}),p=L.cast(o.parent,L.isInferTypeNode).typeParameter.name.text;u.push(_.createCodeFixAction(g,d,[L.Diagnostics.Replace_infer_0_with_unknown,p],y,L.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var m=L.textChanges.ChangeTracker.with(e,function(e){return D(t,o,e,a,i,!1)});if(m.length){p=L.isComputedPropertyName(o.parent)?o.parent:o;u.push(b(m,[L.Diagnostics.Remove_declaration_for_Colon_0,p.getText(t)]))}}var f=L.textChanges.ChangeTracker.with(e,function(e){return C(e,n,t,o)});return f.length&&u.push(_.createCodeFixAction(g,f,[L.Diagnostics.Prefix_0_with_an_underscore,o.getText(t)],v,L.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),u},fixIds:[v,c,y],getAllCodeActions:function(a){var i=a.sourceFile,e=a.program,o=e.getTypeChecker(),s=e.getSourceFiles();return _.codeFixAll(a,n,function(e,n){var t=L.getTokenAtPosition(i,n.start);switch(a.fixId){case v:C(e,n.code,i,t);break;case c:if(126===t.kind)break;var r=T(t);r?e.delete(i,r):L.isJSDocTemplateTag(t)?e.delete(i,t):27===t.kind?E(e,i,t):S(t,e,i,o,s,!0)||x(i,t,e)||D(i,t,e,o,s,!0);break;case y:126===t.kind&&h(e,i,t);break;default:L.Debug.fail(JSON.stringify(a.fixId))}})}})}(L.codefix||(L.codefix={}))}(ts||(ts={})),function(l){!function(t){var r="fixUnreachableCode",n=[l.Diagnostics.Unreachable_code_detected.code];function a(e,n,t,r){var a=l.getTokenAtPosition(n,t),i=l.findAncestor(a,l.isStatement);l.Debug.assert(i.getStart(n)===a.getStart(n));var o=(l.isBlock(i.parent)?i.parent:i).parent;if(!l.isBlock(i.parent)||i===l.first(i.parent.statements))switch(o.kind){case 220:if(o.elseStatement){if(l.isBlock(i.parent))break;return void e.replaceNode(n,i,l.createBlock(l.emptyArray))}case 222:case 223:return void e.delete(n,o)}if(l.isBlock(i.parent)){var s=t+r,c=l.Debug.assertDefined(function(e,n){for(var t,r=0,a=e;r<a.length;r++){var i=a[r];if(!n(i))break;t=i}return t}(l.sliceAfter(i.parent.statements,i),function(e){return e.pos<s}));e.deleteNodeRange(n,i,c)}else e.delete(n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var e=l.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,n.span.start,n.span.length)});return[t.createCodeFixAction(r,e,l.Diagnostics.Remove_unreachable_code,r,l.Diagnostics.Remove_all_unreachable_code)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,n){return a(e,n.file,n.start,n.length)})}})}(l.codefix||(l.codefix={}))}(ts||(ts={})),function(c){!function(t){var r="fixUnusedLabel",n=[c.Diagnostics.Unused_label.code];function a(e,n,t){var r=c.getTokenAtPosition(n,t),a=c.cast(r.parent,c.isLabeledStatement),i=r.getStart(n),o=a.statement.getStart(n),s=c.positionsAreOnSameLine(i,o,n)?o:c.skipTrivia(n.text,c.findChildOfKind(a,56,n).end,!0);e.deleteRange(n,{pos:i,end:s})}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var e=c.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,n.span.start)});return[t.createCodeFixAction(r,e,c.Diagnostics.Remove_unused_label,r,c.Diagnostics.Remove_all_unused_labels)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,function(e,n){return a(e,n.file,n.start)})}})}(c.codefix||(c.codefix={}))}(ts||(ts={})),function(f){!function(l){var u="fixJSDocTypes_plain",d="fixJSDocTypes_nullable",t=[f.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function p(e,n,t,r,a){e.replaceNode(n,t,a.typeToTypeNode(r,t))}function m(e,n,t){var r=f.findAncestor(f.getTokenAtPosition(e,n),i),a=r&&r.type;return a&&{typeNode:a,type:t.getTypeFromTypeNode(a)}}function i(e){switch(e.kind){case 210:case 158:case 159:case 237:case 156:case 160:case 179:case 154:case 153:case 149:case 152:case 151:case 157:case 240:case 192:case 235:return!0;default:return!1}}l.registerCodeFix({errorCodes:t,getCodeActions:function(a){var i=a.sourceFile,o=a.program.getTypeChecker(),e=m(i,a.span.start,o);if(e){var s=e.typeNode,n=e.type,c=s.getText(i),t=[r(n,u,f.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 284===s.kind&&t.push(r(o.getNullableType(n,8192),d,f.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),t}function r(n,e,t){var r=f.textChanges.ChangeTracker.with(a,function(e){return p(e,i,s,n,o)});return l.createCodeFixAction("jdocTypes",r,[f.Diagnostics.Change_0_to_1,c,o.typeToString(n)],e,t)}},fixIds:[u,d],getAllCodeActions:function(e){var o=e.fixId,n=e.program,s=e.sourceFile,c=n.getTypeChecker();return l.codeFixAll(e,t,function(e,n){var t=m(n.file,n.start,c);if(t){var r=t.typeNode,a=t.type,i=284===r.kind&&o===d?c.getNullableType(a,8192):a;p(e,s,r,i,c)}})}})}(f.codefix||(f.codefix={}))}(ts||(ts={})),function(l){!function(i){var o="fixAwaitInSyncFunction",e=[l.Diagnostics.await_expression_is_only_allowed_within_an_async_function.code,l.Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator.code];function s(e,n){var t=l.getTokenAtPosition(e,n),r=l.getContainingFunction(t);if(r){var a,i;switch(r.kind){case 154:a=r.name;break;case 237:case 194:a=l.findChildOfKind(r,89,e);break;case 195:a=l.findChildOfKind(r,19,e)||l.first(r.parameters);break;default:return}return a&&{insertBefore:a,returnType:(i=r,i.type?i.type:l.isVariableDeclaration(i.parent)&&i.parent.type&&l.isFunctionTypeNode(i.parent.type)?i.parent.type.type:void 0)}}}function c(e,n,t){var r=t.insertBefore,a=t.returnType;if(a){var i=l.getEntityNameFromTypeNode(a);i&&71===i.kind&&"Promise"===i.text||e.replaceNode(n,a,l.createTypeReferenceNode("Promise",l.createNodeArray([a])))}e.insertModifierBefore(n,120,r)}i.registerCodeFix({errorCodes:e,getCodeActions:function(e){var n=e.sourceFile,t=e.span,r=s(n,t.start);if(r){var a=l.textChanges.ChangeTracker.with(e,function(e){return c(e,n,r)});return[i.createCodeFixAction(o,a,l.Diagnostics.Add_async_modifier_to_containing_function,o,l.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[o],getAllCodeActions:function(r){return i.codeFixAll(r,e,function(e,n){var t=s(n.file,n.start);t&&c(e,r.sourceFile,t)})}})}(l.codefix||(l.codefix={}))}(ts||(ts={})),function(d){!function(s){var c="disableJsDiagnostics",l="disableJsDiagnostics",n=d.mapDefined(Object.keys(d.Diagnostics),function(e){var n=d.Diagnostics[e];return n.category===d.DiagnosticCategory.Error?n.code:void 0});function u(e,n,t,r){var a=d.getLineAndCharacterOfPosition(n,t).line;r&&!d.addToSeen(r,a)||e.insertCommentBeforeLine(n,a,t," @ts-ignore")}s.registerCodeFix({errorCodes:n,getCodeActions:function(e){var n=e.sourceFile,t=e.program,r=e.span,a=e.host,i=e.formatContext;if(d.isInJSFile(n)&&d.isCheckJsEnabledForFile(n,t.getCompilerOptions())){var o=[s.createCodeFixActionNoFixId(c,[s.createFileTextChanges(n.fileName,[d.createTextChange(n.checkJsDirective?d.createTextSpanFromBounds(n.checkJsDirective.pos,n.checkJsDirective.end):d.createTextSpan(0,0),"// @ts-nocheck"+d.getNewLineOrDefaultFromHost(a,i.options))])],d.Diagnostics.Disable_checking_for_this_file)];return d.textChanges.isValidLocationToAddComment(n,r.start)&&o.unshift(s.createCodeFixAction(c,d.textChanges.ChangeTracker.with(e,function(e){return u(e,n,r.start)}),d.Diagnostics.Ignore_this_error_message,l,d.Diagnostics.Add_ts_ignore_to_all_error_messages)),o}},fixIds:[l],getAllCodeActions:function(e){var t=d.createMap();return s.codeFixAll(e,n,function(e,n){d.textChanges.isValidLocationToAddComment(n.file,n.start)&&u(e,n.file,n.start,t)})}})}(d.codefix||(d.codefix={}))}(ts||(ts={})),function(C){!function(e){function l(e,p,m,n,f){var t=e.getDeclarations();if(t&&t.length){var r=t[0],a=C.getSynthesizedDeepClone(C.getNameOfDeclaration(r),!1),i=function(e){{if(4&e)return C.createToken(114);if(16&e)return C.createToken(113)}return}(C.getModifierFlags(r)),o=i?C.createNodeArray([i]):void 0,s=m.getWidenedType(m.getTypeOfSymbolAtLocation(e,p)),_=!!(16777216&e.flags);switch(r.kind){case 156:case 157:case 151:case 152:var c=m.typeToTypeNode(s,p);f(C.createProperty(void 0,o,a,_?C.createToken(55):void 0,c,void 0));break;case 153:case 154:var l=m.getSignaturesOfType(s,0);if(!C.some(l))break;if(1===t.length){C.Debug.assert(1===l.length),g(l[0],o,a,x(n));break}for(var u=0,d=l;u<d.length;u++){g(d[u],C.getSynthesizedDeepClones(o,!1),C.getSynthesizedDeepClone(a,!1))}if(t.length>l.length)g(m.getSignatureFromDeclaration(t[t.length-1]),o,a,x(n));else C.Debug.assert(t.length===l.length),f(function(e,n,t,r,a){for(var i=e[0],o=e[0].minArgumentCount,s=!1,c=0,l=e;c<l.length;c++){var u=l[c];o=Math.min(u.minArgumentCount,o),u.hasRestParameter&&(s=!0),u.parameters.length>=i.parameters.length&&(!u.hasRestParameter||i.hasRestParameter)&&(i=u)}var d=i.parameters.length-(i.hasRestParameter?1:0),p=i.parameters.map(function(e){return e.name}),m=S(d,p,void 0,o,!1);if(s){var f=C.createArrayTypeNode(C.createKeywordTypeNode(119)),_=C.createParameter(void 0,void 0,C.createToken(24),p[d]||"rest",o<=d?C.createToken(55):void 0,f,void 0);m.push(_)}return g=r,v=n,y=t,h=void 0,b=m,E=void 0,T=a,C.createMethod(void 0,g,void 0,v,y?C.createToken(55):void 0,h,b,E,x(T));var g,v,y,h,b,E,T}(l,a,_,o,n))}}function g(e,n,t,r){var a,i,o,s,c,l,u,d=(a=e,i=p,o=n,s=t,c=_,l=r,(u=m.signatureToSignatureDeclaration(a,154,i,256))?(u.decorators=void 0,u.modifiers=o,u.name=s,u.questionToken=c?C.createToken(55):void 0,u.body=l,u):void 0);d&&f(d)}}function S(e,n,t,r,a){for(var i=[],o=0;o<e;o++){var s=C.createParameter(void 0,void 0,void 0,n&&n[o]||"arg"+o,void 0!==r&&r<=o?C.createToken(55):void 0,a?void 0:t&&t[o]||C.createKeywordTypeNode(119),void 0);i.push(s)}return i}function x(e){return C.createBlock([C.createThrow(C.createNew(C.createIdentifier("Error"),void 0,[C.createLiteral("Method not implemented.","single"===e.quotePreference)]))],!0)}e.createMissingMemberNodes=function(e,n,t,r,a){for(var i=e.symbol.members,o=0,s=n;o<s.length;o++){var c=s[o];i.has(c.escapedName)||l(c,e,t,r,a)}},e.createMethodFromCallExpression=function(e,n,t,r,a,i,o){var s=n.typeArguments,c=n.arguments,l=n.parent,u=e.program.getTypeChecker(),d=C.map(c,function(e){return u.typeToTypeNode(u.getBaseTypeOfLiteralType(u.getTypeAtLocation(e)))}),p=C.map(c,function(e){return C.isIdentifier(e)?e.text:C.isPropertyAccessExpression(e)?e.name.text:void 0}),m=u.getContextualType(n),f=r?void 0:m&&u.typeToTypeNode(m,n)||C.createKeywordTypeNode(119);return C.createMethod(void 0,a?[C.createToken(115)]:void 0,C.isYieldExpression(l)?C.createToken(39):void 0,t,void 0,r?void 0:C.map(s,function(e,n){return C.createTypeParameterDeclaration(84+s.length-1<=90?String.fromCharCode(84+n):"T"+n)}),S(c.length,p,d,void 0,r),f,o?x(i):void 0)}}(C.codefix||(C.codefix={}))}(ts||(ts={})),function(h){!function(u){var d,p="inferFromUsage",n=[h.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,h.Diagnostics.Variable_0_implicitly_has_an_1_type.code,h.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,h.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,h.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,h.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,h.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,h.Diagnostics.Member_0_implicitly_has_an_1_type.code];function m(e,n,t,r,a,i,o){if(h.isParameterPropertyModifier(t.kind)||71===t.kind||24===t.kind){var s=t.parent;switch(r){case h.Diagnostics.Member_0_implicitly_has_an_1_type.code:case h.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:return h.isVariableDeclaration(s)&&o(s)||h.isPropertyDeclaration(s)||h.isPropertySignature(s)?(f(e,n,s,a,i),s):void 0;case h.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var c=a.getTypeChecker().getSymbolAtLocation(t);return c&&c.valueDeclaration&&h.isVariableDeclaration(c.valueDeclaration)&&o(c.valueDeclaration)?(f(e,n,c.valueDeclaration,a,i),c.valueDeclaration):void 0}var l=h.getContainingFunction(t);if(void 0!==l)switch(r){case h.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(h.isSetAccessor(l))return _(e,n,l,a,i),l;case h.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(o(l)){var u=h.cast(s,h.isParameter);return function(t,e,n,r,a,i){if(!h.isIdentifier(e.name)||!function(e){switch(e.kind){case 237:case 154:case 155:return!0;case 194:return!!e.name}return!1}(n))return;var o=function(e,n,t,r){switch(e.kind){case 155:case 194:case 237:case 154:var a=155===e.kind,i=a?h.findChildOfKind(e,123,n):e.name;if(i)return d.inferTypeForParametersFromReferences(v(i,t,r),e,t.getTypeChecker(),r)}}(n,r,a,i)||n.parameters.map(function(e){return h.isIdentifier(e.name)?y(e.name,a,i):void 0});if(!o||n.parameters.length!==o.length)return;h.zipWith(n.parameters,o,function(e,n){e.type||e.initializer||g(t,r,e,n,a)})}(e,u,l,n,a,i),u}return;case h.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case h.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:return h.isGetAccessor(l)&&h.isIdentifier(l.name)?(g(e,n,l,y(l.name,a,i),a),l):void 0;case h.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:return h.isSetAccessor(l)?(_(e,n,l,a,i),l):void 0;default:return h.Debug.fail(String(r))}}}function f(e,n,t,r,a){h.isIdentifier(t.name)&&g(e,n,t,y(t.name,r,a),r)}function _(e,n,t,r,a){var i=h.firstOrUndefined(t.parameters);i&&h.isIdentifier(t.name)&&h.isIdentifier(i.name)&&g(e,n,i,y(t.name,r,a)||y(i.name,r,a),r)}function g(e,n,t,r,a){var i,o,s,c,l,u,d=r&&(i=r,o=t,s=a.getTypeChecker(),c=!0,l=function(){c=!1},u=s.typeToTypeNode(i,o,void 0,{trackSymbol:function(e,n,t){c=c&&0===s.isSymbolAccessible(e,n,t,!1).accessibility},reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l}),c?u:void 0);d&&e.tryInsertTypeAnnotation(n,t,d)}function v(e,n,t){return h.mapDefined(h.FindAllReferences.getReferenceEntriesForNode(-1,e,n,n.getSourceFiles(),t),function(e){return"node"===e.type?h.tryCast(e.node,h.isIdentifier):void 0})}function y(e,n,t){return d.inferTypeFromReferences(v(e,n,t),n.getTypeChecker(),t)}u.registerCodeFix({errorCodes:n,getCodeActions:function(e){var n=e.sourceFile,t=e.program,r=e.span.start,a=e.errorCode,i=e.cancellationToken;if(!h.isSourceFileJS(n)){var o,s=h.getTokenAtPosition(n,r),c=h.textChanges.ChangeTracker.with(e,function(e){o=m(e,n,s,a,t,i,h.returnTrue)}),l=o&&h.getNameOfDeclaration(o);return l&&0!==c.length?[u.createCodeFixAction(p,c,[function(e,n){switch(e){case h.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:return h.isSetAccessor(h.getContainingFunction(n))?h.Diagnostics.Infer_type_of_0_from_usage:h.Diagnostics.Infer_parameter_types_from_usage;case h.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:return h.Diagnostics.Infer_parameter_types_from_usage;default:return h.Diagnostics.Infer_type_of_0_from_usage}}(a,s),l.getText(n)],p,h.Diagnostics.Infer_all_types_from_usage)]:void 0}},fixIds:[p],getAllCodeActions:function(e){var t=e.sourceFile,r=e.program,a=e.cancellationToken,i=h.nodeSeenTracker();return u.codeFixAll(e,n,function(e,n){m(e,t,h.getTokenAtPosition(n.file,n.start),n.code,r,a,i)})}}),function(e){function s(e,n,t){for(;h.isRightSideOfQualifiedNameOrPropertyAccess(e);)e=e.parent;switch(e.parent.kind){case 201:t.isNumber=!0;break;case 200:!function(e,n){switch(e.operator){case 43:case 44:case 38:case 52:n.isNumber=!0;break;case 37:n.isNumberOrString=!0}}(e.parent,t);break;case 202:!function(e,n,t,r){switch(n.operatorToken.kind){case 40:case 39:case 41:case 42:case 45:case 46:case 47:case 48:case 49:case 50:case 60:case 62:case 61:case 63:case 64:case 68:case 69:case 70:case 65:case 67:case 66:case 38:case 27:case 30:case 29:case 31:var a=t.getTypeAtLocation(n.left===e?n.right:n.left);544&a.flags?l(r,a):r.isNumber=!0;break;case 59:case 37:var i=t.getTypeAtLocation(n.left===e?n.right:n.left);544&i.flags?l(r,i):168&i.flags?r.isNumber=!0:68&i.flags?r.isString=!0:r.isNumberOrString=!0;break;case 58:case 32:case 34:case 35:case 33:l(r,t.getTypeAtLocation(n.left===e?n.right:n.left));break;case 92:e===n.left&&(r.isString=!0);break;case 54:e!==n.left||235!==e.parent.parent.kind&&!h.isAssignmentExpression(e.parent.parent,!0)||l(r,t.getTypeAtLocation(n.right))}}(e,e.parent,n,t);break;case 269:case 270:o=e.parent,l(t,n.getTypeAtLocation(o.parent.parent.expression));break;case 189:case 190:e.parent.expression===e?function(e,n,t){var r={argumentTypes:[],returnType:{}};if(e.arguments)for(var a=0,i=e.arguments;a<i.length;a++){var o=i[a];r.argumentTypes.push(n.getTypeAtLocation(o))}s(e,n,r.returnType),189===e.kind?(t.callContexts||(t.callContexts=[])).push(r):(t.constructContexts||(t.constructContexts=[])).push(r)}(e.parent,n,t):c(e,n,t);break;case 187:!function(e,n,t){var r=h.escapeLeadingUnderscores(e.name.text);t.properties||(t.properties=h.createUnderscoreEscapedMap());var a=t.properties.get(r)||{};s(e,n,a),t.properties.set(r,a)}(e.parent,n,t);break;case 188:!function(e,n,t,r){{if(n===e.argumentExpression)return r.isNumberOrString=!0;var a=t.getTypeAtLocation(e.argumentExpression),i={};s(e,t,i),168&a.flags?r.numberIndexContext=i:r.stringIndexContext=i}}(e.parent,e,n,t);break;case 235:var r=e.parent,a=r.name,i=r.initializer;if(e===a){i&&l(t,n.getTypeAtLocation(i));break}default:return c(e,n,t)}var o}function c(e,n,t){h.isExpressionNode(e)&&l(t,n.getContextualType(e))}function f(e,r){if(e.isNumberOrString&&!e.isNumber&&!e.isString)return r.getUnionType([r.getNumberType(),r.getStringType()]);if(e.isNumber)return r.getNumberType();if(e.isString)return r.getStringType();if(e.candidateTypes)return r.getWidenedType(r.getUnionType(e.candidateTypes.map(function(e){return r.getBaseTypeOfLiteralType(e)}),2));if(e.properties&&v(e.properties.get("then"))){var n=_(0,e.properties.get("then").callContexts,!1,r).getCallSignatures().map(function(e){return e.getReturnType()});return r.createPromiseType(n.length?r.getUnionType(n,2):r.getAnyType())}if(e.properties&&v(e.properties.get("push")))return r.createArrayType(_(0,e.properties.get("push").callContexts,!1,r));if(e.numberIndexContext)return r.createArrayType(m(e.numberIndexContext));if(e.properties||e.callContexts||e.constructContexts||e.stringIndexContext){var a=h.createUnderscoreEscapedMap(),t=[],i=[],o=void 0;if(e.properties&&e.properties.forEach(function(e,n){var t=r.createSymbol(4,n);t.type=m(e),a.set(n,t)}),e.callContexts)for(var s=0,c=e.callContexts;s<c.length;s++){var l=c[s];t.push(g(l,r))}if(e.constructContexts)for(var u=0,d=e.constructContexts;u<d.length;u++){var p=d[u];i.push(g(p,r))}return e.stringIndexContext&&(o=r.createIndexInfo(m(e.stringIndexContext),!1)),r.createAnonymousType(void 0,a,t,i,o,void 0)}function m(e){return f(e,r)||r.getAnyType()}}function _(e,n,t,r){var a=[];if(n)for(var i=0,o=n;i<o.length;i++){var s=o[i];s.argumentTypes.length>e&&(t?a=h.concatenate(a,h.map(s.argumentTypes.slice(e),function(e){return r.getBaseTypeOfLiteralType(e)})):a.push(r.getBaseTypeOfLiteralType(s.argumentTypes[e])))}if(a.length){var c=r.getWidenedType(r.getUnionType(a,2));return t?r.createArrayType(c):c}}function g(e,n){for(var t=[],r=0;r<e.argumentTypes.length;r++){var a=n.createSymbol(1,h.escapeLeadingUnderscores("arg"+r));a.type=n.getWidenedType(n.getBaseTypeOfLiteralType(e.argumentTypes[r])),t.push(a)}var i=f(e.returnType,n)||n.getVoidType();return n.createSignature(void 0,void 0,void 0,t,i,void 0,e.argumentTypes.length,!1,!1)}function l(e,n){!n||1&n.flags||32768&n.flags||(e.candidateTypes||(e.candidateTypes=[])).push(n)}function v(e){return!!e&&!!e.callContexts}e.inferTypeFromReferences=function(e,n,t){for(var r={},a=0,i=e;a<i.length;a++){var o=i[a];t.throwIfCancellationRequested(),s(o,n,r)}return f(r,n)},e.inferTypeForParametersFromReferences=function(e,n,l,t){if(0!==e.length&&n.parameters){for(var r={},a=0,i=e;a<i.length;a++){var o=i[a];t.throwIfCancellationRequested(),s(o,l,r)}var u=155===n.kind?r.constructContexts:r.callContexts;return u&&n.parameters.map(function(e,n){for(var t=[],r=h.isRestParameter(e),a=0,i=u;a<i.length;a++){var o=i[a];if(!(o.argumentTypes.length<=n))if(r)for(var s=n;s<o.argumentTypes.length;s++)t.push(l.getBaseTypeOfLiteralType(o.argumentTypes[s]));else t.push(l.getBaseTypeOfLiteralType(o.argumentTypes[n]))}if(t.length){var c=l.getWidenedType(l.getUnionType(t,2));return r?l.createArrayType(c):c}})}}}(d||(d={}))}(h.codefix||(h.codefix={}))}(ts||(ts={})),function(g){!function(m){var f="invalidImportSyntax";function _(e,n,t,r){var a=g.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(n,t,r)});return m.createCodeFixActionNoFixId(f,a,[g.Diagnostics.Replace_import_with_0,a[0].textChanges[0].newText])}function i(e,n){var t=e.program.getTypeChecker().getTypeAtLocation(n);if(!t.symbol||!t.symbol.originatingImport)return[];var r,a,i,o,s,c,l=[],u=t.symbol.originatingImport;if(g.isImportCall(u)||g.addRange(l,(r=e,a=u,i=g.getSourceFileOfNode(a),o=g.getNamespaceDeclarationNode(a),s=r.program.getCompilerOptions(),(c=[]).push(_(r,i,a,g.makeImport(o.name,void 0,a.moduleSpecifier,g.getQuotePreference(i,r.preferences)))),g.getEmitModuleKind(s)===g.ModuleKind.CommonJS&&c.push(_(r,i,a,g.createImportEqualsDeclaration(void 0,void 0,o.name,g.createExternalModuleReference(a.moduleSpecifier)))),c)),g.isExpression(n)&&(!g.isNamedDeclaration(n.parent)||n.parent.name!==n)){var d=e.sourceFile,p=g.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(d,n,g.createPropertyAccess(n,"default"),{})});l.push(m.createCodeFixActionNoFixId(f,p,g.Diagnostics.Use_synthetic_default_member))}return l}m.registerCodeFix({errorCodes:[g.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code,g.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature.code],getCodeActions:function(n){var e=n.sourceFile,t=g.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures.code===n.errorCode?189:190,r=g.findAncestor(g.getTokenAtPosition(e,n.span.start),function(e){return e.kind===t&&e.getStart()===n.span.start&&e.getEnd()===n.span.start+n.span.length});if(!r)return[];var a=r.expression;return i(n,a)}}),m.registerCodeFix({errorCodes:[g.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,g.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,g.Diagnostics.Type_0_is_not_assignable_to_type_1.code,g.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,g.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,g.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2.code,g.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2.code,g.Diagnostics.Numeric_index_type_0_is_not_assignable_to_string_index_type_1.code,g.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,g.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,g.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,g.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(n){var e=n.sourceFile,t=g.findAncestor(g.getTokenAtPosition(e,n.span.start),function(e){return e.getStart()===n.span.start&&e.getEnd()===n.span.start+n.span.length});return t?i(n,t):[]}})}(g.codefix||(g.codefix={}))}(ts||(ts={})),function(h){!function(l){var u="strictClassInitialization",d="addMissingPropertyDefiniteAssignmentAssertions",p="addMissingPropertyUndefinedType",m="addMissingPropertyInitializer",e=[h.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function f(e,n){var t=h.getTokenAtPosition(e,n);return h.isIdentifier(t)?h.cast(t.parent,h.isPropertyDeclaration):void 0}function _(e,n,t){var r=h.updateProperty(t,t.decorators,t.modifiers,t.name,h.createToken(51),t.type,t.initializer);e.replaceNode(n,t,r)}function g(e,n,t){var r=h.createKeywordTypeNode(140),a=t.type,i=h.isUnionTypeNode(a)?a.types.concat(r):[a,r];e.replaceNode(n,a,h.createUnionTypeNode(i))}function v(e,n,t,r){var a=h.updateProperty(t,t.decorators,t.modifiers,t.name,t.questionToken,t.type,r);e.replaceNode(n,t,a)}function y(e,n){return function n(t,e){{if(256&e.flags)return e===t.getFalseType()||e===t.getFalseType(!0)?h.createFalse():h.createTrue();if(e.isLiteral())return h.createLiteral(e.value);if(e.isUnion())return h.firstDefined(e.types,function(e){return n(t,e)});if(e.isClass()){var r=h.getClassLikeDeclarationOfSymbol(e.symbol);if(!r||h.hasModifier(r,128))return;var a=h.getFirstConstructorWithBody(r);if(a&&a.parameters.length)return;return h.createNew(h.createIdentifier(e.symbol.name),void 0,void 0)}if(t.isArrayLikeType(e))return h.createArrayLiteral()}return}(e,e.getTypeFromTypeNode(n.type))}l.registerCodeFix({errorCodes:e,getCodeActions:function(e){var n=f(e.sourceFile,e.span.start);if(n){var t,r,a,i,o,s,c=[(i=e,o=n,s=h.textChanges.ChangeTracker.with(i,function(e){return g(e,i.sourceFile,o)}),l.createCodeFixAction(u,s,[h.Diagnostics.Add_undefined_type_to_property_0,o.name.getText()],p,h.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)),(t=e,r=n,a=h.textChanges.ChangeTracker.with(t,function(e){return _(e,t.sourceFile,r)}),l.createCodeFixAction(u,a,[h.Diagnostics.Add_definite_assignment_assertion_to_property_0,r.getText()],d,h.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties))];return h.append(c,function(n,t){var r=y(n.program.getTypeChecker(),t);if(!r)return;var e=h.textChanges.ChangeTracker.with(n,function(e){return v(e,n.sourceFile,t,r)});return l.createCodeFixAction(u,e,[h.Diagnostics.Add_initializer_to_property_0,t.name.getText()],m,h.Diagnostics.Add_initializers_to_all_uninitialized_properties)}(e,n)),c}},fixIds:[d,p,m],getAllCodeActions:function(a){return l.codeFixAll(a,e,function(e,n){var t=f(n.file,n.start);if(t)switch(a.fixId){case d:_(e,n.file,t);break;case p:g(e,n.file,t);break;case m:var r=y(a.program.getTypeChecker(),t);if(!r)return;v(e,n.file,t,r);break;default:h.Debug.fail(JSON.stringify(a.fixId))}})}})}(h.codefix||(h.codefix={}))}(ts||(ts={})),function(x){function r(e,n){return x.textChanges.getNewFileText(D(e,0),3,"\n",x.formatting.getFormatContext(n))}var e,n;function C(e){return D(e,2)}function D(e,n){var t="default"===e.name,r=t?"_default":e.name;if(!O(r)||t&&1!==n)return x.emptyArray;var a,i,o,s,c,l,u,d,p,m,f,_,g,v,y=t&&2===e.kind?[x.createModifier(84),x.createModifier(79)]:0===n?[x.createModifier(124)]:1===n?[x.createModifier(84)]:void 0,h=function(){return 0===n?[A(e.name,!0)]:x.emptyArray},b=function(){return t?[A("_default",!1)]:x.emptyArray};switch(e.kind){case 2:return h().concat((a=y,i=r,s=(o=e).source,c=o.prototypeMembers,l=o.namespaceMembers,u=I(s),d=void 0===u?{parameters:x.emptyArray,returnType:P()}:N(u),p=d.parameters,m=d.returnType,f="object"==typeof u?(v=[],M(u,function(e){if(x.isAssignmentExpression(e,!0)&&x.isPropertyAccessExpression(e.left)&&99===e.left.expression.kind){var n=e.left.name.text;x.isJsPrivate(n)||v.push(x.createProperty(void 0,void 0,n,void 0,P(),void 0))}}),v):x.emptyArray,_=0!==f.length||0!==c.length||void 0===u||"number"!=typeof u&&155===u.kind?[]:void 0,g=x.flatMap(l,function(e){if(O(e.name)){if(_)switch(e.kind){case 3:if(e.members.some(function(e){return 2===e.kind}))break;case 1:case 0:return void _.push(w(x.createProperty(void 0,[x.createModifier(115)],e.name,void 0,k(e),void 0),0===e.kind?e.comment:void 0));case 2:if(!e.namespaceMembers.length){var n=L(e,[x.createModifier(115)]);if(n)return void _.push(n)}}return D(e,2)}}),[_?x.createClassDeclaration(void 0,a,i,void 0,void 0,_.concat(p.length?[x.createConstructor(void 0,void 0,p,void 0)]:x.emptyArray,f,x.mapDefined(c,function(e){return 2===e.kind?L(e):void 0}))):x.createFunctionDeclaration(void 0,a,void 0,i,void 0,p,m,void 0)].concat(0===g.length?x.emptyArray:[R(a&&a.map(function(e){return x.getSynthesizedDeepClone(e)}),i,g)])));case 3:var E=e.members;if(0===n)return x.flatMap(E,function(e){return D(e,1)});if(E.some(function(e){return 2===e.kind}))return b().concat([R(y,r,x.flatMap(E,C))]);case 0:case 1:var T=0===e.kind?e.comment:void 0,S=x.createVariableStatement(y,x.createVariableDeclarationList([x.createVariableDeclaration(r,k(e))],2));return h().concat(b(),[w(S,T)]);default:return x.Debug.assertNever(e)}}function A(e,n){return x.createExportAssignment(void 0,void 0,n,x.createIdentifier(e))}function L(e,n){var t=e.name,r=e.source;if(O(t)){var a=I(r);if(void 0!==a&&("number"==typeof a||155!==a.kind)){var i=N(a);return i&&x.createMethod(void 0,n,void 0,t,void 0,void 0,i.parameters,i.returnType,void 0)}}}function k(e){switch(e.kind){case 0:return x.createTypeReferenceNode(e.typeName,void 0);case 1:return x.createArrayTypeNode(k(e.inner));case 2:return x.createTypeReferenceNode("Function",void 0);case 3:return x.createTypeLiteralNode(e.members.map(function(e){return x.createPropertySignature(void 0,e.name,void 0,k(e),void 0)}));default:return x.Debug.assertNever(e)}}function N(e){if("number"==typeof e)return{parameters:x.fill(e,function(e){return a("p"+e,P())}),returnType:P()};var n=!1,t=!1;return M(e,function(e){n=n||x.isIdentifier(e)&&"arguments"===e.text,t=t||x.isReturnStatement(e)&&!!e.expression&&198!==e.expression.kind}),{parameters:e.parameters.map(function(e){return a(""+e.name.getText(),P())}).concat(n?[x.createParameter(void 0,void 0,x.createToken(24),"args",void 0,x.createArrayTypeNode(P()))]:x.emptyArray),returnType:t?P():x.createKeywordTypeNode(105)}}function a(e,n){return x.createParameter(void 0,void 0,void 0,e,void 0,n)}function I(e){if("number"==typeof e)return e;var n=x.tryCast(t(e),function(e){return x.isFunctionExpression(e)||x.isArrowFunction(e)||x.isClassExpression(e)});return n?x.isClassExpression(n)?x.find(n.members,x.isConstructorDeclaration):n:x.cast(x.first(x.cast(t("{ "+e+" }"),x.isObjectLiteralExpression).properties),x.isMethodDeclaration)}function t(e){var n="const _ = "+e,t=x.createSourceFile("test.ts",n,6,!0);return x.first(x.cast(x.first(t.statements),x.isVariableStatement).declarationList.declarations).initializer}function M(e,t){e.body.forEachChild(function e(n){t(n),x.isFunctionLike(n)||n.forEachChild(e)})}function O(e){var n=x.stringToToken(e);return!(n&&x.isNonContextualKeyword(n))&&x.isIdentifierText(e,6)}function w(e,n){return void 0!==n&&x.addSyntheticLeadingComment(e,2,n),e}function P(){return x.createKeywordTypeNode(119)}function R(e,n,t){return x.createModuleDeclaration(void 0,e,x.createIdentifier(n),x.createModuleBlock(t),16)}x.generateTypesForModule=function(e,n,t){return r(x.inspectValue(e,n),t)},x.valueInfoToDeclarationFileText=r,(n=e||(e={}))[n.ExportEquals=0]="ExportEquals",n[n.NamedExport=1]="NamedExport",n[n.NamespaceMember=2]="NamespaceMember"}(ts||(ts={})),function(c){!function(r){var t="requireInTs",e=[c.Diagnostics.require_call_may_be_converted_to_an_import.code];function a(e,n,t,r){var a=function(e,n){var t=c.getTokenAtPosition(e,n).parent;if(!c.isRequireCall(t,!0))throw c.Debug.failBadSyntaxKind(t);var r=c.cast(t.parent,c.isVariableDeclaration);return{statement:c.cast(r.parent.parent,c.isVariableStatement),name:c.cast(r.name,c.isIdentifier),required:t.arguments[0]}}(n,t),i=a.statement,o=a.name,s=a.required;e.replaceNode(n,i,c.getAllowSyntheticDefaultImports(r.getCompilerOptions())?c.createImportDeclaration(void 0,void 0,c.createImportClause(o,void 0),s):c.createImportEqualsDeclaration(void 0,void 0,o,c.createExternalModuleReference(s)))}r.registerCodeFix({errorCodes:e,getCodeActions:function(n){var e=c.textChanges.ChangeTracker.with(n,function(e){return a(e,n.sourceFile,n.span.start,n.program)});return[r.createCodeFixAction(t,e,c.Diagnostics.Convert_require_to_import,t,c.Diagnostics.Convert_all_require_to_import)]},fixIds:[t],getAllCodeActions:function(t){return r.codeFixAll(t,e,function(e,n){return a(e,n.file,n.start,t.program)})}})}(c.codefix||(c.codefix={}))}(ts||(ts={})),function(l){!function(i){var o="useDefaultImport",e=[l.Diagnostics.Import_may_be_converted_to_a_default_import.code];function s(e,n){var t=l.getTokenAtPosition(e,n);if(l.isIdentifier(t)){var r=t.parent;if(l.isImportEqualsDeclaration(r)&&l.isExternalModuleReference(r.moduleReference))return{importNode:r,name:t,moduleSpecifier:r.moduleReference.expression};if(l.isNamespaceImport(r)){var a=r.parent.parent;return{importNode:a,name:t,moduleSpecifier:a.moduleSpecifier}}}}function c(e,n,t,r){e.replaceNode(n,t.importNode,l.makeImport(t.name,void 0,t.moduleSpecifier,l.getQuotePreference(n,r)))}i.registerCodeFix({errorCodes:e,getCodeActions:function(n){var t=n.sourceFile,e=n.span.start,r=s(t,e);if(r){var a=l.textChanges.ChangeTracker.with(n,function(e){return c(e,t,r,n.preferences)});return[i.createCodeFixAction(o,a,l.Diagnostics.Convert_to_default_import,o,l.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[o],getAllCodeActions:function(r){return i.codeFixAll(r,e,function(e,n){var t=s(n.file,n.start);t&&c(e,n.file,t,r.preferences)})}})}(l.codefix||(l.codefix={}))}(ts||(ts={})),function(l){!function(i){var o="fixAddModuleReferTypeMissingTypeof",e=[l.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function s(e,n){var t=l.getTokenAtPosition(e,n);return l.Debug.assert(91===t.kind),l.Debug.assert(181===t.parent.kind),t.parent}function c(e,n,t){var r=l.updateImportTypeNode(t,t.argument,t.qualifier,t.typeArguments,!0);e.replaceNode(n,t,r)}i.registerCodeFix({errorCodes:e,getCodeActions:function(e){var n=e.sourceFile,t=e.span,r=s(n,t.start),a=l.textChanges.ChangeTracker.with(e,function(e){return c(e,n,r)});return[i.createCodeFixAction(o,a,l.Diagnostics.Add_missing_typeof,o,l.Diagnostics.Add_missing_typeof)]},fixIds:[o],getAllCodeActions:function(t){return i.codeFixAll(t,e,function(e,n){return c(e,t.sourceFile,s(n.file,n.start))})}})}(l.codefix||(l.codefix={}))}(ts||(ts={})),function(p){!function(o){var s="fixConvertToMappedObjectType",n=[p.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];function c(e,n){var t=p.getTokenAtPosition(e,n),r=p.cast(t.parent.parent,p.isIndexSignatureDeclaration);if(!p.isClassDeclaration(r.parent))return{indexSignature:r,container:p.isInterfaceDeclaration(r.parent)?r.parent:p.cast(r.parent.parent,p.isTypeAliasDeclaration)}}function l(e,n,t){var r,a,i=t.indexSignature,o=t.container,s=(p.isInterfaceDeclaration(o)?o.members:o.type.members).filter(function(e){return!p.isIndexSignatureDeclaration(e)}),c=p.first(i.parameters),l=p.createTypeParameterDeclaration(p.cast(c.name,p.isIdentifier),c.type),u=p.createMappedTypeNode(p.hasReadonlyModifier(i)?p.createModifier(132):void 0,l,i.questionToken,i.type),d=p.createIntersectionTypeNode(p.getAllSuperTypeNodes(o).concat([u],s.length?[p.createTypeLiteralNode(s)]:p.emptyArray));e.replaceNode(n,o,(r=o,a=d,p.createTypeAliasDeclaration(r.decorators,r.modifiers,r.name,r.typeParameters,a)))}o.registerCodeFix({errorCodes:n,getCodeActions:function(e){var n=e.sourceFile,t=e.span,r=c(n,t.start);if(r){var a=p.textChanges.ChangeTracker.with(e,function(e){return l(e,n,r)}),i=p.idText(r.container.name);return[o.createCodeFixAction(s,a,[p.Diagnostics.Convert_0_to_mapped_object_type,i],s,[p.Diagnostics.Convert_0_to_mapped_object_type,i])]}},fixIds:[s],getAllCodeActions:function(e){return o.codeFixAll(e,n,function(e,n){var t=c(n.file,n.start);t&&l(e,n.file,t)})}})}(p.codefix||(p.codefix={}))}(ts||(ts={})),function(y){!function(e){var a="Convert export",i="Convert default export to named export",o="Convert named export to default export";function g(e){var n=e.file,t=y.getRefactorContextSpan(e),r=y.getTokenAtPosition(n,t.start),a=y.getParentNodeInSpan(r,n,t);if(a&&(y.isSourceFile(a.parent)||y.isModuleBlock(a.parent)&&y.isAmbientModule(a.parent.parent))){var i=y.isSourceFile(a.parent)?a.parent.symbol:a.parent.parent.symbol,o=y.getModifierFlags(a),s=!!(512&o);if(1&o&&(s||!i.exports.has("default")))switch(a.kind){case 237:case 238:case 239:case 241:case 240:case 242:var c=a;return c.name&&y.isIdentifier(c.name)?{exportNode:c,exportName:c.name,wasDefault:s,exportingModuleSymbol:i}:void 0;case 217:var l=a;if(!(2&l.declarationList.flags)||1!==l.declarationList.declarations.length)return;var u=y.first(l.declarationList.declarations);if(!u.initializer)return;return y.Debug.assert(!s),y.isIdentifier(u.name)?{exportNode:l,exportName:u.name,wasDefault:s,exportingModuleSymbol:i}:void 0;default:return}}}function v(e,n){return y.createImportSpecifier(e===n?void 0:y.createIdentifier(e),y.createIdentifier(n))}e.registerRefactor(a,{getAvailableActions:function(e){var n=g(e);if(n){var t=n.wasDefault?y.Diagnostics.Convert_default_export_to_named_export.message:y.Diagnostics.Convert_named_export_to_default_export.message,r=n.wasDefault?i:o;return[{name:a,description:t,actions:[{name:r,description:t}]}]}},getEditsForAction:function(_,e){return y.Debug.assert(e===i||e===o),{edits:y.textChanges.ChangeTracker.with(_,function(e){return n=_.file,t=_.program,r=y.Debug.assertDefined(g(_)),a=e,i=_.cancellationToken,function(e,n,t,r){var a=n.wasDefault,i=n.exportNode,o=n.exportName;if(a)t.delete(e,y.Debug.assertDefined(y.findModifier(i,79)));else{var s=y.Debug.assertDefined(y.findModifier(i,84));switch(i.kind){case 237:case 238:case 239:t.insertNodeAfter(e,s,y.createToken(79));break;case 217:if(!y.FindAllReferences.Core.isSymbolReferencedInFile(o,r,e)){t.replaceNode(e,i,y.createExportDefault(y.Debug.assertDefined(y.first(i.declarationList.declarations).initializer)));break}case 241:case 240:case 242:t.deleteModifier(e,s),t.insertNodeAfter(e,i,y.createExportDefault(y.createIdentifier(o.text)));break;default:y.Debug.assertNever(i)}}}(n,r,a,t.getTypeChecker()),o=t,c=a,l=i,u=(s=r).wasDefault,d=s.exportName,p=s.exportingModuleSymbol,m=o.getTypeChecker(),f=y.Debug.assertDefined(m.getSymbolAtLocation(d)),void y.FindAllReferences.Core.eachExportReference(o.getSourceFiles(),m,l,f,p,d.text,u,function(e){var n=e.getSourceFile();u?function(e,n,t,r){var a=n.parent;switch(a.kind){case 187:t.replaceNode(e,n,y.createIdentifier(r));break;case 251:case 255:var i=a;t.replaceNode(e,i,v(r,i.name.text));break;case 248:var o=a;y.Debug.assert(o.name===n);var i=v(r,n.text),s=o.namedBindings;if(s)if(249===s.kind){t.deleteRange(e,{pos:n.getStart(e),end:s.getStart(e)});var c=y.isStringLiteral(o.parent.moduleSpecifier)?y.quotePreferenceFromString(o.parent.moduleSpecifier,e):1,l=y.makeImport(void 0,[v(r,n.text)],o.parent.moduleSpecifier,c);t.insertNodeAfter(e,o.parent,l)}else t.delete(e,n),t.insertNodeAtEndOfList(e,s.elements,i);else t.replaceNode(e,n,y.createNamedImports([i]));break;default:y.Debug.failBadSyntaxKind(a)}}(n,e,c,d.text):function(e,n,t){var r,a,i=n.parent;switch(i.kind){case 187:t.replaceNode(e,n,y.createIdentifier("default"));break;case 251:case 255:var o=i;if(251===o.kind){var s=y.createIdentifier(o.name.text);1===o.parent.elements.length?t.replaceNode(e,o.parent,s):(t.delete(e,o),t.insertNodeBefore(e,o.parent,s))}else t.replaceNode(e,o,(r="default",a=o.name.text,y.createExportSpecifier(r===a?void 0:y.createIdentifier(r),y.createIdentifier(a))));break;default:y.Debug.failBadSyntaxKind(i)}}(n,e,c)});var n,t,r,a,i,o,s,c,l,u,d,p,m,f}),renameFilename:void 0,renameLocation:void 0}}})}(y.refactor||(y.refactor={}))}(ts||(ts={})),function(v){!function(e){var a="Convert import",i="Convert namespace import to named imports",s="Convert named imports to namespace import";function c(e){var n=e.file,t=v.getRefactorContextSpan(e),r=v.getTokenAtPosition(n,t.start),a=v.getParentNodeInSpan(r,n,t);if(a&&v.isImportDeclaration(a)){var i=a.importClause;return i&&i.namedBindings}}function g(e,n,t){return v.createImportDeclaration(void 0,void 0,v.createImportClause(n,t&&t.length?v.createNamedImports(t):void 0),e.moduleSpecifier)}e.registerRefactor(a,{getAvailableActions:function(e){var n=c(e);if(n){var t=249===n.kind?v.Diagnostics.Convert_namespace_import_to_named_imports.message:v.Diagnostics.Convert_named_imports_to_namespace_import.message,r=249===n.kind?i:s;return[{name:a,description:t,actions:[{name:r,description:t}]}]}},getEditsForAction:function(o,e){return v.Debug.assert(e===i||e===s),{edits:v.textChanges.ChangeTracker.with(o,function(e){return n=o.file,t=o.program,r=e,a=v.Debug.assertDefined(c(o)),i=t.getTypeChecker(),void(249===a.kind?function(e,r,n,t,a){var i=!1,o=[],s=v.createMap();v.FindAllReferences.Core.eachSymbolReferenceInFile(t.name,r,e,function(e){if(v.isPropertyAccessExpression(e.parent)){var n=v.cast(e.parent,v.isPropertyAccessExpression),t=n.name.text;r.resolveName(t,e,67108863,!0)&&s.set(t,!0),v.Debug.assert(n.expression===e),o.push(n)}else i=!0});for(var c=v.createMap(),l=0,u=o;l<u.length;l++){var d=u[l],p=d.name.text,m=c.get(p);void 0===m&&c.set(p,m=s.has(p)?v.getUniqueName(p,e):p),n.replaceNode(e,d,v.createIdentifier(m))}var f=[];c.forEach(function(e,n){f.push(v.createImportSpecifier(e===n?void 0:v.createIdentifier(n),v.createIdentifier(e)))});var _=t.parent.parent;i&&!a?n.insertNodeAfter(e,_,g(_,void 0,f)):n.replaceNode(e,_,g(_,i?v.createIdentifier(t.name.text):void 0,f))}(n,i,r,a,v.getAllowSyntheticDefaultImports(t.getCompilerOptions())):function(a,n,i,e){for(var t=e.parent.parent,r=t.moduleSpecifier,o=r&&v.isStringLiteral(r)?v.codefix.moduleSpecifierToValidIdentifier(r.text,6):"module",s=e.elements.some(function(e){return v.FindAllReferences.Core.eachSymbolReferenceInFile(e.name,n,a,function(e){return!!n.resolveName(o,e,67108863,!0)})||!1})?v.getUniqueName(o,a):o,c=[],l=function(t){var r=(t.propertyName||t.name).text;v.FindAllReferences.Core.eachSymbolReferenceInFile(t.name,n,a,function(e){var n=v.createPropertyAccess(v.createIdentifier(s),r);v.isShorthandPropertyAssignment(e.parent)?i.replaceNode(a,e.parent,v.createPropertyAssignment(e.text,n)):v.isExportSpecifier(e.parent)&&!e.parent.propertyName?c.some(function(e){return e.name===t.name})||c.push(v.createImportSpecifier(t.propertyName&&v.createIdentifier(t.propertyName.text),v.createIdentifier(t.name.text))):i.replaceNode(a,e,n)})},u=0,d=e.elements;u<d.length;u++){var p=d[u];l(p)}i.replaceNode(a,e,v.createNamespaceImport(v.createIdentifier(s))),c.length&&i.insertNodeAfter(a,e.parent.parent,g(t,void 0,c))}(n,i,r,a));var n,t,r,a,i}),renameFilename:void 0,renameLocation:void 0}}})}(v.refactor||(v.refactor={}))}(ts||(ts={})),function(ne){var c;(function(e){var U,Q,n,t,r,a,i,b="Extract Symbol";function o(e){var n=D(e.file,ne.getRefactorContextSpan(e)).targetRange;if(void 0!==n){var t,r,a,d,p,i=(t=L(n,e),r=t.scopes,a=t.readsAndWrites,d=a.functionErrorsPerScope,p=a.constantErrorsPerScope,r.map(function(e,n){var t,r,a,i,o,s,c=(t=e,ne.isFunctionLikeDeclaration(t)?"inner function":ne.isClassLike(t)?"method":"function"),l=(r=e,ne.isClassLike(r)?"readonly field":"constant"),u=ne.isFunctionLikeDeclaration(e)?function(e){switch(e.kind){case 155:return"constructor";case 194:case 237:return e.name?"function '"+e.name.text+"'":"anonymous function";case 195:return"arrow function";case 154:return"method '"+e.name.getText();case 156:return"'get "+e.name.getText()+"'";case 157:return"'set "+e.name.getText()+"'";default:throw ne.Debug.assertNever(e)}}(e):ne.isClassLike(e)?238===(i=e).kind?i.name?"class '"+i.name.text+"'":"anonymous class declaration":i.name?"class expression '"+i.name.text+"'":"anonymous class expression":243===(a=e).kind?"namespace '"+a.parent.name.getText()+"'":a.externalModuleIndicator?0:1;return s=1===u?(o=ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_1_scope),[c,"global"]),ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_1_scope),[l,"global"])):0===u?(o=ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_1_scope),[c,"module"]),ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_1_scope),[l,"module"])):(o=ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_1),[c,u]),ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_1),[l,u])),0!==n||ne.isClassLike(e)||(s=ne.formatStringFromArgs(ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_to_0_in_enclosing_scope),[l])),{functionExtraction:{description:o,errors:d[n]},constantExtraction:{description:s,errors:p[n]}}}));if(void 0!==i){for(var o=[],s=ne.createMap(),c=[],l=ne.createMap(),u=0,m=0,f=i;m<f.length;m++){var _=f[m],g=_.functionExtraction,v=_.constantExtraction;if(0===g.errors.length){var y=g.description;s.has(y)||(s.set(y,!0),o.push({description:y,name:"function_scope_"+u}))}0===v.errors.length&&(y=v.description,l.has(y)||(l.set(y,!0),c.push({description:y,name:"constant_scope_"+u}))),u++}var h=[];return o.length&&h.push({name:b,description:ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_function),actions:o}),c.length&&h.push({name:b,description:ne.getLocaleSpecificMessage(ne.Diagnostics.Extract_constant),actions:c}),h.length?h:void 0}}}function s(e,n){var t,r,a,i,o,s,c,l,u,d,p=D(e.file,ne.getRefactorContextSpan(e)).targetRange,m=/^function_scope_(\d+)$/.exec(n);if(m){var f=+m[1];return ne.Debug.assert(isFinite(f),"Expected to parse a finite number from the function scope index"),a=f,i=L(t=p,r=e),o=i.scopes,s=i.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.functionErrorsPerScope,d=s.exposedVariableDeclarations,ne.Debug.assert(!u[a].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),function(e,i,n,t,r,a){var o,s,c=n.usages,l=n.typeParameterUsages,u=n.substitutions,d=a.program.getTypeChecker(),p=i.getSourceFile(),m=ne.getUniqueName(ne.isClassLike(i)?"newMethod":"newFunction",p),f=ne.isInJSFile(i),_=ne.createIdentifier(m),g=[],v=[];c.forEach(function(e,n){var t;if(!f){var r=d.getTypeOfSymbolAtLocation(e.symbol,e.node);r=d.getBaseTypeOfLiteralType(r),t=d.typeToTypeNode(r,i,1)}var a=ne.createParameter(void 0,void 0,void 0,n,void 0,t);g.push(a),2===e.usage&&(s||(s=[])).push(e),v.push(ne.createIdentifier(n))});var y=ne.arrayFrom(l.values()).map(function(e){return{type:e,declaration:function(e){var n,t=e.symbol;if(t&&t.declarations)for(var r=0,a=t.declarations;r<a.length;r++){var i=a[r];(void 0===n||i.pos<n.pos)&&(n=i)}return n}(e)}}).sort(Z),h=0===y.length?void 0:y.map(function(e){return e.declaration}),b=void 0!==h?h.map(function(e){return ne.createTypeReferenceNode(e.name,void 0)}):void 0;if(ne.isExpression(e)&&!f){var E=d.getContextualType(e);o=d.typeToTypeNode(E,i,1)}var T,S=function(e,o,s,c,n){var l,u=void 0!==s||0<o.length;if(ne.isBlock(e)&&!u&&0===c.size)return{body:ne.createBlock(e.statements,!0),returnValueProperty:void 0};var d=!1,t=ne.createNodeArray(ne.isBlock(e)?e.statements.slice(0):[ne.isStatement(e)?e:ne.createReturn(e)]);if(u||c.size){var r=ne.visitNodes(t,function e(n){if(!d&&228===n.kind&&u){var t=$(o,s);return n.expression&&(l||(l="__return"),t.unshift(ne.createPropertyAssignment(l,ne.visitNode(n.expression,e)))),1===t.length?ne.createReturn(t[0].name):ne.createReturn(ne.createObjectLiteral(t))}var r=d;d=d||ne.isFunctionLikeDeclaration(n)||ne.isClassLike(n);var a=c.get(ne.getNodeId(n).toString()),i=a?ne.getSynthesizedDeepClone(a):ne.visitEachChild(n,e,ne.nullTransformationContext);return d=r,i}).slice();if(u&&!n&&ne.isStatement(e)){var a=$(o,s);1===a.length?r.push(ne.createReturn(a[0].name)):r.push(ne.createReturn(ne.createObjectLiteral(a)))}return{body:ne.createBlock(r,!0),returnValueProperty:l}}return{body:ne.createBlock(t,!0),returnValueProperty:void 0}}(e,t,s,u,!!(r.facts&Q.HasReturn)),x=S.body,C=S.returnValueProperty;if(ne.suppressLeadingAndTrailingTrivia(x),ne.isClassLike(i)){var D=f?[]:[ne.createToken(112)];r.facts&Q.InStaticRegion&&D.push(ne.createToken(115)),r.facts&Q.IsAsyncFunction&&D.push(ne.createToken(120)),T=ne.createMethod(void 0,D.length?D:void 0,r.facts&Q.IsGenerator?ne.createToken(39):void 0,_,void 0,h,g,o,x)}else T=ne.createFunctionDeclaration(void 0,r.facts&Q.IsAsyncFunction?[ne.createToken(120)]:void 0,r.facts&Q.IsGenerator?ne.createToken(39):void 0,_,h,g,o,x);var A,L,k=ne.textChanges.ChangeTracker.fromContext(a),N=(A=(ee(r.range)?ne.last(r.range):r.range).end,L=i,ne.find(function(e){if(ne.isFunctionLikeDeclaration(e)){var n=e.body;if(ne.isBlock(n))return n.statements}else{if(ne.isModuleBlock(e)||ne.isSourceFile(e))return e.statements;if(ne.isClassLike(e))return e.members;ne.assertType(e)}return ne.emptyArray}(L),function(e){return e.pos>=A&&ne.isFunctionLikeDeclaration(e)&&!ne.isConstructorDeclaration(e)}));N?k.insertNodeBefore(a.file,N,T,!0):k.insertNodeAtEndOfScope(a.file,i,T);var I=[],M=function(e,n,t){var r=ne.createIdentifier(t);if(ne.isClassLike(e)){var a=n.facts&Q.InStaticRegion?ne.createIdentifier(e.name.text):ne.createThis();return ne.createPropertyAccess(a,r)}return r}(i,r,m),O=ne.createCall(M,b,v);if(r.facts&Q.IsGenerator&&(O=ne.createYield(ne.createToken(39),O)),r.facts&Q.IsAsyncFunction&&(O=ne.createAwait(O)),t.length&&!s)if(ne.Debug.assert(!C),ne.Debug.assert(!(r.facts&Q.HasReturn)),1===t.length){var w=t[0];I.push(ne.createVariableStatement(void 0,ne.createVariableDeclarationList([ne.createVariableDeclaration(ne.getSynthesizedDeepClone(w.name),ne.getSynthesizedDeepClone(w.type),O)],w.parent.flags)))}else{for(var P=[],R=[],F=t[0].parent.flags,G=!1,V=0,B=t;V<B.length;V++){var w=B[V];P.push(ne.createBindingElement(void 0,void 0,ne.getSynthesizedDeepClone(w.name)));var K=d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(w)),i,1);R.push(ne.createPropertySignature(void 0,w.symbol.name,void 0,K,void 0)),G=G||void 0!==w.type,F&=w.parent.flags}var j=G?ne.createTypeLiteralNode(R):void 0;j&&ne.setEmitFlags(j,1),I.push(ne.createVariableStatement(void 0,ne.createVariableDeclarationList([ne.createVariableDeclaration(ne.createObjectBindingPattern(P),j,O)],F)))}else if(t.length||s){if(t.length)for(var H=0,U=t;H<U.length;H++){var w=U[H],W=w.parent.flags;2&W&&(W=-3&W|1),I.push(ne.createVariableStatement(void 0,ne.createVariableDeclarationList([ne.createVariableDeclaration(w.symbol.name,Y(w.type))],W)))}C&&I.push(ne.createVariableStatement(void 0,ne.createVariableDeclarationList([ne.createVariableDeclaration(C,Y(o))],1)));var q=$(t,s);C&&q.unshift(ne.createShorthandPropertyAssignment(C)),1===q.length?(ne.Debug.assert(!C),I.push(ne.createStatement(ne.createAssignment(q[0].name,O))),r.facts&Q.HasReturn&&I.push(ne.createReturn())):(I.push(ne.createStatement(ne.createAssignment(ne.createObjectLiteral(q),O))),C&&I.push(ne.createReturn(ne.createIdentifier(C))))}else r.facts&Q.HasReturn?I.push(ne.createReturn(O)):ee(r.range)?I.push(ne.createStatement(O)):I.push(O);ee(r.range)?k.replaceNodeRangeWithNodes(a.file,ne.first(r.range),ne.last(r.range),I):k.replaceNodeWithNodes(a.file,r.range,I);var z=k.getChanges(),J=(ee(r.range)?ne.first(r.range):r.range).getSourceFile().fileName,X=ne.getRenameLocation(z,J,m,!1);return{renameFilename:J,renameLocation:X,edits:z};function Y(e){if(void 0!==e){for(var n=ne.getSynthesizedDeepClone(e),t=n;ne.isParenthesizedTypeNode(t);)t=t.type;return ne.isUnionTypeNode(t)&&ne.find(t.types,function(e){return 140===e.kind})?n:ne.createUnionTypeNode([n,ne.createKeywordTypeNode(140)])}}}(c,o[a],l[a],d,t,r)}var _,g,v,y,h,b,E,T,S,x,C=/^constant_scope_(\d+)$/.exec(n);if(C)return f=+C[1],ne.Debug.assert(isFinite(f),"Expected to parse a finite number from the constant scope index"),v=f,y=L(_=p,g=e),h=y.scopes,b=y.readsAndWrites,E=b.target,T=b.usagesPerScope,S=b.constantErrorsPerScope,x=b.exposedVariableDeclarations,ne.Debug.assert(!S[v].length,"The extraction went missing? How?"),ne.Debug.assert(0===x.length,"Extract constant accepted a range containing a variable declaration?"),g.cancellationToken.throwIfCancellationRequested(),function(e,n,t,r,a){var i,o,s=t.substitutions,c=a.program.getTypeChecker(),l=n.getSourceFile(),u=ne.getUniqueName(ne.isClassLike(n)?"newProperty":"newLocal",l),d=ne.isInJSFile(n),p=d||!c.isContextSensitive(e)?void 0:c.typeToTypeNode(c.getContextualType(e),n,1),m=(i=e,(o=s).size?function e(n){var t=o.get(ne.getNodeId(n).toString());return t?ne.getSynthesizedDeepClone(t):ne.visitEachChild(n,e,ne.nullTransformationContext)}(i):i);ne.suppressLeadingAndTrailingTrivia(m);var f=ne.textChanges.ChangeTracker.fromContext(a);if(ne.isClassLike(n)){ne.Debug.assert(!d);var _=[];_.push(ne.createToken(112)),r&Q.InStaticRegion&&_.push(ne.createToken(115)),_.push(ne.createToken(132));var g=ne.createProperty(void 0,_,u,void 0,p,m),v=ne.createPropertyAccess(r&Q.InStaticRegion?ne.createIdentifier(n.name.getText()):ne.createThis(),ne.createIdentifier(u)),y=e.pos,h=function(e,n){var t,r=n.members;ne.Debug.assert(0<r.length);for(var a=!0,i=0,o=r;i<o.length;i++){var s=o[i];if(s.pos>e)return t||r[0];if(a&&!ne.isPropertyDeclaration(s)){if(void 0!==t)return s;a=!1}t=s}return void 0===t?ne.Debug.fail():t}(y,n);f.insertNodeBefore(a.file,h,g,!0),f.replaceNode(a.file,e,v)}else{var b=ne.createVariableDeclaration(u,p,m),E=function(e,n){for(var t;void 0!==e&&e!==n;){if(ne.isVariableDeclaration(e)&&e.initializer===t&&ne.isVariableDeclarationList(e.parent)&&1<e.parent.declarations.length)return e;e=(t=e).parent}}(e,n);if(E){f.insertNodeBefore(a.file,E,b);var v=ne.createIdentifier(u);f.replaceNode(a.file,e,v)}else if(219===e.parent.kind&&n===ne.findAncestor(e,A)){var T=ne.createVariableStatement(void 0,ne.createVariableDeclarationList([b],2));f.replaceNode(a.file,e.parent,T)}else{var T=ne.createVariableStatement(void 0,ne.createVariableDeclarationList([b],2)),h=function(e,n){var t;ne.Debug.assert(!ne.isClassLike(n));for(var r=e;r!==n;r=r.parent)A(r)&&(t=r);for(var r=(t||e).parent;;r=r.parent){if(k(r)){for(var a=void 0,i=0,o=r.statements;i<o.length;i++){var s=o[i];if(s.pos>e.pos)break;a=s}return!a&&ne.isCaseClause(r)?(ne.Debug.assert(ne.isSwitchStatement(r.parent.parent)),r.parent.parent):ne.Debug.assertDefined(a)}ne.Debug.assert(r!==n,"Didn't encounter a block-like before encountering scope")}}(e,n);if(0===h.pos?f.insertNodeAtTopOfFile(a.file,T,!1):f.insertNodeBefore(a.file,h,T,!1),219===e.parent.kind)f.delete(a.file,e.parent);else{var v=ne.createIdentifier(u);f.replaceNode(a.file,e,v)}}}var S=f.getChanges(),x=e.getSourceFile().fileName,C=ne.getRenameLocation(S,x,u,!0);return{renameFilename:x,renameLocation:C,edits:S}}(ne.isExpression(E)?E:E.statements[0].expression,h[v],T[v],_.facts,g);ne.Debug.fail("Unrecognized action name")}function D(e,l){var n=l.length;if(0===n)return{errors:[ne.createFileDiagnostic(e,l.start,n,U.cannotExtractEmpty)]};var t=ne.getParentNodeInSpan(ne.getTokenAtPosition(e,l.start),e,l),r=ne.getParentNodeInSpan(ne.findTokenOnLeftOfPosition(e,ne.textSpanEnd(l)),e,l),u=[],d=Q.None;if(!t||!r)return{errors:[ne.createFileDiagnostic(e,l.start,n,U.cannotExtractRange)]};if(t.parent!==r.parent)return{errors:[ne.createFileDiagnostic(e,l.start,n,U.cannotExtractRange)]};if(t!==r){if(!k(t.parent))return{errors:[ne.createFileDiagnostic(e,l.start,n,U.cannotExtractRange)]};for(var a=[],i=0,o=t.parent.statements;i<o.length;i++){var s=o[i];if(s===t||a.length){var c=_(s);if(c)return{errors:c};a.push(s)}if(s===r)break}return a.length?{targetRange:{range:a,facts:d,declarations:u}}:{errors:[ne.createFileDiagnostic(e,l.start,n,U.cannotExtractRange)]}}if(ne.isReturnStatement(t)&&!t.expression)return{errors:[ne.createFileDiagnostic(e,l.start,n,U.cannotExtractRange)]};var p,m=function(e){if(ne.isReturnStatement(e)){if(e.expression)return e.expression}else if(ne.isVariableStatement(e)){for(var n=0,t=void 0,r=0,a=e.declarationList.declarations;r<a.length;r++){var i=a[r];i.initializer&&(n++,t=i.initializer)}if(1===n)return t}else if(ne.isVariableDeclaration(e)&&e.initializer)return e.initializer;return e}(t),f=function(e){if(ne.isIdentifier(ne.isExpressionStatement(e)?e.expression:e))return[ne.createDiagnosticForNode(e,U.cannotExtractIdentifier)]}(m)||_(m);return f?{errors:f}:{targetRange:{range:(p=m,ne.isStatement(p)?[p]:ne.isExpressionNode(p)?ne.isExpressionStatement(p.parent)?[p.parent]:p:void 0),facts:d,declarations:u}};function _(e){var n,t;if((t=n||(n={}))[t.None=0]="None",t[t.Break=1]="Break",t[t.Continue=2]="Continue",t[t.Return=4]="Return",ne.Debug.assert(e.pos<=e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),ne.Debug.assert(!ne.positionIsSynthesized(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),!(ne.isStatement(e)||ne.isExpressionNode(e)&&function(e){var n=e.parent;switch(n.kind){case 276:return!1}switch(e.kind){case 9:return 247!==n.kind&&251!==n.kind;case 206:case 182:case 184:return!1;case 71:return 184!==n.kind&&251!==n.kind&&255!==n.kind}return!0}(e)))return[ne.createDiagnosticForNode(e,U.statementOrExpressionExpected)];if(4194304&e.flags)return[ne.createDiagnosticForNode(e,U.cannotExtractAmbientBlock)];var o,r=ne.getContainingClass(e);r&&function(e,n){for(var t=e;t!==n;){if(152===t.kind){ne.hasModifier(t,32)&&(d|=Q.InStaticRegion);break}if(149===t.kind){155===ne.getContainingFunction(t).kind&&(d|=Q.InStaticRegion);break}154===t.kind&&ne.hasModifier(t,32)&&(d|=Q.InStaticRegion),t=t.parent}}(e,r);var s,c=4;return function e(n){if(o)return!0;if(ne.isDeclaration(n)){var t=235===n.kind?n.parent.parent:n;if(ne.hasModifier(t,1))return(o||(o=[])).push(ne.createDiagnosticForNode(n,U.cannotExtractExportedEntity)),!0;u.push(n.symbol)}switch(n.kind){case 247:return(o||(o=[])).push(ne.createDiagnosticForNode(n,U.cannotExtractImport)),!0;case 97:if(189===n.parent.kind){var r=ne.getContainingClass(n);if(r.pos<l.start||r.end>=l.start+l.length)return(o||(o=[])).push(ne.createDiagnosticForNode(n,U.cannotExtractSuper)),!0}else d|=Q.UsesThis}if(ne.isFunctionLikeDeclaration(n)||ne.isClassLike(n)){switch(n.kind){case 237:case 238:ne.isSourceFile(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(ne.createDiagnosticForNode(n,U.functionWillNotBeVisibleInTheNewScope))}return!1}var a=c;switch(n.kind){case 220:case 233:c=0;break;case 216:n.parent&&233===n.parent.kind&&n.parent.finallyBlock===n&&(c=4);break;case 269:c|=1;break;default:ne.isIterationStatement(n,!1)&&(c|=3)}switch(n.kind){case 176:case 99:d|=Q.UsesThis;break;case 231:var i=n.label;(s||(s=[])).push(i.escapedText),ne.forEachChild(n,e),s.pop();break;case 227:case 226:var i=n.label;i?ne.contains(s,i.escapedText)||(o||(o=[])).push(ne.createDiagnosticForNode(n,U.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):c&(227===n.kind?1:2)||(o||(o=[])).push(ne.createDiagnosticForNode(n,U.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 199:d|=Q.IsAsyncFunction;break;case 205:d|=Q.IsGenerator;break;case 228:4&c?d|=Q.HasReturn:(o||(o=[])).push(ne.createDiagnosticForNode(n,U.cannotExtractRangeContainingConditionalReturnStatement));break;default:ne.forEachChild(n,e)}c=a}(e),o}}function A(e){return ne.isFunctionLikeDeclaration(e)||ne.isSourceFile(e)||ne.isModuleBlock(e)||ne.isClassLike(e)}function L(e,n){var t,r,a=n.file,i=function(e){var n=ee(e.range)?ne.first(e.range):e.range;if(e.facts&Q.UsesThis){var t=ne.getContainingClass(n);if(t){var r=ne.findAncestor(n,ne.isFunctionLikeDeclaration);return r?[r,t]:[t]}}for(var a=[];;)if(149===(n=n.parent).kind&&(n=ne.findAncestor(n,function(e){return ne.isFunctionLikeDeclaration(e)}).parent),A(n)&&(a.push(n),277===n.kind))return a}(e);return{scopes:i,readsAndWrites:function(T,S,x,C,D,o){var s,e,c=ne.createMap(),A=[],L=[],k=[],N=[],i=[],l=ne.createMap(),u=[],n=ee(T.range)?1===T.range.length&&ne.isExpressionStatement(T.range[0])?T.range[0].expression:void 0:T.range;if(void 0===n){var t=T.range,r=ne.first(t).getStart(),a=ne.last(t).end;e=ne.createFileDiagnostic(C,r,a-r,U.expressionExpected)}else 36864&D.getTypeAtLocation(n).flags&&(e=ne.createDiagnosticForNode(n,U.uselessConstantType));for(var d=0,p=S;d<p.length;d++){var m=p[d];A.push({usages:ne.createMap(),typeParameterUsages:ne.createMap(),substitutions:ne.createMap()}),L.push(ne.createMap()),k.push(ne.isFunctionLikeDeclaration(m)&&237!==m.kind?[ne.createDiagnosticForNode(m,U.cannotExtractToOtherFunctionLike)]:[]);var f=[];e&&f.push(e),ne.isClassLike(m)&&ne.isInJSFile(m)&&f.push(ne.createDiagnosticForNode(m,U.cannotExtractToJSClass)),ne.isArrowFunction(m)&&!ne.isBlock(m.body)&&f.push(ne.createDiagnosticForNode(m,U.cannotExtractToExpressionArrowFunction)),N.push(f)}var _,I=ne.createMap(),g=ee(T.range)?ne.createBlock(T.range):T.range,v=ee(T.range)?ne.first(T.range):T.range,y=(_=v,!!ne.findAncestor(_,function(e){return ne.isDeclarationWithTypeParameters(e)&&0!==ne.getEffectiveTypeParameterDeclarations(e).length}));if(function e(n,t){if(void 0===t&&(t=1),y){var r=D.getTypeAtLocation(n);B(r)}if(ne.isDeclaration(n)&&n.symbol&&i.push(n),ne.isAssignmentExpression(n))e(n.left,2),e(n.right);else if(ne.isUnaryExpressionWithWrite(n))e(n.operand,2);else if(ne.isPropertyAccessExpression(n)||ne.isElementAccessExpression(n))ne.forEachChild(n,e);else if(ne.isIdentifier(n)){if(!n.parent)return;if(ne.isQualifiedName(n.parent)&&n!==n.parent.left)return;if(ne.isPropertyAccessExpression(n.parent)&&n!==n.parent.expression)return;K(n,t,ne.isPartOfTypeNode(n))}else ne.forEachChild(n,e)}(g),y&&!ee(T.range)){var h=D.getContextualType(T.range);B(h)}if(0<c.size){for(var b=ne.createMap(),E=0,M=v;void 0!==M&&E<S.length;M=M.parent)if(M===S[E]&&(b.forEach(function(e,n){A[E].typeParameterUsages.set(n,e)}),E++),ne.isDeclarationWithTypeParameters(M))for(var O=0,w=ne.getEffectiveTypeParameterDeclarations(M);O<w.length;O++){var P=w[O],R=D.getTypeAtLocation(P);c.has(R.id.toString())&&b.set(R.id.toString(),R)}ne.Debug.assert(E===S.length)}if(i.length){var F=ne.isBlockScope(S[0],S[0].parent)?S[0]:ne.getEnclosingBlockScopeContainer(S[0]);ne.forEachChild(F,function e(n){if(!(n===T.range||ee(T.range)&&0<=T.range.indexOf(n))){var t=ne.isIdentifier(n)?j(n):D.getSymbolAtLocation(n);if(t){var r=ne.find(i,function(e){return e.symbol===t});if(r)if(ne.isVariableDeclaration(r)){var a=r.symbol.id.toString();l.has(a)||(u.push(r),l.set(a,!0))}else s=s||r}ne.forEachChild(n,e)}})}for(var G=function(e){var n=A[e];if(0<e&&(0<n.usages.size||0<n.typeParameterUsages.size)){var t=ee(T.range)?T.range[0]:T.range;N[e].push(ne.createDiagnosticForNode(t,U.cannotAccessVariablesFromNestedScopes))}var r,a=!1;if(A[e].usages.forEach(function(e){2===e.usage&&(a=!0,106500&e.symbol.flags&&e.symbol.valueDeclaration&&ne.hasModifier(e.symbol.valueDeclaration,64)&&(r=e.symbol.valueDeclaration))}),ne.Debug.assert(ee(T.range)||0===u.length),a&&!ee(T.range)){var i=ne.createDiagnosticForNode(T.range,U.cannotWriteInExpression);k[e].push(i),N[e].push(i)}else if(r&&0<e){var i=ne.createDiagnosticForNode(r,U.cannotExtractReadonlyPropertyInitializerOutsideConstructor);k[e].push(i),N[e].push(i)}else if(s){var i=ne.createDiagnosticForNode(s,U.cannotExtractExportedEntity);k[e].push(i),N[e].push(i)}},V=0;V<S.length;V++)G(V);return{target:g,usagesPerScope:A,functionErrorsPerScope:k,constantErrorsPerScope:N,exposedVariableDeclarations:u};function B(e){for(var n=D.getSymbolWalker(function(){return o.throwIfCancellationRequested(),!0}),t=n.walkType(e).visitedTypes,r=0,a=t;r<a.length;r++){var i=a[r];i.isTypeParameter()&&c.set(i.id.toString(),i)}}function K(e,n,t){var r=function(e,n,t){var r=j(e);if(r){var a=ne.getSymbolId(r).toString(),i=I.get(a);if(i&&n<=i)return a;if(I.set(a,n),i){for(var o=0,s=A;o<s.length;o++){var c=s[o],l=c.usages.get(e.text);l&&c.usages.set(e.text,{usage:n,symbol:r,node:e})}return a}var u=r.getDeclarations(),d=u&&ne.find(u,function(e){return e.getSourceFile()===C});if(d&&!ne.rangeContainsStartEnd(x,d.getStart(),d.end)){if(T.facts&Q.IsGenerator&&2===n){for(var p=ne.createDiagnosticForNode(e,U.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),m=0,f=k;m<f.length;m++){var _=f[m];_.push(p)}for(var g=0,v=N;g<v.length;g++){var _=v[g];_.push(p)}}for(var y=0;y<S.length;y++){var h=S[y],b=D.resolveName(r.name,h,r.flags,!1);if(b!==r&&!L[y].has(a)){var E=H(r.exportSymbol||r,h,t);if(E)L[y].set(a,E);else if(t){if(!(262144&r.flags)){var p=ne.createDiagnosticForNode(e,U.typeWillNotBeVisibleInTheNewScope);k[y].push(p),N[y].push(p)}}else A[y].usages.set(e.text,{usage:n,symbol:r,node:e})}}return a}}}(e,n,t);if(r)for(var a=0;a<S.length;a++){var i=L[a].get(r);i&&A[a].substitutions.set(ne.getNodeId(e).toString(),i)}}function j(e){return e.parent&&ne.isShorthandPropertyAssignment(e.parent)&&e.parent.name===e?D.getShorthandAssignmentValueSymbol(e.parent):D.getSymbolAtLocation(e)}function H(e,n,t){if(e){var r=e.getDeclarations();if(r&&r.some(function(e){return e.parent===n}))return ne.createIdentifier(e.name);var a=H(e.parent,n,t);if(void 0!==a)return t?ne.createQualifiedName(a,ne.createIdentifier(e.name)):ne.createPropertyAccess(a,e.name)}}}(e,i,(r=a,ee((t=e).range)?{pos:ne.first(t.range).getStart(r),end:ne.last(t.range).getEnd()}:t.range),a,n.program.getTypeChecker(),n.cancellationToken)}}function Z(e,n){var t=e.type,r=e.declaration,a=n.type,i=n.declaration;return ne.compareProperties(r,i,"pos",ne.compareValues)||ne.compareStringsCaseSensitive(t.symbol?t.symbol.getName():"",a.symbol?a.symbol.getName():"")||ne.compareValues(t.id,a.id)}function $(e,n){var t=ne.map(e,function(e){return ne.createShorthandPropertyAssignment(e.symbol.name)}),r=ne.map(n,function(e){return ne.createShorthandPropertyAssignment(e.symbol.name)});return void 0===t?r:void 0===r?t:t.concat(r)}function ee(e){return ne.isArray(e)}function k(e){switch(e.kind){case 216:case 277:case 243:case 269:return!0;default:return!1}}c.registerRefactor(b,{getAvailableActions:o,getEditsForAction:s}),e.getAvailableActions=o,e.getEditsForAction=s,function(e){function n(e){return{message:e,code:0,category:ne.DiagnosticCategory.Message,key:e}}e.cannotExtractRange=n("Cannot extract range."),e.cannotExtractImport=n("Cannot extract import statement."),e.cannotExtractSuper=n("Cannot extract super call."),e.cannotExtractEmpty=n("Cannot extract empty range."),e.expressionExpected=n("expression expected."),e.uselessConstantType=n("No reason to extract constant of type."),e.statementOrExpressionExpected=n("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),e.cannotExtractIdentifier=n("Select more than a single identifier."),e.cannotExtractExportedEntity=n("Cannot extract exported declaration"),e.cannotWriteInExpression=n("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=n("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=n("Cannot access variables from nested scopes"),e.cannotExtractToOtherFunctionLike=n("Cannot extract method to a function-like scope that is not a function"),e.cannotExtractToJSClass=n("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=n("Cannot extract constant to an arrow function without a block")}(U=e.Messages||(e.Messages={})),(n=Q||(Q={}))[n.None=0]="None",n[n.HasReturn=1]="HasReturn",n[n.IsGenerator=2]="IsGenerator",n[n.IsAsyncFunction=4]="IsAsyncFunction",n[n.UsesThis=8]="UsesThis",n[n.InStaticRegion=16]="InStaticRegion",e.getRangeToExtract=D,(r=t||(t={}))[r.Module=0]="Module",r[r.Global=1]="Global",(i=a||(a={}))[i.Read=1]="Read",i[i.Write=2]="Write"})((c=ne.refactor||(ne.refactor={})).extractSymbol||(c.extractSymbol={}))}(ts||(ts={})),function(ae){var r;(function(e){var n="Generate 'get' and 'set' accessors",t=ae.Diagnostics.Generate_get_and_set_accessors.message;function d(e){return ae.isParameterPropertyDeclaration(e)||ae.isPropertyDeclaration(e)||ae.isPropertyAssignment(e)}function p(e,n){return ae.isIdentifier(n)?ae.createIdentifier(e):ae.createLiteral(e)}function ee(e,n,t){var r=n?t.name:ae.createThis();return ae.isIdentifier(e)?ae.createPropertyAccess(r,e):ae.createElementAccess(r,ae.createLiteral(e))}function ne(e,n,t){var r=ae.append(e?void 0:[ae.createToken(t)],n?ae.createToken(115):void 0);return r&&ae.createNodeArray(r)}function te(e){var n=e.file,t=e.startPosition,r=e.endPosition,a=ae.getTokenAtPosition(n,t),i=ae.findAncestor(a.parent,d);if(i&&ae.nodeOverlapsWithStartEnd(i.name,n,t,r)&&(o=i.name,ae.isIdentifier(o)||ae.isStringLiteral(o))&&124==(124|ae.getModifierFlags(i))){var o,s=i.name.text,c=95===s.charCodeAt(0),l=p(c?s:ae.getUniqueName("_"+s,n),i.name),u=p(c?ae.getUniqueName(s.substring(1),n):s,i.name);return{isStatic:ae.hasStaticModifier(i),isReadonly:ae.hasReadonlyModifier(i),type:ae.getTypeAnnotationNode(i),container:149===i.kind?i.parent.parent:i.parent,originalName:i.name,declaration:i,fieldName:l,accessorName:u,renameAccessor:c}}}function re(e,n,t,r,a){ae.isParameterPropertyDeclaration(r)?e.insertNodeAtClassStart(n,a,t):ae.isPropertyAssignment(r)?e.insertNodeAfterComma(n,r,t):e.insertNodeAfter(n,r,t)}r.registerRefactor(n,{getEditsForAction:function(e,n){var t=e.file,r=te(e);if(r){var a=ae.isSourceFileJS(t),i=ae.textChanges.ChangeTracker.fromContext(e),o=r.isStatic,s=r.isReadonly,c=r.fieldName,l=r.accessorName,u=r.originalName,d=r.type,p=r.container,m=r.declaration,f=r.renameAccessor;ae.suppressLeadingAndTrailingTrivia(c),ae.suppressLeadingAndTrailingTrivia(m),ae.suppressLeadingAndTrailingTrivia(p);var _,g,v,y,h,b,E,T,S,x,C,D,A,L,k,N,I=ae.isClassLike(p),M=-65&ae.getModifierFlags(m),O=I?!M||8&M?ne(a,o,114):ae.createNodeArray(ae.createModifiersFromModifierFlags(M)):void 0,w=I?ne(a,o,112):void 0;_=i,g=t,v=m,y=c,h=w,ae.isPropertyDeclaration(v)?(C=_,D=g,A=v,L=y,k=h,N=ae.updateProperty(A,A.decorators,k,L,A.questionToken||A.exclamationToken,A.type,A.initializer),C.replaceNode(D,A,N)):ae.isPropertyAssignment(v)?(b=_,E=g,T=v,S=y,x=ae.updatePropertyAssignment(T,S,T.initializer),b.replacePropertyAssignment(E,T,x)):_.replaceNode(g,v,ae.updateParameter(v,v.decorators,h,v.dotDotDotToken,ae.cast(y,ae.isIdentifier),v.questionToken,v.type,v.initializer));var P,R,F,G,V,B,K,j,H,U,W,q,z=(P=c,R=l,F=d,G=O,V=o,B=p,ae.createGetAccessor(void 0,G,R,void 0,F,ae.createBlock([ae.createReturn(ee(P,V,B))],!0)));if(ae.suppressLeadingAndTrailingTrivia(z),re(i,t,z,m,p),s){var J=ae.getFirstConstructorWithBody(p);J&&function(a,e,n,i,t){if(n.body){var o=e.file,r=e.program,s=e.cancellationToken,c=ae.mapDefined(ae.FindAllReferences.getReferenceEntriesForNode(t.parent.pos,t,r,[o],s),function(e){return"node"===e.type&&ae.rangeContainsRange(n,e.node)&&ae.isIdentifier(e.node)&&ae.isWriteAccess(e.node)?e.node:void 0});ae.forEach(c,function(e){var n=e.parent,t=ae.createIdentifier(i.text),r=ae.isBinaryExpression(n)?ae.updateBinary(n,t,n.right,n.operatorToken):ae.isPropertyAccessExpression(n)?ae.updatePropertyAccess(n,n.expression,t):ae.Debug.fail("Unexpected write access token");a.replaceNode(o,n,r)})}}(i,e,J,c,u)}else{var X=(K=c,j=l,H=d,U=O,W=o,q=p,ae.createSetAccessor(void 0,U,j,[ae.createParameter(void 0,void 0,void 0,ae.createIdentifier("value"),void 0,H)],ae.createBlock([ae.createStatement(ae.createAssignment(ee(K,W,q),ae.createIdentifier("value")))],!0)));ae.suppressLeadingAndTrailingTrivia(X),re(i,t,X,m,p)}var Y=i.getChanges(),Q=t.fileName,Z=f?l:c,$=(ae.isIdentifier(Z)?0:-1)+ae.getRenameLocation(Y,Q,Z.text,ae.isParameter(m));return{renameFilename:Q,renameLocation:$,edits:Y}}},getAvailableActions:function(e){return te(e)?[{name:n,description:t,actions:[{name:n,description:t}]}]:void 0}})})((r=ae.refactor||(ae.refactor={})).generateGetAccessorAndSetAccessor||(r.generateGetAccessorAndSetAccessor={}))}(ts||(ts={})),function(P){!function(e){var t="Move to a new file";function r(e){var n=function(e){var n=e.file,t=P.createTextRangeFromSpan(P.getRefactorContextSpan(e)),r=n.statements,a=P.findIndex(r,function(e){return e.end>t.pos});if(-1!==a){var i=r[a];if(P.isNamedDeclaration(i)&&i.name&&P.rangeContainsRange(i.name,t))return{toMove:[r[a]],afterLast:r[a+1]};if(!(t.pos>i.getStart(n))){var o=P.findIndex(r,function(e){return e.end>t.end},a);if(-1===o||!(0===o||r[o].getStart(n)<t.end))return{toMove:r.slice(a,-1===o?r.length:o),afterLast:-1===o?void 0:r[o]}}}}(e);if(void 0!==n){var r=[],a=[],i=n.toMove,o=n.afterLast;return P.getRangesWhere(i,function(e){return!function(e){switch(e.kind){case 247:return!0;case 246:return!P.hasModifier(e,1);case 217:return e.declarationList.declarations.every(function(e){return!!e.initializer&&P.isRequireCall(e.initializer,!0)});default:return!1}}(e)},function(e,n){for(var t=e;t<n;t++)r.push(i[t]);a.push({first:i[e],afterLast:o})}),0===r.length?void 0:{all:r,ranges:a}}}function E(e,n,t){for(var r=0,a=n;r<a.length;r++){var i=a[r],o=i.first,s=i.afterLast;t.deleteNodeRangeExcludingEnd(e,o,s)}}function T(e){return 247===e.kind?e.moduleSpecifier:246===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function S(e,n){if(P.isImportDeclaration(e))P.isStringLiteral(e.moduleSpecifier)&&n(e);else if(P.isImportEqualsDeclaration(e))P.isExternalModuleReference(e.moduleReference)&&P.isStringLiteralLike(e.moduleReference.expression)&&n(e);else if(P.isVariableStatement(e))for(var t=0,r=e.declarationList.declarations;t<r.length;t++){var a=r[t];a.initializer&&P.isRequireCall(a.initializer,!0)&&n(a)}}function x(e,n,t,r,a){if(t=P.ensurePathIsNonModuleName(t),r){var i=n.map(function(e){return P.createImportSpecifier(void 0,P.createIdentifier(e))});return P.makeImportIfNecessary(e,i,t,a)}P.Debug.assert(!e);var o=n.map(function(e){return P.createBindingElement(void 0,void 0,e)});return o.length?s(P.createObjectBindingPattern(o),void 0,C(P.createLiteral(t))):void 0}function s(e,n,t,r){return void 0===r&&(r=2),P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(e,n,t)],r))}function C(e){return P.createCall(P.createIdentifier("require"),void 0,[e])}function D(e,n,t,r){switch(n.kind){case 247:!function(e,n,t,r){if(!n.importClause)return;var a=n.importClause,i=a.name,o=a.namedBindings,s=!i||r(i),c=!o||(249===o.kind?r(o.name):0!==o.elements.length&&o.elements.every(function(e){return r(e.name)}));if(s&&c)t.delete(e,n);else if(i&&s&&t.delete(e,i),o)if(c)t.delete(e,o);else if(250===o.kind)for(var l=0,u=o.elements;l<u.length;l++){var d=u[l];r(d.name)&&t.delete(e,d)}}(e,n,t,r);break;case 246:r(n.name)&&t.delete(e,n);break;case 235:!function(e,n,t,r){var a=n.name;switch(a.kind){case 71:r(a)&&t.delete(e,a);break;case 183:break;case 182:if(a.elements.every(function(e){return P.isIdentifier(e.name)&&r(e.name)}))t.delete(e,P.isVariableDeclarationList(n.parent)&&1===n.parent.declarations.length?n.parent.parent:n);else for(var i=0,o=a.elements;i<o.length;i++){var s=o[i];P.isIdentifier(s.name)&&r(s.name)&&t.delete(e,s.name)}}}(e,n,t,r);break;default:P.Debug.assertNever(n)}}function _(e){switch(e.kind){case 246:case 251:case 248:return!0;case 235:return n(e);case 184:return P.isVariableDeclaration(e.parent.parent)&&n(e.parent.parent);default:return!1}}function n(e){return P.isSourceFile(e.parent.parent.parent)&&e.initializer&&P.isRequireCall(e.initializer,!0)}function A(e,n,t){switch(e.kind){case 247:var r=e.importClause;if(!r)return;var a=r.name&&t(r.name)?r.name:void 0,i=r.namedBindings&&function(e,n){{if(249===e.kind)return n(e.name)?e:void 0;var t=e.elements.filter(function(e){return n(e.name)});return t.length?P.createNamedImports(t):void 0}}(r.namedBindings,t);return a||i?P.createImportDeclaration(void 0,void 0,P.createImportClause(a,i),n):void 0;case 246:return t(e.name)?e:void 0;case 235:var o=function(e,n){switch(e.kind){case 71:return n(e)?e:void 0;case 183:return e;case 182:var t=e.elements.filter(function(e){return e.propertyName||!P.isIdentifier(e.name)||n(e.name)});return t.length?P.createObjectBindingPattern(t):void 0}}(e.name,t);return o?s(o,e.type,C(n),e.parent.flags):void 0;default:return P.Debug.assertNever(e)}}function g(e,r,a){e.forEachChild(function e(n){if(P.isIdentifier(n)&&!P.isDeclarationName(n)){var t=r.getSymbolAtLocation(n);t&&a(t)}else n.forEachChild(e)})}e.registerRefactor(t,{getAvailableActions:function(e){if(e.preferences.allowTextChangesInNewFiles&&void 0!==r(e)){var n=P.getLocaleSpecificMessage(P.Diagnostics.Move_to_a_new_file);return[{name:t,description:n,actions:[{name:t,description:n}]}]}},getEditsForAction:function(m,e){P.Debug.assert(e===t);var f=P.Debug.assertDefined(r(m));return{edits:P.textChanges.ChangeTracker.with(m,function(e){return n=m.file,t=m.program,r=f,a=e,i=m.host,o=m.preferences,s=t.getTypeChecker(),c=function(i,e,n){for(var o=new v,s=new v,c=new v,t=0,r=e;t<r.length;t++){var a=r[t];N(a,function(e){o.add(P.Debug.assertDefined(P.isExpressionStatement(e)?n.getSymbolAtLocation(e.expression.left):e.symbol))})}for(var l=0,u=e;l<u.length;l++){var a=u[l];g(a,n,function(e){var n;if(e.declarations)for(var t=0,r=e.declarations;t<r.length;t++){var a=r[t];_(a)?s.add(e):L(a)&&(n=a,(P.isVariableDeclaration(n)?n.parent.parent.parent:n.parent)===i)&&!o.has(e)&&c.add(e)}})}for(var d=s.clone(),p=new v,m=0,f=i.statements;m<f.length;m++){var a=f[m];P.contains(e,a)||g(a,n,function(e){o.has(e)&&p.add(e),d.delete(e)})}return{movedSymbols:o,newFileImportsFromOldFile:c,oldFileImportsFromNewFile:p,oldImportsNeededByNewFile:s,unusedImportsFromOldFile:d}}(n,r.all,s),l=P.getDirectoryPath(n.fileName),u=P.extensionFromPath(n.fileName),d=function(e,n,t,r){for(var a=e,i=1;;i++){var o=P.combinePaths(t,a+n);if(!r.fileExists(o))return a;a=e+"."+i}}(c.movedSymbols.forEachEntry(P.symbolNameNoDefault)||"newFile",u,l,i),p=d+u,a.createNewFile(n,P.combinePaths(l,p),function(e,n,t,r,a,i,o){var s=a.getTypeChecker();if(!e.externalModuleIndicator&&!e.commonJsModuleIndicator)return E(e,r.ranges,t),r.all;var c,l,u,d,p,m,f,_,g,v,y=!!e.externalModuleIndicator,h=P.getQuotePreference(e,o),b=(c=n.oldFileImportsFromNewFile,l=i,u=y,d=h,m=[],c.forEach(function(e){"default"===e.escapedName?p=P.createIdentifier(P.symbolNameNoDefault(e)):m.push(e.name)}),x(p,m,l,u,d));return b&&P.insertImport(t,e,b),function(n,e,t,r,a){for(var i=0,o=n.statements;i<o.length;i++){var s=o[i];P.contains(e,s)||S(s,function(e){return D(n,e,t,function(e){return r.has(a.getSymbolAtLocation(e))})})}}(e,r.all,t,n.unusedImportsFromOldFile,s),E(e,r.ranges,t),function(s,e,c,l,u){for(var d=e.getTypeChecker(),n=function(o){if(o===c)return"continue";for(var e=function(i){S(i,function(e){if(d.getSymbolAtLocation(T(e))===c.symbol){var n=function(e){var n=P.isBindingElement(e.parent)?P.getPropertySymbolFromBindingElement(d,e.parent):P.skipAlias(d.getSymbolAtLocation(e),d);return!!n&&l.has(n)};D(o,e,s,n);var t=P.combinePaths(P.getDirectoryPath(T(e).text),u),r=A(e,P.createLiteral(t),n);r&&s.insertNodeAfter(o,i,r);var a=function(e){switch(e.kind){case 247:return e.importClause&&e.importClause.namedBindings&&249===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 246:return e.name;case 235:return P.tryCast(e.name,P.isIdentifier);default:return P.Debug.assertNever(e)}}(e);a&&function(e,n,t,r,a,i,o,s){var c=P.codefix.moduleSpecifierToValidIdentifier(a,6),l=!1,u=[];if(P.FindAllReferences.Core.eachSymbolReferenceInFile(o,t,n,function(e){P.isPropertyAccessExpression(e.parent)&&(l=l||!!t.resolveName(c,e,67108863,!0),r.has(t.getSymbolAtLocation(e.parent.name))&&u.push(e))}),u.length){for(var d=l?P.getUniqueName(c,n):c,p=0,m=u;p<m.length;p++){var f=m[p];e.replaceNode(n,f,P.createIdentifier(d))}e.insertNodeAfter(n,s,function(e,n,t){var r=P.createIdentifier(n),a=P.createLiteral(t);switch(e.kind){case 247:return P.createImportDeclaration(void 0,void 0,P.createImportClause(void 0,P.createNamespaceImport(r)),a);case 246:return P.createImportEqualsDeclaration(void 0,void 0,r,P.createExternalModuleReference(a));case 235:return P.createVariableDeclaration(r,void 0,C(a));default:return P.Debug.assertNever(e)}}(s,a,i))}}(s,o,d,l,u,t,a,e)}})},n=0,t=o.statements;n<t.length;n++){var r=t[n];e(r)}},t=0,r=e.getSourceFiles();t<r.length;t++){var a=r[t];n(a)}}(t,a,e,n.movedSymbols,i),function(c,n,e,l,t,u,r){for(var d,a=[],i=0,o=c.statements;i<o.length;i++){var s=o[i];S(s,function(e){P.append(a,A(e,T(e),function(e){return n.has(t.getSymbolAtLocation(e))}))})}var p=[],m=P.nodeSeenTracker();return e.forEach(function(e){for(var n=0,t=e.declarations;n<t.length;n++){var r=t[n];if(L(r)){var a=219===(s=r).kind?s.expression.left.name:P.tryCast(s.name,P.isIdentifier);if(a){var i=(o=r,P.isVariableDeclaration(o)?o.parent.parent:o);m(i)&&I(c,i,l,u),P.hasModifier(r,512)?d=a:p.push(a.text)}}}var o,s}),P.append(a,x(d,p,P.removeFileExtension(P.getBaseFileName(c.fileName)),u,r)),a}(e,n.oldImportsNeededByNewFile,n.newFileImportsFromOldFile,t,s,y,h).concat((f=e,_=r.all,g=n.oldFileImportsFromNewFile,v=y,P.flatMap(_,function(e){if(a=e,P.Debug.assert(P.isSourceFile(a.parent)),(k(a)||P.isVariableStatement(a))&&!M(f,e,v)&&N(e,function(e){return g.has(P.Debug.assertDefined(e.symbol))})){var n=(t=e,v?[function(e){var n=P.concatenate([P.createModifier(84)],e.modifiers);switch(e.kind){case 237:return P.updateFunctionDeclaration(e,e.decorators,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 238:return P.updateClassDeclaration(e,e.decorators,n,e.name,e.typeParameters,e.heritageClauses,e.members);case 217:return P.updateVariableStatement(e,n,e.declarationList);case 242:return P.updateModuleDeclaration(e,e.decorators,n,e.name,e.body);case 241:return P.updateEnumDeclaration(e,e.decorators,n,e.name,e.members);case 240:return P.updateTypeAliasDeclaration(e,e.decorators,n,e.name,e.typeParameters,e.type);case 239:return P.updateInterfaceDeclaration(e,e.decorators,n,e.name,e.typeParameters,e.heritageClauses,e.members);case 246:return P.updateImportEqualsDeclaration(e,e.decorators,n,e.name,e.moduleReference);case 219:return P.Debug.fail();default:return P.Debug.assertNever(e)}}(t)]:[r=t].concat(O(r).map(w)));if(n)return n}var t,r,a;return e})))}(n,c,a,r,t,d,o)),void function(e,n,t,r,a){var i=e.getCompilerOptions().configFile;if(i){var o=P.normalizePath(P.combinePaths(t,"..",r)),s=P.getRelativePathFromFile(i.fileName,o,a),c=i.statements[0]&&P.tryCast(i.statements[0].expression,P.isObjectLiteralExpression),l=c&&P.find(c.properties,function(e){return P.isPropertyAssignment(e)&&P.isStringLiteral(e.name)&&"files"===e.name.text});l&&P.isArrayLiteralExpression(l.initializer)&&n.insertNodeInListAfter(i,P.last(l.initializer.elements),P.createLiteral(s),l.initializer.elements)}}(t,a,n.fileName,p,P.hostGetCanonicalFileName(i));var n,t,r,a,i,o,s,c,l,u,d,p}),renameFilename:void 0,renameLocation:void 0}}});var v=function(){function n(){this.map=P.createMap()}return n.prototype.add=function(e){this.map.set(String(P.getSymbolId(e)),e)},n.prototype.has=function(e){return this.map.has(String(P.getSymbolId(e)))},n.prototype.delete=function(e){this.map.delete(String(P.getSymbolId(e)))},n.prototype.forEach=function(e){this.map.forEach(e)},n.prototype.forEachEntry=function(e){return P.forEachEntry(this.map,e)},n.prototype.clone=function(){var e=new n;return P.copyEntries(this.map,e.map),e},n}();function L(e){return k(e)&&P.isSourceFile(e.parent)||P.isVariableDeclaration(e)&&P.isSourceFile(e.parent.parent.parent)}function k(e){switch(e.kind){case 237:case 238:case 242:case 241:case 240:case 239:case 246:return!0;default:return!1}}function N(e,n){switch(e.kind){case 237:case 238:case 242:case 241:case 240:case 239:case 246:return n(e);case 217:return P.forEach(e.declarationList.declarations,n);case 219:var t=e.expression;return P.isBinaryExpression(t)&&1===P.getAssignmentDeclarationKind(t)?n(e):void 0}}function I(e,n,t,r){if(!M(e,n,r))if(r)P.isExpressionStatement(n)||t.insertExportModifier(e,n);else{var a=O(n);0!==a.length&&t.insertNodesAfter(e,n,a.map(w))}}function M(n,e,t){return t?!P.isExpressionStatement(e)&&P.hasModifier(e,1):O(e).some(function(e){return n.symbol.exports.has(P.escapeLeadingUnderscores(e))})}function O(e){switch(e.kind){case 237:case 238:return[e.name.text];case 217:return P.mapDefined(e.declarationList.declarations,function(e){return P.isIdentifier(e.name)?e.name.text:void 0});case 242:case 241:case 240:case 239:case 246:return P.emptyArray;case 219:return P.Debug.fail();default:return P.Debug.assertNever(e)}}function w(e){return P.createExpressionStatement(P.createBinary(P.createPropertyAccess(P.createIdentifier("exports"),P.createIdentifier(e)),58,P.createIdentifier(e)))}}(P.refactor||(P.refactor={}))}(ts||(ts={})),function(g){var n;(function(e){var a="Add or remove braces in an arrow function",i=g.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,m="Add braces to arrow function",f="Remove braces from arrow function",o=g.Diagnostics.Add_braces_to_arrow_function.message,s=g.Diagnostics.Remove_braces_from_arrow_function.message;function _(e,n){var t=g.getTokenAtPosition(e,n),r=g.getContainingFunction(t);if(r&&g.isArrowFunction(r)&&g.rangeContainsRange(r,t)&&!g.rangeContainsRange(r.body,t)){if(g.isExpression(r.body))return{func:r,addBraces:!0,expression:r.body};if(1===r.body.statements.length){var a=g.first(r.body.statements);if(g.isReturnStatement(a))return{func:r,addBraces:!1,expression:a.expression,returnStatement:a}}}}n.registerRefactor(a,{getEditsForAction:function(e,n){var t=e.file,r=e.startPosition,a=_(t,r);if(a){var i,o,s=a.expression,c=a.returnStatement,l=a.func;if(n===m){var u=g.createReturn(s);i=g.createBlock([u],!0),g.suppressLeadingAndTrailingTrivia(i),g.copyComments(s,u,t,3,!0)}else if(n===f&&c){var d=s||g.createVoidZero();o=d,i=g.isBinaryExpression(o)&&26===o.operatorToken.kind||g.isObjectLiteralExpression(o)?g.createParen(d):d,g.suppressLeadingAndTrailingTrivia(i),g.copyComments(c,i,t,3,!1)}else g.Debug.fail("invalid action");var p=g.textChanges.ChangeTracker.with(e,function(e){return e.replaceNode(t,l.body,i)});return{renameFilename:void 0,renameLocation:void 0,edits:p}}},getAvailableActions:function(e){var n=e.file,t=e.startPosition,r=_(n,t);return r?[{name:a,description:i,actions:[r.addBraces?{name:m,description:o}:{name:f,description:s}]}]:void 0}})})((n=g.refactor||(g.refactor={})).addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))}(ts||(ts={})),function(D){function s(e,n,t,r){var a=D.isNodeKind(e)?new i(e,n,t):71===e?new l(71,n,t):new o(e,n,t);return a.parent=r,a.flags=12679168&r.flags,a}D.servicesVersion="0.8";var i=function(){function e(e,n,t){this.pos=n,this.end=t,this.flags=0,this.transformFlags=void 0,this.parent=void 0,this.kind=e}return e.prototype.assertHasRealPosition=function(e){D.Debug.assert(!D.positionIsSynthesized(this.pos)&&!D.positionIsSynthesized(this.end),e||"Node must have a real position for this operation")},e.prototype.getSourceFile=function(){return D.getSourceFileOfNode(this)},e.prototype.getStart=function(e,n){return this.assertHasRealPosition(),D.getTokenPosOfNode(this,e,n)},e.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},e.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},e.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},e.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},e.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},e.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},e.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},e.prototype.getChildCount=function(e){return this.getChildren(e).length},e.prototype.getChildAt=function(e,n){return this.getChildren(n)[e]},e.prototype.getChildren=function(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(n,e){if(!D.isNodeKind(n.kind))return D.emptyArray;var t=[];if(D.isJSDocCommentContainingNode(n))return n.forEachChild(function(e){t.push(e)}),t;D.scanner.setText((e||n.getSourceFile()).text);var r=n.pos,a=function(e){c(t,r,e.pos,n),t.push(e),r=e.end};return D.forEach(n.jsDoc,a),r=n.pos,n.forEachChild(a,function(e){c(t,r,e.pos,n),t.push(function(e,n){var t=s(304,e.pos,e.end,n);t._children=[];for(var r=e.pos,a=0,i=e;a<i.length;a++){var o=i[a];c(t._children,r,o.pos,n),t._children.push(o),r=o.end}return c(t._children,r,e.end,n),t}(e,n)),r=e.end}),c(t,r,n.end,n),D.scanner.setText(void 0),t}(this,e))},e.prototype.getFirstToken=function(e){this.assertHasRealPosition();var n=this.getChildren(e);if(n.length){var t=D.find(n,function(e){return e.kind<281||303<e.kind});return t.kind<146?t:t.getFirstToken(e)}},e.prototype.getLastToken=function(e){this.assertHasRealPosition();var n=this.getChildren(e),t=D.lastOrUndefined(n);if(t)return t.kind<146?t:t.getLastToken(e)},e.prototype.forEachChild=function(e,n){return D.forEachChild(this,e,n)},e}();function c(e,n,t,r){for(D.scanner.setTextPos(n);n<t;){var a=D.scanner.scan(),i=D.scanner.getTextPos();if(i<=t&&(71===a&&D.Debug.fail("Did not expect "+D.Debug.showSyntaxKind(r)+" to have an Identifier in its trivia"),e.push(s(a,n,i,r))),n=i,1===a)break}}var e=function(){function e(e,n){this.pos=e,this.end=n,this.flags=0,this.parent=void 0}return e.prototype.getSourceFile=function(){return D.getSourceFileOfNode(this)},e.prototype.getStart=function(e,n){return D.getTokenPosOfNode(this,e,n)},e.prototype.getFullStart=function(){return this.pos},e.prototype.getEnd=function(){return this.end},e.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},e.prototype.getFullWidth=function(){return this.end-this.pos},e.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},e.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},e.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},e.prototype.getChildCount=function(){return 0},e.prototype.getChildAt=function(){},e.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||D.emptyArray},e.prototype.getFirstToken=function(){},e.prototype.getLastToken=function(){},e.prototype.forEachChild=function(){},e}(),n=function(){function e(e,n){this.flags=e,this.escapedName=n}return e.prototype.getFlags=function(){return this.flags},Object.defineProperty(e.prototype,"name",{get:function(){return D.symbolName(this)},enumerable:!0,configurable:!0}),e.prototype.getEscapedName=function(){return this.escapedName},e.prototype.getName=function(){return this.name},e.prototype.getDeclarations=function(){return this.declarations},e.prototype.getDocumentationComment=function(e){return this.documentationComment||(this.documentationComment=D.emptyArray,this.documentationComment=a(this.declarations,e)),this.documentationComment},e.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=D.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},e}(),o=function(a){function e(e,n,t){var r=a.call(this,n,t)||this;return r.kind=e,r}return __extends(e,a),e}(e),l=function(r){function e(e,n,t){return r.call(this,n,t)||this}return __extends(e,r),Object.defineProperty(e.prototype,"text",{get:function(){return D.idText(this)},enumerable:!0,configurable:!0}),e}(e);l.prototype.kind=71;var t=function(){function e(e,n){this.checker=e,this.flags=n}return e.prototype.getFlags=function(){return this.flags},e.prototype.getSymbol=function(){return this.symbol},e.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},e.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},e.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},e.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},e.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},e.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},e.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},e.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},e.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},e.prototype.isUnion=function(){return!!(262144&this.flags)},e.prototype.isIntersection=function(){return!!(524288&this.flags)},e.prototype.isUnionOrIntersection=function(){return!!(786432&this.flags)},e.prototype.isLiteral=function(){return!!(192&this.flags)},e.prototype.isStringLiteral=function(){return!!(64&this.flags)},e.prototype.isNumberLiteral=function(){return!!(128&this.flags)},e.prototype.isTypeParameter=function(){return!!(65536&this.flags)},e.prototype.isClassOrInterface=function(){return!!(3&D.getObjectFlags(this))},e.prototype.isClass=function(){return!!(1&D.getObjectFlags(this))},e}(),r=function(){function e(e){this.checker=e}return e.prototype.getDeclaration=function(){return this.declaration},e.prototype.getTypeParameters=function(){return this.typeParameters},e.prototype.getParameters=function(){return this.parameters},e.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},e.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=a(D.singleElementArray(this.declaration),this.checker))},e.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?D.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},e}();function u(e){return D.getJSDocTags(e).some(function(e){return"inheritDoc"===e.tagName.text})}function a(e,n){if(!e)return D.emptyArray;var t=D.JsDoc.getJsDocCommentsFromDeclarations(e);if(0===t.length||e.some(u))for(var r=0,a=e;r<a.length;r++){var i=a[r],o=d(i,i.symbol.name,n);o&&(t=0===t.length?o.slice():o.concat(D.lineBreakPart(),t))}return t}function d(e,a,i){return D.firstDefined(e.parent?D.getAllSuperTypeNodes(e.parent):D.emptyArray,function(e){var n=i.getTypeAtLocation(e),t=n&&i.getPropertyOfType(n,a),r=t&&t.getDocumentationComment(i);return r&&r.length?r:void 0})}var p=function(r){function e(e,n,t){return r.call(this,e,n,t)||this}return __extends(e,r),e.prototype.update=function(e,n){return D.updateSourceFile(this,e,n)},e.prototype.getLineAndCharacterOfPosition=function(e){return D.getLineAndCharacterOfPosition(this,e)},e.prototype.getLineStarts=function(){return D.getLineStarts(this)},e.prototype.getPositionOfLineAndCharacter=function(e,n){return D.getPositionOfLineAndCharacter(this,e,n)},e.prototype.getLineEndOfPosition=function(e){var n,t=this.getLineAndCharacterOfPosition(e).line,r=this.getLineStarts();t+1>=r.length&&(n=this.getEnd()),n||(n=r[t+1]-1);var a=this.getFullText();return"\n"===a[n]&&"\r"===a[n-1]?n-1:n},e.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},e.prototype.computeNamedDeclarations=function(){var t=D.createMultiMap();return this.forEachChild(function e(n){switch(n.kind){case 237:case 194:case 154:case 153:var t=n,r=u(t);if(r){var a=l(r),i=D.lastOrUndefined(a);i&&t.parent===i.parent&&t.symbol===i.symbol?t.body&&!i.body&&(a[a.length-1]=t):a.push(t)}D.forEachChild(n,e);break;case 238:case 207:case 239:case 240:case 241:case 242:case 246:case 255:case 251:case 248:case 249:case 156:case 157:case 166:c(n),D.forEachChild(n,e);break;case 149:if(!D.hasModifier(n,92))break;case 235:case 184:var o=n;if(D.isBindingPattern(o.name)){D.forEachChild(o.name,e);break}o.initializer&&e(o.initializer);case 276:case 152:case 151:c(n);break;case 253:n.exportClause&&D.forEach(n.exportClause.elements,e);break;case 247:var s=n.importClause;s&&(s.name&&c(s.name),s.namedBindings&&(249===s.namedBindings.kind?c(s.namedBindings):D.forEach(s.namedBindings.elements,e)));break;case 202:0!==D.getAssignmentDeclarationKind(n)&&c(n);default:D.forEachChild(n,e)}}),t;function c(e){var n=u(e);n&&t.add(n,e)}function l(e){var n=t.get(e);return n||t.set(e,n=[]),n}function u(e){var n=D.getNonAssignedNameOfDeclaration(e);return n&&(D.isComputedPropertyName(n)&&D.isPropertyAccessExpression(n.expression)?n.expression.name.text:D.isPropertyName(n)?D.getNameFromPropertyName(n):void 0)}},e}(i),m=function(){function e(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t}return e.prototype.getLineAndCharacterOfPosition=function(e){return D.getLineAndCharacterOfPosition(this,e)},e}();function A(e){var n=!0;for(var t in e)if(D.hasProperty(e,t)&&!f(t)){n=!1;break}if(n)return e;var r={};for(var t in e){if(D.hasProperty(e,t))r[f(t)?t:t.charAt(0).toLowerCase()+t.substr(1)]=e[t]}return r}function f(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function _(){return{target:1,jsx:1}}D.toEditorSettings=A,D.displayPartsToString=function(e){return e?D.map(e,function(e){return e.text}).join(""):""},D.getDefaultCompilerOptions=_,D.getSupportedCodeFixes=function(){return D.codefix.getSupportedErrorCodes()};var L=function(){function e(e,n){this.host=e,this.currentDirectory=e.getCurrentDirectory(),this.fileNameToEntry=D.createMap();for(var t=0,r=e.getScriptFileNames();t<r.length;t++){var a=r[t];this.createEntry(a,D.toPath(a,this.currentDirectory,n))}this._compilationSettings=e.getCompilationSettings()||{target:1,jsx:1}}return e.prototype.compilationSettings=function(){return this._compilationSettings},e.prototype.getProjectReferences=function(){return this.host.getProjectReferences&&this.host.getProjectReferences()},e.prototype.createEntry=function(e,n){var t,r=this.host.getScriptSnapshot(e);return t=r?{hostFileName:e,version:this.host.getScriptVersion(e),scriptSnapshot:r,scriptKind:D.getScriptKind(e,this.host)}:e,this.fileNameToEntry.set(n,t),t},e.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},e.prototype.getHostFileInformation=function(e){var n=this.fileNameToEntry.get(e);return D.isString(n)?void 0:n},e.prototype.getOrCreateEntryByPath=function(e,n){var t=this.getEntryByPath(n)||this.createEntry(e,n);return D.isString(t)?void 0:t},e.prototype.getRootFileNames=function(){var n=[];return this.fileNameToEntry.forEach(function(e){D.isString(e)?n.push(e):6!==e.scriptKind&&n.push(e.hostFileName)}),n},e.prototype.getVersion=function(e){var n=this.getHostFileInformation(e);return n&&n.version},e.prototype.getScriptSnapshot=function(e){var n=this.getHostFileInformation(e);return n&&n.scriptSnapshot},e}(),k=function(){function e(e){this.host=e}return e.prototype.getCurrentSourceFile=function(e){var n=this.host.getScriptSnapshot(e);if(!n)throw new Error("Could not find file: '"+e+"'.");var t,r=D.getScriptKind(e,this.host),a=this.host.getScriptVersion(e);if(this.currentFileName!==e)t=v(e,n,6,a,!0,r);else if(this.currentFileVersion!==a){var i=n.getChangeRange(this.currentFileScriptSnapshot);t=y(this.currentSourceFile,n,a,i)}return t&&(this.currentFileVersion=a,this.currentFileName=e,this.currentFileScriptSnapshot=n,this.currentSourceFile=t),this.currentSourceFile},e}();function g(e,n,t){e.version=t,e.scriptSnapshot=n}function v(e,n,t,r,a,i){var o=D.createSourceFile(e,D.getSnapshotText(n),t,a,i);return g(o,n,r),o}function y(e,n,t,r,a){if(!r||t===e.version||D.disableIncrementalParsing)return v(e.fileName,n,e.languageVersion,t,!0,e.scriptKind);var i=void 0,o=0!==r.span.start?e.text.substr(0,r.span.start):"",s=D.textSpanEnd(r.span)!==e.text.length?e.text.substr(D.textSpanEnd(r.span)):"";if(0===r.newLength)i=o&&s?o+s:o||s;else{var c=n.getText(r.span.start,r.span.start+r.newLength);i=o&&s?o+c+s:o?o+c:c+s}var l=D.updateSourceFile(e,i,r,a);return g(l,n,t),l.nameTable=void 0,e!==l&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),l}D.createLanguageServiceSourceFile=v,D.disableIncrementalParsing=!1,D.updateLanguageServiceSourceFile=y;var N=function(){function e(e){this.cancellationToken=e}return e.prototype.isCancellationRequested=function(){return!!this.cancellationToken&&this.cancellationToken.isCancellationRequested()},e.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new D.OperationCanceledException},e}(),h=function(){function e(e,n){void 0===n&&(n=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=n,this.lastCancellationCheckTime=0}return e.prototype.isCancellationRequested=function(){var e=D.timestamp();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested())},e.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new D.OperationCanceledException},e}();function I(e){var n=function(e){switch(e.kind){case 9:case 8:if(147===e.parent.kind)return D.isObjectLiteralElement(e.parent.parent)?e.parent.parent:void 0;case 71:return!D.isObjectLiteralElement(e.parent)||186!==e.parent.parent.kind&&266!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}return}(e);return n&&(D.isObjectLiteralExpression(n.parent)||D.isJsxAttributes(n.parent))?n:void 0}function M(n,t,e,r){var a=D.getNameFromPropertyName(n.name);if(!a)return D.emptyArray;if(!e.isUnion())return(i=e.getProperty(a))?[i]:D.emptyArray;var i,o=D.mapDefined(e.types,function(e){return D.isObjectLiteralExpression(n.parent)&&t.isTypeInvalidDueToUnionDiscriminant(e,n.parent)?void 0:e.getProperty(a)});if(r&&(0===o.length||o.length===e.types.length)&&(i=e.getProperty(a)))return[i];return 0===o.length?D.mapDefined(e.types,function(e){return e.getProperty(a)}):o}D.ThrottledCancellationToken=h,D.createLanguageService=function(p,m,f){var e;void 0===m&&(m=D.createDocumentRegistry(p.useCaseSensitiveFileNames&&p.useCaseSensitiveFileNames(),p.getCurrentDirectory())),void 0===f&&(f=!1);var _,g,s=new k(p),v=0,y=new N(p.getCancellationToken&&p.getCancellationToken()),h=p.getCurrentDirectory();function b(e){p.log&&p.log(e)}!D.localizedDiagnosticMessages&&p.getLocalizedDiagnosticMessages&&(D.localizedDiagnosticMessages=p.getLocalizedDiagnosticMessages());var E=D.hostUsesCaseSensitiveFileNames(p),T=D.createGetCanonicalFileName(E),S=D.getSourceMapper(T,h,b,p,function(){return _});function x(e){var n=_.getSourceFile(e);if(!n)throw new Error("Could not find file: '"+e+"'.");return n}function C(){if(D.Debug.assert(!f),p.getProjectVersion){var e=p.getProjectVersion();if(e){if(g===e&&!p.hasChangedAutomaticTypeDirectiveNames)return;g=e}}var n=p.getTypeRootsVersion?p.getTypeRootsVersion():0;v!==n&&(b("TypeRoots version has changed; provide new program"),_=void 0,v=n);var s=new L(p,T),t=s.getRootFileNames(),r=p.hasInvalidatedResolution||D.returnFalse,a=s.getProjectReferences();if(!D.isProgramUptoDate(_,t,s.compilationSettings(),function(e){return s.getVersion(e)},u,r,!!p.hasChangedAutomaticTypeDirectiveNames,a)){var c=s.compilationSettings(),i={getSourceFile:function(e,n,t,r){return d(e,D.toPath(e,h,T),0,0,r)},getSourceFileByPath:d,getCancellationToken:function(){return y},getCanonicalFileName:T,useCaseSensitiveFileNames:function(){return E},getNewLine:function(){return D.getNewLineCharacter(c,function(){return D.getNewLineOrDefaultFromHost(p)})},getDefaultLibFileName:function(e){return p.getDefaultLibFileName(e)},writeFile:D.noop,getCurrentDirectory:function(){return h},fileExists:u,readFile:function(e){var n=D.toPath(e,h,T),t=s&&s.getEntryByPath(n);return t?D.isString(t)?void 0:D.getSnapshotText(t.scriptSnapshot):p.readFile&&p.readFile(e)},realpath:p.realpath&&function(e){return p.realpath(e)},directoryExists:function(e){return D.directoryProbablyExists(e,p)},getDirectories:function(e){return p.getDirectories?p.getDirectories(e):[]},readDirectory:function(e,n,t,r,a){return D.Debug.assertDefined(p.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),p.readDirectory(e,n,t,r,a)},onReleaseOldSourceFile:function(e,n){var t=m.getKeyForCompilationSettings(n);m.releaseDocumentWithKey(e.path,t)},hasInvalidatedResolution:r,hasChangedAutomaticTypeDirectiveNames:p.hasChangedAutomaticTypeDirectiveNames};p.trace&&(i.trace=function(e){return p.trace(e)}),p.resolveModuleNames&&(i.resolveModuleNames=function(e,n,t){return p.resolveModuleNames(e,n,t)}),p.resolveTypeReferenceDirectives&&(i.resolveTypeReferenceDirectives=function(e,n){return p.resolveTypeReferenceDirectives(e,n)});var l=m.getKeyForCompilationSettings(c),o={rootNames:t,options:c,host:i,oldProgram:_,projectReferences:a};return _=D.createProgram(o),s=void 0,S.clearCache(),void _.getTypeChecker()}function u(e){var n=D.toPath(e,h,T),t=s&&s.getEntryByPath(n);return t?!D.isString(t):!!p.fileExists&&p.fileExists(e)}function d(e,n,t,r,a){D.Debug.assert(void 0!==s,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var i=s&&s.getOrCreateEntryByPath(e,n);if(i){if(!a){var o=_&&_.getSourceFileByPath(n);if(o)return D.Debug.assertEqual(i.scriptKind,o.scriptKind,"Registered script kind should match new script kind.",n),m.updateDocumentWithKey(e,n,c,l,i.scriptSnapshot,i.version,i.scriptKind)}return m.acquireDocumentWithKey(e,n,c,l,i.scriptSnapshot,i.version,i.scriptKind)}}}function i(){if(!f)return C(),_;D.Debug.assert(void 0===_)}function t(e,n,t){var r=D.normalizePath(e);D.Debug.assert(t.some(function(e){return D.normalizePath(e)===r})),C();var a=D.map(t,function(e){return D.Debug.assertDefined(_.getSourceFile(e))}),i=x(e);return D.DocumentHighlights.getDocumentHighlights(_,y,i,n,a)}function c(e,n,t){C();var r=t&&t.isForRename?_.getSourceFiles().filter(function(e){return!_.isSourceFileDefaultLibrary(e)}):_.getSourceFiles();return D.FindAllReferences.findReferencedEntries(_,y,r,e,n,t)}function r(e){var n=D.getScriptKind(e,p);return 3===n||4===n}var o=D.createMapFromTemplate(((e={})[17]=18,e[19]=20,e[21]=22,e[29]=27,e));function a(e,t){var r=function(e){return D.toPath(e,h,T)};switch(e.type){case"install package":return p.installPackage?p.installPackage({fileName:r(e.file),packageName:e.packageName}):Promise.reject("Host does not implement `installPackage`");case"generate types":var n=e.fileToGenerateTypesFor,a=e.outputFileName;return p.inspectValue?p.inspectValue({fileNameToRequire:n}).then(function(e){var n=r(a);return p.writeFile(n,D.valueInfoToDeclarationFileText(e,t||D.testFormatSettings)),{successMessage:"Wrote types to '"+n+"'"}}):Promise.reject("Host does not implement `installPackage`");default:return D.Debug.assertNever(e)}}function l(e,n,t,r){var a="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:e,startPosition:a[0],endPosition:a[1],program:i(),host:p,formatContext:D.formatting.getFormatContext(r),cancellationToken:y,preferences:t}}return o.forEach(function(e,n){return o.set(e.toString(),Number(n))}),{dispose:function(){_&&(D.forEach(_.getSourceFiles(),function(e){return m.releaseDocument(e.fileName,_.getCompilerOptions())}),_=void 0),p=void 0},cleanupSemanticCache:function(){_=void 0},getSyntacticDiagnostics:function(e){return C(),_.getSyntacticDiagnostics(x(e),y).slice()},getSemanticDiagnostics:function(e){C();var n=x(e),t=_.getSemanticDiagnostics(n,y);if(!D.getEmitDeclarations(_.getCompilerOptions()))return t.slice();var r=_.getDeclarationDiagnostics(n,y);return t.concat(r)},getSuggestionDiagnostics:function(e){return C(),D.computeSuggestionDiagnostics(x(e),_,y)},getCompilerOptionsDiagnostics:function(){return C(),_.getOptionsDiagnostics(y).concat(_.getGlobalDiagnostics(y))},getSyntacticClassifications:function(e,n){return D.getSyntacticClassifications(y,s.getCurrentSourceFile(e),n)},getSemanticClassifications:function(e,n){return r(e)?(C(),D.getSemanticClassifications(_.getTypeChecker(),y,x(e),_.getClassifiableNames(),n)):[]},getEncodedSyntacticClassifications:function(e,n){return D.getEncodedSyntacticClassifications(y,s.getCurrentSourceFile(e),n)},getEncodedSemanticClassifications:function(e,n){return r(e)?(C(),D.getEncodedSemanticClassifications(_.getTypeChecker(),y,x(e),_.getClassifiableNames(),n)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(e,n,t){void 0===t&&(t=D.emptyOptions);var r=__assign({},D.identity(t),{includeCompletionsForModuleExports:t.includeCompletionsForModuleExports||t.includeExternalModuleExports,includeCompletionsWithInsertText:t.includeCompletionsWithInsertText||t.includeInsertTextCompletions});return C(),D.Completions.getCompletionsAtPosition(p,_,b,x(e),n,r,t.triggerCharacter)},getCompletionEntryDetails:function(e,n,t,r,a,i){return void 0===i&&(i=D.emptyOptions),C(),D.Completions.getCompletionEntryDetails(_,b,x(e),n,{name:t,source:a},p,r&&D.formatting.getFormatContext(r),i,y)},getCompletionEntrySymbol:function(e,n,t,r){return C(),D.Completions.getCompletionEntrySymbol(_,b,x(e),n,{name:t,source:r})},getSignatureHelpItems:function(e,n,t){var r=(void 0===t?D.emptyOptions:t).triggerReason;C();var a=x(e);return D.SignatureHelp.getSignatureHelpItems(_,a,n,r,y)},getQuickInfoAtPosition:function(e,n){C();var t=x(e),r=D.getTouchingPropertyName(t,n);if(r!==t){var a=_.getTypeChecker(),i=function(e,n){var t=I(e);if(t){var r=n.getContextualType(t.parent),a=r&&M(t,n,r,!1);if(a&&1===a.length)return D.first(a)}return n.getSymbolAtLocation(e)}(r,a);if(!i||a.isUnknownSymbol(i)){var o=function(e,n,t){switch(n.kind){case 71:return!D.isLabelName(n);case 187:case 146:return!D.isInComment(e,t);case 99:case 176:case 97:return!0;default:return!1}}(t,r,n)?a.getTypeAtLocation(r):void 0;return o&&{kind:"",kindModifiers:"",textSpan:D.createTextSpanFromNode(r,t),displayParts:a.runWithCancellationToken(y,function(e){return D.typeToDisplayParts(e,o,D.getContainerNode(r))}),documentation:o.symbol?o.symbol.getDocumentationComment(a):void 0,tags:o.symbol?o.symbol.getJsDocTags():void 0}}var s=a.runWithCancellationToken(y,function(e){return D.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(e,i,t,D.getContainerNode(r),r)}),c=s.symbolKind,l=s.displayParts,u=s.documentation,d=s.tags;return{kind:c,kindModifiers:D.SymbolDisplay.getSymbolModifiers(i),textSpan:D.createTextSpanFromNode(r,t),displayParts:l,documentation:u,tags:d}}},getDefinitionAtPosition:function(e,n){return C(),D.GoToDefinition.getDefinitionAtPosition(_,x(e),n)},getDefinitionAndBoundSpan:function(e,n){return C(),D.GoToDefinition.getDefinitionAndBoundSpan(_,x(e),n)},getImplementationAtPosition:function(e,n){return C(),D.FindAllReferences.getImplementationsAtPosition(_,y,_.getSourceFiles(),x(e),n)},getTypeDefinitionAtPosition:function(e,n){return C(),D.GoToDefinition.getTypeDefinitionAtPosition(_.getTypeChecker(),x(e),n)},getReferencesAtPosition:function(e,n){return C(),c(D.getTouchingPropertyName(x(e),n),n)},findReferences:function(e,n){return C(),D.FindAllReferences.findReferencedSymbols(_,y,_.getSourceFiles(),x(e),n)},getOccurrencesAtPosition:function(e,n){return D.flatMap(t(e,n,[e]),function(n){return n.highlightSpans.map(function(e){return{fileName:n.fileName,textSpan:e.textSpan,isWriteAccess:"writtenReference"===e.kind,isDefinition:!1,isInString:e.isInString}})})},getDocumentHighlights:t,getNameOrDottedNameSpan:function(e,n,t){var r=s.getCurrentSourceFile(e),a=D.getTouchingPropertyName(r,n);if(a!==r){switch(a.kind){case 187:case 146:case 9:case 86:case 101:case 95:case 97:case 99:case 176:case 71:break;default:return}for(var i=a;;)if(D.isRightSideOfPropertyAccess(i)||D.isRightSideOfQualifiedName(i))i=i.parent;else{if(!D.isNameOfModuleDeclaration(i))break;if(242!==i.parent.parent.kind||i.parent.parent.body!==i.parent)break;i=i.parent.parent.name}return D.createTextSpanFromBounds(i.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(e,n){var t=s.getCurrentSourceFile(e);return D.BreakpointResolver.spanInSourceFileAtLocation(t,n)},getNavigateToItems:function(e,n,t,r){void 0===r&&(r=!1),C();var a=t?[x(t)]:_.getSourceFiles();return D.NavigateTo.getNavigateToItems(a,_.getTypeChecker(),y,e,n,r)},getRenameInfo:function(e,n){return C(),D.Rename.getRenameInfo(_,x(e),n)},findRenameLocations:function(e,n,t,r){C();var a=x(e),i=D.getTouchingPropertyName(a,n);if(D.isIdentifier(i)&&D.isJsxOpeningElement(i.parent)||D.isJsxClosingElement(i.parent)){var o=i.parent.parent;return[o.openingElement,o.closingElement].map(function(e){return{fileName:a.fileName,textSpan:D.createTextSpanFromNode(e.tagName,a)}})}var s=c(i,n,{findInStrings:t,findInComments:r,isForRename:!0});return s&&s.map(function(e){return{fileName:e.fileName,textSpan:e.textSpan}})},getNavigationBarItems:function(e){return D.NavigationBar.getNavigationBarItems(s.getCurrentSourceFile(e),y)},getNavigationTree:function(e){return D.NavigationBar.getNavigationTree(s.getCurrentSourceFile(e),y)},getOutliningSpans:function(e){var n=s.getCurrentSourceFile(e);return D.OutliningElementsCollector.collectElements(n,y)},getTodoComments:function(e,n){C();var t=x(e);y.throwIfCancellationRequested();var r,a,i,o,s=t.text,c=[];if(0<n.length&&(o=t.fileName,!D.stringContains(o,"/node_modules/")))for(var l=(a="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",i="(?:"+D.map(n,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")",new RegExp(a+"("+i+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")),u=void 0;u=l.exec(s);){y.throwIfCancellationRequested(),D.Debug.assert(u.length===n.length+3);var d=u[1],p=u.index+d.length;if(D.isInComment(t,p)){for(var m=void 0,f=0;f<n.length;f++)u[f+3]&&(m=n[f]);if(void 0===m)return D.Debug.fail();if(!(97<=(r=s.charCodeAt(p+m.text.length))&&r<=122||65<=r&&r<=90||48<=r&&r<=57)){var _=u[2];c.push({descriptor:m,message:_,position:p})}}}return c},getBraceMatchingAtPosition:function(e,n){var t=s.getCurrentSourceFile(e),r=D.getTouchingToken(t,n),a=r.getStart(t)===n?o.get(r.kind.toString()):void 0,i=a&&D.findChildOfKind(r.parent,a,t);return i?[D.createTextSpanFromNode(r,t),D.createTextSpanFromNode(i,t)].sort(function(e,n){return e.start-n.start}):D.emptyArray},getIndentationAtPosition:function(e,n,t){var r=D.timestamp(),a=A(t),i=s.getCurrentSourceFile(e);b("getIndentationAtPosition: getCurrentSourceFile: "+(D.timestamp()-r)),r=D.timestamp();var o=D.formatting.SmartIndenter.getIndentation(n,i,a);return b("getIndentationAtPosition: computeIndentation  : "+(D.timestamp()-r)),o},getFormattingEditsForRange:function(e,n,t,r){var a=s.getCurrentSourceFile(e);return D.formatting.formatSelection(n,t,a,D.formatting.getFormatContext(A(r)))},getFormattingEditsForDocument:function(e,n){return D.formatting.formatDocument(s.getCurrentSourceFile(e),D.formatting.getFormatContext(A(n)))},getFormattingEditsAfterKeystroke:function(e,n,t,r){var a=s.getCurrentSourceFile(e),i=D.formatting.getFormatContext(A(r));if(!D.isInComment(a,n))switch(t){case"{":return D.formatting.formatOnOpeningCurly(n,a,i);case"}":return D.formatting.formatOnClosingCurly(n,a,i);case";":return D.formatting.formatOnSemicolon(n,a,i);case"\n":return D.formatting.formatOnEnter(n,a,i)}return[]},getDocCommentTemplateAtPosition:function(e,n){return D.JsDoc.getDocCommentTemplateAtPosition(D.getNewLineOrDefaultFromHost(p),s.getCurrentSourceFile(e),n)},isValidBraceCompletionAtPosition:function(e,n,t){if(60===t)return!1;var r=s.getCurrentSourceFile(e);if(D.isInString(r,n))return!1;if(D.isInsideJsxElementOrAttribute(r,n))return 123===t;if(D.isInTemplateString(r,n))return!1;switch(t){case 39:case 34:case 96:return!D.isInComment(r,n)}return!0},getJsxClosingTagAtPosition:function(e,n){var t=s.getCurrentSourceFile(e),r=D.findPrecedingToken(n,t);if(r){var a=29===r.kind&&D.isJsxOpeningElement(r.parent)?r.parent.parent:D.isJsxText(r)?r.parent:void 0;return a&&function e(n){var t=n.openingElement,r=n.closingElement,a=n.parent;return!D.tagNamesAreEquivalent(t.tagName,r.tagName)||D.isJsxElement(a)&&D.tagNamesAreEquivalent(t.tagName,a.openingElement.tagName)&&e(a)}(a)?{newText:"</"+a.openingElement.tagName.getText(t)+">"}:void 0}},getSpanOfEnclosingComment:function(e,n,t){var r=s.getCurrentSourceFile(e),a=D.formatting.getRangeOfEnclosingComment(r,n);return!a||t&&3!==a.kind?void 0:D.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(e,n,t,r,a,i){void 0===i&&(i=D.emptyOptions),C();var o=x(e),s=D.createTextSpanFromBounds(n,t),c=D.formatting.getFormatContext(a);return D.flatMap(D.deduplicate(r,D.equateValues,D.compareValues),function(e){return y.throwIfCancellationRequested(),D.codefix.getFixes({errorCode:e,sourceFile:o,span:s,program:_,host:p,cancellationToken:y,formatContext:c,preferences:i})})},getCombinedCodeFix:function(e,n,t,r){void 0===r&&(r=D.emptyOptions),C(),D.Debug.assert("file"===e.type);var a=x(e.fileName),i=D.formatting.getFormatContext(t);return D.codefix.getAllFixes({fixId:n,sourceFile:a,program:_,host:p,cancellationToken:y,formatContext:i,preferences:r})},applyCodeActionCommand:function(e,n){var t="string"==typeof e?n:e,r="string"!=typeof e?n:void 0;return D.isArray(t)?Promise.all(t.map(function(e){return a(e,r)})):a(t,r)},organizeImports:function(e,n,t){void 0===t&&(t=D.emptyOptions),C(),D.Debug.assert("file"===e.type);var r=x(e.fileName),a=D.formatting.getFormatContext(n);return D.OrganizeImports.organizeImports(r,a,p,_,t)},getEditsForFileRename:function(e,n,t,r){return void 0===r&&(r=D.emptyOptions),D.getEditsForFileRename(i(),e,n,p,D.formatting.getFormatContext(t),r,S)},getEmitOutput:function(e,n){void 0===n&&(n=!1),C();var t=x(e),r=p.getCustomTransformers&&p.getCustomTransformers();return D.getFileEmitOutput(_,t,n,y,r)},getNonBoundSourceFile:function(e){return s.getCurrentSourceFile(e)},getProgram:i,getApplicableRefactors:function(e,n,t){void 0===t&&(t=D.emptyOptions),C();var r=x(e);return D.refactor.getApplicableRefactors(l(r,n,t))},getEditsForRefactor:function(e,n,t,r,a,i){void 0===i&&(i=D.emptyOptions),C();var o=x(e);return D.refactor.getEditsForRefactor(l(o,t,i,n),r,a)},toLineColumnOffset:S.toLineColumnOffset,getSourceMapper:function(){return S}}},D.getNameTable=function(e){var n,c;return e.nameTable||(c=(n=e).nameTable=D.createUnderscoreEscapedMap(),n.forEachChild(function e(n){if(D.isIdentifier(n)&&n.escapedText||D.isStringOrNumericLiteralLike(n)&&(r=n,D.isDeclarationName(r)||257===r.parent.kind||(a=r)&&a.parent&&188===a.parent.kind&&a.parent.argumentExpression===a||D.isLiteralComputedPropertyDeclarationName(r))){var t=D.getEscapedTextOfIdentifierOrLiteral(n);c.set(t,void 0===c.get(t)?n.pos:-1)}var r,a;if(D.forEachChild(n,e),D.hasJSDocNodes(n))for(var i=0,o=n.jsDoc;i<o.length;i++){var s=o[i];D.forEachChild(s,e)}})),e.nameTable},D.getContainingObjectLiteralElement=I,D.getPropertySymbolsFromContextualType=M,D.getDefaultLibFilePath=function(e){if("undefined"!=typeof __dirname)return __dirname+D.directorySeparator+D.getDefaultLibFileName(e);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")},D.objectAllocator={getNodeConstructor:function(){return i},getTokenConstructor:function(){return o},getIdentifierConstructor:function(){return l},getSourceFileConstructor:function(){return p},getSymbolConstructor:function(){return n},getTypeConstructor:function(){return t},getSignatureConstructor:function(){return r},getSourceMapSourceConstructor:function(){return m}}}(ts||(ts={})),function(I){(I.BreakpointResolver||(I.BreakpointResolver={})).spanInSourceFileAtLocation=function(x,e){if(!x.isDeclarationFile){var n=I.getTokenAtPosition(x,e),t=x.getLineAndCharacterOfPosition(e).line;if(x.getLineAndCharacterOfPosition(n.getStart(x)).line>t){var r=I.findPrecedingToken(n.pos,x);if(!r||x.getLineAndCharacterOfPosition(r.getEnd()).line!==t)return;n=r}if(!(4194304&n.flags))return N(n)}function C(e,n){var t=e.decorators?I.skipTrivia(x.text,e.decorators.end):e.getStart(x);return I.createTextSpanFromBounds(t,(n||e).getEnd())}function D(e,n){return C(e,I.findNextToken(n,n.parent,x))}function A(e,n){return e&&t===x.getLineAndCharacterOfPosition(e.getStart(x)).line?N(e):N(n)}function L(e){return N(I.findPrecedingToken(e.pos,x))}function k(e){return N(I.findNextToken(e,e.parent,x))}function N(e){if(e){var n=e.parent;switch(e.kind){case 217:return y(e.declarationList.declarations[0]);case 235:case 152:case 151:return y(e);case 149:return function e(n){if(I.isBindingPattern(n.name))return T(n.name);if((t=n).initializer||void 0!==t.dotDotDotToken||I.hasModifier(t,12))return C(n);var t,r=n.parent,a=r.parameters.indexOf(n);return I.Debug.assert(-1!==a),0!==a?e(r.parameters[a-1]):N(r.body)}(e);case 237:case 154:case 153:case 156:case 157:case 155:case 194:case 195:return function(e){if(e.body)return h(e)?C(e):N(e.body)}(e);case 216:if(I.isFunctionBlock(e))return d=(u=e).statements.length?u.statements[0]:u.getLastToken(),h(u.parent)?A(u.parent,d):N(d);case 243:return b(e);case 272:return b(e.block);case 219:return C(e.expression);case 228:return C(e.getChildAt(0),e.expression);case 222:return D(e,e.expression);case 221:return N(e.statement);case 234:return C(e.getChildAt(0));case 220:return D(e,e.expression);case 231:return N(e.statement);case 227:case 226:return C(e.getChildAt(0),e.label);case 223:return(l=e).initializer?E(l):l.condition?C(l.condition):l.incrementor?C(l.incrementor):void 0;case 224:return D(e,e.expression);case 225:return E(e);case 230:return D(e,e.expression);case 269:case 270:return N(e.statements[0]);case 233:return b(e.tryBlock);case 232:case 252:return C(e,e.expression);case 246:return C(e,e.moduleReference);case 247:case 253:return C(e,e.moduleSpecifier);case 242:if(1!==I.getModuleInstanceState(e))return;case 238:case 241:case 276:case 184:return C(e);case 229:return N(e.statement);case 150:return g=n.decorators,I.createTextSpanFromBounds(I.skipTrivia(x.text,g.pos),g.end);case 182:case 183:return T(e);case 239:case 240:return;case 25:case 1:return A(I.findPrecedingToken(e.pos,x));case 26:return L(e);case 17:return function(e){switch(e.parent.kind){case 241:var n=e.parent;return A(I.findPrecedingToken(e.pos,x,e.parent),n.members.length?n.members[0]:n.getLastToken(x));case 238:var t=e.parent;return A(I.findPrecedingToken(e.pos,x,e.parent),t.members.length?t.members[0]:t.getLastToken(x));case 244:return A(e.parent.parent,e.parent.clauses[0])}return N(e.parent)}(e);case 18:return function(e){switch(e.parent.kind){case 243:if(1!==I.getModuleInstanceState(e.parent.parent))return;case 241:case 238:return C(e);case 216:if(I.isFunctionBlock(e.parent))return C(e);case 272:return N(I.lastOrUndefined(e.parent.statements));case 244:var n=e.parent,t=I.lastOrUndefined(n.clauses);return t?N(I.lastOrUndefined(t.statements)):void 0;case 182:var r=e.parent;return N(I.lastOrUndefined(r.elements)||r);default:if(I.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)){var a=e.parent;return C(I.lastOrUndefined(a.properties)||a)}return N(e.parent)}}(e);case 22:return function(e){switch(e.parent.kind){case 183:var n=e.parent;return C(I.lastOrUndefined(n.elements)||n);default:if(I.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent)){var t=e.parent;return C(I.lastOrUndefined(t.elements)||t)}return N(e.parent)}}(e);case 19:return 221!==(_=e).parent.kind&&189!==_.parent.kind&&190!==_.parent.kind?193!==_.parent.kind?N(_.parent):k(_):L(_);case 20:return function(e){switch(e.parent.kind){case 194:case 237:case 195:case 154:case 153:case 156:case 157:case 155:case 222:case 221:case 223:case 225:case 189:case 190:case 193:return L(e);default:return N(e.parent)}}(e);case 56:return c=e,I.isFunctionLike(c.parent)||273===c.parent.kind||149===c.parent.kind?L(c):N(c.parent);case 29:case 27:return 192!==(f=e).parent.kind?N(f.parent):k(f);case 106:return 221!==(m=e).parent.kind?N(m.parent):D(m,m.parent.expression);case 82:case 74:case 87:return k(e);case 145:return 225!==(p=e).parent.kind?N(p.parent):k(p);default:if(I.isArrayLiteralOrObjectLiteralDestructuringPattern(e))return S(e);if((71===e.kind||206===e.kind||273===e.kind||274===e.kind)&&I.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return C(e);if(202===e.kind){var t=e,r=t.left,a=t.operatorToken;if(I.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return S(r);if(58===a.kind&&I.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent))return C(e);if(26===a.kind)return N(r)}if(I.isExpressionNode(e))switch(n.kind){case 221:return L(e);case 150:return N(e.parent);case 223:case 225:return C(e);case 202:if(26===e.parent.operatorToken.kind)return C(e);break;case 195:if(e.parent.body===e)return C(e)}switch(e.parent.kind){case 273:if(e.parent.name===e&&!I.isArrayLiteralOrObjectLiteralDestructuringPattern(e.parent.parent))return N(e.parent.initializer);break;case 192:if(e.parent.type===e)return k(e.parent.type);break;case 235:case 149:var i=e.parent,o=i.initializer,s=i.type;if(o===e||s===e||I.isAssignmentOperator(e.kind))return L(e);break;case 202:if(r=e.parent.left,I.isArrayLiteralOrObjectLiteralDestructuringPattern(r)&&e!==r)return L(e);break;default:if(I.isFunctionLike(e.parent)&&e.parent.type===e)return L(e)}return N(e.parent)}}var c,l,u,d,p,m,f,_,g;function v(e){return I.isVariableDeclarationList(e.parent)&&e.parent.declarations[0]===e?C(I.findPrecedingToken(e.pos,x,e.parent),e):C(e)}function y(e){if(224===e.parent.parent.kind)return N(e.parent.parent);var n=e.parent;return I.isBindingPattern(e.name)?T(e.name):e.initializer||I.hasModifier(e,1)||225===n.parent.kind?v(e):I.isVariableDeclarationList(e.parent)&&e.parent.declarations[0]!==e?N(I.findPrecedingToken(e.pos,x,e.parent)):void 0}function h(e){return I.hasModifier(e,1)||238===e.parent.kind&&155!==e.kind}function b(e){switch(e.parent.kind){case 242:if(1!==I.getModuleInstanceState(e.parent))return;case 222:case 220:case 224:return A(e.parent,e.statements[0]);case 223:case 225:return A(I.findPrecedingToken(e.pos,x,e.parent),e.statements[0])}return N(e.statements[0])}function E(e){if(236!==e.initializer.kind)return N(e.initializer);var n=e.initializer;return 0<n.declarations.length?N(n.declarations[0]):void 0}function T(e){var n=I.forEach(e.elements,function(e){return 208!==e.kind?e:void 0});return n?N(n):184===e.parent.kind?C(e.parent):v(e.parent)}function S(e){I.Debug.assert(183!==e.kind&&182!==e.kind);var n=185===e.kind?e.elements:e.properties,t=I.forEach(n,function(e){return 208!==e.kind?e:void 0});return t?N(t):C(202===e.parent.kind?e.parent:e)}}}}(ts||(ts={})),function(o){o.transform=function(e,n,t){var r=[];t=o.fixupCompilerOptions(t,r);var a=o.isArray(e)?e:[e],i=o.transformNodes(void 0,void 0,t,a,n,!0);return i.diagnostics=o.concatenate(i.diagnostics,r),i}}(ts||(ts={}));var ts,TypeScript,debugObjectHost=function(){return this}();!function(c){function o(e,n){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+n.message)}var t=function(){function e(e){this.scriptSnapshotShim=e}return e.prototype.getText=function(e,n){return this.scriptSnapshotShim.getText(e,n)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var n=e,t=this.scriptSnapshotShim.getChangeRange(n.scriptSnapshotShim);if(null===t)return null;var r=JSON.parse(t);return c.createTextChangeRange(c.createTextSpan(r.span.start,r.span.length),r.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},e}(),r=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 t=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return c.map(e,function(e){var n=c.getProperty(t,e);return n?{resolvedFileName:n,extension:c.extensionFromPath(n),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 t=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return c.map(e,function(e){return c.getProperty(t,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 n=JSON.parse(e);return n.allowNonTsExtensions=!0,n},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var n=this.shimHost.getScriptSnapshot(e);return n&&new t(n)},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 c.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,n,t,r,a){var i=c.getFileMatcherPatterns(e,t,r,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(i.basePaths),i.excludePattern,i.includeFilePattern,i.includeDirectoryPattern,a))},e.prototype.readFile=function(e,n){return this.shimHost.readFile(e,n)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();c.LanguageServiceShimHostAdapter=r;var a=function(){function e(e){var n=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"realpath"in this.shimHost&&(this.realpath=function(e){return n.shimHost.realpath(e)})}return e.prototype.readDirectory=function(e,n,t,r,a){var i=c.getFileMatcherPatterns(e,t,r,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(i.basePaths),i.excludePattern,i.includeFilePattern,i.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 i(e,n,t,r){return s(e,n,!0,t,r)}function s(n,t,e,r,a){try{var i=function(e,n,t,r){var a;r&&(e.log(n),a=c.timestamp());var i=t();if(r){var o=c.timestamp();if(e.log(n+" completed in "+(o-a)+" msec"),c.isString(i)){var s=i;128<s.length&&(s=s.substring(0,128)+"..."),e.log("  result.length="+s.length+", result='"+JSON.stringify(s)+"'")}}return i}(n,t,r,a);return e?JSON.stringify({result:i}):i}catch(e){return e instanceof c.OperationCanceledException?JSON.stringify({canceled:!0}):(o(n,e),e.description=t,JSON.stringify({error:e}))}}c.CoreServicesShimHostAdapter=a;var e=function(){function e(e){(this.factory=e).registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function l(e,r){return e.map(function(e){return n=e,t=r,{message:c.flattenDiagnosticMessageText(n.messageText,t),start:n.start,length:n.length,category:c.diagnosticCategoryName(n),code:n.code,reportsUnnecessary:n.reportsUnnecessary};var n,t})}c.realizeDiagnostics=l;var u=function(a){function e(e,n,t){var r=a.call(this,e)||this;return r.host=n,r.languageService=t,r.logPerformance=!1,r.logger=r.host,r}return __extends(e,a),e.prototype.forwardJSONCall=function(e,n){return i(this.logger,e,n,this.logPerformance)},e.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,debugObjectHost&&debugObjectHost.CollectGarbage&&(debugObjectHost.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,a.prototype.dispose.call(this,e)},e.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},e.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},e.prototype.realizeDiagnostics=function(e){return l(e,c.getNewLineOrDefaultFromHost(this.host))},e.prototype.getSyntacticClassifications=function(e,n,t){var r=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+n+", "+t+")",function(){return r.languageService.getSyntacticClassifications(e,c.createTextSpan(n,t))})},e.prototype.getSemanticClassifications=function(e,n,t){var r=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+n+", "+t+")",function(){return r.languageService.getSemanticClassifications(e,c.createTextSpan(n,t))})},e.prototype.getEncodedSyntacticClassifications=function(e,n,t){var r=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+n+", "+t+")",function(){return d(r.languageService.getEncodedSyntacticClassifications(e,c.createTextSpan(n,t)))})},e.prototype.getEncodedSemanticClassifications=function(e,n,t){var r=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+n+", "+t+")",function(){return d(r.languageService.getEncodedSemanticClassifications(e,c.createTextSpan(n,t)))})},e.prototype.getSyntacticDiagnostics=function(n){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+n+"')",function(){var e=t.languageService.getSyntacticDiagnostics(n);return t.realizeDiagnostics(e)})},e.prototype.getSemanticDiagnostics=function(n){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+n+"')",function(){var e=t.languageService.getSemanticDiagnostics(n);return t.realizeDiagnostics(e)})},e.prototype.getSuggestionDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return n.realizeDiagnostics(n.languageService.getSuggestionDiagnostics(e))})},e.prototype.getCompilerOptionsDiagnostics=function(){var n=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var e=n.languageService.getCompilerOptionsDiagnostics();return n.realizeDiagnostics(e)})},e.prototype.getQuickInfoAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+n+")",function(){return t.languageService.getQuickInfoAtPosition(e,n)})},e.prototype.getNameOrDottedNameSpan=function(e,n,t){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+n+", "+t+")",function(){return r.languageService.getNameOrDottedNameSpan(e,n,t)})},e.prototype.getBreakpointStatementAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+n+")",function(){return t.languageService.getBreakpointStatementAtPosition(e,n)})},e.prototype.getSignatureHelpItems=function(e,n,t){var r=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+n+")",function(){return r.languageService.getSignatureHelpItems(e,n,t)})},e.prototype.getDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+n+")",function(){return t.languageService.getDefinitionAtPosition(e,n)})},e.prototype.getDefinitionAndBoundSpan=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+n+")",function(){return t.languageService.getDefinitionAndBoundSpan(e,n)})},e.prototype.getTypeDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+n+")",function(){return t.languageService.getTypeDefinitionAtPosition(e,n)})},e.prototype.getImplementationAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+n+")",function(){return t.languageService.getImplementationAtPosition(e,n)})},e.prototype.getRenameInfo=function(e,n){var t=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+n+")",function(){return t.languageService.getRenameInfo(e,n)})},e.prototype.findRenameLocations=function(e,n,t,r){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+n+", "+t+", "+r+")",function(){return a.languageService.findRenameLocations(e,n,t,r)})},e.prototype.getBraceMatchingAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+n+")",function(){return t.languageService.getBraceMatchingAtPosition(e,n)})},e.prototype.isValidBraceCompletionAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+n+", "+t+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,n,t)})},e.prototype.getSpanOfEnclosingComment=function(e,n,t){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+n+")",function(){return r.languageService.getSpanOfEnclosingComment(e,n,t)})},e.prototype.getIndentationAtPosition=function(n,t,r){var a=this;return this.forwardJSONCall("getIndentationAtPosition('"+n+"', "+t+")",function(){var e=JSON.parse(r);return a.languageService.getIndentationAtPosition(n,t,e)})},e.prototype.getReferencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+n+")",function(){return t.languageService.getReferencesAtPosition(e,n)})},e.prototype.findReferences=function(e,n){var t=this;return this.forwardJSONCall("findReferences('"+e+"', "+n+")",function(){return t.languageService.findReferences(e,n)})},e.prototype.getOccurrencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+n+")",function(){return t.languageService.getOccurrencesAtPosition(e,n)})},e.prototype.getDocumentHighlights=function(t,r,a){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+t+"', "+r+")",function(){var e=i.languageService.getDocumentHighlights(t,r,JSON.parse(a)),n=c.normalizeSlashes(t).toLowerCase();return c.filter(e,function(e){return c.normalizeSlashes(e.fileName).toLowerCase()===n})})},e.prototype.getCompletionsAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+n+", "+t+")",function(){return r.languageService.getCompletionsAtPosition(e,n,t)})},e.prototype.getCompletionEntryDetails=function(n,t,r,a,i,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('"+n+"', "+t+", '"+r+"')",function(){var e=void 0===a?void 0:JSON.parse(a);return s.languageService.getCompletionEntryDetails(n,t,r,e,i,o)})},e.prototype.getFormattingEditsForRange=function(n,t,r,a){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+n+"', "+t+", "+r+")",function(){var e=JSON.parse(a);return i.languageService.getFormattingEditsForRange(n,t,r,e)})},e.prototype.getFormattingEditsForDocument=function(n,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+n+"')",function(){var e=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(n,e)})},e.prototype.getFormattingEditsAfterKeystroke=function(n,t,r,a){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+n+"', "+t+", '"+r+"')",function(){var e=JSON.parse(a);return i.languageService.getFormattingEditsAfterKeystroke(n,t,r,e)})},e.prototype.getDocCommentTemplateAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+n+")",function(){return t.languageService.getDocCommentTemplateAtPosition(e,n)})},e.prototype.getNavigateToItems=function(e,n,t){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+n+", "+t+")",function(){return r.languageService.getNavigateToItems(e,n,t)})},e.prototype.getNavigationBarItems=function(e){var n=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return n.languageService.getNavigationBarItems(e)})},e.prototype.getNavigationTree=function(e){var n=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return n.languageService.getNavigationTree(e)})},e.prototype.getOutliningSpans=function(e){var n=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return n.languageService.getOutliningSpans(e)})},e.prototype.getTodoComments=function(e,n){var t=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return t.languageService.getTodoComments(e,JSON.parse(n))})},e.prototype.getEmitOutput=function(e){var n=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return n.languageService.getEmitOutput(e)})},e.prototype.getEmitOutputObject=function(e){var n=this;return s(this.logger,"getEmitOutput('"+e+"')",!1,function(){return n.languageService.getEmitOutput(e)},this.logPerformance)},e}(e);function d(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var p=function(r){function e(e,n){var t=r.call(this,e)||this;return t.logger=n,t.logPerformance=!1,t.classifier=c.createClassifier(),t}return __extends(e,r),e.prototype.getEncodedLexicalClassifications=function(e,n,t){var r=this;return void 0===t&&(t=!1),i(this.logger,"getEncodedLexicalClassifications",function(){return d(r.classifier.getEncodedLexicalClassifications(e,n,t))},this.logPerformance)},e.prototype.getClassificationsForLine=function(e,n,t){void 0===t&&(t=!1);for(var r=this.classifier.getClassificationsForLine(e,n,t),a="",i=0,o=r.entries;i<o.length;i++){var s=o[i];a+=s.length+"\n",a+=s.classification+"\n"}return a+=r.finalLexState},e}(e),m=function(a){function e(e,n,t){var r=a.call(this,e)||this;return r.logger=n,r.host=t,r.logPerformance=!1,r}return __extends(e,a),e.prototype.forwardJSONCall=function(e,n){return i(this.logger,e,n,this.logPerformance)},e.prototype.resolveModuleName=function(r,a,i){var o=this;return this.forwardJSONCall("resolveModuleName('"+r+"')",function(){var e=JSON.parse(i),n=c.resolveModuleName(a,c.normalizeSlashes(r),e,o.host),t=n.resolvedModule?n.resolvedModule.resolvedFileName:void 0;return n.resolvedModule&&".ts"!==n.resolvedModule.extension&&".tsx"!==n.resolvedModule.extension&&".d.ts"!==n.resolvedModule.extension&&(t=void 0),{resolvedFileName:t,failedLookupLocations:n.failedLookupLocations}})},e.prototype.resolveTypeReferenceDirective=function(t,r,a){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+t+")",function(){var e=JSON.parse(a),n=c.resolveTypeReferenceDirective(r,c.normalizeSlashes(t),e,i.host);return{resolvedFileName:n.resolvedTypeReferenceDirective?n.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!n.resolvedTypeReferenceDirective||n.resolvedTypeReferenceDirective.primary,failedLookupLocations:n.failedLookupLocations}})},e.prototype.getPreProcessedFileInfo=function(e,n){var t=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+e+"')",function(){var e=c.preProcessFile(c.getSnapshotText(n),!0,!0);return{referencedFiles:t.convertFileReferences(e.referencedFiles),importedFiles:t.convertFileReferences(e.importedFiles),ambientExternalModules:e.ambientExternalModules,isLibFile:e.isLibFile,typeReferenceDirectives:t.convertFileReferences(e.typeReferenceDirectives),libReferenceDirectives:t.convertFileReferences(e.libReferenceDirectives)}})},e.prototype.getAutomaticTypeDirectiveNames=function(n){var t=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+n+"')",function(){var e=JSON.parse(n);return c.getAutomaticTypeDirectiveNames(e,t.host)})},e.prototype.convertFileReferences=function(e){if(e){for(var n=[],t=0,r=e;t<r.length;t++){var a=r[t];n.push({path:c.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return n}},e.prototype.getTSConfigFileInfo=function(r,a){var i=this;return this.forwardJSONCall("getTSConfigFileInfo('"+r+"')",function(){var e=c.parseJsonText(r,c.getSnapshotText(a)),n=c.normalizeSlashes(r),t=c.parseJsonSourceFileConfigFileContent(e,i.host,c.getDirectoryPath(n),{},n);return{options:t.options,typeAcquisition:t.typeAcquisition,files:t.fileNames,raw:t.raw,errors:l(e.parseDiagnostics.concat(t.errors),"\r\n")}})},e.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return c.getDefaultCompilerOptions()})},e.prototype.discoverTypings=function(n){var t=this,r=c.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var e=JSON.parse(n);return void 0===t.safeList&&(t.safeList=c.JsTyping.loadSafeList(t.host,c.toPath(e.safeListPath,e.safeListPath,r))),c.JsTyping.discoverTypings(t.host,function(e){return t.logger.log(e)},e.fileNames,c.toPath(e.projectRootPath,e.projectRootPath,r),t.safeList,e.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,e.typesRegistry)})},e}(e),n=function(){function e(){this._shims=[]}return e.prototype.getServicesVersion=function(){return c.servicesVersion},e.prototype.createLanguageServiceShim=function(n){try{void 0===this.documentRegistry&&(this.documentRegistry=c.createDocumentRegistry(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),n.getCurrentDirectory()));var e=new r(n),t=c.createLanguageService(e,this.documentRegistry,!1);return new u(this,n,t)}catch(e){throw o(n,e),e}},e.prototype.createClassifierShim=function(n){try{return new p(this,n)}catch(e){throw o(n,e),e}},e.prototype.createCoreServicesShim=function(n){try{var e=new a(n);return new m(this,n,e)}catch(e){throw o(n,e),e}},e.prototype.close=function(){c.clear(this._shims),this.documentRegistry=void 0},e.prototype.registerShim=function(e){this._shims.push(e)},e.prototype.unregisterShim=function(e){for(var n=0;n<this._shims.length;n++)if(this._shims[n]===e)return void delete this._shims[n];throw new Error("Invalid operation")},e}();c.TypeScriptServicesFactory=n,"undefined"!=typeof module&&module.exports&&(module.exports=c)}(ts||(ts={})),function(e){(e.Services||(e.Services={})).TypeScriptServicesFactory=ts.TypeScriptServicesFactory}(TypeScript||(TypeScript={}));var toolsVersion=ts.versionMajorMinor;define("vs/language/typescript/lib/typescriptServices",[],function(){return ts}),define("vs/language/typescript/lib/lib",["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.lib_es2015_symbol_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface SymbolConstructor {\n    /**\n     * A reference to the prototype.\n     */\n    readonly prototype: Symbol;\n\n    /**\n     * Returns a new unique Symbol value.\n     * @param  description Description of the new Symbol object.\n     */\n    (description?: string | number): symbol;\n\n    /**\n     * Returns a Symbol object from the global symbol registry matching the given key if found.\n     * Otherwise, returns a new symbol with this key.\n     * @param key key to search for.\n     */\n    for(key: string): symbol;\n\n    /**\n     * Returns a key from the global symbol registry matching the given Symbol if found.\n     * Otherwise, returns a undefined.\n     * @param sym Symbol to find the key for.\n     */\n    keyFor(sym: symbol): string | undefined;\n}\n\ndeclare var Symbol: SymbolConstructor;',n.lib_es2015_symbol_wellknown_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n'+n.lib_es2015_symbol_dts+'\ninterface SymbolConstructor {\n    /**\n     * A method that determines if a constructor object recognizes an object as one of the\n     * constructor’s instances. Called by the semantics of the instanceof operator.\n     */\n    readonly hasInstance: symbol;\n\n    /**\n     * A Boolean value that if true indicates that an object should flatten to its array elements\n     * by Array.prototype.concat.\n     */\n    readonly isConcatSpreadable: symbol;\n\n    /**\n     * A regular expression method that matches the regular expression against a string. Called\n     * by the String.prototype.match method.\n     */\n    readonly match: symbol;\n\n    /**\n     * A regular expression method that replaces matched substrings of a string. Called by the\n     * String.prototype.replace method.\n     */\n    readonly replace: symbol;\n\n    /**\n     * A regular expression method that returns the index within a string that matches the\n     * regular expression. Called by the String.prototype.search method.\n     */\n    readonly search: symbol;\n\n    /**\n     * A function valued property that is the constructor function that is used to create\n     * derived objects.\n     */\n    readonly species: symbol;\n\n    /**\n     * A regular expression method that splits a string at the indices that match the regular\n     * expression. Called by the String.prototype.split method.\n     */\n    readonly split: symbol;\n\n    /**\n     * A method that converts an object to a corresponding primitive value.\n     * Called by the ToPrimitive abstract operation.\n     */\n    readonly toPrimitive: symbol;\n\n    /**\n     * A String value that is used in the creation of the default string description of an object.\n     * Called by the built-in method Object.prototype.toString.\n     */\n    readonly toStringTag: symbol;\n\n    /**\n     * An Object whose own property names are property names that are excluded from the \'with\'\n     * environment bindings of the associated objects.\n     */\n    readonly unscopables: symbol;\n}\n\ninterface Symbol {\n    readonly [Symbol.toStringTag]: "Symbol";\n}\n\ninterface Array<T> {\n    /**\n     * Returns an object whose properties have the value \'true\'\n     * when they will be absent when used in a \'with\' statement.\n     */\n    [Symbol.unscopables](): {\n        copyWithin: boolean;\n        entries: boolean;\n        fill: boolean;\n        find: boolean;\n        findIndex: boolean;\n        keys: boolean;\n        values: boolean;\n    };\n}\n\ninterface Date {\n    /**\n     * Converts a Date object to a string.\n     */\n    [Symbol.toPrimitive](hint: "default"): string;\n    /**\n     * Converts a Date object to a string.\n     */\n    [Symbol.toPrimitive](hint: "string"): string;\n    /**\n     * Converts a Date object to a number.\n     */\n    [Symbol.toPrimitive](hint: "number"): number;\n    /**\n     * Converts a Date object to a string or number.\n     *\n     * @param hint The strings "number", "string", or "default" to specify what primitive to return.\n     *\n     * @throws {TypeError} If \'hint\' was given something other than "number", "string", or "default".\n     * @returns A number if \'hint\' was "number", a string if \'hint\' was "string" or "default".\n     */\n    [Symbol.toPrimitive](hint: string): string | number;\n}\n\ninterface Map<K, V> {\n    readonly [Symbol.toStringTag]: "Map";\n}\n\ninterface WeakMap<K extends object, V> {\n    readonly [Symbol.toStringTag]: "WeakMap";\n}\n\ninterface Set<T> {\n    readonly [Symbol.toStringTag]: "Set";\n}\n\ninterface WeakSet<T extends object> {\n    readonly [Symbol.toStringTag]: "WeakSet";\n}\n\ninterface JSON {\n    readonly [Symbol.toStringTag]: "JSON";\n}\n\ninterface Function {\n    /**\n     * Determines whether the given value inherits from this function if this function was used\n     * as a constructor function.\n     *\n     * A constructor function can control which objects are recognized as its instances by\n     * \'instanceof\' by overriding this method.\n     */\n    [Symbol.hasInstance](value: any): boolean;\n}\n\ninterface GeneratorFunction {\n    readonly [Symbol.toStringTag]: "GeneratorFunction";\n}\n\ninterface Math {\n    readonly [Symbol.toStringTag]: "Math";\n}\n\ninterface Promise<T> {\n    readonly [Symbol.toStringTag]: "Promise";\n}\n\ninterface PromiseConstructor {\n    readonly [Symbol.species]: PromiseConstructor;\n}\n\ninterface RegExp {\n    /**\n     * Matches a string with this regular expression, and returns an array containing the results of\n     * that search.\n     * @param string A string to search within.\n     */\n    [Symbol.match](string: string): RegExpMatchArray | null;\n\n    /**\n     * Replaces text in a string, using this regular expression.\n     * @param string A String object or string literal whose contents matching against\n     *               this regular expression will be replaced\n     * @param replaceValue A String object or string literal containing the text to replace for every\n     *                     successful match of this regular expression.\n     */\n    [Symbol.replace](string: string, replaceValue: string): string;\n\n    /**\n     * Replaces text in a string, using this regular expression.\n     * @param string A String object or string literal whose contents matching against\n     *               this regular expression will be replaced\n     * @param replacer A function that returns the replacement text.\n     */\n    [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;\n\n    /**\n     * Finds the position beginning first substring match in a regular expression search\n     * using this regular expression.\n     *\n     * @param string The string to search within.\n     */\n    [Symbol.search](string: string): number;\n\n    /**\n     * Returns an array of substrings that were delimited by strings in the original input that\n     * match against this regular expression.\n     *\n     * If the regular expression contains capturing parentheses, then each time this\n     * regular expression matches, the results (including any undefined results) of the\n     * capturing parentheses are spliced.\n     *\n     * @param string string value to split\n     * @param limit if not undefined, the output array is truncated so that it contains no more\n     * than \'limit\' elements.\n     */\n    [Symbol.split](string: string, limit?: number): string[];\n}\n\ninterface RegExpConstructor {\n    readonly [Symbol.species]: RegExpConstructor;\n}\n\ninterface String {\n    /**\n     * Matches a string an object that supports being matched against, and returns an array containing the results of that search.\n     * @param matcher An object that supports being matched against.\n     */\n    match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;\n\n    /**\n     * Replaces text in a string, using an object that supports replacement within a string.\n     * @param searchValue A object can search for and replace matches within a string.\n     * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.\n     */\n    replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;\n\n    /**\n     * Replaces text in a string, using an object that supports replacement within a string.\n     * @param searchValue A object can search for and replace matches within a string.\n     * @param replacer A function that returns the replacement text.\n     */\n    replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;\n\n    /**\n     * Finds the first substring match in a regular expression search.\n     * @param searcher An object which supports searching within a string.\n     */\n    search(searcher: { [Symbol.search](string: string): number; }): number;\n\n    /**\n     * Split a string into substrings using the specified separator and return them as an array.\n     * @param splitter An object that can split a string.\n     * @param limit A value used to limit the number of elements returned in the array.\n     */\n    split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];\n}\n\ninterface ArrayBuffer {\n    readonly [Symbol.toStringTag]: "ArrayBuffer";\n}\n\ninterface DataView {\n    readonly [Symbol.toStringTag]: "DataView";\n}\n\ninterface Int8Array {\n    readonly [Symbol.toStringTag]: "Int8Array";\n}\n\ninterface Uint8Array {\n    readonly [Symbol.toStringTag]: "UInt8Array";\n}\n\ninterface Uint8ClampedArray {\n    readonly [Symbol.toStringTag]: "Uint8ClampedArray";\n}\n\ninterface Int16Array {\n    readonly [Symbol.toStringTag]: "Int16Array";\n}\n\ninterface Uint16Array {\n    readonly [Symbol.toStringTag]: "Uint16Array";\n}\n\ninterface Int32Array {\n    readonly [Symbol.toStringTag]: "Int32Array";\n}\n\ninterface Uint32Array {\n    readonly [Symbol.toStringTag]: "Uint32Array";\n}\n\ninterface Float32Array {\n    readonly [Symbol.toStringTag]: "Float32Array";\n}\n\ninterface Float64Array {\n    readonly [Symbol.toStringTag]: "Float64Array";\n}\n\ninterface ArrayConstructor {\n    readonly [Symbol.species]: ArrayConstructor;\n}\ninterface MapConstructor {\n    readonly [Symbol.species]: MapConstructor;\n}\ninterface SetConstructor {\n    readonly [Symbol.species]: SetConstructor;\n}\ninterface ArrayBufferConstructor {\n    readonly [Symbol.species]: ArrayBufferConstructor;\n}',n.lib_es2015_reflect_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ndeclare namespace Reflect {\n    function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;\n    function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: any): any;\n    function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;\n    function deleteProperty(target: object, propertyKey: PropertyKey): boolean;\n    function get(target: object, propertyKey: PropertyKey, receiver?: any): any;\n    function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined;\n    function getPrototypeOf(target: object): object;\n    function has(target: object, propertyKey: PropertyKey): boolean;\n    function isExtensible(target: object): boolean;\n    function ownKeys(target: object): PropertyKey[];\n    function preventExtensions(target: object): boolean;\n    function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;\n    function setPrototypeOf(target: object, proto: any): boolean;\n}\n',n.lib_es2015_proxy_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface ProxyHandler<T extends object> {\n    getPrototypeOf? (target: T): object | null;\n    setPrototypeOf? (target: T, v: any): boolean;\n    isExtensible? (target: T): boolean;\n    preventExtensions? (target: T): boolean;\n    getOwnPropertyDescriptor? (target: T, p: PropertyKey): PropertyDescriptor | undefined;\n    has? (target: T, p: PropertyKey): boolean;\n    get? (target: T, p: PropertyKey, receiver: any): any;\n    set? (target: T, p: PropertyKey, value: any, receiver: any): boolean;\n    deleteProperty? (target: T, p: PropertyKey): boolean;\n    defineProperty? (target: T, p: PropertyKey, attributes: PropertyDescriptor): boolean;\n    enumerate? (target: T): PropertyKey[];\n    ownKeys? (target: T): PropertyKey[];\n    apply? (target: T, thisArg: any, argArray?: any): any;\n    construct? (target: T, argArray: any, newTarget?: any): object;\n}\n\ninterface ProxyConstructor {\n    revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };\n    new <T extends object>(target: T, handler: ProxyHandler<T>): T;\n}\ndeclare var Proxy: ProxyConstructor;\n',n.lib_es2015_iterable_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n'+n.lib_es2015_symbol_dts+"\ninterface SymbolConstructor {\n    /**\n     * A method that returns the default iterator for an object. Called by the semantics of the\n     * for-of statement.\n     */\n    readonly iterator: symbol;\n}\n\ninterface IteratorResult<T> {\n    done: boolean;\n    value: T;\n}\n\ninterface Iterator<T> {\n    next(value?: any): IteratorResult<T>;\n    return?(value?: any): IteratorResult<T>;\n    throw?(e?: any): IteratorResult<T>;\n}\n\ninterface Iterable<T> {\n    [Symbol.iterator](): Iterator<T>;\n}\n\ninterface IterableIterator<T> extends Iterator<T> {\n    [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface Array<T> {\n    /** Iterator */\n    [Symbol.iterator](): IterableIterator<T>;\n\n    /**\n     * Returns an iterable of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, T]>;\n\n    /**\n     * Returns an iterable of keys in the array\n     */\n    keys(): IterableIterator<number>;\n\n    /**\n     * Returns an iterable of values in the array\n     */\n    values(): IterableIterator<T>;\n}\n\ninterface ArrayConstructor {\n    /**\n     * Creates an array from an iterable object.\n     * @param iterable An iterable object to convert to an array.\n     */\n    from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];\n\n    /**\n     * Creates an array from an iterable object.\n     * @param iterable An iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\n}\n\ninterface ReadonlyArray<T> {\n    /** Iterator of values in the array. */\n    [Symbol.iterator](): IterableIterator<T>;\n\n    /**\n     * Returns an iterable of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, T]>;\n\n    /**\n     * Returns an iterable of keys in the array\n     */\n    keys(): IterableIterator<number>;\n\n    /**\n     * Returns an iterable of values in the array\n     */\n    values(): IterableIterator<T>;\n}\n\ninterface IArguments {\n    /** Iterator */\n    [Symbol.iterator](): IterableIterator<any>;\n}\n\ninterface Map<K, V> {\n    /** Returns an iterable of entries in the map. */\n    [Symbol.iterator](): IterableIterator<[K, V]>;\n\n    /**\n     * Returns an iterable of key, value pairs for every entry in the map.\n     */\n    entries(): IterableIterator<[K, V]>;\n\n    /**\n     * Returns an iterable of keys in the map\n     */\n    keys(): IterableIterator<K>;\n\n    /**\n     * Returns an iterable of values in the map\n     */\n    values(): IterableIterator<V>;\n}\n\ninterface ReadonlyMap<K, V> {\n    /** Returns an iterable of entries in the map. */\n    [Symbol.iterator](): IterableIterator<[K, V]>;\n\n    /**\n     * Returns an iterable of key, value pairs for every entry in the map.\n     */\n    entries(): IterableIterator<[K, V]>;\n\n    /**\n     * Returns an iterable of keys in the map\n     */\n    keys(): IterableIterator<K>;\n\n    /**\n     * Returns an iterable of values in the map\n     */\n    values(): IterableIterator<V>;\n}\n\ninterface MapConstructor {\n    new <K, V>(iterable: Iterable<[K, V]>): Map<K, V>;\n}\n\ninterface WeakMap<K extends object, V> { }\n\ninterface WeakMapConstructor {\n    new <K extends object = object, V = any>(iterable: Iterable<[K, V]>): WeakMap<K, V>;\n}\n\ninterface Set<T> {\n    /** Iterates over values in the set. */\n    [Symbol.iterator](): IterableIterator<T>;\n    /**\n     * Returns an iterable of [v,v] pairs for every value `v` in the set.\n     */\n    entries(): IterableIterator<[T, T]>;\n    /**\n     * Despite its name, returns an iterable of the values in the set,\n     */\n    keys(): IterableIterator<T>;\n\n    /**\n     * Returns an iterable of values in the set.\n     */\n    values(): IterableIterator<T>;\n}\n\ninterface ReadonlySet<T> {\n    /** Iterates over values in the set. */\n    [Symbol.iterator](): IterableIterator<T>;\n\n    /**\n     * Returns an iterable of [v,v] pairs for every value `v` in the set.\n     */\n    entries(): IterableIterator<[T, T]>;\n\n    /**\n     * Despite its name, returns an iterable of the values in the set,\n     */\n    keys(): IterableIterator<T>;\n\n    /**\n     * Returns an iterable of values in the set.\n     */\n    values(): IterableIterator<T>;\n}\n\ninterface SetConstructor {\n    new <T>(iterable: Iterable<T>): Set<T>;\n}\n\ninterface WeakSet<T extends object> { }\n\ninterface WeakSetConstructor {\n    new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;\n}\n\ninterface Promise<T> { }\n\ninterface PromiseConstructor {\n    /**\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\n     * resolve, or rejected when any Promise is rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    all<TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>;\n\n    /**\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n     * or rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;\n}\n\ndeclare namespace Reflect {\n    function enumerate(target: object): IterableIterator<any>;\n}\n\ninterface String {\n    /** Iterator */\n    [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface Int8Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Int8ArrayConstructor {\n    new (elements: Iterable<number>): Int8Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;\n}\n\ninterface Uint8Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Uint8ArrayConstructor {\n    new (elements: Iterable<number>): Uint8Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;\n}\n\ninterface Uint8ClampedArray {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Uint8ClampedArrayConstructor {\n    new (elements: Iterable<number>): Uint8ClampedArray;\n\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\n\ninterface Int16Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Int16ArrayConstructor {\n    new (elements: Iterable<number>): Int16Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;\n}\n\ninterface Uint16Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Uint16ArrayConstructor {\n    new (elements: Iterable<number>): Uint16Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;\n}\n\ninterface Int32Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Int32ArrayConstructor {\n    new (elements: Iterable<number>): Int32Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;\n}\n\ninterface Uint32Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Uint32ArrayConstructor {\n    new (elements: Iterable<number>): Uint32Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;\n}\n\ninterface Float32Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Float32ArrayConstructor {\n    new (elements: Iterable<number>): Float32Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;\n}\n\ninterface Float64Array {\n    [Symbol.iterator](): IterableIterator<number>;\n    /**\n     * Returns an array of key, value pairs for every entry in the array\n     */\n    entries(): IterableIterator<[number, number]>;\n    /**\n     * Returns an list of keys in the array\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the array\n     */\n    values(): IterableIterator<number>;\n}\n\ninterface Float64ArrayConstructor {\n    new (elements: Iterable<number>): Float64Array;\n\n    /**\n     * Creates an array from an array-like or iterable object.\n     * @param arrayLike An array-like or iterable object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of 'this' used to invoke the mapfn.\n     */\n    from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;\n}\n",n.lib_es2015_promise_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface PromiseConstructor {\n    /**\n     * A reference to the prototype.\n     */\n    readonly prototype: Promise<any>;\n\n    /**\n     * Creates a new Promise.\n     * @param executor A callback used to initialize the promise. This callback is passed two arguments:\n     * a resolve callback used to resolve the promise with a value or the result of another promise,\n     * and a reject callback used to reject the promise with a provided reason or error.\n     */\n    new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;\n\n    /**\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\n     * resolve, or rejected when any Promise is rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    all<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>;\n\n    /**\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\n     * resolve, or rejected when any Promise is rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    all<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>;\n\n    /**\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\n     * resolve, or rejected when any Promise is rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    all<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<[T1, T2, T3, T4, T5, T6, T7, T8]>;\n\n    /**\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\n     * resolve, or rejected when any Promise is rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    all<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<[T1, T2, T3, T4, T5, T6, T7]>;\n\n    /**\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\n     * resolve, or rejected when any Promise is rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    all<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<[T1, T2, T3, T4, T5, T6]>;\n\n    /**\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\n     * resolve, or rejected when any Promise is rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    all<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>, T5 | PromiseLike<T5>]): Promise<[T1, T2, T3, T4, T5]>;\n\n    /**\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\n     * resolve, or rejected when any Promise is rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    all<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike <T4>]): Promise<[T1, T2, T3, T4]>;\n\n    /**\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\n     * resolve, or rejected when any Promise is rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    all<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<[T1, T2, T3]>;\n\n    /**\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\n     * resolve, or rejected when any Promise is rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    all<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<[T1, T2]>;\n\n    /**\n     * Creates a Promise that is resolved with an array of results when all of the provided Promises\n     * resolve, or rejected when any Promise is rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    all<T>(values: (T | PromiseLike<T>)[]): Promise<T[]>;\n\n    /**\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n     * or rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    race<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>, T10 | PromiseLike<T10>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9 | T10>;\n\n    /**\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n     * or rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    race<T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>, T9 | PromiseLike<T9>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9>;\n\n    /**\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n     * or rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    race<T1, T2, T3, T4, T5, T6, T7, T8>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>, T8 | PromiseLike<T8>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7 | T8>;\n\n    /**\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n     * or rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    race<T1, T2, T3, T4, T5, T6, T7>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>, T7 | PromiseLike<T7>]): Promise<T1 | T2 | T3 | T4 | T5 | T6 | T7>;\n\n    /**\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n     * or rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    race<T1, T2, T3, T4, T5, T6>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>, T6 | PromiseLike<T6>]): Promise<T1 | T2 | T3 | T4 | T5 | T6>;\n\n    /**\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n     * or rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    race<T1, T2, T3, T4, T5>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>, T5 | PromiseLike<T5>]): Promise<T1 | T2 | T3 | T4 | T5>;\n\n    /**\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n     * or rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    race<T1, T2, T3, T4>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>, T4 | PromiseLike<T4>]): Promise<T1 | T2 | T3 | T4>;\n\n    /**\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n     * or rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    race<T1, T2, T3>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]): Promise<T1 | T2 | T3>;\n\n    /**\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n     * or rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    race<T1, T2>(values: [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]): Promise<T1 | T2>;\n\n    /**\n     * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved\n     * or rejected.\n     * @param values An array of Promises.\n     * @returns A new Promise.\n     */\n    race<T>(values: (T | PromiseLike<T>)[]): Promise<T>;\n\n    /**\n     * Creates a new rejected promise for the provided reason.\n     * @param reason The reason the promise was rejected.\n     * @returns A new rejected Promise.\n     */\n    reject<T = never>(reason?: any): Promise<T>;\n\n    /**\n     * Creates a new resolved promise for the provided value.\n     * @param value A promise.\n     * @returns A promise whose internal state matches the provided promise.\n     */\n    resolve<T>(value: T | PromiseLike<T>): Promise<T>;\n\n    /**\n     * Creates a new resolved promise .\n     * @returns A resolved promise.\n     */\n    resolve(): Promise<void>;\n}\n\ndeclare var Promise: PromiseConstructor;\n',n.lib_es2015_generator_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Generator extends Iterator<any> { }\n\ninterface GeneratorFunction {\n    /**\n     * Creates a new Generator object.\n     * @param args A list of arguments the function accepts.\n     */\n    new (...args: any[]): Generator;\n    /**\n     * Creates a new Generator object.\n     * @param args A list of arguments the function accepts.\n     */\n    (...args: any[]): Generator;\n    /**\n     * The length of the arguments.\n     */\n    readonly length: number;\n    /**\n     * Returns the name of the function.\n     */\n    readonly name: string;\n    /**\n     * A reference to the prototype.\n     */\n    readonly prototype: Generator;\n}\n\ninterface GeneratorFunctionConstructor {\n    /**\n     * Creates a new Generator function.\n     * @param args A list of arguments the function accepts.\n     */\n    new (...args: string[]): GeneratorFunction;\n    /**\n     * Creates a new Generator function.\n     * @param args A list of arguments the function accepts.\n     */\n    (...args: string[]): GeneratorFunction;\n    /**\n     * The length of the arguments.\n     */\n    readonly length: number;\n    /**\n     * Returns the name of the function.\n     */\n    readonly name: string;\n    /**\n     * A reference to the prototype.\n     */\n    readonly prototype: GeneratorFunction;\n}\n',n.lib_es2015_collection_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Map<K, V> {\n    clear(): void;\n    delete(key: K): boolean;\n    forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;\n    get(key: K): V | undefined;\n    has(key: K): boolean;\n    set(key: K, value: V): this;\n    readonly size: number;\n}\n\ninterface MapConstructor {\n    new <K = any, V = any>(entries?: ReadonlyArray<[K, V]> | null): Map<K, V>;\n    readonly prototype: Map<any, any>;\n}\ndeclare var Map: MapConstructor;\n\ninterface ReadonlyMap<K, V> {\n    forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;\n    get(key: K): V | undefined;\n    has(key: K): boolean;\n    readonly size: number;\n}\n\ninterface WeakMap<K extends object, V> {\n    delete(key: K): boolean;\n    get(key: K): V | undefined;\n    has(key: K): boolean;\n    set(key: K, value: V): this;\n}\n\ninterface WeakMapConstructor {\n    new <K extends object = object, V = any>(entries?: ReadonlyArray<[K, V]> | null): WeakMap<K, V>;\n    readonly prototype: WeakMap<object, any>;\n}\ndeclare var WeakMap: WeakMapConstructor;\n\ninterface Set<T> {\n    add(value: T): this;\n    clear(): void;\n    delete(value: T): boolean;\n    forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;\n    has(value: T): boolean;\n    readonly size: number;\n}\n\ninterface SetConstructor {\n    new <T = any>(values?: ReadonlyArray<T> | null): Set<T>;\n    readonly prototype: Set<any>;\n}\ndeclare var Set: SetConstructor;\n\ninterface ReadonlySet<T> {\n    forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;\n    has(value: T): boolean;\n    readonly size: number;\n}\n\ninterface WeakSet<T extends object> {\n    add(value: T): this;\n    delete(value: T): boolean;\n    has(value: T): boolean;\n}\n\ninterface WeakSetConstructor {\n    new <T extends object = object>(values?: ReadonlyArray<T> | null): WeakSet<T>;\n    readonly prototype: WeakSet<object>;\n}\ndeclare var WeakSet: WeakSetConstructor;\n',n.lib_es2015_core_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\ninterface Array<T> {\n    /**\n     * Returns the value of the first element in the array where predicate is true, and undefined\n     * otherwise.\n     * @param predicate find calls predicate once for each element of the array, in ascending\n     * order, until it finds one where predicate returns true. If such an element is found, find\n     * immediately returns that element value. Otherwise, find returns undefined.\n     * @param thisArg If provided, it will be used as the this value for each invocation of\n     * predicate. If it is not provided, undefined is used instead.\n     */\n    find<S extends T>(predicate: (this: void, value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;\n    find(predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): T | undefined;\n\n    /**\n     * Returns the index of the first element in the array where predicate is true, and -1\n     * otherwise.\n     * @param predicate find calls predicate once for each element of the array, in ascending\n     * order, until it finds one where predicate returns true. If such an element is found,\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n     * @param thisArg If provided, it will be used as the this value for each invocation of\n     * predicate. If it is not provided, undefined is used instead.\n     */\n    findIndex(predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): number;\n\n    /**\n     * Returns the this object after filling the section identified by start and end with value\n     * @param value value to fill array section with\n     * @param start index to start filling the array at. If start is negative, it is treated as\n     * length+start where length is the length of the array.\n     * @param end index to stop filling the array at. If end is negative, it is treated as\n     * length+end.\n     */\n    fill(value: T, start?: number, end?: number): this;\n\n    /**\n     * Returns the this object after copying a section of the array identified by start and end\n     * to the same array starting at position target\n     * @param target If target is negative, it is treated as length+target where length is the\n     * length of the array.\n     * @param start If start is negative, it is treated as length+start. If end is negative, it\n     * is treated as length+end.\n     * @param end If not specified, length of the this object is used as its default value.\n     */\n    copyWithin(target: number, start: number, end?: number): this;\n}\n\ninterface ArrayConstructor {\n    /**\n     * Creates an array from an array-like object.\n     * @param arrayLike An array-like object to convert to an array.\n     */\n    from<T>(arrayLike: ArrayLike<T>): T[];\n\n    /**\n     * Creates an array from an iterable object.\n     * @param arrayLike An array-like object to convert to an array.\n     * @param mapfn A mapping function to call on every element of the array.\n     * @param thisArg Value of \'this\' used to invoke the mapfn.\n     */\n    from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];\n\n    /**\n     * Returns a new array from a set of elements.\n     * @param items A set of elements to include in the new array object.\n     */\n    of<T>(...items: T[]): T[];\n}\n\ninterface DateConstructor {\n    new (value: number | string | Date): Date;\n}\n\ninterface Function {\n    /**\n     * Returns the name of the function. Function names are read-only and can not be changed.\n     */\n    readonly name: string;\n}\n\ninterface Math {\n    /**\n     * Returns the number of leading zero bits in the 32-bit binary representation of a number.\n     * @param x A numeric expression.\n     */\n    clz32(x: number): number;\n\n    /**\n     * Returns the result of 32-bit multiplication of two numbers.\n     * @param x First number\n     * @param y Second number\n     */\n    imul(x: number, y: number): number;\n\n    /**\n     * Returns the sign of the x, indicating whether x is positive, negative or zero.\n     * @param x The numeric expression to test\n     */\n    sign(x: number): number;\n\n    /**\n     * Returns the base 10 logarithm of a number.\n     * @param x A numeric expression.\n     */\n    log10(x: number): number;\n\n    /**\n     * Returns the base 2 logarithm of a number.\n     * @param x A numeric expression.\n     */\n    log2(x: number): number;\n\n    /**\n     * Returns the natural logarithm of 1 + x.\n     * @param x A numeric expression.\n     */\n    log1p(x: number): number;\n\n    /**\n     * Returns the result of (e^x - 1), which is an implementation-dependent approximation to\n     * subtracting 1 from the exponential function of x (e raised to the power of x, where e\n     * is the base of the natural logarithms).\n     * @param x A numeric expression.\n     */\n    expm1(x: number): number;\n\n    /**\n     * Returns the hyperbolic cosine of a number.\n     * @param x A numeric expression that contains an angle measured in radians.\n     */\n    cosh(x: number): number;\n\n    /**\n     * Returns the hyperbolic sine of a number.\n     * @param x A numeric expression that contains an angle measured in radians.\n     */\n    sinh(x: number): number;\n\n    /**\n     * Returns the hyperbolic tangent of a number.\n     * @param x A numeric expression that contains an angle measured in radians.\n     */\n    tanh(x: number): number;\n\n    /**\n     * Returns the inverse hyperbolic cosine of a number.\n     * @param x A numeric expression that contains an angle measured in radians.\n     */\n    acosh(x: number): number;\n\n    /**\n     * Returns the inverse hyperbolic sine of a number.\n     * @param x A numeric expression that contains an angle measured in radians.\n     */\n    asinh(x: number): number;\n\n    /**\n     * Returns the inverse hyperbolic tangent of a number.\n     * @param x A numeric expression that contains an angle measured in radians.\n     */\n    atanh(x: number): number;\n\n    /**\n     * Returns the square root of the sum of squares of its arguments.\n     * @param values Values to compute the square root for.\n     *     If no arguments are passed, the result is +0.\n     *     If there is only one argument, the result is the absolute value.\n     *     If any argument is +Infinity or -Infinity, the result is +Infinity.\n     *     If any argument is NaN, the result is NaN.\n     *     If all arguments are either +0 or −0, the result is +0.\n     */\n    hypot(...values: number[]): number;\n\n    /**\n     * Returns the integral part of the a numeric expression, x, removing any fractional digits.\n     * If x is already an integer, the result is x.\n     * @param x A numeric expression.\n     */\n    trunc(x: number): number;\n\n    /**\n     * Returns the nearest single precision float representation of a number.\n     * @param x A numeric expression.\n     */\n    fround(x: number): number;\n\n    /**\n     * Returns an implementation-dependent approximation to the cube root of number.\n     * @param x A numeric expression.\n     */\n    cbrt(x: number): number;\n}\n\ninterface NumberConstructor {\n    /**\n     * The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1\n     * that is representable as a Number value, which is approximately:\n     * 2.2204460492503130808472633361816 x 10‍−‍16.\n     */\n    readonly EPSILON: number;\n\n    /**\n     * Returns true if passed value is finite.\n     * Unlike the global isFinite, Number.isFinite doesn\'t forcibly convert the parameter to a\n     * number. Only finite values of the type number, result in true.\n     * @param number A numeric value.\n     */\n    isFinite(number: number): boolean;\n\n    /**\n     * Returns true if the value passed is an integer, false otherwise.\n     * @param number A numeric value.\n     */\n    isInteger(number: number): boolean;\n\n    /**\n     * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a\n     * number). Unlike the global isNaN(), Number.isNaN() doesn\'t forcefully convert the parameter\n     * to a number. Only values of the type number, that are also NaN, result in true.\n     * @param number A numeric value.\n     */\n    isNaN(number: number): boolean;\n\n    /**\n     * Returns true if the value passed is a safe integer.\n     * @param number A numeric value.\n     */\n    isSafeInteger(number: number): boolean;\n\n    /**\n     * The value of the largest integer n such that n and n + 1 are both exactly representable as\n     * a Number value.\n     * The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 − 1.\n     */\n    readonly MAX_SAFE_INTEGER: number;\n\n    /**\n     * The value of the smallest integer n such that n and n − 1 are both exactly representable as\n     * a Number value.\n     * The value of Number.MIN_SAFE_INTEGER is −9007199254740991 (−(2^53 − 1)).\n     */\n    readonly MIN_SAFE_INTEGER: number;\n\n    /**\n     * Converts a string to a floating-point number.\n     * @param string A string that contains a floating-point number.\n     */\n    parseFloat(string: string): number;\n\n    /**\n     * Converts A string to an integer.\n     * @param s A string to convert into a number.\n     * @param radix A value between 2 and 36 that specifies the base of the number in numString.\n     * If this argument is not supplied, strings with a prefix of \'0x\' are considered hexadecimal.\n     * All other strings are considered decimal.\n     */\n    parseInt(string: string, radix?: number): number;\n}\n\ninterface ObjectConstructor {\n    /**\n     * Copy the values of all of the enumerable own properties from one or more source objects to a\n     * target object. Returns the target object.\n     * @param target The target object to copy to.\n     * @param source The source object from which to copy properties.\n     */\n    assign<T, U>(target: T, source: U): T & U;\n\n    /**\n     * Copy the values of all of the enumerable own properties from one or more source objects to a\n     * target object. Returns the target object.\n     * @param target The target object to copy to.\n     * @param source1 The first source object from which to copy properties.\n     * @param source2 The second source object from which to copy properties.\n     */\n    assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;\n\n    /**\n     * Copy the values of all of the enumerable own properties from one or more source objects to a\n     * target object. Returns the target object.\n     * @param target The target object to copy to.\n     * @param source1 The first source object from which to copy properties.\n     * @param source2 The second source object from which to copy properties.\n     * @param source3 The third source object from which to copy properties.\n     */\n    assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;\n\n    /**\n     * Copy the values of all of the enumerable own properties from one or more source objects to a\n     * target object. Returns the target object.\n     * @param target The target object to copy to.\n     * @param sources One or more source objects from which to copy properties\n     */\n    assign(target: object, ...sources: any[]): any;\n\n    /**\n     * Returns an array of all symbol properties found directly on object o.\n     * @param o Object to retrieve the symbols from.\n     */\n    getOwnPropertySymbols(o: any): symbol[];\n\n    /**\n     * Returns true if the values are the same value, false otherwise.\n     * @param value1 The first value.\n     * @param value2 The second value.\n     */\n    is(value1: any, value2: any): boolean;\n\n    /**\n     * Sets the prototype of a specified object o to  object proto or null. Returns the object o.\n     * @param o The object to change its prototype.\n     * @param proto The value of the new prototype or null.\n     */\n    setPrototypeOf(o: any, proto: object | null): any;\n}\n\ninterface ReadonlyArray<T> {\n    /**\n     * Returns the value of the first element in the array where predicate is true, and undefined\n     * otherwise.\n     * @param predicate find calls predicate once for each element of the array, in ascending\n     * order, until it finds one where predicate returns true. If such an element is found, find\n     * immediately returns that element value. Otherwise, find returns undefined.\n     * @param thisArg If provided, it will be used as the this value for each invocation of\n     * predicate. If it is not provided, undefined is used instead.\n     */\n    find<S extends T>(predicate: (this: void, value: T, index: number, obj: ReadonlyArray<T>) => value is S, thisArg?: any): S | undefined;\n    find(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, thisArg?: any): T | undefined;\n\n    /**\n     * Returns the index of the first element in the array where predicate is true, and -1\n     * otherwise.\n     * @param predicate find calls predicate once for each element of the array, in ascending\n     * order, until it finds one where predicate returns true. If such an element is found,\n     * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n     * @param thisArg If provided, it will be used as the this value for each invocation of\n     * predicate. If it is not provided, undefined is used instead.\n     */\n    findIndex(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, thisArg?: any): number;\n}\n\ninterface RegExp {\n    /**\n     * Returns a string indicating the flags of the regular expression in question. This field is read-only.\n     * The characters in this string are sequenced and concatenated in the following order:\n     *\n     *    - "g" for global\n     *    - "i" for ignoreCase\n     *    - "m" for multiline\n     *    - "u" for unicode\n     *    - "y" for sticky\n     *\n     * If no flags are set, the value is the empty string.\n     */\n    readonly flags: string;\n\n    /**\n     * Returns a Boolean value indicating the state of the sticky flag (y) used with a regular\n     * expression. Default is false. Read-only.\n     */\n    readonly sticky: boolean;\n\n    /**\n     * Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular\n     * expression. Default is false. Read-only.\n     */\n    readonly unicode: boolean;\n}\n\ninterface RegExpConstructor {\n    new (pattern: RegExp, flags?: string): RegExp;\n    (pattern: RegExp, flags?: string): RegExp;\n}\n\ninterface String {\n    /**\n     * Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\n     * value of the UTF-16 encoded code point starting at the string element at position pos in\n     * the String resulting from converting this object to a String.\n     * If there is no element at that position, the result is undefined.\n     * If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.\n     */\n    codePointAt(pos: number): number | undefined;\n\n    /**\n     * Returns true if searchString appears as a substring of the result of converting this\n     * object to a String, at one or more positions that are\n     * greater than or equal to position; otherwise, returns false.\n     * @param searchString search string\n     * @param position If position is undefined, 0 is assumed, so as to search all of the String.\n     */\n    includes(searchString: string, position?: number): boolean;\n\n    /**\n     * Returns true if the sequence of elements of searchString converted to a String is the\n     * same as the corresponding elements of this object (converted to a String) starting at\n     * endPosition – length(this). Otherwise returns false.\n     */\n    endsWith(searchString: string, endPosition?: number): boolean;\n\n    /**\n     * Returns the String value result of normalizing the string into the normalization form\n     * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n     * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\n     * is "NFC"\n     */\n    normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;\n\n    /**\n     * Returns the String value result of normalizing the string into the normalization form\n     * named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n     * @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\n     * is "NFC"\n     */\n    normalize(form?: string): string;\n\n    /**\n     * Returns a String value that is made from count copies appended together. If count is 0,\n     * the empty string is returned.\n     * @param count number of copies to append\n     */\n    repeat(count: number): string;\n\n    /**\n     * Returns true if the sequence of elements of searchString converted to a String is the\n     * same as the corresponding elements of this object (converted to a String) starting at\n     * position. Otherwise returns false.\n     */\n    startsWith(searchString: string, position?: number): boolean;\n\n    /**\n     * Returns an <a> HTML anchor element and sets the name attribute to the text value\n     * @param name\n     */\n    anchor(name: string): string;\n\n    /** Returns a <big> HTML element */\n    big(): string;\n\n    /** Returns a <blink> HTML element */\n    blink(): string;\n\n    /** Returns a <b> HTML element */\n    bold(): string;\n\n    /** Returns a <tt> HTML element */\n    fixed(): string;\n\n    /** Returns a <font> HTML element and sets the color attribute value */\n    fontcolor(color: string): string;\n\n    /** Returns a <font> HTML element and sets the size attribute value */\n    fontsize(size: number): string;\n\n    /** Returns a <font> HTML element and sets the size attribute value */\n    fontsize(size: string): string;\n\n    /** Returns an <i> HTML element */\n    italics(): string;\n\n    /** Returns an <a> HTML element and sets the href attribute value */\n    link(url: string): string;\n\n    /** Returns a <small> HTML element */\n    small(): string;\n\n    /** Returns a <strike> HTML element */\n    strike(): string;\n\n    /** Returns a <sub> HTML element */\n    sub(): string;\n\n    /** Returns a <sup> HTML element */\n    sup(): string;\n}\n\ninterface StringConstructor {\n    /**\n     * Return the String value whose elements are, in order, the elements in the List elements.\n     * If length is 0, the empty string is returned.\n     */\n    fromCodePoint(...codePoints: number[]): string;\n\n    /**\n     * String.raw is intended for use as a tag function of a Tagged Template String. When called\n     * as such the first argument will be a well formed template call site object and the rest\n     * parameter will contain the substitution values.\n     * @param template A well-formed template string call site representation.\n     * @param substitutions A set of substitution values.\n     */\n    raw(template: TemplateStringsArray, ...substitutions: any[]): string;\n}\n',n.lib_dom_iterable_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/////////////////////////////\n/// DOM Iterable APIs\n/////////////////////////////\n\ninterface AudioParamMap extends ReadonlyMap<string, AudioParam> {\n}\n\ninterface AudioTrackList {\n    [Symbol.iterator](): IterableIterator<AudioTrack>;\n}\n\ninterface CSSRuleList {\n    [Symbol.iterator](): IterableIterator<CSSRule>;\n}\n\ninterface CSSStyleDeclaration {\n    [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface ClientRectList {\n    [Symbol.iterator](): IterableIterator<ClientRect>;\n}\n\ninterface DOMRectList {\n    [Symbol.iterator](): IterableIterator<DOMRect>;\n}\n\ninterface DOMStringList {\n    [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface DOMTokenList {\n    [Symbol.iterator](): IterableIterator<string>;\n    entries(): IterableIterator<[number, string]>;\n    keys(): IterableIterator<number>;\n    values(): IterableIterator<string>;\n}\n\ninterface DataTransferItemList {\n    [Symbol.iterator](): IterableIterator<DataTransferItem>;\n}\n\ninterface FileList {\n    [Symbol.iterator](): IterableIterator<File>;\n}\n\ninterface FormData {\n    [Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;\n    /**\n     * Returns an array of key, value pairs for every entry in the list.\n     */\n    entries(): IterableIterator<[string, FormDataEntryValue]>;\n    /**\n     * Returns a list of keys in the list.\n     */\n    keys(): IterableIterator<string>;\n    /**\n     * Returns a list of values in the list.\n     */\n    values(): IterableIterator<FormDataEntryValue>;\n}\n\ninterface HTMLAllCollection {\n    [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionBase {\n    [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLCollectionOf<T extends Element> {\n    [Symbol.iterator](): IterableIterator<T>;\n}\n\ninterface HTMLFormElement {\n    [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface HTMLSelectElement {\n    [Symbol.iterator](): IterableIterator<Element>;\n}\n\ninterface Headers {\n    [Symbol.iterator](): IterableIterator<[string, string]>;\n    /**\n     * Returns an iterator allowing to go through all key/value pairs contained in this object.\n     */\n    entries(): IterableIterator<[string, string]>;\n    /**\n     * Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.\n     */\n    keys(): IterableIterator<string>;\n    /**\n     * Returns an iterator allowing to go through all values of the key/value pairs contained in this object.\n     */\n    values(): IterableIterator<string>;\n}\n\ninterface MediaList {\n    [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface MimeTypeArray {\n    [Symbol.iterator](): IterableIterator<Plugin>;\n}\n\ninterface NamedNodeMap {\n    [Symbol.iterator](): IterableIterator<Attr>;\n}\n\ninterface NodeList {\n    [Symbol.iterator](): IterableIterator<Node>;\n    /**\n     * Returns an array of key, value pairs for every entry in the list.\n     */\n    entries(): IterableIterator<[number, Node]>;\n    /**\n     * Returns an list of keys in the list.\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the list.\n     */\n    values(): IterableIterator<Node>;\n}\n\ninterface NodeListOf<TNode extends Node> {\n    [Symbol.iterator](): IterableIterator<TNode>;\n    /**\n     * Returns an array of key, value pairs for every entry in the list.\n     */\n    entries(): IterableIterator<[number, TNode]>;\n    /**\n     * Returns an list of keys in the list.\n     */\n    keys(): IterableIterator<number>;\n    /**\n     * Returns an list of values in the list.\n     */\n    values(): IterableIterator<TNode>;\n}\n\ninterface Plugin {\n    [Symbol.iterator](): IterableIterator<MimeType>;\n}\n\ninterface PluginArray {\n    [Symbol.iterator](): IterableIterator<Plugin>;\n}\n\ninterface RTCStatsReport extends ReadonlyMap<string, any> {\n}\n\ninterface SVGLengthList {\n    [Symbol.iterator](): IterableIterator<SVGLength>;\n}\n\ninterface SVGNumberList {\n    [Symbol.iterator](): IterableIterator<SVGNumber>;\n}\n\ninterface SVGStringList {\n    [Symbol.iterator](): IterableIterator<string>;\n}\n\ninterface SourceBufferList {\n    [Symbol.iterator](): IterableIterator<SourceBuffer>;\n}\n\ninterface SpeechGrammarList {\n    [Symbol.iterator](): IterableIterator<SpeechGrammar>;\n}\n\ninterface SpeechRecognitionResult {\n    [Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;\n}\n\ninterface SpeechRecognitionResultList {\n    [Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;\n}\n\ninterface StyleSheetList {\n    [Symbol.iterator](): IterableIterator<StyleSheet>;\n}\n\ninterface TextTrackCueList {\n    [Symbol.iterator](): IterableIterator<TextTrackCue>;\n}\n\ninterface TextTrackList {\n    [Symbol.iterator](): IterableIterator<TextTrack>;\n}\n\ninterface TouchList {\n    [Symbol.iterator](): IterableIterator<Touch>;\n}\n\ninterface URLSearchParams {\n    [Symbol.iterator](): IterableIterator<[string, string]>;\n    /**\n     * Returns an array of key, value pairs for every entry in the search params.\n     */\n    entries(): IterableIterator<[string, string]>;\n    /**\n     * Returns a list of keys in the search params.\n     */\n    keys(): IterableIterator<string>;\n    /**\n     * Returns a list of values in the search params.\n     */\n    values(): IterableIterator<string>;\n}\n\ninterface VideoTrackList {\n    [Symbol.iterator](): IterableIterator<VideoTrack>;\n}\n',n.lib_scripthost_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n\n\n/////////////////////////////\n/// Windows Script Host APIS\n/////////////////////////////\n\n\ninterface ActiveXObject {\n    new (s: string): any;\n}\ndeclare var ActiveXObject: ActiveXObject;\n\ninterface ITextWriter {\n    Write(s: string): void;\n    WriteLine(s: string): void;\n    Close(): void;\n}\n\ninterface TextStreamBase {\n    /**\n     * The column number of the current character position in an input stream.\n     */\n    Column: number;\n\n    /**\n     * The current line number in an input stream.\n     */\n    Line: number;\n\n    /**\n     * Closes a text stream.\n     * It is not necessary to close standard streams; they close automatically when the process ends. If\n     * you close a standard stream, be aware that any other pointers to that standard stream become invalid.\n     */\n    Close(): void;\n}\n\ninterface TextStreamWriter extends TextStreamBase {\n    /**\n     * Sends a string to an output stream.\n     */\n    Write(s: string): void;\n\n    /**\n     * Sends a specified number of blank lines (newline characters) to an output stream.\n     */\n    WriteBlankLines(intLines: number): void;\n\n    /**\n     * Sends a string followed by a newline character to an output stream.\n     */\n    WriteLine(s: string): void;\n}\n\ninterface TextStreamReader extends TextStreamBase {\n    /**\n     * Returns a specified number of characters from an input stream, starting at the current pointer position.\n     * Does not return until the ENTER key is pressed.\n     * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n     */\n    Read(characters: number): string;\n\n    /**\n     * Returns all characters from an input stream.\n     * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n     */\n    ReadAll(): string;\n\n    /**\n     * Returns an entire line from an input stream.\n     * Although this method extracts the newline character, it does not add it to the returned string.\n     * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n     */\n    ReadLine(): string;\n\n    /**\n     * Skips a specified number of characters when reading from an input text stream.\n     * Can only be used on a stream in reading mode; causes an error in writing or appending mode.\n     * @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)\n     */\n    Skip(characters: number): void;\n\n    /**\n     * Skips the next line when reading from an input text stream.\n     * Can only be used on a stream in reading mode, not writing or appending mode.\n     */\n    SkipLine(): void;\n\n    /**\n     * Indicates whether the stream pointer position is at the end of a line.\n     */\n    AtEndOfLine: boolean;\n\n    /**\n     * Indicates whether the stream pointer position is at the end of a stream.\n     */\n    AtEndOfStream: boolean;\n}\n\ndeclare var WScript: {\n    /**\n     * Outputs text to either a message box (under WScript.exe) or the command console window followed by\n     * a newline (under CScript.exe).\n     */\n    Echo(s: any): void;\n\n    /**\n     * Exposes the write-only error output stream for the current script.\n     * Can be accessed only while using CScript.exe.\n     */\n    StdErr: TextStreamWriter;\n\n    /**\n     * Exposes the write-only output stream for the current script.\n     * Can be accessed only while using CScript.exe.\n     */\n    StdOut: TextStreamWriter;\n    Arguments: { length: number; Item(n: number): string; };\n\n    /**\n     *  The full path of the currently running script.\n     */\n    ScriptFullName: string;\n\n    /**\n     * Forces the script to stop immediately, with an optional exit code.\n     */\n    Quit(exitCode?: number): number;\n\n    /**\n     * The Windows Script Host build version number.\n     */\n    BuildVersion: number;\n\n    /**\n     * Fully qualified path of the host executable.\n     */\n    FullName: string;\n\n    /**\n     * Gets/sets the script mode - interactive(true) or batch(false).\n     */\n    Interactive: boolean;\n\n    /**\n     * The name of the host executable (WScript.exe or CScript.exe).\n     */\n    Name: string;\n\n    /**\n     * Path of the directory containing the host executable.\n     */\n    Path: string;\n\n    /**\n     * The filename of the currently running script.\n     */\n    ScriptName: string;\n\n    /**\n     * Exposes the read-only input stream for the current script.\n     * Can be accessed only while using CScript.exe.\n     */\n    StdIn: TextStreamReader;\n\n    /**\n     * Windows Script Host version\n     */\n    Version: string;\n\n    /**\n     * Connects a COM object\'s event sources to functions named with a given prefix, in the form prefix_event.\n     */\n    ConnectObject(objEventSource: any, strPrefix: string): void;\n\n    /**\n     * Creates a COM object.\n     * @param strProgiID\n     * @param strPrefix Function names in the form prefix_event will be bound to this object\'s COM events.\n     */\n    CreateObject(strProgID: string, strPrefix?: string): any;\n\n    /**\n     * Disconnects a COM object from its event sources.\n     */\n    DisconnectObject(obj: any): void;\n\n    /**\n     * Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.\n     * @param strPathname Fully qualified path to the file containing the object persisted to disk.\n     *                       For objects in memory, pass a zero-length string.\n     * @param strProgID\n     * @param strPrefix Function names in the form prefix_event will be bound to this object\'s COM events.\n     */\n    GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;\n\n    /**\n     * Suspends script execution for a specified length of time, then continues execution.\n     * @param intTime Interval (in milliseconds) to suspend script execution.\n     */\n    Sleep(intTime: number): void;\n};\n\n/**\n * WSH is an alias for WScript under Windows Script Host\n */\ndeclare var WSH: typeof WScript;\n\n/**\n * Represents an Automation SAFEARRAY\n */\ndeclare class SafeArray<T = any> {\n    private constructor();\n    private SafeArray_typekey: SafeArray<T>;\n}\n\n/**\n * Allows enumerating over a COM collection, which may not have indexed item access.\n */\ninterface Enumerator<T = any> {\n    /**\n     * Returns true if the current item is the last one in the collection, or the collection is empty,\n     * or the current item is undefined.\n     */\n    atEnd(): boolean;\n\n    /**\n     * Returns the current item in the collection\n     */\n    item(): T;\n\n    /**\n     * Resets the current item in the collection to the first item. If there are no items in the collection,\n     * the current item is set to undefined.\n     */\n    moveFirst(): void;\n\n    /**\n     * Moves the current item to the next item in the collection. If the enumerator is at the end of\n     * the collection or the collection is empty, the current item is set to undefined.\n     */\n    moveNext(): void;\n}\n\ninterface EnumeratorConstructor {\n    new <T = any>(safearray: SafeArray<T>): Enumerator<T>;\n    new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;\n    new <T = any>(collection: any): Enumerator<T>;\n}\n\ndeclare var Enumerator: EnumeratorConstructor;\n\n/**\n * Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.\n */\ninterface VBArray<T = any> {\n    /**\n     * Returns the number of dimensions (1-based).\n     */\n    dimensions(): number;\n\n    /**\n     * Takes an index for each dimension in the array, and returns the item at the corresponding location.\n     */\n    getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;\n\n    /**\n     * Returns the smallest available index for a given dimension.\n     * @param dimension 1-based dimension (defaults to 1)\n     */\n    lbound(dimension?: number): number;\n\n    /**\n     * Returns the largest available index for a given dimension.\n     * @param dimension 1-based dimension (defaults to 1)\n     */\n    ubound(dimension?: number): number;\n\n    /**\n     * Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,\n     * each successive dimension is appended to the end of the array.\n     * Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]\n     */\n    toArray(): T[];\n}\n\ninterface VBArrayConstructor {\n    new <T = any>(safeArray: SafeArray<T>): VBArray<T>;\n}\n\ndeclare var VBArray: VBArrayConstructor;\n\n/**\n * Automation date (VT_DATE)\n */\ndeclare class VarDate {\n    private constructor();\n    private VarDate_typekey: VarDate;\n}\n\ninterface DateConstructor {\n    new (vd: VarDate): Date;\n}\n\ninterface Date {\n    getVarDate: () => VarDate;\n}\n',n.lib_webworker_importscripts_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n\n/////////////////////////////\n/// WorkerGlobalScope APIs\n/////////////////////////////\n// These are only available in a Web Worker\ndeclare function importScripts(...urls: string[]): void;\n',n.lib_dom_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n\n/////////////////////////////\n/// DOM APIs\n/////////////////////////////\n\ninterface Account {\n    displayName: string;\n    id: string;\n    imageURL?: string;\n    name?: string;\n    rpDisplayName: string;\n}\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n    once?: boolean;\n    passive?: boolean;\n}\n\ninterface AesCbcParams extends Algorithm {\n    iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface AesCtrParams extends Algorithm {\n    counter: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n    length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n    length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n    additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n    iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n    tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n    length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n    length: number;\n}\n\ninterface Algorithm {\n    name: string;\n}\n\ninterface AnalyserOptions extends AudioNodeOptions {\n    fftSize?: number;\n    maxDecibels?: number;\n    minDecibels?: number;\n    smoothingTimeConstant?: number;\n}\n\ninterface AnimationEventInit extends EventInit {\n    animationName?: string;\n    elapsedTime?: number;\n    pseudoElement?: string;\n}\n\ninterface AnimationPlaybackEventInit extends EventInit {\n    currentTime?: number | null;\n    timelineTime?: number | null;\n}\n\ninterface AssertionOptions {\n    allowList?: ScopedCredentialDescriptor[];\n    extensions?: WebAuthnExtensions;\n    rpId?: string;\n    timeoutSeconds?: number;\n}\n\ninterface AssignedNodesOptions {\n    flatten?: boolean;\n}\n\ninterface AudioBufferOptions {\n    length: number;\n    numberOfChannels?: number;\n    sampleRate: number;\n}\n\ninterface AudioBufferSourceOptions {\n    buffer?: AudioBuffer | null;\n    detune?: number;\n    loop?: boolean;\n    loopEnd?: number;\n    loopStart?: number;\n    playbackRate?: number;\n}\n\ninterface AudioContextInfo {\n    currentTime?: number;\n    sampleRate?: number;\n}\n\ninterface AudioContextOptions {\n    latencyHint?: AudioContextLatencyCategory | number;\n    sampleRate?: number;\n}\n\ninterface AudioNodeOptions {\n    channelCount?: number;\n    channelCountMode?: ChannelCountMode;\n    channelInterpretation?: ChannelInterpretation;\n}\n\ninterface AudioParamDescriptor {\n    automationRate?: AutomationRate;\n    defaultValue?: number;\n    maxValue?: number;\n    minValue?: number;\n    name: string;\n}\n\ninterface AudioProcessingEventInit extends EventInit {\n    inputBuffer: AudioBuffer;\n    outputBuffer: AudioBuffer;\n    playbackTime: number;\n}\n\ninterface AudioTimestamp {\n    contextTime?: number;\n    performanceTime?: number;\n}\n\ninterface AudioWorkletNodeOptions extends AudioNodeOptions {\n    numberOfInputs?: number;\n    numberOfOutputs?: number;\n    outputChannelCount?: number[];\n    parameterData?: Record<string, number>;\n    processorOptions?: any;\n}\n\ninterface BiquadFilterOptions extends AudioNodeOptions {\n    Q?: number;\n    detune?: number;\n    frequency?: number;\n    gain?: number;\n    type?: BiquadFilterType;\n}\n\ninterface BlobPropertyBag {\n    type?: string;\n}\n\ninterface ByteLengthChunk {\n    byteLength?: number;\n}\n\ninterface CacheQueryOptions {\n    cacheName?: string;\n    ignoreMethod?: boolean;\n    ignoreSearch?: boolean;\n    ignoreVary?: boolean;\n}\n\ninterface CanvasRenderingContext2DSettings {\n    alpha?: boolean;\n}\n\ninterface ChannelMergerOptions extends AudioNodeOptions {\n    numberOfInputs?: number;\n}\n\ninterface ChannelSplitterOptions extends AudioNodeOptions {\n    numberOfOutputs?: number;\n}\n\ninterface ClientData {\n    challenge: string;\n    extensions?: WebAuthnExtensions;\n    hashAlg: string | Algorithm;\n    origin: string;\n    rpId: string;\n    tokenBinding?: string;\n}\n\ninterface ClientQueryOptions {\n    includeUncontrolled?: boolean;\n    type?: ClientTypes;\n}\n\ninterface CloseEventInit extends EventInit {\n    code?: number;\n    reason?: string;\n    wasClean?: boolean;\n}\n\ninterface CompositionEventInit extends UIEventInit {\n    data?: string;\n}\n\ninterface ComputedEffectTiming extends EffectTiming {\n    activeDuration?: number;\n    currentIteration?: number | null;\n    endTime?: number;\n    localTime?: number | null;\n    progress?: number | null;\n}\n\ninterface ComputedKeyframe extends Record<keyof CSSStyleDeclaration, string> {\n    composite?: CompositeOperation | null;\n    computedOffset?: number;\n    easing?: string;\n    offset?: number | null;\n}\n\ninterface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {\n    arrayOfDomainStrings?: string[];\n}\n\ninterface ConstantSourceOptions {\n    offset?: number;\n}\n\ninterface ConstrainBooleanParameters {\n    exact?: boolean;\n    ideal?: boolean;\n}\n\ninterface ConstrainDOMStringParameters {\n    exact?: string | string[];\n    ideal?: string | string[];\n}\n\ninterface ConstrainDoubleRange extends DoubleRange {\n    exact?: number;\n    ideal?: number;\n}\n\ninterface ConstrainLongRange extends LongRange {\n    exact?: number;\n    ideal?: number;\n}\n\ninterface ConstrainVideoFacingModeParameters {\n    exact?: VideoFacingModeEnum | VideoFacingModeEnum[];\n    ideal?: VideoFacingModeEnum | VideoFacingModeEnum[];\n}\n\ninterface ConvolverOptions extends AudioNodeOptions {\n    buffer?: AudioBuffer | null;\n    disableNormalization?: boolean;\n}\n\ninterface CustomEventInit<T = any> extends EventInit {\n    detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n    a?: number;\n    b?: number;\n    c?: number;\n    d?: number;\n    e?: number;\n    f?: number;\n    m11?: number;\n    m12?: number;\n    m21?: number;\n    m22?: number;\n    m41?: number;\n    m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n    is2D?: boolean;\n    m13?: number;\n    m14?: number;\n    m23?: number;\n    m24?: number;\n    m31?: number;\n    m32?: number;\n    m33?: number;\n    m34?: number;\n    m43?: number;\n    m44?: number;\n}\n\ninterface DOMPointInit {\n    w?: number;\n    x?: number;\n    y?: number;\n    z?: number;\n}\n\ninterface DOMQuadInit {\n    p1?: DOMPointInit;\n    p2?: DOMPointInit;\n    p3?: DOMPointInit;\n    p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n    height?: number;\n    width?: number;\n    x?: number;\n    y?: number;\n}\n\ninterface DelayOptions extends AudioNodeOptions {\n    delayTime?: number;\n    maxDelayTime?: number;\n}\n\ninterface DeviceAccelerationDict {\n    x?: number | null;\n    y?: number | null;\n    z?: number | null;\n}\n\ninterface DeviceLightEventInit extends EventInit {\n    value?: number;\n}\n\ninterface DeviceMotionEventInit extends EventInit {\n    acceleration?: DeviceAccelerationDict | null;\n    accelerationIncludingGravity?: DeviceAccelerationDict | null;\n    interval?: number | null;\n    rotationRate?: DeviceRotationRateDict | null;\n}\n\ninterface DeviceOrientationEventInit extends EventInit {\n    absolute?: boolean;\n    alpha?: number | null;\n    beta?: number | null;\n    gamma?: number | null;\n}\n\ninterface DeviceRotationRateDict {\n    alpha?: number | null;\n    beta?: number | null;\n    gamma?: number | null;\n}\n\ninterface DocumentTimelineOptions {\n    originTime?: number;\n}\n\ninterface DoubleRange {\n    max?: number;\n    min?: number;\n}\n\ninterface DragEventInit extends MouseEventInit {\n    dataTransfer?: DataTransfer | null;\n}\n\ninterface DynamicsCompressorOptions extends AudioNodeOptions {\n    attack?: number;\n    knee?: number;\n    ratio?: number;\n    release?: number;\n    threshold?: number;\n}\n\ninterface EcKeyAlgorithm extends KeyAlgorithm {\n    namedCurve: NamedCurve;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n    namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n    namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n    public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n}\n\ninterface EffectTiming {\n    delay?: number;\n    direction?: PlaybackDirection;\n    duration?: number | string;\n    easing?: string;\n    endDelay?: number;\n    fill?: FillMode;\n    iterationStart?: number;\n    iterations?: number;\n}\n\ninterface ElementDefinitionOptions {\n    extends?: string;\n}\n\ninterface ErrorEventInit extends EventInit {\n    colno?: number;\n    error?: any;\n    filename?: string;\n    lineno?: number;\n    message?: string;\n}\n\ninterface EventInit {\n    bubbles?: boolean;\n    cancelable?: boolean;\n    composed?: boolean;\n}\n\ninterface EventListenerOptions {\n    capture?: boolean;\n}\n\ninterface EventModifierInit extends UIEventInit {\n    altKey?: boolean;\n    ctrlKey?: boolean;\n    metaKey?: boolean;\n    modifierAltGraph?: boolean;\n    modifierCapsLock?: boolean;\n    modifierFn?: boolean;\n    modifierFnLock?: boolean;\n    modifierHyper?: boolean;\n    modifierNumLock?: boolean;\n    modifierOS?: boolean;\n    modifierScrollLock?: boolean;\n    modifierSuper?: boolean;\n    modifierSymbol?: boolean;\n    modifierSymbolLock?: boolean;\n    shiftKey?: boolean;\n}\n\ninterface ExceptionInformation {\n    domain?: string | null;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n    lastModified?: number;\n}\n\ninterface FocusEventInit extends UIEventInit {\n    relatedTarget?: EventTarget | null;\n}\n\ninterface FocusNavigationEventInit extends EventInit {\n    navigationReason?: string | null;\n    originHeight?: number;\n    originLeft?: number;\n    originTop?: number;\n    originWidth?: number;\n}\n\ninterface FocusNavigationOrigin {\n    originHeight?: number;\n    originLeft?: number;\n    originTop?: number;\n    originWidth?: number;\n}\n\ninterface FocusOptions {\n    preventScroll?: boolean;\n}\n\ninterface GainOptions extends AudioNodeOptions {\n    gain?: number;\n}\n\ninterface GamepadEventInit extends EventInit {\n    gamepad?: Gamepad;\n}\n\ninterface GetNotificationOptions {\n    tag?: string;\n}\n\ninterface GetRootNodeOptions {\n    composed?: boolean;\n}\n\ninterface HashChangeEventInit extends EventInit {\n    newURL?: string;\n    oldURL?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n    info: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n    salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface HmacImportParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n    length?: number;\n}\n\ninterface HmacKeyAlgorithm extends KeyAlgorithm {\n    hash: KeyAlgorithm;\n    length: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n    length?: number;\n}\n\ninterface IDBIndexParameters {\n    multiEntry?: boolean;\n    unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n    autoIncrement?: boolean;\n    keyPath?: string | string[] | null;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n    newVersion?: number | null;\n    oldVersion?: number;\n}\n\ninterface IIRFilterOptions extends AudioNodeOptions {\n    feedback: number[];\n    feedforward: number[];\n}\n\ninterface IntersectionObserverEntryInit {\n    boundingClientRect: DOMRectInit;\n    intersectionRect: DOMRectInit;\n    isIntersecting: boolean;\n    rootBounds: DOMRectInit;\n    target: Element;\n    time: number;\n}\n\ninterface IntersectionObserverInit {\n    root?: Element | null;\n    rootMargin?: string;\n    threshold?: number | number[];\n}\n\ninterface JsonWebKey {\n    alg?: string;\n    crv?: string;\n    d?: string;\n    dp?: string;\n    dq?: string;\n    e?: string;\n    ext?: boolean;\n    k?: string;\n    key_ops?: string[];\n    kty?: string;\n    n?: string;\n    oth?: RsaOtherPrimesInfo[];\n    p?: string;\n    q?: string;\n    qi?: string;\n    use?: string;\n    x?: string;\n    y?: string;\n}\n\ninterface KeyAlgorithm {\n    name: string;\n}\n\ninterface KeyboardEventInit extends EventModifierInit {\n    code?: string;\n    key?: string;\n    location?: number;\n    repeat?: boolean;\n}\n\ninterface Keyframe extends Record<keyof CSSStyleDeclaration, string> {\n    composite?: CompositeOperation | null;\n    easing?: string;\n    offset?: number | null;\n}\n\ninterface KeyframeAnimationOptions extends KeyframeEffectOptions {\n    id?: string;\n}\n\ninterface KeyframeEffectOptions extends EffectTiming {\n    composite?: CompositeOperation;\n    iterationComposite?: IterationCompositeOperation;\n}\n\ninterface LongRange {\n    max?: number;\n    min?: number;\n}\n\ninterface MediaElementAudioSourceOptions {\n    mediaElement: HTMLMediaElement;\n}\n\ninterface MediaEncryptedEventInit extends EventInit {\n    initData?: ArrayBuffer | null;\n    initDataType?: string;\n}\n\ninterface MediaKeyMessageEventInit extends EventInit {\n    message?: ArrayBuffer | null;\n    messageType?: MediaKeyMessageType;\n}\n\ninterface MediaKeySystemConfiguration {\n    audioCapabilities?: MediaKeySystemMediaCapability[];\n    distinctiveIdentifier?: MediaKeysRequirement;\n    initDataTypes?: string[];\n    persistentState?: MediaKeysRequirement;\n    videoCapabilities?: MediaKeySystemMediaCapability[];\n}\n\ninterface MediaKeySystemMediaCapability {\n    contentType?: string;\n    robustness?: string;\n}\n\ninterface MediaQueryListEventInit extends EventInit {\n    matches?: boolean;\n    media?: string;\n}\n\ninterface MediaStreamAudioSourceOptions {\n    mediaStream: MediaStream;\n}\n\ninterface MediaStreamConstraints {\n    audio?: boolean | MediaTrackConstraints;\n    peerIdentity?: string;\n    video?: boolean | MediaTrackConstraints;\n}\n\ninterface MediaStreamErrorEventInit extends EventInit {\n    error?: MediaStreamError | null;\n}\n\ninterface MediaStreamEventInit extends EventInit {\n    stream?: MediaStream;\n}\n\ninterface MediaStreamTrackAudioSourceOptions {\n    mediaStreamTrack: MediaStreamTrack;\n}\n\ninterface MediaStreamTrackEventInit extends EventInit {\n    track?: MediaStreamTrack | null;\n}\n\ninterface MediaTrackCapabilities {\n    aspectRatio?: number | DoubleRange;\n    deviceId?: string;\n    echoCancellation?: boolean[];\n    facingMode?: string;\n    frameRate?: number | DoubleRange;\n    groupId?: string;\n    height?: number | LongRange;\n    sampleRate?: number | LongRange;\n    sampleSize?: number | LongRange;\n    volume?: number | DoubleRange;\n    width?: number | LongRange;\n}\n\ninterface MediaTrackConstraintSet {\n    aspectRatio?: number | ConstrainDoubleRange;\n    channelCount?: number | ConstrainLongRange;\n    deviceId?: string | string[] | ConstrainDOMStringParameters;\n    displaySurface?: string | string[] | ConstrainDOMStringParameters;\n    echoCancellation?: boolean | ConstrainBooleanParameters;\n    facingMode?: string | string[] | ConstrainDOMStringParameters;\n    frameRate?: number | ConstrainDoubleRange;\n    groupId?: string | string[] | ConstrainDOMStringParameters;\n    height?: number | ConstrainLongRange;\n    latency?: number | ConstrainDoubleRange;\n    logicalSurface?: boolean | ConstrainBooleanParameters;\n    sampleRate?: number | ConstrainLongRange;\n    sampleSize?: number | ConstrainLongRange;\n    volume?: number | ConstrainDoubleRange;\n    width?: number | ConstrainLongRange;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n    advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n    aspectRatio?: number;\n    deviceId?: string;\n    echoCancellation?: boolean;\n    facingMode?: string;\n    frameRate?: number;\n    groupId?: string;\n    height?: number;\n    sampleRate?: number;\n    sampleSize?: number;\n    volume?: number;\n    width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n    aspectRatio?: boolean;\n    deviceId?: boolean;\n    echoCancellation?: boolean;\n    facingMode?: boolean;\n    frameRate?: boolean;\n    groupId?: boolean;\n    height?: boolean;\n    sampleRate?: boolean;\n    sampleSize?: boolean;\n    volume?: boolean;\n    width?: boolean;\n}\n\ninterface MessageEventInit extends EventInit {\n    data?: any;\n    lastEventId?: string;\n    origin?: string;\n    ports?: MessagePort[];\n    source?: MessageEventSource | null;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n    button?: number;\n    buttons?: number;\n    clientX?: number;\n    clientY?: number;\n    relatedTarget?: EventTarget | null;\n    screenX?: number;\n    screenY?: number;\n}\n\ninterface MutationObserverInit {\n    attributeFilter?: string[];\n    attributeOldValue?: boolean;\n    attributes?: boolean;\n    characterData?: boolean;\n    characterDataOldValue?: boolean;\n    childList?: boolean;\n    subtree?: boolean;\n}\n\ninterface NavigationPreloadState {\n    enabled?: boolean;\n    headerValue?: string;\n}\n\ninterface NotificationAction {\n    action: string;\n    icon?: string;\n    title: string;\n}\n\ninterface NotificationOptions {\n    actions?: NotificationAction[];\n    badge?: string;\n    body?: string;\n    data?: any;\n    dir?: NotificationDirection;\n    icon?: string;\n    image?: string;\n    lang?: string;\n    renotify?: boolean;\n    requireInteraction?: boolean;\n    silent?: boolean;\n    tag?: string;\n    timestamp?: number;\n    vibrate?: VibratePattern;\n}\n\ninterface OfflineAudioCompletionEventInit extends EventInit {\n    renderedBuffer: AudioBuffer;\n}\n\ninterface OfflineAudioContextOptions {\n    length: number;\n    numberOfChannels?: number;\n    sampleRate: number;\n}\n\ninterface OptionalEffectTiming {\n    delay?: number;\n    direction?: PlaybackDirection;\n    duration?: number | string;\n    easing?: string;\n    endDelay?: number;\n    fill?: FillMode;\n    iterationStart?: number;\n    iterations?: number;\n}\n\ninterface OscillatorOptions extends AudioNodeOptions {\n    detune?: number;\n    frequency?: number;\n    periodicWave?: PeriodicWave;\n    type?: OscillatorType;\n}\n\ninterface PannerOptions extends AudioNodeOptions {\n    coneInnerAngle?: number;\n    coneOuterAngle?: number;\n    coneOuterGain?: number;\n    distanceModel?: DistanceModelType;\n    maxDistance?: number;\n    orientationX?: number;\n    orientationY?: number;\n    orientationZ?: number;\n    panningModel?: PanningModelType;\n    positionX?: number;\n    positionY?: number;\n    positionZ?: number;\n    refDistance?: number;\n    rolloffFactor?: number;\n}\n\ninterface PaymentCurrencyAmount {\n    currency: string;\n    currencySystem?: string;\n    value: string;\n}\n\ninterface PaymentDetailsBase {\n    displayItems?: PaymentItem[];\n    modifiers?: PaymentDetailsModifier[];\n    shippingOptions?: PaymentShippingOption[];\n}\n\ninterface PaymentDetailsInit extends PaymentDetailsBase {\n    id?: string;\n    total: PaymentItem;\n}\n\ninterface PaymentDetailsModifier {\n    additionalDisplayItems?: PaymentItem[];\n    data?: any;\n    supportedMethods: string | string[];\n    total?: PaymentItem;\n}\n\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\n    error?: string;\n    total?: PaymentItem;\n}\n\ninterface PaymentItem {\n    amount: PaymentCurrencyAmount;\n    label: string;\n    pending?: boolean;\n}\n\ninterface PaymentMethodData {\n    data?: any;\n    supportedMethods: string | string[];\n}\n\ninterface PaymentOptions {\n    requestPayerEmail?: boolean;\n    requestPayerName?: boolean;\n    requestPayerPhone?: boolean;\n    requestShipping?: boolean;\n    shippingType?: string;\n}\n\ninterface PaymentRequestUpdateEventInit extends EventInit {\n}\n\ninterface PaymentShippingOption {\n    amount: PaymentCurrencyAmount;\n    id: string;\n    label: string;\n    selected?: boolean;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n    iterations: number;\n    salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface PerformanceObserverInit {\n    buffered?: boolean;\n    entryTypes: string[];\n}\n\ninterface PeriodicWaveConstraints {\n    disableNormalization?: boolean;\n}\n\ninterface PeriodicWaveOptions extends PeriodicWaveConstraints {\n    imag?: number[] | Float32Array;\n    real?: number[] | Float32Array;\n}\n\ninterface PointerEventInit extends MouseEventInit {\n    height?: number;\n    isPrimary?: boolean;\n    pointerId?: number;\n    pointerType?: string;\n    pressure?: number;\n    tangentialPressure?: number;\n    tiltX?: number;\n    tiltY?: number;\n    twist?: number;\n    width?: number;\n}\n\ninterface PopStateEventInit extends EventInit {\n    state?: any;\n}\n\ninterface PositionOptions {\n    enableHighAccuracy?: boolean;\n    maximumAge?: number;\n    timeout?: number;\n}\n\ninterface ProgressEventInit extends EventInit {\n    lengthComputable?: boolean;\n    loaded?: number;\n    total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n    promise: Promise<any>;\n    reason?: any;\n}\n\ninterface PropertyIndexedKeyframes extends Record<keyof CSSStyleDeclaration, string | string[]> {\n    composite?: CompositeOperation | (CompositeOperation | null)[];\n    easing?: string | string[];\n    offset?: number | (number | null)[];\n}\n\ninterface PushSubscriptionJSON {\n    endpoint?: string;\n    expirationTime?: number | null;\n    keys?: Record<string, string>;\n}\n\ninterface PushSubscriptionOptionsInit {\n    applicationServerKey?: BufferSource | string | null;\n    userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy {\n    highWaterMark?: number;\n    size?: WritableStreamChunkCallback;\n}\n\ninterface RTCAnswerOptions extends RTCOfferAnswerOptions {\n}\n\ninterface RTCCertificateExpiration {\n    expires?: number;\n}\n\ninterface RTCConfiguration {\n    bundlePolicy?: RTCBundlePolicy;\n    certificates?: RTCCertificate[];\n    iceCandidatePoolSize?: number;\n    iceServers?: RTCIceServer[];\n    iceTransportPolicy?: RTCIceTransportPolicy;\n    peerIdentity?: string;\n    rtcpMuxPolicy?: RTCRtcpMuxPolicy;\n}\n\ninterface RTCDTMFToneChangeEventInit extends EventInit {\n    tone: string;\n}\n\ninterface RTCDataChannelEventInit extends EventInit {\n    channel: RTCDataChannel;\n}\n\ninterface RTCDataChannelInit {\n    id?: number;\n    maxPacketLifeTime?: number;\n    maxRetransmits?: number;\n    negotiated?: boolean;\n    ordered?: boolean;\n    priority?: RTCPriorityType;\n    protocol?: string;\n}\n\ninterface RTCDtlsFingerprint {\n    algorithm?: string;\n    value?: string;\n}\n\ninterface RTCDtlsParameters {\n    fingerprints?: RTCDtlsFingerprint[];\n    role?: RTCDtlsRole;\n}\n\ninterface RTCErrorEventInit extends EventInit {\n    error?: RTCError | null;\n}\n\ninterface RTCIceCandidateAttributes extends RTCStats {\n    addressSourceUrl?: string;\n    candidateType?: RTCStatsIceCandidateType;\n    ipAddress?: string;\n    portNumber?: number;\n    priority?: number;\n    transport?: string;\n}\n\ninterface RTCIceCandidateComplete {\n}\n\ninterface RTCIceCandidateDictionary {\n    foundation?: string;\n    ip?: string;\n    msMTurnSessionId?: string;\n    port?: number;\n    priority?: number;\n    protocol?: RTCIceProtocol;\n    relatedAddress?: string;\n    relatedPort?: number;\n    tcpType?: RTCIceTcpCandidateType;\n    type?: RTCIceCandidateType;\n}\n\ninterface RTCIceCandidateInit {\n    candidate?: string;\n    sdpMLineIndex?: number | null;\n    sdpMid?: string | null;\n    usernameFragment?: string;\n}\n\ninterface RTCIceCandidatePair {\n    local?: RTCIceCandidate;\n    remote?: RTCIceCandidate;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n    availableIncomingBitrate?: number;\n    availableOutgoingBitrate?: number;\n    bytesReceived?: number;\n    bytesSent?: number;\n    localCandidateId?: string;\n    nominated?: boolean;\n    priority?: number;\n    readable?: boolean;\n    remoteCandidateId?: string;\n    roundTripTime?: number;\n    state?: RTCStatsIceCandidatePairState;\n    transportId?: string;\n    writable?: boolean;\n}\n\ninterface RTCIceGatherOptions {\n    gatherPolicy?: RTCIceGatherPolicy;\n    iceservers?: RTCIceServer[];\n}\n\ninterface RTCIceParameters {\n    password?: string;\n    usernameFragment?: string;\n}\n\ninterface RTCIceServer {\n    credential?: string | RTCOAuthCredential;\n    credentialType?: RTCIceCredentialType;\n    urls: string | string[];\n    username?: string;\n}\n\ninterface RTCIdentityProviderOptions {\n    peerIdentity?: string;\n    protocol?: string;\n    usernameHint?: string;\n}\n\ninterface RTCInboundRTPStreamStats extends RTCRTPStreamStats {\n    bytesReceived?: number;\n    fractionLost?: number;\n    jitter?: number;\n    packetsLost?: number;\n    packetsReceived?: number;\n}\n\ninterface RTCMediaStreamTrackStats extends RTCStats {\n    audioLevel?: number;\n    echoReturnLoss?: number;\n    echoReturnLossEnhancement?: number;\n    frameHeight?: number;\n    frameWidth?: number;\n    framesCorrupted?: number;\n    framesDecoded?: number;\n    framesDropped?: number;\n    framesPerSecond?: number;\n    framesReceived?: number;\n    framesSent?: number;\n    remoteSource?: boolean;\n    ssrcIds?: string[];\n    trackIdentifier?: string;\n}\n\ninterface RTCOAuthCredential {\n    accessToken: string;\n    macKey: string;\n}\n\ninterface RTCOfferAnswerOptions {\n    voiceActivityDetection?: boolean;\n}\n\ninterface RTCOfferOptions extends RTCOfferAnswerOptions {\n    iceRestart?: boolean;\n    offerToReceiveAudio?: boolean;\n    offerToReceiveVideo?: boolean;\n}\n\ninterface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {\n    bytesSent?: number;\n    packetsSent?: number;\n    roundTripTime?: number;\n    targetBitrate?: number;\n}\n\ninterface RTCPeerConnectionIceErrorEventInit extends EventInit {\n    errorCode: number;\n    hostCandidate?: string;\n    statusText?: string;\n    url?: string;\n}\n\ninterface RTCPeerConnectionIceEventInit extends EventInit {\n    candidate?: RTCIceCandidate | null;\n    url?: string | null;\n}\n\ninterface RTCRTPStreamStats extends RTCStats {\n    associateStatsId?: string;\n    codecId?: string;\n    firCount?: number;\n    isRemote?: boolean;\n    mediaTrackId?: string;\n    mediaType?: string;\n    nackCount?: number;\n    pliCount?: number;\n    sliCount?: number;\n    ssrc?: string;\n    transportId?: string;\n}\n\ninterface RTCRtcpFeedback {\n    parameter?: string;\n    type?: string;\n}\n\ninterface RTCRtcpParameters {\n    cname?: string;\n    reducedSize?: boolean;\n}\n\ninterface RTCRtpCapabilities {\n    codecs: RTCRtpCodecCapability[];\n    headerExtensions: RTCRtpHeaderExtensionCapability[];\n}\n\ninterface RTCRtpCodecCapability {\n    channels?: number;\n    clockRate: number;\n    mimeType: string;\n    sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodecParameters {\n    channels?: number;\n    clockRate: number;\n    mimeType: string;\n    payloadType: number;\n    sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodingParameters {\n    rid?: string;\n}\n\ninterface RTCRtpContributingSource {\n    audioLevel?: number;\n    source: number;\n    timestamp: number;\n}\n\ninterface RTCRtpDecodingParameters extends RTCRtpCodingParameters {\n}\n\ninterface RTCRtpEncodingParameters extends RTCRtpCodingParameters {\n    active?: boolean;\n    codecPayloadType?: number;\n    dtx?: RTCDtxStatus;\n    maxBitrate?: number;\n    maxFramerate?: number;\n    priority?: RTCPriorityType;\n    ptime?: number;\n    scaleResolutionDownBy?: number;\n}\n\ninterface RTCRtpFecParameters {\n    mechanism?: string;\n    ssrc?: number;\n}\n\ninterface RTCRtpHeaderExtension {\n    kind?: string;\n    preferredEncrypt?: boolean;\n    preferredId?: number;\n    uri?: string;\n}\n\ninterface RTCRtpHeaderExtensionCapability {\n    uri?: string;\n}\n\ninterface RTCRtpHeaderExtensionParameters {\n    encrypted?: boolean;\n    id: number;\n    uri: string;\n}\n\ninterface RTCRtpParameters {\n    codecs: RTCRtpCodecParameters[];\n    headerExtensions: RTCRtpHeaderExtensionParameters[];\n    rtcp: RTCRtcpParameters;\n}\n\ninterface RTCRtpReceiveParameters extends RTCRtpParameters {\n    encodings: RTCRtpDecodingParameters[];\n}\n\ninterface RTCRtpRtxParameters {\n    ssrc?: number;\n}\n\ninterface RTCRtpSendParameters extends RTCRtpParameters {\n    degradationPreference?: RTCDegradationPreference;\n    encodings: RTCRtpEncodingParameters[];\n    transactionId: string;\n}\n\ninterface RTCRtpSynchronizationSource extends RTCRtpContributingSource {\n    voiceActivityFlag?: boolean;\n}\n\ninterface RTCRtpTransceiverInit {\n    direction?: RTCRtpTransceiverDirection;\n    sendEncodings?: RTCRtpEncodingParameters[];\n    streams?: MediaStream[];\n}\n\ninterface RTCRtpUnhandled {\n    muxId?: string;\n    payloadType?: number;\n    ssrc?: number;\n}\n\ninterface RTCSessionDescriptionInit {\n    sdp?: string;\n    type: RTCSdpType;\n}\n\ninterface RTCSrtpKeyParam {\n    keyMethod?: string;\n    keySalt?: string;\n    lifetime?: string;\n    mkiLength?: number;\n    mkiValue?: number;\n}\n\ninterface RTCSrtpSdesParameters {\n    cryptoSuite?: string;\n    keyParams?: RTCSrtpKeyParam[];\n    sessionParams?: string[];\n    tag?: number;\n}\n\ninterface RTCSsrcRange {\n    max?: number;\n    min?: number;\n}\n\ninterface RTCStats {\n    id: string;\n    timestamp: number;\n    type: RTCStatsType;\n}\n\ninterface RTCStatsEventInit extends EventInit {\n    report: RTCStatsReport;\n}\n\ninterface RTCStatsReport {\n}\n\ninterface RTCTrackEventInit extends EventInit {\n    receiver: RTCRtpReceiver;\n    streams?: MediaStream[];\n    track: MediaStreamTrack;\n    transceiver: RTCRtpTransceiver;\n}\n\ninterface RTCTransportStats extends RTCStats {\n    activeConnection?: boolean;\n    bytesReceived?: number;\n    bytesSent?: number;\n    localCertificateId?: string;\n    remoteCertificateId?: string;\n    rtcpTransportStatsId?: string;\n    selectedCandidatePairId?: string;\n}\n\ninterface RegistrationOptions {\n    scope?: string;\n    type?: WorkerType;\n    updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface RequestInit {\n    body?: BodyInit | null;\n    cache?: RequestCache;\n    credentials?: RequestCredentials;\n    headers?: HeadersInit;\n    integrity?: string;\n    keepalive?: boolean;\n    method?: string;\n    mode?: RequestMode;\n    redirect?: RequestRedirect;\n    referrer?: string;\n    referrerPolicy?: ReferrerPolicy;\n    signal?: AbortSignal | null;\n    window?: any;\n}\n\ninterface ResponseInit {\n    headers?: HeadersInit;\n    status?: number;\n    statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n    hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {\n    hash: KeyAlgorithm;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n    hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyAlgorithm extends KeyAlgorithm {\n    modulusLength: number;\n    publicExponent: BigInteger;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n    modulusLength: number;\n    publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n    label?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface RsaOtherPrimesInfo {\n    d?: string;\n    r?: string;\n    t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n    saltLength: number;\n}\n\ninterface SVGBoundingBoxOptions {\n    clipped?: boolean;\n    fill?: boolean;\n    markers?: boolean;\n    stroke?: boolean;\n}\n\ninterface ScopedCredentialDescriptor {\n    id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n    transports?: Transport[];\n    type: ScopedCredentialType;\n}\n\ninterface ScopedCredentialOptions {\n    excludeList?: ScopedCredentialDescriptor[];\n    extensions?: WebAuthnExtensions;\n    rpId?: string;\n    timeoutSeconds?: number;\n}\n\ninterface ScopedCredentialParameters {\n    algorithm: string | Algorithm;\n    type: ScopedCredentialType;\n}\n\ninterface ScrollIntoViewOptions extends ScrollOptions {\n    block?: ScrollLogicalPosition;\n    inline?: ScrollLogicalPosition;\n}\n\ninterface ScrollOptions {\n    behavior?: ScrollBehavior;\n}\n\ninterface ScrollToOptions extends ScrollOptions {\n    left?: number;\n    top?: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n    blockedURI?: string;\n    columnNumber?: number;\n    documentURI?: string;\n    effectiveDirective?: string;\n    lineNumber?: number;\n    originalPolicy?: string;\n    referrer?: string;\n    sourceFile?: string;\n    statusCode?: number;\n    violatedDirective?: string;\n}\n\ninterface ServiceWorkerMessageEventInit extends EventInit {\n    data?: any;\n    lastEventId?: string;\n    origin?: string;\n    ports?: MessagePort[] | null;\n    source?: ServiceWorker | MessagePort | null;\n}\n\ninterface StereoPannerOptions extends AudioNodeOptions {\n    pan?: number;\n}\n\ninterface StorageEstimate {\n    quota?: number;\n    usage?: number;\n}\n\ninterface StorageEventInit extends EventInit {\n    key?: string | null;\n    newValue?: string | null;\n    oldValue?: string | null;\n    storageArea?: Storage | null;\n    url?: string;\n}\n\ninterface StoreExceptionsInformation extends ExceptionInformation {\n    detailURI?: string | null;\n    explanationString?: string | null;\n    siteName?: string | null;\n}\n\ninterface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {\n    arrayOfDomainStrings?: string[];\n}\n\ninterface TextDecodeOptions {\n    stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n    fatal?: boolean;\n    ignoreBOM?: boolean;\n}\n\ninterface TouchEventInit extends EventModifierInit {\n    changedTouches?: Touch[];\n    targetTouches?: Touch[];\n    touches?: Touch[];\n}\n\ninterface TouchInit {\n    altitudeAngle?: number;\n    azimuthAngle?: number;\n    clientX?: number;\n    clientY?: number;\n    force?: number;\n    identifier: number;\n    pageX?: number;\n    pageY?: number;\n    radiusX?: number;\n    radiusY?: number;\n    rotationAngle?: number;\n    screenX?: number;\n    screenY?: number;\n    target: EventTarget;\n    touchType?: TouchType;\n}\n\ninterface TrackEventInit extends EventInit {\n    track?: VideoTrack | AudioTrack | TextTrack | null;\n}\n\ninterface TransitionEventInit extends EventInit {\n    elapsedTime?: number;\n    propertyName?: string;\n    pseudoElement?: string;\n}\n\ninterface UIEventInit extends EventInit {\n    detail?: number;\n    view?: Window | null;\n}\n\ninterface UnderlyingSink {\n    abort?: WritableStreamErrorCallback;\n    close?: WritableStreamDefaultControllerCallback;\n    start: WritableStreamDefaultControllerCallback;\n    write?: WritableStreamChunkCallback;\n}\n\ninterface VRDisplayEventInit extends EventInit {\n    display: VRDisplay;\n    reason?: VRDisplayEventReason;\n}\n\ninterface VRLayer {\n    leftBounds?: number[] | Float32Array | null;\n    rightBounds?: number[] | Float32Array | null;\n    source?: HTMLCanvasElement | null;\n}\n\ninterface VRStageParameters {\n    sittingToStandingTransform?: Float32Array;\n    sizeX?: number;\n    sizeY?: number;\n}\n\ninterface WaveShaperOptions extends AudioNodeOptions {\n    curve?: number[] | Float32Array;\n    oversample?: OverSampleType;\n}\n\ninterface WebAuthnExtensions {\n}\n\ninterface WebGLContextAttributes {\n    alpha?: GLboolean;\n    antialias?: GLboolean;\n    depth?: GLboolean;\n    failIfMajorPerformanceCaveat?: boolean;\n    powerPreference?: WebGLPowerPreference;\n    premultipliedAlpha?: GLboolean;\n    preserveDrawingBuffer?: GLboolean;\n    stencil?: GLboolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n    statusMessage?: string;\n}\n\ninterface WheelEventInit extends MouseEventInit {\n    deltaMode?: number;\n    deltaX?: number;\n    deltaY?: number;\n    deltaZ?: number;\n}\n\ninterface WorkletOptions {\n    credentials?: RequestCredentials;\n}\n\ninterface EventListener {\n    (evt: Event): void;\n}\n\ninterface ANGLE_instanced_arrays {\n    drawArraysInstancedANGLE(mode: number, first: number, count: number, primcount: number): void;\n    drawElementsInstancedANGLE(mode: number, count: number, type: number, offset: number, primcount: number): void;\n    vertexAttribDivisorANGLE(index: number, divisor: number): void;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;\n}\n\ndeclare var ANGLE_instanced_arrays: {\n    prototype: ANGLE_instanced_arrays;\n    new(): ANGLE_instanced_arrays;\n    readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: number;\n};\n\ninterface AbortController {\n    /**\n     * Returns the AbortSignal object associated with this object.\n     */\n    readonly signal: AbortSignal;\n    /**\n     * Invoking this method will set this object\'s AbortSignal\'s aborted flag and\n     * signal to any observers that the associated activity is to be aborted.\n     */\n    abort(): void;\n}\n\ndeclare var AbortController: {\n    prototype: AbortController;\n    new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n    "abort": ProgressEvent;\n}\n\ninterface AbortSignal extends EventTarget {\n    /**\n     * Returns true if this AbortSignal\'s AbortController has signaled to abort, and false\n     * otherwise.\n     */\n    readonly aborted: boolean;\n    onabort: ((this: AbortSignal, ev: ProgressEvent) => any) | null;\n    addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n    prototype: AbortSignal;\n    new(): AbortSignal;\n};\n\ninterface AbstractRange {\n    readonly collapsed: boolean;\n    readonly endContainer: Node;\n    readonly endOffset: number;\n    readonly startContainer: Node;\n    readonly startOffset: number;\n}\n\ndeclare var AbstractRange: {\n    prototype: AbstractRange;\n    new(): AbstractRange;\n};\n\ninterface AbstractWorkerEventMap {\n    "error": ErrorEvent;\n}\n\ninterface AbstractWorker {\n    onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n    addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface AesCfbParams extends Algorithm {\n    iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface AesCmacParams extends Algorithm {\n    length: number;\n}\n\ninterface AnalyserNode extends AudioNode {\n    fftSize: number;\n    readonly frequencyBinCount: number;\n    maxDecibels: number;\n    minDecibels: number;\n    smoothingTimeConstant: number;\n    getByteFrequencyData(array: Uint8Array): void;\n    getByteTimeDomainData(array: Uint8Array): void;\n    getFloatFrequencyData(array: Float32Array): void;\n    getFloatTimeDomainData(array: Float32Array): void;\n}\n\ndeclare var AnalyserNode: {\n    prototype: AnalyserNode;\n    new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;\n};\n\ninterface Animatable {\n    animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;\n    getAnimations(): Animation[];\n}\n\ninterface AnimationEventMap {\n    "cancel": AnimationPlaybackEvent;\n    "finish": AnimationPlaybackEvent;\n}\n\ninterface Animation extends EventTarget {\n    currentTime: number | null;\n    effect: AnimationEffect | null;\n    readonly finished: Promise<Animation>;\n    id: string;\n    oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n    onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n    readonly pending: boolean;\n    readonly playState: AnimationPlayState;\n    playbackRate: number;\n    readonly ready: Promise<Animation>;\n    startTime: number | null;\n    timeline: AnimationTimeline | null;\n    cancel(): void;\n    finish(): void;\n    pause(): void;\n    play(): void;\n    reverse(): void;\n    updatePlaybackRate(playbackRate: number): void;\n    addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Animation: {\n    prototype: Animation;\n    new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;\n};\n\ninterface AnimationEffect {\n    getComputedTiming(): ComputedEffectTiming;\n    getTiming(): EffectTiming;\n    updateTiming(timing?: OptionalEffectTiming): void;\n}\n\ndeclare var AnimationEffect: {\n    prototype: AnimationEffect;\n    new(): AnimationEffect;\n};\n\ninterface AnimationEvent extends Event {\n    readonly animationName: string;\n    readonly elapsedTime: number;\n    readonly pseudoElement: string;\n}\n\ndeclare var AnimationEvent: {\n    prototype: AnimationEvent;\n    new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;\n};\n\ninterface AnimationPlaybackEvent extends Event {\n    readonly currentTime: number | null;\n    readonly timelineTime: number | null;\n}\n\ndeclare var AnimationPlaybackEvent: {\n    prototype: AnimationPlaybackEvent;\n    new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\n};\n\ninterface AnimationTimeline {\n    readonly currentTime: number | null;\n}\n\ndeclare var AnimationTimeline: {\n    prototype: AnimationTimeline;\n    new(): AnimationTimeline;\n};\n\ninterface ApplicationCacheEventMap {\n    "cached": Event;\n    "checking": Event;\n    "downloading": Event;\n    "error": Event;\n    "noupdate": Event;\n    "obsolete": Event;\n    "progress": ProgressEvent;\n    "updateready": Event;\n}\n\ninterface ApplicationCache extends EventTarget {\n    /** @deprecated */\n    oncached: ((this: ApplicationCache, ev: Event) => any) | null;\n    /** @deprecated */\n    onchecking: ((this: ApplicationCache, ev: Event) => any) | null;\n    /** @deprecated */\n    ondownloading: ((this: ApplicationCache, ev: Event) => any) | null;\n    /** @deprecated */\n    onerror: ((this: ApplicationCache, ev: Event) => any) | null;\n    /** @deprecated */\n    onnoupdate: ((this: ApplicationCache, ev: Event) => any) | null;\n    /** @deprecated */\n    onobsolete: ((this: ApplicationCache, ev: Event) => any) | null;\n    /** @deprecated */\n    onprogress: ((this: ApplicationCache, ev: ProgressEvent) => any) | null;\n    /** @deprecated */\n    onupdateready: ((this: ApplicationCache, ev: Event) => any) | null;\n    /** @deprecated */\n    readonly status: number;\n    /** @deprecated */\n    abort(): void;\n    /** @deprecated */\n    swapCache(): void;\n    /** @deprecated */\n    update(): void;\n    readonly CHECKING: number;\n    readonly DOWNLOADING: number;\n    readonly IDLE: number;\n    readonly OBSOLETE: number;\n    readonly UNCACHED: number;\n    readonly UPDATEREADY: number;\n    addEventListener<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ApplicationCacheEventMap>(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ApplicationCache: {\n    prototype: ApplicationCache;\n    new(): ApplicationCache;\n    readonly CHECKING: number;\n    readonly DOWNLOADING: number;\n    readonly IDLE: number;\n    readonly OBSOLETE: number;\n    readonly UNCACHED: number;\n    readonly UPDATEREADY: number;\n};\n\ninterface Attr extends Node {\n    readonly localName: string;\n    readonly name: string;\n    readonly namespaceURI: string | null;\n    readonly ownerElement: Element | null;\n    readonly prefix: string | null;\n    readonly specified: boolean;\n    value: string;\n}\n\ndeclare var Attr: {\n    prototype: Attr;\n    new(): Attr;\n};\n\ninterface AudioBuffer {\n    readonly duration: number;\n    readonly length: number;\n    readonly numberOfChannels: number;\n    readonly sampleRate: number;\n    copyFromChannel(destination: Float32Array, channelNumber: number, startInChannel?: number): void;\n    copyToChannel(source: Float32Array, channelNumber: number, startInChannel?: number): void;\n    getChannelData(channel: number): Float32Array;\n}\n\ndeclare var AudioBuffer: {\n    prototype: AudioBuffer;\n    new(options: AudioBufferOptions): AudioBuffer;\n};\n\ninterface AudioBufferSourceNode extends AudioScheduledSourceNode {\n    buffer: AudioBuffer | null;\n    readonly detune: AudioParam;\n    loop: boolean;\n    loopEnd: number;\n    loopStart: number;\n    readonly playbackRate: AudioParam;\n    start(when?: number, offset?: number, duration?: number): void;\n    addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioBufferSourceNode: {\n    prototype: AudioBufferSourceNode;\n    new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;\n};\n\ninterface AudioContext extends BaseAudioContext {\n    readonly baseLatency: number;\n    readonly outputLatency: number;\n    close(): Promise<void>;\n    createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n    createMediaStreamDestination(): MediaStreamAudioDestinationNode;\n    createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n    createMediaStreamTrackSource(mediaStreamTrack: MediaStreamTrack): MediaStreamTrackAudioSourceNode;\n    getOutputTimestamp(): AudioTimestamp;\n    suspend(): Promise<void>;\n    addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioContext: {\n    prototype: AudioContext;\n    new(contextOptions?: AudioContextOptions): AudioContext;\n};\n\ninterface AudioDestinationNode extends AudioNode {\n    readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n    prototype: AudioDestinationNode;\n    new(): AudioDestinationNode;\n};\n\ninterface AudioListener {\n    readonly forwardX: AudioParam;\n    readonly forwardY: AudioParam;\n    readonly forwardZ: AudioParam;\n    readonly positionX: AudioParam;\n    readonly positionY: AudioParam;\n    readonly positionZ: AudioParam;\n    readonly upX: AudioParam;\n    readonly upY: AudioParam;\n    readonly upZ: AudioParam;\n    /** @deprecated */\n    setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;\n    /** @deprecated */\n    setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var AudioListener: {\n    prototype: AudioListener;\n    new(): AudioListener;\n};\n\ninterface AudioNode extends EventTarget {\n    channelCount: number;\n    channelCountMode: ChannelCountMode;\n    channelInterpretation: ChannelInterpretation;\n    readonly context: BaseAudioContext;\n    readonly numberOfInputs: number;\n    readonly numberOfOutputs: number;\n    connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;\n    connect(destinationParam: AudioParam, output?: number): void;\n    disconnect(): void;\n    disconnect(output: number): void;\n    disconnect(destinationNode: AudioNode): void;\n    disconnect(destinationNode: AudioNode, output: number): void;\n    disconnect(destinationNode: AudioNode, output: number, input: number): void;\n    disconnect(destinationParam: AudioParam): void;\n    disconnect(destinationParam: AudioParam, output: number): void;\n}\n\ndeclare var AudioNode: {\n    prototype: AudioNode;\n    new(): AudioNode;\n};\n\ninterface AudioParam {\n    automationRate: AutomationRate;\n    readonly defaultValue: number;\n    readonly maxValue: number;\n    readonly minValue: number;\n    value: number;\n    cancelAndHoldAtTime(cancelTime: number): AudioParam;\n    cancelScheduledValues(cancelTime: number): AudioParam;\n    exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;\n    linearRampToValueAtTime(value: number, endTime: number): AudioParam;\n    setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;\n    setValueAtTime(value: number, startTime: number): AudioParam;\n    setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;\n}\n\ndeclare var AudioParam: {\n    prototype: AudioParam;\n    new(): AudioParam;\n};\n\ninterface AudioParamMap {\n    forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;\n}\n\ndeclare var AudioParamMap: {\n    prototype: AudioParamMap;\n    new(): AudioParamMap;\n};\n\ninterface AudioProcessingEvent extends Event {\n    readonly inputBuffer: AudioBuffer;\n    readonly outputBuffer: AudioBuffer;\n    readonly playbackTime: number;\n}\n\ndeclare var AudioProcessingEvent: {\n    prototype: AudioProcessingEvent;\n    new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;\n};\n\ninterface AudioScheduledSourceNodeEventMap {\n    "ended": Event;\n}\n\ninterface AudioScheduledSourceNode extends AudioNode {\n    onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;\n    start(when?: number): void;\n    stop(when?: number): void;\n    addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioScheduledSourceNode: {\n    prototype: AudioScheduledSourceNode;\n    new(): AudioScheduledSourceNode;\n};\n\ninterface AudioTrack {\n    enabled: boolean;\n    readonly id: string;\n    kind: string;\n    readonly label: string;\n    language: string;\n    readonly sourceBuffer: SourceBuffer;\n}\n\ndeclare var AudioTrack: {\n    prototype: AudioTrack;\n    new(): AudioTrack;\n};\n\ninterface AudioTrackListEventMap {\n    "addtrack": TrackEvent;\n    "change": Event;\n    "removetrack": TrackEvent;\n}\n\ninterface AudioTrackList extends EventTarget {\n    readonly length: number;\n    onaddtrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null;\n    onchange: ((this: AudioTrackList, ev: Event) => any) | null;\n    onremovetrack: ((this: AudioTrackList, ev: TrackEvent) => any) | null;\n    getTrackById(id: string): AudioTrack | null;\n    item(index: number): AudioTrack;\n    addEventListener<K extends keyof AudioTrackListEventMap>(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AudioTrackListEventMap>(type: K, listener: (this: AudioTrackList, ev: AudioTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n    [index: number]: AudioTrack;\n}\n\ndeclare var AudioTrackList: {\n    prototype: AudioTrackList;\n    new(): AudioTrackList;\n};\n\ninterface AudioWorklet extends Worklet {\n}\n\ndeclare var AudioWorklet: {\n    prototype: AudioWorklet;\n    new(): AudioWorklet;\n};\n\ninterface AudioWorkletNodeEventMap {\n    "processorerror": Event;\n}\n\ninterface AudioWorkletNode extends AudioNode {\n    onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;\n    readonly parameters: AudioParamMap;\n    readonly port: MessagePort;\n    addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioWorkletNode: {\n    prototype: AudioWorkletNode;\n    new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;\n};\n\ninterface BarProp {\n    readonly visible: boolean;\n}\n\ndeclare var BarProp: {\n    prototype: BarProp;\n    new(): BarProp;\n};\n\ninterface BaseAudioContextEventMap {\n    "statechange": Event;\n}\n\ninterface BaseAudioContext extends EventTarget {\n    readonly audioWorklet: AudioWorklet;\n    readonly currentTime: number;\n    readonly destination: AudioDestinationNode;\n    readonly listener: AudioListener;\n    onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;\n    readonly sampleRate: number;\n    readonly state: AudioContextState;\n    createAnalyser(): AnalyserNode;\n    createBiquadFilter(): BiquadFilterNode;\n    createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;\n    createBufferSource(): AudioBufferSourceNode;\n    createChannelMerger(numberOfInputs?: number): ChannelMergerNode;\n    createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;\n    createConstantSource(): ConstantSourceNode;\n    createConvolver(): ConvolverNode;\n    createDelay(maxDelayTime?: number): DelayNode;\n    createDynamicsCompressor(): DynamicsCompressorNode;\n    createGain(): GainNode;\n    createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;\n    createOscillator(): OscillatorNode;\n    createPanner(): PannerNode;\n    createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;\n    createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;\n    createStereoPanner(): StereoPannerNode;\n    createWaveShaper(): WaveShaperNode;\n    decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;\n    resume(): Promise<void>;\n    addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BaseAudioContext: {\n    prototype: BaseAudioContext;\n    new(): BaseAudioContext;\n};\n\ninterface BeforeUnloadEvent extends Event {\n    returnValue: any;\n}\n\ndeclare var BeforeUnloadEvent: {\n    prototype: BeforeUnloadEvent;\n    new(): BeforeUnloadEvent;\n};\n\ninterface BhxBrowser {\n    readonly lastError: DOMException;\n    checkMatchesGlobExpression(pattern: string, value: string): boolean;\n    checkMatchesUriExpression(pattern: string, value: string): boolean;\n    clearLastError(): void;\n    currentWindowId(): number;\n    fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;\n    genericFunction(functionId: number, destination: any, parameters?: string, callbackId?: number): void;\n    genericSynchronousFunction(functionId: number, parameters?: string): string;\n    getExtensionId(): string;\n    getThisAddress(): any;\n    registerGenericFunctionCallbackHandler(callbackHandler: Function): void;\n    registerGenericListenerHandler(eventHandler: Function): void;\n    setLastError(parameters: string): void;\n    webPlatformGenericFunction(destination: any, parameters?: string, callbackId?: number): void;\n}\n\ndeclare var BhxBrowser: {\n    prototype: BhxBrowser;\n    new(): BhxBrowser;\n};\n\ninterface BiquadFilterNode extends AudioNode {\n    readonly Q: AudioParam;\n    readonly detune: AudioParam;\n    readonly frequency: AudioParam;\n    readonly gain: AudioParam;\n    type: BiquadFilterType;\n    getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var BiquadFilterNode: {\n    prototype: BiquadFilterNode;\n    new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;\n};\n\ninterface Blob {\n    readonly size: number;\n    readonly type: string;\n    slice(start?: number, end?: number, contentType?: string): Blob;\n}\n\ndeclare var Blob: {\n    prototype: Blob;\n    new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\ninterface Body {\n    readonly body: ReadableStream | null;\n    readonly bodyUsed: boolean;\n    arrayBuffer(): Promise<ArrayBuffer>;\n    blob(): Promise<Blob>;\n    formData(): Promise<FormData>;\n    json(): Promise<any>;\n    text(): Promise<string>;\n}\n\ninterface BroadcastChannelEventMap {\n    "message": MessageEvent;\n    "messageerror": MessageEvent;\n}\n\ninterface BroadcastChannel extends EventTarget {\n    /**\n     * Returns the channel name (as passed to the constructor).\n     */\n    readonly name: string;\n    onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n    /**\n     * Closes the BroadcastChannel object, opening it up to garbage collection.\n     */\n    close(): void;\n    /**\n     * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.\n     */\n    postMessage(message: any): void;\n    addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BroadcastChannel: {\n    prototype: BroadcastChannel;\n    new(name: string): BroadcastChannel;\n};\n\ninterface BroadcastChannelEventMap {\n    message: MessageEvent;\n    messageerror: MessageEvent;\n}\n\ninterface ByteLengthQueuingStrategy {\n    highWaterMark: number;\n    size(chunk?: any): number;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n    prototype: ByteLengthQueuingStrategy;\n    new(strategy: QueuingStrategy): ByteLengthQueuingStrategy;\n};\n\ninterface CDATASection extends Text {\n}\n\ndeclare var CDATASection: {\n    prototype: CDATASection;\n    new(): CDATASection;\n};\n\ninterface CSS {\n    escape(value: string): string;\n    supports(property: string, value?: string): boolean;\n}\ndeclare var CSS: CSS;\n\ninterface CSSConditionRule extends CSSGroupingRule {\n    conditionText: string;\n}\n\ndeclare var CSSConditionRule: {\n    prototype: CSSConditionRule;\n    new(): CSSConditionRule;\n};\n\ninterface CSSFontFaceRule extends CSSRule {\n    readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSFontFaceRule: {\n    prototype: CSSFontFaceRule;\n    new(): CSSFontFaceRule;\n};\n\ninterface CSSGroupingRule extends CSSRule {\n    readonly cssRules: CSSRuleList;\n    deleteRule(index: number): void;\n    insertRule(rule: string, index: number): number;\n}\n\ndeclare var CSSGroupingRule: {\n    prototype: CSSGroupingRule;\n    new(): CSSGroupingRule;\n};\n\ninterface CSSImportRule extends CSSRule {\n    readonly href: string;\n    readonly media: MediaList;\n    readonly styleSheet: CSSStyleSheet;\n}\n\ndeclare var CSSImportRule: {\n    prototype: CSSImportRule;\n    new(): CSSImportRule;\n};\n\ninterface CSSKeyframeRule extends CSSRule {\n    keyText: string;\n    readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSKeyframeRule: {\n    prototype: CSSKeyframeRule;\n    new(): CSSKeyframeRule;\n};\n\ninterface CSSKeyframesRule extends CSSRule {\n    readonly cssRules: CSSRuleList;\n    name: string;\n    appendRule(rule: string): void;\n    deleteRule(select: string): void;\n    findRule(select: string): CSSKeyframeRule | null;\n}\n\ndeclare var CSSKeyframesRule: {\n    prototype: CSSKeyframesRule;\n    new(): CSSKeyframesRule;\n};\n\ninterface CSSMediaRule extends CSSConditionRule {\n    readonly media: MediaList;\n}\n\ndeclare var CSSMediaRule: {\n    prototype: CSSMediaRule;\n    new(): CSSMediaRule;\n};\n\ninterface CSSNamespaceRule extends CSSRule {\n    readonly namespaceURI: string;\n    readonly prefix: string;\n}\n\ndeclare var CSSNamespaceRule: {\n    prototype: CSSNamespaceRule;\n    new(): CSSNamespaceRule;\n};\n\ninterface CSSPageRule extends CSSRule {\n    readonly pseudoClass: string;\n    readonly selector: string;\n    selectorText: string;\n    readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSPageRule: {\n    prototype: CSSPageRule;\n    new(): CSSPageRule;\n};\n\ninterface CSSRule {\n    cssText: string;\n    readonly parentRule: CSSRule | null;\n    readonly parentStyleSheet: CSSStyleSheet | null;\n    readonly type: number;\n    readonly CHARSET_RULE: number;\n    readonly FONT_FACE_RULE: number;\n    readonly IMPORT_RULE: number;\n    readonly KEYFRAMES_RULE: number;\n    readonly KEYFRAME_RULE: number;\n    readonly MEDIA_RULE: number;\n    readonly NAMESPACE_RULE: number;\n    readonly PAGE_RULE: number;\n    readonly STYLE_RULE: number;\n    readonly SUPPORTS_RULE: number;\n    readonly UNKNOWN_RULE: number;\n    readonly VIEWPORT_RULE: number;\n}\n\ndeclare var CSSRule: {\n    prototype: CSSRule;\n    new(): CSSRule;\n    readonly CHARSET_RULE: number;\n    readonly FONT_FACE_RULE: number;\n    readonly IMPORT_RULE: number;\n    readonly KEYFRAMES_RULE: number;\n    readonly KEYFRAME_RULE: number;\n    readonly MEDIA_RULE: number;\n    readonly NAMESPACE_RULE: number;\n    readonly PAGE_RULE: number;\n    readonly STYLE_RULE: number;\n    readonly SUPPORTS_RULE: number;\n    readonly UNKNOWN_RULE: number;\n    readonly VIEWPORT_RULE: number;\n};\n\ninterface CSSRuleList {\n    readonly length: number;\n    item(index: number): CSSRule | null;\n    [index: number]: CSSRule;\n}\n\ndeclare var CSSRuleList: {\n    prototype: CSSRuleList;\n    new(): CSSRuleList;\n};\n\ninterface CSSStyleDeclaration {\n    alignContent: string | null;\n    alignItems: string | null;\n    alignSelf: string | null;\n    alignmentBaseline: string | null;\n    animation: string | null;\n    animationDelay: string | null;\n    animationDirection: string | null;\n    animationDuration: string | null;\n    animationFillMode: string | null;\n    animationIterationCount: string | null;\n    animationName: string | null;\n    animationPlayState: string | null;\n    animationTimingFunction: string | null;\n    backfaceVisibility: string | null;\n    background: string | null;\n    backgroundAttachment: string | null;\n    backgroundClip: string | null;\n    backgroundColor: string | null;\n    backgroundImage: string | null;\n    backgroundOrigin: string | null;\n    backgroundPosition: string | null;\n    backgroundPositionX: string | null;\n    backgroundPositionY: string | null;\n    backgroundRepeat: string | null;\n    backgroundSize: string | null;\n    baselineShift: string | null;\n    border: string | null;\n    borderBottom: string | null;\n    borderBottomColor: string | null;\n    borderBottomLeftRadius: string | null;\n    borderBottomRightRadius: string | null;\n    borderBottomStyle: string | null;\n    borderBottomWidth: string | null;\n    borderCollapse: string | null;\n    borderColor: string | null;\n    borderImage: string | null;\n    borderImageOutset: string | null;\n    borderImageRepeat: string | null;\n    borderImageSlice: string | null;\n    borderImageSource: string | null;\n    borderImageWidth: string | null;\n    borderLeft: string | null;\n    borderLeftColor: string | null;\n    borderLeftStyle: string | null;\n    borderLeftWidth: string | null;\n    borderRadius: string | null;\n    borderRight: string | null;\n    borderRightColor: string | null;\n    borderRightStyle: string | null;\n    borderRightWidth: string | null;\n    borderSpacing: string | null;\n    borderStyle: string | null;\n    borderTop: string | null;\n    borderTopColor: string | null;\n    borderTopLeftRadius: string | null;\n    borderTopRightRadius: string | null;\n    borderTopStyle: string | null;\n    borderTopWidth: string | null;\n    borderWidth: string | null;\n    bottom: string | null;\n    boxShadow: string | null;\n    boxSizing: string | null;\n    breakAfter: string | null;\n    breakBefore: string | null;\n    breakInside: string | null;\n    captionSide: string | null;\n    clear: string | null;\n    clip: string | null;\n    clipPath: string | null;\n    clipRule: string | null;\n    color: string | null;\n    colorInterpolationFilters: string | null;\n    columnCount: any;\n    columnFill: string | null;\n    columnGap: any;\n    columnRule: string | null;\n    columnRuleColor: any;\n    columnRuleStyle: string | null;\n    columnRuleWidth: any;\n    columnSpan: string | null;\n    columnWidth: any;\n    columns: string | null;\n    content: string | null;\n    counterIncrement: string | null;\n    counterReset: string | null;\n    cssFloat: string | null;\n    cssText: string;\n    cursor: string | null;\n    direction: string | null;\n    display: string | null;\n    dominantBaseline: string | null;\n    emptyCells: string | null;\n    enableBackground: string | null;\n    fill: string | null;\n    fillOpacity: string | null;\n    fillRule: string | null;\n    filter: string | null;\n    flex: string | null;\n    flexBasis: string | null;\n    flexDirection: string | null;\n    flexFlow: string | null;\n    flexGrow: string | null;\n    flexShrink: string | null;\n    flexWrap: string | null;\n    floodColor: string | null;\n    floodOpacity: string | null;\n    font: string | null;\n    fontFamily: string | null;\n    fontFeatureSettings: string | null;\n    fontSize: string | null;\n    fontSizeAdjust: string | null;\n    fontStretch: string | null;\n    fontStyle: string | null;\n    fontVariant: string | null;\n    fontWeight: string | null;\n    gap: string | null;\n    glyphOrientationHorizontal: string | null;\n    glyphOrientationVertical: string | null;\n    grid: string | null;\n    gridArea: string | null;\n    gridAutoColumns: string | null;\n    gridAutoFlow: string | null;\n    gridAutoRows: string | null;\n    gridColumn: string | null;\n    gridColumnEnd: string | null;\n    gridColumnGap: string | null;\n    gridColumnStart: string | null;\n    gridGap: string | null;\n    gridRow: string | null;\n    gridRowEnd: string | null;\n    gridRowGap: string | null;\n    gridRowStart: string | null;\n    gridTemplate: string | null;\n    gridTemplateAreas: string | null;\n    gridTemplateColumns: string | null;\n    gridTemplateRows: string | null;\n    height: string | null;\n    imeMode: string | null;\n    justifyContent: string | null;\n    justifyItems: string | null;\n    justifySelf: string | null;\n    kerning: string | null;\n    layoutGrid: string | null;\n    layoutGridChar: string | null;\n    layoutGridLine: string | null;\n    layoutGridMode: string | null;\n    layoutGridType: string | null;\n    left: string | null;\n    readonly length: number;\n    letterSpacing: string | null;\n    lightingColor: string | null;\n    lineBreak: string | null;\n    lineHeight: string | null;\n    listStyle: string | null;\n    listStyleImage: string | null;\n    listStylePosition: string | null;\n    listStyleType: string | null;\n    margin: string | null;\n    marginBottom: string | null;\n    marginLeft: string | null;\n    marginRight: string | null;\n    marginTop: string | null;\n    marker: string | null;\n    markerEnd: string | null;\n    markerMid: string | null;\n    markerStart: string | null;\n    mask: string | null;\n    maskImage: string | null;\n    maxHeight: string | null;\n    maxWidth: string | null;\n    minHeight: string | null;\n    minWidth: string | null;\n    msContentZoomChaining: string | null;\n    msContentZoomLimit: string | null;\n    msContentZoomLimitMax: any;\n    msContentZoomLimitMin: any;\n    msContentZoomSnap: string | null;\n    msContentZoomSnapPoints: string | null;\n    msContentZoomSnapType: string | null;\n    msContentZooming: string | null;\n    msFlowFrom: string | null;\n    msFlowInto: string | null;\n    msFontFeatureSettings: string | null;\n    msGridColumn: any;\n    msGridColumnAlign: string | null;\n    msGridColumnSpan: any;\n    msGridColumns: string | null;\n    msGridRow: any;\n    msGridRowAlign: string | null;\n    msGridRowSpan: any;\n    msGridRows: string | null;\n    msHighContrastAdjust: string | null;\n    msHyphenateLimitChars: string | null;\n    msHyphenateLimitLines: any;\n    msHyphenateLimitZone: any;\n    msHyphens: string | null;\n    msImeAlign: string | null;\n    msOverflowStyle: string | null;\n    msScrollChaining: string | null;\n    msScrollLimit: string | null;\n    msScrollLimitXMax: any;\n    msScrollLimitXMin: any;\n    msScrollLimitYMax: any;\n    msScrollLimitYMin: any;\n    msScrollRails: string | null;\n    msScrollSnapPointsX: string | null;\n    msScrollSnapPointsY: string | null;\n    msScrollSnapType: string | null;\n    msScrollSnapX: string | null;\n    msScrollSnapY: string | null;\n    msScrollTranslation: string | null;\n    msTextCombineHorizontal: string | null;\n    msTextSizeAdjust: any;\n    msTouchAction: string | null;\n    msTouchSelect: string | null;\n    msUserSelect: string | null;\n    msWrapFlow: string;\n    msWrapMargin: any;\n    msWrapThrough: string;\n    objectFit: string | null;\n    objectPosition: string | null;\n    opacity: string | null;\n    order: string | null;\n    orphans: string | null;\n    outline: string | null;\n    outlineColor: string | null;\n    outlineOffset: string | null;\n    outlineStyle: string | null;\n    outlineWidth: string | null;\n    overflow: string | null;\n    overflowX: string | null;\n    overflowY: string | null;\n    padding: string | null;\n    paddingBottom: string | null;\n    paddingLeft: string | null;\n    paddingRight: string | null;\n    paddingTop: string | null;\n    pageBreakAfter: string | null;\n    pageBreakBefore: string | null;\n    pageBreakInside: string | null;\n    readonly parentRule: CSSRule;\n    penAction: string | null;\n    perspective: string | null;\n    perspectiveOrigin: string | null;\n    pointerEvents: string | null;\n    position: string | null;\n    quotes: string | null;\n    resize: string | null;\n    right: string | null;\n    rotate: string | null;\n    rowGap: string | null;\n    rubyAlign: string | null;\n    rubyOverhang: string | null;\n    rubyPosition: string | null;\n    scale: string | null;\n    stopColor: string | null;\n    stopOpacity: string | null;\n    stroke: string | null;\n    strokeDasharray: string | null;\n    strokeDashoffset: string | null;\n    strokeLinecap: string | null;\n    strokeLinejoin: string | null;\n    strokeMiterlimit: string | null;\n    strokeOpacity: string | null;\n    strokeWidth: string | null;\n    tableLayout: string | null;\n    textAlign: string | null;\n    textAlignLast: string | null;\n    textAnchor: string | null;\n    textCombineUpright: string | null;\n    textDecoration: string | null;\n    textIndent: string | null;\n    textJustify: string | null;\n    textKashida: string | null;\n    textKashidaSpace: string | null;\n    textOverflow: string | null;\n    textShadow: string | null;\n    textTransform: string | null;\n    textUnderlinePosition: string | null;\n    top: string | null;\n    touchAction: string | null;\n    transform: string | null;\n    transformOrigin: string | null;\n    transformStyle: string | null;\n    transition: string | null;\n    transitionDelay: string | null;\n    transitionDuration: string | null;\n    transitionProperty: string | null;\n    transitionTimingFunction: string | null;\n    translate: string | null;\n    unicodeBidi: string | null;\n    userSelect: string | null;\n    verticalAlign: string | null;\n    visibility: string | null;\n    webkitAlignContent: string | null;\n    webkitAlignItems: string | null;\n    webkitAlignSelf: string | null;\n    webkitAnimation: string | null;\n    webkitAnimationDelay: string | null;\n    webkitAnimationDirection: string | null;\n    webkitAnimationDuration: string | null;\n    webkitAnimationFillMode: string | null;\n    webkitAnimationIterationCount: string | null;\n    webkitAnimationName: string | null;\n    webkitAnimationPlayState: string | null;\n    webkitAnimationTimingFunction: string | null;\n    webkitAppearance: string | null;\n    webkitBackfaceVisibility: string | null;\n    webkitBackgroundClip: string | null;\n    webkitBackgroundOrigin: string | null;\n    webkitBackgroundSize: string | null;\n    webkitBorderBottomLeftRadius: string | null;\n    webkitBorderBottomRightRadius: string | null;\n    webkitBorderImage: string | null;\n    webkitBorderRadius: string | null;\n    webkitBorderTopLeftRadius: string | null;\n    webkitBorderTopRightRadius: string | null;\n    webkitBoxAlign: string | null;\n    webkitBoxDirection: string | null;\n    webkitBoxFlex: string | null;\n    webkitBoxOrdinalGroup: string | null;\n    webkitBoxOrient: string | null;\n    webkitBoxPack: string | null;\n    webkitBoxSizing: string | null;\n    webkitColumnBreakAfter: string | null;\n    webkitColumnBreakBefore: string | null;\n    webkitColumnBreakInside: string | null;\n    webkitColumnCount: any;\n    webkitColumnGap: any;\n    webkitColumnRule: string | null;\n    webkitColumnRuleColor: any;\n    webkitColumnRuleStyle: string | null;\n    webkitColumnRuleWidth: any;\n    webkitColumnSpan: string | null;\n    webkitColumnWidth: any;\n    webkitColumns: string | null;\n    webkitFilter: string | null;\n    webkitFlex: string | null;\n    webkitFlexBasis: string | null;\n    webkitFlexDirection: string | null;\n    webkitFlexFlow: string | null;\n    webkitFlexGrow: string | null;\n    webkitFlexShrink: string | null;\n    webkitFlexWrap: string | null;\n    webkitJustifyContent: string | null;\n    webkitOrder: string | null;\n    webkitPerspective: string | null;\n    webkitPerspectiveOrigin: string | null;\n    webkitTapHighlightColor: string | null;\n    webkitTextFillColor: string | null;\n    webkitTextSizeAdjust: any;\n    webkitTextStroke: string | null;\n    webkitTextStrokeColor: string | null;\n    webkitTextStrokeWidth: string | null;\n    webkitTransform: string | null;\n    webkitTransformOrigin: string | null;\n    webkitTransformStyle: string | null;\n    webkitTransition: string | null;\n    webkitTransitionDelay: string | null;\n    webkitTransitionDuration: string | null;\n    webkitTransitionProperty: string | null;\n    webkitTransitionTimingFunction: string | null;\n    webkitUserModify: string | null;\n    webkitUserSelect: string | null;\n    webkitWritingMode: string | null;\n    whiteSpace: string | null;\n    widows: string | null;\n    width: string | null;\n    wordBreak: string | null;\n    wordSpacing: string | null;\n    wordWrap: string | null;\n    writingMode: string | null;\n    zIndex: string | null;\n    zoom: string | null;\n    getPropertyPriority(propertyName: string): string;\n    getPropertyValue(propertyName: string): string;\n    item(index: number): string;\n    removeProperty(propertyName: string): string;\n    setProperty(propertyName: string, value: string | null, priority?: string | null): void;\n    [index: number]: string;\n}\n\ndeclare var CSSStyleDeclaration: {\n    prototype: CSSStyleDeclaration;\n    new(): CSSStyleDeclaration;\n};\n\ninterface CSSStyleRule extends CSSRule {\n    selectorText: string;\n    readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSStyleRule: {\n    prototype: CSSStyleRule;\n    new(): CSSStyleRule;\n};\n\ninterface CSSStyleSheet extends StyleSheet {\n    readonly cssRules: CSSRuleList;\n    /** @deprecated */\n    cssText: string;\n    /** @deprecated */\n    readonly id: string;\n    /** @deprecated */\n    readonly imports: StyleSheetList;\n    /** @deprecated */\n    readonly isAlternate: boolean;\n    /** @deprecated */\n    readonly isPrefAlternate: boolean;\n    readonly ownerRule: CSSRule | null;\n    /** @deprecated */\n    readonly owningElement: Element;\n    /** @deprecated */\n    readonly pages: any;\n    /** @deprecated */\n    readonly readOnly: boolean;\n    readonly rules: CSSRuleList;\n    /** @deprecated */\n    addImport(bstrURL: string, lIndex?: number): number;\n    /** @deprecated */\n    addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number;\n    addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;\n    deleteRule(index?: number): void;\n    insertRule(rule: string, index?: number): number;\n    /** @deprecated */\n    removeImport(lIndex: number): void;\n    removeRule(lIndex: number): void;\n}\n\ndeclare var CSSStyleSheet: {\n    prototype: CSSStyleSheet;\n    new(): CSSStyleSheet;\n};\n\ninterface CSSSupportsRule extends CSSConditionRule {\n}\n\ndeclare var CSSSupportsRule: {\n    prototype: CSSSupportsRule;\n    new(): CSSSupportsRule;\n};\n\ninterface Cache {\n    add(request: RequestInfo): Promise<void>;\n    addAll(requests: RequestInfo[]): Promise<void>;\n    delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;\n    keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;\n    match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;\n    matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;\n    put(request: RequestInfo, response: Response): Promise<void>;\n}\n\ndeclare var Cache: {\n    prototype: Cache;\n    new(): Cache;\n};\n\ninterface CacheStorage {\n    delete(cacheName: string): Promise<boolean>;\n    has(cacheName: string): Promise<boolean>;\n    keys(): Promise<string[]>;\n    match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;\n    open(cacheName: string): Promise<Cache>;\n}\n\ndeclare var CacheStorage: {\n    prototype: CacheStorage;\n    new(): CacheStorage;\n};\n\ninterface CanvasCompositing {\n    globalAlpha: number;\n    globalCompositeOperation: string;\n}\n\ninterface CanvasDrawImage {\n    drawImage(image: CanvasImageSource, dx: number, dy: number): void;\n    drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;\n    drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;\n}\n\ninterface CanvasDrawPath {\n    beginPath(): void;\n    clip(fillRule?: CanvasFillRule): void;\n    clip(path: Path2D, fillRule?: CanvasFillRule): void;\n    fill(fillRule?: CanvasFillRule): void;\n    fill(path: Path2D, fillRule?: CanvasFillRule): void;\n    isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\n    isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n    isPointInStroke(x: number, y: number): boolean;\n    isPointInStroke(path: Path2D, x: number, y: number): boolean;\n    stroke(): void;\n    stroke(path: Path2D): void;\n}\n\ninterface CanvasFillStrokeStyles {\n    fillStyle: string | CanvasGradient | CanvasPattern;\n    strokeStyle: string | CanvasGradient | CanvasPattern;\n    createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n    createPattern(image: CanvasImageSource, repetition: string): CanvasPattern | null;\n    createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n}\n\ninterface CanvasFilters {\n    filter: string;\n}\n\ninterface CanvasGradient {\n    /**\n     * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset\n     * at one end of the gradient, 1.0 is the offset at the other end.\n     * Throws an "IndexSizeError" DOMException if the offset\n     * is out of range. Throws a "SyntaxError" DOMException if\n     * the color cannot be parsed.\n     */\n    addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n    prototype: CanvasGradient;\n    new(): CanvasGradient;\n};\n\ninterface CanvasImageData {\n    createImageData(sw: number, sh: number): ImageData;\n    createImageData(imagedata: ImageData): ImageData;\n    getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;\n    putImageData(imagedata: ImageData, dx: number, dy: number): void;\n    putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;\n}\n\ninterface CanvasImageSmoothing {\n    imageSmoothingEnabled: boolean;\n    imageSmoothingQuality: ImageSmoothingQuality;\n}\n\ninterface CanvasPath {\n    arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;\n    arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n    bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n    closePath(): void;\n    ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;\n    lineTo(x: number, y: number): void;\n    moveTo(x: number, y: number): void;\n    quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n    rect(x: number, y: number, w: number, h: number): void;\n}\n\ninterface CanvasPathDrawingStyles {\n    lineCap: CanvasLineCap;\n    lineDashOffset: number;\n    lineJoin: CanvasLineJoin;\n    lineWidth: number;\n    miterLimit: number;\n    getLineDash(): number[];\n    setLineDash(segments: number[]): void;\n}\n\ninterface CanvasPattern {\n    /**\n     * Sets the transformation matrix that will be used when rendering the pattern during a fill or\n     * stroke painting operation.\n     */\n    setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n    prototype: CanvasPattern;\n    new(): CanvasPattern;\n};\n\ninterface CanvasRect {\n    clearRect(x: number, y: number, w: number, h: number): void;\n    fillRect(x: number, y: number, w: number, h: number): void;\n    strokeRect(x: number, y: number, w: number, h: number): void;\n}\n\ninterface CanvasRenderingContext2D extends CanvasState, CanvasTransform, CanvasCompositing, CanvasImageSmoothing, CanvasFillStrokeStyles, CanvasShadowStyles, CanvasFilters, CanvasRect, CanvasDrawPath, CanvasUserInterface, CanvasText, CanvasDrawImage, CanvasImageData, CanvasPathDrawingStyles, CanvasTextDrawingStyles, CanvasPath {\n    readonly canvas: HTMLCanvasElement;\n}\n\ndeclare var CanvasRenderingContext2D: {\n    prototype: CanvasRenderingContext2D;\n    new(): CanvasRenderingContext2D;\n};\n\ninterface CanvasShadowStyles {\n    shadowBlur: number;\n    shadowColor: string;\n    shadowOffsetX: number;\n    shadowOffsetY: number;\n}\n\ninterface CanvasState {\n    restore(): void;\n    save(): void;\n}\n\ninterface CanvasText {\n    fillText(text: string, x: number, y: number, maxWidth?: number): void;\n    measureText(text: string): TextMetrics;\n    strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n}\n\ninterface CanvasTextDrawingStyles {\n    direction: CanvasDirection;\n    font: string;\n    textAlign: CanvasTextAlign;\n    textBaseline: CanvasTextBaseline;\n}\n\ninterface CanvasTransform {\n    getTransform(): DOMMatrix;\n    resetTransform(): void;\n    rotate(angle: number): void;\n    scale(x: number, y: number): void;\n    setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n    setTransform(transform?: DOMMatrix2DInit): void;\n    transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n    translate(x: number, y: number): void;\n}\n\ninterface CanvasUserInterface {\n    drawFocusIfNeeded(element: Element): void;\n    drawFocusIfNeeded(path: Path2D, element: Element): void;\n    scrollPathIntoView(): void;\n    scrollPathIntoView(path: Path2D): void;\n}\n\ninterface CaretPosition {\n    readonly offset: number;\n    readonly offsetNode: Node;\n    getClientRect(): DOMRect | null;\n}\n\ndeclare var CaretPosition: {\n    prototype: CaretPosition;\n    new(): CaretPosition;\n};\n\ninterface ChannelMergerNode extends AudioNode {\n}\n\ndeclare var ChannelMergerNode: {\n    prototype: ChannelMergerNode;\n    new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;\n};\n\ninterface ChannelSplitterNode extends AudioNode {\n}\n\ndeclare var ChannelSplitterNode: {\n    prototype: ChannelSplitterNode;\n    new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;\n};\n\ninterface CharacterData extends Node, NonDocumentTypeChildNode, ChildNode {\n    data: string;\n    readonly length: number;\n    appendData(data: string): void;\n    deleteData(offset: number, count: number): void;\n    insertData(offset: number, data: string): void;\n    replaceData(offset: number, count: number, data: string): void;\n    substringData(offset: number, count: number): string;\n}\n\ndeclare var CharacterData: {\n    prototype: CharacterData;\n    new(): CharacterData;\n};\n\ninterface ChildNode extends Node {\n    /**\n     * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.\n     * Throws a "HierarchyRequestError" DOMException if the constraints of\n     * the node tree are violated.\n     */\n    after(...nodes: (Node | string)[]): void;\n    /**\n     * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.\n     * Throws a "HierarchyRequestError" DOMException if the constraints of\n     * the node tree are violated.\n     */\n    before(...nodes: (Node | string)[]): void;\n    /**\n     * Removes node.\n     */\n    remove(): void;\n    /**\n     * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.\n     * Throws a "HierarchyRequestError" DOMException if the constraints of\n     * the node tree are violated.\n     */\n    replaceWith(...nodes: (Node | string)[]): void;\n}\n\ninterface ClientRect {\n    bottom: number;\n    readonly height: number;\n    left: number;\n    right: number;\n    top: number;\n    readonly width: number;\n}\n\ndeclare var ClientRect: {\n    prototype: ClientRect;\n    new(): ClientRect;\n};\n\ninterface ClientRectList {\n    readonly length: number;\n    item(index: number): ClientRect;\n    [index: number]: ClientRect;\n}\n\ndeclare var ClientRectList: {\n    prototype: ClientRectList;\n    new(): ClientRectList;\n};\n\ninterface ClipboardEvent extends Event {\n    readonly clipboardData: DataTransfer;\n}\n\ndeclare var ClipboardEvent: {\n    prototype: ClipboardEvent;\n    new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\ninterface ClipboardEventInit extends EventInit {\n    data?: string;\n    dataType?: string;\n}\n\ninterface CloseEvent extends Event {\n    readonly code: number;\n    readonly reason: string;\n    readonly wasClean: boolean;\n    /** @deprecated */\n    initCloseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, wasCleanArg: boolean, codeArg: number, reasonArg: string): void;\n}\n\ndeclare var CloseEvent: {\n    prototype: CloseEvent;\n    new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\ninterface Comment extends CharacterData {\n}\n\ndeclare var Comment: {\n    prototype: Comment;\n    new(data?: string): Comment;\n};\n\ninterface CompositionEvent extends UIEvent {\n    readonly data: string;\n    readonly locale: string;\n    initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;\n}\n\ndeclare var CompositionEvent: {\n    prototype: CompositionEvent;\n    new(typeArg: string, eventInitDict?: CompositionEventInit): CompositionEvent;\n};\n\ninterface ConcatParams extends Algorithm {\n    algorithmId: Uint8Array;\n    hash?: string | Algorithm;\n    partyUInfo: Uint8Array;\n    partyVInfo: Uint8Array;\n    privateInfo?: Uint8Array;\n    publicInfo?: Uint8Array;\n}\n\ninterface Console {\n    memory: any;\n    assert(condition?: boolean, message?: string, ...data: any[]): void;\n    clear(): void;\n    count(label?: string): void;\n    debug(message?: any, ...optionalParams: any[]): void;\n    dir(value?: any, ...optionalParams: any[]): void;\n    dirxml(value: any): void;\n    error(message?: any, ...optionalParams: any[]): void;\n    exception(message?: string, ...optionalParams: any[]): void;\n    group(groupTitle?: string, ...optionalParams: any[]): void;\n    groupCollapsed(groupTitle?: string, ...optionalParams: any[]): void;\n    groupEnd(): void;\n    info(message?: any, ...optionalParams: any[]): void;\n    log(message?: any, ...optionalParams: any[]): void;\n    markTimeline(label?: string): void;\n    profile(reportName?: string): void;\n    profileEnd(reportName?: string): void;\n    table(...tabularData: any[]): void;\n    time(label?: string): void;\n    timeEnd(label?: string): void;\n    timeStamp(label?: string): void;\n    timeline(label?: string): void;\n    timelineEnd(label?: string): void;\n    trace(message?: any, ...optionalParams: any[]): void;\n    warn(message?: any, ...optionalParams: any[]): void;\n}\n\ndeclare var Console: {\n    prototype: Console;\n    new(): Console;\n};\n\ninterface ConstantSourceNode extends AudioScheduledSourceNode {\n    readonly offset: AudioParam;\n    addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ConstantSourceNode: {\n    prototype: ConstantSourceNode;\n    new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;\n};\n\ninterface ConvolverNode extends AudioNode {\n    buffer: AudioBuffer | null;\n    normalize: boolean;\n}\n\ndeclare var ConvolverNode: {\n    prototype: ConvolverNode;\n    new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;\n};\n\ninterface Coordinates {\n    readonly accuracy: number;\n    readonly altitude: number | null;\n    readonly altitudeAccuracy: number | null;\n    readonly heading: number | null;\n    readonly latitude: number;\n    readonly longitude: number;\n    readonly speed: number | null;\n}\n\ninterface CountQueuingStrategy {\n    highWaterMark: number;\n    size(): number;\n}\n\ndeclare var CountQueuingStrategy: {\n    prototype: CountQueuingStrategy;\n    new(strategy: QueuingStrategy): CountQueuingStrategy;\n};\n\ninterface Crypto {\n    readonly subtle: SubtleCrypto;\n    getRandomValues<T extends Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null>(array: T): T;\n}\n\ndeclare var Crypto: {\n    prototype: Crypto;\n    new(): Crypto;\n};\n\ninterface CryptoKey {\n    readonly algorithm: KeyAlgorithm;\n    readonly extractable: boolean;\n    readonly type: KeyType;\n    readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n    prototype: CryptoKey;\n    new(): CryptoKey;\n};\n\ninterface CryptoKeyPair {\n    privateKey: CryptoKey;\n    publicKey: CryptoKey;\n}\n\ndeclare var CryptoKeyPair: {\n    prototype: CryptoKeyPair;\n    new(): CryptoKeyPair;\n};\n\ninterface CustomElementRegistry {\n    define(name: string, constructor: Function, options?: ElementDefinitionOptions): void;\n    get(name: string): any;\n    upgrade(root: Node): void;\n    whenDefined(name: string): Promise<void>;\n}\n\ndeclare var CustomElementRegistry: {\n    prototype: CustomElementRegistry;\n    new(): CustomElementRegistry;\n};\n\ninterface CustomEvent<T = any> extends Event {\n    /**\n     * Returns any custom data event was created with.\n     * Typically used for synthetic events.\n     */\n    readonly detail: T;\n    initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void;\n}\n\ndeclare var CustomEvent: {\n    prototype: CustomEvent;\n    new<T>(typeArg: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;\n};\n\ninterface DOMError {\n    readonly name: string;\n    toString(): string;\n}\n\ndeclare var DOMError: {\n    prototype: DOMError;\n    new(): DOMError;\n};\n\ninterface DOMException {\n    readonly code: number;\n    readonly message: string;\n    readonly name: string;\n    readonly ABORT_ERR: number;\n    readonly DATA_CLONE_ERR: number;\n    readonly DOMSTRING_SIZE_ERR: number;\n    readonly HIERARCHY_REQUEST_ERR: number;\n    readonly INDEX_SIZE_ERR: number;\n    readonly INUSE_ATTRIBUTE_ERR: number;\n    readonly INVALID_ACCESS_ERR: number;\n    readonly INVALID_CHARACTER_ERR: number;\n    readonly INVALID_MODIFICATION_ERR: number;\n    readonly INVALID_NODE_TYPE_ERR: number;\n    readonly INVALID_STATE_ERR: number;\n    readonly NAMESPACE_ERR: number;\n    readonly NETWORK_ERR: number;\n    readonly NOT_FOUND_ERR: number;\n    readonly NOT_SUPPORTED_ERR: number;\n    readonly NO_DATA_ALLOWED_ERR: number;\n    readonly NO_MODIFICATION_ALLOWED_ERR: number;\n    readonly QUOTA_EXCEEDED_ERR: number;\n    readonly SECURITY_ERR: number;\n    readonly SYNTAX_ERR: number;\n    readonly TIMEOUT_ERR: number;\n    readonly TYPE_MISMATCH_ERR: number;\n    readonly URL_MISMATCH_ERR: number;\n    readonly VALIDATION_ERR: number;\n    readonly WRONG_DOCUMENT_ERR: number;\n}\n\ndeclare var DOMException: {\n    prototype: DOMException;\n    new(message?: string, name?: string): DOMException;\n    readonly ABORT_ERR: number;\n    readonly DATA_CLONE_ERR: number;\n    readonly DOMSTRING_SIZE_ERR: number;\n    readonly HIERARCHY_REQUEST_ERR: number;\n    readonly INDEX_SIZE_ERR: number;\n    readonly INUSE_ATTRIBUTE_ERR: number;\n    readonly INVALID_ACCESS_ERR: number;\n    readonly INVALID_CHARACTER_ERR: number;\n    readonly INVALID_MODIFICATION_ERR: number;\n    readonly INVALID_NODE_TYPE_ERR: number;\n    readonly INVALID_STATE_ERR: number;\n    readonly NAMESPACE_ERR: number;\n    readonly NETWORK_ERR: number;\n    readonly NOT_FOUND_ERR: number;\n    readonly NOT_SUPPORTED_ERR: number;\n    readonly NO_DATA_ALLOWED_ERR: number;\n    readonly NO_MODIFICATION_ALLOWED_ERR: number;\n    readonly QUOTA_EXCEEDED_ERR: number;\n    readonly SECURITY_ERR: number;\n    readonly SYNTAX_ERR: number;\n    readonly TIMEOUT_ERR: number;\n    readonly TYPE_MISMATCH_ERR: number;\n    readonly URL_MISMATCH_ERR: number;\n    readonly VALIDATION_ERR: number;\n    readonly WRONG_DOCUMENT_ERR: number;\n};\n\ninterface DOMImplementation {\n    createDocument(namespaceURI: string | null, qualifiedName: string | null, doctype: DocumentType | null): Document;\n    createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;\n    createHTMLDocument(title?: string): Document;\n    /** @deprecated */\n    hasFeature(...args: any[]): true;\n}\n\ndeclare var DOMImplementation: {\n    prototype: DOMImplementation;\n    new(): DOMImplementation;\n};\n\ninterface DOML2DeprecatedColorProperty {\n    color: string;\n}\n\ninterface DOMMatrix extends DOMMatrixReadOnly {\n    a: number;\n    b: number;\n    c: number;\n    d: number;\n    e: number;\n    f: number;\n    m11: number;\n    m12: number;\n    m13: number;\n    m14: number;\n    m21: number;\n    m22: number;\n    m23: number;\n    m24: number;\n    m31: number;\n    m32: number;\n    m33: number;\n    m34: number;\n    m41: number;\n    m42: number;\n    m43: number;\n    m44: number;\n    invertSelf(): DOMMatrix;\n    multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n    preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n    rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n    rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n    rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n    scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n    scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n    setMatrixValue(transformList: string): DOMMatrix;\n    skewXSelf(sx?: number): DOMMatrix;\n    skewYSelf(sy?: number): DOMMatrix;\n    translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n    prototype: DOMMatrix;\n    new(init?: string | number[]): DOMMatrix;\n    fromFloat32Array(array32: Float32Array): DOMMatrix;\n    fromFloat64Array(array64: Float64Array): DOMMatrix;\n    fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\ntype SVGMatrix = DOMMatrix;\ndeclare var SVGMatrix: typeof DOMMatrix;\n\ntype WebKitCSSMatrix = DOMMatrix;\ndeclare var WebKitCSSMatrix: typeof DOMMatrix;\n\ninterface DOMMatrixReadOnly {\n    readonly a: number;\n    readonly b: number;\n    readonly c: number;\n    readonly d: number;\n    readonly e: number;\n    readonly f: number;\n    readonly is2D: boolean;\n    readonly isIdentity: boolean;\n    readonly m11: number;\n    readonly m12: number;\n    readonly m13: number;\n    readonly m14: number;\n    readonly m21: number;\n    readonly m22: number;\n    readonly m23: number;\n    readonly m24: number;\n    readonly m31: number;\n    readonly m32: number;\n    readonly m33: number;\n    readonly m34: number;\n    readonly m41: number;\n    readonly m42: number;\n    readonly m43: number;\n    readonly m44: number;\n    flipX(): DOMMatrix;\n    flipY(): DOMMatrix;\n    inverse(): DOMMatrix;\n    multiply(other?: DOMMatrixInit): DOMMatrix;\n    rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n    rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n    rotateFromVector(x?: number, y?: number): DOMMatrix;\n    scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n    scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n    skewX(sx?: number): DOMMatrix;\n    skewY(sy?: number): DOMMatrix;\n    toFloat32Array(): Float32Array;\n    toFloat64Array(): Float64Array;\n    toJSON(): any;\n    transformPoint(point?: DOMPointInit): DOMPoint;\n    translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrixReadOnly: {\n    prototype: DOMMatrixReadOnly;\n    new(init?: string | number[]): DOMMatrixReadOnly;\n    fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n    fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n    fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n};\n\ninterface DOMParser {\n    parseFromString(str: string, type: SupportedType): Document;\n}\n\ndeclare var DOMParser: {\n    prototype: DOMParser;\n    new(): DOMParser;\n};\n\ninterface DOMPoint extends DOMPointReadOnly {\n    w: number;\n    x: number;\n    y: number;\n    z: number;\n}\n\ndeclare var DOMPoint: {\n    prototype: DOMPoint;\n    new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n    fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ntype SVGPoint = DOMPoint;\ndeclare var SVGPoint: typeof DOMPoint;\n\ninterface DOMPointReadOnly {\n    readonly w: number;\n    readonly x: number;\n    readonly y: number;\n    readonly z: number;\n    matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n    toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n    prototype: DOMPointReadOnly;\n    new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n    fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\ninterface DOMQuad {\n    readonly p1: DOMPoint;\n    readonly p2: DOMPoint;\n    readonly p3: DOMPoint;\n    readonly p4: DOMPoint;\n    getBounds(): DOMRect;\n    toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n    prototype: DOMQuad;\n    new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n    fromQuad(other?: DOMQuadInit): DOMQuad;\n    fromRect(other?: DOMRectInit): DOMQuad;\n};\n\ninterface DOMRect extends DOMRectReadOnly {\n    height: number;\n    width: number;\n    x: number;\n    y: number;\n}\n\ndeclare var DOMRect: {\n    prototype: DOMRect;\n    new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n    fromRect(other?: DOMRectInit): DOMRect;\n};\n\ntype SVGRect = DOMRect;\ndeclare var SVGRect: typeof DOMRect;\n\ninterface DOMRectList {\n    readonly length: number;\n    item(index: number): DOMRect | null;\n    [index: number]: DOMRect;\n}\n\ndeclare var DOMRectList: {\n    prototype: DOMRectList;\n    new(): DOMRectList;\n};\n\ninterface DOMRectReadOnly {\n    readonly bottom: number;\n    readonly height: number;\n    readonly left: number;\n    readonly right: number;\n    readonly top: number;\n    readonly width: number;\n    readonly x: number;\n    readonly y: number;\n    toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n    prototype: DOMRectReadOnly;\n    new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n    fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\ninterface DOMSettableTokenList extends DOMTokenList {\n    value: string;\n}\n\ndeclare var DOMSettableTokenList: {\n    prototype: DOMSettableTokenList;\n    new(): DOMSettableTokenList;\n};\n\ninterface DOMStringList {\n    /**\n     * Returns the number of strings in strings.\n     */\n    readonly length: number;\n    /**\n     * Returns true if strings contains string, and false\n     * otherwise.\n     */\n    contains(string: string): boolean;\n    /**\n     * Returns the string with index index from strings.\n     */\n    item(index: number): string | null;\n    [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n    prototype: DOMStringList;\n    new(): DOMStringList;\n};\n\ninterface DOMStringMap {\n    [name: string]: string | undefined;\n}\n\ndeclare var DOMStringMap: {\n    prototype: DOMStringMap;\n    new(): DOMStringMap;\n};\n\ninterface DOMTokenList {\n    /**\n     * Returns the number of tokens.\n     */\n    readonly length: number;\n    /**\n     * Returns the associated set as string.\n     * Can be set, to change the associated attribute.\n     */\n    value: string;\n    /**\n     * Adds all arguments passed, except those already present.\n     * Throws a "SyntaxError" DOMException if one of the arguments is the empty\n     * string.\n     * Throws an "InvalidCharacterError" DOMException if one of the arguments\n     * contains any ASCII whitespace.\n     */\n    add(...tokens: string[]): void;\n    /**\n     * Returns true if token is present, and false otherwise.\n     */\n    contains(token: string): boolean;\n    /**\n     * tokenlist[index]\n     */\n    item(index: number): string | null;\n    /**\n     * Removes arguments passed, if they are present.\n     * Throws a "SyntaxError" DOMException if one of the arguments is the empty\n     * string.\n     * Throws an "InvalidCharacterError" DOMException if one of the arguments\n     * contains any ASCII whitespace.\n     */\n    remove(...tokens: string[]): void;\n    /**\n     * Replaces token with newToken.\n     * Returns true if token was replaced with newToken, and false otherwise.\n     * Throws a "SyntaxError" DOMException if one of the arguments is the empty\n     * string.\n     * Throws an "InvalidCharacterError" DOMException if one of the arguments\n     * contains any ASCII whitespace.\n     */\n    replace(oldToken: string, newToken: string): void;\n    /**\n     * Returns true if token is in the associated attribute\'s supported tokens. Returns\n     * false otherwise.\n     * Throws a TypeError if the associated attribute has no supported tokens defined.\n     */\n    supports(token: string): boolean;\n    toggle(token: string, force?: boolean): boolean;\n    forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;\n    [index: number]: string;\n}\n\ndeclare var DOMTokenList: {\n    prototype: DOMTokenList;\n    new(): DOMTokenList;\n};\n\ninterface DataCue extends TextTrackCue {\n    data: ArrayBuffer;\n    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var DataCue: {\n    prototype: DataCue;\n    new(): DataCue;\n};\n\ninterface DataTransfer {\n    dropEffect: string;\n    effectAllowed: string;\n    /**\n     * Returns a FileList of the files being dragged, if any.\n     */\n    readonly files: FileList;\n    /**\n     * Returns a DataTransferItemList object, with the drag data.\n     */\n    readonly items: DataTransferItemList;\n    /**\n     * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being\n     * dragged, then one of the types will be the string "Files".\n     */\n    readonly types: ReadonlyArray<string>;\n    /**\n     * Removes the data of the specified formats. Removes all data if the argument is omitted.\n     */\n    clearData(format?: string): void;\n    /**\n     * Returns the specified data. If there is no such data, returns the empty string.\n     */\n    getData(format: string): string;\n    /**\n     * Adds the specified data.\n     */\n    setData(format: string, data: string): void;\n    /**\n     * Uses the given element to update the drag feedback, replacing any previously specified\n     * feedback.\n     */\n    setDragImage(image: Element, x: number, y: number): void;\n}\n\ndeclare var DataTransfer: {\n    prototype: DataTransfer;\n    new(): DataTransfer;\n};\n\ninterface DataTransferItem {\n    /**\n     * Returns the drag data item kind, one of: "string",\n     * "file".\n     */\n    readonly kind: string;\n    /**\n     * Returns the drag data item type string.\n     */\n    readonly type: string;\n    /**\n     * Returns a File object, if the drag data item kind is File.\n     */\n    getAsFile(): File | null;\n    /**\n     * Invokes the callback with the string data as the argument, if the drag data item\n     * kind is Plain Unicode string.\n     */\n    getAsString(callback: FunctionStringCallback | null): void;\n    webkitGetAsEntry(): any;\n}\n\ndeclare var DataTransferItem: {\n    prototype: DataTransferItem;\n    new(): DataTransferItem;\n};\n\ninterface DataTransferItemList {\n    /**\n     * Returns the number of items in the drag data store.\n     */\n    readonly length: number;\n    /**\n     * Adds a new entry for the given data to the drag data store. If the data is plain\n     * text  then a type string has to be provided\n     * also.\n     */\n    add(data: string, type: string): DataTransferItem | null;\n    add(data: File): DataTransferItem | null;\n    /**\n     * Removes all the entries in the drag data store.\n     */\n    clear(): void;\n    item(index: number): DataTransferItem;\n    /**\n     * Removes the indexth entry in the drag data store.\n     */\n    remove(index: number): void;\n    [name: number]: DataTransferItem;\n}\n\ndeclare var DataTransferItemList: {\n    prototype: DataTransferItemList;\n    new(): DataTransferItemList;\n};\n\ninterface DeferredPermissionRequest {\n    readonly id: number;\n    readonly type: MSWebViewPermissionType;\n    readonly uri: string;\n    allow(): void;\n    deny(): void;\n}\n\ndeclare var DeferredPermissionRequest: {\n    prototype: DeferredPermissionRequest;\n    new(): DeferredPermissionRequest;\n};\n\ninterface DelayNode extends AudioNode {\n    readonly delayTime: AudioParam;\n}\n\ndeclare var DelayNode: {\n    prototype: DelayNode;\n    new(context: BaseAudioContext, options?: DelayOptions): DelayNode;\n};\n\ninterface DeviceAcceleration {\n    readonly x: number | null;\n    readonly y: number | null;\n    readonly z: number | null;\n}\n\ndeclare var DeviceAcceleration: {\n    prototype: DeviceAcceleration;\n    new(): DeviceAcceleration;\n};\n\ninterface DeviceLightEvent extends Event {\n    readonly value: number;\n}\n\ndeclare var DeviceLightEvent: {\n    prototype: DeviceLightEvent;\n    new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;\n};\n\ninterface DeviceMotionEvent extends Event {\n    readonly acceleration: DeviceAcceleration | null;\n    readonly accelerationIncludingGravity: DeviceAcceleration | null;\n    readonly interval: number | null;\n    readonly rotationRate: DeviceRotationRate | null;\n    initDeviceMotionEvent(type: string, bubbles: boolean, cancelable: boolean, acceleration: DeviceAccelerationDict | null, accelerationIncludingGravity: DeviceAccelerationDict | null, rotationRate: DeviceRotationRateDict | null, interval: number | null): void;\n}\n\ndeclare var DeviceMotionEvent: {\n    prototype: DeviceMotionEvent;\n    new(typeArg: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\n\ninterface DeviceOrientationEvent extends Event {\n    readonly absolute: boolean;\n    readonly alpha: number | null;\n    readonly beta: number | null;\n    readonly gamma: number | null;\n    initDeviceOrientationEvent(type: string, bubbles: boolean, cancelable: boolean, alpha: number | null, beta: number | null, gamma: number | null, absolute: boolean): void;\n}\n\ndeclare var DeviceOrientationEvent: {\n    prototype: DeviceOrientationEvent;\n    new(typeArg: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\n};\n\ninterface DeviceRotationRate {\n    readonly alpha: number | null;\n    readonly beta: number | null;\n    readonly gamma: number | null;\n}\n\ndeclare var DeviceRotationRate: {\n    prototype: DeviceRotationRate;\n    new(): DeviceRotationRate;\n};\n\ninterface DhImportKeyParams extends Algorithm {\n    generator: Uint8Array;\n    prime: Uint8Array;\n}\n\ninterface DhKeyAlgorithm extends KeyAlgorithm {\n    generator: Uint8Array;\n    prime: Uint8Array;\n}\n\ninterface DhKeyDeriveParams extends Algorithm {\n    public: CryptoKey;\n}\n\ninterface DhKeyGenParams extends Algorithm {\n    generator: Uint8Array;\n    prime: Uint8Array;\n}\n\ninterface DocumentEventMap extends GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {\n    "fullscreenchange": Event;\n    "fullscreenerror": Event;\n    "readystatechange": ProgressEvent;\n    "visibilitychange": Event;\n}\n\ninterface Document extends Node, NonElementParentNode, DocumentOrShadowRoot, ParentNode, GlobalEventHandlers, DocumentAndElementEventHandlers {\n    /**\n     * Sets or gets the URL for the current document.\n     */\n    readonly URL: string;\n    /**\n     * Gets the object that has the focus when the parent document has focus.\n     */\n    readonly activeElement: Element | null;\n    /**\n     * Sets or gets the color of all active links in the document.\n     */\n    /** @deprecated */\n    alinkColor: string;\n    /**\n     * Returns a reference to the collection of elements contained by the object.\n     */\n    /** @deprecated */\n    readonly all: HTMLAllCollection;\n    /**\n     * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.\n     */\n    /** @deprecated */\n    readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;\n    /**\n     * Retrieves a collection of all applet objects in the document.\n     */\n    /** @deprecated */\n    readonly applets: HTMLCollectionOf<HTMLAppletElement>;\n    /**\n     * Deprecated. Sets or retrieves a value that indicates the background color behind the object.\n     */\n    /** @deprecated */\n    bgColor: string;\n    /**\n     * Specifies the beginning and end of the document body.\n     */\n    body: HTMLElement;\n    /**\n     * Returns document\'s encoding.\n     */\n    readonly characterSet: string;\n    /**\n     * Gets or sets the character set used to encode the object.\n     */\n    readonly charset: string;\n    /**\n     * Gets a value that indicates whether standards-compliant mode is switched on for the object.\n     */\n    readonly compatMode: string;\n    /**\n     * Returns document\'s content type.\n     */\n    readonly contentType: string;\n    /**\n     * Returns the HTTP cookies that apply to the Document. If there are no cookies or\n     * cookies can\'t be applied to this resource, the empty string will be returned.\n     * Can be set, to add a new cookie to the element\'s set of HTTP cookies.\n     * If the contents are sandboxed into a\n     * unique origin (e.g. in an iframe with the sandbox attribute), a\n     * "SecurityError" DOMException will be thrown on getting\n     * and setting.\n     */\n    cookie: string;\n    /**\n     * Returns the script element, or the SVG script element,\n     * that is currently executing, as long as the element represents a classic script.\n     * In the case of reentrant script execution, returns the one that most recently started executing\n     * amongst those that have not yet finished executing.\n     * Returns null if the Document is not currently executing a script\n     * or SVG script element (e.g., because the running script is an event\n     * handler, or a timeout), or if the currently executing script or SVG\n     * script element represents a module script.\n     */\n    readonly currentScript: HTMLOrSVGScriptElement | null;\n    readonly defaultView: WindowProxy | null;\n    /**\n     * Sets or gets a value that indicates whether the document can be edited.\n     */\n    designMode: string;\n    /**\n     * Sets or retrieves a value that indicates the reading order of the object.\n     */\n    dir: string;\n    /**\n     * Gets an object representing the document type declaration associated with the current document.\n     */\n    readonly doctype: DocumentType | null;\n    /**\n     * Gets a reference to the root node of the document.\n     */\n    readonly documentElement: HTMLElement | null;\n    /**\n     * Returns document\'s URL.\n     */\n    readonly documentURI: string;\n    /**\n     * Sets or gets the security domain of the document.\n     */\n    domain: string;\n    /**\n     * Retrieves a collection of all embed objects in the document.\n     */\n    readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;\n    /**\n     * Sets or gets the foreground (text) color of the document.\n     */\n    /** @deprecated */\n    fgColor: string;\n    /**\n     * Retrieves a collection, in source order, of all form objects in the document.\n     */\n    readonly forms: HTMLCollectionOf<HTMLFormElement>;\n    /** @deprecated */\n    readonly fullscreen: boolean;\n    /**\n     * Returns true if document has the ability to display elements fullscreen\n     * and fullscreen is supported, or false otherwise.\n     */\n    readonly fullscreenEnabled: boolean;\n    /**\n     * Returns the head element.\n     */\n    readonly head: HTMLHeadElement | null;\n    readonly hidden: boolean;\n    /**\n     * Retrieves a collection, in source order, of img objects in the document.\n     */\n    readonly images: HTMLCollectionOf<HTMLImageElement>;\n    /**\n     * Gets the implementation object of the current document.\n     */\n    readonly implementation: DOMImplementation;\n    /**\n     * Returns the character encoding used to create the webpage that is loaded into the document object.\n     */\n    readonly inputEncoding: string;\n    /**\n     * Gets the date that the page was last modified, if the page supplies one.\n     */\n    readonly lastModified: string;\n    /**\n     * Sets or gets the color of the document links.\n     */\n    /** @deprecated */\n    linkColor: string;\n    /**\n     * Retrieves a collection of all a objects that specify the href property and all area objects in the document.\n     */\n    readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;\n    /**\n     * Contains information about the current URL.\n     */\n    location: Location | null;\n    onfullscreenchange: ((this: Document, ev: Event) => any) | null;\n    onfullscreenerror: ((this: Document, ev: Event) => any) | null;\n    /**\n     * Fires when the state of the object has changed.\n     * @param ev The event\n     */\n    onreadystatechange: ((this: Document, ev: ProgressEvent) => any) | null;\n    onvisibilitychange: ((this: Document, ev: Event) => any) | null;\n    /**\n     * Returns document\'s origin.\n     */\n    readonly origin: string;\n    /**\n     * Return an HTMLCollection of the embed elements in the Document.\n     */\n    readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;\n    /**\n     * Retrieves a value that indicates the current state of the object.\n     */\n    readonly readyState: DocumentReadyState;\n    /**\n     * Gets the URL of the location that referred the user to the current page.\n     */\n    readonly referrer: string;\n    /**\n     * Retrieves a collection of all script objects in the document.\n     */\n    readonly scripts: HTMLCollectionOf<HTMLScriptElement>;\n    readonly scrollingElement: Element | null;\n    readonly timeline: DocumentTimeline;\n    /**\n     * Contains the title of the document.\n     */\n    title: string;\n    readonly visibilityState: VisibilityState;\n    /**\n     * Sets or gets the color of the links that the user has visited.\n     */\n    /** @deprecated */\n    vlinkColor: string;\n    /**\n     * Moves node from another document and returns it.\n     * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a\n     * "HierarchyRequestError" DOMException.\n     */\n    adoptNode<T extends Node>(source: T): T;\n    /** @deprecated */\n    captureEvents(): void;\n    caretPositionFromPoint(x: number, y: number): CaretPosition | null;\n    caretRangeFromPoint(x: number, y: number): Range;\n    /** @deprecated */\n    clear(): void;\n    /**\n     * Closes an output stream and forces the sent data to display.\n     */\n    close(): void;\n    /**\n     * Creates an attribute object with a specified name.\n     * @param name String that sets the attribute object\'s name.\n     */\n    createAttribute(localName: string): Attr;\n    createAttributeNS(namespace: string | null, qualifiedName: string): Attr;\n    /**\n     * Returns a CDATASection node whose data is data.\n     */\n    createCDATASection(data: string): CDATASection;\n    /**\n     * Creates a comment object with the specified data.\n     * @param data Sets the comment object\'s data.\n     */\n    createComment(data: string): Comment;\n    /**\n     * Creates a new document.\n     */\n    createDocumentFragment(): DocumentFragment;\n    /**\n     * Creates an instance of the element for the specified tag.\n     * @param tagName The name of an element.\n     */\n    createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];\n    /** @deprecated */\n    createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];\n    createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;\n    /**\n     * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after\n     * ":" (U+003E) in qualifiedName or qualifiedName.\n     * If localName does not match the Name production an\n     * "InvalidCharacterError" DOMException will be thrown.\n     * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:\n     * localName does not match the QName production.\n     * Namespace prefix is not null and namespace is the empty string.\n     * Namespace prefix is "xml" and namespace is not the XML namespace.\n     * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.\n     * namespace is the XMLNS namespace and\n     * neither qualifiedName nor namespace prefix is "xmlns".\n     * When supplied, options\'s is can be used to create a customized built-in element.\n     */\n    createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "a"): SVGAElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "circle"): SVGCircleElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "clipPath"): SVGClipPathElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "componentTransferFunction"): SVGComponentTransferFunctionElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "defs"): SVGDefsElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "desc"): SVGDescElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "ellipse"): SVGEllipseElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feBlend"): SVGFEBlendElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feColorMatrix"): SVGFEColorMatrixElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComponentTransfer"): SVGFEComponentTransferElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feComposite"): SVGFECompositeElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feConvolveMatrix"): SVGFEConvolveMatrixElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDiffuseLighting"): SVGFEDiffuseLightingElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDisplacementMap"): SVGFEDisplacementMapElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feDistantLight"): SVGFEDistantLightElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFlood"): SVGFEFloodElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncA"): SVGFEFuncAElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncB"): SVGFEFuncBElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncG"): SVGFEFuncGElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feFuncR"): SVGFEFuncRElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feGaussianBlur"): SVGFEGaussianBlurElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feImage"): SVGFEImageElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMerge"): SVGFEMergeElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMergeNode"): SVGFEMergeNodeElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feMorphology"): SVGFEMorphologyElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feOffset"): SVGFEOffsetElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "fePointLight"): SVGFEPointLightElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpecularLighting"): SVGFESpecularLightingElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feSpotLight"): SVGFESpotLightElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTile"): SVGFETileElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "feTurbulence"): SVGFETurbulenceElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "filter"): SVGFilterElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "foreignObject"): SVGForeignObjectElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "g"): SVGGElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "image"): SVGImageElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "gradient"): SVGGradientElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "line"): SVGLineElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "linearGradient"): SVGLinearGradientElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "marker"): SVGMarkerElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "mask"): SVGMaskElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "path"): SVGPathElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "metadata"): SVGMetadataElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "pattern"): SVGPatternElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polygon"): SVGPolygonElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "polyline"): SVGPolylineElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "radialGradient"): SVGRadialGradientElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "rect"): SVGRectElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "svg"): SVGSVGElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "script"): SVGScriptElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "stop"): SVGStopElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "style"): SVGStyleElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "switch"): SVGSwitchElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "symbol"): SVGSymbolElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "tspan"): SVGTSpanElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textContent"): SVGTextContentElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "text"): SVGTextElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPath"): SVGTextPathElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "textPositioning"): SVGTextPositioningElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "title"): SVGTitleElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "use"): SVGUseElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: "view"): SVGViewElement;\n    createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;\n    createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;\n    createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;\n    createEvent(eventInterface: "AnimationEvent"): AnimationEvent;\n    createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;\n    createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;\n    createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;\n    createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;\n    createEvent(eventInterface: "CloseEvent"): CloseEvent;\n    createEvent(eventInterface: "CompositionEvent"): CompositionEvent;\n    createEvent(eventInterface: "CustomEvent"): CustomEvent;\n    createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;\n    createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;\n    createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;\n    createEvent(eventInterface: "DragEvent"): DragEvent;\n    createEvent(eventInterface: "ErrorEvent"): ErrorEvent;\n    createEvent(eventInterface: "Event"): Event;\n    createEvent(eventInterface: "Events"): Event;\n    createEvent(eventInterface: "FocusEvent"): FocusEvent;\n    createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;\n    createEvent(eventInterface: "GamepadEvent"): GamepadEvent;\n    createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;\n    createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;\n    createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;\n    createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;\n    createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent;\n    createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;\n    createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;\n    createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;\n    createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;\n    createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;\n    createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;\n    createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;\n    createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;\n    createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;\n    createEvent(eventInterface: "MessageEvent"): MessageEvent;\n    createEvent(eventInterface: "MouseEvent"): MouseEvent;\n    createEvent(eventInterface: "MouseEvents"): MouseEvent;\n    createEvent(eventInterface: "MutationEvent"): MutationEvent;\n    createEvent(eventInterface: "MutationEvents"): MutationEvent;\n    createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;\n    createEvent(eventInterface: "OverflowEvent"): OverflowEvent;\n    createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;\n    createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;\n    createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;\n    createEvent(eventInterface: "PointerEvent"): PointerEvent;\n    createEvent(eventInterface: "PopStateEvent"): PopStateEvent;\n    createEvent(eventInterface: "ProgressEvent"): ProgressEvent;\n    createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;\n    createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;\n    createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;\n    createEvent(eventInterface: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;\n    createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;\n    createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;\n    createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;\n    createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;\n    createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;\n    createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;\n    createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;\n    createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent;\n    createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;\n    createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;\n    createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;\n    createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;\n    createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;\n    createEvent(eventInterface: "SpeechRecognitionError"): SpeechRecognitionError;\n    createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;\n    createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;\n    createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;\n    createEvent(eventInterface: "StorageEvent"): StorageEvent;\n    createEvent(eventInterface: "TextEvent"): TextEvent;\n    createEvent(eventInterface: "TouchEvent"): TouchEvent;\n    createEvent(eventInterface: "TrackEvent"): TrackEvent;\n    createEvent(eventInterface: "TransitionEvent"): TransitionEvent;\n    createEvent(eventInterface: "UIEvent"): UIEvent;\n    createEvent(eventInterface: "UIEvents"): UIEvent;\n    createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent;\n    createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;\n    createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;\n    createEvent(eventInterface: "WheelEvent"): WheelEvent;\n    createEvent(eventInterface: string): Event;\n    /**\n     * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n     * @param root The root element or node to start traversing on.\n     * @param whatToShow The type of nodes or elements to appear in the node list\n     * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.\n     * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.\n     */\n    createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;\n    /**\n     * Returns a ProcessingInstruction node whose target is target and data is data.\n     * If target does not match the Name production an\n     * "InvalidCharacterError" DOMException will be thrown.\n     * If data contains "?>" an\n     * "InvalidCharacterError" DOMException will be thrown.\n     */\n    createProcessingInstruction(target: string, data: string): ProcessingInstruction;\n    /**\n     *  Returns an empty range object that has both of its boundary points positioned at the beginning of the document.\n     */\n    createRange(): Range;\n    /**\n     * Creates a text string from the specified value.\n     * @param data String that specifies the nodeValue property of the text node.\n     */\n    createTextNode(data: string): Text;\n    createTouch(view: WindowProxy, target: EventTarget, identifier: number, pageX: number, pageY: number, screenX: number, screenY: number): Touch;\n    createTouchList(...touches: Touch[]): TouchList;\n    /**\n     * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.\n     * @param root The root element or node to start traversing on.\n     * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.\n     * @param filter A custom NodeFilter function to use.\n     * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.\n     */\n    createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null, entityReferenceExpansion?: boolean): TreeWalker;\n    /**\n     * Returns the element for the specified x coordinate and the specified y coordinate.\n     * @param x The x-offset\n     * @param y The y-offset\n     */\n    elementFromPoint(x: number, y: number): Element | null;\n    elementsFromPoint(x: number, y: number): Element[];\n    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;\n    /**\n     * Executes a command on the current document, current selection, or the given range.\n     * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.\n     * @param showUI Display the user interface, defaults to false.\n     * @param value Value to assign.\n     */\n    execCommand(commandId: string, showUI?: boolean, value?: string): boolean;\n    /**\n     * Stops document\'s fullscreen element from being displayed fullscreen and\n     * resolves promise when done.\n     */\n    exitFullscreen(): Promise<void>;\n    getAnimations(): Animation[];\n    /**\n     * Returns a reference to the first object with the specified value of the ID or NAME attribute.\n     * @param elementId String that specifies the ID value. Case-insensitive.\n     */\n    getElementById(elementId: string): HTMLElement | null;\n    /**\n     * collection = element . getElementsByClassName(classNames)\n     */\n    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n    /**\n     * Gets a collection of objects based on the value of the NAME or ID attribute.\n     * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.\n     */\n    getElementsByName(elementName: string): NodeListOf<HTMLElement>;\n    /**\n     * Retrieves a collection of objects based on the specified element name.\n     * @param name Specifies the name of an element.\n     */\n    getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;\n    getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;\n    getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n    /**\n     * If namespace and localName are\n     * "*" returns a HTMLCollection of all descendant elements.\n     * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.\n     * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.\n     * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.\n     */\n    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;\n    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;\n    getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf<Element>;\n    /**\n     * Gets a value indicating whether the object currently has focus.\n     */\n    hasFocus(): boolean;\n    importNode<T extends Node>(importedNode: T, deep: boolean): T;\n    /**\n     * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.\n     * @param url Specifies a MIME type for the document.\n     * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.\n     * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.\n     * @param replace Specifies whether the existing entry for the document is replaced in the history list.\n     */\n    open(url?: string, name?: string, features?: string, replace?: boolean): Document;\n    /**\n     * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.\n     * @param commandId Specifies a command identifier.\n     */\n    queryCommandEnabled(commandId: string): boolean;\n    /**\n     * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.\n     * @param commandId String that specifies a command identifier.\n     */\n    queryCommandIndeterm(commandId: string): boolean;\n    /**\n     * Returns a Boolean value that indicates the current state of the command.\n     * @param commandId String that specifies a command identifier.\n     */\n    queryCommandState(commandId: string): boolean;\n    /**\n     * Returns a Boolean value that indicates whether the current command is supported on the current range.\n     * @param commandId Specifies a command identifier.\n     */\n    queryCommandSupported(commandId: string): boolean;\n    /**\n     * Returns the current value of the document, range, or current selection for the given command.\n     * @param commandId String that specifies a command identifier.\n     */\n    queryCommandValue(commandId: string): string;\n    /** @deprecated */\n    releaseEvents(): void;\n    /**\n     * Writes one or more HTML expressions to a document in the specified window.\n     * @param content Specifies the text and HTML tags to write.\n     */\n    write(...text: string[]): void;\n    /**\n     * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.\n     * @param content The text and HTML tags to write.\n     */\n    writeln(...text: string[]): void;\n    /**\n     * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.\n     */\n    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Document: {\n    prototype: Document;\n    new(): Document;\n};\n\ninterface DocumentAndElementEventHandlersEventMap {\n    "copy": ClipboardEvent;\n    "cut": ClipboardEvent;\n    "paste": ClipboardEvent;\n}\n\ninterface DocumentAndElementEventHandlers {\n    oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\n    oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\n    onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\n    addEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface DocumentEvent {\n    createEvent(eventInterface: "AnimationEvent"): AnimationEvent;\n    createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;\n    createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;\n    createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;\n    createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;\n    createEvent(eventInterface: "CloseEvent"): CloseEvent;\n    createEvent(eventInterface: "CompositionEvent"): CompositionEvent;\n    createEvent(eventInterface: "CustomEvent"): CustomEvent;\n    createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;\n    createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;\n    createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;\n    createEvent(eventInterface: "DragEvent"): DragEvent;\n    createEvent(eventInterface: "ErrorEvent"): ErrorEvent;\n    createEvent(eventInterface: "Event"): Event;\n    createEvent(eventInterface: "Events"): Event;\n    createEvent(eventInterface: "FocusEvent"): FocusEvent;\n    createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;\n    createEvent(eventInterface: "GamepadEvent"): GamepadEvent;\n    createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;\n    createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;\n    createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;\n    createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent;\n    createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent;\n    createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;\n    createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;\n    createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;\n    createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;\n    createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;\n    createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;\n    createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;\n    createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;\n    createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;\n    createEvent(eventInterface: "MessageEvent"): MessageEvent;\n    createEvent(eventInterface: "MouseEvent"): MouseEvent;\n    createEvent(eventInterface: "MouseEvents"): MouseEvent;\n    createEvent(eventInterface: "MutationEvent"): MutationEvent;\n    createEvent(eventInterface: "MutationEvents"): MutationEvent;\n    createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;\n    createEvent(eventInterface: "OverflowEvent"): OverflowEvent;\n    createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;\n    createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;\n    createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;\n    createEvent(eventInterface: "PointerEvent"): PointerEvent;\n    createEvent(eventInterface: "PopStateEvent"): PopStateEvent;\n    createEvent(eventInterface: "ProgressEvent"): ProgressEvent;\n    createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;\n    createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;\n    createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;\n    createEvent(eventInterface: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;\n    createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;\n    createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;\n    createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;\n    createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;\n    createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;\n    createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;\n    createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;\n    createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent;\n    createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;\n    createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;\n    createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;\n    createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;\n    createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;\n    createEvent(eventInterface: "SpeechRecognitionError"): SpeechRecognitionError;\n    createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;\n    createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;\n    createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;\n    createEvent(eventInterface: "StorageEvent"): StorageEvent;\n    createEvent(eventInterface: "TextEvent"): TextEvent;\n    createEvent(eventInterface: "TouchEvent"): TouchEvent;\n    createEvent(eventInterface: "TrackEvent"): TrackEvent;\n    createEvent(eventInterface: "TransitionEvent"): TransitionEvent;\n    createEvent(eventInterface: "UIEvent"): UIEvent;\n    createEvent(eventInterface: "UIEvents"): UIEvent;\n    createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent;\n    createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;\n    createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;\n    createEvent(eventInterface: "WheelEvent"): WheelEvent;\n    createEvent(eventInterface: string): Event;\n}\n\ninterface DocumentFragment extends Node, NonElementParentNode, ParentNode {\n    getElementById(elementId: string): HTMLElement | null;\n}\n\ndeclare var DocumentFragment: {\n    prototype: DocumentFragment;\n    new(): DocumentFragment;\n};\n\ninterface DocumentOrShadowRoot {\n    readonly activeElement: Element | null;\n    /**\n     * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.\n     */\n    readonly styleSheets: StyleSheetList;\n    elementFromPoint(x: number, y: number): Element | null;\n    elementsFromPoint(x: number, y: number): Element[];\n    getSelection(): Selection | null;\n}\n\ninterface DocumentTimeline extends AnimationTimeline {\n}\n\ndeclare var DocumentTimeline: {\n    prototype: DocumentTimeline;\n    new(options?: DocumentTimelineOptions): DocumentTimeline;\n};\n\ninterface DocumentType extends Node, ChildNode {\n    readonly name: string;\n    readonly publicId: string;\n    readonly systemId: string;\n}\n\ndeclare var DocumentType: {\n    prototype: DocumentType;\n    new(): DocumentType;\n};\n\ninterface DragEvent extends MouseEvent {\n    /**\n     * Returns the DataTransfer object for the event.\n     */\n    readonly dataTransfer: DataTransfer | null;\n}\n\ndeclare var DragEvent: {\n    prototype: DragEvent;\n    new(type: string, eventInitDict?: DragEventInit): DragEvent;\n};\n\ninterface DynamicsCompressorNode extends AudioNode {\n    readonly attack: AudioParam;\n    readonly knee: AudioParam;\n    readonly ratio: AudioParam;\n    readonly reduction: number;\n    readonly release: AudioParam;\n    readonly threshold: AudioParam;\n}\n\ndeclare var DynamicsCompressorNode: {\n    prototype: DynamicsCompressorNode;\n    new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;\n};\n\ninterface EXT_blend_minmax {\n    readonly MAX_EXT: number;\n    readonly MIN_EXT: number;\n}\n\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n    readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: number;\n    readonly SRGB8_ALPHA8_EXT: number;\n    readonly SRGB_ALPHA_EXT: number;\n    readonly SRGB_EXT: number;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\ninterface EXT_texture_filter_anisotropic {\n    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;\n    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;\n}\n\ndeclare var EXT_texture_filter_anisotropic: {\n    prototype: EXT_texture_filter_anisotropic;\n    new(): EXT_texture_filter_anisotropic;\n    readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: number;\n    readonly TEXTURE_MAX_ANISOTROPY_EXT: number;\n};\n\ninterface ElementEventMap {\n    "fullscreenchange": Event;\n    "fullscreenerror": Event;\n}\n\ninterface Element extends Node, ParentNode, NonDocumentTypeChildNode, ChildNode, Slotable, Animatable {\n    readonly assignedSlot: HTMLSlotElement | null;\n    readonly attributes: NamedNodeMap;\n    /**\n     * Allows for manipulation of element\'s class content attribute as a\n     * set of whitespace-separated tokens through a DOMTokenList object.\n     */\n    readonly classList: DOMTokenList;\n    /**\n     * Returns the value of element\'s class content attribute. Can be set\n     * to change it.\n     */\n    className: string;\n    readonly clientHeight: number;\n    readonly clientLeft: number;\n    readonly clientTop: number;\n    readonly clientWidth: number;\n    /**\n     * Returns the value of element\'s id content attribute. Can be set to\n     * change it.\n     */\n    id: string;\n    innerHTML: string;\n    /**\n     * Returns the local name.\n     */\n    readonly localName: string;\n    /**\n     * Returns the namespace.\n     */\n    readonly namespaceURI: string | null;\n    onfullscreenchange: ((this: Element, ev: Event) => any) | null;\n    onfullscreenerror: ((this: Element, ev: Event) => any) | null;\n    outerHTML: string;\n    /**\n     * Returns the namespace prefix.\n     */\n    readonly prefix: string | null;\n    readonly scrollHeight: number;\n    scrollLeft: number;\n    scrollTop: number;\n    readonly scrollWidth: number;\n    /**\n     * Returns element\'s shadow root, if any, and if shadow root\'s mode is "open", and null otherwise.\n     */\n    readonly shadowRoot: ShadowRoot | null;\n    /**\n     * Returns the value of element\'s slot content attribute. Can be set to\n     * change it.\n     */\n    slot: string;\n    /**\n     * Returns the HTML-uppercased qualified name.\n     */\n    readonly tagName: string;\n    /**\n     * Creates a shadow root for element and returns it.\n     */\n    attachShadow(shadowRootInitDict: ShadowRootInit): ShadowRoot;\n    /**\n     * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.\n     */\n    closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;\n    closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;\n    closest(selector: string): Element | null;\n    /**\n     * Returns element\'s first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.\n     */\n    getAttribute(qualifiedName: string): string | null;\n    /**\n     * Returns element\'s attribute whose namespace is namespace and local name is localName, and null if there is\n     * no such attribute otherwise.\n     */\n    getAttributeNS(namespace: string | null, localName: string): string | null;\n    /**\n     * Returns the qualified names of all element\'s attributes.\n     * Can contain duplicates.\n     */\n    getAttributeNames(): string[];\n    getAttributeNode(name: string): Attr | null;\n    getAttributeNodeNS(namespaceURI: string, localName: string): Attr | null;\n    getBoundingClientRect(): ClientRect | DOMRect;\n    getClientRects(): ClientRectList | DOMRectList;\n    getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;\n    getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;\n    getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;\n    getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;\n    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;\n    getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;\n    getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf<Element>;\n    /**\n     * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.\n     */\n    hasAttribute(qualifiedName: string): boolean;\n    /**\n     * Returns true if element has an attribute whose namespace is namespace and local name is localName.\n     */\n    hasAttributeNS(namespace: string | null, localName: string): boolean;\n    /**\n     * Returns true if element has attributes, and false otherwise.\n     */\n    hasAttributes(): boolean;\n    hasPointerCapture(pointerId: number): boolean;\n    insertAdjacentElement(position: InsertPosition, insertedElement: Element): Element | null;\n    insertAdjacentHTML(where: InsertPosition, html: string): void;\n    insertAdjacentText(where: InsertPosition, text: string): void;\n    /**\n     * Returns true if matching selectors against element\'s root yields element, and false otherwise.\n     */\n    matches(selectors: string): boolean;\n    msGetRegionContent(): any;\n    releasePointerCapture(pointerId: number): void;\n    /**\n     * Removes element\'s first attribute whose qualified name is qualifiedName.\n     */\n    removeAttribute(qualifiedName: string): void;\n    /**\n     * Removes element\'s attribute whose namespace is namespace and local name is localName.\n     */\n    removeAttributeNS(namespace: string | null, localName: string): void;\n    removeAttributeNode(attr: Attr): Attr;\n    /**\n     * Displays element fullscreen and resolves promise when done.\n     */\n    requestFullscreen(): Promise<void>;\n    scroll(options?: ScrollToOptions): void;\n    scroll(x: number, y: number): void;\n    scrollBy(options?: ScrollToOptions): void;\n    scrollBy(x: number, y: number): void;\n    scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;\n    scrollTo(options?: ScrollToOptions): void;\n    scrollTo(x: number, y: number): void;\n    /**\n     * Sets the value of element\'s first attribute whose qualified name is qualifiedName to value.\n     */\n    setAttribute(qualifiedName: string, value: string): void;\n    /**\n     * Sets the value of element\'s attribute whose namespace is namespace and local name is localName to value.\n     */\n    setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;\n    setAttributeNode(attr: Attr): Attr | null;\n    setAttributeNodeNS(attr: Attr): Attr | null;\n    setPointerCapture(pointerId: number): void;\n    /**\n     * If force is not given, "toggles" qualifiedName, removing it if it is\n     * present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.\n     * Returns true if qualifiedName is now present, and false otherwise.\n     */\n    toggleAttribute(qualifiedName: string, force?: boolean): boolean;\n    webkitMatchesSelector(selectors: string): boolean;\n    addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Element: {\n    prototype: Element;\n    new(): Element;\n};\n\ninterface ElementCSSInlineStyle {\n    readonly style: CSSStyleDeclaration;\n}\n\ninterface ElementContentEditable {\n    contentEditable: string;\n    inputMode: string;\n    readonly isContentEditable: boolean;\n}\n\ninterface ElementCreationOptions {\n    is?: string;\n}\n\ninterface ErrorEvent extends Event {\n    readonly colno: number;\n    readonly error: any;\n    readonly filename: string;\n    readonly lineno: number;\n    readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n    prototype: ErrorEvent;\n    new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\ninterface Event {\n    /**\n     * Returns true or false depending on how event was initialized. True if event goes through its target\'s ancestors in reverse tree order, and false otherwise.\n     */\n    readonly bubbles: boolean;\n    cancelBubble: boolean;\n    readonly cancelable: boolean;\n    /**\n     * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.\n     */\n    readonly composed: boolean;\n    /**\n     * Returns the object whose event listener\'s callback is currently being\n     * invoked.\n     */\n    readonly currentTarget: EventTarget | null;\n    readonly defaultPrevented: boolean;\n    readonly eventPhase: number;\n    /**\n     * Returns true if event was dispatched by the user agent, and\n     * false otherwise.\n     */\n    readonly isTrusted: boolean;\n    returnValue: boolean;\n    readonly srcElement: Element | null;\n    /**\n     * Returns the object to which event is dispatched (its target).\n     */\n    readonly target: EventTarget | null;\n    /**\n     * Returns the event\'s timestamp as the number of milliseconds measured relative to\n     * the time origin.\n     */\n    readonly timeStamp: number;\n    /**\n     * Returns the type of event, e.g.\n     * "click", "hashchange", or\n     * "submit".\n     */\n    readonly type: string;\n    composedPath(): EventTarget[];\n    initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n    preventDefault(): void;\n    /**\n     * Invoking this method prevents event from reaching\n     * any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any\n     * other objects.\n     */\n    stopImmediatePropagation(): void;\n    /**\n     * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.\n     */\n    stopPropagation(): void;\n    readonly AT_TARGET: number;\n    readonly BUBBLING_PHASE: number;\n    readonly CAPTURING_PHASE: number;\n    readonly NONE: number;\n}\n\ndeclare var Event: {\n    prototype: Event;\n    new(type: string, eventInitDict?: EventInit): Event;\n    readonly AT_TARGET: number;\n    readonly BUBBLING_PHASE: number;\n    readonly CAPTURING_PHASE: number;\n    readonly NONE: number;\n};\n\ninterface EventListenerObject {\n    handleEvent(evt: Event): void;\n}\n\ninterface EventSource extends EventTarget {\n    readonly CLOSED: number;\n    readonly CONNECTING: number;\n    readonly OPEN: number;\n    onerror: (evt: MessageEvent) => any;\n    onmessage: (evt: MessageEvent) => any;\n    onopen: (evt: MessageEvent) => any;\n    readonly readyState: number;\n    readonly url: string;\n    readonly withCredentials: boolean;\n    close(): void;\n}\n\ndeclare var EventSource: {\n    prototype: EventSource;\n    new(url: string, eventSourceInitDict?: EventSourceInit): EventSource;\n};\n\ninterface EventSourceInit {\n    readonly withCredentials: boolean;\n}\n\ninterface EventTarget {\n    /**\n     * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.\n     * The options argument sets listener-specific options. For compatibility this can be a\n     * boolean, in which case the method behaves exactly as if the value was specified as options\'s capture.\n     * When set to true, options\'s capture prevents callback from being invoked when the event\'s eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event\'s eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event\'s eventPhase attribute value is AT_TARGET.\n     * When set to true, options\'s passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners.\n     * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will\n     * be removed.\n     * The event listener is appended to target\'s event listener list and is not appended if it has the same type, callback, and capture.\n     */\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;\n    /**\n     * Dispatches a synthetic event event to target and returns true\n     * if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n     */\n    dispatchEvent(event: Event): boolean;\n    /**\n     * Removes the event listener in target\'s event listener list with the same type, callback, and options.\n     */\n    removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n    prototype: EventTarget;\n    new(): EventTarget;\n};\n\ninterface ExtensionScriptApis {\n    extensionIdToShortId(extensionId: string): number;\n    fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;\n    genericFunction(routerAddress: any, parameters?: string, callbackId?: number): void;\n    genericSynchronousFunction(functionId: number, parameters?: string): string;\n    genericWebRuntimeCallout(to: any, from: any, payload: string): void;\n    getExtensionId(): string;\n    registerGenericFunctionCallbackHandler(callbackHandler: Function): void;\n    registerGenericPersistentCallbackHandler(callbackHandler: Function): void;\n    registerWebRuntimeCallbackHandler(handler: Function): any;\n}\n\ndeclare var ExtensionScriptApis: {\n    prototype: ExtensionScriptApis;\n    new(): ExtensionScriptApis;\n};\n\ninterface External {\n    /** @deprecated */\n    AddSearchProvider(): void;\n    /** @deprecated */\n    IsSearchProviderInstalled(): void;\n}\n\ninterface File extends Blob {\n    readonly lastModified: number;\n    readonly name: string;\n}\n\ndeclare var File: {\n    prototype: File;\n    new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\ninterface FileList {\n    readonly length: number;\n    item(index: number): File | null;\n    [index: number]: File;\n}\n\ndeclare var FileList: {\n    prototype: FileList;\n    new(): FileList;\n};\n\ninterface FileReaderEventMap {\n    "abort": ProgressEvent;\n    "error": ProgressEvent;\n    "load": ProgressEvent;\n    "loadend": ProgressEvent;\n    "loadstart": ProgressEvent;\n    "progress": ProgressEvent;\n}\n\ninterface FileReader extends EventTarget {\n    readonly error: DOMException | null;\n    onabort: ((this: FileReader, ev: ProgressEvent) => any) | null;\n    onerror: ((this: FileReader, ev: ProgressEvent) => any) | null;\n    onload: ((this: FileReader, ev: ProgressEvent) => any) | null;\n    onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null;\n    onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null;\n    onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null;\n    readonly readyState: number;\n    readonly result: string | ArrayBuffer | null;\n    abort(): void;\n    readAsArrayBuffer(blob: Blob): void;\n    readAsBinaryString(blob: Blob): void;\n    readAsDataURL(blob: Blob): void;\n    readAsText(blob: Blob, label?: string): void;\n    readonly DONE: number;\n    readonly EMPTY: number;\n    readonly LOADING: number;\n    addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FileReader: {\n    prototype: FileReader;\n    new(): FileReader;\n    readonly DONE: number;\n    readonly EMPTY: number;\n    readonly LOADING: number;\n};\n\ninterface FocusEvent extends UIEvent {\n    readonly relatedTarget: EventTarget;\n    initFocusEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, relatedTargetArg: EventTarget): void;\n}\n\ndeclare var FocusEvent: {\n    prototype: FocusEvent;\n    new(typeArg: string, eventInitDict?: FocusEventInit): FocusEvent;\n};\n\ninterface FocusNavigationEvent extends Event {\n    readonly navigationReason: NavigationReason;\n    readonly originHeight: number;\n    readonly originLeft: number;\n    readonly originTop: number;\n    readonly originWidth: number;\n    requestFocus(): void;\n}\n\ndeclare var FocusNavigationEvent: {\n    prototype: FocusNavigationEvent;\n    new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent;\n};\n\ninterface FormData {\n    append(name: string, value: string | Blob, fileName?: string): void;\n    delete(name: string): void;\n    get(name: string): FormDataEntryValue | null;\n    getAll(name: string): FormDataEntryValue[];\n    has(name: string): boolean;\n    set(name: string, value: string | Blob, fileName?: string): void;\n    forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\n}\n\ndeclare var FormData: {\n    prototype: FormData;\n    new(form?: HTMLFormElement): FormData;\n};\n\ninterface GainNode extends AudioNode {\n    readonly gain: AudioParam;\n}\n\ndeclare var GainNode: {\n    prototype: GainNode;\n    new(context: BaseAudioContext, options?: GainOptions): GainNode;\n};\n\ninterface Gamepad {\n    readonly axes: number[];\n    readonly buttons: GamepadButton[];\n    readonly connected: boolean;\n    readonly displayId: number;\n    readonly hand: GamepadHand;\n    readonly hapticActuators: GamepadHapticActuator[];\n    readonly id: string;\n    readonly index: number;\n    readonly mapping: GamepadMappingType;\n    readonly pose: GamepadPose | null;\n    readonly timestamp: number;\n}\n\ndeclare var Gamepad: {\n    prototype: Gamepad;\n    new(): Gamepad;\n};\n\ninterface GamepadButton {\n    readonly pressed: boolean;\n    readonly touched: boolean;\n    readonly value: number;\n}\n\ndeclare var GamepadButton: {\n    prototype: GamepadButton;\n    new(): GamepadButton;\n};\n\ninterface GamepadEvent extends Event {\n    readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n    prototype: GamepadEvent;\n    new(typeArg: string, eventInitDict?: GamepadEventInit): GamepadEvent;\n};\n\ninterface GamepadHapticActuator {\n    readonly type: GamepadHapticActuatorType;\n    pulse(value: number, duration: number): Promise<boolean>;\n}\n\ndeclare var GamepadHapticActuator: {\n    prototype: GamepadHapticActuator;\n    new(): GamepadHapticActuator;\n};\n\ninterface GamepadPose {\n    readonly angularAcceleration: Float32Array | null;\n    readonly angularVelocity: Float32Array | null;\n    readonly hasOrientation: boolean;\n    readonly hasPosition: boolean;\n    readonly linearAcceleration: Float32Array | null;\n    readonly linearVelocity: Float32Array | null;\n    readonly orientation: Float32Array | null;\n    readonly position: Float32Array | null;\n}\n\ndeclare var GamepadPose: {\n    prototype: GamepadPose;\n    new(): GamepadPose;\n};\n\ninterface Geolocation {\n    clearWatch(watchId: number): void;\n    getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void;\n    watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;\n}\n\ninterface GetSVGDocument {\n    getSVGDocument(): Document;\n}\n\ninterface GlobalEventHandlersEventMap {\n    "abort": UIEvent;\n    "animationcancel": AnimationEvent;\n    "animationend": AnimationEvent;\n    "animationiteration": AnimationEvent;\n    "animationstart": AnimationEvent;\n    "auxclick": Event;\n    "blur": FocusEvent;\n    "cancel": Event;\n    "canplay": Event;\n    "canplaythrough": Event;\n    "change": Event;\n    "click": MouseEvent;\n    "close": Event;\n    "contextmenu": MouseEvent;\n    "cuechange": Event;\n    "dblclick": MouseEvent;\n    "drag": DragEvent;\n    "dragend": DragEvent;\n    "dragenter": DragEvent;\n    "dragexit": Event;\n    "dragleave": DragEvent;\n    "dragover": DragEvent;\n    "dragstart": DragEvent;\n    "drop": DragEvent;\n    "durationchange": Event;\n    "emptied": Event;\n    "ended": Event;\n    "error": ErrorEvent;\n    "focus": FocusEvent;\n    "gotpointercapture": PointerEvent;\n    "input": Event;\n    "invalid": Event;\n    "keydown": KeyboardEvent;\n    "keypress": KeyboardEvent;\n    "keyup": KeyboardEvent;\n    "load": Event;\n    "loadeddata": Event;\n    "loadedmetadata": Event;\n    "loadend": ProgressEvent;\n    "loadstart": Event;\n    "lostpointercapture": PointerEvent;\n    "mousedown": MouseEvent;\n    "mouseenter": MouseEvent;\n    "mouseleave": MouseEvent;\n    "mousemove": MouseEvent;\n    "mouseout": MouseEvent;\n    "mouseover": MouseEvent;\n    "mouseup": MouseEvent;\n    "pause": Event;\n    "play": Event;\n    "playing": Event;\n    "pointercancel": PointerEvent;\n    "pointerdown": PointerEvent;\n    "pointerenter": PointerEvent;\n    "pointerleave": PointerEvent;\n    "pointermove": PointerEvent;\n    "pointerout": PointerEvent;\n    "pointerover": PointerEvent;\n    "pointerup": PointerEvent;\n    "progress": ProgressEvent;\n    "ratechange": Event;\n    "reset": Event;\n    "resize": UIEvent;\n    "scroll": UIEvent;\n    "securitypolicyviolation": SecurityPolicyViolationEvent;\n    "seeked": Event;\n    "seeking": Event;\n    "select": UIEvent;\n    "stalled": Event;\n    "submit": Event;\n    "suspend": Event;\n    "timeupdate": Event;\n    "toggle": Event;\n    "touchcancel": TouchEvent;\n    "touchend": TouchEvent;\n    "touchmove": TouchEvent;\n    "touchstart": TouchEvent;\n    "transitioncancel": TransitionEvent;\n    "transitionend": TransitionEvent;\n    "transitionrun": TransitionEvent;\n    "transitionstart": TransitionEvent;\n    "volumechange": Event;\n    "waiting": Event;\n    "wheel": WheelEvent;\n}\n\ninterface GlobalEventHandlers {\n    /**\n     * Fires when the user aborts the download.\n     * @param ev The event.\n     */\n    onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n    onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n    onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n    onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n    onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n    onauxclick: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the object loses the input focus.\n     * @param ev The focus event.\n     */\n    onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n    oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when playback is possible, but would require further buffering.\n     * @param ev The event.\n     */\n    oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the contents of the object or selection have changed.\n     * @param ev The event.\n     */\n    onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the user clicks the left mouse button on the object\n     * @param ev The mouse event.\n     */\n    onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n     * @param ev The mouse event.\n     */\n    oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the user double-clicks the object.\n     * @param ev The mouse event.\n     */\n    ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    /**\n     * Fires on the source object continuously during a drag operation.\n     * @param ev The event.\n     */\n    ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    /**\n     * Fires on the source object when the user releases the mouse at the close of a drag operation.\n     * @param ev The event.\n     */\n    ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    /**\n     * Fires on the target element when the user drags the object to a valid drop target.\n     * @param ev The drag event.\n     */\n    ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    ondragexit: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n     * @param ev The drag event.\n     */\n    ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    /**\n     * Fires on the target element continuously while the user drags the object over a valid drop target.\n     * @param ev The event.\n     */\n    ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    /**\n     * Fires on the source object when the user starts to drag a text selection or selected object.\n     * @param ev The event.\n     */\n    ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n    /**\n     * Occurs when the duration attribute is updated.\n     * @param ev The event.\n     */\n    ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the media element is reset to its initial state.\n     * @param ev The event.\n     */\n    onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the end of playback is reached.\n     * @param ev The event\n     */\n    onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when an error occurs during object loading.\n     * @param ev The event.\n     */\n    onerror: ErrorEventHandler;\n    /**\n     * Fires when the object receives focus.\n     * @param ev The event.\n     */\n    onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n    ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the user presses a key.\n     * @param ev The keyboard event\n     */\n    onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n    /**\n     * Fires when the user presses an alphanumeric key.\n     * @param ev The event.\n     */\n    onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n    /**\n     * Fires when the user releases a key.\n     * @param ev The keyboard event\n     */\n    onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n    /**\n     * Fires immediately after the browser loads the object.\n     * @param ev The event.\n     */\n    onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when media data is loaded at the current playback position.\n     * @param ev The event.\n     */\n    onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the duration and dimensions of the media have been determined.\n     * @param ev The event.\n     */\n    onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onloadend: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;\n    /**\n     * Occurs when Internet Explorer begins looking for media data.\n     * @param ev The event.\n     */\n    onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    /**\n     * Fires when the user clicks the object with either mouse button.\n     * @param ev The mouse event.\n     */\n    onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    /**\n     * Fires when the user moves the mouse over the object.\n     * @param ev The mouse event.\n     */\n    onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    /**\n     * Fires when the user moves the mouse pointer outside the boundaries of the object.\n     * @param ev The mouse event.\n     */\n    onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    /**\n     * Fires when the user moves the mouse pointer into the object.\n     * @param ev The mouse event.\n     */\n    onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    /**\n     * Fires when the user releases a mouse button while the mouse is over the object.\n     * @param ev The mouse event.\n     */\n    onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n    /**\n     * Occurs when playback is paused.\n     * @param ev The event.\n     */\n    onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the play method is requested.\n     * @param ev The event.\n     */\n    onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the audio or video has started playing.\n     * @param ev The event.\n     */\n    onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n    /**\n     * Occurs to indicate progress while downloading media data.\n     * @param ev The event.\n     */\n    onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;\n    /**\n     * Occurs when the playback rate is increased or decreased.\n     * @param ev The event.\n     */\n    onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the user resets a form.\n     * @param ev The event.\n     */\n    onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n    /**\n     * Fires when the user repositions the scroll box in the scroll bar on the object.\n     * @param ev The event.\n     */\n    onscroll: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n    onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;\n    /**\n     * Occurs when the seek operation ends.\n     * @param ev The event.\n     */\n    onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when the current playback position is moved.\n     * @param ev The event.\n     */\n    onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Fires when the current selection changes.\n     * @param ev The event.\n     */\n    onselect: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n    /**\n     * Occurs when the download has stopped.\n     * @param ev The event.\n     */\n    onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onsubmit: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs if the load operation has been intentionally halted.\n     * @param ev The event.\n     */\n    onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs to indicate the current playback position.\n     * @param ev The event.\n     */\n    ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    ontouchcancel: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;\n    ontouchend: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;\n    ontouchmove: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;\n    ontouchstart: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;\n    ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n    ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n    ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n    ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n    /**\n     * Occurs when the volume is changed, or playback is muted or unmuted.\n     * @param ev The event.\n     */\n    onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    /**\n     * Occurs when playback stops because the next frame of a video resource is not available.\n     * @param ev The event.\n     */\n    onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n    onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;\n    addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface GlobalFetch {\n    fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;\n}\n\ninterface HTMLAllCollection {\n    /**\n     * Returns the number of elements in the collection.\n     */\n    readonly length: number;\n    /**\n     * element = collection(index)\n     */\n    item(nameOrIndex?: string): HTMLCollection | Element | null;\n    /**\n     * element = collection(name)\n     */\n    namedItem(name: string): HTMLCollection | Element | null;\n    [index: number]: Element;\n}\n\ndeclare var HTMLAllCollection: {\n    prototype: HTMLAllCollection;\n    new(): HTMLAllCollection;\n};\n\ninterface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {\n    /**\n     * Sets or retrieves the character set used to encode the object.\n     */\n    /** @deprecated */\n    charset: string;\n    /**\n     * Sets or retrieves the coordinates of the object.\n     */\n    /** @deprecated */\n    coords: string;\n    download: string;\n    /**\n     * Sets or retrieves the language code of the object.\n     */\n    hreflang: string;\n    /**\n     * Sets or retrieves the shape of the object.\n     */\n    /** @deprecated */\n    name: string;\n    ping: string;\n    referrerPolicy: string;\n    /**\n     * Sets or retrieves the relationship between the object and the destination of the link.\n     */\n    rel: string;\n    readonly relList: DOMTokenList;\n    /**\n     * Sets or retrieves the relationship between the object and the destination of the link.\n     */\n    /** @deprecated */\n    rev: string;\n    /**\n     * Sets or retrieves the shape of the object.\n     */\n    /** @deprecated */\n    shape: string;\n    /**\n     * Sets or retrieves the window or frame at which to target content.\n     */\n    target: string;\n    /**\n     * Retrieves or sets the text of the object as a string.\n     */\n    text: string;\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAnchorElement: {\n    prototype: HTMLAnchorElement;\n    new(): HTMLAnchorElement;\n};\n\ninterface HTMLAppletElement extends HTMLElement {\n    /** @deprecated */\n    align: string;\n    /**\n     * Sets or retrieves a text alternative to the graphic.\n     */\n    /** @deprecated */\n    alt: string;\n    /**\n     * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.\n     */\n    /** @deprecated */\n    archive: string;\n    /** @deprecated */\n    code: string;\n    /**\n     * Sets or retrieves the URL of the component.\n     */\n    /** @deprecated */\n    codeBase: string;\n    readonly form: HTMLFormElement | null;\n    /**\n     * Sets or retrieves the height of the object.\n     */\n    /** @deprecated */\n    height: string;\n    /** @deprecated */\n    hspace: number;\n    /**\n     * Sets or retrieves the shape of the object.\n     */\n    /** @deprecated */\n    name: string;\n    /** @deprecated */\n    object: string;\n    /** @deprecated */\n    vspace: number;\n    /** @deprecated */\n    width: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAppletElement: {\n    prototype: HTMLAppletElement;\n    new(): HTMLAppletElement;\n};\n\ninterface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {\n    /**\n     * Sets or retrieves a text alternative to the graphic.\n     */\n    alt: string;\n    /**\n     * Sets or retrieves the coordinates of the object.\n     */\n    coords: string;\n    download: string;\n    /**\n     * Sets or gets whether clicks in this region cause action.\n     */\n    /** @deprecated */\n    noHref: boolean;\n    ping: string;\n    referrerPolicy: string;\n    rel: string;\n    readonly relList: DOMTokenList;\n    /**\n     * Sets or retrieves the shape of the object.\n     */\n    shape: string;\n    /**\n     * Sets or retrieves the window or frame at which to target content.\n     */\n    target: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAreaElement: {\n    prototype: HTMLAreaElement;\n    new(): HTMLAreaElement;\n};\n\ninterface HTMLAudioElement extends HTMLMediaElement {\n    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAudioElement: {\n    prototype: HTMLAudioElement;\n    new(): HTMLAudioElement;\n};\n\ninterface HTMLBRElement extends HTMLElement {\n    /**\n     * Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.\n     */\n    /** @deprecated */\n    clear: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBRElement: {\n    prototype: HTMLBRElement;\n    new(): HTMLBRElement;\n};\n\ninterface HTMLBaseElement extends HTMLElement {\n    /**\n     * Gets or sets the baseline URL on which relative links are based.\n     */\n    href: string;\n    /**\n     * Sets or retrieves the window or frame at which to target content.\n     */\n    target: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBaseElement: {\n    prototype: HTMLBaseElement;\n    new(): HTMLBaseElement;\n};\n\ninterface HTMLBaseFontElement extends HTMLElement, DOML2DeprecatedColorProperty {\n    /**\n     * Sets or retrieves the current typeface family.\n     */\n    /** @deprecated */\n    face: string;\n    /**\n     * Sets or retrieves the font size of the object.\n     */\n    /** @deprecated */\n    size: number;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBaseFontElement: {\n    prototype: HTMLBaseFontElement;\n    new(): HTMLBaseFontElement;\n};\n\ninterface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n    "orientationchange": Event;\n}\n\ninterface HTMLBodyElement extends HTMLElement, WindowEventHandlers {\n    /** @deprecated */\n    aLink: string;\n    /** @deprecated */\n    background: string;\n    /** @deprecated */\n    bgColor: string;\n    bgProperties: string;\n    /** @deprecated */\n    link: string;\n    /** @deprecated */\n    noWrap: boolean;\n    /** @deprecated */\n    onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;\n    /** @deprecated */\n    text: string;\n    /** @deprecated */\n    vLink: string;\n    addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLBodyElement: {\n    prototype: HTMLBodyElement;\n    new(): HTMLBodyElement;\n};\n\ninterface HTMLButtonElement extends HTMLElement {\n    /**\n     * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.\n     */\n    autofocus: boolean;\n    disabled: boolean;\n    /**\n     * Retrieves a reference to the form that the object is embedded in.\n     */\n    readonly form: HTMLFormElement | null;\n    /**\n     * Overrides the action attribute (where the data on a form is sent) on the parent form element.\n     */\n    formAction: string;\n    /**\n     * Used to override the encoding (formEnctype attribute) specified on the form element.\n     */\n    formEnctype: string;\n    /**\n     * Overrides the submit method attribute previously specified on a form element.\n     */\n    formMethod: string;\n    /**\n     * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.\n     */\n    formNoValidate: boolean;\n    /**\n     * Overrides the target attribute on a form element.\n     */\n    formTarget: string;\n    readonly labels: NodeListOf<HTMLLabelElement>;\n    /**\n     * Sets or retrieves the name of the object.\n     */\n    name: string;\n    /**\n     * Gets the classification and default behavior of the button.\n     */\n    type: string;\n    /**\n     * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n     */\n    readonly validationMessage: string;\n    /**\n     * Returns a  ValidityState object that represents the validity states of an element.\n     */\n    readonly validity: ValidityState;\n    /**\n     * Sets or retrieves the default or selected value of the control.\n     */\n    value: string;\n    /**\n     * Returns whether an element will successfully validate based on forms validation rules and constraints.\n     */\n    readonly willValidate: boolean;\n    /**\n     * Returns whether a form will validate when it is submitted, without having to submit it.\n     */\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    /**\n     * Sets a custom error message that is displayed when a form is submitted.\n     * @param error Sets a custom error message that is displayed when a form is submitted.\n     */\n    setCustomValidity(error: string): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLButtonElement: {\n    prototype: HTMLButtonElement;\n    new(): HTMLButtonElement;\n};\n\ninterface HTMLCanvasElement extends HTMLElement {\n    /**\n     * Gets or sets the height of a canvas element on a document.\n     */\n    height: number;\n    /**\n     * Gets or sets the width of a canvas element on a document.\n     */\n    width: number;\n    /**\n     * Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.\n     * @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");\n     */\n    getContext(contextId: "2d", contextAttributes?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;\n    getContext(contextId: "webgl" | "experimental-webgl", contextAttributes?: WebGLContextAttributes): WebGLRenderingContext | null;\n    getContext(contextId: string, contextAttributes?: {}): CanvasRenderingContext2D | WebGLRenderingContext | null;\n    toBlob(callback: BlobCallback, type?: string, quality?: any): void;\n    /**\n     * Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.\n     * @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.\n     */\n    toDataURL(type?: string, quality?: any): string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLCanvasElement: {\n    prototype: HTMLCanvasElement;\n    new(): HTMLCanvasElement;\n};\n\ninterface HTMLCollectionBase {\n    /**\n     * Sets or retrieves the number of objects in a collection.\n     */\n    readonly length: number;\n    /**\n     * Retrieves an object from various collections.\n     */\n    item(index: number): Element | null;\n    [index: number]: Element;\n}\n\ninterface HTMLCollection extends HTMLCollectionBase {\n    /**\n     * Retrieves a select object or an object from an options collection.\n     */\n    namedItem(name: string): Element | null;\n}\n\ndeclare var HTMLCollection: {\n    prototype: HTMLCollection;\n    new(): HTMLCollection;\n};\n\ninterface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {\n    item(index: number): T | null;\n    namedItem(name: string): T | null;\n    [index: number]: T;\n}\n\ninterface HTMLDListElement extends HTMLElement {\n    /** @deprecated */\n    compact: boolean;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDListElement: {\n    prototype: HTMLDListElement;\n    new(): HTMLDListElement;\n};\n\ninterface HTMLDataElement extends HTMLElement {\n    value: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDataElement: {\n    prototype: HTMLDataElement;\n    new(): HTMLDataElement;\n};\n\ninterface HTMLDataListElement extends HTMLElement {\n    readonly options: HTMLCollectionOf<HTMLOptionElement>;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDataListElement: {\n    prototype: HTMLDataListElement;\n    new(): HTMLDataListElement;\n};\n\ninterface HTMLDetailsElement extends HTMLElement {\n    open: boolean;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDetailsElement: {\n    prototype: HTMLDetailsElement;\n    new(): HTMLDetailsElement;\n};\n\ninterface HTMLDialogElement extends HTMLElement {\n    open: boolean;\n    returnValue: string;\n    close(returnValue?: string): void;\n    show(): void;\n    showModal(): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDialogElement: {\n    prototype: HTMLDialogElement;\n    new(): HTMLDialogElement;\n};\n\ninterface HTMLDirectoryElement extends HTMLElement {\n    /** @deprecated */\n    compact: boolean;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDirectoryElement: {\n    prototype: HTMLDirectoryElement;\n    new(): HTMLDirectoryElement;\n};\n\ninterface HTMLDivElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     */\n    /** @deprecated */\n    align: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDivElement: {\n    prototype: HTMLDivElement;\n    new(): HTMLDivElement;\n};\n\ninterface HTMLDocument extends Document {\n    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLDocument: {\n    prototype: HTMLDocument;\n    new(): HTMLDocument;\n};\n\ninterface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {\n}\n\ninterface HTMLElement extends Element, GlobalEventHandlers, DocumentAndElementEventHandlers, ElementContentEditable, HTMLOrSVGElement, ElementCSSInlineStyle {\n    accessKey: string;\n    readonly accessKeyLabel: string;\n    autocapitalize: string;\n    dir: string;\n    draggable: boolean;\n    hidden: boolean;\n    innerText: string;\n    lang: string;\n    readonly offsetHeight: number;\n    readonly offsetLeft: number;\n    readonly offsetParent: Element | null;\n    readonly offsetTop: number;\n    readonly offsetWidth: number;\n    spellcheck: boolean;\n    title: string;\n    translate: boolean;\n    click(): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLElement: {\n    prototype: HTMLElement;\n    new(): HTMLElement;\n};\n\ninterface HTMLEmbedElement extends HTMLElement, GetSVGDocument {\n    /** @deprecated */\n    align: string;\n    /**\n     * Sets or retrieves the height of the object.\n     */\n    height: string;\n    hidden: any;\n    /**\n     * Gets or sets whether the DLNA PlayTo device is available.\n     */\n    msPlayToDisabled: boolean;\n    /**\n     * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.\n     */\n    msPlayToPreferredSourceUri: string;\n    /**\n     * Gets or sets the primary DLNA PlayTo device.\n     */\n    msPlayToPrimary: boolean;\n    /**\n     * Gets the source associated with the media element for use by the PlayToManager.\n     */\n    readonly msPlayToSource: any;\n    /**\n     * Sets or retrieves the name of the object.\n     */\n    /** @deprecated */\n    name: string;\n    /**\n     * Retrieves the palette used for the embedded document.\n     */\n    readonly palette: string;\n    /**\n     * Retrieves the URL of the plug-in used to view an embedded document.\n     */\n    readonly pluginspage: string;\n    readonly readyState: string;\n    /**\n     * Sets or retrieves a URL to be loaded by the object.\n     */\n    src: string;\n    /**\n     * Sets or retrieves the height and width units of the embed object.\n     */\n    units: string;\n    /**\n     * Sets or retrieves the width of the object.\n     */\n    width: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLEmbedElement: {\n    prototype: HTMLEmbedElement;\n    new(): HTMLEmbedElement;\n};\n\ninterface HTMLFieldSetElement extends HTMLElement {\n    disabled: boolean;\n    readonly elements: HTMLCollection;\n    /**\n     * Retrieves a reference to the form that the object is embedded in.\n     */\n    readonly form: HTMLFormElement | null;\n    name: string;\n    readonly type: string;\n    /**\n     * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n     */\n    readonly validationMessage: string;\n    /**\n     * Returns a  ValidityState object that represents the validity states of an element.\n     */\n    readonly validity: ValidityState;\n    /**\n     * Returns whether an element will successfully validate based on forms validation rules and constraints.\n     */\n    readonly willValidate: boolean;\n    /**\n     * Returns whether a form will validate when it is submitted, without having to submit it.\n     */\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    /**\n     * Sets a custom error message that is displayed when a form is submitted.\n     * @param error Sets a custom error message that is displayed when a form is submitted.\n     */\n    setCustomValidity(error: string): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLFieldSetElement: {\n    prototype: HTMLFieldSetElement;\n    new(): HTMLFieldSetElement;\n};\n\ninterface HTMLFontElement extends HTMLElement {\n    /** @deprecated */\n    color: string;\n    /**\n     * Sets or retrieves the current typeface family.\n     */\n    /** @deprecated */\n    face: string;\n    /** @deprecated */\n    size: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLFontElement: {\n    prototype: HTMLFontElement;\n    new(): HTMLFontElement;\n};\n\ninterface HTMLFormControlsCollection extends HTMLCollectionBase {\n    /**\n     * element = collection[name]\n     */\n    namedItem(name: string): RadioNodeList | Element | null;\n}\n\ndeclare var HTMLFormControlsCollection: {\n    prototype: HTMLFormControlsCollection;\n    new(): HTMLFormControlsCollection;\n};\n\ninterface HTMLFormElement extends HTMLElement {\n    /**\n     * Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.\n     */\n    acceptCharset: string;\n    /**\n     * Sets or retrieves the URL to which the form content is sent for processing.\n     */\n    action: string;\n    /**\n     * Specifies whether autocomplete is applied to an editable text field.\n     */\n    autocomplete: string;\n    /**\n     * Retrieves a collection, in source order, of all controls in a given form.\n     */\n    readonly elements: HTMLFormControlsCollection;\n    /**\n     * Sets or retrieves the MIME encoding for the form.\n     */\n    encoding: string;\n    /**\n     * Sets or retrieves the encoding type for the form.\n     */\n    enctype: string;\n    /**\n     * Sets or retrieves the number of objects in a collection.\n     */\n    readonly length: number;\n    /**\n     * Sets or retrieves how to send the form data to the server.\n     */\n    method: string;\n    /**\n     * Sets or retrieves the name of the object.\n     */\n    name: string;\n    /**\n     * Designates a form that is not validated when submitted.\n     */\n    noValidate: boolean;\n    /**\n     * Sets or retrieves the window or frame at which to target content.\n     */\n    target: string;\n    /**\n     * Returns whether a form will validate when it is submitted, without having to submit it.\n     */\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    /**\n     * Fires when the user resets a form.\n     */\n    reset(): void;\n    /**\n     * Fires when a FORM is about to be submitted.\n     */\n    submit(): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n    [index: number]: Element;\n    [name: string]: any;\n}\n\ndeclare var HTMLFormElement: {\n    prototype: HTMLFormElement;\n    new(): HTMLFormElement;\n};\n\ninterface HTMLFrameElement extends HTMLElement {\n    /**\n     * Retrieves the document object of the page or frame.\n     */\n    /** @deprecated */\n    readonly contentDocument: Document | null;\n    /**\n     * Retrieves the object of the specified.\n     */\n    /** @deprecated */\n    readonly contentWindow: WindowProxy | null;\n    /**\n     * Sets or retrieves whether to display a border for the frame.\n     */\n    /** @deprecated */\n    frameBorder: string;\n    /**\n     * Sets or retrieves a URI to a long description of the object.\n     */\n    /** @deprecated */\n    longDesc: string;\n    /**\n     * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n     */\n    /** @deprecated */\n    marginHeight: string;\n    /**\n     * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n     */\n    /** @deprecated */\n    marginWidth: string;\n    /**\n     * Sets or retrieves the frame name.\n     */\n    /** @deprecated */\n    name: string;\n    /**\n     * Sets or retrieves whether the user can resize the frame.\n     */\n    /** @deprecated */\n    noResize: boolean;\n    /**\n     * Sets or retrieves whether the frame can be scrolled.\n     */\n    /** @deprecated */\n    scrolling: string;\n    /**\n     * Sets or retrieves a URL to be loaded by the object.\n     */\n    /** @deprecated */\n    src: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLFrameElement: {\n    prototype: HTMLFrameElement;\n    new(): HTMLFrameElement;\n};\n\ninterface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {\n}\n\ninterface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {\n    /**\n     * Sets or retrieves the frame widths of the object.\n     */\n    /** @deprecated */\n    cols: string;\n    /**\n     * Sets or retrieves the frame heights of the object.\n     */\n    /** @deprecated */\n    rows: string;\n    addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLFrameSetElement: {\n    prototype: HTMLFrameSetElement;\n    new(): HTMLFrameSetElement;\n};\n\ninterface HTMLHRElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     */\n    /** @deprecated */\n    align: string;\n    /** @deprecated */\n    color: string;\n    /**\n     * Sets or retrieves whether the horizontal rule is drawn with 3-D shading.\n     */\n    /** @deprecated */\n    noShade: boolean;\n    /** @deprecated */\n    size: string;\n    /**\n     * Sets or retrieves the width of the object.\n     */\n    /** @deprecated */\n    width: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHRElement: {\n    prototype: HTMLHRElement;\n    new(): HTMLHRElement;\n};\n\ninterface HTMLHeadElement extends HTMLElement {\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadElement: {\n    prototype: HTMLHeadElement;\n    new(): HTMLHeadElement;\n};\n\ninterface HTMLHeadingElement extends HTMLElement {\n    /**\n     * Sets or retrieves a value that indicates the table alignment.\n     */\n    /** @deprecated */\n    align: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHeadingElement: {\n    prototype: HTMLHeadingElement;\n    new(): HTMLHeadingElement;\n};\n\ninterface HTMLHtmlElement extends HTMLElement {\n    /**\n     * Sets or retrieves the DTD version that governs the current document.\n     */\n    /** @deprecated */\n    version: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLHtmlElement: {\n    prototype: HTMLHtmlElement;\n    new(): HTMLHtmlElement;\n};\n\ninterface HTMLHyperlinkElementUtils {\n    hash: string;\n    host: string;\n    hostname: string;\n    href: string;\n    readonly origin: string;\n    password: string;\n    pathname: string;\n    port: string;\n    protocol: string;\n    search: string;\n    username: string;\n}\n\ninterface HTMLIFrameElement extends HTMLElement, GetSVGDocument {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     */\n    /** @deprecated */\n    align: string;\n    allowFullscreen: boolean;\n    allowPaymentRequest: boolean;\n    /**\n     * Retrieves the document object of the page or frame.\n     */\n    readonly contentDocument: Document | null;\n    /**\n     * Retrieves the object of the specified.\n     */\n    readonly contentWindow: Window | null;\n    /**\n     * Sets or retrieves whether to display a border for the frame.\n     */\n    /** @deprecated */\n    frameBorder: string;\n    /**\n     * Sets or retrieves the height of the object.\n     */\n    height: string;\n    /**\n     * Sets or retrieves a URI to a long description of the object.\n     */\n    /** @deprecated */\n    longDesc: string;\n    /**\n     * Sets or retrieves the top and bottom margin heights before displaying the text in a frame.\n     */\n    /** @deprecated */\n    marginHeight: string;\n    /**\n     * Sets or retrieves the left and right margin widths before displaying the text in a frame.\n     */\n    /** @deprecated */\n    marginWidth: string;\n    /**\n     * Sets or retrieves the frame name.\n     */\n    name: string;\n    readonly sandbox: DOMTokenList;\n    /**\n     * Sets or retrieves whether the frame can be scrolled.\n     */\n    /** @deprecated */\n    scrolling: string;\n    /**\n     * Sets or retrieves a URL to be loaded by the object.\n     */\n    src: string;\n    /**\n     * Sets or retrives the content of the page that is to contain.\n     */\n    srcdoc: string;\n    /**\n     * Sets or retrieves the width of the object.\n     */\n    width: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLIFrameElement: {\n    prototype: HTMLIFrameElement;\n    new(): HTMLIFrameElement;\n};\n\ninterface HTMLImageElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     */\n    /** @deprecated */\n    align: string;\n    /**\n     * Sets or retrieves a text alternative to the graphic.\n     */\n    alt: string;\n    /**\n     * Specifies the properties of a border drawn around an object.\n     */\n    /** @deprecated */\n    border: string;\n    /**\n     * Retrieves whether the object is fully loaded.\n     */\n    readonly complete: boolean;\n    crossOrigin: string | null;\n    readonly currentSrc: string;\n    decoding: "async" | "sync" | "auto";\n    /**\n     * Sets or retrieves the height of the object.\n     */\n    height: number;\n    /**\n     * Sets or retrieves the width of the border to draw around the object.\n     */\n    /** @deprecated */\n    hspace: number;\n    /**\n     * Sets or retrieves whether the image is a server-side image map.\n     */\n    isMap: boolean;\n    /**\n     * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.\n     */\n    /** @deprecated */\n    longDesc: string;\n    /** @deprecated */\n    lowsrc: string;\n    /**\n     * Sets or retrieves the name of the object.\n     */\n    /** @deprecated */\n    name: string;\n    /**\n     * The original height of the image resource before sizing.\n     */\n    readonly naturalHeight: number;\n    /**\n     * The original width of the image resource before sizing.\n     */\n    readonly naturalWidth: number;\n    referrerPolicy: string;\n    sizes: string;\n    /**\n     * The address or URL of the a media resource that is to be considered.\n     */\n    src: string;\n    srcset: string;\n    /**\n     * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n     */\n    useMap: string;\n    /**\n     * Sets or retrieves the vertical margin for the object.\n     */\n    /** @deprecated */\n    vspace: number;\n    /**\n     * Sets or retrieves the width of the object.\n     */\n    width: number;\n    readonly x: number;\n    readonly y: number;\n    decode(): Promise<void>;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLImageElement: {\n    prototype: HTMLImageElement;\n    new(): HTMLImageElement;\n};\n\ninterface HTMLInputElement extends HTMLElement {\n    /**\n     * Sets or retrieves a comma-separated list of content types.\n     */\n    accept: string;\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     */\n    /** @deprecated */\n    align: string;\n    /**\n     * Sets or retrieves a text alternative to the graphic.\n     */\n    alt: string;\n    /**\n     * Specifies whether autocomplete is applied to an editable text field.\n     */\n    autocomplete: string;\n    /**\n     * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.\n     */\n    autofocus: boolean;\n    /**\n     * Sets or retrieves the state of the check box or radio button.\n     */\n    checked: boolean;\n    /**\n     * Sets or retrieves the state of the check box or radio button.\n     */\n    defaultChecked: boolean;\n    /**\n     * Sets or retrieves the initial contents of the object.\n     */\n    defaultValue: string;\n    dirName: string;\n    disabled: boolean;\n    /**\n     * Returns a FileList object on a file type input object.\n     */\n    files: FileList | null;\n    /**\n     * Retrieves a reference to the form that the object is embedded in.\n     */\n    readonly form: HTMLFormElement | null;\n    /**\n     * Overrides the action attribute (where the data on a form is sent) on the parent form element.\n     */\n    formAction: string;\n    /**\n     * Used to override the encoding (formEnctype attribute) specified on the form element.\n     */\n    formEnctype: string;\n    /**\n     * Overrides the submit method attribute previously specified on a form element.\n     */\n    formMethod: string;\n    /**\n     * Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.\n     */\n    formNoValidate: boolean;\n    /**\n     * Overrides the target attribute on a form element.\n     */\n    formTarget: string;\n    /**\n     * Sets or retrieves the height of the object.\n     */\n    height: number;\n    indeterminate: boolean;\n    readonly labels: NodeListOf<HTMLLabelElement> | null;\n    /**\n     * Specifies the ID of a pre-defined datalist of options for an input element.\n     */\n    readonly list: HTMLElement | null;\n    /**\n     * Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field.\n     */\n    max: string;\n    /**\n     * Sets or retrieves the maximum number of characters that the user can enter in a text control.\n     */\n    maxLength: number;\n    /**\n     * Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field.\n     */\n    min: string;\n    minLength: number;\n    /**\n     * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.\n     */\n    multiple: boolean;\n    /**\n     * Sets or retrieves the name of the object.\n     */\n    name: string;\n    /**\n     * Gets or sets a string containing a regular expression that the user\'s input must match.\n     */\n    pattern: string;\n    /**\n     * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.\n     */\n    placeholder: string;\n    readOnly: boolean;\n    /**\n     * When present, marks an element that can\'t be submitted without a value.\n     */\n    required: boolean;\n    selectionDirection: string | null;\n    /**\n     * Gets or sets the end position or offset of a text selection.\n     */\n    selectionEnd: number | null;\n    /**\n     * Gets or sets the starting position or offset of a text selection.\n     */\n    selectionStart: number | null;\n    size: number;\n    /**\n     * The address or URL of the a media resource that is to be considered.\n     */\n    src: string;\n    /**\n     * Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field.\n     */\n    step: string;\n    /**\n     * Returns the content type of the object.\n     */\n    type: string;\n    /**\n     * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n     */\n    /** @deprecated */\n    useMap: string;\n    /**\n     * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n     */\n    readonly validationMessage: string;\n    /**\n     * Returns a  ValidityState object that represents the validity states of an element.\n     */\n    readonly validity: ValidityState;\n    /**\n     * Returns the value of the data at the cursor\'s current position.\n     */\n    value: string;\n    valueAsDate: any;\n    /**\n     * Returns the input field value as a number.\n     */\n    valueAsNumber: number;\n    /**\n     * Sets or retrieves the width of the object.\n     */\n    width: number;\n    /**\n     * Returns whether an element will successfully validate based on forms validation rules and constraints.\n     */\n    readonly willValidate: boolean;\n    /**\n     * Returns whether a form will validate when it is submitted, without having to submit it.\n     */\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    /**\n     * Makes the selection equal to the current object.\n     */\n    select(): void;\n    /**\n     * Sets a custom error message that is displayed when a form is submitted.\n     * @param error Sets a custom error message that is displayed when a form is submitted.\n     */\n    setCustomValidity(error: string): void;\n    setRangeText(replacement: string): void;\n    setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n    /**\n     * Sets the start and end positions of a selection in a text field.\n     * @param start The offset into the text field for the start of the selection.\n     * @param end The offset into the text field for the end of the selection.\n     * @param direction The direction in which the selection is performed.\n     */\n    setSelectionRange(start: number, end: number, direction?: "forward" | "backward" | "none"): void;\n    /**\n     * Decrements a range input control\'s value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control\'s step value multiplied by the parameter\'s value.\n     * @param n Value to decrement the value by.\n     */\n    stepDown(n?: number): void;\n    /**\n     * Increments a range input control\'s value by the value given by the Step attribute. If the optional parameter is used, will increment the input control\'s value by that value.\n     * @param n Value to increment the value by.\n     */\n    stepUp(n?: number): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLInputElement: {\n    prototype: HTMLInputElement;\n    new(): HTMLInputElement;\n};\n\ninterface HTMLLIElement extends HTMLElement {\n    /** @deprecated */\n    type: string;\n    /**\n     * Sets or retrieves the value of a list item.\n     */\n    value: number;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLIElement: {\n    prototype: HTMLLIElement;\n    new(): HTMLLIElement;\n};\n\ninterface HTMLLabelElement extends HTMLElement {\n    readonly control: HTMLElement | null;\n    /**\n     * Retrieves a reference to the form that the object is embedded in.\n     */\n    readonly form: HTMLFormElement | null;\n    /**\n     * Sets or retrieves the object to which the given label object is assigned.\n     */\n    htmlFor: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLabelElement: {\n    prototype: HTMLLabelElement;\n    new(): HTMLLabelElement;\n};\n\ninterface HTMLLegendElement extends HTMLElement {\n    /** @deprecated */\n    align: string;\n    /**\n     * Retrieves a reference to the form that the object is embedded in.\n     */\n    readonly form: HTMLFormElement | null;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLegendElement: {\n    prototype: HTMLLegendElement;\n    new(): HTMLLegendElement;\n};\n\ninterface HTMLLinkElement extends HTMLElement, LinkStyle {\n    as: string;\n    /**\n     * Sets or retrieves the character set used to encode the object.\n     */\n    /** @deprecated */\n    charset: string;\n    crossOrigin: string | null;\n    disabled: boolean;\n    /**\n     * Sets or retrieves a destination URL or an anchor point.\n     */\n    href: string;\n    /**\n     * Sets or retrieves the language code of the object.\n     */\n    hreflang: string;\n    integrity: string;\n    /**\n     * Sets or retrieves the media type.\n     */\n    media: string;\n    referrerPolicy: string;\n    /**\n     * Sets or retrieves the relationship between the object and the destination of the link.\n     */\n    rel: string;\n    readonly relList: DOMTokenList;\n    /**\n     * Sets or retrieves the relationship between the object and the destination of the link.\n     */\n    /** @deprecated */\n    rev: string;\n    readonly sizes: DOMTokenList;\n    /**\n     * Sets or retrieves the window or frame at which to target content.\n     */\n    /** @deprecated */\n    target: string;\n    /**\n     * Sets or retrieves the MIME type of the object.\n     */\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLLinkElement: {\n    prototype: HTMLLinkElement;\n    new(): HTMLLinkElement;\n};\n\ninterface HTMLMainElement extends HTMLElement {\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMainElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMainElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMainElement: {\n    prototype: HTMLMainElement;\n    new(): HTMLMainElement;\n};\n\ninterface HTMLMapElement extends HTMLElement {\n    /**\n     * Retrieves a collection of the area objects defined for the given map object.\n     */\n    readonly areas: HTMLCollection;\n    /**\n     * Sets or retrieves the name of the object.\n     */\n    name: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMapElement: {\n    prototype: HTMLMapElement;\n    new(): HTMLMapElement;\n};\n\ninterface HTMLMarqueeElementEventMap extends HTMLElementEventMap {\n    "bounce": Event;\n    "finish": Event;\n    "start": Event;\n}\n\ninterface HTMLMarqueeElement extends HTMLElement {\n    /** @deprecated */\n    behavior: string;\n    /** @deprecated */\n    bgColor: string;\n    /** @deprecated */\n    direction: string;\n    /** @deprecated */\n    height: string;\n    /** @deprecated */\n    hspace: number;\n    /** @deprecated */\n    loop: number;\n    /** @deprecated */\n    onbounce: ((this: HTMLMarqueeElement, ev: Event) => any) | null;\n    /** @deprecated */\n    onfinish: ((this: HTMLMarqueeElement, ev: Event) => any) | null;\n    /** @deprecated */\n    onstart: ((this: HTMLMarqueeElement, ev: Event) => any) | null;\n    /** @deprecated */\n    scrollAmount: number;\n    /** @deprecated */\n    scrollDelay: number;\n    /** @deprecated */\n    trueSpeed: boolean;\n    /** @deprecated */\n    vspace: number;\n    /** @deprecated */\n    width: string;\n    /** @deprecated */\n    start(): void;\n    /** @deprecated */\n    stop(): void;\n    addEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLMarqueeElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLMarqueeElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMarqueeElement: {\n    prototype: HTMLMarqueeElement;\n    new(): HTMLMarqueeElement;\n};\n\ninterface HTMLMediaElementEventMap extends HTMLElementEventMap {\n    "encrypted": MediaEncryptedEvent;\n    "msneedkey": Event;\n}\n\ninterface HTMLMediaElement extends HTMLElement {\n    /**\n     * Returns an AudioTrackList object with the audio tracks for a given video element.\n     */\n    readonly audioTracks: AudioTrackList;\n    /**\n     * Gets or sets a value that indicates whether to start playing the media automatically.\n     */\n    autoplay: boolean;\n    /**\n     * Gets a collection of buffered time ranges.\n     */\n    readonly buffered: TimeRanges;\n    /**\n     * Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).\n     */\n    controls: boolean;\n    crossOrigin: string | null;\n    /**\n     * Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.\n     */\n    readonly currentSrc: string;\n    /**\n     * Gets or sets the current playback position, in seconds.\n     */\n    currentTime: number;\n    defaultMuted: boolean;\n    /**\n     * Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.\n     */\n    defaultPlaybackRate: number;\n    /**\n     * Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.\n     */\n    readonly duration: number;\n    /**\n     * Gets information about whether the playback has ended or not.\n     */\n    readonly ended: boolean;\n    /**\n     * Returns an object representing the current error state of the audio or video element.\n     */\n    readonly error: MediaError | null;\n    /**\n     * Gets or sets a flag to specify whether playback should restart after it completes.\n     */\n    loop: boolean;\n    readonly mediaKeys: MediaKeys | null;\n    /**\n     * Specifies the purpose of the audio or video media, such as background audio or alerts.\n     */\n    msAudioCategory: string;\n    /**\n     * Specifies the output device id that the audio will be sent to.\n     */\n    msAudioDeviceType: string;\n    readonly msGraphicsTrustStatus: MSGraphicsTrust;\n    /**\n     * Gets the MSMediaKeys object, which is used for decrypting media data, that is associated with this media element.\n     */\n    /** @deprecated */\n    readonly msKeys: MSMediaKeys;\n    /**\n     * Gets or sets whether the DLNA PlayTo device is available.\n     */\n    msPlayToDisabled: boolean;\n    /**\n     * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.\n     */\n    msPlayToPreferredSourceUri: string;\n    /**\n     * Gets or sets the primary DLNA PlayTo device.\n     */\n    msPlayToPrimary: boolean;\n    /**\n     * Gets the source associated with the media element for use by the PlayToManager.\n     */\n    readonly msPlayToSource: any;\n    /**\n     * Specifies whether or not to enable low-latency playback on the media element.\n     */\n    msRealTime: boolean;\n    /**\n     * Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.\n     */\n    muted: boolean;\n    /**\n     * Gets the current network activity for the element.\n     */\n    readonly networkState: number;\n    onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;\n    /** @deprecated */\n    onmsneedkey: ((this: HTMLMediaElement, ev: Event) => any) | null;\n    /**\n     * Gets a flag that specifies whether playback is paused.\n     */\n    readonly paused: boolean;\n    /**\n     * Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.\n     */\n    playbackRate: number;\n    /**\n     * Gets TimeRanges for the current media resource that has been played.\n     */\n    readonly played: TimeRanges;\n    /**\n     * Gets or sets the current playback position, in seconds.\n     */\n    preload: string;\n    readonly readyState: number;\n    /**\n     * Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.\n     */\n    readonly seekable: TimeRanges;\n    /**\n     * Gets a flag that indicates whether the the client is currently moving to a new playback position in the media resource.\n     */\n    readonly seeking: boolean;\n    /**\n     * The address or URL of the a media resource that is to be considered.\n     */\n    src: string;\n    srcObject: MediaStream | MediaSource | Blob | null;\n    readonly textTracks: TextTrackList;\n    readonly videoTracks: VideoTrackList;\n    /**\n     * Gets or sets the volume level for audio portions of the media element.\n     */\n    volume: number;\n    addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;\n    /**\n     * Returns a string that specifies whether the client can play a given media resource type.\n     */\n    canPlayType(type: string): CanPlayTypeResult;\n    /**\n     * Resets the audio or video object and loads a new media resource.\n     */\n    load(): void;\n    /**\n     * Clears all effects from the media pipeline.\n     */\n    msClearEffects(): void;\n    msGetAsCastingSource(): any;\n    /**\n     * Inserts the specified audio effect into media pipeline.\n     */\n    msInsertAudioEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;\n    /** @deprecated */\n    msSetMediaKeys(mediaKeys: MSMediaKeys): void;\n    /**\n     * Specifies the media protection manager for a given media pipeline.\n     */\n    msSetMediaProtectionManager(mediaProtectionManager?: any): void;\n    /**\n     * Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not.\n     */\n    pause(): void;\n    /**\n     * Loads and starts playback of a media resource.\n     */\n    play(): Promise<void>;\n    setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;\n    readonly HAVE_CURRENT_DATA: number;\n    readonly HAVE_ENOUGH_DATA: number;\n    readonly HAVE_FUTURE_DATA: number;\n    readonly HAVE_METADATA: number;\n    readonly HAVE_NOTHING: number;\n    readonly NETWORK_EMPTY: number;\n    readonly NETWORK_IDLE: number;\n    readonly NETWORK_LOADING: number;\n    readonly NETWORK_NO_SOURCE: number;\n    addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMediaElement: {\n    prototype: HTMLMediaElement;\n    new(): HTMLMediaElement;\n    readonly HAVE_CURRENT_DATA: number;\n    readonly HAVE_ENOUGH_DATA: number;\n    readonly HAVE_FUTURE_DATA: number;\n    readonly HAVE_METADATA: number;\n    readonly HAVE_NOTHING: number;\n    readonly NETWORK_EMPTY: number;\n    readonly NETWORK_IDLE: number;\n    readonly NETWORK_LOADING: number;\n    readonly NETWORK_NO_SOURCE: number;\n};\n\ninterface HTMLMenuElement extends HTMLElement {\n    /** @deprecated */\n    compact: boolean;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMenuElement: {\n    prototype: HTMLMenuElement;\n    new(): HTMLMenuElement;\n};\n\ninterface HTMLMetaElement extends HTMLElement {\n    /**\n     * Gets or sets meta-information to associate with httpEquiv or name.\n     */\n    content: string;\n    /**\n     * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.\n     */\n    httpEquiv: string;\n    /**\n     * Sets or retrieves the value specified in the content attribute of the meta object.\n     */\n    name: string;\n    /**\n     * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.\n     */\n    /** @deprecated */\n    scheme: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMetaElement: {\n    prototype: HTMLMetaElement;\n    new(): HTMLMetaElement;\n};\n\ninterface HTMLMeterElement extends HTMLElement {\n    high: number;\n    readonly labels: NodeListOf<HTMLLabelElement>;\n    low: number;\n    max: number;\n    min: number;\n    optimum: number;\n    value: number;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLMeterElement: {\n    prototype: HTMLMeterElement;\n    new(): HTMLMeterElement;\n};\n\ninterface HTMLModElement extends HTMLElement {\n    /**\n     * Sets or retrieves reference information about the object.\n     */\n    cite: string;\n    /**\n     * Sets or retrieves the date and time of a modification to the object.\n     */\n    dateTime: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLModElement: {\n    prototype: HTMLModElement;\n    new(): HTMLModElement;\n};\n\ninterface HTMLOListElement extends HTMLElement {\n    /** @deprecated */\n    compact: boolean;\n    reversed: boolean;\n    /**\n     * The starting number.\n     */\n    start: number;\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOListElement: {\n    prototype: HTMLOListElement;\n    new(): HTMLOListElement;\n};\n\ninterface HTMLObjectElement extends HTMLElement, GetSVGDocument {\n    /**\n     * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element.\n     */\n    readonly BaseHref: string;\n    /** @deprecated */\n    align: string;\n    /**\n     * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.\n     */\n    /** @deprecated */\n    archive: string;\n    /** @deprecated */\n    border: string;\n    /**\n     * Sets or retrieves the URL of the file containing the compiled Java class.\n     */\n    /** @deprecated */\n    code: string;\n    /**\n     * Sets or retrieves the URL of the component.\n     */\n    /** @deprecated */\n    codeBase: string;\n    /**\n     * Sets or retrieves the Internet media type for the code associated with the object.\n     */\n    /** @deprecated */\n    codeType: string;\n    /**\n     * Retrieves the document object of the page or frame.\n     */\n    readonly contentDocument: Document | null;\n    /**\n     * Sets or retrieves the URL that references the data of the object.\n     */\n    data: string;\n    /** @deprecated */\n    declare: boolean;\n    /**\n     * Retrieves a reference to the form that the object is embedded in.\n     */\n    readonly form: HTMLFormElement | null;\n    /**\n     * Sets or retrieves the height of the object.\n     */\n    height: string;\n    /** @deprecated */\n    hspace: number;\n    /**\n     * Gets or sets whether the DLNA PlayTo device is available.\n     */\n    msPlayToDisabled: boolean;\n    /**\n     * Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.\n     */\n    msPlayToPreferredSourceUri: string;\n    /**\n     * Gets or sets the primary DLNA PlayTo device.\n     */\n    msPlayToPrimary: boolean;\n    /**\n     * Gets the source associated with the media element for use by the PlayToManager.\n     */\n    readonly msPlayToSource: any;\n    /**\n     * Sets or retrieves the name of the object.\n     */\n    name: string;\n    readonly readyState: number;\n    /**\n     * Sets or retrieves a message to be displayed while an object is loading.\n     */\n    /** @deprecated */\n    standby: string;\n    /**\n     * Sets or retrieves the MIME type of the object.\n     */\n    type: string;\n    typemustmatch: boolean;\n    /**\n     * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.\n     */\n    useMap: string;\n    /**\n     * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n     */\n    readonly validationMessage: string;\n    /**\n     * Returns a  ValidityState object that represents the validity states of an element.\n     */\n    readonly validity: ValidityState;\n    /** @deprecated */\n    vspace: number;\n    /**\n     * Sets or retrieves the width of the object.\n     */\n    width: string;\n    /**\n     * Returns whether an element will successfully validate based on forms validation rules and constraints.\n     */\n    readonly willValidate: boolean;\n    /**\n     * Returns whether a form will validate when it is submitted, without having to submit it.\n     */\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    /**\n     * Sets a custom error message that is displayed when a form is submitted.\n     * @param error Sets a custom error message that is displayed when a form is submitted.\n     */\n    setCustomValidity(error: string): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLObjectElement: {\n    prototype: HTMLObjectElement;\n    new(): HTMLObjectElement;\n};\n\ninterface HTMLOptGroupElement extends HTMLElement {\n    disabled: boolean;\n    /**\n     * Retrieves a reference to the form that the object is embedded in.\n     */\n    readonly form: HTMLFormElement | null;\n    /**\n     * Sets or retrieves a value that you can use to implement your own label functionality for the object.\n     */\n    label: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOptGroupElement: {\n    prototype: HTMLOptGroupElement;\n    new(): HTMLOptGroupElement;\n};\n\ninterface HTMLOptionElement extends HTMLElement {\n    /**\n     * Sets or retrieves the status of an option.\n     */\n    defaultSelected: boolean;\n    disabled: boolean;\n    /**\n     * Retrieves a reference to the form that the object is embedded in.\n     */\n    readonly form: HTMLFormElement | null;\n    /**\n     * Sets or retrieves the ordinal position of an option in a list box.\n     */\n    readonly index: number;\n    /**\n     * Sets or retrieves a value that you can use to implement your own label functionality for the object.\n     */\n    label: string;\n    /**\n     * Sets or retrieves whether the option in the list box is the default item.\n     */\n    selected: boolean;\n    /**\n     * Sets or retrieves the text string specified by the option tag.\n     */\n    text: string;\n    /**\n     * Sets or retrieves the value which is returned to the server when the form control is submitted.\n     */\n    value: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOptionElement: {\n    prototype: HTMLOptionElement;\n    new(): HTMLOptionElement;\n};\n\ninterface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {\n    /**\n     * Returns the number of elements in the collection.\n     * When set to a smaller number, truncates the number of option elements in the corresponding container.\n     * When set to a greater number, adds new blank option elements to that container.\n     */\n    length: number;\n    /**\n     * Returns the index of the first selected item, if any, or −1 if there is no selected\n     * item.\n     * Can be set, to change the selection.\n     */\n    selectedIndex: number;\n    /**\n     * Inserts element before the node given by before.\n     * The before argument can be a number, in which case element is inserted before the item with that number, or an element from the\n     * collection, in which case element is inserted before that element.\n     * If before is omitted, null, or a number out of range, then element will be added at the end of the list.\n     * This method will throw a "HierarchyRequestError" DOMException if\n     * element is an ancestor of the element into which it is to be inserted.\n     */\n    add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n    /**\n     * Removes the item with index index from the collection.\n     */\n    remove(index: number): void;\n}\n\ndeclare var HTMLOptionsCollection: {\n    prototype: HTMLOptionsCollection;\n    new(): HTMLOptionsCollection;\n};\n\ninterface HTMLOrSVGElement {\n    readonly dataset: DOMStringMap;\n    nonce: string;\n    tabIndex: number;\n    blur(): void;\n    focus(options?: FocusOptions): void;\n}\n\ninterface HTMLOutputElement extends HTMLElement {\n    defaultValue: string;\n    readonly form: HTMLFormElement | null;\n    readonly htmlFor: DOMTokenList;\n    readonly labels: NodeListOf<HTMLLabelElement>;\n    name: string;\n    readonly type: string;\n    readonly validationMessage: string;\n    readonly validity: ValidityState;\n    value: string;\n    readonly willValidate: boolean;\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    setCustomValidity(error: string): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLOutputElement: {\n    prototype: HTMLOutputElement;\n    new(): HTMLOutputElement;\n};\n\ninterface HTMLParagraphElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     */\n    /** @deprecated */\n    align: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLParagraphElement: {\n    prototype: HTMLParagraphElement;\n    new(): HTMLParagraphElement;\n};\n\ninterface HTMLParamElement extends HTMLElement {\n    /**\n     * Sets or retrieves the name of an input parameter for an element.\n     */\n    name: string;\n    /**\n     * Sets or retrieves the content type of the resource designated by the value attribute.\n     */\n    /** @deprecated */\n    type: string;\n    /**\n     * Sets or retrieves the value of an input parameter for an element.\n     */\n    value: string;\n    /**\n     * Sets or retrieves the data type of the value attribute.\n     */\n    /** @deprecated */\n    valueType: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLParamElement: {\n    prototype: HTMLParamElement;\n    new(): HTMLParamElement;\n};\n\ninterface HTMLPictureElement extends HTMLElement {\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPictureElement: {\n    prototype: HTMLPictureElement;\n    new(): HTMLPictureElement;\n};\n\ninterface HTMLPreElement extends HTMLElement {\n    /**\n     * Sets or gets a value that you can use to implement your own width functionality for the object.\n     */\n    /** @deprecated */\n    width: number;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLPreElement: {\n    prototype: HTMLPreElement;\n    new(): HTMLPreElement;\n};\n\ninterface HTMLProgressElement extends HTMLElement {\n    readonly labels: NodeListOf<HTMLLabelElement>;\n    /**\n     * Defines the maximum, or "done" value for a progress element.\n     */\n    max: number;\n    /**\n     * Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar).\n     */\n    readonly position: number;\n    /**\n     * Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.\n     */\n    value: number;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLProgressElement: {\n    prototype: HTMLProgressElement;\n    new(): HTMLProgressElement;\n};\n\ninterface HTMLQuoteElement extends HTMLElement {\n    /**\n     * Sets or retrieves reference information about the object.\n     */\n    cite: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLQuoteElement: {\n    prototype: HTMLQuoteElement;\n    new(): HTMLQuoteElement;\n};\n\ninterface HTMLScriptElement extends HTMLElement {\n    async: boolean;\n    /**\n     * Sets or retrieves the character set used to encode the object.\n     */\n    /** @deprecated */\n    charset: string;\n    crossOrigin: string | null;\n    /**\n     * Sets or retrieves the status of the script.\n     */\n    defer: boolean;\n    /**\n     * Sets or retrieves the event for which the script is written.\n     */\n    /** @deprecated */\n    event: string;\n    /**\n     * Sets or retrieves the object that is bound to the event script.\n     */\n    /** @deprecated */\n    htmlFor: string;\n    integrity: string;\n    noModule: boolean;\n    referrerPolicy: string;\n    /**\n     * Retrieves the URL to an external file that contains the source code or data.\n     */\n    src: string;\n    /**\n     * Retrieves or sets the text of the object as a string.\n     */\n    text: string;\n    /**\n     * Sets or retrieves the MIME type for the associated scripting engine.\n     */\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLScriptElement: {\n    prototype: HTMLScriptElement;\n    new(): HTMLScriptElement;\n};\n\ninterface HTMLSelectElement extends HTMLElement {\n    autocomplete: string;\n    /**\n     * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.\n     */\n    autofocus: boolean;\n    disabled: boolean;\n    /**\n     * Retrieves a reference to the form that the object is embedded in.\n     */\n    readonly form: HTMLFormElement | null;\n    readonly labels: NodeListOf<HTMLLabelElement>;\n    /**\n     * Sets or retrieves the number of objects in a collection.\n     */\n    length: number;\n    /**\n     * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.\n     */\n    multiple: boolean;\n    /**\n     * Sets or retrieves the name of the object.\n     */\n    name: string;\n    readonly options: HTMLOptionsCollection;\n    /**\n     * When present, marks an element that can\'t be submitted without a value.\n     */\n    required: boolean;\n    /**\n     * Sets or retrieves the index of the selected option in a select object.\n     */\n    selectedIndex: number;\n    readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;\n    /**\n     * Sets or retrieves the number of rows in the list box.\n     */\n    size: number;\n    /**\n     * Retrieves the type of select control based on the value of the MULTIPLE attribute.\n     */\n    readonly type: string;\n    /**\n     * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n     */\n    readonly validationMessage: string;\n    /**\n     * Returns a  ValidityState object that represents the validity states of an element.\n     */\n    readonly validity: ValidityState;\n    /**\n     * Sets or retrieves the value which is returned to the server when the form control is submitted.\n     */\n    value: string;\n    /**\n     * Returns whether an element will successfully validate based on forms validation rules and constraints.\n     */\n    readonly willValidate: boolean;\n    /**\n     * Adds an element to the areas, controlRange, or options collection.\n     * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.\n     * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.\n     */\n    add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;\n    /**\n     * Returns whether a form will validate when it is submitted, without having to submit it.\n     */\n    checkValidity(): boolean;\n    /**\n     * Retrieves a select object or an object from an options collection.\n     * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.\n     * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.\n     */\n    item(index: number): Element | null;\n    /**\n     * Retrieves a select object or an object from an options collection.\n     * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.\n     */\n    namedItem(name: string): HTMLOptionElement | null;\n    /**\n     * Removes an element from the collection.\n     * @param index Number that specifies the zero-based index of the element to remove from the collection.\n     */\n    remove(): void;\n    remove(index: number): void;\n    reportValidity(): boolean;\n    /**\n     * Sets a custom error message that is displayed when a form is submitted.\n     * @param error Sets a custom error message that is displayed when a form is submitted.\n     */\n    setCustomValidity(error: string): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n    [name: number]: HTMLOptionElement | HTMLOptGroupElement;\n}\n\ndeclare var HTMLSelectElement: {\n    prototype: HTMLSelectElement;\n    new(): HTMLSelectElement;\n};\n\ninterface HTMLSlotElement extends HTMLElement {\n    name: string;\n    assignedElements(options?: AssignedNodesOptions): Element[];\n    assignedNodes(options?: AssignedNodesOptions): Node[];\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSlotElement: {\n    prototype: HTMLSlotElement;\n    new(): HTMLSlotElement;\n};\n\ninterface HTMLSourceElement extends HTMLElement {\n    /**\n     * Gets or sets the intended media type of the media source.\n     */\n    media: string;\n    sizes: string;\n    /**\n     * The address or URL of the a media resource that is to be considered.\n     */\n    src: string;\n    srcset: string;\n    /**\n     * Gets or sets the MIME type of a media resource.\n     */\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSourceElement: {\n    prototype: HTMLSourceElement;\n    new(): HTMLSourceElement;\n};\n\ninterface HTMLSpanElement extends HTMLElement {\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLSpanElement: {\n    prototype: HTMLSpanElement;\n    new(): HTMLSpanElement;\n};\n\ninterface HTMLStyleElement extends HTMLElement, LinkStyle {\n    /**\n     * Sets or retrieves the media type.\n     */\n    media: string;\n    /**\n     * Retrieves the CSS language in which the style sheet is written.\n     */\n    /** @deprecated */\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLStyleElement: {\n    prototype: HTMLStyleElement;\n    new(): HTMLStyleElement;\n};\n\ninterface HTMLTableCaptionElement extends HTMLElement {\n    /**\n     * Sets or retrieves the alignment of the caption or legend.\n     */\n    /** @deprecated */\n    align: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableCaptionElement: {\n    prototype: HTMLTableCaptionElement;\n    new(): HTMLTableCaptionElement;\n};\n\ninterface HTMLTableCellElement extends HTMLElement {\n    /**\n     * Sets or retrieves abbreviated text for the object.\n     */\n    abbr: string;\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     */\n    /** @deprecated */\n    align: string;\n    /**\n     * Sets or retrieves a comma-delimited list of conceptual categories associated with the object.\n     */\n    /** @deprecated */\n    axis: string;\n    /** @deprecated */\n    bgColor: string;\n    /**\n     * Retrieves the position of the object in the cells collection of a row.\n     */\n    readonly cellIndex: number;\n    /** @deprecated */\n    ch: string;\n    /** @deprecated */\n    chOff: string;\n    /**\n     * Sets or retrieves the number columns in the table that the object should span.\n     */\n    colSpan: number;\n    /**\n     * Sets or retrieves a list of header cells that provide information for the object.\n     */\n    headers: string;\n    /**\n     * Sets or retrieves the height of the object.\n     */\n    /** @deprecated */\n    height: string;\n    /**\n     * Sets or retrieves whether the browser automatically performs wordwrap.\n     */\n    /** @deprecated */\n    noWrap: boolean;\n    /**\n     * Sets or retrieves how many rows in a table the cell should span.\n     */\n    rowSpan: number;\n    /**\n     * Sets or retrieves the group of cells in a table to which the object\'s information applies.\n     */\n    scope: string;\n    /** @deprecated */\n    vAlign: string;\n    /**\n     * Sets or retrieves the width of the object.\n     */\n    /** @deprecated */\n    width: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableCellElement: {\n    prototype: HTMLTableCellElement;\n    new(): HTMLTableCellElement;\n};\n\ninterface HTMLTableColElement extends HTMLElement {\n    /**\n     * Sets or retrieves the alignment of the object relative to the display or table.\n     */\n    /** @deprecated */\n    align: string;\n    /** @deprecated */\n    ch: string;\n    /** @deprecated */\n    chOff: string;\n    /**\n     * Sets or retrieves the number of columns in the group.\n     */\n    span: number;\n    /** @deprecated */\n    vAlign: string;\n    /**\n     * Sets or retrieves the width of the object.\n     */\n    /** @deprecated */\n    width: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableColElement: {\n    prototype: HTMLTableColElement;\n    new(): HTMLTableColElement;\n};\n\ninterface HTMLTableDataCellElement extends HTMLTableCellElement {\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableDataCellElement: {\n    prototype: HTMLTableDataCellElement;\n    new(): HTMLTableDataCellElement;\n};\n\ninterface HTMLTableElement extends HTMLElement {\n    /**\n     * Sets or retrieves a value that indicates the table alignment.\n     */\n    /** @deprecated */\n    align: string;\n    /** @deprecated */\n    bgColor: string;\n    /**\n     * Sets or retrieves the width of the border to draw around the object.\n     */\n    /** @deprecated */\n    border: string;\n    /**\n     * Retrieves the caption object of a table.\n     */\n    caption: HTMLTableCaptionElement | null;\n    /**\n     * Sets or retrieves the amount of space between the border of the cell and the content of the cell.\n     */\n    /** @deprecated */\n    cellPadding: string;\n    /**\n     * Sets or retrieves the amount of space between cells in a table.\n     */\n    /** @deprecated */\n    cellSpacing: string;\n    /**\n     * Sets or retrieves the way the border frame around the table is displayed.\n     */\n    /** @deprecated */\n    frame: string;\n    /**\n     * Sets or retrieves the number of horizontal rows contained in the object.\n     */\n    readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n    /**\n     * Sets or retrieves which dividing lines (inner borders) are displayed.\n     */\n    /** @deprecated */\n    rules: string;\n    /**\n     * Sets or retrieves a description and/or structure of the object.\n     */\n    /** @deprecated */\n    summary: string;\n    /**\n     * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.\n     */\n    readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;\n    /**\n     * Retrieves the tFoot object of the table.\n     */\n    tFoot: HTMLTableSectionElement | null;\n    /**\n     * Retrieves the tHead object of the table.\n     */\n    tHead: HTMLTableSectionElement | null;\n    /**\n     * Sets or retrieves the width of the object.\n     */\n    /** @deprecated */\n    width: string;\n    /**\n     * Creates an empty caption element in the table.\n     */\n    createCaption(): HTMLTableCaptionElement;\n    /**\n     * Creates an empty tBody element in the table.\n     */\n    createTBody(): HTMLTableSectionElement;\n    /**\n     * Creates an empty tFoot element in the table.\n     */\n    createTFoot(): HTMLTableSectionElement;\n    /**\n     * Returns the tHead element object if successful, or null otherwise.\n     */\n    createTHead(): HTMLTableSectionElement;\n    /**\n     * Deletes the caption element and its contents from the table.\n     */\n    deleteCaption(): void;\n    /**\n     * Removes the specified row (tr) from the element and from the rows collection.\n     * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n     */\n    deleteRow(index: number): void;\n    /**\n     * Deletes the tFoot element and its contents from the table.\n     */\n    deleteTFoot(): void;\n    /**\n     * Deletes the tHead element and its contents from the table.\n     */\n    deleteTHead(): void;\n    /**\n     * Creates a new row (tr) in the table, and adds the row to the rows collection.\n     * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.\n     */\n    insertRow(index?: number): HTMLTableRowElement;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableElement: {\n    prototype: HTMLTableElement;\n    new(): HTMLTableElement;\n};\n\ninterface HTMLTableHeaderCellElement extends HTMLTableCellElement {\n    scope: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableHeaderCellElement: {\n    prototype: HTMLTableHeaderCellElement;\n    new(): HTMLTableHeaderCellElement;\n};\n\ninterface HTMLTableRowElement extends HTMLElement {\n    /**\n     * Sets or retrieves how the object is aligned with adjacent text.\n     */\n    /** @deprecated */\n    align: string;\n    /** @deprecated */\n    bgColor: string;\n    /**\n     * Retrieves a collection of all cells in the table row.\n     */\n    readonly cells: HTMLCollectionOf<HTMLTableDataCellElement | HTMLTableHeaderCellElement>;\n    /** @deprecated */\n    ch: string;\n    /** @deprecated */\n    chOff: string;\n    /**\n     * Retrieves the position of the object in the rows collection for the table.\n     */\n    readonly rowIndex: number;\n    /**\n     * Retrieves the position of the object in the collection.\n     */\n    readonly sectionRowIndex: number;\n    /** @deprecated */\n    vAlign: string;\n    /**\n     * Removes the specified cell from the table row, as well as from the cells collection.\n     * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.\n     */\n    deleteCell(index: number): void;\n    /**\n     * Creates a new cell in the table row, and adds the cell to the cells collection.\n     * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.\n     */\n    insertCell(index?: number): HTMLTableDataCellElement;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableRowElement: {\n    prototype: HTMLTableRowElement;\n    new(): HTMLTableRowElement;\n};\n\ninterface HTMLTableSectionElement extends HTMLElement {\n    /**\n     * Sets or retrieves a value that indicates the table alignment.\n     */\n    /** @deprecated */\n    align: string;\n    /** @deprecated */\n    ch: string;\n    /** @deprecated */\n    chOff: string;\n    /**\n     * Sets or retrieves the number of horizontal rows contained in the object.\n     */\n    readonly rows: HTMLCollectionOf<HTMLTableRowElement>;\n    /** @deprecated */\n    vAlign: string;\n    /**\n     * Removes the specified row (tr) from the element and from the rows collection.\n     * @param index Number that specifies the zero-based position in the rows collection of the row to remove.\n     */\n    deleteRow(index: number): void;\n    /**\n     * Creates a new row (tr) in the table, and adds the row to the rows collection.\n     * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.\n     */\n    insertRow(index?: number): HTMLTableRowElement;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTableSectionElement: {\n    prototype: HTMLTableSectionElement;\n    new(): HTMLTableSectionElement;\n};\n\ninterface HTMLTemplateElement extends HTMLElement {\n    readonly content: DocumentFragment;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTemplateElement: {\n    prototype: HTMLTemplateElement;\n    new(): HTMLTemplateElement;\n};\n\ninterface HTMLTextAreaElement extends HTMLElement {\n    autocomplete: string;\n    /**\n     * Provides a way to direct a user to a specific field when a document loads. This can provide both direction and convenience for a user, reducing the need to click or tab to a field when a page opens. This attribute is true when present on an element, and false when missing.\n     */\n    autofocus: boolean;\n    /**\n     * Sets or retrieves the width of the object.\n     */\n    cols: number;\n    /**\n     * Sets or retrieves the initial contents of the object.\n     */\n    defaultValue: string;\n    dirName: string;\n    disabled: boolean;\n    /**\n     * Retrieves a reference to the form that the object is embedded in.\n     */\n    readonly form: HTMLFormElement | null;\n    readonly labels: NodeListOf<HTMLLabelElement>;\n    /**\n     * Sets or retrieves the maximum number of characters that the user can enter in a text control.\n     */\n    maxLength: number;\n    minLength: number;\n    /**\n     * Sets or retrieves the name of the object.\n     */\n    name: string;\n    /**\n     * Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.\n     */\n    placeholder: string;\n    /**\n     * Sets or retrieves the value indicated whether the content of the object is read-only.\n     */\n    readOnly: boolean;\n    /**\n     * When present, marks an element that can\'t be submitted without a value.\n     */\n    required: boolean;\n    /**\n     * Sets or retrieves the number of horizontal rows contained in the object.\n     */\n    rows: number;\n    selectionDirection: string;\n    /**\n     * Gets or sets the end position or offset of a text selection.\n     */\n    selectionEnd: number;\n    /**\n     * Gets or sets the starting position or offset of a text selection.\n     */\n    selectionStart: number;\n    readonly textLength: number;\n    /**\n     * Retrieves the type of control.\n     */\n    readonly type: string;\n    /**\n     * Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.\n     */\n    readonly validationMessage: string;\n    /**\n     * Returns a  ValidityState object that represents the validity states of an element.\n     */\n    readonly validity: ValidityState;\n    /**\n     * Retrieves or sets the text in the entry field of the textArea element.\n     */\n    value: string;\n    /**\n     * Returns whether an element will successfully validate based on forms validation rules and constraints.\n     */\n    readonly willValidate: boolean;\n    /**\n     * Sets or retrieves how to handle wordwrapping in the object.\n     */\n    wrap: string;\n    /**\n     * Returns whether a form will validate when it is submitted, without having to submit it.\n     */\n    checkValidity(): boolean;\n    reportValidity(): boolean;\n    /**\n     * Highlights the input area of a form element.\n     */\n    select(): void;\n    /**\n     * Sets a custom error message that is displayed when a form is submitted.\n     * @param error Sets a custom error message that is displayed when a form is submitted.\n     */\n    setCustomValidity(error: string): void;\n    setRangeText(replacement: string): void;\n    setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;\n    /**\n     * Sets the start and end positions of a selection in a text field.\n     * @param start The offset into the text field for the start of the selection.\n     * @param end The offset into the text field for the end of the selection.\n     * @param direction The direction in which the selection is performed.\n     */\n    setSelectionRange(start: number, end: number, direction?: "forward" | "backward" | "none"): void;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTextAreaElement: {\n    prototype: HTMLTextAreaElement;\n    new(): HTMLTextAreaElement;\n};\n\ninterface HTMLTimeElement extends HTMLElement {\n    dateTime: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTimeElement: {\n    prototype: HTMLTimeElement;\n    new(): HTMLTimeElement;\n};\n\ninterface HTMLTitleElement extends HTMLElement {\n    /**\n     * Retrieves or sets the text of the object as a string.\n     */\n    text: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTitleElement: {\n    prototype: HTMLTitleElement;\n    new(): HTMLTitleElement;\n};\n\ninterface HTMLTrackElement extends HTMLElement {\n    default: boolean;\n    kind: string;\n    label: string;\n    readonly readyState: number;\n    src: string;\n    srclang: string;\n    readonly track: TextTrack;\n    readonly ERROR: number;\n    readonly LOADED: number;\n    readonly LOADING: number;\n    readonly NONE: number;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLTrackElement: {\n    prototype: HTMLTrackElement;\n    new(): HTMLTrackElement;\n    readonly ERROR: number;\n    readonly LOADED: number;\n    readonly LOADING: number;\n    readonly NONE: number;\n};\n\ninterface HTMLUListElement extends HTMLElement {\n    /** @deprecated */\n    compact: boolean;\n    /** @deprecated */\n    type: string;\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUListElement: {\n    prototype: HTMLUListElement;\n    new(): HTMLUListElement;\n};\n\ninterface HTMLUnknownElement extends HTMLElement {\n    addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLUnknownElement: {\n    prototype: HTMLUnknownElement;\n    new(): HTMLUnknownElement;\n};\n\ninterface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {\n    "MSVideoFormatChanged": Event;\n    "MSVideoFrameStepCompleted": Event;\n    "MSVideoOptimalLayoutChanged": Event;\n}\n\ninterface HTMLVideoElement extends HTMLMediaElement {\n    /**\n     * Gets or sets the height of the video element.\n     */\n    height: number;\n    msHorizontalMirror: boolean;\n    readonly msIsLayoutOptimalForPlayback: boolean;\n    readonly msIsStereo3D: boolean;\n    msStereo3DPackingMode: string;\n    msStereo3DRenderMode: string;\n    msZoom: boolean;\n    onMSVideoFormatChanged: ((this: HTMLVideoElement, ev: Event) => any) | null;\n    onMSVideoFrameStepCompleted: ((this: HTMLVideoElement, ev: Event) => any) | null;\n    onMSVideoOptimalLayoutChanged: ((this: HTMLVideoElement, ev: Event) => any) | null;\n    /**\n     * Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.\n     */\n    poster: string;\n    /**\n     * Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.\n     */\n    readonly videoHeight: number;\n    /**\n     * Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.\n     */\n    readonly videoWidth: number;\n    readonly webkitDisplayingFullscreen: boolean;\n    readonly webkitSupportsFullscreen: boolean;\n    /**\n     * Gets or sets the width of the video element.\n     */\n    width: number;\n    getVideoPlaybackQuality(): VideoPlaybackQuality;\n    msFrameStep(forward: boolean): void;\n    msInsertVideoEffect(activatableClassId: string, effectRequired: boolean, config?: any): void;\n    msSetVideoRectangle(left: number, top: number, right: number, bottom: number): void;\n    webkitEnterFullScreen(): void;\n    webkitEnterFullscreen(): void;\n    webkitExitFullScreen(): void;\n    webkitExitFullscreen(): void;\n    addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLVideoElement: {\n    prototype: HTMLVideoElement;\n    new(): HTMLVideoElement;\n};\n\ninterface HashChangeEvent extends Event {\n    readonly newURL: string;\n    readonly oldURL: string;\n}\n\ndeclare var HashChangeEvent: {\n    prototype: HashChangeEvent;\n    new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;\n};\n\ninterface Headers {\n    append(name: string, value: string): void;\n    delete(name: string): void;\n    get(name: string): string | null;\n    has(name: string): boolean;\n    set(name: string, value: string): void;\n    forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;\n}\n\ndeclare var Headers: {\n    prototype: Headers;\n    new(init?: HeadersInit): Headers;\n};\n\ninterface History {\n    readonly length: number;\n    scrollRestoration: ScrollRestoration;\n    readonly state: any;\n    back(): void;\n    forward(): void;\n    go(delta?: number): void;\n    pushState(data: any, title: string, url?: string | null): void;\n    replaceState(data: any, title: string, url?: string | null): void;\n}\n\ndeclare var History: {\n    prototype: History;\n    new(): History;\n};\n\ninterface HkdfCtrParams extends Algorithm {\n    context: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n    hash: string | Algorithm;\n    label: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface IDBArrayKey extends Array<IDBValidKey> {\n}\n\ninterface IDBCursor {\n    /**\n     * Returns the direction ("next", "nextunique", "prev" or "prevunique")\n     * of the cursor.\n     */\n    readonly direction: IDBCursorDirection;\n    /**\n     * Returns the key of the cursor.\n     * Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n     */\n    readonly key: IDBValidKey | IDBKeyRange;\n    /**\n     * Returns the effective key of the cursor.\n     * Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.\n     */\n    readonly primaryKey: IDBValidKey | IDBKeyRange;\n    /**\n     * Returns the IDBObjectStore or IDBIndex the cursor was opened from.\n     */\n    readonly source: IDBObjectStore | IDBIndex;\n    /**\n     * Advances the cursor through the next count records in\n     * range.\n     */\n    advance(count: number): void;\n    /**\n     * Advances the cursor to the next record in range matching or\n     * after key.\n     */\n    continue(key?: IDBValidKey | IDBKeyRange): void;\n    /**\n     * Advances the cursor to the next record in range matching\n     * or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.\n     */\n    continuePrimaryKey(key: IDBValidKey | IDBKeyRange, primaryKey: IDBValidKey | IDBKeyRange): void;\n    /**\n     * Delete the record pointed at by the cursor with a new value.\n     * If successful, request\'s result will be undefined.\n     */\n    delete(): IDBRequest<undefined>;\n    /**\n     * Updated the record pointed at by the cursor with a new value.\n     * Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.\n     * If successful, request\'s result will be the record\'s key.\n     */\n    update(value: any): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBCursor: {\n    prototype: IDBCursor;\n    new(): IDBCursor;\n};\n\ninterface IDBCursorWithValue extends IDBCursor {\n    /**\n     * Returns the cursor\'s current value.\n     */\n    readonly value: any;\n}\n\ndeclare var IDBCursorWithValue: {\n    prototype: IDBCursorWithValue;\n    new(): IDBCursorWithValue;\n};\n\ninterface IDBDatabaseEventMap {\n    "abort": Event;\n    "close": Event;\n    "error": Event;\n    "versionchange": IDBVersionChangeEvent;\n}\n\ninterface IDBDatabase extends EventTarget {\n    /**\n     * Returns the name of the database.\n     */\n    readonly name: string;\n    /**\n     * Returns a list of the names of object stores in the database.\n     */\n    readonly objectStoreNames: DOMStringList;\n    onabort: ((this: IDBDatabase, ev: Event) => any) | null;\n    onclose: ((this: IDBDatabase, ev: Event) => any) | null;\n    onerror: ((this: IDBDatabase, ev: Event) => any) | null;\n    onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;\n    /**\n     * Returns the version of the database.\n     */\n    readonly version: number;\n    /**\n     * Closes the connection once all running transactions have finished.\n     */\n    close(): void;\n    /**\n     * Creates a new object store with the given name and options and returns a new IDBObjectStore.\n     * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n     */\n    createObjectStore(name: string, optionalParameters?: IDBObjectStoreParameters): IDBObjectStore;\n    /**\n     * Deletes the object store with the given name.\n     * Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.\n     */\n    deleteObjectStore(name: string): void;\n    /**\n     * Returns a new transaction with the given mode ("readonly" or "readwrite")\n     * and scope which can be a single object store name or an array of names.\n     */\n    transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;\n    addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBDatabase: {\n    prototype: IDBDatabase;\n    new(): IDBDatabase;\n};\n\ninterface IDBEnvironment {\n    readonly indexedDB: IDBFactory;\n}\n\ninterface IDBFactory {\n    /**\n     * Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if\n     * the keys are equal.\n     * Throws a "DataError" DOMException if either input is not a valid key.\n     */\n    cmp(first: any, second: any): number;\n    /**\n     * Attempts to delete the named database. If the\n     * database already exists and there are open connections that don\'t close in response to a versionchange event, the request will be blocked until all they close. If the request\n     * is successful request\'s result will be null.\n     */\n    deleteDatabase(name: string): IDBOpenDBRequest;\n    /**\n     * Attempts to open a connection to the named database with the specified version. If the database already exists\n     * with a lower version and there are open connections that don\'t close in response to a versionchange event, the request will be blocked until all they close, then an upgrade\n     * will occur. If the database already exists with a higher\n     * version the request will fail. If the request is\n     * successful request\'s result will\n     * be the connection.\n     */\n    open(name: string, version?: number): IDBOpenDBRequest;\n}\n\ndeclare var IDBFactory: {\n    prototype: IDBFactory;\n    new(): IDBFactory;\n};\n\ninterface IDBIndex {\n    readonly keyPath: string | string[];\n    readonly multiEntry: boolean;\n    /**\n     * Updates the name of the store to newName.\n     * Throws an "InvalidStateError" DOMException if not called within an upgrade\n     * transaction.\n     */\n    name: string;\n    /**\n     * Returns the IDBObjectStore the index belongs to.\n     */\n    readonly objectStore: IDBObjectStore;\n    readonly unique: boolean;\n    /**\n     * Retrieves the number of records matching the given key or key range in query.\n     * If successful, request\'s result will be the\n     * count.\n     */\n    count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n    /**\n     * Retrieves the value of the first record matching the\n     * given key or key range in query.\n     * If successful, request\'s result will be the value, or undefined if there was no matching record.\n     */\n    get(key: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>;\n    /**\n     * Retrieves the values of the records matching the given key or key range in query (up to count if given).\n     * If successful, request\'s result will be an Array of the values.\n     */\n    getAll(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<any[]>;\n    /**\n     * Retrieves the keys of records matching the given key or key range in query (up to count if given).\n     * If successful, request\'s result will be an Array of the keys.\n     */\n    getAllKeys(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<IDBValidKey[]>;\n    /**\n     * Retrieves the key of the first record matching the\n     * given key or key range in query.\n     * If successful, request\'s result will be the key, or undefined if there was no matching record.\n     */\n    getKey(key: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n    /**\n     * Opens a cursor over the records matching query,\n     * ordered by direction. If query is null, all records in index are matched.\n     * If successful, request\'s result will be an IDBCursorWithValue, or null if there were no matching records.\n     */\n    openCursor(range?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n    /**\n     * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.\n     * If successful, request\'s result will be an IDBCursor, or null if there were no matching records.\n     */\n    openKeyCursor(range?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n}\n\ndeclare var IDBIndex: {\n    prototype: IDBIndex;\n    new(): IDBIndex;\n};\n\ninterface IDBKeyRange {\n    /**\n     * Returns lower bound, or undefined if none.\n     */\n    readonly lower: any;\n    /**\n     * Returns true if the lower open flag is set, and false otherwise.\n     */\n    readonly lowerOpen: boolean;\n    /**\n     * Returns upper bound, or undefined if none.\n     */\n    readonly upper: any;\n    /**\n     * Returns true if the upper open flag is set, and false otherwise.\n     */\n    readonly upperOpen: boolean;\n    /**\n     * Returns true if key is included in the range, and false otherwise.\n     */\n    includes(key: any): boolean;\n}\n\ndeclare var IDBKeyRange: {\n    prototype: IDBKeyRange;\n    new(): IDBKeyRange;\n    /**\n     * Returns a new IDBKeyRange spanning from lower to upper.\n     * If lowerOpen is true, lower is not included in the range.\n     * If upperOpen is true, upper is not included in the range.\n     */\n    bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;\n    /**\n     * Returns a new IDBKeyRange starting at key with no\n     * upper bound. If open is true, key is not included in the\n     * range.\n     */\n    lowerBound(lower: any, open?: boolean): IDBKeyRange;\n    /**\n     * Returns a new IDBKeyRange spanning only key.\n     */\n    only(value: any): IDBKeyRange;\n    /**\n     * Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.\n     */\n    upperBound(upper: any, open?: boolean): IDBKeyRange;\n};\n\ninterface IDBObjectStore {\n    /**\n     * Returns true if the store has a key generator, and false otherwise.\n     */\n    readonly autoIncrement: boolean;\n    /**\n     * Returns a list of the names of indexes in the store.\n     */\n    readonly indexNames: DOMStringList;\n    /**\n     * Returns the key path of the store, or null if none.\n     */\n    readonly keyPath: string | string[];\n    /**\n     * Updates the name of the store to newName.\n     * Throws "InvalidStateError" DOMException if not called within an upgrade\n     * transaction.\n     */\n    name: string;\n    /**\n     * Returns the associated transaction.\n     */\n    readonly transaction: IDBTransaction;\n    add(value: any, key?: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey>;\n    /**\n     * Deletes all records in store.\n     * If successful, request\'s result will\n     * be undefined.\n     */\n    clear(): IDBRequest<undefined>;\n    /**\n     * Retrieves the number of records matching the\n     * given key or key range in query.\n     * If successful, request\'s result will be the count.\n     */\n    count(key?: IDBValidKey | IDBKeyRange): IDBRequest<number>;\n    /**\n     * Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be\n     * satisfied with the data already in store the upgrade\n     * transaction will abort with\n     * a "ConstraintError" DOMException.\n     * Throws an "InvalidStateError" DOMException if not called within an upgrade\n     * transaction.\n     */\n    createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;\n    /**\n     * Deletes records in store with the given key or in the given key range in query.\n     * If successful, request\'s result will\n     * be undefined.\n     */\n    delete(key: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;\n    /**\n     * Deletes the index in store with the given name.\n     * Throws an "InvalidStateError" DOMException if not called within an upgrade\n     * transaction.\n     */\n    deleteIndex(name: string): void;\n    /**\n     * Retrieves the value of the first record matching the\n     * given key or key range in query.\n     * If successful, request\'s result will be the value, or undefined if there was no matching record.\n     */\n    get(query: IDBValidKey | IDBKeyRange): IDBRequest<any | undefined>;\n    /**\n     * Retrieves the values of the records matching the\n     * given key or key range in query (up to count if given).\n     * If successful, request\'s result will\n     * be an Array of the values.\n     */\n    getAll(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<any[]>;\n    /**\n     * Retrieves the keys of records matching the\n     * given key or key range in query (up to count if given).\n     * If successful, request\'s result will\n     * be an Array of the keys.\n     */\n    getAllKeys(query?: IDBValidKey | IDBKeyRange, count?: number): IDBRequest<IDBValidKey[]>;\n    /**\n     * Retrieves the key of the first record matching the\n     * given key or key range in query.\n     * If successful, request\'s result will be the key, or undefined if there was no matching record.\n     */\n    getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;\n    index(name: string): IDBIndex;\n    /**\n     * Opens a cursor over the records matching query,\n     * ordered by direction. If query is null, all records in store are matched.\n     * If successful, request\'s result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.\n     */\n    openCursor(range?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;\n    /**\n     * Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.\n     * If successful, request\'s result will be an IDBCursor pointing at the first matching record, or\n     * null if there were no matching records.\n     */\n    openKeyCursor(query?: IDBValidKey | IDBKeyRange, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;\n    put(value: any, key?: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey>;\n}\n\ndeclare var IDBObjectStore: {\n    prototype: IDBObjectStore;\n    new(): IDBObjectStore;\n};\n\ninterface IDBOpenDBRequestEventMap extends IDBRequestEventMap {\n    "blocked": Event;\n    "upgradeneeded": IDBVersionChangeEvent;\n}\n\ninterface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {\n    onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;\n    onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;\n    addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBOpenDBRequest: {\n    prototype: IDBOpenDBRequest;\n    new(): IDBOpenDBRequest;\n};\n\ninterface IDBRequestEventMap {\n    "error": Event;\n    "success": Event;\n}\n\ninterface IDBRequest<T = any> extends EventTarget {\n    /**\n     * When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws\n     * a "InvalidStateError" DOMException if the request is still pending.\n     */\n    readonly error: DOMException | null;\n    onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;\n    onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;\n    /**\n     * Returns "pending" until a request is complete,\n     * then returns "done".\n     */\n    readonly readyState: IDBRequestReadyState;\n    /**\n     * When a request is completed, returns the result,\n     * or undefined if the request failed. Throws a\n     * "InvalidStateError" DOMException if the request is still pending.\n     */\n    readonly result: T;\n    /**\n     * Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open\n     * request.\n     */\n    readonly source: IDBObjectStore | IDBIndex | IDBCursor;\n    /**\n     * Returns the IDBTransaction the request was made within.\n     * If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.\n     */\n    readonly transaction: IDBTransaction | null;\n    addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBRequest: {\n    prototype: IDBRequest;\n    new(): IDBRequest;\n};\n\ninterface IDBTransactionEventMap {\n    "abort": Event;\n    "complete": Event;\n    "error": Event;\n}\n\ninterface IDBTransaction extends EventTarget {\n    /**\n     * Returns the transaction\'s connection.\n     */\n    readonly db: IDBDatabase;\n    /**\n     * If the transaction was aborted, returns the\n     * error (a DOMException) providing the reason.\n     */\n    readonly error: DOMException;\n    /**\n     * Returns the mode the transaction was created with\n     * ("readonly" or "readwrite"), or "versionchange" for\n     * an upgrade transaction.\n     */\n    readonly mode: IDBTransactionMode;\n    /**\n     * Returns a list of the names of object stores in the\n     * transaction\'s scope. For an upgrade transaction this is all object stores in the database.\n     */\n    readonly objectStoreNames: DOMStringList;\n    onabort: ((this: IDBTransaction, ev: Event) => any) | null;\n    oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;\n    onerror: ((this: IDBTransaction, ev: Event) => any) | null;\n    /**\n     * Aborts the transaction. All pending requests will fail with\n     * a "AbortError" DOMException and all changes made to the database will be\n     * reverted.\n     */\n    abort(): void;\n    /**\n     * Returns an IDBObjectStore in the transaction\'s scope.\n     */\n    objectStore(name: string): IDBObjectStore;\n    addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var IDBTransaction: {\n    prototype: IDBTransaction;\n    new(): IDBTransaction;\n};\n\ninterface IDBVersionChangeEvent extends Event {\n    readonly newVersion: number | null;\n    readonly oldVersion: number;\n}\n\ndeclare var IDBVersionChangeEvent: {\n    prototype: IDBVersionChangeEvent;\n    new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;\n};\n\ninterface IIRFilterNode extends AudioNode {\n    getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var IIRFilterNode: {\n    prototype: IIRFilterNode;\n    new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;\n};\n\ninterface ImageBitmap {\n    /**\n     * Returns the intrinsic height of the image, in CSS\n     * pixels.\n     */\n    readonly height: number;\n    /**\n     * Returns the intrinsic width of the image, in CSS\n     * pixels.\n     */\n    readonly width: number;\n    /**\n     * Releases imageBitmap\'s underlying bitmap data.\n     */\n    close(): void;\n}\n\ndeclare var ImageBitmap: {\n    prototype: ImageBitmap;\n    new(): ImageBitmap;\n};\n\ninterface ImageBitmapOptions {\n    colorSpaceConversion?: "none" | "default";\n    imageOrientation?: "none" | "flipY";\n    premultiplyAlpha?: "none" | "premultiply" | "default";\n    resizeHeight?: number;\n    resizeQuality?: "pixelated" | "low" | "medium" | "high";\n    resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContext {\n    /**\n     * Returns the canvas element that the context is bound to.\n     */\n    readonly canvas: HTMLCanvasElement;\n    /**\n     * Replaces contents of the canvas element to which context\n     * is bound with a transparent black bitmap whose size corresponds to the width and height\n     * content attributes of the canvas element.\n     */\n    transferFromImageBitmap(bitmap: ImageBitmap | null): void;\n}\n\ndeclare var ImageBitmapRenderingContext: {\n    prototype: ImageBitmapRenderingContext;\n    new(): ImageBitmapRenderingContext;\n};\n\ninterface ImageData {\n    /**\n     * Returns the one-dimensional array containing the data in RGBA order, as integers in the\n     * range 0 to 255.\n     */\n    readonly data: Uint8ClampedArray;\n    /**\n     * Returns the actual dimensions of the data in the ImageData object, in\n     * pixels.\n     */\n    readonly height: number;\n    readonly width: number;\n}\n\ndeclare var ImageData: {\n    prototype: ImageData;\n    new(width: number, height: number): ImageData;\n    new(array: Uint8ClampedArray, width: number, height: number): ImageData;\n};\n\ninterface IntersectionObserver {\n    readonly root: Element | null;\n    readonly rootMargin: string;\n    readonly thresholds: number[];\n    disconnect(): void;\n    observe(target: Element): void;\n    takeRecords(): IntersectionObserverEntry[];\n    unobserve(target: Element): void;\n}\n\ndeclare var IntersectionObserver: {\n    prototype: IntersectionObserver;\n    new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;\n};\n\ninterface IntersectionObserverEntry {\n    readonly boundingClientRect: ClientRect | DOMRect;\n    readonly intersectionRatio: number;\n    readonly intersectionRect: ClientRect | DOMRect;\n    readonly isIntersecting: boolean;\n    readonly rootBounds: ClientRect | DOMRect;\n    readonly target: Element;\n    readonly time: number;\n}\n\ndeclare var IntersectionObserverEntry: {\n    prototype: IntersectionObserverEntry;\n    new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;\n};\n\ninterface KeyboardEvent extends UIEvent {\n    readonly altKey: boolean;\n    /** @deprecated */\n    char: string;\n    /** @deprecated */\n    readonly charCode: number;\n    readonly code: string;\n    readonly ctrlKey: boolean;\n    readonly key: string;\n    /** @deprecated */\n    readonly keyCode: number;\n    readonly location: number;\n    readonly metaKey: boolean;\n    readonly repeat: boolean;\n    readonly shiftKey: boolean;\n    /** @deprecated */\n    readonly which: number;\n    getModifierState(keyArg: string): boolean;\n    /** @deprecated */\n    initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void;\n    readonly DOM_KEY_LOCATION_JOYSTICK: number;\n    readonly DOM_KEY_LOCATION_LEFT: number;\n    readonly DOM_KEY_LOCATION_MOBILE: number;\n    readonly DOM_KEY_LOCATION_NUMPAD: number;\n    readonly DOM_KEY_LOCATION_RIGHT: number;\n    readonly DOM_KEY_LOCATION_STANDARD: number;\n}\n\ndeclare var KeyboardEvent: {\n    prototype: KeyboardEvent;\n    new(typeArg: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;\n    readonly DOM_KEY_LOCATION_JOYSTICK: number;\n    readonly DOM_KEY_LOCATION_LEFT: number;\n    readonly DOM_KEY_LOCATION_MOBILE: number;\n    readonly DOM_KEY_LOCATION_NUMPAD: number;\n    readonly DOM_KEY_LOCATION_RIGHT: number;\n    readonly DOM_KEY_LOCATION_STANDARD: number;\n};\n\ninterface KeyframeEffect extends AnimationEffect {\n    composite: CompositeOperation;\n    iterationComposite: IterationCompositeOperation;\n    target: Element | null;\n    getKeyframes(): ComputedKeyframe[];\n    setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;\n}\n\ndeclare var KeyframeEffect: {\n    prototype: KeyframeEffect;\n    new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;\n    new(source: KeyframeEffect): KeyframeEffect;\n};\n\ninterface LinkStyle {\n    readonly sheet: StyleSheet | null;\n}\n\ninterface ListeningStateChangedEvent extends Event {\n    readonly label: string;\n    readonly state: ListeningState;\n}\n\ndeclare var ListeningStateChangedEvent: {\n    prototype: ListeningStateChangedEvent;\n    new(): ListeningStateChangedEvent;\n};\n\ninterface Location {\n    /**\n     * Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing\n     * context to the top-level browsing context.\n     */\n    readonly ancestorOrigins: DOMStringList;\n    /**\n     * Returns the Location object\'s URL\'s fragment (includes leading "#" if non-empty).\n     * Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").\n     */\n    hash: string;\n    /**\n     * Returns the Location object\'s URL\'s host and port (if different from the default\n     * port for the scheme).\n     * Can be set, to navigate to the same URL with a changed host and port.\n     */\n    host: string;\n    /**\n     * Returns the Location object\'s URL\'s host.\n     * Can be set, to navigate to the same URL with a changed host.\n     */\n    hostname: string;\n    /**\n     * Returns the Location object\'s URL.\n     * Can be set, to navigate to the given URL.\n     */\n    href: string;\n    /**\n     * Returns the Location object\'s URL\'s origin.\n     */\n    readonly origin: string;\n    /**\n     * Returns the Location object\'s URL\'s path.\n     * Can be set, to navigate to the same URL with a changed path.\n     */\n    pathname: string;\n    /**\n     * Returns the Location object\'s URL\'s port.\n     * Can be set, to navigate to the same URL with a changed port.\n     */\n    port: string;\n    /**\n     * Returns the Location object\'s URL\'s scheme.\n     * Can be set, to navigate to the same URL with a changed scheme.\n     */\n    protocol: string;\n    /**\n     * Returns the Location object\'s URL\'s query (includes leading "?" if non-empty).\n     * Can be set, to navigate to the same URL with a changed query (ignores leading "?").\n     */\n    search: string;\n    /**\n     * Navigates to the given URL.\n     */\n    assign(url: string): void;\n    /**\n     * Reloads the current page.\n     */\n    reload(forcedReload?: boolean): void;\n    /**\n     * Removes the current page from the session history and navigates to the given URL.\n     */\n    replace(url: string): void;\n}\n\ndeclare var Location: {\n    prototype: Location;\n    new(): Location;\n};\n\ninterface MSAssertion {\n    readonly id: string;\n    readonly type: MSCredentialType;\n}\n\ndeclare var MSAssertion: {\n    prototype: MSAssertion;\n    new(): MSAssertion;\n};\n\ninterface MSBlobBuilder {\n    append(data: any, endings?: string): void;\n    getBlob(contentType?: string): Blob;\n}\n\ndeclare var MSBlobBuilder: {\n    prototype: MSBlobBuilder;\n    new(): MSBlobBuilder;\n};\n\ninterface MSFIDOCredentialAssertion extends MSAssertion {\n    readonly algorithm: string | Algorithm;\n    readonly attestation: any;\n    readonly publicKey: string;\n    readonly transportHints: MSTransportType[];\n}\n\ndeclare var MSFIDOCredentialAssertion: {\n    prototype: MSFIDOCredentialAssertion;\n    new(): MSFIDOCredentialAssertion;\n};\n\ninterface MSFIDOSignature {\n    readonly authnrData: string;\n    readonly clientData: string;\n    readonly signature: string;\n}\n\ndeclare var MSFIDOSignature: {\n    prototype: MSFIDOSignature;\n    new(): MSFIDOSignature;\n};\n\ninterface MSFIDOSignatureAssertion extends MSAssertion {\n    readonly signature: MSFIDOSignature;\n}\n\ndeclare var MSFIDOSignatureAssertion: {\n    prototype: MSFIDOSignatureAssertion;\n    new(): MSFIDOSignatureAssertion;\n};\n\ninterface MSFileSaver {\n    msSaveBlob(blob: any, defaultName?: string): boolean;\n    msSaveOrOpenBlob(blob: any, defaultName?: string): boolean;\n}\n\ninterface MSGesture {\n    target: Element;\n    addPointer(pointerId: number): void;\n    stop(): void;\n}\n\ndeclare var MSGesture: {\n    prototype: MSGesture;\n    new(): MSGesture;\n};\n\ninterface MSGestureEvent extends UIEvent {\n    readonly clientX: number;\n    readonly clientY: number;\n    readonly expansion: number;\n    readonly gestureObject: any;\n    readonly hwTimestamp: number;\n    readonly offsetX: number;\n    readonly offsetY: number;\n    readonly rotation: number;\n    readonly scale: number;\n    readonly screenX: number;\n    readonly screenY: number;\n    readonly translationX: number;\n    readonly translationY: number;\n    readonly velocityAngular: number;\n    readonly velocityExpansion: number;\n    readonly velocityX: number;\n    readonly velocityY: number;\n    initGestureEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, offsetXArg: number, offsetYArg: number, translationXArg: number, translationYArg: number, scaleArg: number, expansionArg: number, rotationArg: number, velocityXArg: number, velocityYArg: number, velocityExpansionArg: number, velocityAngularArg: number, hwTimestampArg: number): void;\n    readonly MSGESTURE_FLAG_BEGIN: number;\n    readonly MSGESTURE_FLAG_CANCEL: number;\n    readonly MSGESTURE_FLAG_END: number;\n    readonly MSGESTURE_FLAG_INERTIA: number;\n    readonly MSGESTURE_FLAG_NONE: number;\n}\n\ndeclare var MSGestureEvent: {\n    prototype: MSGestureEvent;\n    new(): MSGestureEvent;\n    readonly MSGESTURE_FLAG_BEGIN: number;\n    readonly MSGESTURE_FLAG_CANCEL: number;\n    readonly MSGESTURE_FLAG_END: number;\n    readonly MSGESTURE_FLAG_INERTIA: number;\n    readonly MSGESTURE_FLAG_NONE: number;\n};\n\ninterface MSGraphicsTrust {\n    readonly constrictionActive: boolean;\n    readonly status: string;\n}\n\ndeclare var MSGraphicsTrust: {\n    prototype: MSGraphicsTrust;\n    new(): MSGraphicsTrust;\n};\n\ninterface MSInputMethodContextEventMap {\n    "MSCandidateWindowHide": Event;\n    "MSCandidateWindowShow": Event;\n    "MSCandidateWindowUpdate": Event;\n}\n\ninterface MSInputMethodContext extends EventTarget {\n    readonly compositionEndOffset: number;\n    readonly compositionStartOffset: number;\n    oncandidatewindowhide: ((this: MSInputMethodContext, ev: Event) => any) | null;\n    oncandidatewindowshow: ((this: MSInputMethodContext, ev: Event) => any) | null;\n    oncandidatewindowupdate: ((this: MSInputMethodContext, ev: Event) => any) | null;\n    readonly target: HTMLElement;\n    getCandidateWindowClientRect(): ClientRect;\n    getCompositionAlternatives(): string[];\n    hasComposition(): boolean;\n    isCandidateWindowVisible(): boolean;\n    addEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MSInputMethodContextEventMap>(type: K, listener: (this: MSInputMethodContext, ev: MSInputMethodContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MSInputMethodContext: {\n    prototype: MSInputMethodContext;\n    new(): MSInputMethodContext;\n};\n\ninterface MSMediaKeyError {\n    readonly code: number;\n    readonly systemCode: number;\n    readonly MS_MEDIA_KEYERR_CLIENT: number;\n    readonly MS_MEDIA_KEYERR_DOMAIN: number;\n    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;\n    readonly MS_MEDIA_KEYERR_OUTPUT: number;\n    readonly MS_MEDIA_KEYERR_SERVICE: number;\n    readonly MS_MEDIA_KEYERR_UNKNOWN: number;\n}\n\ndeclare var MSMediaKeyError: {\n    prototype: MSMediaKeyError;\n    new(): MSMediaKeyError;\n    readonly MS_MEDIA_KEYERR_CLIENT: number;\n    readonly MS_MEDIA_KEYERR_DOMAIN: number;\n    readonly MS_MEDIA_KEYERR_HARDWARECHANGE: number;\n    readonly MS_MEDIA_KEYERR_OUTPUT: number;\n    readonly MS_MEDIA_KEYERR_SERVICE: number;\n    readonly MS_MEDIA_KEYERR_UNKNOWN: number;\n};\n\ninterface MSMediaKeyMessageEvent extends Event {\n    readonly destinationURL: string | null;\n    readonly message: Uint8Array;\n}\n\ndeclare var MSMediaKeyMessageEvent: {\n    prototype: MSMediaKeyMessageEvent;\n    new(): MSMediaKeyMessageEvent;\n};\n\ninterface MSMediaKeyNeededEvent extends Event {\n    readonly initData: Uint8Array | null;\n}\n\ndeclare var MSMediaKeyNeededEvent: {\n    prototype: MSMediaKeyNeededEvent;\n    new(): MSMediaKeyNeededEvent;\n};\n\ninterface MSMediaKeySession extends EventTarget {\n    readonly error: MSMediaKeyError | null;\n    readonly keySystem: string;\n    readonly sessionId: string;\n    close(): void;\n    update(key: Uint8Array): void;\n}\n\ndeclare var MSMediaKeySession: {\n    prototype: MSMediaKeySession;\n    new(): MSMediaKeySession;\n};\n\ninterface MSMediaKeys {\n    readonly keySystem: string;\n    createSession(type: string, initData: Uint8Array, cdmData?: Uint8Array | null): MSMediaKeySession;\n}\n\ndeclare var MSMediaKeys: {\n    prototype: MSMediaKeys;\n    new(keySystem: string): MSMediaKeys;\n    isTypeSupported(keySystem: string, type?: string | null): boolean;\n    isTypeSupportedWithFeatures(keySystem: string, type?: string | null): string;\n};\n\ninterface MSNavigatorDoNotTrack {\n    confirmSiteSpecificTrackingException(args: ConfirmSiteSpecificExceptionsInformation): boolean;\n    confirmWebWideTrackingException(args: ExceptionInformation): boolean;\n    removeSiteSpecificTrackingException(args: ExceptionInformation): void;\n    removeWebWideTrackingException(args: ExceptionInformation): void;\n    storeSiteSpecificTrackingException(args: StoreSiteSpecificExceptionsInformation): void;\n    storeWebWideTrackingException(args: StoreExceptionsInformation): void;\n}\n\ninterface MSPointerEvent extends MouseEvent {\n    readonly currentPoint: any;\n    readonly height: number;\n    readonly hwTimestamp: number;\n    readonly intermediatePoints: any;\n    readonly isPrimary: boolean;\n    readonly pointerId: number;\n    readonly pointerType: any;\n    readonly pressure: number;\n    readonly rotation: number;\n    readonly tiltX: number;\n    readonly tiltY: number;\n    readonly width: number;\n    getCurrentPoint(element: Element): void;\n    getIntermediatePoints(element: Element): void;\n    initPointerEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget, offsetXArg: number, offsetYArg: number, widthArg: number, heightArg: number, pressure: number, rotation: number, tiltX: number, tiltY: number, pointerIdArg: number, pointerType: any, hwTimestampArg: number, isPrimary: boolean): void;\n}\n\ndeclare var MSPointerEvent: {\n    prototype: MSPointerEvent;\n    new(typeArg: string, eventInitDict?: PointerEventInit): MSPointerEvent;\n};\n\ninterface MSStream {\n    readonly type: string;\n    msClose(): void;\n    msDetachStream(): any;\n}\n\ndeclare var MSStream: {\n    prototype: MSStream;\n    new(): MSStream;\n};\n\ninterface MediaDeviceInfo {\n    readonly deviceId: string;\n    readonly groupId: string;\n    readonly kind: MediaDeviceKind;\n    readonly label: string;\n}\n\ndeclare var MediaDeviceInfo: {\n    prototype: MediaDeviceInfo;\n    new(): MediaDeviceInfo;\n};\n\ninterface MediaDevicesEventMap {\n    "devicechange": Event;\n}\n\ninterface MediaDevices extends EventTarget {\n    ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;\n    enumerateDevices(): Promise<MediaDeviceInfo[]>;\n    getSupportedConstraints(): MediaTrackSupportedConstraints;\n    getUserMedia(constraints: MediaStreamConstraints): Promise<MediaStream>;\n    addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaDevices: {\n    prototype: MediaDevices;\n    new(): MediaDevices;\n};\n\ninterface MediaElementAudioSourceNode extends AudioNode {\n    readonly mediaElement: HTMLMediaElement;\n}\n\ndeclare var MediaElementAudioSourceNode: {\n    prototype: MediaElementAudioSourceNode;\n    new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;\n};\n\ninterface MediaEncryptedEvent extends Event {\n    readonly initData: ArrayBuffer | null;\n    readonly initDataType: string;\n}\n\ndeclare var MediaEncryptedEvent: {\n    prototype: MediaEncryptedEvent;\n    new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;\n};\n\ninterface MediaError {\n    readonly code: number;\n    readonly message: string;\n    readonly msExtendedCode: number;\n    readonly MEDIA_ERR_ABORTED: number;\n    readonly MEDIA_ERR_DECODE: number;\n    readonly MEDIA_ERR_NETWORK: number;\n    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;\n    readonly MS_MEDIA_ERR_ENCRYPTED: number;\n}\n\ndeclare var MediaError: {\n    prototype: MediaError;\n    new(): MediaError;\n    readonly MEDIA_ERR_ABORTED: number;\n    readonly MEDIA_ERR_DECODE: number;\n    readonly MEDIA_ERR_NETWORK: number;\n    readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;\n    readonly MS_MEDIA_ERR_ENCRYPTED: number;\n};\n\ninterface MediaKeyMessageEvent extends Event {\n    readonly message: ArrayBuffer;\n    readonly messageType: MediaKeyMessageType;\n}\n\ndeclare var MediaKeyMessageEvent: {\n    prototype: MediaKeyMessageEvent;\n    new(type: string, eventInitDict?: MediaKeyMessageEventInit): MediaKeyMessageEvent;\n};\n\ninterface MediaKeySession extends EventTarget {\n    readonly closed: Promise<void>;\n    readonly expiration: number;\n    readonly keyStatuses: MediaKeyStatusMap;\n    readonly sessionId: string;\n    close(): Promise<void>;\n    generateRequest(initDataType: string, initData: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): Promise<void>;\n    load(sessionId: string): Promise<boolean>;\n    remove(): Promise<void>;\n    update(response: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): Promise<void>;\n}\n\ndeclare var MediaKeySession: {\n    prototype: MediaKeySession;\n    new(): MediaKeySession;\n};\n\ninterface MediaKeyStatusMap {\n    readonly size: number;\n    forEach(callback: Function, thisArg?: any): void;\n    get(keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): MediaKeyStatus;\n    has(keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): boolean;\n}\n\ndeclare var MediaKeyStatusMap: {\n    prototype: MediaKeyStatusMap;\n    new(): MediaKeyStatusMap;\n};\n\ninterface MediaKeySystemAccess {\n    readonly keySystem: string;\n    createMediaKeys(): Promise<MediaKeys>;\n    getConfiguration(): MediaKeySystemConfiguration;\n}\n\ndeclare var MediaKeySystemAccess: {\n    prototype: MediaKeySystemAccess;\n    new(): MediaKeySystemAccess;\n};\n\ninterface MediaKeys {\n    createSession(sessionType?: MediaKeySessionType): MediaKeySession;\n    setServerCertificate(serverCertificate: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null): Promise<void>;\n}\n\ndeclare var MediaKeys: {\n    prototype: MediaKeys;\n    new(): MediaKeys;\n};\n\ninterface MediaList {\n    readonly length: number;\n    mediaText: string;\n    appendMedium(medium: string): void;\n    deleteMedium(medium: string): void;\n    item(index: number): string | null;\n    toString(): number;\n    [index: number]: string;\n}\n\ndeclare var MediaList: {\n    prototype: MediaList;\n    new(): MediaList;\n};\n\ninterface MediaQueryListEventMap {\n    "change": MediaQueryListEvent;\n}\n\ninterface MediaQueryList extends EventTarget {\n    readonly matches: boolean;\n    readonly media: string;\n    onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;\n    /** @deprecated */\n    addListener(listener: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;\n    /** @deprecated */\n    removeListener(listener: EventListenerOrEventListenerObject | null): void;\n    addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaQueryList: {\n    prototype: MediaQueryList;\n    new(): MediaQueryList;\n};\n\ninterface MediaQueryListEvent extends Event {\n    readonly matches: boolean;\n    readonly media: string;\n}\n\ndeclare var MediaQueryListEvent: {\n    prototype: MediaQueryListEvent;\n    new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;\n};\n\ninterface MediaSource extends EventTarget {\n    readonly activeSourceBuffers: SourceBufferList;\n    duration: number;\n    readonly readyState: ReadyState;\n    readonly sourceBuffers: SourceBufferList;\n    addSourceBuffer(type: string): SourceBuffer;\n    endOfStream(error?: EndOfStreamError): void;\n    removeSourceBuffer(sourceBuffer: SourceBuffer): void;\n}\n\ndeclare var MediaSource: {\n    prototype: MediaSource;\n    new(): MediaSource;\n    isTypeSupported(type: string): boolean;\n};\n\ninterface MediaStreamEventMap {\n    "active": Event;\n    "addtrack": MediaStreamTrackEvent;\n    "inactive": Event;\n    "removetrack": MediaStreamTrackEvent;\n}\n\ninterface MediaStream extends EventTarget {\n    readonly active: boolean;\n    readonly id: string;\n    onactive: ((this: MediaStream, ev: Event) => any) | null;\n    onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n    oninactive: ((this: MediaStream, ev: Event) => any) | null;\n    onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;\n    addTrack(track: MediaStreamTrack): void;\n    clone(): MediaStream;\n    getAudioTracks(): MediaStreamTrack[];\n    getTrackById(trackId: string): MediaStreamTrack | null;\n    getTracks(): MediaStreamTrack[];\n    getVideoTracks(): MediaStreamTrack[];\n    removeTrack(track: MediaStreamTrack): void;\n    stop(): void;\n    addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaStream: {\n    prototype: MediaStream;\n    new(): MediaStream;\n    new(stream: MediaStream): MediaStream;\n    new(tracks: MediaStreamTrack[]): MediaStream;\n};\n\ninterface MediaStreamAudioDestinationNode extends AudioNode {\n    readonly stream: MediaStream;\n}\n\ndeclare var MediaStreamAudioDestinationNode: {\n    prototype: MediaStreamAudioDestinationNode;\n    new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;\n};\n\ninterface MediaStreamAudioSourceNode extends AudioNode {\n    readonly mediaStream: MediaStream;\n}\n\ndeclare var MediaStreamAudioSourceNode: {\n    prototype: MediaStreamAudioSourceNode;\n    new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;\n};\n\ninterface MediaStreamError {\n    readonly constraintName: string | null;\n    readonly message: string | null;\n    readonly name: string;\n}\n\ndeclare var MediaStreamError: {\n    prototype: MediaStreamError;\n    new(): MediaStreamError;\n};\n\ninterface MediaStreamErrorEvent extends Event {\n    readonly error: MediaStreamError | null;\n}\n\ndeclare var MediaStreamErrorEvent: {\n    prototype: MediaStreamErrorEvent;\n    new(typeArg: string, eventInitDict?: MediaStreamErrorEventInit): MediaStreamErrorEvent;\n};\n\ninterface MediaStreamEvent extends Event {\n    readonly stream: MediaStream | null;\n}\n\ndeclare var MediaStreamEvent: {\n    prototype: MediaStreamEvent;\n    new(type: string, eventInitDict: MediaStreamEventInit): MediaStreamEvent;\n};\n\ninterface MediaStreamTrackEventMap {\n    "ended": MediaStreamErrorEvent;\n    "isolationchange": Event;\n    "mute": Event;\n    "overconstrained": MediaStreamErrorEvent;\n    "unmute": Event;\n}\n\ninterface MediaStreamTrack extends EventTarget {\n    enabled: boolean;\n    readonly id: string;\n    readonly isolated: boolean;\n    readonly kind: string;\n    readonly label: string;\n    readonly muted: boolean;\n    onended: ((this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any) | null;\n    onisolationchange: ((this: MediaStreamTrack, ev: Event) => any) | null;\n    onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n    onoverconstrained: ((this: MediaStreamTrack, ev: MediaStreamErrorEvent) => any) | null;\n    onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;\n    readonly readonly: boolean;\n    readonly readyState: MediaStreamTrackState;\n    readonly remote: boolean;\n    applyConstraints(constraints: MediaTrackConstraints): Promise<void>;\n    clone(): MediaStreamTrack;\n    getCapabilities(): MediaTrackCapabilities;\n    getConstraints(): MediaTrackConstraints;\n    getSettings(): MediaTrackSettings;\n    stop(): void;\n    addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MediaStreamTrack: {\n    prototype: MediaStreamTrack;\n    new(): MediaStreamTrack;\n};\n\ninterface MediaStreamTrackAudioSourceNode extends AudioNode {\n}\n\ndeclare var MediaStreamTrackAudioSourceNode: {\n    prototype: MediaStreamTrackAudioSourceNode;\n    new(context: AudioContext, options: MediaStreamTrackAudioSourceOptions): MediaStreamTrackAudioSourceNode;\n};\n\ninterface MediaStreamTrackEvent extends Event {\n    readonly track: MediaStreamTrack;\n}\n\ndeclare var MediaStreamTrackEvent: {\n    prototype: MediaStreamTrackEvent;\n    new(typeArg: string, eventInitDict?: MediaStreamTrackEventInit): MediaStreamTrackEvent;\n};\n\ninterface MessageChannel {\n    readonly port1: MessagePort;\n    readonly port2: MessagePort;\n}\n\ndeclare var MessageChannel: {\n    prototype: MessageChannel;\n    new(): MessageChannel;\n};\n\ninterface MessageEvent extends Event {\n    /**\n     * Returns the data of the message.\n     */\n    readonly data: any;\n    /**\n     * Returns the last event ID string, for\n     * server-sent events.\n     */\n    readonly lastEventId: string;\n    /**\n     * Returns the origin of the message, for server-sent events and\n     * cross-document messaging.\n     */\n    readonly origin: string;\n    /**\n     * Returns the MessagePort array sent with the message, for cross-document\n     * messaging and channel messaging.\n     */\n    readonly ports: ReadonlyArray<MessagePort>;\n    /**\n     * Returns the WindowProxy of the source window, for cross-document\n     * messaging, and the MessagePort being attached, in the connect event fired at\n     * SharedWorkerGlobalScope objects.\n     */\n    readonly source: MessageEventSource | null;\n}\n\ndeclare var MessageEvent: {\n    prototype: MessageEvent;\n    new(type: string, eventInitDict?: MessageEventInit): MessageEvent;\n};\n\ninterface MessagePortEventMap {\n    "message": MessageEvent;\n    "messageerror": MessageEvent;\n}\n\ninterface MessagePort extends EventTarget {\n    onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;\n    /**\n     * Disconnects the port, so that it is no longer active.\n     */\n    close(): void;\n    /**\n     * Posts a message through the channel. Objects listed in transfer are\n     * transferred, not just cloned, meaning that they are no longer usable on the sending side.\n     * Throws a "DataCloneError" DOMException if\n     * transfer contains duplicate objects or port, or if message\n     * could not be cloned.\n     */\n    postMessage(message: any, transfer?: Transferable[]): void;\n    /**\n     * Begins dispatching messages received on the port.\n     */\n    start(): void;\n    addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var MessagePort: {\n    prototype: MessagePort;\n    new(): MessagePort;\n};\n\ninterface MimeType {\n    readonly description: string;\n    readonly enabledPlugin: Plugin;\n    readonly suffixes: string;\n    readonly type: string;\n}\n\ndeclare var MimeType: {\n    prototype: MimeType;\n    new(): MimeType;\n};\n\ninterface MimeTypeArray {\n    readonly length: number;\n    item(index: number): Plugin;\n    namedItem(type: string): Plugin;\n    [index: number]: Plugin;\n}\n\ndeclare var MimeTypeArray: {\n    prototype: MimeTypeArray;\n    new(): MimeTypeArray;\n};\n\ninterface MouseEvent extends UIEvent {\n    readonly altKey: boolean;\n    readonly button: number;\n    readonly buttons: number;\n    readonly clientX: number;\n    readonly clientY: number;\n    readonly ctrlKey: boolean;\n    /** @deprecated */\n    readonly fromElement: Element;\n    readonly layerX: number;\n    readonly layerY: number;\n    readonly metaKey: boolean;\n    readonly movementX: number;\n    readonly movementY: number;\n    readonly offsetX: number;\n    readonly offsetY: number;\n    readonly pageX: number;\n    readonly pageY: number;\n    readonly relatedTarget: EventTarget;\n    readonly screenX: number;\n    readonly screenY: number;\n    readonly shiftKey: boolean;\n    /** @deprecated */\n    readonly toElement: Element;\n    /** @deprecated */\n    readonly which: number;\n    readonly x: number;\n    readonly y: number;\n    getModifierState(keyArg: string): boolean;\n    initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;\n}\n\ndeclare var MouseEvent: {\n    prototype: MouseEvent;\n    new(typeArg: string, eventInitDict?: MouseEventInit): MouseEvent;\n};\n\ninterface MutationEvent extends Event {\n    readonly attrChange: number;\n    readonly attrName: string;\n    readonly newValue: string;\n    readonly prevValue: string;\n    readonly relatedNode: Node;\n    initMutationEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, relatedNodeArg: Node, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void;\n    readonly ADDITION: number;\n    readonly MODIFICATION: number;\n    readonly REMOVAL: number;\n}\n\ndeclare var MutationEvent: {\n    prototype: MutationEvent;\n    new(): MutationEvent;\n    readonly ADDITION: number;\n    readonly MODIFICATION: number;\n    readonly REMOVAL: number;\n};\n\ninterface MutationObserver {\n    disconnect(): void;\n    /**\n     * Instructs the user agent to observe a given target (a node) and report any mutations based on\n     * the criteria given by options (an object).\n     * The options argument allows for setting mutation\n     * observation options via object members. These are the object members that\n     * can be used:\n     * childList\n     * Set to true if mutations to target\'s children are to be observed.\n     * attributes\n     * Set to true if mutations to target\'s attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is\n     * specified.\n     * characterData\n     * Set to true if mutations to target\'s data are to be observed. Can be omitted if characterDataOldValue is specified.\n     * subtree\n     * Set to true if mutations to not just target, but\n     * also target\'s descendants are to be\n     * observed.\n     * attributeOldValue\n     * Set to true if attributes is true or omitted\n     * and target\'s attribute value before the mutation\n     * needs to be recorded.\n     * characterDataOldValue\n     * Set to true if characterData is set to true or omitted and target\'s data before the mutation\n     * needs to be recorded.\n     * attributeFilter\n     * Set to a list of attribute local names (without namespace) if not all attribute mutations need to be\n     * observed and attributes is true\n     * or omitted.\n     */\n    observe(target: Node, options?: MutationObserverInit): void;\n    /**\n     * Empties the record queue and\n     * returns what was in there.\n     */\n    takeRecords(): MutationRecord[];\n}\n\ndeclare var MutationObserver: {\n    prototype: MutationObserver;\n    new(callback: MutationCallback): MutationObserver;\n};\n\ninterface MutationRecord {\n    readonly addedNodes: NodeList;\n    /**\n     * Returns the local name of the\n     * changed attribute, and null otherwise.\n     */\n    readonly attributeName: string | null;\n    /**\n     * Returns the namespace of the\n     * changed attribute, and null otherwise.\n     */\n    readonly attributeNamespace: string | null;\n    /**\n     * Return the previous and next sibling respectively\n     * of the added or removed nodes, and null otherwise.\n     */\n    readonly nextSibling: Node | null;\n    /**\n     * The return value depends on type. For\n     * "attributes", it is the value of the\n     * changed attribute before the change.\n     * For "characterData", it is the data of the changed node before the change. For\n     * "childList", it is null.\n     */\n    readonly oldValue: string | null;\n    readonly previousSibling: Node | null;\n    /**\n     * Return the nodes added and removed\n     * respectively.\n     */\n    readonly removedNodes: NodeList;\n    readonly target: Node;\n    /**\n     * Returns "attributes" if it was an attribute mutation.\n     * "characterData" if it was a mutation to a CharacterData node. And\n     * "childList" if it was a mutation to the tree of nodes.\n     */\n    readonly type: MutationRecordType;\n}\n\ndeclare var MutationRecord: {\n    prototype: MutationRecord;\n    new(): MutationRecord;\n};\n\ninterface NamedNodeMap {\n    readonly length: number;\n    getNamedItem(qualifiedName: string): Attr | null;\n    getNamedItemNS(namespace: string | null, localName: string): Attr | null;\n    item(index: number): Attr | null;\n    removeNamedItem(qualifiedName: string): Attr;\n    removeNamedItemNS(namespace: string | null, localName: string): Attr;\n    setNamedItem(attr: Attr): Attr | null;\n    setNamedItemNS(attr: Attr): Attr | null;\n    [index: number]: Attr;\n}\n\ndeclare var NamedNodeMap: {\n    prototype: NamedNodeMap;\n    new(): NamedNodeMap;\n};\n\ninterface NavigationPreloadManager {\n    disable(): Promise<void>;\n    enable(): Promise<void>;\n    getState(): Promise<NavigationPreloadState>;\n    setHeaderValue(value: string): Promise<void>;\n}\n\ndeclare var NavigationPreloadManager: {\n    prototype: NavigationPreloadManager;\n    new(): NavigationPreloadManager;\n};\n\ninterface Navigator extends NavigatorID, NavigatorOnLine, NavigatorContentUtils, NavigatorStorageUtils, MSNavigatorDoNotTrack, MSFileSaver, NavigatorBeacon, NavigatorConcurrentHardware, NavigatorUserMedia, NavigatorLanguage, NavigatorStorage, NavigatorAutomationInformation {\n    readonly activeVRDisplays: ReadonlyArray<VRDisplay>;\n    readonly authentication: WebAuthentication;\n    readonly cookieEnabled: boolean;\n    readonly doNotTrack: string | null;\n    gamepadInputEmulation: GamepadInputEmulationType;\n    readonly geolocation: Geolocation;\n    readonly maxTouchPoints: number;\n    readonly mimeTypes: MimeTypeArray;\n    readonly msManipulationViewsEnabled: boolean;\n    readonly msMaxTouchPoints: number;\n    readonly msPointerEnabled: boolean;\n    readonly plugins: PluginArray;\n    readonly pointerEnabled: boolean;\n    readonly serviceWorker: ServiceWorkerContainer;\n    readonly webdriver: boolean;\n    getGamepads(): (Gamepad | null)[];\n    getVRDisplays(): Promise<VRDisplay[]>;\n    javaEnabled(): boolean;\n    msLaunchUri(uri: string, successCallback?: MSLaunchUriCallback, noHandlerCallback?: MSLaunchUriCallback): void;\n    requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;\n    vibrate(pattern: number | number[]): boolean;\n}\n\ndeclare var Navigator: {\n    prototype: Navigator;\n    new(): Navigator;\n};\n\ninterface NavigatorAutomationInformation {\n    readonly webdriver: boolean;\n}\n\ninterface NavigatorBeacon {\n    sendBeacon(url: string, data?: Blob | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | FormData | string | null): boolean;\n}\n\ninterface NavigatorConcurrentHardware {\n    readonly hardwareConcurrency: number;\n}\n\ninterface NavigatorContentUtils {\n}\n\ninterface NavigatorID {\n    readonly appCodeName: string;\n    readonly appName: string;\n    readonly appVersion: string;\n    readonly platform: string;\n    readonly product: string;\n    readonly productSub: string;\n    readonly userAgent: string;\n    readonly vendor: string;\n    readonly vendorSub: string;\n}\n\ninterface NavigatorLanguage {\n    readonly language: string;\n    readonly languages: ReadonlyArray<string>;\n}\n\ninterface NavigatorOnLine {\n    readonly onLine: boolean;\n}\n\ninterface NavigatorStorage {\n    readonly storage: StorageManager;\n}\n\ninterface NavigatorStorageUtils {\n}\n\ninterface NavigatorUserMedia {\n    readonly mediaDevices: MediaDevices;\n    getDisplayMedia(constraints: MediaStreamConstraints): Promise<MediaStream>;\n    getUserMedia(constraints: MediaStreamConstraints, successCallback: NavigatorUserMediaSuccessCallback, errorCallback: NavigatorUserMediaErrorCallback): void;\n}\n\ninterface Node extends EventTarget {\n    /**\n     * Returns node\'s node document\'s document base URL.\n     */\n    readonly baseURI: string;\n    /**\n     * Returns the children.\n     */\n    readonly childNodes: NodeListOf<ChildNode>;\n    /**\n     * Returns the first child.\n     */\n    readonly firstChild: ChildNode | null;\n    /**\n     * Returns true if node is connected and false otherwise.\n     */\n    readonly isConnected: boolean;\n    /**\n     * Returns the last child.\n     */\n    readonly lastChild: ChildNode | null;\n    readonly namespaceURI: string | null;\n    /**\n     * Returns the next sibling.\n     */\n    readonly nextSibling: Node | null;\n    /**\n     * Returns a string appropriate for the type of node, as\n     * follows:\n     * Element\n     * Its HTML-uppercased qualified name.\n     * Attr\n     * Its qualified name.\n     * Text\n     * "#text".\n     * CDATASection\n     * "#cdata-section".\n     * ProcessingInstruction\n     * Its target.\n     * Comment\n     * "#comment".\n     * Document\n     * "#document".\n     * DocumentType\n     * Its name.\n     * DocumentFragment\n     * "#document-fragment".\n     */\n    readonly nodeName: string;\n    readonly nodeType: number;\n    nodeValue: string | null;\n    /**\n     * Returns the node document.\n     * Returns null for documents.\n     */\n    readonly ownerDocument: Document | null;\n    /**\n     * Returns the parent element.\n     */\n    readonly parentElement: HTMLElement | null;\n    /**\n     * Returns the parent.\n     */\n    readonly parentNode: Node & ParentNode | null;\n    /**\n     * Returns the previous sibling.\n     */\n    readonly previousSibling: Node | null;\n    textContent: string | null;\n    appendChild<T extends Node>(newChild: T): T;\n    /**\n     * Returns a copy of node. If deep is true, the copy also includes the node\'s descendants.\n     */\n    cloneNode(deep?: boolean): Node;\n    compareDocumentPosition(other: Node): number;\n    /**\n     * Returns true if other is an inclusive descendant of node, and false otherwise.\n     */\n    contains(other: Node | null): boolean;\n    /**\n     * Returns node\'s shadow-including root.\n     */\n    getRootNode(options?: GetRootNodeOptions): Node;\n    /**\n     * Returns whether node has children.\n     */\n    hasChildNodes(): boolean;\n    insertBefore<T extends Node>(newChild: T, refChild: Node | null): T;\n    isDefaultNamespace(namespace: string | null): boolean;\n    /**\n     * Returns whether node and otherNode have the same properties.\n     */\n    isEqualNode(otherNode: Node | null): boolean;\n    isSameNode(otherNode: Node | null): boolean;\n    lookupNamespaceURI(prefix: string | null): string | null;\n    lookupPrefix(namespace: string | null): string | null;\n    /**\n     * Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.\n     */\n    normalize(): void;\n    removeChild<T extends Node>(oldChild: T): T;\n    replaceChild<T extends Node>(newChild: Node, oldChild: T): T;\n    readonly ATTRIBUTE_NODE: number;\n    readonly CDATA_SECTION_NODE: number;\n    readonly COMMENT_NODE: number;\n    readonly DOCUMENT_FRAGMENT_NODE: number;\n    readonly DOCUMENT_NODE: number;\n    readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n    readonly DOCUMENT_POSITION_CONTAINS: number;\n    readonly DOCUMENT_POSITION_DISCONNECTED: number;\n    readonly DOCUMENT_POSITION_FOLLOWING: number;\n    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n    readonly DOCUMENT_POSITION_PRECEDING: number;\n    readonly DOCUMENT_TYPE_NODE: number;\n    readonly ELEMENT_NODE: number;\n    readonly ENTITY_NODE: number;\n    readonly ENTITY_REFERENCE_NODE: number;\n    readonly NOTATION_NODE: number;\n    readonly PROCESSING_INSTRUCTION_NODE: number;\n    readonly TEXT_NODE: number;\n}\n\ndeclare var Node: {\n    prototype: Node;\n    new(): Node;\n    readonly ATTRIBUTE_NODE: number;\n    readonly CDATA_SECTION_NODE: number;\n    readonly COMMENT_NODE: number;\n    readonly DOCUMENT_FRAGMENT_NODE: number;\n    readonly DOCUMENT_NODE: number;\n    readonly DOCUMENT_POSITION_CONTAINED_BY: number;\n    readonly DOCUMENT_POSITION_CONTAINS: number;\n    readonly DOCUMENT_POSITION_DISCONNECTED: number;\n    readonly DOCUMENT_POSITION_FOLLOWING: number;\n    readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;\n    readonly DOCUMENT_POSITION_PRECEDING: number;\n    readonly DOCUMENT_TYPE_NODE: number;\n    readonly ELEMENT_NODE: number;\n    readonly ENTITY_NODE: number;\n    readonly ENTITY_REFERENCE_NODE: number;\n    readonly NOTATION_NODE: number;\n    readonly PROCESSING_INSTRUCTION_NODE: number;\n    readonly TEXT_NODE: number;\n};\n\ninterface NodeFilter {\n    acceptNode(node: Node): number;\n}\n\ndeclare var NodeFilter: {\n    readonly FILTER_ACCEPT: number;\n    readonly FILTER_REJECT: number;\n    readonly FILTER_SKIP: number;\n    readonly SHOW_ALL: number;\n    readonly SHOW_ATTRIBUTE: number;\n    readonly SHOW_CDATA_SECTION: number;\n    readonly SHOW_COMMENT: number;\n    readonly SHOW_DOCUMENT: number;\n    readonly SHOW_DOCUMENT_FRAGMENT: number;\n    readonly SHOW_DOCUMENT_TYPE: number;\n    readonly SHOW_ELEMENT: number;\n    readonly SHOW_ENTITY: number;\n    readonly SHOW_ENTITY_REFERENCE: number;\n    readonly SHOW_NOTATION: number;\n    readonly SHOW_PROCESSING_INSTRUCTION: number;\n    readonly SHOW_TEXT: number;\n};\n\ninterface NodeIterator {\n    readonly filter: NodeFilter | null;\n    readonly pointerBeforeReferenceNode: boolean;\n    readonly referenceNode: Node;\n    readonly root: Node;\n    readonly whatToShow: number;\n    detach(): void;\n    nextNode(): Node | null;\n    previousNode(): Node | null;\n}\n\ndeclare var NodeIterator: {\n    prototype: NodeIterator;\n    new(): NodeIterator;\n};\n\ninterface NodeList {\n    /**\n     * Returns the number of nodes in the collection.\n     */\n    readonly length: number;\n    /**\n     * element = collection[index]\n     */\n    item(index: number): Node | null;\n    /**\n     * Performs the specified action for each node in an list.\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n     */\n    forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;\n    [index: number]: Node;\n}\n\ndeclare var NodeList: {\n    prototype: NodeList;\n    new(): NodeList;\n};\n\ninterface NodeListOf<TNode extends Node> extends NodeList {\n    length: number;\n    item(index: number): TNode;\n    /**\n     * Performs the specified action for each node in an list.\n     * @param callbackfn  A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.\n     * @param thisArg  An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n     */\n    forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;\n    [index: number]: TNode;\n}\n\ninterface NodeSelector {\n    querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;\n    querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;\n    querySelector<E extends Element = Element>(selectors: string): E | null;\n    querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;\n    querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;\n    querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;\n}\n\ninterface NonDocumentTypeChildNode {\n    /**\n     * Returns the first following sibling that\n     * is an element, and null otherwise.\n     */\n    readonly nextElementSibling: Element | null;\n    /**\n     * Returns the first preceding sibling that\n     * is an element, and null otherwise.\n     */\n    readonly previousElementSibling: Element | null;\n}\n\ninterface NonElementParentNode {\n    /**\n     * Returns the first element within node\'s descendants whose ID is elementId.\n     */\n    getElementById(elementId: string): Element | null;\n}\n\ninterface NotificationEventMap {\n    "click": Event;\n    "close": Event;\n    "error": Event;\n    "show": Event;\n}\n\ninterface Notification extends EventTarget {\n    readonly actions: ReadonlyArray<NotificationAction>;\n    readonly badge: string;\n    readonly body: string;\n    readonly data: any;\n    readonly dir: NotificationDirection;\n    readonly icon: string;\n    readonly image: string;\n    readonly lang: string;\n    onclick: ((this: Notification, ev: Event) => any) | null;\n    onclose: ((this: Notification, ev: Event) => any) | null;\n    onerror: ((this: Notification, ev: Event) => any) | null;\n    onshow: ((this: Notification, ev: Event) => any) | null;\n    readonly renotify: boolean;\n    readonly requireInteraction: boolean;\n    readonly silent: boolean;\n    readonly tag: string;\n    readonly timestamp: number;\n    readonly title: string;\n    readonly vibrate: ReadonlyArray<number>;\n    close(): void;\n    addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Notification: {\n    prototype: Notification;\n    new(title: string, options?: NotificationOptions): Notification;\n    readonly maxActions: number;\n    readonly permission: NotificationPermission;\n    requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;\n};\n\ninterface OES_element_index_uint {\n}\n\ndeclare var OES_element_index_uint: {\n    prototype: OES_element_index_uint;\n    new(): OES_element_index_uint;\n};\n\ninterface OES_standard_derivatives {\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;\n}\n\ndeclare var OES_standard_derivatives: {\n    prototype: OES_standard_derivatives;\n    new(): OES_standard_derivatives;\n    readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: number;\n};\n\ninterface OES_texture_float {\n}\n\ndeclare var OES_texture_float: {\n    prototype: OES_texture_float;\n    new(): OES_texture_float;\n};\n\ninterface OES_texture_float_linear {\n}\n\ndeclare var OES_texture_float_linear: {\n    prototype: OES_texture_float_linear;\n    new(): OES_texture_float_linear;\n};\n\ninterface OES_texture_half_float {\n    readonly HALF_FLOAT_OES: number;\n}\n\ndeclare var OES_texture_half_float: {\n    prototype: OES_texture_half_float;\n    new(): OES_texture_half_float;\n    readonly HALF_FLOAT_OES: number;\n};\n\ninterface OES_texture_half_float_linear {\n}\n\ndeclare var OES_texture_half_float_linear: {\n    prototype: OES_texture_half_float_linear;\n    new(): OES_texture_half_float_linear;\n};\n\ninterface OES_vertex_array_object {\n    readonly VERTEX_ARRAY_BINDING_OES: number;\n    bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void;\n    createVertexArrayOES(): WebGLVertexArrayObjectOES;\n    deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES): void;\n    isVertexArrayOES(value: any): value is WebGLVertexArrayObjectOES;\n}\n\ninterface OfflineAudioCompletionEvent extends Event {\n    readonly renderedBuffer: AudioBuffer;\n}\n\ndeclare var OfflineAudioCompletionEvent: {\n    prototype: OfflineAudioCompletionEvent;\n    new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;\n};\n\ninterface OfflineAudioContextEventMap extends BaseAudioContextEventMap {\n    "complete": OfflineAudioCompletionEvent;\n}\n\ninterface OfflineAudioContext extends BaseAudioContext {\n    readonly length: number;\n    oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;\n    startRendering(): Promise<AudioBuffer>;\n    suspend(suspendTime: number): Promise<void>;\n    addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OfflineAudioContext: {\n    prototype: OfflineAudioContext;\n    new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;\n    new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;\n};\n\ninterface OscillatorNode extends AudioScheduledSourceNode {\n    readonly detune: AudioParam;\n    readonly frequency: AudioParam;\n    type: OscillatorType;\n    setPeriodicWave(periodicWave: PeriodicWave): void;\n    addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var OscillatorNode: {\n    prototype: OscillatorNode;\n    new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;\n};\n\ninterface OverflowEvent extends UIEvent {\n    readonly horizontalOverflow: boolean;\n    readonly orient: number;\n    readonly verticalOverflow: boolean;\n    readonly BOTH: number;\n    readonly HORIZONTAL: number;\n    readonly VERTICAL: number;\n}\n\ndeclare var OverflowEvent: {\n    prototype: OverflowEvent;\n    new(): OverflowEvent;\n    readonly BOTH: number;\n    readonly HORIZONTAL: number;\n    readonly VERTICAL: number;\n};\n\ninterface PageTransitionEvent extends Event {\n    readonly persisted: boolean;\n}\n\ndeclare var PageTransitionEvent: {\n    prototype: PageTransitionEvent;\n    new(): PageTransitionEvent;\n};\n\ninterface PannerNode extends AudioNode {\n    coneInnerAngle: number;\n    coneOuterAngle: number;\n    coneOuterGain: number;\n    distanceModel: DistanceModelType;\n    maxDistance: number;\n    readonly orientationX: AudioParam;\n    readonly orientationY: AudioParam;\n    readonly orientationZ: AudioParam;\n    panningModel: PanningModelType;\n    readonly positionX: AudioParam;\n    readonly positionY: AudioParam;\n    readonly positionZ: AudioParam;\n    refDistance: number;\n    rolloffFactor: number;\n    /** @deprecated */\n    setOrientation(x: number, y: number, z: number): void;\n    /** @deprecated */\n    setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var PannerNode: {\n    prototype: PannerNode;\n    new(context: BaseAudioContext, options?: PannerOptions): PannerNode;\n};\n\ninterface ParentNode {\n    readonly childElementCount: number;\n    /**\n     * Returns the child elements.\n     */\n    readonly children: HTMLCollection;\n    /**\n     * Returns the first child that is an element, and null otherwise.\n     */\n    readonly firstElementChild: Element | null;\n    /**\n     * Returns the last child that is an element, and null otherwise.\n     */\n    readonly lastElementChild: Element | null;\n    /**\n     * Inserts nodes after the last child of node, while replacing\n     * strings in nodes with equivalent Text nodes.\n     * Throws a "HierarchyRequestError" DOMException if the constraints of\n     * the node tree are violated.\n     */\n    append(...nodes: (Node | string)[]): void;\n    /**\n     * Inserts nodes before the first child of node, while\n     * replacing strings in nodes with equivalent Text nodes.\n     * Throws a "HierarchyRequestError" DOMException if the constraints of\n     * the node tree are violated.\n     */\n    prepend(...nodes: (Node | string)[]): void;\n    /**\n     * Returns the first element that is a descendant of node that\n     * matches selectors.\n     */\n    querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;\n    querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;\n    querySelector<E extends Element = Element>(selectors: string): E | null;\n    /**\n     * Returns all element descendants of node that\n     * match selectors.\n     */\n    querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;\n    querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;\n    querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;\n}\n\ninterface Path2D extends CanvasPath {\n    addPath(path: Path2D, transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var Path2D: {\n    prototype: Path2D;\n    new(path?: Path2D | string): Path2D;\n};\n\ninterface PaymentAddress {\n    readonly addressLine: string[];\n    readonly city: string;\n    readonly country: string;\n    readonly dependentLocality: string;\n    readonly languageCode: string;\n    readonly organization: string;\n    readonly phone: string;\n    readonly postalCode: string;\n    readonly recipient: string;\n    readonly region: string;\n    readonly sortingCode: string;\n    toJSON(): any;\n}\n\ndeclare var PaymentAddress: {\n    prototype: PaymentAddress;\n    new(): PaymentAddress;\n};\n\ninterface PaymentRequestEventMap {\n    "shippingaddresschange": Event;\n    "shippingoptionchange": Event;\n}\n\ninterface PaymentRequest extends EventTarget {\n    readonly id: string;\n    onshippingaddresschange: ((this: PaymentRequest, ev: Event) => any) | null;\n    onshippingoptionchange: ((this: PaymentRequest, ev: Event) => any) | null;\n    readonly shippingAddress: PaymentAddress | null;\n    readonly shippingOption: string | null;\n    readonly shippingType: PaymentShippingType | null;\n    abort(): Promise<void>;\n    canMakePayment(): Promise<boolean>;\n    show(): Promise<PaymentResponse>;\n    addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var PaymentRequest: {\n    prototype: PaymentRequest;\n    new(methodData: PaymentMethodData[], details: PaymentDetailsInit, options?: PaymentOptions): PaymentRequest;\n};\n\ninterface PaymentRequestUpdateEvent extends Event {\n    updateWith(detailsPromise: Promise<PaymentDetailsUpdate>): void;\n}\n\ndeclare var PaymentRequestUpdateEvent: {\n    prototype: PaymentRequestUpdateEvent;\n    new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;\n};\n\ninterface PaymentResponse {\n    readonly details: any;\n    readonly methodName: string;\n    readonly payerEmail: string | null;\n    readonly payerName: string | null;\n    readonly payerPhone: string | null;\n    readonly requestId: string;\n    readonly shippingAddress: PaymentAddress | null;\n    readonly shippingOption: string | null;\n    complete(result?: PaymentComplete): Promise<void>;\n    toJSON(): any;\n}\n\ndeclare var PaymentResponse: {\n    prototype: PaymentResponse;\n    new(): PaymentResponse;\n};\n\ninterface PerfWidgetExternal {\n    readonly activeNetworkRequestCount: number;\n    readonly averageFrameTime: number;\n    readonly averagePaintTime: number;\n    readonly extraInformationEnabled: boolean;\n    readonly independentRenderingEnabled: boolean;\n    readonly irDisablingContentString: string;\n    readonly irStatusAvailable: boolean;\n    readonly maxCpuSpeed: number;\n    readonly paintRequestsPerSecond: number;\n    readonly performanceCounter: number;\n    readonly performanceCounterFrequency: number;\n    addEventListener(eventType: string, callback: Function): void;\n    getMemoryUsage(): number;\n    getProcessCpuUsage(): number;\n    getRecentCpuUsage(last: number | null): any;\n    getRecentFrames(last: number | null): any;\n    getRecentMemoryUsage(last: number | null): any;\n    getRecentPaintRequests(last: number | null): any;\n    removeEventListener(eventType: string, callback: Function): void;\n    repositionWindow(x: number, y: number): void;\n    resizeWindow(width: number, height: number): void;\n}\n\ndeclare var PerfWidgetExternal: {\n    prototype: PerfWidgetExternal;\n    new(): PerfWidgetExternal;\n};\n\ninterface PerformanceEventMap {\n    "resourcetimingbufferfull": Event;\n}\n\ninterface Performance extends EventTarget {\n    /** @deprecated */\n    readonly navigation: PerformanceNavigation;\n    onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;\n    readonly timeOrigin: number;\n    /** @deprecated */\n    readonly timing: PerformanceTiming;\n    clearMarks(markName?: string): void;\n    clearMeasures(measureName?: string): void;\n    clearResourceTimings(): void;\n    getEntries(): PerformanceEntryList;\n    getEntriesByName(name: string, type?: string): PerformanceEntryList;\n    getEntriesByType(type: string): PerformanceEntryList;\n    mark(markName: string): void;\n    measure(measureName: string, startMark?: string, endMark?: string): void;\n    now(): number;\n    setResourceTimingBufferSize(maxSize: number): void;\n    toJSON(): any;\n    addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Performance: {\n    prototype: Performance;\n    new(): Performance;\n};\n\ninterface PerformanceEntry {\n    readonly duration: number;\n    readonly entryType: string;\n    readonly name: string;\n    readonly startTime: number;\n    toJSON(): any;\n}\n\ndeclare var PerformanceEntry: {\n    prototype: PerformanceEntry;\n    new(): PerformanceEntry;\n};\n\ninterface PerformanceMark extends PerformanceEntry {\n}\n\ndeclare var PerformanceMark: {\n    prototype: PerformanceMark;\n    new(): PerformanceMark;\n};\n\ninterface PerformanceMeasure extends PerformanceEntry {\n}\n\ndeclare var PerformanceMeasure: {\n    prototype: PerformanceMeasure;\n    new(): PerformanceMeasure;\n};\n\ninterface PerformanceNavigation {\n    readonly redirectCount: number;\n    readonly type: number;\n    toJSON(): any;\n    readonly TYPE_BACK_FORWARD: number;\n    readonly TYPE_NAVIGATE: number;\n    readonly TYPE_RELOAD: number;\n    readonly TYPE_RESERVED: number;\n}\n\ndeclare var PerformanceNavigation: {\n    prototype: PerformanceNavigation;\n    new(): PerformanceNavigation;\n    readonly TYPE_BACK_FORWARD: number;\n    readonly TYPE_NAVIGATE: number;\n    readonly TYPE_RELOAD: number;\n    readonly TYPE_RESERVED: number;\n};\n\ninterface PerformanceNavigationTiming extends PerformanceResourceTiming {\n    readonly domComplete: number;\n    readonly domContentLoadedEventEnd: number;\n    readonly domContentLoadedEventStart: number;\n    readonly domInteractive: number;\n    readonly loadEventEnd: number;\n    readonly loadEventStart: number;\n    readonly redirectCount: number;\n    readonly type: NavigationType;\n    readonly unloadEventEnd: number;\n    readonly unloadEventStart: number;\n    toJSON(): any;\n}\n\ndeclare var PerformanceNavigationTiming: {\n    prototype: PerformanceNavigationTiming;\n    new(): PerformanceNavigationTiming;\n};\n\ninterface PerformanceObserver {\n    disconnect(): void;\n    observe(options: PerformanceObserverInit): void;\n    takeRecords(): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserver: {\n    prototype: PerformanceObserver;\n    new(callback: PerformanceObserverCallback): PerformanceObserver;\n};\n\ninterface PerformanceObserverEntryList {\n    getEntries(): PerformanceEntryList;\n    getEntriesByName(name: string, type?: string): PerformanceEntryList;\n    getEntriesByType(type: string): PerformanceEntryList;\n}\n\ndeclare var PerformanceObserverEntryList: {\n    prototype: PerformanceObserverEntryList;\n    new(): PerformanceObserverEntryList;\n};\n\ninterface PerformanceResourceTiming extends PerformanceEntry {\n    readonly connectEnd: number;\n    readonly connectStart: number;\n    readonly decodedBodySize: number;\n    readonly domainLookupEnd: number;\n    readonly domainLookupStart: number;\n    readonly encodedBodySize: number;\n    readonly fetchStart: number;\n    readonly initiatorType: string;\n    readonly nextHopProtocol: string;\n    readonly redirectEnd: number;\n    readonly redirectStart: number;\n    readonly requestStart: number;\n    readonly responseEnd: number;\n    readonly responseStart: number;\n    readonly secureConnectionStart: number;\n    readonly transferSize: number;\n    readonly workerStart: number;\n    toJSON(): any;\n}\n\ndeclare var PerformanceResourceTiming: {\n    prototype: PerformanceResourceTiming;\n    new(): PerformanceResourceTiming;\n};\n\ninterface PerformanceTiming {\n    readonly connectEnd: number;\n    readonly connectStart: number;\n    readonly domComplete: number;\n    readonly domContentLoadedEventEnd: number;\n    readonly domContentLoadedEventStart: number;\n    readonly domInteractive: number;\n    readonly domLoading: number;\n    readonly domainLookupEnd: number;\n    readonly domainLookupStart: number;\n    readonly fetchStart: number;\n    readonly loadEventEnd: number;\n    readonly loadEventStart: number;\n    readonly navigationStart: number;\n    readonly redirectEnd: number;\n    readonly redirectStart: number;\n    readonly requestStart: number;\n    readonly responseEnd: number;\n    readonly responseStart: number;\n    readonly secureConnectionStart: number;\n    readonly unloadEventEnd: number;\n    readonly unloadEventStart: number;\n    toJSON(): any;\n}\n\ndeclare var PerformanceTiming: {\n    prototype: PerformanceTiming;\n    new(): PerformanceTiming;\n};\n\ninterface PeriodicWave {\n}\n\ndeclare var PeriodicWave: {\n    prototype: PeriodicWave;\n    new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;\n};\n\ninterface PermissionRequest extends DeferredPermissionRequest {\n    readonly state: MSWebViewPermissionState;\n    defer(): void;\n}\n\ndeclare var PermissionRequest: {\n    prototype: PermissionRequest;\n    new(): PermissionRequest;\n};\n\ninterface PermissionRequestedEvent extends Event {\n    readonly permissionRequest: PermissionRequest;\n}\n\ndeclare var PermissionRequestedEvent: {\n    prototype: PermissionRequestedEvent;\n    new(): PermissionRequestedEvent;\n};\n\ninterface Plugin {\n    readonly description: string;\n    readonly filename: string;\n    readonly length: number;\n    readonly name: string;\n    readonly version: string;\n    item(index: number): MimeType;\n    namedItem(type: string): MimeType;\n    [index: number]: MimeType;\n}\n\ndeclare var Plugin: {\n    prototype: Plugin;\n    new(): Plugin;\n};\n\ninterface PluginArray {\n    readonly length: number;\n    item(index: number): Plugin;\n    namedItem(name: string): Plugin;\n    refresh(reload?: boolean): void;\n    [index: number]: Plugin;\n}\n\ndeclare var PluginArray: {\n    prototype: PluginArray;\n    new(): PluginArray;\n};\n\ninterface PointerEvent extends MouseEvent {\n    readonly height: number;\n    readonly isPrimary: boolean;\n    readonly pointerId: number;\n    readonly pointerType: string;\n    readonly pressure: number;\n    readonly tangentialPressure: number;\n    readonly tiltX: number;\n    readonly tiltY: number;\n    readonly twist: number;\n    readonly width: number;\n}\n\ndeclare var PointerEvent: {\n    prototype: PointerEvent;\n    new(type: string, eventInitDict?: PointerEventInit): PointerEvent;\n};\n\ninterface PopStateEvent extends Event {\n    readonly state: any;\n}\n\ndeclare var PopStateEvent: {\n    prototype: PopStateEvent;\n    new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;\n};\n\ninterface Position {\n    readonly coords: Coordinates;\n    readonly timestamp: number;\n}\n\ninterface PositionError {\n    readonly code: number;\n    readonly message: string;\n    readonly PERMISSION_DENIED: number;\n    readonly POSITION_UNAVAILABLE: number;\n    readonly TIMEOUT: number;\n}\n\ninterface ProcessingInstruction extends CharacterData {\n    readonly target: string;\n}\n\ndeclare var ProcessingInstruction: {\n    prototype: ProcessingInstruction;\n    new(): ProcessingInstruction;\n};\n\ninterface ProgressEvent extends Event {\n    readonly lengthComputable: boolean;\n    readonly loaded: number;\n    readonly total: number;\n}\n\ndeclare var ProgressEvent: {\n    prototype: ProgressEvent;\n    new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;\n};\n\ninterface PromiseRejectionEvent extends Event {\n    readonly promise: Promise<any>;\n    readonly reason: any;\n}\n\ndeclare var PromiseRejectionEvent: {\n    prototype: PromiseRejectionEvent;\n    new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;\n};\n\ninterface PushManager {\n    getSubscription(): Promise<PushSubscription | null>;\n    permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;\n    subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;\n}\n\ndeclare var PushManager: {\n    prototype: PushManager;\n    new(): PushManager;\n    readonly supportedContentEncodings: ReadonlyArray<string>;\n};\n\ninterface PushSubscription {\n    readonly endpoint: string;\n    readonly expirationTime: number | null;\n    readonly options: PushSubscriptionOptions;\n    getKey(name: PushEncryptionKeyName): ArrayBuffer | null;\n    toJSON(): PushSubscriptionJSON;\n    unsubscribe(): Promise<boolean>;\n}\n\ndeclare var PushSubscription: {\n    prototype: PushSubscription;\n    new(): PushSubscription;\n};\n\ninterface PushSubscriptionOptions {\n    readonly applicationServerKey: ArrayBuffer | null;\n    readonly userVisibleOnly: boolean;\n}\n\ndeclare var PushSubscriptionOptions: {\n    prototype: PushSubscriptionOptions;\n    new(): PushSubscriptionOptions;\n};\n\ninterface RTCCertificate {\n    readonly expires: number;\n    getFingerprints(): RTCDtlsFingerprint[];\n}\n\ndeclare var RTCCertificate: {\n    prototype: RTCCertificate;\n    new(): RTCCertificate;\n    getSupportedAlgorithms(): AlgorithmIdentifier[];\n};\n\ninterface RTCDTMFSenderEventMap {\n    "tonechange": RTCDTMFToneChangeEvent;\n}\n\ninterface RTCDTMFSender extends EventTarget {\n    readonly canInsertDTMF: boolean;\n    ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;\n    readonly toneBuffer: string;\n    insertDTMF(tones: string, duration?: number, interToneGap?: number): void;\n    addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDTMFSender: {\n    prototype: RTCDTMFSender;\n    new(): RTCDTMFSender;\n};\n\ninterface RTCDTMFToneChangeEvent extends Event {\n    readonly tone: string;\n}\n\ndeclare var RTCDTMFToneChangeEvent: {\n    prototype: RTCDTMFToneChangeEvent;\n    new(type: string, eventInitDict: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;\n};\n\ninterface RTCDataChannelEventMap {\n    "bufferedamountlow": Event;\n    "close": Event;\n    "error": RTCErrorEvent;\n    "message": MessageEvent;\n    "open": Event;\n}\n\ninterface RTCDataChannel extends EventTarget {\n    binaryType: string;\n    readonly bufferedAmount: number;\n    bufferedAmountLowThreshold: number;\n    readonly id: number | null;\n    readonly label: string;\n    readonly maxPacketLifeTime: number | null;\n    readonly maxRetransmits: number | null;\n    readonly negotiated: boolean;\n    onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;\n    onclose: ((this: RTCDataChannel, ev: Event) => any) | null;\n    onerror: ((this: RTCDataChannel, ev: RTCErrorEvent) => any) | null;\n    onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;\n    onopen: ((this: RTCDataChannel, ev: Event) => any) | null;\n    readonly ordered: boolean;\n    readonly priority: RTCPriorityType;\n    readonly protocol: string;\n    readonly readyState: RTCDataChannelState;\n    close(): void;\n    send(data: string): void;\n    send(data: Blob): void;\n    send(data: ArrayBuffer): void;\n    send(data: ArrayBufferView): void;\n    addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDataChannel: {\n    prototype: RTCDataChannel;\n    new(): RTCDataChannel;\n};\n\ninterface RTCDataChannelEvent extends Event {\n    readonly channel: RTCDataChannel;\n}\n\ndeclare var RTCDataChannelEvent: {\n    prototype: RTCDataChannelEvent;\n    new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;\n};\n\ninterface RTCDtlsTransportEventMap {\n    "error": RTCErrorEvent;\n    "statechange": Event;\n}\n\ninterface RTCDtlsTransport extends EventTarget {\n    onerror: ((this: RTCDtlsTransport, ev: RTCErrorEvent) => any) | null;\n    onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;\n    readonly state: RTCDtlsTransportState;\n    readonly transport: RTCIceTransport;\n    getRemoteCertificates(): ArrayBuffer[];\n    addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDtlsTransport: {\n    prototype: RTCDtlsTransport;\n    new(): RTCDtlsTransport;\n};\n\ninterface RTCDtlsTransportStateChangedEvent extends Event {\n    readonly state: RTCDtlsTransportState;\n}\n\ndeclare var RTCDtlsTransportStateChangedEvent: {\n    prototype: RTCDtlsTransportStateChangedEvent;\n    new(): RTCDtlsTransportStateChangedEvent;\n};\n\ninterface RTCDtmfSenderEventMap {\n    "tonechange": RTCDTMFToneChangeEvent;\n}\n\ninterface RTCDtmfSender extends EventTarget {\n    readonly canInsertDTMF: boolean;\n    readonly duration: number;\n    readonly interToneGap: number;\n    ontonechange: ((this: RTCDtmfSender, ev: RTCDTMFToneChangeEvent) => any) | null;\n    readonly sender: RTCRtpSender;\n    readonly toneBuffer: string;\n    insertDTMF(tones: string, duration?: number, interToneGap?: number): void;\n    addEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: (this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCDtmfSenderEventMap>(type: K, listener: (this: RTCDtmfSender, ev: RTCDtmfSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCDtmfSender: {\n    prototype: RTCDtmfSender;\n    new(sender: RTCRtpSender): RTCDtmfSender;\n};\n\ninterface RTCError extends Error {\n    errorDetail: string;\n    httpRequestStatusCode: number;\n    message: string;\n    name: string;\n    receivedAlert: number | null;\n    sctpCauseCode: number;\n    sdpLineNumber: number;\n    sentAlert: number | null;\n}\n\ndeclare var RTCError: {\n    prototype: RTCError;\n    new(errorDetail?: string, message?: string): RTCError;\n};\n\ninterface RTCErrorEvent extends Event {\n    readonly error: RTCError | null;\n}\n\ndeclare var RTCErrorEvent: {\n    prototype: RTCErrorEvent;\n    new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;\n};\n\ninterface RTCIceCandidate {\n    readonly candidate: string;\n    readonly component: RTCIceComponent | null;\n    readonly foundation: string | null;\n    readonly ip: string | null;\n    readonly port: number | null;\n    readonly priority: number | null;\n    readonly protocol: RTCIceProtocol | null;\n    readonly relatedAddress: string | null;\n    readonly relatedPort: number | null;\n    readonly sdpMLineIndex: number | null;\n    readonly sdpMid: string | null;\n    readonly tcpType: RTCIceTcpCandidateType | null;\n    readonly type: RTCIceCandidateType | null;\n    readonly usernameFragment: string | null;\n    toJSON(): RTCIceCandidateInit;\n}\n\ndeclare var RTCIceCandidate: {\n    prototype: RTCIceCandidate;\n    new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;\n};\n\ninterface RTCIceCandidatePairChangedEvent extends Event {\n    readonly pair: RTCIceCandidatePair;\n}\n\ndeclare var RTCIceCandidatePairChangedEvent: {\n    prototype: RTCIceCandidatePairChangedEvent;\n    new(): RTCIceCandidatePairChangedEvent;\n};\n\ninterface RTCIceGathererEventMap {\n    "error": Event;\n    "localcandidate": RTCIceGathererEvent;\n}\n\ninterface RTCIceGatherer extends RTCStatsProvider {\n    readonly component: RTCIceComponent;\n    onerror: ((this: RTCIceGatherer, ev: Event) => any) | null;\n    onlocalcandidate: ((this: RTCIceGatherer, ev: RTCIceGathererEvent) => any) | null;\n    createAssociatedGatherer(): RTCIceGatherer;\n    getLocalCandidates(): RTCIceCandidateDictionary[];\n    getLocalParameters(): RTCIceParameters;\n    addEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCIceGathererEventMap>(type: K, listener: (this: RTCIceGatherer, ev: RTCIceGathererEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCIceGatherer: {\n    prototype: RTCIceGatherer;\n    new(options: RTCIceGatherOptions): RTCIceGatherer;\n};\n\ninterface RTCIceGathererEvent extends Event {\n    readonly candidate: RTCIceCandidateDictionary | RTCIceCandidateComplete;\n}\n\ndeclare var RTCIceGathererEvent: {\n    prototype: RTCIceGathererEvent;\n    new(): RTCIceGathererEvent;\n};\n\ninterface RTCIceTransportEventMap {\n    "gatheringstatechange": Event;\n    "selectedcandidatepairchange": Event;\n    "statechange": Event;\n}\n\ninterface RTCIceTransport extends EventTarget {\n    readonly component: RTCIceComponent;\n    readonly gatheringState: RTCIceGathererState;\n    ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;\n    onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;\n    onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;\n    readonly role: RTCIceRole;\n    readonly state: RTCIceTransportState;\n    getLocalCandidates(): RTCIceCandidate[];\n    getLocalParameters(): RTCIceParameters | null;\n    getRemoteCandidates(): RTCIceCandidate[];\n    getRemoteParameters(): RTCIceParameters | null;\n    getSelectedCandidatePair(): RTCIceCandidatePair | null;\n    addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCIceTransport: {\n    prototype: RTCIceTransport;\n    new(): RTCIceTransport;\n};\n\ninterface RTCIceTransportStateChangedEvent extends Event {\n    readonly state: RTCIceTransportState;\n}\n\ndeclare var RTCIceTransportStateChangedEvent: {\n    prototype: RTCIceTransportStateChangedEvent;\n    new(): RTCIceTransportStateChangedEvent;\n};\n\ninterface RTCIdentityAssertion {\n    idp: string;\n    name: string;\n}\n\ndeclare var RTCIdentityAssertion: {\n    prototype: RTCIdentityAssertion;\n    new(idp: string, name: string): RTCIdentityAssertion;\n};\n\ninterface RTCPeerConnectionEventMap {\n    "connectionstatechange": Event;\n    "datachannel": RTCDataChannelEvent;\n    "icecandidate": RTCPeerConnectionIceEvent;\n    "icecandidateerror": RTCPeerConnectionIceErrorEvent;\n    "iceconnectionstatechange": Event;\n    "icegatheringstatechange": Event;\n    "negotiationneeded": Event;\n    "signalingstatechange": Event;\n    "statsended": RTCStatsEvent;\n    "track": RTCTrackEvent;\n}\n\ninterface RTCPeerConnection extends EventTarget {\n    readonly canTrickleIceCandidates: boolean | null;\n    readonly connectionState: RTCPeerConnectionState;\n    readonly currentLocalDescription: RTCSessionDescription | null;\n    readonly currentRemoteDescription: RTCSessionDescription | null;\n    readonly iceConnectionState: RTCIceConnectionState;\n    readonly iceGatheringState: RTCIceGatheringState;\n    readonly idpErrorInfo: string | null;\n    readonly idpLoginUrl: string | null;\n    readonly localDescription: RTCSessionDescription | null;\n    onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n    ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;\n    onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;\n    onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null;\n    oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n    onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n    onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;\n    onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;\n    onstatsended: ((this: RTCPeerConnection, ev: RTCStatsEvent) => any) | null;\n    ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;\n    readonly peerIdentity: Promise<RTCIdentityAssertion>;\n    readonly pendingLocalDescription: RTCSessionDescription | null;\n    readonly pendingRemoteDescription: RTCSessionDescription | null;\n    readonly remoteDescription: RTCSessionDescription | null;\n    readonly sctp: RTCSctpTransport | null;\n    readonly signalingState: RTCSignalingState;\n    addIceCandidate(candidate: RTCIceCandidateInit | RTCIceCandidate): Promise<void>;\n    addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;\n    addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;\n    close(): void;\n    createAnswer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n    createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;\n    createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;\n    getConfiguration(): RTCConfiguration;\n    getIdentityAssertion(): Promise<string>;\n    getReceivers(): RTCRtpReceiver[];\n    getSenders(): RTCRtpSender[];\n    getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;\n    getTransceivers(): RTCRtpTransceiver[];\n    removeTrack(sender: RTCRtpSender): void;\n    setConfiguration(configuration: RTCConfiguration): void;\n    setIdentityProvider(provider: string, options?: RTCIdentityProviderOptions): void;\n    setLocalDescription(description: RTCSessionDescriptionInit): Promise<void>;\n    setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;\n    addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCPeerConnection: {\n    prototype: RTCPeerConnection;\n    new(configuration?: RTCConfiguration): RTCPeerConnection;\n    generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;\n    getDefaultIceServers(): RTCIceServer[];\n};\n\ninterface RTCPeerConnectionIceErrorEvent extends Event {\n    readonly errorCode: number;\n    readonly errorText: string;\n    readonly hostCandidate: string;\n    readonly url: string;\n}\n\ndeclare var RTCPeerConnectionIceErrorEvent: {\n    prototype: RTCPeerConnectionIceErrorEvent;\n    new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;\n};\n\ninterface RTCPeerConnectionIceEvent extends Event {\n    readonly candidate: RTCIceCandidate | null;\n    readonly url: string | null;\n}\n\ndeclare var RTCPeerConnectionIceEvent: {\n    prototype: RTCPeerConnectionIceEvent;\n    new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;\n};\n\ninterface RTCRtpReceiver {\n    readonly rtcpTransport: RTCDtlsTransport | null;\n    readonly track: MediaStreamTrack;\n    readonly transport: RTCDtlsTransport | null;\n    getContributingSources(): RTCRtpContributingSource[];\n    getParameters(): RTCRtpReceiveParameters;\n    getStats(): Promise<RTCStatsReport>;\n    getSynchronizationSources(): RTCRtpSynchronizationSource[];\n}\n\ndeclare var RTCRtpReceiver: {\n    prototype: RTCRtpReceiver;\n    new(): RTCRtpReceiver;\n    getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\ninterface RTCRtpSender {\n    readonly dtmf: RTCDTMFSender | null;\n    readonly rtcpTransport: RTCDtlsTransport | null;\n    readonly track: MediaStreamTrack | null;\n    readonly transport: RTCDtlsTransport | null;\n    getParameters(): RTCRtpSendParameters;\n    getStats(): Promise<RTCStatsReport>;\n    replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;\n    setParameters(parameters: RTCRtpSendParameters): Promise<void>;\n    setStreams(...streams: MediaStream[]): void;\n}\n\ndeclare var RTCRtpSender: {\n    prototype: RTCRtpSender;\n    new(): RTCRtpSender;\n    getCapabilities(kind: string): RTCRtpCapabilities | null;\n};\n\ninterface RTCRtpTransceiver {\n    readonly currentDirection: RTCRtpTransceiverDirection | null;\n    direction: RTCRtpTransceiverDirection;\n    readonly mid: string | null;\n    readonly receiver: RTCRtpReceiver;\n    readonly sender: RTCRtpSender;\n    readonly stopped: boolean;\n    setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;\n    stop(): void;\n}\n\ndeclare var RTCRtpTransceiver: {\n    prototype: RTCRtpTransceiver;\n    new(): RTCRtpTransceiver;\n};\n\ninterface RTCSctpTransportEventMap {\n    "statechange": Event;\n}\n\ninterface RTCSctpTransport {\n    readonly maxChannels: number | null;\n    readonly maxMessageSize: number;\n    onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;\n    readonly state: RTCSctpTransportState;\n    readonly transport: RTCDtlsTransport;\n    addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCSctpTransport: {\n    prototype: RTCSctpTransport;\n    new(): RTCSctpTransport;\n};\n\ninterface RTCSessionDescription {\n    readonly sdp: string;\n    readonly type: RTCSdpType;\n    toJSON(): any;\n}\n\ndeclare var RTCSessionDescription: {\n    prototype: RTCSessionDescription;\n    new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;\n};\n\ninterface RTCSrtpSdesTransportEventMap {\n    "error": Event;\n}\n\ninterface RTCSrtpSdesTransport extends EventTarget {\n    onerror: ((this: RTCSrtpSdesTransport, ev: Event) => any) | null;\n    readonly transport: RTCIceTransport;\n    addEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCSrtpSdesTransportEventMap>(type: K, listener: (this: RTCSrtpSdesTransport, ev: RTCSrtpSdesTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var RTCSrtpSdesTransport: {\n    prototype: RTCSrtpSdesTransport;\n    new(transport: RTCIceTransport, encryptParameters: RTCSrtpSdesParameters, decryptParameters: RTCSrtpSdesParameters): RTCSrtpSdesTransport;\n    getLocalParameters(): RTCSrtpSdesParameters[];\n};\n\ninterface RTCSsrcConflictEvent extends Event {\n    readonly ssrc: number;\n}\n\ndeclare var RTCSsrcConflictEvent: {\n    prototype: RTCSsrcConflictEvent;\n    new(): RTCSsrcConflictEvent;\n};\n\ninterface RTCStatsEvent extends Event {\n    readonly report: RTCStatsReport;\n}\n\ndeclare var RTCStatsEvent: {\n    prototype: RTCStatsEvent;\n    new(type: string, eventInitDict: RTCStatsEventInit): RTCStatsEvent;\n};\n\ninterface RTCStatsProvider extends EventTarget {\n    getStats(): Promise<RTCStatsReport>;\n    msGetStats(): Promise<RTCStatsReport>;\n}\n\ndeclare var RTCStatsProvider: {\n    prototype: RTCStatsProvider;\n    new(): RTCStatsProvider;\n};\n\ninterface RTCStatsReport {\n    forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;\n}\n\ndeclare var RTCStatsReport: {\n    prototype: RTCStatsReport;\n    new(): RTCStatsReport;\n};\n\ninterface RTCTrackEvent extends Event {\n    readonly receiver: RTCRtpReceiver;\n    readonly streams: ReadonlyArray<MediaStream>;\n    readonly track: MediaStreamTrack;\n    readonly transceiver: RTCRtpTransceiver;\n}\n\ndeclare var RTCTrackEvent: {\n    prototype: RTCTrackEvent;\n    new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;\n};\n\ninterface RadioNodeList extends NodeList {\n    value: string;\n}\n\ndeclare var RadioNodeList: {\n    prototype: RadioNodeList;\n    new(): RadioNodeList;\n};\n\ninterface RandomSource {\n    getRandomValues<T extends Int8Array | Uint8ClampedArray | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array>(array: T): T;\n}\n\ndeclare var RandomSource: {\n    prototype: RandomSource;\n    new(): RandomSource;\n};\n\ninterface Range extends AbstractRange {\n    /**\n     * Returns the node, furthest away from\n     * the document, that is an ancestor of both range\'s start node and end node.\n     */\n    readonly commonAncestorContainer: Node;\n    cloneContents(): DocumentFragment;\n    cloneRange(): Range;\n    collapse(toStart?: boolean): void;\n    compareBoundaryPoints(how: number, sourceRange: Range): number;\n    /**\n     * Returns −1 if the point is before the range, 0 if the point is\n     * in the range, and 1 if the point is after the range.\n     */\n    comparePoint(node: Node, offset: number): number;\n    createContextualFragment(fragment: string): DocumentFragment;\n    deleteContents(): void;\n    detach(): void;\n    extractContents(): DocumentFragment;\n    getBoundingClientRect(): ClientRect | DOMRect;\n    getClientRects(): ClientRectList | DOMRectList;\n    insertNode(node: Node): void;\n    /**\n     * Returns whether range intersects node.\n     */\n    intersectsNode(node: Node): boolean;\n    isPointInRange(node: Node, offset: number): boolean;\n    selectNode(node: Node): void;\n    selectNodeContents(node: Node): void;\n    setEnd(node: Node, offset: number): void;\n    setEndAfter(node: Node): void;\n    setEndBefore(node: Node): void;\n    setStart(node: Node, offset: number): void;\n    setStartAfter(node: Node): void;\n    setStartBefore(node: Node): void;\n    surroundContents(newParent: Node): void;\n    readonly END_TO_END: number;\n    readonly END_TO_START: number;\n    readonly START_TO_END: number;\n    readonly START_TO_START: number;\n}\n\ndeclare var Range: {\n    prototype: Range;\n    new(): Range;\n    readonly END_TO_END: number;\n    readonly END_TO_START: number;\n    readonly START_TO_END: number;\n    readonly START_TO_START: number;\n};\n\ninterface ReadableStream {\n    readonly locked: boolean;\n    cancel(): Promise<void>;\n    getReader(): ReadableStreamReader;\n}\n\ndeclare var ReadableStream: {\n    prototype: ReadableStream;\n    new(): ReadableStream;\n};\n\ninterface ReadableStreamReader {\n    cancel(): Promise<void>;\n    read(): Promise<any>;\n    releaseLock(): void;\n}\n\ndeclare var ReadableStreamReader: {\n    prototype: ReadableStreamReader;\n    new(): ReadableStreamReader;\n};\n\ninterface Request extends Body {\n    /**\n     * Returns the cache mode associated with request, which is a string indicating\n     * how the the request will interact with the browser\'s cache when fetching.\n     */\n    readonly cache: RequestCache;\n    /**\n     * Returns the credentials mode associated with request, which is a string\n     * indicating whether credentials will be sent with the request always, never, or only when sent to a\n     * same-origin URL.\n     */\n    readonly credentials: RequestCredentials;\n    /**\n     * Returns the kind of resource requested by request, e.g., "document" or\n     * "script".\n     */\n    readonly destination: RequestDestination;\n    /**\n     * Returns a Headers object consisting of the headers associated with request.\n     * Note that headers added in the network layer by the user agent will not be accounted for in this\n     * object, e.g., the "Host" header.\n     */\n    readonly headers: Headers;\n    /**\n     * Returns request\'s subresource integrity metadata, which is a cryptographic hash of\n     * the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]\n     */\n    readonly integrity: string;\n    /**\n     * Returns a boolean indicating whether or not request is for a history\n     * navigation (a.k.a. back-foward navigation).\n     */\n    readonly isHistoryNavigation: boolean;\n    /**\n     * Returns a boolean indicating whether or not request is for a reload navigation.\n     */\n    readonly isReloadNavigation: boolean;\n    /**\n     * Returns a boolean indicating whether or not request can outlive the global in which\n     * it was created.\n     */\n    readonly keepalive: boolean;\n    /**\n     * Returns request\'s HTTP method, which is "GET" by default.\n     */\n    readonly method: string;\n    /**\n     * Returns the mode associated with request, which is a string indicating\n     * whether the request will use CORS, or will be restricted to same-origin URLs.\n     */\n    readonly mode: RequestMode;\n    /**\n     * Returns the redirect mode associated with request, which is a string\n     * indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.\n     */\n    readonly redirect: RequestRedirect;\n    /**\n     * Returns the referrer of request. Its value can be a same-origin URL if\n     * explicitly set in init, the empty string to indicate no referrer, and\n     * "about:client" when defaulting to the global\'s default. This is used during\n     * fetching to determine the value of the `Referer` header of the request being made.\n     */\n    readonly referrer: string;\n    /**\n     * Returns the referrer policy associated with request. This is used during\n     * fetching to compute the value of the request\'s referrer.\n     */\n    readonly referrerPolicy: ReferrerPolicy;\n    /**\n     * Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort\n     * event handler.\n     */\n    readonly signal: AbortSignal;\n    /**\n     * Returns the URL of request as a string.\n     */\n    readonly url: string;\n    clone(): Request;\n}\n\ndeclare var Request: {\n    prototype: Request;\n    new(input: RequestInfo, init?: RequestInit): Request;\n};\n\ninterface Response extends Body {\n    readonly headers: Headers;\n    readonly ok: boolean;\n    readonly redirected: boolean;\n    readonly status: number;\n    readonly statusText: string;\n    readonly trailer: Promise<Headers>;\n    readonly type: ResponseType;\n    readonly url: string;\n    clone(): Response;\n}\n\ndeclare var Response: {\n    prototype: Response;\n    new(body?: BodyInit | null, init?: ResponseInit): Response;\n    error(): Response;\n    redirect(url: string, status?: number): Response;\n};\n\ninterface SVGAElement extends SVGGraphicsElement, SVGURIReference {\n    readonly target: SVGAnimatedString;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGAElement: {\n    prototype: SVGAElement;\n    new(): SVGAElement;\n};\n\ninterface SVGAngle {\n    readonly unitType: number;\n    value: number;\n    valueAsString: string;\n    valueInSpecifiedUnits: number;\n    convertToSpecifiedUnits(unitType: number): void;\n    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n    readonly SVG_ANGLETYPE_DEG: number;\n    readonly SVG_ANGLETYPE_GRAD: number;\n    readonly SVG_ANGLETYPE_RAD: number;\n    readonly SVG_ANGLETYPE_UNKNOWN: number;\n    readonly SVG_ANGLETYPE_UNSPECIFIED: number;\n}\n\ndeclare var SVGAngle: {\n    prototype: SVGAngle;\n    new(): SVGAngle;\n    readonly SVG_ANGLETYPE_DEG: number;\n    readonly SVG_ANGLETYPE_GRAD: number;\n    readonly SVG_ANGLETYPE_RAD: number;\n    readonly SVG_ANGLETYPE_UNKNOWN: number;\n    readonly SVG_ANGLETYPE_UNSPECIFIED: number;\n};\n\ninterface SVGAnimatedAngle {\n    readonly animVal: SVGAngle;\n    readonly baseVal: SVGAngle;\n}\n\ndeclare var SVGAnimatedAngle: {\n    prototype: SVGAnimatedAngle;\n    new(): SVGAnimatedAngle;\n};\n\ninterface SVGAnimatedBoolean {\n    readonly animVal: boolean;\n    baseVal: boolean;\n}\n\ndeclare var SVGAnimatedBoolean: {\n    prototype: SVGAnimatedBoolean;\n    new(): SVGAnimatedBoolean;\n};\n\ninterface SVGAnimatedEnumeration {\n    readonly animVal: number;\n    baseVal: number;\n}\n\ndeclare var SVGAnimatedEnumeration: {\n    prototype: SVGAnimatedEnumeration;\n    new(): SVGAnimatedEnumeration;\n};\n\ninterface SVGAnimatedInteger {\n    readonly animVal: number;\n    baseVal: number;\n}\n\ndeclare var SVGAnimatedInteger: {\n    prototype: SVGAnimatedInteger;\n    new(): SVGAnimatedInteger;\n};\n\ninterface SVGAnimatedLength {\n    readonly animVal: SVGLength;\n    readonly baseVal: SVGLength;\n}\n\ndeclare var SVGAnimatedLength: {\n    prototype: SVGAnimatedLength;\n    new(): SVGAnimatedLength;\n};\n\ninterface SVGAnimatedLengthList {\n    readonly animVal: SVGLengthList;\n    readonly baseVal: SVGLengthList;\n}\n\ndeclare var SVGAnimatedLengthList: {\n    prototype: SVGAnimatedLengthList;\n    new(): SVGAnimatedLengthList;\n};\n\ninterface SVGAnimatedNumber {\n    readonly animVal: number;\n    baseVal: number;\n}\n\ndeclare var SVGAnimatedNumber: {\n    prototype: SVGAnimatedNumber;\n    new(): SVGAnimatedNumber;\n};\n\ninterface SVGAnimatedNumberList {\n    readonly animVal: SVGNumberList;\n    readonly baseVal: SVGNumberList;\n}\n\ndeclare var SVGAnimatedNumberList: {\n    prototype: SVGAnimatedNumberList;\n    new(): SVGAnimatedNumberList;\n};\n\ninterface SVGAnimatedPoints {\n    readonly animatedPoints: SVGPointList;\n    readonly points: SVGPointList;\n}\n\ninterface SVGAnimatedPreserveAspectRatio {\n    readonly animVal: SVGPreserveAspectRatio;\n    readonly baseVal: SVGPreserveAspectRatio;\n}\n\ndeclare var SVGAnimatedPreserveAspectRatio: {\n    prototype: SVGAnimatedPreserveAspectRatio;\n    new(): SVGAnimatedPreserveAspectRatio;\n};\n\ninterface SVGAnimatedRect {\n    readonly animVal: DOMRectReadOnly;\n    readonly baseVal: DOMRect;\n}\n\ndeclare var SVGAnimatedRect: {\n    prototype: SVGAnimatedRect;\n    new(): SVGAnimatedRect;\n};\n\ninterface SVGAnimatedString {\n    readonly animVal: string;\n    baseVal: string;\n}\n\ndeclare var SVGAnimatedString: {\n    prototype: SVGAnimatedString;\n    new(): SVGAnimatedString;\n};\n\ninterface SVGAnimatedTransformList {\n    readonly animVal: SVGTransformList;\n    readonly baseVal: SVGTransformList;\n}\n\ndeclare var SVGAnimatedTransformList: {\n    prototype: SVGAnimatedTransformList;\n    new(): SVGAnimatedTransformList;\n};\n\ninterface SVGCircleElement extends SVGGraphicsElement {\n    readonly cx: SVGAnimatedLength;\n    readonly cy: SVGAnimatedLength;\n    readonly r: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGCircleElement: {\n    prototype: SVGCircleElement;\n    new(): SVGCircleElement;\n};\n\ninterface SVGClipPathElement extends SVGGraphicsElement {\n    readonly clipPathUnits: SVGAnimatedEnumeration;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGClipPathElement: {\n    prototype: SVGClipPathElement;\n    new(): SVGClipPathElement;\n};\n\ninterface SVGComponentTransferFunctionElement extends SVGElement {\n    readonly amplitude: SVGAnimatedNumber;\n    readonly exponent: SVGAnimatedNumber;\n    readonly intercept: SVGAnimatedNumber;\n    readonly offset: SVGAnimatedNumber;\n    readonly slope: SVGAnimatedNumber;\n    readonly tableValues: SVGAnimatedNumberList;\n    readonly type: SVGAnimatedEnumeration;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGComponentTransferFunctionElement: {\n    prototype: SVGComponentTransferFunctionElement;\n    new(): SVGComponentTransferFunctionElement;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;\n    readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;\n};\n\ninterface SVGDefsElement extends SVGGraphicsElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDefsElement: {\n    prototype: SVGDefsElement;\n    new(): SVGDefsElement;\n};\n\ninterface SVGDescElement extends SVGElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGDescElement: {\n    prototype: SVGDescElement;\n    new(): SVGDescElement;\n};\n\ninterface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {\n}\n\ninterface SVGElement extends Element, GlobalEventHandlers, DocumentAndElementEventHandlers, SVGElementInstance, HTMLOrSVGElement, ElementCSSInlineStyle {\n    /** @deprecated */\n    readonly className: any;\n    readonly ownerSVGElement: SVGSVGElement | null;\n    readonly viewportElement: SVGElement | null;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGElement: {\n    prototype: SVGElement;\n    new(): SVGElement;\n};\n\ninterface SVGElementInstance extends EventTarget {\n    readonly correspondingElement: SVGElement;\n    readonly correspondingUseElement: SVGUseElement;\n}\n\ndeclare var SVGElementInstance: {\n    prototype: SVGElementInstance;\n    new(): SVGElementInstance;\n};\n\ninterface SVGElementInstanceList {\n    /** @deprecated */\n    readonly length: number;\n    /** @deprecated */\n    item(index: number): SVGElementInstance;\n}\n\ndeclare var SVGElementInstanceList: {\n    prototype: SVGElementInstanceList;\n    new(): SVGElementInstanceList;\n};\n\ninterface SVGEllipseElement extends SVGGraphicsElement {\n    readonly cx: SVGAnimatedLength;\n    readonly cy: SVGAnimatedLength;\n    readonly rx: SVGAnimatedLength;\n    readonly ry: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGEllipseElement: {\n    prototype: SVGEllipseElement;\n    new(): SVGEllipseElement;\n};\n\ninterface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly in2: SVGAnimatedString;\n    readonly mode: SVGAnimatedEnumeration;\n    readonly SVG_FEBLEND_MODE_COLOR: number;\n    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;\n    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;\n    readonly SVG_FEBLEND_MODE_DARKEN: number;\n    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;\n    readonly SVG_FEBLEND_MODE_EXCLUSION: number;\n    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;\n    readonly SVG_FEBLEND_MODE_HUE: number;\n    readonly SVG_FEBLEND_MODE_LIGHTEN: number;\n    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;\n    readonly SVG_FEBLEND_MODE_MULTIPLY: number;\n    readonly SVG_FEBLEND_MODE_NORMAL: number;\n    readonly SVG_FEBLEND_MODE_OVERLAY: number;\n    readonly SVG_FEBLEND_MODE_SATURATION: number;\n    readonly SVG_FEBLEND_MODE_SCREEN: number;\n    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;\n    readonly SVG_FEBLEND_MODE_UNKNOWN: number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEBlendElement: {\n    prototype: SVGFEBlendElement;\n    new(): SVGFEBlendElement;\n    readonly SVG_FEBLEND_MODE_COLOR: number;\n    readonly SVG_FEBLEND_MODE_COLOR_BURN: number;\n    readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;\n    readonly SVG_FEBLEND_MODE_DARKEN: number;\n    readonly SVG_FEBLEND_MODE_DIFFERENCE: number;\n    readonly SVG_FEBLEND_MODE_EXCLUSION: number;\n    readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;\n    readonly SVG_FEBLEND_MODE_HUE: number;\n    readonly SVG_FEBLEND_MODE_LIGHTEN: number;\n    readonly SVG_FEBLEND_MODE_LUMINOSITY: number;\n    readonly SVG_FEBLEND_MODE_MULTIPLY: number;\n    readonly SVG_FEBLEND_MODE_NORMAL: number;\n    readonly SVG_FEBLEND_MODE_OVERLAY: number;\n    readonly SVG_FEBLEND_MODE_SATURATION: number;\n    readonly SVG_FEBLEND_MODE_SCREEN: number;\n    readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;\n    readonly SVG_FEBLEND_MODE_UNKNOWN: number;\n};\n\ninterface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly type: SVGAnimatedEnumeration;\n    readonly values: SVGAnimatedNumberList;\n    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;\n    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;\n    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;\n    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;\n    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEColorMatrixElement: {\n    prototype: SVGFEColorMatrixElement;\n    new(): SVGFEColorMatrixElement;\n    readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;\n    readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;\n    readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;\n    readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;\n    readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;\n};\n\ninterface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEComponentTransferElement: {\n    prototype: SVGFEComponentTransferElement;\n    new(): SVGFEComponentTransferElement;\n};\n\ninterface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly in2: SVGAnimatedString;\n    readonly k1: SVGAnimatedNumber;\n    readonly k2: SVGAnimatedNumber;\n    readonly k3: SVGAnimatedNumber;\n    readonly k4: SVGAnimatedNumber;\n    readonly operator: SVGAnimatedEnumeration;\n    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;\n    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;\n    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;\n    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;\n    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;\n    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;\n    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFECompositeElement: {\n    prototype: SVGFECompositeElement;\n    new(): SVGFECompositeElement;\n    readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;\n    readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;\n    readonly SVG_FECOMPOSITE_OPERATOR_IN: number;\n    readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;\n    readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;\n    readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;\n    readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;\n};\n\ninterface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly bias: SVGAnimatedNumber;\n    readonly divisor: SVGAnimatedNumber;\n    readonly edgeMode: SVGAnimatedEnumeration;\n    readonly in1: SVGAnimatedString;\n    readonly kernelMatrix: SVGAnimatedNumberList;\n    readonly kernelUnitLengthX: SVGAnimatedNumber;\n    readonly kernelUnitLengthY: SVGAnimatedNumber;\n    readonly orderX: SVGAnimatedInteger;\n    readonly orderY: SVGAnimatedInteger;\n    readonly preserveAlpha: SVGAnimatedBoolean;\n    readonly targetX: SVGAnimatedInteger;\n    readonly targetY: SVGAnimatedInteger;\n    readonly SVG_EDGEMODE_DUPLICATE: number;\n    readonly SVG_EDGEMODE_NONE: number;\n    readonly SVG_EDGEMODE_UNKNOWN: number;\n    readonly SVG_EDGEMODE_WRAP: number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEConvolveMatrixElement: {\n    prototype: SVGFEConvolveMatrixElement;\n    new(): SVGFEConvolveMatrixElement;\n    readonly SVG_EDGEMODE_DUPLICATE: number;\n    readonly SVG_EDGEMODE_NONE: number;\n    readonly SVG_EDGEMODE_UNKNOWN: number;\n    readonly SVG_EDGEMODE_WRAP: number;\n};\n\ninterface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly diffuseConstant: SVGAnimatedNumber;\n    readonly in1: SVGAnimatedString;\n    readonly kernelUnitLengthX: SVGAnimatedNumber;\n    readonly kernelUnitLengthY: SVGAnimatedNumber;\n    readonly surfaceScale: SVGAnimatedNumber;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDiffuseLightingElement: {\n    prototype: SVGFEDiffuseLightingElement;\n    new(): SVGFEDiffuseLightingElement;\n};\n\ninterface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly in2: SVGAnimatedString;\n    readonly scale: SVGAnimatedNumber;\n    readonly xChannelSelector: SVGAnimatedEnumeration;\n    readonly yChannelSelector: SVGAnimatedEnumeration;\n    readonly SVG_CHANNEL_A: number;\n    readonly SVG_CHANNEL_B: number;\n    readonly SVG_CHANNEL_G: number;\n    readonly SVG_CHANNEL_R: number;\n    readonly SVG_CHANNEL_UNKNOWN: number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDisplacementMapElement: {\n    prototype: SVGFEDisplacementMapElement;\n    new(): SVGFEDisplacementMapElement;\n    readonly SVG_CHANNEL_A: number;\n    readonly SVG_CHANNEL_B: number;\n    readonly SVG_CHANNEL_G: number;\n    readonly SVG_CHANNEL_R: number;\n    readonly SVG_CHANNEL_UNKNOWN: number;\n};\n\ninterface SVGFEDistantLightElement extends SVGElement {\n    readonly azimuth: SVGAnimatedNumber;\n    readonly elevation: SVGAnimatedNumber;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEDistantLightElement: {\n    prototype: SVGFEDistantLightElement;\n    new(): SVGFEDistantLightElement;\n};\n\ninterface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFloodElement: {\n    prototype: SVGFEFloodElement;\n    new(): SVGFEFloodElement;\n};\n\ninterface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncAElement: {\n    prototype: SVGFEFuncAElement;\n    new(): SVGFEFuncAElement;\n};\n\ninterface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncBElement: {\n    prototype: SVGFEFuncBElement;\n    new(): SVGFEFuncBElement;\n};\n\ninterface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncGElement: {\n    prototype: SVGFEFuncGElement;\n    new(): SVGFEFuncGElement;\n};\n\ninterface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEFuncRElement: {\n    prototype: SVGFEFuncRElement;\n    new(): SVGFEFuncRElement;\n};\n\ninterface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly stdDeviationX: SVGAnimatedNumber;\n    readonly stdDeviationY: SVGAnimatedNumber;\n    setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEGaussianBlurElement: {\n    prototype: SVGFEGaussianBlurElement;\n    new(): SVGFEGaussianBlurElement;\n};\n\ninterface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {\n    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEImageElement: {\n    prototype: SVGFEImageElement;\n    new(): SVGFEImageElement;\n};\n\ninterface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeElement: {\n    prototype: SVGFEMergeElement;\n    new(): SVGFEMergeElement;\n};\n\ninterface SVGFEMergeNodeElement extends SVGElement {\n    readonly in1: SVGAnimatedString;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMergeNodeElement: {\n    prototype: SVGFEMergeNodeElement;\n    new(): SVGFEMergeNodeElement;\n};\n\ninterface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly operator: SVGAnimatedEnumeration;\n    readonly radiusX: SVGAnimatedNumber;\n    readonly radiusY: SVGAnimatedNumber;\n    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;\n    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;\n    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEMorphologyElement: {\n    prototype: SVGFEMorphologyElement;\n    new(): SVGFEMorphologyElement;\n    readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;\n    readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;\n    readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;\n};\n\ninterface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly dx: SVGAnimatedNumber;\n    readonly dy: SVGAnimatedNumber;\n    readonly in1: SVGAnimatedString;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEOffsetElement: {\n    prototype: SVGFEOffsetElement;\n    new(): SVGFEOffsetElement;\n};\n\ninterface SVGFEPointLightElement extends SVGElement {\n    readonly x: SVGAnimatedNumber;\n    readonly y: SVGAnimatedNumber;\n    readonly z: SVGAnimatedNumber;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFEPointLightElement: {\n    prototype: SVGFEPointLightElement;\n    new(): SVGFEPointLightElement;\n};\n\ninterface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    readonly kernelUnitLengthX: SVGAnimatedNumber;\n    readonly kernelUnitLengthY: SVGAnimatedNumber;\n    readonly specularConstant: SVGAnimatedNumber;\n    readonly specularExponent: SVGAnimatedNumber;\n    readonly surfaceScale: SVGAnimatedNumber;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpecularLightingElement: {\n    prototype: SVGFESpecularLightingElement;\n    new(): SVGFESpecularLightingElement;\n};\n\ninterface SVGFESpotLightElement extends SVGElement {\n    readonly limitingConeAngle: SVGAnimatedNumber;\n    readonly pointsAtX: SVGAnimatedNumber;\n    readonly pointsAtY: SVGAnimatedNumber;\n    readonly pointsAtZ: SVGAnimatedNumber;\n    readonly specularExponent: SVGAnimatedNumber;\n    readonly x: SVGAnimatedNumber;\n    readonly y: SVGAnimatedNumber;\n    readonly z: SVGAnimatedNumber;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFESpotLightElement: {\n    prototype: SVGFESpotLightElement;\n    new(): SVGFESpotLightElement;\n};\n\ninterface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly in1: SVGAnimatedString;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETileElement: {\n    prototype: SVGFETileElement;\n    new(): SVGFETileElement;\n};\n\ninterface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {\n    readonly baseFrequencyX: SVGAnimatedNumber;\n    readonly baseFrequencyY: SVGAnimatedNumber;\n    readonly numOctaves: SVGAnimatedInteger;\n    readonly seed: SVGAnimatedNumber;\n    readonly stitchTiles: SVGAnimatedEnumeration;\n    readonly type: SVGAnimatedEnumeration;\n    readonly SVG_STITCHTYPE_NOSTITCH: number;\n    readonly SVG_STITCHTYPE_STITCH: number;\n    readonly SVG_STITCHTYPE_UNKNOWN: number;\n    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;\n    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;\n    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFETurbulenceElement: {\n    prototype: SVGFETurbulenceElement;\n    new(): SVGFETurbulenceElement;\n    readonly SVG_STITCHTYPE_NOSTITCH: number;\n    readonly SVG_STITCHTYPE_STITCH: number;\n    readonly SVG_STITCHTYPE_UNKNOWN: number;\n    readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;\n    readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;\n    readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;\n};\n\ninterface SVGFilterElement extends SVGElement, SVGURIReference {\n    /** @deprecated */\n    readonly filterResX: SVGAnimatedInteger;\n    /** @deprecated */\n    readonly filterResY: SVGAnimatedInteger;\n    readonly filterUnits: SVGAnimatedEnumeration;\n    readonly height: SVGAnimatedLength;\n    readonly primitiveUnits: SVGAnimatedEnumeration;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    /** @deprecated */\n    setFilterRes(filterResX: number, filterResY: number): void;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGFilterElement: {\n    prototype: SVGFilterElement;\n    new(): SVGFilterElement;\n};\n\ninterface SVGFilterPrimitiveStandardAttributes {\n    readonly height: SVGAnimatedLength;\n    readonly result: SVGAnimatedString;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n}\n\ninterface SVGFitToViewBox {\n    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n    readonly viewBox: SVGAnimatedRect;\n}\n\ninterface SVGForeignObjectElement extends SVGGraphicsElement {\n    readonly height: SVGAnimatedLength;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGForeignObjectElement: {\n    prototype: SVGForeignObjectElement;\n    new(): SVGForeignObjectElement;\n};\n\ninterface SVGGElement extends SVGGraphicsElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGElement: {\n    prototype: SVGGElement;\n    new(): SVGGElement;\n};\n\ninterface SVGGeometryElement extends SVGGraphicsElement {\n    readonly pathLength: SVGAnimatedNumber;\n    getPointAtLength(distance: number): DOMPoint;\n    getTotalLength(): number;\n    isPointInFill(point?: DOMPointInit): boolean;\n    isPointInStroke(point?: DOMPointInit): boolean;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGeometryElement: {\n    prototype: SVGGeometryElement;\n    new(): SVGGeometryElement;\n};\n\ninterface SVGGradientElement extends SVGElement, SVGURIReference {\n    readonly gradientTransform: SVGAnimatedTransformList;\n    readonly gradientUnits: SVGAnimatedEnumeration;\n    readonly spreadMethod: SVGAnimatedEnumeration;\n    readonly SVG_SPREADMETHOD_PAD: number;\n    readonly SVG_SPREADMETHOD_REFLECT: number;\n    readonly SVG_SPREADMETHOD_REPEAT: number;\n    readonly SVG_SPREADMETHOD_UNKNOWN: number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGradientElement: {\n    prototype: SVGGradientElement;\n    new(): SVGGradientElement;\n    readonly SVG_SPREADMETHOD_PAD: number;\n    readonly SVG_SPREADMETHOD_REFLECT: number;\n    readonly SVG_SPREADMETHOD_REPEAT: number;\n    readonly SVG_SPREADMETHOD_UNKNOWN: number;\n};\n\ninterface SVGGraphicsElement extends SVGElement, SVGTests {\n    readonly transform: SVGAnimatedTransformList;\n    getBBox(options?: SVGBoundingBoxOptions): DOMRect;\n    getCTM(): DOMMatrix | null;\n    getScreenCTM(): DOMMatrix | null;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGGraphicsElement: {\n    prototype: SVGGraphicsElement;\n    new(): SVGGraphicsElement;\n};\n\ninterface SVGImageElement extends SVGGraphicsElement, SVGURIReference {\n    readonly height: SVGAnimatedLength;\n    readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGImageElement: {\n    prototype: SVGImageElement;\n    new(): SVGImageElement;\n};\n\ninterface SVGLength {\n    readonly unitType: number;\n    value: number;\n    valueAsString: string;\n    valueInSpecifiedUnits: number;\n    convertToSpecifiedUnits(unitType: number): void;\n    newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;\n    readonly SVG_LENGTHTYPE_CM: number;\n    readonly SVG_LENGTHTYPE_EMS: number;\n    readonly SVG_LENGTHTYPE_EXS: number;\n    readonly SVG_LENGTHTYPE_IN: number;\n    readonly SVG_LENGTHTYPE_MM: number;\n    readonly SVG_LENGTHTYPE_NUMBER: number;\n    readonly SVG_LENGTHTYPE_PC: number;\n    readonly SVG_LENGTHTYPE_PERCENTAGE: number;\n    readonly SVG_LENGTHTYPE_PT: number;\n    readonly SVG_LENGTHTYPE_PX: number;\n    readonly SVG_LENGTHTYPE_UNKNOWN: number;\n}\n\ndeclare var SVGLength: {\n    prototype: SVGLength;\n    new(): SVGLength;\n    readonly SVG_LENGTHTYPE_CM: number;\n    readonly SVG_LENGTHTYPE_EMS: number;\n    readonly SVG_LENGTHTYPE_EXS: number;\n    readonly SVG_LENGTHTYPE_IN: number;\n    readonly SVG_LENGTHTYPE_MM: number;\n    readonly SVG_LENGTHTYPE_NUMBER: number;\n    readonly SVG_LENGTHTYPE_PC: number;\n    readonly SVG_LENGTHTYPE_PERCENTAGE: number;\n    readonly SVG_LENGTHTYPE_PT: number;\n    readonly SVG_LENGTHTYPE_PX: number;\n    readonly SVG_LENGTHTYPE_UNKNOWN: number;\n};\n\ninterface SVGLengthList {\n    readonly length: number;\n    readonly numberOfItems: number;\n    appendItem(newItem: SVGLength): SVGLength;\n    clear(): void;\n    getItem(index: number): SVGLength;\n    initialize(newItem: SVGLength): SVGLength;\n    insertItemBefore(newItem: SVGLength, index: number): SVGLength;\n    removeItem(index: number): SVGLength;\n    replaceItem(newItem: SVGLength, index: number): SVGLength;\n    [index: number]: SVGLength;\n}\n\ndeclare var SVGLengthList: {\n    prototype: SVGLengthList;\n    new(): SVGLengthList;\n};\n\ninterface SVGLineElement extends SVGGraphicsElement {\n    readonly x1: SVGAnimatedLength;\n    readonly x2: SVGAnimatedLength;\n    readonly y1: SVGAnimatedLength;\n    readonly y2: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLineElement: {\n    prototype: SVGLineElement;\n    new(): SVGLineElement;\n};\n\ninterface SVGLinearGradientElement extends SVGGradientElement {\n    readonly x1: SVGAnimatedLength;\n    readonly x2: SVGAnimatedLength;\n    readonly y1: SVGAnimatedLength;\n    readonly y2: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGLinearGradientElement: {\n    prototype: SVGLinearGradientElement;\n    new(): SVGLinearGradientElement;\n};\n\ninterface SVGMarkerElement extends SVGElement, SVGFitToViewBox {\n    readonly markerHeight: SVGAnimatedLength;\n    readonly markerUnits: SVGAnimatedEnumeration;\n    readonly markerWidth: SVGAnimatedLength;\n    readonly orientAngle: SVGAnimatedAngle;\n    readonly orientType: SVGAnimatedEnumeration;\n    readonly refX: SVGAnimatedLength;\n    readonly refY: SVGAnimatedLength;\n    setOrientToAngle(angle: SVGAngle): void;\n    setOrientToAuto(): void;\n    readonly SVG_MARKERUNITS_STROKEWIDTH: number;\n    readonly SVG_MARKERUNITS_UNKNOWN: number;\n    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;\n    readonly SVG_MARKER_ORIENT_ANGLE: number;\n    readonly SVG_MARKER_ORIENT_AUTO: number;\n    readonly SVG_MARKER_ORIENT_UNKNOWN: number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMarkerElement: {\n    prototype: SVGMarkerElement;\n    new(): SVGMarkerElement;\n    readonly SVG_MARKERUNITS_STROKEWIDTH: number;\n    readonly SVG_MARKERUNITS_UNKNOWN: number;\n    readonly SVG_MARKERUNITS_USERSPACEONUSE: number;\n    readonly SVG_MARKER_ORIENT_ANGLE: number;\n    readonly SVG_MARKER_ORIENT_AUTO: number;\n    readonly SVG_MARKER_ORIENT_UNKNOWN: number;\n};\n\ninterface SVGMaskElement extends SVGElement, SVGTests {\n    readonly height: SVGAnimatedLength;\n    readonly maskContentUnits: SVGAnimatedEnumeration;\n    readonly maskUnits: SVGAnimatedEnumeration;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMaskElement: {\n    prototype: SVGMaskElement;\n    new(): SVGMaskElement;\n};\n\ninterface SVGMetadataElement extends SVGElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGMetadataElement: {\n    prototype: SVGMetadataElement;\n    new(): SVGMetadataElement;\n};\n\ninterface SVGNumber {\n    value: number;\n}\n\ndeclare var SVGNumber: {\n    prototype: SVGNumber;\n    new(): SVGNumber;\n};\n\ninterface SVGNumberList {\n    readonly length: number;\n    readonly numberOfItems: number;\n    appendItem(newItem: SVGNumber): SVGNumber;\n    clear(): void;\n    getItem(index: number): SVGNumber;\n    initialize(newItem: SVGNumber): SVGNumber;\n    insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;\n    removeItem(index: number): SVGNumber;\n    replaceItem(newItem: SVGNumber, index: number): SVGNumber;\n    [index: number]: SVGNumber;\n}\n\ndeclare var SVGNumberList: {\n    prototype: SVGNumberList;\n    new(): SVGNumberList;\n};\n\ninterface SVGPathElement extends SVGGraphicsElement {\n    /** @deprecated */\n    readonly pathSegList: SVGPathSegList;\n    /** @deprecated */\n    createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcAbs;\n    /** @deprecated */\n    createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): SVGPathSegArcRel;\n    /** @deprecated */\n    createSVGPathSegClosePath(): SVGPathSegClosePath;\n    /** @deprecated */\n    createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicAbs;\n    /** @deprecated */\n    createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): SVGPathSegCurvetoCubicRel;\n    /** @deprecated */\n    createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothAbs;\n    /** @deprecated */\n    createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): SVGPathSegCurvetoCubicSmoothRel;\n    /** @deprecated */\n    createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticAbs;\n    /** @deprecated */\n    createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): SVGPathSegCurvetoQuadraticRel;\n    /** @deprecated */\n    createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothAbs;\n    /** @deprecated */\n    createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): SVGPathSegCurvetoQuadraticSmoothRel;\n    /** @deprecated */\n    createSVGPathSegLinetoAbs(x: number, y: number): SVGPathSegLinetoAbs;\n    /** @deprecated */\n    createSVGPathSegLinetoHorizontalAbs(x: number): SVGPathSegLinetoHorizontalAbs;\n    /** @deprecated */\n    createSVGPathSegLinetoHorizontalRel(x: number): SVGPathSegLinetoHorizontalRel;\n    /** @deprecated */\n    createSVGPathSegLinetoRel(x: number, y: number): SVGPathSegLinetoRel;\n    /** @deprecated */\n    createSVGPathSegLinetoVerticalAbs(y: number): SVGPathSegLinetoVerticalAbs;\n    /** @deprecated */\n    createSVGPathSegLinetoVerticalRel(y: number): SVGPathSegLinetoVerticalRel;\n    /** @deprecated */\n    createSVGPathSegMovetoAbs(x: number, y: number): SVGPathSegMovetoAbs;\n    /** @deprecated */\n    createSVGPathSegMovetoRel(x: number, y: number): SVGPathSegMovetoRel;\n    /** @deprecated */\n    getPathSegAtLength(distance: number): number;\n    getPointAtLength(distance: number): SVGPoint;\n    getTotalLength(): number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPathElement: {\n    prototype: SVGPathElement;\n    new(): SVGPathElement;\n};\n\ninterface SVGPathSeg {\n    readonly pathSegType: number;\n    readonly pathSegTypeAsLetter: string;\n    readonly PATHSEG_ARC_ABS: number;\n    readonly PATHSEG_ARC_REL: number;\n    readonly PATHSEG_CLOSEPATH: number;\n    readonly PATHSEG_CURVETO_CUBIC_ABS: number;\n    readonly PATHSEG_CURVETO_CUBIC_REL: number;\n    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;\n    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;\n    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;\n    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;\n    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;\n    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;\n    readonly PATHSEG_LINETO_ABS: number;\n    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;\n    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;\n    readonly PATHSEG_LINETO_REL: number;\n    readonly PATHSEG_LINETO_VERTICAL_ABS: number;\n    readonly PATHSEG_LINETO_VERTICAL_REL: number;\n    readonly PATHSEG_MOVETO_ABS: number;\n    readonly PATHSEG_MOVETO_REL: number;\n    readonly PATHSEG_UNKNOWN: number;\n}\n\ndeclare var SVGPathSeg: {\n    prototype: SVGPathSeg;\n    new(): SVGPathSeg;\n    readonly PATHSEG_ARC_ABS: number;\n    readonly PATHSEG_ARC_REL: number;\n    readonly PATHSEG_CLOSEPATH: number;\n    readonly PATHSEG_CURVETO_CUBIC_ABS: number;\n    readonly PATHSEG_CURVETO_CUBIC_REL: number;\n    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: number;\n    readonly PATHSEG_CURVETO_CUBIC_SMOOTH_REL: number;\n    readonly PATHSEG_CURVETO_QUADRATIC_ABS: number;\n    readonly PATHSEG_CURVETO_QUADRATIC_REL: number;\n    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: number;\n    readonly PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: number;\n    readonly PATHSEG_LINETO_ABS: number;\n    readonly PATHSEG_LINETO_HORIZONTAL_ABS: number;\n    readonly PATHSEG_LINETO_HORIZONTAL_REL: number;\n    readonly PATHSEG_LINETO_REL: number;\n    readonly PATHSEG_LINETO_VERTICAL_ABS: number;\n    readonly PATHSEG_LINETO_VERTICAL_REL: number;\n    readonly PATHSEG_MOVETO_ABS: number;\n    readonly PATHSEG_MOVETO_REL: number;\n    readonly PATHSEG_UNKNOWN: number;\n};\n\ninterface SVGPathSegArcAbs extends SVGPathSeg {\n    angle: number;\n    largeArcFlag: boolean;\n    r1: number;\n    r2: number;\n    sweepFlag: boolean;\n    x: number;\n    y: number;\n}\n\ndeclare var SVGPathSegArcAbs: {\n    prototype: SVGPathSegArcAbs;\n    new(): SVGPathSegArcAbs;\n};\n\ninterface SVGPathSegArcRel extends SVGPathSeg {\n    angle: number;\n    largeArcFlag: boolean;\n    r1: number;\n    r2: number;\n    sweepFlag: boolean;\n    x: number;\n    y: number;\n}\n\ndeclare var SVGPathSegArcRel: {\n    prototype: SVGPathSegArcRel;\n    new(): SVGPathSegArcRel;\n};\n\ninterface SVGPathSegClosePath extends SVGPathSeg {\n}\n\ndeclare var SVGPathSegClosePath: {\n    prototype: SVGPathSegClosePath;\n    new(): SVGPathSegClosePath;\n};\n\ninterface SVGPathSegCurvetoCubicAbs extends SVGPathSeg {\n    x: number;\n    x1: number;\n    x2: number;\n    y: number;\n    y1: number;\n    y2: number;\n}\n\ndeclare var SVGPathSegCurvetoCubicAbs: {\n    prototype: SVGPathSegCurvetoCubicAbs;\n    new(): SVGPathSegCurvetoCubicAbs;\n};\n\ninterface SVGPathSegCurvetoCubicRel extends SVGPathSeg {\n    x: number;\n    x1: number;\n    x2: number;\n    y: number;\n    y1: number;\n    y2: number;\n}\n\ndeclare var SVGPathSegCurvetoCubicRel: {\n    prototype: SVGPathSegCurvetoCubicRel;\n    new(): SVGPathSegCurvetoCubicRel;\n};\n\ninterface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {\n    x: number;\n    x2: number;\n    y: number;\n    y2: number;\n}\n\ndeclare var SVGPathSegCurvetoCubicSmoothAbs: {\n    prototype: SVGPathSegCurvetoCubicSmoothAbs;\n    new(): SVGPathSegCurvetoCubicSmoothAbs;\n};\n\ninterface SVGPathSegCurvetoCubicSmoothRel extends SVGPathSeg {\n    x: number;\n    x2: number;\n    y: number;\n    y2: number;\n}\n\ndeclare var SVGPathSegCurvetoCubicSmoothRel: {\n    prototype: SVGPathSegCurvetoCubicSmoothRel;\n    new(): SVGPathSegCurvetoCubicSmoothRel;\n};\n\ninterface SVGPathSegCurvetoQuadraticAbs extends SVGPathSeg {\n    x: number;\n    x1: number;\n    y: number;\n    y1: number;\n}\n\ndeclare var SVGPathSegCurvetoQuadraticAbs: {\n    prototype: SVGPathSegCurvetoQuadraticAbs;\n    new(): SVGPathSegCurvetoQuadraticAbs;\n};\n\ninterface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {\n    x: number;\n    x1: number;\n    y: number;\n    y1: number;\n}\n\ndeclare var SVGPathSegCurvetoQuadraticRel: {\n    prototype: SVGPathSegCurvetoQuadraticRel;\n    new(): SVGPathSegCurvetoQuadraticRel;\n};\n\ninterface SVGPathSegCurvetoQuadraticSmoothAbs extends SVGPathSeg {\n    x: number;\n    y: number;\n}\n\ndeclare var SVGPathSegCurvetoQuadraticSmoothAbs: {\n    prototype: SVGPathSegCurvetoQuadraticSmoothAbs;\n    new(): SVGPathSegCurvetoQuadraticSmoothAbs;\n};\n\ninterface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {\n    x: number;\n    y: number;\n}\n\ndeclare var SVGPathSegCurvetoQuadraticSmoothRel: {\n    prototype: SVGPathSegCurvetoQuadraticSmoothRel;\n    new(): SVGPathSegCurvetoQuadraticSmoothRel;\n};\n\ninterface SVGPathSegLinetoAbs extends SVGPathSeg {\n    x: number;\n    y: number;\n}\n\ndeclare var SVGPathSegLinetoAbs: {\n    prototype: SVGPathSegLinetoAbs;\n    new(): SVGPathSegLinetoAbs;\n};\n\ninterface SVGPathSegLinetoHorizontalAbs extends SVGPathSeg {\n    x: number;\n}\n\ndeclare var SVGPathSegLinetoHorizontalAbs: {\n    prototype: SVGPathSegLinetoHorizontalAbs;\n    new(): SVGPathSegLinetoHorizontalAbs;\n};\n\ninterface SVGPathSegLinetoHorizontalRel extends SVGPathSeg {\n    x: number;\n}\n\ndeclare var SVGPathSegLinetoHorizontalRel: {\n    prototype: SVGPathSegLinetoHorizontalRel;\n    new(): SVGPathSegLinetoHorizontalRel;\n};\n\ninterface SVGPathSegLinetoRel extends SVGPathSeg {\n    x: number;\n    y: number;\n}\n\ndeclare var SVGPathSegLinetoRel: {\n    prototype: SVGPathSegLinetoRel;\n    new(): SVGPathSegLinetoRel;\n};\n\ninterface SVGPathSegLinetoVerticalAbs extends SVGPathSeg {\n    y: number;\n}\n\ndeclare var SVGPathSegLinetoVerticalAbs: {\n    prototype: SVGPathSegLinetoVerticalAbs;\n    new(): SVGPathSegLinetoVerticalAbs;\n};\n\ninterface SVGPathSegLinetoVerticalRel extends SVGPathSeg {\n    y: number;\n}\n\ndeclare var SVGPathSegLinetoVerticalRel: {\n    prototype: SVGPathSegLinetoVerticalRel;\n    new(): SVGPathSegLinetoVerticalRel;\n};\n\ninterface SVGPathSegList {\n    readonly numberOfItems: number;\n    appendItem(newItem: SVGPathSeg): SVGPathSeg;\n    clear(): void;\n    getItem(index: number): SVGPathSeg;\n    initialize(newItem: SVGPathSeg): SVGPathSeg;\n    insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg;\n    removeItem(index: number): SVGPathSeg;\n    replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg;\n}\n\ndeclare var SVGPathSegList: {\n    prototype: SVGPathSegList;\n    new(): SVGPathSegList;\n};\n\ninterface SVGPathSegMovetoAbs extends SVGPathSeg {\n    x: number;\n    y: number;\n}\n\ndeclare var SVGPathSegMovetoAbs: {\n    prototype: SVGPathSegMovetoAbs;\n    new(): SVGPathSegMovetoAbs;\n};\n\ninterface SVGPathSegMovetoRel extends SVGPathSeg {\n    x: number;\n    y: number;\n}\n\ndeclare var SVGPathSegMovetoRel: {\n    prototype: SVGPathSegMovetoRel;\n    new(): SVGPathSegMovetoRel;\n};\n\ninterface SVGPatternElement extends SVGElement, SVGTests, SVGFitToViewBox, SVGURIReference {\n    readonly height: SVGAnimatedLength;\n    readonly patternContentUnits: SVGAnimatedEnumeration;\n    readonly patternTransform: SVGAnimatedTransformList;\n    readonly patternUnits: SVGAnimatedEnumeration;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPatternElement: {\n    prototype: SVGPatternElement;\n    new(): SVGPatternElement;\n};\n\ninterface SVGPointList {\n    readonly numberOfItems: number;\n    appendItem(newItem: SVGPoint): SVGPoint;\n    clear(): void;\n    getItem(index: number): SVGPoint;\n    initialize(newItem: SVGPoint): SVGPoint;\n    insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;\n    removeItem(index: number): SVGPoint;\n    replaceItem(newItem: SVGPoint, index: number): SVGPoint;\n}\n\ndeclare var SVGPointList: {\n    prototype: SVGPointList;\n    new(): SVGPointList;\n};\n\ninterface SVGPolygonElement extends SVGGraphicsElement, SVGAnimatedPoints {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPolygonElement: {\n    prototype: SVGPolygonElement;\n    new(): SVGPolygonElement;\n};\n\ninterface SVGPolylineElement extends SVGGraphicsElement, SVGAnimatedPoints {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGPolylineElement: {\n    prototype: SVGPolylineElement;\n    new(): SVGPolylineElement;\n};\n\ninterface SVGPreserveAspectRatio {\n    align: number;\n    meetOrSlice: number;\n    readonly SVG_MEETORSLICE_MEET: number;\n    readonly SVG_MEETORSLICE_SLICE: number;\n    readonly SVG_MEETORSLICE_UNKNOWN: number;\n    readonly SVG_PRESERVEASPECTRATIO_NONE: number;\n    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;\n}\n\ndeclare var SVGPreserveAspectRatio: {\n    prototype: SVGPreserveAspectRatio;\n    new(): SVGPreserveAspectRatio;\n    readonly SVG_MEETORSLICE_MEET: number;\n    readonly SVG_MEETORSLICE_SLICE: number;\n    readonly SVG_MEETORSLICE_UNKNOWN: number;\n    readonly SVG_PRESERVEASPECTRATIO_NONE: number;\n    readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;\n    readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;\n};\n\ninterface SVGRadialGradientElement extends SVGGradientElement {\n    readonly cx: SVGAnimatedLength;\n    readonly cy: SVGAnimatedLength;\n    readonly fx: SVGAnimatedLength;\n    readonly fy: SVGAnimatedLength;\n    readonly r: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRadialGradientElement: {\n    prototype: SVGRadialGradientElement;\n    new(): SVGRadialGradientElement;\n};\n\ninterface SVGRectElement extends SVGGraphicsElement {\n    readonly height: SVGAnimatedLength;\n    readonly rx: SVGAnimatedLength;\n    readonly ry: SVGAnimatedLength;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGRectElement: {\n    prototype: SVGRectElement;\n    new(): SVGRectElement;\n};\n\ninterface SVGSVGElementEventMap extends SVGElementEventMap {\n    "SVGUnload": Event;\n    "SVGZoom": SVGZoomEvent;\n}\n\ninterface SVGSVGElement extends SVGGraphicsElement, DocumentEvent, SVGFitToViewBox, SVGZoomAndPan {\n    /** @deprecated */\n    contentScriptType: string;\n    /** @deprecated */\n    contentStyleType: string;\n    currentScale: number;\n    readonly currentTranslate: SVGPoint;\n    readonly height: SVGAnimatedLength;\n    onunload: ((this: SVGSVGElement, ev: Event) => any) | null;\n    onzoom: ((this: SVGSVGElement, ev: SVGZoomEvent) => any) | null;\n    /** @deprecated */\n    readonly pixelUnitToMillimeterX: number;\n    /** @deprecated */\n    readonly pixelUnitToMillimeterY: number;\n    /** @deprecated */\n    readonly screenPixelToMillimeterX: number;\n    /** @deprecated */\n    readonly screenPixelToMillimeterY: number;\n    /** @deprecated */\n    readonly viewport: SVGRect;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    checkEnclosure(element: SVGElement, rect: SVGRect): boolean;\n    checkIntersection(element: SVGElement, rect: SVGRect): boolean;\n    createSVGAngle(): SVGAngle;\n    createSVGLength(): SVGLength;\n    createSVGMatrix(): SVGMatrix;\n    createSVGNumber(): SVGNumber;\n    createSVGPoint(): SVGPoint;\n    createSVGRect(): SVGRect;\n    createSVGTransform(): SVGTransform;\n    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;\n    deselectAll(): void;\n    /** @deprecated */\n    forceRedraw(): void;\n    getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n    /** @deprecated */\n    getCurrentTime(): number;\n    getElementById(elementId: string): Element;\n    getEnclosureList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n    getIntersectionList(rect: SVGRect, referenceElement: SVGElement): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;\n    /** @deprecated */\n    pauseAnimations(): void;\n    /** @deprecated */\n    setCurrentTime(seconds: number): void;\n    /** @deprecated */\n    suspendRedraw(maxWaitMilliseconds: number): number;\n    /** @deprecated */\n    unpauseAnimations(): void;\n    /** @deprecated */\n    unsuspendRedraw(suspendHandleID: number): void;\n    /** @deprecated */\n    unsuspendRedrawAll(): void;\n    addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSVGElement: {\n    prototype: SVGSVGElement;\n    new(): SVGSVGElement;\n    readonly SVG_ZOOMANDPAN_DISABLE: number;\n    readonly SVG_ZOOMANDPAN_MAGNIFY: number;\n    readonly SVG_ZOOMANDPAN_UNKNOWN: number;\n};\n\ninterface SVGScriptElement extends SVGElement, SVGURIReference {\n    type: string;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGScriptElement: {\n    prototype: SVGScriptElement;\n    new(): SVGScriptElement;\n};\n\ninterface SVGStopElement extends SVGElement {\n    readonly offset: SVGAnimatedNumber;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStopElement: {\n    prototype: SVGStopElement;\n    new(): SVGStopElement;\n};\n\ninterface SVGStringList {\n    readonly length: number;\n    readonly numberOfItems: number;\n    appendItem(newItem: string): string;\n    clear(): void;\n    getItem(index: number): string;\n    initialize(newItem: string): string;\n    insertItemBefore(newItem: string, index: number): string;\n    removeItem(index: number): string;\n    replaceItem(newItem: string, index: number): string;\n    [index: number]: string;\n}\n\ndeclare var SVGStringList: {\n    prototype: SVGStringList;\n    new(): SVGStringList;\n};\n\ninterface SVGStyleElement extends SVGElement {\n    disabled: boolean;\n    media: string;\n    title: string;\n    type: string;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGStyleElement: {\n    prototype: SVGStyleElement;\n    new(): SVGStyleElement;\n};\n\ninterface SVGSwitchElement extends SVGGraphicsElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSwitchElement: {\n    prototype: SVGSwitchElement;\n    new(): SVGSwitchElement;\n};\n\ninterface SVGSymbolElement extends SVGElement, SVGFitToViewBox {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGSymbolElement: {\n    prototype: SVGSymbolElement;\n    new(): SVGSymbolElement;\n};\n\ninterface SVGTSpanElement extends SVGTextPositioningElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTSpanElement: {\n    prototype: SVGTSpanElement;\n    new(): SVGTSpanElement;\n};\n\ninterface SVGTests {\n    readonly requiredExtensions: SVGStringList;\n    readonly systemLanguage: SVGStringList;\n}\n\ninterface SVGTextContentElement extends SVGGraphicsElement {\n    readonly lengthAdjust: SVGAnimatedEnumeration;\n    readonly textLength: SVGAnimatedLength;\n    getCharNumAtPosition(point: SVGPoint): number;\n    getComputedTextLength(): number;\n    getEndPositionOfChar(charnum: number): SVGPoint;\n    getExtentOfChar(charnum: number): SVGRect;\n    getNumberOfChars(): number;\n    getRotationOfChar(charnum: number): number;\n    getStartPositionOfChar(charnum: number): SVGPoint;\n    getSubStringLength(charnum: number, nchars: number): number;\n    selectSubString(charnum: number, nchars: number): void;\n    readonly LENGTHADJUST_SPACING: number;\n    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;\n    readonly LENGTHADJUST_UNKNOWN: number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextContentElement: {\n    prototype: SVGTextContentElement;\n    new(): SVGTextContentElement;\n    readonly LENGTHADJUST_SPACING: number;\n    readonly LENGTHADJUST_SPACINGANDGLYPHS: number;\n    readonly LENGTHADJUST_UNKNOWN: number;\n};\n\ninterface SVGTextElement extends SVGTextPositioningElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextElement: {\n    prototype: SVGTextElement;\n    new(): SVGTextElement;\n};\n\ninterface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {\n    readonly method: SVGAnimatedEnumeration;\n    readonly spacing: SVGAnimatedEnumeration;\n    readonly startOffset: SVGAnimatedLength;\n    readonly TEXTPATH_METHODTYPE_ALIGN: number;\n    readonly TEXTPATH_METHODTYPE_STRETCH: number;\n    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;\n    readonly TEXTPATH_SPACINGTYPE_AUTO: number;\n    readonly TEXTPATH_SPACINGTYPE_EXACT: number;\n    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPathElement: {\n    prototype: SVGTextPathElement;\n    new(): SVGTextPathElement;\n    readonly TEXTPATH_METHODTYPE_ALIGN: number;\n    readonly TEXTPATH_METHODTYPE_STRETCH: number;\n    readonly TEXTPATH_METHODTYPE_UNKNOWN: number;\n    readonly TEXTPATH_SPACINGTYPE_AUTO: number;\n    readonly TEXTPATH_SPACINGTYPE_EXACT: number;\n    readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;\n};\n\ninterface SVGTextPositioningElement extends SVGTextContentElement {\n    readonly dx: SVGAnimatedLengthList;\n    readonly dy: SVGAnimatedLengthList;\n    readonly rotate: SVGAnimatedNumberList;\n    readonly x: SVGAnimatedLengthList;\n    readonly y: SVGAnimatedLengthList;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTextPositioningElement: {\n    prototype: SVGTextPositioningElement;\n    new(): SVGTextPositioningElement;\n};\n\ninterface SVGTitleElement extends SVGElement {\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGTitleElement: {\n    prototype: SVGTitleElement;\n    new(): SVGTitleElement;\n};\n\ninterface SVGTransform {\n    readonly angle: number;\n    readonly matrix: SVGMatrix;\n    readonly type: number;\n    setMatrix(matrix: SVGMatrix): void;\n    setRotate(angle: number, cx: number, cy: number): void;\n    setScale(sx: number, sy: number): void;\n    setSkewX(angle: number): void;\n    setSkewY(angle: number): void;\n    setTranslate(tx: number, ty: number): void;\n    readonly SVG_TRANSFORM_MATRIX: number;\n    readonly SVG_TRANSFORM_ROTATE: number;\n    readonly SVG_TRANSFORM_SCALE: number;\n    readonly SVG_TRANSFORM_SKEWX: number;\n    readonly SVG_TRANSFORM_SKEWY: number;\n    readonly SVG_TRANSFORM_TRANSLATE: number;\n    readonly SVG_TRANSFORM_UNKNOWN: number;\n}\n\ndeclare var SVGTransform: {\n    prototype: SVGTransform;\n    new(): SVGTransform;\n    readonly SVG_TRANSFORM_MATRIX: number;\n    readonly SVG_TRANSFORM_ROTATE: number;\n    readonly SVG_TRANSFORM_SCALE: number;\n    readonly SVG_TRANSFORM_SKEWX: number;\n    readonly SVG_TRANSFORM_SKEWY: number;\n    readonly SVG_TRANSFORM_TRANSLATE: number;\n    readonly SVG_TRANSFORM_UNKNOWN: number;\n};\n\ninterface SVGTransformList {\n    readonly numberOfItems: number;\n    appendItem(newItem: SVGTransform): SVGTransform;\n    clear(): void;\n    consolidate(): SVGTransform;\n    createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform;\n    getItem(index: number): SVGTransform;\n    initialize(newItem: SVGTransform): SVGTransform;\n    insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;\n    removeItem(index: number): SVGTransform;\n    replaceItem(newItem: SVGTransform, index: number): SVGTransform;\n}\n\ndeclare var SVGTransformList: {\n    prototype: SVGTransformList;\n    new(): SVGTransformList;\n};\n\ninterface SVGURIReference {\n    readonly href: SVGAnimatedString;\n}\n\ninterface SVGUnitTypes {\n    readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;\n    readonly SVG_UNIT_TYPE_UNKNOWN: number;\n    readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;\n}\n\ndeclare var SVGUnitTypes: {\n    prototype: SVGUnitTypes;\n    new(): SVGUnitTypes;\n    readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;\n    readonly SVG_UNIT_TYPE_UNKNOWN: number;\n    readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;\n};\n\ninterface SVGUseElement extends SVGGraphicsElement, SVGURIReference {\n    readonly animatedInstanceRoot: SVGElementInstance | null;\n    readonly height: SVGAnimatedLength;\n    readonly instanceRoot: SVGElementInstance | null;\n    readonly width: SVGAnimatedLength;\n    readonly x: SVGAnimatedLength;\n    readonly y: SVGAnimatedLength;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGUseElement: {\n    prototype: SVGUseElement;\n    new(): SVGUseElement;\n};\n\ninterface SVGViewElement extends SVGElement, SVGFitToViewBox, SVGZoomAndPan {\n    /** @deprecated */\n    readonly viewTarget: SVGStringList;\n    addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SVGViewElement: {\n    prototype: SVGViewElement;\n    new(): SVGViewElement;\n    readonly SVG_ZOOMANDPAN_DISABLE: number;\n    readonly SVG_ZOOMANDPAN_MAGNIFY: number;\n    readonly SVG_ZOOMANDPAN_UNKNOWN: number;\n};\n\ninterface SVGZoomAndPan {\n    readonly zoomAndPan: number;\n}\n\ndeclare var SVGZoomAndPan: {\n    readonly SVG_ZOOMANDPAN_DISABLE: number;\n    readonly SVG_ZOOMANDPAN_MAGNIFY: number;\n    readonly SVG_ZOOMANDPAN_UNKNOWN: number;\n};\n\ninterface SVGZoomEvent extends UIEvent {\n    readonly newScale: number;\n    readonly newTranslate: SVGPoint;\n    readonly previousScale: number;\n    readonly previousTranslate: SVGPoint;\n    readonly zoomRectScreen: SVGRect;\n}\n\ndeclare var SVGZoomEvent: {\n    prototype: SVGZoomEvent;\n    new(): SVGZoomEvent;\n};\n\ninterface ScopedCredential {\n    readonly id: ArrayBuffer;\n    readonly type: ScopedCredentialType;\n}\n\ndeclare var ScopedCredential: {\n    prototype: ScopedCredential;\n    new(): ScopedCredential;\n};\n\ninterface ScopedCredentialInfo {\n    readonly credential: ScopedCredential;\n    readonly publicKey: CryptoKey;\n}\n\ndeclare var ScopedCredentialInfo: {\n    prototype: ScopedCredentialInfo;\n    new(): ScopedCredentialInfo;\n};\n\ninterface Screen {\n    readonly availHeight: number;\n    readonly availWidth: number;\n    readonly colorDepth: number;\n    readonly height: number;\n    readonly orientation: ScreenOrientation;\n    readonly pixelDepth: number;\n    readonly width: number;\n}\n\ndeclare var Screen: {\n    prototype: Screen;\n    new(): Screen;\n};\n\ninterface ScreenOrientationEventMap {\n    "change": Event;\n}\n\ninterface ScreenOrientation extends EventTarget {\n    readonly angle: number;\n    onchange: ((this: ScreenOrientation, ev: Event) => any) | null;\n    readonly type: OrientationType;\n    lock(orientation: OrientationLockType): Promise<void>;\n    unlock(): void;\n    addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ScreenOrientation: {\n    prototype: ScreenOrientation;\n    new(): ScreenOrientation;\n};\n\ninterface ScriptProcessorNodeEventMap {\n    "audioprocess": AudioProcessingEvent;\n}\n\ninterface ScriptProcessorNode extends AudioNode {\n    /** @deprecated */\n    readonly bufferSize: number;\n    /** @deprecated */\n    onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;\n    addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ScriptProcessorNode: {\n    prototype: ScriptProcessorNode;\n    new(): ScriptProcessorNode;\n};\n\ninterface SecurityPolicyViolationEvent extends Event {\n    readonly blockedURI: string;\n    readonly columnNumber: number;\n    readonly documentURI: string;\n    readonly effectiveDirective: string;\n    readonly lineNumber: number;\n    readonly originalPolicy: string;\n    readonly referrer: string;\n    readonly sourceFile: string;\n    readonly statusCode: number;\n    readonly violatedDirective: string;\n}\n\ndeclare var SecurityPolicyViolationEvent: {\n    prototype: SecurityPolicyViolationEvent;\n    new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;\n};\n\ninterface Selection {\n    readonly anchorNode: Node;\n    readonly anchorOffset: number;\n    readonly baseNode: Node;\n    readonly baseOffset: number;\n    readonly extentNode: Node;\n    readonly extentOffset: number;\n    readonly focusNode: Node;\n    readonly focusOffset: number;\n    readonly isCollapsed: boolean;\n    readonly rangeCount: number;\n    readonly type: string;\n    addRange(range: Range): void;\n    collapse(parentNode: Node, offset: number): void;\n    collapseToEnd(): void;\n    collapseToStart(): void;\n    containsNode(node: Node, partlyContained: boolean): boolean;\n    deleteFromDocument(): void;\n    empty(): void;\n    extend(newNode: Node, offset: number): void;\n    getRangeAt(index: number): Range;\n    removeAllRanges(): void;\n    removeRange(range: Range): void;\n    selectAllChildren(parentNode: Node): void;\n    setBaseAndExtent(baseNode: Node, baseOffset: number, extentNode: Node, extentOffset: number): void;\n    setPosition(parentNode: Node, offset: number): void;\n    toString(): string;\n}\n\ndeclare var Selection: {\n    prototype: Selection;\n    new(): Selection;\n};\n\ninterface ServiceUIFrameContext {\n    getCachedFrameMessage(key: string): string;\n    postFrameMessage(key: string, data: string): void;\n}\ndeclare var ServiceUIFrameContext: ServiceUIFrameContext;\n\ninterface ServiceWorkerEventMap extends AbstractWorkerEventMap {\n    "statechange": Event;\n}\n\ninterface ServiceWorker extends EventTarget, AbstractWorker {\n    onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;\n    readonly scriptURL: string;\n    readonly state: ServiceWorkerState;\n    postMessage(message: any, transfer?: Transferable[]): void;\n    addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorker: {\n    prototype: ServiceWorker;\n    new(): ServiceWorker;\n};\n\ninterface ServiceWorkerContainerEventMap {\n    "controllerchange": Event;\n    "message": MessageEvent;\n    "messageerror": MessageEvent;\n}\n\ninterface ServiceWorkerContainer extends EventTarget {\n    readonly controller: ServiceWorker | null;\n    oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;\n    onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;\n    readonly ready: Promise<ServiceWorkerRegistration>;\n    getRegistration(clientURL?: string): Promise<ServiceWorkerRegistration | undefined>;\n    getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;\n    register(scriptURL: string, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;\n    startMessages(): void;\n    addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerContainer: {\n    prototype: ServiceWorkerContainer;\n    new(): ServiceWorkerContainer;\n};\n\ninterface ServiceWorkerMessageEvent extends Event {\n    readonly data: any;\n    readonly lastEventId: string;\n    readonly origin: string;\n    readonly ports: ReadonlyArray<MessagePort> | null;\n    readonly source: ServiceWorker | MessagePort | null;\n}\n\ndeclare var ServiceWorkerMessageEvent: {\n    prototype: ServiceWorkerMessageEvent;\n    new(type: string, eventInitDict?: ServiceWorkerMessageEventInit): ServiceWorkerMessageEvent;\n};\n\ninterface ServiceWorkerRegistrationEventMap {\n    "updatefound": Event;\n}\n\ninterface ServiceWorkerRegistration extends EventTarget {\n    readonly active: ServiceWorker | null;\n    readonly installing: ServiceWorker | null;\n    readonly navigationPreload: NavigationPreloadManager;\n    onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;\n    readonly pushManager: PushManager;\n    readonly scope: string;\n    readonly sync: SyncManager;\n    readonly updateViaCache: ServiceWorkerUpdateViaCache;\n    readonly waiting: ServiceWorker | null;\n    getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;\n    showNotification(title: string, options?: NotificationOptions): Promise<void>;\n    unregister(): Promise<boolean>;\n    update(): Promise<void>;\n    addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ServiceWorkerRegistration: {\n    prototype: ServiceWorkerRegistration;\n    new(): ServiceWorkerRegistration;\n};\n\ninterface ShadowRoot extends DocumentOrShadowRoot, DocumentFragment, DocumentOrShadowRoot {\n    readonly host: Element;\n    innerHTML: string;\n    readonly mode: ShadowRootMode;\n}\n\ninterface ShadowRootInit {\n    delegatesFocus?: boolean;\n    mode: "open" | "closed";\n}\n\ninterface Slotable {\n    readonly assignedSlot: HTMLSlotElement | null;\n}\n\ninterface SourceBuffer extends EventTarget {\n    appendWindowEnd: number;\n    appendWindowStart: number;\n    readonly audioTracks: AudioTrackList;\n    readonly buffered: TimeRanges;\n    mode: AppendMode;\n    readonly textTracks: TextTrackList;\n    timestampOffset: number;\n    readonly updating: boolean;\n    readonly videoTracks: VideoTrackList;\n    abort(): void;\n    appendBuffer(data: ArrayBuffer | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | null): void;\n    appendStream(stream: MSStream, maxSize?: number): void;\n    remove(start: number, end: number): void;\n}\n\ndeclare var SourceBuffer: {\n    prototype: SourceBuffer;\n    new(): SourceBuffer;\n};\n\ninterface SourceBufferList extends EventTarget {\n    readonly length: number;\n    item(index: number): SourceBuffer;\n    [index: number]: SourceBuffer;\n}\n\ndeclare var SourceBufferList: {\n    prototype: SourceBufferList;\n    new(): SourceBufferList;\n};\n\ninterface SpeechGrammar {\n    src: string;\n    weight: number;\n}\n\ndeclare var SpeechGrammar: {\n    prototype: SpeechGrammar;\n    new(): SpeechGrammar;\n};\n\ninterface SpeechGrammarList {\n    readonly length: number;\n    addFromString(string: string, weight?: number): void;\n    addFromURI(src: string, weight?: number): void;\n    item(index: number): SpeechGrammar;\n    [index: number]: SpeechGrammar;\n}\n\ndeclare var SpeechGrammarList: {\n    prototype: SpeechGrammarList;\n    new(): SpeechGrammarList;\n};\n\ninterface SpeechRecognitionEventMap {\n    "audioend": Event;\n    "audiostart": Event;\n    "end": Event;\n    "error": SpeechRecognitionError;\n    "nomatch": SpeechRecognitionEvent;\n    "result": SpeechRecognitionEvent;\n    "soundend": Event;\n    "soundstart": Event;\n    "speechend": Event;\n    "speechstart": Event;\n    "start": Event;\n}\n\ninterface SpeechRecognition extends EventTarget {\n    continuous: boolean;\n    grammars: SpeechGrammarList;\n    interimResults: boolean;\n    lang: string;\n    maxAlternatives: number;\n    onaudioend: ((this: SpeechRecognition, ev: Event) => any) | null;\n    onaudiostart: ((this: SpeechRecognition, ev: Event) => any) | null;\n    onend: ((this: SpeechRecognition, ev: Event) => any) | null;\n    onerror: ((this: SpeechRecognition, ev: SpeechRecognitionError) => any) | null;\n    onnomatch: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;\n    onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;\n    onsoundend: ((this: SpeechRecognition, ev: Event) => any) | null;\n    onsoundstart: ((this: SpeechRecognition, ev: Event) => any) | null;\n    onspeechend: ((this: SpeechRecognition, ev: Event) => any) | null;\n    onspeechstart: ((this: SpeechRecognition, ev: Event) => any) | null;\n    onstart: ((this: SpeechRecognition, ev: Event) => any) | null;\n    serviceURI: string;\n    abort(): void;\n    start(): void;\n    stop(): void;\n    addEventListener<K extends keyof SpeechRecognitionEventMap>(type: K, listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SpeechRecognitionEventMap>(type: K, listener: (this: SpeechRecognition, ev: SpeechRecognitionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechRecognition: {\n    prototype: SpeechRecognition;\n    new(): SpeechRecognition;\n};\n\ninterface SpeechRecognitionAlternative {\n    readonly confidence: number;\n    readonly transcript: string;\n}\n\ndeclare var SpeechRecognitionAlternative: {\n    prototype: SpeechRecognitionAlternative;\n    new(): SpeechRecognitionAlternative;\n};\n\ninterface SpeechRecognitionError extends Event {\n    readonly error: SpeechRecognitionErrorCode;\n    readonly message: string;\n}\n\ndeclare var SpeechRecognitionError: {\n    prototype: SpeechRecognitionError;\n    new(): SpeechRecognitionError;\n};\n\ninterface SpeechRecognitionEvent extends Event {\n    readonly emma: Document | null;\n    readonly interpretation: any;\n    readonly resultIndex: number;\n    readonly results: SpeechRecognitionResultList;\n}\n\ndeclare var SpeechRecognitionEvent: {\n    prototype: SpeechRecognitionEvent;\n    new(): SpeechRecognitionEvent;\n};\n\ninterface SpeechRecognitionResult {\n    readonly isFinal: boolean;\n    readonly length: number;\n    item(index: number): SpeechRecognitionAlternative;\n    [index: number]: SpeechRecognitionAlternative;\n}\n\ndeclare var SpeechRecognitionResult: {\n    prototype: SpeechRecognitionResult;\n    new(): SpeechRecognitionResult;\n};\n\ninterface SpeechRecognitionResultList {\n    readonly length: number;\n    item(index: number): SpeechRecognitionResult;\n    [index: number]: SpeechRecognitionResult;\n}\n\ndeclare var SpeechRecognitionResultList: {\n    prototype: SpeechRecognitionResultList;\n    new(): SpeechRecognitionResultList;\n};\n\ninterface SpeechSynthesisEventMap {\n    "voiceschanged": Event;\n}\n\ninterface SpeechSynthesis extends EventTarget {\n    onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;\n    readonly paused: boolean;\n    readonly pending: boolean;\n    readonly speaking: boolean;\n    cancel(): void;\n    getVoices(): SpeechSynthesisVoice[];\n    pause(): void;\n    resume(): void;\n    speak(utterance: SpeechSynthesisUtterance): void;\n    addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechSynthesis: {\n    prototype: SpeechSynthesis;\n    new(): SpeechSynthesis;\n};\n\ninterface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {\n    readonly error: SpeechSynthesisErrorCode;\n}\n\ndeclare var SpeechSynthesisErrorEvent: {\n    prototype: SpeechSynthesisErrorEvent;\n    new(): SpeechSynthesisErrorEvent;\n};\n\ninterface SpeechSynthesisEvent extends Event {\n    readonly charIndex: number;\n    readonly elapsedTime: number;\n    readonly name: string;\n    readonly utterance: SpeechSynthesisUtterance;\n}\n\ndeclare var SpeechSynthesisEvent: {\n    prototype: SpeechSynthesisEvent;\n    new(): SpeechSynthesisEvent;\n};\n\ninterface SpeechSynthesisUtteranceEventMap {\n    "boundary": SpeechSynthesisEvent;\n    "end": SpeechSynthesisEvent;\n    "error": SpeechSynthesisErrorEvent;\n    "mark": SpeechSynthesisEvent;\n    "pause": SpeechSynthesisEvent;\n    "resume": SpeechSynthesisEvent;\n    "start": SpeechSynthesisEvent;\n}\n\ninterface SpeechSynthesisUtterance extends EventTarget {\n    lang: string;\n    onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n    onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n    onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;\n    onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n    onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n    onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n    onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;\n    pitch: number;\n    rate: number;\n    text: string;\n    voice: SpeechSynthesisVoice;\n    volume: number;\n    addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var SpeechSynthesisUtterance: {\n    prototype: SpeechSynthesisUtterance;\n    new(): SpeechSynthesisUtterance;\n    new(text: string): SpeechSynthesisUtterance;\n};\n\ninterface SpeechSynthesisVoice {\n    readonly default: boolean;\n    readonly lang: string;\n    readonly localService: boolean;\n    readonly name: string;\n    readonly voiceURI: string;\n}\n\ndeclare var SpeechSynthesisVoice: {\n    prototype: SpeechSynthesisVoice;\n    new(): SpeechSynthesisVoice;\n};\n\ninterface StaticRange extends AbstractRange {\n}\n\ndeclare var StaticRange: {\n    prototype: StaticRange;\n    new(): StaticRange;\n};\n\ninterface StereoPannerNode extends AudioNode {\n    readonly pan: AudioParam;\n}\n\ndeclare var StereoPannerNode: {\n    prototype: StereoPannerNode;\n    new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;\n};\n\ninterface Storage {\n    /**\n     * Returns the number of key/value pairs currently present in the list associated with the\n     * object.\n     */\n    readonly length: number;\n    /**\n     * Empties the list associated with the object of all key/value pairs, if there are any.\n     */\n    clear(): void;\n    /**\n     * value = storage[key]\n     */\n    getItem(key: string): string | null;\n    /**\n     * Returns the name of the nth key in the list, or null if n is greater\n     * than or equal to the number of key/value pairs in the object.\n     */\n    key(index: number): string | null;\n    /**\n     * delete storage[key]\n     */\n    removeItem(key: string): void;\n    /**\n     * storage[key] = value\n     */\n    setItem(key: string, value: string): void;\n    [name: string]: any;\n}\n\ndeclare var Storage: {\n    prototype: Storage;\n    new(): Storage;\n};\n\ninterface StorageEvent extends Event {\n    /**\n     * Returns the key of the storage item being changed.\n     */\n    readonly key: string | null;\n    /**\n     * Returns the new value of the key of the storage item whose value is being changed.\n     */\n    readonly newValue: string | null;\n    /**\n     * Returns the old value of the key of the storage item whose value is being changed.\n     */\n    readonly oldValue: string | null;\n    /**\n     * Returns the Storage object that was affected.\n     */\n    readonly storageArea: Storage | null;\n    /**\n     * Returns the URL of the document whose storage item changed.\n     */\n    readonly url: string;\n}\n\ndeclare var StorageEvent: {\n    prototype: StorageEvent;\n    new(type: string, eventInitDict?: StorageEventInit): StorageEvent;\n};\n\ninterface StorageManager {\n    estimate(): Promise<StorageEstimate>;\n    persist(): Promise<boolean>;\n    persisted(): Promise<boolean>;\n}\n\ndeclare var StorageManager: {\n    prototype: StorageManager;\n    new(): StorageManager;\n};\n\ninterface StyleMedia {\n    readonly type: string;\n    matchMedium(mediaquery: string): boolean;\n}\n\ndeclare var StyleMedia: {\n    prototype: StyleMedia;\n    new(): StyleMedia;\n};\n\ninterface StyleSheet {\n    disabled: boolean;\n    readonly href: string | null;\n    readonly media: MediaList;\n    readonly ownerNode: Node;\n    readonly parentStyleSheet: StyleSheet | null;\n    readonly title: string | null;\n    readonly type: string;\n}\n\ndeclare var StyleSheet: {\n    prototype: StyleSheet;\n    new(): StyleSheet;\n};\n\ninterface StyleSheetList {\n    readonly length: number;\n    item(index: number): StyleSheet | null;\n    [index: number]: StyleSheet;\n}\n\ndeclare var StyleSheetList: {\n    prototype: StyleSheetList;\n    new(): StyleSheetList;\n};\n\ninterface SubtleCrypto {\n    decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;\n    deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike<ArrayBuffer>;\n    deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n    digest(algorithm: string | Algorithm, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;\n    encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;\n    exportKey(format: "jwk", key: CryptoKey): PromiseLike<JsonWebKey>;\n    exportKey(format: "raw" | "pkcs8" | "spki", key: CryptoKey): PromiseLike<ArrayBuffer>;\n    exportKey(format: string, key: CryptoKey): PromiseLike<JsonWebKey | ArrayBuffer>;\n    generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair | CryptoKey>;\n    generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair>;\n    generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n    importKey(format: "jwk", keyData: JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n    importKey(format: "raw" | "pkcs8" | "spki", keyData: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n    importKey(format: string, keyData: JsonWebKey | Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams | AesKeyAlgorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n    sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<ArrayBuffer>;\n    unwrapKey(format: string, wrappedKey: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>;\n    verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer, data: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer): PromiseLike<boolean>;\n    wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | Algorithm): PromiseLike<ArrayBuffer>;\n}\n\ndeclare var SubtleCrypto: {\n    prototype: SubtleCrypto;\n    new(): SubtleCrypto;\n};\n\ninterface SyncManager {\n    getTags(): Promise<string[]>;\n    register(tag: string): Promise<void>;\n}\n\ndeclare var SyncManager: {\n    prototype: SyncManager;\n    new(): SyncManager;\n};\n\ninterface Text extends CharacterData, Slotable {\n    readonly assignedSlot: HTMLSlotElement | null;\n    /**\n     * Returns the combined data of all direct Text node siblings.\n     */\n    readonly wholeText: string;\n    /**\n     * Splits data at the given offset and returns the remainder as Text node.\n     */\n    splitText(offset: number): Text;\n}\n\ndeclare var Text: {\n    prototype: Text;\n    new(data?: string): Text;\n};\n\ninterface TextDecoder {\n    /**\n     * Returns encoding\'s name, lowercased.\n     */\n    readonly encoding: string;\n    /**\n     * Returns true if error mode is "fatal", and false\n     * otherwise.\n     */\n    readonly fatal: boolean;\n    /**\n     * Returns true if ignore BOM flag is set, and false otherwise.\n     */\n    readonly ignoreBOM: boolean;\n    /**\n     * Returns the result of running encoding\'s decoder. The\n     * method can be invoked zero or more times with options\'s stream set to\n     * true, and then once without options\'s stream (or set to false), to process\n     * a fragmented stream. If the invocation without options\'s stream (or set to\n     * false) has no input, it\'s clearest to omit both arguments.\n     * var string = "", decoder = new TextDecoder(encoding), buffer;\n     * while(buffer = next_chunk()) {\n     * string += decoder.decode(buffer, {stream:true});\n     * }\n     * string += decoder.decode(); // end-of-stream\n     * If the error mode is "fatal" and encoding\'s decoder returns error, throws a TypeError.\n     */\n    decode(input?: BufferSource, options?: TextDecodeOptions): string;\n}\n\ndeclare var TextDecoder: {\n    prototype: TextDecoder;\n    new(label?: string, options?: TextDecoderOptions): TextDecoder;\n};\n\ninterface TextEncoder {\n    /**\n     * Returns "utf-8".\n     */\n    readonly encoding: string;\n    /**\n     * Returns the result of running UTF-8\'s encoder.\n     */\n    encode(input?: string): Uint8Array;\n}\n\ndeclare var TextEncoder: {\n    prototype: TextEncoder;\n    new(): TextEncoder;\n};\n\ninterface TextEvent extends UIEvent {\n    readonly data: string;\n    initTextEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, inputMethod: number, locale: string): void;\n    readonly DOM_INPUT_METHOD_DROP: number;\n    readonly DOM_INPUT_METHOD_HANDWRITING: number;\n    readonly DOM_INPUT_METHOD_IME: number;\n    readonly DOM_INPUT_METHOD_KEYBOARD: number;\n    readonly DOM_INPUT_METHOD_MULTIMODAL: number;\n    readonly DOM_INPUT_METHOD_OPTION: number;\n    readonly DOM_INPUT_METHOD_PASTE: number;\n    readonly DOM_INPUT_METHOD_SCRIPT: number;\n    readonly DOM_INPUT_METHOD_UNKNOWN: number;\n    readonly DOM_INPUT_METHOD_VOICE: number;\n}\n\ndeclare var TextEvent: {\n    prototype: TextEvent;\n    new(): TextEvent;\n    readonly DOM_INPUT_METHOD_DROP: number;\n    readonly DOM_INPUT_METHOD_HANDWRITING: number;\n    readonly DOM_INPUT_METHOD_IME: number;\n    readonly DOM_INPUT_METHOD_KEYBOARD: number;\n    readonly DOM_INPUT_METHOD_MULTIMODAL: number;\n    readonly DOM_INPUT_METHOD_OPTION: number;\n    readonly DOM_INPUT_METHOD_PASTE: number;\n    readonly DOM_INPUT_METHOD_SCRIPT: number;\n    readonly DOM_INPUT_METHOD_UNKNOWN: number;\n    readonly DOM_INPUT_METHOD_VOICE: number;\n};\n\ninterface TextMetrics {\n    readonly actualBoundingBoxAscent: number;\n    readonly actualBoundingBoxDescent: number;\n    readonly actualBoundingBoxLeft: number;\n    readonly actualBoundingBoxRight: number;\n    readonly alphabeticBaseline: number;\n    readonly emHeightAscent: number;\n    readonly emHeightDescent: number;\n    readonly fontBoundingBoxAscent: number;\n    readonly fontBoundingBoxDescent: number;\n    readonly hangingBaseline: number;\n    /**\n     * Returns the measurement described below.\n     */\n    readonly ideographicBaseline: number;\n    readonly width: number;\n}\n\ndeclare var TextMetrics: {\n    prototype: TextMetrics;\n    new(): TextMetrics;\n};\n\ninterface TextTrackEventMap {\n    "cuechange": Event;\n    "error": Event;\n    "load": Event;\n}\n\ninterface TextTrack extends EventTarget {\n    readonly activeCues: TextTrackCueList;\n    readonly cues: TextTrackCueList;\n    readonly inBandMetadataTrackDispatchType: string;\n    readonly kind: string;\n    readonly label: string;\n    readonly language: string;\n    mode: TextTrackMode | number;\n    oncuechange: ((this: TextTrack, ev: Event) => any) | null;\n    onerror: ((this: TextTrack, ev: Event) => any) | null;\n    onload: ((this: TextTrack, ev: Event) => any) | null;\n    readonly readyState: number;\n    addCue(cue: TextTrackCue): void;\n    removeCue(cue: TextTrackCue): void;\n    readonly DISABLED: number;\n    readonly ERROR: number;\n    readonly HIDDEN: number;\n    readonly LOADED: number;\n    readonly LOADING: number;\n    readonly NONE: number;\n    readonly SHOWING: number;\n    addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var TextTrack: {\n    prototype: TextTrack;\n    new(): TextTrack;\n    readonly DISABLED: number;\n    readonly ERROR: number;\n    readonly HIDDEN: number;\n    readonly LOADED: number;\n    readonly LOADING: number;\n    readonly NONE: number;\n    readonly SHOWING: number;\n};\n\ninterface TextTrackCueEventMap {\n    "enter": Event;\n    "exit": Event;\n}\n\ninterface TextTrackCue extends EventTarget {\n    endTime: number;\n    id: string;\n    onenter: ((this: TextTrackCue, ev: Event) => any) | null;\n    onexit: ((this: TextTrackCue, ev: Event) => any) | null;\n    pauseOnExit: boolean;\n    startTime: number;\n    text: string;\n    readonly track: TextTrack;\n    getCueAsHTML(): DocumentFragment;\n    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var TextTrackCue: {\n    prototype: TextTrackCue;\n    new(startTime: number, endTime: number, text: string): TextTrackCue;\n};\n\ninterface TextTrackCueList {\n    readonly length: number;\n    getCueById(id: string): TextTrackCue;\n    item(index: number): TextTrackCue;\n    [index: number]: TextTrackCue;\n}\n\ndeclare var TextTrackCueList: {\n    prototype: TextTrackCueList;\n    new(): TextTrackCueList;\n};\n\ninterface TextTrackListEventMap {\n    "addtrack": TrackEvent;\n}\n\ninterface TextTrackList extends EventTarget {\n    readonly length: number;\n    onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;\n    item(index: number): TextTrack;\n    addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n    [index: number]: TextTrack;\n}\n\ndeclare var TextTrackList: {\n    prototype: TextTrackList;\n    new(): TextTrackList;\n};\n\ninterface TimeRanges {\n    readonly length: number;\n    end(index: number): number;\n    start(index: number): number;\n}\n\ndeclare var TimeRanges: {\n    prototype: TimeRanges;\n    new(): TimeRanges;\n};\n\ninterface Touch {\n    readonly altitudeAngle: number;\n    readonly azimuthAngle: number;\n    readonly clientX: number;\n    readonly clientY: number;\n    readonly force: number;\n    readonly identifier: number;\n    readonly pageX: number;\n    readonly pageY: number;\n    readonly radiusX: number;\n    readonly radiusY: number;\n    readonly rotationAngle: number;\n    readonly screenX: number;\n    readonly screenY: number;\n    readonly target: EventTarget;\n    readonly touchType: TouchType;\n}\n\ndeclare var Touch: {\n    prototype: Touch;\n    new(touchInitDict: TouchInit): Touch;\n};\n\ninterface TouchEvent extends UIEvent {\n    readonly altKey: boolean;\n    readonly changedTouches: TouchList;\n    readonly ctrlKey: boolean;\n    readonly metaKey: boolean;\n    readonly shiftKey: boolean;\n    readonly targetTouches: TouchList;\n    readonly touches: TouchList;\n}\n\ndeclare var TouchEvent: {\n    prototype: TouchEvent;\n    new(type: string, eventInitDict?: TouchEventInit): TouchEvent;\n};\n\ninterface TouchList {\n    readonly length: number;\n    item(index: number): Touch | null;\n    [index: number]: Touch;\n}\n\ndeclare var TouchList: {\n    prototype: TouchList;\n    new(): TouchList;\n};\n\ninterface TrackEvent extends Event {\n    readonly track: VideoTrack | AudioTrack | TextTrack | null;\n}\n\ndeclare var TrackEvent: {\n    prototype: TrackEvent;\n    new(typeArg: string, eventInitDict?: TrackEventInit): TrackEvent;\n};\n\ninterface TransitionEvent extends Event {\n    readonly elapsedTime: number;\n    readonly propertyName: string;\n    readonly pseudoElement: string;\n}\n\ndeclare var TransitionEvent: {\n    prototype: TransitionEvent;\n    new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;\n};\n\ninterface TreeWalker {\n    currentNode: Node;\n    readonly filter: NodeFilter | null;\n    readonly root: Node;\n    readonly whatToShow: number;\n    firstChild(): Node | null;\n    lastChild(): Node | null;\n    nextNode(): Node | null;\n    nextSibling(): Node | null;\n    parentNode(): Node | null;\n    previousNode(): Node | null;\n    previousSibling(): Node | null;\n}\n\ndeclare var TreeWalker: {\n    prototype: TreeWalker;\n    new(): TreeWalker;\n};\n\ninterface UIEvent extends Event {\n    readonly detail: number;\n    readonly view: Window;\n    initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number): void;\n}\n\ndeclare var UIEvent: {\n    prototype: UIEvent;\n    new(typeArg: string, eventInitDict?: UIEventInit): UIEvent;\n};\n\ninterface URL {\n    hash: string;\n    host: string;\n    hostname: string;\n    href: string;\n    readonly origin: string;\n    password: string;\n    pathname: string;\n    port: string;\n    protocol: string;\n    search: string;\n    readonly searchParams: URLSearchParams;\n    username: string;\n    toJSON(): string;\n}\n\ndeclare var URL: {\n    prototype: URL;\n    new(url: string, base?: string | URL): URL;\n    createObjectURL(object: any): string;\n    revokeObjectURL(url: string): void;\n};\n\ntype webkitURL = URL;\ndeclare var webkitURL: typeof URL;\n\ninterface URLSearchParams {\n    /**\n     * Appends a specified key/value pair as a new search parameter.\n     */\n    append(name: string, value: string): void;\n    /**\n     * Deletes the given search parameter, and its associated value, from the list of all search parameters.\n     */\n    delete(name: string): void;\n    /**\n     * Returns the first value associated to the given search parameter.\n     */\n    get(name: string): string | null;\n    /**\n     * Returns all the values association with a given search parameter.\n     */\n    getAll(name: string): string[];\n    /**\n     * Returns a Boolean indicating if such a search parameter exists.\n     */\n    has(name: string): boolean;\n    /**\n     * Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.\n     */\n    set(name: string, value: string): void;\n    sort(): void;\n    forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;\n}\n\ndeclare var URLSearchParams: {\n    prototype: URLSearchParams;\n    new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;\n};\n\ninterface VRDisplay extends EventTarget {\n    readonly capabilities: VRDisplayCapabilities;\n    depthFar: number;\n    depthNear: number;\n    readonly displayId: number;\n    readonly displayName: string;\n    readonly isConnected: boolean;\n    readonly isPresenting: boolean;\n    readonly stageParameters: VRStageParameters | null;\n    cancelAnimationFrame(handle: number): void;\n    exitPresent(): Promise<void>;\n    getEyeParameters(whichEye: string): VREyeParameters;\n    getFrameData(frameData: VRFrameData): boolean;\n    getLayers(): VRLayer[];\n    /** @deprecated */\n    getPose(): VRPose;\n    requestAnimationFrame(callback: FrameRequestCallback): number;\n    requestPresent(layers: VRLayer[]): Promise<void>;\n    resetPose(): void;\n    submitFrame(pose?: VRPose): void;\n}\n\ndeclare var VRDisplay: {\n    prototype: VRDisplay;\n    new(): VRDisplay;\n};\n\ninterface VRDisplayCapabilities {\n    readonly canPresent: boolean;\n    readonly hasExternalDisplay: boolean;\n    readonly hasOrientation: boolean;\n    readonly hasPosition: boolean;\n    readonly maxLayers: number;\n}\n\ndeclare var VRDisplayCapabilities: {\n    prototype: VRDisplayCapabilities;\n    new(): VRDisplayCapabilities;\n};\n\ninterface VRDisplayEvent extends Event {\n    readonly display: VRDisplay;\n    readonly reason: VRDisplayEventReason | null;\n}\n\ndeclare var VRDisplayEvent: {\n    prototype: VRDisplayEvent;\n    new(type: string, eventInitDict: VRDisplayEventInit): VRDisplayEvent;\n};\n\ninterface VREyeParameters {\n    /** @deprecated */\n    readonly fieldOfView: VRFieldOfView;\n    readonly offset: Float32Array;\n    readonly renderHeight: number;\n    readonly renderWidth: number;\n}\n\ndeclare var VREyeParameters: {\n    prototype: VREyeParameters;\n    new(): VREyeParameters;\n};\n\ninterface VRFieldOfView {\n    readonly downDegrees: number;\n    readonly leftDegrees: number;\n    readonly rightDegrees: number;\n    readonly upDegrees: number;\n}\n\ndeclare var VRFieldOfView: {\n    prototype: VRFieldOfView;\n    new(): VRFieldOfView;\n};\n\ninterface VRFrameData {\n    readonly leftProjectionMatrix: Float32Array;\n    readonly leftViewMatrix: Float32Array;\n    readonly pose: VRPose;\n    readonly rightProjectionMatrix: Float32Array;\n    readonly rightViewMatrix: Float32Array;\n    readonly timestamp: number;\n}\n\ndeclare var VRFrameData: {\n    prototype: VRFrameData;\n    new(): VRFrameData;\n};\n\ninterface VRPose {\n    readonly angularAcceleration: Float32Array | null;\n    readonly angularVelocity: Float32Array | null;\n    readonly linearAcceleration: Float32Array | null;\n    readonly linearVelocity: Float32Array | null;\n    readonly orientation: Float32Array | null;\n    readonly position: Float32Array | null;\n    readonly timestamp: number;\n}\n\ndeclare var VRPose: {\n    prototype: VRPose;\n    new(): VRPose;\n};\n\ninterface VTTCue extends TextTrackCue {\n    align: AlignSetting;\n    line: LineAndPositionSetting;\n    lineAlign: LineAlignSetting;\n    position: LineAndPositionSetting;\n    positionAlign: PositionAlignSetting;\n    region: VTTRegion | null;\n    size: number;\n    snapToLines: boolean;\n    text: string;\n    vertical: DirectionSetting;\n    getCueAsHTML(): DocumentFragment;\n    addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var VTTCue: {\n    prototype: VTTCue;\n    new(startTime: number, endTime: number, text: string): VTTCue;\n};\n\ninterface VTTRegion {\n    id: string;\n    lines: number;\n    regionAnchorX: number;\n    regionAnchorY: number;\n    scroll: ScrollSetting;\n    viewportAnchorX: number;\n    viewportAnchorY: number;\n    width: number;\n}\n\ndeclare var VTTRegion: {\n    prototype: VTTRegion;\n    new(): VTTRegion;\n};\n\ninterface ValidityState {\n    readonly badInput: boolean;\n    readonly customError: boolean;\n    readonly patternMismatch: boolean;\n    readonly rangeOverflow: boolean;\n    readonly rangeUnderflow: boolean;\n    readonly stepMismatch: boolean;\n    readonly tooLong: boolean;\n    readonly tooShort: boolean;\n    readonly typeMismatch: boolean;\n    readonly valid: boolean;\n    readonly valueMissing: boolean;\n}\n\ndeclare var ValidityState: {\n    prototype: ValidityState;\n    new(): ValidityState;\n};\n\ninterface VideoPlaybackQuality {\n    readonly corruptedVideoFrames: number;\n    readonly creationTime: number;\n    readonly droppedVideoFrames: number;\n    readonly totalFrameDelay: number;\n    readonly totalVideoFrames: number;\n}\n\ndeclare var VideoPlaybackQuality: {\n    prototype: VideoPlaybackQuality;\n    new(): VideoPlaybackQuality;\n};\n\ninterface VideoTrack {\n    readonly id: string;\n    kind: string;\n    readonly label: string;\n    language: string;\n    selected: boolean;\n    readonly sourceBuffer: SourceBuffer;\n}\n\ndeclare var VideoTrack: {\n    prototype: VideoTrack;\n    new(): VideoTrack;\n};\n\ninterface VideoTrackListEventMap {\n    "addtrack": TrackEvent;\n    "change": Event;\n    "removetrack": TrackEvent;\n}\n\ninterface VideoTrackList extends EventTarget {\n    readonly length: number;\n    onaddtrack: ((this: VideoTrackList, ev: TrackEvent) => any) | null;\n    onchange: ((this: VideoTrackList, ev: Event) => any) | null;\n    onremovetrack: ((this: VideoTrackList, ev: TrackEvent) => any) | null;\n    readonly selectedIndex: number;\n    getTrackById(id: string): VideoTrack | null;\n    item(index: number): VideoTrack;\n    addEventListener<K extends keyof VideoTrackListEventMap>(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof VideoTrackListEventMap>(type: K, listener: (this: VideoTrackList, ev: VideoTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n    [index: number]: VideoTrack;\n}\n\ndeclare var VideoTrackList: {\n    prototype: VideoTrackList;\n    new(): VideoTrackList;\n};\n\ninterface WEBGL_color_buffer_float {\n    readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: number;\n    readonly RGB32F_EXT: number;\n    readonly RGBA32F_EXT: number;\n    readonly UNSIGNED_NORMALIZED_EXT: number;\n}\n\ninterface WEBGL_compressed_texture_astc {\n    readonly COMPRESSED_RGBA_ASTC_10x10_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_10x5_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_10x6_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_10x8_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_12x10_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_12x12_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_4x4_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_5x4_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_5x5_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_6x5_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_6x6_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_8x5_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_8x6_KHR: number;\n    readonly COMPRESSED_RGBA_ASTC_8x8_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: number;\n    readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: number;\n    getSupportedProfiles(): string[];\n}\n\ninterface WEBGL_compressed_texture_s3tc {\n    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;\n    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;\n    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;\n    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;\n}\n\ndeclare var WEBGL_compressed_texture_s3tc: {\n    prototype: WEBGL_compressed_texture_s3tc;\n    new(): WEBGL_compressed_texture_s3tc;\n    readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: number;\n    readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: number;\n    readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: number;\n    readonly COMPRESSED_RGB_S3TC_DXT1_EXT: number;\n};\n\ninterface WEBGL_compressed_texture_s3tc_srgb {\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: number;\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: number;\n    readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: number;\n    readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: number;\n}\n\ninterface WEBGL_debug_renderer_info {\n    readonly UNMASKED_RENDERER_WEBGL: number;\n    readonly UNMASKED_VENDOR_WEBGL: number;\n}\n\ndeclare var WEBGL_debug_renderer_info: {\n    prototype: WEBGL_debug_renderer_info;\n    new(): WEBGL_debug_renderer_info;\n    readonly UNMASKED_RENDERER_WEBGL: number;\n    readonly UNMASKED_VENDOR_WEBGL: number;\n};\n\ninterface WEBGL_debug_shaders {\n    getTranslatedShaderSource(shader: WebGLShader): string;\n}\n\ninterface WEBGL_depth_texture {\n    readonly UNSIGNED_INT_24_8_WEBGL: number;\n}\n\ndeclare var WEBGL_depth_texture: {\n    prototype: WEBGL_depth_texture;\n    new(): WEBGL_depth_texture;\n    readonly UNSIGNED_INT_24_8_WEBGL: number;\n};\n\ninterface WEBGL_draw_buffers {\n    readonly COLOR_ATTACHMENT0_WEBGL: number;\n    readonly COLOR_ATTACHMENT10_WEBGL: number;\n    readonly COLOR_ATTACHMENT11_WEBGL: number;\n    readonly COLOR_ATTACHMENT12_WEBGL: number;\n    readonly COLOR_ATTACHMENT13_WEBGL: number;\n    readonly COLOR_ATTACHMENT14_WEBGL: number;\n    readonly COLOR_ATTACHMENT15_WEBGL: number;\n    readonly COLOR_ATTACHMENT1_WEBGL: number;\n    readonly COLOR_ATTACHMENT2_WEBGL: number;\n    readonly COLOR_ATTACHMENT3_WEBGL: number;\n    readonly COLOR_ATTACHMENT4_WEBGL: number;\n    readonly COLOR_ATTACHMENT5_WEBGL: number;\n    readonly COLOR_ATTACHMENT6_WEBGL: number;\n    readonly COLOR_ATTACHMENT7_WEBGL: number;\n    readonly COLOR_ATTACHMENT8_WEBGL: number;\n    readonly COLOR_ATTACHMENT9_WEBGL: number;\n    readonly DRAW_BUFFER0_WEBGL: number;\n    readonly DRAW_BUFFER10_WEBGL: number;\n    readonly DRAW_BUFFER11_WEBGL: number;\n    readonly DRAW_BUFFER12_WEBGL: number;\n    readonly DRAW_BUFFER13_WEBGL: number;\n    readonly DRAW_BUFFER14_WEBGL: number;\n    readonly DRAW_BUFFER15_WEBGL: number;\n    readonly DRAW_BUFFER1_WEBGL: number;\n    readonly DRAW_BUFFER2_WEBGL: number;\n    readonly DRAW_BUFFER3_WEBGL: number;\n    readonly DRAW_BUFFER4_WEBGL: number;\n    readonly DRAW_BUFFER5_WEBGL: number;\n    readonly DRAW_BUFFER6_WEBGL: number;\n    readonly DRAW_BUFFER7_WEBGL: number;\n    readonly DRAW_BUFFER8_WEBGL: number;\n    readonly DRAW_BUFFER9_WEBGL: number;\n    readonly MAX_COLOR_ATTACHMENTS_WEBGL: number;\n    readonly MAX_DRAW_BUFFERS_WEBGL: number;\n    drawBuffersWEBGL(buffers: number[]): void;\n}\n\ninterface WEBGL_lose_context {\n    loseContext(): void;\n    restoreContext(): void;\n}\n\ninterface WaveShaperNode extends AudioNode {\n    curve: Float32Array | null;\n    oversample: OverSampleType;\n}\n\ndeclare var WaveShaperNode: {\n    prototype: WaveShaperNode;\n    new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;\n};\n\ninterface WebAuthentication {\n    getAssertion(assertionChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: AssertionOptions): Promise<WebAuthnAssertion>;\n    makeCredential(accountInformation: Account, cryptoParameters: ScopedCredentialParameters[], attestationChallenge: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, options?: ScopedCredentialOptions): Promise<ScopedCredentialInfo>;\n}\n\ndeclare var WebAuthentication: {\n    prototype: WebAuthentication;\n    new(): WebAuthentication;\n};\n\ninterface WebAuthnAssertion {\n    readonly authenticatorData: ArrayBuffer;\n    readonly clientData: ArrayBuffer;\n    readonly credential: ScopedCredential;\n    readonly signature: ArrayBuffer;\n}\n\ndeclare var WebAuthnAssertion: {\n    prototype: WebAuthnAssertion;\n    new(): WebAuthnAssertion;\n};\n\ninterface WebGLActiveInfo {\n    readonly name: string;\n    readonly size: GLint;\n    readonly type: GLenum;\n}\n\ndeclare var WebGLActiveInfo: {\n    prototype: WebGLActiveInfo;\n    new(): WebGLActiveInfo;\n};\n\ninterface WebGLBuffer extends WebGLObject {\n}\n\ndeclare var WebGLBuffer: {\n    prototype: WebGLBuffer;\n    new(): WebGLBuffer;\n};\n\ninterface WebGLContextEvent extends Event {\n    readonly statusMessage: string;\n}\n\ndeclare var WebGLContextEvent: {\n    prototype: WebGLContextEvent;\n    new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;\n};\n\ninterface WebGLFramebuffer extends WebGLObject {\n}\n\ndeclare var WebGLFramebuffer: {\n    prototype: WebGLFramebuffer;\n    new(): WebGLFramebuffer;\n};\n\ninterface WebGLObject {\n}\n\ndeclare var WebGLObject: {\n    prototype: WebGLObject;\n    new(): WebGLObject;\n};\n\ninterface WebGLProgram extends WebGLObject {\n}\n\ndeclare var WebGLProgram: {\n    prototype: WebGLProgram;\n    new(): WebGLProgram;\n};\n\ninterface WebGLRenderbuffer extends WebGLObject {\n}\n\ndeclare var WebGLRenderbuffer: {\n    prototype: WebGLRenderbuffer;\n    new(): WebGLRenderbuffer;\n};\n\ninterface WebGLRenderingContext extends WebGLRenderingContextBase {\n}\n\ndeclare var WebGLRenderingContext: {\n    prototype: WebGLRenderingContext;\n    new(): WebGLRenderingContext;\n    readonly ACTIVE_ATTRIBUTES: GLenum;\n    readonly ACTIVE_TEXTURE: GLenum;\n    readonly ACTIVE_UNIFORMS: GLenum;\n    readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n    readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n    readonly ALPHA: GLenum;\n    readonly ALPHA_BITS: GLenum;\n    readonly ALWAYS: GLenum;\n    readonly ARRAY_BUFFER: GLenum;\n    readonly ARRAY_BUFFER_BINDING: GLenum;\n    readonly ATTACHED_SHADERS: GLenum;\n    readonly BACK: GLenum;\n    readonly BLEND: GLenum;\n    readonly BLEND_COLOR: GLenum;\n    readonly BLEND_DST_ALPHA: GLenum;\n    readonly BLEND_DST_RGB: GLenum;\n    readonly BLEND_EQUATION: GLenum;\n    readonly BLEND_EQUATION_ALPHA: GLenum;\n    readonly BLEND_EQUATION_RGB: GLenum;\n    readonly BLEND_SRC_ALPHA: GLenum;\n    readonly BLEND_SRC_RGB: GLenum;\n    readonly BLUE_BITS: GLenum;\n    readonly BOOL: GLenum;\n    readonly BOOL_VEC2: GLenum;\n    readonly BOOL_VEC3: GLenum;\n    readonly BOOL_VEC4: GLenum;\n    readonly BROWSER_DEFAULT_WEBGL: GLenum;\n    readonly BUFFER_SIZE: GLenum;\n    readonly BUFFER_USAGE: GLenum;\n    readonly BYTE: GLenum;\n    readonly CCW: GLenum;\n    readonly CLAMP_TO_EDGE: GLenum;\n    readonly COLOR_ATTACHMENT0: GLenum;\n    readonly COLOR_BUFFER_BIT: GLenum;\n    readonly COLOR_CLEAR_VALUE: GLenum;\n    readonly COLOR_WRITEMASK: GLenum;\n    readonly COMPILE_STATUS: GLenum;\n    readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n    readonly CONSTANT_ALPHA: GLenum;\n    readonly CONSTANT_COLOR: GLenum;\n    readonly CONTEXT_LOST_WEBGL: GLenum;\n    readonly CULL_FACE: GLenum;\n    readonly CULL_FACE_MODE: GLenum;\n    readonly CURRENT_PROGRAM: GLenum;\n    readonly CURRENT_VERTEX_ATTRIB: GLenum;\n    readonly CW: GLenum;\n    readonly DECR: GLenum;\n    readonly DECR_WRAP: GLenum;\n    readonly DELETE_STATUS: GLenum;\n    readonly DEPTH_ATTACHMENT: GLenum;\n    readonly DEPTH_BITS: GLenum;\n    readonly DEPTH_BUFFER_BIT: GLenum;\n    readonly DEPTH_CLEAR_VALUE: GLenum;\n    readonly DEPTH_COMPONENT: GLenum;\n    readonly DEPTH_COMPONENT16: GLenum;\n    readonly DEPTH_FUNC: GLenum;\n    readonly DEPTH_RANGE: GLenum;\n    readonly DEPTH_STENCIL: GLenum;\n    readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n    readonly DEPTH_TEST: GLenum;\n    readonly DEPTH_WRITEMASK: GLenum;\n    readonly DITHER: GLenum;\n    readonly DONT_CARE: GLenum;\n    readonly DST_ALPHA: GLenum;\n    readonly DST_COLOR: GLenum;\n    readonly DYNAMIC_DRAW: GLenum;\n    readonly ELEMENT_ARRAY_BUFFER: GLenum;\n    readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n    readonly EQUAL: GLenum;\n    readonly FASTEST: GLenum;\n    readonly FLOAT: GLenum;\n    readonly FLOAT_MAT2: GLenum;\n    readonly FLOAT_MAT3: GLenum;\n    readonly FLOAT_MAT4: GLenum;\n    readonly FLOAT_VEC2: GLenum;\n    readonly FLOAT_VEC3: GLenum;\n    readonly FLOAT_VEC4: GLenum;\n    readonly FRAGMENT_SHADER: GLenum;\n    readonly FRAMEBUFFER: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n    readonly FRAMEBUFFER_BINDING: GLenum;\n    readonly FRAMEBUFFER_COMPLETE: GLenum;\n    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n    readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n    readonly FRONT: GLenum;\n    readonly FRONT_AND_BACK: GLenum;\n    readonly FRONT_FACE: GLenum;\n    readonly FUNC_ADD: GLenum;\n    readonly FUNC_REVERSE_SUBTRACT: GLenum;\n    readonly FUNC_SUBTRACT: GLenum;\n    readonly GENERATE_MIPMAP_HINT: GLenum;\n    readonly GEQUAL: GLenum;\n    readonly GREATER: GLenum;\n    readonly GREEN_BITS: GLenum;\n    readonly HIGH_FLOAT: GLenum;\n    readonly HIGH_INT: GLenum;\n    readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n    readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n    readonly INCR: GLenum;\n    readonly INCR_WRAP: GLenum;\n    readonly INT: GLenum;\n    readonly INT_VEC2: GLenum;\n    readonly INT_VEC3: GLenum;\n    readonly INT_VEC4: GLenum;\n    readonly INVALID_ENUM: GLenum;\n    readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n    readonly INVALID_OPERATION: GLenum;\n    readonly INVALID_VALUE: GLenum;\n    readonly INVERT: GLenum;\n    readonly KEEP: GLenum;\n    readonly LEQUAL: GLenum;\n    readonly LESS: GLenum;\n    readonly LINEAR: GLenum;\n    readonly LINEAR_MIPMAP_LINEAR: GLenum;\n    readonly LINEAR_MIPMAP_NEAREST: GLenum;\n    readonly LINES: GLenum;\n    readonly LINE_LOOP: GLenum;\n    readonly LINE_STRIP: GLenum;\n    readonly LINE_WIDTH: GLenum;\n    readonly LINK_STATUS: GLenum;\n    readonly LOW_FLOAT: GLenum;\n    readonly LOW_INT: GLenum;\n    readonly LUMINANCE: GLenum;\n    readonly LUMINANCE_ALPHA: GLenum;\n    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n    readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n    readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n    readonly MAX_RENDERBUFFER_SIZE: GLenum;\n    readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n    readonly MAX_TEXTURE_SIZE: GLenum;\n    readonly MAX_VARYING_VECTORS: GLenum;\n    readonly MAX_VERTEX_ATTRIBS: GLenum;\n    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n    readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n    readonly MAX_VIEWPORT_DIMS: GLenum;\n    readonly MEDIUM_FLOAT: GLenum;\n    readonly MEDIUM_INT: GLenum;\n    readonly MIRRORED_REPEAT: GLenum;\n    readonly NEAREST: GLenum;\n    readonly NEAREST_MIPMAP_LINEAR: GLenum;\n    readonly NEAREST_MIPMAP_NEAREST: GLenum;\n    readonly NEVER: GLenum;\n    readonly NICEST: GLenum;\n    readonly NONE: GLenum;\n    readonly NOTEQUAL: GLenum;\n    readonly NO_ERROR: GLenum;\n    readonly ONE: GLenum;\n    readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n    readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n    readonly ONE_MINUS_DST_ALPHA: GLenum;\n    readonly ONE_MINUS_DST_COLOR: GLenum;\n    readonly ONE_MINUS_SRC_ALPHA: GLenum;\n    readonly ONE_MINUS_SRC_COLOR: GLenum;\n    readonly OUT_OF_MEMORY: GLenum;\n    readonly PACK_ALIGNMENT: GLenum;\n    readonly POINTS: GLenum;\n    readonly POLYGON_OFFSET_FACTOR: GLenum;\n    readonly POLYGON_OFFSET_FILL: GLenum;\n    readonly POLYGON_OFFSET_UNITS: GLenum;\n    readonly RED_BITS: GLenum;\n    readonly RENDERBUFFER: GLenum;\n    readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n    readonly RENDERBUFFER_BINDING: GLenum;\n    readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n    readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n    readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n    readonly RENDERBUFFER_HEIGHT: GLenum;\n    readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n    readonly RENDERBUFFER_RED_SIZE: GLenum;\n    readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n    readonly RENDERBUFFER_WIDTH: GLenum;\n    readonly RENDERER: GLenum;\n    readonly REPEAT: GLenum;\n    readonly REPLACE: GLenum;\n    readonly RGB: GLenum;\n    readonly RGB565: GLenum;\n    readonly RGB5_A1: GLenum;\n    readonly RGBA: GLenum;\n    readonly RGBA4: GLenum;\n    readonly SAMPLER_2D: GLenum;\n    readonly SAMPLER_CUBE: GLenum;\n    readonly SAMPLES: GLenum;\n    readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n    readonly SAMPLE_BUFFERS: GLenum;\n    readonly SAMPLE_COVERAGE: GLenum;\n    readonly SAMPLE_COVERAGE_INVERT: GLenum;\n    readonly SAMPLE_COVERAGE_VALUE: GLenum;\n    readonly SCISSOR_BOX: GLenum;\n    readonly SCISSOR_TEST: GLenum;\n    readonly SHADER_TYPE: GLenum;\n    readonly SHADING_LANGUAGE_VERSION: GLenum;\n    readonly SHORT: GLenum;\n    readonly SRC_ALPHA: GLenum;\n    readonly SRC_ALPHA_SATURATE: GLenum;\n    readonly SRC_COLOR: GLenum;\n    readonly STATIC_DRAW: GLenum;\n    readonly STENCIL_ATTACHMENT: GLenum;\n    readonly STENCIL_BACK_FAIL: GLenum;\n    readonly STENCIL_BACK_FUNC: GLenum;\n    readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n    readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n    readonly STENCIL_BACK_REF: GLenum;\n    readonly STENCIL_BACK_VALUE_MASK: GLenum;\n    readonly STENCIL_BACK_WRITEMASK: GLenum;\n    readonly STENCIL_BITS: GLenum;\n    readonly STENCIL_BUFFER_BIT: GLenum;\n    readonly STENCIL_CLEAR_VALUE: GLenum;\n    readonly STENCIL_FAIL: GLenum;\n    readonly STENCIL_FUNC: GLenum;\n    readonly STENCIL_INDEX8: GLenum;\n    readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n    readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n    readonly STENCIL_REF: GLenum;\n    readonly STENCIL_TEST: GLenum;\n    readonly STENCIL_VALUE_MASK: GLenum;\n    readonly STENCIL_WRITEMASK: GLenum;\n    readonly STREAM_DRAW: GLenum;\n    readonly SUBPIXEL_BITS: GLenum;\n    readonly TEXTURE: GLenum;\n    readonly TEXTURE0: GLenum;\n    readonly TEXTURE1: GLenum;\n    readonly TEXTURE10: GLenum;\n    readonly TEXTURE11: GLenum;\n    readonly TEXTURE12: GLenum;\n    readonly TEXTURE13: GLenum;\n    readonly TEXTURE14: GLenum;\n    readonly TEXTURE15: GLenum;\n    readonly TEXTURE16: GLenum;\n    readonly TEXTURE17: GLenum;\n    readonly TEXTURE18: GLenum;\n    readonly TEXTURE19: GLenum;\n    readonly TEXTURE2: GLenum;\n    readonly TEXTURE20: GLenum;\n    readonly TEXTURE21: GLenum;\n    readonly TEXTURE22: GLenum;\n    readonly TEXTURE23: GLenum;\n    readonly TEXTURE24: GLenum;\n    readonly TEXTURE25: GLenum;\n    readonly TEXTURE26: GLenum;\n    readonly TEXTURE27: GLenum;\n    readonly TEXTURE28: GLenum;\n    readonly TEXTURE29: GLenum;\n    readonly TEXTURE3: GLenum;\n    readonly TEXTURE30: GLenum;\n    readonly TEXTURE31: GLenum;\n    readonly TEXTURE4: GLenum;\n    readonly TEXTURE5: GLenum;\n    readonly TEXTURE6: GLenum;\n    readonly TEXTURE7: GLenum;\n    readonly TEXTURE8: GLenum;\n    readonly TEXTURE9: GLenum;\n    readonly TEXTURE_2D: GLenum;\n    readonly TEXTURE_BINDING_2D: GLenum;\n    readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n    readonly TEXTURE_CUBE_MAP: GLenum;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n    readonly TEXTURE_MAG_FILTER: GLenum;\n    readonly TEXTURE_MIN_FILTER: GLenum;\n    readonly TEXTURE_WRAP_S: GLenum;\n    readonly TEXTURE_WRAP_T: GLenum;\n    readonly TRIANGLES: GLenum;\n    readonly TRIANGLE_FAN: GLenum;\n    readonly TRIANGLE_STRIP: GLenum;\n    readonly UNPACK_ALIGNMENT: GLenum;\n    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n    readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n    readonly UNSIGNED_BYTE: GLenum;\n    readonly UNSIGNED_INT: GLenum;\n    readonly UNSIGNED_SHORT: GLenum;\n    readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n    readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n    readonly UNSIGNED_SHORT_5_6_5: GLenum;\n    readonly VALIDATE_STATUS: GLenum;\n    readonly VENDOR: GLenum;\n    readonly VERSION: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n    readonly VERTEX_SHADER: GLenum;\n    readonly VIEWPORT: GLenum;\n    readonly ZERO: GLenum;\n};\n\ninterface WebGLRenderingContextBase {\n    readonly canvas: HTMLCanvasElement;\n    readonly drawingBufferHeight: GLsizei;\n    readonly drawingBufferWidth: GLsizei;\n    activeTexture(texture: GLenum): void;\n    attachShader(program: WebGLProgram, shader: WebGLShader): void;\n    bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;\n    bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;\n    bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;\n    bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n    bindTexture(target: GLenum, texture: WebGLTexture | null): void;\n    blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n    blendEquation(mode: GLenum): void;\n    blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;\n    blendFunc(sfactor: GLenum, dfactor: GLenum): void;\n    blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;\n    bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;\n    bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;\n    bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;\n    checkFramebufferStatus(target: GLenum): GLenum;\n    clear(mask: GLbitfield): void;\n    clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;\n    clearDepth(depth: GLclampf): void;\n    clearStencil(s: GLint): void;\n    colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;\n    compileShader(shader: WebGLShader): void;\n    compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;\n    compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;\n    copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;\n    copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    createBuffer(): WebGLBuffer | null;\n    createFramebuffer(): WebGLFramebuffer | null;\n    createProgram(): WebGLProgram | null;\n    createRenderbuffer(): WebGLRenderbuffer | null;\n    createShader(type: GLenum): WebGLShader | null;\n    createTexture(): WebGLTexture | null;\n    cullFace(mode: GLenum): void;\n    deleteBuffer(buffer: WebGLBuffer | null): void;\n    deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;\n    deleteProgram(program: WebGLProgram | null): void;\n    deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;\n    deleteShader(shader: WebGLShader | null): void;\n    deleteTexture(texture: WebGLTexture | null): void;\n    depthFunc(func: GLenum): void;\n    depthMask(flag: GLboolean): void;\n    depthRange(zNear: GLclampf, zFar: GLclampf): void;\n    detachShader(program: WebGLProgram, shader: WebGLShader): void;\n    disable(cap: GLenum): void;\n    disableVertexAttribArray(index: GLuint): void;\n    drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;\n    drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;\n    enable(cap: GLenum): void;\n    enableVertexAttribArray(index: GLuint): void;\n    finish(): void;\n    flush(): void;\n    framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;\n    framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;\n    frontFace(mode: GLenum): void;\n    generateMipmap(target: GLenum): void;\n    getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n    getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;\n    getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;\n    getAttribLocation(program: WebGLProgram, name: string): GLint;\n    getBufferParameter(target: GLenum, pname: GLenum): any;\n    getContextAttributes(): WebGLContextAttributes | null;\n    getError(): GLenum;\n    getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;\n    getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;\n    getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;\n    getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;\n    getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;\n    getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;\n    getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;\n    getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;\n    getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;\n    getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;\n    getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;\n    getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;\n    getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;\n    getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;\n    getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;\n    getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;\n    getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;\n    getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;\n    getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;\n    getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;\n    getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;\n    getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;\n    getExtension(extensionName: string): any;\n    getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;\n    getParameter(pname: GLenum): any;\n    getProgramInfoLog(program: WebGLProgram): string | null;\n    getProgramParameter(program: WebGLProgram, pname: GLenum): any;\n    getRenderbufferParameter(target: GLenum, pname: GLenum): any;\n    getShaderInfoLog(shader: WebGLShader): string | null;\n    getShaderParameter(shader: WebGLShader, pname: GLenum): any;\n    getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;\n    getShaderSource(shader: WebGLShader): string | null;\n    getSupportedExtensions(): string[] | null;\n    getTexParameter(target: GLenum, pname: GLenum): any;\n    getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;\n    getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;\n    getVertexAttrib(index: GLuint, pname: GLenum): any;\n    getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;\n    hint(target: GLenum, mode: GLenum): void;\n    isBuffer(buffer: WebGLBuffer | null): GLboolean;\n    isContextLost(): boolean;\n    isEnabled(cap: GLenum): GLboolean;\n    isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;\n    isProgram(program: WebGLProgram | null): GLboolean;\n    isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;\n    isShader(shader: WebGLShader | null): GLboolean;\n    isTexture(texture: WebGLTexture | null): GLboolean;\n    lineWidth(width: GLfloat): void;\n    linkProgram(program: WebGLProgram): void;\n    pixelStorei(pname: GLenum, param: GLint): void;\n    polygonOffset(factor: GLfloat, units: GLfloat): void;\n    readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;\n    sampleCoverage(value: GLclampf, invert: GLboolean): void;\n    scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    shaderSource(shader: WebGLShader, source: string): void;\n    stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;\n    stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;\n    stencilMask(mask: GLuint): void;\n    stencilMaskSeparate(face: GLenum, mask: GLuint): void;\n    stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n    stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;\n    texParameteri(target: GLenum, pname: GLenum, param: GLint): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;\n    texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;\n    uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;\n    uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform1i(location: WebGLUniformLocation | null, x: GLint): void;\n    uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;\n    uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;\n    uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;\n    uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;\n    uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n    uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;\n    uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;\n    uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;\n    uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n    uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n    uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;\n    useProgram(program: WebGLProgram | null): void;\n    validateProgram(program: WebGLProgram): void;\n    vertexAttrib1f(index: GLuint, x: GLfloat): void;\n    vertexAttrib1fv(index: GLuint, values: Float32List): void;\n    vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;\n    vertexAttrib2fv(index: GLuint, values: Float32List): void;\n    vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;\n    vertexAttrib3fv(index: GLuint, values: Float32List): void;\n    vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;\n    vertexAttrib4fv(index: GLuint, values: Float32List): void;\n    vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;\n    viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;\n    readonly ACTIVE_ATTRIBUTES: GLenum;\n    readonly ACTIVE_TEXTURE: GLenum;\n    readonly ACTIVE_UNIFORMS: GLenum;\n    readonly ALIASED_LINE_WIDTH_RANGE: GLenum;\n    readonly ALIASED_POINT_SIZE_RANGE: GLenum;\n    readonly ALPHA: GLenum;\n    readonly ALPHA_BITS: GLenum;\n    readonly ALWAYS: GLenum;\n    readonly ARRAY_BUFFER: GLenum;\n    readonly ARRAY_BUFFER_BINDING: GLenum;\n    readonly ATTACHED_SHADERS: GLenum;\n    readonly BACK: GLenum;\n    readonly BLEND: GLenum;\n    readonly BLEND_COLOR: GLenum;\n    readonly BLEND_DST_ALPHA: GLenum;\n    readonly BLEND_DST_RGB: GLenum;\n    readonly BLEND_EQUATION: GLenum;\n    readonly BLEND_EQUATION_ALPHA: GLenum;\n    readonly BLEND_EQUATION_RGB: GLenum;\n    readonly BLEND_SRC_ALPHA: GLenum;\n    readonly BLEND_SRC_RGB: GLenum;\n    readonly BLUE_BITS: GLenum;\n    readonly BOOL: GLenum;\n    readonly BOOL_VEC2: GLenum;\n    readonly BOOL_VEC3: GLenum;\n    readonly BOOL_VEC4: GLenum;\n    readonly BROWSER_DEFAULT_WEBGL: GLenum;\n    readonly BUFFER_SIZE: GLenum;\n    readonly BUFFER_USAGE: GLenum;\n    readonly BYTE: GLenum;\n    readonly CCW: GLenum;\n    readonly CLAMP_TO_EDGE: GLenum;\n    readonly COLOR_ATTACHMENT0: GLenum;\n    readonly COLOR_BUFFER_BIT: GLenum;\n    readonly COLOR_CLEAR_VALUE: GLenum;\n    readonly COLOR_WRITEMASK: GLenum;\n    readonly COMPILE_STATUS: GLenum;\n    readonly COMPRESSED_TEXTURE_FORMATS: GLenum;\n    readonly CONSTANT_ALPHA: GLenum;\n    readonly CONSTANT_COLOR: GLenum;\n    readonly CONTEXT_LOST_WEBGL: GLenum;\n    readonly CULL_FACE: GLenum;\n    readonly CULL_FACE_MODE: GLenum;\n    readonly CURRENT_PROGRAM: GLenum;\n    readonly CURRENT_VERTEX_ATTRIB: GLenum;\n    readonly CW: GLenum;\n    readonly DECR: GLenum;\n    readonly DECR_WRAP: GLenum;\n    readonly DELETE_STATUS: GLenum;\n    readonly DEPTH_ATTACHMENT: GLenum;\n    readonly DEPTH_BITS: GLenum;\n    readonly DEPTH_BUFFER_BIT: GLenum;\n    readonly DEPTH_CLEAR_VALUE: GLenum;\n    readonly DEPTH_COMPONENT: GLenum;\n    readonly DEPTH_COMPONENT16: GLenum;\n    readonly DEPTH_FUNC: GLenum;\n    readonly DEPTH_RANGE: GLenum;\n    readonly DEPTH_STENCIL: GLenum;\n    readonly DEPTH_STENCIL_ATTACHMENT: GLenum;\n    readonly DEPTH_TEST: GLenum;\n    readonly DEPTH_WRITEMASK: GLenum;\n    readonly DITHER: GLenum;\n    readonly DONT_CARE: GLenum;\n    readonly DST_ALPHA: GLenum;\n    readonly DST_COLOR: GLenum;\n    readonly DYNAMIC_DRAW: GLenum;\n    readonly ELEMENT_ARRAY_BUFFER: GLenum;\n    readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;\n    readonly EQUAL: GLenum;\n    readonly FASTEST: GLenum;\n    readonly FLOAT: GLenum;\n    readonly FLOAT_MAT2: GLenum;\n    readonly FLOAT_MAT3: GLenum;\n    readonly FLOAT_MAT4: GLenum;\n    readonly FLOAT_VEC2: GLenum;\n    readonly FLOAT_VEC3: GLenum;\n    readonly FLOAT_VEC4: GLenum;\n    readonly FRAGMENT_SHADER: GLenum;\n    readonly FRAMEBUFFER: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;\n    readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;\n    readonly FRAMEBUFFER_BINDING: GLenum;\n    readonly FRAMEBUFFER_COMPLETE: GLenum;\n    readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;\n    readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;\n    readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;\n    readonly FRAMEBUFFER_UNSUPPORTED: GLenum;\n    readonly FRONT: GLenum;\n    readonly FRONT_AND_BACK: GLenum;\n    readonly FRONT_FACE: GLenum;\n    readonly FUNC_ADD: GLenum;\n    readonly FUNC_REVERSE_SUBTRACT: GLenum;\n    readonly FUNC_SUBTRACT: GLenum;\n    readonly GENERATE_MIPMAP_HINT: GLenum;\n    readonly GEQUAL: GLenum;\n    readonly GREATER: GLenum;\n    readonly GREEN_BITS: GLenum;\n    readonly HIGH_FLOAT: GLenum;\n    readonly HIGH_INT: GLenum;\n    readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;\n    readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;\n    readonly INCR: GLenum;\n    readonly INCR_WRAP: GLenum;\n    readonly INT: GLenum;\n    readonly INT_VEC2: GLenum;\n    readonly INT_VEC3: GLenum;\n    readonly INT_VEC4: GLenum;\n    readonly INVALID_ENUM: GLenum;\n    readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;\n    readonly INVALID_OPERATION: GLenum;\n    readonly INVALID_VALUE: GLenum;\n    readonly INVERT: GLenum;\n    readonly KEEP: GLenum;\n    readonly LEQUAL: GLenum;\n    readonly LESS: GLenum;\n    readonly LINEAR: GLenum;\n    readonly LINEAR_MIPMAP_LINEAR: GLenum;\n    readonly LINEAR_MIPMAP_NEAREST: GLenum;\n    readonly LINES: GLenum;\n    readonly LINE_LOOP: GLenum;\n    readonly LINE_STRIP: GLenum;\n    readonly LINE_WIDTH: GLenum;\n    readonly LINK_STATUS: GLenum;\n    readonly LOW_FLOAT: GLenum;\n    readonly LOW_INT: GLenum;\n    readonly LUMINANCE: GLenum;\n    readonly LUMINANCE_ALPHA: GLenum;\n    readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;\n    readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;\n    readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;\n    readonly MAX_RENDERBUFFER_SIZE: GLenum;\n    readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;\n    readonly MAX_TEXTURE_SIZE: GLenum;\n    readonly MAX_VARYING_VECTORS: GLenum;\n    readonly MAX_VERTEX_ATTRIBS: GLenum;\n    readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;\n    readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;\n    readonly MAX_VIEWPORT_DIMS: GLenum;\n    readonly MEDIUM_FLOAT: GLenum;\n    readonly MEDIUM_INT: GLenum;\n    readonly MIRRORED_REPEAT: GLenum;\n    readonly NEAREST: GLenum;\n    readonly NEAREST_MIPMAP_LINEAR: GLenum;\n    readonly NEAREST_MIPMAP_NEAREST: GLenum;\n    readonly NEVER: GLenum;\n    readonly NICEST: GLenum;\n    readonly NONE: GLenum;\n    readonly NOTEQUAL: GLenum;\n    readonly NO_ERROR: GLenum;\n    readonly ONE: GLenum;\n    readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;\n    readonly ONE_MINUS_CONSTANT_COLOR: GLenum;\n    readonly ONE_MINUS_DST_ALPHA: GLenum;\n    readonly ONE_MINUS_DST_COLOR: GLenum;\n    readonly ONE_MINUS_SRC_ALPHA: GLenum;\n    readonly ONE_MINUS_SRC_COLOR: GLenum;\n    readonly OUT_OF_MEMORY: GLenum;\n    readonly PACK_ALIGNMENT: GLenum;\n    readonly POINTS: GLenum;\n    readonly POLYGON_OFFSET_FACTOR: GLenum;\n    readonly POLYGON_OFFSET_FILL: GLenum;\n    readonly POLYGON_OFFSET_UNITS: GLenum;\n    readonly RED_BITS: GLenum;\n    readonly RENDERBUFFER: GLenum;\n    readonly RENDERBUFFER_ALPHA_SIZE: GLenum;\n    readonly RENDERBUFFER_BINDING: GLenum;\n    readonly RENDERBUFFER_BLUE_SIZE: GLenum;\n    readonly RENDERBUFFER_DEPTH_SIZE: GLenum;\n    readonly RENDERBUFFER_GREEN_SIZE: GLenum;\n    readonly RENDERBUFFER_HEIGHT: GLenum;\n    readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;\n    readonly RENDERBUFFER_RED_SIZE: GLenum;\n    readonly RENDERBUFFER_STENCIL_SIZE: GLenum;\n    readonly RENDERBUFFER_WIDTH: GLenum;\n    readonly RENDERER: GLenum;\n    readonly REPEAT: GLenum;\n    readonly REPLACE: GLenum;\n    readonly RGB: GLenum;\n    readonly RGB565: GLenum;\n    readonly RGB5_A1: GLenum;\n    readonly RGBA: GLenum;\n    readonly RGBA4: GLenum;\n    readonly SAMPLER_2D: GLenum;\n    readonly SAMPLER_CUBE: GLenum;\n    readonly SAMPLES: GLenum;\n    readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;\n    readonly SAMPLE_BUFFERS: GLenum;\n    readonly SAMPLE_COVERAGE: GLenum;\n    readonly SAMPLE_COVERAGE_INVERT: GLenum;\n    readonly SAMPLE_COVERAGE_VALUE: GLenum;\n    readonly SCISSOR_BOX: GLenum;\n    readonly SCISSOR_TEST: GLenum;\n    readonly SHADER_TYPE: GLenum;\n    readonly SHADING_LANGUAGE_VERSION: GLenum;\n    readonly SHORT: GLenum;\n    readonly SRC_ALPHA: GLenum;\n    readonly SRC_ALPHA_SATURATE: GLenum;\n    readonly SRC_COLOR: GLenum;\n    readonly STATIC_DRAW: GLenum;\n    readonly STENCIL_ATTACHMENT: GLenum;\n    readonly STENCIL_BACK_FAIL: GLenum;\n    readonly STENCIL_BACK_FUNC: GLenum;\n    readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;\n    readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;\n    readonly STENCIL_BACK_REF: GLenum;\n    readonly STENCIL_BACK_VALUE_MASK: GLenum;\n    readonly STENCIL_BACK_WRITEMASK: GLenum;\n    readonly STENCIL_BITS: GLenum;\n    readonly STENCIL_BUFFER_BIT: GLenum;\n    readonly STENCIL_CLEAR_VALUE: GLenum;\n    readonly STENCIL_FAIL: GLenum;\n    readonly STENCIL_FUNC: GLenum;\n    readonly STENCIL_INDEX8: GLenum;\n    readonly STENCIL_PASS_DEPTH_FAIL: GLenum;\n    readonly STENCIL_PASS_DEPTH_PASS: GLenum;\n    readonly STENCIL_REF: GLenum;\n    readonly STENCIL_TEST: GLenum;\n    readonly STENCIL_VALUE_MASK: GLenum;\n    readonly STENCIL_WRITEMASK: GLenum;\n    readonly STREAM_DRAW: GLenum;\n    readonly SUBPIXEL_BITS: GLenum;\n    readonly TEXTURE: GLenum;\n    readonly TEXTURE0: GLenum;\n    readonly TEXTURE1: GLenum;\n    readonly TEXTURE10: GLenum;\n    readonly TEXTURE11: GLenum;\n    readonly TEXTURE12: GLenum;\n    readonly TEXTURE13: GLenum;\n    readonly TEXTURE14: GLenum;\n    readonly TEXTURE15: GLenum;\n    readonly TEXTURE16: GLenum;\n    readonly TEXTURE17: GLenum;\n    readonly TEXTURE18: GLenum;\n    readonly TEXTURE19: GLenum;\n    readonly TEXTURE2: GLenum;\n    readonly TEXTURE20: GLenum;\n    readonly TEXTURE21: GLenum;\n    readonly TEXTURE22: GLenum;\n    readonly TEXTURE23: GLenum;\n    readonly TEXTURE24: GLenum;\n    readonly TEXTURE25: GLenum;\n    readonly TEXTURE26: GLenum;\n    readonly TEXTURE27: GLenum;\n    readonly TEXTURE28: GLenum;\n    readonly TEXTURE29: GLenum;\n    readonly TEXTURE3: GLenum;\n    readonly TEXTURE30: GLenum;\n    readonly TEXTURE31: GLenum;\n    readonly TEXTURE4: GLenum;\n    readonly TEXTURE5: GLenum;\n    readonly TEXTURE6: GLenum;\n    readonly TEXTURE7: GLenum;\n    readonly TEXTURE8: GLenum;\n    readonly TEXTURE9: GLenum;\n    readonly TEXTURE_2D: GLenum;\n    readonly TEXTURE_BINDING_2D: GLenum;\n    readonly TEXTURE_BINDING_CUBE_MAP: GLenum;\n    readonly TEXTURE_CUBE_MAP: GLenum;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;\n    readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;\n    readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;\n    readonly TEXTURE_MAG_FILTER: GLenum;\n    readonly TEXTURE_MIN_FILTER: GLenum;\n    readonly TEXTURE_WRAP_S: GLenum;\n    readonly TEXTURE_WRAP_T: GLenum;\n    readonly TRIANGLES: GLenum;\n    readonly TRIANGLE_FAN: GLenum;\n    readonly TRIANGLE_STRIP: GLenum;\n    readonly UNPACK_ALIGNMENT: GLenum;\n    readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;\n    readonly UNPACK_FLIP_Y_WEBGL: GLenum;\n    readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;\n    readonly UNSIGNED_BYTE: GLenum;\n    readonly UNSIGNED_INT: GLenum;\n    readonly UNSIGNED_SHORT: GLenum;\n    readonly UNSIGNED_SHORT_4_4_4_4: GLenum;\n    readonly UNSIGNED_SHORT_5_5_5_1: GLenum;\n    readonly UNSIGNED_SHORT_5_6_5: GLenum;\n    readonly VALIDATE_STATUS: GLenum;\n    readonly VENDOR: GLenum;\n    readonly VERSION: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;\n    readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;\n    readonly VERTEX_SHADER: GLenum;\n    readonly VIEWPORT: GLenum;\n    readonly ZERO: GLenum;\n}\n\ninterface WebGLShader extends WebGLObject {\n}\n\ndeclare var WebGLShader: {\n    prototype: WebGLShader;\n    new(): WebGLShader;\n};\n\ninterface WebGLShaderPrecisionFormat {\n    readonly precision: GLint;\n    readonly rangeMax: GLint;\n    readonly rangeMin: GLint;\n}\n\ndeclare var WebGLShaderPrecisionFormat: {\n    prototype: WebGLShaderPrecisionFormat;\n    new(): WebGLShaderPrecisionFormat;\n};\n\ninterface WebGLTexture extends WebGLObject {\n}\n\ndeclare var WebGLTexture: {\n    prototype: WebGLTexture;\n    new(): WebGLTexture;\n};\n\ninterface WebGLUniformLocation {\n}\n\ndeclare var WebGLUniformLocation: {\n    prototype: WebGLUniformLocation;\n    new(): WebGLUniformLocation;\n};\n\ninterface WebGLVertexArrayObjectOES {\n}\n\ninterface WebKitPoint {\n    x: number;\n    y: number;\n}\n\ndeclare var WebKitPoint: {\n    prototype: WebKitPoint;\n    new(x?: number, y?: number): WebKitPoint;\n};\n\ninterface WebSocketEventMap {\n    "close": CloseEvent;\n    "error": Event;\n    "message": MessageEvent;\n    "open": Event;\n}\n\ninterface WebSocket extends EventTarget {\n    binaryType: BinaryType;\n    readonly bufferedAmount: number;\n    readonly extensions: string;\n    onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;\n    onerror: ((this: WebSocket, ev: Event) => any) | null;\n    onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;\n    onopen: ((this: WebSocket, ev: Event) => any) | null;\n    readonly protocol: string;\n    readonly readyState: number;\n    readonly url: string;\n    close(code?: number, reason?: string): void;\n    send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;\n    readonly CLOSED: number;\n    readonly CLOSING: number;\n    readonly CONNECTING: number;\n    readonly OPEN: number;\n    addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var WebSocket: {\n    prototype: WebSocket;\n    new(url: string, protocols?: string | string[]): WebSocket;\n    readonly CLOSED: number;\n    readonly CLOSING: number;\n    readonly CONNECTING: number;\n    readonly OPEN: number;\n};\n\ninterface WheelEvent extends MouseEvent {\n    readonly deltaMode: number;\n    readonly deltaX: number;\n    readonly deltaY: number;\n    readonly deltaZ: number;\n    readonly wheelDelta: number;\n    readonly wheelDeltaX: number;\n    readonly wheelDeltaY: number;\n    getCurrentPoint(element: Element): void;\n    initWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, deltaXArg: number, deltaYArg: number, deltaZArg: number, deltaMode: number): void;\n    readonly DOM_DELTA_LINE: number;\n    readonly DOM_DELTA_PAGE: number;\n    readonly DOM_DELTA_PIXEL: number;\n}\n\ndeclare var WheelEvent: {\n    prototype: WheelEvent;\n    new(typeArg: string, eventInitDict?: WheelEventInit): WheelEvent;\n    readonly DOM_DELTA_LINE: number;\n    readonly DOM_DELTA_PAGE: number;\n    readonly DOM_DELTA_PIXEL: number;\n};\n\ninterface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {\n    "abort": UIEvent;\n    "afterprint": Event;\n    "beforeprint": Event;\n    "beforeunload": BeforeUnloadEvent;\n    "blur": FocusEvent;\n    "canplay": Event;\n    "canplaythrough": Event;\n    "change": Event;\n    "click": MouseEvent;\n    "compassneedscalibration": Event;\n    "contextmenu": MouseEvent;\n    "dblclick": MouseEvent;\n    "devicelight": DeviceLightEvent;\n    "devicemotion": DeviceMotionEvent;\n    "deviceorientation": DeviceOrientationEvent;\n    "drag": DragEvent;\n    "dragend": DragEvent;\n    "dragenter": DragEvent;\n    "dragleave": DragEvent;\n    "dragover": DragEvent;\n    "dragstart": DragEvent;\n    "drop": DragEvent;\n    "durationchange": Event;\n    "emptied": Event;\n    "ended": Event;\n    "error": ErrorEvent;\n    "focus": FocusEvent;\n    "hashchange": HashChangeEvent;\n    "input": Event;\n    "invalid": Event;\n    "keydown": KeyboardEvent;\n    "keypress": KeyboardEvent;\n    "keyup": KeyboardEvent;\n    "load": Event;\n    "loadeddata": Event;\n    "loadedmetadata": Event;\n    "loadstart": Event;\n    "message": MessageEvent;\n    "mousedown": MouseEvent;\n    "mouseenter": MouseEvent;\n    "mouseleave": MouseEvent;\n    "mousemove": MouseEvent;\n    "mouseout": MouseEvent;\n    "mouseover": MouseEvent;\n    "mouseup": MouseEvent;\n    "mousewheel": Event;\n    "MSGestureChange": Event;\n    "MSGestureDoubleTap": Event;\n    "MSGestureEnd": Event;\n    "MSGestureHold": Event;\n    "MSGestureStart": Event;\n    "MSGestureTap": Event;\n    "MSInertiaStart": Event;\n    "MSPointerCancel": Event;\n    "MSPointerDown": Event;\n    "MSPointerEnter": Event;\n    "MSPointerLeave": Event;\n    "MSPointerMove": Event;\n    "MSPointerOut": Event;\n    "MSPointerOver": Event;\n    "MSPointerUp": Event;\n    "offline": Event;\n    "online": Event;\n    "orientationchange": Event;\n    "pagehide": PageTransitionEvent;\n    "pageshow": PageTransitionEvent;\n    "pause": Event;\n    "play": Event;\n    "playing": Event;\n    "popstate": PopStateEvent;\n    "progress": ProgressEvent;\n    "ratechange": Event;\n    "readystatechange": ProgressEvent;\n    "reset": Event;\n    "resize": UIEvent;\n    "scroll": UIEvent;\n    "seeked": Event;\n    "seeking": Event;\n    "select": UIEvent;\n    "stalled": Event;\n    "storage": StorageEvent;\n    "submit": Event;\n    "suspend": Event;\n    "timeupdate": Event;\n    "unload": Event;\n    "volumechange": Event;\n    "vrdisplayactivate": Event;\n    "vrdisplayblur": Event;\n    "vrdisplayconnect": Event;\n    "vrdisplaydeactivate": Event;\n    "vrdisplaydisconnect": Event;\n    "vrdisplayfocus": Event;\n    "vrdisplaypointerrestricted": Event;\n    "vrdisplaypointerunrestricted": Event;\n    "vrdisplaypresentchange": Event;\n    "waiting": Event;\n}\n\ninterface Window extends EventTarget, WindowTimers, WindowSessionStorage, WindowLocalStorage, WindowConsole, GlobalEventHandlers, IDBEnvironment, WindowBase64, GlobalFetch, WindowOrWorkerGlobalScope, WindowEventHandlers {\n    Blob: typeof Blob;\n    URL: typeof URL;\n    URLSearchParams: typeof URLSearchParams;\n    readonly applicationCache: ApplicationCache;\n    readonly caches: CacheStorage;\n    readonly clientInformation: Navigator;\n    readonly closed: boolean;\n    readonly crypto: Crypto;\n    customElements: CustomElementRegistry;\n    defaultStatus: string;\n    readonly devicePixelRatio: number;\n    readonly doNotTrack: string;\n    readonly document: Document;\n    readonly event: Event | undefined;\n    /** @deprecated */\n    readonly external: External;\n    readonly frameElement: Element;\n    readonly frames: Window;\n    readonly history: History;\n    readonly innerHeight: number;\n    readonly innerWidth: number;\n    readonly isSecureContext: boolean;\n    readonly length: number;\n    location: Location;\n    readonly locationbar: BarProp;\n    readonly menubar: BarProp;\n    readonly msContentScript: ExtensionScriptApis;\n    name: string;\n    readonly navigator: Navigator;\n    offscreenBuffering: string | boolean;\n    oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;\n    ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;\n    ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\n    ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\n    onmousewheel: ((this: Window, ev: Event) => any) | null;\n    onmsgesturechange: ((this: Window, ev: Event) => any) | null;\n    onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;\n    onmsgestureend: ((this: Window, ev: Event) => any) | null;\n    onmsgesturehold: ((this: Window, ev: Event) => any) | null;\n    onmsgesturestart: ((this: Window, ev: Event) => any) | null;\n    onmsgesturetap: ((this: Window, ev: Event) => any) | null;\n    onmsinertiastart: ((this: Window, ev: Event) => any) | null;\n    onmspointercancel: ((this: Window, ev: Event) => any) | null;\n    onmspointerdown: ((this: Window, ev: Event) => any) | null;\n    onmspointerenter: ((this: Window, ev: Event) => any) | null;\n    onmspointerleave: ((this: Window, ev: Event) => any) | null;\n    onmspointermove: ((this: Window, ev: Event) => any) | null;\n    onmspointerout: ((this: Window, ev: Event) => any) | null;\n    onmspointerover: ((this: Window, ev: Event) => any) | null;\n    onmspointerup: ((this: Window, ev: Event) => any) | null;\n    /** @deprecated */\n    onorientationchange: ((this: Window, ev: Event) => any) | null;\n    onreadystatechange: ((this: Window, ev: ProgressEvent) => any) | null;\n    onvrdisplayactivate: ((this: Window, ev: Event) => any) | null;\n    onvrdisplayblur: ((this: Window, ev: Event) => any) | null;\n    onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;\n    onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;\n    onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;\n    onvrdisplayfocus: ((this: Window, ev: Event) => any) | null;\n    onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null;\n    onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;\n    onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;\n    opener: any;\n    /** @deprecated */\n    readonly orientation: string | number;\n    readonly outerHeight: number;\n    readonly outerWidth: number;\n    readonly pageXOffset: number;\n    readonly pageYOffset: number;\n    readonly parent: Window;\n    readonly performance: Performance;\n    readonly personalbar: BarProp;\n    readonly screen: Screen;\n    readonly screenLeft: number;\n    readonly screenTop: number;\n    readonly screenX: number;\n    readonly screenY: number;\n    readonly scrollX: number;\n    readonly scrollY: number;\n    readonly scrollbars: BarProp;\n    readonly self: Window;\n    readonly speechSynthesis: SpeechSynthesis;\n    status: string;\n    readonly statusbar: BarProp;\n    readonly styleMedia: StyleMedia;\n    readonly toolbar: BarProp;\n    readonly top: Window;\n    readonly window: Window;\n    alert(message?: any): void;\n    blur(): void;\n    cancelAnimationFrame(handle: number): void;\n    /** @deprecated */\n    captureEvents(): void;\n    close(): void;\n    confirm(message?: string): boolean;\n    departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;\n    focus(): void;\n    getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\n    getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList;\n    getSelection(): Selection;\n    matchMedia(query: string): MediaQueryList;\n    moveBy(x: number, y: number): void;\n    moveTo(x: number, y: number): void;\n    msWriteProfilerMark(profilerMarkName: string): void;\n    open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;\n    postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\n    print(): void;\n    prompt(message?: string, _default?: string): string | null;\n    /** @deprecated */\n    releaseEvents(): void;\n    requestAnimationFrame(callback: FrameRequestCallback): number;\n    resizeBy(x: number, y: number): void;\n    resizeTo(x: number, y: number): void;\n    scroll(options?: ScrollToOptions): void;\n    scroll(x: number, y: number): void;\n    scrollBy(options?: ScrollToOptions): void;\n    scrollBy(x: number, y: number): void;\n    scrollTo(options?: ScrollToOptions): void;\n    scrollTo(x: number, y: number): void;\n    stop(): void;\n    webkitCancelAnimationFrame(handle: number): void;\n    webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;\n    webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;\n    webkitRequestAnimationFrame(callback: FrameRequestCallback): number;\n    addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Window: {\n    prototype: Window;\n    new(): Window;\n};\n\ninterface WindowBase64 {\n    atob(encodedString: string): string;\n    btoa(rawString: string): string;\n}\n\ninterface WindowConsole {\n    readonly console: Console;\n}\n\ninterface WindowEventHandlersEventMap {\n    "afterprint": Event;\n    "beforeprint": Event;\n    "beforeunload": BeforeUnloadEvent;\n    "hashchange": HashChangeEvent;\n    "languagechange": Event;\n    "message": MessageEvent;\n    "messageerror": MessageEvent;\n    "offline": Event;\n    "online": Event;\n    "pagehide": PageTransitionEvent;\n    "pageshow": PageTransitionEvent;\n    "popstate": PopStateEvent;\n    "rejectionhandled": Event;\n    "storage": StorageEvent;\n    "unhandledrejection": PromiseRejectionEvent;\n    "unload": Event;\n}\n\ninterface WindowEventHandlers {\n    onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;\n    onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;\n    onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n    onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;\n    onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n    onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;\n    onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;\n    onrejectionhandled: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;\n    onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;\n    onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;\n    addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface WindowLocalStorage {\n    readonly localStorage: Storage;\n}\n\ninterface WindowOrWorkerGlobalScope {\n    readonly caches: CacheStorage;\n    readonly crypto: Crypto;\n    readonly indexedDB: IDBFactory;\n    readonly origin: string;\n    readonly performance: Performance;\n    atob(data: string): string;\n    btoa(data: string): string;\n    clearInterval(handle?: number): void;\n    clearTimeout(handle?: number): void;\n    createImageBitmap(image: ImageBitmapSource): Promise<ImageBitmap>;\n    createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number): Promise<ImageBitmap>;\n    fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;\n    queueMicrotask(callback: Function): void;\n    setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n    setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\n}\n\ninterface WindowSessionStorage {\n    readonly sessionStorage: Storage;\n}\n\ninterface WindowTimers {\n}\n\ninterface WorkerEventMap extends AbstractWorkerEventMap {\n    "message": MessageEvent;\n}\n\ninterface Worker extends EventTarget, AbstractWorker {\n    onmessage: ((this: Worker, ev: MessageEvent) => any) | null;\n    postMessage(message: any, transfer?: Transferable[]): void;\n    terminate(): void;\n    addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Worker: {\n    prototype: Worker;\n    new(stringUrl: string): Worker;\n};\n\ninterface Worklet {\n    addModule(moduleURL: string, options?: WorkletOptions): Promise<void>;\n}\n\ndeclare var Worklet: {\n    prototype: Worklet;\n    new(): Worklet;\n};\n\ninterface WritableStream {\n    readonly locked: boolean;\n    abort(reason?: any): Promise<void>;\n    getWriter(): WritableStreamDefaultWriter;\n}\n\ndeclare var WritableStream: {\n    prototype: WritableStream;\n    new(underlyingSink?: UnderlyingSink, strategy?: QueuingStrategy): WritableStream;\n};\n\ninterface WritableStreamDefaultController {\n    error(error?: any): void;\n}\n\ndeclare var WritableStreamDefaultController: {\n    prototype: WritableStreamDefaultController;\n    new(): WritableStreamDefaultController;\n};\n\ninterface WritableStreamDefaultWriter {\n    readonly closed: Promise<void>;\n    readonly desiredSize: number;\n    readonly ready: Promise<void>;\n    abort(reason?: any): Promise<void>;\n    close(): Promise<void>;\n    releaseLock(): void;\n    write(chunk?: any): Promise<any>;\n}\n\ndeclare var WritableStreamDefaultWriter: {\n    prototype: WritableStreamDefaultWriter;\n    new(): WritableStreamDefaultWriter;\n};\n\ninterface XMLDocument extends Document {\n    addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLDocument: {\n    prototype: XMLDocument;\n    new(): XMLDocument;\n};\n\ninterface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {\n    "readystatechange": Event;\n}\n\ninterface XMLHttpRequest extends XMLHttpRequestEventTarget {\n    onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;\n    /**\n     * Returns client\'s state.\n     */\n    readonly readyState: number;\n    /**\n     * Returns the response\'s body.\n     */\n    readonly response: any;\n    /**\n     * Returns the text response.\n     * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".\n     */\n    readonly responseText: string;\n    /**\n     * Returns the response type.\n     * Can be set to change the response type. Values are:\n     * the empty string (default),\n     * "arraybuffer",\n     * "blob",\n     * "document",\n     * "json", and\n     * "text".\n     * When set: setting to "document" is ignored if current global object is not a Window object.\n     * When set: throws an "InvalidStateError" DOMException if state is loading or done.\n     * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n     */\n    responseType: XMLHttpRequestResponseType;\n    readonly responseURL: string;\n    /**\n     * Returns the document response.\n     * Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".\n     */\n    readonly responseXML: Document | null;\n    readonly status: number;\n    readonly statusText: string;\n    /**\n     * Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the\n     * request has not yet completed, and the synchronous flag is unset, a timeout event will then be dispatched, or a\n     * "TimeoutError" DOMException will be thrown otherwise (for the send() method).\n     * When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.\n     */\n    timeout: number;\n    /**\n     * Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is\n     * transferred to a server.\n     */\n    readonly upload: XMLHttpRequestUpload;\n    /**\n     * True when credentials are to be included in a cross-origin request. False when they are\n     * to be excluded in a cross-origin request and when cookies are to be ignored in its response.\n     * Initially false.\n     * When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.\n     */\n    withCredentials: boolean;\n    /**\n     * Cancels any network activity.\n     */\n    abort(): void;\n    getAllResponseHeaders(): string;\n    getResponseHeader(name: string): string | null;\n    /**\n     * Sets the request method, request URL, and synchronous flag.\n     * Throws a "SyntaxError" DOMException if either method is not a\n     * valid HTTP method or url cannot be parsed.\n     * Throws a "SecurityError" DOMException if method is a\n     * case-insensitive match for `CONNECT`, `TRACE`, or `TRACK`.\n     * Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.\n     */\n    open(method: string, url: string): void;\n    open(method: string, url: string, async: boolean, username?: string | null, password?: string | null): void;\n    /**\n     * Acts as if the `Content-Type` header value for response is mime.\n     * (It does not actually change the header though.)\n     * Throws an "InvalidStateError" DOMException if state is loading or done.\n     */\n    overrideMimeType(mime: string): void;\n    /**\n     * Initiates the request. The optional argument provides the request body. The argument is ignored if request method is GET or HEAD.\n     * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n     */\n    send(body?: Document | BodyInit | null): void;\n    /**\n     * Combines a header in author request headers.\n     * Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.\n     * Throws a "SyntaxError" DOMException if name is not a header name\n     * or if value is not a header value.\n     */\n    setRequestHeader(name: string, value: string): void;\n    readonly DONE: number;\n    readonly HEADERS_RECEIVED: number;\n    readonly LOADING: number;\n    readonly OPENED: number;\n    readonly UNSENT: number;\n    addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequest: {\n    prototype: XMLHttpRequest;\n    new(): XMLHttpRequest;\n    readonly DONE: number;\n    readonly HEADERS_RECEIVED: number;\n    readonly LOADING: number;\n    readonly OPENED: number;\n    readonly UNSENT: number;\n};\n\ninterface XMLHttpRequestEventTargetEventMap {\n    "abort": ProgressEvent;\n    "error": ProgressEvent;\n    "load": ProgressEvent;\n    "loadend": ProgressEvent;\n    "loadstart": ProgressEvent;\n    "progress": ProgressEvent;\n    "timeout": ProgressEvent;\n}\n\ninterface XMLHttpRequestEventTarget extends EventTarget {\n    onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;\n    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestEventTarget: {\n    prototype: XMLHttpRequestEventTarget;\n    new(): XMLHttpRequestEventTarget;\n};\n\ninterface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {\n    addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var XMLHttpRequestUpload: {\n    prototype: XMLHttpRequestUpload;\n    new(): XMLHttpRequestUpload;\n};\n\ninterface XMLSerializer {\n    serializeToString(root: Node): string;\n}\n\ndeclare var XMLSerializer: {\n    prototype: XMLSerializer;\n    new(): XMLSerializer;\n};\n\ninterface XPathEvaluator {\n    createExpression(expression: string, resolver: XPathNSResolver): XPathExpression;\n    createNSResolver(nodeResolver?: Node): XPathNSResolver;\n    evaluate(expression: string, contextNode: Node, resolver: XPathNSResolver | null, type: number, result: XPathResult | null): XPathResult;\n}\n\ndeclare var XPathEvaluator: {\n    prototype: XPathEvaluator;\n    new(): XPathEvaluator;\n};\n\ninterface XPathExpression {\n    evaluate(contextNode: Node, type: number, result: XPathResult | null): XPathResult;\n}\n\ndeclare var XPathExpression: {\n    prototype: XPathExpression;\n    new(): XPathExpression;\n};\n\ninterface XPathNSResolver {\n    lookupNamespaceURI(prefix: string): string;\n}\n\ndeclare var XPathNSResolver: {\n    prototype: XPathNSResolver;\n    new(): XPathNSResolver;\n};\n\ninterface XPathResult {\n    readonly booleanValue: boolean;\n    readonly invalidIteratorState: boolean;\n    readonly numberValue: number;\n    readonly resultType: number;\n    readonly singleNodeValue: Node;\n    readonly snapshotLength: number;\n    readonly stringValue: string;\n    iterateNext(): Node;\n    snapshotItem(index: number): Node;\n    readonly ANY_TYPE: number;\n    readonly ANY_UNORDERED_NODE_TYPE: number;\n    readonly BOOLEAN_TYPE: number;\n    readonly FIRST_ORDERED_NODE_TYPE: number;\n    readonly NUMBER_TYPE: number;\n    readonly ORDERED_NODE_ITERATOR_TYPE: number;\n    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;\n    readonly STRING_TYPE: number;\n    readonly UNORDERED_NODE_ITERATOR_TYPE: number;\n    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;\n}\n\ndeclare var XPathResult: {\n    prototype: XPathResult;\n    new(): XPathResult;\n    readonly ANY_TYPE: number;\n    readonly ANY_UNORDERED_NODE_TYPE: number;\n    readonly BOOLEAN_TYPE: number;\n    readonly FIRST_ORDERED_NODE_TYPE: number;\n    readonly NUMBER_TYPE: number;\n    readonly ORDERED_NODE_ITERATOR_TYPE: number;\n    readonly ORDERED_NODE_SNAPSHOT_TYPE: number;\n    readonly STRING_TYPE: number;\n    readonly UNORDERED_NODE_ITERATOR_TYPE: number;\n    readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;\n};\n\ninterface XSLTProcessor {\n    clearParameters(): void;\n    getParameter(namespaceURI: string, localName: string): any;\n    importStylesheet(style: Node): void;\n    removeParameter(namespaceURI: string, localName: string): void;\n    reset(): void;\n    setParameter(namespaceURI: string, localName: string, value: any): void;\n    transformToDocument(source: Node): Document;\n    transformToFragment(source: Node, document: Document): DocumentFragment;\n}\n\ndeclare var XSLTProcessor: {\n    prototype: XSLTProcessor;\n    new(): XSLTProcessor;\n};\n\ninterface webkitRTCPeerConnection extends RTCPeerConnection {\n    addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n    addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n    removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: webkitRTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n    removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var webkitRTCPeerConnection: {\n    prototype: webkitRTCPeerConnection;\n    new(configuration: RTCConfiguration): webkitRTCPeerConnection;\n};\n\ndeclare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;\n\ninterface BlobCallback {\n    (blob: Blob | null): void;\n}\n\ninterface DecodeErrorCallback {\n    (error: DOMException): void;\n}\n\ninterface DecodeSuccessCallback {\n    (decodedData: AudioBuffer): void;\n}\n\ninterface ErrorEventHandler {\n    (event: Event | string, source?: string, fileno?: number, columnNumber?: number, error?: Error): void;\n}\n\ninterface EventHandlerNonNull {\n    (event: Event): any;\n}\n\ninterface ForEachCallback {\n    (keyId: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null, status: MediaKeyStatus): void;\n}\n\ninterface FrameRequestCallback {\n    (time: number): void;\n}\n\ninterface FunctionStringCallback {\n    (data: string): void;\n}\n\ninterface IntersectionObserverCallback {\n    (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;\n}\n\ninterface MSLaunchUriCallback {\n    (): void;\n}\n\ninterface MutationCallback {\n    (mutations: MutationRecord[], observer: MutationObserver): void;\n}\n\ninterface NavigatorUserMediaErrorCallback {\n    (error: MediaStreamError): void;\n}\n\ninterface NavigatorUserMediaSuccessCallback {\n    (stream: MediaStream): void;\n}\n\ninterface NotificationPermissionCallback {\n    (permission: NotificationPermission): void;\n}\n\ninterface OnBeforeUnloadEventHandlerNonNull {\n    (event: Event): string | null;\n}\n\ninterface OnErrorEventHandlerNonNull {\n    (event: Event | string, source?: string, lineno?: number, colno?: number, error?: any): any;\n}\n\ninterface PerformanceObserverCallback {\n    (entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;\n}\n\ninterface PositionCallback {\n    (position: Position): void;\n}\n\ninterface PositionErrorCallback {\n    (positionError: PositionError): void;\n}\n\ninterface RTCPeerConnectionErrorCallback {\n    (error: DOMException): void;\n}\n\ninterface RTCSessionDescriptionCallback {\n    (description: RTCSessionDescriptionInit): void;\n}\n\ninterface RTCStatsCallback {\n    (report: RTCStatsReport): void;\n}\n\ninterface VoidFunction {\n    (): void;\n}\n\ninterface WritableStreamChunkCallback {\n    (chunk: any, controller: WritableStreamDefaultController): void;\n}\n\ninterface WritableStreamDefaultControllerCallback {\n    (controller: WritableStreamDefaultController): void;\n}\n\ninterface WritableStreamErrorCallback {\n    (reason: string): void;\n}\n\ninterface HTMLElementTagNameMap {\n    "a": HTMLAnchorElement;\n    "abbr": HTMLElement;\n    "address": HTMLElement;\n    "applet": HTMLAppletElement;\n    "area": HTMLAreaElement;\n    "article": HTMLElement;\n    "aside": HTMLElement;\n    "audio": HTMLAudioElement;\n    "b": HTMLElement;\n    "base": HTMLBaseElement;\n    "basefont": HTMLBaseFontElement;\n    "bdo": HTMLElement;\n    "blockquote": HTMLQuoteElement;\n    "body": HTMLBodyElement;\n    "br": HTMLBRElement;\n    "button": HTMLButtonElement;\n    "canvas": HTMLCanvasElement;\n    "caption": HTMLTableCaptionElement;\n    "cite": HTMLElement;\n    "code": HTMLElement;\n    "col": HTMLTableColElement;\n    "colgroup": HTMLTableColElement;\n    "data": HTMLDataElement;\n    "datalist": HTMLDataListElement;\n    "dd": HTMLElement;\n    "del": HTMLModElement;\n    "details": HTMLDetailsElement;\n    "dfn": HTMLElement;\n    "dialog": HTMLDialogElement;\n    "dir": HTMLDirectoryElement;\n    "div": HTMLDivElement;\n    "dl": HTMLDListElement;\n    "dt": HTMLElement;\n    "em": HTMLElement;\n    "embed": HTMLEmbedElement;\n    "fieldset": HTMLFieldSetElement;\n    "figcaption": HTMLElement;\n    "figure": HTMLElement;\n    "font": HTMLFontElement;\n    "footer": HTMLElement;\n    "form": HTMLFormElement;\n    "frame": HTMLFrameElement;\n    "frameset": HTMLFrameSetElement;\n    "h1": HTMLHeadingElement;\n    "h2": HTMLHeadingElement;\n    "h3": HTMLHeadingElement;\n    "h4": HTMLHeadingElement;\n    "h5": HTMLHeadingElement;\n    "h6": HTMLHeadingElement;\n    "head": HTMLHeadElement;\n    "header": HTMLElement;\n    "hgroup": HTMLElement;\n    "hr": HTMLHRElement;\n    "html": HTMLHtmlElement;\n    "i": HTMLElement;\n    "iframe": HTMLIFrameElement;\n    "img": HTMLImageElement;\n    "input": HTMLInputElement;\n    "ins": HTMLModElement;\n    "kbd": HTMLElement;\n    "label": HTMLLabelElement;\n    "legend": HTMLLegendElement;\n    "li": HTMLLIElement;\n    "link": HTMLLinkElement;\n    "map": HTMLMapElement;\n    "mark": HTMLElement;\n    "marquee": HTMLMarqueeElement;\n    "menu": HTMLMenuElement;\n    "meta": HTMLMetaElement;\n    "meter": HTMLMeterElement;\n    "nav": HTMLElement;\n    "noscript": HTMLElement;\n    "object": HTMLObjectElement;\n    "ol": HTMLOListElement;\n    "optgroup": HTMLOptGroupElement;\n    "option": HTMLOptionElement;\n    "output": HTMLOutputElement;\n    "p": HTMLParagraphElement;\n    "param": HTMLParamElement;\n    "picture": HTMLPictureElement;\n    "pre": HTMLPreElement;\n    "progress": HTMLProgressElement;\n    "q": HTMLQuoteElement;\n    "rt": HTMLElement;\n    "ruby": HTMLElement;\n    "s": HTMLElement;\n    "samp": HTMLElement;\n    "script": HTMLScriptElement;\n    "section": HTMLElement;\n    "select": HTMLSelectElement;\n    "slot": HTMLSlotElement;\n    "small": HTMLElement;\n    "source": HTMLSourceElement;\n    "span": HTMLSpanElement;\n    "strong": HTMLElement;\n    "style": HTMLStyleElement;\n    "sub": HTMLElement;\n    "sup": HTMLElement;\n    "table": HTMLTableElement;\n    "tbody": HTMLTableSectionElement;\n    "td": HTMLTableDataCellElement;\n    "template": HTMLTemplateElement;\n    "textarea": HTMLTextAreaElement;\n    "tfoot": HTMLTableSectionElement;\n    "th": HTMLTableHeaderCellElement;\n    "thead": HTMLTableSectionElement;\n    "time": HTMLTimeElement;\n    "title": HTMLTitleElement;\n    "tr": HTMLTableRowElement;\n    "track": HTMLTrackElement;\n    "u": HTMLElement;\n    "ul": HTMLUListElement;\n    "var": HTMLElement;\n    "video": HTMLVideoElement;\n    "wbr": HTMLElement;\n}\n\ninterface HTMLElementDeprecatedTagNameMap {\n    "listing": HTMLPreElement;\n    "xmp": HTMLPreElement;\n}\n\ninterface SVGElementTagNameMap {\n    "circle": SVGCircleElement;\n    "clipPath": SVGClipPathElement;\n    "defs": SVGDefsElement;\n    "desc": SVGDescElement;\n    "ellipse": SVGEllipseElement;\n    "feBlend": SVGFEBlendElement;\n    "feColorMatrix": SVGFEColorMatrixElement;\n    "feComponentTransfer": SVGFEComponentTransferElement;\n    "feComposite": SVGFECompositeElement;\n    "feConvolveMatrix": SVGFEConvolveMatrixElement;\n    "feDiffuseLighting": SVGFEDiffuseLightingElement;\n    "feDisplacementMap": SVGFEDisplacementMapElement;\n    "feDistantLight": SVGFEDistantLightElement;\n    "feFlood": SVGFEFloodElement;\n    "feFuncA": SVGFEFuncAElement;\n    "feFuncB": SVGFEFuncBElement;\n    "feFuncG": SVGFEFuncGElement;\n    "feFuncR": SVGFEFuncRElement;\n    "feGaussianBlur": SVGFEGaussianBlurElement;\n    "feImage": SVGFEImageElement;\n    "feMerge": SVGFEMergeElement;\n    "feMergeNode": SVGFEMergeNodeElement;\n    "feMorphology": SVGFEMorphologyElement;\n    "feOffset": SVGFEOffsetElement;\n    "fePointLight": SVGFEPointLightElement;\n    "feSpecularLighting": SVGFESpecularLightingElement;\n    "feSpotLight": SVGFESpotLightElement;\n    "feTile": SVGFETileElement;\n    "feTurbulence": SVGFETurbulenceElement;\n    "filter": SVGFilterElement;\n    "foreignObject": SVGForeignObjectElement;\n    "g": SVGGElement;\n    "image": SVGImageElement;\n    "line": SVGLineElement;\n    "linearGradient": SVGLinearGradientElement;\n    "marker": SVGMarkerElement;\n    "mask": SVGMaskElement;\n    "metadata": SVGMetadataElement;\n    "path": SVGPathElement;\n    "pattern": SVGPatternElement;\n    "polygon": SVGPolygonElement;\n    "polyline": SVGPolylineElement;\n    "radialGradient": SVGRadialGradientElement;\n    "rect": SVGRectElement;\n    "stop": SVGStopElement;\n    "svg": SVGSVGElement;\n    "switch": SVGSwitchElement;\n    "symbol": SVGSymbolElement;\n    "text": SVGTextElement;\n    "textPath": SVGTextPathElement;\n    "tspan": SVGTSpanElement;\n    "use": SVGUseElement;\n    "view": SVGViewElement;\n}\n\n/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */\ninterface ElementTagNameMap extends HTMLElementTagNameMap, SVGElementTagNameMap { }\n\ndeclare var Audio: {\n    new(src?: string): HTMLAudioElement;\n};\ndeclare var Image: {\n    new(width?: number, height?: number): HTMLImageElement;\n};\ndeclare var Option: {\n    new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;\n};\ndeclare var Blob: typeof Blob;\ndeclare var URL: typeof URL;\ndeclare var URLSearchParams: typeof URLSearchParams;\ndeclare var applicationCache: ApplicationCache;\ndeclare var caches: CacheStorage;\ndeclare var clientInformation: Navigator;\ndeclare var closed: boolean;\ndeclare var crypto: Crypto;\ndeclare var customElements: CustomElementRegistry;\ndeclare var defaultStatus: string;\ndeclare var devicePixelRatio: number;\ndeclare var doNotTrack: string;\ndeclare var document: Document;\ndeclare var event: Event | undefined;\n/** @deprecated */\ndeclare var external: External;\ndeclare var frameElement: Element;\ndeclare var frames: Window;\ndeclare var history: History;\ndeclare var innerHeight: number;\ndeclare var innerWidth: number;\ndeclare var isSecureContext: boolean;\ndeclare var length: number;\ndeclare var location: Location;\ndeclare var locationbar: BarProp;\ndeclare var menubar: BarProp;\ndeclare var msContentScript: ExtensionScriptApis;\ndeclare const name: never;\ndeclare var navigator: Navigator;\ndeclare var offscreenBuffering: string | boolean;\ndeclare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;\ndeclare var ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;\ndeclare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;\ndeclare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;\ndeclare var onmousewheel: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturechange: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturedoubletap: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgestureend: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturehold: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturestart: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsgesturetap: ((this: Window, ev: Event) => any) | null;\ndeclare var onmsinertiastart: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointercancel: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerdown: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerenter: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerleave: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointermove: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerout: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerover: ((this: Window, ev: Event) => any) | null;\ndeclare var onmspointerup: ((this: Window, ev: Event) => any) | null;\n/** @deprecated */\ndeclare var onorientationchange: ((this: Window, ev: Event) => any) | null;\ndeclare var onreadystatechange: ((this: Window, ev: ProgressEvent) => any) | null;\ndeclare var onvrdisplayactivate: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplayblur: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplayconnect: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaydeactivate: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaydisconnect: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplayfocus: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaypointerrestricted: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaypointerunrestricted: ((this: Window, ev: Event) => any) | null;\ndeclare var onvrdisplaypresentchange: ((this: Window, ev: Event) => any) | null;\ndeclare var opener: any;\n/** @deprecated */\ndeclare var orientation: string | number;\ndeclare var outerHeight: number;\ndeclare var outerWidth: number;\ndeclare var pageXOffset: number;\ndeclare var pageYOffset: number;\ndeclare var parent: Window;\ndeclare var performance: Performance;\ndeclare var personalbar: BarProp;\ndeclare var screen: Screen;\ndeclare var screenLeft: number;\ndeclare var screenTop: number;\ndeclare var screenX: number;\ndeclare var screenY: number;\ndeclare var scrollX: number;\ndeclare var scrollY: number;\ndeclare var scrollbars: BarProp;\ndeclare var self: Window;\ndeclare var speechSynthesis: SpeechSynthesis;\ndeclare var status: string;\ndeclare var statusbar: BarProp;\ndeclare var styleMedia: StyleMedia;\ndeclare var toolbar: BarProp;\ndeclare var top: Window;\ndeclare var window: Window;\ndeclare function alert(message?: any): void;\ndeclare function blur(): void;\ndeclare function cancelAnimationFrame(handle: number): void;\n/** @deprecated */\ndeclare function captureEvents(): void;\ndeclare function close(): void;\ndeclare function confirm(message?: string): boolean;\ndeclare function departFocus(navigationReason: NavigationReason, origin: FocusNavigationOrigin): void;\ndeclare function focus(): void;\ndeclare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;\ndeclare function getMatchedCSSRules(elt: Element, pseudoElt?: string | null): CSSRuleList;\ndeclare function getSelection(): Selection;\ndeclare function matchMedia(query: string): MediaQueryList;\ndeclare function moveBy(x: number, y: number): void;\ndeclare function moveTo(x: number, y: number): void;\ndeclare function msWriteProfilerMark(profilerMarkName: string): void;\ndeclare function open(url?: string, target?: string, features?: string, replace?: boolean): Window | null;\ndeclare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;\ndeclare function print(): void;\ndeclare function prompt(message?: string, _default?: string): string | null;\n/** @deprecated */\ndeclare function releaseEvents(): void;\ndeclare function requestAnimationFrame(callback: FrameRequestCallback): number;\ndeclare function resizeBy(x: number, y: number): void;\ndeclare function resizeTo(x: number, y: number): void;\ndeclare function scroll(options?: ScrollToOptions): void;\ndeclare function scroll(x: number, y: number): void;\ndeclare function scrollBy(options?: ScrollToOptions): void;\ndeclare function scrollBy(x: number, y: number): void;\ndeclare function scrollTo(options?: ScrollToOptions): void;\ndeclare function scrollTo(x: number, y: number): void;\ndeclare function stop(): void;\ndeclare function webkitCancelAnimationFrame(handle: number): void;\ndeclare function webkitConvertPointFromNodeToPage(node: Node, pt: WebKitPoint): WebKitPoint;\ndeclare function webkitConvertPointFromPageToNode(node: Node, pt: WebKitPoint): WebKitPoint;\ndeclare function webkitRequestAnimationFrame(callback: FrameRequestCallback): number;\ndeclare function toString(): string;\n/**\n * Dispatches a synthetic event event to target and returns true\n * if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n */\ndeclare function dispatchEvent(event: Event): boolean;\ndeclare var sessionStorage: Storage;\ndeclare var localStorage: Storage;\ndeclare var console: Console;\n/**\n * Fires when the user aborts the download.\n * @param ev The event.\n */\ndeclare var onabort: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;\ndeclare var onauxclick: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n */\ndeclare var onblur: ((this: Window, ev: FocusEvent) => any) | null;\ndeclare var oncancel: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n */\ndeclare var oncanplay: ((this: Window, ev: Event) => any) | null;\ndeclare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n */\ndeclare var onchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n */\ndeclare var onclick: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onclose: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n */\ndeclare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var oncuechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n */\ndeclare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n */\ndeclare var ondrag: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n */\ndeclare var ondragend: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n */\ndeclare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondragexit: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n */\ndeclare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n */\ndeclare var ondragover: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n */\ndeclare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;\ndeclare var ondrop: ((this: Window, ev: DragEvent) => any) | null;\n/**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n */\ndeclare var ondurationchange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n */\ndeclare var onemptied: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the end of playback is reached.\n * @param ev The event\n */\ndeclare var onended: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n */\ndeclare var onerror: ErrorEventHandler;\n/**\n * Fires when the object receives focus.\n * @param ev The event.\n */\ndeclare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;\ndeclare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var oninput: ((this: Window, ev: Event) => any) | null;\ndeclare var oninvalid: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n */\ndeclare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n */\ndeclare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n */\ndeclare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;\n/**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n */\ndeclare var onload: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n */\ndeclare var onloadeddata: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n */\ndeclare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;\ndeclare var onloadend: ((this: Window, ev: ProgressEvent) => any) | null;\n/**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n */\ndeclare var onloadstart: ((this: Window, ev: Event) => any) | null;\ndeclare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n */\ndeclare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;\ndeclare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n */\ndeclare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n */\ndeclare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;\n/**\n * Occurs when playback is paused.\n * @param ev The event.\n */\ndeclare var onpause: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the play method is requested.\n * @param ev The event.\n */\ndeclare var onplay: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n */\ndeclare var onplaying: ((this: Window, ev: Event) => any) | null;\ndeclare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;\ndeclare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;\n/**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n */\ndeclare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;\n/**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n */\ndeclare var onratechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the user resets a form.\n * @param ev The event.\n */\ndeclare var onreset: ((this: Window, ev: Event) => any) | null;\ndeclare var onresize: ((this: Window, ev: UIEvent) => any) | null;\n/**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n */\ndeclare var onscroll: ((this: Window, ev: UIEvent) => any) | null;\ndeclare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;\n/**\n * Occurs when the seek operation ends.\n * @param ev The event.\n */\ndeclare var onseeked: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n */\ndeclare var onseeking: ((this: Window, ev: Event) => any) | null;\n/**\n * Fires when the current selection changes.\n * @param ev The event.\n */\ndeclare var onselect: ((this: Window, ev: UIEvent) => any) | null;\n/**\n * Occurs when the download has stopped.\n * @param ev The event.\n */\ndeclare var onstalled: ((this: Window, ev: Event) => any) | null;\ndeclare var onsubmit: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n */\ndeclare var onsuspend: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n */\ndeclare var ontimeupdate: ((this: Window, ev: Event) => any) | null;\ndeclare var ontoggle: ((this: Window, ev: Event) => any) | null;\ndeclare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null;\ndeclare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null;\ndeclare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null;\ndeclare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null;\ndeclare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;\ndeclare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;\n/**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n */\ndeclare var onvolumechange: ((this: Window, ev: Event) => any) | null;\n/**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n */\ndeclare var onwaiting: ((this: Window, ev: Event) => any) | null;\ndeclare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;\ndeclare var indexedDB: IDBFactory;\ndeclare function atob(encodedString: string): string;\ndeclare function btoa(rawString: string): string;\ndeclare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;\ndeclare var caches: CacheStorage;\ndeclare var crypto: Crypto;\ndeclare var indexedDB: IDBFactory;\ndeclare var origin: string;\ndeclare var performance: Performance;\ndeclare function atob(data: string): string;\ndeclare function btoa(data: string): string;\ndeclare function clearInterval(handle?: number): void;\ndeclare function clearTimeout(handle?: number): void;\ndeclare function createImageBitmap(image: ImageBitmapSource): Promise<ImageBitmap>;\ndeclare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number): Promise<ImageBitmap>;\ndeclare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;\ndeclare function queueMicrotask(callback: Function): void;\ndeclare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;\ndeclare var sessionStorage: Storage;\ndeclare var localStorage: Storage;\ndeclare var onafterprint: ((this: Window, ev: Event) => any) | null;\ndeclare var onbeforeprint: ((this: Window, ev: Event) => any) | null;\ndeclare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;\ndeclare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;\ndeclare var onlanguagechange: ((this: Window, ev: Event) => any) | null;\ndeclare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;\ndeclare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;\ndeclare var onoffline: ((this: Window, ev: Event) => any) | null;\ndeclare var ononline: ((this: Window, ev: Event) => any) | null;\ndeclare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;\ndeclare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;\ndeclare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;\ndeclare var onrejectionhandled: ((this: Window, ev: Event) => any) | null;\ndeclare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;\ndeclare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;\ndeclare var onunload: ((this: Window, ev: Event) => any) | null;\ndeclare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\ndeclare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\ndeclare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\ndeclare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\ntype BlobPart = BufferSource | Blob | string;\ntype HeadersInit = Headers | string[][] | Record<string, string>;\ntype BodyInit = Blob | BufferSource | FormData | URLSearchParams | ReadableStream | string;\ntype RequestInfo = Request | string;\ntype DOMHighResTimeStamp = number;\ntype RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext;\ntype HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;\ntype CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;\ntype MessageEventSource = WindowProxy | MessagePort | ServiceWorker;\ntype HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;\ntype ImageBitmapSource = CanvasImageSource | Blob | ImageData;\ntype OnErrorEventHandler = OnErrorEventHandlerNonNull | null;\ntype OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;\ntype TimerHandler = string | Function;\ntype PerformanceEntryList = PerformanceEntry[];\ntype VibratePattern = number | number[];\ntype AlgorithmIdentifier = string | Algorithm;\ntype HashAlgorithmIdentifier = AlgorithmIdentifier;\ntype BigInteger = Uint8Array;\ntype NamedCurve = string;\ntype GLenum = number;\ntype GLboolean = boolean;\ntype GLbitfield = number;\ntype GLint = number;\ntype GLsizei = number;\ntype GLintptr = number;\ntype GLsizeiptr = number;\ntype GLuint = number;\ntype GLfloat = number;\ntype GLclampf = number;\ntype TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;\ntype Float32List = Float32Array | GLfloat[];\ntype Int32List = Int32Array | GLint[];\ntype BufferSource = ArrayBufferView | ArrayBuffer;\ntype DOMTimeStamp = number;\ntype LineAndPositionSetting = number | AutoKeyword;\ntype FormDataEntryValue = File | string;\ntype InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";\ntype IDBValidKey = number | string | Date | BufferSource | IDBArrayKey;\ntype MutationRecordType = "attributes" | "characterData" | "childList";\ntype ConstrainBoolean = boolean | ConstrainBooleanParameters;\ntype ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;\ntype ConstrainDouble = number | ConstrainDoubleRange;\ntype ConstrainLong = number | ConstrainLongRange;\ntype IDBKeyPath = string;\ntype Transferable = ArrayBuffer | MessagePort | ImageBitmap;\ntype RTCIceGatherCandidate = RTCIceCandidateDictionary | RTCIceCandidateComplete;\ntype RTCTransport = RTCDtlsTransport | RTCSrtpSdesTransport;\ntype MouseWheelEvent = WheelEvent;\ntype WindowProxy = Window;\ntype AlignSetting = "start" | "center" | "end" | "left" | "right";\ntype AnimationPlayState = "idle" | "running" | "paused" | "finished";\ntype AppendMode = "segments" | "sequence";\ntype AudioContextLatencyCategory = "balanced" | "interactive" | "playback";\ntype AudioContextState = "suspended" | "running" | "closed";\ntype AutoKeyword = "auto";\ntype AutomationRate = "a-rate" | "k-rate";\ntype BinaryType = "blob" | "arraybuffer";\ntype BiquadFilterType = "lowpass" | "highpass" | "bandpass" | "lowshelf" | "highshelf" | "peaking" | "notch" | "allpass";\ntype CanPlayTypeResult = "" | "maybe" | "probably";\ntype CanvasDirection = "ltr" | "rtl" | "inherit";\ntype CanvasFillRule = "nonzero" | "evenodd";\ntype CanvasLineCap = "butt" | "round" | "square";\ntype CanvasLineJoin = "round" | "bevel" | "miter";\ntype CanvasTextAlign = "start" | "end" | "left" | "right" | "center";\ntype CanvasTextBaseline = "top" | "hanging" | "middle" | "alphabetic" | "ideographic" | "bottom";\ntype ChannelCountMode = "max" | "clamped-max" | "explicit";\ntype ChannelInterpretation = "speakers" | "discrete";\ntype ClientTypes = "window" | "worker" | "sharedworker" | "all";\ntype CompositeOperation = "replace" | "add" | "accumulate";\ntype DirectionSetting = "" | "rl" | "lr";\ntype DisplayCaptureSurfaceType = "monitor" | "window" | "application" | "browser";\ntype DistanceModelType = "linear" | "inverse" | "exponential";\ntype DocumentReadyState = "loading" | "interactive" | "complete";\ntype EndOfStreamError = "network" | "decode";\ntype FillMode = "none" | "forwards" | "backwards" | "both" | "auto";\ntype GamepadHand = "" | "left" | "right";\ntype GamepadHapticActuatorType = "vibration";\ntype GamepadInputEmulationType = "mouse" | "keyboard" | "gamepad";\ntype GamepadMappingType = "" | "standard";\ntype IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";\ntype IDBRequestReadyState = "pending" | "done";\ntype IDBTransactionMode = "readonly" | "readwrite" | "versionchange";\ntype ImageSmoothingQuality = "low" | "medium" | "high";\ntype IterationCompositeOperation = "replace" | "accumulate";\ntype KeyFormat = "raw" | "spki" | "pkcs8" | "jwk";\ntype KeyType = "public" | "private" | "secret";\ntype KeyUsage = "encrypt" | "decrypt" | "sign" | "verify" | "deriveKey" | "deriveBits" | "wrapKey" | "unwrapKey";\ntype LineAlignSetting = "start" | "center" | "end";\ntype ListeningState = "inactive" | "active" | "disambiguation";\ntype MSCredentialType = "FIDO_2_0";\ntype MSTransportType = "Embedded" | "USB" | "NFC" | "BT";\ntype MSWebViewPermissionState = "unknown" | "defer" | "allow" | "deny";\ntype MSWebViewPermissionType = "geolocation" | "unlimitedIndexedDBQuota" | "media" | "pointerlock" | "webnotifications";\ntype MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";\ntype MediaKeyMessageType = "license-request" | "license-renewal" | "license-release" | "individualization-request";\ntype MediaKeySessionType = "temporary" | "persistent-license" | "persistent-release-message";\ntype MediaKeyStatus = "usable" | "expired" | "output-downscaled" | "output-not-allowed" | "status-pending" | "internal-error";\ntype MediaKeysRequirement = "required" | "optional" | "not-allowed";\ntype MediaStreamTrackState = "live" | "ended";\ntype NavigationReason = "up" | "down" | "left" | "right";\ntype NavigationType = "navigate" | "reload" | "back_forward" | "prerender";\ntype NotificationDirection = "auto" | "ltr" | "rtl";\ntype NotificationPermission = "default" | "denied" | "granted";\ntype OrientationLockType = "any" | "natural" | "landscape" | "portrait" | "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary";\ntype OrientationType = "portrait-primary" | "portrait-secondary" | "landscape-primary" | "landscape-secondary";\ntype OscillatorType = "sine" | "square" | "sawtooth" | "triangle" | "custom";\ntype OverSampleType = "none" | "2x" | "4x";\ntype PanningModelType = "equalpower" | "HRTF";\ntype PaymentComplete = "success" | "fail" | "unknown";\ntype PaymentShippingType = "shipping" | "delivery" | "pickup";\ntype PlaybackDirection = "normal" | "reverse" | "alternate" | "alternate-reverse";\ntype PositionAlignSetting = "line-left" | "center" | "line-right" | "auto";\ntype PushEncryptionKeyName = "p256dh" | "auth";\ntype PushPermissionState = "denied" | "granted" | "prompt";\ntype RTCBundlePolicy = "balanced" | "max-compat" | "max-bundle";\ntype RTCDataChannelState = "connecting" | "open" | "closing" | "closed";\ntype RTCDegradationPreference = "maintain-framerate" | "maintain-resolution" | "balanced";\ntype RTCDtlsRole = "auto" | "client" | "server";\ntype RTCDtlsTransportState = "new" | "connecting" | "connected" | "closed" | "failed";\ntype RTCDtxStatus = "disabled" | "enabled";\ntype RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "idp-bad-script-failure" | "idp-execution-failure" | "idp-load-failure" | "idp-need-login" | "idp-timeout" | "idp-tls-failure" | "idp-token-expired" | "idp-token-invalid" | "sctp-failure" | "sdp-syntax-error" | "hardware-encoder-not-available" | "hardware-encoder-error";\ntype RTCIceCandidateType = "host" | "srflx" | "prflx" | "relay";\ntype RTCIceComponent = "rtp" | "rtcp";\ntype RTCIceConnectionState = "new" | "checking" | "connected" | "completed" | "disconnected" | "failed" | "closed";\ntype RTCIceCredentialType = "password" | "oauth";\ntype RTCIceGatherPolicy = "all" | "nohost" | "relay";\ntype RTCIceGathererState = "new" | "gathering" | "complete";\ntype RTCIceGatheringState = "new" | "gathering" | "complete";\ntype RTCIceProtocol = "udp" | "tcp";\ntype RTCIceRole = "controlling" | "controlled";\ntype RTCIceTcpCandidateType = "active" | "passive" | "so";\ntype RTCIceTransportPolicy = "relay" | "all";\ntype RTCIceTransportState = "new" | "checking" | "connected" | "completed" | "disconnected" | "failed" | "closed";\ntype RTCPeerConnectionState = "new" | "connecting" | "connected" | "disconnected" | "failed" | "closed";\ntype RTCPriorityType = "very-low" | "low" | "medium" | "high";\ntype RTCRtcpMuxPolicy = "negotiate" | "require";\ntype RTCRtpTransceiverDirection = "sendrecv" | "sendonly" | "recvonly" | "inactive";\ntype RTCSctpTransportState = "connecting" | "connected" | "closed";\ntype RTCSdpType = "offer" | "pranswer" | "answer" | "rollback";\ntype RTCSignalingState = "stable" | "have-local-offer" | "have-remote-offer" | "have-local-pranswer" | "have-remote-pranswer" | "closed";\ntype RTCStatsIceCandidatePairState = "frozen" | "waiting" | "inprogress" | "failed" | "succeeded" | "cancelled";\ntype RTCStatsIceCandidateType = "host" | "serverreflexive" | "peerreflexive" | "relayed";\ntype RTCStatsType = "inboundrtp" | "outboundrtp" | "session" | "datachannel" | "track" | "transport" | "candidatepair" | "localcandidate" | "remotecandidate";\ntype ReadyState = "closed" | "open" | "ended";\ntype ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin-only" | "origin-when-cross-origin" | "unsafe-url";\ntype RequestCache = "default" | "no-store" | "reload" | "no-cache" | "force-cache" | "only-if-cached";\ntype RequestCredentials = "omit" | "same-origin" | "include";\ntype RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";\ntype RequestMode = "navigate" | "same-origin" | "no-cors" | "cors";\ntype RequestRedirect = "follow" | "error" | "manual";\ntype ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";\ntype ScopedCredentialType = "ScopedCred";\ntype ScrollBehavior = "auto" | "instant" | "smooth";\ntype ScrollLogicalPosition = "start" | "center" | "end" | "nearest";\ntype ScrollRestoration = "auto" | "manual";\ntype ScrollSetting = "" | "up";\ntype SelectionMode = "select" | "start" | "end" | "preserve";\ntype ServiceWorkerState = "installing" | "installed" | "activating" | "activated" | "redundant";\ntype ServiceWorkerUpdateViaCache = "imports" | "all" | "none";\ntype ShadowRootMode = "open" | "closed";\ntype SpeechRecognitionErrorCode = "no-speech" | "aborted" | "audio-capture" | "network" | "not-allowed" | "service-not-allowed" | "bad-grammar" | "language-not-supported";\ntype SpeechSynthesisErrorCode = "canceled" | "interrupted" | "audio-busy" | "audio-hardware" | "network" | "synthesis-unavailable" | "synthesis-failed" | "language-unavailable" | "voice-unavailable" | "text-too-long" | "invalid-argument";\ntype SupportedType = "text/html" | "text/xml" | "application/xml" | "application/xhtml+xml" | "image/svg+xml";\ntype TextTrackKind = "subtitles" | "captions" | "descriptions" | "chapters" | "metadata";\ntype TextTrackMode = "disabled" | "hidden" | "showing";\ntype TouchType = "direct" | "stylus";\ntype Transport = "usb" | "nfc" | "ble";\ntype VRDisplayEventReason = "mounted" | "navigation" | "requested" | "unmounted";\ntype VideoFacingModeEnum = "user" | "environment" | "left" | "right";\ntype VisibilityState = "hidden" | "visible" | "prerender";\ntype WebGLPowerPreference = "default" | "low-power" | "high-performance";\ntype WorkerType = "classic" | "module";\ntype XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";\n',n.lib_es5_dts="/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib=\"true\"/>\n\n\n/////////////////////////////\n/// ECMAScript APIs\n/////////////////////////////\n\ndeclare const NaN: number;\ndeclare const Infinity: number;\n\n/**\n  * Evaluates JavaScript code and executes it.\n  * @param x A String value that contains valid JavaScript code.\n  */\ndeclare function eval(x: string): any;\n\n/**\n  * Converts A string to an integer.\n  * @param s A string to convert into a number.\n  * @param radix A value between 2 and 36 that specifies the base of the number in numString.\n  * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.\n  * All other strings are considered decimal.\n  */\ndeclare function parseInt(s: string, radix?: number): number;\n\n/**\n  * Converts a string to a floating-point number.\n  * @param string A string that contains a floating-point number.\n  */\ndeclare function parseFloat(string: string): number;\n\n/**\n  * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).\n  * @param number A numeric value.\n  */\ndeclare function isNaN(number: number): boolean;\n\n/**\n  * Determines whether a supplied number is finite.\n  * @param number Any numeric value.\n  */\ndeclare function isFinite(number: number): boolean;\n\n/**\n  * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).\n  * @param encodedURI A value representing an encoded URI.\n  */\ndeclare function decodeURI(encodedURI: string): string;\n\n/**\n  * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).\n  * @param encodedURIComponent A value representing an encoded URI component.\n  */\ndeclare function decodeURIComponent(encodedURIComponent: string): string;\n\n/**\n  * Encodes a text string as a valid Uniform Resource Identifier (URI)\n  * @param uri A value representing an encoded URI.\n  */\ndeclare function encodeURI(uri: string): string;\n\n/**\n  * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).\n  * @param uriComponent A value representing an encoded URI component.\n  */\ndeclare function encodeURIComponent(uriComponent: string): string;\n\n/**\n  * Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.\n  * @param string A string value\n  */\ndeclare function escape(string: string): string;\n\n/**\n  * Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.\n  * @param string A string value\n  */\ndeclare function unescape(string: string): string;\n\ninterface Symbol {\n  /** Returns a string representation of an object. */\n  toString(): string;\n\n  /** Returns the primitive value of the specified object. */\n  valueOf(): symbol;\n}\n\ndeclare type PropertyKey = string | number | symbol;\n\ninterface PropertyDescriptor {\n    configurable?: boolean;\n    enumerable?: boolean;\n    value?: any;\n    writable?: boolean;\n    get?(): any;\n    set?(v: any): void;\n}\n\ninterface PropertyDescriptorMap {\n    [s: string]: PropertyDescriptor;\n}\n\ninterface Object {\n    /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */\n    constructor: Function;\n\n    /** Returns a string representation of an object. */\n    toString(): string;\n\n    /** Returns a date converted to a string using the current locale. */\n    toLocaleString(): string;\n\n    /** Returns the primitive value of the specified object. */\n    valueOf(): Object;\n\n    /**\n      * Determines whether an object has a property with the specified name.\n      * @param v A property name.\n      */\n    hasOwnProperty(v: PropertyKey): boolean;\n\n    /**\n      * Determines whether an object exists in another object's prototype chain.\n      * @param v Another object whose prototype chain is to be checked.\n      */\n    isPrototypeOf(v: Object): boolean;\n\n    /**\n      * Determines whether a specified property is enumerable.\n      * @param v A property name.\n      */\n    propertyIsEnumerable(v: PropertyKey): boolean;\n}\n\ninterface ObjectConstructor {\n    new(value?: any): Object;\n    (): any;\n    (value: any): any;\n\n    /** A reference to the prototype for a class of objects. */\n    readonly prototype: Object;\n\n    /**\n      * Returns the prototype of an object.\n      * @param o The object that references the prototype.\n      */\n    getPrototypeOf(o: any): any;\n\n    /**\n      * Gets the own property descriptor of the specified object.\n      * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.\n      * @param o Object that contains the property.\n      * @param p Name of the property.\n    */\n    getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;\n\n    /**\n      * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly\n      * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.\n      * @param o Object that contains the own properties.\n      */\n    getOwnPropertyNames(o: any): string[];\n\n    /**\n      * Creates an object that has the specified prototype or that has null prototype.\n      * @param o Object to use as a prototype. May be null.\n      */\n    create(o: object | null): any;\n\n    /**\n      * Creates an object that has the specified prototype, and that optionally contains specified properties.\n      * @param o Object to use as a prototype. May be null\n      * @param properties JavaScript object that contains one or more property descriptors.\n      */\n    create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;\n\n    /**\n      * Adds a property to an object, or modifies attributes of an existing property.\n      * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.\n      * @param p The property name.\n      * @param attributes Descriptor for the property. It can be for a data property or an accessor property.\n      */\n    defineProperty(o: any, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): any;\n\n    /**\n      * Adds one or more properties to an object, and/or modifies attributes of existing properties.\n      * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.\n      * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.\n      */\n    defineProperties(o: any, properties: PropertyDescriptorMap & ThisType<any>): any;\n\n    /**\n      * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.\n      * @param o Object on which to lock the attributes.\n      */\n    seal<T>(o: T): T;\n\n    /**\n      * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n      * @param o Object on which to lock the attributes.\n      */\n    freeze<T>(a: T[]): ReadonlyArray<T>;\n\n    /**\n      * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n      * @param o Object on which to lock the attributes.\n      */\n    freeze<T extends Function>(f: T): T;\n\n    /**\n      * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.\n      * @param o Object on which to lock the attributes.\n      */\n    freeze<T>(o: T): Readonly<T>;\n\n    /**\n      * Prevents the addition of new properties to an object.\n      * @param o Object to make non-extensible.\n      */\n    preventExtensions<T>(o: T): T;\n\n    /**\n      * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.\n      * @param o Object to test.\n      */\n    isSealed(o: any): boolean;\n\n    /**\n      * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.\n      * @param o Object to test.\n      */\n    isFrozen(o: any): boolean;\n\n    /**\n      * Returns a value that indicates whether new properties can be added to an object.\n      * @param o Object to test.\n      */\n    isExtensible(o: any): boolean;\n\n    /**\n      * Returns the names of the enumerable properties and methods of an object.\n      * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.\n      */\n    keys(o: {}): string[];\n}\n\n/**\n  * Provides functionality common to all JavaScript objects.\n  */\ndeclare const Object: ObjectConstructor;\n\n/**\n  * Creates a new function.\n  */\ninterface Function {\n    /**\n      * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.\n      * @param thisArg The object to be used as the this object.\n      * @param argArray A set of arguments to be passed to the function.\n      */\n    apply(this: Function, thisArg: any, argArray?: any): any;\n\n    /**\n      * Calls a method of an object, substituting another object for the current object.\n      * @param thisArg The object to be used as the current object.\n      * @param argArray A list of arguments to be passed to the method.\n      */\n    call(this: Function, thisArg: any, ...argArray: any[]): any;\n\n    /**\n      * For a given function, creates a bound function that has the same body as the original function.\n      * The this object of the bound function is associated with the specified object, and has the specified initial parameters.\n      * @param thisArg An object to which the this keyword can refer inside the new function.\n      * @param argArray A list of arguments to be passed to the new function.\n      */\n    bind(this: Function, thisArg: any, ...argArray: any[]): any;\n\n    /** Returns a string representation of a function. */\n    toString(): string;\n\n    prototype: any;\n    readonly length: number;\n\n    // Non-standard extensions\n    arguments: any;\n    caller: Function;\n}\n\ninterface FunctionConstructor {\n    /**\n      * Creates a new function.\n      * @param args A list of arguments the function accepts.\n      */\n    new(...args: string[]): Function;\n    (...args: string[]): Function;\n    readonly prototype: Function;\n}\n\ndeclare const Function: FunctionConstructor;\n\ninterface IArguments {\n    [index: number]: any;\n    length: number;\n    callee: Function;\n}\n\ninterface String {\n    /** Returns a string representation of a string. */\n    toString(): string;\n\n    /**\n      * Returns the character at the specified index.\n      * @param pos The zero-based index of the desired character.\n      */\n    charAt(pos: number): string;\n\n    /**\n      * Returns the Unicode value of the character at the specified location.\n      * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.\n      */\n    charCodeAt(index: number): number;\n\n    /**\n      * Returns a string that contains the concatenation of two or more strings.\n      * @param strings The strings to append to the end of the string.\n      */\n    concat(...strings: string[]): string;\n\n    /**\n      * Returns the position of the first occurrence of a substring.\n      * @param searchString The substring to search for in the string\n      * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.\n      */\n    indexOf(searchString: string, position?: number): number;\n\n    /**\n      * Returns the last occurrence of a substring in the string.\n      * @param searchString The substring to search for.\n      * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.\n      */\n    lastIndexOf(searchString: string, position?: number): number;\n\n    /**\n      * Determines whether two strings are equivalent in the current locale.\n      * @param that String to compare to target string\n      */\n    localeCompare(that: string): number;\n\n    /**\n      * Matches a string with a regular expression, and returns an array containing the results of that search.\n      * @param regexp A variable name or string literal containing the regular expression pattern and flags.\n      */\n    match(regexp: string | RegExp): RegExpMatchArray | null;\n\n    /**\n      * Replaces text in a string, using a regular expression or search string.\n      * @param searchValue A string to search for.\n      * @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.\n      */\n    replace(searchValue: string | RegExp, replaceValue: string): string;\n\n    /**\n      * Replaces text in a string, using a regular expression or search string.\n      * @param searchValue A string to search for.\n      * @param replacer A function that returns the replacement text.\n      */\n    replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;\n\n    /**\n      * Finds the first substring match in a regular expression search.\n      * @param regexp The regular expression pattern and applicable flags.\n      */\n    search(regexp: string | RegExp): number;\n\n    /**\n      * Returns a section of a string.\n      * @param start The index to the beginning of the specified portion of stringObj.\n      * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\n      * If this value is not specified, the substring continues to the end of stringObj.\n      */\n    slice(start?: number, end?: number): string;\n\n    /**\n      * Split a string into substrings using the specified separator and return them as an array.\n      * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.\n      * @param limit A value used to limit the number of elements returned in the array.\n      */\n    split(separator: string | RegExp, limit?: number): string[];\n\n    /**\n      * Returns the substring at the specified location within a String object.\n      * @param start The zero-based index number indicating the beginning of the substring.\n      * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\n      * If end is omitted, the characters from start through the end of the original string are returned.\n      */\n    substring(start: number, end?: number): string;\n\n    /** Converts all the alphabetic characters in a string to lowercase. */\n    toLowerCase(): string;\n\n    /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */\n    toLocaleLowerCase(): string;\n\n    /** Converts all the alphabetic characters in a string to uppercase. */\n    toUpperCase(): string;\n\n    /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */\n    toLocaleUpperCase(): string;\n\n    /** Removes the leading and trailing white space and line terminator characters from a string. */\n    trim(): string;\n\n    /** Returns the length of a String object. */\n    readonly length: number;\n\n    // IE extensions\n    /**\n      * Gets a substring beginning at the specified location and having the specified length.\n      * @param from The starting position of the desired substring. The index of the first character in the string is zero.\n      * @param length The number of characters to include in the returned substring.\n      */\n    substr(from: number, length?: number): string;\n\n    /** Returns the primitive value of the specified object. */\n    valueOf(): string;\n\n    readonly [index: number]: string;\n}\n\ninterface StringConstructor {\n    new(value?: any): String;\n    (value?: any): string;\n    readonly prototype: String;\n    fromCharCode(...codes: number[]): string;\n}\n\n/**\n  * Allows manipulation and formatting of text strings and determination and location of substrings within strings.\n  */\ndeclare const String: StringConstructor;\n\ninterface Boolean {\n    /** Returns the primitive value of the specified object. */\n    valueOf(): boolean;\n}\n\ninterface BooleanConstructor {\n    new(value?: any): Boolean;\n    (value?: any): boolean;\n    readonly prototype: Boolean;\n}\n\ndeclare const Boolean: BooleanConstructor;\n\ninterface Number {\n    /**\n      * Returns a string representation of an object.\n      * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.\n      */\n    toString(radix?: number): string;\n\n    /**\n      * Returns a string representing a number in fixed-point notation.\n      * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\n      */\n    toFixed(fractionDigits?: number): string;\n\n    /**\n      * Returns a string containing a number represented in exponential notation.\n      * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.\n      */\n    toExponential(fractionDigits?: number): string;\n\n    /**\n      * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.\n      * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.\n      */\n    toPrecision(precision?: number): string;\n\n    /** Returns the primitive value of the specified object. */\n    valueOf(): number;\n}\n\ninterface NumberConstructor {\n    new(value?: any): Number;\n    (value?: any): number;\n    readonly prototype: Number;\n\n    /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */\n    readonly MAX_VALUE: number;\n\n    /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */\n    readonly MIN_VALUE: number;\n\n    /**\n      * A value that is not a number.\n      * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.\n      */\n    readonly NaN: number;\n\n    /**\n      * A value that is less than the largest negative number that can be represented in JavaScript.\n      * JavaScript displays NEGATIVE_INFINITY values as -infinity.\n      */\n    readonly NEGATIVE_INFINITY: number;\n\n    /**\n      * A value greater than the largest number that can be represented in JavaScript.\n      * JavaScript displays POSITIVE_INFINITY values as infinity.\n      */\n    readonly POSITIVE_INFINITY: number;\n}\n\n/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */\ndeclare const Number: NumberConstructor;\n\ninterface TemplateStringsArray extends ReadonlyArray<string> {\n    readonly raw: ReadonlyArray<string>;\n}\n\n/**\n * The type of `import.meta`.\n * \n * If you need to declare that a given property exists on `import.meta`,\n * this type may be augmented via interface merging.\n */\ninterface ImportMeta {\n}\n\ninterface Math {\n    /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */\n    readonly E: number;\n    /** The natural logarithm of 10. */\n    readonly LN10: number;\n    /** The natural logarithm of 2. */\n    readonly LN2: number;\n    /** The base-2 logarithm of e. */\n    readonly LOG2E: number;\n    /** The base-10 logarithm of e. */\n    readonly LOG10E: number;\n    /** Pi. This is the ratio of the circumference of a circle to its diameter. */\n    readonly PI: number;\n    /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */\n    readonly SQRT1_2: number;\n    /** The square root of 2. */\n    readonly SQRT2: number;\n    /**\n      * Returns the absolute value of a number (the value without regard to whether it is positive or negative).\n      * For example, the absolute value of -5 is the same as the absolute value of 5.\n      * @param x A numeric expression for which the absolute value is needed.\n      */\n    abs(x: number): number;\n    /**\n      * Returns the arc cosine (or inverse cosine) of a number.\n      * @param x A numeric expression.\n      */\n    acos(x: number): number;\n    /**\n      * Returns the arcsine of a number.\n      * @param x A numeric expression.\n      */\n    asin(x: number): number;\n    /**\n      * Returns the arctangent of a number.\n      * @param x A numeric expression for which the arctangent is needed.\n      */\n    atan(x: number): number;\n    /**\n      * Returns the angle (in radians) from the X axis to a point.\n      * @param y A numeric expression representing the cartesian y-coordinate.\n      * @param x A numeric expression representing the cartesian x-coordinate.\n      */\n    atan2(y: number, x: number): number;\n    /**\n      * Returns the smallest integer greater than or equal to its numeric argument.\n      * @param x A numeric expression.\n      */\n    ceil(x: number): number;\n    /**\n      * Returns the cosine of a number.\n      * @param x A numeric expression that contains an angle measured in radians.\n      */\n    cos(x: number): number;\n    /**\n      * Returns e (the base of natural logarithms) raised to a power.\n      * @param x A numeric expression representing the power of e.\n      */\n    exp(x: number): number;\n    /**\n      * Returns the greatest integer less than or equal to its numeric argument.\n      * @param x A numeric expression.\n      */\n    floor(x: number): number;\n    /**\n      * Returns the natural logarithm (base e) of a number.\n      * @param x A numeric expression.\n      */\n    log(x: number): number;\n    /**\n      * Returns the larger of a set of supplied numeric expressions.\n      * @param values Numeric expressions to be evaluated.\n      */\n    max(...values: number[]): number;\n    /**\n      * Returns the smaller of a set of supplied numeric expressions.\n      * @param values Numeric expressions to be evaluated.\n      */\n    min(...values: number[]): number;\n    /**\n      * Returns the value of a base expression taken to a specified power.\n      * @param x The base value of the expression.\n      * @param y The exponent value of the expression.\n      */\n    pow(x: number, y: number): number;\n    /** Returns a pseudorandom number between 0 and 1. */\n    random(): number;\n    /**\n      * Returns a supplied numeric expression rounded to the nearest number.\n      * @param x The value to be rounded to the nearest number.\n      */\n    round(x: number): number;\n    /**\n      * Returns the sine of a number.\n      * @param x A numeric expression that contains an angle measured in radians.\n      */\n    sin(x: number): number;\n    /**\n      * Returns the square root of a number.\n      * @param x A numeric expression.\n      */\n    sqrt(x: number): number;\n    /**\n      * Returns the tangent of a number.\n      * @param x A numeric expression that contains an angle measured in radians.\n      */\n    tan(x: number): number;\n}\n/** An intrinsic object that provides basic mathematics functionality and constants. */\ndeclare const Math: Math;\n\n/** Enables basic storage and retrieval of dates and times. */\ninterface Date {\n    /** Returns a string representation of a date. The format of the string depends on the locale. */\n    toString(): string;\n    /** Returns a date as a string value. */\n    toDateString(): string;\n    /** Returns a time as a string value. */\n    toTimeString(): string;\n    /** Returns a value as a string value appropriate to the host environment's current locale. */\n    toLocaleString(): string;\n    /** Returns a date as a string value appropriate to the host environment's current locale. */\n    toLocaleDateString(): string;\n    /** Returns a time as a string value appropriate to the host environment's current locale. */\n    toLocaleTimeString(): string;\n    /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */\n    valueOf(): number;\n    /** Gets the time value in milliseconds. */\n    getTime(): number;\n    /** Gets the year, using local time. */\n    getFullYear(): number;\n    /** Gets the year using Universal Coordinated Time (UTC). */\n    getUTCFullYear(): number;\n    /** Gets the month, using local time. */\n    getMonth(): number;\n    /** Gets the month of a Date object using Universal Coordinated Time (UTC). */\n    getUTCMonth(): number;\n    /** Gets the day-of-the-month, using local time. */\n    getDate(): number;\n    /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */\n    getUTCDate(): number;\n    /** Gets the day of the week, using local time. */\n    getDay(): number;\n    /** Gets the day of the week using Universal Coordinated Time (UTC). */\n    getUTCDay(): number;\n    /** Gets the hours in a date, using local time. */\n    getHours(): number;\n    /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */\n    getUTCHours(): number;\n    /** Gets the minutes of a Date object, using local time. */\n    getMinutes(): number;\n    /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */\n    getUTCMinutes(): number;\n    /** Gets the seconds of a Date object, using local time. */\n    getSeconds(): number;\n    /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */\n    getUTCSeconds(): number;\n    /** Gets the milliseconds of a Date, using local time. */\n    getMilliseconds(): number;\n    /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */\n    getUTCMilliseconds(): number;\n    /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */\n    getTimezoneOffset(): number;\n    /**\n      * Sets the date and time value in the Date object.\n      * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.\n      */\n    setTime(time: number): number;\n    /**\n      * Sets the milliseconds value in the Date object using local time.\n      * @param ms A numeric value equal to the millisecond value.\n      */\n    setMilliseconds(ms: number): number;\n    /**\n      * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).\n      * @param ms A numeric value equal to the millisecond value.\n      */\n    setUTCMilliseconds(ms: number): number;\n\n    /**\n      * Sets the seconds value in the Date object using local time.\n      * @param sec A numeric value equal to the seconds value.\n      * @param ms A numeric value equal to the milliseconds value.\n      */\n    setSeconds(sec: number, ms?: number): number;\n    /**\n      * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).\n      * @param sec A numeric value equal to the seconds value.\n      * @param ms A numeric value equal to the milliseconds value.\n      */\n    setUTCSeconds(sec: number, ms?: number): number;\n    /**\n      * Sets the minutes value in the Date object using local time.\n      * @param min A numeric value equal to the minutes value.\n      * @param sec A numeric value equal to the seconds value.\n      * @param ms A numeric value equal to the milliseconds value.\n      */\n    setMinutes(min: number, sec?: number, ms?: number): number;\n    /**\n      * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).\n      * @param min A numeric value equal to the minutes value.\n      * @param sec A numeric value equal to the seconds value.\n      * @param ms A numeric value equal to the milliseconds value.\n      */\n    setUTCMinutes(min: number, sec?: number, ms?: number): number;\n    /**\n      * Sets the hour value in the Date object using local time.\n      * @param hours A numeric value equal to the hours value.\n      * @param min A numeric value equal to the minutes value.\n      * @param sec A numeric value equal to the seconds value.\n      * @param ms A numeric value equal to the milliseconds value.\n      */\n    setHours(hours: number, min?: number, sec?: number, ms?: number): number;\n    /**\n      * Sets the hours value in the Date object using Universal Coordinated Time (UTC).\n      * @param hours A numeric value equal to the hours value.\n      * @param min A numeric value equal to the minutes value.\n      * @param sec A numeric value equal to the seconds value.\n      * @param ms A numeric value equal to the milliseconds value.\n      */\n    setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;\n    /**\n      * Sets the numeric day-of-the-month value of the Date object using local time.\n      * @param date A numeric value equal to the day of the month.\n      */\n    setDate(date: number): number;\n    /**\n      * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).\n      * @param date A numeric value equal to the day of the month.\n      */\n    setUTCDate(date: number): number;\n    /**\n      * Sets the month value in the Date object using local time.\n      * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\n      * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.\n      */\n    setMonth(month: number, date?: number): number;\n    /**\n      * Sets the month value in the Date object using Universal Coordinated Time (UTC).\n      * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.\n      * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.\n      */\n    setUTCMonth(month: number, date?: number): number;\n    /**\n      * Sets the year of the Date object using local time.\n      * @param year A numeric value for the year.\n      * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.\n      * @param date A numeric value equal for the day of the month.\n      */\n    setFullYear(year: number, month?: number, date?: number): number;\n    /**\n      * Sets the year value in the Date object using Universal Coordinated Time (UTC).\n      * @param year A numeric value equal to the year.\n      * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.\n      * @param date A numeric value equal to the day of the month.\n      */\n    setUTCFullYear(year: number, month?: number, date?: number): number;\n    /** Returns a date converted to a string using Universal Coordinated Time (UTC). */\n    toUTCString(): string;\n    /** Returns a date as a string value in ISO format. */\n    toISOString(): string;\n    /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */\n    toJSON(key?: any): string;\n}\n\ninterface DateConstructor {\n    new(): Date;\n    new(value: number | string): Date;\n    new(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;\n    (): string;\n    readonly prototype: Date;\n    /**\n      * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.\n      * @param s A date string\n      */\n    parse(s: string): number;\n    /**\n      * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.\n      * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.\n      * @param month The month as an number between 0 and 11 (January to December).\n      * @param date The date as an number between 1 and 31.\n      * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour.\n      * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes.\n      * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds.\n      * @param ms An number from 0 to 999 that specifies the milliseconds.\n      */\n    UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;\n    now(): number;\n}\n\ndeclare const Date: DateConstructor;\n\ninterface RegExpMatchArray extends Array<string> {\n    index?: number;\n    input?: string;\n}\n\ninterface RegExpExecArray extends Array<string> {\n    index: number;\n    input: string;\n}\n\ninterface RegExp {\n    /**\n      * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.\n      * @param string The String object or string literal on which to perform the search.\n      */\n    exec(string: string): RegExpExecArray | null;\n\n    /**\n      * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.\n      * @param string String on which to perform the search.\n      */\n    test(string: string): boolean;\n\n    /** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */\n    readonly source: string;\n\n    /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */\n    readonly global: boolean;\n\n    /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */\n    readonly ignoreCase: boolean;\n\n    /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */\n    readonly multiline: boolean;\n\n    lastIndex: number;\n\n    // Non-standard extensions\n    compile(): this;\n}\n\ninterface RegExpConstructor {\n    new(pattern: RegExp | string): RegExp;\n    new(pattern: string, flags?: string): RegExp;\n    (pattern: RegExp | string): RegExp;\n    (pattern: string, flags?: string): RegExp;\n    readonly prototype: RegExp;\n\n    // Non-standard extensions\n    $1: string;\n    $2: string;\n    $3: string;\n    $4: string;\n    $5: string;\n    $6: string;\n    $7: string;\n    $8: string;\n    $9: string;\n    lastMatch: string;\n}\n\ndeclare const RegExp: RegExpConstructor;\n\ninterface Error {\n    name: string;\n    message: string;\n    stack?: string;\n}\n\ninterface ErrorConstructor {\n    new(message?: string): Error;\n    (message?: string): Error;\n    readonly prototype: Error;\n}\n\ndeclare const Error: ErrorConstructor;\n\ninterface EvalError extends Error {\n}\n\ninterface EvalErrorConstructor {\n    new(message?: string): EvalError;\n    (message?: string): EvalError;\n    readonly prototype: EvalError;\n}\n\ndeclare const EvalError: EvalErrorConstructor;\n\ninterface RangeError extends Error {\n}\n\ninterface RangeErrorConstructor {\n    new(message?: string): RangeError;\n    (message?: string): RangeError;\n    readonly prototype: RangeError;\n}\n\ndeclare const RangeError: RangeErrorConstructor;\n\ninterface ReferenceError extends Error {\n}\n\ninterface ReferenceErrorConstructor {\n    new(message?: string): ReferenceError;\n    (message?: string): ReferenceError;\n    readonly prototype: ReferenceError;\n}\n\ndeclare const ReferenceError: ReferenceErrorConstructor;\n\ninterface SyntaxError extends Error {\n}\n\ninterface SyntaxErrorConstructor {\n    new(message?: string): SyntaxError;\n    (message?: string): SyntaxError;\n    readonly prototype: SyntaxError;\n}\n\ndeclare const SyntaxError: SyntaxErrorConstructor;\n\ninterface TypeError extends Error {\n}\n\ninterface TypeErrorConstructor {\n    new(message?: string): TypeError;\n    (message?: string): TypeError;\n    readonly prototype: TypeError;\n}\n\ndeclare const TypeError: TypeErrorConstructor;\n\ninterface URIError extends Error {\n}\n\ninterface URIErrorConstructor {\n    new(message?: string): URIError;\n    (message?: string): URIError;\n    readonly prototype: URIError;\n}\n\ndeclare const URIError: URIErrorConstructor;\n\ninterface JSON {\n    /**\n      * Converts a JavaScript Object Notation (JSON) string into an object.\n      * @param text A valid JSON string.\n      * @param reviver A function that transforms the results. This function is called for each member of the object.\n      * If a member contains nested objects, the nested objects are transformed before the parent object is.\n      */\n    parse(text: string, reviver?: (key: any, value: any) => any): any;\n    /**\n      * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n      * @param value A JavaScript value, usually an object or array, to be converted.\n      * @param replacer A function that transforms the results.\n      * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n      */\n    stringify(value: any, replacer?: (key: string, value: any) => any, space?: string | number): string;\n    /**\n      * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n      * @param value A JavaScript value, usually an object or array, to be converted.\n      * @param replacer An array of strings and numbers that acts as a approved list for selecting the object properties that will be stringified.\n      * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n      */\n    stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;\n}\n\n/**\n  * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.\n  */\ndeclare const JSON: JSON;\n\n\n/////////////////////////////\n/// ECMAScript Array API (specially handled by compiler)\n/////////////////////////////\n\ninterface ReadonlyArray<T> {\n    /**\n      * Gets the length of the array. This is a number one higher than the highest element defined in an array.\n      */\n    readonly length: number;\n    /**\n      * Returns a string representation of an array.\n      */\n    toString(): string;\n    /**\n      * Returns a string representation of an array. The elements are converted to string using their toLocalString methods.\n      */\n    toLocaleString(): string;\n    /**\n      * Combines two or more arrays.\n      * @param items Additional items to add to the end of array1.\n      */\n    concat(...items: ConcatArray<T>[]): T[];\n    /**\n      * Combines two or more arrays.\n      * @param items Additional items to add to the end of array1.\n      */\n    concat(...items: (T | ConcatArray<T>)[]): T[];\n    /**\n      * Adds all the elements of an array separated by the specified separator string.\n      * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.\n      */\n    join(separator?: string): string;\n    /**\n      * Returns a section of an array.\n      * @param start The beginning of the specified portion of the array.\n      * @param end The end of the specified portion of the array.\n      */\n    slice(start?: number, end?: number): T[];\n    /**\n      * Returns the index of the first occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n      */\n    indexOf(searchElement: T, fromIndex?: number): number;\n    /**\n      * Returns the index of the last occurrence of a specified value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.\n      */\n    lastIndexOf(searchElement: T, fromIndex?: number): number;\n    /**\n      * Determines whether all the members of an array satisfy the specified test.\n      * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n      */\n    every(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): boolean;\n    /**\n      * Determines whether the specified callback function returns true for any element of an array.\n      * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n      */\n    some(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => boolean, thisArg?: any): boolean;\n    /**\n      * Performs the specified action for each element in an array.\n      * @param callbackfn  A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n      * @param thisArg  An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n      */\n    forEach(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => void, thisArg?: any): void;\n    /**\n      * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n      * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n      */\n    map<U>(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => U, thisArg?: any): U[];\n    /**\n     * Returns the elements of an array that meet the condition specified in a callback function.\n     * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n     */\n    filter<S extends T>(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => value is S, thisArg?: any): S[];\n    /**\n      * Returns the elements of an array that meet the condition specified in a callback function.\n      * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n      */\n    filter(callbackfn: (value: T, index: number, array: ReadonlyArray<T>) => any, thisArg?: any): T[];\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n      */\n    reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T): T;\n    reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T, initialValue: T): T;\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n      */\n    reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => U, initialValue: U): U;\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n      */\n    reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T): T;\n    reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => T, initialValue: T): T;\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n      */\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: ReadonlyArray<T>) => U, initialValue: U): U;\n\n    readonly [n: number]: T;\n}\n\ninterface ConcatArray<T> {\n    readonly length: number;\n    readonly [n: number]: T;\n    join(separator?: string): string;\n    slice(start?: number, end?: number): T[];\n}\n\ninterface Array<T> {\n    /**\n      * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.\n      */\n    length: number;\n    /**\n      * Returns a string representation of an array.\n      */\n    toString(): string;\n    /**\n      * Returns a string representation of an array. The elements are converted to string using their toLocalString methods.\n      */\n    toLocaleString(): string;\n    /**\n      * Removes the last element from an array and returns it.\n      */\n    pop(): T | undefined;\n    /**\n      * Appends new elements to an array, and returns the new length of the array.\n      * @param items New elements of the Array.\n      */\n    push(...items: T[]): number;\n    /**\n      * Combines two or more arrays.\n      * @param items Additional items to add to the end of array1.\n      */\n    concat(...items: ConcatArray<T>[]): T[];\n    /**\n      * Combines two or more arrays.\n      * @param items Additional items to add to the end of array1.\n      */\n    concat(...items: (T | ConcatArray<T>)[]): T[];\n    /**\n      * Adds all the elements of an array separated by the specified separator string.\n      * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.\n      */\n    join(separator?: string): string;\n    /**\n      * Reverses the elements in an Array.\n      */\n    reverse(): T[];\n    /**\n      * Removes the first element from an array and returns it.\n      */\n    shift(): T | undefined;\n    /**\n      * Returns a section of an array.\n      * @param start The beginning of the specified portion of the array.\n      * @param end The end of the specified portion of the array.\n      */\n    slice(start?: number, end?: number): T[];\n    /**\n      * Sorts an array.\n      * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.\n      */\n    sort(compareFn?: (a: T, b: T) => number): this;\n    /**\n      * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n      * @param start The zero-based location in the array from which to start removing elements.\n      * @param deleteCount The number of elements to remove.\n      */\n    splice(start: number, deleteCount?: number): T[];\n    /**\n      * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n      * @param start The zero-based location in the array from which to start removing elements.\n      * @param deleteCount The number of elements to remove.\n      * @param items Elements to insert into the array in place of the deleted elements.\n      */\n    splice(start: number, deleteCount: number, ...items: T[]): T[];\n    /**\n      * Inserts new elements at the start of an array.\n      * @param items  Elements to insert at the start of the Array.\n      */\n    unshift(...items: T[]): number;\n    /**\n      * Returns the index of the first occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n      */\n    indexOf(searchElement: T, fromIndex?: number): number;\n    /**\n      * Returns the index of the last occurrence of a specified value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.\n      */\n    lastIndexOf(searchElement: T, fromIndex?: number): number;\n    /**\n      * Determines whether all the members of an array satisfy the specified test.\n      * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n      */\n    every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;\n    /**\n      * Determines whether the specified callback function returns true for any element of an array.\n      * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n      */\n    some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;\n    /**\n      * Performs the specified action for each element in an array.\n      * @param callbackfn  A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n      * @param thisArg  An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n      */\n    forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;\n    /**\n      * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n      * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n      */\n    map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];\n    /**\n     * Returns the elements of an array that meet the condition specified in a callback function.\n     * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n     * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n     */\n    filter<S extends T>(callbackfn: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];\n    /**\n      * Returns the elements of an array that meet the condition specified in a callback function.\n      * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n      */\n    filter(callbackfn: (value: T, index: number, array: T[]) => any, thisArg?: any): T[];\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n      */\n    reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;\n    reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n      */\n    reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n      */\n    reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;\n    reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n      */\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;\n\n    [n: number]: T;\n}\n\ninterface ArrayConstructor {\n    new(arrayLength?: number): any[];\n    new <T>(arrayLength: number): T[];\n    new <T>(...items: T[]): T[];\n    (arrayLength?: number): any[];\n    <T>(arrayLength: number): T[];\n    <T>(...items: T[]): T[];\n    isArray(arg: any): arg is Array<any>;\n    readonly prototype: Array<any>;\n}\n\ndeclare const Array: ArrayConstructor;\n\ninterface TypedPropertyDescriptor<T> {\n    enumerable?: boolean;\n    configurable?: boolean;\n    writable?: boolean;\n    value?: T;\n    get?: () => T;\n    set?: (value: T) => void;\n}\n\ndeclare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;\ndeclare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;\ndeclare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;\ndeclare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;\n\ndeclare type PromiseConstructorLike = new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;\n\ninterface PromiseLike<T> {\n    /**\n     * Attaches callbacks for the resolution and/or rejection of the Promise.\n     * @param onfulfilled The callback to execute when the Promise is resolved.\n     * @param onrejected The callback to execute when the Promise is rejected.\n     * @returns A Promise for the completion of which ever callback is executed.\n     */\n    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;\n}\n\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n    /**\n     * Attaches callbacks for the resolution and/or rejection of the Promise.\n     * @param onfulfilled The callback to execute when the Promise is resolved.\n     * @param onrejected The callback to execute when the Promise is rejected.\n     * @returns A Promise for the completion of which ever callback is executed.\n     */\n    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;\n\n    /**\n     * Attaches a callback for only the rejection of the Promise.\n     * @param onrejected The callback to execute when the Promise is rejected.\n     * @returns A Promise for the completion of the callback.\n     */\n    catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;\n}\n\ninterface ArrayLike<T> {\n    readonly length: number;\n    readonly [n: number]: T;\n}\n\n/**\n * Make all properties in T optional\n */\ntype Partial<T> = {\n    [P in keyof T]?: T[P];\n};\n\n/**\n * Make all properties in T required\n */\ntype Required<T> = {\n    [P in keyof T]-?: T[P];\n};\n\n/**\n * Make all properties in T readonly\n */\ntype Readonly<T> = {\n    readonly [P in keyof T]: T[P];\n};\n\n/**\n * From T pick a set of properties K\n */\ntype Pick<T, K extends keyof T> = {\n    [P in K]: T[P];\n};\n\n/**\n * Construct a type with a set of properties K of type T\n */\ntype Record<K extends keyof any, T> = {\n    [P in K]: T;\n};\n\n/**\n * Exclude from T those types that are assignable to U\n */\ntype Exclude<T, U> = T extends U ? never : T;\n\n/**\n * Extract from T those types that are assignable to U\n */\ntype Extract<T, U> = T extends U ? T : never;\n\n/**\n * Exclude null and undefined from T\n */\ntype NonNullable<T> = T extends null | undefined ? never : T;\n\n/**\n * Obtain the parameters of a function type in a tuple\n */\ntype Parameters<T extends (...args: any[]) => any> = T extends (...args: infer P) => any ? P : never;\n\n/**\n * Obtain the parameters of a constructor function type in a tuple\n */\ntype ConstructorParameters<T extends new (...args: any[]) => any> = T extends new (...args: infer P) => any ? P : never;\n\n/**\n * Obtain the return type of a function type\n */\ntype ReturnType<T extends (...args: any[]) => any> = T extends (...args: any[]) => infer R ? R : any;\n\n/**\n * Obtain the return type of a constructor function type\n */\ntype InstanceType<T extends new (...args: any[]) => any> = T extends new (...args: any[]) => infer R ? R : any;\n\n/**\n * Marker for contextual 'this' type\n */\ninterface ThisType<T> { }\n\n/**\n  * Represents a raw buffer of binary data, which is used to store data for the\n  * different typed arrays. ArrayBuffers cannot be read from or written to directly,\n  * but can be passed to a typed array or DataView Object to interpret the raw\n  * buffer as needed.\n  */\ninterface ArrayBuffer {\n    /**\n      * Read-only. The length of the ArrayBuffer (in bytes).\n      */\n    readonly byteLength: number;\n\n    /**\n      * Returns a section of an ArrayBuffer.\n      */\n    slice(begin: number, end?: number): ArrayBuffer;\n}\n\n/**\n * Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.\n */\ninterface ArrayBufferTypes {\n    ArrayBuffer: ArrayBuffer;\n}\ntype ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];\n\ninterface ArrayBufferConstructor {\n    readonly prototype: ArrayBuffer;\n    new(byteLength: number): ArrayBuffer;\n    isView(arg: any): arg is ArrayBufferView;\n}\ndeclare const ArrayBuffer: ArrayBufferConstructor;\n\ninterface ArrayBufferView {\n    /**\n      * The ArrayBuffer instance referenced by the array.\n      */\n    buffer: ArrayBufferLike;\n\n    /**\n      * The length in bytes of the array.\n      */\n    byteLength: number;\n\n    /**\n      * The offset in bytes of the array.\n      */\n    byteOffset: number;\n}\n\ninterface DataView {\n    readonly buffer: ArrayBuffer;\n    readonly byteLength: number;\n    readonly byteOffset: number;\n    /**\n      * Gets the Float32 value at the specified byte offset from the start of the view. There is\n      * no alignment constraint; multi-byte values may be fetched from any offset.\n      * @param byteOffset The place in the buffer at which the value should be retrieved.\n      */\n    getFloat32(byteOffset: number, littleEndian?: boolean): number;\n\n    /**\n      * Gets the Float64 value at the specified byte offset from the start of the view. There is\n      * no alignment constraint; multi-byte values may be fetched from any offset.\n      * @param byteOffset The place in the buffer at which the value should be retrieved.\n      */\n    getFloat64(byteOffset: number, littleEndian?: boolean): number;\n\n    /**\n      * Gets the Int8 value at the specified byte offset from the start of the view. There is\n      * no alignment constraint; multi-byte values may be fetched from any offset.\n      * @param byteOffset The place in the buffer at which the value should be retrieved.\n      */\n    getInt8(byteOffset: number): number;\n\n    /**\n      * Gets the Int16 value at the specified byte offset from the start of the view. There is\n      * no alignment constraint; multi-byte values may be fetched from any offset.\n      * @param byteOffset The place in the buffer at which the value should be retrieved.\n      */\n    getInt16(byteOffset: number, littleEndian?: boolean): number;\n    /**\n      * Gets the Int32 value at the specified byte offset from the start of the view. There is\n      * no alignment constraint; multi-byte values may be fetched from any offset.\n      * @param byteOffset The place in the buffer at which the value should be retrieved.\n      */\n    getInt32(byteOffset: number, littleEndian?: boolean): number;\n\n    /**\n      * Gets the Uint8 value at the specified byte offset from the start of the view. There is\n      * no alignment constraint; multi-byte values may be fetched from any offset.\n      * @param byteOffset The place in the buffer at which the value should be retrieved.\n      */\n    getUint8(byteOffset: number): number;\n\n    /**\n      * Gets the Uint16 value at the specified byte offset from the start of the view. There is\n      * no alignment constraint; multi-byte values may be fetched from any offset.\n      * @param byteOffset The place in the buffer at which the value should be retrieved.\n      */\n    getUint16(byteOffset: number, littleEndian?: boolean): number;\n\n    /**\n      * Gets the Uint32 value at the specified byte offset from the start of the view. There is\n      * no alignment constraint; multi-byte values may be fetched from any offset.\n      * @param byteOffset The place in the buffer at which the value should be retrieved.\n      */\n    getUint32(byteOffset: number, littleEndian?: boolean): number;\n\n    /**\n      * Stores an Float32 value at the specified byte offset from the start of the view.\n      * @param byteOffset The place in the buffer at which the value should be set.\n      * @param value The value to set.\n      * @param littleEndian If false or undefined, a big-endian value should be written,\n      * otherwise a little-endian value should be written.\n      */\n    setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n    /**\n      * Stores an Float64 value at the specified byte offset from the start of the view.\n      * @param byteOffset The place in the buffer at which the value should be set.\n      * @param value The value to set.\n      * @param littleEndian If false or undefined, a big-endian value should be written,\n      * otherwise a little-endian value should be written.\n      */\n    setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n    /**\n      * Stores an Int8 value at the specified byte offset from the start of the view.\n      * @param byteOffset The place in the buffer at which the value should be set.\n      * @param value The value to set.\n      */\n    setInt8(byteOffset: number, value: number): void;\n\n    /**\n      * Stores an Int16 value at the specified byte offset from the start of the view.\n      * @param byteOffset The place in the buffer at which the value should be set.\n      * @param value The value to set.\n      * @param littleEndian If false or undefined, a big-endian value should be written,\n      * otherwise a little-endian value should be written.\n      */\n    setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n    /**\n      * Stores an Int32 value at the specified byte offset from the start of the view.\n      * @param byteOffset The place in the buffer at which the value should be set.\n      * @param value The value to set.\n      * @param littleEndian If false or undefined, a big-endian value should be written,\n      * otherwise a little-endian value should be written.\n      */\n    setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n    /**\n      * Stores an Uint8 value at the specified byte offset from the start of the view.\n      * @param byteOffset The place in the buffer at which the value should be set.\n      * @param value The value to set.\n      */\n    setUint8(byteOffset: number, value: number): void;\n\n    /**\n      * Stores an Uint16 value at the specified byte offset from the start of the view.\n      * @param byteOffset The place in the buffer at which the value should be set.\n      * @param value The value to set.\n      * @param littleEndian If false or undefined, a big-endian value should be written,\n      * otherwise a little-endian value should be written.\n      */\n    setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;\n\n    /**\n      * Stores an Uint32 value at the specified byte offset from the start of the view.\n      * @param byteOffset The place in the buffer at which the value should be set.\n      * @param value The value to set.\n      * @param littleEndian If false or undefined, a big-endian value should be written,\n      * otherwise a little-endian value should be written.\n      */\n    setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;\n}\n\ninterface DataViewConstructor {\n    new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;\n}\ndeclare const DataView: DataViewConstructor;\n\n/**\n  * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested\n  * number of bytes could not be allocated an exception is raised.\n  */\ninterface Int8Array {\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * The ArrayBuffer instance referenced by the array.\n      */\n    readonly buffer: ArrayBufferLike;\n\n    /**\n      * The length in bytes of the array.\n      */\n    readonly byteLength: number;\n\n    /**\n      * The offset in bytes of the array.\n      */\n    readonly byteOffset: number;\n\n    /**\n      * Returns the this object after copying a section of the array identified by start and end\n      * to the same array starting at position target\n      * @param target If target is negative, it is treated as length+target where length is the\n      * length of the array.\n      * @param start If start is negative, it is treated as length+start. If end is negative, it\n      * is treated as length+end.\n      * @param end If not specified, length of the this object is used as its default value.\n      */\n    copyWithin(target: number, start: number, end?: number): this;\n\n    /**\n      * Determines whether all the members of an array satisfy the specified test.\n      * @param callbackfn A function that accepts up to three arguments. The every method calls\n      * the callbackfn function for each element in array1 until the callbackfn returns false,\n      * or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    every(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;\n\n    /**\n        * Returns the this object after filling the section identified by start and end with value\n        * @param value value to fill array section with\n        * @param start index to start filling the array at. If start is negative, it is treated as\n        * length+start where length is the length of the array.\n        * @param end index to stop filling the array at. If end is negative, it is treated as\n        * length+end.\n        */\n    fill(value: number, start?: number, end?: number): this;\n\n    /**\n      * Returns the elements of an array that meet the condition specified in a callback function.\n      * @param callbackfn A function that accepts up to three arguments. The filter method calls\n      * the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    filter(callbackfn: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;\n\n    /**\n      * Returns the value of the first element in the array where predicate is true, and undefined\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found, find\n      * immediately returns that element value. Otherwise, find returns undefined.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;\n\n    /**\n      * Returns the index of the first element in the array where predicate is true, and -1\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found,\n      * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;\n\n    /**\n      * Performs the specified action for each element in an array.\n      * @param callbackfn  A function that accepts up to three arguments. forEach calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;\n\n    /**\n      * Returns the index of the first occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      *  search starts at index 0.\n      */\n    indexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * Adds all the elements of an array separated by the specified separator string.\n      * @param separator A string used to separate one element of an array from the next in the\n      * resulting String. If omitted, the array elements are separated with a comma.\n      */\n    join(separator?: string): string;\n\n    /**\n      * Returns the index of the last occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      * search starts at index 0.\n      */\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * The length of the array.\n      */\n    readonly length: number;\n\n    /**\n      * Calls a defined callback function on each element of an array, and returns an array that\n      * contains the results.\n      * @param callbackfn A function that accepts up to three arguments. The map method calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an\n      * argument instead of an array value.\n      */\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;\n\n    /**\n      * Reverses the elements in an Array.\n      */\n    reverse(): Int8Array;\n\n    /**\n      * Sets a value or an array of values.\n      * @param array A typed or untyped array of values to set.\n      * @param offset The index in the current array at which the values are to be written.\n      */\n    set(array: ArrayLike<number>, offset?: number): void;\n\n    /**\n      * Returns a section of an array.\n      * @param start The beginning of the specified portion of the array.\n      * @param end The end of the specified portion of the array.\n      */\n    slice(start?: number, end?: number): Int8Array;\n\n    /**\n      * Determines whether the specified callback function returns true for any element of an array.\n      * @param callbackfn A function that accepts up to three arguments. The some method calls the\n      * callbackfn function for each element in array1 until the callbackfn returns true, or until\n      * the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    some(callbackfn: (value: number, index: number, array: Int8Array) => boolean, thisArg?: any): boolean;\n\n    /**\n      * Sorts an array.\n      * @param compareFn The name of the function used to determine the order of the elements. If\n      * omitted, the elements are sorted in ascending, ASCII character order.\n      */\n    sort(compareFn?: (a: number, b: number) => number): this;\n\n    /**\n      * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements\n      * at begin, inclusive, up to end, exclusive.\n      * @param begin The index of the beginning of the array.\n      * @param end The index of the end of the array.\n      */\n    subarray(begin: number, end?: number): Int8Array;\n\n    /**\n      * Converts a number to a string by using the current locale.\n      */\n    toLocaleString(): string;\n\n    /**\n      * Returns a string representation of an array.\n      */\n    toString(): string;\n\n    [index: number]: number;\n}\ninterface Int8ArrayConstructor {\n    readonly prototype: Int8Array;\n    new(length: number): Int8Array;\n    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Int8Array;\n    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int8Array;\n\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * Returns a new array from a set of elements.\n      * @param items A set of elements to include in the new array object.\n      */\n    of(...items: number[]): Int8Array;\n\n    /**\n      * Creates an array from an array-like or iterable object.\n      * @param arrayLike An array-like or iterable object to convert to an array.\n      * @param mapfn A mapping function to call on every element of the array.\n      * @param thisArg Value of 'this' used to invoke the mapfn.\n      */\n    from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;\n\n\n}\ndeclare const Int8Array: Int8ArrayConstructor;\n\n/**\n  * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the\n  * requested number of bytes could not be allocated an exception is raised.\n  */\ninterface Uint8Array {\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * The ArrayBuffer instance referenced by the array.\n      */\n    readonly buffer: ArrayBufferLike;\n\n    /**\n      * The length in bytes of the array.\n      */\n    readonly byteLength: number;\n\n    /**\n      * The offset in bytes of the array.\n      */\n    readonly byteOffset: number;\n\n    /**\n      * Returns the this object after copying a section of the array identified by start and end\n      * to the same array starting at position target\n      * @param target If target is negative, it is treated as length+target where length is the\n      * length of the array.\n      * @param start If start is negative, it is treated as length+start. If end is negative, it\n      * is treated as length+end.\n      * @param end If not specified, length of the this object is used as its default value.\n      */\n    copyWithin(target: number, start: number, end?: number): this;\n\n    /**\n      * Determines whether all the members of an array satisfy the specified test.\n      * @param callbackfn A function that accepts up to three arguments. The every method calls\n      * the callbackfn function for each element in array1 until the callbackfn returns false,\n      * or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    every(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;\n\n    /**\n        * Returns the this object after filling the section identified by start and end with value\n        * @param value value to fill array section with\n        * @param start index to start filling the array at. If start is negative, it is treated as\n        * length+start where length is the length of the array.\n        * @param end index to stop filling the array at. If end is negative, it is treated as\n        * length+end.\n        */\n    fill(value: number, start?: number, end?: number): this;\n\n    /**\n      * Returns the elements of an array that meet the condition specified in a callback function.\n      * @param callbackfn A function that accepts up to three arguments. The filter method calls\n      * the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    filter(callbackfn: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;\n\n    /**\n      * Returns the value of the first element in the array where predicate is true, and undefined\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found, find\n      * immediately returns that element value. Otherwise, find returns undefined.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;\n\n    /**\n      * Returns the index of the first element in the array where predicate is true, and -1\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found,\n      * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;\n\n    /**\n      * Performs the specified action for each element in an array.\n      * @param callbackfn  A function that accepts up to three arguments. forEach calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;\n\n    /**\n      * Returns the index of the first occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      *  search starts at index 0.\n      */\n    indexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * Adds all the elements of an array separated by the specified separator string.\n      * @param separator A string used to separate one element of an array from the next in the\n      * resulting String. If omitted, the array elements are separated with a comma.\n      */\n    join(separator?: string): string;\n\n    /**\n      * Returns the index of the last occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      * search starts at index 0.\n      */\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * The length of the array.\n      */\n    readonly length: number;\n\n    /**\n      * Calls a defined callback function on each element of an array, and returns an array that\n      * contains the results.\n      * @param callbackfn A function that accepts up to three arguments. The map method calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an\n      * argument instead of an array value.\n      */\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;\n\n    /**\n      * Reverses the elements in an Array.\n      */\n    reverse(): Uint8Array;\n\n    /**\n      * Sets a value or an array of values.\n      * @param array A typed or untyped array of values to set.\n      * @param offset The index in the current array at which the values are to be written.\n      */\n    set(array: ArrayLike<number>, offset?: number): void;\n\n    /**\n      * Returns a section of an array.\n      * @param start The beginning of the specified portion of the array.\n      * @param end The end of the specified portion of the array.\n      */\n    slice(start?: number, end?: number): Uint8Array;\n\n    /**\n      * Determines whether the specified callback function returns true for any element of an array.\n      * @param callbackfn A function that accepts up to three arguments. The some method calls the\n      * callbackfn function for each element in array1 until the callbackfn returns true, or until\n      * the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    some(callbackfn: (value: number, index: number, array: Uint8Array) => boolean, thisArg?: any): boolean;\n\n    /**\n      * Sorts an array.\n      * @param compareFn The name of the function used to determine the order of the elements. If\n      * omitted, the elements are sorted in ascending, ASCII character order.\n      */\n    sort(compareFn?: (a: number, b: number) => number): this;\n\n    /**\n      * Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements\n      * at begin, inclusive, up to end, exclusive.\n      * @param begin The index of the beginning of the array.\n      * @param end The index of the end of the array.\n      */\n    subarray(begin: number, end?: number): Uint8Array;\n\n    /**\n      * Converts a number to a string by using the current locale.\n      */\n    toLocaleString(): string;\n\n    /**\n      * Returns a string representation of an array.\n      */\n    toString(): string;\n\n    [index: number]: number;\n}\n\ninterface Uint8ArrayConstructor {\n    readonly prototype: Uint8Array;\n    new(length: number): Uint8Array;\n    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint8Array;\n    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8Array;\n\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * Returns a new array from a set of elements.\n      * @param items A set of elements to include in the new array object.\n      */\n    of(...items: number[]): Uint8Array;\n\n    /**\n      * Creates an array from an array-like or iterable object.\n      * @param arrayLike An array-like or iterable object to convert to an array.\n      * @param mapfn A mapping function to call on every element of the array.\n      * @param thisArg Value of 'this' used to invoke the mapfn.\n      */\n    from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;\n\n}\ndeclare const Uint8Array: Uint8ArrayConstructor;\n\n/**\n  * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.\n  * If the requested number of bytes could not be allocated an exception is raised.\n  */\ninterface Uint8ClampedArray {\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * The ArrayBuffer instance referenced by the array.\n      */\n    readonly buffer: ArrayBufferLike;\n\n    /**\n      * The length in bytes of the array.\n      */\n    readonly byteLength: number;\n\n    /**\n      * The offset in bytes of the array.\n      */\n    readonly byteOffset: number;\n\n    /**\n      * Returns the this object after copying a section of the array identified by start and end\n      * to the same array starting at position target\n      * @param target If target is negative, it is treated as length+target where length is the\n      * length of the array.\n      * @param start If start is negative, it is treated as length+start. If end is negative, it\n      * is treated as length+end.\n      * @param end If not specified, length of the this object is used as its default value.\n      */\n    copyWithin(target: number, start: number, end?: number): this;\n\n    /**\n      * Determines whether all the members of an array satisfy the specified test.\n      * @param callbackfn A function that accepts up to three arguments. The every method calls\n      * the callbackfn function for each element in array1 until the callbackfn returns false,\n      * or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    every(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;\n\n    /**\n        * Returns the this object after filling the section identified by start and end with value\n        * @param value value to fill array section with\n        * @param start index to start filling the array at. If start is negative, it is treated as\n        * length+start where length is the length of the array.\n        * @param end index to stop filling the array at. If end is negative, it is treated as\n        * length+end.\n        */\n    fill(value: number, start?: number, end?: number): this;\n\n    /**\n      * Returns the elements of an array that meet the condition specified in a callback function.\n      * @param callbackfn A function that accepts up to three arguments. The filter method calls\n      * the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    filter(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;\n\n    /**\n      * Returns the value of the first element in the array where predicate is true, and undefined\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found, find\n      * immediately returns that element value. Otherwise, find returns undefined.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;\n\n    /**\n      * Returns the index of the first element in the array where predicate is true, and -1\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found,\n      * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;\n\n    /**\n      * Performs the specified action for each element in an array.\n      * @param callbackfn  A function that accepts up to three arguments. forEach calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;\n\n    /**\n      * Returns the index of the first occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      *  search starts at index 0.\n      */\n    indexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * Adds all the elements of an array separated by the specified separator string.\n      * @param separator A string used to separate one element of an array from the next in the\n      * resulting String. If omitted, the array elements are separated with a comma.\n      */\n    join(separator?: string): string;\n\n    /**\n      * Returns the index of the last occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      * search starts at index 0.\n      */\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * The length of the array.\n      */\n    readonly length: number;\n\n    /**\n      * Calls a defined callback function on each element of an array, and returns an array that\n      * contains the results.\n      * @param callbackfn A function that accepts up to three arguments. The map method calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an\n      * argument instead of an array value.\n      */\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;\n\n    /**\n      * Reverses the elements in an Array.\n      */\n    reverse(): Uint8ClampedArray;\n\n    /**\n      * Sets a value or an array of values.\n      * @param array A typed or untyped array of values to set.\n      * @param offset The index in the current array at which the values are to be written.\n      */\n    set(array: ArrayLike<number>, offset?: number): void;\n\n    /**\n      * Returns a section of an array.\n      * @param start The beginning of the specified portion of the array.\n      * @param end The end of the specified portion of the array.\n      */\n    slice(start?: number, end?: number): Uint8ClampedArray;\n\n    /**\n      * Determines whether the specified callback function returns true for any element of an array.\n      * @param callbackfn A function that accepts up to three arguments. The some method calls the\n      * callbackfn function for each element in array1 until the callbackfn returns true, or until\n      * the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    some(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => boolean, thisArg?: any): boolean;\n\n    /**\n      * Sorts an array.\n      * @param compareFn The name of the function used to determine the order of the elements. If\n      * omitted, the elements are sorted in ascending, ASCII character order.\n      */\n    sort(compareFn?: (a: number, b: number) => number): this;\n\n    /**\n      * Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements\n      * at begin, inclusive, up to end, exclusive.\n      * @param begin The index of the beginning of the array.\n      * @param end The index of the end of the array.\n      */\n    subarray(begin: number, end?: number): Uint8ClampedArray;\n\n    /**\n      * Converts a number to a string by using the current locale.\n      */\n    toLocaleString(): string;\n\n    /**\n      * Returns a string representation of an array.\n      */\n    toString(): string;\n\n    [index: number]: number;\n}\n\ninterface Uint8ClampedArrayConstructor {\n    readonly prototype: Uint8ClampedArray;\n    new(length: number): Uint8ClampedArray;\n    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;\n    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint8ClampedArray;\n\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * Returns a new array from a set of elements.\n      * @param items A set of elements to include in the new array object.\n      */\n    of(...items: number[]): Uint8ClampedArray;\n\n    /**\n      * Creates an array from an array-like or iterable object.\n      * @param arrayLike An array-like or iterable object to convert to an array.\n      * @param mapfn A mapping function to call on every element of the array.\n      * @param thisArg Value of 'this' used to invoke the mapfn.\n      */\n    from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;\n}\ndeclare const Uint8ClampedArray: Uint8ClampedArrayConstructor;\n\n/**\n  * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the\n  * requested number of bytes could not be allocated an exception is raised.\n  */\ninterface Int16Array {\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * The ArrayBuffer instance referenced by the array.\n      */\n    readonly buffer: ArrayBufferLike;\n\n    /**\n      * The length in bytes of the array.\n      */\n    readonly byteLength: number;\n\n    /**\n      * The offset in bytes of the array.\n      */\n    readonly byteOffset: number;\n\n    /**\n      * Returns the this object after copying a section of the array identified by start and end\n      * to the same array starting at position target\n      * @param target If target is negative, it is treated as length+target where length is the\n      * length of the array.\n      * @param start If start is negative, it is treated as length+start. If end is negative, it\n      * is treated as length+end.\n      * @param end If not specified, length of the this object is used as its default value.\n      */\n    copyWithin(target: number, start: number, end?: number): this;\n\n    /**\n      * Determines whether all the members of an array satisfy the specified test.\n      * @param callbackfn A function that accepts up to three arguments. The every method calls\n      * the callbackfn function for each element in array1 until the callbackfn returns false,\n      * or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    every(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;\n\n    /**\n        * Returns the this object after filling the section identified by start and end with value\n        * @param value value to fill array section with\n        * @param start index to start filling the array at. If start is negative, it is treated as\n        * length+start where length is the length of the array.\n        * @param end index to stop filling the array at. If end is negative, it is treated as\n        * length+end.\n        */\n    fill(value: number, start?: number, end?: number): this;\n\n    /**\n      * Returns the elements of an array that meet the condition specified in a callback function.\n      * @param callbackfn A function that accepts up to three arguments. The filter method calls\n      * the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    filter(callbackfn: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;\n\n    /**\n      * Returns the value of the first element in the array where predicate is true, and undefined\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found, find\n      * immediately returns that element value. Otherwise, find returns undefined.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;\n\n    /**\n      * Returns the index of the first element in the array where predicate is true, and -1\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found,\n      * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;\n\n    /**\n      * Performs the specified action for each element in an array.\n      * @param callbackfn  A function that accepts up to three arguments. forEach calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;\n    /**\n      * Returns the index of the first occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      *  search starts at index 0.\n      */\n    indexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * Adds all the elements of an array separated by the specified separator string.\n      * @param separator A string used to separate one element of an array from the next in the\n      * resulting String. If omitted, the array elements are separated with a comma.\n      */\n    join(separator?: string): string;\n\n    /**\n      * Returns the index of the last occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      * search starts at index 0.\n      */\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * The length of the array.\n      */\n    readonly length: number;\n\n    /**\n      * Calls a defined callback function on each element of an array, and returns an array that\n      * contains the results.\n      * @param callbackfn A function that accepts up to three arguments. The map method calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an\n      * argument instead of an array value.\n      */\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;\n\n    /**\n      * Reverses the elements in an Array.\n      */\n    reverse(): Int16Array;\n\n    /**\n      * Sets a value or an array of values.\n      * @param array A typed or untyped array of values to set.\n      * @param offset The index in the current array at which the values are to be written.\n      */\n    set(array: ArrayLike<number>, offset?: number): void;\n\n    /**\n      * Returns a section of an array.\n      * @param start The beginning of the specified portion of the array.\n      * @param end The end of the specified portion of the array.\n      */\n    slice(start?: number, end?: number): Int16Array;\n\n    /**\n      * Determines whether the specified callback function returns true for any element of an array.\n      * @param callbackfn A function that accepts up to three arguments. The some method calls the\n      * callbackfn function for each element in array1 until the callbackfn returns true, or until\n      * the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    some(callbackfn: (value: number, index: number, array: Int16Array) => boolean, thisArg?: any): boolean;\n\n    /**\n      * Sorts an array.\n      * @param compareFn The name of the function used to determine the order of the elements. If\n      * omitted, the elements are sorted in ascending, ASCII character order.\n      */\n    sort(compareFn?: (a: number, b: number) => number): this;\n\n    /**\n      * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements\n      * at begin, inclusive, up to end, exclusive.\n      * @param begin The index of the beginning of the array.\n      * @param end The index of the end of the array.\n      */\n    subarray(begin: number, end?: number): Int16Array;\n\n    /**\n      * Converts a number to a string by using the current locale.\n      */\n    toLocaleString(): string;\n\n    /**\n      * Returns a string representation of an array.\n      */\n    toString(): string;\n\n    [index: number]: number;\n}\n\ninterface Int16ArrayConstructor {\n    readonly prototype: Int16Array;\n    new(length: number): Int16Array;\n    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Int16Array;\n    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int16Array;\n\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * Returns a new array from a set of elements.\n      * @param items A set of elements to include in the new array object.\n      */\n    of(...items: number[]): Int16Array;\n\n    /**\n      * Creates an array from an array-like or iterable object.\n      * @param arrayLike An array-like or iterable object to convert to an array.\n      * @param mapfn A mapping function to call on every element of the array.\n      * @param thisArg Value of 'this' used to invoke the mapfn.\n      */\n    from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;\n\n\n}\ndeclare const Int16Array: Int16ArrayConstructor;\n\n/**\n  * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the\n  * requested number of bytes could not be allocated an exception is raised.\n  */\ninterface Uint16Array {\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * The ArrayBuffer instance referenced by the array.\n      */\n    readonly buffer: ArrayBufferLike;\n\n    /**\n      * The length in bytes of the array.\n      */\n    readonly byteLength: number;\n\n    /**\n      * The offset in bytes of the array.\n      */\n    readonly byteOffset: number;\n\n    /**\n      * Returns the this object after copying a section of the array identified by start and end\n      * to the same array starting at position target\n      * @param target If target is negative, it is treated as length+target where length is the\n      * length of the array.\n      * @param start If start is negative, it is treated as length+start. If end is negative, it\n      * is treated as length+end.\n      * @param end If not specified, length of the this object is used as its default value.\n      */\n    copyWithin(target: number, start: number, end?: number): this;\n\n    /**\n      * Determines whether all the members of an array satisfy the specified test.\n      * @param callbackfn A function that accepts up to three arguments. The every method calls\n      * the callbackfn function for each element in array1 until the callbackfn returns false,\n      * or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    every(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;\n\n    /**\n        * Returns the this object after filling the section identified by start and end with value\n        * @param value value to fill array section with\n        * @param start index to start filling the array at. If start is negative, it is treated as\n        * length+start where length is the length of the array.\n        * @param end index to stop filling the array at. If end is negative, it is treated as\n        * length+end.\n        */\n    fill(value: number, start?: number, end?: number): this;\n\n    /**\n      * Returns the elements of an array that meet the condition specified in a callback function.\n      * @param callbackfn A function that accepts up to three arguments. The filter method calls\n      * the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    filter(callbackfn: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;\n\n    /**\n      * Returns the value of the first element in the array where predicate is true, and undefined\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found, find\n      * immediately returns that element value. Otherwise, find returns undefined.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;\n\n    /**\n      * Returns the index of the first element in the array where predicate is true, and -1\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found,\n      * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;\n\n    /**\n      * Performs the specified action for each element in an array.\n      * @param callbackfn  A function that accepts up to three arguments. forEach calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;\n\n    /**\n      * Returns the index of the first occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      *  search starts at index 0.\n      */\n    indexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * Adds all the elements of an array separated by the specified separator string.\n      * @param separator A string used to separate one element of an array from the next in the\n      * resulting String. If omitted, the array elements are separated with a comma.\n      */\n    join(separator?: string): string;\n\n    /**\n      * Returns the index of the last occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      * search starts at index 0.\n      */\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * The length of the array.\n      */\n    readonly length: number;\n\n    /**\n      * Calls a defined callback function on each element of an array, and returns an array that\n      * contains the results.\n      * @param callbackfn A function that accepts up to three arguments. The map method calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an\n      * argument instead of an array value.\n      */\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;\n\n    /**\n      * Reverses the elements in an Array.\n      */\n    reverse(): Uint16Array;\n\n    /**\n      * Sets a value or an array of values.\n      * @param array A typed or untyped array of values to set.\n      * @param offset The index in the current array at which the values are to be written.\n      */\n    set(array: ArrayLike<number>, offset?: number): void;\n\n    /**\n      * Returns a section of an array.\n      * @param start The beginning of the specified portion of the array.\n      * @param end The end of the specified portion of the array.\n      */\n    slice(start?: number, end?: number): Uint16Array;\n\n    /**\n      * Determines whether the specified callback function returns true for any element of an array.\n      * @param callbackfn A function that accepts up to three arguments. The some method calls the\n      * callbackfn function for each element in array1 until the callbackfn returns true, or until\n      * the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    some(callbackfn: (value: number, index: number, array: Uint16Array) => boolean, thisArg?: any): boolean;\n\n    /**\n      * Sorts an array.\n      * @param compareFn The name of the function used to determine the order of the elements. If\n      * omitted, the elements are sorted in ascending, ASCII character order.\n      */\n    sort(compareFn?: (a: number, b: number) => number): this;\n\n    /**\n      * Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements\n      * at begin, inclusive, up to end, exclusive.\n      * @param begin The index of the beginning of the array.\n      * @param end The index of the end of the array.\n      */\n    subarray(begin: number, end?: number): Uint16Array;\n\n    /**\n      * Converts a number to a string by using the current locale.\n      */\n    toLocaleString(): string;\n\n    /**\n      * Returns a string representation of an array.\n      */\n    toString(): string;\n\n    [index: number]: number;\n}\n\ninterface Uint16ArrayConstructor {\n    readonly prototype: Uint16Array;\n    new(length: number): Uint16Array;\n    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint16Array;\n    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint16Array;\n\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * Returns a new array from a set of elements.\n      * @param items A set of elements to include in the new array object.\n      */\n    of(...items: number[]): Uint16Array;\n\n    /**\n      * Creates an array from an array-like or iterable object.\n      * @param arrayLike An array-like or iterable object to convert to an array.\n      * @param mapfn A mapping function to call on every element of the array.\n      * @param thisArg Value of 'this' used to invoke the mapfn.\n      */\n    from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;\n\n\n}\ndeclare const Uint16Array: Uint16ArrayConstructor;\n/**\n  * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the\n  * requested number of bytes could not be allocated an exception is raised.\n  */\ninterface Int32Array {\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * The ArrayBuffer instance referenced by the array.\n      */\n    readonly buffer: ArrayBufferLike;\n\n    /**\n      * The length in bytes of the array.\n      */\n    readonly byteLength: number;\n\n    /**\n      * The offset in bytes of the array.\n      */\n    readonly byteOffset: number;\n\n    /**\n      * Returns the this object after copying a section of the array identified by start and end\n      * to the same array starting at position target\n      * @param target If target is negative, it is treated as length+target where length is the\n      * length of the array.\n      * @param start If start is negative, it is treated as length+start. If end is negative, it\n      * is treated as length+end.\n      * @param end If not specified, length of the this object is used as its default value.\n      */\n    copyWithin(target: number, start: number, end?: number): this;\n\n    /**\n      * Determines whether all the members of an array satisfy the specified test.\n      * @param callbackfn A function that accepts up to three arguments. The every method calls\n      * the callbackfn function for each element in array1 until the callbackfn returns false,\n      * or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    every(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;\n\n    /**\n        * Returns the this object after filling the section identified by start and end with value\n        * @param value value to fill array section with\n        * @param start index to start filling the array at. If start is negative, it is treated as\n        * length+start where length is the length of the array.\n        * @param end index to stop filling the array at. If end is negative, it is treated as\n        * length+end.\n        */\n    fill(value: number, start?: number, end?: number): this;\n\n    /**\n      * Returns the elements of an array that meet the condition specified in a callback function.\n      * @param callbackfn A function that accepts up to three arguments. The filter method calls\n      * the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    filter(callbackfn: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;\n\n    /**\n      * Returns the value of the first element in the array where predicate is true, and undefined\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found, find\n      * immediately returns that element value. Otherwise, find returns undefined.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;\n\n    /**\n      * Returns the index of the first element in the array where predicate is true, and -1\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found,\n      * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;\n\n    /**\n      * Performs the specified action for each element in an array.\n      * @param callbackfn  A function that accepts up to three arguments. forEach calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;\n\n    /**\n      * Returns the index of the first occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      *  search starts at index 0.\n      */\n    indexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * Adds all the elements of an array separated by the specified separator string.\n      * @param separator A string used to separate one element of an array from the next in the\n      * resulting String. If omitted, the array elements are separated with a comma.\n      */\n    join(separator?: string): string;\n\n    /**\n      * Returns the index of the last occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      * search starts at index 0.\n      */\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * The length of the array.\n      */\n    readonly length: number;\n\n    /**\n      * Calls a defined callback function on each element of an array, and returns an array that\n      * contains the results.\n      * @param callbackfn A function that accepts up to three arguments. The map method calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an\n      * argument instead of an array value.\n      */\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;\n\n    /**\n      * Reverses the elements in an Array.\n      */\n    reverse(): Int32Array;\n\n    /**\n      * Sets a value or an array of values.\n      * @param array A typed or untyped array of values to set.\n      * @param offset The index in the current array at which the values are to be written.\n      */\n    set(array: ArrayLike<number>, offset?: number): void;\n\n    /**\n      * Returns a section of an array.\n      * @param start The beginning of the specified portion of the array.\n      * @param end The end of the specified portion of the array.\n      */\n    slice(start?: number, end?: number): Int32Array;\n\n    /**\n      * Determines whether the specified callback function returns true for any element of an array.\n      * @param callbackfn A function that accepts up to three arguments. The some method calls the\n      * callbackfn function for each element in array1 until the callbackfn returns true, or until\n      * the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    some(callbackfn: (value: number, index: number, array: Int32Array) => boolean, thisArg?: any): boolean;\n\n    /**\n      * Sorts an array.\n      * @param compareFn The name of the function used to determine the order of the elements. If\n      * omitted, the elements are sorted in ascending, ASCII character order.\n      */\n    sort(compareFn?: (a: number, b: number) => number): this;\n\n    /**\n      * Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements\n      * at begin, inclusive, up to end, exclusive.\n      * @param begin The index of the beginning of the array.\n      * @param end The index of the end of the array.\n      */\n    subarray(begin: number, end?: number): Int32Array;\n\n    /**\n      * Converts a number to a string by using the current locale.\n      */\n    toLocaleString(): string;\n\n    /**\n      * Returns a string representation of an array.\n      */\n    toString(): string;\n\n    [index: number]: number;\n}\n\ninterface Int32ArrayConstructor {\n    readonly prototype: Int32Array;\n    new(length: number): Int32Array;\n    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Int32Array;\n    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Int32Array;\n\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * Returns a new array from a set of elements.\n      * @param items A set of elements to include in the new array object.\n      */\n    of(...items: number[]): Int32Array;\n\n    /**\n      * Creates an array from an array-like or iterable object.\n      * @param arrayLike An array-like or iterable object to convert to an array.\n      * @param mapfn A mapping function to call on every element of the array.\n      * @param thisArg Value of 'this' used to invoke the mapfn.\n      */\n    from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;\n\n}\ndeclare const Int32Array: Int32ArrayConstructor;\n\n/**\n  * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the\n  * requested number of bytes could not be allocated an exception is raised.\n  */\ninterface Uint32Array {\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * The ArrayBuffer instance referenced by the array.\n      */\n    readonly buffer: ArrayBufferLike;\n\n    /**\n      * The length in bytes of the array.\n      */\n    readonly byteLength: number;\n\n    /**\n      * The offset in bytes of the array.\n      */\n    readonly byteOffset: number;\n\n    /**\n      * Returns the this object after copying a section of the array identified by start and end\n      * to the same array starting at position target\n      * @param target If target is negative, it is treated as length+target where length is the\n      * length of the array.\n      * @param start If start is negative, it is treated as length+start. If end is negative, it\n      * is treated as length+end.\n      * @param end If not specified, length of the this object is used as its default value.\n      */\n    copyWithin(target: number, start: number, end?: number): this;\n\n    /**\n      * Determines whether all the members of an array satisfy the specified test.\n      * @param callbackfn A function that accepts up to three arguments. The every method calls\n      * the callbackfn function for each element in array1 until the callbackfn returns false,\n      * or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    every(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;\n\n    /**\n        * Returns the this object after filling the section identified by start and end with value\n        * @param value value to fill array section with\n        * @param start index to start filling the array at. If start is negative, it is treated as\n        * length+start where length is the length of the array.\n        * @param end index to stop filling the array at. If end is negative, it is treated as\n        * length+end.\n        */\n    fill(value: number, start?: number, end?: number): this;\n\n    /**\n      * Returns the elements of an array that meet the condition specified in a callback function.\n      * @param callbackfn A function that accepts up to three arguments. The filter method calls\n      * the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    filter(callbackfn: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;\n\n    /**\n      * Returns the value of the first element in the array where predicate is true, and undefined\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found, find\n      * immediately returns that element value. Otherwise, find returns undefined.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;\n\n    /**\n      * Returns the index of the first element in the array where predicate is true, and -1\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found,\n      * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;\n\n    /**\n      * Performs the specified action for each element in an array.\n      * @param callbackfn  A function that accepts up to three arguments. forEach calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;\n    /**\n      * Returns the index of the first occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      *  search starts at index 0.\n      */\n    indexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * Adds all the elements of an array separated by the specified separator string.\n      * @param separator A string used to separate one element of an array from the next in the\n      * resulting String. If omitted, the array elements are separated with a comma.\n      */\n    join(separator?: string): string;\n\n    /**\n      * Returns the index of the last occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      * search starts at index 0.\n      */\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * The length of the array.\n      */\n    readonly length: number;\n\n    /**\n      * Calls a defined callback function on each element of an array, and returns an array that\n      * contains the results.\n      * @param callbackfn A function that accepts up to three arguments. The map method calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an\n      * argument instead of an array value.\n      */\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;\n\n    /**\n      * Reverses the elements in an Array.\n      */\n    reverse(): Uint32Array;\n\n    /**\n      * Sets a value or an array of values.\n      * @param array A typed or untyped array of values to set.\n      * @param offset The index in the current array at which the values are to be written.\n      */\n    set(array: ArrayLike<number>, offset?: number): void;\n\n    /**\n      * Returns a section of an array.\n      * @param start The beginning of the specified portion of the array.\n      * @param end The end of the specified portion of the array.\n      */\n    slice(start?: number, end?: number): Uint32Array;\n\n    /**\n      * Determines whether the specified callback function returns true for any element of an array.\n      * @param callbackfn A function that accepts up to three arguments. The some method calls the\n      * callbackfn function for each element in array1 until the callbackfn returns true, or until\n      * the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    some(callbackfn: (value: number, index: number, array: Uint32Array) => boolean, thisArg?: any): boolean;\n\n    /**\n      * Sorts an array.\n      * @param compareFn The name of the function used to determine the order of the elements. If\n      * omitted, the elements are sorted in ascending, ASCII character order.\n      */\n    sort(compareFn?: (a: number, b: number) => number): this;\n\n    /**\n      * Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements\n      * at begin, inclusive, up to end, exclusive.\n      * @param begin The index of the beginning of the array.\n      * @param end The index of the end of the array.\n      */\n    subarray(begin: number, end?: number): Uint32Array;\n\n    /**\n      * Converts a number to a string by using the current locale.\n      */\n    toLocaleString(): string;\n\n    /**\n      * Returns a string representation of an array.\n      */\n    toString(): string;\n\n    [index: number]: number;\n}\n\ninterface Uint32ArrayConstructor {\n    readonly prototype: Uint32Array;\n    new(length: number): Uint32Array;\n    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Uint32Array;\n    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Uint32Array;\n\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * Returns a new array from a set of elements.\n      * @param items A set of elements to include in the new array object.\n      */\n    of(...items: number[]): Uint32Array;\n\n    /**\n      * Creates an array from an array-like or iterable object.\n      * @param arrayLike An array-like or iterable object to convert to an array.\n      * @param mapfn A mapping function to call on every element of the array.\n      * @param thisArg Value of 'this' used to invoke the mapfn.\n      */\n    from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;\n\n}\ndeclare const Uint32Array: Uint32ArrayConstructor;\n\n/**\n  * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number\n  * of bytes could not be allocated an exception is raised.\n  */\ninterface Float32Array {\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * The ArrayBuffer instance referenced by the array.\n      */\n    readonly buffer: ArrayBufferLike;\n\n    /**\n      * The length in bytes of the array.\n      */\n    readonly byteLength: number;\n\n    /**\n      * The offset in bytes of the array.\n      */\n    readonly byteOffset: number;\n\n    /**\n      * Returns the this object after copying a section of the array identified by start and end\n      * to the same array starting at position target\n      * @param target If target is negative, it is treated as length+target where length is the\n      * length of the array.\n      * @param start If start is negative, it is treated as length+start. If end is negative, it\n      * is treated as length+end.\n      * @param end If not specified, length of the this object is used as its default value.\n      */\n    copyWithin(target: number, start: number, end?: number): this;\n\n    /**\n      * Determines whether all the members of an array satisfy the specified test.\n      * @param callbackfn A function that accepts up to three arguments. The every method calls\n      * the callbackfn function for each element in array1 until the callbackfn returns false,\n      * or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    every(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;\n\n    /**\n        * Returns the this object after filling the section identified by start and end with value\n        * @param value value to fill array section with\n        * @param start index to start filling the array at. If start is negative, it is treated as\n        * length+start where length is the length of the array.\n        * @param end index to stop filling the array at. If end is negative, it is treated as\n        * length+end.\n        */\n    fill(value: number, start?: number, end?: number): this;\n\n    /**\n      * Returns the elements of an array that meet the condition specified in a callback function.\n      * @param callbackfn A function that accepts up to three arguments. The filter method calls\n      * the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    filter(callbackfn: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;\n\n    /**\n      * Returns the value of the first element in the array where predicate is true, and undefined\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found, find\n      * immediately returns that element value. Otherwise, find returns undefined.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;\n\n    /**\n      * Returns the index of the first element in the array where predicate is true, and -1\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found,\n      * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;\n\n    /**\n      * Performs the specified action for each element in an array.\n      * @param callbackfn  A function that accepts up to three arguments. forEach calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;\n\n    /**\n      * Returns the index of the first occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      *  search starts at index 0.\n      */\n    indexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * Adds all the elements of an array separated by the specified separator string.\n      * @param separator A string used to separate one element of an array from the next in the\n      * resulting String. If omitted, the array elements are separated with a comma.\n      */\n    join(separator?: string): string;\n\n    /**\n      * Returns the index of the last occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      * search starts at index 0.\n      */\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * The length of the array.\n      */\n    readonly length: number;\n\n    /**\n      * Calls a defined callback function on each element of an array, and returns an array that\n      * contains the results.\n      * @param callbackfn A function that accepts up to three arguments. The map method calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an\n      * argument instead of an array value.\n      */\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;\n\n    /**\n      * Reverses the elements in an Array.\n      */\n    reverse(): Float32Array;\n\n    /**\n      * Sets a value or an array of values.\n      * @param array A typed or untyped array of values to set.\n      * @param offset The index in the current array at which the values are to be written.\n      */\n    set(array: ArrayLike<number>, offset?: number): void;\n\n    /**\n      * Returns a section of an array.\n      * @param start The beginning of the specified portion of the array.\n      * @param end The end of the specified portion of the array.\n      */\n    slice(start?: number, end?: number): Float32Array;\n\n    /**\n      * Determines whether the specified callback function returns true for any element of an array.\n      * @param callbackfn A function that accepts up to three arguments. The some method calls the\n      * callbackfn function for each element in array1 until the callbackfn returns true, or until\n      * the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    some(callbackfn: (value: number, index: number, array: Float32Array) => boolean, thisArg?: any): boolean;\n\n    /**\n      * Sorts an array.\n      * @param compareFn The name of the function used to determine the order of the elements. If\n      * omitted, the elements are sorted in ascending, ASCII character order.\n      */\n    sort(compareFn?: (a: number, b: number) => number): this;\n\n    /**\n      * Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements\n      * at begin, inclusive, up to end, exclusive.\n      * @param begin The index of the beginning of the array.\n      * @param end The index of the end of the array.\n      */\n    subarray(begin: number, end?: number): Float32Array;\n\n    /**\n      * Converts a number to a string by using the current locale.\n      */\n    toLocaleString(): string;\n\n    /**\n      * Returns a string representation of an array.\n      */\n    toString(): string;\n\n    [index: number]: number;\n}\n\ninterface Float32ArrayConstructor {\n    readonly prototype: Float32Array;\n    new(length: number): Float32Array;\n    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Float32Array;\n    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float32Array;\n\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * Returns a new array from a set of elements.\n      * @param items A set of elements to include in the new array object.\n      */\n    of(...items: number[]): Float32Array;\n\n    /**\n      * Creates an array from an array-like or iterable object.\n      * @param arrayLike An array-like or iterable object to convert to an array.\n      * @param mapfn A mapping function to call on every element of the array.\n      * @param thisArg Value of 'this' used to invoke the mapfn.\n      */\n    from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;\n\n\n}\ndeclare const Float32Array: Float32ArrayConstructor;\n\n/**\n  * A typed array of 64-bit float values. The contents are initialized to 0. If the requested\n  * number of bytes could not be allocated an exception is raised.\n  */\ninterface Float64Array {\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * The ArrayBuffer instance referenced by the array.\n      */\n    readonly buffer: ArrayBufferLike;\n\n    /**\n      * The length in bytes of the array.\n      */\n    readonly byteLength: number;\n\n    /**\n      * The offset in bytes of the array.\n      */\n    readonly byteOffset: number;\n\n    /**\n      * Returns the this object after copying a section of the array identified by start and end\n      * to the same array starting at position target\n      * @param target If target is negative, it is treated as length+target where length is the\n      * length of the array.\n      * @param start If start is negative, it is treated as length+start. If end is negative, it\n      * is treated as length+end.\n      * @param end If not specified, length of the this object is used as its default value.\n      */\n    copyWithin(target: number, start: number, end?: number): this;\n\n    /**\n      * Determines whether all the members of an array satisfy the specified test.\n      * @param callbackfn A function that accepts up to three arguments. The every method calls\n      * the callbackfn function for each element in array1 until the callbackfn returns false,\n      * or until the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    every(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;\n\n    /**\n        * Returns the this object after filling the section identified by start and end with value\n        * @param value value to fill array section with\n        * @param start index to start filling the array at. If start is negative, it is treated as\n        * length+start where length is the length of the array.\n        * @param end index to stop filling the array at. If end is negative, it is treated as\n        * length+end.\n        */\n    fill(value: number, start?: number, end?: number): this;\n\n    /**\n      * Returns the elements of an array that meet the condition specified in a callback function.\n      * @param callbackfn A function that accepts up to three arguments. The filter method calls\n      * the callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    filter(callbackfn: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;\n\n    /**\n      * Returns the value of the first element in the array where predicate is true, and undefined\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found, find\n      * immediately returns that element value. Otherwise, find returns undefined.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;\n\n    /**\n      * Returns the index of the first element in the array where predicate is true, and -1\n      * otherwise.\n      * @param predicate find calls predicate once for each element of the array, in ascending\n      * order, until it finds one where predicate returns true. If such an element is found,\n      * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n      * @param thisArg If provided, it will be used as the this value for each invocation of\n      * predicate. If it is not provided, undefined is used instead.\n      */\n    findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;\n\n    /**\n      * Performs the specified action for each element in an array.\n      * @param callbackfn  A function that accepts up to three arguments. forEach calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg  An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;\n\n    /**\n      * Returns the index of the first occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      *  search starts at index 0.\n      */\n    indexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * Adds all the elements of an array separated by the specified separator string.\n      * @param separator A string used to separate one element of an array from the next in the\n      * resulting String. If omitted, the array elements are separated with a comma.\n      */\n    join(separator?: string): string;\n\n    /**\n      * Returns the index of the last occurrence of a value in an array.\n      * @param searchElement The value to locate in the array.\n      * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the\n      * search starts at index 0.\n      */\n    lastIndexOf(searchElement: number, fromIndex?: number): number;\n\n    /**\n      * The length of the array.\n      */\n    readonly length: number;\n\n    /**\n      * Calls a defined callback function on each element of an array, and returns an array that\n      * contains the results.\n      * @param callbackfn A function that accepts up to three arguments. The map method calls the\n      * callbackfn function one time for each element in the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\n    reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array. The return value of\n      * the callback function is the accumulated result, and is provided as an argument in the next\n      * call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduce method calls the\n      * callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an\n      * argument instead of an array value.\n      */\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;\n    reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;\n\n    /**\n      * Calls the specified callback function for all the elements in an array, in descending order.\n      * The return value of the callback function is the accumulated result, and is provided as an\n      * argument in the next call to the callback function.\n      * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls\n      * the callbackfn function one time for each element in the array.\n      * @param initialValue If initialValue is specified, it is used as the initial value to start\n      * the accumulation. The first call to the callbackfn function provides this value as an argument\n      * instead of an array value.\n      */\n    reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;\n\n    /**\n      * Reverses the elements in an Array.\n      */\n    reverse(): Float64Array;\n\n    /**\n      * Sets a value or an array of values.\n      * @param array A typed or untyped array of values to set.\n      * @param offset The index in the current array at which the values are to be written.\n      */\n    set(array: ArrayLike<number>, offset?: number): void;\n\n    /**\n      * Returns a section of an array.\n      * @param start The beginning of the specified portion of the array.\n      * @param end The end of the specified portion of the array.\n      */\n    slice(start?: number, end?: number): Float64Array;\n\n    /**\n      * Determines whether the specified callback function returns true for any element of an array.\n      * @param callbackfn A function that accepts up to three arguments. The some method calls the\n      * callbackfn function for each element in array1 until the callbackfn returns true, or until\n      * the end of the array.\n      * @param thisArg An object to which the this keyword can refer in the callbackfn function.\n      * If thisArg is omitted, undefined is used as the this value.\n      */\n    some(callbackfn: (value: number, index: number, array: Float64Array) => boolean, thisArg?: any): boolean;\n\n    /**\n      * Sorts an array.\n      * @param compareFn The name of the function used to determine the order of the elements. If\n      * omitted, the elements are sorted in ascending, ASCII character order.\n      */\n    sort(compareFn?: (a: number, b: number) => number): this;\n\n    /**\n      * Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements\n      * at begin, inclusive, up to end, exclusive.\n      * @param begin The index of the beginning of the array.\n      * @param end The index of the end of the array.\n      */\n    subarray(begin: number, end?: number): Float64Array;\n\n    /**\n      * Converts a number to a string by using the current locale.\n      */\n    toLocaleString(): string;\n\n    /**\n      * Returns a string representation of an array.\n      */\n    toString(): string;\n\n    [index: number]: number;\n}\n\ninterface Float64ArrayConstructor {\n    readonly prototype: Float64Array;\n    new(length: number): Float64Array;\n    new(arrayOrArrayBuffer: ArrayLike<number> | ArrayBufferLike): Float64Array;\n    new(buffer: ArrayBufferLike, byteOffset: number, length?: number): Float64Array;\n\n    /**\n      * The size in bytes of each element in the array.\n      */\n    readonly BYTES_PER_ELEMENT: number;\n\n    /**\n      * Returns a new array from a set of elements.\n      * @param items A set of elements to include in the new array object.\n      */\n    of(...items: number[]): Float64Array;\n\n    /**\n      * Creates an array from an array-like or iterable object.\n      * @param arrayLike An array-like or iterable object to convert to an array.\n      * @param mapfn A mapping function to call on every element of the array.\n      * @param thisArg Value of 'this' used to invoke the mapfn.\n      */\n    from(arrayLike: ArrayLike<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;\n\n}\ndeclare const Float64Array: Float64ArrayConstructor;\n\n/////////////////////////////\n/// ECMAScript Internationalization API\n/////////////////////////////\n\ndeclare namespace Intl {\n    interface CollatorOptions {\n        usage?: string;\n        localeMatcher?: string;\n        numeric?: boolean;\n        caseFirst?: string;\n        sensitivity?: string;\n        ignorePunctuation?: boolean;\n    }\n\n    interface ResolvedCollatorOptions {\n        locale: string;\n        usage: string;\n        sensitivity: string;\n        ignorePunctuation: boolean;\n        collation: string;\n        caseFirst: string;\n        numeric: boolean;\n    }\n\n    interface Collator {\n        compare(x: string, y: string): number;\n        resolvedOptions(): ResolvedCollatorOptions;\n    }\n    var Collator: {\n        new(locales?: string | string[], options?: CollatorOptions): Collator;\n        (locales?: string | string[], options?: CollatorOptions): Collator;\n        supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];\n    };\n\n    interface NumberFormatOptions {\n        localeMatcher?: string;\n        style?: string;\n        currency?: string;\n        currencyDisplay?: string;\n        useGrouping?: boolean;\n        minimumIntegerDigits?: number;\n        minimumFractionDigits?: number;\n        maximumFractionDigits?: number;\n        minimumSignificantDigits?: number;\n        maximumSignificantDigits?: number;\n    }\n\n    interface ResolvedNumberFormatOptions {\n        locale: string;\n        numberingSystem: string;\n        style: string;\n        currency?: string;\n        currencyDisplay?: string;\n        minimumIntegerDigits: number;\n        minimumFractionDigits: number;\n        maximumFractionDigits: number;\n        minimumSignificantDigits?: number;\n        maximumSignificantDigits?: number;\n        useGrouping: boolean;\n    }\n\n    interface NumberFormat {\n        format(value: number): string;\n        resolvedOptions(): ResolvedNumberFormatOptions;\n    }\n    var NumberFormat: {\n        new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\n        (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;\n        supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];\n    };\n\n    interface DateTimeFormatOptions {\n        localeMatcher?: string;\n        weekday?: string;\n        era?: string;\n        year?: string;\n        month?: string;\n        day?: string;\n        hour?: string;\n        minute?: string;\n        second?: string;\n        timeZoneName?: string;\n        formatMatcher?: string;\n        hour12?: boolean;\n        timeZone?: string;\n    }\n\n    interface ResolvedDateTimeFormatOptions {\n        locale: string;\n        calendar: string;\n        numberingSystem: string;\n        timeZone: string;\n        hour12?: boolean;\n        weekday?: string;\n        era?: string;\n        year?: string;\n        month?: string;\n        day?: string;\n        hour?: string;\n        minute?: string;\n        second?: string;\n        timeZoneName?: string;\n    }\n\n    interface DateTimeFormat {\n        format(date?: Date | number): string;\n        resolvedOptions(): ResolvedDateTimeFormatOptions;\n    }\n    var DateTimeFormat: {\n        new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\n        (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;\n        supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];\n    };\n}\n\ninterface String {\n    /**\n      * Determines whether two strings are equivalent in the current or specified locale.\n      * @param that String to compare to target string\n      * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.\n      * @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.\n      */\n    localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;\n}\n\ninterface Number {\n    /**\n      * Converts a number to a string by using the current or specified locale.\n      * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n      * @param options An object that contains one or more properties that specify comparison options.\n      */\n    toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;\n}\n\ninterface Date {\n    /**\n      * Converts a date and time to a string by using the current or specified locale.\n      * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n      * @param options An object that contains one or more properties that specify comparison options.\n      */\n    toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n    /**\n      * Converts a date to a string by using the current or specified locale.\n      * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n      * @param options An object that contains one or more properties that specify comparison options.\n      */\n    toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n\n    /**\n      * Converts a time to a string by using the current or specified locale.\n      * @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.\n      * @param options An object that contains one or more properties that specify comparison options.\n      */\n    toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;\n}\n",n.lib_es2015_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n'+n.lib_es5_dts+n.lib_es2015_core_dts+n.lib_es2015_collection_dts+n.lib_es2015_generator_dts+n.lib_es2015_promise_dts+n.lib_es2015_iterable_dts+n.lib_es2015_proxy_dts+n.lib_es2015_reflect_dts+n.lib_es2015_symbol_dts+n.lib_es2015_symbol_wellknown_dts,n.lib_es6_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n'+n.lib_es2015_dts+n.lib_dom_dts+n.lib_dom_iterable_dts+n.lib_webworker_importscripts_dts+n.lib_scripthost_dts,n.lib_dts='/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved. \nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0  \n \nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \nMERCHANTABLITY OR NON-INFRINGEMENT. \n \nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// <reference no-default-lib="true"/>\n\n'+n.lib_es5_dts+n.lib_dom_dts+n.lib_webworker_importscripts_dts+n.lib_scripthost_dts}),define("vs/language/typescript/tsWorker",["require","exports","./lib/typescriptServices","./lib/lib"],function(e,n,r,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=monaco.Promise,i={NAME:"defaultLib:lib.d.ts",CONTENTS:t.lib_dts},o={NAME:"defaultLib:lib.es6.d.ts",CONTENTS:t.lib_es6_dts},s=function(){function t(e,n){this._extraLibs=Object.create(null),this._languageService=r.createLanguageService(this),this._ctx=e,this._compilerOptions=n.compilerOptions,this._extraLibs=n.extraLibs}return t.prototype.getCompilationSettings=function(){return this._compilerOptions},t.prototype.getScriptFileNames=function(){return this._ctx.getMirrorModels().map(function(e){return e.uri.toString()}).concat(Object.keys(this._extraLibs))},t.prototype._getModel=function(e){for(var n=this._ctx.getMirrorModels(),t=0;t<n.length;t++)if(n[t].uri.toString()===e)return n[t];return null},t.prototype.getScriptVersion=function(e){var n=this._getModel(e);return n?n.version.toString():this.isDefaultLibFileName(e)||e in this._extraLibs?"1":void 0},t.prototype.getScriptSnapshot=function(e){var t,n=this._getModel(e);if(n)t=n.getValue();else if(e in this._extraLibs)t=this._extraLibs[e];else if(e===i.NAME)t=i.CONTENTS;else{if(e!==o.NAME)return;t=o.CONTENTS}return{getText:function(e,n){return t.substring(e,n)},getLength:function(){return t.length},getChangeRange:function(){}}},t.prototype.getScriptKind=function(e){switch(e.substr(e.lastIndexOf(".")+1)){case"ts":return r.ScriptKind.TS;case"tsx":return r.ScriptKind.TSX;case"js":return r.ScriptKind.JS;case"jsx":return r.ScriptKind.JSX;default:return this.getCompilationSettings().allowJs?r.ScriptKind.JS:r.ScriptKind.TS}},t.prototype.getCurrentDirectory=function(){return""},t.prototype.getDefaultLibFileName=function(e){return e.target<=r.ScriptTarget.ES5?i.NAME:o.NAME},t.prototype.isDefaultLibFileName=function(e){return e===this.getDefaultLibFileName(this._compilerOptions)},t.clearFiles=function(e){e.forEach(function(e){e.file=void 0;var n=e.relatedInformation;n&&n.forEach(function(e){return e.file=void 0})})},t.prototype.getSyntacticDiagnostics=function(e){var n=this._languageService.getSyntacticDiagnostics(e);return t.clearFiles(n),a.as(n)},t.prototype.getSemanticDiagnostics=function(e){var n=this._languageService.getSemanticDiagnostics(e);return t.clearFiles(n),a.as(n)},t.prototype.getCompilerOptionsDiagnostics=function(e){var n=this._languageService.getCompilerOptionsDiagnostics();return t.clearFiles(n),a.as(n)},t.prototype.getCompletionsAtPosition=function(e,n){return a.as(this._languageService.getCompletionsAtPosition(e,n,void 0))},t.prototype.getCompletionEntryDetails=function(e,n,t){return a.as(this._languageService.getCompletionEntryDetails(e,n,t,void 0,void 0,void 0))},t.prototype.getSignatureHelpItems=function(e,n){return a.as(this._languageService.getSignatureHelpItems(e,n,void 0))},t.prototype.getQuickInfoAtPosition=function(e,n){return a.as(this._languageService.getQuickInfoAtPosition(e,n))},t.prototype.getOccurrencesAtPosition=function(e,n){return a.as(this._languageService.getOccurrencesAtPosition(e,n))},t.prototype.getDefinitionAtPosition=function(e,n){return a.as(this._languageService.getDefinitionAtPosition(e,n))},t.prototype.getReferencesAtPosition=function(e,n){return a.as(this._languageService.getReferencesAtPosition(e,n))},t.prototype.getNavigationBarItems=function(e){return a.as(this._languageService.getNavigationBarItems(e))},t.prototype.getFormattingEditsForDocument=function(e,n){return a.as(this._languageService.getFormattingEditsForDocument(e,n))},t.prototype.getFormattingEditsForRange=function(e,n,t,r){return a.as(this._languageService.getFormattingEditsForRange(e,n,t,r))},t.prototype.getFormattingEditsAfterKeystroke=function(e,n,t,r){return a.as(this._languageService.getFormattingEditsAfterKeystroke(e,n,t,r))},t.prototype.getEmitOutput=function(e){return a.as(this._languageService.getEmitOutput(e))},t}();n.TypeScriptWorker=s,n.create=function(e,n){return new s(e,n)}});